PageSourceSearch

https://www.educative.io/static/_next/static/chunks/628371-1b0f060c0c5d0002.js

js educative.io collected 2026-09-24 08:40:42 UTC 62,566 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[628371,59508],{77949:function(e,t,n){var i,l,o=n(44194);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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",a({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-arrow-left"},e),i||(i=o.createElement("line",{x1:19,y1:12,x2:5,y2:12})),l||(l=o.createElement("polyline",{points:"12 19 5 12 12 5"})))}},454389:function(e,t,n){var i,l=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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return l.createElement("svg",o({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-moon"},e),i||(i=l.createElement("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})))}},745431:function(e,t,n){var i,l,o,a,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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",s({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=r.createElement("path",{d:"M11 7h2v2h-2V7ZM11 11h2v6h-2v-6Z",fill:"current",fillOpacity:.5})),l||(l=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0Z",fill:"current",fillOpacity:.5})),o||(o=r.createElement("path",{d:"M11 7h2v2h-2V7ZM11 11h2v6h-2v-6Z",stroke:"current"})),a||(a=r.createElement("path",{clipRule:"evenodd",d:"M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0Z",stroke:"current"})))}},745444:function(e,t,n){var i,l,o=n(44194);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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24},e),i||(i=o.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"})),l||(l=o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm1-5a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16z"})))}},330667:function(e,t,n){var i,l=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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return l.createElement("svg",o({width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=l.createElement("path",{d:"M10.5 7.2c1.81 0 3.3 1.49 3.3 3.3 0 1.81-1.49 3.3-3.3 3.3a3.31 3.31 0 0 1-3.3-3.3c0-1.81 1.49-3.3 3.3-3.3Zm0-2.2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2.86 11.45H.96A.96.96 0 0 1 0 10.5c0-.53.43-.95.95-.95h1.91c.53 0 .96.42.96.95s-.43.95-.96.95ZM20.05 11.45h-1.91a.96.96 0 0 1-.96-.95c0-.53.43-.95.96-.95h1.9c.53 0 .96.42.96.95s-.43.95-.95.95ZM9.55 2.86V.96c0-.53.42-.96.95-.96s.95.43.95.95v1.91c0 .53-.42.96-.95.96a.96.96 0 0 1-.95-.96ZM9.55 20.05v-1.91c0-.53.42-.96.95-.96s.95.43.95.96v1.9c0 .53-.42.96-.95.96a.96.96 0 0 1-.95-.95ZM3.42 3.42a.95.95 0 0 1 1.34 0l1.02 1c.37.37.36.98 0 1.36a.95.95 0 0 1-1.35 0L3.42 4.76a.95.95 0 0 1 0-1.34ZM15.22 15.22a.95.95 0 0 1 1.35 0l1.01 1.02a.95.95 0 1 1-1.34 1.34l-1.01-1a.95.95 0 0 1 0-1.35ZM17.58 3.42c.38.36.38.97 0 1.34l-1 1.02a.95.95 0 1 1-1.35-1.35l1-1.01a.95.95 0 0 1 1.35 0ZM5.78 15.22c.37.37.37.98 0 1.35l-1.02 1.01a.95.95 0 1 1-1.35-1.35l1.02-1a.95.95 0 0 1 1.35 0Z",fill:"currentColor"})))}},205131:function(e,t,n){var i=n(931549),l=n(44194),o=n(754748),a=n(742075);t.Z=e=>{let{className:t="",position:n,children:r,renderTooltip:s,hideTooltip:d=!1,closeable:u=!1,fullWidth:c=!1,mainClassName:v="",positionTopClasses:_="bottom-12",positionLeftClasses:p="-bottom-6 right-12",positionBottomClasses:h="top-12",positionTopLeftClasses:m="bottom-14 right-0",positionTopRightClasses:f="bottom-12 left-0",...E}=e,[g,S]=l.useState(!1);return(0,i.jsxs)("div",{className:(0,a.N)("relative flex justify-center",c&&"w-full",v),...E,children:[(g||u)&&!d&&(0,i.jsx)("div",{id:"tooltip",className:"absolute w-max ".concat("top"===n?_:"left"
1===n?p:"top-left"===n?m:"bottom"===n?h:"top-right"===n?f:""," ").concat(t),style:{zIndex:o.Li},children:s}),(0,i.jsx)("div",{id:"overlay",className:(0,a.N)("flex items-center justify-center",c&&"w-full"),onMouseOver:()=>S(!0),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:r})]})}},888371:function(e,t){t.Z="dont_show_discount_off"},641884:function(e,t){t.Z="institute_discount_percentage"},151346:function(e,t){t.Z="show_decimal_value_on_unlimited"},559916:function(e,t){t.Z="white_listed_domains_for_institute_discount"},834014:function(e,t,n){n.d(t,{E:function(){return i}});let i={CAT:"cat",SETS:"sets"}},78289:function(e,t,n){n.d(t,{$:function(){return i}});let i=35},228923:function(e,t,n){n.d(t,{M:function(){return i}});let i=5},991668:function(e,t,n){n.d(t,{s:function(){return i}});let i=6},52586:function(e,t,n){var i,l;n.d(t,{B:function(){return i}}),(l=i||(i={}))[l.PATHS_LANDING_PAGE=3017]="PATHS_LANDING_PAGE",l[l.CLOUD_LABS_LANDING_PAGE=3018]="CLOUD_LABS_LANDING_PAGE",l[l.LEARNING_PLAN_LANDING_PAGE=3019]="LEARNING_PLAN_LANDING_PAGE",l[l.PROJECTS_LANDING_PAGE=3020]="PROJECTS_LANDING_PAGE",l[l.ASSESSMENTS_LANDING_PAGE=3021]="ASSESSMENTS_LANDING_PAGE",l[l.EXPLORE_LANDING_PAGE=3022]="EXPLORE_LANDING_PAGE",l[l.COURSE_HOMEPAGE=3023]="COURSE_HOMEPAGE",l[l.PROJECT_HOMEPAGE=3024]="PROJECT_HOMEPAGE",l[l.CLOUD_LAB_HOMEPAGE=3025]="CLOUD_LAB_HOMEPAGE",l[l.SKILL_PATH_HOME_PAGE=3026]="SKILL_PATH_HOME_PAGE",l[l.L2C_LANDING_PAGE=3027]="L2C_LANDING_PAGE",l[l.PERSONALIZED_PATHS_LANDING_PAGE=3029]="PERSONALIZED_PATHS_LANDING_PAGE",l[l.LEARN_HOME_PAGE=3030]="LEARN_HOME_PAGE",l[l.LEARN_IN_PROGRESS_PAGE=3031]="LEARN_IN_PROGRESS_PAGE",l[l.LEARN_SAVED_PAGE=3032]="LEARN_SAVED_PAGE",l[l.LEARN_COMPLETED_PAGE=3033]="LEARN_COMPLETED_PAGE",l[l.LEARN_MY_COURSES_PAGE=3034]="LEARN_MY_COURSES_PAGE",l[l.LEARN_DEFAULT_LANDING_PAGE=3035]="LEARN_DEFAULT_LANDING_PAGE",l[l.EDUCATIVE_HOMEPAGE=3036]="EDUCATIVE_HOMEPAGE",l[l.EDUCATIVE_PRICING_PAGE=3037]="EDUCATIVE_PRICING_PAGE",l[l.EDUCATIVE_ANSWERS_PAGE=3038]="EDUCATIVE_ANSWERS_PAGE",l[l.INTERVIEW_PREP_LANDING_PAGE=3039]="INTERVIEW_PREP_LANDING_PAGE",l[l.GENERATIVE_AI_LANDING_PAGE=3040]="GENERATIVE_AI_LANDING_PAGE",l[l.DATA_SCIENCE_LANDING_PAGE=3041]="DATA_SCIENCE_LANDING_PAGE",l[l.DATA_SCIENCE_SUBLANDING_PAGE=3042]="DATA_SCIENCE_SUBLANDING_PAGE",l[l.CATALOG_LANDING_PAGE=3043]="CATALOG_LANDING_PAGE",l[l.TRANSACTION_PAGE=3044]="TRANSACTION_PAGE",l[l.AGENT_LANDING_PAGE=3052]="AGENT_LANDING_PAGE"},742075:function(e,t,n){n.d(t,{N:function(){return i}});let i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}},951622:function(e,t,n){n.d(t,{T:function(){return o}});var i=n(881762),l=n(794218);let o=e=>{let{author_id:t,collection_id:n,assessment_id:o,assessment_type:a=l.Q.REGULAR,discard_attempt:r=!1,pathAuthorId:s=null,pathId:d=null,pathTitle:u=null}=e;return(0,i.Z)({url:"/api/".concat([l.Q.SKILL_ASSESSMENT,l.Q.ENTERPRISE_ASSESSMENT].includes(a)?"skill-assessment":"assessment","/").concat(t,"/").concat(n,"/").concat(o,"?assessment_type=").concat(a).concat(r?"&discard=true":""),type:"POST",data:{timestamp:new Date().toISOString(),...s&&d&&u?{path_author_id:s,path_id:d,path_title:u}:{}}},!0)}},203099:function(e,t,n){n.d(t,{Z:function(){return i}});let i=(0,n(44194).createContext)(null)},398602:function(e,t,n){n.d(t,{Q:function(){return o}});var i=n(44194),l=n(203099);let o=()=>(0,i.useContext)(l.Z)},940410:function(e,t,n){n.d(t,{U:function(){return o}});var i=n(931549),l=n(551276);let o=e=>{Promise.all([n.e(222926),n.e(855310),n.e(583314),n.e(579125)]).then(n.bind(n,579125)).then(t=>{let n=t.default;(0,l.K)((0,i.jsx)(n,{params:e}))})}},953019:function(e,t,n){n.d(t,{d:function(){return g},g:function(){return S}});var i=n(431319),l=n(262270),o=n(669661),a=n(299082),r=n(799238);let s=(e,t,n)=>!!(null==e?void 0:e.some(e=>{var i,l,o;return null==e?void 0:null===(o=e.discounts_info)||void 0===o?void 0:null===(l=o[t?r.vl.SUBSCRIPTION_UPGRADE:r.vl.SUBSCRIPTION_BUY])||void 0===l?void 0:null===(i=l.line_items)||void 0===i?void 0:i.some(e=>(null==e?void 0:e.is_second_level_discount)&&(null==e?void 0:e.id)!==g&&(null==e?void 0:e.percentage)>=n)})),d=e=>{let{data:t}=(0,l.Pc)(),n=(0,o.X)(),r=s((0,a.q)(),(0,i.YK)(t),e);return{showPillSkeleton:n.isLoading,showPricingToggle:!r}},u=(0,n(466483).Ue)(()=>!0);var c=n(843305),v=n(641884),_=n(559916),p=n(945431),h=n(626119),m=n(670351),f=n(964752),E=n(853224);
1let g="institute_discount",S=e=>{var t,n;let{loggedOut:o,data:a,isLoading:r}=(0,l.Pc)(),f=(0,h.t)(),g=u(),S=parseFloat(null!==(t=(0,E.P)(v.Z,!1))&&void 0!==t?t:"0"),x=(null!==(n=(0,E.P)(_.Z,!1))&&void 0!==n?n:".edu,.ac").split(","),{showPillSkeleton:b,showPricingToggle:y}=d(S),L=(0,i.YK)(a);if(!(0,m.Z)(f)||r||b||!y)return e;let I=e.find(e=>e.subscription_plan_type===p._.USER&&e.is_user_subscribed&&(!e.start_date||new Date(e.start_date)<new Date)),P=(0,c.fJ)(null==a?void 0:a.institute_email,x)&&!s(e,L,S);return!P&&g?N(e,I,S,L,o):P&&!g?A(e,I,L):e},A=(e,t,n)=>e.map(e=>{var i,l,o,a,s,d,u,c,v;if(e.id.includes("monthly")||e.subscription_plan_type!==p._.USER||t&&(0,f.Sq)(e,t))return e;let _=n?r.vl.SUBSCRIPTION_UPGRADE:r.vl.SUBSCRIPTION_BUY,h=null!==(c=null===(a=e.discounts_info)||void 0===a?void 0:null===(o=a[_])||void 0===o?void 0:null===(l=o.line_items)||void 0===l?void 0:null===(i=l.find(e=>e.id===g))||void 0===i?void 0:i.amount)&&void 0!==c?c:0,m=e.discounted_price+h,E=Number((e.monthly_discounted_price+h/e.validity_months).toFixed(2)),S=_===r.vl.SUBSCRIPTION_UPGRADE?e.upgrade_total_price+h:null,A=_===r.vl.SUBSCRIPTION_UPGRADE?Number((e.upgrade_monthly_price+h/e.validity_months).toFixed(2)):null,N={...e.discounts_info,[_]:{line_items:null!==(v=null===(u=e.discounts_info)||void 0===u?void 0:null===(d=u[_])||void 0===d?void 0:null===(s=d.line_items)||void 0===s?void 0:s.filter(e=>e.id!==g))&&void 0!==v?v:[],monthly_discounted_price:E,discounted_price:m}};return{...e,discounted_price:m,monthly_discounted_price:E,discounts_info:N,upgrade_total_price:S,upgrade_monthly_price:A}}),N=(e,t,n,i,l)=>e.map(e=>{var o,a,s,d,u,c,v,_,h,m;if(e.id.includes("monthly")||e.subscription_plan_type!==p._.USER||t&&(0,f.Sq)(e,t))return e;let E=i?r.vl.SUBSCRIPTION_UPGRADE:l?r.vl.SUBSCRIPTION_QUICK_BUY:r.vl.SUBSCRIPTION_BUY,S=null!==(h=null===(d=e.discounts_info)||void 0===d?void 0:null===(s=d[E])||void 0===s?void 0:null===(a=s.line_items)||void 0===a?void 0:null===(o=a.find(e=>!!e.is_second_level_discount))||void 0===o?void 0:o.amount)&&void 0!==h?h:0,A=Math.ceil((e.discounted_price+S)*n/100),N=e.discounted_price+S-A,x=Number((e.monthly_discounted_price+S/e.validity_months-A/e.validity_months).toFixed(2)),b=E===r.vl.SUBSCRIPTION_UPGRADE?e.upgrade_total_price-A:null,y=E===r.vl.SUBSCRIPTION_UPGRADE?Number((e.upgrade_monthly_price-A/e.validity_months).toFixed(2)):null,L={...e.discounts_info,[E]:{line_items:null!==(m=null===(_=e.discounts_info)||void 0===_?void 0:null===(v=_[E])||void 0===v?void 0:null===(c=v.line_items)||void 0===c?void 0:null===(u=c.filter(e=>!e.is_second_level_discount))||void 0===u?void 0:u.concat([{id:g,amount:A,percentage:n,display_name:"Student Discount",is_second_level_discount:!0}]))&&void 0!==m?m:[],monthly_discounted_price:x,discounted_price:N}};return{...e,discounted_price:N,monthly_discounted_price:x,discounts_info:L,upgrade_total_price:Math.max(b,0),upgrade_monthly_price:Math.max(y,0)}})},843305:function(e,t,n){n.d(t,{fJ:function(){return i}}),n(881762);let i=(e,t)=>t.some(t=>e&&e.split("@")[1].includes(t))},397832:function(e,t,n){n.d(t,{Q:function(){return i}});let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return 0;let i=e.upgrade_total_price?e.discounted_price-e.upgrade_total_price:0,l=!i&&e.topup_total_price?e.discounted_price-e.topup_total_price:0;return i?e.upgrade_total_price+i+t:l?e.topup_total_price+l+t:(null!=n?n:e.discounted_price)+t}},18754:function(e,t,n){var i=n(669661);t.Z=()=>{var e,t;return!!(null===(t=(0,i.X)().data)||void 0===t?void 0:null===(e=t.subscription_feature_type)||void 0===e?void 0:e.is_premium_user)}},139171:function(e,t,n){var i=n(669661);t.Z=()=>{var e,t;return!!(null===(t=(0,i.X)().data)||void 0===t?void 0:null===(e=t.subscription_feature_type)||void 0===e?void 0:e.is_premium_plus_user)}},358842:function(e,t,n){n.d(t,{B:function(){return i}});let i=e=>{if(!(null==e?void 0:e.length))return 0;let t=e.filter(e=>e.special_discount_available).map(e=>{var t;return null!==(t=e.updated_special_discount)&&void 0!==t?t:e.special_discount});return Math.max(...t=t.filter(e=>
1e&&!Number.isNaN(e)),0)===Math.min(...t)}},299082:function(e,t,n){n.d(t,{q:function(){return s}});var i=n(44194),l=n(262270),o=n(669661),a=n(945431),r=n(878459);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{data:t}=(0,l.Pc)(),n=!!(null==t?void 0:t.user_id),s=(0,o.X)(),d=(0,r.h)(e=>n?!!s:e.userConfig.loaded),u=(0,r.h)(e=>{var t,i;return n&&d?null===(t=s.data)||void 0===t?void 0:t.subscriptions:null===(i=e.userConfig.data)||void 0===i?void 0:i.subscriptions});return(0,i.useMemo)(()=>{var t;return null!==(t=null==u?void 0:u.filter(t=>t.subscription_plan_type===a._.USER||e&&t.subscription_plan_type===a._.EXTERNAL))&&void 0!==t?t:[]},[u,e])}},348306:function(e,t,n){var i=n(931549);n(44194),t.Z=e=>{let{checkBackgroundClass:t="text-green-700",checkBackgroundStyle:n="",checkFillClass:l="text-white",width:o="24",height:a="24",...r}=e;return(0,i.jsxs)("svg",{width:o,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,i.jsx)("circle",{className:"".concat(t," fill-current"),style:{color:n},cx:"12",cy:"12",r:"12"}),(0,i.jsx)("path",{className:"".concat(l," stroke-current"),d:"m17 9-6.9 7L7 12.8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},617883:function(e,t,n){var i=n(931549);n(44194);var l=n(595403);t.Z=e=>{let{parentClasses:t,countryCode:n}=e;return(0,i.jsx)("div",{className:t,children:(0,i.jsx)(l.Z,{style:{verticalAlign:"bottom",width:"1.5em",height:"1.5em"},countryCode:n,"aria-label":"Flag Icon",svg:!0})})}},891309:function(e,t,n){var i=n(931549),l=n(44194),o=n(930286),a=n(51879),r=n(687335),s=n(305490),d=n(227595),u=n(446327),c=n(454389),v=n(330667),_=n(395124);let p="text-gray-L500 dark:text-gray-D200";t.Z=e=>{let{pageType:t=a.l.COLLECTION_LESSON,fixed:n=!0,customClass:h="",customStyle:m={},bgClasses:f="h-10 w-10 transform rounded-full border-gray-L500 bg-gray-L50 transition duration-500 ease-in-out hover:-translate-y-1 hover:border hover:border-solid dark:border-gray-D200 dark:bg-gray-D1300",iconSize:E="w-5 h-5"}=e,{userInfoState:g,userInfoDispatch:S}=(0,_.su)(),A=g.data,N=g.loaded,[x,b]=(0,o.Z)(["theme","use_system_preference"]),y=(0,s.$)({cookies:x,userInfo:A,userInfoLoaded:N}),[L,I]=(0,l.useState)(!1),P=N&&!!A.user_id;return(0,i.jsx)("div",{className:n?"fixed bottom-0 right-0 z-20 mb-8 mr-6 ".concat(h||"").trim():"",style:m,children:(0,i.jsxs)("div",{onClick:()=>{I(!0),(0,r.P)(()=>
1(0,u.I)({theme:(0,d.Uq)(y),setCookie:(e,t,n)=>b(e,t,n),isLoggedIn:P,source:t,userInfoDispatch:S,afterToggle:()=>I(!1)}))},className:"flex cursor-pointer items-center justify-center ".concat(f," ").concat(L?"animate-pulse":""),children:[(0,i.jsx)(c.Z,{className:"dark:hidden ".concat(E," ").concat(p)}),(0,i.jsx)(v.Z,{className:"tailwind-hidden dark:block ".concat(E," ").concat(p)})]})})}},813765:function(e,t,n){n.r(t),n.d(t,{default:function(){return k},userShareFeedbackInteraction:function(){return C}});var i=n(931549),l=n(44194),o=n(45945),a=n(78044),r=n.n(a),s=n(427391),d=n.n(s),u=n(940410),c=n(738875),v=n(520649),_=n(52586),p=n(960622),h=n(161514),m=n(626119),f=n(881762);let E=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,f.Z)({url:"/api/user/flag/feedback-tooltip",type:"PUT",data:{viewed_feedback_tooltip:e}})};var g=n(348306),S=n(6335),A=n(275307),N=n(243066),x=n(301284),b=n(395124),y=n(262603),L=n(205131);let I=r()(()=>Promise.resolve().then(n.bind(n,622424)),{loadableGenerated:{webpack:()=>[622424]}}),P=[p.d.IN_CONTENT_CLOUD_LAB,p.d.STANDALONE_CLOUD_LAB,p.d.STANDALONE_PROJECT,p.d.IN_CONTENT_PROJECT],T=e=>{let{type:t,icon:n=null,onClickAction:l=null}=e;return(0,i.jsxs)("div",{className:"flex cursor-pointer items-center justify-between px-4 py-4 hover:bg-gray-L50 dark:hover:bg-gray-D1000",onClick:l,children:[(0,i.jsx)("span",{className:"body-small text-gray-L700 dark:text-gray-D25",children:t}),null!=n?n:""]})},C=(e,t,n,i)=>(0,h.Z)(e in _.B?"LANDING_HOMEPAGE_FEEDBACK":t===v.dL.SKILL_ASSESSMENT?"ASSESSMENT":t===v.dL.STANDALONE_PROJECT?"STANDALONE_PROJECT":"INTERACTION",e in _.B?"CLICKED_FEEDBACK_BUTTON":"INTERACTION_USER_FEEDBACK_INIT",e in _.B?n:i),w=e=>{let{authorId:t=null,pageId:n=null,collectionId:a=null,workName:r=null,workType:s=null,pathAuthorId:d=null,pathId:p=null,shotUrl:m=null,onclick:f,setShowToast:E,type:g,userBackFeedback:S,dispatch:A,router:b}=e,y=(0,x.et)(),L=b.asPath;l.useEffect(()=>{let e=e=>{if("Escape"===e.key){var t;null===(t=(0,o.$)())||void 0===t||t.close()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]);let I=()=>(0,h.Z)(s===v.dL.SKILL_ASSESSMENT?"ASSESSMENT":s===v.dL.STANDALONE_PROJECT?"STANDALONE_PROJECT":"INTERACTION","INTERACTION_ASK_AUTHOR_INIT",r),P={ASK_AUTHOR:"Ask the author",SHARE_FEEDBACK:"Share feedback",USERBACK_FEEDBACK:"Give Feedback",SHORTCUT_KEYS:"".concat(y.sidebarCollapsed||y.sidebarType!==x.mQ.SHORTCUT_PANEL?"Show":"Hide"," Shortcut Panel")},w=[N.N.test(b.asPath)&&{type:P.SHORTCUT_KEYS,onClickAction:()=>{y.sidebarCollapsed||y.sidebarType!==x.mQ.SHORTCUT_PANEL?y.setSidebarState({sidebarCollapsed:!1,sidebarType:x.mQ.SHORTCUT_PANEL}):y.setSidebarState({sidebarCollapsed:!0,sidebarType:x.mQ.SHORTCUT_PANEL})}},!S&&{type:P.SHARE_FEEDBACK,onClickAction:()=>{C(g,s,L,r),(0,u.U)({authorId:t,pageId:n,collectionId:a,pathAuthorId:d,pathId:p,shotUrl:m,modalType:c.C.SEND_FEEDBACK,workName:r,workType:s,type:g,onSuccess:()=>E()})}},!S&&{type:P.ASK_AUTHOR,onClickAction:()=>{I(),(0,u.U)({authorId:t,pageId:n,collectionId:a,pathAuthorId:d,pathId:p,isAskAuthor:!0,shotUrl:m,modalType:c.C.ASK_AUTHOR,workName:r,workType:s,type:g,onSuccess:()=>E()})}},S&&{type:P.USERBACK_FEEDBACK,onClickAction:()=>{var e;null===(e=(0,o.$)())||void 0===e||e.open()}}];return(0,i.jsx)("div",{className:"absolute bottom-12 right-4 flex w-64 flex-col rounded bg-white shadow-md dark:border dark:border-solid dark:border-gray-D900 dark:bg-gray-D1100 dark:shadow-none",onClick:()=>f(),children:w.filter(Boolean).map(e=>(g in _.B&&(e.type===P.SHARE_FEEDBACK||e.type===P.USERBACK_FEEDBACK)||!(g in _.B))&&(0,l.createElement)(T,{...e,key:e.type}))})};var k=e=>{var t;
1let[n,o]=(0,l.useState)(!1),[a,r]=(0,l.useState)(!1),{showFeedbackTooltip:s=!1}=e,v=(0,y.TL)(),h=(0,m.t)(),f=h.asPath,{userInfoDispatch:N,userInfoState:x}=(0,b.su)(),T=!!(null==x?void 0:null===(t=x.data)||void 0===t?void 0:t.user_id),k=e.type===p.d.USERBACK_FEEDBACK,R=e.type in _.B,O=P.includes(e.type),D=e.hideMenu||(R||O)&&!k;return(0,i.jsxs)("div",{className:"".concat(e.type===p.d.USERBACK_FEEDBACK?"fixed bottom-8":"relative"," flex transform flex-col gap-y-4 transition duration-500 ease-in-out ").concat(D?"":"hover:-translate-y-1"),style:{zIndex:9999,right:e.type===p.d.USERBACK_FEEDBACK?"1.5rem":"0rem"},children:[n&&!D&&(0,i.jsx)(d(),{onRootClose:()=>o(!1),children:(0,i.jsx)(w,{...e,onclick:()=>o(!1),setShowToast:()=>r(!0),userBackFeedback:e.type===p.d.USERBACK_FEEDBACK,dispatch:v,router:h})}),(0,i.jsx)(L.Z,{position:"top-left",hideTooltip:!s||!T,closeable:!0,renderTooltip:(0,i.jsxs)("div",{className:"relative flex items-center gap-x-2 rounded bg-gray-L1000 py-1.5 pl-4 pr-2 dark:bg-gray-D700",children:[(0,i.jsx)("span",{className:"caption-text text-white",children:"Got any feedback? Get in touch with us."}),(0,i.jsx)(S.Z,{className:"z-10 h-5 w-5 cursor-pointer text-white",onClick:()=>{N({type:"setHideFeedbackTooltip"}),E(!0)}}),(0,i.jsx)("div",{className:"absolute -bottom-1 right-2.5 h-4 w-4 rotate-45 skew-x-12 skew-y-12 rounded-sm bg-gray-L1000 dark:bg-gray-D700"})]}),children:(0,i.jsx)("div",{className:"z-20 flex h-10 w-10 cursor-pointer items-center justify-center ".concat(e.hideBackground?"hover:bg-gray-L50 dark:hover:bg-gray-D1300":"border-gray-L500 bg-gray-L50 dark:border-gray-D200 dark:bg-gray-D1300"," rounded-full ").concat(D?"":"hover:border hover:border-solid"),onClick:()=>{if(D){let{authorId:t,pageId:n,collectionId:i,pathAuthorId:l,pathId:o,shotUrl:a,workName:s,workType:d,type:v}=e;C(v,d,f,s),(0,u.U)({authorId:t,pageId:n,collectionId:i,pathAuthorId:l,pathId:o,shotUrl:a,modalType:c.C.SEND_FEEDBACK,workName:s,workType:d,type:v,onSuccess:()=>r(!0)})}else o(!0)},children:(0,i.jsx)(A.Z,{className:"h-5 w-5 fill-current text-gray-L500 dark:text-gray-D200"})})}),a&&(0,i.jsx)(I,{showToast:a,icon:g.Z,iconClassName:"w-6 h-6 text-green-700",title:"Feedback Submitted",description:"Thank you for sending us your feedback! We are constantly aiming to improve the experience for our users.",onClose:()=>r(!1)})]})}},209749:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(931549),l=n(44194),o=n(173656);class a extends l.Component{handleClose(){this.setState({hidden:!0})}render(){return(0,i.jsx)("div",{id:o.env.REACT_APP_STANDALONE?"selenium-alert":null,className:"flex h-full items-center justify-center px-4 py-0 text-center dark:bg-transparent ".concat(this.props.transparentBackground?"":"bg-white"," ").concat(this.props.danger?"text-red-600 dark:text-red-400":this.props.success?this.props.successColor?"text-".concat(this.props.successColor," dark:text-").concat(this.props.successColor):"text-green-500 dark:text-green-200":"text-black dark:text-gray-D200"),children:this.props.children})}constructor(...e){super(...e),this.state={hidden:!1}}}},659172:function(e,t,n){var i,l;n.d(t,{D:function(){return i}}),n(44194),(l=i||(i={})).CONTAINED_PRIMARY="contained-primary",l.CUSTOM="custom",l.LINK="link",l.PRIMARY="primary",l.SECONDARY="secondary",l.TRANSPARENT="transparent"},16318:function(e,t,n){n.d(t,{Z:function(){return v}});var i,l=n(931549),o=n(745431),a=n(745444),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 i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var d=function(e){return r.createElement("svg",s({width:1792,height:1792,viewBox:"0 0 1792 1792"},e),i||(i=r.createElement("path",{d:"M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"})))},u=n(221726),c=n(209749),v=e=>{let t=null,n=e.className?"b-status-control ".concat(e.className):"b-status-control",i="ERROR_INFO"===e.statusData.status?"border-blue-600 dar
1k:border-blue-600":"border-red-500 dark:border-red-400",r="ERROR_INFO"===e.statusData.status?"text-blue-600 dark:text-blue-600":"text-red-500 dark:text-red-400";return"ERROR"===e.statusData.status||"ERROR_INFO"===e.statusData.status?t=e.startIcon?(0,l.jsx)("div",{className:"flex border border-solid p-2 px-0 ".concat(i),children:(0,l.jsxs)(c.Z,{danger:!0,collapseBottom:!0,transparentBackground:e.transparentBackground,children:[(0,l.jsx)(a.Z,{className:"mr-2 h-5 w-5 flex-shrink-0 self-start fill-current ".concat(r)}),(0,l.jsx)("span",{className:"text-left ".concat(r),dangerouslySetInnerHTML:{__html:e.statusData.text}})]})}):(0,l.jsx)(c.Z,{danger:!0,collapseBottom:!0,transparentBackground:e.transparentBackground,children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.statusData.text}})}):"SUCCESS"===e.statusData.status?t=(0,l.jsx)(c.Z,{success:!0,collapseBottom:!0,transparentBackground:e.transparentBackground,successColor:e.successColor,children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.statusData.text}})}):"WAIT"===e.statusData.status?t=(0,l.jsx)(u.Z,{content:e.statusData.text,isExecution:e.isExecution}):"INFO"===e.statusData.status&&(t=(0,l.jsxs)(c.Z,{collapseBottom:!0,transparentBackground:e.transparentBackground,children:[(0,l.jsx)(o.Z,{className:"mr-2 h-5 w-5 fill-blue-600"}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e.statusData.text}})]})),(0,l.jsxs)("div",{className:"relative ".concat(n," body-small"),children:[t,t&&e.closeIcon&&(0,l.jsx)("i",{onClick:()=>e.onCloseIconClick(),children:(0,l.jsx)(d,{className:"absolute right-2.5 top-2.5 cursor-pointer opacity-60 hover:opacity-100",style:{width:"14px",height:"14px"}})})]})}},670351:function(e,t){t.Z=e=>{var t;return null===(t=e.asPath)||void 0===t?void 0:t.startsWith("/student")}},243066:function(e,t,n){n.d(t,{N:function(){return i},x:function(){return l}});let i=/\/work/,l={HOME:"/work",PROJECTS:"/work/projects",FOLDERS:"/work/docs",REVIEWS:"/work/reviews",REVIEWS_FOLLOW_UPS:"/work/reviews?tab=follow_ups",TASKS:"/work/tasks",TRASH:"/work/trash",TASKS_FOLLOW_UPS:"/work/tasks?tab=follow_ups",GROUPS:"/work/groups",SCHEDULED_REPORTS:"/work/scheduled-reports",PRIVATE_PROJECTS:"/work/projects/private",SHARED_PROJECTS:"/work/projects/shared",SHARED_FOLDERS:"/work/docs/shared",ONBOARDING:"/work/onboarding",PRIVATE_FOLDERS:"/work/docs/private"}},164741:function(e,t,n){n.r(t),n.d(t,{default:function(){return $}});var i=n(931549),l=n(784190),o=n(78044),a=n.n(o),r=n(44194),s=n(107565),d=n(19237),u=n(431319),c=n(398602),v=n(51202),_=n(38196),p=n(687233),h=n(520649),m=n(931965),f=n(969099),E=n(78289),g=n(228923),S=n(991668),A=n(799238),N=n(161514),x=n(626119),b=n(14007),y=n(397832),L=n(888371),I=n(151346),P=n(617883),T=n(351576),C=n(795962),w=n(176644),k=n(853224),R=e=>{let{subscriptionPlanToShow:t,ctaText:n,handleClick:l}=e,o=(0,C.Fh)(),a=(0,k.P)(L.Z),r=!!(null==t?void 0:t.special_discount_available),s=a&&r,d=!s&&o&&t.special_discount_available,u=(0,y.Q)(t),{originalMonthlyPriceToShow:c,maxDiscountPercentage:v}=(0,T.T)(t,u,t.validity_months),_=t.monthly_discounted_before_regional,p=t.monthly_discounted_before_regional,h=d&&_&&!t.discounted_for_region,m=0===v&&t.special_discount_available?null:t.updated_special_discount&&d?c:h?_:t.discounted_for_region?p:null,f=(0,k.P)(I.Z),E=Math.ceil(t.monthly_discounted_price);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"tailwind-hidden w-80 flex-shrink-0 flex-col items-center rounded-lg border border-solid border-gray-L200 bg-white text-black dark:border-gray-D1000 dark:bg-gray-D900 sm:flex",children:[(null==t?void 0:t.special_discount_available)&&!s&&(0,i.jsxs)("div",{className:"m-auto flex h-9 w-full items-center justify-center rounded-t-lg bg-indigo-50 text-sm font-medium text-indigo-500 dark:bg-gray-D800 dark:text-indigo-25",children:["Lifetime Discount - ",v,"% Off"]}),(0,i.jsxs)("div",{className:"mb-2 mt-4 flex flex-row gap-2 dark:bg-gray-D900",children:[(0,i.jsx)("div",{className:"self-center text-3xl font-bold tracking-widest text-gray-L1000 dark:text-white",children:(0,w.ZP)(f?t.monthly_discounted_price:E,t.currency_symbol,t.is_currency_symbol_prefix)}),(0,i.jsxs)("div",{className:"flex flex-col gap-1 text-sm font-normal",children:[(0,i.jsx)("span",{className:"text-gray-L1000 line-through decoration-red-500 dark:text-white dark:decoration-red-400",children:m!==t.monthly_discounted_price&&(0,w.ZP)(m,t.currency_symbol,t.is_currency_symbol_prefix)}),(0,i.jsx)("span",{className:"text-gray-L700 dark:text-white",children:"/month"})]})]}),t.discounted_for_region&&(0,i.jsxs)("div",{className:"mb-2 flex items-center justify-center",children:[(0,i.jsx)("span",{className:"mr-2 items-center text-center text-xs font-normal text-gray-L500 dark:text-gray-L50",children:"discounted price for"}),(0,i.jsx)(P.Z,{parentClasses:"h-6 w-6 flex items-end",countryCode:t.region})]}),(0,i.jsx)("button",{className:"contained-primary mb-6 mt-2 h-9 w-64 self-center rounded",onClick:l,children:n})]}),(0,i.jsx)("button",{className:"contained-primary h-9 w-64 self-center rounded sm:hidden",onClick:l,children:v?"Unlock full access for ".concat(v,"% off"):"Unlock full access"})]})},O=n(468518),D=n(989648),j=n(301284),G=n(262603),U=e=>{for(let t of e){let e=t.pages.find(e=>e.is_preview);if(e)return e}return null},B=n(704373);let Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=U(e);if(null==n)return null;let{viewUrl:i}=(0,B.Z)({authorId:n.author_id,collectionId:n.collection_id,id:n.id,courseUrlSlug:t,isStandaloneModule:n.is_standalone_module,pageSlug:n.slug});return i.href};var M=n(878459),F=n(898465),q=n(468045),K=n(964752),H=n(754626),W=n(565270);let V=(0,H.Z)(()=>n.e(443810).then(n.bind(n,443810))),Q=a()(()=>Promise.all([n.e(855310),n.e(728485)]).then(n.bind(n,728485)),{loadableGenerated:{webpack:()=>[728485]}}),z=["prepare-for-interview","interview-prep","prepare-for-an-interview"],J=e=>(0,_.q)({ru:e}),Y=(e,t)=>
1~~(e/t)*t,X=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return()=>(0,N.Z)("LOCKED_LESSONS",t?"CLICKED_STARTFREETRIALCTA_LOCKEDLESSON":"CLICKED_GETSTARTEDCTA_LOCKEDLESSON",e)};var $=e=>{var t,n,o,a,_,y,L,I,P;let{isB2BDomain:T,freeSignupRequired:w,userInfo:U,collection:B,collectionInstanceDetails:H,learnerTags:$=null,docType:ee=null,ssrProps:et,isL2CPathway:en,isL2CPathwaySignUpWall:ei,authorId:el,collectionId:eo,pageId:ea,isCourseAssessment:er=!1,showGradient:es=!0}=e,{has_valid_enterprise_trial:ed=null,eligible_for_enterprise_buy_checkout:eu=null,upgrade_from_enterprise_trial_id:ec=null}=U||{},ev=(0,u.E6)(U),e_=(0,u.YK)(U),{b2cStatusSSR:ep,b2cTrialStatsSSR:eh,workStatsSSR:em,interviewWorksStatsSSR:ef,inL2cStarterPackSSR:eE,enableL2cStarterPackPaymentWidgetSSR:eg}=et||{},{is_priced:eS=null,price:eA=null,discounted_price:eN=null}=H;$&&$.length||($=H.learner_tags);let ex=(0,x.t)(),eb=(0,G.TL)(),ey=(0,M.h)(e=>{var t,n;return null===(n=e.userConfig)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.b2c_trial_stats}),eL=Object.keys(ey||{}).length?ey:eh,eI=(0,M.h)(e=>{var t,n,i;return null===(i=e.userConfig)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:null===(t=n.educativeStats)||void 0===t?void 0:t.works_count}),eP=Y(em||eI||700,100),eT=Y((null!==(L=(0,M.h)(e=>{var t,n;return null===(n=e.userConfig.data)||void 0===n?void 0:null===(t=n.educativeStats)||void 0===t?void 0:t.l2c_courses_count}))&&void 0!==L?L:E.$)+(null!==(I=(0,M.h)(e=>{var t,n;return null===(n=e.userConfig.data)||void 0===n?void 0:null===(t=n.educativeStats)||void 0===t?void 0:t.l2c_paths_count}))&&void 0!==I?I:g.M)+(null!==(P=(0,M.h)(e=>{var t,n;return null===(n=e.userConfig.data)||void 0===n?void 0:null===(t=n.educativeStats)||void 0===t?void 0:t.l2c_projects_count}))&&void 0!==P?P:S.s),10),eC=Number((0,M.h)(e=>{var t,n,i;return null===(i=e.userConfig)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:null===(t=n.educativeStats)||void 0===t?void 0:t.interview_courses_count}));(0,r.useEffect)(()=>{en&&(0,N.Z)("LTC_Paths","LTCSignUpWall")},[]);let ew=Y(ef||eC||40,10),ek=eS&&(0===eA||0===eN),eR=null==B?void 0:null===(t=B.instance)||void 0===t?void 0:t.b2c_status,eO=null==B?void 0:null===(o=B.instance)||void 0===o?void 0:null===(n=o.details)||void 0===n?void 0:n.in_l2c_starter_pack,eD=[h.dL.PATH,h.dL.MODULE].includes(H.work_type),ej=H.collection_type===h.dL.COLLECTION,eG=(ej||eD)&&(null!=eO?eO:eE),eU="Mock Interview"===ee,eB="Breakout Session"===ee,eZ=(0,k.P)(m.Z)||(0,q.gx)(eg),eM=eG&&!s.iw.IS_B2B&&eZ,eF=null==U?void 0:null===(a=U.enterprise)||void 0===a?void 0:a.is_enterprise_trial_readonly_mode,eq=ed||eF,eK=(0,d.D2)(eq,eu,!!ec),eH=null!=ee?ee:eD?"Path":"Course",eW=e=>{e.gaEvent&&e.gaEvent(),e.url?ex.push(e.url):eb(e.action(ex.asPath))},eV=(0,F.r)(eL,$,null!=eR?eR:ep),eQ=null==$?void 0:$.some(e=>z.includes(e)),ez=(0,D.Z)(),eJ=(0,O.i)(ez||ex.asPath,!0,!0),eY=eJ&&!e_,eX=(0,O.M)(ez||ex.asPath),e$=eX&&!e_,e0=e$?"Level up your learning. Join Educative to unlock your personalized course plan.":eY?"Level up your interview prep. Join Educative to unlock full access to your custom full loop interview prep plan.":ei?"Access this path for free":ek||!eS?"Create a free account to access the full course.":w?"Create a free account to view this lesson.":eQ?"Level up your interview prep. Join Educative to access ".concat(ew,"+ hands-on prep courses."):"Get hands-on with ".concat(en||eM?eT:eP,"+ tech skills courses."),e1=en&&"Learn faster with interactive lessons, quizzes, and playgrounds.",e2=eY||e$?{cta:"Unlock Full Access",url:"/unlimited?ru=".concat(ex.asPath),gaEvent:X(e$?"PAL":"InterviewPrep")}:!s.iw.IS_B2B||U&&Object.keys(U).length?ek||!eS?{cta:"Get Free Course",action:J}:w?{cta:"Join for Free",action:J}:eK?{cta:eK,url:(0,b.ZP)(s.iw.IS_B2B)[b.B],gaEvent:X(eH)}:eq?{cta:"Contact Us",url:"https://share.hsforms.com/1_k1SXLT8S0mUeNoZNC7TOw2tlr4"}:en||eM?{cta:en?"Get learn to code":"Get Starter Pack",url:{pathname:"/learn-to-code",query:{scroll_to_l2c_tile:"true"}},gaEvent:()=>(0,N.Z)("L2C_LANDING_PAGE","Get_Starter_Pack_Payment_Widget")}:!eV||ev||eQ?{cta:"Start Learning",url:s.iw.IS_B2B?"/pricing":"/unlimited",gaEvent:X(eH)}:{cta:"Start Free Trial",url:"/trial?ru=".concat(ex.asPath),gaEvent:X(eH,!0)}:{cta:"Start Free Trial",url:"/trial",gaEvent:X(eH,!0)},{requestUrlInfo:e4}=(0,c.Q)()||{},e5=(null===(_=ex.query)||void 0===_?void 0:_.course_url_slug)||(null==e4?void 0:e4.courseUrlSlug),e9=Z(H.toc.categories,e5),e3=eM?A.cw.L2C:eU||"Project"===ee?A.cw.PREMIUM:"CloudLab"===ee?A.cw.PREMIUM_PLUS:A.cw.STANDARD,e8=(0,C.qN)(),e6=(0,K.y4)(e8,12,e3),e7=()=>{let e=eM?{pathname:"/learn-to-code",query:{scroll_to_l2c_tile:"true"}}:"/unlimited";ex.push(e)},te=(0,l.y)(),tt=(0,k.P)(f.Z,!0),tn=(0,W.Z)(),ti=eX?te:tt,tl=eJ&&(eU||eB),{isMiniMapSidebarOpen:to}=(0,p.Z)(),ta=(0,r.useMemo)(()=>"calc(100vw - calc(".concat(tl?"0":ti?+to:"var(--sidebar)"," * ").concat(ti?24:j.sl[j.mQ.LESSON].MAX_WIDTH,"rem))"),[ti,to,tl]),tr=ek||eS&&w||ei;return(0,i.jsx)("div",{className:"bottom-0 right-0 w-full ".concat(tn&&!tr&&ej&&er||eU?"":"fixed"," ").concat(ti&&to?"tailwind-hidden sm:block":""),style:{maxWidth:ta,width:ta,transition:"max-width 200ms, width 200ms ease-in-out",zIndex:9},children:ej&&tn&&(er||eU||eB)?(0,i.jsx)(r.Suspense,{children:(0,i.jsx)(V,{categories:null==H?void 0:null===(y=H.toc)||void 0===y?void 0:y.categories,authorId:el,collectionId:eo,pageId:ea,courseUrlSlug:e5,pageTitles:null==H?void 0:H.page_titles,worksCount:eM?eT:eP,inL2cStarterPack:eO,isPreviewLesson:!1,showGradient:es})}):tr?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"h-screen w-full"}),(0,i.jsx)("div",{className:"h-32 w-full bg-gradient-to-t from-white to-transparent dark:from-gray-D1500"}),(0,i.jsx)(Q,{lockedLessonSignup:!0,mainHeading:e0,subHeading:e1,actionCta:e2.cta})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"h-screen w-full"}),(0,i.jsx)("div",{className:"h-32 w-full bg-gradient-to-t from-white to-transparent dark:from-gray-D1500"}
1),(0,i.jsxs)("div",{className:"".concat(ej?"dark:border-gray-D1100 dark:bg-gray-D1200":"dark:bg-gray-D1500"," w-full bg-white"),children:[(0,i.jsx)("div",{className:"h-px w-full bg-gray-L200 dark:bg-gray-D800"}),(0,i.jsx)("div",{className:"flex flex-col items-center px-4 py-6 text-center sm:px-2 sm:py-8",style:{maxWidth:ta,width:ta,transition:"max-width 200ms, width 200ms ease-in-out"},children:ej?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"tailwind-hidden justify-center gap-12 sm:flex sm:flex-row",children:[(0,i.jsxs)("div",{className:"m-0 w-64 self-center text-2xl font-bold text-gray-L1000 dark:text-white",children:[eU?"Access this mock interview ":eB?"Access this breakout session ":"Access this course ","and"," ",(0,i.jsxs)("span",{className:"text-indigo-500",children:[eM?eT:eP,"+"]})," ","top-rated courses and projects."]}),!!e6&&(0,i.jsx)(R,{subscriptionPlanToShow:e6,handleClick:e7,ctaText:"Unlock Full Access"})]}),(0,i.jsx)("button",{className:"contained-primary flex h-9 w-full self-center rounded sm:hidden",onClick:e7,children:"Unlock Full Access"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"heading-three m-0",children:e0}),(0,i.jsx)("div",{className:"flex items-center justify-center gap-x-4",children:(0,i.jsx)("button",{className:"navigation-text contained-primary mt-6 px-3 py-2.5",onClick:()=>en||eM?ex.push({pathname:"/learn-to-code",query:{scroll_to_l2c_tile:"true"}}):eW(e2),children:e2.cta})})]})}),ej&&(0,i.jsx)("div",{style:{minHeight:"3.25rem"},children:e9&&(0,i.jsxs)(v.Z,{prefetch:!1,href:e9,children:[(0,i.jsxs)("div",{className:"tailwind-hidden flex-col items-center sm:flex",children:[(0,i.jsx)("div",{className:"h-px w-11/12 bg-gray-L200 dark:bg-gray-D800"}),(0,i.jsxs)("div",{className:"content-primary-default flex cursor-pointer gap-x-2 px-2 py-3 font-medium",children:[(0,i.jsx)("span",{children:"Preview Free Lessons"}),(0,i.jsx)("span",{children:"→"})]})]}),(0,i.jsx)("div",{className:"-mt-1 mb-2 flex self-center px-4 sm:hidden",children:(0,i.jsx)("p",{className:"flex h-9 w-full items-center justify-center rounded border border-solid border-indigo-500 text-center text-base font-bold text-indigo-500 dark:border-white dark:text-white",children:"Preview Free Lessons"})})]})})]})]})})}},367383:function(e,t,n){n.r(t);var i=n(931549),l=n(226142),o=n(78044),a=n.n(o),r=n(503346),s=n(44194),d=n(107565),u=n(336449),c=n(520649),v=n(573199),_=n(834014),p=n(794218),h=n(960622),m=n(161514),f=n(32144),E=n(951622),g=n(704373),S=n(891309),A=n(813765),N=n(659172),x=n(16318),b=n(77949),y=n(595385),L=n(865546),I=n(164741),P=n(886465),T=n(508438),C=n(72281),w=n(958412),k=n(989648),R=n(349196),O=n(395124),D=n(389392),j=n(262603),G=n(184492),U=n(487054),B=n(878459),Z=n(888438),M=n(565270),F=n(85070);let q=a()(()=>Promise.all([n.e(855310),n.e(142783),n.e(50397)]).then(n.bind(n,50397)),{loadableGenerated:{webpack:()=>[50397]}}),K=a()(()=>n.e(653794).then(n.bind(n,653794)),{loadableGenerated:{webpack:()=>[653794]}}),H=a()(()=>Promise.all([n.e(855310),n.e(297156),n.e(762571),n.e(782474),n.e(235099),n.e(245393),n.e(275315),n.e(480333),n.e(259626),n.e(215238),n.e(383128),n.e(925308),n.e(504990)]).then(n.bind(n,504990)),{loadableGenerated:{webpack:()=>[504990]}}),W=a()(()=>Promise.all([n.e(855310),n.e(182292),n.e(297156),n.e(762571),n.e(782474),n.e(235099),n.e(245393),n.e(275315),n.e(480333),n.e(259626),n.e(215238),n.e(383128),n.e(925308),n.e(135762)]).then(n.bind(n,818553)),{loadableGenerated:{webpack:()=>[818553]}}),V=a()(()=>Promise.all([n.e(682564),n.e(855310),n.e(991577),n.e(297156),n.e(762571),n.e(782474),n.e(235099),n.e(245393),n.e(153679),n.e(528900),n.e(480333),n.e(259626),n.e(215238),n.e(104500),n.e(780288),n.e(361920),n.e(247817)]).then(n.bind(n,55625)),{loadableGenerated:{webpack:()=>[55625]}}),Q=a()(()=>Promise.all([n.e(855310),n.e(991577),n.e(297156),n.e(762571),n.e(782474),n.e(235099),n.e(245393),n.e(231910),n.e(528900),n.e(480333),n.e(259626),n.e(215238),n.e(769273),n.e(230982)]).then(n.bind(n,823414)),{loadableGenerated:{webpack:()=>[823414]}}),z=a()(()=>Promise.all([n.e(855310),n.e(991577),n.e(297156),n.e(762571),n.e(782474),n.e(235099),n.e(245393),n.e(231910),n.e(528900),n.e(480333),n.e(259626),n.e(2
115238),n.e(780288),n.e(769273),n.e(821292)]).then(n.bind(n,587195)),{loadableGenerated:{webpack:()=>[587195]}});t.default=e=>{var t,n,o,a,J,Y,X,$,ee,et,en,ei,el,eo,ea,er,es,ed,eu,ec,ev,e_,ep,eh,em,ef,eE,eg,eS,eA,eN,ex,eb,ey,eL,eI,eP,eT,eC,ew,ek,eR,eO,eD,ej,eG,eU,eB,eZ,eM,eF;let{showSideBar:eq,isPreview:eK,mode:eH,isMobileAgent:eW,useModularTypescale:eV=!1,ssrContent:eQ,pathType:ez}=e,eJ=(0,j.TL)(),eY=(0,r.useRouter)(),eX=s.useContext(R.UserGamificationContext),e$=(0,C.q6)(),e0=(0,C.Ed)(),e1=null==e$?void 0:null===(n=e$.instance)||void 0===n?void 0:null===(t=n.details)||void 0===t?void 0:t.page_slugs,e2=(0,C._P)(),e4=(0,C.sX)().set,e5=(0,w.ZP)().setNotFound,{userInfoState:e9}=(0,O.su)(),e3=(0,T.Vo)(),e8=(0,T.U4)(),e6=(0,k.Z)(),e7=null!==(eO=(0,B.h)(e=>{var t,n,i;return null===(i=e.userConfig)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:null===(t=n.constants)||void 0===t?void 0:t[v.Z]}))&&void 0!==eO?eO:0,[te,tt]=s.useState(!1),tn=eY.asPath.includes("#feedback"),ti=s.useRef({current:0,total:0}),{author_id:tl,collection_id:to,assessment_id:ta,question_id:tr,course_url_slug:ts,page_url_slug:td,encodedPathInfo:tu,menteeId:tc}=eY.query,tv=(0,M.Z)(),t_=new l.Z().decode(tu),tp=String(t_[0]),th=String(t_[1]),tm=null==e$?void 0:null===(o=e$.instance)||void 0===o?void 0:o.owned_by_reader,tf=null==e$?void 0:null===(J=e$.instance)||void 0===J?void 0:null===(a=J.details)||void 0===a?void 0:a.work_type,tE=(null==e$?void 0:null===(Y=e$.instance)||void 0===Y?void 0:Y.details.collection_type)===c.dL.SKILL_ASSESSMENT,tg="instance"in e$,tS=null==e$?void 0:null===(X=e$.instance)||void 0===X?void 0:X.details.url_slug,tA=(null==e$?void 0:null===($=e$.instance)||void 0===$?void 0:$.details.collection_type)===c.dL.ENTERPRISE_ASSESSMENT,tN=!tE&&!tA,tx=tg&&!e2.isError&&(e9.loggedOut||!tm&&!tr)&&tN,tb=!(null==e8?void 0:null===(ee=e8.question)||void 0===ee?void 0:ee.protected_content),ty=(null==e8?void 0:null===(et=e8.question)||void 0===et?void 0:et.question_type)==="AssessmentCode",tL=null==e$?void 0:null===(ei=e$.instance)||void 0===ei?void 0:null===(en=ei.details)||void 0===en?void 0:en.title,tI=null==e$?void 0:null===(eo=e$.instance)||void 0===eo?void 0:null===(el=eo.details)||void 0===el?void 0:el.path_title,tP=(0,Z.Z)(eY),tT=Number(tl||(null==e$?void 0:null===(ea=e$.instance)||void 0===ea?void 0:ea.details.author_id))===(null===(er=e9.data)||void 0===er?void 0:er.user_id),tC=null==e$?void 0:null===(ed=e$.instance)||void 0===ed?void 0:null===(es=ed.details)||void 0===es?void 0:es.target_audience,{mutate:tw}=(0,P.b)(tl,to,ta,u.j.EXTERNAL_ASSESSMENT);s.useEffect(()=>{var e;!e2.isLoading&&(tr&&0===Object.keys(null!=e$?e$:{}).length&&eJ((0,f._)({userInfoState:e9,params:{...eY.query,skipLiveInstanceFetch:!0},router:eY,collectionActions:e0,disableAllRedirections:!0,setLoaderStateDispatch:e4,setNotFound:e5,resolvedPath:e6})),(null===(e=e8.question)||void 0===e?void 0:e.progress)&&(ti.current=tj()))},[e8,e$]),s.useEffect(()=>((!e9.loggedOut&&(tr||tm)||tE||tN)&&tg&&e3.load({author_id:tl,collection_id:to,assessment_id:ta,planId:th,planAuthorId:tp,menteeId:tc,mode:eH,course_url_slug:ts,page_url_slug:td,assessment_type:tE||tA?p.Q.SKILL_ASSESSMENT:p.Q.REGULAR,userInfo:e9.data,isLockedPreview:tx}).then(e=>{if(!e&&tE){eY.replace("/assessments");return}if(e){let{data:t}=e;eY.asPath.startsWith("/assessment")&&e3.prepareDockerOnSetAssessment(JSON.parse(t))}}),()=>{e3.clear()}),[tl,to,ta,ts,td,e2,tA]),s.useEffect(()=>()=>{tr&&e4({isLoading:!1,isLoaded:!1,isError:!1})},[]),s.useEffect(()=>{var e,t,n,i,l,o;if((null==eX?void 0:null===(i=eX.value)||void 0===i?void 0:null===(n=i.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)&&!tr&&tg&&(null==e8?void 0:e8.loaded)&&(0,y.E)({userGamificationContext:eX,userInfo:e9.data,isWorkCompleted:!1,isLastTask:!1,userGamificationFeatureFlag:isNaN(Number(e7))?0:Number(e7),workType:"assessment_".concat(null==e8?void 0:null===(l=e8.data)||void 0===l?void 0:l.assessment_type),callBack:()=>{},isAssessment:!0,dispatch:eJ}),!tr&&tg&&(null==e8?void 0:e8.loaded)&&tE&&!tT&&e9.loaded&&tn){let e=String(tH||tW?null==e8?void 0:null===(o=e8.data)||void 0===o?void 0:o.assessment_id:ta);eJ(D.n.show(L.fL,{title:tX,url:(0,U.l4)().toString().split("#")[0],authorId:tl,collectionId:to,workType:c.dL.SKILL_ASSESSMENT,pageId:e}))}},[e9.loaded,tg,null==e8?void 0:e8.loaded,tr]);let tk=e=>{var t,n;let i=(0,g.Z)({authorId:tl,collectionId:to,assessmentId:ta,id:e,parentWorkAuthorId:null==e$?void 0:null===(t=e$.instance)||void 0===t?void 0:t.details.path_author_id,parentWorkId:null==e$?void 0:null===(n=e$.instance)||void 0===n?void 0:n.details.path_id,courseUrlSlug:tS,isSkillAssessment:tE}).assessmentQuestionViewUrl.href;tE?eY.replace(i):eY.push(i)},tR=()=>{var e,t,n;let i=0,l=null,o=null,a=0;return null===(n=e8.data)||void 0===n||null===(t=n.toc)||void 0===t||null===(e=t.categories)||void 0===e||e.forEach(e
1=>{e.pages.forEach(e=>{a++,Number(e.id)===Number(tr)?i=a:i?i&&!o&&(o=e.id):l=e.id})}),{previous:l,next:o}},tO=function(){var e,t,n;let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];eY.push("".concat(!tS||!tE||t_||(null==eQ?void 0:eQ.is_master_path)||(null==eQ?void 0:eQ.isCourseRewriteEnabled)?(0,g.Z)({authorId:tl,collectionId:to,assessmentId:ta,courseUrlSlug:tS,customWorkType:(null==tz?void 0:tz.isPlanLesson)?c.dL.PLAN:tf,parentWorkAuthorId:null==e$?void 0:null===(e=e$.instance)||void 0===e?void 0:e.details.path_author_id,parentWorkId:null==e$?void 0:null===(t=e$.instance)||void 0===t?void 0:t.details.path_id,isStandaloneModule:!tu&&(null==e$?void 0:null===(n=e$.instance)||void 0===n?void 0:n.details.is_standalone_module),isSkillAssessment:tE,...!(tE||tA)&&{pageSlug:null==e1?void 0:e1[Number(ta)]},isPALPage:null==eQ?void 0:eQ.is_master_path,isLTALesson:null==eQ?void 0:eQ.isCourseRewriteEnabled}).viewUrl.href:"/assessments/".concat(tS)).concat(i?"#attempts":"").concat(l&&tE&&!tu?"#feedback":""))},tD=e=>{var t,n;let l=(0,i.jsx)("span",{children:"Are you sure you want to submit this assessment?"}),o=e||(null==e8?void 0:null===(t=e8.question)||void 0===t?void 0:t.progress);if(o){let e=null==o?void 0:null===(n=o.unsolved)||void 0===n?void 0:n.length;e&&(l=(0,i.jsxs)("span",{children:["You have ",(0,i.jsx)("strong",{style:{color:"red"},children:e})," ","unanswered questions. ",l]}))}tE||tA?tU():eJ(D.n.show(L.zN,{onConfirm:tU,cancelText:"Cancel",confirmText:"Submit",title:"Confirmation",description:l}))},tj=()=>{if(tE||tA){var e;let t=e8.data.toc.categories[0].pages,n=t.findIndex(e=>{var t;return e.id===(null===(t=e8.question)||void 0===t?void 0:t.question_id)});return{current:(null===(e=e8.question)||void 0===e?void 0:e.question_no)||n+1,total:t.length}}return{current:e8.question.progress.solved.length+1,total:e8.question.progress.unsolved.length+e8.question.progress.solved.length}},tG=()=>{var e,t,n;if((null==e8?void 0:null===(e=e8.data)||void 0===e?void 0:e.toc)&&(tE||tA)){let e=e8.data.toc.categories[0].pages,t=e.findIndex(e=>{var t;return e.id===(null===(t=e8.question)||void 0===t?void 0:t.question_id)});return{current:(null==e8?void 0:null===(n=e8.question)||void 0===n?void 0:n.question_no)||t+1,total:e.length}}return!tE&&!tA&&(null==e8?void 0:null===(t=e8.question)||void 0===t?void 0:t.progress)?{current:e8.question.progress.solved.length+1,total:e8.question.progress.solved.length+e8.question.progress.unsolved.length}:{current:ti.current.current,total:ti.current.total}},tU=async()=>{var e,t,n,i,l,o,a,r;tt(!0),e9.loaded&&(null==eX||null===(e=eX.incrementStreak)||void 0===e||e.call(eX,{userInfo:e9.data,userGamificationFeatureFlag:isNaN(Number(e7))?0:Number(e7),callBack:()=>{tO(!tA,!0)}}));try{let e=await (0,E.T)({assessment_id:ta,collection_id:to,author_id:tl,assessment_type:null==e8?void 0:null===(t=e8.data)||void 0===t?void 0:t.assessment_type,pathAuthorId:null===(n=eY.query)||void 0===n?void 0:n.pathAuthorId,pathId:null===(i=eY.query)||void 0===i?void 0:i.pathId,pathTitle:tI});if((null==e?void 0:null===(l=e.xhr)||void 0===l?void 0:l.status)===200){(null==eQ?void 0:eQ.is_master_path)&&tw();let t=JSON.parse(e.data||"{}");
1"cleared"in t&&(tA&&(0,m.Z)("ENTERPRISE_ASSESSMENTS",t.cleared?"ASSESS_PASSED":"ASSESS_NOT_PASSED",(tI?"".concat(tI,"_"):"")+(null==e8?void 0:null===(r=e8.data)||void 0===r?void 0:r.title)),(0,m.Z)("ENTERPRISE",t.cleared?"TRIGGER_PASSED_ASSESSMENT":"TRIGGER_FAILED_ASSESSMENT","",null,{attempts:null==e8?void 0:null===(o=e8.data)||void 0===o?void 0:o.attempts,content_id:"".concat(tl,"-").concat(to,"-").concat(ta),is_assigned:!!(null==e8?void 0:null===(a=e8.data)||void 0===a?void 0:a.is_assigned)}))}e9.loaded||tO(!tA)}catch(e){eJ(D.n.show(L.ad,{status:"ERROR",text:"Failed to submit assessment"})),tt(!1)}},tB={timeRemaining:(null==e8?void 0:null===(eU=e8.question)||void 0===eU?void 0:eU.time_remaining)||0,currentQuestionNo:(()=>{var e,t;if(null==e8||null===(e=e8.data)||void 0===e||!e.toc)return ti.current.current;if(tE||tA)return tG().current;if(!tE||!tA){let e=null==e8?void 0:null===(t=e8.data)||void 0===t?void 0:t.toc.categories.flatMap(e=>e.pages).findIndex(e=>{var t;return e.id===(null===(t=e8.question)||void 0===t?void 0:t.question_id)});return e>=0?e+1:0}})(),totalQuestions:tG().total,timeLimit:(null==e8?void 0:null===(eB=e8.data)||void 0===eB?void 0:eB.time_limit)||0},{previous:tZ,next:tM}=tR(),tF={collection:e$,questionId:tr,key:tr,goToQuestionViewer:tk,onAnswerSubmit:e=>{if(tE)(null==e?void 0:e.question_type)?tk(e.question_id):tD(e);else{e3.updateProgress(e);let{next:t}=tR();t?tk(t):tD(e)}},returnToCollection:tO,mode:"view",questionURL:eY.asPath,pathTitle:tI,onAssessmentSubmit:tD,isSkip:!ty&&tb,previous:!tE&&tZ,next:!tE&&tM,disableSubmitButton:te&&!["AssessmentCode","AssessmentSPA","AssessmentTerminal"].includes(null==e8?void 0:null===(eu=e8.question)||void 0===eu?void 0:eu.question_type)},tq=tE||tA?H:W;if(e9.loggedOut&&tr&&tg&&!tE){let e=(0,g.Z)({authorId:tl,collectionId:to,assessmentId:ta,id:tr,parentWorkAuthorId:null==e$?void 0:null===(eD=e$.instance)||void 0===eD?void 0:eD.details.path_author_id,parentWorkId:null==e$?void 0:null===(ej=e$.instance)||void 0===ej?void 0:ej.details.path_id,courseUrlSlug:tS,isSkillAssessment:tE}).assessmentQuestionViewUrl.href;eY.push("/?openLoginModal=true&ru="+e)}e8.error&&tr&&tO();let tK=e8.data&&tg?(0,G.W1)(e8.data.assessment_id,e$):null,tH=tf===c.dL.PATH,tW=tf===c.dL.MODULE,tV=(null==e$?void 0:null===(ec=e$.instance)||void 0===ec?void 0:ec.details.cover_image_serving_url)||"/static/imgs/covers/defaultFeatureAssessmentCover.svg",tQ=(0,F.Q)(null==e$?void 0:null===(ev=e$.instance)||void 0===ev?void 0:ev.details,e8.data,tH),tz={isPlanLesson:null==e$?void 0:null===(eZ=e$.instance)||void 0===eZ?void 0:eZ.details.is_plan,isPlanModule:null==e$?void 0:null===(eM=e$.instance)||void 0===eM?void 0:eM.details.is_parent_plan},tJ=null===(eh=e9.data)||void 0===eh?void 0:null===(ep=eh.enterprise)||void 0===ep?void 0:null===(e_=ep.organizations)||void 0===e_?void 0:e_.find(e=>e.can_view_private_content),tY="".concat((null==tJ?void 0:tJ.organization_name)||"-","'s"),tX=null!==(eG=null===(em=e8.data)||void 0===em?void 0:em.title)&&void 0!==eG?eG:"",t$=eY.asPath.startsWith("/courses/"),t0=null===(ef=null!=ta?ta:null==e8?void 0:null===(eE=e8.data)||void 0===eE?void 0:eE.assessment_id)||void 0===ef?void 0:ef.toString();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"w-full",children:[tz.isPlanLesson&&(0,i.jsx)(K,{buttons:[!tP&&e9.data.user_id&&{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"tailwind-hidden uppercase sm:inline",children:tL}),(0,i.jsx)(b.Z,{className:"h-5 w-5 sm:hidden"})]}),onClick:()=>eY.push("/plan/".concat(tl,"/").concat(to)),tooltipMessage:"Go Back to Path",type:N.D.PRIMARY}]}),(0,i.jsxs)(i.Fragment,{children:[(tE&&!tT||tA)&&!tr&&((null==e8?void 0:e8.data)&&Object.keys(null!=e$?e$:{}).length>0?((null==e8?void 0:null===(eg=e8.data)||void 0===eg?void 0:eg.results.length)||tA)&&!((null==e8?void 0:null===(eF=e8.data)||void 0===eF?void 0:eF.results.length)>0&&e8.data.results[0].architecture===_.E.CAT&&0===e8.data.results[0].scaled_score&&null===e8.data.results[0].percentile)?(0,i.jsx)(z,{collection:e$,assessment:{...null==e8?void 0:e8.data,target_audience:tC},organizationName:tY,coverImg:tV,goToQuestionViewer:tk,pathTitle:tI,isPlan:tz.isPlanLesson||tz.isPlanModule,courseUrlSlug:tS}):(0,i.jsx)(Q,{collection:e$,assessment:{...null==e8?void 0:e8.data,target_audience:tC},coverImg:tV,isPlan:tz.isPlanLesson||tz.isPlanModule,courseUrlSlug:tS,organizationName:tY}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"h-96"}),(0,i.jsx)(x.Z,{statusData:{status:"WAIT"},className:"pb-3"})]})),((!(tE&&!tT)||tE&&!tT&&tr)&&!tA||tA&&tr)&&(0,i.jsx)("div",{className:"flex flex-auto",children:(null==e8?void 0:e8.data)&&(null==e8?void 0:e8.loaded)&&Object.keys(null!=e$?e$:{}).length>0&&(0,i.jsxs)("div",{className:"ml-0 flex w-full justify-center ".concat(eK?"".concat((tE||tA)&&tr?"mt-28":"mt-16"):""),style:{transition:"margin 0.5s"},children:[!tr&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(V,{assessment:e8.data,mode:eH,userId:null===(eS=e9.data)||void 0===eS?void 0:eS.user_id,authorId:tQ?null==e$?void 0:null===(eA=e$.instance)||void 0===eA?void 0:eA.details.author_id:tl||(null==e$?void 0:null===(eN=e$.instance)||void 0===eN?void 0:eN.details.author_id),collectionId:tQ?null==e$?void 0:null===(ex=e$.instance)||void 0===ex?void 0:ex.details.collection_id:to||(null==e$?void 0:null===(eb=e$.instance)||void 0===eb?void 0:eb.details.collection_id),pathAuthorId:null==e$?void 0:null===(ey=e$.instance)||void 0===ey?void 0:ey.details.path_author_id,pathId:null==e$?void 0:null===(eL=e$.instance)||void 0===eL?void 0:eL.details.path_id,nextPrevPage:tK,courseSlug:ts,isPath:tH,pathExternalAssessment:tQ,planInfo:tz,isMobileAgent:eW,isStandaloneModule:null==e$?void 0:null===(eP=e$.instance)||void 0===eP?void 0:null===(eI=eP.details)||void 0===eI?void 0:eI.is_standalone_module,useModularTypescale:eV,isLocked:tx,pathType:ez,isCourseAssessment:tv&&t$})}),tr&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(q,{assessment:e8.data,question:e8.question,title:e8.data.title,pathTitle:tI,mode:eH,questionURL:eY.asPath,returnToCollection:tO,onAssessmentSubmit:tD,percentageCompleted:(()=>{let e=tG();return 0===e.total?null:Math.round((e.current-1)/e.total*100)})(),disableSubmitButton:te,isSkillAssessment:tE||tA,...tB,isEnterpriseAssessment:tA}),(0,i.jsx)(tq,{...tF})]})]})}),tx&&(0,i.jsx)(I.default,{isB2BDomain:d.iw.IS_B2B,freeSignupRequired:!1,userInfo:e9.data,collection:e$,collectionInstanceDetails:null===(eT=e$.instance)||void 0===eT?void 0:eT.details,learnerTags:null,docType:"Assessment",authorId:null==tl?void 0:tl.toString(),collectionId:null==to?void 0:to.toString(),pageId:t0,isCourseAssessment:tv&&t$&&(null==e8?void 0:e8.data)&&(null==e8?void 0:e8.loaded)&&Object.keys(null!=e$?e$:{}).length>0})]}),tr&&e8.loaded&&e2.isLoaded&&(0,i.jsxs)("div",{className:"fixed bottom-0 right-0 z-20 mb-8 mr-6 flex flex-col gap-y-4",children:[(0,i.jsx)(A.default,{authorId:Number(tH||tW?null===(eC=e8.data)||void 0===eC?void 0:eC.author_id:tl),collectionId:Number(tH||tW?null===(ew=e8.data)||void 0===ew?void 0:e
1w.collection_id:to),pageId:Number(tH||tW?null===(ek=e8.data)||void 0===ek?void 0:ek.assessment_id:ta),workName:tL+(tE?"":"_"+(null==e8?void 0:null===(eR=e8.data)||void 0===eR?void 0:eR.title)),workType:c.dL.SKILL_ASSESSMENT,type:tA?h.d.PRIVATE_CONTENT:tE?h.d.STANDALONE_ASSESSMENT:h.d.IN_CONTENT_ASSESSMENT,...(tH||tW)&&{pathId:Number(to),pathAuthorId:Number(tl)}}),(0,i.jsx)(S.Z,{fixed:!1})]})]})})}},85070:function(e,t,n){n.d(t,{Q:function(){return l}});var i=n(336449);let l=(e,t,n)=>{if(n){var l;let n=0,o=null==e?void 0:e.title,a=null==e?void 0:e.collection_id,r=null==e?void 0:e.author_id,s=null==e?void 0:null===(l=e.toc)||void 0===l?void 0:l.categories.filter(e=>e.type===i.j.EXTERNAL_ASSESSMENT).findIndex(e=>{var n;return e.page_id.toString()===(null==t?void 0:null===(n=t.assessment_id)||void 0===n?void 0:n.toString())});return -1!==s&&(n=s+1),{pathTitle:o,assessmentIndex:n,pathId:a,pathAuthorId:r}}return null}},412477:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(18754),l=n(139171),o=n(669661),a=()=>{var e,t;return!!(null===(t=(0,o.X)().data)||void 0===t?void 0:null===(e=t.subscription_feature_type)||void 0===e?void 0:e.is_standard_user)};function r(e){let t=(0,i.Z)(),n=(0,l.Z)(),o=a();return t||n||e&&o}},886465:function(e,t,n){n.d(t,{b:function(){return u}});var i=n(412477),l=n(44194),o=n(917144),a=n(139171),r=n(336449),s=n(395124);let d=(e,t,n,i,l,o,a)=>{let s=i===r.j.EXTERNAL_PROJECT,d=i===r.j.EXTERNAL_ASSESSMENT,u=i===r.j.LINKED_CLOUD_LAB||i===r.j.CLOUD_LAB,c=s?"project":d?"assessment":u?"cloud-lab":"",v=d&&o&&a?"&path_author_id=".concat(o,"&path_id=").concat(a):"";return"/api/".concat(c,"/").concat(e,"/").concat(t,"/").concat(n).concat(l?"?".concat(s?"lockedPreview=true":d||u?"is_locked_preview=true":"").concat(v):"")},u=function(e,t,n,u){let c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,_=arguments.length>6?arguments[6]:void 0,p=arguments.length>7?arguments[7]:void 0,{userInfoState:h}=(0,s.su)(),m=null==h?void 0:h.loggedOut,f=(0,i.Z)(),E=(0,a.Z)(),g=(0,l.useMemo)(()=>void 0!==v?v:!!m||(u===r.j.EXTERNAL_PROJECT?!f:(u===r.j.LINKED_CLOUD_LAB||u===r.j.CLOUD_LAB)&&!E),[m,v,u,f,E]),S=c?null:e&&t&&n?d(e,t,n,u,g,_,p):null;return(0,o.ZP)(S)}},351576:function(e,t,n){n.d(t,{Q:function(){return f},T:function(){return E}});var i=n(953019),l=n(358842),o=n(888371),a=n(195507),r=n(626119),s=n(670351),d=n(15096),u=n(395124),c=n(286889),v=n(878459),_=n(964752),p=n(853224),h=n(863780);let m=e=>e.filter(e=>e.subscription_plan_type===a._r.USER).map(e=>{var t,n,i;let{discountsInfoMap:l,planDiscountsInfo:o}=(0,_.Of)(e,d.vl.SUBSCRIPTION_GIFT);return{...e,discounted_price:o.discounted_price,discounted_price_usd:o.discounted_price_usd,special_discount:(null===(t=l.special_discount)||void 0===t?void 0:t.percentage)||0,special_discount_available:!!(null===(n=l.special_discount)||void 0===n?void 0:n.percentage)||(null===(i=l.special_discount)||void 0===i?void 0:i.percentage)===0}}),f=function(e){var t,n;let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=!(arguments.length>2)||void 0===arguments[2]||arguments[2],f=(0,r.t)(),{userInfoState:E}=(0,u.su)(),g=(0,c.Z)(),S=(0,s.Z)(f),A=null===(t=g.data)||void 0===t?void 0:t.complete_data_loaded,N=!!(null===(n=E.data)||void 0===n?void 0:n.user_id),x=(0,v.h)(e=>!!e.userConfig.loaded);(0,h.t)();let b=(0,v.h)(e=>{var t,n;return N&&A?null===(t=g.data)||void 0===t?void 0:t.subscriptions:x?null===(n=e.userConfig.data)||void 0===n?void 0:n.subscriptions:[]}),y=(0,i.g)(b);b=S?y:b;let L=(0,p.P)(o.Z),I=!!(null==e?void 0:e.special_discount_available)||!!(null==e?void 0:e.updated_special_discount),P=L&&I;return!(0,l.B)(b)||P?(0,_.i7)(e,a,P,d):(a&&(b=m(b)),(0,_.zD)(b,a))},E=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=f(e,i,!1),o=Math.round(t/(1-l/100));return{originalPriceToShow:o,originalMonthlyPriceToShow:o/n,maxDiscountPercentage:Math.round(l)}}},898465:function(e,t,n){n.d(t,{r:function(){return l}});var i=n(945431);let l=(e,t,n)=>(null==e?void 0:e.is_b2c_trial_active)&&n!==i.Q.UNAVAILABLE&&(n===i.Q.AVAILABLE||e.b2c_trial_categories.some(e=>null==t?void 0:t.includes(e)))},181707:function(e,t,n){n.d(t,{u:function(){return _}});var i=n(503346),l=n(930286),o=n(945431),a=n(15096),r=n(395124),s=n(403915),d=n(286889),u=n(878459),c=n(964752),v=n(863780);let _=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],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(p,h)=>{var m,f,E,g,S;let A=(0,i.useRouter)(),[,N]=(0,l.Z)([s.w.CLOUDLAB_REDIRECT_URL]),{userInfoState:x}=(0,r.su)(),b=(0,d.Z)(),y=(0,u.h)(e=>e.userConfig),L=(null===(m=x.data)||void 0===m?void 0:m.user_id)&&(null===(f=b.data)||void 0===f?void 0:f.complete_data_loaded)?b.data.subscriptions:(null===(E=y.data)||void 0===E?void 0:E.subscriptions)||[],I=!!(null===(g=x.data)||void 0===g?void 0:g.has_active_b2c_trial),P=!!(null===(S=x.data)||void 0===S?void 0:S.user_id
1);(0,v.t)();let T=(()=>{var t,n;let i=null===(t=x.data)||void 0===t?void 0:t.preferred_subscription_id,l=null===(n=b.data)||void 0===n?void 0:n.complete_data_loaded;if(i&&l)return b.data.subscriptions.find(t=>e?t.feature_set_type===a.kZ.PREMIUM&&12===t.validity_months&&t.subscription_plan_type===o._.USER:t.id===i)})();if(t){let{subscriptionPlanToShow:e,checkoutType:t}=(0,c.GZ)(L,P);return{subscriptions:L,isUserOnFreeTrial:I,subscriptionPlanToShow:e,onCTAButtonClick:()=>{N(s.w.CLOUDLAB_REDIRECT_URL,A.asPath,{path:"/",maxAge:6e5}),A.push((0,c.l$)(t,e))}}}let C=e||n?(0,c.iE)(L):_?(0,c.y4)(L,12,a.kZ.STANDARD):(0,c.y4)(L,12);return{subscriptions:L,isUserOnFreeTrial:I,subscriptionPlanToShow:C,onCTAButtonClick:()=>{_?A.push((0,c.l$)(a.vl.SUBSCRIPTION_BUY,C)):I&&!n&&T?A.push((0,c.l$)(a.vl.SUBSCRIPTION_BUY,T)):A.push("/unlimited")}}}}},754626:function(e,t,n){var i=n(78044),l=n.n(i);t.Z=e=>l()(e)},565270:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(487054),l=n(853224),o=()=>{let e=(0,l.P)("enable_lesson_page_paywalls",!0),t=(0,i.hN)();return e||t}},595403:function(e,t,n){var i=n(44194);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o=["cdnSuffix","cdnUrl","countryCode","style","svg"];t.Z=function(e){var t=e.cdnSuffix,n=e.cdnUrl,a=e.countryCode,r=e.style,s=e.svg,d=function(e,t){if(null==e)return{};var n,i,l={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,o);if("string"!=typeof a)return null;if(void 0!==s&&s){var u=""+(void 0===n?"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/4.1.4/flags/4x3/":n)+a.toLowerCase()+"."+(void 0===t?"svg":t);return(0,i.createElement)("img",Object.assign({},d,{src:u,style:l({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},r)}))}var c=a.toUpperCase().replace(/./g,function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)});return(0,i.createElement)("span",Object.assign({role:"img"},d,{style:l({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},r)}),c)}}}]);

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.