PageSourceSearch

https://www.educative.io/static/_next/static/chunks/506837-fd3e45fb9c8f7bb5.js

js educative.io collected 2026-09-24 08:40:54 UTC 302,785 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[506837,489758,585656,50901,381152,578609],{857983:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:20,height:12,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m2.8 6 4.6 4.6L6 12 0 6l6-6 1.4 1.4L2.8 6Zm14.4 0-4.6 4.6L14 12l6-6-6-6-1.4 1.4L17.2 6Z",fill:"currentColor"})))}},702119:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),a||(a=i.createElement("path",{fill:"currentColor",d:"M5.41 9.59 4 11l4 4 4-4-1.41-1.41L9 11.17V4.83l1.59 1.58L12 5 8 1 4 5l1.41 1.41L7 4.83v6.34L5.41 9.59Z"})))}},685641:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),a||(a=i.createElement("path",{d:"M2.666 2.667h10.667v8H3.446l-.78.78v-8.78Zm0-1.334c-.733 0-1.326.6-1.326 1.334l-.007 12L4 12h9.333c.733 0 1.333-.6 1.333-1.333v-8c0-.734-.6-1.334-1.333-1.334H2.666ZM4 8h8v1.333H4V8Zm0-2h8v1.333H4V6Zm0-2h8v1.333H4V4Z"})))}},166211:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{d:"M6 8.5 9.5 12 6 15.5 2.5 12 6 8.5ZM12.5 2 16 5.5 12.5 9 9 5.5 12.5 2ZM19 8.5l3.5 3.5-3.5 3.5-3.5-3.5L19 8.5ZM12.5 15l3.5 3.5-3.5 3.5L9 18.5l3.5-3.5Z",stroke:"#current",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}},392558:function(e,t,n){"use strict";var a,i,o,l,r,s=n(44194);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",d({width:23,height:24,viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=s.createElement("circle",{cx:9,cy:14.5,r:1.9,fill:"currentColor",stroke:"currentColor"})),i||(i=s.createElement("path",{d:"m18.2 9.8 4.2-5c.1-.2 0-.4-.2-.4l-4 .3-.2-.2-.4-4c0-.2-.3-.3-.4-.1l-4.2 5s-.1.2 0 .2l1 3.6.2.2 3.8.5.2-.1Z",fill:"currentColor"})),o||(o=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m8.3 15 6-7.2.7.6-6 7.2-.7-.7Z",fill:"currentColor"})),l||(l=s.createElement("mask",{id:"a",fill:"#ffffff"},s.createElement("path",{d:"M9.8 5.5a9 9 0 1 0 8 6.8l-2.3.5a6.7 6.7 0 1 1-5.9-5l.2-2.3Z"}))),r||(r=s.createElement("path",{d:"M9.8 5.5a9 9 0 1 0 8 6.8l-2.3.5a6.7 6.7 0 1 1-5.9-5l.2-2.3Z",fill:"currentColor",stroke:"currentColor"})))}},611464:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"current",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 3.5L13.5 5.5H19.5V15.5H12.5L11.5 13.5H6.5V20.5H4.5V3.5H12.5ZM13.5 13.5H17.5V7.5H12.5L11.5 5.5H6.5V11.5H12.5L13.5 13.5Z",fill:"current"})))}},436139:function(e,t,n){"use strict";var a,i,o=n(44194);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({width:20,height:21,viewBox:"0 0 20 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2 5a6 6 0 0 1 2.7 4.2l2-.3a8 8 0 0 0-3.7-5.7l-1 1.7ZM15.2 13a6 6 0 0 1-4.1 3l.3 2a8 8 0 0 0 5.5-4l-1.7-1ZM6.9 15.2A6 6 0 0 1 4 10.9l-2 .3A8 8 0 0 0 5.8 17l1-1.7ZM5 6.8A6 6 0 0 1 9.3 4L9 2a8 8 0 0 0-5.7 3.6l1.7 1Z"})),i||(i=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM10.2 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM17 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM3 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"})))}},354069:function(e,t,n){"use strict";var a,i,o,l=n(44194);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return l.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-alert-octagon"},e),a||(a=l.createElement("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"})),i||(i=l.createElement("line",{x1:12,y1:8,x2:12,y2:12})),o||(o=l.createElement("line",{x1:12,y1:16,x2:12.01,y2:16})))}},681860:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 96 960 960",width:24},e),a||(a=i.createElement("path",{d:"m424 760 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197 859q-54-54-85.5-127T80 576q0-83 31.5-156T197 293q54-54 127-85.5T480 176q83 0 156 31.5T763 293q54 54 85.5 127T880 576q0 83-31.5 156T763 859q-54 54-127 85.5T480 976Z"})))}},652959:function(e,t,n){"use strict";var a,i,o=n(44194);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24},e),a||(a=o.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"})),i||(i=o.createElement("path",{d:"M19 5v4H4V5h15m0 10v4H4v-4h15m1-12H3a1 1 0 00-1 1v6c0 .6.5 1 1 1h17c.6 0 1-.5 1-1V4c0-.6-.5-1-1-1zm0 10H3a1 1 0 00-1 1v6c0 .6.5 1 1 1h17c.6 0 1-.5 1-1v-6c0-.6-.5-1-1-1z"})))}},136830:function(e,t,n){"use strict";var a,i,o,l,r=n(44194);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",s({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=r.createElement("path",{d:"M14.7673 2.2207H3.82787C2.94394 2.2207 2.22266 2.94199 2.22266 3.81884V13.3511C2.22266 14.228 2.94394 14.9492 3.82787 14.9492H10.0012V13.535H3.82787C3.7218 13.535 3.63694 13.4501 3.63694 13.3511V6.46355H14.9512V10.5791L16.3655 11.3923V3.81884C16.3655 2.94199 15.6513 2.2207 14.7673 2.2207ZM14.9512 5.04927H3.63694V3.81884C3.63694 3.71984 3.7218 3.63499 3.82787 3.63499H14.7673C14.8663 3.63499 14.9512 3.71984 14.9512 3.81884V5.04927Z",fill:"current"})),i||(i=r.createElement("path",{d:"M17.4399 13.64C17.4399 13.64 17.4328 13.6259 17.4257 13.6259L16.365 13.0248L14.9507 12.2116L12.4758 10.7973C12.4758 10.7973 12.4545 10.7903 12.4475 10.7832C12.2353 10.6701 11.9808 10.6842 11.7686 10.7973C11.5494 10.9246 11.415 11.
1158 11.415 11.4125V17.0697C11.415 17.3242 11.5494 17.5576 11.7686 17.6778C11.8818 17.7415 12.002 17.7768 12.1222 17.7768C12.2283 17.7768 12.3273 17.7556 12.4263 17.7061C12.4475 17.7061 12.4616 17.692 12.4758 17.6849L17.4257 14.8563C17.4257 14.8563 17.4328 14.8493 17.4399 14.8422C17.652 14.7149 17.7793 14.4886 17.7793 14.2411C17.7793 13.9936 17.652 13.7673 17.4399 13.64ZM12.8293 15.8534V12.6288L14.4133 13.534L15.6508 14.2411L14.4133 14.9483L12.8293 15.8534Z",fill:"current"})),o||(o=r.createElement("path",{d:"M6.46506 7.87695H5.05078V9.29124H6.46506V7.87695Z",fill:"current"})),l||(l=r.createElement("path",{d:"M9.29416 7.87695H7.87988V9.29124H9.29416V7.87695Z",fill:"current"})))}},720572:function(e,t,n){"use strict";var a,i,o=n(44194);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=o.createElement("path",{d:"M12.7 22h4c1.1 0 2-.8 2-1.8v-3.5c0-.1.2-.3.3-.2 1 0 3-.3 3-2.7 0-2.4-1.9-3-3-2.8-.1 0-.3-.1-.3-.3V7.4c0-1-.9-1.8-2-1.8H14c-.2 0-.3-.2-.3-.3 0-1.2-1-3.3-3.1-3.3C7.9 2 6.9 3.8 7 5.3c0 .1-.1.3-.3.3H4c-1.1 0-2 .8-2 1.8V11s.1.2.3.2c1.1 0 3 .5 3 2.5 0 2.4-2 2.8-3 2.8-.2 0-.3.2-.3.3v3.5s0 0 0 0c0 1 .9 1.8 2 1.8h8.7Z",stroke:"#current",strokeWidth:2,strokeLinecap:"square"})),i||(i=o.createElement("path",{d:"m10.6 10.2 2.6 2.6c.1.1.1.3 0 .4L10.7 16",stroke:"#current",strokeWidth:2,strokeLinecap:"round"})))}},275307:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:12,height:19,viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{d:"M5 9.8c.8-1.3 2.3-2.2 3.2-3.4.9-1.3.4-3.7-2.2-3.7C4.3 2.7 3.5 4 3.1 5L.5 4C1.2 1.8 3.2 0 6 0c2.3 0 4 1 4.8 2.4.7 1.2 1 3.3 0 5-1.2 1.7-2.4 2.2-3 3.4-.2.4-.3.7-.3 2.2h-3c0-.8 0-2 .6-3.2ZM8 17a2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2a2 2 0 0 1 2 2Z",fill:"current"})))}},325713:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"current",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.82 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22H5C4.86 22 4.73 21.99 4.6 21.97C4.21 21.89 3.86 21.69 3.59 21.42C3.41 21.23 3.26 21.02 3.16 20.78C3.06 20.54 3 20.27 3 20V6C3 5.72 3.06 5.46 3.16 5.23C3.26 4.99 3.41 4.77 3.59 4.59C3.86 4.32 4.21 4.12 4.6 4.04C4.73 4.01 4.86 4 5 4H9.18C9.6 2.84 10.7 2 12 2C13.3 2 14.4 2.84 14.82 4ZM7 10V8H17V10H7ZM17 14V12H7V14H17ZM14 16H7V18H14V16ZM12 3.75C12.41 3.75 12.75 4.09 12.75 4.5C12.75 4.91 12.41 5.25 12 5.25C11.59 5.25 11.25 4.91 11.25 4.5C11.25 4.09 11.59 3.75 12 3.75ZM5 20H19V6H5V20Z",fill:"current"})))}},553897:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z",fill:"current"})))}},806419:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:16,height:22,viewBox:"0 0 16 22",fill:"
1current",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 7.5h1c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H2c-1.1 0-2-.9-2-2v-10c0-1.1.9-2 2-2h1v-2c0-2.76 2.24-5 5-5s5 2.24 5 5v2Zm-5-5c-1.66 0-3 1.34-3 3v2h6v-2c0-1.66-1.34-3-3-3Zm-6 17v-10h12v10H2Zm8-5c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Z"})))}},603173:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0533 0C8.23178 0 6.89962 0.70496 6.10195 1.77452C5.60862 2.43599 5.34697 3.20198 5.28561 3.94842H3.08336C1.41475 3.94842 0.0259637 5.27933 0.0259637 6.95706V12.0217H1.02596C1.50895 12.0217 2.20596 12.1114 2.74347 12.3922C3.21781 12.64 3.53995 13.0049 3.53995 13.7073C3.53995 14.8258 3.09819 15.2861 2.66306 15.5331C2.13929 15.8304 1.47459 15.8907 1.02596 15.8907H0.0294409L0.0259698 16.8872C0.0208575 18.3549 0.0182714 19.3806 0.0169633 20.0395C0.0163093 20.3689 0.0159747 20.6067 0.0158036 20.7622L0.015625 20.9914C0.015625 22.6755 1.42136 24 3.08336 24H16.5237C18.1857 24 19.5914 22.6755 19.5914 20.9914V17.8856C20.0579 17.8408 20.5712 17.7187 21.0597 17.4766C21.5858 17.2157 22.098 16.8074 22.4737 16.1967C22.8493 15.586 23.0526 14.831 23.0526 13.9327C23.0526 12.1163 22.2604 10.9195 21.1705 10.3059C20.6693 10.0238 20.1171 9.87454 19.5914 9.84059V6.95706C19.5914 5.27289 18.1857 3.94842 16.5237 3.94842H14.274C14.2582 3.84011 14.2382 3.73275 14.2149 3.62731C14.0967 3.09395 13.874 2.52838 13.544 2.00625C12.8818 0.958344 11.7195 0 10.0533 0ZM7.31793 4.72902C7.1978 4.19481 7.30297 3.5095 7.70517 2.97021C8.08062 2.46678 8.78442 2 10.0533 2C10.8548 2 11.4507 2.43758 11.8534 3.07474C12.0559 3.39514 12.1923 3.74439 12.2622 4.05979C12.3356 4.39125 12.3197 4.61042 12.2977 4.69364L11.9671 5.94842H16.5237C17.1362 5.94842 17.5914 6.43173 17.5914 6.95706V12.5113L18.9966 11.8886C19.1598 11.8162 19.6933 11.7695 20.1894 12.0487C20.5914 12.275 21.0526 12.7689 21.0526 13.9327C21.0526 14.5245 20.9212 14.9033 20.7701 15.1489C20.6191 15.3944 20.4127 15.565 20.1714 15.6847C19.6433 15.9465 19.025 15.9248 18.8327 15.877L17.5914 15.5683V20.9914C17.5914 21.5167 17.1362 22 16.5237 22H3.08336C2.47086 22 2.01562 21.516 2.01562 20.9907L2.0158 20.7644C2.01597 20.6095 2.01631 20.3724 2.01696 20.0434C2.01797 19.5334 2.01975 18.8028 2.02288 17.8166C2.52427 17.7389 3.10397 17.5825 3.65031 17.2724C4.72301 16.6636 5.53995 15.5322 5.53995 13.7073C5.53995 12.1201 4.66986 11.1422 3.6696 10.6196C3.12826 10.3367 2.54592 10.1812 2.02596 10.1002V6.95706C2.02596 6.42529 2.47746 5.94842 3.08336 5.94842H7.59215L7.31793 4.72902ZM14.4448 12.9744L10.029 8.58582L8.61914 10.0044L11.6327 12.9994L8.69868 16.0208L10.1335 17.4141L14.4448 12.9744Z",fill:"current"})))}},381152:function(e,t,n){"use strict";n.r(t);var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.default=function(e){return i.createElement("svg",o({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("path",{d:"M11.952 9.285a1.333 1.333 0 0 0-.681-.365l-1.592-.318a4 4 0 0 0-2.573.344l-.212.106a4 4 0 0 1-2.573.345l-1.288-.258c-.437-.087-.89.05-1.204.365m2.504-7.838h5.334L9 2.333V5.78c0 .354.14.693.39.943l3.334 3.333c.84.84.245 2.277-.943 2.277H2.219c-1.188 0-1.783-1.437-.943-2.277l3.333-3.333c.25-.25.39-.589.39-.943V2.333l-.666-.667Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}},323330:function(e,t,n){"use strict";var a,i=n(44194);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({width:956,height:1343,viewBox:"0 0 956 1343",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=i.createElement("g",{opacity:.05}
1,i.createElement("circle",{cx:671.5,cy:671.5,r:670.655,stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("path",{d:"M1179.98 670.655C1179.98 951.014 952.328 1178.29 671.5 1178.29C390.672 1178.29 163.018 951.014 163.018 670.655C163.018 390.296 390.672 163.018 671.5 163.018C952.328 163.018 1179.98 390.296 1179.98 670.655Z",stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("path",{d:"M1011.05 668.966C1011.05 856.026 859.031 1007.67 671.5 1007.67C483.969 1007.67 331.949 856.026 331.949 668.966C331.949 481.906 483.969 330.26 671.5 330.26C859.031 330.26 1011.05 481.906 1011.05 668.966Z",stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("circle",{cx:139.368,cy:1082,r:16.0484,fill:"#F5F5FF"}),i.createElement("circle",{cx:139.368,cy:1082,r:15.2038,stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("circle",{cx:708.666,cy:1009.36,r:16.0484,fill:"#F5F5FF"}),i.createElement("circle",{cx:708.666,cy:1009.36,r:15.2038,stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("circle",{cx:46.4558,cy:421.483,r:16.0484,fill:"#EEEEFF"}),i.createElement("circle",{cx:46.4558,cy:421.483,r:15.2038,stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931}),i.createElement("g",{opacity:.4},i.createElement("circle",{cx:375.871,cy:831.984,r:16.0484,fill:"#F5F5FF"}),i.createElement("circle",{cx:375.871,cy:831.984,r:15.2038,stroke:"#E9E4FF",strokeOpacity:.8,strokeWidth:1.68931})))))}},769526:function(e,t){"use strict";t.Z="ai_adaptive_learning"},368169:function(e,t){"use strict";t.Z="enable_signup_on_lessons"},641884:function(e,t){"use strict";t.Z="institute_discount_percentage"},602108:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});let a="Untitled Masterpiece"},808220:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});let a={IN_PROGRESS:1001,FAILED:1002,SUCCESS:1003}},580811:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});let a={OVERVIEW:"course-homepage-overview",LEARNING_OBJECTIVES:"course-homepage-learning-objectives",TAKEAWAY_SKILLS:"course-homepage-takeaway-skills",WHAT_YOU_WILL_LEARN:"what-you'll-learn",COURSE_CONTENT_INCLUDES:"couse-homepage-content-includes",CONTENT:"course-homepage-content",LEARN:"course-homepage-learn",RELATED_CONTENT:"course-homepage-related-content",RECOMMENDATIONS:"course-homepage-recommendations",PAYMENT_WIDGET:"course-homepage-payment-widget",MAIN_CONTENT:"course-homepage-main-div",MAIN_CONTENT_LOADER:"course-homepage-main-div-loader",TABS:"course-homepage-tabs",HEADER:"course-homepage-header",TESTIMONIAL:"course-homepage-testimonial",SIGNUP_SECTION:"course-homepage-signup-section",V2_LEARNER_REVIEWS:"learner-reviews"}},237329:function(e,t,n){"use strict";var a,i;n.d(t,{v:function(){return a}}),(i=a||(a={})).PROJECTS="projects",i.ASSESSMENTS="assessments",i.CLOUDLABS="cloudlabs"},790881:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});let a="undefined"!=typeof jest},31843:function(e,t,n){"use strict";var a,i;n.d(t,{o:function(){return a}}),(i=a||(a={})).WAIT="WAIT",i.SUCCESS="SUCCESS",i.ERROR="ERROR",i.INFO="INFO"},359941:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});let a={MODAL:"Modal",SIGNUP_PAGE:"Signup_page",PREVIEWABLE_LOCKEDLESSON:"Previewable_LockedLesson",OTL:"OTL",CODE_EXECUTION_ANSWERS:"Code_Execution_Answers",CHEATSHEETS:"Cheatsheets",ASSESSMENTS:"Assessments",CODE_EXECUTION_BLOGS:"Code_Execution_Blogs",LANDING_PAGE_B2C:"Landing_Page_B2C",COURSE_HOMEPAGE:"Course_Homepage",PRICING_PAGE:"Pricing_Page",MOCK_INTERVIEW_DASHBOARD:"Mock_Interview_Dashboard",PALIFIED_COURSE_DISRUPTIVE_MODAL:"Palified_Course_Disruptive_Modal"}},605260:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});let a={EDIT:101,SUBMITTED_FOR_PROOFREAD:102,IN_PROOFREAD:103,AWAITING_ADMIN_REVIEW:104,AWAITING_AUTHOR_REVIEW:105,AWAITING_ADMIN_APPROVAL:106}},405358:function(e,t,n){"use strict";var a,i,o,l;n.d(t,{L:function(){return a},f:function(){return i}}),(o=a||(a={})).MARKDOWN="MarkdownEditor",o.COLUMNS="Columns",o.ENV_VARIABLE_BUTTON="EnvVariableButton",o.CODE="Code",o.SPA="WebpackBin",o.CODE_TEST="CodeTest",o.GUI_APP="VNC",o.CODE_TABS="TabbedCode",o.QUIZ="Qu
1iz",o.QA="StructuredQuiz",o.MATCH_ANSWERS="MatchTheAnswers",o.HINT="SpoilerEditor",o.SLIDES="CanvasAnimation",o.DRAWING="DrawIO",o.CHART="Chart",o.IMAGE="Image",o.IMAGE_V3="ImageV3",o.SKETCH_V2="SketchV2",o.MERMAID_V2="MermaidV2",o.MERMAID11="Mermaid11",o.LATEX="Latex",o.IMPORT_MD="MarkdownPaste",o.HEADING1="Heading1",o.HEADING2="Heading2",o.HEADING3="Heading3",o.HEADING4="Heading4",o.HEADING5="Heading5",o.BULLETED_LIST="bulletedList",o.NUMBERED_LIST="numberedList",o.QUOTE="blockQuote",o.DIVIDER="horizontalRule",o.CLEAR_FORMATTING="clearFormatting",o.CALLOUT="callout",o.EMOJI="Emoji",o.DRAWING_OLD="MxGraphWidget",o.DRAW_IO_WIDGET="DrawIOWidget",o.SKETCH="Sketch",o.GRAPH="Graph",o.MATRIX="Matrix",o.LINKED_LIST="LinkedList",o.ARRAY="EducativeArray",o.BINARY_TREE="BinaryTree",o.NARY_TREE="NaryTree",o.STACK="Stack",o.HASH_TABLE="HashTable",o.EQUATION="Equation",o.GRAPHVIZ="Graphviz",o.ANIMATION="GvAnimation",o.RUNJS="RunJS",o.FREEHAND_NEW="SVGEdit",o.FREEHAND="SVG",o.TEXT="CanvasText",o.IMAGE_DEPRECATED="CanvasImage",o.TEXT_EDITOR="TextEditor",o.HEADING="Heading",o.LOGOS="CompanyLogos",o.HEADING_AND_CTA="HeadingAndCTA",o.FILE="File",o.PDF="EmbedPDF",o.VIDEO="Video",o.LIVE_APP="LiveApp",o.SEQUENCE_DIAGRAM="SequenceDiagrams",o.TERMINAL="TerminalWidget",o.MARKETING_FAQ="FAQMarketing",o.SPOT_FEATURE="SpotFeatures",o.HERO_FEATURE="HeroFeature",o.HUBSPOT_FORM="HubspotForm",o.CAROUSEL="Carousel",o.TESTIMONIAL_MARKETING="TestimonialsMarketing",o.ACTIVE_CAMPAIGN_FORM="ActiveCampaignForm",o.WORK_PREVIEW="WorkPreview",o.RECRUITING_COST_CALCULATOR="RecruitingCostCalculator",o.ANDROID="Android",o.QuizV2="QuizV2",o.BUTTON_LINK="ButtonLink",o.TESTIMONIAL="Testimonials",o.VIDEO_RECORDER="VideoRecorder",o.INSTA_CALC="InstaCalc",o.CODE_DRAWING="CodeDrawing",o.UML="UML",o.TABLEV2="TableV2",o.TABLE="Table",o.MARKETING_TABLE="MarketingTable",o.MARKMAP="MarkMap",o.MERMAID="Mermaid",o.CANVAS="Canvas",o.NOTEPAD="Notepad",o.PERMUTATION="Permutation",o.PERMUTATION_V2="PermutationV2",o.CONFLUENCE="Confluence",o.B2C_PRICING="B2CPricing",o.B2B_PRICING="B2BPricing",o.L2C_PRICING="L2CPricing",o.QUEST="Adaptive",o.CHECKLIST="CheckList",o.XR="VR",o.SANDPACK="Sandpack",o.HTML="HTML",o.API="APIWidget",o.GOOGLE_DRIVE="GoogleDrive",o.CONTENT_CAROUSEL="ContentCarousel",o.EDITOR_CODE="EditorCode",o.AI_PROMPT="PromptAI",o.VIDEOV2="VideoV2",o.INLINE_LATEX="InlineLatex",o.BLOCK_KATEX="katex",o.AI_NOTEPAD="AINotepad",o.AI_CODE="AIMentor",o.AI_CODE_TEST="AICodeReview",o.ASK_AI="AskAI",o.ASK_AI_SUMMARIZE="AskAISummarize",o.ASK_AI_CONTINUE_WRITING="AskAIContinueWriting",o.ASK_AI_MAKE_SHORT="AskAIMakeShort",o.ASK_AI_MAKE_LONG="AskAIMakeLong",o.ASK_AI_SIMPLIFY_LANGUAGE="AskAISimplifyLanguage",o.ASK_AI_FORMAT_CONTENT="AskAIFormatContent",o.ASK_AI_CHANGE_TONE="AskAIChangeTone",o.ASK_AI_BRAINSTORM="AskAIBrainstorm",o.ASK_AI_MEETING_AGENDAS="AskAIMeetingAgendas",o.ASK_AI_MEETING_NOTES="AskAIMeetingNotes",o.ASK_AI_ACTION_ITEMS="AskAIActionItems",o.ASK_AI_PRODUCT_PAGER="AskAIProductPager",o.ASK_AI_CLASS_DIAGRAM="AskAIClassDiagram",o.ASK_AI_SEQUENCE_DIAGRAM="AskAISequenceDiagram",o.ASK_AI_FLOW_DIAGRAM="AskAIFlowDiagram",o.ASK_AI_STATE_DIAGRAM="AskAIStateDiagram",o.ASK_AI_CONVERT_TO_CODE="AskAIConvertToCode",o.ASK_AI_DATABASE_SCHEMA="AskAIDatabaseSchema",o.ASK_AI_AI_SCHEMA="AskAIAISchema",o.ASK_AI_ER_DIAGRAM="AskAIERDiagram",o.ASK_AI_API_END_POINT="AskAIAPIEndPoint",o.PAYWALL_SLIDER="PaywallSlider",o.DEBUGGER="Debugger",o.FLASH_CARD="FlashCard",o.D2_DIAGRAM="D2Diagram",(l=i||(i={})).LEFT="left",l.RIGHT="right"},596698:function(e,t,n){"use strict";n.d(t,{f:function(){return s},i:function(){return r}});let a={keywords:{regex:/#key# [^#|^\n]+:[^#|^\n]+ #key#/g,parse:e=>{let t=e.slice(6,-6),n=t.match(/[^:|^\n]+:/g),a=t.match(/:[^\n]+/g);return{word:n&&n[0].slice(0,-1).trim(),meaning:a&&a[0].substring(1).trim()}},transform:e=>{let{word:t,meaning:n}=e;return t&&n?"<keyword><word>".concat(t,"</word><meaning>").concat(n,"</meaning></keyword>"):null}},concepts:{regex:/#concept=[^#|^\n]+#[^\n]+#concept#/g,parse:e=>{let t=e.match(/#concept=[^#|^\n]+#/g)[0],n=t.slice(9,-1).trim();return{word:e.slice(t.length).match(/[^\n]+#concept#/g)[0].slice(0,-9).trim(),name:n}},transform:e=>
1{let{word:t,name:n}=e;return t&&n?"<concept><word>".concat(t,"</word><name>").concat(n,"</name></concept>"):null}},abbreviation:{regex:/#abbr# [^#|^\n]+:[^#|^\n]+ #abbr#/g,parse:e=>{var t,n;let a=e.slice(7,-7).split(":");return{abbr:null===(t=a[0])||void 0===t?void 0:t.trim(),word:null===(n=a[1])||void 0===n?void 0:n.trim()}},transform:e=>{let{word:t,abbr:n}=e;return t&&n?"<abbr title='".concat(t,"'>").concat(n,"</abbr>"):null}},id:{regex:/#id=[^#|^\n]+#/g,parse:e=>({divId:e.match(/#id=[^#|^\n]+#/g)[0].slice(4,-1).trim()}),transform:e=>{let{divId:t}=e;return t?'<span id="'.concat(t,'" />'):null}},lineBreak:{regex:/#br#/g,parse:()=>{},transform:()=>"<br/>"},redirect:{regex:/{redirect=[^}|^\n]+}[^\n]+{redirect}/g,parse:e=>{let t=/{redirect=([^}|^\n]+)}([^\n]+){redirect}/g.exec(e);return t?{href:t[1].trim(),text:t[2].trim()}:null},transform:e=>{let{href:t,text:n}=e;return t&&n?'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer">').concat(n,"</a>"):null}},color:{regex:/#color=[^#|^\n]+#[^#|^\n]+#color#/g,parse:e=>{let t=e.match(/#color=[^#|^\n]+#/g)[0],n=t.slice(7,-1).trim();return{text:e.slice(t.length).match(/[^\n]+#color#/g)[0].slice(0,-7).trim(),colorName:n}},transform:e=>{let{text:t,colorName:n}=e;return t&&n?"<span ".concat(o[n.toLowerCase()]," >").concat(t,"</span>"):null}},image:{regex:/#img[^\n]+#/g,parse:e=>{var t,n,a,o,l;let r=i(/src=("[-a-zA-Z0-9@:%._\+~#?&//=]+")/,e),s=null===(t=r.info)||void 0===t?void 0:t[1],d=null===(n=(r=i(/width=("[a-zA-Z0-9%]+")/,r.matched)).info)||void 0===n?void 0:n[1],c=null===(a=(r=i(/height=("[a-zA-Z0-9%]+")/,r.matched)).info)||void 0===a?void 0:a[1];return{srcUrl:s,width:d,height:c,alignment:null===(o=(r=i(/align="([a-zA-Z]+)"/,r.matched)).info)||void 0===o?void 0:o[1],altText:null===(l=(r=i(/alt=("[^#\n"]+")/,r.matched)).info)||void 0===l?void 0:l[1],matched:e=r.matched.replace(/#img\s*#/,"")}},transform:e=>{let{srcUrl:t,width:n,height:a,alignment:i,altText:o,matched:l}=e;return!t||l.length?null:'<div class="w-full flex '.concat({left:"justify-start",right:"justify-end",middle:"justify-center"}[i],'"><img src=').concat(t," width=").concat(n," height=").concat(a," alt=").concat(o,"/></div>")}}},i=(e,t)=>{let n=t.match(e);return t=t.replace(null==n?void 0:n[0],""),{info:n,matched:t}},o={blue:'class="text-indigo-500 dark:text-indigo-200"',green:'class="text-teal-800 dark:text-teal-600"',purple:'class="text-fuchsia-500 dark:text-fuchsia-300"',"purple-gradient":'style="-webkit-background-clip:text; -webkit-text-fill-color: transparent;" class="bg-gradient-to-r from-indigo-500 to-fuchsia-800 dark:from-indigo-300 dark:to-fuchsia-600"',"red-gradient":'style="-webkit-background-clip:text; -webkit-text-fill-color: transparent;" class="bg-gradient-to-r from-fuchsia-800 to-red-600 dark:from-purple-500 dark:to-red-300"'},l=(e,t)=>{let{regex:n,parse:a,transform:i}=t;for(let t of e.match(n)||[]){let n=i(a(t));n&&(e=e.replace(t,n))}return e},r=(e,t)=>{if(!e)return"";let n=t.reduce((e,t)=>({...e,[t]:!0}),{});for(let t of Object.entries(a)){let[a,i]=t;n[a]||(e=l(e,i))}return e},s=(e,t)=>{let n=a[t];if(!n)return[];let{regex:i,parse:o}=n;return(e.match(i)||[]).map(o)}},395454:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var a=n(881762);let i=(e,t,n)=>{let i="/api/cloud-course-session/".concat(e,"/").concat(t,"/").concat(n);return(0,a.Z)({url:i,type:"POST"})}},32144:function(e,t,n){"use strict";n.d(t,{_:function(){return b}});var a=n(226142),i=n(520649),o=n(237329);let l={[i.dL.SKILL_ASSESSMENT]:o.v.ASSESSMENTS,[i.dL.STANDALONE_PROJECT]:o.v.PROJECTS,[i.dL.STANDALONE_CLOUD_LAB]:o.v.CLOUDLABS};var r=n(161514),s=n(255049),d=n(991608),c=n(865546),u=n(428405),h=n(468518),p=n(389392),v=n(242075),m=n(621062),g=n(836753),_=n(493415),f=n(810343),x=n(822616);let b=e=>{let{userInfoState:t,params:n,router:o,collectionActions:b,ignoreLoadingState:y=!1,disableAllRedirections:w=!1,isModulePreview:C=!1,rethrowError:E=!1,setLoaderStateDispatch:A=e=>{},setNotFound:T=e=>{},shouldSetDocker:S=!0,resolvedPath:N=""}=e;return e=>{var L,k,j,I;let O=null==o?void 0:null===(L=o.query)||void 0===L?void 0:L.test_lab;A({isLoading:!0,isLoaded:!1});let R=N||(null==o?void 0:o.asPath),P=(null==o?void 0:null===(k=o.query)||void 0===k?void 0:k.work_type)||(0,_.Z)(R),D=R.includes("/plan/"),M=new a.Z,U=M.decode(null==o?void 0:null===(j=o.query)||void 0===j?void 0:j.encodedPathInfo),Z=(0,h.M)(R);n.work_type||(n=(null==o?void 0:null===(I=o.query)||void 0===I?void 0:I.palGroupSlug)?{...n,work_type:i.dL.COLLECTION}:{...n,work_type:P});let B=/(collection|path|module)editor\/([0-9]{1,16})\/([0-9]{1,16})$/;return(0,s.D)({...n,isModulePreview:C,cloudCourseTestMode:O,isPAL:Z}).then(async a=>{var s,d,c;let{data:p}=a,v=JSON.parse(p),m=null==v?void 0:null===(s=v.instance)||void 0===s?void 0:s.details,_=m.work_type,f=m.author_id,E=m.collection_id,A=m.collection_type,T=[i.Lc.APPROVED,i.Lc.APPROVED_FOR_EARLY_ACCESS].includes(m.approval_status);P!==_&&n.is_draft_page&&B.test(null==o?void 0:o.asPath)&&!w&&o.replace("/".concat(_,"editor/").concat(f,"/").concat(E)),v={...v,collectionId:E,authorId:f};let N=R.includes("/mock-interview")||R.includes("/coaching-session"),L=(0,h.i)(R,!1)&&N,k=Z&&R.includes("/project"),j=Z&&R.includes("/assessment");
1if(n.author_id&&!n.course_url_slug&&m.url_slug&&!(n.is_draft_page||C)&&(T||A!==i.dL.COLLECTION)&&!L&&!k&&!j){let e;(0,r.Z)("REDIRECTION","FRIENDLY_URL_REDIRECTION");let t=[i.dL.SKILL_ASSESSMENT,i.dL.STANDALONE_PROJECT,i.dL.STANDALONE_CLOUD_LAB].includes(A);if(t&&!U)e="/".concat(l[A],"/").concat(m.url_slug);else if(!t){let t=(0,g.Z)(P,!!n.page_id);e="/".concat(t,"/").concat(m.url_slug),N?e+="/".concat(n.page_id,"/").concat(R.includes("/mock-interview")?"mock-interview":"coaching-session"):n.page_id&&(e+="/".concat("courses"===t&&o.query.page_url_slug?o.query.page_url_slug:M.encode(parseInt(n.page_id,10)))),R.split("#")[0].endsWith("/assessment")&&(e+="/assessment"),R.endsWith("/project")&&(e+="/project"),R.endsWith("/cloudlab")&&(e+="/cloudlab"),R.split("#")[0].endsWith("/certificate")&&(e+="/certificate"),R.split("#")[1]&&(e+="#".concat(R.split("#")[1]))}!w&&e&&o.replace(e)}let I=null==n?void 0:n.skipLiveInstanceFetch;return await e((0,x.dp)(v,null==n?void 0:n.is_draft_page,t,b,y,!I,S)),(null==v?void 0:null===(c=v.instance)||void 0===c?void 0:null===(d=c.details)||void 0===d?void 0:d.user_course_cloud_lab)&&(0,u.Q)(v,v.instance.details.user_course_cloud_lab,v.instance.details.course_cloud_lab.active_group_id,v.instance.details.course_cloud_lab.active_page_id),v}).then(()=>A({isLoaded:!0,isLoading:!1})).catch(t=>{if(t.message===d.pX.failedToFetch){(0,f.u)(t);return}if(t.toString()!==d.pX.requestAborted&&(t.message!==d.pX.programmaticallyCancelled&&(0,v.rU)(t,e,void 0,void 0,D),403===t.status?(T({notFoundPageStatus:!0}),A({isLoaded:!0,isLoading:!1})):t instanceof Response&&401!==t.status&&(A({isLoaded:!1,isLoading:!1,isError:!0}),e(p.n.show(c.ad,{status:"ERROR",text:(0,m.n)(t)||"Unable to load Collection"}))),E))throw t})}}},255049:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var a=n(881762);let i=e=>{let t,{author_id:n,collection_id:i,course_url_slug:o="",pathUrlSlug:l="",pageUrlSlug:r="",is_draft_page:s=!1,work_type:d,path_author_id:c=null,path_id:u=null,isModulePreview:h=!1,cloudCourseTestMode:p=!1,backendProxyUrl:v="",cookies:m="",isPAL:g=!1}=e;return t=o?"collection/".concat(o,"?work_type=").concat(d):l&&r?"".concat(g?"pal":"interview-prep","/collection/").concat(l,"/page/").concat(r,"?work_type=").concat(d):s&&!h?"author/".concat(n,"/collection/").concat(i,"?work_type=").concat(d).concat(c&&u?"&path_author_id=".concat(c,"&path_id=").concat(u):"").concat(p?"&test_lab=true":""):"collection/".concat(n,"/").concat(i,"?work_type=").concat(d).concat(c&&u?"&path_author_id=".concat(c,"&path_id=").concat(u):""),(0,a.Z)({url:"".concat(v,"/api/").concat(t),type:"GET",...m&&{headers:{cookie:m}}},!0)}},252759:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var a=n(881762);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n||"".concat(e,"/").concat(t);return(0,a.Z)({url:"/api/collection/".concat(o,"/get-recommendations").concat(i?"?fetch_recommendation_details=true":""),type:"GET"})}},254264:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var a=n(342015);let i=(e,t)=>n=>{t.reset(),a.E.getState().reset(),e({isLoading:!1,isLoaded:!1,isError:!1})}},822616:function(e,t,n){"use strict";n.d(t,{Uv:function(){return c},cv:function(){return u},dp:function(){return h}});var a=n(128839),i=n(823481),o=n(991608),l=n(783682),r=n(198144),s=n(699402),d=n(273650);let c=(0,a.ZP)((e,t)=>{var n,a,i;let o=null==e?void 0:null===(a=e.instance)||void 0===a?void 0:null===(n=a.details)||void 0===n?void 0:n.docker;o?((0,l.w)(o),o.envs=null!==(i=o.envs)&&void 0!==i?i:[],o.container.liveInstance=t):e.instance.details.docker=r.s4}),u=(0,a.ZP)(e=>{var t,n,a;let o=null==e?void 0:null===(n=e.instance)||void 0===n?void 0:null===(t=n.details)||void 0===t?void 0:t.toc;null==o||null===(a=o.categories)||void 0===a||a.forEach(e=>{e.id!==i.s||e.title||(e.title="Recovered Lessons")})}),h=function(e,t,a,i){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=!(arguments.length>5)||void 0===arguments[5]||arguments[5],h=!(arguments.length>6)||void 0===arguments[6]||arguments[6];return async p=>{var v;let m=n.g.loaderContext.stateLoader,g=!!(null===(v=a.data)||void 0===v?void 0:v.user_id)||(null==e?void 0:e.is_user_loggedin)||t,_=r&&(g||e.instance.details.allow_logged_out_executions)?await (0,s.w)(e.collectionId,e.authorId):{},f=c(e,_);if(f=u(f),!(l||m.isLoading))throw Error(o.pX.programmaticallyCancelled);if(i.set(f),h)return d.Z.getState().setObject(f.instance.details.docker)}}},174246:function(e,t,n){"use strict";n.d(t,{NJ:function(){return x},Os:function(){return m},fy:function(){return f},hy:function(){return _},it:function(){return v},km:function(){return p},nK:function(){return b},ny:function(){return g},sn:function(){return c.s}});var a=n(881762),i=n(719444),o=n(558902),l=n(511700),r=n(242075),s=n(967285),d=n(810343),c=n(119361);let u="CourseCompletion",h=(e,t,n)=>"".concat(n,"_").concat(e,"_").concat(t),p=e=>{let{author_id:t,collection_id:n}=e,i=h(t,n,u);return(0,a.Z)({url:"/api/".concat("userdata/map/".concat(i)),type:"GET"})},v=function(e,t,n,i){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,a.Z)({url:o?"/api/organization/".concat(n,"/").concat(i,"/plan/").concat(e,"/").concat(t,"/comments"):"/api/askforhelp/".concat(n,"/").concat(e,"/").concat(t,"/").concat(i),type:"GET"})},m=e=>t=>p(e).then(t=>{var n;let a={[h(e.author_id,e.collection_id,u)]:JSON.parse(t)};s.G.getState().set({data:a}),null===(n=e.callback)||void 0===n||n.call(e,a)}).catch(n=>{var a;(0,r.rU)(n,t,null,[404,401]),null===(a=e.callback)||void 0===a||a.call(e)}),g=e=>t=>{let{payload:{LAST_VISITED:n}}=e;return(0,l.n)(e).then(()=>s.G.getState().set({data:{LAST_VISITED:n}})).catch(e=>(0,r.rU)(e,t,null,[404]))},_=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return r=>{let{workType:s,...c}=e,{resumable:u,...h}=c.payload,p={...c,callback:n,payload:{...h,resumable:u,...t}};(0,l.n)(p).then(()=>(r(m(p)),a(!1),e.sendInteractionCall?(0,i.q)({...c,workType:s,router:o,payload:h}):null)).catch(e=>{(0,d.u)(e,{params:p.payload}),a(!0)})}},f=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e=>{},d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return c=>()=>{let{workType:p,...v}=e;return(0,o.g)(v,t,n,a).then(()=>{let e={[h(v.author_id,v.collection_id,u)]:{}};return s.G.getState().set({data:e}),l(!1),(0,i.q)({...v,workType:p,router:d,payload:{ALL_RESET:new Date().toString()}})}).catch(e=>{l(!0),(0,r.rU)(e,c,null,[404])})}},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return a=>()=>{let{workType:o,...s}=e;return(0,l.n)(s).then(()=>{var l;a(m(s));let r={...e,workType:o,router:n,payload:{ALL_DONE:null==e?void 0:null===(l=e.payload)||void 0===l?void 0:l.ALL_DONE}};return t(!1),(0,i.q)(r)}).catch(e=>{t(!0),(0,r.rU)(e,a,null,[404])})}},b=function(e,t,n,a,o,l,r,s,d){let c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";return(0,i.q)({author_id:e,collection_id:t,payload:o,prefix:null,path_id:l,path_author_id:r,projectId:n,attemptId:a,workType:s,skip_page_verification:d,resolvedPath:c})}},719444:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var a=n(226142),i=n(881762),o=n(326652),l=n(878018);let r=(e,t,n)=>"".concat(n,"_").concat(e,"_").concat(t),s=e=>{var t,n,s,d;let{author_id:c,collection_id:u,payload:h,prefix:p,workType:v,router:m,path_id:g,path_author_id:_,projectId:f,attemptId:x,skip_page_verification:b,resolvedPath:y=""}=e,w=y||(null==m?void 0:m.asPath);if((null==w?void 0:w.startsWith("/interview-prep"))&&((null==m?void 0:null===(t=m.query)||void 0===t?void 0:t.encodedPathInfo)||(null==m?void 0:null===(n=m.query)||void 0===n?void 0:n.path_author_id)&&(null==m?void 0:null===(s=m.query)||void 0===s?void 0:s.path_id))){if(null==m?void 0:null===(d=m.query)||void 0===d?void 0:d.encodedPathInfo){let[e,t]=new a.Z().decode(m.query.encodedPathInfo);_=e,g=t}else _=Number(m.query.path_author_id),g=Number(m.query.path_id)}let[C,E]=(0,l.$)(c,u);c=C||c,u=E||u;let A=f&&x?(0,o.L)({authorId:c,collectionId:u,documentId:f,attemptId:x,isProject:!0}):r(c,u,p||"CourseCompletion");return(0,i.Z)({url:"/api/userdata/map/".concat(A,"/interaction?work_type=").concat(v),type:"POST",data:{map_key_val:JSON.stringify(h),path_id:g,path_author_id:_,skip_page_verification:null!=b?b:!!(C&&E)}})}},558902:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var a=n(660869),i=n(881762);let o=(e,t,n,o)=>{let{author_id:l,collection_id:r,resumable_work_author_id:s}=e,d=(0,a.o)(l,r),c="/api/userdata/map/".concat(d,"?resumable_work=").concat(s,"_").concat(t,"&resumable_work_type=").concat(n);return o&&(c="".concat(c,"&has_external_work=").concat(o.toString())),(0,i.Z)({url:c,type:"DELETE"})}},119361:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var a=n(881762),i=n(242075),o=n(493415);let l=e=>t=>(0,a.Z)({url:"/api/userdata/interaction?work_type=".concat((0,o.Z)()),type:"POST",data:e}).catch(e=>(0,i.rU)(e,t,null,[404]))},511700:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var a=n(660869),i=n(881762);let o=e=>{let{author_id:t,collection_id:n,payload:o}=e,l=(0,a.o)(t,n);return(0,i.Z)({url:"/api/".concat("userdata/map/".concat(l)),type:"POST",data:{map_key_val:JSON.stringify(o)}})}},463958:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var a=n(881762);let i=async function(e){let{upload_url:t,file:n}=e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i&&(n=await fetch(n,{signal:o}).then(e=>e.blob()),URL.revokeObjectURL(n)),!n)return Promise.reject(Error("Invalid file!"));let l=new FormData;return l.append("file-0",n),(0,a.Z)({url:"".concat(t),processData:!1,type:"POST",data:l})}},542607:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(226142),i=n(263025),o=n(520649);let l=(e,t,n,l,r,s,d)=>(0,i.H)(e,t,l).then(i=>{let c=JSON.parse(i),u="/certificates?showModal=open";if(r){var h;let n=null!==(h=c.short_id)&&void 0!==h?h:new a.Z().encode(parseInt(e),parseInt(t),parseInt(r),c.revision);u+="&certificateHash=".concat(n)}
1let p=l===o.dL.PATH?s===o.Ss.LEARNING_PLAN?"#learning-plan":"#path":d===o.dL.STANDALONE_PROJECT?"#standalone-project":d===o.dL.STANDALONE_CLOUD_LAB?"#cloud-lab":"";n.push(u+p)}).catch(()=>n.push("/certificates?author_id=".concat(e,"&work_id=").concat(t,"&work_type=").concat(l)))},886138:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});let a=(e,t)=>t.push("/verify-certificate/".concat(e))},660869:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});let a=(e,t)=>e&&t?"".concat("CourseCompletion","_").concat(e,"_").concat(t):null},627290:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});var a,i,o=n(931549),l=n(226142),r=n(503346),s=n(44194),d=n(107565),c=n(336449),u=n(580811),h=n(345514),p=n(746931),v=n.n(p),m=n(368169),g=n(602108),_=n(86323),f=n(161514),x=n(704373),b=n(685641),y=n(392558),w=n(603173),C=n(381152);let E={[c.j.ASSESSMENT]:{icon:(0,o.jsx)(y.Z,{className:"h-4 w-4 fill-current text-blue-1000 dark:text-blue-50"}),title:"Assessment",description:"Pass the Course Assessments to test the skills you'll learn from this course"},[c.j.PROJECT]:{icon:(0,o.jsx)(w.Z,{className:"h-4 w-4 fill-current text-gray-L600 dark:text-gray-D25"}),title:"Project",description:"Get real world experience by completing the Mini Projects included in the course"},[c.j.EXTERNAL_PROJECT]:{icon:(0,o.jsx)(w.Z,{className:"h-4 w-4 fill-current text-gray-L600 dark:text-gray-D25"}),title:"Project",description:"Get real world experience by completing the Standalone Projects included in the course"},[c.j.CLOUD_LAB]:{icon:(0,o.jsx)(C.default,{className:"h-4 w-4 stroke-current text-teal-700 dark:text-teal-25"}),title:"Cloud Lab",description:"Get hands-on experience with Cloud Labs"},[c.j.LINKED_CLOUD_LAB]:{icon:(0,o.jsx)(C.default,{className:"h-4 w-4 stroke-current text-teal-700 dark:text-teal-25"}),title:"Cloud Lab",description:"Get hands-on experience with Cloud Labs"},[c.j.LINKED_MOCK_INTERVIEW]:{icon:(0,o.jsx)(b.Z,{className:"h-4 w-4 fill-current text-blue-600 dark:text-blue-50"}),title:"Mock Interview",description:"Practice your learning with Mock Interviews"}};function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var T=function(e){return s.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),a||(a=s.createElement("g",{clipPath:"url(#completed_lesson)"},s.createElement("circle",{cx:10,cy:10,r:10,fill:"#208705"}),s.createElement("path",{fill:"#FAFAFA",fillRule:"evenodd",d:"M13.8 7.2c.3.2.3.7 0 1l-4.6 4.6a.7.7 0 0 1-1 0l-2-2.1a.7.7 0 0 1 1-1l1.5 1.7L13 7.2c.2-.3.6-.3.9 0Z",clipRule:"evenodd"}))),i||(i=s.createElement("defs",null,s.createElement("clipPath",{id:"completed_lesson"},s.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"})))))},S=n(290016),N=n(837948),L=n(806419),k=n(865546),j=n(395124),I=n(389392),O=n(225329),R=n(264937),P=n(723804),D=n(853224),M=n(173656);let U=e=>{let{title:t,categoryType:n,isDraft:a,editUrl:i,viewUrl:l,id:r,isContentClickable:s=!0}=e;return(0,o.jsx)(v(),{prefetch:!1,...a?i:l,passHref:!0,className:"cursor-pointer rounded border-0 border-l-4 border-solid py-3 pl-3 ".concat(s?"":"pointer-events-none ").concat(n===c.j.PROJECT?"border-gray-L600 hover:bg-gray-L50 dark:border-gray-D1000":n===c.j.ASSESSMENT?"border-blue-600 hover:bg-blue-50/50 dark:border-blue-200":n===c.j.LINKED_MOCK_INTERVIEW?"border-blue-600 hover:bg-blue-50/50 dark:border-blue-200":"border-teal-700 hover:bg-teal-25 dark:border-teal-300"," dark:hover:bg-gray-D1400"),id:"selenium-collection-cat-link_".concat(n,"_").concat(r),children:(0,o.jsxs)("div",{className:"flex gap-x-4",children:[(0,o.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-solid p-2 ".concat(n===c.j.PROJECT?"border-gray-D200 bg-gray-L50 dark:border-gray-D900 dark:bg-gray-D1200":n===c.j.ASSESSMENT?"border-blue-50 bg-blue-50 dark:border-blue-600 dark:bg-blue-1000":n===c.j.LINKED_MOCK_INTERVIEW?"border-blue-50 bg-blue-50 dark:border-gray-D1000 dark:bg-gray-D1200":"border-teal-100 bg-teal-25 dark:border-teal-700 dark:bg-teal-700"," flex-shrink-0"),children:E[n].icon}),(0,o.jsxs)("div",{className:"w-full space-y-1",children:[t&&(0,o.jsx)("p",{className:"heading-six m-0 ".concat(n===c.j.PROJECT?"text-gray-L700  dark:text-gray-D50":n===c.j.ASSESSMENT?"text-blue-1000 dark:text-blue-50":n===c.j.LINKED_MOCK_INTERVIEW?"text-blue-1000 dark:text-teal-25":"text-teal-700 dark:text-teal-25"),children:t}),(0,o.jsx)("p",{className:"body-small text-gray-L700 dark:text-gray-D200",children:"".concat(a&&[c.j.LINKED_CLOUD_LAB].includes(n)?"Linked ":"").concat(E[n].title)})]})]})})},Z=e=>{let{categoriesLength:t,collapseCategory:n,collapsed:a,index:i,categoryCompletion:l=!1,categoryIndex:r,t
1itle:s,numberOfPages:d,summary:u=""}=e;return(s!==c.V||t>1)&&(0,o.jsxs)("div",{className:"flex w-full cursor-pointer flex-col hover:bg-gray-L50 dark:hover:bg-gray-D1400",onClick:()=>n(i),children:[(0,o.jsxs)("div",{className:"flex items-center justify-between py-2 pl-2 sm:px-3 lg:px-4",children:[(0,o.jsxs)("div",{className:"flex w-full space-x-4 sm:items-center",children:[l?(0,o.jsx)(T,{className:"h-8 w-8 flex-shrink-0"}):(0,o.jsxs)("div",{className:"heading-six flex h-8 w-8 items-center text-gray-D1200 dark:text-gray-D50",children:[r,"."]}),(0,o.jsxs)("div",{className:"flex w-full flex-col pr-6 sm:flex-row sm:items-center sm:justify-between",children:[(0,o.jsx)("p",{className:"heading-five content-default-emphasis mb-0 mt-0 font-medium",children:s}),(0,o.jsxs)("p",{className:"body-small content-default-subdued mb-0 mt-1 sm:mt-0 ".concat(a?"":"hidden"),children:[d," ".concat(d>1?"Lessons":"Lesson")]})]})]}),(0,o.jsx)("div",{className:"flex w-6 items-center",children:a?(0,o.jsx)(S.Z,{className:"h-6 w-6"}):(0,o.jsx)(N.Z,{className:"h-6 w-6"})})]}),u&&(0,o.jsx)("div",{className:"content-default-default mx-10 my-4 px-1.5 pl-5 text-base lg:pl-6 lg:text-lg","aria-label":"Category Summary",children:u})]})},B=e=>{let{authorId:t,category:n,collectionId:a,courseUrlSlug:i,index:l,isCollaboratorReviewMode:r,isDraft:s,isContentClickable:d=!0}=e,u=(0,P.gA)(n.type)?n.type:c.j.COLLECTION_CATEGORY,{editUrl:h,viewUrl:p}=(0,x.Z)({authorId:t,collectionId:a,assessmentId:u===c.j.ASSESSMENT?n.id:null,projectId:[c.j.PROJECT,c.j.EXTERNAL_PROJECT].includes(u)?n.id:null,isDraft:s,courseUrlSlug:i,isCollaboratorReviewMode:r,cloudLabId:[c.j.CLOUD_LAB,c.j.LINKED_CLOUD_LAB].includes(u)?n.id:null,mockInterviewId:u===c.j.LINKED_MOCK_INTERVIEW?n.id:null,pageSlug:[c.j.ASSESSMENT,c.j.PROJECT,c.j.CLOUD_LAB].includes(u)?n.slug:u===c.j.LINKED_MOCK_INTERVIEW?n.page_id:null}),v={title:n.title,categoryType:u,isDraft:s,editUrl:h,viewUrl:p,id:l,isContentClickable:d};return(0,o.jsx)(U,{...v})},z=e=>{let{authorId:t,collectionId:n,completed:a,courseUrlSlug:i,isDraft:l,isOwned:c,isPriced:u,locked:h,page:p,title:g,isContentClickable:b=!0,collapsed:y,isUserLoggedIn:w,isB2BDomain:C,dispatch:E}=e,A=(0,r.useRouter)(),T="true"===A.query.test_lab,{viewUrl:S,editUrl:N}=(0,x.Z)({authorId:t,collectionId:n,id:p.id,courseUrlSlug:i,isCloudCourseTestMode:T,pageSlug:p.slug}),L=(l?N:S).href,j=!c&&u&&p.is_preview&&!1!==p.is_lesson,O=(0,D.P)(m.Z),R=e=>{e.preventDefault(),d.iw.IS_B2B?A.replace("/signup?ru=".concat(L,"&page_section=").concat(_.t.CHP_Table_Of_Contents)):null==E||E(I.n.show(k.kp,{ru:L,isCollectionLesson:!0,pageSection:_.t.CHP_Table_Of_Contents})),(0,f.Z)("SIGNUP","Clicked_Lesson_Signup",L,null,{isB2BDomain:d.iw.IS_B2B})};return y?(0,o.jsx)(v(),{href:L,prefetch:!1,className:"hidden",children:g}):(0,o.jsx)(s.Fragment,{children:(0,o.jsx)(v(),{href:L,prefetch:!1,className:["flex w-full flex-nowrap items-center gap-x-4 py-2 hover:bg-gray-L50 dark:hover:bg-gray-D1400",l&&(0,P.$s)(p.type)||!b?"pointer-events-none text-gray-L300":"cursor-pointer"].filter(Boolean).join(" "),id:j&&M.env.REACT_APP_STANDALONE?"selenium-preview-lesson":"lesson-title-".concat(p.id),...!w&&O&&{onClick:e=>R(e)},children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"my-px h-5 px-1.5",children:(0,o.jsx)(H,{completed:a,locked:!!w&&h})}),(0,o.jsx)("span",{className:"content-default-emphasis text-base underline decoration-gray-L400 lg:text-lg",children:g})]})})},p.id)},H=e=>{let{completed:t,locked:n}=e;return t?(0,o.jsx)(T,{}):n?(0,o.jsx)(L.Z,{className:"h-5 w-5 fill-current text-gray-L500 dark:text-gray-D400"}):(0,o.jsx)("div",{className:"h-5 w-5 rounded-full border border-solid border-gray-L200 dark:border-gray-D800 dark:bg-gray-D1400"})};var F=e=>{var t;let{authorId:n,collectionId:a,categoriesLength:i,category:l,collapseCategory:r,collapsed:s,courseCompletion:u,courseUrlSlug:h,index:p,categoryIndex:v,isCollaboratorReviewMode:m,isDraft:_,isOwned:f,isPriced:x,isZeroPriced:b,pageTitles:y,isB2BDomain:w,dispatch:C,isContentClickable:E=!0}=e,{userInfoState:A}=(0,j.su)(),T=A.loading,S=0!==Object.keys(null!==(t=A.data)&&void 0!==t?t:{}).length,N=100===(0,R.ZP)((0,P.ZP)([l]),u).percentCompleted,L=()=>(0,o.jsx)(o.Fragment,{children:l.pages.map((e,t)=>(0,o.jsx)(z,{authorId:n,collectionId:a,completed:!!(u[e.id]||u.ALL_DONE),courseUrlSlug:h,isDraft:_,isOwned:f,isPriced:x,locked:!(e.is_preview||f)&&x&&!(b&&S)&&!T,page:e,title:y[e.id]||e.title||g.V,isContentClickable:E,collapsed:s,isUserLoggedIn:S,isB2BDomain:d.iw.IS_B2B,dispatch:C},e.id))});return(0,o.jsxs)(o.Fragment,{children:[[c.j.ASSESSMENT,c.j.CLOUD_LAB,c.j.PROJECT,c.j.EXTERNAL_PROJECT,c.j.LINKED_CLOUD_LAB,c.j.LINKED_MOCK_INTERVIEW].includes(l.type)?(0,o.jsx)(B,{authorId:n,category:l,collectionId:a,courseUrlSlug:h,index:p,isCollaboratorReviewMode:m,isDraft:_,isContentClickable:E}):(0,o.jsx)(Z,{categoriesLength:i,collapseCategory:r,collapsed:s,index:p,categoryCompletion:N,categoryIndex:v,title:l.title,numberOfPages:l.pages.length,summary:l.type===c.j.COLLECTION_CATEGORY?l.summary:""}),!!l.pages.length&&(0,o.jsx)(o.Fragment,{children:s?L():(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"flex w-full flex-col pl-3 sm:pl-4 sm:pr-2 ".concat(s?"":"pb-3"),children:L()})})}),(0,o.jsx)(O.Z,{className:"my-4",color:"border-gray-L200 dark:border-gray-D1000"})]})},W=n(764412),V=n(702119),G=n(823481),K=n(977781);let q=(0,h.q)(F),Y=(e,t,n,a)=>{let i=RegExp("/courses/".concat(n,"/([a-z0-9A-Z-]+)[^]*")),o=RegExp("/collection/page/".concat(e,"/").concat(t,"/(\\d+)[^]*")),r=Array.from(i.exec(a)||o.exec(a)||[]);if(!r.length)return;if(!isNaN(Number(r[1])))return Number(r[1]);let s=new l.Z;
1if(s.isValidId(r[1]))return Number(s.decode(r[1]))};var J=e=>{let{authorId:t,categories:n,collectionId:a,courseCompletion:i,courseUrlSlug:l,isCollaboratorReviewMode:h,isDraft:p,isOwned:v,isPriced:m,isZeroPriced:g,pageTitles:_,dispatch:f,isContentClickable:x=!0,lazyHydrate:b=!1,isB2BDomain:y=!1}=e,w=(n||[]).filter(e=>e.id!==G.s),C=(0,r.useRouter)(),E=0,A=(0,W.a)("sm"),[T,S]=s.useState({canScroll:!1,collapsedState:w.reduce((e,t,n)=>{let a=(0,P.gA)(t.type)?t.type:c.j.COLLECTION_CATEGORY;return a===c.j.COLLECTION_CATEGORY&&(E+=1),a===c.j.COLLECTION_CATEGORY?{...e,[String(n)]:!(E<=5)}:e},{}),courseInProgress:!1,fullyExpandTOC:!1,showAllCategoriesMobile:!1}),N=Object.values(T.collapsedState).every(e=>!e),L=e=>S(t=>({...t,collapsedState:Object.keys(t.collapsedState).reduce((t,n)=>({...t,[n]:e}),{}),fullyExpandTOC:!e}));s.useEffect(()=>{let{mandatoryCloudlabs:e,mandatoryLessons:n,mandatoryProjects:o}=(0,P.QO)(w),{percentCompleted:r}=(0,R.ZP)(n,i,e,o),s=!!r&&r<100,d=C.query.scrollLink&&Y(t,a,l,String(C.query.scrollLink)),u=0;S(e=>({...e,canScroll:!!d,collapsedState:w.reduce((e,t,n)=>{let a=(0,P.gA)(t.type)?t.type:c.j.COLLECTION_CATEGORY;return a===c.j.COLLECTION_CATEGORY&&(u+=1),a===c.j.COLLECTION_CATEGORY?{...e,[String(n)]:!!A||(s?!p&&!t.pages.some(e=>[Number(i.LAST_VISITED),d].includes(e.id)):!(u<=5))}:e},{}),courseInProgress:s}))},[i,n]),s.useEffect(()=>{if(T.canScroll&&C.query.scrollLink){let e=document.querySelector('[href="'.concat(C.query.scrollLink,'"]'));(0,K.kI)(e,()=>(0,K.DS)(e))}},[T.canScroll]);let k=0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex justify-between",id:u.X.CONTENT,children:[(0,o.jsx)("p",{className:"heading-five content-default-emphasis m-0 text-xl font-bold",children:"Course Content"}),(0,o.jsx)("button",{type:"button",onClick:()=>L(N),className:"navigation-text content-default-emphasis tailwind-hidden cursor-pointer bg-transparent p-0 sm:block","data-testid":"expand-collapse-categories-button",children:(0,o.jsx)("div",{className:"m-0",children:(0,o.jsxs)("span",{className:"flex items-center",children:[(0,o.jsx)("p",{className:"m-0 p-0 pr-2",children:N?"Collapse All":"Expand All"}),(0,o.jsx)(V.Z,{className:"fill-gray-L1000 dark:fill-gray-D25"})]})})})]}),(0,o.jsxs)("div",{className:"mt-8 flex flex-col",children:[w.filter((e,t)=>!A||T.showAllCategoriesMobile||t<10).map((e,n)=>(e.type===c.j.COLLECTION_CATEGORY&&k++,(0,o.jsx)(b?q:F,{authorId:t,categoriesLength:w.length,category:e,collapseCategory:e=>S(t=>({...t,collapsedState:{...t.collapsedState,[String(e)]:!t.collapsedState[e]}})),collapsed:T.collapsedState[String(n)],collectionId:a,courseCompletion:i,courseUrlSlug:l,courseInProgress:T.courseInProgress,fullCategoryExpansion:T.fullyExpandTOC,index:n,categoryIndex:k,isCollaboratorReviewMode:h,isDraft:p,isOwned:v,isPriced:m,isZeroPriced:g,pageTitles:_,isContentClickable:x,...b?{renderWrapper:e=>{let{children:t,...n}=e;return(0,o.jsx)("div",{...n,className:"flex flex-col",children:t})}}:{},isB2BDomain:d.iw.IS_B2B,dispatch:f},e.id))),A&&w.length>10&&(0,o.jsxs)("button",{className:"outlined-primary",onClick:()=>S(e=>({...e,showAllCategoriesMobile:!e.showAllCategoriesMobile})),children:["Show ",T.showAllCategoriesMobile?"less":"more"]})]})]})}},585789:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var a=n(931549),i=n(44194),o=n(421404),l=n(876600),r=n(746931),s=n.n(r),d=n(161514),c=n(520833),u=n.n(c),h=e=>{let{answer:t,cta:n="Try For Free",ctaClasses:i,eventName:o,redirectUrl:l}=e;return(0,a.jsxs)(s(),{href:l,onClick:()=>{(0,d.Z)("POW_BY_AI_SECTION",o)},children:[(0,a.jsx)("p",{children:t}),(0,a.jsx)("button",{className:"".concat(u().ctaButton," ").concat(i),children:n})]})},p=n(290016),v=n(837948),m=n(225329);let g=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))});var _=n(975566),f=n.n(_);let x=e=>{let{height:t}=e;return(0,a.jsx)("div",{className:"w-full animate-pulse bg-indigo-200 dark:bg-blue-1000",style:{height:t}})},b=e=>{let{question:t,answer:n,imagePath:o,questionClassName:r,answerClassName:s,fontClass:d,iconClasses:c,answerComponent:u,useSingleExpansion:m,parentExpandedIndex:g,parentToggleExpansion:_,callBackOnExpansion:b,imageBorderColor:y,questionComponent:w,eventName:C,faqCta:E,redirectUrl:A,ctaClasses:T,avoidAnimationOnFirstLoad:S,mobilePlaceholderHeight:N,faqItemContainerClasses:L}=e,[k,j]=(0,i.useState)(null!=S&&S),[I,O]=(0,i.useState)(0===e.index),[R,P]=(0,i.useState)(k&&I),[D,M]=(0,i.useState)(!1),U=(0,i.useRef)(null),[Z,B]=(0,i.useState)(0),z=(0,a.jsx)("div",{ref:U,children:E&&C?(0,a.jsx)(h,{answer:n,cta:E,eventName:C,redirectUrl:A,ctaClasses:T}):u?u({answer:n}):(0,a.jsx)("div",{className:"marketing-widget-body-text",dangerouslySetInnerHTML:{__html:n}})}),H=w?w({question:t}):(0,a.jsx)(a.Fragment,{children:t}),F=()=>
1{if(null==U?void 0:U.current){let e=U.current.scrollHeight||0;Z!==e&&B(e)}};(0,i.useEffect)(()=>{let e;return I?e=setTimeout(()=>{P(!0)},300):P(!1),()=>clearTimeout(e)},[I]),(0,i.useEffect)(()=>{F()}),(0,i.useEffect)(()=>{k&&j(!1)},[]),(0,i.useEffect)(()=>{m&&g!==e.index&&O(!1)},[g]);let W=()=>{m&&_(I?-1:e.index),O(!I)};return(0,a.jsxs)("div",{className:"flex w-full flex-shrink-0 flex-col py-8 ".concat(L),children:[(0,a.jsxs)("div",{className:"flex cursor-pointer justify-between rounded",onClick:()=>{W(),null==b||b(I,t)},children:[(0,a.jsx)("div",{className:"flex space-x-4",children:(0,a.jsx)("div",{children:(0,a.jsx)("h3",{className:"heading-six mb-1 mt-0 ".concat(d," ").concat(r||"text-gray-L700 dark:text-gray-D50"),children:H})})}),I?(0,a.jsx)(v.Z,{className:"h-6 w-6 shrink-0 ".concat(c)}):(0,a.jsx)(p.Z,{className:"h-6 w-6 shrink-0 ".concat(c)})]}),(0,a.jsxs)("div",{ref:U,className:"flex w-full flex-col ".concat(R?f().visibleAnswer:f().hiddenAnswer),style:{height:k&&I?"auto":I?"".concat(Z,"px"):"0px",transition:"height 300ms ease-out"},children:[(0,a.jsx)("span",{className:"body-medium mr-16 ".concat(s||"text-gray-L600 dark:text-gray-D50"," ").concat(I?"pt-3":""),children:z}),o&&(0,a.jsx)("div",{className:"mt-5 flex w-full rounded-md border-solid ".concat(y," lg:hidden"),id:"FAQ-images-sm",style:{borderTopWidth:"6px",borderBottomWidth:"6px",borderLeftWidth:"9px",borderRightWidth:"9px"},children:o.endsWith(".webm")?(0,a.jsxs)(a.Fragment,{children:[e.shouldLoadAsset&&(0,a.jsx)("video",{style:{width:"100%",height:"100%",display:D?"block":"hidden"},src:o,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onLoadedData:()=>{F(),M(!0)}}),!D&&(0,a.jsx)(x,{height:N})]}):e.shouldLoadAsset?(0,a.jsx)(l.Z,{alt:"Featured Image",coverImage:!0,height:438,imageSrc:o,progressive:!0,width:539}):(0,a.jsx)(x,{height:N})})]})]})};var y=e=>{let{faqs:t=[],padding:n="",backgroundClasses:r="border-gray-L50 bg-gray-L50 dark:bg-gray-D1300 dark:border-gray-D1000",dividerClasses:s="border-gray-L200 dark:border-gray-D1000",borderClasses:d="rounded-md border border-solid",questionClasses:c="",answerClasses:u="",fontClass:h="",firstAndLastDividerClasses:p="",iconClasses:v="dark:text-gray-D25",style:_={},renderHeading:f=!0,headingClasses:y="heading-three pb-10",answerComponent:w=null,useSingleExpansion:C=!1,containsImagesOrVideos:E=!1,defaultImageOrVideo:A="",headingTextColors:T="text-gray-L1000 dark:text-gray-D50",callBackOnExpansion:S=(e,t)=>{},imageBorderColor:N="border-indigo-900",renderDivider:L=!0,renderLastDivider:k=!0,injectSchemaScript:j=!0,questionComponent:I=null,ctaClasses:O="",avoidAnimationOnFirstLoad:R=!1,desktopPlaceholderHeight:P="438px",mobilePlaceholderHeight:D="250px",faqContainerClasses:M="",faqItemContainerClasses:U="",renderQuestionDivider:Z=!0,paddingClasses:B="px-10"}=e,[z,H]=(0,i.useState)(0),[F,W]=(0,i.useState)(!1),[V,G]=(0,i.useState)(!1),K=e=>H(e);(0,i.useEffect)(()=>{(E||t.some(e=>e.imagePath))&&((0,o.ZP)({querySelector:"#FAQ-images-lg",callback:()=>W(!0)}),(0,o.ZP)({querySelector:"#FAQ-images-sm",callback:()=>W(!0)}))},[E,t]);let q=z>-1&&z<t.length&&t[z].imagePath||A;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex w-full items-center ".concat(n),children:[(0,a.jsxs)("div",{className:"w-full overflow-hidden ".concat(B," ").concat(f?"py-12":"pb-9 pt-2"," ").concat(d," ").concat(r),style:_,children:[f&&(0,a.jsx)("h2",{className:"".concat(y," ").concat(T),children:"Frequently Asked Questions"}),L&&(0,a.jsx)(m.Z,{className:"".concat(s," ").concat(p)}),(0,a.jsx)("div",{className:"flex w-full flex-col ".concat(M),children:t.map((e,n)=>(0,a.jsxs)("div",{children:[(0,a.jsx)(b,{useSingleExpansion:C,parentToggleExpansion:K,shouldLoadAsset:F,parentExpandedIndex:z,iconClasses:v,question:e.question,answer:e.answer,imagePath:e.imagePath,index:n,questionClassName:c,answerClassName:u,fontClass:h,answerComponent:w,callBackOnExpansion:S,imageBorderColor:N,questionComponent:I,eventName:Object.hasOwn(e,"eventName")?e.eventName:null,faqCta:Object.hasOwn(e,"cta")?e.cta:null,redirectUrl:Object.hasOwn(e,"redirectUrl")?e.redirectUrl:null,ctaClasses:O,avoidAnimationOnFirstLoad:R,mobilePlaceholderHeight:D,faqItemContainerClasses:U}),Z&&(n!==t.length-1||k)&&(0,a.jsx)(m.Z,{className:"".concat(s," ").concat(n===t.length-1?p:"")})]},e.question))})]}),E&&(0,a.jsx)("div",{className:"tailwind-hidden w-full rounded-md border-solid ".concat(N," lg:flex"),id:"FAQ-images-lg",style:{borderTopWidth:"10px",borderBottomWidth:"10px",borderLeftWidth:"15px",borderRightWidth:"15px"},children:(null==q?void 0:q.endsWith(".webm"))?(0,a.jsxs)(a.Fragment,{children:[F&&(0,a.jsx)("video",{style:{width:"100%",height:"100%",display:V?"block":"hidden"},onLoadedData:()=>
1G(!0),src:q,autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),!V&&(0,a.jsx)(x,{height:P})]}):F?(0,a.jsx)(l.Z,{alt:"Featured Image",coverImage:!0,height:438,imageSrc:q,progressive:!0,width:539}):(0,a.jsx)(x,{height:P})})]}),j&&(0,a.jsx)("script",{id:"structured-data-faq",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(g(t))}})]})}},370608:function(e,t,n){"use strict";n.d(t,{$F:function(){return E},BV:function(){return i.B},Bc:function(){return x},E_:function(){return U},Fv:function(){return I},GU:function(){return Q},Gd:function(){return m},Ic:function(){return w},JG:function(){return c},Kk:function(){return p},L1:function(){return Y},Os:function(){return T},TO:function(){return Z},Tn:function(){return et},Yr:function(){return C},_R:function(){return s},a3:function(){return es},aU:function(){return k},c7:function(){return ee},cW:function(){return A},dM:function(){return d},eB:function(){return N},f$:function(){return ei},fW:function(){return S},gH:function(){return j},gJ:function(){return ea},gX:function(){return r},l$:function(){return $},mn:function(){return R},ms:function(){return o.m},ne:function(){return u},nz:function(){return P},o4:function(){return el},om:function(){return D},oq:function(){return O},sy:function(){return y},ub:function(){return g},ul:function(){return L},v5:function(){return b},vv:function(){return J},xD:function(){return en},yJ:function(){return a.y},ys:function(){return f},zQ:function(){return _},zg:function(){return X}});var a=n(942258),i=n(488121),o=n(918570);let l=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?(\/(courses\/([a-z0-9-]+)([-]+[a-z0-9]+)*|collection\/(\d+)\/(\d+)))?$/,r=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/(courses\/([a-z0-9-]+)([-]+[a-z0-9]+)*|collection\/(\d+)\/(\d+)))?$/,s=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/(path\/([a-z0-9-]+)([-]+[a-z0-9]+)*|path\/(\d+)\/(\d+)))?$/,d=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/modules\/(\d+)\/(\d+)(\/draft)?(\/)?)$/,c=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/module\/(\d*?[a-zA-Z]\w*?)\/(\d+)\/(\d+)(\/)?)$/,u=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/modules\/page\/(\d+)\/(\d+)\/(\d+)(\/)?)$/,h=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?(\/track\/\S+)?$/,p=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,5}(:[0-9]{1,5})?(\/.*)?$/,v=/http(?:s)?:\/\/(?:www\.)?twitter\.com\/([a-zA-Z0-9_]+)\/status\/([0-9]+)/,m=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/(?:collection|path|module)\/([0-9]{1,16})?\/([0-9]{1,16})?$/,g=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/(?:courses|path|module)\/([a-z0-9]+([-]+[a-z0-9]+)*)?$/,_=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/module\/([a-z0-9]+([-]+[a-z0-9]+)*)?$/,f=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*[.]*[a-z]{2,5}(:[0-9]{1,5})?\/collection\/page\/([0-9]{1,16})\/([0-9]{1,16})\/([0-9]{1,16})\/assessment$/,x=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*[.]*[a-z]{2,5}(:[0-9]{1,5})?\/modules\/page\/([0-9]{1,16})\/([0-9]{1,16})\/([0-9]{1,16})\/assessment$/,b=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/courses\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/assessment$/,y=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*[.]*[a-z]{2,5}(:[0-9]{1,5})?\/collection\/page\/([0-9]{1,16})\/([0-9]{1,16})\/([0-9]{1,16})\/project$/,w=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/courses\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/project$/,C=/^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?)?(\/(projects\/([a-z0-9-]+)([-]+[a-z0-9]+)*|collection\/(\d+)\/(\d+)))?$/,E=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*[.]*[a-z]{2,5}(:[0-9]{1,5})?\/collection\/page\/([0-9]{1,16})\/([0-9]{1,16})\/([0-9]{1,16})\/cloudlab$/,A=/^(?:http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+(?:[-.]{1}[a-z0-9]+)*(?:\.)*[a-z]{2,5}(?::[0-9]{1,5})?\/cloudlabs\/([a-z0-9]+(?:[-]+[a-z0-9]+)*)$/,T=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(:\d+)?\/collection\/page\/(\d+)\/(\d+)\/(\d+)$/,S=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(:\d+)?\/path\/page\/(\d+)\/(\d+)\/(\d+)$/,N=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(:\d+)?\/module\/page\/(\d*?[a-zA-Z]\w*?)\/(\d+)\/(\d+)\/(\d+)$/,L=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(:\d+)?\/module\/page\/(\d*?[a-zA-Z]\w*?)\/(\d+)\/(\d+)\/(\d+)\/assessment$/,k=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]*([-.]{1}[a-z0-9]+)*(:\d+)?\/module\/lesson\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9A-Z]+)+$/,j=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(:\d+)?\/module\/lesson\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9A-Z]+)+\/assessment$/,I=/^(http[s]?:\/\/(www\.)?)?[a-z0-9]*([-.]{1}[a-z0-9]+)*(:\d+)?\/path\/lesson\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9A-Z]+)+$/,O=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{0,5}(:[0-9]{1,5})?\/courses\/([a-z0-9]+([-]+[a-z0-9]+)*)?\/([a-z0-9A-Z]+([-]+[a-z0-9A-Z]+)*)?$/,R=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/answers\/([a-z0-9-A-Z]+)+$/,P=/^(http[s]?:\/\/(www\.)?)?(.+).atlassian.net\/wiki\/spaces\/(.+)\/pages\/([a-z0-9-A-Z]+)(\/.*)?$/,D=/^http[s]?:\/\/(docs|drive).google.com\/[a-z]+\/d\/.*$/,M=/^[a-z\d-]+$/,U=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Z=/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s./0-9]*$/,B=/^[0-9]+([,.][0-9]+)?$/,z=/^([3-7][0-9]{3}|[8][0-7][0-9]{2}|[9][3-9][0-9]{2}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/,H=/^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))$/,F=/^([12]\d{3}-(0[1-9]|1[0-2]))$/,W=/^[a-z1-9-_+#]+$/,V=/^[a-zA-Z0-9-_\n]{1,65536}$/,G=/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/,K=/^\d*[1-9]\d*/,q=/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,Y=/^\d{1,2}$/,J=/^[0-5]?\d$/,X=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=. ]+$/,Q=/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*(\.)*[a-z]{2,5}(:[0-9]{1,5})?\/assessments\/([a-z0-9]+([-]+[a-z0-9]+)*)$/,$=/[^\x00-\x7F]/,ee=/^[A-Za-z0-9-]+$/,et=/^(?!.*--)(?!.* {3,})[a-zA-Z0-9 -]+$/,en=/^(http[s]?):\/\/(docs|drive)\.google\.com\/(spreadsheets|document|presentation|file|drawings)\/d\/([\w-]+)\/(preview|edit|view)([^\s]*)/,ea=/^[a-zA-Z0-9 .,?!#$%^&*()_+-;:'"|\\/]*$/,ei=/<#!\s*([^!]+)\s*!#>/,eo=e=>e&&l.test(e),el=e=>e&&g.test(e),er={required:e=>"".concat(e," can't be blank."),min:(e,t,n)=>"".concat(e.replace(" *","")," field must be between ").concat(t," and ").concat(n," characters long"),max:(e,t,n)=>"".concat(e.replace(" *","")," field must be between ").concat(t," and ").concat(n," characters long"),eqlTo:(e,t)=>"".concat(e," and ").concat(t," did not match!"),url:e=>"".concat(e," must be a valid URL."),notUrl:e=>"".concat(e," cannot be a URL."),twitterUrl:e=>"".concat(e," must be a valid tweet URL."),email:e=>"".concat(e," must be a valid email address."),notEmail:e=>"".concat(e," cannot be an email address."),slug:e=>"".concat(e," can only contain a-z, 0-9 and -"),phone:e=>
1"".concat(e," is not valid."),port:e=>"".concat(e," must be in range 3000-8799 or 9300-65535"),integer:e=>"".concat(e," is not an integer."),number:e=>"".concat(e," must be a number."),int_min:(e,t,n)=>"".concat(e," must be between ").concat(t," and ").concat(n),date:e=>"".concat(e," must be in yyyy-mm-dd format."),month:e=>"".concat(e," must be in yyyy-mm format."),select:e=>"".concat(e.replace(" *","")," must be selected."),id:e=>"".concat(e," can only contain a-z 1-9 - _ + #"),uuidV4:e=>"".concat(e," must be a valid uuidV4."),transaction_ids:e=>"".concat(e," can only contain a-z 1-9 - _"),courseUrlList:()=>"Please enter valid courses url",domain:e=>"".concat(e," must be a valid domain"),jobName:()=>"A job with the same name already exists",fullName:e=>"".concat(e," cannot contain special characters.")};function es(e,t){return e.reduce((e,n)=>e.concat(...n.validators.map(e=>{let{name:a,validator:i}=e,o=t.fields[n.id],l=i((o.value||"").toString().trim(),n.id,t.fields,o.validate);return{fieldName:n.id,errorName:a,error:l}}).filter(Boolean)),[])}t.default={required:(e,t,n)=>!e.length&&er.required(n[t].label),min:(e,t)=>(n,a,i)=>!!n.length&&n.length<e&&er.min(i[a].label,e,t),max:(e,t)=>(n,a,i)=>!!n.length&&n.length>t&&er.max(i[a].label,e,t),eqlTo:e=>(t,n,a)=>t!==a[e].value.trim()&&er.eqlTo(a[n].label,a[e].label),fullName:(e,t,n)=>!!e.length&&!a.y.test(e)&&er.fullName(n[t].label),url:(e,t,n)=>!!e.length&&!p.test(e)&&er.url(n[t].label),notUrl:(e,t,n)=>!!e.length&&p.test(e)&&er.notUrl(n[t].label),twitterUrl:(e,t,n)=>!!e.length&&!v.test(e)&&er.twitterUrl(n[t].label),friendlyCourseUrl:(e,t,n)=>!!e.length&&!g.test(e)&&er.url(n[t].label),legacyCourseUrl:(e,t,n)=>!!e.length&&!m.test(e)&&er.url(n[t].label),courseUrl:(e,t,n)=>!!e.length&&!l.test(e)&&er.url(n[t].label),trackUrl:(e,t,n)=>!!e.length&&!h.test(e)&&er.url(n[t].label),email:(e,t,n)=>!!e.length&&!U.test(e)&&er.email(n[t].label),notEmail:(e,t,n)=>!!e.length&&U.test(e)&&er.notEmail(n[t].label),slug:(e,t,n)=>!!e.length&&!M.test(e)&&er.slug(n[t].label),phone:(e,t,n)=>!!e.length&&!Z.test(e)&&er.phone(n[t].label),port:(e,t,n)=>!!e.length&&!z.test(e)&&er.port(n[t].label),integer:(e,t,n)=>!Number.isInteger(Number(e))&&er.integer(n[t].label),number:(e,t,n)=>!!e.length&&!B.test(e)&&er.number(n[t].label),int_min:(e,t)=>(n,a,i)=>n<e&&er.int_min(i[a].label,e,t),int_max:(e,t)=>(n,a,i)=>n>t&&er.int_min(i[a].label,e,t),date:(e,t,n)=>!!e.length&&!H.test(e)&&er.date(n[t].label),month:(e,t,n)=>!!e.length&&!F.test(e)&&er.month(n[t].label),id:(e,t,n)=>!!e.length&&!W.test(e)&&er.id(n[t].label),uuidV4:(e,t,n)=>!!e.length&&!q.test(e)&&er.uuidV4(n[t].label),select:(e,t,n)=>(!e.length||"select"===e||""===e)&&er.select(n[t].label),transaction_ids:(e,t,n)=>!!e.length&&!V.test(e)&&er.transaction_ids(n[t].label),courseUrlList:(e,t,n,a)=>!!a&&!!(e&&JSON.parse(e).courses.some(e=>!eo(e)))&&er.courseUrlList(),domain:(e,t,n)=>!!e.length&&!G.test(e)&&er.domain(n[t].label),jobName:e=>t=>!!e.filter(e=>{let{name:n}=e;return n===t}).length&&er.jobName(),naturalNumber:e=>K.test(e),isFriendlyCourseUrl:e=>g.test(e),isFriendlyLessonUrl:e=>O.test(e)||k.test(e)||I.test(e),isLegacyCourseUrl:e=>m.test(e)}},942258:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});let a=/^\s*[a-zA-Z\u00C0-\u024F][\s'\-\w\u00C0-\u024F]*$/},488121:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});let a=/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%^&*()\\[\]{}\-_+=~`|:;"'<>,./?]).*$/},918570:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});let a=e=>{let t=0;for(;t+1<e.length;){if("."===e[t]&&" "!==e[t+1])return!1;t++}return!0}},350434:function(e,t,n){"use strict";var a=n(931549),i=n(4313);n(44194);var o=n(937374),l=n(311680),r=n(389919);t.Z=e=>{let{steps:t,showPrevNextButtons:n=!1,showCloseButton:s=!1,showBadge:d=!1,showNavigation:c=!1,disableDotsNavigation:u=!0,afterOpen:h=()=>document.documentElement.style.overflow="hidden",beforeClose:p=()=>document.documentElement.style.overflow="auto",className:v="b-sm w-48 rounded !bg-indigo-500 text-base !text-white",disabledActions:m=!1,disableInteraction:g=!1,disableFocusLock:_=!1,disableKeyboardNavigation:f=!1,maskClassName:x="",params:b={}}=e,{isTourOpen:y,currentStep:w,setCurrentStep:C,endTour:E,nextStep:A}=(0,r.r)();return(0,a.jsx)(i.Oj,{steps:t(E,{currentStep:w,onNextClick:A,...b}),isOpen:y,currentStep:w,showPrevNextButtons:n,showCloseButton:s,showBadge:d,showNavigation:c,disableDotsNavigation:u,disableInteraction:g,afterOpen:h,beforeClose:p,className:"reactour__popover ".concat(v),styles:{...(0,l.W)(o.colors.indigo[500]),maskWrapper:e=>({opacity:0}
1)},setIsOpen:()=>{},setCurrentStep:C,setSteps:()=>{},disabledActions:m,setDisabledActions:()=>{},disableFocusLock:_,highlightedMaskClassName:"!opacity-0 pointer-events-none",disableKeyboardNavigation:f,maskClassName:"pointer-events-none ".concat(x),onClickMask:e=>{let{setCurrentStep:t,currentStep:n,steps:a}=e;3===n&&t(e=>e===a.length-1?0:e+1)}})}},389919:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});let a=(0,n(466483).Ue)(e=>({isTourOpen:!1,currentStep:0,setIsTourOpen:t=>e({isTourOpen:t}),startTour:()=>e({isTourOpen:!0,currentStep:0}),openTour:()=>e({isTourOpen:!0}),nextStep:()=>e(e=>({currentStep:e.currentStep+1})),hideTour:()=>e({isTourOpen:!1}),endTour:()=>e({isTourOpen:!1,currentStep:6}),setCurrentStep:t=>e({currentStep:t})}))},477494:function(e,t,n){"use strict";n.d(t,{$R:function(){return p},EL:function(){return u},KU:function(){return l},NF:function(){return v},Qb:function(){return c},as:function(){return o},cK:function(){return s},dA:function(){return m},fV:function(){return h},fg:function(){return d},qY:function(){return r}});var a=n(931549),i=n(392558);let o=(0,a.jsxs)("svg",{width:"16",height:"20",viewBox:"0 0 16 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 0H2a2 2 0 00-2 2v16c0 1.1.9 2 2 2h12a2 2 0 002-2V2a2 2 0 00-2-2zM5 2h2v5l-1-.8L5 7V2zM2 18h12V2H9v9L6 8.7 3 11V2H2v16z",fill:"current"})]}),l=(0,a.jsxs)("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"current",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 2H16a2 2 0 012 2v14a2 2 0 01-2 2H1.6A2 2 0 010 18V4c0-.3 0-.5.2-.8A2 2 0 012 2h4.2A3 3 0 019 0a3 3 0 012.8 2zM4 8V6h10v2H4zm10 4v-2H4v2h10zm-3 2H4v2h7v-2zM9 1.7c.4 0 .8.4.8.8s-.4.8-.8.8a.8.8 0 01-.8-.8c0-.4.4-.8.8-.8zM2 18h14V4H2v14z",fill:"current"})]}),r=(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"stroke-current",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("rect",{x:"2.8",y:"2.8",width:"18.5",height:"18.5",rx:"1.3",stroke:"current",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M10.7 15.8a.7.7 0 100-1.4c-.4 0-.9-.2-.9-1.2v-1c0-.6-.1-1-.4-1.3.3-.3.4-.7.4-1.3v-1c0-1 .5-1.2 1-1.2a.7.7 0 100-1.4c-1.2 0-2.4.8-2.4 2.6v1c0 .4 0 .4-.4.6h-.2a.7.7 0 00-.1 1.3l.3.2c.3 0 .4.1.4.5v1c0 1.8 1.2 2.6 2.3 2.6zM14 13.2c0 1-.4 1.2-.8 1.2a.7.7 0 100 1.4c1.1 0 2.3-.8 2.3-2.6v-1c0-.4 0-.4.4-.5a3.5 3.5 0 00.3-.2l.3-.3c.1-.4 0-.8-.4-1H16c-.3-.2-.4-.2-.4-.6v-1c0-1.8-1.2-2.6-2.3-2.6a.7.7 0 100 1.4c.4 0 .8.2.8 1.2v1c0 .6.2 1 .4 1.3a2 2 0 00-.4 1.3v1z",fill:"current"}),(0,a.jsx)("rect",{x:"7",y:"16.8",width:"9.9",height:"1.2",rx:".6",fill:"#8887FF"})]}),s=(0,a.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5.5l1 2h6v10h-7l-1-2h-5v7h-2V.5h8zm1 10h4v-6h-5l-1-2h-5v6h6l1 2z",fill:"current"})]}),d=(0,a.jsxs)("svg",{width:"20",height:"12",viewBox:"0 0 20 12",fill:"current",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.8 6l4.6 4.6L6 12 0 6l6-6 1.4 1.4L2.8 6zm14.4 0l-4.6 4.6L14 12l6-6-6-6-1.4 1.4L17.2 6z",fill:"current"})]}),c=(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"stroke-current",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{d:"M12 17.3l-4.6-2.7V9.4L12 6.7l4.6 2.7v5.2L12 17.3zm-4-3l4 2.2 4-2.2V9.7l-4-2.2-4 2.2v4.6z",fill:"current",stroke:"current",strokeWidth:".8"}),(0,a.jsx)("path",{d:"M12 12.4L7.6 9.8l.3-.5 4.1 2.3 4-2.3.4.5-4.4 2.6z",fill:"current",stroke:"current",strokeWidth:".8"}),(0,a.jsx)("path",{d:"M12.3 12h-.6v4.9h.6V12zM7.6 9.8l-1.1-.6H5v-.7h1.5l1.3.8-.3.5zM16.4 9.8l-.3-.5 1.3-.8h1.5v.7h-1.4l-1.1.6zM18.9 15.5h-1.5l-1.3-.8.3-.5 1.1.6H19v.7zM6.6 15.5H5.1v-.7h1.4l1.1-.6.3.5-1.3.8zM12.3 5.1h-.6v2h.6v-2zM12.3 16.9h-.6v2h.6v-2zM5.9 4.5H5V5H6v-.6zM18.9 4.5H18V5h.8v-.6zM5.9 18.9H5v.6H6V19zM18.9 18.9H18v.6h.8V19z",fill:"
1current",stroke:"current",strokeWidth:".8"}),(0,a.jsx)("path",{d:"M13.7 5.5h-3.4V2h3.4v3.5h0zM11 4.8h2.2V2.6h-2.2v2.2zM13.7 22h-3.4v-3.5h3.4V22h0zm-2.8-.6h2.2v-2.2h-2.2v2.2zM5.5 10.6H2V7h3.5v3.5zm-2.9-.7h2.2V7.7H2.6V10zM5.5 17H2v-3.6h3.5V17zm-2.9-.7h2.2V14H2.6v2.2zM22 10.6h-3.5V7H22v3.5zm-2.8-.7h2.2V7.7h-2.2V10zM22 17h-3.5v-3.6H22V17zm-2.8-.7h2.2V14h-2.2v2.2z",fill:"current",stroke:"current",strokeWidth:".8"})]}),u=(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"current",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4V0H9C13.97 0 18 4.03 18 9C18 13.97 13.97 18 9 18C4.02 18 0 13.97 0 9C0 6.05 1.42 3.45 3.61 1.81V1.79L10.41 8.59L9 10L3.58 4.58C2.59 5.78 2 7.32 2 9C2 12.87 5.13 16 9 16C12.87 16 16 12.87 16 9C16 5.47 13.39 2.57 10 2.08V4H8ZM9 15C8.45 15 8 14.55 8 14C8 13.45 8.45 13 9 13C9.55 13 10 13.45 10 14C10 14.55 9.55 15 9 15ZM15 9C15 8.45 14.55 8 14 8C13.45 8 13 8.45 13 9C13 9.55 13.45 10 14 10C14.55 10 15 9.55 15 9ZM4 10C3.45 10 3 9.55 3 9C3 8.45 3.45 8 4 8C4.55 8 5 8.45 5 9C5 9.55 4.55 10 4 10Z",fill:"current"})}),h=(0,a.jsxs)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 1.7a7.8 7.8 0 100 15.6 7.8 7.8 0 000-15.6zM0 9.5a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z",fill:"#8F8F99"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 5.2a4.3 4.3 0 100 8.6 4.3 4.3 0 000-8.6zm-6 4.3a6 6 0 1112 0 6 6 0 01-12 0z",fill:"#8F8F99"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 8.6a.9.9 0 100 1.8.9.9 0 000-1.8zm-2.6.9a2.6 2.6 0 115.2 0 2.6 2.6 0 01-5.2 0z",fill:"#8F8F99"})]}),p=(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{className:"fill-current text-gray-L400 dark:text-gray-D300",fillRule:"evenodd",clipRule:"evenodd",d:"M17.1 0H.9C.4 0 0 .4 0 .9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V.9c0-.5-.5-.9-.9-.9zM6 4H4v2h2V4zm8 0H8v2h6V4zm0 4H8v2h6V8zm-6 4h6v2H8v-2zM4 8h2v2H4V8zm2 4H4v2h2v-2zm-4 4h14V2H2v14z"})}),v=(0,a.jsx)(i.Z,{className:"h-5 w-5 fill-current"}),m=(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"fill",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H4V19H20V5ZM4 3C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3H4Z",fill:"current"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.832 8.4453L14.1679 9.5547L15.7981 12L14.1679 14.4453L15.832 15.5547L18.2018 12L15.832 8.4453Z",fill:"current"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.16796 8.4453L9.83206 9.5547L8.20186 12L9.83206 14.4453L8.16796 15.5547L5.79816 12L8.16796 8.4453Z",fill:"current"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.046 15.2905L13.046 8.79047L13.954 9.20953L10.954 15.7095L10.046 15.2905Z",fill:"current"})]})},292987:function(e,t,n){"use strict";var a=n(931549),i=n(746931),o=n.n(i),l=n(44194),r=n(869896),s=n(161514),d=n(764412),c=n(695825),u=n(648997),h=n(301284),p=n(342602),v=n(218339);let m=(e,t)=>e?"sm":t?"md":"lg";t.Z=l.memo(e=>{var t,n,i;let{children:g,tileShownOnSize:_,bottomCTA:f,alwaysCenterAlign:x=!1,showBothScrollButtons:b,customScrollButtonsPosition:y,priorityImage:w,showBothScrollButtonsMobile:C=!0,showCarouselTilePillsMobile:E=!0,customStyle:A}=e,T=(0,h.pY)(),S=T.sidebarType===h.mQ.ENTERPRISE,N=T.sidebarCollapsed,L=l.useRef(null),k=l.useRef(null),j=(0,d.a)("sm"),I=(0,d.a)("lg"),[O,R]=l.useState(_[m(j,I)]),[P,D]=l.useState(-1),M=l.useRef(_[m(j,I)]),U=l.useRef(-1),Z=e=>{V(W<e?e:W),M.current=e,R(e)},B=e=>{U.current=e,D(e)},z=(0,p.W)(),[H,F]=l.useState(null),[W,V]=l.useState(O),G=e=>{var t;e===u.I.NEXT&&O!==(null==g?void 0:g.length)?(Z(M.current+1),B(U.current+1)):-1!==U.current&&(B(U.current-1),Z(M.current-1));let n=null==L?void 0:null===(t=L.current)||void 0===t?void 0:t.getBoundingClientRect();if(!n)return;let a=(n.width?n.width:n.right-n.left)+24,i=(U.current+1)*a,o=null==k?void 0:k.current;o&&(0,r.X)({element:o,targetLeft:i,targetTop:0}),F(null)};l.useEffect(()=>{Z(_[m(j,I)]),B(-1);let e=null==k?void 0:k.current;e&&(0,r.X)({element:e,targetLeft:0,targetTop:0})},[j,I,g]),l.useEffect(()=>{H&&G(H)},[H]);let K=e=>{let t=null,n=_[m(j,I)];if(P>=e)B(e),Z(e+n+1),t=u.I.PREV;else{let a=n-1+e;Z(a),B(a-n-1),t=u.I.NEXT}F(t)},{handleTouchEnd:q,handleTouchStart:Y,handleTouchMove:J}=(0,v.p)(G,M,U,g),X=-1!==P,Q=O!==(null==g?void 0:g.length);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsx)("div",{className:"flex overflow-x-hidden py-4 ".concat(null!==(t=null==A?void 0:A.tileSpacingClass)&&void 0!==t?t:"space-x-6"," ").concat(x&&g.length<_[m(j,I)]?" justify-center":""),ref:k,onTouchStart:Y,onTouchMove:J,onTouchEnd:q,children:null==g?void 0:g.slice(0,W+1).map((e,t)=>l.cloneElement(e,{ref:t===O-1?L:null,priorityImage:w&&t<_[m(j,I)],key:t}))}),(0,a.jsxs)("div",{className:y||"w-[95vw] ".concat(S?"sm:w-[93vw]":N?"sm:w-[97vw]":"sm:w-[85vw] lg:w-[90vw]"," ").concat(z&&S&&!N?"lg:w-[80vw]":""," pointer-events-none absolute right-1/2 top-1/2 -translate-y-1/2 translate-x-1/2 transform justify-between\n              ").concat(C?"flex":"tailwind-hidden sm:flex","\n            "),style:{maxWidth:null!==(n=null==A?void 0:A.maxWidthButton)&&void 0!==n?n:"1291px"},children:[X||b?(0,a.jsx)(u.W,{buttonType:u.I.PREV,disabled:!X,navigateCard:G}):(0,a.jsx)("div",{}),b||Q&&g.length>_[m(j,I)]?(0,a.jsx)(u.W,{buttonType:u.I.NEXT,disabled:!Q,navigateCard:G}):(0,a.jsx)("div",{})]})]}),f?(0,a.jsx)(o(),{href:f.href,legacyBehavior:!0,children:(0,a.jsxs)("button",{className:"outlined-default m-auto mb-8 mt-2 space-x-2.5 px-3 py-2.5",onClick:()=>(0,s.Z)("EXPLORE_PAGE","CLICKED_TOPICPAGE",f.title),children:[(0,a.jsxs)("span",{className:"navigation-text text-gray-L1000 dark:text-gray-D50",children:["Explore ",f.title]}),(0,a.jsx)(c.Z,{className:"text-indigo-500 dark:text-indigo-200"})]})}):null,(0,a.jsx)("div",{className:"".concat(E?"flex":"tailwind-hidden sm:flex"," mx-auto ").concat(null!==(i=null==A?void 0:A.tilePillsMargin)&&void 0!==i?i:""," h-1 w-max space-x-1.5"),children:Array((null==g?void 0:g.length)-(j?0:I?_.md-1:_.lg-1)<=1?0:(null==g?void 0:g.length)-(j?0:I?_.md-1:_.lg-1)).fill(!0).map((e,t)=>(0,a.jsx)("div",{className:"h-1 w-3 rounded ".concat(t===P+1?"bg-indigo-500 dark:bg-indigo-200":"bg-indigo-200 dark:bg-gray-D900"," cursor-pointer"),onClick:()=>{t!==P+1&&K(t)}},t))})]})})},421404:function(e,t,n){"use strict";n.d(t,{FC:function(){return o},QQ:function(){return i}});let a=e=>{let{querySelector:t,callback:n,useNonIntersection:a=!1}=e,i=new IntersectionObserver(e=>{a?e[0].isIntersecting||n():e[0].isIntersecting&&n()});try{return i.observe(document.querySelector(t)),i}catch(e){console.error("Observation failed with error: ",e),n()}},i=e=>{let{observer:t,querySelector:n}=e;try{t.unobserve(document.querySelector(n))}catch(e){console.error("Un-observation failed with error: ",e)}},o=e=>{let{querySelectors:t,callback:n}=e;
1t.forEach(e=>{a({querySelector:e,callback:n})})};t.ZP=a},489758:function(e,t,n){"use strict";n.r(t);var a=n(931549),i=n(465365);t.default=e=>{let{size:t=40,isShot:n=!1,color:o="text-indigo-500 dark:text-indigo-200"}=e;return(0,a.jsx)("div",{className:"flex w-full justify-center ".concat(n?"mb-24":""),children:(0,a.jsx)(i.Z,{isCentered:!0,size:t,color:o})})}},659172:function(e,t,n){"use strict";var a,i;n.d(t,{D:function(){return a}}),n(44194),(i=a||(a={})).CONTAINED_PRIMARY="contained-primary",i.CUSTOM="custom",i.LINK="link",i.PRIMARY="primary",i.SECONDARY="secondary",i.TRANSPARENT="transparent"},207010:function(e,t){"use strict";var n,a;(a=n||(n={})).VIEW_MODE="view",a.REVIEW_MODE="review",t.Z=n},535330:function(e,t){"use strict";var n,a;(a=n||(n={})).LESSON_IN_PROGRESS="LESSON_IN_PROGRESS",a.LESSON_COMPLETED="LESSON_COMPLETED",t.Z=n},125110:function(e,t,n){"use strict";n.d(t,{AI:function(){return s},Ay:function(){return g},Bw:function(){return b},C1:function(){return T},EO:function(){return C},EY:function(){return m},Iq:function(){return c},JP:function(){return f},LZ:function(){return a},R$:function(){return A},RU:function(){return r},U1:function(){return w},UD:function(){return o},VR:function(){return d},WG:function(){return u},WX:function(){return i},cS:function(){return y},dd:function(){return v},ff:function(){return x},nD:function(){return h},oU:function(){return p},s0:function(){return _},sK:function(){return E},uH:function(){return l}});let a="var(--font-family-nunito-sans)",i="331px",o=1400,l=65,r=165,s="Learn in-demand tech skills in half the time",d="150px",c="300px",u=64,h=56,p="375px",v=10874637,m=30,g=320,_=214,f=372,x=242,b=350,y=228,w=264,C=173,E=["general","generic","community creator","generate","generator","communitycreator","What","definition","How","create","int","text","problem","vs","collection","collections","get","this","/*","//","0x80240017","18.04","2019","each","Error 1366x768","Fail","fast","fake","menu","right","side","size","smart","some","zero","year","world","without","with","weight","type"],A=["i","me","my","myself","we","our","ours","ourselves","you","you're","you've","you'll","you'd","your","yours","yourself","yourselves","he","him","his","himself","she","she's","her","hers","herself","it","it's","its","itself","they","them","their","theirs","themselves","what","which","who","whom","this","that","that'll","these","those","am","is","are","was","were","be","been","being","have","has","had","having","do","does","did","doing","a","an","the","and","but","if","or","because","as","until","while","of","at","by","for","with","about","against","between","into","through","during","before","after","above","below","to","from","up","down","in","out","on","off","over","under","again","further","then","once","here","there","when","where","why","how","all","any","both","each","few","more","most","other","some","such","no","nor","not","only","own","same","so","than","too","very","s","t","can","will","just","don","don't","should","should've","now","d","ll","m","o","re","ve","y","ain","aren","aren't","couldn","couldn't","didn","didn't","doesn","doesn't","hadn","hadn't","hasn","hasn't","haven","haven't","isn","isn't","ma","mightn","mightn't","mustn","mustn't","needn","needn't","shan","shan't","shouldn","shouldn't","wasn","wasn't","weren","weren't","won","won't","wouldn","wouldn't"],T="1012px"},575657:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});let a=["aws_secret_access_key","aws_access_key_id","aws_account_id","username","password"]},61948:function(e,t,n){"use strict";n.r(t),n.d(t,{CloudLabType:function(){return k},ConsoleUrlButton:function(){return z},CourseCloudLabWidgetWrapper:function(){return R},cloudLabFeedbackReasonOptions:function(){return V},courseCloudLabAfterEndAction:function(){return H},credentialFields:function(){return j},endAndStartNewLab:function(){return M},getAutoGeneratedEnvAndApiKeys:function(){return P},getWidgetCloudId:function(){return D},redirectToCloudLabHomePage:function(){return O},setCredentialAsApiKeysAndEnvKeys:function(){return N.Q},showLabExistWarning:function(){return U},startCourseCloudLab:function(){return B}});var a=n(931549),i=n(44194),o=n(791127),l=n(629099),r=n(808220),s=n(31843),d=n(161514),c=n(395454),u=n(881762);let h=e=>{let{author_id:t,collection_id:n,cloud_lab_id:a}=e,i="/api/cloud-lab/".concat(t,"/").concat(n,"/").concat(a,"/console");return(0,u.Z)({url:i,type:"GET"})},p=function(e,t,n,a,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l="/api/cloud-course-session/".concat(e,"/").concat(t,"/").concat(i,"?end_previous=").concat(o);return(0,u.Z)({url:l,type:"PUT",data:{active_group_id:a,active_page_id:n}})};var v=n(465365),m=n(354069),g=n(275307),_=n(865546),f=n(575657),x=n(93473),b=n(389392),y=n(262603),w=n(963385),C=n(986758),E=n(290442),A=n(830006),T=n(273650),S=n(810343),N=n(428405),L=n(229208);let k={CLOUD_LAB:1,CLOUD_COURSE:2,STANDALONE_CLOUD_LAB:3},j=[{name:"Sign-in URL",key:"sign_in_url",eventAction:"SIGN_IN_URL_COPY_CLICKED"},{name:"Username",key:"username",USERNAME_COPY_CLICKED:"USERNAME_COPY_CLICKED"},{name:"Password",key:"password",PASSWORD_COPY_CLICKED:"PASSWORD_COPY_CLICKED"}
1,{name:"Access Key ID",key:"access_key_id",ACCESS_KEY_COPY_CLICKED:"ACCESS_KEY_COPY_CLICKED"},{name:"Secret Access Key",key:"secret_access_key",SECRET_KEY_COPY_CLICKED:"SECRET_KEY_COPY_CLICKED"}],I="https://signin.aws.amazon.com/oauth?Action=logout",O=(e,t,n,a,i,o,l,r,s,d,c)=>{if(c){let i=e.query.palCourseUrlSlug,l=o?e.query.palModuleAuthorId:t,r=o?e.query.palModuleCollectionId:n,s=o?e.query.palModulePageId:a,c=!!l&&!!r&&!!s,u="".concat(i?"/courses/".concat(i):"/pal/".concat(d),"/").concat(l,"/").concat(r,"/").concat(s,"/cloudlab");e.push(c?u:i?"/courses/".concat(i):"/pal?mp=".concat(d));return}e.push("".concat(d?"/module/page/".concat(d,"/").concat(t,"/").concat(n,"/").concat(a,"/cloudlab"):l&&r&&s?"/collection/page/".concat(l,"/").concat(r,"/").concat(s,"/cloudlab"):i&&o?"/cloudlabs/".concat(i):"/collection/page/".concat(t,"/").concat(n,"/").concat(a,"/cloudlab")))},R=e=>{var t;let{courseCloudLab:n,widgetContent:i,updateContentState:o,children:l}=e,r=null==n?void 0:n.widget_groups,s=e=>{let t=r.findIndex(t=>t.id===e);return -1===t?0:t},d=e=>{o({cloud_session_group:{id:e}})};return(0,a.jsxs)(a.Fragment,{children:[W&&(0,a.jsxs)("div",{className:"mb-2 inline-flex flex-row",children:[(0,a.jsx)("span",{className:"p-2 pb-0 text-lg font-semibold text-black dark:text-gray-D200",children:"Select Course Cloud Lab widget group"}),(0,a.jsx)(w.Z,{value:null==i?void 0:null===(t=i.cloud_session_group)||void 0===t?void 0:t.id,renderValue:()=>{var e,t;return null==r?void 0:null===(e=r[s(null==i?void 0:null===(t=i.cloud_session_group)||void 0===t?void 0:t.id)])||void 0===e?void 0:e.group_name},onChange:e=>{d(e)},customClass:"w-64",children:r.map(e=>(0,a.jsx)(C.Z,{value:e.id,children:e.group_name},e.id))})]}),l]})},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[L.MC,L.OP].map(n=>({id:n,key:n,name:n,value:n in e?e[n]:"",useAsDefault:!0,...t&&{info:"",required:!1,deleted:!1}}))},D=e=>{var t,n;let{comps:a,hash:i}=e,o=null==a?void 0:null===(n=a[i])||void 0===n?void 0:null===(t=n.content)||void 0===t?void 0:t.cloud_session_group;return o?null==o?void 0:o.id:""},M=(e,t,n)=>{var a,i,o,l,r,s,d,u,h;let{pageId:p,collection:v}=e,{authorId:m,collectionId:g}=v;return((null==v?void 0:null===(o=v.instance)||void 0===o?void 0:null===(i=o.details)||void 0===i?void 0:null===(a=i.course_cloud_lab)||void 0===a?void 0:a.admin)?(0,x.JL)(m,g,null==v?void 0:null===(s=v.instance)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:null===(l=r.course_cloud_lab)||void 0===l?void 0:l.course_cloud_lab_id):(0,c.e)(m,g,null==v?void 0:null===(h=v.instance)||void 0===h?void 0:null===(u=h.details)||void 0===u?void 0:null===(d=u.course_cloud_lab)||void 0===d?void 0:d.course_cloud_lab_id)).then(()=>{B({pageId:p,collection:v},t,n)})},U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},i=n?"session":"lab";return e(b.n.show(_.zN,{onConfirm:t,onCancel:a,onClose:a,cancelText:"Cancel",confirmText:"End Lab",title:"A cloud ".concat(i," is already running"),description:"Do you want to end the current cloud ".concat(i," and start a new one?"),danger:!0,styleType:"leftAligned"}))},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return fetch(I,{mode:"no-cors",credentials:"include"}).then(()=>(window.open(e,"_blank","noopener, noreferrer"),1)).catch(n=>t>2?0:((0,S.u)(Error("Failed to logout from current session ".concat(n))),Z(e,t+1)))},B=function(e,t,n){var a,i,o,l;let{pageId:r,collection:s}=e,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{authorId:c,collectionId:u}=s,h=null==s?void 0:null===(i=s.instance)||void 0===i?void 0:null===(a=i.details)||void 0===a?void 0:a.course_cloud_lab,v=null==s?void 0:null===(l=s.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.url_slug,m=null==h?void 0:h.admin;return(m?(0,x.qu)(c,u,null==h?void 0:h.course_cloud_lab_id,!1,t,r):p(c,u,r,t,null==h?void 0:h.course_cloud_lab_id,d)).then(e=>{(e=JSON.parse(e))&&((0,N.Q)(s,Object.fromEntries(f.s.map(t=>[t,e[t.replace(F+"_","")]])),t,r,!1,!0),n({type:"setInProgressLab",payload:{author_id:c,collection_id:u,cloud_lab_id:null==h?void 0:h.course_cloud_lab_id,title:"",end_time:Date.now()+6e4*h.time_limit,active_page_id:r,course_url_slug:v,test_mode:m,setup_status:e.setup_status,...e.sign_in_url&&{sign_in_url:e.sign_in_url}}}))})},z=e=>{let{setup_status:t,sign_in_url:n,author_id:c,collection_id:u,cloud_lab_id:p,disable_federated_login:f,setLabSetupStatus:w,labCompleted:C=!1,eventCategory:E,className:A="",labEndTime:T,buttonClasse
1s:S="border-2 border-solid border-indigo-500 bg-indigo-500 dark:bg-indigo-500"}=e,N=(0,y.TL)(),[L,k]=(0,i.useState)(!0),[j,O]=(0,i.useState)(!1),[R,P]=(0,i.useState)(""),D=(0,i.useRef)(null),M=(0,i.useRef)(null),[U,B]=(0,i.useState)(!1),z=()=>{let e=Date.now();if(M.current=e,e<T)return h({author_id:c,collection_id:u,cloud_lab_id:p}).then(JSON.parse).then(e=>{P(e.url),k(!1)}).catch(()=>{P(n),k(!1)})};(0,i.useEffect)(()=>{if(f){P(n),k(!1);return}let e=()=>{"visible"===document.visibilityState?null==D.current&&((null==M.current||Date.now()-M.current>87e4)&&z(),D.current=setInterval(z,87e4)):(D.current&&clearInterval(D.current),D.current=null)};return document.addEventListener("visibilitychange",e),document.addEventListener("focus",e),document.addEventListener("blur",e),e(),()=>{D.current&&clearInterval(D.current),D.current=null,M.current=null,e&&document.removeEventListener("visibilitychange",e),document.removeEventListener("focus",e),document.removeEventListener("blur",e)}},[T]),(0,i.useEffect)(()=>{let e=null;return t===r.P.IN_PROGRESS&&(e=(0,x.d1)(c,u,p,"stack".concat(p),w)),()=>{e&&clearInterval(e)}},[w,t]);let H=t===r.P.IN_PROGRESS,F=L||U,W=H||F;return(0,a.jsxs)("div",{className:"".concat(A," flex items-center gap-x-2"),children:[t===r.P.FAILED&&(0,a.jsx)(l.default,{overlay:"Configuration Failed",parentClasses:"cursor-pointer inline-flex items-center justify-center mr-2",position:"bottom",children:(0,a.jsx)(m.Z,{className:"h-4 w-4 text-orange-500"})}),(0,a.jsx)("button",{id:"cloudlab-open-console-btn",className:"".concat(S," h-full select-none py-2 ").concat(H?"w-auto":"w-32"," ").concat(W?"cursor-default focus:outline-0":"cursor-pointer"),disabled:C,onClick:async()=>{!W&&((0,d.Z)(E,"Clicked_OpenConsole_Button"),B(!0),R!==n&&N(b.n.close()),await Z(R).finally(()=>B(!1))||window.open(R,"_blank","noopener, noreferrer"))},children:H?(0,a.jsxs)("div",{className:"flex h-full items-center justify-center",children:[(0,a.jsx)(v.Z,{size:20,color:"text-white"}),(0,a.jsx)("span",{className:"ml-1",children:"Configuring..."})]}):F?(0,a.jsx)(v.Z,{size:22,contrast:!0}):"Open Console"}),j?(0,a.jsx)(v.Z,{}):(0,a.jsx)(l.default,{id:"cloudlab-regen-credentials-btn",overlay:"Having trouble signing in to AWS console? Try using account credentials directly (click on the key icon) or press this button to generate fresh new credentials.",parentClasses:"h-5 w-5 flex cursor-pointer items-center justify-center rounded-full border-2 border-solid border-gray-L500 dark:border-gray-D300",overlayParentClasses:"w-56",backgroundColor:"bg-white border-white dark:bg-gray-D1200 dark:border-gray-D1200",overlayParentTextColorClasses:"text-black dark:text-gray-D200",position:o.xR,onClick:async()=>{j||(O(!0),fetch(I,{mode:"no-cors",credentials:"include"}).catch(),await z(),O(!1),N(b.n.show(_.lu,{status:s.o.SUCCESS,text:'New credentials generated. Use "Open Console" button to open AWS console.',actionButtonText:"Close",duration:0,actionButtonClickHandler:()=>N(b.n.close())})))},children:(0,a.jsx)(g.Z,{className:"h-3 w-2 fill-current text-gray-L500 dark:text-gray-D300"})})]})},H=(e,t,n)=>{var a,i,o,l,r,s,d,c;let u=null==e?void 0:null===(i=e.instance)||void 0===i?void 0:null===(a=i.details)||void 0===a?void 0:a.api_keys;u=(u||[]).filter(e=>!f.s.includes(e.id));let h=null==e?void 0:null===(r=e.instance)||void 0===r?void 0:null===(l=r.details)||void 0===l?void 0:null===(o=l.docker)||void 0===o?void 0:o.envs;h=(h||[]).filter(e=>!f.s.includes(e.id));let p=null==e?void 0:null===(d=e.instance)||void 0===d?void 0:null===(s=d.details)||void 0===s?void 0:s.course_cloud_lab;n.set({...e,instance:{...e.instance,details:{...e.instance.details,course_cloud_lab:{...p,active_group_id:null,active_page_id:null},user_course_cloud_lab:null,api_keys:u,docker:{...null===(c=e.instance.details)||void 0===c?void 0:c.docker,envs:h}}}}),T.Z.getState().saveEnvs({envs:h})},F="aws",W=(0,E.Z)()||(0,A.ZP)(),V=[{value:"Resource Creation Restricted"},{value:"VSCode Stopped Working"},{value:"Authorization Error"},{value:"Instruction Mismatch"},{value:"Terminal Keeps Disconnecting"},{value:"Code Not Working"},{value:"Test Failed"},{value:"Other"}]},428405:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var a=n(575657),i=n(229208);let o=(e,t)=>{var n,o,l,r,s;let d=null==e?void 0:null===(o=e.instance)||void 0===o?void 0:null===(n=o.details)||void 0===n?void 0:n.api_keys;d=null==d?void 0:d.filter(e=>!a.s.includes(e.id));let c=null==e?void 0:null===(s=e.instance)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:null===(l=r.docker)||void 0===l?void 0:l.envs;c=null==c?void 0:c.filter(e=>!a.s.includes(e.id));let u=[];Object.keys(t||{}
1).forEach(e=>{let n=[i.MC,i.OP,"account_id"].includes(e)?"aws".concat("_"+e):e;u.push({id:n,key:n,name:n,value:null==t?void 0:t[e]})});let h=u;return{updatedEnvs:[...c,...h=h.map(e=>({...e,deleted:!1,useAsDefault:!0,defaultValue:e.value}))],updatedApis:[...d,...u]}};var l=n(273650);let r=function(e,t,a,i){var r,s,d;let c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],{updatedEnvs:h,updatedApis:p}=o(e,t),v={...e,instance:{...e.instance,details:{...e.instance.details,course_cloud_lab:{...null===(r=e.instance.details)||void 0===r?void 0:r.course_cloud_lab,active_group_id:a,active_page_id:i},user_course_cloud_lab:{...null===(s=e.instance.details)||void 0===s?void 0:s.user_course_cloud_lab,...t},api_keys:[...p],docker:{...null===(d=e.instance.details)||void 0===d?void 0:d.docker,envs:[...h]}}}};if(c)return v;n.g.authorCollectionActions.set(v),u&&l.Z.getState().saveEnvs({envs:h})}},229208:function(e,t,n){"use strict";n.d(t,{KN:function(){return s},MC:function(){return o},Ny:function(){return u},OP:function(){return l},ST:function(){return h},Xr:function(){return c},an:function(){return d},qC:function(){return r},uB:function(){return p}});var a=n(494296),i=n(881762);let o="access_key_id",l="secret_access_key",r='cd /usr/local/bin && aws configure set aws_access_key_id "$'.concat(o,'"  && aws configure set aws_secret_access_key "$').concat(l,'" && aws configure set region us-east-1'),s=e=>(null==e?void 0:e.ids)?e.ids.map(t=>e.entities[t]):e,d=(e,t)=>{let n=RegExp("\\/".concat(t,"\\/image\\/\\d+\\?page_type=(cloud_lab_task|collection_lesson)"),"g");return JSON.parse(JSON.stringify(e).replace(n,e=>e.replace(/page_type=(cloud_lab_task|collection_lesson)/,"page_type=cloud_lab")))},c={CLOUD_SHELL:"CloudShell",WORKSPACE:"CloudLabWorkspace"},u=e=>{var t,n,i,o,l,r,s,d,u,h,p,v,m,g,_;let f=null!==(d=null===(t=e.content)||void 0===t?void 0:t.content)&&void 0!==d?d:e.content,x=null!==(u=null===(n=e.content)||void 0===n?void 0:n.envContent)&&void 0!==u?u:{},b=null!==(h=null===(i=e.content)||void 0===i?void 0:i.subTasks)&&void 0!==h?h:[],y=null!==(p=null===(o=e.content)||void 0===o?void 0:o.footNote)&&void 0!==p?p:[];return Object.keys(b).forEach(e=>{b[e]={title:"",content:"",hints:[],recommendations:[],selected_runner_id:-1,...b[e]}}),{...e,content:f,envContent:{codeContent:{comp_id:null!==(v=null==x?void 0:null===(l=x.codeContent)||void 0===l?void 0:l.comp_id)&&void 0!==v?v:(0,a.x0)(),version:null!==(m=null==x?void 0:null===(r=x.codeContent)||void 0===r?void 0:r.version)&&void 0!==m?m:1,...null!==(g=null==x?void 0:x.codeContent)&&void 0!==g?g:{}},type:null!==(_=null==x?void 0:x.type)&&void 0!==_?_:c.CLOUD_SHELL},health_test_code:(null===(s=e.content)||void 0===s?void 0:s.health_test_code)||"",subTasks:b,footNote:y}},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.reduce((e,t)=>{let n=Number(null==t?void 0:t.id);return Number.isNaN(n)||e.push(n),e},[]),a=new Set(n.slice(-2)),i=new Set;for(let e of n){let n=null==t?void 0:t[e];(null==n?void 0:n.completed)===!0&&i.add(e)}for(let e of n)if(!i.has(e)&&!a.has(e))return!1;return!0},p=async(e,t,n)=>{let a=JSON.parse(await (0,i.Z)({url:"/api/cloud-lab/".concat(e,"/").concat(t,"/").concat(n,"/previously-completed"),type:"GET"}));return!!(null==a?void 0:a.completed_previously)}},574650:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a8}});var a,i,o,l,r,s,d,c,u,h,p,v,m,g,_,f,x,b,y,w,C,E,A,T,S,N,L,k,j,I,O,R,P=n(931549),D=n(947447),M=n(78044),U=n.n(M),Z=n(503346),B=n(44194),z=n(373516),H=n(107565),F=n(431319),W=n(520649),V=n(117717);let G="10370001",K=["4651429556125696","5500262945128448","6593625897304064","6587001564561408","6732714957078528","6349081334775808"];var q=n(52586),Y=n(605260),J=n(174246),X=n(758351),Q=n(161514),$=e=>{let{expiryDate:t,authorId:n,collectionId:a}=e,[i,o,l]=t.split(" "),r="Starting ".concat(i," ").concat(o,", ").concat(l,", this course goes subscriber-only. Secure your Year-End Offer: Up to 20% OFF!"),s="Starting ".concat(i," ").concat(o,", ").concat(l,", this course goes subscriber-only. Get upto 20% OFF!"),d=(0,Z.useRouter)();return(0,P.jsxs)("div",{className:"flex flex-row items-center gap-1 text-center sm:gap-4",children:[(0,P.jsx)("span",{className:"tailwind-hidden lg:inline",children:r}),(0,P.jsx)("span",{className:"lg:hidden",children:s}),(0,P.jsx)("button",{className:"mr-2 w-fit cursor-pointer rounded-sm bg-transparent !p-0 py-1.5 !text-sm text-black underline sm:p-3",onClick:()=>{(0,Q.Z)("ACCESS_EXPIRY_BANNER","Get_Offer_From_Scratch","".concat(n,"/").concat(a)),d.push({pathname:"/learn-to-code",query:{scroll_to_l2c_tile:"true"}})},children:"Get Offer"})]})},ee=n(871889);function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var en=function(e){return B.createElement("svg",et({xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",viewBox:"0 0 25 24"},e),r||(r=B.createElement("path",{fill:"#fff",d:"M4.6 24c-2.8-.1-4.8-9.5-1-14.4 3.8-5 15-5.9 18.8-.4 3.8 5.4.6 13-.2 13.5S9.8 24.2 4.6 24Z"})),s||(s=B.createElement("path",{fill:"#E0E0FF",d:"M24.1 13.8c-1.7 5.9-10.7 9.3-17.7 9a10 10 0 0 1-3.8-.6c.6 1 1.3 1.7 2 1.8 5.2.2 16.8-.8 17.6-1.3.6-.3 2.5-4.5 2-8.9Z"})),d||(d=B.createElement("path",{fill:"#7775FF",d:"M11.2 22.5c-4.7 0-8.7-2.3-7.7-8 .9-5.9 8-7.2 13.2-5.8 5.1 1.4 5.4 7.1 4.5 9.7-1 2.5-4.7 4-10 4Z"})),c||(c=B.createElement("path",{fill:"#5553FF",d:"M11.5 22.9c-4.6 0-8.5-2.3-7.6-8.1C5 9 11.8 7.6 16.8 9c5 1.4 5.2 7.2 4.3 9.8-.9 2.5-4.5 4-9.6 4Z"})),u||(u=B.createElement("path",{fill:"#2B2A83",d:"M20.8 12.6a6 6 0 0 0-4-3.6c-4-1-9-.5-11.5 2.6 1.2-.7 2.8-1.3 5-1.5 5.8-.5 9 1 10.5 2.5Z"})),h||(h=B.createElement("path",{fill:"#5553FF",d:"M11.5 7.3c-.1 0-.2 
10-.1-.1 0-1 .8-7.2 1.2-7.2.5 0 1 5.4 1 5.5 0 0-1 1.6-1.3 1.7h-.8Z"})),p||(p=B.createElement("path",{fill:"#2B2A83",d:"M13.6 5.5c0-.1-.3-4-.8-5.2-.3 1.3-.6 6.3-.5 6.9.3-.1 1.3-1.6 1.3-1.7Z"})),v||(v=B.createElement("path",{fill:"#EEF",d:"M7.3 17.4a1.7 1.7 0 1 0 0-3.5 1.7 1.7 0 0 0 0 3.5Zm10.8-.6a1.7 1.7 0 1 0 0-3.5 1.7 1.7 0 0 0 0 3.5Zm-7.2.9a25.7 25.7 0 0 0 3.8-.5c.4-.1.2-.8-.2-.7-.7.3-1.5.3-2.2.4l-1.4.1c-.5 0-.5.7 0 .7Z"})))};let ea="Try Now";var ei=e=>{let{courseTitle:t}=e,n=(0,Z.useRouter)();return(0,P.jsxs)("div",{className:"flex flex-col items-center text-center lg:flex-row",children:[(0,P.jsx)("div",{className:"mb-2 h-5 w-5",children:(0,P.jsx)(en,{})}),(0,P.jsx)("span",{className:"pl-3 font-semibold text-indigo-900 dark:text-indigo-100",children:"AI-powered Mock Interviewer"}),(0,P.jsx)("span",{className:"body-small pl-2 pr-4 text-indigo-900 dark:text-indigo-100",children:"Test your skills in a simulated technical interview environment"}),(0,P.jsx)("button",{className:"navigation-text w-fit cursor-pointer bg-transparent py-1 !text-sm text-indigo-500 underline dark:text-gray-D100",onClick:()=>{(0,Q.Z)("AI_MOCK_INTERVIEW","Clicked_TryCTA_Banner",t,null,{page_section:"course_banner"}),(0,ee.d)("Clicked_TryCTA_Banner",JSON.stringify({buttonText:ea}),n),n.push("/mock-interview")},children:ea})]})},eo=n(782512),el=n(177302),er=n(269536),es=n(900667),ed=n(580811),ec=n(764412),eu=n(897986),eh=n.n(eu);let ep=e=>e&&e.startsWith("/")?(0,es.Z)({src:e,width:980,quality:85}):e,ev=(e,t)=>e===G&&"6237869033127936"===t;var em=e=>{let{overviewData:t,summary:n,authorId:a,collectionId:i,isCourseOverviewSectionV2Enabled:o=!1}=e,[l,r]=(0,B.useState)(new Set),s=(0,ec.a)("sm"),[d,c]=(0,B.useState)(0),[u,h]=(0,B.useState)(0),[p,v]=(0,B.useState)(new Set),[m,g]=(0,B.useState)(0),[_,f]=(0,B.useState)(!1),x=(0,B.useRef)(null),b=(0,B.useRef)(),y=(0,B.useRef)([]),w=ev(a,i)&&!o,C=(0,B.useCallback)(()=>{b.current&&cancelAnimationFrame(b.current),b.current=requestAnimationFrame(()=>{if(!x.current)return;let e=x.current,{top:t,height:n}=e.getBoundingClientRect(),a=window.innerHeight/2,i=0;c((i=t>a?0:t+n<0?100:Math.min(100,Math.max(0,a-t)/n*100))/100),e.querySelectorAll("[data-bottom-dot]").forEach(e=>{i>=100?(e.classList.remove("bg-brand-disabled"),e.classList.add("bg-brand-secondary")):(e.classList.remove("bg-brand-secondary"),e.classList.add("bg-brand-disabled"))});let o=new Set,l=i/100*n,s=window.innerWidth<parseInt(er.BREAK_POINTS.lg);e.querySelectorAll(s?'[data-dot-index^="sm-"]':'[data-dot-index]:not([data-dot-index^="sm-"])').forEach(t=>{let n=parseInt((t.getAttribute("data-dot-index")||"0").replace("sm-","")),a=t.getBoundingClientRect(),i=e.getBoundingClientRect();l>=a.top-i.top&&o.add(n)}),r(o);let d=e.querySelectorAll("[data-overview-index]"),u=0,p=1/0;d.forEach(e=>{let t=parseInt(e.getAttribute("data-overview-index")||"0"),n=e.getBoundingClientRect(),i=Math.abs(n.top+n.height/2-a);i<p&&(p=i,u=t)}),h(u)})},[]);(0,B.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting?(window.addEventListener("scroll",C,{passive:!0}),C()):window.removeEventListener("scroll",C)},{threshold:0}),t=x.current;return t&&e.observe(t),()=>{e.disconnect(),window.removeEventListener("scroll",C),b.current&&cancelAnimationFrame(b.current)}},[C]),(0,B.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{let t=parseInt(e.target.getAttribute("data-image-index")||"0");if(e.isIntersecting&&v(e=>new Set(e).add(t)),0===t){let t=e.boundingClientRect,n=window.innerHeight;e.intersectionRatio>=.8&&f(!0),e.intersectionRatio<.8&&e.intersectionRatio>0&&t.top>n/2&&f(!1),g(e.intersectionRatio)}})},{rootMargin:"100px",threshold:Array.from({length:21},(e,t)=>.05*t)});return y.current.forEach((t,n)=>{t&&(t.setAttribute("data-image-index",n.toString()),e.observe(t))}),()=>e.disconnect()},[]);let E=(0,P.jsxs)(P.Fragment,{children:[!w&&(0,P.jsx)("div",{className:"absolute -top-12 z-10 h-3 w-3 -translate-x-1/2 rounded-full bg-indigo-300 dark:bg-indigo-50 lg:-top-3 lg:left-1/2"}),(0,P.jsxs)("div",{className:"absolute -top-12 bottom-5 left-0 w-1 -translate-x-1/2 overflow-hidden lg:-top-1 lg:left-1/2",children:[(0,P.jsx)("div",{className:"bg-brand-secondary pointer-events-none absolute left-1/2 top-0 z-20 -translate-x-1/2 roun
1ded-sm",style:{height:"100%",transform:"translateX(-50%) translateZ(0) scaleY(".concat(d,")"),transformOrigin:"top",transition:"transform 0.1s ease-out",width:"3px"}}),Array.from({length:100},(e,t)=>(0,P.jsx)("div",{className:"bg-brand-disabled absolute h-6 rounded-sm",style:{top:"".concat(36*t,"px"),left:"0.5px",width:"3px"}},t))]}),(0,P.jsx)("div",{"data-bottom-dot":!0,className:"bg-brand-disabled absolute bottom-5 left-0 z-10 h-3 w-3 -translate-x-1/2 rounded-full lg:left-1/2"})]});return(0,P.jsx)("div",{id:ed.X.OVERVIEW,className:"bg-neutral-default w-full",children:(0,P.jsxs)("div",{className:"relative mx-auto w-full pl-8 pr-4 sm:pl-12 sm:pr-8 lg:px-4 lg:pb-32",style:{maxWidth:"1140px"},children:[w?(0,P.jsx)("div",{className:"relative z-10 -ml-4 mb-9 mt-8 flex items-start justify-start lg:mb-0 lg:ml-0 lg:items-center lg:justify-center",children:(0,P.jsxs)("div",{className:"content-default bg-neutral-tertiary rounded-xl p-6 text-center",children:[(0,P.jsx)("div",{className:"mb-3 text-left text-xs font-bold lg:text-center ".concat(eh().summaryHeading),children:"WHAT YOU'LL LEARN"}),(0,P.jsx)("div",{className:"text-left text-base font-normal lg:text-center",children:n})]})}):(0,P.jsx)("div",{className:"content-emphasis mb-9 w-full pl-8 pt-18 text-2xl font-bold sm:pl-0 sm:pt-20 sm:text-center lg:mb-16 lg:text-4xl",children:"Why choose this course?"}),(0,P.jsxs)("div",{ref:x,className:"relative",children:[(0,P.jsx)("div",{className:"tailwind-hidden lg:block",children:E}),(0,P.jsxs)("div",{className:"flex gap-9 sm:gap-12",children:[(0,P.jsx)("div",{className:"lg:tailwind-hidden",children:E}),(0,P.jsx)("div",{className:"w-full",children:t.map((e,t)=>(0,P.jsxs)("div",{"data-overview-index":t,className:"relative flex w-full flex-col items-center justify-between pt-0 transition-opacity duration-300 ease-out lg:flex-row ".concat(w?"lg:pt-16":"lg:pt-0"),children:[(0,P.jsx)("div",{className:"lg:tailwind-hidden absolute top-0 ".concat(eh().overviewIndicatorPositionClasses),children:(0,P.jsx)("div",{className:"flex items-center justify-center",children:(0,P.jsx)("div",{"data-dot-index":"sm-".concat(t),className:"z-10 h-4 w-4 rounded-full transition-all duration-200 ease-out ".concat(l.has(t)?"bg-brand-secondary":"bg-brand-disabled")})})}),(0,P.jsxs)("div",{className:"flex w-full flex-col gap-3 pb-9 lg:pt-4 ".concat(eh().overviewSectionContent),children:[(0,P.jsx)("h2",{className:"content-emphasis text-lg font-bold leading-7 transition-opacity duration-300 ease-out sm:text-xl lg:text-2xl lg:leading-8 ".concat(s||u>=t?"opacity-100":"opacity-50"),children:e.heading}),(0,P.jsx)("div",{className:"content-default text-sm leading-6 transition-opacity duration-300 ease-out sm:text-base lg:text-lg ".concat(s||u>=t?"opacity-100":"opacity-75"),children:e.sub_text})]}),(0,P.jsx)("div",{className:"tailwind-hidden lg:block",children:(0,P.jsx)("div",{className:"absolute flex items-center justify-center",style:{left:"49.27%"},children:(0,P.jsx)("div",{"data-dot-index":t,className:"z-10 h-4 w-4 rounded-full transition-all duration-1000 ease-out ".concat(l.has(t)?"bg-brand-secondary":"bg-brand-disabled")})})}),(0,P.jsx)("div",{className:"flex justify-end pb-28 lg:pb-0 ".concat(eh().overviewSectionImage),style:{opacity:s||u>=t?1:.5,transition:"opacity 0.6s ease-in-out"},ref:e=>y.current[t]=e,children:(0,P.jsx)("div",{className:"relative ".concat(eh().ImageDimensions),style:{"--light-image":"url('".concat(ep(e.image_url),"')"),"--dark-image":"url('".concat(ep(e.dark_image_url),"')")},children:p.has(t)&&(0,P.jsx)("div",{className:eh().overviewImage,role:"img","aria-label":e.heading,style:{height:"90%",...0===t?{opacity:_?1:m>.8?1:.35,transition:"opacity 0.4s ease-out"}:{}}})})})]},t))})]})]})]})})},eg=n(458724),e_=n.n(eg),ef=n(746931),ex=n.n(ef);function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var ey=function(e){return B.createElement("svg",eb({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14"},e),m||(m=B.createElement("path",{fill:"currentColor",d:"M9 3.7 5.5 7l3.3 3.3-1 1L3.5 7l4.4-4.4 1 1Z"})))};function ew(){return(ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var eC=function(e){return B.createElement("svg",ew({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14"},e),g||(g=B.createElement("path",{fill:"currentColor",d:"M5 10.3 8.5 7 5.1 3.7l1-1L10.5 7l-4.4 4.4-1-1Z"})))};let eE="CHP_IMAGE_CAROUSEL",eA="CHP_IMAGE_CAROUSEL_SCROLL";var eT=e=>{let{children:t,urlSlug:n}=e,[a,i]=(0,B.useState)(0),[o,l]=(0,B.useState)(!1),[r,s]=(0,B.useState)(0),[d,c]=(0,B.useState)(0),[u,h]=(0,B.useState)(!1),p=(0,B.useRef)(null),v=(0,B.useRef)(null),m=B.Children.toArray(t),g=m.length,_=e=>{i(e),(0,Q.Z)(eE,eA,n)},f=e=>{u||(l(!0),s(e),h(!1))},x=e=>{var t;if(!o)return;let n=e-r,i=.3*((null===(t=v.current)||void 0===t?void 0:t.offsetWidth)||0);c(0===a&&n>0?.3*n:a===g-1&&n<0?.3*n:Math.max(-i,Math.min(i,n)))},b=()=>{var e;o&&(l(!1),h(!0),Math.abs(d)>.2*((null===(e=v.current)||void 0===e?void 0:e.offsetWidth)||0)&&(d>0&&a>0?(i(a-1),(0,Q.Z)(eE,eA,n)):d<0&&a<g-1&&(i(a+1),(0,Q.Z)(eE,eA,n))),c(0),setTimeout(()=>{h(!1)},300))};return 0===g?(0,P.jsx)("div",{className:"md:shadow-none md:rounded-none relative mx-auto w-full max-w-full overflow-hidden rounded-xl bg-black shadow-2xl",children:"No images to display"}):(0,P.jsxs)("div",{className:"mb-4 flex flex-col",children:[(0,P.jsxs)("div",{className:"relative flex",ref:v,children:[0!==a&&(0,P.jsx)("div",{onClick:()=>{a>0&&(i(a-1),(0,Q.Z)(eE,eA,n))},className:"s-def-neutral-rest bg-neutral-default absolute z-10 hidden h-12 w-12 cursor-pointer items-center justify-center rounded-full border border-solid transition-all duration-300 lg:flex lg:flex-shrink-0 ".concat(""),"aria-label":"Previous image",style:{to
1p:"calc(50% - 24px)",left:"-64px",boxShadow:"0px 1px 3px 0px var(--shadow-def-neutral-10, rgba(0, 0, 0, 0.10)), 0px 1px 2px -1px var(--shadow-def-neutral-10, rgba(0, 0, 0, 0.10))"},role:"button",children:(0,P.jsx)(ey,{className:"content-emphasis h-5 w-5"})}),a!==g-1&&(0,P.jsx)("div",{onClick:()=>{a<g-1&&(i(a+1),(0,Q.Z)(eE,eA,n))},className:"s-def-neutral-rest bg-neutral-default absolute z-10 hidden h-12 w-12 cursor-pointer items-center justify-center rounded-full border border-solid transition-all duration-300 lg:flex lg:flex-shrink-0 ".concat(""),"aria-label":"Next image",style:{top:"calc(50% - 24px)",right:"-64px",boxShadow:"0px 1px 3px 0px var(--shadow-def-neutral-10, rgba(0, 0, 0, 0.10)), 0px 1px 2px -1px var(--shadow-def-neutral-10, rgba(0, 0, 0, 0.10))"},role:"button",children:(0,P.jsx)(eC,{className:"content-emphasis h-5 w-5"})}),(0,P.jsx)("div",{className:"relative flex w-full select-none overflow-hidden",children:(0,P.jsx)("div",{ref:p,className:"md:cursor-default flex w-full cursor-grab active:cursor-grabbing",style:{touchAction:"pan-y pinch-zoom",willChange:"transform",...o?{transform:"translateX(calc(-".concat(100*a,"% + ").concat(d,"px))"),transition:"none"}:{transform:"translateX(-".concat(100*a,"%)"),transition:"transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)"}},onTouchStart:e=>{f(e.touches[0].clientX)},onTouchMove:e=>{e.preventDefault(),x(e.touches[0].clientX)},onTouchEnd:()=>{b()},onMouseDown:e=>{e.preventDefault(),f(e.clientX)},onMouseMove:o?e=>{x(e.clientX)}:void 0,onMouseUp:()=>{b()},onMouseLeave:()=>{o&&b()},children:m.map((e,t)=>(0,P.jsx)("div",{className:"relative flex h-full w-full flex-shrink-0 items-center justify-center",children:(0,P.jsx)("div",{className:"h-full w-full [&_img]:pointer-events-none [&_img]:block [&_img]:h-full [&_img]:w-full [&_img]:select-none [&_img]:object-cover",children:e})},t))})})]}),(0,P.jsx)("div",{className:"mt-4 flex justify-center gap-3",children:g>1&&m.map((e,t)=>(0,P.jsx)("button",{className:"".concat(t===a?"bg-brand-default":"bg-primary-pressed"," h-2 w-3 p-0"),onClick:()=>_(t),"aria-label":"Go to image ".concat(t+1)},t))})]})},eS=n(876600),eN=n(41289),eL=n.n(eN);let ek=e=>{let{content:t,urlSlug:n}=e;return(0,P.jsx)(eT,{urlSlug:n,children:t.map((e,t)=>(0,P.jsx)("div",{className:eL().imageWrapper,children:(0,P.jsx)(eS.Z,{imageSrc:e.content.path,alt:e.content.caption||"widget",width:e.content.metadata.width,height:e.content.metadata.height,priority:!0,progressive:!0,showLandingPageImage:!0,sizes:"(max-width: 1080px) 100vw, 50rem",quality:85,allowZoom:!1})},t))})};var ej=n(553897),eI=n(83098),eO=n.n(eI),eR=e=>{let{content:t}=e;return(0,P.jsx)("div",{className:eO().container,children:(0,P.jsx)("div",{style:{maxWidth:t.width},className:eO().imageContainer,children:t.path?(0,P.jsx)("div",{className:eO().imageWrapper,children:(0,P.jsx)(eS.Z,{imageSrc:t.path,alt:t.caption||"widget",width:t.metadata.width,height:t.metadata.height,priority:!0,progressive:!0,showLandingPageImage:!0,sizes:"(max-width: 1080px) 100vw, 50rem",quality:85,zoomSizes:"100vw",allowZoom:!1})}):(0,P.jsxs)("div",{className:eO().errorContainer,children:[(0,P.jsx)(ej.Z,{className:"".concat(eO().errorIcon," ").concat(eO().iconLeft)}),(0,P.jsx)("div",{children:"No image selected"})]})})})};(a=_||(_={})).OVERVIEW="overview",a.OVERVIEW_MOBILE="overview_mobile",a.CONTENT="content",a.LEARNER_REVIEWS="learner_reviews",a.RELATED_CONTENT="related_content";let eP={overview:"course-overview",overview_mobile:"course-overview-mobile",content:"course-content",learner_reviews:"learner-reviews",related_content:"related-content"},eD=(0,n(466483).Ue)(()=>({expanded:{}})),eM=eD.setState,eU={expand:e=>eM(t=>{let{expanded:n}=t;return e in n?{expanded:n}:{expanded:{...n,[e]:!0}}}),toggle:e=>eM(t=>{let{expanded:n}=t;if(e in n){let t={...n};return delete t[e],{expanded:t}}return{expanded:{...n,[e]:!0}}}),expandAll:e=>{let t={};for(let n of e)t[n]=!0;eM({expanded:t})},collapseAll:(e,t)=>
1{var n;if(!e||0===e.length)return eM({expanded:{}});let a=null===(n=null==t?void 0:t.keepSingleLessonCategoriesExpanded)||void 0===n||n,i={};for(let t of e)a&&t.lessonCount<=1&&(i[t.id]=!0);eM({expanded:i})}},eZ=e=>eD(t=>e in t.expanded),eB=e=>eD(t=>e.length>0&&e.every(e=>e in t.expanded));var ez=n(949996),eH=n(702119),eF=n(853224),eW=n(43197),eV=n.n(eW);function eG(e){let{categories:t,keepSingleLessonCategoriesExpanded:n=!0}=e,a=(0,eF.P)("show_course_expanded_toggle"),i=eB(t.map(e=>e.id));return((0,B.useEffect)(()=>{let e=e=>{(0,ez.ZP)("mod+f",e)&&((0,Q.Z)("COURSE_HOMEPAGE","USER_SEARCH_VIA_MOD_F_SHORTCUT"),eU.expandAll(t.map(e=>e.id)))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t]),a)?(0,P.jsx)("button",{onClick:()=>{i?eU.collapseAll(t,{keepSingleLessonCategoriesExpanded:n}):eU.expandAll(t.map(e=>e.id))},className:eV().expandBtn,children:(0,P.jsx)("div",{children:(0,P.jsxs)("span",{children:[(0,P.jsx)("p",{children:i?"Collapse All":"Expand All"}),(0,P.jsx)(eH.Z,{})]})})}):null}var eK=n(830561),eq=n.n(eK);function eY(e){let{children:t,shouldShowExpand:n,className:a}=e,[i,o]=(0,B.useState)(!n);return(0,P.jsxs)("div",{className:[eq().container,i&&eq().showMore,a].filter(Boolean).join(" "),children:[t,n&&(0,P.jsxs)("button",{className:eq().expandButton,onClick:()=>{o(e=>!e)},children:["Show ",i?"less":"more"]})]})}var eJ=n(38196),eX=n(262270),eQ=n(368169),e$=n(86323),e0=n(290016),e1=n(837948),e2=n(434366),e5=n.n(e2);function e4(e){let{categories:t}=e;return(0,P.jsx)("section",{className:e5().container,children:(0,P.jsx)("div",{className:e5().contentContainer,children:(0,P.jsx)("div",{className:e5().tableContent,children:(0,P.jsxs)("div",{className:e5().content,children:[(0,P.jsxs)("div",{className:e5().contentHeading,children:[(0,P.jsx)("p",{className:e5().contentHeadingTitle,id:eP[_.CONTENT],children:"Content"}),(0,P.jsx)(eG,{categories:t.map(e=>({id:e.id.toString(),lessonCount:e.rows.length})),keepSingleLessonCategoriesExpanded:!1})]}),(0,P.jsx)("div",{className:e5().categories,children:(0,P.jsx)(eY,{shouldShowExpand:t.length>10,children:t.map((e,n)=>(0,P.jsxs)("div",{children:[(0,P.jsx)(e3,{categoryId:e.id.toString(),initiallyExpanded:n<2,title:(0,P.jsxs)("div",{className:e5().categoryTitle,children:[(0,P.jsxs)("p",{className:e5().categoryNumber+" heading-6",children:[e.id,"."]}),(0,P.jsxs)("div",{className:e5().categoryTitleInner,children:[(0,P.jsx)("p",{className:e5().categoryTitleText+" heading-5",children:e.title}),(0,P.jsxs)("p",{className:e5().categoryLessonCount,children:[e.rows.length," Lessons"]})]})]}),description:e.description,children:(0,P.jsx)("div",{className:e5().categoryLessons,children:e.rows.map(e=>(0,P.jsx)(e6,{title:e.title,description:e.description,url:e.link.url},e.title))})}),n!==t.length-1&&(0,P.jsx)("div",{className:e5().categoryDivider})]},e.id.toString()))})})]})})})})}function e3(e){let{categoryId:t,children:n,title:a,description:i,initiallyExpanded:o=!1}=e,l=eZ(t.toString()),[r,s]=(0,B.useState)(!1);(0,B.useEffect)(()=>{o&&eU.expand(t.toString()),s(!0)},[t,o]);let d=r?l:o;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:[e5().category,d&&"categoryExpanded"].filter(Boolean).join(" "),onClick:()=>{eU.toggle(t.toString())},children:[(0,P.jsxs)("div",{className:e5().title,children:[a,d?(0,P.jsx)(e1.Z,{}):(0,P.jsx)(e0.Z,{})]}),(0,P.jsx)("div",{className:e5().categoryDescription,children:i})]}),d&&n]})}function e6(e){let{title:t,description:n,url:a}=e,[i,o]=(0,B.useState)(!1),{data:l}=(0,eX.Pc)(),r=!!(null==l?void 0:l.user_id),s=(0,eF.P)(eQ.Z),d=e=>{e.preventDefault(),(0,eJ.q)({ru:a,pageSection:e$.t.CHP_Table_Of_Contents,signupText:"Start Learning for Free"}),(0,Q.Z)("SIGNUP","Clicked_Lesson_Signup",a,null,{collectionType:"Course Template"})};return(0,P.jsx)("div",{children:(0,P.jsxs)("div",{className:i&&e5().lessonExpandedBackground,children:[(0,P.jsxs)("span",{className:e5().lesson,children:[(0,P.jsx)("span",{className:e5().lessonDot,children:(0,P.jsx)("div",{})}),(0,P.jsxs)("span",{className:e5().lessonTitleContainer,onClick:()=>{o(!i)},children:[(0,P.jsx)(ex(),{href:a,prefetch:!1,...!r&&s&&{onClick:e=>d(e)},children:(0,P.jsx)("span",{className:e5().pageTitleText,children:t})}),(0,P.jsx)("span",{className:e5().lessonExpandArrow,children:i?(0,P.jsx)(e1.Z,{className:e5().lessonExpandArrowIcon}):(0,P.jsx)(e0.Z,{className:e5().lessonExpandArrowIcon})})]})]}),i&&(0,P.jsx)("div",{className:e5().lessonDescription,children:n})]})})}var e9=n(810343);let e8=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];try{let a=[],i=!1;for(let o of e)if("SlateHTML"===o.type){let e=o.content,l=e.html.includes(">carousel-start</p>"),r=e.html.includes(">carousel-end</p>");if(!l&&!r&&i&&t)return"Invalid Course Carousel Description Markup - Carousel Must Only Contain Images.";if(l&&r){let o=e.html.indexOf(">carousel-end</p>");if(e.html.indexOf(">carousel-start</p>")<o&&t)return"Invalid Course Carousel Description Markup - Started and Ended in the same text, no image added.";i=!1,a.length>0&&(n.push({type:"Carousel",content:a}),a=[]),i=!0}else if(l){if(i&&t)return"Invalid Course Carousel Description Markup - Started New Without Ending";i=!0}else if(r){if(!i&&t)return"Invalid Course Carousel Description Markup - Ended Without Starting";i=!1,a.length>0&&(n.push({type:"Carousel",content:a}),a=[])}n.push({...o,content:{...o.content,html:o.content.html.replace(/<p\b[^>]*>\s*carousel-start\s*<\/p>/gi,"").replace(/<p\b[^>]*>\s*carousel-end\s*<\/p>/gi,"")}})}else if("Image"===o.type)i?a.push(o):n.push(o);else{if(i&&t)return"Invalid Course Carousel Description Markup - Carousel Must Only Contain Images.";n.push(o)}if(i&&a.length>0&&t)return"Invalid Course Carousel Description Markup - Carousel Not Ended"}catch(a){if(t)return"There is something wrong with the Carousel processing, please check your syntax. Report an on-call issue if the error persists.";
1(0,e9.u)(a),e.forEach(e=>{"SlateHTML"===e.type?n.push({...e,content:{...e.content,html:e.content.html.replace(/<p\b[^>]*>\s*carousel-start\s*<\/p>/gi,"").replace(/<p\b[^>]*>\s*carousel-end\s*<\/p>/gi,"")}}):n.push(e)})}return t?"success":n};var e7=n(273169),te=n.n(e7);function tt(e){let{content:t,urlSlug:n}=e,a=e8(t);return(0,P.jsx)("div",{className:te().summary,children:a.map((e,t)=>{if("SlateHTML"===e.type)return(0,P.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content.html},className:te().summaryText},e.content.comp_id||t);if("Image"===e.type){let t=e.content;return(0,P.jsx)(eR,{content:t})}return"MarketingTableWithCategories"===e.type?(0,P.jsx)(e4,{categories:e.categories}):"Carousel"===e.type?(0,P.jsx)(ek,{content:e.content,urlSlug:n}):null})})}var tn=n(891905),ta=n(336449),ti=n(769526),to=n(359941),tl=n(561819),tr=n(252759),ts=n(85638),td=n(345514),tc=n(985222),tu=n(798240),th=n(384465),tp=n(133467);(i=f||(f={}))[i.AROUND=0]="AROUND",i[i.BOTTOM=1]="BOTTOM",(o=x||(x={}))[o.LEFT=0]="LEFT",o[o.RIGHT=1]="RIGHT";let tv="cursor-pointer hover:text-indigo-500 dark:hover:text-indigo-400 duration-200",tm="flex items-center justify-center rounded-full border border-solid p-2",tg=e=>{let{nodes:t,containerRef:n,firstChildRef:a,gap:i="gap-x-6"}=e;return(0,P.jsx)("div",{className:"flex w-full ".concat(i," overflow-hidden"),ref:n,children:B.Children.map(t,(e,t)=>B.cloneElement(e,{ref:0===t?a:void 0}))})},t_=e=>{let{totalItems:t,activeIndex:n}=e;return(0,P.jsx)("div",{className:"mt-12 flex justify-center",children:Array.from({length:t}).map((e,t)=>(0,P.jsx)("div",{className:"mr-2 h-2 rounded-full",style:{width:"0.5rem",backgroundColor:t===n?"#9CA3AF":"#E5E7EB"}},t))})};var tf=e=>{let{children:t,maxWidth:n="1140px",showCarouselIndicators:a=!1,arrowPlacement:i=0}=e,o=(0,ec.a)("lg"),l=(0,B.useRef)(null),r=(0,B.useRef)(null),[s,d]=(0,B.useState)(0),[c,u]=(0,B.useState)(0);(0,B.useEffect)(()=>{r.current&&d(r.current.offsetWidth)},[o]);let h=e=>{if(!(null==l?void 0:l.current))return;let n=0===e?-s-24:s+24,{scrollLeft:a,scrollWidth:i,clientWidth:o}=l.current;if(l.current.scrollBy({left:n,behavior:"smooth"}),u(n=>1===e?(n+1)%t.length:(n-1+t.length)%t.length),1===e&&a+o+n>=i){let e=l.current.firstElementChild;e&&(l.current.appendChild(e),l.current.scrollLeft-=s+24,l.current&&l.current.firstElementChild&&l.current.scrollBy({left:s+24,behavior:"smooth"}))}else if(0===e&&0===a&&n<0){let e=l.current.lastElementChild;e&&(l.current.insertBefore(e,l.current.firstElementChild),l.current.scrollLeft+=s+24,l.current&&l.current.lastElementChild&&l.current.scrollBy({left:-(s+24),behavior:"smooth"}))}};return(0,P.jsx)("div",{className:"flex w-full ".concat(0===i?"flex-col items-center":"flex-row justify-center"),children:0===i?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"flex w-full items-center justify-center px-5",style:{maxWidth:n,columnGap:"1.75rem"},children:[(0,P.jsx)("div",{className:"mr-1 ".concat(tm),children:(0,P.jsx)(th.Z,{onClick:()=>h(0),name:"selenium_scroll_to_left",className:tv})}),(0,P.jsx)(tg,{nodes:t,containerRef:l,firstChildRef:r}),(0,P.jsx)("div",{className:"ml-1 ".concat(tm),children:(0,P.jsx)(tp.Z,{onClick:()=>h(1),className:tv})})]}),a&&(0,P.jsx)(t_,{totalItems:t.length,activeIndex:c})]}):(0,P.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-y-6 px-5",style:{maxWidth:n},children:[(0,P.jsx)(tg,{nodes:t,containerRef:l,firstChildRef:r,gap:"gap-x-7"}),(0,P.jsxs)("div",{className:"flex w-full justify-center gap-x-7",children:[(0,P.jsx)("div",{className:"mr-1 ".concat(tm),children:(0,P.jsx)(th.Z,{onClick:()=>h(0),name:"selenium_scroll_to_left",className:tv})}),(0,P.jsx)("div",{className:"ml-1 ".concat(tm),children:(0,P.jsx)(tp.Z,{onClick:()=>h(1),className:tv})})]})]})})};
1let tx=e=>((0,B.useEffect)(()=>{let t=document.getElementById("body-text-".concat(e.id,"-").concat(e.screen));t&&(t.innerHTML='"'.concat(e.text,'"'))},[e.id,e.text,e.screen]),(0,P.jsx)("div",{className:"bg-def-neutral-secondary flex h-[300px] min-w-fit gap-x-4 border-b border-gray-L200 px-5 pb-3 pt-5 shadow-sm sm:h-[256px]",style:{minWidth:e.contentWidth,maxWidth:e.contentWidth},ref:e.forwardedRef,children:(0,P.jsxs)("div",{className:"flex h-full flex-col justify-between",children:[(0,P.jsx)("div",{className:"body-medium content-default-emphasis text-base",id:"body-text-".concat(e.id,"-").concat(e.screen)}),(0,P.jsxs)("div",{children:[(0,P.jsx)("p",{className:"m-0 mb-2 p-0 font-bold",children:e.author_name}),(0,P.jsx)("p",{className:"m-0 p-0",children:e.author_id})]})]})})),tb=B.forwardRef((e,t)=>(0,P.jsx)(tx,{...e,forwardedRef:t}));var ty=n(292987);let tw=[{author_id:"@_webarchitect_",author_name:"Anthony Walker",id:"k2Rz21tSiTd0O4APHB1WXdxjqwujgSRbZWmdvSHEfrwVzCv5-rvbFFPxkdBVG3bkaINECQq6ql8YtJ7ugPs8tw==",rank:1,testimonial_link:"https://twitter.com/_webarchitect_/status/1097664538156032000",testimonial_type:"Tweet",testimonial_user_type:"Learner",text:"These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I&#39;m understanding topics better than with any book or online video tutorial I&#39;ve done. Truly made for developers. Thanks"},{author_id:"ML Engineer",author_name:"Evan Dunbar",id:"_b_fiDgpe66Qs7jm3__UbDtXuGmXH9tPmuYm75szHNPPq_Llll9w2zN24iRXfYpRuRMf5-YecXt6j3NnTODEKsuY056ggAit",rank:4,testimonial_link:null,testimonial_type:"LinkedIn",testimonial_user_type:"Learner",text:"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc.  ... Highly recommend!"},{author_id:"Software Developer",author_name:"Carlos Matias La Borde",id:"kuabxXLUgFGB_0cxTrWFQju6t_QnDzNvSx5eV6dB32Ky_z0EvElbrHyVYsyHLIbrPPGIm610U0N6dJ4PIbbBojOvgyY3o7w8",rank:8,testimonial_link:null,testimonial_type:"Email",testimonial_user_type:"Learner",text:"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."},{author_id:"Front-end Developer",author_name:"Souvik Kundu",id:"kqUAt3PBoJaZcmBfp6fK8Tq4wDl-ekBlegRqgRDPy42k2wIDE2cnQEVUi48NPZdiSNabpsrUIKSTMzrj9HSXlwsIE82MPglC",rank:9,testimonial_link:null,testimonial_type:"LinkedIn",testimonial_user_type:"Learner",text:"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"},{author_id:"Software Developer",author_name:"Vinay Krishnaiah",id:"nX-9q_LIAc_CUM5-BqWUbxGLYkafcFsPnmw7WEOpbotg7cHA7BhfUs3Njj8FUKaLG3B9kBEC8sdiMP0FnuIAWyxXH_W84gdr",rank:1e3,testimonial_link:null,testimonial_type:"Email",testimonial_user_type:"Learner",text:"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."},{author_id:"Musician/Entrepeneur",author_name:"Eric Downs",id:"EIEnYZbakGwC0Ki5QLr0y3uPV1m_aIPx9REaSMjMi3qHuD-5sa7P8IyyLJk27XPylb4H58K4GmEJmyDV2r4xBoziJ_bBpfQe",rank:1e3,testimonial_link:null,testimonial_type:"Email",testimonial_user_type:"Learner",text:"I've tried probably 5-7 different sites and Educative is easily the best. It perfectly blends explanation with interactivity"},{author_id:"DevOps Engineer",author_name:"Kenan Eyvazov",id:"UGt6pykMdyj1phL3YIzwAXQPd2XFkGyrzNyz0Q3rhBNZb5GmiDkAxZWoowrPYD-bOiqXlML_tDDwpJ1Q2RPtPlS6U-WI1sEY",rank:1e3,testimonial_link:null,testimonial_type:"Email",testimonial_user_type:"Learner",text:"Thank you for finally making such a platform, where I can just read the useful information and execute the code for a challenge and get real hands-on experience without watching videos for hours."},{author_id:"Front-end Developer",author_name:"Souvik Kundu",id:"kqUAt3PBoJaZcmBfp6fK8Tq4wDl-ekBlegRqgRDPy42k2wIDE2cnQEVUi48NPZdiSNabpsrUIKSTMzrj9HSXlwsIE82MPglC2",rank:9,testimonial_link:null,testimonial_type:"LinkedIn",testimonial_user_type:"Learner",text:"Resources available for learners on Educative is well organized and deep, it helps break down tricky programming concepts into simple chunks and exercises for practice to solidify the learning experience"},{author_id:"Musician/Entrepeneur",author_name:"Eric Downs",id:"EIEnYZbakGwC0Ki5QLr0y3uPV1m_aIPx9REaSMjMi3qHuD-5sa7P8IyyLJk27XPylb4H58K4GmEJmyDV2r4xBoziJ_bBpfQe2",rank:1e3,testimonial_link:null,testimonial_type:"Email",testimonial_user_type:"Learner",text:"On other sites like Codecademy, I often feel like they're asking me to do such a specific task to build such a specific product that if I were to move on to building my own from scratch, I'd be lost. I don't feel like that at all with Educative. Bravo!”"}],tC={"4941429335392256":[{author_id:"Learner",author_name:"Shyamal Kishore Jha",id:"4941429335392256_Shyamal_Kishore_Jha",text:"Awesome Content! Best content across all system design courses over the internet. A must read course!",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"JR",id:"4941429335392256_JR",text:"Great learnings from this course. It's very well organized and builds on itself in a thoughtful, logical manner plus, the content is of good quality.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Svitlana Valko",id:"4941429335392256_Svitlana_Valko",text:"The best course. I am willing to buy a book now if there is any.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Artur Kulig",id:"4941429335392256_Artur_Kulig",text:"The course is amazing, I really enjoy the lessons regarding building blocks especially",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Marianomolina",id:"4941429335392256_Marianomolina",text:"Awesome experience, well ordered content and complete. I really enjoy the ride.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Mario G",id:"4941429335392256_Mario_G",text:"This course was very well structured and easy to follow. I liked how the author introduced base building blocks for me to understand complex problems.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Abhishek R",id:"4941429335392256_Abhishek_R",text:"Amazing content, explanation and well maintained tech trade-offs. I think the idea here is to know about all common problems, their approach and trade-offs. Thanks everyone for putting them in place!",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Puneet K",id:"4941429335392256_Puneet_K",text:"Educative is a structured tool for System Design learning. I am impressed by the content, its organization and clarity with which it is rendered.",total_rating:5,rating_obtained:5}],"5583710957338624":[{author_id:"Learner",author_name:"Amir Sayyed",id:"5583710957338624_Amir_Sayyed_1",text:"Been following this course for the last 15-20 days and during this period this course helped to me to get well versed in OOD principles and design",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Amir Sayyed",id:"5583710957338624_Amir_Sayyed_2",text:"By including so many real world design problems in this world helps to get an idea how real world applications are designed using OOD Principles.",total_rating:5,rating_obtained:5},{author_id:"Spotnana",author_name:"Krishna K",id:"5583710957338624_Krishna_K",text:"Highly structured course with practical app examples and in-depth high-level architecture discussions",total_rating:5,rating_obtained:5}],"5385470311137280":[{author_id:"Learner",author_name:"Ashwani",id:"5385470311137280_Ashwani",text:"Thank You for the detailed course layout on API design.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Amit W",id:"5385470311137280_Amit_W",text:"I'm really enjoying this course.",total_rating:5,rating_obtained:5},{author_id:"Altair",author_name:"Rishi M",id:"5385470311137280_Rishi_M",text:"Educative is helping me learn important concepts in byte-sized nuggets that makes it easier to consume.",total_rating:5,rating_obtained:5}],"6237869033127936":[{author_id:"Learner",author_name:"Sanjay C",id:"6237869033127936_Sanjay_C_1",text:"Educative has been instrumental in accelerating my learning by offering interactive, text-based courses that helped me master complex topics like algorithms, system design, and programming languages.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Khaliel B",id:"6237869033127936_Khaliel_B",text:"Educative is a magnificent environment supported with the basis of computer science and advanced technologies to scale the knowledge theoretically and practically for me it's the best platform.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Juan P",id:"6237869033127936_Juan_P",text:"Educative has been great. I just started, and I am happy with the outcome. Thanks!",total_rating:5,rating_obtained:5}],"6521687034822656":[{author_id:"Learner",author_name:"Titoh",id:"6521687034822656_Titoh",text:"This is a great course to go through when an interview is close.",total_rating:5,rating_obtained:5}
1,{author_id:"Learner",author_name:"Gokul Mahajan",id:"6521687034822656_Gokul_Mahajan",text:"Excellent content, short and to the point.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"M.Taha Masood",id:"6521687034822656_M_Taha_Masood",text:"This is a truly excellent course",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Sanjay C",id:"6237869033127936_Sanjay_C_2",text:"The platform's hands-on coding environment and well-structured content enabled me to build confidence and achieve my career goals efficiently.",total_rating:5,rating_obtained:5}],"5500262945128448":[{author_id:"Learner",author_name:"Hitham basheir",id:"5500262945128448_Hitham_basheir",text:"I really love the course, it has been an interesting journey, I wish to learn and apply this more.",total_rating:5,rating_obtained:5},{author_id:"Kona Software Lab Ltd",author_name:"Mina b.",id:"5500262945128448_Mina_b.",text:"The platform's hands-on approach and well-structured courses have been incredibly beneficial in my learning journey. Thank you for making skill development both accessible and effective!",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Ashraf",id:"5500262945128448_Ashraf",text:"I found it informative and knowledgeable in an easy manner.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Sumit S",id:"5500262945128448_Sumit_S",text:'The guided learning paths, especially the "Grokking the Coding Interview" series, were incredibly useful for preparing for interviews. They offered a structured way to tackle common problems and learn from well-explained solutions.',total_rating:5,rating_obtained:5}],"4651429556125696":[{author_id:"Learner",author_name:"Vlad",id:"4651429556125696_Vlad",text:"Great content, both theoretical and in terms of the selected problems. I do feel much stronger now in tackling various problems and utilizing a diverse set of patterns.",total_rating:5,rating_obtained:4},{author_id:"Learner",author_name:"Abayomi O",id:"4651429556125696_Abayomi_O_1",text:"The flexibility to learn at my own pace, combined with a supportive community, kept me motivated and on track.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Abayomi O",id:"4651429556125696_Abayomi_O_2",text:"One of my key goals was to enhance my problem-solving skills for coding interviews. Educative's Grokking the Coding Interview course was instrumental",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Abayomi O",id:"4651429556125696_Abayomi_O_3",text:"Educative has been a game-changer in my learning journey. I particularly appreciated the in-browser coding environments, which allowed me to practice without any setup hassles.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"John Tang",id:"4651429556125696_John_Tang",text:"Overall, it is excellent, I like the explanations very much and they are very detailed with picture animations.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Anant Rao",id:"4651429556125696_Anant_Rao",text:"Your explanations are great. The diagrams help understand the concepts easily.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Md. A. Barik",id:"4651429556125696_Md._A._Barik",text:"Amazing experience. I learnt a lot of new things.",total_rating:5,rating_obtained:5}],"6587001564561408":[{author_id:"Learner",author_name:"Sanjukta S",id:"6587001564561408_Sanjukta_S",text:"This platform explains very well and focus on core concept",total_rating:5,rating_obtained:5},{author_id:"PNT Data",author_name:"Purnendu B",id:"6587001564561408_Purnendu_B",text:"Educative is a great learning platform and the learning materials are great seems to be created by experts on these topics.",total_rating:5,rating_obtained:5},{author_id:"Celstream Technologies",author_name:"Keerthan S",id:"6587001564561408_Keerthan_S",text:"I completely value the product for giving me the platform to upskill myself. The platform is very easy to explore and offers various tech stacks to dive-in deep. Value for money :)",total_rating:5,rating_obtained:5}],"6593625897304064":[{author_id:"Learner",author_name:"Taxfix SE",id:"6593625897304064_Taxfix_SE",text:"I wanted to express my appreciation for the new styles of diagrams you've introduced. They are significantly better than the previous ones and enhance the learning experience. Great job!",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Chely Ho",id:"6593625897304064_Chely_Ho",text:"Good selection of problems. Good selection of patterns. Step by step illustrations",total_rating:5,rating_obtained:4},{author_id:"Learner",author_name:"Vatsal R",id:"6593625897304064_Vatsal_R",text:"Educative has been a great playground to quickly brush up on skills. I find the no-v
1ideo approach very fast to learn and absorb.",total_rating:5,rating_obtained:5}],"6511981981073408":[{author_id:"Huawei Technologies",author_name:"Desh S",id:"6511981981073408_Desh_S_1",text:"It really gave me a perspective on how to think and design that scale for Billion users. The AI bots give you a real feeling of interacting with a mentor.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Sumit S",id:"6511981981073408_Sumit_S",text:"The interactive coding environments provided by Educative allowed me to practice concepts in real-time. This hands-on approach was crucial for reinforcing my learning and gaining confidence in applying new skills.",total_rating:5,rating_obtained:5},{author_id:"Learner",author_name:"Jayanth H",id:"6511981981073408_Jayanth_H",text:"It has helped me in achieving goals and about the course. Educative has helped sharing a real time experience in day-to-day life.",total_rating:5,rating_obtained:5},{author_id:"Huawei Technologies",author_name:"Desh S",id:"6511981981073408_Desh_S_2",text:"Educative's real power lies in text based content which helps you remain focussed and avoid distraction. Amazing stuff for learners of all ages.",total_rating:5,rating_obtained:5}]};var tE=n(682018),tA=n(878459),tT=n(717433),tS=e=>{var t;let{onViewChange:n,collectionId:a}=e,i=(0,tA.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats}),o=(null==i?void 0:i.users_count)||tu.x,l="dark:fill-white",r=(0,B.useRef)(null),s=[(0,P.jsx)(tE.e,{className:"mt-5 h-auto dark:mt-3",style:{width:"54px"},darkFillColor:l}),(0,P.jsx)(tE.uZ,{className:"mt-3 h-5 dark:mt-1",style:{width:"21px"},darkFillColor:l}
1),[(0,P.jsx)(tE.w0,{className:"mt-5 h-auto w-16 dark:hidden"}),(0,P.jsx)(tE.TF,{className:"tailwind-hidden mt-1 h-auto w-16 dark:block",darkFillColor:l})],(0,P.jsx)(tE.av,{className:"mt-5 h-auto dark:mt-3",style:{width:"54px"},darkFillColor:l}),(0,P.jsx)(tE.Qr,{className:"mt-6 h-auto",style:{width:"54px"},darkFillColor:l}),(0,P.jsx)(tE.r9,{className:"mt-4 h-auto",darkFillColor:l}),(0,P.jsx)(tE.lN,{className:"mt-4 h-auto",darkFillColor:l}),(0,P.jsx)(tE._1,{className:"mt-5 h-auto",darkFillColor:l})],d=null!==(t=tC[a])&&void 0!==t?t:tw;return(0,P.jsx)(tc.df,{onChange:e=>{n&&n(e,r)},children:(0,P.jsxs)("div",{className:"w-full",id:ed.X.TESTIMONIAL,ref:r,children:[(0,P.jsx)("div",{className:"mb-10 flex flex-col items-center px-4 pt-16 sm:px-0",children:(0,P.jsxs)("div",{className:"flex w-full flex-col items-center gap-y-6",style:{maxWidth:"1140px"},children:[(0,P.jsxs)("p",{className:"desktop headings heading-four content-default-emphasis m-0 p-0 text-center",children:["Trusted by"," ",(0,P.jsxs)("span",{className:"content-primary-default",children:[tT.ZP.formatNumber(o)," million"]})," ","developers working at"," ",(0,P.jsx)("span",{className:"inline-block lg:hidden",children:"companies"})]}),(0,P.jsx)("div",{className:"flex w-full flex-wrap items-center justify-center gap-x-12 sm:gap-x-[88px] sm:px-5",style:{maxWidth:"1140px"},children:s.map((e,t)=>(0,P.jsx)("div",{children:e},t))})]})}),(0,P.jsx)("div",{className:"tailwind-hidden justify-center pb-28 sm:flex",id:"TestimonialSection-lg",children:(0,P.jsx)(tf,{arrowPlacement:f.BOTTOM,maxWidth:"1180px",children:d.map(e=>(0,B.createElement)(tb,{...e,key:e.id,screen:"lg",contentWidth:"360px"}))})}),(0,P.jsx)("div",{id:"TestimonialSection-sm",className:"block pb-8 sm:hidden",children:(0,P.jsx)("div",{className:"w-full",style:{maxWidth:"72.5rem"},children:(0,P.jsx)(ty.Z,{tileShownOnSize:{sm:1,md:1,lg:1},showBothScrollButtons:!1,showCarouselTilePillsMobile:!0,customScrollButtonsPosition:"hidden",customStyle:{tilePillsMargin:"mt-1"},children:d.map(e=>(0,B.createElement)(tb,{...e,key:e.author_name,screen:"sm",contentWidth:"100vw"}))})})})]})})},tN=n(352172);let tL=U()(()=>Promise.resolve().then(n.bind(n,585789)),{loadableGenerated:{webpack:()=>[585789]}}),tk=(0,td.q)(e=>{let{courseRecommendationsJSX:t,ForTeamsJSX:n,renderFAQs:a,CTAHandler:i,onViewChange:o,faqSet:l,CTAText:r="Start Course for Free",hidePoweredByAiCTA:s=!1,collectionId:d}=e;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(tS,{onViewChange:o,collectionId:d}),(0,P.jsx)(tN.Z,{bgColor:"bg-def-primary-default",mainColor:"content-default-emphasis",highlightColor:"content-primary-default",iconClasses:"content-default-emphasis",questionClasses:"content-default-emphasis",answerClasses:"desktop body-default regular content-default-emphasis",imageBorderColor:"border-indigo-100",CTAText:r,CTAClasses:"contained-primary rounded ".concat(s?"hidden":""),source:"COURSE_HOMEPAGE",expandedEvent:"clicked_homepage_powered_by_ai_cta",CTAHandler:i,dividerClasses:"border-solid border-b border-gray-L300"}),!!t&&t,(a||!!n)&&(0,P.jsx)("div",{className:"bg-def-neutral-secondary px-4 lg:px-0",style:{paddingTop:"120px",paddingBottom:"120px"},children:(0,P.jsxs)("div",{className:"mx-auto",style:{maxWidth:"1140px"},children:[(0,P.jsx)("div",{children:n}),a&&(0,P.jsx)("div",{className:"order-9 mb-4",style:{marginTop:n?"120px":void 0},children:(0,P.jsx)(tL,{backgroundClasses:"border-gray-L200 bg-def-neutral-default dark:border-gray-D900",faqs:l})})]})})]})});var tj=e=>(0,P.jsx)(tk,{renderWrapper:e=>{let{children:t,...n}=e;return(0,P.jsx)("div",{className:"mt-16",...n,children:t})},...e}),tI=n(627290),tO=n(522283);let tR=e=>e.map(e=>(0,P.jsx)("div",{className:"flex w-full flex-col items-start",children:(0,P.jsxs)("div",{className:"flex gap-x-5",children:[(0,P.jsx)(tO.Z,{className:"h-5 w-5 flex-shrink-0"}),(0,P.jsx)("p",{className:"body-medium content-default-default m-0",children:e})]})},e)),tP=e=>{let{skills:t}=e,[n,a]=(0,B.useState)(!0),[i,o]=(0,B.useState)(0),l=(0,B.useRef)(null),[r,s]=(0,B.useState)([t[0]]),d=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];a(!e),s(e?t:[t[0]])};return(0,B.useEffect)(()=>{l.current&&o(l.current.scrollHeight)},[r]),(0,P.jsxs)("div",{className:"flex w-full flex-col",children:[(0,P.jsx)("p",{className:"heading-five content-default-emphasis m-0 text-xl font-bold",children:"What You'll Learn"}),(0,P.jsx)("div",{className:"mt-2 overflow-y-hidden duration-1000 ease-in-out",style:{maxHeight:"".concat(i,"px"),transitionProperty:"max-height"},children:(0,P.jsx)("div",{className:"flex flex-col gap-y-2",ref:l,children:tR(r)})}),(0,P.jsx)("p",{className:"".concat("content-default-emphasis mt-2 cursor-pointer pl-10 font-bold underline"," ").concat(n?"":"hidden"),onClick:()=>d(),children:"Show more"})]})};
1var tD=e=>{let{skills:t}=e;return(0,P.jsx)("div",{id:ed.X.WHAT_YOU_WILL_LEARN,className:"order-3 mb-8 flex w-full justify-center sm:mb-12",children:(0,P.jsxs)("div",{className:"flex w-full max-w-6xl text-gray-L1000 dark:text-gray-D400",children:[(0,P.jsxs)("div",{className:"tailwind-hidden sm:block",children:[(0,P.jsx)("p",{className:"heading-five content-default-emphasis m-0 text-xl font-bold",children:"What You'll Learn"}),(0,P.jsx)("div",{className:"mt-6 flex flex-row flex-wrap items-start gap-y-4",children:tR(t)})]}),(0,P.jsx)("div",{className:"block w-full sm:hidden",children:(0,P.jsx)(tP,{skills:t})})]})})},tM=n(537577),tU=e=>{let{tags:t}=e;return(0,P.jsxs)("div",{className:"tailwind-hidden order-2 mb-8 sm:mb-12 sm:block",id:ed.X.TAKEAWAY_SKILLS,children:[(0,P.jsx)("p",{className:"eyebrow content-default-emphasis mb-0",children:"TAKEAWAY SKILLS"}),(0,P.jsx)("div",{className:"mt-4 flex flex-wrap",children:t.map(e=>(0,P.jsx)("div",{className:"mb-4 mr-4 rounded border-solid border-gray-L200 bg-gray-L50 px-4 py-1 text-gray-L600 dark:border-gray-D800 dark:bg-gray-D1300 dark:text-gray-D400",children:(0,P.jsx)("p",{className:"body-small m-0 p-0",children:e})}))})]})},tZ=n(343987),tB=n(763089),tz=n(823481),tH=n(207010),tF=n(535330),tW=n(865546),tV=n(395124),tG=n(389392),tK=n(262603),tq=n(347878),tY=n(876187),tJ=n(184492),tX=n(264937),tQ=n(723804),t$=n(970824),t0=n(487054);let t1="rounded bg-gray-L200 dark:bg-gray-D1300 animate-pulse",t2=()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"w-full ".concat(t1),style:{paddingTop:"50%",marginBottom:"15%"}}),(0,P.jsx)("div",{className:"w-full ".concat(t1),style:{paddingTop:"18%",marginBottom:"10%"}}),(0,P.jsx)("div",{className:"w-full".concat(t1),style:{paddingTop:"8%"}})]}),t5=()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsxs)("div",{className:"flex space-x-2",style:{margin:"2.5% 0"},children:[(0,P.jsx)("div",{className:"animate-pulse rounded-full bg-gray-L200 dark:bg-gray-D1300",style:{padding:"3.5%"}}),(0,P.jsx)("div",{className:"relative w-2/12 ".concat(t1)})]}),(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"9%",marginBottom:"7%"}}),(0,P.jsxs)("div",{className:"space-y-1",style:{marginBottom:"18%"},children:[(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-8/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-11/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-8/12 ".concat(t1),style:{paddingTop:"2.5%"}}),(0,P.jsx)("div",{className:"w-8/12 ".concat(t1),style:{paddingTop:"2.5%"}})]})]});var t4=()=>(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("div",{className:"mt-14 flex flex-col justify-between sm:flex-row",style:{minHeight:"800px;"},children:[(0,P.jsxs)("div",{className:"flex w-full flex-col lg:mr-16",children:[(0,P.jsx)("div",{style:{paddingBottom:"50%"},className:"relative mb-8 block h-0 bg-gray-L200 lg:hidden"}),(0,P.jsx)("div",{className:"flex flex-col",children:(0,P.jsx)("div",{className:"mt-0 flex w-full flex-col justify-center self-center sm:self-start",children:t5()})})]}),(0,P.jsx)("div",{className:"tailwind-hidden flex-col lg:flex",style:{minWidth:"265px"},children:t2()})]})}),t3=n(704373),t6=n(62945),t9=n(542607),t8=n(886138),t7=n(908041),ne=n(60513),nt=n(772087),nn=n(881762);let na=(e,t)=>(0,nn.Z)({url:"/api/user-certificate/".concat(e,"/").concat(t,"/get-certificate-eligibility-info"),type:"GET"});var ni=n(611464),no=n(857983);function nl(){return(nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nr=function(e){return B.createElement("svg",nl({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),b||(b=B.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.334 1.167h9.333a1.17 1.17 0 0 1 1.167 1.167v7a1.
117 1.17 0 0 1-1.167 1.166H3.5l-2.333 2.334.006-10.5c0-.642.519-1.167 1.16-1.167Zm.682 8.167h8.651v-7H2.334v7.682l.338-.338.344-.344ZM6.417 7h1.167v1.167H6.417V7Zm1.167-3.5H6.417v2.334h1.167V3.5Z",clipRule:"evenodd"})))},ns=n(541905),nd=n(136830),nc=n(325713),nu=n(575536),nh=n(603173),np=n(381152),nv=e=>{let{widgetStats:t=null,cloudLabsCount:n}=e,a="content-primary-default fill-current w-5 h-5",i=[{name:"AI Prompts",single:"AI Prompt",count:null==t?void 0:t.PromptAI,icon:(0,P.jsx)(ns.Z,{className:a})},{name:"AI Feedbacks",single:"AI Feedback",count:null==t?void 0:t.AINotepad,icon:(0,P.jsx)("div",{className:"flex h-5 w-5 items-center justify-center",children:(0,P.jsx)(nr,{className:"content-primary-default fill-current"})})},{name:"Cloud Labs",single:"Cloud Lab",count:n,icon:(0,P.jsx)(np.default,{className:a+" !fill-transparent"})},{name:"Projects",single:"Project",count:null==t?void 0:t.projects,icon:(0,P.jsx)(nh.Z,{className:a})},{name:"Assessments",single:"Assessment",count:null==t?void 0:t.assessments,icon:(0,P.jsx)(nu.Z,{className:a})},{name:"Playgrounds",single:"Playground",count:((null==t?void 0:t.codeRunnableCount)||0)+((null==t?void 0:t.Android)||0),icon:(0,P.jsx)(nd.Z,{className:a})},{name:"Challenges",single:"Challenge",count:null==t?void 0:t.codeExerciseCount,icon:(0,P.jsx)(ni.Z,{className:a})},{name:"Quizzes",single:"Quiz",count:((null==t?void 0:t.Quiz)||0)+((null==t?void 0:t.StructuredQuiz)||0)+((null==t?void 0:t.QuizV2)||0),icon:(0,P.jsx)(nc.Z,{className:a})},{name:"Code Snippets",single:"Code Snippet",count:(null==t?void 0:t.codeRunnableCount)||(null==t?void 0:t.codeExerciseCount)?0:null==t?void 0:t.codeSnippetCount,icon:(0,P.jsx)(no.Z,{className:a})}].filter(e=>(null==e?void 0:e.count)>0&&("Assessments"===e.name||"Projects"===e.name||"Cloud Labs"===e.name||e.count>=5));return(0,P.jsx)("div",{className:"min-h-28 tailwind-hidden relative w-full justify-center bg-indigo-25 pb-2 pt-6 dark:bg-gray-D1400 dark:text-gray-L400 sm:flex lg:static lg:mt-0",id:ed.X.COURSE_CONTENT_INCLUDES,children:(0,P.jsxs)("div",{className:"w-full px-4 sm:px-10 lg:px-4",style:{maxWidth:"1200px"},children:[i.length>0&&(0,P.jsx)("p",{className:"eyebrow mb-3",children:"This course includes"}),(0,P.jsx)("div",{className:"flex flex-row flex-wrap p-0 sm:pr-56",children:i.map(e=>{let{name:t,single:n,count:a,icon:i}=e;return(0,P.jsxs)("div",{className:"mb-4 mr-6 flex flex-row items-center",children:[i,(0,P.jsx)("div",{className:"pl-3 text-center",children:(0,P.jsx)("span",{className:"body-small content-default-default ",children:"".concat(a," ").concat(a>1?t:n," ")})})]},t)})})]})})},nm=n(151178),ng=n(465365),n_=e=>{let{className:t,loggedOut:n,courseLoaded:a,primaryCTALink:i,hidePrimaryButton:o,primaryCTAText:l,previewableLessons:r,secondaryButtonText:s,hideSecondaryButton:d=!1,secondaryButtonHandler:c,loggedOutHandler:u}=e;return(0,P.jsx)("div",{className:t,children:n?(0,P.jsx)("button",{className:"contained-primary h-11 w-full rounded p-0 sm:w-48",onClick:u,children:(0,P.jsx)("span",{className:"navigation-text px-2 py-2.5",children:"Start Course for Free"})}):a?(0,P.jsxs)("div",{className:"flex flex-wrap gap-y-4",children:[(0,P.jsx)(ex(),{href:i,className:"".concat(o?"hidden":""," w-full sm:w-auto"),children:(0,P.jsx)("button",{className:"contained-primary mr-3 w-full rounded p-0 sm:w-48",children:(0,P.jsx)("span",{className:"navigation-text px-2 py-2.5",style:{fontSize:"15px"},children:l})})}),(0,P.jsx)("button",{className:"\n                ".concat(d||!r?"hidden":o?"contained-primary":"outlined-primary !hover:border-black !hover:text-black !border-solid !border-gray-D100 !text-gray-D100"," w-full rounded border p-0 sm:w-48"),onClick:c,style:{fontSize:"15px"},children:(0,P.jsx)("span",{className:"navigation-text px-2 py-2.5",children:s})})]}):(0,P.jsx)("button",{className:"contained-primary mr-3 h-11 w-full rounded px-2 py-2.5 sm:w-48 sm:px-8",children:(0,P.jsx)(ng.Z,{size:15,color:"text-white dark:text-gray-D200"})})})},nf=n(362050),nx=n.n(nf),nb=n(791127),ny=n(629099),nw=n(475971),nC=n(551065),nE=n(16318),nA=n(687135),nT=n(957862);let nS=U()(()=>n.e(35312).then(n.bind(n,35312)),{loadableGenerated:{webpack:()=>[35312]},ssr:!1}),nN=e=>{let{collectionId:t,authorId:n,pinned:a,setInlineStatus:i,updatePinStatus:o,workType:l,dispatchErrorModal:r}=e;i({status:"WAIT",text:""}),t&&(a?nC.R:nw.b)({author_id:n,work_id:t,work_type:l}).then(()=>{o(!a),i({status:"",text:""})}).catch(e=>{var t,n,s,d;if(null===(n=e.responseJSON)||void 0===n?void 0:null===(t=n.errorText)||void 0===t?void 0:t.includes("not bookmarked"))o(!a),i({status:"",text:""});else{let t="Could Not ".concat(a?"Unsave":"Save"," ").concat((0,ne.e)(l));(null==e?void 0:e.statusText)==="Unauthorized"?t="Unauthorized":(null==e?void 0:null===(d=e.responseJSON)||void 0===d?void 0:null===(s=d.errorText)||void 0===s?void 0:s.includes("already bookmarked"))&&(t="Already Bookmarked."),i({status:"",text:""}),r(t)}})};var nL=e=>{let{pinned:t,title:n,collectionId:a,authorId:i,updatePinStatus:o,workType:l,dispatchErrorModal:r,courseURL:s,showMetadata:d,dispatchMetadataModal:c,showSave:u,loggedIn:h,path:p}=e,[v,m]=B.useState({status:"",text:""}),g=()=>{(0,Q.Z)("CONTENT_HOMEPAGE",t?"CLICKED_UNSAVE_BUTTON":"CLICKED_SAVE_BUTTON","Course_".concat(n)),nN({collectionId:a,authorId:i,pinned:t,setInlineStatus:m,updatePinStatus:o,workType:l,dispatchErrorModal:r})},_=nx()(()=>{u?g():(0,eJ.q)({ru:p})},300);return(0,P.jsxs)("h1",{className:"heading-four m-0 mr-3 inline-block p-0 text-2xl text-gray-L50 sm:text-[28px] sm:leading-9",id:"c
1ollection-title",children:[n,(0,P.jsx)("div",{className:"logged-in group relative ml-2 mr-1 !inline-block",children:"WAIT"===v.status?(0,P.jsx)("div",{className:"h-5 w-5",children:(0,P.jsx)(nE.Z,{statusData:v})}):(0,P.jsx)(ny.default,{overlay:t?"Unsave this ".concat((0,ne.e)(l)):"Save this ".concat((0,ne.e)(l)),parentClasses:"flex items-center",position:nb.xR,className:"",children:(0,P.jsx)(nA.Z,{onClick:_,"data-testid":t?"course-bookmarked":"course-not-bookmarked",className:"h-5 w-5 cursor-pointer stroke-current text-gray-L400 ".concat(t?"fill-current text-gray-L400":"")})})}),h&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"logged-in mr-2 !inline-block",children:(0,P.jsx)("div",{className:"logged-in flex",children:(0,P.jsx)(nT.default,{title:n,authorId:Number(i),collectionId:Number(a),workType:l,contentUrl:s,buttonClasses:"rounded flex h-8 w-8 cursor-pointer items-center bg-transparent p-0 hover:bg-white/10 disabled:bg-transparent",iconClasses:"stroke-current w-6 h-5 text-gray-L400"})})}),(0,P.jsx)("div",{className:"logged-in -mt-3 !inline-block",children:d&&(0,P.jsx)("div",{children:(0,P.jsx)(nS,{dispatchMetadataModal:c})})})]})]})};function nk(){return(nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nj=function(e){return B.createElement("svg",nk({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),y||(y=B.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M10 3.125c-2.071 0-3.75 1.511-3.75 3.375S7.929 9.875 10 9.875c2.071 0 3.75-1.511 3.75-3.375S12.071 3.125 10 3.125ZM5 6.5C5 4.015 7.239 2 10 2s5 2.015 5 4.5-2.239 4.5-5 4.5-5-2.015-5-4.5Z",clipRule:"evenodd"})),w||(w=B.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M12.439 9.594c.365-.049.7.208.749.573l.806 6.08a.667.667 0 0 1-1.004.66L10 15.111l-2.99 1.794a.667.667 0 0 1-1.004-.66l.806-6.072a.667.667 0 1 1 1.322.175l-.624 4.702 2.147-1.288a.667.667 0 0 1 .686 0l2.148 1.289-.625-4.71a.667.667 0 0 1 .573-.748Z",clipRule:"evenodd"})))},nI=n(190183),nO=n(630509),nR=n(511131),nP=n(428841);function nD(){return(nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nM=function(e){return B.createElement("svg",nD({width:20,height:20,viewBox:"0 0 20 20",fill:"current",xmlns:"http://www.w3.org/2000/svg"},e),C||(C=B.createElement("path",{d:"M14.9997 4.99967V14.9997H4.99967V4.99967H14.9997ZM14.9997 3.33301H4.99967C4.08301 3.33301 3.33301 4.08301 3.33301 4.99967V14.9997C3.33301 15.9163 4.08301 16.6663 4.99967 16.6663H14.9997C15.9163 16.6663 16.6663 15.9163 16.6663 14.9997V4.99967C16.6663 4.08301 15.9163 3.33301 14.9997 3.33301Z",fill:"current"})),E||(E=B.createElement("path",{d:"M11.666 12.5H6.66602V10.8333H11.666V12.5ZM13.3327 9.16667H6.66602V7.5H13.3327V9.16667Z",fill:"current"})))},nU=n(228810),nZ=e=>{let{targetAudience:t,lessonCount:n,courseReadTime:a,certificateText:i,isCertificateTextClickable:o,onClickCertificateText:l,briefSummary:r}=e,s="flex space-x-2 fill-current mr-4",d="body-small content-onbold-neutral-default mb-0";return(0,P.jsxs)("div",{children:[!!r&&(0,P.jsx)("p",{className:"body-medium mb-0 mt-3 block text-gray-L50 sm:hidden",children:r}),(0,P.jsx)("div",{className:"relative flex w-full justify-center text-white dark:text-gray-D1300 lg:static ".concat(r?"my-3":"mt-3"),children:(0,P.jsx)("div",{className:"w-full",style:{maxWidth:"1200px"},children:(0,P.jsxs)("div",{className:"body-small flex flex-wrap gap-y-2.5",children:[(0,P.jsxs)("div",{className:s,children:["beginner"===t?(0,P.jsx)(nR.Z,{}):"intermediate"===t?(0,P.jsx)(nP.Z,{}):(0,P.jsx)(nO.Z,{}),(0,P.jsx)("p",{className:d,children:tT.ZP.titleCaseString(t)})]}),(0,P.jsxs)("div",{className:s,children:[(0,P.jsx)(nM,{className:"fill-white"}),(0,P.jsxs)("p",{className:d,children:[n," Lessons"]})]}),(0,P.jsxs)("div",{className:"".concat(s," items-center"),children:[(0,P.jsx)(nI.Z,{className:"h-5 w-5 fill-white"}),(0,P.jsx)("p",{className:d,children:(0,nU.nM)(a)})]}),(0,P.jsxs)("div",{className:"".concat(s," ").concat(o?"cursor-pointer font-bold underline":""),children:[(0,P.jsx)(nj,{className:"fill-white"}),(0,P.jsx)("p",{onClick:l,className:d,children:i})]})]})})})]})},nB=n(163457),nz=n(930341),nH=n(262868),nF=n(820915),nW=n(405358);function nV(){return(nV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nG=function(e){return B.createElement("svg",nV({xmlns:"http://www.w3.org/2000/svg",width:15,height:15,fill:"none"},e),A||(A=B.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.25 9c-.329 0-.652.064-.95.187-.296.123-.56.302-.77.525a1.935 1.935 0 0 0-.451.764c-.086.281-.102.575-.047.862.056.287.181.56.367.799.187.24.43.44.712.587.283.148.598.239.924.267.327.028.656-.008.965-.104"})),T||(T=B.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M2.472 9.843a2.6 2.6 0 0 1-.568-4.313m.02-.053A1.625 1.625 0 0 1 4.25 3.275m.155.042A1.625 1.625 0 1 1 7.5 2.625m0 0V12.7m0-10.075a1.625 1.625 0 1 1 3.095.692M7.5 12.7a1.3 1.3 0 1 1-2.6 0m2.6 0A1.3 1.3 0 0 0 8.8 14M7.5 4.25A1.95 1.95 0 0 0 9.45 6.2m3.647-.67A2.593 2.593 0 0 1 14 7.5c0 .457-.118.886-.325 1.26m-.598-3.283a1.625 1.625 0 0 0-2.327-2.202"})),S||(S=B.createElement("path",{fill:"currentColor",d:"M12.018 14a.053.053 0 0 1-.052-.04l-.35-1.27a.428.428 0 0 0-.307-.3l-1.268-.321a.054.054 0 0 1-.041-.052c0-.024.016-.045.04-.052l1.27-.35a.428.428 0 0 0 .301-.306l.32-1.268a.054.054 0 0 1 .052-.041c.024 0 .046.016.052.04l.35 1.27c.041.147.158.263.307.301l1.268.32c.024.007.04.028.04.052a.054.054 0 0 1-.04.052l-1.27.35a.427.427 0 0 0-.3.306l-.321 1.268a.052.052 0 0 1-.051.041Z"})))};function nK(){return(nK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nq=function(e){return B.createElement("svg",nK({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),N||(N=B.createElement("path",{fill:"currentColor",d:"M14.018 4a.053.053 0 0 1-.052-.04l-.35-1.27a.428.428 0 0 0-.307-.3l-1.268-.321A.054.054 0 0 1 12 2.017c0-.024.016-.045.04-.052l1.27-.35a.428.428 0 0 0 .301-.306l.32-1.268A.054.054 0 0 1 13.984 0c.024 0 .046.016.052.04l.35 1.27c.04.148.158.263.307.301l1.268.32c.024.007.04.028.04.052a.054.054 0 0 1-.04.052l-1.27.35a.427.427 0 0 0-.3.307l-.321 1.268a.052.052 0 0 1-.051.04Z"})),L||(L=B.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.334 3.167h9.333a1.17 1.17 0 0 1 1.167 1.167v7a1.
117 1.17 0 0 1-1.167 1.166H3.5l-2.333 2.334.006-10.5c0-.642.519-1.167 1.16-1.167Zm.682 8.167h8.651v-7H2.334v7.682l.338-.338.344-.344ZM6.417 9h1.167v1.167H6.417V9Zm1.167-3.5H6.417v2.334h1.167V5.5Z",clipRule:"evenodd"})))};function nY(){return(nY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nJ=function(e){return B.createElement("svg",nY({xmlns:"http://www.w3.org/2000/svg",width:18,height:16,fill:"none"},e),k||(k=B.createElement("path",{fill:"currentColor",d:"M14.877 4.571a.06.06 0 0 1-.059-.045l-.4-1.45v-.001a.49.49 0 0 0-.35-.344l-1.45-.367a.062.062 0 0 1-.047-.058c0-.028.019-.053.046-.06l1.45-.4h.001a.49.49 0 0 0 .345-.35l.366-1.45a.061.061 0 0 1 .119 0l.4 1.45c.046.17.18.302.35.345l1.449.366a.061.061 0 0 1 0 .119l-1.452.4a.489.489 0 0 0-.343.35l-.366 1.45a.06.06 0 0 1-.059.045Z"})),j||(j=B.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 5.333V4h12v1.333H2Zm0 3.334h12V7.333H2v1.334ZM2 12h12v-1.333H2V12Z",clipRule:"evenodd"})))},nX=n(958719);function nQ(){return(nQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var n$=function(e){return B.createElement("svg",nQ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),I||(I=B.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m2 3 5 5-5 5M10 13h5"})),O||(O=B.createElement("path",{fill:"currentColor",d:"M12.59 5a.053.053 0 0 1-.053-.04l-.35-1.27a.428.428 0 0 0-.307-.3l-1.268-.321a.054.054 0 0 1-.04-.052c0-.024.015-.045.039-.052l1.27-.35a.428.428 0 0 0 .301-.306l.321-1.268a.054.054 0 0 1 .104-.001l.35 1.27c.04.148.157.263.306.301l1.268.32c.024.007.04.028.04.052a.054.054 0 0 1-.04.052l-1.27.35a.427.427 0 0 0-.3.307l-.32 1.268a.052.052 0 0 1-.052.04Z"})))},n0=n(754748);let n1="h-5 w-5 text-white";var n2=e=>{let{widgetStats:t,isAdaptiveLearningMode:n,isInterviewCourse:a,briefSummary:i}=e,o=[((null==t?void 0:t[nW.L.AI_CODE_TEST])||(null==t?void 0:t[nW.L.AI_NOTEPAD])||(null==t?void 0:t[nW.L.AI_CODE]))&&{text:"Code Feedback",tooltipText:"Evaluate and debug your code with the click of a button. Get instant feedback on test cases.",icon:(0,P.jsx)(nq,{className:n1})},a&&{text:"Mock Interview",tooltipText:"Put your skills to the test in a simulated interview setting. Receive personalized feedback based on your performance.",icon:(0,P.jsx)(nX.Z,{className:n1})},{text:"Explanations",tooltipText:"Select any text within the course and get a real-time explanation — without leaving your browser.",icon:(0,P.jsx)(nJ,{className:n1})},(null==t?void 0:t[nW.L.AI_PROMPT])&&{text:"Prompt",tooltipText:"Build prompt engineering skills. Practice implementing AI-informed solutions.",icon:(0,P.jsx)(n$,{className:n1})},n&&{text:"Adaptive Learning",tooltipText:"Take a quick assessment at various checkpoints in the course. Receive a personalized curriculum based on your strengths and skill gaps.",icon:(0,P.jsx)(nG,{className:n1})}].filter(Boolean),l=e=>{let{tooltipText:t}=e;return(0,P.jsxs)("div",{className:"-mt-2 flex select-none flex-col gap-y-1 rounded bg-white px-4 py-2.5 text-gray-D1000",style:{maxWidth:"320px"},children:[(0,P.jsx)("p",{className:"caption-text mb-0 text-gray-D1000",children:t}),(0,P.jsx)("div",{className:"tailwind-hidden absolute -top-4 left-4 h-4 w-4 -rotate-45 bg-white sm:flex"})]})},r=e=>{let{pillText:t,icon:n}=e;return(0,P.jsxs)("div",{className:"body-small flex w-fit cursor-pointer items-center justify-center rounded-3xl border border-solid border-gray-L50 bg-transparent px-4 py-2 font-bold text-gray-L100 sm:border-none sm:bg-blue-1000 sm:dark:bg-indigo-1000",children:[!!n&&(0,P.jsxs)("div",{className:"h-4 w-4",children:[" ",n]}),(0,P.jsx)("span",{className:n?"ml-2":"",children:t})]})},s=o.slice(0,2);return(0,P.jsxs)("div",{className:"flex flex-col",children:[!!i&&(0,P.jsx)("p",{className:"body-medium tailwind-hidden mb-0 text-gray-L50 sm:block",children:i}),(0,P.jsxs)("div",{className:"tailwind-hidden mb-0 mt-6 sm:flex",children:[(0,P.jsx)("div",{className:"w-4 text-white",children:(0,P.jsx)(ns.Z,{className:"h-4 w-4 fill-current"})}),(0,P.jsx)("p",{className:"eyebrow mb-0 ml-2 text-gray-L50",children:"AI-POWERED LEARNING"})]}),(0,P.jsx)("div",{className:"tailwind-hidden mt-3 gap-x-2 gap-y-4 sm:flex sm:flex-wrap",children:o.map((e,t)=>(0,P.jsx)("div",{className:"tailwind-hidden w-fit sm:flex",children:(0,P.jsx)(ny.default,{overlay:(0,P.jsx)(l,{tooltipText:e.tooltipText}),overlayParentClasses:"mt-2 ml-4",padding:"p-0",position:nb.wj,trigger:nF.dQ,overlayParentStyles:{zIndex:n0.AO},showPointer:!1,children:(0,P.jsx)(r,{pillText:e.text,icon:e.icon})})},e.text))}),(0,P.jsxs)("div",{className:"mt-6 block sm:hidden",style:{height:"66px"},children:[(0,P.jsxs)("div",{className:"flex items-center",children:[(0,P.jsx)("div",{className:"h-4 w-4 text-white",children:(0,P.jsx)(ns.Z,{className:"h-4 w-4 fill-current"})}),(0,P.jsx)("p",{className:"eyebrow mb-0 ml-2 font-normal text-gray-L50",children:"AI-POWERED LEARNING"})]}),(0,P.jsx)("div",{className:"mt-2 flex flex-wrap items-center gap-x-1 gap-y-2",children:s.map(e=>(0,P.jsx)(ny.default,{overlay:(0,P.jsx)(l,{tooltipText:e.tooltipText}),overlayParentClasses:"mt-2",padding:"p-0",position:nb.wj,trigger:nF.dQ,overlayParentStyles:{zIndex:n0.AO},showPointer:!1,children:(0,P.jsx)(r,{pillText:e.text})}))})]})]})},n5=n(351576),n4=n(795962);let n3=U()(()=>Promise.resolve().then(n.bind(n,324841)),{loadableGenerated:{webpack:()=>[324841]}}),n6=U()(()=>n.e(869772).then(n.bind(n,869772)),{loadableGenerated:{webpack:()=>[869772]},ssr:!1}),n9=U()(()=>n.e(895744).then(n.bind(n,640958)),{loadableGenerated:{webpack:()=>[640958]},ssr:!1});var n8=e=>{let{showSave:t,showMetadata:n,title:a,pinned:i,collectionId:o,authorId:l,updatePinStatus:r,workType:s,dispatchErrorModal:d,dispatchMetadataModal:c,targetAudience:u,lessonCount:h,courseReadTime:p,certificateText:v,isCertificateTextClickable:m,onClickCertificateText:g,PaymentJSX:_,dispatch:f,contentType:x,eventParam
1s:b,scrolled:y,inL2cStarterPack:w,l2cStarterPackOwner:C,isFreeCollection:E,collectionLoader:A,showHolidayCampaign2023:T,certificateData:S,assessmentsLength:N,lessonsLength:L,cloudlabsLength:k,projectsLength:j,percentCompleted:I,certificateDataLoaded:O,mandatoryCloudlabsExist:R,mandatoryProjectsExist:D,widgetStats:M,isAdaptiveLearningMode:U,isInterviewCourse:B,course_url_slug:z,priceWidgetTop:F,briefSummary:W,courseStats:V,completionPercent:G,hasLastVisited:K,freePreviewLessonCount:q,owned_by_author:Y,handleLearningCTA:J,certificateStatusLoaded:X,callToAction:Q,isStartTrial:$,isB2BDomain:ee,courseLoaded:et,isFree:en,trialCTARedirectionURL:ea,isSubscribed:ei,loggedOutHandler:eo,videoUrl:el,thumbnailUrl:er,firstArticleLink:es=""}=e,{userInfoState:eu}=(0,tV.su)(),eh=eu.loggedOut,ep=(0,ec.a)("sm"),ev=(0,n4.Xq)(w),em=(0,Z.useRouter)(),eg=E?C&&w:C,e_=!H.iw.IS_B2B&&(!Y&&ei||en),ef=(0,n5.Q)(ev),ex=!ei&&!$&&T&&(null==ev?void 0:ev.special_discount_available);return(0,P.jsxs)("div",{id:ed.X.HEADER,className:"relative flex w-full flex-col items-center border-0 border-solid bg-indigo-1100 dark:border-gray-D1200 dark:bg-indigo-1200 sm:bg-right-bottom sm:bg-no-repeat sm:px-10 sm:dark:border-l lg:px-6",children:[el&&(0,P.jsx)("div",{className:"mt-8 aspect-video w-full px-4 sm:hidden",style:{minHeight:"200px"},children:(0,P.jsx)(nB.Z,{videoUrl:el,thumbnailUrl:er,height:"200px",topRounded:!0,bottomRounded:!0})}),(0,P.jsxs)("div",{className:"flex w-full max-w-6xl flex-col pb-0 pt-6 sm:flex-row sm:pb-8 sm:pt-8",children:[(0,P.jsxs)("div",{className:"static flex w-full flex-col border-0 border-solid !bg-transparent bg-indigo-1100 !bg-none bg-right-bottom bg-no-repeat px-4 dark:border-l dark:border-gray-D1200 dark:bg-gray-D1300 sm:w-full sm:!border-l-0 sm:p-0 sm:pr-14 lg:pr-32",children:[(0,P.jsx)("div",{className:"mb-6 flex flex-wrap sm:mb-0",children:z&&(0,P.jsx)(nm.Z,{baseColor:"text-gray-L400 hover:text-gray-L400",lastColor:"text-white hover:text-white",courseClass:"caption-text",title:a})}),(0,P.jsx)("div",{className:"m-0 pt-0 sm:pt-6",children:(0,P.jsx)(nL,{pinned:i,title:a,collectionId:o,authorId:l,updatePinStatus:r,workType:s,dispatchErrorModal:d,courseURL:z,showMetadata:n,dispatchMetadataModal:c,showSave:t,loggedIn:!eh,path:em.asPath})}),(0,P.jsx)(nZ,{targetAudience:u,lessonCount:h,courseReadTime:p,certificateText:v,isCertificateTextClickable:m,onClickCertificateText:g,briefSummary:W}),(0,P.jsx)(n2,{widgetStats:M,isAdaptiveLearningMode:U,isInterviewCourse:B,briefSummary:W}),(0,P.jsx)(n_,{className:"".concat(W?"lg:mb-0":"lg:mb-10"," my-8 sm:mb-0 sm:mt-9"),loggedOut:eh,courseLoaded:et,primaryCTALink:$?ea:"/unlimited",primaryCTAText:$?"Start Free Trial":ef&&ep?"Unlock Full Access with ".concat(ef,"% off"):"Unlock Full Access",hidePrimaryButton:ei||en||ee,previewableLessons:ei||en||0!==q,secondaryButtonText:100===G?Q.revisit:K?Q.continue:Q.startLearning,secondaryButtonHandler:J,loggedOutHandler:eo})]}),!!V.statsExist&&(0,P.jsx)("div",{className:"block sm:hidden",children:(0,P.jsx)(nv,{widgetStats:V.widgetStats,cloudLabsCount:V.cloudLabsCount})}),eh?(0,P.jsx)("div",{className:"tailwind-hidden static h-full flex-col bg-white px-6 pb-0 pt-5 dark:bg-gray-D1500 sm:relative sm:flex sm:shrink-0 sm:transform-none sm:bg-transparent sm:px-0 sm:py-0 sm:dark:bg-transparent",style:{width:el?"296px":"264px"},children:(0,P.jsx)("div",{className:"relative w-full bg-transparent sm:absolute sm:mb-5 sm:mt-7 lg:mt-2 ".concat(W?"lg:mb-6":"lg:mb-0"," ").concat(y?"sm:hidden":""," "),children:(0,P.jsx)("div",{className:"rounded-lg shadow-md",children:(0,P.jsx)(n3,{videoUrl:el,thumbnailUrl:er,returnUrl:es})})})}):(0,P.jsx)("div",{className:"tailwind-hidden static h-full flex-col bg-transparent pt-0 sm:relative sm:flex sm:pt-5 ".concat(F," sm:mb-0 sm:w-[264px] sm:shrink-0 sm:transform-none"),style:{zIndex:"9"},children:(0,P.jsx)("div",{className:"sm:pb:9 relative w-full bg-white px-6 pb-0 pt-9 dark:bg-gray-D1500 sm:absolute sm:bg-transparent sm:px-0 sm:pb-0 sm:pt-0 sm:dark:bg-transparent ".concat(y?"sm:hidden":""),children:(0,P.jsxs)("div",{className:"flex flex-col rounded-lg",children:[(0,P.jsxs)("div",{className:"rounded-lg shadow-md",style:{width:"296px"},children:[(null==A?void 0:A.isLoaded)&&eg&&(0,P.jsx)(n9,{inL2cStarterPack:w}),ex&&(0,P.jsx)(nH.Z,{specialDiscount:ef,isPaymentWidget:!0,fontSize:"13px",roundDiscountPercentageUpto:1,hideIcon:!0}),el&&(0,P.jsx)("div",{className:"tailwind-hidden aspect-video w-full sm:block",style:{minHeight:"166px"}
1,children:(0,P.jsx)(nB.Z,{videoUrl:el,thumbnailUrl:er,height:"166px",topRounded:!ex,bottomRounded:O&&S.hasPurchasedCertificate&&!S.hasClaimedCertificate,playButtonPos:"top-20",errorImageHeight:"h-[166px] max-h-[166px]"})}),!X&&e_&&(0,P.jsx)("div",{className:"h-full rounded-lg bg-white py-1 dark:border dark:border-solid dark:border-gray-D1000 dark:bg-gray-D1300",children:(0,P.jsx)("div",{className:"px-6 pt-4",children:(0,P.jsx)(nz.Z,{})})}),(0,P.jsx)("div",{className:"\n                      ".concat(ex||el?"rounded-b-lg":"rounded-lg","\n                      ").concat(e_?"hidden":"","  flex flex-col border-0 bg-white dark:bg-gray-D1300 ").concat(eh?"":"dark:border dark:border-solid dark:border-gray-D1000"),children:(0,P.jsx)(_,{})})]}),(0,P.jsx)("div",{className:"tailwind-hidden sm:block",style:{width:"296px"},children:O&&S.hasPurchasedCertificate&&!S.hasClaimedCertificate&&(0,P.jsx)(n6,{title:a,certificateData:S,assessmentsLength:N,lessonsLength:L,cloudLabsLength:k,projectsLength:j,authorId:l,collectionId:o,percentCompleted:I,isLoaded:O,mandatoryCloudlabsExist:R,mandatoryProjectsExist:D,className:"mt-1"})})]})})})]})]})},n7=n(908253),ae=e=>{let{coverImageURL:t,hasLastVisited:n,approvedForSale:a,author:i,workId:o,title:l,price:r,approvalStatus:s,ownedByAuthor:d,isOwned:c,firstArticleLink:u,firstPreviewableArticleLink:h,onClickLearningButton:p,slug:v,isMini:m,betaCourse:g,certificatePrice:_,courseReadTime:f,hasPurchasedCertificate:x,submitButton:b,targetAudience:y,completionPercent:w,showSubmitButton:C,isCourseAllowedForFreeTrial:E,inGithubStudentPack:A,isPrivate:T,showLoader:S,isDraft:N,setUsageStatsCountState:L,setUsageStatsState:k,isCollectionLoaded:j,certificateStatusLoaded:I,userConfigLoaded:O,isLoggedOut:R,currency_symbol:D,is_currency_symbol_prefix:M,collection:U,userSubsInfo:Z}=e;return(0,P.jsx)(P.Fragment,{children:(R?O:j&&I)?(0,P.jsx)(n7.Z,{cover_image_url:t,hasLastVisited:n,approvedForSale:a,work_id:o,author:i,title:l,price:r,approvalStatus:s,owned_by_author:d,isOwned:c,firstArticleLink:u,firstPreviewableArticleLink:h,onClickLearningButton:p,course_url_slug:v,is_mini:m,betaCourse:g,certificatePrice:_,courseReadTime:f,hasPurchasedCertificate:x,submitButton:b,targetAudience:y,completionPercent:w,showSubmitButton:C,isCourseAllowedForFreeTrial:E,inGithubStudentPack:A,isPrivate:T,showLoader:S,isDraft:N,setUsageStatsCountState:L,setUsageStatsState:k,currency_symbol:D,is_currency_symbol_prefix:M,collectionFromSSR:null!=U?U:{},userSubsInfo:Z}):(0,P.jsx)("div",{className:"px-6 pt-4",children:(0,P.jsx)(nz.Z,{})})})},at=n(125110),an=n(300883),aa=n(301284),ai=n(531907),ao=n(408186);let al={0:"Overview",1:"What You'll Learn",2:"Course Content",3:"Apply Your skills",4:"Recommendations"},ar=(e,t,n,a)=>{let i=document.getElementById(a[e]);window.scrollTo({top:(null==i?void 0:i.offsetTop)-at.WG,behavior:"smooth"}),(0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_TAB_BUTTONS",t)},as=(e,t)=>{var n,a;return e===aa.mQ.LEGACY?t?"0px":"96px":e===aa.mQ.ENTERPRISE&&(null===(a=document)||void 0===a?void 0:null===(n=a.body)||void 0===n?void 0:n.clientWidth)>959?"64px":"0px"},ad=e=>{let{activeTab:t,setActiveTab:n,hasRelatedContent:a,hasRecommendations:i,statsExist:o,takeawaySkillsExist:l}=e,r={0:ed.X.OVERVIEW,1:l?ed.X.WHAT_YOU_WILL_LEARN:"",2:ed.X.CONTENT,3:a?ed.X.RELATED_CONTENT:"",4:i?ed.X.RECOMMENDATIONS:""};return B.useEffect(()=>{let e=()=>{let e=Object.keys(r),t=document.body.clientWidth<600?at.nD:at.WG;e.map(e=>""!==e&&r[e]&&document.getElementById(r[e])).forEach((e,a)=>{if(e){let i=e.offsetTop;if(window.scrollY+t>=i-10){n(a);return}}})};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,P.jsx)("div",{className:"flex w-full flex-col lg:max-w-6xl lg:justify-center",style:{height:"56px"},children:(0,P.jsx)(ao.default,{"aria-label":"course-homepage-tabs",value:t,variant:"scrollable",color:"bg-transparent","data-testid":"tablist",className:"mt-auto overflow-x-auto sm:px-4 lg:px-6",children:Object.keys(r).map(e=>r[e]&&(0,P.jsx)(ai.default,{label:al[e],className:"mr-4 flex cursor-pointer text-ellipsis",ariaPrefix:r[e],ariaIndex:Number(e),onClick:()=>ar(Number(e),al[e],n,r)}))})})};var ac=e=>{let{activeTab:t,setActiveTab:n,hasRelatedContent:a,hasRecommendations:i,isB2BDomain:o,statsExist:l,takeawaySkillsExist:r}=e,s=Object.entries((0,an.SK)().banners).some(e=>{let[t,n]=e;return n.showBanner&&D.Y0.includes(t)}),d=(0,aa.pY)(),c=d.sidebarType,u=d.sidebarCollapsed;return(0,P.jsx)("div",{style:{zIndex:10,width:"calc(100% - ".concat(as(c,u),")"),...s?{top:"calc(var(--header-height) + var(--site-wide-banner-height)"}:{}},className:"".concat(c!==aa.mQ.LEGACY||u?"":"left-24"," tailwind-hidden fixed flex-col sm:flex"),children:(0,P.jsx)("div",{id:ed.X.TABS,className:"flex w-full justify-center bg-blue-50 dark:bg-gray-D1400",children:(0,P.jsx)(ad,{activeTab:t,setActiveTab:n,hasRelatedContent:a,hasRecommendations:i,statsExist:l,takeawaySkillsExist:r})})})},au=n(403254),ah=n(682970),ap=n.n(ah),av=e=>{let{takeawaySkillsExist:t}
1=e,n=[ed.X.OVERVIEW,t?ed.X.WHAT_YOU_WILL_LEARN:null,ed.X.CONTENT,ed.X.LEARN].filter(e=>null!==e).reduce((e,t,n)=>(e[n]=t,e),{}),a=["Course Overview",...t?["What You'll Learn"]:[],"Course Content"],i=e=>{let t=document.getElementById(n[e]),a=document.body.clientWidth<600?at.nD:at.WG;window.scrollTo({top:(null==t?void 0:t.offsetTop)-a,behavior:"smooth"})},[o,l]=(0,B.useState)(a[0]);return B.useEffect(()=>{let e=()=>{let e=Object.keys(n),t=document.body.clientWidth<600?at.nD:at.WG;if(e){let i=e.map(e=>""!==e&&n[e]&&document.getElementById(n[e]))[0];if(i){let e=i.offsetTop;window.scrollY+t>=e&&l(a[0])}}};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,P.jsx)("div",{className:"tailwind-hidden mt-5 w-full justify-center text-gray-D1300 dark:text-gray-D50 sm:mt-6 sm:flex",id:"menu-section",children:(0,P.jsx)("div",{className:"flex w-full overflow-y-hidden px-4 sm:px-10 lg:overflow-y-auto lg:px-4",style:{maxWidth:"1200px"},children:a.map((e,t)=>(0,P.jsx)("div",{className:"w-44 border-0 border-b-2 border-solid lg:w-auto ".concat(o===e?"border-indigo-500":"border-gray-L300"),children:(0,P.jsx)("div",{className:"w-44 cursor-pointer px-4 py-2.5",onClick:()=>{l(e),i(t)},children:(0,P.jsx)("span",{className:"navigation-text ".concat(o===e?"text-gray-L1000":"text-gray-L500"," dark:text-gray-D400"),children:e})})},e))})})},am=n(421404),ag=n(530574),a_=n(578609),af=n(72281),ax=n(493415),ab=n(967285),ay=n(898465),aw=n(181707);let aC=U()(()=>n.e(895744).then(n.bind(n,640958)),{loadableGenerated:{webpack:()=>[640958]},ssr:!1}),aE=U()(()=>n.e(87407).then(n.bind(n,87407)),{loadableGenerated:{webpack:()=>[87407]},loading:()=>(0,P.jsx)(au.Z,{})}),aA=U()(()=>n.e(218466).then(n.bind(n,218466)),{loadableGenerated:{webpack:()=>[218466]}}),aT=U()(()=>n.e(249423).then(n.bind(n,249423)),{loadableGenerated:{webpack:()=>[249423]}}),aS=U()(()=>n.e(483011).then(n.bind(n,483011)),{loadableGenerated:{webpack:()=>[483011]}}),aN=U()(()=>Promise.resolve().then(n.bind(n,602829)),{loadableGenerated:{webpack:()=>[602829]}}),aL=U()(()=>n.e(869772).then(n.bind(n,869772)),{loadableGenerated:{webpack:()=>[869772]},ssr:!1});(l=R||(R={}))[l.UP=0]="UP",l[l.DOWN=1]="DOWN";let ak=(0,z.$j)(e=>{let{modals:t}=e;return{modalType:null==t?void 0:t.typeToShow}});class aj extends B.Component{componentDidMount(){var e,t;this.fallBackFooterRenderTrigger(),this.trainTeamHandler();let{collection_id:n,author:{author_id:a},course_url_slug:i,router:o}=this.props,l=(0,ax.Z)(null==o?void 0:o.asPath);this.fetchCertificateCallWrapper({author_id:a||(null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.author_id),collection_id:n||(null==o?void 0:null===(t=o.query)||void 0===t?void 0:t.collection_id),course_url_slug:i,work_type:l}),window.addEventListener("scroll",this.scrollEventHandler)}componentWillUnmount(){window.removeEventListener("scroll",this.scrollEventHandler)}componentDidUpdate(e){var t,n,a,i,o,l,r,s,d,c,u,h,p,v,m,g,_;{let e=null!==(r=this.getComponentPosition(ed.X.TABS))&&void 0!==r?r:0;e!==this.state.paymentWidgetTop&&this.setState({paymentWidgetTop:e})}let{collection_id:f,author:{author_id:x},pinned_by_reader:b,userInfoState:y,course_url_slug:w,router:C}=this.props,E=y.data||{};this.props.collectionLoader.isLoaded&&!e.collectionLoader.isLoaded&&this.setState({mandatoryCloudlabsExist:null===(c=this.props.collection.instance.details)||void 0===c?void 0:null===(d=c.toc)||void 0===d?void 0:null===(s=d.categories)||void 0===s?void 0:s.some(e=>e.type===ta.j.LINKED_CLOUD_LAB&&e.is_required),mandatoryProjectsExist:null===(p=this.props.collection.instance.details)||void 0===p?void 0:null===(h=p.toc)||void 0===h?void 0:null===(u=h.categories)||void 0===u?void 0:u.some(e=>e.type===ta.j.EXTERNAL_PROJECT&&e.is_required)});let A=null===(t=e.userInfoState.data)||void 0===t?void 0:t.user_id;b!==e.pinned_by_reader&&this.setState({pinned_by_reader:b}),(null===(a=e.userInfoState.data)||void 0===a?void 0:null===(n=a.enterprise)||void 0===n?void 0:n.organizations)!==(null==E?void 0:null===(i=E.enterprise)||void 0===i?void 0:i.organizations)&&this.setState({enterpriseUser:(null==E?void 0:null===(m=E.enterprise)||void 0===m?void 0:null===(v=m.organizations)||void 0===v?void 0:v.length)>0,hasEnterpriseSubscription:!!(null==E?void 0:null===(_=E.enterprise)||void 0===_?void 0:null===(g=_.organizations.filter(e=>e.is_subscriber||e.is_admin))||void 0===g?void 0:g.length)}
1),(A!==(null==E?void 0:E.user_id)||e.userInfoState.loggedOut!==y.loggedOut)&&this.fetchCertificateCallWrapper({author_id:x||(null==C?void 0:null===(o=C.query)||void 0===o?void 0:o.author_id),collection_id:f||(null==C?void 0:null===(l=C.query)||void 0===l?void 0:l.collection_id),course_url_slug:w,work_type:(0,ax.Z)(null==C?void 0:C.asPath)})}render(){var e,t,n,a,i,o,l,r,s,d,c,u,h,p,v,m,g,_,f,x,b,y,w,C,E,A=this;let{author:T,pageSummary:S,price:N,firstArticleLink:L,firstPreviewableArticleLink:k,userInfoState:j,collection_id:I,coverImage:O,cover_image_serving_url:R,lastVisitedURL:D,approvedForSale:M,notificationStatus:U,takeawaySkillsExist:Z,tabsJSX:B,is_mini:z,approvalStatus:F,courseReadTime:V,certificatePrice:G,isCollectionLoaded:K,widgetStats:q,cloudLabsCount:Y,targetAudience:J,publishStatus:X,collectionMetadata:$,b2cTrialStats:ee,inGithubStudentPack:et,isPrivate:en,categoriesCount:ea,is_draft:ei,router:eo,collection:el,b2cStatus:er,collectionLoader:es,enableHolidayCampaign2023:ec,specialDiscountPercentage:eu,isAdaptiveLearningMode:eh,isInterviewCourse:ep,statsExist:ev,freePreviewLessonCount:em,userSubsInfo:eg,videoUrl:e_,thumbnailUrl:ef}=this.props,ex=j.data||{},eb=!!(null===(n=ex.enterprise)||void 0===n?void 0:null===(t=n.organizations)||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>e.has_active_trial)),ey=(0,ax.Z)(null==eo?void 0:eo.asPath),ew=!!T.author_id&&!!ex&&T.author_id.toString()===(null===(a=ex.user_id)||void 0===a?void 0:a.toString()),eC=N.owned_by_reader||ew,eE=S.title||"",eA=()=>{D?this.props.router.push(D.href):this.props.router.push("".concat(L.href,"?openHLOPage=true"),L.href)},eT=()=>{var e,t,n,a,i;ei?this.props.dispatch(tG.n.show(tW.ad,{status:"SUCCESS",text:"Checkout Dialog will be shown here"})):100===this.props.percentCompleted?(0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_REVISIT_BUTTON","Course_".concat(eE)):(null===(e=this.props.lastVisitedURL)||void 0===e?void 0:e.href)?(0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_CONTINUE_LEARNING_BUTTON","Course_".concat(eE)):((0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_START_LEARNING_COURSE","Course_".concat(eE)),(0,Q.Z)("COURSE","COURSE_START_LEARNING_CLICKED"),(0,Q.Z)("CONTENT_DATA","START_LEARNING_CTA_CLICKED","collection_type".concat("_",eE)),(0,Q.Z)("CONTENT_DATA","START_LEARNING_CTA_CLICKED_TAG",S.learnerTags.join("_")),(0,Q.Z)("ENTERPRISE","CLICKED_STARTED_COURSE","",null,{trial_active:eb,content_id:"".concat(null===(t=el.instance)||void 0===t?void 0:t.details.author_id,"-").concat(null===(n=el.instance)||void 0===n?void 0:n.details.collection_id),is_assigned:!!(null==el?void 0:null===(i=el.instance)||void 0===i?void 0:null===(a=i.details)||void 0===a?void 0:a.is_assigned)})),eA()},eN=F===W.Lc.APPROVED_FOR_EARLY_ACCESS,eL=!!(G&&(null==ex?void 0:ex.user_id)&&(null==ex?void 0:ex.user_id)!==Number(T.author_id||0)&&V&&eC&&M&&el),ek=this.state.hasPurchasedCertificate&&this.state.hasMetCertificateCriteria&&this.props.percentCompleted>=at.EY&&!this.state.hasClaimedCertificate,ej="Certificate of Completion",eI=!1,eO=()=>{};eL&&(this.state.hashId?(ej="View Your Certificate",eI=!0,eO=()=>{(0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_VIEW_CERTIFICATE","Course_".concat(eE)),(0,t8.i)(this.state.hashId,eo)}):ek&&(ej="Claim Your Certificate",eI=!0,eO=()=>{var e,t,n,a;let i=this.props.userInfoState.data||{};(0,Q.Z)("CONTENT_HOMEPAGE","CLICKED_CLAIM_CERTIFICATE","Course_".concat(eE)),(0,t9.Z)(null===(e=el.instance)||void 0===e?void 0:e.details.author_id,null===(t=el.instance)||void 0===t?void 0:t.details.collection_id,eo,null===(n=el.instance)||void 0===n?void 0:n.details.work_type,null==i?void 0:null===(a=i.user_id)||void 0===a?void 0:a.toString())}));let eR=()=>{var e;let t=F===W.Lc.NONE||F===W.Lc.UNAPPROVED,n=this.props.showSubmitButton&&t&&!en&&X&&(0,P.jsx)("div",{className:"box-border w-full capitalize",children:(0,P.jsx)("button",{className:"contained-primary m-0 w-full",onClick:()=>this.onSubmitClick(),children:"Submit for review"})});return(null===(e=ex.user_id)||void 0===e?void 0:e.toString())===T.author_id&&n&&(0,P.jsx)("div",{children:n})},eP=(0,ay.r)(ee,S.learnerTags,er),eD=!((null===(i=el.instance)||void 0===i?void 0:i.details.is_priced)&&(null===(o=el.instance)||void 0===o?void 0:o.details.price)&&(null===(l=el.instance)||void 0===l?void 0:l.details.discounted_price)),eM={...q,projects:ea.projectCount,asse
1ssments:ea.assessmentCount},eU=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return A.setState(t=>({...t,usageStatsLoaded:e}))},eZ=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return A.setState(t=>({...t,usageStatsCountLoaded:e}))},eB=eD?(null==ex?void 0:ex.has_active_l2c_pack)&&(null===(s=el.instance)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:r.in_l2c_starter_pack):null==ex?void 0:ex.has_active_l2c_pack,ez=ec&&!eC&&0!==N.price,eH=(null==el?void 0:null===(u=el.instance)||void 0===u?void 0:null===(c=u.details)||void 0===c?void 0:null===(d=c.toc)||void 0===d?void 0:d.categories)||[],{mandatoryCloudlabs:eF,mandatoryLessons:eW,mandatoryProjects:eV}=(0,tQ.QO)(eH),eG={continue:"Continue Learning",startLearning:"Start Learning",revisit:"Revisit"},eK=!!(null===(h=this.props.lastVisitedURL)||void 0===h?void 0:h.href),eq=(0,a_.ru)({userInfo:j.data,loggedOut:j.loggedOut},eP,this.props.userSubsInfo),eY=0===N.price,eJ="/trial?ru=".concat(eo.asPath),{percentCompleted:eX}=(0,tX.ZP)(eW,null==el?void 0:el.course_completion,eF,eV),eQ=()=>{H.iw.IS_B2B?eo.replace("/signup?ru=".concat(L.href,"&page_section=").concat(e$.t.CHP_CTA_BUTTON)):this.props.dispatch(tG.n.show(tW.kp,{ru:L.href,pageSection:e$.t.CHP_CTA_BUTTON}))},e0=ez&&!this.props.userInfoState.loggedOut?"rounded-b-lg":"rounded-lg",e1=function(){var e,t,n,a,i,o;let l=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,P.jsxs)("div",{className:"flex flex-col rounded ".concat(l?"fixed mr-18 lg:w-[264px] ".concat(ap().fadeIn):"absolute bottom-4 w-full"),style:l?{top:"".concat(A.state.paymentWidgetTop+10,"px")}:{},id:l?ed.X.PAYMENT_WIDGET:"",children:[(0,P.jsx)("div",{className:"".concat(e0," shadow-md"),children:(0,P.jsxs)("div",{className:"flex flex-col  bg-white dark:bg-gray-D1500 ".concat(e0),children:[l&&es.isLoaded&&eB&&(0,P.jsx)(aC,{inL2cStarterPack:null===(t=el.instance)||void 0===t?void 0:null===(e=t.details)||void 0===e?void 0:e.in_l2c_starter_pack}),ez&&!A.props.userInfoState.loggedOut&&(0,P.jsx)(nH.Z,{specialDiscount:eu,isPaymentWidget:!0,fontSize:"13px",roundDiscountPercentageUpto:1,hideIcon:!0}),(0,P.jsx)("div",{className:"flex flex-col ".concat(e0," border-0 bg-white dark:border dark:border-solid dark:border-gray-D1000 dark:bg-gray-D1300"),children:e4(eg)})]})}),A.state.eligibilityInfoLoaded&&A.state.hasPurchasedCertificate&&!A.state.hasClaimedCertificate&&(0,P.jsx)(aL,{certificateData:{hasPurchasedCertificate:A.state.hasPurchasedCertificate,hasClaimedCertificate:A.state.hasClaimedCertificate,hasMetCertificateCriteria:A.state.hasMetCertificateCriteria},assessmentsLength:null===(n=A.state.insufficientTimeAssessmentIds)||void 0===n?void 0:n.length,lessonsLength:null===(a=A.state.insufficientTimeLessonIds)||void 0===a?void 0:a.length,cloudLabsLength:null===(i=A.state.incompleteCloudlabIds)||void 0===i?void 0:i.length,projectsLength:null===(o=A.state.incompleteProjectIds)||void 0===o?void 0:o.length,authorId:A.props.author.author_id,collectionId:A.props.collection_id,title:eE,percentCompleted:eX,mandatoryCloudlabsExist:A.state.mandatoryCloudlabsExist,mandatoryProjectsExist:A.state.mandatoryProjectsExist,isLoaded:A.state.eligibilityInfoLoaded,className:"mt-0",certificateWidth:230})]})},e2=R||(null==O?void 0:O.image),e5=(0,eS.P)({cover_image_serving_url:e2},ag.Un),e4=e=>(0,P.jsx)(ae,{coverImageURL:e5,hasLastVisited:eK,approvedForSale:M,workId:I,author:T,title:eE,price:N,approvalStatus:F,ownedByAuthor:ew,isOwned:eC,firstArticleLink:L,firstPreviewableArticleLink:k,onClickLearningButton:eA,slug:this.props.course_url_slug,isMini:z,betaCourse:eN,certificatePrice:G,courseReadTime:V,hasPurchasedCertificate:this.state.hasPurchasedCertificate,submitButton:eR,targetAudience:J,completionPercent:this.props.percentCompleted,showSubmitButton:this.props.showSubmitButton,isCourseAllowedForFreeTrial:eP,inGithubStudentPack:et,isPrivate:en,showLoader:this.state.disableCTA,isDraft:ei,setUsageStatsCountState:eZ,setUsageStatsState:eU,isCollectionLoaded:K,certificateStatusLoaded:this.state.statusLoaded,userConfigLoaded:this.props.userConfig.loaded,isLoggedOut:this.props.userInfoState.loggedOut,currency_symbol:N.currency_symbol,is_currency_symbol_prefix:N.is_currency_symbol_prefix,collection:el,userSubsInfo:e}),e3=(null===(m=this.props.ssrContent)||void 0===m?void 0:null===(v=m.instance)||void 0===v?void 0:null===(p=v.details)||void 0===p?void 0:p.gpu_enabled)||(null==el?void 0:null===(_=el.instance)||void 0===_?void 0:null===(g=_.details)||void 0===g?void 0:g.gpu_enabled);return(0,P.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,P.jsx)(n8,{inL2cStarterPack:null===(x=el.instance)||void 0===x?void 0:null===(f=x.details)||void 0===f?void 0:f.in_l2c_starter_pack,mandatoryCloudlabsExist:this.state.mandatoryCloudlabsExist,mandatoryProjectsExist:this.state.mandatoryProjectsExist,l2cStarterPackOwner:null==ex?void 0:ex.has_active_l2c_pack,collectionLoader:es,isFreeCollection:eD,showSave:!!(null==ex?void 0:ex.user_id
1),showMetadata:ex.can_view_course_metadata&&!!(null==$?void 0:$.creation_time),title:eE,pinned:this.state.pinned_by_reader,collectionId:this.props.collection_id,authorId:this.props.author.author_id,dispatchMetadataModal:()=>this.props.dispatch(tG.n.show(tW.wi,{courseMetadata:$})),updatePinStatus:e=>this.setState({pinned_by_reader:e}),workType:(0,ax.Z)(null===(b=this.props.router)||void 0===b?void 0:b.asPath),dispatchErrorModal:e=>this.props.dispatch(tG.n.show(tW.ad,{status:"ERROR",text:e})),targetAudience:J,lessonCount:ea.lessonCount,courseReadTime:V,certificateText:ej,isCertificateTextClickable:eI,onClickCertificateText:eO,scrolled:this.state.scrolled,PaymentJSX:()=>e4(eg),dispatch:this.props.dispatch,contentType:(0,ne.e)(ey),eventParams:{contentName:eE,hasAssignedContent:!!this.state.usageStatsCount.assigned_by_me},showHolidayCampaign2023:ez,certificateData:{hasPurchasedCertificate:this.state.hasPurchasedCertificate,hasClaimedCertificate:this.state.hasClaimedCertificate,hasMetCertificateCriteria:this.state.hasMetCertificateCriteria},assessmentsLength:null===(y=this.state.insufficientTimeAssessmentIds)||void 0===y?void 0:y.length,lessonsLength:null===(w=this.state.insufficientTimeLessonIds)||void 0===w?void 0:w.length,cloudlabsLength:null===(C=this.state.incompleteCloudlabIds)||void 0===C?void 0:C.length,projectsLength:null===(E=this.state.incompleteProjectIds)||void 0===E?void 0:E.length,percentCompleted:eX,certificateDataLoaded:this.state.eligibilityInfoLoaded,widgetStats:eM,courseStats:{widgetStats:q,cloudLabsCount:Y,statsExist:ev},isAdaptiveLearningMode:eh,isInterviewCourse:ep,course_url_slug:this.props.course_url_slug,priceWidgetTop:"lg:top-0",briefSummary:S.briefSummaryText,completionPercent:this.props.percentCompleted,hasLastVisited:eK,certificateStatusLoaded:this.state.statusLoaded,freePreviewLessonCount:em,owned_by_author:ew,handleLearningCTA:eT,callToAction:eG,isStartTrial:eq,isB2BDomain:H.iw.IS_B2B,courseLoaded:this.props.courseLoaded&&!this.props.userSubsInfoLoading,isFree:eY,trialCTARedirectionURL:eJ,isSubscribed:this.props.isSubscribed,loggedOutHandler:eQ,videoUrl:e_,thumbnailUrl:ef,firstArticleLink:null==L?void 0:L.href}),!!ev&&(0,P.jsx)("div",{className:"tailwind-hidden w-full sm:block",children:(0,P.jsx)(nv,{widgetStats:q,cloudLabsCount:Y})}),this.props.hasVariants&&(0,P.jsx)(aE,{authorId:this.props.author.author_id,collectionId:this.props.collection_id,variantUrlPrefix:"courses"}),(0,P.jsx)(av,{takeawaySkillsExist:!!Z}),this.state.scrolled&&(0,P.jsx)(ac,{activeTab:this.state.activeTab,setActiveTab:e=>this.setState({activeTab:e}),hasRecommendations:this.props.hasRecommendations,hasRelatedContent:this.props.hasRelatedContent&&this.state.hasApprovedRelatedContent,isB2BDomain:!1,statsExist:ev,takeawaySkillsExist:!!Z}),(0,P.jsxs)("div",{id:ed.X.MAIN_CONTENT,className:"order-3 flex w-full justify-between px-4 dark:bg-gray-D1500 dark:text-gray-D200 sm:px-10 lg:px-6",style:{maxWidth:"1200px"},ref:this.props.containerRef,children:[(0,P.jsxs)("div",{className:"flex w-full flex-col lg:pr-12",style:{maxWidth:"888px"},children:[eN&&(0,P.jsx)(aT,{className:ey===W.dL.COLLECTION?"mt-10":"mt-4"}),this.props.is_draft&&(0,P.jsx)("div",{children:(0,P.jsx)(aA,{notificationStatus:U,authorId:T.author_id,collectionId:I})}),e3&&(0,P.jsx)(aS,{collectionLoaded:es.isLoaded,courseTitle:eE}),B,this.props.hasRelatedContent&&(0,P.jsx)(aN,{authorId:this.props.author.author_id,collectionId:this.props.collection_id,courseTitle:eE,courseUrlSlug:this.props.course_url_slug,setHasApprovedRelatedContent:e=>this.setState({hasApprovedRelatedContent:e})})]}),(0,P.jsx)("div",{className:"".concat(this.state.scrolled?"relative":""," tailwind-hidden lg:block lg:w-[264px] lg:shrink-0"),children:this.state.scrolled&&(0,P.jsxs)(P.Fragment,{children:[this.state.isLgHeaderSticky&&e1(),!this.state.isLgHeaderSticky&&e1(!1)]})}),this.state.scrolled&&(0,P.jsxs)("div",{className:"".concat(this.props.testimonialSectionReached?"absolute -bottom-20":"fixed bottom-0"," left-0 z-10 w-full px-4 sm:hidden ").concat(0===this.state.scrollDirection&&!1===this.props.testimonialSectionReached?"hidden":"block"),style:{zIndex:"9999px"},children:[(0,P.jsx)("div",{className:"h-10 w-full bg-gradient-to-t from-white to-transparent dark:from-gray-D1500"}),(0,P.jsx)(n_,{className:"mb-5",loggedOut:this.props.userInfoState.loggedOut,courseLoaded:this.props.courseLoaded&&!this.props.userSubsInfoLoading,primaryCTALink:eq?eJ:"/unlimited",primaryCTAText:eq?"Start Free Trial":eu?"Unlock Full Access with ".concat(eu,"% off"):"Unlock Full Access",hidePrimaryButton:this.props.isSubscribed||eY,previewableLessons:this.props.isSubscribed||eY||0!==em,secondaryButtonText:100===this.props.percentCompleted?eG.revisit:eK?eG.continue:eG.startLearning,hideSecondaryButton:!(this.props.isSubscribed||eY),secondaryButtonHandler:eT,loggedOutHandler:eQ}
1)]})]})]})}constructor(...e){super(...e),this.state={pinned_by_reader:this.props.pinned_by_reader,statusData:{status:"",text:""},descriptionTruncated:!0,hasPurchasedCertificate:!1,hasMetCertificateCriteria:!1,hasClaimedCertificate:!1,hashId:null,statusLoaded:!1,insufficientTimeAssessmentIds:[],insufficientTimeLessonIds:[],incompleteCloudlabIds:[],incompleteProjectIds:[],eligibilityInfoLoaded:!1,disableCTA:!1,usageStats:{total_assignments:0,assigned_by_me:0,not_started:0,in_progress:0,completed:0,self_started:0,not_attempted:0,passed:0,not_passed:0,user_assignment_map:{},users:[]},usageStatsCount:{total_assignments:0,assigned_by_me:0,users:[]},usageStatsCountLoading:!1,usageStatsCountLoaded:!1,usageStatsCountError:!1,usageStatsLoading:!1,usageStatsLoaded:!1,usageStatsError:!1,enterpriseUser:!1,hasEnterpriseSubscription:!1,variantsLoading:!0,variantsLoaded:!1,variantsData:[],showAIPopUp:!1,scrolled:!1,activeTab:0,isLgHeaderSticky:!0,positionOnOverlap:0,paymentWidgetTop:0,renderTrainTeam:!1,hasApprovedRelatedContent:this.props.hasRelatedContent,mandatoryCloudlabsExist:!1,mandatoryProjectsExist:!1,lastScroll:void 0,scrollDirection:1},this.getComponentPosition=function(e){var t,n;let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a?null===(t=document.getElementById(e))||void 0===t?void 0:t.getBoundingClientRect().top:null===(n=document.getElementById(e))||void 0===n?void 0:n.getBoundingClientRect().bottom},this.scrollEventHandler=()=>{this.state.lastScroll&&(this.state.lastScroll>window.scrollY?this.setState({scrollDirection:0}):this.setState({scrollDirection:1})),this.setState({lastScroll:window.scrollY});let e=this.getComponentPosition(ed.X.PAYMENT_WIDGET),t=this.getComponentPosition(ed.X.OVERVIEW,!0),n=this.getComponentPosition(ed.X.MAIN_CONTENT);this.state.isLgHeaderSticky&&e>=n-16?this.setState({isLgHeaderSticky:!1,positionOnOverlap:n}):!this.state.isLgHeaderSticky&&this.state.positionOnOverlap<n&&this.setState({isLgHeaderSticky:!0,positionOnOverlap:0}),t-56<=0&&!this.state.scrolled?(this.setState({scrolled:!0}),this.props.setRenderCollectionFooter&&this.props.setRenderCollectionFooter()):this.state.scrolled&&t-56>0&&this.setState({scrolled:!1})},this.fetchCertificateCallWrapper=e=>{let{author_id:t,collection_id:n,course_url_slug:a,work_type:i}=e,o=this.props.userInfoState.data||{},l=this.props.userInfoState.loggedOut;(null==o?void 0:o.user_id)?(0,nt.Z)({author_id:t,collection_id:n,course_url_slug:a,work_type:i}).then(e=>{let a=JSON.parse(e);this.setState({hasPurchasedCertificate:a.has_purchased_certificate,hasMetCertificateCriteria:a.has_passed_all_assessments,hasClaimedCertificate:a.has_claimed_certificate,hashId:a.hash_id,statusLoaded:!0}),a.has_claimed_certificate?this.setState({eligibilityInfoLoaded:!0}):na(t,n).then(e=>{let t=JSON.parse(e);this.setState({insufficientTimeAssessmentIds:t.assessment_ids.length?t.assessment_ids:this.state.insufficientTimeAssessmentIds,insufficientTimeLessonIds:t.lesson_ids.length?t.lesson_ids:this.state.insufficientTimeLessonIds,incompleteCloudlabIds:t.cloudlab_ids.length?t.cloudlab_ids:this.state.incompleteCloudlabIds,incompleteProjectIds:t.project_ids.length?t.project_ids:this.state.incompleteProjectIds,eligibilityInfoLoaded:!0})}).catch(e=>{})}).catch(e=>this.setState({statusLoaded:!0})):l&&this.setState({statusLoaded:!0})},this.fallBackFooterRenderTrigger=()=>{(0,am.ZP)({querySelector:"#".concat(ed.X.LEARN),callback:()=>{var e,t;return null===(e=(t=this.props).setRenderCollectionFooter)||void 0===e?void 0:e.call(t)}})},this.trainTeamHandler=()=>{(0,am.ZP)({querySelector:"#train-team-sm",callback:()=>this.setState({renderTrainTeam:!0})})},this.onSubmitClick=()=>{this.props.dispatch(tG.n.show(tW.uS,{onSubmitClick:this.props.submitCourse}))}}}aj.defaultProps={tracks:[],lastVisitedURL:void 0,categories:[]};var aI=(0,Z.withRouter)(ak((0,t6.Z)(e=>{var t,n,a,i,o;let{userInfoState:l}=(0,tV.su)(),r=!!(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.user_id),{data:s,isLoading:d}=(0,t7.K)(r),c=B.useRef(null),u=(0,aa.pY)(),h=(0,af._P)(),p=(0,n4.Fh)(),v=null==e?void 0:null===(i=e.collection)||void 0===i?void 0:null===(a=i.instance)||void 0===a?void 0:null===(n=a.details)||void 0===n?void 0:n.in_l2c_starter_pack,m=(0,n4.Xq)(v),g=(0,tA.h)(e=>e.userConfig),_=(0,F.YK)(null==l?void 0:l.data),{isUserOnFreeTrial:f}=e.dispatch((0,aw.u)()),{data:x}=(0,ab.G)(),b=(0,af.q6)(),y=(null==l?void 0:l.loggedOut)||e.isCollectionLoaded&&!(null==l?void 0:l.loading)&&(b.course_completion&&!Object.keys(b.course_completion).length||x&&Object.keys(x).length>0),w=(0,n5.Q)(m);return(0,P.jsx)(aj,{...e,b2cTrialStats:null===(o=g.data)||void 0===o?void 0:o.b2c_trial_stats,userConfig:g,userInfoState:l,collectionLoader:h,sidebar:u,enableHolidayCampaign2023:p&&(null==m?void 0:m.special_discount_available),specialDiscountPercentage:w,courseLoaded:y,isUserOnFreeTrial:f,isSubscribed:_,containerRef:c,userSubsInfo:s,userSubsInfoLoading:d})}))),aO=n(173656);let aR=U()(()=>n.e(494574).then(n.bind(n,494574)),{loadableGenerated:{webpack:()=>[494574]}}),aP=(0,z.$j)(e=>({dispatch:e}));function aD(e,t,n,a,i,o){let l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return(0,t3.Z)({authorId:e,collectionId:t,id:n,isDraft:a,courseUrlSlug:i,customWorkType:o,pageSlug:l}).viewUrl}class aM extends B.Component{componentDidMount(){var e,t,n,a,i,o,l;this.previousContext=this.props.userInfo,this.getRecommendationsWrapper(),(null===(n=this.props.ssrContent)||void 0===n?void 0:null===(t=n.instance)||void 0===t?void 0:null===(e=t.details)||void 0===e?void 0:e.level_one_learner_tags)&&(0,ts.h)(null===(l=this.props.ssrContent)||void 0===l?void 0:null===(o=l.instance)||void 0===o?void 0:null===(i=o.details)||void 0===i?void 0:i.level_one_learner_tags).catch(e9.u),(!this.props.userInfo.userInfoState.loggedOut||(null===(a=this.props.userInfo.userInfoState.data)||void 0===a?void 0:a.user_id
1))&&this.props.author_id&&this.props.collection_id&&(0,tn._)(parseInt(this.props.author_id),parseInt(this.props.collection_id)).catch(e9.u)}componentDidUpdate(e){var t,n,a,i,o,l,r,s,d,c,u,h,p,v;let m=Object.keys(this.props.collection).length?null===(t=this.props.collection)||void 0===t?void 0:t.collectionId:null===(i=this.props.ssrContent)||void 0===i?void 0:null===(a=i.instance)||void 0===a?void 0:null===(n=a.details)||void 0===n?void 0:n.collection_id,g=Object.keys(e.collection).length?null===(o=e.collection)||void 0===o?void 0:o.collectionId:null===(s=e.ssrContent)||void 0===s?void 0:null===(r=s.instance)||void 0===r?void 0:null===(l=r.details)||void 0===l?void 0:l.collection_id;m&&g!==m&&this.getRecommendationsWrapper(),m&&g!==m&&(null===(u=this.props.ssrContent)||void 0===u?void 0:null===(c=u.instance)||void 0===c?void 0:null===(d=c.details)||void 0===d?void 0:d.level_one_learner_tags)&&(0,ts.h)(null===(v=this.props.ssrContent)||void 0===v?void 0:null===(p=v.instance)||void 0===p?void 0:null===(h=p.details)||void 0===h?void 0:h.level_one_learner_tags).catch(e9.u),g!==m&&this.setState({recommendations:{data:{higherLevelWorks:[],lowerLevelWorks:[]},loaded:!1},relatedArticlesLoading:!1,relatedArticlesLoaded:!0,relatedArticles:[]}),this.previousContext=this.props.userInfo}async loadRecommendations(){var e;let{author_id:t,collection_id:n}=this.props,a=null===(e=JSON.parse(await (0,tr.d)(t,n,"",!0)))||void 0===e?void 0:e.recommendations;return null!==a?(this.sendEventOnRecommendedCourse(t,n),{higherLevelWorks:a.higher_level_works,lowerLevelWorks:a.lower_level_works}):{}}render(){var e,t,n,a,i,o,l,r,s,d,c,u,h,p,v,m,g,_,f,x,b,y,w,C,E,A,T,S,N,L,k,j,I,O,R,D,M,U,Z,B,z,H;let V;let{collection_id:G,collection:K,coverImage:q,courseCompletion:Y,authorProfileImgUrl:J,approvedForSale:X,approvalStatus:$,notificationStatus:ee,courseReadTime:et,certificatePrice:en,isModule:ea,ssrContent:ei,adaptiveLearningConfigConstantSSR:eo,hasVariants:el,enableCourseHomepageBlade:er,isB2BDomain:es,adaptiveLearningEnabled:ec}=this.props,eu=this.props.userInfo.userInfoState.data||{},eh=Object.keys(K).length?K:ei,ep=null==eh?void 0:eh.is_published,ev=null==eh?void 0:null===(t=eh.instance)||void 0===t?void 0:null===(e=t.details)||void 0===e?void 0:e.is_private,eg=null==eh?void 0:null===(a=eh.instance)||void 0===a?void 0:null===(n=a.details)||void 0===n?void 0:n.learner_tags,ef=null==eh?void 0:null===(i=eh.instance)||void 0===i?void 0:i.b2c_status,eb=null!=eh?eh:{},ey=eb.instance||{},ew=ey.details||{},eC=ew.openai_api_enabled||!1,eE=ew.toc||{},eA=ew.target_audience||"",eT=ew.page_titles||{},{cover_image_serving_url:eS}=ew,{url_slug:eN}=ew,{is_mini:eL}=ew,ek=null==ew?void 0:ew.hero_banner,{author_id:ej,authorName:eI,is_draft:eO}=this.props,eR=ew.licensing||{},{attr_auth:eP,attr_title:eD,license:eM}=eR,eU=null==ei?void 0:ei.courseRelatedProjects,eZ=null==ei?void 0:ei.courseRelatedCloudLabs,eB=(eo||ec)===tl.C.LEARNER_FF_L4_FULL_B2C||(eo||ec)===tl.C.LEARNER_FF_L2_FULL_INTERNAL&&(null==eu?void 0:null===(o=eu.email)||void 0===o?void 0:o.endsWith("@educative.io")),ez=eB&&(null===(l=ew.adaptive_pathway_info)||void 0===l?void 0:l.active_toc_mode)===tZ.vC.ADAPTIVE&&(null==ew?void 0:null===(s=ew.adaptive_pathway_info)||void 0===s?void 0:null===(r=s.in_active_toc)||void 0===r?void 0:r.categories)?null==ew?void 0:null===(c=ew.adaptive_pathway_info)||void 0===c?void 0:null===(d=c.in_active_toc)||void 0===d?void 0:d.categories:eE.categories||[],eH=[],eF=ew.is_priced&&ew.price&&0!==ew.discounted_price,eW=!eO&&!es&&er&&!(null==eg?void 0:eg.includes("prepare-for-interview"))&&eF,eV=ez.length>0||ew.details,eG=ez.reduce((e,t)=>e+t.pages.length,0),eK=0,eq=0;ez.filter(e=>e.id!==tz.s).forEach(e=>{eK+=Number(e.type===ta.j.ASSESSMENT),eq+=Number(e.type===ta.j.PROJECT),eH=e_()(eH,{$push:e.pages.filter(e=>{let{is_preview:t}=e;return t}).map(e=>(eT[e.id]&&(e={...e,title:eT[e.id]}),e))})});let eY=0,eJ=0;null==ei||null===(p=ei.instance)||void 0===p||null===(h=p.details)||void 0===h||null===(u=h.toc)||void 0===u||u.categories.filter(e=>e.id!==tz.s).forEach(e=>{eY+=Number(e.type===ta.j.CLOUD_LAB)+Number(e.type===ta.j.LINKED_CLOUD_LAB),eJ+=Number(e.type===ta.j.EXTERNAL_PROJECT)});let eX={creation_time:K.creation_time,last_published_time:K.last_published_time,first_published_time:K.first_published_time,last_modified:ew.modified_time,target_audience:ew.target_audience,is_mini:ew.is_mini,course_by_type:ew.course_by_type,lesson_preview_count:eH.length,aggregated_widget_stats:ew.aggregated_widget_stats||{},author_id:ej,collection_id:G}
1,eQ={title:ew.title,description:ew.summary,tags:ew.tags,clos:ew.clos,briefSummaryText:ew.brief_summary,learnerTags:ew.learner_tags,skills:ew.skills},e$={price:ew.price,author_discount:ew.author_discount,discounted_price:ew.discounted_price,is_priced:ew.is_priced,owned_by_reader:ey.owned_by_reader,discounted_for_region:ew.discounted_for_region||null,regional_discount_message:ew.regional_discount_message||null,regional_discount_percentage:ew.regional_discount_percentage||null,country_code:ew.country_code||null,currency_symbol:ew.currency_symbol||null,is_currency_symbol_prefix:ew.is_currency_symbol_prefix||!1,currency_region:ew.currency_region||null,local_sale:ew.local_sale||!1,currency_code:ew.currency_code||null};ez.length&&ez[0].pages.length&&(V=aD(ej,G,ez[0].pages[0].id,eO,eN,null==ew?void 0:ew.work_type,ez[0].pages[0].slug));let e0=eH.length,e1=eH.length>0?aD(ej,G,eH[0].id,eO,eN,null==ew?void 0:ew.work_type,eH[0].slug):null,e2=null;ew.ref_author_id&&ew.ref_author_name&&(e2={author_id:ew.ref_author_id,full_name:ew.ref_author_name,...ew.ref_author_details});let e5=null==Y?void 0:Y.LAST_VISITED,e4=e5&&e5 in eT,e3={href:eN?"/courses/".concat(eN,"/").concat((0,t$.AE)(e5)):"/".concat((null==ew?void 0:ew.work_type)||W.dL.COLLECTION,"/page/").concat(ej,"/").concat(G,"/").concat(e5)},e6=0===Object.keys(eb).length,e9=this.props.isMobileScreen?256:512,e8=(null===(v=eQ.description)||void 0===v?void 0:v.length)>e9,e7=eQ.description,te=(null===(m=eQ.description)||void 0===m?void 0:m.substring(0,e9))+(e8?"...":""),tn="".concat(this.state.descriptionTruncated?"Show More":"Show Less"),ti=null==eh?void 0:null===(_=eh.instance)||void 0===_?void 0:null===(g=_.details)||void 0===g?void 0:g.landing_page_content,to=!!ew.collection_overview_data&&!ew.collection_created_from_template,tr=to?JSON.parse(ew.collection_overview_data):null,ts=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"order-1 ".concat((null===(f=eQ.skills)||void 0===f?void 0:f.length)>0?"mb-6":"mb-6 lg:mb-12"),id:ed.X.OVERVIEW,children:[(0,P.jsx)("p",{className:"heading-five content-default-emphasis m-0 text-xl font-bold",children:"Course Overview"}),(0,P.jsxs)("p",{className:"body-medium content-default-default m-0 mt-4 whitespace-pre-line",children:[this.state.descriptionTruncated&&e8?te:e7,e8&&(0,P.jsx)("span",{className:"".concat(this.state.descriptionTruncated?"inline-block":"tailwind-hidden sm:inline-block"," caption-text ml-2 cursor-pointer font-bold text-gray-L1000 underline hover:text-gray-L600 dark:text-gray-D200 dark:hover:text-indigo-50"),onClick:this.onClickShowMore,children:tn})]})]}),to&&(0,P.jsx)(em,{overviewData:tr,summary:(null==ew?void 0:ew.summary)||"",authorId:ej,collectionId:G})]}),td=null===(x=eQ.clos)||void 0===x?void 0:x.length,tc=ek&&!!Object.keys(ek).length&&!["title","link_url"].some(e=>!ek[e]),tu=eV&&!!td,{mandatoryLessons:th,mandatoryCloudlabs:tp,mandatoryProjects:tv}=(0,tQ.QO)(ez),{percentCompleted:tm}=(0,tX.ZP)(th,Y,tp,tv),tg={full_name:null!==(B=null==ei?void 0:null===(b=ei.author)||void 0===b?void 0:b.authorName)&&void 0!==B?B:"",profile_image_serving_url:null!==(z=null==ei?void 0:null===(y=ei.author)||void 0===y?void 0:y.profileImage)&&void 0!==z?z:"",author_id:null!==(H=null==ei?void 0:null===(w=ei.author)||void 0===w?void 0:w.authorId)&&void 0!==H?H:""},t_=[e2||this.props.authorProfile||tg,...ew.co_authors||[]].filter(e=>!!e&&e.full_name&&"Educative"!==e.full_name),tf=t_.length,tx=["PromptAI","projects","assessments","codeRunnableCount","Android","codeExerciseCount","Quiz","StructuredQuiz","QuizV2","codeSnippetCount","AINotepad"],tb=ew.aggregated_widget_stats||null,ty=null===(S=K.instance)||void 0===S?void 0:null===(T=S.details)||void 0===T?void 0:null===(A=T.toc)||void 0===A?void 0:null===(E=A.categories)||void 0===E?void 0:null===(C=E.filter(e=>e.type===ta.j.CLOUD_LAB||e.type===ta.j.LINKED_CLOUD_LAB))||void 0===C?void 0:C.length,tw=tb&&(tb.assessments>0||tb.projects>0||ty>0||Object.entries(tb).some(e=>{let[t,n]=e;return tx.includes(t)&&Number(n)>=5})),tC=eV&&(0,P.jsxs)("div",{className:"flex flex-col ".concat(el?"mt-6":"mt-5 sm:mt-10"),children:[ts,(null===(N=eQ.skills)||void 0===N?void 0:N.length)>0&&(0,P.jsx)(tU,{tags:eQ.skills}),ti&&(0,P.jsx)("div",{className:"order-2",children:(0,P.jsx)(tt,{content:ti,urlSlug:eN})}),!!tu&&(0,P.jsx)(tD,{skills:eQ.clos}),(0,P.jsx)("div",{className:"order-5 mb-4 flex flex-col",children:(0,P.jsx)(tI.Z,{authorId:ej,categories:ez,collectionId:G,courseCompletion:Y,courseUrlSlug:e
1N,isCollaboratorReviewMode:(null==K?void 0:null===(k=K.instance)||void 0===k?void 0:null===(L=k.details)||void 0===L?void 0:L.collaboration_mode)===tH.Z.REVIEW_MODE,isDraft:eO,isOwned:ey.owned_by_reader,isPriced:ew.is_priced,isZeroPriced:0===ew.price||0===ew.discounted_price,pageTitles:eT,lazyHydrate:!0,isB2BDomain:es,dispatch:this.props.dispatch})}),(0,P.jsx)(()=>!!(null==t_?void 0:t_.length)&&(0,P.jsxs)("div",{className:"order-6 mb-9 flex w-full flex-col gap-y-3 pb-2",children:[(0,P.jsxs)("div",{className:"flex w-full items-center gap-x-3",children:[(0,P.jsx)("p",{className:"eyebrow content-default-subdued m-0 p-0",children:"Course Author"}),(0,P.jsx)("div",{className:"navigation-text flex flex-wrap items-center gap-x-1 text-gray-L1000 dark:text-gray-D50",children:t_.map((e,t)=>e&&(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{className:"desktop body-small content-primary-default gap-x-2 underline",children:(0,P.jsx)(ex(),{prefetch:!1,href:"/profile/view/".concat(e.author_id||ej),children:e.full_name})},t),(0,P.jsx)("span",{className:"desktop body-small content-primary-default gap-x-2",children:tf>1&&t<tf-1&&(t===tf-2?" and":",")})]},t))})]}),(!!eM||!!eP&&!!eD)&&(0,P.jsx)("div",{children:(0,P.jsx)("p",{className:"".concat("caption-text font-bold underline cursor-pointer text-gray-L700 dark:text-indigo-200 hover:text-gray-L600 hover:dark:text-indigo-50 m-0"),onClick:()=>this.onClickShowLicenseAndAttributions(eR),children:"Show License and Attributions"})})]}),{}),tc&&(0,P.jsx)(aR,{...ek})]}),tE=(null===(j=this.props.ssrContent)||void 0===j?void 0:j.faqStatus)===tq.mH.ACTIVE&&!!(null===(I=this.props.ssrContent)||void 0===I?void 0:I.faqSet.length),tA=eW?(0,P.jsx)("div",{className:"flex w-full justify-center",children:(0,P.jsxs)("div",{className:"flex w-full max-w-6xl flex-col rounded-lg shadow-md lg:flex-row",children:[(0,P.jsx)("div",{className:"h-2 w-full shrink-0 rounded-t-md bg-indigo-500 lg:h-full lg:w-2 lg:rounded-l-md lg:rounded-t-none"}),(0,P.jsxs)("div",{className:"flex w-full flex-col justify-between rounded-b-lg border border-t-0 border-solid border-transparent bg-white p-4 dark:border-gray-D1000 dark:bg-gray-D1300 lg:flex-row lg:rounded-r-lg lg:rounded-bl-none lg:border-l-0 lg:border-t lg:py-14 lg:pl-14 lg:pr-24",children:[(0,P.jsxs)("div",{className:"flex flex-col lg:w-5/12",children:[(0,P.jsx)("p",{className:"eyebrow m-0 text-gray-L1000 dark:text-gray-L100",children:"FOR TEAMS"}),(0,P.jsx)("span",{className:"lg:!heading-three heading-six m-0 text-blue-1000 dark:text-gray-L50",children:"Interested in this course for your business or team?"})]}),(0,P.jsxs)("div",{className:"flex flex-col gap-y-5 sm:gap-y-4 lg:mr-1 lg:w-5/12",children:[(0,P.jsx)("p",{className:"lg:body-large body-medium m-0 mt-3 text-black dark:text-gray-L50 sm:mt-0",children:"Unlock this course (and 1,000+ more) for your entire org with DevPath"}),(0,P.jsx)(ex(),{href:"".concat((0,t0.qG)(),"/pricing"),target:"_blank",children:(0,P.jsx)("button",{className:"contained-primary navigation-text mx-auto h-11 w-full rounded lg:ml-0 lg:w-fit",style:{maxWidth:"256px"},onClick:()=>{(0,Q.Z)("CONTENT_HOMEPAGE","Clicked_DevpathCTA_Banner",ew.title)},children:"Train your team"})})]})]})]})}):null,tT=this.state.recommendations.loaded&&this.state.recommendations.data.higherLevelWorks.length>0||!this.state.recommendations.loaded&&(null==ei?void 0:null===(R=ei.recommendations)||void 0===R?void 0:null===(O=R.higher_level_works)||void 0===O?void 0:O.length)>0,tS=this.state.recommendations.loaded&&this.state.recommendations.data.lowerLevelWorks.length>0||!this.state.recommendations.loaded&&(null==ei?void 0:null===(M=ei.recommendations)||void 0===M?void 0:null===(D=M.lower_level_works)||void 0===D?void 0:D.length)>0,tN=(0,P.jsxs)(P.Fragment,{children:[(tS||tT)&&(0,P.jsx)("div",{className:"mx-auto my-16 w-full lg:my-20",children:(0,P.jsx)(tM.Z,{lowerLevelWorks:this.state.recommendations.data.lowerLevelWorks,higherLevelWorks:this.state.recommendations.data.higherLevelWorks,collectionTitle:ew.title,loaded:this.state.recommendations.loaded})}),!!this.state.relatedArticles.length&&(0,P.jsx)(tB.default,{content:this.state.relatedArticles,contentLoaded:this.state.relatedArticlesLoaded})]});return(0,P.jsxs)(P.Fragment,{children:[e6&&(0,P.jsx)("div",{id:aO.env.REACT_APP_STANDALONE?"selenium-course_placeholder":null,className:"w-full px-4 dark:bg-gray-D1500 sm:px-6",style:{maxWidth:"1188px"},children:(0,P.jsx)(t4,{})}),!e6&&(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("div",{className:"w-full dark:bg-gray-D1500",children:[(0,P.jsx)(aI,{collection_id:G,firstArticleLink:V,firstPreviewableArticleLink:e1,pageSummary:eQ,author:{author_id:ej,author_name:eI},authorProfileImgUrl:J,price:e$,targetAudience:eA,is_draft:eO,recommendations:eb.recommendations,recommended:eb.is_recommended_by_reader,subscribed:eb.is_reader_subscribed,widgetStats:tb,cloudLabsCount:ty,freePreviewLessonCount:e0,videoUrl:ew.intro_video_url,thumbnailUrl:ew.intro_video_thumbnail_url,coverImage:q,cover_image_serving_url:eS,tracks:null==ew?void 0:e
1w.tracks,lastVisitedURL:e4&&e3,pinned_by_reader:eb.pinned_by_reader,approvedForSale:X,takeawaySkillsExist:tu,tabsJSX:tC,notificationStatus:ee,is_mini:eL,approvalStatus:$,courseReadTime:et,certificatePrice:en,percentCompleted:tm,isModule:ea,isCollectionLoaded:Object.keys(K).length>0,course_url_slug:eN,submitCourse:this.props.submitCourse,showSubmitButton:this.props.showSubmitButton,bannerWrapperRef:this.props.bannerWrapperRef,categories:ez,collectionMetadata:eX,inGithubStudentPack:null==ew?void 0:ew.in_github_student_pack,allow_custom_styling_viewer_side:ew.allow_custom_styling_viewer_side,allow_custom_styling_editor_side:ew.allow_custom_styling_editor_side,categoriesCount:{cloudLabsCount:eY,lessonCount:eG,projectCount:eq,standAloneProjectCount:eJ,assessmentCount:eK},hasVariants:el,hasRecommendations:tT||tS,hasRelatedContent:eZ||eU,ssrContent:ei,isAIPoweredCourse:eC,setRenderCollectionFooter:this.props.setRenderCollectionFooter,publishStatus:ep,isPrivate:ev,b2cStatus:ef,collection:eh,isAdaptiveLearningMode:eB&&ew.adaptive_learning_mode,isInterviewCourse:null==eg?void 0:eg.some(e=>tJ.Cr.includes(e)),statsExist:tw,testimonialSectionReached:this.props.testimonialSectionReached}),(0,P.jsx)(tj,{courseRecommendationsJSX:tN,ForTeamsJSX:tA,renderFAQs:tE,faqSet:null===(U=this.props.ssrContent)||void 0===U?void 0:U.faqSet,CTAText:this.props.userInfo.userInfoState.loggedOut?"Start Course for Free":"Unlock Full Access",CTAHandler:this.props.userInfo.userInfoState.loggedOut?this.props.CTAHandler:()=>this.props.router.push("/unlimited"),hidePoweredByAiCTA:(0,F.YK)(null===(Z=this.props.userInfo.userInfoState)||void 0===Z?void 0:Z.data)||0===e$.price||es,onViewChange:this.props.onViewChange,collectionId:G}),(null==ew?void 0:ew.tracking_pixel_url)&&(0,P.jsx)("img",{className:"hidden",src:ew.tracking_pixel_url,alt:"Default Tracking"})]})})]})}constructor(...e){super(...e),this.state={descriptionTruncated:!0,allCollapsed:!1,recommendations:{data:{higherLevelWorks:[],lowerLevelWorks:[]},loaded:!1},relatedArticlesLoading:!1,relatedArticlesLoaded:!1,relatedArticles:[]},this.getPageCompletionStatus=e=>{let{courseCompletion:t}=this.props,n=e.toString();if(({}).hasOwnProperty.call(t,n)){let e=t[n];if(e&&e.length>1&&!isNaN(Date.parse(e)))return tF.Z.LESSON_COMPLETED}return tF.Z.LESSON_IN_PROGRESS},this.getRecommendationsWrapper=()=>{let{author_id:e,collection_id:t}=this.props;e&&t&&(0,tY.$K)("".concat(e,"_").concat(t),async()=>await this.loadRecommendations()).then(e=>{let{relatedCollections:t,relatedArticles:n}=e,a=[],i=[];Array.isArray(t)?a=t:"object"==typeof t&&({higherLevelWorks:a=[],lowerLevelWorks:i=[]}=t),this.setState({recommendations:{data:{higherLevelWorks:a,lowerLevelWorks:i},loaded:!0},relatedArticlesLoading:!1,relatedArticlesLoaded:!0,relatedArticles:n})})},this.sendEventOnRecommendedCourse=(e,t)=>this.state.recommendations.loaded&&(0,Q.Z)("RECOMMENDATIONS","VIEW_COURSE_OVERVIEW_WITH_RECOMMENDATIONS","/".concat(W.dL.COLLECTION,"/").concat(e,"/").concat(t)),this.logGoToSubscriptionPageEvent=()=>{(0,Q.Z)("SUBSCRIPTION","VIEW_SUBSCRIPTIONS_PAGE","Get Educative Unlimited")},this.handleOnClick=(e,t)=>{let{router:n}=this.props,a=this.props.userInfo.userInfoState.data||{};(0,Q.Z)("CONTENT_HOMEPAGE",t?"CLICKED_B2B_TRIAL_UPGRADE_BUTTON":e&&!a.has_availed_b2c_trial?"CLICKED_STARTFREETRIALCTA_CONTENT":"CLICKED_GETSTARTEDCTA_CONTENT","Course"),t?n.push("/pricing"):e&&!a.has_availed_b2c_trial?n.push("/trial?standard=true&ru=".concat(n.asPath)):n.push("/unlimited")},this.onClickShowMore=()=>{this.setState(e=>({descriptionTruncated:!e.descriptionTruncated}))},this.onClickShowLicenseAndAttributions=e=>this.props.dispatch(tG.n.show(tW.RB,{licensing:e}))}}let aU=(0,tV.cP)(aM);var aZ=(0,Z.withRouter)(aP(e=>{var t,n,a,i;let[o,l]=(0,B.useState)(!1),r=(0,tA.h)(e=>e.userConfig),s=(0,ec.a)("sm"),d=(0,tK.TL)(),c=(0,Z.useRouter)();return(0,P.jsx)(aU,{...e,educativeStats:null===(t=r.data)||void 0===t?void 0:t.educativeStats,b2cTrialStats:null===(n=r.data)||void 0===n?void 0:n.b2c_trial_stats,adaptiveLearningEnabled:parseInt((null===(i=r.data)||void 0===i?void 0:null===(a=i.constants)||void 0===a?void 0:a[ti.Z])||"0"),isMobileScreen:s,CTAHandler:()=>{(0,Q.Z)("COURSE_HOMEPAGE","clicked_homepage_powered_by_ai_cta","Start Course for Free",null,{page_section:"AI-Powered Learning"}),H.iw.IS_B2B?c.replace("/signup?ru=".concat(c.asPath)):d(tG.n.show(tW.kp,{ru:c.asPath,source:to.J.COURSE_HOMEPAGE}))},testimonialSectionReached:o,onViewChange:(e,t)=>
1{var n,a;let i=window.scrollY>=(null==t?void 0:null===(n=t.current)||void 0===n?void 0:n.offsetTop)+(null==t?void 0:null===(a=t.current)||void 0===a?void 0:a.offsetHeight);l(e||i)}})})),aB=n(813765),az=n(659172),aH=()=>(0,P.jsx)("div",{className:"relative mt-auto flex w-full",children:(0,P.jsx)("div",{className:"flex w-full flex-col justify-center bg-indigo-1200 px-4 py-10 dark:bg-indigo-1100 lg:px-6",children:(0,P.jsxs)("div",{className:"flex w-full flex-col items-start justify-between self-center",style:{maxWidth:"1140px"},children:[(0,P.jsx)("div",{className:"flex w-full flex-col justify-between",children:(0,P.jsx)("div",{className:"h-7 w-32 animate-pulse rounded-sm bg-gray-L200 dark:bg-gray-D1100"})}),(0,P.jsx)("div",{className:"w-full self-center",children:(0,P.jsx)("div",{color:"border-gray-L50 dark:border-gray-D300 h-0 w-full"})}),(0,P.jsx)("div",{className:"grid w-full grid-cols-2 content-center gap-x-[calc(50%-75px)] overflow-hidden sm:grid-cols-3 sm:gap-x-[calc(33.3%-90px)] lg:grid-cols-4 lg:gap-x-[calc(25%-176px)]",children:[1,2,3,4,5,6,7].map(e=>(0,P.jsxs)("div",{className:"mt-12 max-w-[186px] sm:max-w-[156px] lg:max-w-[186px]",children:[(0,P.jsx)("div",{className:"mb-4 h-5 w-10 animate-pulse rounded-sm bg-gray-L200 dark:bg-gray-D1100",style:{letterSpacing:"2.5px"}}),[1,2,3].map(e=>(0,P.jsx)("div",{className:"flex",children:(0,P.jsx)("div",{className:"mb-4 h-5 w-20 animate-pulse rounded-sm bg-gray-L200 dark:bg-gray-D1100"})},e))]},e))}),(0,P.jsx)("div",{className:"mt-6 flex h-0.5 w-full self-center bg-gray-L700"}),(0,P.jsxs)("div",{className:"mb-4 mt-10 flex w-full flex-col items-center justify-center self-center sm:mt-4 lg:mb-14 lg:flex-row lg:items-start lg:justify-between",style:{maxWidth:"1140px"},children:[(0,P.jsx)("div",{className:"ml-4 mt-4 flex items-center justify-start lg:ml-0",children:[1,2,3,4,5].map(e=>(0,P.jsx)("div",{className:"ml-4 h-5 w-5 animate-pulse rounded-sm bg-gray-L200 dark:bg-gray-D1100"},e))}),(0,P.jsx)("div",{className:"-mt-2 flex flex-col-reverse items-center bg-gray-L200 text-left dark:bg-gray-D1100 lg:mt-0 lg:flex-row"})]})]})})}),aF=n(476640),aW=n(250198),aV=n(470438),aG=n(985839),aK=n(351061),aq=n(349196),aY=n(640097),aJ=n(634888),aX=n(244305),aQ=n(286889),a$=n(946598),a0=n(219808),a1=n(468045);let a2=U()(()=>n.e(878165).then(n.bind(n,653794)),{loadableGenerated:{webpack:()=>[653794]}}),a5=U()(()=>n.e(368294).then(n.bind(n,246273)),{loadableGenerated:{webpack:()=>[246273]},loading:()=>(0,P.jsx)(aH,{})}),a4=U()(()=>n.e(15398).then(n.bind(n,272653)),{loadableGenerated:{webpack:()=>[272653]},ssr:!1}),a3=U()(()=>Promise.all([n.e(855310),n.e(807914)]).then(n.bind(n,694022)),{loadableGenerated:{webpack:()=>[694022]}}),a6=(0,z.$j)(e=>{var t,n;return{lessonsCommentCount:null===(n=e.comments)||void 0===n?void 0:null===(t=n.parentCommentCount)||void 0===t?void 0:t.data}});class a9 extends B.Component{redirectOnExternal(){var e;let{author_id:t,collection_id:n,router:a,ssrContent:i,collection:o}=this.props,l=null===(e=(null==i?void 0:i.instance)||(null==o?void 0:o.instance))||void 0===e?void 0:e.details.collection_type;if(!(0,tJ.VF)(l))return;let{pageId:r,pageType:s}=(0,tJ.vJ)(l,(null==i?void 0:i.instance)||(null==o?void 0:o.instance));a.replace("/collection/page/".concat(t,"/").concat(n,"/").concat(r,"/").concat(s))}componentDidMount(){var e,t,n;let{author_id:a,collection_id:i}=this.props,o="".concat(a,"_").concat(i);this.redirectOnExternal(),"undefined"!=typeof fbq&&fbq("track","ViewContent",{content_type:"product",content_ids:[o]}),window.addEventListener("keydown",this.keydownHandler,!0),(null===(n=this.props.userGamificationContext.value.data)||void 0===n?void 0:null===(t=n.userGamification)||void 0===t?void 0:null===(e=t.userStreak)||void 0===e?void 0:e.streakIncremented)&&this.setState({showStreakToast:!0})}componentDidUpdate(e){var t,n,a,i,o,l,r,s,d,c,u,h,p,v,m,g,_,f,x,b,y,w,C,E;let A;let{author_id:T,collection_id:S,collection:N,router:L,userInfoState:k,ssrContent:j,enablePALBanner:I,canShowAIMockInterviewBanner:O=!1}=this.props,R=k.data||{};this.redirectOnExternal();let M=null==N?void 0:null===(n=N.instance)||void 0===n?void 0:null===(t=n.details)||void 0===t?void 0:t.collection_type,{approvalStatus:U,isDraftActive:Z}=this.getCourseStatus(),B=(null==N?void 0:null===(i=N.instance)||void 0===i?void 0:null===(a=i.details)||void 0===a?void 0:a.title)||"";
1(null==R?void 0:R.user_id)&&Object.keys(N).length&&((null===(l=e.collection.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.page_count)!==(null===(s=N.instance)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:r.page_count)||(null===(d=e.userInfoState.data)||void 0===d?void 0:d.user_id)!==(null==R?void 0:R.user_id)||(E=e.collection,A=!1,Object.keys(N).forEach(e=>{"notification_status"!==e&&E["".concat(e)]!==N["".concat(e)]&&(A=!0)}),A))&&M!==W.dL.SKILL_ASSESSMENT&&this.props.dispatch((0,J.Os)(this.props));let z=null!=N?N:{},H=null!==(x=e.collection)&&void 0!==x?x:{};if(!this.isEmpty(z)&&this.isEmpty(H)&&!(null==j?void 0:j.author)){let e=null==z?void 0:null===(y=z.instance)||void 0===y?void 0:null===(b=y.details)||void 0===b?void 0:b.ref_author_id;this.props.authorProfileActions.load(String(e||T)),(U===W.Lc.APPROVED||U===W.Lc.APPROVED_FOR_EARLY_ACCESS)&&(0,a$.x)(R,aV.Z.VISIT_COURSE,B)}let{showBanner:V,showGithubBanner:q,showAccessBanner:Y,showAIMockInterviewBanner:X,showPALBanner:Q}=this.state,{dispatch:ee}=this.props,et={showBanner:V,showCross:!0,hideBanner:()=>{this.props.bannerActions.hide(D.ZP.SUBMIT_COURSE),this.setState({showBanner:!1})},submitCourse:this.submitCourse,dispatch:ee,content:(0,el.Z)({approvalStatus:U,isDraftActive:Z,submitCourse:this.submitCourse,dispatch:ee})};this.shouldDisplayBanner()&&V&&(this.props.bannerActions.show(D.ZP.SUBMIT_COURSE,et),this.setState({showBanner:!1}));let en=K.includes(S)&&T===G,ea=I&&en,er={showBanner:Q,showCross:!0,scaleCrossOnHover:!1,color:"bg-teal-700",crossIconClasses:"h-6 w-6 bg-white text-teal-25 rounded-2xl bg-teal-700",hiddenOnMobile:!1,bannerTopBottomPadding:"py-2",hideBanner:()=>{this.props.bannerActions.hide(D.ZP.PAL_BANNER),this.setState({showPALBanner:!1})},content:(0,P.jsx)(eo.Z,{courseTitle:B}),isOverlay:!1};ea&&Q&&(this.props.bannerActions.show(D.ZP.PAL_BANNER,er),this.setState({showPALBanner:!1}));let es=!!(null==R?void 0:null===(c=R.email)||void 0===c?void 0:c.endsWith("@educative.io"))||this.props.enableAIMockInterviewsStandard||this.props.isPremiumPlusUser&&this.props.enableAIMockInterviewsPremiumPlus,ed={showBanner:X&&!ea,showCross:!0,scaleCrossOnHover:!1,color:"bg-indigo-50 dark:bg-gray-D1200",crossIconClasses:"h-6 w-6 bg-white text-indigo-400 rounded-2xl dark:bg-gray-D1000 dark:text-indigo-200",hiddenOnMobile:!0,bannerTopBottomPadding:"py-2",hideBanner:()=>{this.props.bannerActions.hide(D.ZP.AI_MOCK_INTERVIEW_BANNER),this.setState({showAIMockInterviewBanner:!1})},content:(0,P.jsx)(ei,{courseTitle:B}),isOverlay:!1},ec=null==N?void 0:null===(h=N.instance)||void 0===h?void 0:null===(u=h.details)||void 0===u?void 0:u.learner_tags,eu=null==ec?void 0:ec.some(e=>tJ.Cr.includes(e));es&&eu&&X&&O&&(this.props.bannerActions.show(D.ZP.AI_MOCK_INTERVIEW_BANNER,ed),this.setState({showAIMockInterviewBanner:!1}));let eh={showBanner:Y,showCross:!0,color:"bg-red-500",removeLeftMargin:!0,hideBanner:()=>{this.props.bannerActions.hide(D.ZP.ACCESS_EXPIRY_BANNER),this.props.bannerActions.setBannerHeight(0),a0.LS("".concat(this.props.author_id,"_").concat(this.props.collection_id),"true"),this.setState({showAccessBanner:!1})},content:(0,P.jsx)($,{expiryDate:(0,nU.ZP)(new Date((null==N?void 0:N.course_expiration_date)||"3/1/2024"),"DD MMMM YYYY"),authorId:this.props.author_id,collectionId:this.props.collection_id}),isOverlay:!0};this.shouldDisplayAccessExpiryBanner()&&Y&&(this.props.bannerActions.show(D.ZP.ACCESS_EXPIRY_BANNER,eh),this.props.bannerActions.setBannerHeight(56),this.setState({showAccessBanner:!1}));let ep=null==N?void 0:null===(v=N.instance)||void 0===v?void 0:null===(p=v.details)||void 0===p?void 0:p.in_github_student_pack,ev=(0,F.T9)(R),em={showBanner:q,hideBanner:()=>{this.props.bannerActions.hide(D.ZP.GITHUB_STATUS_BANNER),this.setState({showGithubBanner:!1})},dispatch:ee,content:(0,aJ.ZP)(W.dL.COLLECTION,L)};if(!ep&&q&&ev&&Object.keys(N).length&&(this.props.bannerActions.show(D.ZP.GITHUB_STATUS_BANNER,em),this.setState({showGithubBanner:!1})),this.props.is_draft&&Object.keys(N).length&&(null===(g=e.collection.instance)||void 0===g?void 0:null===(m=g.details)||void 0===m?void 0:m.page_count)!==(null===(f=N.instance)||void 0===f?void 0:null===(_=f.details)||void 0===_?void 0:_.page_count)){let e=null===(C=this.props.collection.instance)||void 0===C?void 0:null===(w=C.details)||void 0===w?void 0:w.page_keys;e&&this.props.dispatch(aY.X8.load(Object.values(e)))}}componentWillUnmount(){window.removeEventListener("keydown",this.keydownHandler,!0),this.props.bannerActions.hide(D.ZP.SUBMIT_COURSE),this.props.bannerActions.hide(D.ZP.GITHUB_STATUS_BANNER),this.props.bannerActions.hide(D.ZP.DEPRECATED_CONTENT_BANNER),this.props.bannerActions.hide(D.ZP.ACCESS_EXPIRY_BANNER),this.props.bannerActions.hide(D.ZP.AI_MOCK_INTERVIEW_BANNER),this.props.bannerActions.hide(D.ZP.PAL_BANNER),this.props.authorConceptsClear(),this.props.dispatch(aY.X8.clear())}getTestimonials(){var e;let{collection:t,ssrContent:n}=this.props,a=(null==t?void 0:t.instance)||(null==n?void 0:n.instance),i=null!==(e=null==a?void 0:a.details)&&void 0!==e?e:{};return(null==i?void 0:i.testimonials)||[]}getCourseStatus(){var e,t;let{collection:n}=this.props,{is_draft_active:a,instance:i}=null!=n?n:{},o=null==i?void 0:null===(e=i.details)||void 0===e?void 0:e.approved_for_sale;return{approvalStatus:null==i?void 0:null===(t=i.details)||void 0===t?void 0:t.approval_status,approvedForSale:o,isDraftActive:a}}render(){var e,t,n,a,i,o,l,r;let{authorProfile:s,collection:d,cover_image:c,searchString:u,author_id:h,authorName:p,collection_id:v,is_draft:m,contentLoaded:g,authorProfileImgUrl:_,authorShortBio:f,approvalStatus:x,notificationStatus:b=null==d?void 0:d.notification_status,courseReadTime:y,router:w,ssrContent:C,userInfoState:E,meta:A,adaptiveLearningConfigConstantSSR:T}=this.props,S=E.data||{}
1,N=Number(S.user_id)===Number(h),L=!!(null===(e=S.email)||void 0===e?void 0:e.endsWith("educative.io"));if((null==A?void 0:A.noIndex)&&!(null==A?void 0:A.isForcedNoIndex)&&(E.loaded||E.loggedOut)&&!(L||N))return(0,P.jsx)(a3,{});let k=null==d?void 0:d.certificate_price,j=this.getTestimonials(),I="CourseCompletion_".concat(h,"_").concat(v),O=null!==(r=this.props.courseCompletion&&Object.keys(this.props.courseCompletion).length&&this.props.courseCompletion[I])&&void 0!==r?r:this.setFakeLessons(),{approvedForSale:R}=this.getCourseStatus(),D=(0,ax.Z)(w.asPath)===W.dL.MODULE,M=null===(n=d||C)||void 0===n?void 0:null===(t=n.instance)||void 0===t?void 0:t.details.work_mode;return(0,aJ.Wc)(this.props),(0,P.jsxs)("div",{className:"relative flex w-full min-w-full flex-col items-center bg-white dark:bg-gray-D1500",style:{flex:"1 0 auto"},children:[this.state.showStreakToast&&(0,P.jsx)(a4,{toastType:aW.rS.CURRENT_LESSON,onClose:()=>{this.setState({showStreakToast:!1})}}),m&&!this.props.disableEdit&&M===Y.M.EDIT&&(0,P.jsx)(a2,{buttons:this.getButtonsMeta()}),(0,P.jsx)(aZ,{ssrContent:C,adaptiveLearningConfigConstantSSR:T,collection:d,collection_id:v,is_draft:m,author_id:h,authorProfile:s,authorProfileImgUrl:_||(null==C?void 0:null===(a=C.author)||void 0===a?void 0:a.profileImage)||"",authorName:null!=p?p:null==C?void 0:null===(i=C.author)||void 0===i?void 0:i.authorName,authorShortBio:f,searchString:u,testimonials:j,coverImage:c,contentLoaded:g,courseCompletion:O,approvedForSale:R,approvalStatus:x,notificationStatus:b,courseReadTime:y,certificatePrice:k,lessonsCommentCount:this.props.lessonsCommentCount,isModule:D,submitCourse:this.submitCourse,showSubmitButton:this.state.showSubmitButton,bannerWrapperRef:this.detailsWrapperRef,hasVariants:null==C?void 0:null===(l=C.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.has_variants,renderCollectionFooter:this.state.showCollectionFooter,setRenderCollectionFooter:()=>!this.state.showCollectionFooter&&this.setState({showCollectionFooter:!0}),isB2BDomain:H.iw.IS_B2B,enableCourseHomepageBlade:null==C?void 0:C.enableCourseHomepageBlade}),(0,P.jsx)("div",{className:"tailwind-hidden fixed bottom-12 right-0 z-20  mb-8 mr-0 flex-col gap-y-4 rounded-none border border-r-0 border-solid border-gray-L400 bg-gray-L50 dark:bg-gray-D1300 sm:bottom-0 sm:mr-6 sm:flex sm:rounded-full sm:border-none sm:bg-transparent",children:(0,P.jsx)(aB.default,{authorId:+h,collectionId:+v,type:q.B.COURSE_HOMEPAGE,hideMenu:this.props.isMobile})}),(0,P.jsx)("div",{className:"w-full",id:"footer",children:this.state.showCollectionFooter?(0,P.jsx)(a5,{noTopPadding:!0}):(0,P.jsx)(aH,{})})]})}constructor(...e){super(...e),this.state={showBanner:!0,showGithubBanner:!0,showSubmitButton:!0,showStreakToast:!1,showCollectionFooter:!1,showAccessBanner:!0,showAIMockInterviewBanner:!0,showPALBanner:!0},this.isEmpty=e=>!Object.keys(e).length,this.detailsWrapperRef=B.createRef(),this.keydownHandler=e=>{if(!this.props.is_draft)return;let t=e.metaKey,n=e.ctrlKey,a="e"===e.key;(t||n)&&a&&!e.shiftKey&&(e.preventDefault(),this.goToEdit())},this.goToEdit=()=>{var e,t;return this.props.router.push("/".concat((null===(t=this.props.collection)||void 0===t?void 0:null===(e=t.instance)||void 0===e?void 0:e.details.work_type)||W.dL.COLLECTION,"editor/").concat(this.props.author_id,"/").concat(this.props.collection_id))},this.getButtonsMeta=()=>{var e,t;return(null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.test_lab)?[]:[{children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"tailwind-hidden uppercase sm:inline",children:"Edit"}),(0,P.jsx)(aF.Z,{className:"h-5 w-5 flex-shrink-0 sm:hidden"})]}),disabled:this.props.contentLoading,onClick:this.goToEdit,type:az.D.PRIMARY}]},this.setFakeLessons=()=>{let{collection:e}=this.props;if(Object.keys(e).length){var t,n;let a=null===(n=e.instance)||void 0===n?void 0:null===(t=n.details)||void 0===t?void 0:t.page_titles;if(a)return Object.keys(a).reduce((e,t)=>({...e,[t]:null}),{})}return{}},this.shouldDisplayBanner=()=>{let{is_draft:e,collection:t,author_id:n,router:a,userInfoState:i}=this.props,o=i.data||{},l=(0,ax.Z)(a.asPath)===W.dL.MODULE;return o.user_id&&!e&&Object.keys(t).length&&Number(n)===o.user_id&&!l},this.shouldDisplayAccessExpiryBanner=()=>{var e,t,n;let{router:a,collection:i,author_id:o,collection_id:l}=this.props,r="".concat(o,"_").concat(l);return!!(Object.keys(i).length&&i.show_banner_on_PZDNP_course&&!a0.rV(r)&&o&&l&&((null===(e=i.instance)||void 0===e?void 0:e.details.collection_id)===a.query.collectionId&&(null===(t=i.instance)||void 0===t?void 0:t.details.author_id)===a.query.authorId||(null===(n=i.instance)||void 0===n?void 0:n.details.url_slug)===a.query.course_url_slug))},this.submitCourse=e=>{let{author_id:t,collection_id:n}=this.props;return(0,X.u)({message:e||"Submitted course for Review"},t,n).then(()=>{this.setState({showBanner:!1}),this.setState({showSubmitButton:!1}),this.props.bannerActions.hide(D.ZP.SUBMIT_COURSE)})}}}var a8=(0,aG.Z)({isCourseHomepage:!0})((0,Z.withRouter)(a6(e=>{var t,n,a,i;let{userInfoState:o}=(0,tV.su)(),l=B.useContext(aq.UserGamificationContext),r=(0,an.x0)(),s=(0,aK.lA)(),d=(0,aK.PZ)(),c=(0,aX.W)(),u=(0,tA.h)(e=>e.userConfig),h=null===(n=(0,aQ.Z)().data)||void 0===n?void 0:null===(t=n.subscription_feature_type)||void 0===t?void 0:t.is_premium_plus_user,{data:p}=(0,ab.G)(),v=(0,ec.a)("sm"),m=(0,af.q6)(),g=null==m?void 0:m.notification_status,_=!1===d.loading&&!0===d.loaded,f=_?d.data:null,x=_?d.data.full_name:null,b=_?d.data.profile_image_serving_url:"",y=_?d.data.short_bio:"",w=JSON.parse((null===(i=u.data)||void 0===i?void 0:null===(a=i.constants)||void 0===a?void 0:a.enable_ai_mock_interviews)||"{}"),C=(0,a1.gx)(w.standard),E=(0,a1.gx)(w.premium_plus),A=(0,eF.P)(V.Z),T=(0,eF.P)("can_show_ai_mock_interview_banner",!0);return(0,P.jsx)(a9,{...e,isPremiumPlusUser:h,userInfoState:o,userGamificationContext:l,bannerActions:r,authorProfileActions:s,notification_status:g,authorProfile:f,authorName:x,authorProfileImgUrl:b,authorShortBio:y,isB2BDomain:H.iw.IS_B2B,authorConceptsClear:c.clear,courseCompletion:p,enableAIMockInterviewsStandard:C,enableAIMockInterviewsPremiumPlus:E,isMobile:v,enablePALBanner:A,canShowAIMockInterviewBanner:T})})))},985839:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});
1var a=n(931549),i=n(503346),o=n(44194),l=n(930286),r=n(373516),s=n(336449),d=n(520649),c=n(32144),u=n(254264),h=n(881762);let p=(e,t,n)=>(0,h.Z)({url:"/api/author/".concat(e,"/collection/").concat(t,"/get-assessment-pages"),type:"POST",data:n});var v=n(399887),m=n(72281),g=n(351061),_=n(300883),f=n(958412),x=n(989648),b=n(172363),y=n(395124),w=n(115172),C=n(403915),E=n(493415),A=n(273650);let T=e=>{let t=e.split("/");return t[1]===d.dL.MODULE&&"preview"===t[t.length-1]},S=(0,r.$j)(null,e=>({dispatch:e}));var N=e=>t=>{class n extends o.Component{componentDidMount(){this.loadCollection(null==e?void 0:e.isCourseHomepage)}componentWillUnmount(){var e,t;let{collection:n,dispatch:a}=this.props,i=(null==n?void 0:null===(e=n.instance)||void 0===e?void 0:e.details.work_type)===d.dL.PATH,o=null==n?void 0:null===(t=n.instance)||void 0===t?void 0:t.details.is_private;this.setLoaderStateDispatch({isLoading:!1,isLoaded:!1,isError:!1}),i&&!o&&a(w.W.clear())}prepareCollectionCover(e){var t,n,a,i,o,l,r,s,d,c,u;let h=null==e?void 0:null===(n=e.instance)||void 0===n?void 0:null===(t=n.details)||void 0===t?void 0:t.author_id,p=null==e?void 0:null===(i=e.instance)||void 0===i?void 0:null===(a=i.details)||void 0===a?void 0:a.collection_id,v=null==e?void 0:null===(l=e.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.cover_image_id;if(!v)return{};let m=(null===(r=this.state)||void 0===r?void 0:r.is_draft_page)?"/api/author/".concat(h,"/collection/").concat(p,"/image/").concat(v):"/api/collection/".concat(h,"/").concat(p,"/image/").concat(v);return{updated:!1,image_id:v,image:m,metadata:(null==e?void 0:null===(d=e.instance)||void 0===d?void 0:null===(s=d.details)||void 0===s?void 0:s.cover_image_metadata)?JSON.parse(null==e?void 0:null===(u=e.instance)||void 0===u?void 0:null===(c=u.details)||void 0===c?void 0:c.cover_image_metadata):void 0}}render(){var e,n,i,o,l,r,s,d,c,u,h,p,m,g,_,f,x,b,y,w,C,E,A,S,N,L,k,j,I,O,R,P,D,M,U,Z,B,z,H,F,W,V,G,K,q,Y,J,X,Q,$,ee,et,en,ea,ei,eo,el,er,es,ed,ec,eu,eh,ep,ev,em,eg,e_,ef;let{collection:ex,dispatch:eb,searchString:ey,profile:ew,dockerDetails:eC,certificatePrice:eE,ssrContent:eA,showEducativeBanner:eT,hideEducativeBanner:eS,router:eN,meta:eL,adaptiveLearningConfigConstantSSR:ek,resolvedPath:ej}=this.props,eI=this.props.loaderState,eO=eI.isLoading,eR=eI.isLoaded,eP=this.props.userInfo.userInfoState.data,eD=Object.keys((null==ex?void 0:null===(e=ex.instance)||void 0===e?void 0:e.details)||{}).length?ex:eA,eM=null!==(ev=null==eD?void 0:null===(i=eD.instance)||void 0===i?void 0:null===(n=i.details)||void 0===n?void 0:n.author_id)&&void 0!==ev?ev:null==eA?void 0:null===(l=eA.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.author_id,eU=null!==(em=null==eD?void 0:null===(s=eD.instance)||void 0===s?void 0:null===(r=s.details)||void 0===r?void 0:r.collection_id)&&void 0!==em?em:null==eA?void 0:null===(c=eA.instance)||void 0===c?void 0:null===(d=c.details)||void 0===d?void 0:d.collection_id,eZ=null==eD?void 0:null===(h=eD.instance)||void 0===h?void 0:null===(u=h.details)||void 0===u?void 0:u.collaboration_mode,{cover_image:eB,is_draft_page:ez,assessmentPagesMap:eH}=this.state,eF=eD&&(null==eD?void 0:null===(m=eD.instance)||void 0===m?void 0:null===(p=m.details)||void 0===p?void 0:p.CodeThemes)?{Code:null==eD?void 0:null===(f=eD.instance)||void 0===f?void 0:null===(_=f.details)||void 0===_?void 0:null===(g=_.CodeThemes)||void 0===g?void 0:g.Code,Markdown:null==eD?void 0:null===(y=eD.instance)||void 0===y?void 0:null===(b=y.details)||void 0===b?void 0:null===(x=b.CodeThemes)||void 0===x?void 0:x.Markdown,RunJS:null==eD?void 0:null===(E=eD.instance)||void 0===E?void 0:null===(C=E.details)||void 0===C?void 0:null===(w=C.CodeThemes)||void 0===w?void 0:w.RunJS,SPA:null==eD?void 0:null===(N=eD.instance)||void 0===N?void 0:null===(S=N.details)||void 0===S?void 0:null===(A=S.CodeThemes)||void 0===A?void 0:A.SPA,isForced:null!==(eg=null==eD?void 0:null===(j=eD.instance)||void 0===j?void 0:null===(k=j.details)||void 0===k?void 0:null===(L=k.CodeThemes)||void 0===L?void 0:L.isForced)&&void 0!==eg?eg:v.Z}:{},eW=eD&&(null==eD?void 0:null===(O=eD.instance)||void 0===O?void 0:null===(I=O.details)||void 0===I?void 0:I.code_exec_resource_metadata)?{file_id:null==eD?void 0:null===(D=eD.instance)||void 0===D?void 0:null===(P=D.details)||void 0===P?void 0:null===(R=P.code_exec_resource_metadata)||void 0===R?void 0:R.file_id,file_name:null==eD?void 0:null===(Z=eD.instance)||void 0===Z?void 0:null===(U=Z.details)||void 0===U?void 0:null===(M=U.co
1de_exec_resource_metadata)||void 0===M?void 0:M.file_name,file_size:null==eD?void 0:null===(H=eD.instance)||void 0===H?void 0:null===(z=H.details)||void 0===z?void 0:null===(B=z.code_exec_resource_metadata)||void 0===B?void 0:B.file_size,updated:null==eD?void 0:null===(V=eD.instance)||void 0===V?void 0:null===(W=V.details)||void 0===W?void 0:null===(F=W.code_exec_resource_metadata)||void 0===F?void 0:F.updated,upload_url:null==eD?void 0:null===(q=eD.instance)||void 0===q?void 0:null===(K=q.details)||void 0===K?void 0:null===(G=K.code_exec_resource_metadata)||void 0===G?void 0:G.upload_url,upload_success_url:null==eD?void 0:null===(X=eD.instance)||void 0===X?void 0:null===(J=X.details)||void 0===J?void 0:null===(Y=J.code_exec_resource_metadata)||void 0===Y?void 0:Y.upload_success_url,gcs_object_name:null==eD?void 0:null===(ee=eD.instance)||void 0===ee?void 0:null===($=ee.details)||void 0===$?void 0:null===(Q=$.code_exec_resource_metadata)||void 0===Q?void 0:Q.gcs_object_name,uploadStatus:null==eD?void 0:null===(ea=eD.instance)||void 0===ea?void 0:null===(en=ea.details)||void 0===en?void 0:null===(et=en.code_exec_resource_metadata)||void 0===et?void 0:et.uploadStatus}:{},eV=null==eD?void 0:null===(eo=eD.instance)||void 0===eo?void 0:null===(ei=eo.details)||void 0===ei?void 0:ei.approval_status,eG=null==eD?void 0:null===(er=eD.instance)||void 0===er?void 0:null===(el=er.details)||void 0===el?void 0:el.work_type,eK=(null!==(e_=null==eD?void 0:null===(ed=eD.instance)||void 0===ed?void 0:null===(es=ed.details)||void 0===es?void 0:es.read_time)&&void 0!==e_?e_:null==eA?void 0:null===(eu=eA.instance)||void 0===eu?void 0:null===(ec=eu.details)||void 0===ec?void 0:ec.read_time)||0,eq={collection:ex,author_id:eM,collection_id:eU,courseUrlSlug:null!==(ef=null==eD?void 0:null===(eh=eD.instance)||void 0===eh?void 0:eh.details.url_slug)&&void 0!==ef?ef:null==eA?void 0:null===(ep=eA.instance)||void 0===ep?void 0:ep.details.url_slug,dispatch:eb,userInfo:eP,searchString:ey,cover_image:eB,codeExecResourceFile:eW,contentLoaded:eR,contentLoading:eO,CodeThemes:eF,profile:ew,dockerDetails:eC,disableEdit:"review"===eZ,approvalStatus:eV,collectionType:eG,courseReadTime:eK,assessmentPagesMap:eH,certificatePrice:eE,showSideBar:this.props.showSideBar,ssrContent:eA,isModulePreview:T(ej||eN.asPath),showEducativeBanner:eT,hideEducativeBanner:eS,adaptiveLearningConfigConstantSSR:ek,isPrivateContent:this.props.isPrivateContent,meta:eL,notificationStatus:null==ex?void 0:ex.notification_status};return(0,a.jsx)(t,{is_draft:ez,...eq})}constructor(...t){var n;super(...t),n=this,this.state={cover_image:this.props.ssrContent?this.prepareCollectionCover(this.props.ssrContent):{},assessmentPagesMap:null,is_draft_page:void 0!==(null==e?void 0:e.isDraft)?null==e?void 0:e.isDraft:!this.props.router.asPath.endsWith("/view")&&(this.props.router.asPath.endsWith("/preview")||this.props.router.asPath.split("?")[0].endsWith("/draft")),isModuleOrPathPage:[d.dL.MODULE,d.dL.PATH].includes((0,E.Z)(this.props.resolvedPath||this.props.router.asPath))},this.setNotFound=e=>{this.props.setNotFound(e)},this.setLoaderStateDispatch=e=>{this.props.setLoaderStateDispatch(e)},this.componentDidUpdate=t=>{var n,a,i,o,l;let{dispatch:r,collection:s,router:{query:d}}=this.props,{collection_id:c,course_url_slug:h}=d;(c!==t.router.query.collection_id||h!==t.router.query.course_url_slug)&&r((0,u.l)(this.setLoaderStateDispatch,this.props.collectionActions)),this.loadCollection(null==e?void 0:e.isCourseHomepage),Object.keys(this.state.cover_image).length||(Object.keys(s).length||!Object.keys(t.collection).length)&&(null===(i=t.collection)||void 0===i?void 0:null===(a=i.instance)||void 0===a?void 0:null===(n=a.details)||void 0===n?void 0:n.cover_image_id)===(null==s?void 0:null===(l=s.instance)||void 0===l?void 0:null===(o=l.details)||void 0===o?void 0:o.cover_image_id)||this.setState({cover_image:this.prepareCollectionCover(s)})},this.loadCollection=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{is_draft_page:i,isModuleOrPathPage:o}
1=n.state,{collection:l,router:r,ssrContent:d,collectionActions:u,resolvedPath:h}=n.props,{author_id:v,collection_id:m,course_url_slug:g,path_author_id:_,path_id:f}=r.query,{asPath:x}=r,b=n.props.loaderState,y=b.isLoading,w=b.isError,C=0===Object.keys(l).length,E=!Object.keys((null==d?void 0:null===(e=d.instance)||void 0===e?void 0:e.details)||{}).length,A=1===Object.keys(l).length&&l.instance;!y&&C&&!w&&(C||A)&&(v||m||g)&&(n.props.userLoggedInCookie||(null===(t=n.props.userInfo.userInfoState.data)||void 0===t?void 0:t.user_id)||E||!a)&&n.props.dispatch((0,c._)({userInfoState:n.props.userInfo.userInfoState,params:{author_id:v,collection_id:m,course_url_slug:g,path_author_id:_,path_id:f,is_draft_page:i,skipLiveInstanceFetch:!i},router:r,collectionActions:u,ignoreLoadingState:o,isModulePreview:T(h||x),disableAllRedirections:n.props.disableAllRedirections,setLoaderStateDispatch:n.setLoaderStateDispatch,setNotFound:n.setNotFound})).then(()=>{var e,t,a,i,o,l,r,d,c,u,h,v,m,g,_,f,x,b;let y=null===(i=n.props.collection)||void 0===i?void 0:null===(a=i.instance)||void 0===a?void 0:null===(t=a.details)||void 0===t?void 0:null===(e=t.pages_with_dangling_concepts)||void 0===e?void 0:e.map(e=>e.page_id);if(null==y?void 0:y.length){let e=null===(d=n.props.collection)||void 0===d?void 0:null===(r=d.instance)||void 0===r?void 0:null===(l=r.details)||void 0===l?void 0:null===(o=l.toc)||void 0===o?void 0:o.categories.filter(e=>e.type===s.j.ASSESSMENT).map(e=>e.id),t=null===(v=n.props.collection)||void 0===v?void 0:null===(h=v.instance)||void 0===h?void 0:null===(u=h.details)||void 0===u?void 0:null===(c=u.toc)||void 0===c?void 0:c.categories.filter(e=>e.type===s.j.COLLECTION_CATEGORY).flatMap(e=>e.pages.map(e=>e.page_id)),a=new Set(e),i=new Set(t);[...y].filter(e=>!a.has(String(e))&&!i.has(e)).length&&p(null===(_=n.props.collection)||void 0===_?void 0:null===(g=_.instance)||void 0===g?void 0:null===(m=g.details)||void 0===m?void 0:m.author_id,null===(b=n.props.collection)||void 0===b?void 0:null===(x=b.instance)||void 0===x?void 0:null===(f=x.details)||void 0===f?void 0:f.collection_id,{assessment_ids:JSON.stringify(e)}).then(e=>{n.setState({assessmentPagesMap:JSON.parse(e)})}).catch(e=>{})}})}}}n.defaultProps={params:{},showSideBar:!1,disableAllRedirections:!1,isPrivateContent:!1};let r=(0,y.cP)(n);return(0,i.withRouter)(S(e=>{let t=(0,b.Rx)().searchString,n=(0,m._P)(),i=(0,m.sX)().set,o=(0,_.x0)(),[s]=(0,l.Z)([C.w.LOGGED_IN]),d=(0,f.ZP)().setNotFound,c=(0,m.q6)(),u=(0,g.PZ)(),h=(0,m.Ed)(),p=(0,A.Z)(),v=(0,x.Z)(),y=void 0!==s.logged_in||void 0!==s.logged_in2,w={...e,loaderState:n,setLoaderStateDispatch:i,searchString:t,showEducativeBanner:o.show,hideEducativeBanner:o.hide,userLoggedInCookie:y,setNotFound:d,collection:c,profile:u,collectionActions:h,dockerDetails:p,resolvedPath:v};return(0,a.jsx)(r,{...w})}))}},489419:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});let a=e=>{if(!e||e.length<=38)return[e||""];let t=e.split(" "),n=Math.floor(e.length/2),a=[""],i=0;return t.forEach(e=>{i+e.length<n&&(a.push(e),i+=e.length)}),[a.join(" "),t.slice(a.length-1).join(" ")]}},578609:function(e,t,n){"use strict";n.d(t,{Y0:function(){return o},NS:function(){return E},yM:function(){return T},JZ:function(){return S},ru:function(){return w},Aw:function(){return C.A}});var a,i,o,l=n(931549),r=n(44194),s=n(957117),d=n(791127),c=n(629099),u=n(410359),h=n(436139);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var v=function(e){return r.createElement("svg",p({width:12,height:14,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 .3H2C1.3.3.7 1 .7 1.7v10.6c0 .8.6 1.4 1.3 1.4h8c.7 0 1.3-.6 1.3-1.4V1.7c0-.8-.6-1.4-1.3-1.4zM4 1.7h1.3V5l-.6-.5L4 5V1.7zM2 12.3h8V1.7H6.7v6l-2-1.5-2 1.5v-6H2v10.6z"})))},m=n(704165),g=n(652959),_=n(166211),f=n(720572),x=n(575536),b=n(477494),y=n(431319);let w=(e,t,n)=>{let{userInfo:a,loggedOut:i}=e,{has_user_any_expired_sub:o,has_user_any_email_subscription:l}=n||{},r=null==a?void 0:a.has_email_subscription;return!i&&!(0,y.YK)(a)&&t&&!((0,y.E6)(a)||l||r||o||(null==a?void 0:a.github_user)||(0,y.gA)(a)||
1(0,y.$t)(a))};var C=n(489419);(a=o||(o={}))[a.ACTIVE=101]="ACTIVE",a[a.INACTIVE=102]="INACTIVE";let E=e=>{let{collaboratorsInfo:t,textClasses:n}=e;return(null==t?void 0:t.length)>0&&(0,l.jsxs)("div",{className:"flex space-x-12 whitespace-nowrap text-sm font-bold leading-6 ".concat(n),children:["Collaborators: ",t[0].full_name,t.length>1&&(0,l.jsx)(c.default,{overlay:(0,l.jsx)("div",{className:"flex flex-col p-1",children:t.slice(1).map(e=>(0,l.jsx)("span",{children:e.full_name}))}),overlayParentClasses:"bg-black",position:d.xR,showPointer:!1,children:(0,l.jsxs)("span",{className:"ml-1 flex max-h-min cursor-help space-x-12 text-sm font-bold leading-6 ".concat(n),children:["and ",t.length-1," more."]})})]})},A=e=>(0,l.jsx)("span",{className:"flex h-6 w-4 items-center fill-current",children:e}),T=e=>{let{stats:t,widgetStats:n,isPlan:a=!1}=e,i=[t.categoriesCount&&{name:a?"Week":"Category",count:t.categoriesCount,svg:(0,l.jsx)(g.Z,{className:"h-4 w-4 fill-current"})},t.modulesCount&&{name:"Module",count:t.modulesCount,svg:(0,l.jsx)(_.Z,{className:"h-4 w-4 fill-current"})},t.inPathProjectsCount&&{name:"Project",count:t.inPathProjectsCount,svg:(0,l.jsx)(f.Z,{className:"h-4 w-4 fill-current"})},(t.standaloneAssessmentsCount||t.skillAssessmentsCount)&&{name:"Assessment",count:(t.standaloneAssessmentsCount||0)+(t.skillAssessmentsCount||0),svg:(0,l.jsx)(x.Z,{className:"h-4 w-4 fill-current"})},t.lessonCount&&{name:"Lesson",count:t.lessonCount,svg:(0,l.jsx)(v,{className:"h-4 w-4 fill-current"})},t.answersCount&&{name:"Answer",count:t.answersCount,svg:(0,l.jsx)(u.Z,{className:"h-4 w-4 fill-current"})},t.connectsCount&&{name:"Connect",count:t.connectsCount,svg:(0,l.jsx)(h.Z,{className:"h-4 w-4 fill-current"})},n.Quiz+(n.StructuredQuiz||0)+(n.QuizV2||0)>0&&{name:"Quiz",count:n.Quiz+(n.StructuredQuiz||0)+(n.QuizV2||0),svg:A(b.KU)},n.codeRunnableCount>0&&{name:"Playground",count:n.codeRunnableCount,svg:A(b.qY)},n.codeExerciseCount>0&&{name:"Challenge",count:n.codeExerciseCount,svg:A(b.cK)},n.codeSnippetCount>0&&{name:"Code Snippet",count:n.codeSnippetCount,svg:A(b.fg)},n.illustrations>0&&{name:"Illustration",count:n.illustrations,svg:A(b.Qb)},t.linkedPathsCount>0&&{name:"Linked Path",count:t.linkedPathsCount,svg:(0,l.jsx)(m.Z,{className:"h-4 w-4 fill-current"})}].filter(Boolean);return(0,l.jsx)("div",{className:"mt-2 flex flex-wrap",children:i.map(e=>(0,l.jsxs)("div",{className:"mr-2 mt-2 flex h-8 items-center rounded bg-gray-D1200 px-3 py-2 text-white dark:text-gray-D200",children:[e.svg,(0,l.jsxs)("span",{className:"ml-2 text-xs leading-4",children:[e.count," ","".concat(1!==e.count?"".concat("Quiz"===e.name?"Quizzes":"Category"===e.name?"Categories":"".concat(e.name,"s")):e.name)]})]}))})},S=e=>{let{icon:t,children:n,shouldShowOverlay:a,iconSizeClasses:i="h-fit w-fit",...o}=e,d=r.useRef(),[c,u]=r.useState(null);return r.useEffect(()=>{u(d.current)},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:d,className:i,children:t}),c&&a&&(0,l.jsx)(s.Z,{...o,target:c,children:n})]})}},311680:function(e,t,n){"use strict";n.d(t,{W:function(){return o}}),n(386602);let a={top:"bottom",bottom:"top",right:"left",left:"right"},i=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#191892";if(!e||"custom"===e)return{};let o="top"===e||"bottom"===e,l={[o?"borderLeft":"borderTop"]:"".concat(8,"px solid transparent"),[o?"borderRight":"borderBottom"]:"".concat(8,"px solid transparent"),["border".concat(e[0].toUpperCase()).concat(e.substring(1))]:"".concat(12,"px solid ").concat(i),[o?a[n]:t]:"".concat(22,"px"),[a[e]]:"".concat(-10,"px")};return{"--rtp-arrow-top":l.top,"--rtp-arrow-bottom":l.bottom,"--rtp-arrow-left":l.left,"--rtp-arrow-right":l.right,"--rtp-arrow-border-top":l.borderTop,"--rtp-arrow-border-bottom":l.borderBottom,"--rtp-arrow-border-left":l.borderLeft,"--rtp-arrow-border-right":l.borderRight}},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#191892";return{dot:e=>({...e,display:"none"}),button:e=>({...e,cursor:"default",height:"3rem"}),controls:e=>({...e,position:"absolute",marginTop:0,marginRight:"auto",marginLeft:"auto",width:"100%",padding:"0 0.875rem",left:0,right:0,bottom:0,display:"flex",justifyContent:"space-between"}),popover:(t,n)=>({...t,maxWidth:"48rem",minWidth:"18rem",...i(n.position,n.verticalAlign,n.horizontalAlign,e)}),badge:e=>({...e,width:"3rem",zIndex:10,padding:0,margin:0,top:"calc(100% - 2.25rem)",left:"calc(50% - 0.875rem)",background:"none",boxShadow:"none",font:"inherit"})}}},352172:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(931549),i=n(161514),o=n(585789);let l=[{question:"Personalized Interview Prep",answer:"Skip the LeetCode grind with a custom roadmap that adapts to your goals. Hands-on practice for Co
1ding Interviews, System Design, and more.",imagePath:"/static/imgs/Personalized-recommendations-v2.webm",cta:"Get Your Free Roadmap",eventName:"CLICKED_PERSONALIZED_INTERVIEW_PREP_CTA",redirectUrl:"/interview"},{question:"Mock Interviews",answer:"Test your skills in a simulated interview setting. Receive personalized feedback based on your performance. Available for Coding Interviews, System Design, and more.",imagePath:"/static/imgs/Mock-Interviews-v2.webm",cta:"Explore Mock Interviews",eventName:"CLICKED_MI_TRY_FOR_FREE_CTA",redirectUrl:"/mock-interview"},{question:"AI Prompt",answer:"Build prompt engineering skills. Practice implementing AI-informed solutions.",imagePath:"/static/imgs/AI-Prompts.webm"},{question:"Code Feedback",answer:"Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.",imagePath:"/static/imgs/Code-Feedback.webm"},{question:"Explain",answer:"Select any text within any Educative course, and get an instant explanation — without ever leaving your browser.",imagePath:"/static/imgs/Explain-with-Ai-v2.webm"},{question:"AI Code Mentor",answer:"AI Code Mentor helps you quickly identify errors in your code, learn from your mistakes, and nudge you in the right direction — just like a 1:1 tutor!",imagePath:"/static/imgs/AI-Mentor.webm"}],r=[{question:"Instant Code Feedback",answer:"Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.",imagePath:"/static/imgs/Code-Feedback.webm"},{question:"AI Mock Interviews",answer:"Test your skills in a simulated interview setting. Receive personalized feedback based on your performance. Available for Coding Interviews, System Design, and more.",imagePath:"/static/imgs/Mock-Interviews-v2.webm",cta:"Explore Mock Interviews",eventName:"CLICKED_MI_TRY_FOR_FREE_CTA",redirectUrl:"/mock-interview"},{question:"Projects",answer:"The best way to learn is by doing. Grow your portfolio and practice your skills by building real-world, AI-enabled projects.",imagePath:"/static/imgs/Projects.webm"},{question:"Cloud Labs",answer:"Get hands-on serverless computing experience with AWS cloud services — no setup, no downloads, no hassle.",imagePath:"/static/imgs/Cloud-Labs.webm"}];var s=n(323330),d=n(546316),c=n.n(d),u=e=>{let{bgColor:t="bg-bold-primary-default",mainColor:n="text-white",highlightColor:d="text-teal-300",iconClasses:u="text-indigo-25",questionClasses:h="text-indigo-25",answerClasses:p="text-gray-L50",imageBorderColor:v="border-indigo-900",CTAText:m="Try now for free",CTAClasses:g="primary-outlined text-indigo-700",dividerClasses:_="border-gray-L700 dark:border-gray-D100",spacingClasses:f="px-4 pb-10 pt-10 lg:pb-28 lg:pt-18border-gray-L700 dark:border-gray-D100 ",expandedEvent:x,source:b,CTAHandler:y,hideStarBackground:w=!1,avoidAnimationOnFirstLoad:C=!1,desktopPlaceholderHeight:E="438px",mobilePlaceholderHeight:A="250px"}=e;return(0,a.jsxs)("div",{className:"".concat(t," relative flex w-full justify-center overflow-hidden ").concat(f),children:[!w&&(0,a.jsx)(s.Z,{className:"absolute lg:left-96 lg:top-80",style:{width:"1343px",height:"1343px"}}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center",style:{zIndex:"1",maxWidth:"1088px"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex w-full justify-center",children:(0,a.jsxs)("h2",{className:"".concat(c()["landing-page"]," heading-two ").concat(n),children:[(0,a.jsx)("span",{children:"Hands-on Learning"}),(0,a.jsx)("span",{className:d,children:"\xa0AI-Powered Learning"})]})}),(0,a.jsx)("p",{className:"body-medium mt-6 text-left ".concat(n," lg:mt-1 lg:text-center"),children:"See how Educative uses AI to make your learning more immersive than ever before."})]}),(0,a.jsx)("div",{className:"h-min w-full lg:mb-2",style:{minHeight:"458px"},children:(0,a.jsx)(o.default,{useSingleExpansion:!0,iconClasses:u,firstAndLastDividerClasses:"lg:hidden",dividerClasses:_,answerClasses:"lg:!mr-16 !mr-0 ".concat(p),questionClasses:h,backgroundClasses:"lg:!px-10 !px-2 lg:!py-9",borderClasses:" ",faqs:"PRICING_PAGE"===b?r:l,renderHeading:!1,containsImagesOrVideos:!0,defaultImageOrVideo:l[0].imagePath,callBackOnExpansion:(e,t)=>{e||(0,i.Z)(b,x,t||"")},imageBorderColor:v,renderDivider:!1,injectSchemaScript:!1,ctaClasses:"LANDING_PAGE"===b?c().poweredByAiCta:"",avoidAnimationOnFirstLoad:C,desktopPlaceholderHeight:E,mobilePlaceholderHeight:A})}),(0,a.jsx)("button",{className:"navigation-text w-full sm:w-64 lg:w-min ".concat(g),onClick:y,children:m})]})]})}},93473:function(e,t,n){"use strict";n.d(t,{Lq:function(){return z},ZP:function(){return ei},d1:function(){return G},ms:function(){return Q},qu:function(){return F},JL:function(){return V},FM:function(){return Y},Q9:function(){return q},Xz:function(){return el},Xw:function(){return eo}});var a,i,o=n(931549),l=n(494296),r=n(881762),s=n(972695),d=n(44194),c=n(336449),u=n(808220),h=n(611440),p=n(970179),v=n(403915),m=n(786394);let g=e=>{let{authorId:t,collectionId:n,cloudLabId:a}=e;return(0,r.Z)({url:"/api/author/".concat(t,"/collection/").concat(n,"/cloud-lab/").concat(a,"/image/upload/url"),type:"GET"})};var _=n(463958),f=n(801674),x=n(370608),b=n(991608),y=n(865546),w=n(766898),C=n(987941),E=n(61948),A=n(229208),T=n(144022),S=n(625373),N=n(884297),L=n(389392),k=n(262603),j=n(631141),I=n(144195),O=n(727938),R=n(198144),P=n(699402),D=n(242075),M=n(621062),U=n(273650),Z=n(468045);(a=i||(i={}))[a.CLEAR=0]="CLEAR",a[a.CLEAR_TASK=1]="CLEAR_TASK",a[a.ON_SAVE_SUCCESS=2]="ON_SAVE_SUCCESS",a[a.UPDATE_LAB_PRICE=3]="UPDATE_LAB_PRICE",a[a.UPDATE_TITLE=4]="UPDATE_TITLE",a[a.UPDATE_TIME_LIMIT=5]="UPDATE_TIME_LIMIT",a[a.UPDATE_CLOUD_LAB_WIDGET_COMPONENT=6]="UPDATE_CLOUD_LAB_WIDGET_COMPONENT",a[a.UPDATE_CLOUD_LAB_TASK_WIDGET=7]="UPDATE_CLOUD_LAB_TASK_WIDGET",a[a.CLEAR_TASK_WIDGETS=8]="CLEAR_TASK_WIDGETS",a[a.ADD_USER_DATA_RESOURCE_FILE=9]="ADD_USER_DATA_RESOURCE_FILE",a[a.UPDATE_USER_DATA_RESOURCE_FILE=10]="UPDATE_USER_DATA_RESOURCE_FILE",a[a.REMOVE_USER_DATA_RESOURCE_FILE=11]="REMOVE_USER_DATA_RESOURCE_FILE",a[a.UPDATE_CLOUD_PROVIDER=12]="UPDATE_CLOUD_PROVIDER",a[a.UPDATE_SUMMARY=13]="UPDATE_SUMMARY",a[a.UPDATE_WIDGETS_GROUP=14]="UPDATE_WIDGETS_GROUP",a[a.UPDATE_LANDING_PAGE_CONTENT=15]="UPDATE_LANDING_PAGE_CONTENT",a[a.UPDATE_RELEVANT_COURSES=16]="UPDATE_RELEVANT_COURSES",a[a.UPDATE_PRE_REQS=17]="UPDATE_PRE_REQS",a[a.UPDATE_PRE_REQ_CLOUD_LABS=18]="UPDATE_PRE_REQ_CLOUD_LABS",a[a.UPDATE_CONTENT=19]="UPDATE_CONTENT",a[a.UPDATE_TASK_CODE_CONTENT=20]="UPDATE_TASK_CODE_CONTENT",a[a.UPDATE_CODING_ENV=21]="UPDATE_CODING_ENV",a[a.UPDATE_POLICY=22]="UPDATE_POLICY",a[a.UPDATE_SETUP_SCRIPT=23]="UPDATE_SETUP_SCRIPT",a[a.UPDATE_CLI_ENABLED=24]="UPDATE_CLI_ENABLED",a[a.TOGGLE_CODING_ENV=25]="TOGGLE_CODING_ENV",a[a.UPDATE_LOGIN_CONSOLE=26]="UPDATE_LOGIN_CONSOLE",a[a.UPDATE_CLI_DOCKER_JOB_KEY=27]="UPDATE_CLI_DOCKER_JOB_KEY",a[a.UPDATE_TASK_RUNNER=28]="UPDATE_TASK_RUNNER",a[a.TOGGLE_TASK_HEALTH=29]="TOGGLE_TASK_HEALTH",a[a.UPDATE_TASK_HEALTH_CODE=30]="UPDATE_TASK_HEALTH_CODE",a[a.UPDATE_STATUS=31]="UPDATE_STATUS",a[a.UPDATE_IS_POLICY_VALID=32]="UPDATE_IS_POLICY_VALID",a[a.UPDATE_DOCKER=33]="UPDATE_DOCKER",a[a.ADD_CATEGORY=34]="ADD_CATEGORY",a[a.ADD_TASK=35]="ADD_TASK",a[a.UPDATE_CATEGORY_TITLE=36]="UPDATE_CATEGORY_TITLE",a[a.UPDATE_TASK_TITLE=37]="UPDATE_TASK_TITLE",a[a.REMOVE_TASK=38]="REMOVE_TASK",a[a.REMOVE_CATEGORY=39]="REMOVE_CATEGORY",a[a.MOVE_TASK_WITHIN_ORIGIN=40]="MOVE_TASK_WITHIN_ORIGIN",a[a.MOVE_CATEGORY=41]="MOVE_CATEGORY",a[a.MOVE_TASK_TO_NON_EMPTY_CATEGORY=42]="MOVE_TASK_TO_NON_EMPTY_CATEGORY",a[a.SET_RESTORED_TASK=43]="SET_RESTORED_TASK",a[a.CLEAR_RESTORED_TASK=44]="CLEAR_RESTORED_TASK",a[a.CLEAR_RESTORED_LAB=45]="CLEAR_RESTORED_LAB",a[a.SET_TASK=46]="SET_TASK",a[a.UPDATE_TASK_ETAG=47]="UPDATE_TASK_ETAG",a[a.UPDATE_TASK_CONTENT=48]="UPDATE_TASK_CONTENT",a[a.ACTIVATE_DRAFT_LAB_STATUS=49]="ACTIVATE_DRAFT_LAB_STATUS",a[a.PENDING=50]="PEND
1ING",a[a.FULFILLED=51]="FULFILLED",a[a.REJECTED=52]="REJECTED",a[a.UPDATE_E_TAG=53]="UPDATE_E_TAG",a[a.SET_DIRTY=54]="SET_DIRTY",a[a.UPDATE_ACCOUNTS_POOL=55]="UPDATE_ACCOUNTS_POOL";let B=(e,t)=>{let n=JSON.parse(e),a=Object.keys(n.toc||{}).length?n.toc:(0,T.qH)(c.j.CLOUD_LAB_CATEGORY);return{...n,toc:a,...n.lab_type===t.CLOUD_COURSE?{widget_groups:n.widget_groups||[{id:"".concat(n.author_id,"_").concat(n.collection_id),group_name:"DEFAULT"}]}:{},is_policy_valid:!!n.policy,content:(0,A.KN)(n.content)}},z={DRAFT:1e3,IN_ADMIN_REVIEW:1001,APPROVED:1002},H=e=>t=>{t(L.n.close()),t(L.n.show(y.zN,{onConfirm:e,cancelText:"Cancel",confirmText:"Save",title:"Conflicts",description:"The content you are editing has changed. The previous changes will be overwritten. Are you sure you want to save?"}))},F=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return(0,r.Z)({url:"/api/editorial/cloud-lab/".concat(e,"/").concat(t,"/").concat(n,"/test-lab?published=").concat(a).concat(i&&o?"&active_group_id="+i+"&active_page_id="+o:""),type:"GET"})},W=(e,t,n,a)=>{let{author_id:i,collection_id:o,cloud_lab_id:l}=e;return(0,r.Z)({url:"/api/author/".concat(i,"/collection/").concat(o,"/cloud-lab/").concat(l,"?submit=").concat(a),contentType:"application/json",processData:!1,type:"PUT",data:JSON.stringify(n),headers:{[w.Zq]:t}},!0)},V=(e,t,n)=>(0,r.Z)({url:"/api/editorial/cloud-lab/".concat(e,"/").concat(t,"/").concat(n,"/test-lab"),type:"POST"}),G=(e,t,n,a,i)=>(0,S.XC)({apiPromise:()=>(0,r.Z)({url:"/api/cloud-lab/".concat(e,"/").concat(t,"/").concat(n,"/lab-setup?stack_name=").concat(a),type:"GET"}),cb:e=>{if(e.status!==u.P.IN_PROGRESS)return i(e.status),!0},error:()=>{i(u.P.FAILED)},intervalTimeMS:15e3,maxRetries:40}),K=(e,t)=>async n=>{let{upload_url:a,image_id:i}=JSON.parse(t);e={...e,content:{...e.content,image_id:i}};let o=await fetch(e.content.file).then(e=>e.blob());URL.revokeObjectURL(e.content.file),await (0,_.i)({upload_url:a,file:o}),delete e.content.file,n(j.o.updateContentState(e.hash,{image_id:e.content.image_id,file:null}))},q=(e,t,n,a)=>async i=>new Promise(async(o,l)=>{try{let l=await g({authorId:e,collectionId:t,cloudLabId:n});await i(K(a,l)),o()}catch(e){l(e)}}),Y=(e,t,n,a)=>(0,r.Z)({url:"/api/cloud-lab/".concat(e,"/").concat(t,"/").concat(n,"/user-feedback"),type:"POST",data:a}),J=e=>{if(new Set(e).size!==e.length)throw Error("A duplicate prerequisite cloud lab can not be added");e.filter(e=>e).forEach((e,t)=>{if(!x.$F.test(e)&&!x.cW.test(e))throw Error("Prerequisite Cloud Lab ".concat(t+1," has incorrect Cloud Lab link"))})},X=(e,t,n,a)=>{var i,o,l;if(new Set(e.relevant_courses).size!==e.relevant_courses.length)throw Error("A duplicate relevant course can not be added");e.relevant_courses.forEach((e,t)=>{if(!x.gX.test(e))throw Error("Relevant course ".concat(t+1," has incorrect course link"))}),J(e.pre_req_cloud_labs);let r=t||e.content||[],s=n||e.landing_page_content,d=(0,O.D)(t?r:(null===(i=r.ids)||void 0===i?void 0:i.map(e=>r.entities[e]))||[]),c=JSON.stringify(e.toc),u=2===e.version,h=U.Z.getState();return{...e,docker:JSON.stringify((0,R.qZ)(h)),testing_docker:JSON.stringify((0,R.qZ)(a)),udata_files:JSON.stringify(null!==(l=null===(o=e.udata_files)||void 0===o?void 0:o.map(e=>{let{file_id:t}=e;return t}))&&void 0!==l?l:[]),content:u?[]:r,concept_list:d,toc:u?c:JSON.stringify({}),landing_page_content:s,relevant_courses:JSON.stringify(e.relevant_courses.filter(e=>e)),pre_reqs:JSON.stringify(e.pre_reqs.filter(e=>e)),pre_req_cloud_labs:JSON.stringify(e.pre_req_cloud_labs.filter(e=>e)),widget_groups:e.widget_groups&&JSON.stringify(e.widget_groups)}},Q=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return(e,o)=>{let l=n.g.cloudLabActions;return t&&(i?e(t):t()),e(L.n.show(y.ad,{status:"WAIT",text:"Saving Cloud Lab"})),l.save(!1,null,null,a).then(()=>{e(L.n.show(y.ad,{status:"SUCCESS",text:"Cloud Lab saved"}))}).catch(n=>{var a;
1(0,D.rU)(n,e,void 0,[b.Wy.notFoundException]);let o=null==n?void 0:null===(a=n.responseJSON)||void 0===a?void 0:a.errorText;n.status===b.Wy.AlreadyExistsException&&o===b.pX.versionOutDatedMessage?e(H(()=>{l.updateETag(h.F),Q(void 0,t,!1,i)})):e(L.n.show(y.ad,{status:"ERROR",text:"Failed to save cloud lab"}))})}},$={loaded:!1,cloud_lab_task_id:null,selected_runner_id:"-1",health_test_enabled:null,content:null,envContent:{codeContent:{},type:""},"X-ETag":null,modified:null,author_id:null},ee={loaded:!1,dirty:!1,task:$,active_draft_lab_status:!1},et=d.createContext(ee),en=d.createContext(null);function ea(e,t){var n,a,i,o,r,d,u,h,v,m,g,_,f;switch(t.type){case 50:return{...e,loading:!0};case 51:return{error:void 0,loading:!1,loaded:!0,data:{...e.data,...t.payload}};case 52:return{loading:!1,loaded:!1,error:null===(n=t.payload)||void 0===n?void 0:n.error};case 0:return{...ee};case 1:let x=null!==(i=null===(a=e.task)||void 0===a?void 0:a.envContent)&&void 0!==i?i:{codeContent:{},type:""};return{...e,task:{...ee.task,envContent:x}};case 2:return{...e,data:{...e.data,"X-ETag":t.payload},dirty:!1};case 3:return{...e,data:{...e.data,credit_cost:t.payload}};case 4:return{...e,data:{...e.data,title:t.payload},dirty:!0};case 5:return{...e,data:{...e.data,time_limit:t.payload},dirty:!0};case 6:let{component:b,index:y}=t.payload,C=Array.isArray(e.data.content)?[...e.data.content]:{...e.data.content};return C[y]=b,{...e,data:{...e.data,content:C}};case 7:let{component:E,index:S}=t.payload;return(0,s.Uy)(e,e=>{e.task.content[S]=E});case 8:if(!e.loaded||!(null===(o=e.task)||void 0===o?void 0:o.content))return e;return{...e,task:{...e.task,content:[]}};case 9:return{...e,data:{...e.data,udata_files:[...e.data.udata_files,t.payload]},dirty:!0};case 11:return(0,s.Uy)(e,e=>{e.data.udata_files.splice(t.payload.index,1),e.dirty=!0});case 10:return(0,s.Uy)(e,e=>{let{index:n}=t.payload;e.data.udata_files[n]={...e.data.udata_files[n],...t.payload.payload},e.dirty=!0});case 12:return{...e,data:{...e.data,cloud_provider:t.payload},dirty:!0};case 55:return{...e,data:{...e.data,accounts_pool:t.payload},dirty:!0};case 13:return{...e,data:{...e.data,summary:t.payload},dirty:!0};case 14:return{...e,data:{...e.data,widget_groups:t.payload},dirty:!0};case 15:return{...e,data:{...e.data,landing_page_content:t.payload.landing_page_content},dirty:!0};case 16:return{...e,data:{...e.data,relevant_courses:t.payload},dirty:!0};case 17:return{...e,data:{...e.data,pre_reqs:t.payload},dirty:!0};case 18:return{...e,data:{...e.data,pre_req_cloud_labs:t.payload},dirty:!0};case 19:return{...e,data:{...e.data,content:t.payload.content},dirty:t.payload.dirty};case 20:return{...e,task:{...e.task,envContent:{...e.task.envContent,codeContent:t.payload.codeContent}},dirty:!0};case 21:return{...e,task:{...e.task,envContent:{...e.task.envContent,type:t.payload,codeContent:{selectedEnvVars:{},comp_id:(0,l.x0)()}}},dirty:!0};case 22:return{...e,data:{...e.data,policy:t.payload.policy,is_policy_valid:!1},dirty:!0};case 23:return{...e,data:{...e.data,setup_script:t.payload.setup_script},dirty:!0};case 24:return{...e,data:{...e.data,is_cli_enabled:t.payload.is_cli_enabled},dirty:!0};case 25:return{...e,data:{...e.data,enable_coding_env:t.payload.enable_coding_env},dirty:!0};case 26:return{...e,data:{...e.data,disable_federated_login:t.payload.disable_federated_login},dirty:!0};case 27:return{...e,data:{...e.data,cli_docker_job_key:t.payload.cli_docker_job_key},dirty:!0};case 28:return{...e,task:{...e.task,selected_runner_id:t.payload.selected_runner_id},dirty:!0};case 29:return{...e,task:{...e.task,health_test_enabled:t.payload.health_test_enabled},dirty:!0};case 30:return{...e,task:{...e.task,health_test_code:t.payload.health_test_code},dirty:!0};case 31:return{...e,data:{...e.data,lab_status:t.payload}};case 32:return{...e,data:{...e.data,is_policy_valid:t.payload.is_policy_valid}};case 33:if(null===(r=e.data)||void 0===r?void 0:r.docker)return{...e,data:{...e.data,docker:t.payload}};return e;case 34:return(0,s.Uy)(e,e=>{var n,a;let i=null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(n=a.toc)||void 0===n?void 0:n.categories;(0,T.oW)(i)?(e.data.toc.categories[0].title="Untitled category",e.data.toc.categories[0].editMode=!0):(0,T.SK)(e.data,!0,
1!1,t.payload.index,t.payload.parentIndex,c.j.CLOUD_LAB_CATEGORY),e.dirty=!0});case 35:return(0,s.Uy)(e,e=>{var n,a,i;let o=(0,T.QY)(null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(n=a.toc)||void 0===n?void 0:n.categories,t.payload.category_id);(0,T.WL)(e,null===(i=t.payload.task)||void 0===i?void 0:i.cloud_lab_task_id,o,t.payload.index,p.q.CLOUD_LAB_TASK,t.payload.title),e.dirty=!0});case 36:let{title:N,id:L}=t.payload,k=(0,T.QY)(null==e?void 0:null===(u=e.data)||void 0===u?void 0:null===(d=u.toc)||void 0===d?void 0:d.categories,L),j=[...e.data.toc.categories];return j[k]={...j[k],title:"__default"!==N?N:"",editMode:!1},{...e,data:{...e.data,toc:{...e.data.toc,categories:j}},dirty:!0};case 37:if(!e.data||!t.payload.categoryId)return{...e};let I=(0,T.QY)(e.data.toc.categories,t.payload.categoryId),O=(0,T.QY)(e.data.toc.categories[I].pages,t.payload.taskId),R=[...e.data.toc.categories];return R[I]={...R[I],pages:[...R[I].pages]},R[I].pages[O]={...R[I].pages[O],title:t.payload.title,editMode:!1},{...e,data:{...e.data,toc:{...e.data.toc,categories:R}},dirty:!0};case 38:let{category_id:P,taskId:D}=t.payload,M=(0,T.QY)(null==e?void 0:null===(v=e.data)||void 0===v?void 0:null===(h=v.toc)||void 0===h?void 0:h.categories,P);if(-1===M)return{...e};let U=(0,T.QY)(null==e?void 0:null===(f=e.data)||void 0===f?void 0:null===(_=f.toc)||void 0===_?void 0:null===(g=_.categories)||void 0===g?void 0:null===(m=g[M])||void 0===m?void 0:m.pages,D),Z=[...e.data.toc.categories[M].pages];-1!==U&&Z.splice(U,1);let B=[...e.data.toc.categories];return B[M]={...B[M],pages:Z},{...e,data:{...e.data,toc:{...e.data.toc,categories:B}},dirty:!0};case 39:let{id:z}=t.payload;if(!e.data)return{...e};let H=(0,T.QY)(e.data.toc.categories,z),F=[...e.data.toc.categories];if(F.splice(H,1),F.length)return{...e,data:{...e.data,toc:{...e.data.toc,categories:F}},dirty:!0};return{...e,data:{...e.data,toc:(0,T.qH)(c.j.CLOUD_LAB_CATEGORY)},dirty:!0};case 40:return(0,s.Uy)(e,e=>{var n,a,i,o;let l=null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(i=o.toc)||void 0===i?void 0:null===(a=i.categories)||void 0===a?void 0:null===(n=a[t.payload.from.parentIndex])||void 0===n?void 0:n.pages;l.splice(t.payload.to.itemIndex,0,l.splice(t.payload.from.itemIndex,1)[0]),e.dirty=!0});case 41:return(0,s.Uy)(e,e=>{var n,a,i;let o=null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(a=i.toc)||void 0===a?void 0:null===(n=a.categories)||void 0===n?void 0:n[t.payload.from.itemIndex];e.data.toc.categories.splice(t.payload.from.itemIndex,1),e.data.toc.categories.splice(t.payload.to.itemIndex,0,o),e.dirty=!0});case 42:return(0,s.Uy)(e,e=>{var n;let a=null==e?void 0:null===(n=e.data.toc)||void 0===n?void 0:n.categories;a[t.payload.to.parentIndex].pages.splice(t.payload.to.itemIndex,0,a[t.payload.from.parentIndex].pages.splice(t.payload.from.itemIndex,1)[0]),e.dirty=!0});case 43:return(0,s.Uy)(e,e=>{e.task&&(e.task=(0,A.Ny)({content:t.payload.data}),e.task.loaded=!0)});case 44:return{...e,task:{...(0,A.Ny)({})}};case 45:return{...e,loaded:!1,loading:!0};case 46:return{...e,task:t.payload.data};case 47:return{...e,task:{...e.task,[w.Zq]:t.payload}};case 48:return{...e,task:{...e.task,content:t.payload.content}};case 54:return{...e,dirty:t.payload};case 49:return{...e,data:{...e.data,active_draft_lab_status:t.payload.active_draft_lab_status}};case 53:return{...e,data:{...e.data,[w.Zq]:t.payload}};default:return e}}var ei=e=>{let{children:t}=e,a=(0,k.TL)(),[i,l]=d.useReducer(ea,ee),s=(0,k.ix)(e=>e.testingDockerDetails),c=(0,k.ix)(e=>e.widgets),u={clear:()=>{l({type:0})},clearTask:()=>{l({type:1})},onSaveSuccess:e=>{l({type:2,payload:e})},updateLabPrice:e=>{l({type:3,payload:e})},updateTitle:e=>{l({type:4,payload:e})},updateTimeLimit:e=>{l({type:5,payload:e})},updateCloudLabWidgetComponent:e=>{l({type:6,payload:e})},updateCloudLabTaskWidget:e=>{l({type:7,payload:e})},clearTaskWidgets:()=>{l({type:8})},addUserDataResourceFile:e=>{l({type:9,payload:e})},updateUserDataResourceFile:e=>{l({type:10,payload:e})},removeUserDataResourceFile:e=>{l({type:11,payload:e})},updateCloudProvider:e=>{l({type:12,payload:e})},updateAccountsPool:e=>{l({type:55,payload:e})},updateSummary:e=>{l({type:13,payload:e})},updateWidgetGroups:e=>{l({type:14,payload:e})},updateLandingPageContent:e=>{l({type:15,payload:e})},updateRelevantCourses:e=>{l({type:16,payload:e})},updatePreReqs:e=>{l({type:17,payload:e})},updatePreReqCloudLabs:e=>{l({type:18,payload:e})},updateContent:e=>{l({type:19,payload:e})},updateTaskCodeContent:e=>{l({type:20,payload:e})},updateCodingEnv:e=>
1{l({type:21,payload:e})},updatePolicy:e=>{l({type:22,payload:e})},updateSetupScript:e=>{l({type:23,payload:e})},updateCLIEnabled:e=>{l({type:24,payload:e})},toggleCodingEnv:e=>{l({type:25,payload:e})},updateLoginConsole:e=>{l({type:26,payload:e})},updateCliDockerJobKey:e=>{l({type:27,payload:e})},updateTaskRunner:e=>{l({type:28,payload:e})},toggleTaskHealth:e=>{l({type:29,payload:e})},updateTaskHealthCode:e=>{l({type:30,payload:e})},updateStatus:e=>{l({type:31,payload:e})},updateIsPolicyValid:e=>{l({type:32,payload:e})},updateDocker:e=>{l({type:33,payload:e})},addCategory:e=>{l({type:34,payload:e})},addTask:e=>{let{category_id:t,task:n,index:a,title:i=""}=e;l({type:35,payload:{category_id:t,task:n,index:a,title:i}})},updateCategoryTitle:e=>{l({type:36,payload:e})},updateTaskTitle:e=>{l({type:37,payload:e})},removeTask:e=>{l({type:38,payload:e})},removeCategory:e=>{l({type:39,payload:e})},moveTaskWithinOrigin:e=>{l({type:40,payload:e})},moveCategory:e=>{l({type:41,payload:e})},moveTaskToNotEmptyCategory:e=>{l({type:42,payload:e})},setRestoredTask:e=>{l({type:43,payload:e})},clearRestoredTask:()=>{l({type:44})},clearRestoredLab:()=>{l({type:45})},setTask:e=>{l({type:46,payload:e})},updateTaskEtag:e=>{l({type:47,payload:e})},updateETag:e=>{l({type:53,payload:e})},updateTaskContent:e=>{l({type:48,payload:e})},setDirty:e=>{l({type:54,payload:e})},activateDraftLabStatus:e=>{l({type:49,payload:e})},pending:()=>{l({type:50})},fulfilled:e=>{l({type:51,payload:e})},rejected:e=>{l({type:52,payload:{error:e}})},load:async e=>{let{authorId:t,collectionId:o,cloudLabId:l,course_url_slug:s="",page_url_slug:d="",mode:c,published:h=!1,isLockedPreview:p=!1}=e,m=s&&d?"cloud-lab/".concat(s,"/").concat(d):"cloud-lab/".concat(t,"/").concat(o,"/").concat(l),g="view"===c,_=g?m:"author/".concat(t,"/collection/").concat(o,"/cloud-lab/").concat(l),x={...p?{is_locked_preview:p}:{},...h?{published:h}:{}};return u.clear(),u.pending(),(0,r.Z)({url:"/api/".concat(_).concat((0,I.N)(x)),type:"GET"},!0).then(async e=>{var l,r;let{data:s,xhr:d}=e,c=(await Promise.resolve().then(n.bind(n,61948))).CloudLabType,h=(null==i?void 0:i.task)||$,p=B(s,c);u.fulfilled(p),u.setTask({data:h});let m="undefined"!=typeof document&&document.cookie.includes(v.w.LOGGED_IN);g&&m&&a((0,f.$6)({params:{authorId:t,collectionId:o},apiKeys:[],envKeys:null!==(r=null===(l=p.docker)||void 0===l?void 0:l.envs)&&void 0!==r?r:[],redirectIfLoggedOut:!1})),s&&!g&&u.onSaveSuccess(d.headers.get(w.Zq))}).catch(e=>{e.status===b.Wy.unauthorizedException?(0,D.xc)():e.status===b.Wy.notFoundException&&(0,n.g.setNotFound)({notFoundPageStatus:!0}),u.rejected((0,M.n)(e))})},loadLabSnapshot:(e,t,a)=>{(0,m.v)(e,t,a,p.q.CLOUD_LAB).then(async e=>{if(null==e?void 0:e.data){let t=(await Promise.resolve().then(n.bind(n,61948))).CloudLabType;return u.fulfilled(B(null==e?void 0:e.data,t)),null==e?void 0:e.data}})},loadTaskSnapshot:(e,t,n)=>{(0,m.v)(e,t,n,p.q.CLOUD_LAB_TASK).then(e=>{if(null==e?void 0:e.data){let t=JSON.parse(e.data);return u.setRestoredTask({data:t}),t}})},loadTask:function(e){let{authorId:t,collectionId:a,cloudLabId:i,cloudLabTaskId:o}=e,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];arguments.length>2&&void 0!==arguments[2]&&arguments[2];let s=l?"/api/cloud-lab/".concat(t,"/").concat(a,"/").concat(i,"/").concat(o):"/api/author/".concat(t,"/collection/").concat(a,"/cloud-lab/").concat(i,"/cloud-lab-task/").concat(o);(0,r.Z)({url:s,type:"GET"},!0).then(e=>{if(null==e?void 0:e.data){let t=JSON.parse(null==e?void 0:e.data)||{},n=(0,A.Ny)(t),a=(0,A.KN)(n.content);u.setTask({data:{...n,loaded:!0,content:a}}),l||u.updateTaskEtag(e.xhr.headers.get(w.Zq))}}).catch(e=>{e.status===b.Wy.unauthorizedException?(0,D.xc)():e.status!==b.Wy.notFoundException||(u.setTask({data:{...$,loaded:!0}}),l||(0,n.g.setNotFound)({notFoundPageStatus:!0}))})},save:async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=i.data;a(L.n.show(y.ad,{status:"WAIT",text:"".concat(e?"Submitting":"Saving"," Cloud Lab")}));try{let i=X(r,t,o,s),{landing_page_content:l,content:d}=i;return W({...r},r[w.Zq],i,e).then(async i=>{i&&u.onSaveSuccess(i.xhr.headers.get(w.Zq)),!r.is_admin&&r.active_draft_lab_status&&u.updateStatus(z.DRAFT),e&&u.updateStatus(z.IN_ADMIN_REVIEW);let s=(await Promise.resolve().then(n.bind(n,61948))).CloudLabType;r.lab_type!==s.CLOUD_COURSE&&u.updateLandingPageContent({landing_page_content:l}),a(L.n.show(y.ad,{status:"SUCCESS",text:"Cloud Lab ".concat(e?"Submitted":"Saved")})),u.activateDraftLabStatus({active_draft_lab_status:!1}),(t||o)&&(u.updateContent({content:d,dirty:!1}),a(j.o.resetDirtyBit()),a(j.o.resetMarkdownDirtyBit()),a(j.o.load(t?d:l,!0))
1)}).catch(e=>{var n;(0,D.rU)(e,a,void 0,[b.Wy.notFoundException]);let i=null==e?void 0:null===(n=e.responseJSON)||void 0===n?void 0:n.errorText;e.status===b.Wy.AlreadyExistsException&&i===b.pX.versionOutDatedMessage?a(H(()=>{u.updateETag(h.F),u.save(!1,t,o)})):a(L.n.show(y.ad,{status:"ERROR",text:(0,Z.ie)(e)||i||"Failed to save Cloud Lab"}))})}catch(t){let e=t.message||"Failed to save cloud lab!";if(a(L.n.show(y.ad,{status:"ERROR",text:e})),l)throw Error(e)}},saveTask:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;a(L.n.show(y.ad,{status:"WAIT",text:"Saving Task"}));let t=i.task,n=(null==t?void 0:t.envContent)||{},o=e||(null==t?void 0:t.content)||{content:[],envContent:n};o=(0,A.an)(o,null==t?void 0:t.cloud_lab_id),o=e?{content:o,envContent:n}:o;let l={...t,content:o};return(0,r.Z)({url:"/api/author/".concat(l.author_id,"/collection/").concat(l.collection_id,"/cloud-lab/").concat(l.cloud_lab_id,"/cloud-lab-task/").concat(l.cloud_lab_task_id),contentType:"application/json",processData:!1,type:"PUT",data:JSON.stringify(l),headers:{[w.Zq]:l[w.Zq]}},!0).then(t=>{t&&u.updateTaskEtag(t.xhr.headers.get(w.Zq)),a(L.n.show(y.ad,{status:"SUCCESS",text:"Task Saved"})),e&&(u.updateTaskContent({content:o}),u.updateTaskCodeContent(n),a(j.o.resetDirtyBit()),a(j.o.resetMarkdownDirtyBit()),a(j.o.load(o,!0)),u.setDirty(!1))}).catch(t=>{var n;(0,D.rU)(t,a,void 0,[b.Wy.notFoundException]);let i=null==t?void 0:null===(n=t.responseJSON)||void 0===n?void 0:n.errorText;t.status===b.Wy.AlreadyExistsException&&i===b.pX.versionOutDatedMessage?a(H(()=>{u.updateTaskEtag(h.F),u.saveTask(e)})):a(L.n.show(y.ad,{status:"ERROR",text:(0,Z.ie)(t)||i||"Failed to save Task"}))})},updateLabStatus:e=>{a(L.n.show(y.ad,{status:"WAIT",text:"Updating Lab status"}));let t={...i.data,new_lab_status:e,page_status:5001};return(0,r.Z)({url:"/api/editorial/cloud-lab/approval",contentType:"application/json",processData:!1,data:JSON.stringify(t),type:"PUT"}).then(()=>{u.updateStatus(e),a(L.n.show(y.ad,{status:"SUCCESS",text:"Lab status updated"}))}).catch(e=>{var t;(0,D.rU)(e,a,void 0,[b.Wy.notFoundException]),a(L.n.show(y.ad,{status:"ERROR",text:(null==e?void 0:null===(t=e.responseJSON)||void 0===t?void 0:t.errorText)||"Failed to update Lab"}))})},prepareDockerOnSetCloudLab:async(e,t)=>{var n,i;let o=(null==e?void 0:null===(n=e.docker)||void 0===n?void 0:n.envs)||[],l={};(0,E.getAutoGeneratedEnvAndApiKeys)(t||{},!0).forEach(e=>l[e.key]=e);let r=o.map(e=>e.key in l?{...e,value:l[e.key].value}:e).concat(Object.values(l)),s=(null==e?void 0:e.docker)?{...e.docker,envs:r}:R.s4,d=await (0,P.w)(e.collection_id,e.author_id,void 0,!1),c={...s,container:{...s.container,liveInstance:d}};U.Z.getState().setObject(c),e.docker&&u.updateDocker(c);let h=(null==e?void 0:e.testing_docker)?{...e.testing_docker,envs:null!==(i=e.testing_docker.envs)&&void 0!==i?i:[]}:R.s4;a(N.h.setObject(h))},updateWidgetsContent:e=>{(c.dirty||c.markdownDirty)&&u.updateContent({content:c,dirty:e})},uploadCloudLabDockerFile:e=>{let{upload:t,onUploadSuccess:n,dockerType:i}=e,o=U.Z.getState();return i===C.a5.TESTING?a(N.h.updateBuildStatus("UPLOADING")):o.updateBuildStatus("UPLOADING"),t().then(()=>n()).then(e=>JSON.parse(e.data)).then(async e=>{let{image_name:t="default_name"}=e;i===C.a5.TESTING?a(N.h.afterFileUpload(t)):o.afterFileUpload(t),a(L.n.show(y.ad,{status:"SUCCESS",text:"Docker Image build has been queued!!"}))}).catch(e=>{if(500===e.status){u.uploadCloudLabDockerFile({upload:t,onUploadSuccess:n,dockerType:i});return}i===C.a5.TESTING?a(N.h.updateBuildStatus("FAILURE")):U.Z.getState().updateBuildStatus("FAILURE"),a(L.n.show(y.ad,{status:"ERROR",text:"Uploading Docker File failed"}))})}};return d.useEffect(()=>(n.g.cloudLab=i,()=>{delete n.g.cloudLab}),[i]),d.useEffect(()=>{n.g.cloudLabActions={...u}}),(0,o.jsx)(et.Provider,{value:i,children:(0,o.jsx)(en.Provider,{value:{...u},children:t})})};let eo=()=>d.useContext(et),el=()=>d.useContext(en)},625373:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},XC:function(){return r},qp:function(){return o},_v:function(){return l}});var a=n(865546),i=n(389392);let o=e=>{let{stringLength:t,onlyDigits:n=!1,onlySpecialCharacters:a=!1,onlyUpperCase:i=!1,onlyLowerCase:o=!1,noSpecialCharacters:l=!1,noDigits:r=!1,noUppercase:s=!1,noSpaces:d=!1}=e,c=n?"0123456789":a?'!@#$%^&*(){}_+-=|\\:;"<,>.?/':i?"ABCDEFGHIJKLMNOPQRSTUVWXYZ":o?"abcdefghijklmnopqrstuvwxyz":["abcdefghijklmnopqrstuvwxyz",!l&&'!@#$%^&*(){}_+-=|\\:;"<,>.?/',!r&&"0123456789",!s&&"ABCDEFGHIJKLMNOPQRSTUVWXYZ",!d&&" "].filter(
1Boolean).join(""),u=c.length;return[...Array(t)].reduce(e=>e+c[Math.floor(Math.random()*u)],"")},l=e=>new Promise(t=>setTimeout(t,e)),r=e=>{let{apiPromise:t,cb:n,error:o,dispatch:l,successMsg:r="Success",failMsg:s="Failed",intervalTimeMS:d=5e3,maxRetries:c=15}=e,u=0,h=setInterval(()=>{t().then(JSON.parse).then(e=>{u+=1,(null==n?void 0:n(e))===!0&&(null==l||l(i.n.showOrUpdate(a.ad,{status:"SUCCESS",text:r})),clearInterval(h)),u>=c&&(null==l||l(i.n.showOrUpdate(a.ad,{status:"INFO",text:"The operation is taking a bit longer than usual. Please check back in a few minutes."})),null==o||o(),clearInterval(h))}).catch(e=>{null==l||l(i.n.showOrUpdate(a.ad,{status:"ERROR",text:s})),null==o||o(e),clearInterval(h)})},d);return h};var s={downloadFile(e){let t=document.createElement("a"),n=e.currentTarget.id,a=n.lastIndexOf("/"),i=n.substr(a+1);t.download=i,t.href=n,document.body.appendChild(t),t.click(),document.body.removeChild(t)},downloadFileFromContent(e,t){let n=document.createElement("a"),a=new Blob([t],{type:"text/plain"});n.href=URL.createObjectURL(a),n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},downloadFileFromBase64(e,t){let n=document.createElement("a");n.href="data:application/octet-stream;base64,"+t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},checkImageExt:e=>["png","jpeg","gif"].includes(e)}},727938:function(e,t,n){"use strict";n.d(t,{D:function(){return s},e:function(){return l}});var a=n(596698);let i=e=>(null==e?void 0:e.type)==="MarkdownEditor"?(0,a.f)(e.content.text,"concepts"):(null==e?void 0:e.type)==="SlateHTML"?r(e.content.html):(null==e?void 0:e.text)?(0,a.f)(e.text,"concepts"):[],o=e=>Object.keys(e.map(e=>i(e).reduce((e,t)=>{let{name:n}=t;return{...e,[n]:!0}},{})).reduce((e,t)=>({...e,...t}),{})),l=e=>o(e),r=e=>{let t=/(?:<name>)(.*?)(?=<\/name>)/,n=e.match(/<concept>(.*?)<\/concept>/g);return n?[...n].reduce((e,n)=>{let a=t.exec(n);return a?[...e,{name:a[1]}]:e},[]):[]},s=e=>o(e)},878018:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var a=n(226142);let i=(e,t,i)=>{var o,l,r,s,d;let c=null!==(s=null!=i?i:null===(l=n.g.userInfoContext)||void 0===l?void 0:null===(o=l.userInfoState)||void 0===o?void 0:o.data)&&void 0!==s?s:{},{author_id:u,collection_id:h}=null!==(d=null==c?void 0:c.in_progress_lab)&&void 0!==d?d:{};if(u!==e||h!==t)return[null,null];let p=null==c?void 0:null===(r=c.in_progress_lab)||void 0===r?void 0:r.parent_work_info,v=null,m=null;if(p){let[e,t]=new a.Z().decode(p);v=Number(e),m=Number(t)}return[v,m]}},977781:function(e,t,n){"use strict";n.d(t,{DS:function(){return a},I_:function(){return l},kI:function(){return i}});let a=e=>{e.classList.add("dark:bg-gray-D1200","bg-indigo-200","transition-colors"),e.style.transitionDuration="".concat(3e3,"ms"),setTimeout(()=>{e.classList.remove("dark:bg-gray-D1200","bg-indigo-200"),setTimeout(()=>{e.classList.remove("transition-colors")},1500)},1500)},i=(e,t)=>e&&o(t,e.getBoundingClientRect().top+window.pageYOffset-window.innerHeight/2,200),o=(e,t,n)=>{let a=0,i=()=>{a+=t/n,window.scrollTo(0,window.scrollY+a),window.scrollY<t?window.requestAnimationFrame(i):e()};window.requestAnimationFrame(i)},l=(e,t,n,a)=>{let i=n.getBoundingClientRect().height,o=e.offsetTop-n.offsetTop,l=null,r=e=>{if(n.scrollTop>=o||n.scrollTop+i>=n.scrollHeight)return t();l&&n.scrollTo(0,n.scrollTop+o/(a/(e-l))),l=e,window.requestAnimationFrame(r)};window.requestAnimationFrame(r)}},244305:function(e,t,n){"use strict";n.d(t,{W:function(){return p}});var a=n(494296),i=n(881762),o=n(466483),l=n(991608),r=n(242075),s=n(621062);let d=(e,t,n,a)=>"author/".concat(e,"/collection/").concat(t,"/concept/").concat(n||"all")+(a?"/published":""),c=e=>JSON.parse(e).reduce((e,t)=>{let{id:n,name:a,usage_count:i}=t;return{...e,[a]:{id:n,usageCount:i}}},{}),u=e=>e.map(e=>{var t;return(null===(t=e.content)||void 0===t?void 0:t.comp_id)?e:{...e,content:{...e.content,comp_id:(0,a.x0)()}}}),h=(e,t,n)=>{if(!n)return n;let a=Object.entries(n).find(t=>{let[n,a]=t;return a.id===e});if(!a)return n;let i=a&&a[0],o=a?a[1]:{},l=u(JSON.parse(t));return{[i]:{...o,comps:l}}},p=(0,o.Ue)((e,t)=>({error:void 0,loading:void 0,loaded:!1,data:void 0,pending:()=>e(e=>({...e,loading:!0})),fulfilled:t=>e(e=>({error:void 0,loading:!1,loaded:!0,data:{...e.data,...t}})),clear:()=>e({loaded:!1}),rejected:t=>e({loading:!1,loaded:!1,error:t}),update:n=>{let a=t(),i=a.data||{},{id:o,name:l,comps:r,usageCount:s}=n||{},d=Object.entries(i).find(e=>{let[t,n]=e;return n.id===o}),c=d&&d[0],u=d&&d[1].comps,h=d&&d[1].usageCount,p=l||c;if(p){let t=null!=r?r:u,n=null!=s?s:h,l={[p]:{id:o,...n&&{usageCount:n},...t&&{comps:t}}},{[c]:d,...v}=i;e({...a,data:{...v,...l}})}},remove:n=>{let a=t(),i=a.data||{},{id:o}=n||{},l=Object.entries(i).find(e=>{let[t,n]=e;return Number(n.id)===Number(o)}),r=l&&l[0],{[r]:s,...d}=i;e({...a,data:{...d}})},loadFail:n=>{let a=t();if(n){var i;let t=(null===(i=n.responseJSON)||void 0===i?void 0:i.errorText)||"Failed to retrieve";e({...a,error:t})}},loadMetadata:e=>{let{authorId:a,collectionId:o,published:u}=e;return t().pending(),(0,i.Z)({url:"/api/".concat(d(a,o,null,u)),type:"GET"},void 0,void 0,!1).then(e=>{t().fulfilled(c(e))}).catch(e=>{e.status===l.Wy.unauthorizedException?(0,r.xc)():e.status===l.Wy.notFoundException&&(0,n.g.setN
1otFound)({notFoundPageStatus:!0}),t().rejected((0,s.n)(e))})},load:e=>{let{authorId:a,collectionId:o,conceptId:c,published:u}=e;return t().pending(),(0,i.Z)({url:"/api/".concat(d(a,o,c,u)),type:"GET"},void 0,void 0,!1).then(e=>{t().fulfilled(h(c,e,t().data))}).catch(e=>{e.status===l.Wy.unauthorizedException?(0,r.xc)():e.status===l.Wy.notFoundException&&(0,n.g.setNotFound)({notFoundPageStatus:!0}),t().rejected((0,s.n)(e))})}}))},898465:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var a=n(945431);let i=(e,t,n)=>(null==e?void 0:e.is_b2c_trial_active)&&n!==a.Q.UNAVAILABLE&&(n===a.Q.AVAILABLE||e.b2c_trial_categories.some(e=>null==t?void 0:t.includes(e)))},181707:function(e,t,n){"use strict";n.d(t,{u:function(){return p}});var a=n(503346),i=n(930286),o=n(945431),l=n(15096),r=n(395124),s=n(403915),d=n(286889),c=n(878459),u=n(964752),h=n(863780);let p=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(v,m)=>{var g,_,f,x,b;let y=(0,a.useRouter)(),[,w]=(0,i.Z)([s.w.CLOUDLAB_REDIRECT_URL]),{userInfoState:C}=(0,r.su)(),E=(0,d.Z)(),A=(0,c.h)(e=>e.userConfig),T=(null===(g=C.data)||void 0===g?void 0:g.user_id)&&(null===(_=E.data)||void 0===_?void 0:_.complete_data_loaded)?E.data.subscriptions:(null===(f=A.data)||void 0===f?void 0:f.subscriptions)||[],S=!!(null===(x=C.data)||void 0===x?void 0:x.has_active_b2c_trial),N=!!(null===(b=C.data)||void 0===b?void 0:b.user_id);(0,h.t)();let L=(()=>{var t,n;let a=null===(t=C.data)||void 0===t?void 0:t.preferred_subscription_id,i=null===(n=E.data)||void 0===n?void 0:n.complete_data_loaded;if(a&&i)return E.data.subscriptions.find(t=>e?t.feature_set_type===l.kZ.PREMIUM&&12===t.validity_months&&t.subscription_plan_type===o._.USER:t.id===a)})();if(t){let{subscriptionPlanToShow:e,checkoutType:t}=(0,u.GZ)(T,N);return{subscriptions:T,isUserOnFreeTrial:S,subscriptionPlanToShow:e,onCTAButtonClick:()=>{w(s.w.CLOUDLAB_REDIRECT_URL,y.asPath,{path:"/",maxAge:6e5}),y.push((0,u.l$)(t,e))}}}let k=e||n?(0,u.iE)(T):p?(0,u.y4)(T,12,l.kZ.STANDARD):(0,u.y4)(T,12);return{subscriptions:T,isUserOnFreeTrial:S,subscriptionPlanToShow:k,onCTAButtonClick:()=>{p?y.push((0,u.l$)(l.vl.SUBSCRIPTION_BUY,k)):S&&!n&&L?y.push((0,u.l$)(l.vl.SUBSCRIPTION_BUY,L)):y.push("/unlimited")}}}}},43197:function(e){e.exports={expandBtn:"expand_expandBtn__SGRzm",dark:"dark"}},830561:function(e){e.exports={container:"CollapseCategories_container__mBbnA",showMore:"CollapseCategories_showMore__rYsKe",expandButton:"CollapseCategories_expandButton__mITvO",dark:"dark"}},273169:function(e){e.exports={summaryText:"CourseDescription_summaryText__Pdw_a",dark:"dark",summary:"CourseDescription_summary__GMyGi"}},41289:function(e){e.exports={imageWrapper:"CourseDescriptionCarousel_imageWrapper__GCkxc",dark:"dark"}},83098:function(e){e.exports={container:"ImageViewer_container__NLfo8",imageContainer:"ImageViewer_imageContainer__ODXVt",imageWrapper:"ImageViewer_imageWrapper__agIfR",errorContainer:"ImageViewer_errorContainer__dbBZT",errorIcon:"ImageViewer_errorIcon__JBB7o",dark:"dark",iconLeft:"ImageViewer_iconLeft__xySvz"}},434366:function(e){e.exports={container:"MarketingTableWithCategories_container__YjKPx",dark:"dark",tableContent:"MarketingTableWithCategories_tableContent___wsca",content:"MarketingTableWithCategories_content___eUHH",contentHeading:"MarketingTableWithCategories_contentHeading__PCQ0q",contentHeadingTitle:"MarketingTableWithCategories_contentHeadingTitle__zubBR",categories:"MarketingTableWithCategories_categories__ApS8j",expandCategories:"MarketingTableWithCategories_expandCategories__mlMPp",categoryTitle:"MarketingTableWithCategories_categoryTitle__UQIET",categoryNumber:"MarketingTableWithCategories_categoryNumber__CFbno",categoryTitleInner:"MarketingTableWithCategories_categoryTitleInner__yzG5t",categoryTitleText:"MarketingTableWithCategories_categoryTitleText__aAyDX",categoryDescription:"MarketingTableWithCategories_categoryDescription___ruPJ",categoryLessonCount:"MarketingTableWithCategories_categoryLessonCount__pqDXL",categoryDivider:"MarketingTableWithCategories_categoryDivider__9WmoI",categoryLessons:"MarketingTableWithCategories_categoryLessons__1IASO",contentContainer:"MarketingTableWithCategories_contentContainer__gih1Q",category:"MarketingTableWithCategories_category__eAH5b",title:"MarketingTableWithCategories_title__6n3qi",titleLeft:"MarketingTableWithCategories_titleLeft__cJ07l",titleArrow:"MarketingTableWithCategories_titleArrow__zAkDw",lesson:"MarketingTableWithCategories_lesson__UZTa1",lessonDot:"MarketingTableWithCategories_lessonDot__RZSo9",pageTitleText:"MarketingTableWithCategories_pageTitleText___vUef",lessonTitleContainer:"MarketingTableWithCategories_lessonTitleContainer__EV5Z8",lessonExpandArrow:"MarketingTableWithCategories_lessonExpandArrow__JWUa7",lessonExpandArrowIcon:"MarketingTableWithCategories_lessonExpandArrowIcon__Y_e14",lessonDescription:"MarketingTableWithCategories_lessonDescription__W1Fd7",lessonExpandedBackgroun
1d:"MarketingTableWithCategories_lessonExpandedBackground__aLviq"}},897986:function(e){e.exports={overviewSectionContent:"PersonalizedCourseOverview_overviewSectionContent__UsLEm",overviewSectionImage:"PersonalizedCourseOverview_overviewSectionImage__4SMIq",ImageDimensions:"PersonalizedCourseOverview_ImageDimensions__Fq933",overviewIndicatorPositionClasses:"PersonalizedCourseOverview_overviewIndicatorPositionClasses__DFqTg",overviewImage:"PersonalizedCourseOverview_overviewImage__9_TWp",dark:"dark",summaryHeading:"PersonalizedCourseOverview_summaryHeading__ZVNsa"}},520833:function(e){e.exports={ctaButton:"AnswerComponent_ctaButton__CYynV",dark:"dark"}},975566:function(e){e.exports={visibleAnswer:"FAQ_visibleAnswer__v4H8B",hiddenAnswer:"FAQ_hiddenAnswer__6lUqy"}},682970:function(e){e.exports={fadeOut:"dropdownSearch_fadeOut__xGBmn",fadeIn:"dropdownSearch_fadeIn__9CaOz","highlight-search-hit":"dropdownSearch_highlight-search-hit__QenjP","search-results-container":"dropdownSearch_search-results-container__CXavH","searchAnimation-enter-active":"dropdownSearch_searchAnimation-enter-active__50K4t",slideTopToBottom:"dropdownSearch_slideTopToBottom___mZvg","searchAnimation-exit-active":"dropdownSearch_searchAnimation-exit-active__m4khn",slideBottomToTop:"dropdownSearch_slideBottomToTop__e6HZy"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.