(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"+4jH":function(module,e,n){"use strict";e.a=function(e){return null==e?void 0:e.slice(0,2)}},KZJi:function(module,exports){var e={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WeeklyMaterialPartner"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Partner_Partner"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{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:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"abbreviatedName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partnerType"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"WeeklyMaterialItem"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_WeeklyMaterialItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},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:"typeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"containsAiGrading"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WeeklyMaterialPartner"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"WeeklyMaterial"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_WeeklyMaterial"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lectures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WeeklyMaterialItem"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assessments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WeeklyMaterialItem"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"supplements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WeeklyMaterialItem"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalDuration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalLectureDuration"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Material"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_Material"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalDuration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"weeks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WeeklyMaterial"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Specialization"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_Specialization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courseCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"courses"},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:"description"},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:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},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:"productVariant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subheader"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coBrandingEnabled"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RatingCountsByStar"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_RatingCountsByStar"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fiveStarRatingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fourStarRatingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"threeStarRatingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"twoStarRatingCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oneStarRatingCount"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Review"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_Review"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]}]}}],loc:{start:0,end:1248}};e.loc.source={body:"fragment WeeklyMaterialPartner on Partner_Partner {\n __typename\n id\n name\n squareLogo\n slug\n description\n abbreviatedName\n display\n partnerType\n}\n\nfragment WeeklyMaterialItem on DescriptionPage_WeeklyMaterialItem {\n id\n duration\n name\n slug\n typeName\n containsAiGrading\n partners {\n ...WeeklyMaterialPartner\n }\n}\n\nfragment WeeklyMaterial on DescriptionPage_WeeklyMaterial {\n id\n description\n name\n lectures {\n ...WeeklyMaterialItem\n }\n assessments {\n ...WeeklyMaterialItem\n }\n supplements {\n ...WeeklyMaterialItem\n }\n totalDuration\n totalLectureDuration\n}\n\nfragment Material on DescriptionPage_Material {\n totalDuration\n weeks {\n ...WeeklyMaterial\n }\n}\n\nfragment Specialization on DescriptionPage_Specialization {\n id\n courseCount\n courses {\n id\n name\n slug\n }\n description\n domains {\n ...Domain\n }\n headline\n name\n partners {\n ...Partner\n }\n productVariant\n slug\n subheader\n coBrandingEnabled\n}\n\nfragment RatingCountsByStar on DescriptionPage_RatingCountsByStar {\n fiveStarRatingCount\n fourStarRatingCount\n threeStarRatingCount\n twoStarRatingCount\n oneStarRatingCount\n}\n\nfragment Review on DescriptionPage_Review {\n id\n authorName\n comment\n rating\n timestamp\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function findOperation(e,n){for(var i=0;i0;){var c=d;d=new Set,c.forEach((function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=findOperation(e,n);i&&a.definitions.push(i)})),a}e.definitions.forEach((function(e){if(e.name){var i=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,i),n[e.name.value]=i}})),module.exports=e,module.exports.WeeklyMaterialPartner=oneQuery(e,"WeeklyMaterialPartner"),module.exports.WeeklyMaterialItem=oneQuery(e,"WeeklyMaterialItem"),module.exports.WeeklyMaterial=oneQuery(e,"WeeklyMaterial"),module.exports.Material=oneQuery(e,"Material"),module.exports.Specialization=oneQuery(e,"Specialization"),module.exports.RatingCountsByStar=oneQuery(e,"RatingCountsByStar"),module.exports.Review=oneQuery(e,"Review")},cLQn:function(module,e,n){"use strict";var i=n("q1tI"),a=n("vXr1"),t=n("fAYU"),r=n("l1rq"),d=n("9A5E"),c=n("J4zp"),o=n.n(c),s=n("VkAN"),l=n.n(s),m=n("OhL7"),u=n("kvW3"),v=n("FdHa"),g=n("8Hdl"),p=n("qCXy");function truncToPlace(e,n){var i=Math.pow(10,-10),a=e>=0?e+i:e-i,t=Math.pow(10,n);return Math.floor(a*t)/t}var k,f,b,y,S,h,O,N,w,F,j,x,M,C,D,R,P,E,I,W,T,L,B,A,G,Q,z,J,V,q,H,U,components_FloatToPercent=function(e){var n=e.value,a=e.maxFractionDigits,t=void 0===a?2:a;if(null!=n&&Number.isFinite(n)){var r=truncToPlace(n,2+t),d=truncToPlace(100*r,2)%1==0?0:2;return i.createElement(u.c,{value:r,style:"percent",minimumFractionDigits:d})}return null},Y=n("17x9"),K=n.n(Y),X=n("yJwk"),Z=n.n(X),roundToPrecision=function(e){return function(n){if(0===n)return 0;var i=Math.floor(Math.log(n)/Math.log(10)),a=Math.pow(10,i-e+1);return Math.round(n/a)*a}},ee={integer:Math.round,percentage:roundToPrecision(2),largeNumber:function(e){return e<1e3?ee.integer(e):roundToPrecision(2)(e)}},ne={integer:function(e){return e.toLocaleString(void 0,{maximumFractionDigits:0})},integerOrTenths:function(e){var n=e<10?1:0;return e.toLocaleString(void 0,{maximumFractionDigits:n})},float:function(e){return e.toLocaleString(void 0,{maximumFractionDigits:2})},percentage:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=(100*e).toLocaleString(void 0,{minimumSignificantDigits:2,maximumSignificantDigits:2}),a=n?"%":"";return i+a},percentageWithTenths:function(e){return(100*e).toLocaleString(void 0,e<.01?{maximumFractionDigits:1}:{maximumSignificantDigits:2})+"%"},largeNumber:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Math.floor(Math.log(e)/Math.log(10));if(i<3)return String(ee.integer(e));if(i<6){var a=(e/Math.pow(10,3)).toLocaleString(void 0,{maximumSignificantDigits:2});return n?Z()("#{numberOfThousands}K",{numberOfThousands:a}):Z()("#{numberOfThousands}k",{numberOfThousands:a})}var t=(e/Math.pow(10,6)).toLocaleString(void 0,{maximumSignificantDigits:2});return n?Z()("#{numberOfMillions}M",{numberOfMillions:t}):Z()("#{numberOfMillions}m",{numberOfMillions:t})}},ie={Rounders:ee,Formatters:ne,PropTypes:{renderableNumber:K.a.oneOf(["integer","integerOrTenths","float","largeNumber","percentage","percentageWithTenths"])}},ae=n("dl6a"),te=n.n(ae),re={barGraphContainer:function(){return Object(m.c)(k||(k=l()(["\n max-width: 315px;\n padding: 0 0 var(--cds-spacing-300) 0;\n vertical-align: middle;\n display: table;\n border-collapse: collapse;\n white-space: nowrap;\n\n li {\n border-bottom: var(--cds-spacing-100) solid transparent;\n }\n\n "," {\n max-width: 100%;\n margin-bottom: var(--cds-spacing-200);\n }\n "])),v.a.down("sm"))},graphRow:Object(m.c)(f||(f=l()(["\n width: 100%;\n display: table-row;\n "]))),starBarLabel:Object(m.c)(b||(b=l()(["\n display: table-cell;\n position: relative;\n vertical-align: middle;\n "]))),barGraphBar:Object(m.c)(y||(y=l()(["\n height: 6px;\n width: 100%;\n display: table-cell;\n vertical-align: middle;\n padding-top: 2px;\n position: relative;\n white-space: nowrap;\n "]))),numRatings:Object(m.c)(S||(S=l()(["\n white-space: nowrap;\n display: table-cell;\n vertical-align: middle;\n "]))),greyBar:Object(m.c)(h||(h=l()(["\n content: '';\n top: 0;\n left: 0;\n width: 100%;\n position: relative;\n height: 6px;\n background: var(--cds-color-grey-50);\n border-radius: 8px;\n "]))),blueBar:function(e){return Object(m.c)(O||(O=l()(["\n content: '';\n top: 0;\n left: 0;\n position: relative;\n height: 6px;\n background: var(--cds-color-blue-700);\n display: block;\n width: ",";\n border-radius: 8px;\n "])),e)},ratingsSummary:Object(m.c)(N||(N=l()(["\n display: inline-flex;\n align-items: baseline;\n margin-bottom: var(--cds-spacing-300);\n "]))),star:Object(m.c)(w||(w=l()(["\n color: var(--cds-color-blue-700);\n margin-right: var(--cds-spacing-50);\n "]))),reviewCount:Object(m.c)(F||(F=l()(["\n margin-left: var(--cds-spacing-150);\n "]))),rowWhiteSpace:Object(m.c)(j||(j=l()(["\n display: inline-block;\n width: 0.5em;\n "])))},de={one:1,two:2,three:3,four:4,five:5},RatingsBreakdown=function(e){var n=e.averageFiveStarRating,a=e.ratingCountsByStar,t=e.ratingCount;if(!a||!t)return null;var d=Object.values(a).reduce((function(e,n){return n&&"number"==typeof n?e+n:e}),0);return Object(m.d)(i.Fragment,null,Object(m.d)("span",{css:re.ratingsSummary},Object(m.d)(p.a,{color:"interactive",css:re.star}),Object(m.d)(g.a,{variant:"h1semibold",component:"span"},null==n?void 0:n.toFixed(1)),Object(m.d)(r.a,{component:"p",variant:"bodySecondary",css:re.reviewCount},Object(m.d)(u.b,{message:te()("{ratingCount} reviews"),ratingCount:Object(m.d)(u.c,{value:t})}))),d>0&&Object(m.d)("div",{"data-unit":"reviews-bar-graph","data-testid":"reviews-bar-graph"},Object(m.d)("ul",{css:re.barGraphContainer},Object.entries(a).map((function(e){var n=o()(e,2),i=n[0],a=n[1],t=Number(a)/d,c=ie.Formatters.percentage(t),s=i.includes("oneStar")?"star":"stars",l=de[i.substring(0,i.indexOf("Star"))];return l?Object(m.d)("li",{key:"".concat(l,"-star"),css:re.graphRow},Object(m.d)("span",{css:re.starBarLabel},Object(m.d)(r.a,{variant:"subtitleMedium",component:"span"},te()("#{numStarIndex} #{starLabel}",{numStarIndex:l,starLabel:s}))),Object(m.d)("span",{css:re.rowWhiteSpace}),Object(m.d)("span",{css:re.barGraphBar},Object(m.d)("div",{css:re.greyBar},Object(m.d)("div",{css:re.blueBar(c)}))),Object(m.d)("span",{css:re.rowWhiteSpace}),Object(m.d)("span",{css:re.numRatings},Object(m.d)(r.a,{component:"p",variant:"bodySecondary"},Object(m.d)(components_FloatToPercent,{value:t})))):null})))))},ce=n("3tO9"),oe=n.n(ce),se=n("JJfJ"),le=n("Who7"),me=n("mHyk"),ue=n("FH6Z"),ve=n("2seQ"),ge={wrapper:function(){return Object(m.c)(x||(x=l()(["\n display: flex;\n padding: var(--cds-spacing-300) var(--cds-spacing-400);\n border: 2px solid var(--cds-color-grey-50);\n border-radius: 8px;\n\n "," {\n padding: var(--cds-spacing-200) var(--cds-spacing-400);\n }\n "])),v.a.down("sm"))},avatar:function(){return Object(m.c)(M||(M=l()(["\n height: 60px;\n width: 60px;\n border-radius: 200px;\n background: var(--cds-color-blue-900);\n display: flex;\n flex: none;\n justify-content: center;\n align-items: center;\n\n "," {\n display: none;\n }\n "])),v.a.down("sm"))},name:function(){return Object(m.c)(C||(C=l()(["\n margin-left: var(--cds-spacing-150);\n height: 60px;\n align-items: center;\n display: flex;\n min-width: 112px;\n\n "," {\n position: absolute;\n height: auto;\n margin-bottom: 4px;\n margin-left: 0;\n }\n "])),v.a.down("sm"))},review:function(){return Object(m.c)(D||(D=l()(["\n margin-left: var(--cds-spacing-200);\n "," {\n margin-left: 0;\n margin-top: var(--cds-spacing-200);\n }\n "])),v.a.down("sm"))},score:function(){return Object(m.c)(R||(R=l()(["\n margin-bottom: var(--cds-spacing-150);\n display: inline-flex;\n align-items: center;\n\n "," {\n margin-top: var(--cds-spacing-100);\n margin-bottom: var(--cds-spacing-100);\n }\n "])),v.a.down("sm"))},star:function(){return Object(m.c)(P||(P=l()(["\n color: var(--cds-color-blue-700);\n margin-right: var(--cds-spacing-50);\n "])))},rating:function(){return Object(m.c)(E||(E=l()(["\n ::after {\n content: '·';\n padding: var(--cds-spacing-100);\n color: var(--cds-color-grey-600);\n }\n "])))},reviewDescription:function(){return Object(m.c)(I||(I=l()(["\n ","\n "])),le.c.bodyPrimary)}},reviews_ReviewCard=function(e){var n,i=e.review,a=e.trackingIndex,t=e.ariaHidden,d=Object(ve.b)(),c=Object(me.f)("view_review_card",oe()({reviewCard:{star:null!==(n=null==i?void 0:i.rating)&&void 0!==n?n:-1,index:null!=a?a:-1}},d));return i?Object(m.d)("div",{css:ge.wrapper,ref:c},Object(m.d)("div",{css:ge.avatar},Object(m.d)(g.a,{color:"invertBody",variant:"h1semibold",component:"div","aria-hidden":!0},i.authorName.charAt(0))),Object(m.d)("div",{css:ge.name},Object(m.d)(r.a,{variant:"subtitleMedium",component:"div"},i.authorName)),Object(m.d)("div",{css:ge.review},Object(m.d)("span",{css:ge.score},Object(m.d)(p.a,{size:"small",color:"interactive",css:ge.star}),Object(m.d)(r.a,{variant:"subtitleMedium",component:"span",css:ge.rating},i.rating),Object(m.d)(r.a,{component:"p",variant:"bodySecondary"},te()("Reviewed on #{date}",{date:Object(se.i)(i.timestamp,se.e.MED_DATE_ONLY_DISPLAY)}))),Object(m.d)(ue.a,{ariaHidden:t,description:i.comment.replace(/\\n/g,"\n"),trackingName:"review_card_show_more",css:ge.reviewDescription}))):null},pe=n("+B42"),ke=n("6/Gu"),fe=n("sOkY"),be=n("N2Jo"),ye=n("A0dR"),Se=n("+TN3"),he=n("UYTu"),Oe=n("C/IQ"),Ne=Object(he.a)(W||(W=l()(['\n query AiReviewSummaryQuery($key: String!) {\n ExternallyAccessibleNostosV1Resource {\n getAllProperties(job_name: "merchandising_ai_review", keys: $key) {\n elements {\n id\n content\n }\n }\n }\n }\n']))),we=n("vBmv"),Fe={container:Object(m.c)(T||(T=l()(["\n display: flex;\n max-width: 640px;\n gap: var(--cds-spacing-200);\n flex-direction: column;\n margin-bottom: var(--cds-spacing-600);\n\n > * {\n display: inline-flex;\n }\n "]))),aiGenerateIcon:Object(m.c)(L||(L=l()(["\n margin-right: var(--cds-spacing-50);\n "]))),sentimentGrid:Object(m.c)(B||(B=l()(["\n display: flex;\n flex-direction: row;\n gap: var(--cds-spacing-100) var(--cds-spacing-200);\n flex-wrap: wrap;\n "]))),sentimentGridItem:Object(m.c)(A||(A=l()(["\n display: inline-block;\n vertical-align: middle;\n "]))),sentimentGridItemIcon:Object(m.c)(G||(G=l()(["\n vertical-align: middle;\n margin-right: var(--cds-spacing-50);\n "]))),sentimentGridItemText:Object(m.c)(Q||(Q=l()(["\n vertical-align: middle;\n "])))},reviews_AIReview=function(){var e,n,i,a,t,d,c,s,l,u,v,g,p=Object(we.b)(),k=(u=null!==(e=null==p?void 0:p.id)&&void 0!==e?e:"",v="en"===te.a.getLocale(),{data:(g=Object(Se.b)(Ne,{variables:{key:"COURSE!~".concat(u)},skip:!v||!u||!Oe.a.get("enableAiReviews"),fetchPolicy:"cache-first"})).data,loading:g.loading,error:g.error}),f=k.data;if(k.loading||k.error||!f)return null;var b=null==f?void 0:null===(n=f.ExternallyAccessibleNostosV1Resource)||void 0===n?void 0:null===(i=n.getAllProperties)||void 0===i?void 0:null===(a=i.elements)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.content.review,y=null==f?void 0:null===(d=f.ExternallyAccessibleNostosV1Resource)||void 0===d?void 0:null===(c=d.getAllProperties)||void 0===c?void 0:null===(s=c.elements)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:l.content.sentiment,S=JSON.parse(null!=y?y:null);return b?Object(m.d)("div",{css:Fe.container},Object(m.d)(r.a,{variant:"subtitleMedium",component:"h2"},Object(m.d)(be.a,{css:Fe.aiGenerateIcon}),te()("AI snapshot of learner reviews")),Object(m.d)(r.a,{variant:"bodyPrimary",component:"p"},b),S&&Object(m.d)("div",{css:Fe.sentimentGrid,role:"list"},Object.entries(S).map((function(e){var n=o()(e,2),i=n[0];return"positive"===n[1]&&Object(m.d)("div",{key:y,css:Fe.sentimentGridItem,role:"listitem"},Object(m.d)(ye.a,{css:Fe.sentimentGridItemIcon,color:"success","aria-hidden":"false","aria-label":te()("Positive sentiment icon")}),Object(m.d)(r.a,{variant:"actionSecondary",component:"span",css:Fe.sentimentGridItemText},i))})))):null},je=n("2HRx"),xe={contentWrapper:Object(m.c)(z||(z=l()(["\n padding: var(--cds-spacing-400) 0 var(--cds-spacing-400) 0;\n\n "," {\n display: inline-grid;\n padding: 0;\n }\n "])),v.a.down("sm")),headerLabels:Object(m.c)(J||(J=l()(["\n "," {\n display: none;\n }\n "])),v.a.down("sm")),reviews:Object(m.c)(V||(V=l()(["\n display: inline-grid;\n gap: var(--cds-spacing-300);\n "," {\n gap: var(--cds-spacing-150);\n }\n "])),v.a.down("sm")),cta:Object(m.c)(q||(q=l()(["\n a {\n color: var(--cds-color-neutral-primary) !important; /* Required to override Link styling */\n }\n "]))),streamlinedCTA:Object(m.c)(H||(H=l()(["\n margin-top: var(--cds-spacing-100);\n\n a {\n text-decoration: none;\n\n :hover {\n text-decoration: underline;\n }\n }\n\n span {\n ",";\n }\n "])),oe()({},le.c.actionSecondary))},reviews_ReviewsModule=function(e){var n=e.title,i=e.ratingsInfo,a=e.reviews,t=e.ratingsBreakdown,d=e.cta,c=e.anchorId;e.courseId;return a&&null!=a&&a.length&&i&&n?Object(m.d)(je.a,{anchorId:c},Object(m.d)(fe.a,{trackingName:"reviews_module",withVisibilityTracking:!0,requireFullyVisible:!1,trackClicks:!1},Object(m.d)(pe.a,null,Object(m.d)(ke.a,{container:!0,item:!0,md:4,direction:"column"},Object(m.d)("div",{css:xe.headerLabels},Object(m.d)(g.a,{variant:"h2semibold",component:"h2"},n)),Object(m.d)(ke.a,{css:xe.contentWrapper},t)),Object(m.d)(ke.a,{container:!0,item:!0,md:8},U||(U=Object(m.d)(reviews_AIReview,null)),Object(m.d)(ke.a,{container:!0,item:!0,css:xe.headerLabels},(null==i?void 0:i.ratingCount)&&3<=i.ratingCount&&Object(m.d)(r.a,{component:"p",color:"supportText"},te()("Showing #{numDisplayedReviews} of #{ratingCount}",{numDisplayedReviews:3,ratingCount:i.ratingCount}))),Object(m.d)(ke.a,{item:!0,css:[xe.reviews,xe.contentWrapper]},a.slice(0,3),d&&Object(m.d)("div",{css:xe.cta},d)))))):null},Me=n("/Xa4");e.a=function(e){var n,c,o,s=e.pageData,l=e.config,m=Object(Me.b)(),u=m.navigationIdMap,v=m.subfolderLocaleCode,g=Object(a.c)().pathname,p=null!=g&&g.endsWith("/")?null==g?void 0:g.slice(0,-1):g;return v&&p.includes("/".concat(v))&&(p=p.replace("/".concat(v),"")),i.createElement(reviews_ReviewsModule,{anchorId:null==u?void 0:u.REVIEWS,title:te()("Learner reviews"),ratingsInfo:s.ratings,ratingsBreakdown:i.createElement(RatingsBreakdown,{averageFiveStarRating:null==s?void 0:null===(n=s.ratings)||void 0===n?void 0:n.averageFiveStarRating,ratingCountsByStar:null==s?void 0:s.ratingCountsByStar,ratingCount:null==s?void 0:null===(c=s.ratings)||void 0===c?void 0:c.ratingCount}),reviews:null==s?void 0:null===(o=s.topReviews)||void 0===o?void 0:o.slice(0,3).map((function(e,n){return i.createElement(reviews_ReviewCard,{ariaHidden:!1,review:e,key:e.id,trackingIndex:n})})),cta:!(null!=l&&l.disableCta)&&i.createElement(t.a,{component:d.a,trackingName:"reviews_module_view_more_cta",href:"".concat(p,"/reviews")},i.createElement(r.a,{component:"span"},te()("View more reviews")))})}},"nqp+":function(module,exports){var e={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionEntity"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DescriptionPage_CollectionEntity"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"partnerIds"},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:"productType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}],loc:{start:0,end:162}};e.loc.source={body:"fragment CollectionEntity on DescriptionPage_CollectionEntity {\n name\n id\n imageUrl\n link\n partnerIds\n partners {\n ...Partner\n }\n productType\n slug\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function findOperation(e,n){for(var i=0;i0;){var c=d;d=new Set,c.forEach((function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=findOperation(e,n);i&&a.definitions.push(i)})),a}(e,"CollectionEntity")},yJwk:function(module,exports,e){var n=e("zUJM"),i=n.default?n.default:{},a=(0,e("HdzH").default)(i);a.getLocale=function(){return"es"},module.exports=a},zUJM:function(module,exports){exports.default={"#{courseName} can't be deleted":"No es posible eliminar #{courseName}","#{numberOfMillions}M":"#{numberOfMillions} m","#{numberOfMillions}m":"#{numberOfMillions} m","#{numberOfThousands}K":"#{numberOfThousands} mil","#{numberOfThousands}k":"#{numberOfThousands} mil","All Content Types":"Todos los tipos de contenido","App item":"Elemento de aplicación","Assessments":"Evaluaciones","Assignment":"Tarea","Cancel":"Cancelar","Changes made here will affect these sessions":"Los cambios realizados aquí afectarán estas sesiones","Changes made here will also affect {numGroups, plural, =1 {# private session} other {# private sessions}} that {numGroups, plural, =1 {is} other {are}} using this content.":"Los cambios realizados aquí también afectarán a {numGroups, plural, =1 {# sesión privada} other {# sesiones privadas}} que {numGroups, plural, =1 {está} other {están}} utilizando este contenido.","Changes made here will also affect {numInstances, plural, =1 {# private session} other {# private sessions}} that {numInstances, plural, =1 {is} other {are}} using this content.":"Los cambios realizados aquí también afectarán a {numInstances, plural, =1 {# sesión privada} other {# sesiones privadas}} que {numInstances, plural, =1 {está} other {están}} utilizando este contenido.","Choose Partner Modal":"Elige el modal de socio","Close":"cerrar","Close information about the \"URL\" section":"Cerrar la información sobre la sección \"URL\"","Content here will be accessible in all versions of this {course}.":"Se podrá acceder al contenido que se encuentra aquí en todas las versiones de este {course}.","Continue":"Continuar","Delete course":"Eliminar curso","Delete this #{course}?":"¿Deseas eliminar este #{course}?","Delete this course?":"¿Deseas eliminar este curso?","Delete {course}":"Eliminar {course}","Discussion prompt":"Cuadro de aviso de la discusión","Educator Resource Center":"Centro de Recursos para Educadores","Graded assessments":"Evaluaciones calificadas","Information about the \"URL\" section":"Información sobre la sección \"URL\"","Lower-case letters, numbers, and dashes only.":"Solo letras en minúscula, números y guiones.","Next":"Siguiente","Part of: {degreeName} ":"Parte de: {degreeName}","Peer review":"Revisión por el compañero","Please contact us at the {link}.":"Ponte en contacto con nosotros en {link}","Please select an institution to continue.":"Selecciona una institución para continuar.","Private groups using this session":"Grupos privados que están usando esta sesión","Private sessions using this content":"Sesiones privadas donde se usa este contenido","Programming Assignment":"Actividad de programación","Quiz":"Cuestionario","Reading":"Lectura","Readings":"Lecturas","Save":"Guardar","Saving...":"Guardando...","Select institution":"Seleccionar institución","Sorry, this URL is already in use.":"Lo sentimos. Esta URL ya está en uso.","Switch to classic experience":"Cambiar a la experiencia clásica","Teammate review":"Revisión de un compañero","There is no session attached to this course version. Go to the Course Overview page to create a new session.":"No hay ninguna sesión vinculada a esta versión del curso. Ve a la página Descripción general del curso para crear una nueva sesión.","This URL is already in use.":"Esta URL ya está en uso.","This page can only be viewed by authorized accounts. If you should have access to this page, please contact us at the {link} via webform or chat.":"Solo las cuentas autorizadas pueden ver esta página. Si deberías tener acceso a esta página, comunícate con nosotros en {link} a través del formulario web o chat.","This will permanently delete this {course}. You can't undo this action.":"Se eliminará {course} de forma permanente. No puedes deshacer esta acción.","This {course} can't be deleted due to:":"Este {course} no puede eliminarse porque:","To view or make changes, go to {versionName} which is attached to this session.":"Para ver o hacer cambios, dirígete a {versionName} , que está asociada a esta sesión.","URL":"URL","URL cannot be longer than #{numCharacters} characters.":"La URL no puede tener más de #{numCharacters} caracteres.","Ungraded lab":"Laboratorio no calificado","Ungraded plugin":"Complemento no calificado","Video":"Vídeo","Videos":"Vídeos","View course prompt":"Ver el cuadro de aviso del curso","Warning: #{tooltip}":"Atención: #{tooltip}","{capitalizedCourse} deleted successfully.":"{capitalizedCourse} eliminado con éxito."}}}]);