(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{"6ySl":function(module,e,n){"use strict";n.d(e,"a",(function(){return toCarouselCollection}));var i=n("3tO9"),a=n.n(i),t=n("w+Vu"),d=n("xHIQ"),r={COURSE:t.f.Course,PROFESSIONAL_CERTIFICATE:t.f.ProfessionalCertificate,PROJECT:t.f.Project,RHYME_PROJECT:t.f.GuidedProject,SPECIALIZATION:t.f.Specialization,"GUIDED PROJECT":t.f.GuidedProject},toCarouselCollection=function(e){var n=e.recommendationsCollection,i=e.collectionId,t=e.subfolderLocaleCode;return{entities:n.map((function(e){return a()(a()({},(n=e,a()(a()({},n),{},{imageUrl:n.imageUrl,partners:n.partners.map((function(e){return a()(a()({},e),{},{logo:e.squareLogo})})),partnerLogos:n.partners&&n.partners.map((function(e){return e.squareLogo})),productType:r[n.productType]}))),{},{link:Object(d.a)({productPageUrlPath:e.link,subfolderLocaleCode:t})});var n})),collectionId:i,title:""}}},Es8H:function(module,exports){var e={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RelatedRecommendation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductCard_ProductCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canonicalType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketingProductType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"badges"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productTypeAttributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductCard_Course"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canonical"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"squareLogo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"promoPhotoUrl"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProductCard_Specialization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canonical"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productVariant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"squareLogo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cardImageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlPath"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:593}};e.loc.source={body:"fragment RelatedRecommendation on ProductCard_ProductCard {\n id\n canonicalType\n marketingProductType\n badges\n productTypeAttributes {\n ... on ProductCard_Course {\n canonical {\n id\n name\n slug\n partners {\n id\n name\n squareLogo\n }\n promoPhotoUrl\n }\n }\n ... on ProductCard_Specialization {\n canonical {\n id\n name\n productVariant\n slug\n partners {\n id\n name\n squareLogo\n }\n cardImageUrl\n urlPath\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function findOperation(e,n){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){d.has(e)||(d.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return d.forEach((function(n){var i=findOperation(e,n);i&&a.definitions.push(i)})),a}(e,"RelatedRecommendation")},qPgu:function(module,exports,e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ConsumerCoursePageFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_CoursePage"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activeSpecialization"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Specialization"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"averageContentSatisfactionScore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"averageInstructorRating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"certificates"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cmlFaqs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Faq"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cmlLearningObjectives"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CmlContent"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cmlRecommendedBackground"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CmlContent"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentSatisfactionRatingsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"degrees"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Degree"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"difficultyLevel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domains"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Domain"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"estimatedWorkload"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"instructorRatingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"instructors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Instructor"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"learnerIncentivePromotions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"learningOutcomes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"careerOutcomeNewCareer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"careerOutcomePayIncrease"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"careerOutcomePromotion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tangibleCareerOutcome"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"material"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Material"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"metaImgSrc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageViewsInLastMonthCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Partner"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"photoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"premiumExperienceVariant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"primaryLanguages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"primarySpecialization"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Specialization"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"projectMetadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"screenshotUrls"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cmlTasks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CmlContent"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"ratingCountsByStar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RatingCountsByStar"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ratings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Ratings"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"skills"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specializations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Specialization"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subtitleLanguages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topReviews"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Review"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalEnrollmentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasFullDiscount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"launchedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"testimonials"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Testimonial"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedRecommendations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recommenderConfigurationHash"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"entities"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"elements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelatedRecommendation"},directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"relatedCourses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionEntity"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"translatedLanguages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isMachineTranslated"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dubbedLanguages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"languageCode"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ConsumerCoursePage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"specializationSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"DescriptionPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"queryCoursePage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}},{kind:"ObjectField",name:{kind:"Name",value:"specializationSlug"},value:{kind:"Variable",name:{kind:"Name",value:"specializationSlug"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ConsumerCoursePageFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:2182}};n.loc.source={body:'#import "./SharedCommonEntitiesFragments.graphql"\n#import "./SharedCourseEntitiesFragments.graphql"\n#import "./TestimonialFragment.graphql"\n#import "./CollectionEntityFragment.graphql"\n#import "./SharedRelatedRecommendationsEntityFragment.graphql"\n\nfragment ConsumerCoursePageFields on DescriptionPage_CoursePage {\n id\n activeSpecialization {\n ...Specialization\n }\n averageContentSatisfactionScore\n averageInstructorRating\n certificates\n cmlFaqs {\n ...Faq\n }\n cmlLearningObjectives {\n ...CmlContent\n }\n cmlRecommendedBackground {\n ...CmlContent\n }\n contentSatisfactionRatingsCount\n courseStatus\n courseType\n degrees {\n ...Degree\n }\n description\n difficultyLevel\n domains {\n ...Domain\n }\n estimatedWorkload\n instructorRatingCount\n instructors {\n ...Instructor\n }\n learnerIncentivePromotions {\n id\n imageUrl\n text\n title\n }\n learningOutcomes {\n careerOutcomeNewCareer\n careerOutcomePayIncrease\n careerOutcomePromotion\n tangibleCareerOutcome\n }\n material {\n ...Material\n }\n metaImgSrc\n name\n pageViewsInLastMonthCount\n partners {\n ...Partner\n }\n photoUrl\n premiumExperienceVariant\n primaryLanguages\n primarySpecialization {\n ...Specialization\n }\n projectMetadata {\n id\n screenshotUrls\n cmlTasks {\n ...CmlContent\n }\n }\n ratingCountsByStar {\n ...RatingCountsByStar\n }\n ratings {\n ...Ratings\n }\n skills\n slug\n specializations {\n ...Specialization\n }\n subtitleLanguages\n topReviews {\n ...Review\n }\n totalEnrollmentCount\n hasFullDiscount\n launchedAt\n testimonials {\n ...Testimonial\n }\n relatedRecommendations {\n context\n recommenderConfigurationHash\n entities(limit: $limit) {\n elements {\n ...RelatedRecommendation\n }\n }\n }\n relatedCourses {\n ...CollectionEntity\n }\n translatedLanguages {\n code\n isMachineTranslated\n }\n dubbedLanguages {\n languageCode\n }\n}\n\nquery ConsumerCoursePage($slug: String!, $specializationSlug: String, $limit: Int) {\n DescriptionPage {\n queryCoursePage(input: { slug: $slug, specializationSlug: $specializationSlug }) {\n ...ConsumerCoursePageFields\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function unique(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)}))}n.definitions=n.definitions.concat(unique(e("y6w9").definitions)),n.definitions=n.definitions.concat(unique(e("KZJi").definitions)),n.definitions=n.definitions.concat(unique(e("nm7A").definitions)),n.definitions=n.definitions.concat(unique(e("nqp+").definitions)),n.definitions=n.definitions.concat(unique(e("Es8H").definitions));var a={};function findOperation(e,n){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){d.has(e)||(d.add(e),(a[e]||new Set).forEach((function(e){r.add(e)})))}))}return d.forEach((function(n){var a=findOperation(e,n);a&&i.definitions.push(a)})),i}n.definitions.forEach((function(e){if(e.name){var n=new Set;!function collectFragmentReferences(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){collectFragmentReferences(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){collectFragmentReferences(e,n)})),e.definitions&&e.definitions.forEach((function(e){collectFragmentReferences(e,n)}))}(e,n),a[e.name.value]=n}})),module.exports=n,module.exports.ConsumerCoursePageFields=oneQuery(n,"ConsumerCoursePageFields"),module.exports.ConsumerCoursePage=oneQuery(n,"ConsumerCoursePage")},rG1F:function(module,e,n){"use strict";e.a={RECOMMENDATIONS:"recommendations",RELATED_COURSE:"related-courses",DEGREES:"degrees"}},tz8j:function(module,e,n){"use strict";var i=n("3tO9"),a=n.n(i),t=n("J4zp"),d=n.n(t),r=n("q1tI"),l=n("Gcrz"),s=n("MnCE"),o=n("+LJP"),m=n("KJ4d"),c=n("j2mU"),u=n("vBmv"),v=n("qPgu"),k=n.n(v),g=n("uJvG"),S=n("w+Vu"),getFormattedRecommendations_getFormattedRecommendations=function(e,n){var i=e||{},t=i.context,d=i.recommenderConfigurationHash,r=i.entities,l=null==r?void 0:r.elements;if(e&&l){return l.flatMap((function(e){var i;if(e){var r=null!==(i=null==e?void 0:e.productTypeAttributes)&&void 0!==i?i:{},l="canonical"in r?r.canonical:void 0;return a()(a()({},function(e){var n=e.productTypeAttributes,i=e.marketingProductType,a="",t="",d="";if("ProductCard_Course"===(null==n?void 0:n.__typename)){var r,l=n.canonical,s=l.slug,o=l.promoPhotoUrl;a=(t=null!==(r=Object(g.e)(i))&&void 0!==r?r:"")===S.f.Project||t===S.f.GuidedProject?"/projects/".concat(s):"/learn/".concat(s),d=null!=o?o:""}else if("ProductCard_Specialization"===(null==n?void 0:n.__typename)){var m=n.canonical,c=m.cardImageUrl,u=m.urlPath;switch(m.productVariant){case"NORMAL_S12N":a=u,t="SPECIALIZATION",d=c;break;case"PROFESSIONAL_CERTIFICATE_S12N":a=u,t="PROFESSIONAL_CERTIFICATE",d=c}}return{link:a,productType:t,imageUrl:d}}(e)),{},{id:null==e?void 0:e.id,name:null==l?void 0:l.name,slug:null==l?void 0:l.slug,partners:null==l?void 0:l.partners,statusTags:n?void 0:null==e?void 0:e.badges,recommenderConfigurationHash:d,context:t})}})).filter((function(e){return void 0!==e}))}};e.a=Object(s.b)(Object(o.a)((function(e){var n;return{slug:e.params.productSlug,specializationSlug:null===(n=e.location.query)||void 0===n?void 0:n.specialization}})))((function(e){var n=e.slug,i=e.specializationSlug,t=e.children,s=Object(c.a)(n,"COURSE"),o=d()(s,2),v=o[0],g=o[1];return r.createElement(l.b,{query:k.a,variables:{slug:n,specializationSlug:i,limit:12},context:{clientName:"gatewayGql"},errorPolicy:"all"},(function(e){var n,i=e.data,d=e.loading,l=e.error,s=null==i?void 0:null===(n=i.DescriptionPage)||void 0===n?void 0:n.queryCoursePage,o=null==s?void 0:s.relatedRecommendations,c=s?a()(a()({},s),{},{material:Object(m.a)(s.material,v),relatedRecommendations:getFormattedRecommendations_getFormattedRecommendations(o)}):s;return r.createElement(u.a.Provider,{value:{coursePage:c,isCourseDataLoading:d||g,error:l}},t)}))}))}}]); //# sourceMappingURL=31.8981c1a9b3d910a1de49.js.map