1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4083,408186,531907],{580389:function(e,t,n){"use strict";var r,a=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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:17,height:16,fill:"none",viewBox:"0 0 17 16"},e),r||(r=a.createElement("path",{fill:"currentColor",d:"M5.662 5.243v-1.25h7.18v1.25h-7.18Zm0 2.404v-1.25h7.18v1.25h-7.18Zm2.275 8.27H3.001a2.011 2.011 0 0 1-1.478-.605 2.01 2.01 0 0 1-.605-1.479V11.43h2.5V.083h11.667v7.048a2.719 2.719 0 0 0-1.25.228V1.333H4.668V11.43h4.727l-1.25 1.25H2.168v1.153c0 .236.08.434.24.594.16.16.357.24.593.24h4.936v1.25Zm1.827 0v-2.202l4.524-4.504a.893.893 0 0 1 .337-.218c.12-.042.241-.063.362-.063a.98.98 0 0 1 .711.295l.771.778c.09.104.16.216.209.337.049.12.073.241.073.362 0 .12-.022.243-.067.368a.973.973 0 0 1-.215.343l-4.503 4.504H9.764Zm.994-.994h.791l2.705-2.718-.383-.396-.387-.39-2.726 2.712v.792Zm3.114-3.114-.388-.39.77.786-.383-.396Z"})))}},59248:function(e,t,n){"use strict";var r,a,l=n(44194);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return l.createElement("svg",i({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4h-4.2A3 3 0 0012 2a3 3 0 00-2.8 2H4.6A2 2 0 003 6v14a2 2 0 00.6 1.4c.3.3.6.5 1 .6H15v-2H5V6h14v8h2V6a2 2 0 00-2-2zm-2 10v-2H7v2h10zM7 8v2h10V8H7zm0 8h7v2H7v-2zm5.8-11.5c0-.4-.4-.8-.8-.8s-.8.4-.8.8.4.8.8.8.8-.4.8-.8z",fill:"current"})),a||(a=l.createElement("path",{d:"M21 22v-2h2v-2h-2v-2h-2v2h-2v2h2v2h2z",fill:"current"})))}},888075:function(e,t,n){"use strict";var r,a,l,i,s=n(44194);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",c({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-calendar"},e),r||(r=s.createElement("rect",{x:3,y:4,width:18,height:18,rx:2,ry:2})),a||(a=s.createElement("line",{x1:16,y1:2,x2:16,y2:6})),l||(l=s.createElement("line",{x1:8,y1:2,x2:8,y2:6})),i||(i=s.createElement("line",{x1:3,y1:10,x2:21,y2:10})))}},384465:function(e,t,n){"use strict";var r,a=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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",l({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-chevron-left"},e),r||(r=a.createElement("polyline",{points:"15 18 9 12 15 6"})))}},133467:function(e,t,n){"use strict";var r,a=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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",l({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-chevron-right"},e),r||(r=a.createElement("polyline",{points:"9 18 15 12 9 6"})))}},804001:function(e,t,n){"use strict";var r,a,l=n(44194);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return l.createElement("svg",i({width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=l.createElement("g",{clipPath:"url(#clip0_6146_1634)"},l.createElement("path",{d:"M15.8333 7.49992L16.875 5.20825L19.1666 4.16659L16.875 3.12492L15.8333 0.833252L14.7916 3.12492L12.5 4.16659L14.7916 5.20825L15.8333 7.49992Z",fill:"currentColor"}),l.createElement("path",{d:"M15.8333 12.4999L14.7916 14.7916L12.5 15.8333L14.7916 16.8749L15.8333 19.1666L16.875 16.8749L19.1666 15.8333L16.875 14.7916L15.8333 12.4999Z",fill:"currentColor"}),l.createElement("path",{d:"M9.58331 7.91659L7.49998 3.33325L5.41665 7.91659L0.833313 9.99992L5.41665 12.0833L7.49998 16.6666L9.58331 12.0833L14.1666 9.99992L9.58331 7.91659ZM8.32498 10.8249L7.49998 12.6416L6.67498 10.8249L4.85831 9.99992L6.67498 9.17492L7.49998 7.35825L8.32498 9.17492L10.1416 9.99992L8.32498 10.8249Z",fill:"currentColor"}))),a||(a=l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_6146_1634"},l.createElement("rect",{width:20,height:20,fill:"white"})))))}},205131:function(e,t,n){"use strict";var r=n(931549),a=n(44194),l=n(754748),i=n(742075);t.Z=e=>{let{className:t="",position:n,children:s,renderTooltip:c,hideTooltip:o=!1,closeable:d=!1,fullWidth:u=!1,mainClassName:h="",positionTopClasses:m="bottom-12",positionLeftClasses:f="-bottom-6 right-12",positionBottomClasses:g="top-12",positionTopLeftClasses:v="bottom-14 right-0",positionTopRightClasses:p="bottom-12 left-0",...x}=e,[_,E]=a.useState(!1);return(0,r.jsxs)("div",{className:(0,i.N)("relative flex justify-center",u&&"w-full",h),...x,children:[(_||d)&&!o&&(0,r.jsx)("div",{id:"tooltip",className:"absolute w-max ".concat("top"===n?m:"left"
1===n?f:"top-left"===n?v:"bottom"===n?g:"top-right"===n?p:""," ").concat(t),style:{zIndex:l.Li},children:c}),(0,r.jsx)("div",{id:"overlay",className:(0,i.N)("flex items-center justify-center",u&&"w-full"),onMouseOver:()=>E(!0),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:s})]})}},117717:function(e,t){"use strict";t.Z="enable_pal_banner"},994837:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let r=60},78289:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});let r=35},228923:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r=5},991668:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=6},486337:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});let r=90},52586:function(e,t,n){"use strict";var r,a;n.d(t,{B:function(){return r}}),(a=r||(r={}))[a.PATHS_LANDING_PAGE=3017]="PATHS_LANDING_PAGE",a[a.CLOUD_LABS_LANDING_PAGE=3018]="CLOUD_LABS_LANDING_PAGE",a[a.LEARNING_PLAN_LANDING_PAGE=3019]="LEARNING_PLAN_LANDING_PAGE",a[a.PROJECTS_LANDING_PAGE=3020]="PROJECTS_LANDING_PAGE",a[a.ASSESSMENTS_LANDING_PAGE=3021]="ASSESSMENTS_LANDING_PAGE",a[a.EXPLORE_LANDING_PAGE=3022]="EXPLORE_LANDING_PAGE",a[a.COURSE_HOMEPAGE=3023]="COURSE_HOMEPAGE",a[a.PROJECT_HOMEPAGE=3024]="PROJECT_HOMEPAGE",a[a.CLOUD_LAB_HOMEPAGE=3025]="CLOUD_LAB_HOMEPAGE",a[a.SKILL_PATH_HOME_PAGE=3026]="SKILL_PATH_HOME_PAGE",a[a.L2C_LANDING_PAGE=3027]="L2C_LANDING_PAGE",a[a.PERSONALIZED_PATHS_LANDING_PAGE=3029]="PERSONALIZED_PATHS_LANDING_PAGE",a[a.LEARN_HOME_PAGE=3030]="LEARN_HOME_PAGE",a[a.LEARN_IN_PROGRESS_PAGE=3031]="LEARN_IN_PROGRESS_PAGE",a[a.LEARN_SAVED_PAGE=3032]="LEARN_SAVED_PAGE",a[a.LEARN_COMPLETED_PAGE=3033]="LEARN_COMPLETED_PAGE",a[a.LEARN_MY_COURSES_PAGE=3034]="LEARN_MY_COURSES_PAGE",a[a.LEARN_DEFAULT_LANDING_PAGE=3035]="LEARN_DEFAULT_LANDING_PAGE",a[a.EDUCATIVE_HOMEPAGE=3036]="EDUCATIVE_HOMEPAGE",a[a.EDUCATIVE_PRICING_PAGE=3037]="EDUCATIVE_PRICING_PAGE",a[a.EDUCATIVE_ANSWERS_PAGE=3038]="EDUCATIVE_ANSWERS_PAGE",a[a.INTERVIEW_PREP_LANDING_PAGE=3039]="INTERVIEW_PREP_LANDING_PAGE",a[a.GENERATIVE_AI_LANDING_PAGE=3040]="GENERATIVE_AI_LANDING_PAGE",a[a.DATA_SCIENCE_LANDING_PAGE=3041]="DATA_SCIENCE_LANDING_PAGE",a[a.DATA_SCIENCE_SUBLANDING_PAGE=3042]="DATA_SCIENCE_SUBLANDING_PAGE",a[a.CATALOG_LANDING_PAGE=3043]="CATALOG_LANDING_PAGE",a[a.TRANSACTION_PAGE=3044]="TRANSACTION_PAGE",a[a.AGENT_LANDING_PAGE=3052]="AGENT_LANDING_PAGE"},585033:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});let r="Achieve your learning goals faster with a personalized curriculum built just for you"},304918:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});let r="Build & practice skills via full-featured technical projects"},34033:function(e,t,n){"use strict";n.d(t,{Bn:function(){return a},zA:function(){return r}});let r=(e,t)=>e>t?e-e%t:e,a=(e,t,n)=>r(parseInt(e),100)+r(parseInt(t),10)+r(parseInt(n),10)},85638:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var r=n(881762),a=n(219808);let l="user_tag_interests",i=null,s=!1,c=()=>{try{let e=(0,a.rV)(l);return e?JSON.parse(e):{}}catch(e){return{}}},o=e=>{try{(0,a.LS)(l,JSON.stringify(e))}catch(e){}},d=()=>{try{(0,a.cl)(l)}catch(e){}},u=e=>{let t=Object.entries(e).flatMap(e=>{let[t,n]=e;return Array(n).fill(t)});return 0===t.length?Promise.resolve():(0,r.Z)({type:"POST",url:"/api/userdata/tag-interests",data:{tags:JSON.stringify(t)}})},h=()=>{let e=c();return 0===Object.keys(e).length?Promise.resolve():(d(),i&&clearTimeout(i),u(e))},m=()=>{let e=c();if(0===Object.keys(e).length)return;let t=Object.entries(e).flatMap(e=>{let[t,n]=e;return Array(n).fill(t)});if(0===t.length)return;let n=new FormData;n.append("tags",JSON.stringify(t)),navigator.sendBeacon("/api/userdata/tag-interests",n),d()},f=()=>{s||(s=!0,d(),window.addEventListener("beforeunload",m),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&m()}))},g=()=>{i||(i=setTimeout(()=>{h().catch(()=>{}),i=null},9e5))},v=e=>{if(!e||0===e.length)return Promise.resolve();f();let t=c();return e.forEach(e=>{t[e]=(t[e]||0)+1}),o(t),g(),Promise.resolve()}}
1,772087:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(881762);let a=e=>{let t,{author_id:n,collection_id:a,course_url_slug:l,work_type:i}=e;return t=l?"collection/".concat(l,"/certificate-status?work_type=").concat(i):"collection/".concat(n,"/").concat(a,"/certificate-status?work_type=").concat(i),(0,r.Z)({url:"/api/".concat(t),type:"GET"})}},935911:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(881762);let a=e=>(0,r.Z)({url:"/api/google-service/auth_status?service=".concat(e),type:"GET"})},475971:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var r=n(881762),a=n(520649);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.dL.COLLECTION,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Ss.REGULAR;return(0,r.Z)({url:"/api/pinwork?work_type=".concat(t).concat(t===a.dL.PATH?"&path_type="+n:""),type:"PUT",data:e})}},758351:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(881762);let a=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return(0,r.Z)({url:"/api/author/".concat(t,"/collection/").concat(n,"/submit-for-review").concat(a?"?work_type=".concat(a):""),type:"PUT",data:e})}},551065:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(881762),a=n(520649);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.dL.COLLECTION;return(0,r.Z)({url:"/api/unpinwork?work_type=".concat(t),type:"PUT",data:e})}},869896:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(779935);let a=e=>{var t,n;let{element:a,targetLeft:l,targetTop:i,duration:s=300}=e;if((null===(t=(0,r.qY)())||void 0===t?void 0:t.name)!=="chrome")return null===(n=a.scroll)||void 0===n?void 0:n.call(a,{top:i,left:l,behavior:"smooth",inline:"start"});let c=a.scrollLeft,o=a.scrollTop,d=l-c,u=i-o,h=performance.now(),m=e=>-(Math.cos(Math.PI*e)-1)/2,f=e=>{let t=Math.min((e-h)/s,1),n=m(t);void 0!==l&&(a.scrollLeft=c+d*n),void 0!==i&&(a.scrollTop=o+u*n),t<1&&requestAnimationFrame(f)};requestAnimationFrame(f)}},263025:function(e,t,n){"use strict";n.d(t,{H:function(){return l}});var r=n(881762),a=n(520649);let l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.dL.COLLECTION;return(0,r.Z)({url:"/api/user-certificate/".concat(e,"/").concat(t,"?work_type=").concat(n),type:"POST"})}},891905:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(881762);let a=(e,t)=>(0,r.Z)({type:"POST",url:"/api/userdata/last-viewed-collections",data:{author_id:e,collection_id:t}})},782512:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r,a,l,i=n(931549),s=n(503346),c=n(44194),o=n(161514);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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var u=function(e){return c.createElement("svg",d({width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=c.createElement("path",{d:"M19.0909 11.8182L20 9.81818L22 8.90909L20 8L19.0909 6L18.1818 8L16.1818 8.90909L18.1818 9.81818L19.0909 11.8182Z",fill:"white"})),a||(a=c.createElement("path",{d:"M19.0909 16.1818L18.1818 18.1818L16.1818 19.0909L18.1818 20L19.0909 22L20 20L22 19.0909L20 18.1818L19.0909 16.1818Z",fill:"white"})),l||(l=c.createElement("path",{d:"M13.6364 12.1818L11.8182 8.18182L10 12.1818L6 14L10 15.8182L11.8182 19.8182L13.6364 15.8182L17.6364 14L13.6364 12.1818ZM12.5382 14.72L11.8182 16.3055L11.0982 14.72L9.51273 14L11.0982 13.28L11.8182 11.6945L12.5382 13.28L14.1236 14L12.5382 14.72Z",fill:"white"})))},h=e=>{let{courseTitle:t}=e,n=(0,s.useRouter)();return(0,i.jsx)("div",{className:"flex flex-col items-center bg-teal-700 text-center lg:flex-row",children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"mb-2 h-5 w-5",children:(0,i.jsx)(u,{})}),(0,i.jsx)("span",{className:"flex py-1 pl-2 font-bold text-indigo-50",children:"Get Your Personalized Prep Plan"}),(0,i.jsx)("span",{className:"body-small tailwind-hidden py-1 pl-1 text-indigo-50 lg:flex",children:"- Generate the optimal coding interview roadmap for your goals & timeline."}),(0,i.jsx)("button",{className:"navigation-text ml-4 flex w-fit cursor-pointer bg-transparent py-1 !text-sm text-yellow-200 underline sm:ml-0",onClick:()=>{(0,o.Z)("INTERVIEW_PREP","Clicked_CIP_PAL_Banner",t,null,{page_section:"course_banner"}),n.push("/interview")},children:"Try Now"})]})})}},177302:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(931549),a=n(520649);let l={SUBMITTED_AND_DRAFT_ACTIVE:"submittedAndDraftActive",APPROVED_AND_DRAFT_ACTIVE:"approvedAndDraftActive"};var i=n(865546),s=n(389392),c=e=>{let{approvalStatus:t=3001,isDraftActive:n=!1,dispatch:c=()=>{},submitCourse:o=()=>{},isPath:d=!1}=e,u=()=>{c(s.n.show(i.uS,{onSubmitClick:o}))},h=d?"Path":"Course",m=(0,r.jsxs)("div",{className:"flex h-full items-center",children:[(0,r.jsx)("div",{className:"inline cursor-pointer text-white",onClick:()=>u(),children:(0,r.jsx)("span",{className:"mr-1 items-center font-semibold",children:"Submit"})}),(0,r.jsx)("span",{children:"Your ".concat(h," for Early Feedback")})]}),f={[a.Lc.APPROVED]:"Approved and Live \uD83C\uDF89",[a.Lc.SUBMITTED_FOR_REVIEW]:"Your ".concat(h.toLowerCase()," is in review"),[l.SUBMITTED_AND_DRAFT_ACTIVE]:"Publish the ".concat(h.toLowerCase()," to submit the latest saved changes for review"),[l.APPROVED_AND_DRAFT_ACTIVE]:"Publish latest saved changes to make them live",[a.Lc.NONE]:m,[a.Lc.UNAPPROVED]:m,[a.Lc.APPROVED_FOR_EARLY_ACCESS]:"Approved for Early Access"},g="";return n?t===a.Lc.SUBMITTED_FOR_REVIEW?g=l.SUBMITTED_AND_DRAFT_ACTIVE:t===a.Lc.APPROVED?g=l.APPROVED_AND_DRAFT_ACTIVE:(t===a.Lc.NONE||t===a.Lc.UNAPPROVED)&&(g=a.Lc.NONE):g=t,(0,r.jsx)("div",{className:"flex h-full",children:f[g]})}},151178:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(931549),a=n(746931),l=n.n(a),i=n(503346),s=n(395124),c=n(717433),o=n(468045);let d={PATH:"Learning Path",PROJECT:"Projects",CLOUD_LABS:"Cloud Labs",MARKETING_PAGE:"Marketing Page"},u="bg-transparent p-0 py-1 outline-none",h=e=>e&&isNaN(Number(e))?c.ZP.titleCaseString((0,o.C6)(e,"-"," ")):e;t.Z=e=>{let{pageType:t,baseColor:n="text-gray-L500 dark:text-gray-L50 hover:text-gray-L500 hover:dark:text-gray-L50",lastColor:a="text-gray-L700 dark:text-gray-L400 hover:text-gray-L700 hover:dark:text-gray-L400",customClasses:c="",courseClass:o="",breadcrumbList:m=null,title:f=null,dividerElement:g=">",dividerMargin:v="px-6"}=e,{userInfoState:p}=(0,s.su)(),x=(0,i.useRouter)().asPath.split("/").filter(e=>""!==e).map(e=>e.split("?")[0]),_=null!=m?m:[{name:"Home",link:p.loggedOut?"/":"/learn/home"},{name:t&&t!==d.MARKETING_PAGE?t:h(x[0]),link:(()=>
1{if(t)switch(t){case d.PATH:return"/paths";case d.PROJECT:return"/projects";case d.CLOUD_LABS:return"/cloudlabs";case d.MARKETING_PAGE:return"/".concat(x[0])}return"/search?tab=courses"})()},...(null!=f?f:x.length>1)?[{name:null!=f?f:h(x[x.length-1])}]:[]],E={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:_.filter(e=>!e.placeholder).map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,...e.link&&t<_.length-1&&{item:"".concat("https://www.educative.io").concat(e.link)}}))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex flex-wrap".concat(c),children:_.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center",children:[t===_.length-1||e.placeholder?(0,r.jsx)("p",{className:"".concat(u," ").concat(o," ").concat(a," m-0"),children:e.name}):(0,r.jsx)(l(),{href:e.link,className:"".concat(u," ").concat(o," ").concat(n," cursor-pointer"),children:e.name}),t<_.length-1&&(0,r.jsx)("span",{className:"p-0 ".concat(v," py-1 ").concat(n),children:g})]},e.name))}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(E)}})]})}},724804:function(e,t,n){"use strict";n.d(t,{f:function(){return l},l:function(){return a}});var r=n(931549);n(44194);let a=e=>{let{className:t="w-4 h-4"}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("mask",{id:"a",className:t,x:"0",y:"0",maskUnits:"userSpaceOnUse",children:(0,r.jsx)("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"})}),(0,r.jsx)("g",{mask:"url(#a)",children:(0,r.jsx)("path",{fill:"#5553FF",d:"m12.192 19.678-6.364-6.364 6.364-6.364-1.414-1.414L3 13.314l7.778 7.778 1.414-1.414Zm7.071 0L12.9 13.314l6.364-6.364-1.414-1.414-7.778 7.778 7.778 7.778 1.414-1.414Z"})})]})},l=e=>{let{className:t="w-4 h-4"}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,fill:"none",viewBox:"0 0 22 22",children:[(0,r.jsx)("path",{stroke:"#5553FF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3.833 16.25a2.083 2.083 0 0 1 2.083-2.083h11.25"}),(0,r.jsx)("path",{stroke:"#5553FF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.916 1.667h11.25v16.666H5.916a2.083 2.083 0 0 1-2.083-2.083V3.75a2.083 2.083 0 0 1 2.083-2.083v0Z"})]})}},537577:function(e,t,n){"use strict";n.d(t,{k:function(){return p}});var r=n(931549),a=n(746931),l=n.n(a),i=n(44194),s=n(985222),c=n(580811),o=n(161514),d=n(724804),u=n(602829),h=n(764412),m=n(929602),f=n(125038),g=n(514356);let v=e=>{let{works:t,title:n,icon:a,loaded:l,tileGAE:s,marginTopClasses:c=""}=e,d=(0,h.a)("sm"),[v,p]=(0,i.useState)(d?2:t.length);return(0,i.useEffect)(()=>{p(d?2:t.length)},[d,t]),(0,r.jsx)("div",{className:"flex justify-center px-4 py-0 sm:px-6 lg:p-0 ".concat(c),children:(0,r.jsx)("div",{className:"w-full",style:{maxWidth:"72.25rem"},children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-5 flex items-center gap-x-2 lg:m-0 lg:mb-6",children:[a,(0,r.jsx)("p",{className:"desktop heading-four m-0 justify-center p-0",children:n})]}),(0,r.jsx)("div",{className:"tailwind-hidden w-full lg:block",style:{height:"342px"},children:(0,r.jsx)(m.Z,{showBothScrollButtonsMobile:!0,maxTilesToMoveAndShow:{sm:1,md:3,lg:4},marginBetweenCards:16,children:l?t.map((e,t)=>(0,r.jsx)(f.ZP,{hideIcons:!0,gaeEvent:{category:s.category,action:s.action,label:s.label,props:{contentname:e.title,contentposition:t+1,page_section:"Free Courses"}},data:{author_id:Number(e.author_id),id:e.id,title:e.title,brief_summary:e.brief_summary,read_time:e.read_time,collection_type:e.collection_type,target_audience:e.target_audience,course_url_slug:e.course_url_slug,work_type:e.work_type,is_priced:e.is_priced,price:e.price}},e.id)):[void 0,void 0,void 0,void 0].map(()=>(0,r.jsx)(u.B2CContentLoadingTile,{}))})}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-y-3 lg:hidden lg:w-0",children:[l?t.slice(0,v).map(e=>(0,r.jsx)(g.Z,{work:{author_id:String(e.author_id),id:e.id,title:e.title,brief_summary:e.brief_summary,workType:e.work_type,coverImageUrl:e.cover_image_serving_url,url:e.course_url_slug,target_audience:e.target_audience,targetAudience:e.target_audience,learner_tags:e.learner_tags,read_time:e.read_time,course_url_slug:e.course_url_slug},hideIcons:!0,onClick:()=>(0,o.Z)(s.category,s.action,s.label)},e.id)):[void 0,void 0].map(()=>(0,r.jsx)(u.B2CContentLoadingTile,{})),t.length-v>0&&(0,r.jsxs)("button",{className:"contained-primary m-0 mt-1 h-11 p-0",style:{borderRadius:"2px"},type:"button","aria-label":"view more tiles",onClick:()=>{p(t.length)},children:["View ",t.length-v," more"]})]})]})})})},p=e=>{let{works:t,title:n,icon:a,loaded:l,scrollGAE:i,tileGAE:c,marginTopClasses:d=""}=e;return l?(0,r.jsx)(s.ZP,{triggerOnce:!0,threshold:.8,onChange:()=>window.scrollY>500&&(0,o.Z)(i.category,i.action,i.label),className:"flex w-full flex-col",children:(0,r.jsx)(v,{works:t,title:n,tileGAE:c,icon:a,loaded:l,marginTopClasses:d})}):(0,r.jsx)("div",{className:"flex w-full flex-col",children:(0,r.jsx)(v,{works:t,title:n,tileGAE:c,icon:a,loaded:l,marginTopClasses:d})})};t.Z=e=>{let{lowerLevelWorks:t,higherLevelWorks:n,collectionTitle:a,loaded:i}=e;return(0,r.jsxs)("div",{className:"p-0 lg:px-6",id:c.X.RECOMMENDATIONS,children:[t.length>0&&(0,r.jsx)(p,{works:t,title:"Recommended before starting this course",icon:(0,r.jsx)("div",{className:"bg-def-primary-default flex h-6 w-6 items-center justify-center rounded-full sm:h-10 sm:w-10",children:(0,r.jsx)(d.l,{className:"h-4 w-4 sm:h-6 sm:w-6"})}),loaded:i,scrollGAE:{category:"CONTENT_HOMEPAGE",action:"SCROLLED_COURSE_LOWER_RECOMMENDATIONS",label:a},tileGAE:{category:"CONTENT_HOMEPAGE",action:"CLICKED_COURSE_LOW_RECOMMENDATION",label:a}}),n.length>0&&(0,r.jsx)(p,{works:n,title:"Related Courses and Skill Paths",icon:(0,r.jsx)("div",{className:"bg-def-primary-default flex h-6 w-6 items-center justify-center rounded-full sm:h-10 sm:w-10",children:(0,r.jsx)(d.f,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),loaded:i,scrollGAE:{category:"CONTENT_HOMEPAGE",action:"SCROLLED_COURSE_HIGHER_RECOMMENDATIONS",label:a},tileGAE:{category:"CONTENT_HOMEPAGE",action:"CLICKED_COURSE_HIGH_RECOMMENDATION",label:a},marginTopClasses:"mt-9 sm:mt-16 lg:mt-24"}),(0,r.jsx)("div",{className:"tailwind-hidden mt-8 justify-center lg:flex",children:(0,r.jsx)(l(),{href:"/explore",children:(0,r.jsx)("button",{className:"contained-primary rounded","aria-label":"navigate to explore page",type:"button",children:"Explore Full Catalog"})})})]})}},602829:function(e,t,n){"use strict";n.r(t),n.d(t,{B2CContentLoadingTile:function(){return E},default:function(){return w}});var r,a,l,i=n(931549),s=n(44194),c=n(985222),o=n(520649),d=n(580811),u=n(752021),h=n(161514),m=n(881762);let f=(e,t)=>(0,m.Z)({url:"/api/collection/".concat(e,"/").concat(t,"/related-content"),type:"GET"});function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var v=function(e){return s.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:36,height:36,fill:"none",viewBox:"0 0 36 36"},e),r||(r=s.createElement("rect",{width:36,height:36,fill:"fill-current",rx:18})),a||(a=s.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:2,d:"M11.223 25.5c-.856 0-1.556-.65-1.556-1.445 0 0 0-.84.008-2.952.75 0 2.644-.173 2.644-2.29 0-1.649-1.794-1.934-2.644-1.934v-2.925c0-.795.692-1.446 1.548-1.446h2.453c-.272-1.155.467-2.841 2.793-2.841 1.857 0 2.646 2.009 2.417 2.841h2.453c.856 0 1.556.65 1.556 1.446v2.891c.719-.304 2.605-.015 2.605 2.13 0 2.144-2.015 2.237-2.605 2.097v2.983c0 .795-.7 1.445-1.556 1.445H11.223Z"})),l||(l=s.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:2,d:"m16.453 16.148 2.262 2.247-2.202 2.266"})))},p=n(476045),x=n(125038),_=n(514356);let E=()=>(0,i.jsxs)("div",{className:"flex animate-pulse flex-col lg:flex-row lg:space-x-4",children:[(0,i.jsx)("div",{className:"tailwind-hidden w-full bg-gray-L50 dark:bg-gray-D1400 lg:block",style:{width:"272px",height:"306px"}}),(0,i.jsx)("div",{className:"block w-full bg-gray-L50 dark:bg-gray-D1400 lg:hidden",style:{height:"107px"}})]});var w=e=>{var t;
1let[n,r]=(0,s.useState)("LOADING"),[a,l]=(0,s.useState)([]),{authorId:m,collectionId:g,courseTitle:w}=e,{ref:N,inView:L}=(0,c.YD)({threshold:1,triggerOnce:!0});return(0,s.useEffect)(()=>{L&&(0,h.Z)("RECOMMENDATIONS","SCROLLED_RELATEDCONTENT_COURSE",w)},[L]),(0,s.useEffect)(()=>{m&&g&&f(m,g).then(t=>{var n;let a=JSON.parse(t);l(a),r("LOADED"),e.setHasApprovedRelatedContent(!!(null===(n=a.related_content)||void 0===n?void 0:n.length))}).catch(()=>{r("ERROR"),e.setHasApprovedRelatedContent(!1)})},[m,g]),(0,i.jsx)("div",{className:"sm:mt-8",children:((null===(t=a.related_content)||void 0===t?void 0:t.length)||"LOADING"===n)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"my-6 flex items-center gap-x-2 ",id:d.X.RELATED_CONTENT,children:[(0,i.jsx)(v,{className:"content-primary-default fill-indigo-25 dark:fill-gray-D1100"}),(0,i.jsx)("p",{className:"desktop headings heading-four m-0 p-0",children:"Practice and apply your skills"})]}),"LOADED"===n?(0,i.jsx)("div",{className:"mb-5 flex h-auto w-full flex-col space-y-4 lg:h-[298px] lg:flex-row lg:space-x-4 lg:space-y-0",children:(a.related_content||[]).slice(0,2).map((e,t)=>(0,i.jsxs)("div",{className:"w-full lg:min-w-[272px] lg:max-w-[272px]","data-testid":"b2c-content-tile-container",children:[(0,i.jsx)("div",{className:"block lg:hidden",children:(0,i.jsx)(_.Z,{hideIcons:!0,work:{author_id:String(e.author_id),id:e.id,title:String(e.title),workType:e.collection_type,url:String(e.url_slug),target_audience:e.target_audience,read_time:Number(e.collection_type===o.dL.STANDALONE_PROJECT?e.read_time:e.time_limit?60*e.time_limit:e.collection_read_time),coverImageUrl:String(e.cover_image_serving_url)}})}),(0,i.jsx)("div",{className:"tailwind-hidden lg:block",children:(0,i.jsx)(p.Z,{ref:t?null:N,tileType:e.collection_type===o.dL.STANDALONE_PROJECT?u.Y.PROJECT:u.Y.CLOUD_LAB,title:e.title,authorId:e.author_id,workId:e.work_id,workLink:(0,x.gV)(e.author_id,e.work_id,e.collection_type,e.url_slug),target_audience:e.target_audience,readTime:e.collection_type===o.dL.STANDALONE_PROJECT?e.read_time:e.time_limit?60*e.time_limit:e.collection_read_time,brief_summary:e.brief_summary,hideIcons:!0,alignmentClass:""},t)})]}))}):(0,i.jsx)("div",{className:"mb-5 mt-4 flex w-full space-x-4",children:[void 0,void 0].map(()=>(0,i.jsx)(E,{}))})]})})}},403254:function(e,t,n){"use strict";var r=n(931549);n(44194),t.Z=()=>(0,r.jsxs)("div",{className:"flex flex-col items-center gap-y-2 pb-2 pt-4 lg:flex-row",children:[(0,r.jsx)("div",{className:"h-10 animate-pulse rounded border-gray-L200 bg-gray-L50 dark:border dark:border-solid dark:border-gray-D1400 dark:bg-gray-D1300 lg:mr-6",style:{width:"265px"}}),(0,r.jsx)("div",{className:"flex gap-x-4",children:[,,].fill(0).map(e=>(0,r.jsx)("div",{className:"h-11 w-28 animate-pulse rounded-full border-gray-L200 bg-gray-L50 dark:border dark:border-solid dark:border-gray-D1400 dark:bg-gray-D1300"}))})]})},929602:function(e,t,n){"use strict";var r=n(931549),a=n(44194),l=n(869896),i=n(764412),s=n(648997),c=n(301284),o=n(342602),d=n(218339);let u=(e,t)=>e?"sm":t?"md":"lg";t.Z=a.memo(e=>{let{children:t,showBothScrollButtonsMobile:n=!0,maxTilesToMoveAndShow:h,showBothScrollButtons:m,marginBetweenCards:f=24,scrollButtonsMaxWidth:g="75rem",cardsSpacing:v="space-x-4",sideMargins:p=""}=e,x=(0,c.pY)(),_=x.sidebarCollapsed,E=a.useRef(null),w=a.useRef(null),N=(0,i.a)("sm"),L=(0,i.a)("lg"),A=h[u(N,L)],[y,b]=a.useState(A),[C,j]=a.useState(-1),[O,P]=a.useState(y),S=a.useRef(A),T=a.useRef(-1),k=x.sidebarType===c.mQ.ENTERPRISE,I=(0,o.W)(),D=e=>{P(O<e?e:O),S.current=e,b(e)},R=e=>{T.current=e,j(e)},G=()=>{var e;let t=null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;let n=(t.width?t.width:t.right-t.left)+f,r=(T.current+1)*n,a=null==w?void 0:w.current;a&&(0,l.X)({element:a,targetLeft:r,targetTop:0})},Z=e=>{if(e===s.I.NEXT&&y<(null==t?void 0:t.length)){let e=S.current+A,n=T.current+A;e>(null==t?void 0:t.length)&&(e=t.length,n=t.length-1-A),D(e),R(n)}else if(T.current>-1){let e=S.current-A,t=T.current-A;t<0&&(e=A,t=-1),R(t),D(e)}G()};a.useEffect(()=>{D(A),R(-1);let e=null==w?void 0:w.current;e&&(0,l.X)({element:e,targetLeft:0,targetTop:0})},[N,L,t]);let M=e=>{if(0===e)D(A),R(-1);else{let n=A*(e+1),r=n-1-A;n>(null==t?void 0:t.length)&&(n=t.length,r=t.length-1-A),D(n),R(r)}G()},{handleTouchEnd:H,handleTouchStart:V,handleTouchMove:U}=(0,d.p)(Z,S,T,t),B=C>-1,W=y<(null==t?void 0:t.length),F=(null==t?void 0:t.length)?Array(Math.ceil(t.length/A)):[];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative ".concat(p," w-full"),children:[(0,r.jsx)("div",{className:"flex ".concat(v," overflow-x-hidden py-4"),ref:w,onTouchStart:V,onTouchMove:U,onTouchEnd:H,children:null==t?void 0:t.slice(0,O+A).map((e,t)=>a.cloneElement(e,{ref:t===Math.max(0,C+1)?E:null,key:t}))}),(0,r.jsxs)("div",{className:"w-[95vw] ".concat(k?"sm:w-[93vw]":_?"sm:w-[97vw]":"sm:w-[85vw] lg:w-[90vw]"," ").concat(I&&k&&!_?"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(n?"flex":"tailwind-hidden sm:flex","\n "),style:{maxWidth:g},children:[B||m?(0,r.jsx)(s.W,{buttonType:s.I.PREV,disabled:!B,navigateCard:Z}):(0,r.jsx)("div",{}),m||W&&t.length>A?(0,r.jsx)(s.W,{buttonType:s.I.NEXT,disabled:!W,navigateCard:Z}):(0,r.jsx)("div",{})]})]}),(0,r.jsx)(()=>(0,r.jsx)("div",{className:"mx-auto mt-5 flex h-1 w-max space-x-1.5",children:F.length>1&&F.fill(!0).map((e,t)=>{let n=0===t&&y<=A||y>A*t&&y<=A*(t+1);return(0,r.jsx)("div",{className:"h-1 w-3 rounded ".concat(n?"bg-indigo-500 dark:bg-indigo-200":"bg-indigo-200 dark:bg-gray-D900"," cursor-pointer"),onClick:()=>{M(t)}})})}),{})]})})},763089:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r,a,l,i=n(931549),s=n(746931),c=n.n(s),o=n(44194),d=n(489758),u=n(573316);
1function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var m=function(e){return o.createElement("svg",h({width:21,height:20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("mask",{id:"mask0_3561_17629",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:21,height:20},r||(r=o.createElement("rect",{x:.667969,width:20,height:20,fill:"currentColor"}))),a||(a=o.createElement("g",{mask:"url(#mask0_3561_17629)"},o.createElement("path",{d:"M6.91797 5.83337L9.41797 8.33337L6.91797 10.8334",stroke:"currentColor",strokeWidth:1.5}),o.createElement("path",{d:"M18.5833 17.532L15.6346 14.5833H4.25646C3.83549 14.5833 3.47917 14.4374 3.1875 14.1458C2.89583 13.8541 2.75 13.4978 2.75 13.0768V3.58971C2.75 3.16874 2.89583 2.81242 3.1875 2.52075C3.47917 2.22909 3.83549 2.08325 4.25646 2.08325H17.0769C17.4979 2.08325 17.8542 2.22909 18.1458 2.52075C18.4375 2.81242 18.5833 3.16874 18.5833 3.58971V17.532ZM4.25646 13.3333H16.1667L17.3333 14.4872V3.58971C17.3333 3.52554 17.3066 3.46679 17.2531 3.41346C17.1998 3.35999 17.141 3.33325 17.0769 3.33325H4.25646C4.19229 3.33325 4.13354 3.35999 4.08021 3.41346C4.02674 3.46679 4 3.52554 4 3.58971V13.0768C4 13.141 4.02674 13.1997 4.08021 13.253C4.13354 13.3065 4.19229 13.3333 4.25646 13.3333Z",fill:"currentColor"}))))},f=n(580389);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var v=function(e){return o.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:17,height:14,fill:"none",viewBox:"0 0 17 14"},e),l||(l=o.createElement("path",{fill:"currentColor",d:"M3.987 10.06h5.305V7.995H3.987v2.067Zm7.292 0h2.067V3.94h-2.067v6.12ZM3.987 6.007h5.305V3.94H3.987v2.067Zm-1.73 7.244c-.422 0-.778-.146-1.07-.438a1.454 1.454 0 0 1-.437-1.069V2.256c0-.42.146-.777.438-1.068A1.454 1.454 0 0 1 2.256.75h12.82c.422 0 .778.146 1.07.438.291.291.437.647.437 1.068v9.487c0 .421-.145.778-.437 1.07a1.454 1.454 0 0 1-1.07.437H2.257Zm0-1.25h12.82a.244.244 0 0 0 .176-.08.244.244 0 0 0 .08-.177V2.256a.244.244 0 0 0-.08-.176.245.245 0 0 0-.176-.08H2.257a.245.245 0 0 0-.177.08.245.245 0 0 0-.08.176v9.487c0 .065.027.123.08.177.054.053.112.08.176.08Z"})))},p=e=>{let{content:t=[],contentLoaded:n}=e;return(0,i.jsxs)("div",{className:"bg-def-neutral-secondary flex w-full flex-col items-center px-5 py-16 lg:px-18 ".concat((null==t?void 0:t.length)>0||!n?"":"hidden"),children:[(0,i.jsx)("p",{className:"heading-six sm:heading-three minor-third mb-3 w-full sm:mb-6 sm:text-center",children:"Free Resources"}),n||(null==t?void 0:t.length)!==0?!!(null==t?void 0:t.length)&&(0,i.jsx)("div",{className:"flex w-full flex-wrap gap-y-4",style:{maxWidth:"1140px"},children:t.map(e=>(0,i.jsxs)("div",{className:"w-full py-2 sm:w-1/2 sm:px-4 lg:w-1/3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-x-2.5",children:[e.type===u.n.BLOG?(0,i.jsx)(f.Z,{}):e.type===u.n.ANSWER?(0,i.jsx)(m,{}):(0,i.jsx)(v,{}),(0,i.jsx)("p",{className:"content-primary-default m-0 p-0 font-bold capitalize",children:e.type})]}),(0,i.jsx)(c(),{href:e.url,className:"hover:content-primary-default m-0 mt-2 inline-block w-auto cursor-pointer p-0",style:{fontSize:"16px"},children:e.title})]},e.title))}):(0,i.jsx)("div",{className:"mt-16",children:(0,i.jsx)(d.default,{})})]})}},573316:function(e,t,n){"use strict";var r,a;n.d(t,{n:function(){return r}}),(a=r||(r={})).BLOG="blog",a.ANSWER="answer",a.CHEATSHEET="cheatsheet",a.NEWSLETTER="newsletter",a.GUIDE="guide"},648997:function(e,t,n){"use strict";n.d(t,{I:function(){return a},W:function(){return s}});var r,a,l=n(931549);n(44194);var i=n(290016);(r=a||(a={})).NEXT="next",r.PREV="prev";let s=e=>{let{buttonType:t,disabled:n,navigateCard:r}=e;return(0,l.jsx)("div",{className:"".concat(n?"cursor-not-allowed bg-gray-L300":"cursor-pointer bg-white hover:bg-gray-L50 hover:shadow-sm dark:bg-gray-D1100 hover:dark:bg-gray-D1200"," z-10 h-10 w-10 rounded-full border border-solid border-indigo-200 shadow-md sm:h-12 sm:w-12 ").concat("next"===t?"-right-5":"-left-5"," pointer-events-auto flex items-center justify-center transition-all dark:border-gray-D1000"),onClick:()=>{n||r(t)},"data-testid":"navigationButtons",children:(0,l.jsx)(i.Z,{className:"".concat("next"===t?"-rotate-90":"rotate-90"," h-6 w-6 text-indigo-700 dark:text-indigo-50")})})}},230763:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r=n(931549),a=n(791127),l=n(629099),i=n(210624);let s=e=>{let{details:t,parentClassName:n="max-w-sm",overlayParentClasses:s="",overlayParentTextClasses:c="normal-case",iconClassName:o="h-4 w-4",zIndex:d="z-20"}=e;return(0,r.jsx)(l.default,{backgroundColor:"bg-gray-L1000 dark:bg-gray-D700",overlay:t,overlayParentClasses:"px-4 py-1.5 ".concat(s),overlayParentTextClasses:"tracking-normal font-normal ".concat(c),overlayParentTextColorClasses:"dark:text-gray-D50 text-white",parentClasses:"dark:text-gray-D200 flex items-center space-x-1 text-gray-L500 ".concat(n),zIndex:d,position:a.YS,showPointer:!1,children:(0,r.jsx)(i.Z,{className:"stroke-current ".concat(o)})})}},895041:function(e,t,n){"use strict";n.d(t,{P:function(){return T},Z:function(){return k}});var r,a,l,i=n(931549),s=n(107565);let c="Get hands-on with AWS cloud services â no setup or cleanup required",o="Unlock your coding journey with our diverse courses and guided learning paths.";var d=n(994837),u=n(884403),h=n(78289),m=n(228923),f=n(991668),g=n(486337),v=n(585033),p=n(304918),x=n(44194);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var E=function(e){return x.createElement("svg",_({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=x.createElement("g",{clipPath:"url(#a)"},x.createElement("path",{d:"M6.18173 8.80086c-.00452.1749.01706.34949.064
101.51802.05172.14412.11399.28423.18631.4192.02589.03991.04002.08631.04075.13388 0 .05819-.03493.11644-.11058.17464l-.36667.2444c-.04424.0319-.09685.0501-.15132.0524-.06629-.0046-.12852-.0336-.1746-.0815-.07845-.0843-.14864-.1759-.2096-.27353-.05819-.09894-.11644-.2096-.18042-.34341-.45398.53534-1.02439.80304-1.71121.80304-.48907 0-.87886-.1397-1.16405-.4192-.28519-.27944-.43072-.65173-.43072-1.11735 0-.49472.1746-.89632.52966-1.19898.35506-.30266.82646-.454 1.42595-.454.20647.00168.41259.01724.61696.04657.21536.02911.43654.07566.66933.12806v-.42489c0-.44249-.09316-.75081-.27355-.93126-.18631-.18043-.50054-.26773-.94872-.26773-.21181-.00001-.42285.02539-.62861.07566-.21396.05097-.42402.1171-.6286.19789-.06619.02961-.13424.05489-.20371.07566-.03014.00993-.06147.01581-.09316.01746-.08148 0-.12223-.05819-.12223-.18042v-.28519c0-.09316.01164-.16303.04075-.20371.04392-.05306.09979-.09495.16303-.12224.23344-.1155.47956-.2034.73337-.2619.29657-.0761.6018-.11328.90797-.11059.69275 0 1.19898.15713 1.52493.47144.32012.3143.48308.79156.48308 1.43181v1.88577h.01165Zm-2.36304.88469c.20418-.00225.40665-.03763.59949-.10477.21363-.0739.40423-.20236.55292-.37262.09382-.10729.16155-.23482.19789-.37263.03999-.16578.05953-.33584.05819-.50637v-.2442c-.17648-.04296-.35522-.07599-.53539-.09895-.18149-.02299-.36424-.0346-.54719-.03476-.38996 0-.67515.07565-.86721.23289-.19207.15723-.2852.37831-.2852.66932 0 .27355.06987.47726.21536.61696.13974.14553.34341.21536.61114.21536v-.00023Zm4.67371.62865c-.10477 0-.17461-.0175-.22118-.0582-.04658-.035-.0873-.1165-.12224-.227L6.78115 5.52985c-.02651-.07531-.04409-.15347-.05237-.23289 0-.09315.04658-.14552.13974-.14552h.57038c.11059 0 .18631.01747.227.05819.04658.03493.08148.11645.11645.227l.9778 3.85304.90794-3.85294c.02911-.11644.06401-.19207.11059-.227.04658-.03493.12806-.05819.23292-.05819h.4658c.1105 0 .1863.01747.2328.05819.0466.03493.0873.11645.1106.227l.9196 3.89961 1.0066-3.89961c.035-.11644.0757-.19207.1165-.227.0466-.03493.1222-.05819.227-.05819h.5413c.0931 0 .1455.04658.1455.14552-.0014.03132-.0052.06247-.0116.09316-.0092.04965-.0228.09836-.0408.14552l-1.4027 4.49906c-.0349.1164-.0756.1921-.1222.2271-.0658.0421-.1432.0624-.2212.0581h-.5006c-.1106 0-.1863-.0174-.2329-.0581-.0466-.0408-.0873-.1165-.1106-.2329l-.902-3.75416-.89641 3.74826c-.02911.1165-.06401.1921-.11059.2329-.04658.0409-.12806.0582-.23289.0582H8.4924Zm7.4791.1571c-.3019.0003-.6027-.0349-.8963-.1048-.291-.0698-.518-.1455-.6694-.2329-.0931-.0523-.1571-.1106-.1804-.163-.0226-.05138-.0345-.10686-.0349-.16302v-.29663c0-.12224.0466-.18043.1339-.18043.0356.00012.071.00602.1047.01747.035.01164.0873.03493.1456.05819.2055.09042.4202.15871.6402.20371.228.04628.46.06968.6926.06987.3667 0 .6519-.06401.8498-.19207.0948-.0572.1728-.1385.226-.23563.0531-.09712.0796-.20659.0768-.31728.002-.07493-.0108-.14952-.0378-.21946-.027-.06993-.0675-.13382-.1194-.18797-.1047-.11059-.3027-.2096-.5878-.30276l-.8441-.26186c-.4249-.13385-.7392-.33174-.9313-.59371-.1874-.24155-.2897-.53825-.291-.84396-.0047-.22536.0494-.44805.1571-.64607.104-.18725.247-.35.4192-.47726.1815-.13733.3867-.23997.6054-.30276.2382-.06858.4853-.10186.7332-.09877.1303-.00095.2606.00683.3899.02328.1339.01747.2562.04076.3783.06402.1165.02911.227.05819.3318.09315.0849.02627.1669.06139.2445.10477.0685.03456.1282.08434.1746.14552.0378.05664.0562.12406.0523.19207v.27355c0 .12223-.0465.18631-.1338.18631-.0466 0-.1223-.02329-.2212-.06987-.3318-.15133-.7043-.227-1.1175-.227-.3318 0-.5937.05237-.7741.16302-.1804.11066-.2736.27947-.2736.51802-.0016.07728.0132.15404.0433.22525.03.0712.0748.13527.1313.18799.1165.11059.3318.22118.6403.32013l.8265.26177c.4192.13388.7217.32012.9021.55873.1777.23414.2719.52097.2678.81485.003.23378-.0489.46502-.1514.67515-.1032.19921-.2481.37389-.4248.51219-.1922.1496-.4116.2603-.6461.3261-.2696.0829-.5503.1241-.8323.1222v-.0001Z",fill:"currentColor"}),x.createElement("path",{d:"M17.0714 13.2998c-1.9149 1.4144-4.697 2.1652-7.08911 2.1652-3.35252.0001-6.37327-1.2396-8.65476-3.3-.18043-.163-.01747-.3841.19789-.2562 2.4678 1.4318 5.51184 2.299 8.66058 2.299 2.1245 0 4.4584-.4425 6.6061-1.3504.3201-.1455.5937.2096.2795.4425l-.0002-.0001Z",fill:"#F90"}),x.createElement("path",{d:"M17.8689 12.3916c-.2445-.3143-1.6181-.1513-2.2409-.0757-.1863.0233-.2153-.1397-.0465-.2619
11.0942-.7682 2.8927-.5471 3.1022-.291.2096.2619-.0582 2.0604-1.0826 2.9218-.1571.1339-.3085.064-.2386-.1106.2328-.5762.7508-1.8741.5064-2.1826Z",fill:"#F90"}))),a||(a=x.createElement("defs",null,x.createElement("clipPath",{id:"a"},x.createElement("path",{fill:"#fff",transform:"translate(1.25 5)",d:"M0 0h17.5v10.4649H0z"})))))},w=n(558444),N=n(522283),L=n(804001),A=n(230763);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var b=function(e){return x.createElement("svg",y({xmlns:"http: www.w3.org 2000 svg",width:20,height:15,viewBox:"0 0 15 15"},e),l||(l=x.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"m11.077 12.066-.752-3.22 2.502-2.168.896-.776-1.18-.1-3.295-.28L7.96 2.485 7.5 1.399l-.46 1.086-1.288 3.037-3.294.28-1.181.1.896.776 2.502 2.167-.752 3.221-.27 1.154 1.015-.612 2.832-1.71 2.832 1.71 1.014.612-.27-1.154Z"})))},C=n(598885),j=n(15096),O=n(887324),P=n(878459),S=n(34033);let T=e=>{var t,n,r,a,l,s;let{features:v,featureSetType:p,validity_months:x,containerHeight:_,isL2CLandingPageOrWidget:w=!1,showDetail
1sModal:y=!0}=e,b=null!==(t=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.projects_count}))&&void 0!==t?t:g.a,T=(0,S.zA)(null!==(n=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.works_count}))&&void 0!==n?n:u.V,10),k=null!==(r=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.cloudlabs_count}))&&void 0!==r?r:d.V,I=null!==(a=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_courses_count}))&&void 0!==a?a:h.$,D=null!==(l=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_paths_count}))&&void 0!==l?l:m.M,R=(0,S.zA)(I+D,10),G=null!==(s=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_projects_count}))&&void 0!==s?s:f.s,Z=p===j.kZ.L2C,M=null==v?void 0:v.map(e=>{let t=e.startsWith("_p_"),n=e.startsWith("_pp_"),r=e.startsWith("_e_"),a={text:(n?e.split("_pp_")[1]:t?e.split("_p_")[1]:r?e.split("_e_")[1]:e).trim(),isPremium:t,isExcluded:r,isPremiumPlus:n},l=e.toLowerCase();return l.includes("project")&&(Z?a.text="".concat(G," ").concat(a.text):a.text="".concat(b,"+ ").concat(a.text)),!l.includes("cloud")||l.includes("challenges")||l.includes("cloud labs assistant")||(a.text="".concat(k,"+ ").concat(a.text)),l.includes("hands-on courses")?a.text="".concat(T,"+ ").concat(w?a.text:"Courses"):l.includes("hands-on courses and certificates")&&(a.text="".concat(T,"+ ").concat(w?a.text:"Courses & Certificates")),l.includes("months of access")&&(a.text="".concat(x," ").concat(x>1?a.text:a.text.replace("months","month"))),!r&&(!l.includes("cloud")||l.includes("challenges")||l.includes("cloud labs assistant")||(a={...a,details:c}),l.includes("project")&&(a={...a,details:"Get hands-on with the industry's top technologies via full-featured projects"}),l.includes("personalized paths")&&(a={...a,details:"Level up faster with a personalized curriculum tailored to your goals"}),l.includes("3 ai mock interviews")&&(a={...a,details:"Test your skills with simulated technical interviews (includes System Design, Coding Interviews, and more)"}),l.includes("7 ai mock interviews")&&(a={...a,details:"Put your skills to the test with simulated System Design and Coding Interviews"}),l.includes("hands-on courses")&&(a={...a,details:"Unlimited access to the world's largest catalog of AI-powered tech skills courses for developers"}),l.includes("completion certificate")&&(a={...a,details:"Boost your portfolio and show off your skills"}),l.includes("ai-powered")&&(a={...a,details:"Learn smarter with personalized learning features, including AI Code Mentor and Instant Code Feedback"}),l.includes("personalized interview prep")&&(a={...a,details:"Prep faster for your entire interview loop with PAL (Personalized Adaptive Learning)"}),l.includes("hand-selected courses")&&w&&(a={...a,text:"".concat(R," ").concat(a.text),details:o}),l.includes("newsletter")&&(a={...a,details:"Stay ahead with curated industry insights for developers. News & case studies on AI, System Design, Cloud, and more."})),a});return(0,i.jsxs)("div",{className:"".concat(null!=_?_:w?"h-56":"h-40"),children:[!w&&(0,i.jsx)("div",{className:"mb-4 font-medium text-gray-L1000 dark:text-gray-D25",children:p===j.kZ.PREMIUM?(0,i.jsxs)("span",{className:"content-secondary",children:["Everything in ",(0,i.jsx)("span",{className:"content-emphasis",children:"Standard"}),", plus"]}):p===j.kZ.PREMIUM_PLUS?(0,i.jsxs)("span",{className:"content-secondary",children:["Everything in ",(0,i.jsx)("span",{className:"content-emphasis",children:"Premium"}),", plus"]}):(0,i.jsx)("span",{className:"content-secondary",children:"Plan includes"})}),null==M?void 0:M.map((e,t)=>(0,i.jsxs)("div",{className:"flex items-center ".concat(w?"mb-2.5":"mb-2"),"data-testid":"feature-item",children:[[O.I.AWS_CLOUD_LABS,O.I.CLOUD_LABS,O.I.CLOUD_LABS_CHALLENGES].some(t=>e.text.includes(t))?(0,i.jsx)(E,{className:"h-5 w-5 fill-current text-gray-L900 dark:text-white"}):[O.I.MOCK_INTERVIEWS,O.I.PERSONALIZED_INTERVIEW_PREP,O.I.CODE_FEEDBACK,O.I.MOCK_INTERVIEWS_7_PER_MONTH,O.I.EXPERT_INTERVIEW_COACH,O.I.CODE_DEBUGGER,O.I.MOCK_INTERVIEWS_3_PER_MONTH,O.I.ASK_AI,O.I.BREAKOUT_SESSIONS,O.I.CLOUD_LABS_ASSISTANT].some(t=>e.text.includes(t))?(0,i.jsx)(L.Z,{id:"features_list_sparkles",className:"content-brand-default h-5 w-5"}
1):[O.I.CAREER_TRACKS,O.I.IN_DEPTH_LANGUAGE_PATHS,O.I.HAND_SELECTED_COURSES,O.I.STANDALONE_PROJECTS].some(t=>e.text.includes(t))?(0,i.jsx)(C.Z,{className:"flex-shrink-0 dark:opacity-80"}):(0,i.jsx)(N.Z,{className:"h-5 w-5 flex-shrink-0 p-0.5 text-indigo-400 dark:text-indigo-300"}),(0,i.jsx)("span",{className:"content-default ml-4 ".concat(w?"text-sm":"text-base"),children:e.text.includes(O.I.AI_POWERED_FEATURES)?(0,i.jsx)("strong",{children:e.text}):e.text}),[O.I.CODE_DEBUGGER,O.I.CLOUD_LABS_CHALLENGES,O.I.EXPERT_INTERVIEW_COACH,O.I.FENZO,O.I.BREAKOUT_SESSIONS,O.I.CLOUD_LABS_ASSISTANT].some(t=>e.text.includes(t))&&(0,i.jsx)("div",{className:"content-light bg-badge-trending ml-1.5 flex items-center rounded px-1 text-xs",style:{fontSize:"10px",height:"18px"},children:"New"}),y&&w&&e.details&&(0,i.jsx)(A.v,{details:e.details,parentClassName:"ml-2",overlayParentClasses:"max-w-xs",overlayParentTextClasses:"align-left",zIndex:"z-10"})]},"feature-item-".concat(t)))]})};var k=e=>{var t,n,r,a,l,x,_;let{features:E,useModularTypescale:L,showDetail
1s:y=!0,isPaymentWidget:O=!1,isDarkBackground:T=!1,featureSetType:k}=e,I=s.iw.IS_B2B,D=null!==(n=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.projects_count}))&&void 0!==n?n:g.a,R=null!==(r=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_projects_count}))&&void 0!==r?r:f.s,G=null!==(a=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_courses_count}))&&void 0!==a?a:h.$,Z=null!==(l=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.l2c_paths_count}))&&void 0!==l?l:m.M,M=(0,S.zA)(null!==(x=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.works_count}))&&void 0!==x?x:u.V,10),H=(0,S.zA)(G+Z,10),V=null!==(_=(0,P.h)(e=>{var t;return null===(t=e.userConfig.data)||void 0===t?void 0:t.educativeStats.cloudlabs_count}))&&void 0!==_?_:d.V,U=k===j.kZ.L2C,B=null===(t=I?j.Hi:E)||void 0===t?void 0:t.map(e=>{let t=e.startsWith("_p_"),n=e.startsWith("_pp_"),r=e.startsWith("_e_"),a={text:(n?e.split("_pp_")[1]:t?e.split("_p_")[1]:r?e.split("_e_")[1]:e).trim(),isPremium:t,isExcluded:r,isPremiumPlus:n},l=e.toLowerCase();return l.includes("projects")&&!O&&(U?a.text="".concat(R," ").concat(a.text):a.text="".concat(D," ").concat(a.text)),l.includes("cloud")&&!O&&(a.text="".concat(V," ").concat(a.text)),l.includes("hands-on courses")&&!O&&(a.text="".concat(M,"+ ").concat(a.text)),y&&!r&&(l.includes("cloud")&&(a={...a,details:c}),l.includes("projects")&&(a={...a,details:p.S}),l.includes("personalized paths")&&(a={...a,details:v.m}),l.includes("hand-selected courses")&&U&&(a={...a,text:"".concat(H," ").concat(a.text),details:o}),l.includes("mock interviews")&&(a={...a,details:"Level up your System Design & Coding Interview prep with AI-powered Mock Interviews"}),l.includes("hands-on courses")&&(a={...a,details:"Access full library of AI-enabled courses, incl. Interview Prep, System Design, Data Science, and more"}),l.includes("ai-powered feature")&&(a={...a,details:[void 0,j.kZ.STANDARD,j.kZ.BASIC].includes(k)?"Instant Code Feedback and Personalized Learning Recommendations included in every course":"Access enhanced AI features, e.g. Mock Interviews and Explain with AI"})),a});return(0,i.jsx)(i.Fragment,{children:null==B?void 0:B.map((e,t)=>(0,i.jsxs)("div",{className:"flex ".concat(O?"mb-5 items-start":"mb-4 items-center"),"data-testid":"feature-item",children:[e.isPremiumPlus?(0,i.jsx)(C.Z,{className:"flex-shrink-0 dark:opacity-80"}):e.isPremium?(0,i.jsx)(b,{className:"flex-shrink-0 text-indigo-400 dark:text-indigo-200"}):e.isExcluded?(0,i.jsx)(w.Z,{className:"h-5 w-5 fill-current text-gray-L400 dark:text-gray-D800"}):(0,i.jsx)(N.Z,{className:"flex-shrink-0 p-0.5 dark:text-indigo-200 ".concat(O?"h-7 w-7 text-indigo-500":"h-5 w-5 text-indigo-400")}),(0,i.jsx)("span",{className:"".concat(L?O?"body-medium":"body-small":"text-base"," ml-4 ").concat(O?"text-black":"text-gray-L600"," dark:text-gray-D200 ").concat(e.isPremium||e.isPremiumPlus?"font-bold":"","\n ").concat(e.isExcluded?"text-gray-L400 dark:text-gray-D800":"").concat(T?" text-gray-L50 dark:text-gray-D200":""),children:e.text.includes("AI-Powered Features")?(0,i.jsx)("strong",{children:e.text}):e.text}),e.details&&(0,i.jsx)(A.v,{details:e.details,parentClassName:"".concat(T?"dark:text-gray-D400":""," ml-2")})]},"feature-item-".concat(t)))})}},598885:function(e,t,n){"use strict";var r=n(931549);n(44194);var a=n(787693);t.Z=e=>{let{className:t=""}=e,n=(0,a.EL)("star_icon_");return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"15",fill:"none",viewBox:"0 0 15 15",className:t,children:[(0,r.jsx)("path",{fill:"url(#".concat(n,")"),d:"M7.4 11.9H8l3.6 2.2c.4.2.9-.1.8-.6l-1-4.1c0-.2 0-.4.2-.5L14.8 6c.3-.3.2-.9-.3-1l-4.3-.3a.5.5 0 0 1-.4-.3L8.2.5a.5.5 0 0 0-1 0l-1.6 4c-.1.2-.3.3-.5.3L1 5.2c-.5 0-.6.6-.3.9l3.2 2.8c.2.1.2.3.2.5l-1 4.1c0 .5.4.8.8.6l3.6-2.2Z"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"".concat(n),x1:"-2.6",x2:"21.1",y1:"-45",y2:"-44.2",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"#FFCA7E"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#FF9F29"})]})})]})}},957862:function(e,t,n){"use strict";n.r(t);var r=n(931549),a=n(332936),l=n(44194),i=n(107565),s=n(38196),c=n(791127),o=n(629099),d=n(820915),u=n(53765),h=n(161514),m=n(935911),f=n(888075),g=n(6335),v=n(248686),p=n(720782),x=n(865546),_=n(395124),E=n(389392),w=n(262603);let N=e=>{let{onClose:t,isB2BDomain:n}=e,a=(0,l.useRef)(null);return(0,l.useEffect)(()=>{a.current&&requestAnimationFrame(()=>{a.current.scrollIntoView({behavior:"smooth",block:"center"})})},[]),(0,r.jsxs)("div",{ref:a,className:"".concat(i.iw.IS_B2B?"w-64":"w-60 "," devpath:w-60 mt-2 rounded bg-indigo-500 p-4 dark:bg-gray-D1200"),children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsxs)("div",{className:"flex w-full justify-between",children:[(0,r.jsx)("span",{className:"heading-six text-xl font-bold text-white dark:text-gray-D200",children:"Learning Calendar"}),(0,r.jsx)(g.Z,{onClick:e=>{t(),e.preventDefault(),e.stopPropagation()},className:"h-4 w-4 text-white","aria-label":"Close"})]}),(0,r.jsx)("span",{className:"mt-2 text-sm text-white dark:text-gray-D200",children:"We just launched a new feature where you can schedule and track y
1our learning goals."})]}),(0,r.jsx)("div",{style:{right:"52px"},className:"".concat(i.iw.IS_B2B?"-bottom-2":"top-0"," absolute h-4 w-4 -translate-x-1/2 rotate-45 bg-indigo-500 dark:bg-gray-D1200")})]})};t.default=e=>{let{title:t,authorId:n,collectionId:g,workType:L,contentUrl:A,buttonClasses:y,iconClasses:b="h-6 w-6 text-gray-L400 dark:text-gray-D500",queryTrigger:C,showLearnCalendarTour:j=!1}=e,{userInfoState:O}=(0,_.su)(),P=(0,w.TL)(),S=(0,l.useRef)(!1),T=(0,a.useRouter)(),k=(0,a.usePathname)(),I=(0,a.useSearchParams)(),[D,R]=(0,l.useState)(j);if(!A){let e=new URL(k,u.O);A=e.origin+e.pathname}let G=I.get("addToCalendar");(0,l.useEffect)(()=>{C&&(G?Z():E.n.close())},[C,G]);let Z=async()=>{if(O.loggedOut)(0,s.q)({ru:k}),(0,h.Z)("learning_calendar","Clicked_Add_LearningEvent_In_Logged_Out_Mode","".concat(t,", ").concat(A,", ").concat(L),null,{path:k});else{(0,h.Z)("learning_calendar","Clicked_Add_LearningEvent","".concat(t,", ").concat(A,", ").concat(L));let{is_authorized:e}=await (0,m.X)(v.x.GOOGLE_CALENDAR).then(JSON.parse);e?P(E.n.show(x.Gb,{eventTitle:t,authorId:n,collectionId:g,workType:L,contentUrl:A})):(S.current=!0,(0,p.M)("/api/authorize/google-service-oauth?service=".concat(v.x.GOOGLE_CALENDAR)))}};return(0,l.useEffect)(()=>{let e=e=>{if((0,p.E)(e)&&"string"==typeof e.data){var r;S.current&&(null===(r=e.data)||void 0===r?void 0:r.includes("educativeGoogleServiceAuthenticated"))&&(S.current=!1,P(E.n.show(x.Gb,{eventTitle:t,authorId:n,collectionId:g})))}};return window.addEventListener("message",e,!1),()=>window.removeEventListener("message",e,!1)},[n,g,P,t]),(0,r.jsxs)("div",{className:"relative inline-block",children:[(0,r.jsx)(o.default,{trigger:d.dQ,overlay:"Learning Calendar",position:c.xR,children:(0,r.jsx)("button",{onClick:e=>{if(C){let e=new URL(window.location.href);e.searchParams.set("addToCalendar","true"),T.push(e.toString())}else Z();e.preventDefault(),e.stopPropagation()},className:y,"aria-label":"Add to Calendar",children:(0,r.jsx)(f.Z,{className:b})})}),D&&(0,r.jsx)("div",{className:"fixed left-0 right-2 z-50 mx-2 flex justify-center",children:(0,r.jsx)(N,{onClose:()=>{R(!1),"true"===I.get("learnCalendarTour")&&window.history.replaceState(null,"",k)},isB2BDomain:i.iw.IS_B2B})})]})}},248686:function(e,t,n){"use strict";var r,a;n.d(t,{Y:function(){return r},x:function(){return l}});let l={GOOGLE_DRIVE:"google_drive",GOOGLE_DOCS:"google_docs",GOOGLE_SHEETS:"google_sheets",GOOGLE_CALENDAR:"google_calendar"};(a=r||(r={}))[a.FETCHING=0]="FETCHING",a[a.TOKEN_SET=1]="TOKEN_SET",a[a.TOKEN_EMPTY=2]="TOKEN_EMPTY",a[a.FAILURE=3]="FAILURE"},720782:function(e,t,n){"use strict";n.d(t,{E:function(){return a},M:function(){return r}});let r=e=>{let t=(window.screen.width-600)/2,n=(window.screen.height-600)/2;window.open(e,"_blank","popup width=".concat(600,", height=").concat(600,", left=").concat(t,", top=").concat(n))},a=e=>e.origin.endsWith("educative.io")||e.origin.endsWith("localhost:3000")||e.origin.endsWith("eduqative.com")||e.origin.endsWith("devpath.com")},722748:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(931549),a=n(946078),l=n.n(a);let i=e=>{let{isDarkMode:t,...n}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 79 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,r.jsx)("path",{d:"M6.2 10.3 2.7 7c-.6-.6-1.5-.6-2.1 0C0 7.5 0 8.4.6 9L5 13.6c.6.5 1.6.5 2.2 0l4.3-4.3L9.4 7l-3.2 3.2Z",fill:"#1AAD94"}),(0,r.jsx)("path",{d:"m19.3 3.7-6.7 6.6L6 3.7c-.6-.6-1.5-.6-2.1 0-.6.5-.6 1.5 0 2.1l7.7 7.8c.6.5 1.6.5 2.2 0l7.8-7.8c.5-.6.5-1.6 0-2.1-.6-.6-1.6-.6-2.2 0Z",fill:"#F2AE20"}),(0,r.jsx)("path",{d:"M24.7 9 20 13.6c-.6.5-1.5.5-2.1 0L7 2.6C6.4 2 6.4 1 7 .4 7.6 0 8.6 0 9.1.4l10 10 3.4-3.5c.6-.6 1.6-.6 2.2 0 .6.6.6 1.5 0 2.1Z",fill:"#E76450"}),(0,r.jsx)("path",{d:"M18.2.4c-.5-.5-1.5-.5-2.1 0L9.4 7.1l2.2 2.2 6.6-6.7c.6-.6.6-1.6 0-2.2Z",fill:"#1AAD94"}),(0,r.jsx)("path",{d:"M33 1.5h-2v11H38v-1.7h-5V1.5Zm9 3.3c1 0 1.8.4 2.2 1l.1-.9H46v7.5h-1.6v-.8c-.5.5-1.2 1-2.4 1-2 0-3.4-1.7-3.4-4 0-2.2 1.4-3.8 3.4-3.8Zm.3 1.6c-1.1 0-2 .9-2 2.3s.9 2.3 2 2.3c1 0 1.4-.5 1.8-1.1V7.5c-.4-.7-.9-1.1-1.8-1.1Zm8.1-4h-1.8V5h-1.4v1.6h1.4v3.3c0 1.8 1.1 2.8 2.8 2.8.8 0 1.3-.2 1.7-.5l-.5-1.4a2 2 0 0 1-1 .3c-.7 0-1.2-.5-1.2-1.2V6.5h2.3V4.9h-2.3V2.4Zm6.2 0h-1.8V5h-1.4v1.6h1.4v3.3c0 1.8 1 2.8 2.8 2.8.7 0 1.3-.2 1.7-.5l-.5-1.4a2 2 0 0 1-1 .3c-.7 0-1.2-.5-1.2-1.2V6.5h2.2V4.9h-2.2V2.4ZM62.3 5h-1.8v7.5h1.8V5Zm
1-1-3.5a1 1 0 0 0-1 1.1 1 1 0 0 0 1 1.1 1 1 0 0 0 1.2-1 1 1 0 0 0-1.1-1.2Zm6.4 3.4c-2.4 0-3.9 1.6-3.9 3.9 0 2.2 1.6 3.9 3.9 3.9 1.3 0 2.3-.6 3-1.7l-1.3-1c-.3.7-.9 1.1-1.7 1.1-1.3 0-2-1-2-2.3 0-1.3.6-2.3 2-2.3.8 0 1.4.4 1.7 1l1.3-1c-.7-1-1.7-1.6-3-1.6Zm7.4 0c2.3 0 3.4 1.7 3.4 3.8v.6h-5.3c0 1.2.8 1.9 2 1.9 1 0 1.5-.4 1.9-.9l1.2 1c-.7 1-1.7 1.4-3 1.4-2.4 0-3.9-1.7-3.9-3.9 0-2.3 1.5-4 3.7-4Zm0 1.4c-1 0-1.8.7-1.9 1.7h3.6c0-1-.7-1.7-1.7-1.7Z",className:l().lattice})]})}},514356:function(e,t,n){"use strict";var r=n(931549),a=n(78044),l=n.n(a),i=n(746931),s=n.n(i),c=n(332936),o=n(44194),d=n(520649),u=n(861796),h=n(111799),m=n(693619),f=n(190183),g=n(900765),v=n(125038),p=n(998760),x=n(351224),_=n(546316),E=n.n(_),w=n(228810);let N=l()(()=>Promise.all([n.e(855310),n.e(264386)]).then(n.bind(n,264386)),{loadableGenerated:{webpack:()=>[264386]}}),L=[(0,r.jsx)(m.Z,{className:"h-4 w-4"}),(0,r.jsx)(h.Z,{className:"h-4 w-4"}),(0,r.jsx)(u.Z,{className:"h-4 w-4"}),(0,r.jsx)("div",{className:"flex h-4 w-4 items-center justify-center font-sans text-gray-L1000 dark:text-gray-D200",style:{fontSize:"10px"},children:"+3"})];t.Z=e=>{var t,n;let{work:a,hideIcons:l,onClick:i,hideWorkType:u=!1,gapClasses:h="",paddingClasses:m="px-4 pb-6 pt-2",statsMargin:_="mt-2",courseTitleClasses:A="".concat(E()["landing-page"]," heading-six !font-medium"),targetAudienceClasses:y="content-default-subdued dark:text-gray-D200",readTimeColorClasses:b="content-default-subdued",backgroundColorClasses:C="bg-def-neutral-default",difficultyIconClasses:j="fill-current text-gray-L500 dark:text-gray-D100",timerIconClasses:O="content-default-subdued h-4 w-4",readTimeHoursString:P=" h",savedWorkIds:S={},pinnedByReader:T=!1,updateSavedWorkIds:k=(e,t)=>{},isBlog:I=!1,showPinUnpinButton:D=!1,readTimeMinutesString:R=" m"}=e,G=p.wW[a.target_audience],Z=(0,v.ni)(a.workType),M=(0,v.gV)(Number(a.author_id),a.id,a.workType,a.url),[{pinned:H,pinnedStatusData:V},U]=o.useState({pinned:T,pinnedStatusData:{status:"",text:""}}),B=(0,x.QT)(),W=(0,c.usePathname)(),F=(0,c.useRouter)(),z=o.useRef(!1),J=()=>{z.current||(z.current=!0,F.prefetch(M))},K=g.Aq.some(e=>W.includes(e)),Y=g.nc.get(Z)||{category:"",actions:{save:"",unsave:""}};return(0,r.jsx)(s(),{href:M,prefetch:!1,onClick:i,onMouseEnter:J,onTouchStart:J,children:(0,r.jsxs)("div",{className:"".concat(h," ").concat(m," ").concat(C," group flex min-h-28 w-full flex-col rounded-md border border-solid border-gray-L200 dark:border-gray-D900"),children:[!u&&(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("div",{className:"flex items-center gap-x-2 text-current",children:(0,r.jsx)(g.Vv,{showNewTag:!1,tileType:Z,textColorClasses:g.GR[Z],backgroundColorClasses:g.z5[Z],showCourseInfoHeader:!0,onMobile:!0})}),D&&K&&(0,r.jsx)(N,{pinned:H,setPinned:U,author_id:null===(t=a.author_id)||void 0===t?void 0:t.toString(),work_id:null===(n=a.id)||void 0===n?void 0:n.toString(),title:a.title,work_type:Z.toLowerCase().includes(d.dL.PATH)?d.dL.PATH:d.dL.COLLECTION,pinnedStatusData:V,eventCategory:I?" EDUCATIVE_BLOGS":"EDUCATIVE_ANSWERS",eventActions:Y.actions,tileType:Z,handleUnpinLearnSavedTab:W.endsWith("/saved")?e=>{setTimeout(()=>{null==B||B.updateSavedWorks({author_id:a.author_id,work_id:a.id,work_type:e})},500)}:()=>{},updateSavedWorkIds:k,customStyle:{iconUnPinnedColorClass:"content-medium-neutral",iconPinnedColorClass:"content-inverse-primary-default fill-bold-primary-rest dark:fill-white dark:text-white",iconHoverClass:"hover:bg-indigo-50 dark:hover:bg-gray-D1100",margin:"mr-0",height:"h-5",width:"w-5"}})]}),(0,r.jsx)("div",{children:(0,r.jsx)("span",{id:"course-title",className:A,children:a.title})}),(0,r.jsxs)("div",{className:"".concat(_," flex gap-x-6"),children:[(0,r.jsx)("div",{className:"flex h-5 w-14 ".concat(l?"tailwind-hidden":""),children:L.map((e,t)=>(0,r.jsx)("div",{className:"bg-def-neutral-default flex h-5 w-5 items-center justify-center rounded-lg border-solid border-gray-L200 dark:border-gray-D600",style:{borderWidth:"0.5px",marginLeft:0!==t?"-8px":"0"},children:e},t))}),!!a.target_audience&&(0,r.jsx)("div",{className:"flex gap-x-1",children:(0,r.jsxs)("div",{className:"flex w-full flex-row",children:[["beginner","intermediate","advanced"].includes(a.target_audience)&&(0,r.jsx)(G.icon,{className:j,"aria-label":G.ariaLabel}),(0,r.jsx)("span",{className:"ml-1 capitalize ".concat(y),"aria-label":"".concat(a.target_audience," Difficulty Level"),children:a.target_audience})]})}),!!a.read_time&&(0,r.jsxs)("div",{className:"flex items-center gap-x-1",children:[(0,r.jsx)(f.Z,{className:O}),(0,r.jsx)("span",{className:"caption-text ".concat(b),children:(0,w.nM)(a.read_time,!1,!1,P,R)})]})]})]})})}},531907:function(e,t,n){"use strict";n.r(t);var r=n(931549);n(44194),t.default=e=>{let{label:t,labelParentClasses:n="font-bold",ariaIndex:a,ariaPrefix:l,icon:i,iconParentClasses:s="",children:c,activeStateIndex:o,fullWidth:d,color:u="",textColor:h,indicatorColor:m="",inactiveIndicatorColor:f="",className:g="",isIconRight:v,showIndicator:p=!0,showActiveBorder:x=!0,setRef:_,dataTour:E,padding:w="py-2.5 px-4",hoverClasses:N="hover:bg-gray-buttonHover dark:hover:bg-gray-D1300",boun
1dary:L,showInactiveBorder:A=!1,isSPA:y=!1,spa_revamp:b=!1,...C}=e,j=o===a,O="transition ease-in duration-500".concat(x?" border-0 border-b-2 border-solid":""," ").concat(m," "),P="".concat(A?"":"border-transparent"," ").concat(f);return(0,r.jsxs)("button",{className:"".concat(b?"":"navigation-text").concat(L?" relative":""," rounded-none outline-transparent focus-visible:border focus-visible:border-blue-200 ").concat(u," ").concat(N," ").concat(w," transition-none ").concat(h||(j?"text-black ".concat(y?"dark:text-white":"dark:text-gray-D200"):"text-gray-L600 dark:text-gray-D400")," ").concat(p?j?O:P:""," ").concat(d?"w-full":""," ").concat(g).concat(y?"".concat(j?" bg-white dark:bg-gray-D1400":" bg-gray-L50 dark:bg-gray-D1500"," rounded hover:bg-gray-buttonHover dark:hover:bg-gray-D1300"):""),ref:e=>{_&&_(e)},"data-tour":E,...C,...l?{id:"".concat(l,"-tab-").concat(a)}:{},children:[v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:n,children:t}),i&&(0,r.jsx)("span",{className:"icon-right fill-current ".concat(s),children:i})]}),!v&&(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)("span",{className:"icon-left fill-current ".concat(s),children:i}),(0,r.jsx)("span",{className:n,children:t})]}),!!L&&(0,r.jsx)("span",{className:"absolute right-0 ".concat(L)})]})}},408186:function(e,t,n){"use strict";n.r(t);var r=n(931549),a=n(44194),l=n(384465),i=n(133467);let s=e=>e&&e.offsetWidth<e.scrollWidth,c={scrollable:"overflow-x-auto no-scrollbar",fullWidth:"overflow-hidden w-full justify-center",fullWidthScrollable:"overflow-x-auto no-scrollbar w-full",multiline:"flex-wrap",standard:"",disableScroll:"overflow-hidden"};t.default=e=>{let{value:t,children:n,className:o="",variantClassName:d="",variant:u="standard",scrollButton:h=!1,color:m="bg-white dark:bg-gray-D1500",indicatorColor:f="border-indigo-500 dark:border-indigo-400",inactiveIndicatorColor:g="",style:v={},isExplore:p=!1,...x}=e;m=p?"bg-white dark:bg-gray-D1400":m;let _=a.Children.map(n,e=>a.isValidElement(e)?a.cloneElement(e,{activeStateIndex:t,fullWidth:-1!==["fullWidth","fullWidthScrollable"].indexOf(u),color:m,indicatorColor:f,inactiveIndicatorColor:g}):e),E=a.useRef(null),w=(e,t)=>{let n=e.offsetWidth/2;e.scrollBy({left:t?n:-n,behavior:"smooth"})};return(0,r.jsxs)("div",{className:"flex items-center font-sans ".concat(o),style:v,children:["scrollable"===u&&h&&(null===E.current?(0,r.jsx)("div",{className:"h-11 w-11 flex-shrink-0"}):s(E.current)&&(0,r.jsx)("button",{title:"chevron-left",className:"icon-default rounded-full",onClick:()=>w(E.current,!1),children:(0,r.jsx)(l.Z,{className:"h-5 w-5"})})),(0,r.jsx)("div",{ref:E,className:"flex ".concat(c[u]," ").concat(d),...x,children:_}),"scrollable"===u&&h&&(null===E.current?(0,r.jsx)("div",{className:"h-11 w-11 flex-shrink-0"}):s(E.current)&&(0,r.jsx)("button",{className:"icon-default rounded-full",title:"chevron-right",onClick:()=>w(E.current,!0),children:(0,r.jsx)(i.Z,{className:"h-5 w-5"})}))]})}},253094:function(e,t,n){"use strict";n.d(t,{DS:function(){return o},TW:function(){return h},ZI:function(){return u},lV:function(){return d}});var r=n(226142),a=n(263025),l=n(520649),i=n(161514),s=n(15096);let c=(e,t)=>"/checkout/".concat(s.vl.CERTIFICATE_PURCHASE,"?plan=").concat(e,"_").concat(t),o=e=>{var t;return!!e&&(!e.is_priced||0===(null!==(t=e.discounted_price)&&void 0!==t?t:e.price))},d=(e,t,n,r)=>{var a,l,s,o;let d=null!==(s=null==e?void 0:null===(a=e.instance)||void 0===a?void 0:a.details.author_id)&&void 0!==s?s:n,u=null!==(o=null==e?void 0:null===(l=e.instance)||void 0===l?void 0:l.details.collection_id)&&void 0!==o?o:r;(0,i.Z)("BUY","BUY_CERTIFICATE_INIT_LESSON_PAGE"),t.push(c(d,u))},u=(e,t,n,i,s,c,o)=>(0,a.H)(e,t,i).then(a=>{let d=JSON.parse(a),u="/certificates?showModal=open";if(s){var h;let n=null!==(h=d.short_id)&&void 0!==h?h:new r.Z().encode(parseInt(e),parseInt(t),parseInt(s),d.revision);u+="&certificateHash=".concat(n)}let m=i===l.dL.PATH?c===l.Ss.LEARNING_PLAN?"#learning-plan":"#path":o===l.dL.STANDALONE_PROJECT?"#standalone-project":o===l.dL.STANDALONE_CLOUD_LAB?"#cloud-lab":"";n.push(u+m)}).catch(()=>n.push("/certificates?author_id=".concat(e,"&work_id=").concat(t,"&work_type=").concat(i))),h=e=>"".concat(e===l.dL.COLLECTION?"Course":e===l.dL.STANDALONE_PROJECT?"Project":e===l.dL.STANDALONE_CLOUD_LAB?"Cloud Lab":e===l.Ss.REGULAR?"Path":"Personalized Path")},876187:function(e,t,n){"use strict";n.d(t,{$K:function(){return u},E:function(){return c},Jx:function(){return i},r4:function(){return s}});var r=n(881762),a=n(573316),l=n(125110);let i=e=>e.split(",").map(e=>e.trim()).filter(e=>!l.sK.includes(e.toLowerCase()))||[],s=e=>e.split(" ").map(e=>e.trim()).filter(e=>!l.R$.includes(e.toLowerCase()))||[],c=(e,t)=>{let n=encodeURIComponent(e);return(0,r.Z)({url:"/api/reader/featured_items?search_string=".concat(n,"&only_courses=true&limit=").concat(t)},!0)},o=e=>(0,r.Z)({url:"/api/recommendations/item/".concat(e,"/bucket")},!0),d=(e,t,n)=>n===a.n.ANSWER?"/answers/".concat(e):n===a.n.BLOG?"/blog/".concat(e):null!=e?e:t,u=async(e,t,n)=>{let r=[],a=[];try{let t=await o(e),{related_collections:n,related_articles:l}=JSON.parse(t.data);l&&(a=l.map(e=>({type:e.recommendation_type,title:e.custom_title||e.title,url:d(e.original_url,e.url,e.recommendation_type)}))),n&&(r=n.map(e=>({author_id:String(e.author_id),id:e.id,brief_summary:e.brief_summary,workType:e.collection_type||e.doc_type,collection_type:e.collection_type,work_type:e.work_type,target_audience:e.target_audience,read_time:e.read_time||e.collection_read_time||0,title:e.custom_title||e.title,course_url_slug:e.course_url_slug,url:e.course_url_slug,coverImageUrl:e.cover_image_serving_url})))}catch(e){console.warn("Error fetching bucket recommendations")}try{!t||(null==r?void 0:r.length)||(r=await t())}catch(e){console.warn("Error fetching legacy collection recommendations")}try{!n||(null==a?void 0:a.length)||(a=await n())}catch(e){console.warn("Error fetching legacy article recommendations")}return{relatedCollections:r,relatedArticles:a}}},342602:function(e,t,n){"use strict";n.d(t,{W:function(){return l}});var r=n(44194);let a={OverlayEnd:n(47019).q,MaxNavigationWidth:"1570px"},l=()=>{let[e,t]=r.useState(!1),n=r.useRef(null);return r.useEffect(()=>{n.current=window.matchMedia("(max-width: ".concat(a.MaxNavigationWidth,") and (min-width: ").concat(a.OverlayEnd,")")),t(n.current.matches)},[]),r.useEffect(()=>{if(!n.current)return;let e=e=>t(e.matches);return n.current.addEventListener("change",e),()=>n.current.removeEventListener?n.current.removeEventListener("change",e):n.current.removeListener(e)},[n]),e}},218339:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r,a,l=n(44194);(r=a||(a={})).NEXT="next",r.PREV="prev";let i=(e,t,n,r)=>{let a=(0,l.useRef)(null),i=(0,l.useRef)(null),s=(0,l.useRef)(!1);return{handleTouchStart:e=>{let t=e.touches[0];a.current=t.clientX,i.current=t.clientY},handleTouchMove:l=>{if(!a.current||!i.current)return;let c=l.touches[0].clientX,o=l.touches[0].clientY,d=a.current-c;if(Math.abs(d)>Math.abs(i.current-o)){if(s.current)return;s.current=!0,d>0&&t.current<r.length?e("next"):-1!==n.current&&d<0&&e("prev")}a.current=null,i.current=null},handleTouchEnd:()=>{s.current=!1}}}},946078:function(e){e.exports={lattice:"Icons_lattice__wNJ_c",dark:"dark"}}}]);
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.