@coorpacademy/components 11.40.10-alpha.16.0 → 11.40.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/es/molecule/learner-skill-card/index.js +1 -1
  2. package/es/molecule/learner-skill-card/index.js.map +1 -1
  3. package/es/molecule/playlist-card/style.css +3 -2
  4. package/es/template/common/search-page/index.js +7 -4
  5. package/es/template/common/search-page/index.js.map +1 -1
  6. package/lib/molecule/learner-skill-card/index.js +1 -1
  7. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  8. package/lib/molecule/playlist-card/style.css +3 -2
  9. package/lib/template/common/search-page/index.js +7 -4
  10. package/lib/template/common/search-page/index.js.map +1 -1
  11. package/locales/bs/global.json +2 -2
  12. package/locales/cs/global.json +2 -2
  13. package/locales/de/global.json +2 -2
  14. package/locales/es/global.json +2 -2
  15. package/locales/et/global.json +2 -2
  16. package/locales/fi/global.json +2 -2
  17. package/locales/hr/global.json +2 -2
  18. package/locales/hu/global.json +2 -2
  19. package/locales/hy/global.json +2 -2
  20. package/locales/it/global.json +2 -2
  21. package/locales/ja/global.json +2 -2
  22. package/locales/ko/global.json +2 -2
  23. package/locales/lt/global.json +2 -2
  24. package/locales/nl/global.json +2 -2
  25. package/locales/pl/global.json +2 -2
  26. package/locales/pt/global.json +2 -2
  27. package/locales/ro/global.json +2 -2
  28. package/locales/ru/global.json +2 -2
  29. package/locales/sk/global.json +2 -2
  30. package/locales/sl/global.json +2 -2
  31. package/locales/sv/global.json +2 -2
  32. package/locales/tl/global.json +2 -2
  33. package/locales/tr/global.json +2 -2
  34. package/locales/uk/global.json +2 -2
  35. package/locales/vi/global.json +2 -2
  36. package/locales/zh/global.json +2 -2
  37. package/locales/zh_TW/global.json +2 -2
  38. package/package.json +2 -2
@@ -20,7 +20,7 @@ const LearnerSkillCard = (props, context) => {
20
20
  label,
21
21
  focus,
22
22
  metrics,
23
- progress,
23
+ progress = 0,
24
24
  icon,
25
25
  onClick
26
26
  } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useCallback","useMemo","useRef","PropTypes","Provider","GetTranslateFromContext","ProgressBar","COLORS","createGradientBackground","FaIcon","style","MAX_SCORE","updateBackgroundImage","ref","background","current","backgroundImage","LearnerSkillCard","props","context","ariaLabel","cardIndex","title","label","focus","metrics","progress","icon","onClick","content","questionsToReview","translate","color","name","badgeIconName","badgeLocale","tagTextColor","tagBackgroundColor","purple_700","purple_100","neutral_500","cm_grey_100","headerBackgroundRef","defaultBackground","focusBackground","handleMouseEnter","handleMouseLeave","createElement","className","learnerSkillCardContainer","onMouseEnter","onMouseLeave","iconHeaderWrapper","iconWrapper","iconName","iconColor","size","faSize","wrapperSize","borderRadius","gradientBackground","customStyle","border","learnerSkillCardContent","skillTitleWrapper","skillFocusBadge","backgroundColor","questionWrapper","skillTitle","contentAndQuestionsWrapper","dangerouslySetInnerHTML","__html","count","skillInformation","cm_grey_400","progressInformations","value","displayInfo","max","progressWrapper","cm_positive_500","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","type","oneOf","isRequired","string","number","bool","shape","func"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport {createGradientBackground} from '../../util/get-background-gradient-color';\nimport FaIcon from '../../atom/icon';\nimport style from './style.css';\n\nconst MAX_SCORE = 100;\n\nexport const updateBackgroundImage = (ref, background) => {\n if (ref.current) {\n ref.current.style.backgroundImage = background;\n }\n};\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n cardIndex,\n title,\n label,\n focus,\n metrics,\n progress,\n icon,\n onClick\n } = props;\n const {content, questionsToReview = 0} = metrics;\n const translate = GetTranslateFromContext(context);\n const {color, name} = icon;\n const [badgeIconName, badgeLocale, tagTextColor, tagBackgroundColor] = focus\n ? ['bullseye-arrow', translate('skill_focus'), COLORS.purple_700, COLORS.purple_100]\n : ['shapes', translate('skill'), COLORS.neutral_500, COLORS.cm_grey_100];\n const headerBackgroundRef = useRef(null);\n const defaultBackground = useMemo(() => createGradientBackground(color, '93%', '100%'), [color]);\n const focusBackground = useMemo(() => createGradientBackground(color, '83%', '100%'), [color]);\n const handleMouseEnter = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, focusBackground);\n }, [focusBackground]);\n const handleMouseLeave = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, defaultBackground);\n }, [defaultBackground]);\n return (\n <div\n data-testid={`learner-skill-card-wrapper-${cardIndex}`}\n data-name={`skill-card-${label}`}\n onClick={onClick}\n className={style.learnerSkillCardContainer}\n aria-label={ariaLabel}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <div\n data-testid=\"learner-skill-card-icon-header-wrapper\"\n ref={headerBackgroundRef}\n className={style.iconHeaderWrapper}\n style={{backgroundImage: defaultBackground, color: tagTextColor}}\n >\n <div className={style.iconWrapper} data-testid=\"learner-skill-card-icon-wrapper\">\n <FaIcon\n {...{\n iconName: name,\n iconColor: color,\n size: {\n faSize: 20,\n wrapperSize: 44\n },\n borderRadius: '12px',\n gradientBackground: true,\n customStyle: {border: '4px solid white'}\n }}\n />\n </div>\n </div>\n <div className={style.learnerSkillCardContent}>\n <div className={style.skillTitleWrapper}>\n <div\n className={style.skillFocusBadge}\n style={{\n backgroundColor: tagBackgroundColor,\n color: tagTextColor\n }}\n >\n <FaIcon\n {...{\n iconName: badgeIconName,\n backgroundColor: tagBackgroundColor,\n size: {\n faSize: 10,\n wrapperSize: 16\n }\n }}\n />\n <span style={{color: tagTextColor}}>{badgeLocale}</span>\n </div>\n\n <div className={style.questionWrapper}>\n <div\n data-name=\"skill-card-title\"\n className={style.skillTitle}\n aria-label={ariaLabel || title}\n >\n {title}\n </div>\n <div className={style.contentAndQuestionsWrapper}>\n <div\n data-name=\"learner-skill-card-skill-content-number\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: translate('content', {count: content})}}\n />\n {questionsToReview ? (\n <div\n className={style.skillInformation}\n data-name=\"learner-skill-card-skill-questions-wrapper\"\n >\n <FaIcon\n {...{\n iconName: 'circle',\n iconColor: COLORS.cm_grey_400,\n backgroundColor: 'transparent',\n size: {faSize: 4, wrapperSize: 0}\n }}\n />\n <span\n data-name=\"learner-skill-card-questions-to-review\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: translate('skill_chart_side_panel_questions_to_review', {\n count: questionsToReview\n })\n }}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.progressInformations}>\n <ProgressBar\n value={progress}\n displayInfo={false}\n max={MAX_SCORE}\n className={style.progressWrapper}\n style={{backgroundColor: COLORS.cm_positive_500}}\n />\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n type: PropTypes.oneOf(['skill']).isRequired,\n title: PropTypes.string.isRequired,\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n cardIndex: PropTypes.number,\n focus: PropTypes.bool,\n progress: PropTypes.number,\n metrics: PropTypes.shape({\n content: PropTypes.number,\n questionsToReview: PropTypes.number\n }),\n icon: PropTypes.shape({\n color: PropTypes.string,\n name: PropTypes.string\n }),\n onClick: PropTypes.func\n};\nexport default LearnerSkillCard;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAO,OAAO;AACzD,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AACrE,OAAOC,WAAW,MAAM,iBAAiB;AACzC,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,SAAQC,wBAAwB,QAAO,0CAA0C;AACjF,OAAOC,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AC0F,KAAK,CAAC;IACvBhE,OAAO,EAAE1B,SAAS,CAACwF,MAAM;IACzB7D,iBAAiB,EAAE3B,SAAS,CAACwF;EAC/B,CAAC,CAAC;EACFhE,IAAI,EAAExB,SAAS,CAAC0F,KAAK,CAAC;IACpB7D,KAAK,EAAE7B,SAAS,CAACuF,MAAM;IACvBzD,IAAI,EAAE9B,SAAS,CAACuF;EAClB,CAAC,CAAC;EACF9D,OAAO,EAAEzB,SAAS,CAAC2F;AACrB,CAAC;AACD,eAAe7E,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useCallback","useMemo","useRef","PropTypes","Provider","GetTranslateFromContext","ProgressBar","COLORS","createGradientBackground","FaIcon","style","MAX_SCORE","updateBackgroundImage","ref","background","current","backgroundImage","LearnerSkillCard","props","context","ariaLabel","cardIndex","title","label","focus","metrics","progress","icon","onClick","content","questionsToReview","translate","color","name","badgeIconName","badgeLocale","tagTextColor","tagBackgroundColor","purple_700","purple_100","neutral_500","cm_grey_100","headerBackgroundRef","defaultBackground","focusBackground","handleMouseEnter","handleMouseLeave","createElement","className","learnerSkillCardContainer","onMouseEnter","onMouseLeave","iconHeaderWrapper","iconWrapper","iconName","iconColor","size","faSize","wrapperSize","borderRadius","gradientBackground","customStyle","border","learnerSkillCardContent","skillTitleWrapper","skillFocusBadge","backgroundColor","questionWrapper","skillTitle","contentAndQuestionsWrapper","dangerouslySetInnerHTML","__html","count","skillInformation","cm_grey_400","progressInformations","value","displayInfo","max","progressWrapper","cm_positive_500","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","type","oneOf","isRequired","string","number","bool","shape","func"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport {createGradientBackground} from '../../util/get-background-gradient-color';\nimport FaIcon from '../../atom/icon';\nimport style from './style.css';\n\nconst MAX_SCORE = 100;\n\nexport const updateBackgroundImage = (ref, background) => {\n if (ref.current) {\n ref.current.style.backgroundImage = background;\n }\n};\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n cardIndex,\n title,\n label,\n focus,\n metrics,\n progress = 0,\n icon,\n onClick\n } = props;\n const {content, questionsToReview = 0} = metrics;\n const translate = GetTranslateFromContext(context);\n const {color, name} = icon;\n const [badgeIconName, badgeLocale, tagTextColor, tagBackgroundColor] = focus\n ? ['bullseye-arrow', translate('skill_focus'), COLORS.purple_700, COLORS.purple_100]\n : ['shapes', translate('skill'), COLORS.neutral_500, COLORS.cm_grey_100];\n const headerBackgroundRef = useRef(null);\n const defaultBackground = useMemo(() => createGradientBackground(color, '93%', '100%'), [color]);\n const focusBackground = useMemo(() => createGradientBackground(color, '83%', '100%'), [color]);\n const handleMouseEnter = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, focusBackground);\n }, [focusBackground]);\n const handleMouseLeave = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, defaultBackground);\n }, [defaultBackground]);\n return (\n <div\n data-testid={`learner-skill-card-wrapper-${cardIndex}`}\n data-name={`skill-card-${label}`}\n onClick={onClick}\n className={style.learnerSkillCardContainer}\n aria-label={ariaLabel}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <div\n data-testid=\"learner-skill-card-icon-header-wrapper\"\n ref={headerBackgroundRef}\n className={style.iconHeaderWrapper}\n style={{backgroundImage: defaultBackground, color: tagTextColor}}\n >\n <div className={style.iconWrapper} data-testid=\"learner-skill-card-icon-wrapper\">\n <FaIcon\n {...{\n iconName: name,\n iconColor: color,\n size: {\n faSize: 20,\n wrapperSize: 44\n },\n borderRadius: '12px',\n gradientBackground: true,\n customStyle: {border: '4px solid white'}\n }}\n />\n </div>\n </div>\n <div className={style.learnerSkillCardContent}>\n <div className={style.skillTitleWrapper}>\n <div\n className={style.skillFocusBadge}\n style={{\n backgroundColor: tagBackgroundColor,\n color: tagTextColor\n }}\n >\n <FaIcon\n {...{\n iconName: badgeIconName,\n backgroundColor: tagBackgroundColor,\n size: {\n faSize: 10,\n wrapperSize: 16\n }\n }}\n />\n <span style={{color: tagTextColor}}>{badgeLocale}</span>\n </div>\n\n <div className={style.questionWrapper}>\n <div\n data-name=\"skill-card-title\"\n className={style.skillTitle}\n aria-label={ariaLabel || title}\n >\n {title}\n </div>\n <div className={style.contentAndQuestionsWrapper}>\n <div\n data-name=\"learner-skill-card-skill-content-number\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: translate('content', {count: content})}}\n />\n {questionsToReview ? (\n <div\n className={style.skillInformation}\n data-name=\"learner-skill-card-skill-questions-wrapper\"\n >\n <FaIcon\n {...{\n iconName: 'circle',\n iconColor: COLORS.cm_grey_400,\n backgroundColor: 'transparent',\n size: {faSize: 4, wrapperSize: 0}\n }}\n />\n <span\n data-name=\"learner-skill-card-questions-to-review\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: translate('skill_chart_side_panel_questions_to_review', {\n count: questionsToReview\n })\n }}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.progressInformations}>\n <ProgressBar\n value={progress}\n displayInfo={false}\n max={MAX_SCORE}\n className={style.progressWrapper}\n style={{backgroundColor: COLORS.cm_positive_500}}\n />\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n type: PropTypes.oneOf(['skill']).isRequired,\n title: PropTypes.string.isRequired,\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n cardIndex: PropTypes.number,\n focus: PropTypes.bool,\n progress: PropTypes.number,\n metrics: PropTypes.shape({\n content: PropTypes.number,\n questionsToReview: PropTypes.number\n }),\n icon: PropTypes.shape({\n color: PropTypes.string,\n name: PropTypes.string\n }),\n onClick: PropTypes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AAC,CAAC,CAACC,UAAU;EAC3CnE,KAAK,EAAEnB,SAAS,CAACuF,MAAM,CAACD,UAAU;EAClClE,KAAK,EAAEpB,SAAS,CAACuF,MAAM;EACvB,YAAY,EAAEvF,SAAS,CAACuF,MAAM;EAC9BrE,SAAS,EAAElB,SAAS,CAACwF,MAAM;EAC3BnE,KAAK,EAAErB,SAAS,CAACyF,IAAI;EACrBlE,QAAQ,EAAEvB,SAAS,CAACwF,MAAM;EAC1BlE,OAAO,EAAEtB,SAAS,CAAC0F,KAAK,CAAC;IACvBhE,OAAO,EAAE1B,SAAS,CAACwF,MAAM;IACzB7D,iBAAiB,EAAE3B,SAAS,CAACwF;EAC/B,CAAC,CAAC;EACFhE,IAAI,EAAExB,SAAS,CAAC0F,KAAK,CAAC;IACpB7D,KAAK,EAAE7B,SAAS,CAACuF,MAAM;IACvBzD,IAAI,EAAE9B,SAAS,CAACuF;EAClB,CAAC,CAAC;EACF9D,OAAO,EAAEzB,SAAS,CAAC2F;AACrB,CAAC;AACD,eAAe7E,gBAAgB","ignoreList":[]}
@@ -3,6 +3,7 @@
3
3
  @value cm_grey_100 from colors;
4
4
  @value cm_grey_400 from colors;
5
5
  @value cm_grey_500 from colors;
6
+ @value cm_grey_700 from colors;
6
7
  @value cm_grey_75 from colors;
7
8
 
8
9
  .container {
@@ -46,14 +47,14 @@
46
47
  left: 0;
47
48
  width: 100%;
48
49
  height: 160px;
49
- background: #1d1d2b80;
50
+ background: color(cm_grey_700 a(50%));
50
51
  border-top-right-radius: 12px;
51
52
  border-top-left-radius: 12px;
52
53
  transition: all 0.5s ease-out;
53
54
  }
54
55
 
55
56
  .container:hover .imageContainer::after {
56
- background: #1d1d2b00;
57
+ background: color(cm_grey_700 a(0%));
57
58
  }
58
59
  .container:hover {
59
60
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.10);
@@ -1,3 +1,7 @@
1
+ import _sortBy from "lodash/fp/sortBy";
2
+ import _size from "lodash/fp/size";
3
+ import _pipe from "lodash/fp/pipe";
4
+ import _map from "lodash/fp/map";
1
5
  import _keys from "lodash/fp/keys";
2
6
  import _isEmpty from "lodash/fp/isEmpty";
3
7
  import _getOr from "lodash/fp/getOr";
@@ -102,12 +106,11 @@ const SearchPage = (props, context) => {
102
106
  }))), recommendationsView) : /*#__PURE__*/React.createElement(CardsGrid, cards);
103
107
 
104
108
  // Convert sections object to array and sort by order
105
- const sectionsArray = _keys(sections).map(key => ({
109
+ const sortedSections = _pipe(_keys, _map(key => ({
106
110
  key,
107
111
  ...sections[key]
108
- }));
109
- const sortedSections = sectionsArray.sort((a, b) => a.order - b.order);
110
- const hasSections = sortedSections.length > 0;
112
+ })), _sortBy('order'))(sections);
113
+ const hasSections = _size(sortedSections) > 0;
111
114
  const contentGridSection = /*#__PURE__*/React.createElement("div", {
112
115
  className: style.contentSection
113
116
  }, /*#__PURE__*/React.createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useRef","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","style","SearchPage","props","context","title","searchFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr","nodeRef","recommendationsView","_isEmpty","createElement","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","customStyle","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","_extends","cardsView","list","noresults","noresultstxt","clear","background","sectionsArray","_keys","map","sortedSections","sort","a","b","order","hasSections","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","index","cardsWrapper","role","ref","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sectionsArray = keys(sections).map(key => ({\n key,\n ...sections[key]\n }));\n const sortedSections = sectionsArray.sort((a, b) => a.order - b.order);\n\n const hasSections = sortedSections.length > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div>\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,QAAO,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAAQ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,CAACjF,YAAY,CAAC4E,SAAS,CAAC,EACvCpF,SAAS,CAACyF,KAAK,CAAC7E,oBAAoB,CAACwE,SAAS,CAAC,CAChD,CACH,CAAC;IACDU,QAAQ,EAAE9F,SAAS,CAACwF,MAAM;IAC1BO,UAAU,EAAE/F,SAAS,CAACgG,IAAI;IAC1BzB,KAAK,EAAEvE,SAAS,CAAC0F,MAAM;IACvBrE,KAAK,EAAErB,SAAS,CAAC0F,MAAM;IACvB,mBAAmB,EAAE1F,SAAS,CAACyF,KAAK,CAAC;MACnCQ,uBAAuB,EAAEjG,SAAS,CAACwF,MAAM;MACzCU,wBAAwB,EAAElG,SAAS,CAACwF;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAezE,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useRef","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","style","SearchPage","props","context","title","searchFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr","nodeRef","recommendationsView","_isEmpty","createElement","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","customStyle","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","_extends","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe","_keys","_map","_sortBy","hasSections","_size","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","map","index","cardsWrapper","role","ref","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, size, sortBy} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const hasSections = size(sortedSections) > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div>\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,QAAO,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAAQC,aAAa,QAAO,wBAAwB;AACpD,OAAOC,oBAAoB,MAAM,0CAA0C;AAC3E,SAAQC,MAAM,QA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C1BO,UAAU,EAAE9F,SAAS,CAAC+F,IAAI;IAC1BC,KAAK,EAAEhG,SAAS,CAACyF,MAAM;IACvBpE,KAAK,EAAErB,SAAS,CAACyF,MAAM;IACvB,mBAAmB,EAAEzF,SAAS,CAACwF,KAAK,CAAC;MACnCS,uBAAuB,EAAEjG,SAAS,CAACuF,MAAM;MACzCW,wBAAwB,EAAElG,SAAS,CAACuF;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAexE,UAAU","ignoreList":[]}
@@ -28,7 +28,7 @@ const LearnerSkillCard = (props, context) => {
28
28
  label,
29
29
  focus,
30
30
  metrics,
31
- progress,
31
+ progress = 0,
32
32
  icon,
33
33
  onClick
34
34
  } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_progressBar","_colors","_getBackgroundGradientColor","_icon","_style","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_SCORE","updateBackgroundImage","ref","background","current","style","backgroundImage","exports","LearnerSkillCard","props","context","ariaLabel","cardIndex","title","label","focus","metrics","progress","icon","onClick","content","questionsToReview","translate","GetTranslateFromContext","color","name","badgeIconName","badgeLocale","tagTextColor","tagBackgroundColor","COLORS","purple_700","purple_100","neutral_500","cm_grey_100","headerBackgroundRef","useRef","defaultBackground","useMemo","createGradientBackground","focusBackground","handleMouseEnter","useCallback","handleMouseLeave","createElement","className","learnerSkillCardContainer","onMouseEnter","onMouseLeave","iconHeaderWrapper","iconWrapper","iconName","iconColor","size","faSize","wrapperSize","borderRadius","gradientBackground","customStyle","border","learnerSkillCardContent","skillTitleWrapper","skillFocusBadge","backgroundColor","questionWrapper","skillTitle","contentAndQuestionsWrapper","dangerouslySetInnerHTML","__html","count","skillInformation","cm_grey_400","progressInformations","value","displayInfo","max","progressWrapper","cm_positive_500","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","type","PropTypes","oneOf","isRequired","string","number","bool","shape","func","_default"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport {createGradientBackground} from '../../util/get-background-gradient-color';\nimport FaIcon from '../../atom/icon';\nimport style from './style.css';\n\nconst MAX_SCORE = 100;\n\nexport const updateBackgroundImage = (ref, background) => {\n if (ref.current) {\n ref.current.style.backgroundImage = background;\n }\n};\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n cardIndex,\n title,\n label,\n focus,\n metrics,\n progress,\n icon,\n onClick\n } = props;\n const {content, questionsToReview = 0} = metrics;\n const translate = GetTranslateFromContext(context);\n const {color, name} = icon;\n const [badgeIconName, badgeLocale, tagTextColor, tagBackgroundColor] = focus\n ? ['bullseye-arrow', translate('skill_focus'), COLORS.purple_700, COLORS.purple_100]\n : ['shapes', translate('skill'), COLORS.neutral_500, COLORS.cm_grey_100];\n const headerBackgroundRef = useRef(null);\n const defaultBackground = useMemo(() => createGradientBackground(color, '93%', '100%'), [color]);\n const focusBackground = useMemo(() => createGradientBackground(color, '83%', '100%'), [color]);\n const handleMouseEnter = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, focusBackground);\n }, [focusBackground]);\n const handleMouseLeave = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, defaultBackground);\n }, [defaultBackground]);\n return (\n <div\n data-testid={`learner-skill-card-wrapper-${cardIndex}`}\n data-name={`skill-card-${label}`}\n onClick={onClick}\n className={style.learnerSkillCardContainer}\n aria-label={ariaLabel}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <div\n data-testid=\"learner-skill-card-icon-header-wrapper\"\n ref={headerBackgroundRef}\n className={style.iconHeaderWrapper}\n style={{backgroundImage: defaultBackground, color: tagTextColor}}\n >\n <div className={style.iconWrapper} data-testid=\"learner-skill-card-icon-wrapper\">\n <FaIcon\n {...{\n iconName: name,\n iconColor: color,\n size: {\n faSize: 20,\n wrapperSize: 44\n },\n borderRadius: '12px',\n gradientBackground: true,\n customStyle: {border: '4px solid white'}\n }}\n />\n </div>\n </div>\n <div className={style.learnerSkillCardContent}>\n <div className={style.skillTitleWrapper}>\n <div\n className={style.skillFocusBadge}\n style={{\n backgroundColor: tagBackgroundColor,\n color: tagTextColor\n }}\n >\n <FaIcon\n {...{\n iconName: badgeIconName,\n backgroundColor: tagBackgroundColor,\n size: {\n faSize: 10,\n wrapperSize: 16\n }\n }}\n />\n <span style={{color: tagTextColor}}>{badgeLocale}</span>\n </div>\n\n <div className={style.questionWrapper}>\n <div\n data-name=\"skill-card-title\"\n className={style.skillTitle}\n aria-label={ariaLabel || title}\n >\n {title}\n </div>\n <div className={style.contentAndQuestionsWrapper}>\n <div\n data-name=\"learner-skill-card-skill-content-number\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: translate('content', {count: content})}}\n />\n {questionsToReview ? (\n <div\n className={style.skillInformation}\n data-name=\"learner-skill-card-skill-questions-wrapper\"\n >\n <FaIcon\n {...{\n iconName: 'circle',\n iconColor: COLORS.cm_grey_400,\n backgroundColor: 'transparent',\n size: {faSize: 4, wrapperSize: 0}\n }}\n />\n <span\n data-name=\"learner-skill-card-questions-to-review\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: translate('skill_chart_side_panel_questions_to_review', {\n count: questionsToReview\n })\n }}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.progressInformations}>\n <ProgressBar\n value={progress}\n displayInfo={false}\n max={MAX_SCORE}\n className={style.progressWrapper}\n style={{backgroundColor: COLORS.cm_positive_500}}\n />\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n type: PropTypes.oneOf(['skill']).isRequired,\n title: PropTypes.string.isRequired,\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n cardIndex: PropTypes.number,\n focus: PropTypes.bool,\n progress: PropTypes.number,\n metrics: PropTypes.shape({\n content: PropTypes.number,\n questionsToReview: PropTypes.number\n }),\n icon: PropTypes.shape({\n color: PropTypes.string,\n name: PropTypes.string\n }),\n onClick: PropTypes.func\n};\nexport default LearnerSkillCard;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAJ,uBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,2BAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAAgC,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UA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,IAAAC,QAAA,GAAAvF,OAAA,CAAAzB,OAAA,GACa0B,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_progressBar","_colors","_getBackgroundGradientColor","_icon","_style","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_SCORE","updateBackgroundImage","ref","background","current","style","backgroundImage","exports","LearnerSkillCard","props","context","ariaLabel","cardIndex","title","label","focus","metrics","progress","icon","onClick","content","questionsToReview","translate","GetTranslateFromContext","color","name","badgeIconName","badgeLocale","tagTextColor","tagBackgroundColor","COLORS","purple_700","purple_100","neutral_500","cm_grey_100","headerBackgroundRef","useRef","defaultBackground","useMemo","createGradientBackground","focusBackground","handleMouseEnter","useCallback","handleMouseLeave","createElement","className","learnerSkillCardContainer","onMouseEnter","onMouseLeave","iconHeaderWrapper","iconWrapper","iconName","iconColor","size","faSize","wrapperSize","borderRadius","gradientBackground","customStyle","border","learnerSkillCardContent","skillTitleWrapper","skillFocusBadge","backgroundColor","questionWrapper","skillTitle","contentAndQuestionsWrapper","dangerouslySetInnerHTML","__html","count","skillInformation","cm_grey_400","progressInformations","value","displayInfo","max","progressWrapper","cm_positive_500","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","type","PropTypes","oneOf","isRequired","string","number","bool","shape","func","_default"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport {createGradientBackground} from '../../util/get-background-gradient-color';\nimport FaIcon from '../../atom/icon';\nimport style from './style.css';\n\nconst MAX_SCORE = 100;\n\nexport const updateBackgroundImage = (ref, background) => {\n if (ref.current) {\n ref.current.style.backgroundImage = background;\n }\n};\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n cardIndex,\n title,\n label,\n focus,\n metrics,\n progress = 0,\n icon,\n onClick\n } = props;\n const {content, questionsToReview = 0} = metrics;\n const translate = GetTranslateFromContext(context);\n const {color, name} = icon;\n const [badgeIconName, badgeLocale, tagTextColor, tagBackgroundColor] = focus\n ? ['bullseye-arrow', translate('skill_focus'), COLORS.purple_700, COLORS.purple_100]\n : ['shapes', translate('skill'), COLORS.neutral_500, COLORS.cm_grey_100];\n const headerBackgroundRef = useRef(null);\n const defaultBackground = useMemo(() => createGradientBackground(color, '93%', '100%'), [color]);\n const focusBackground = useMemo(() => createGradientBackground(color, '83%', '100%'), [color]);\n const handleMouseEnter = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, focusBackground);\n }, [focusBackground]);\n const handleMouseLeave = useCallback(() => {\n updateBackgroundImage(headerBackgroundRef, defaultBackground);\n }, [defaultBackground]);\n return (\n <div\n data-testid={`learner-skill-card-wrapper-${cardIndex}`}\n data-name={`skill-card-${label}`}\n onClick={onClick}\n className={style.learnerSkillCardContainer}\n aria-label={ariaLabel}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <div\n data-testid=\"learner-skill-card-icon-header-wrapper\"\n ref={headerBackgroundRef}\n className={style.iconHeaderWrapper}\n style={{backgroundImage: defaultBackground, color: tagTextColor}}\n >\n <div className={style.iconWrapper} data-testid=\"learner-skill-card-icon-wrapper\">\n <FaIcon\n {...{\n iconName: name,\n iconColor: color,\n size: {\n faSize: 20,\n wrapperSize: 44\n },\n borderRadius: '12px',\n gradientBackground: true,\n customStyle: {border: '4px solid white'}\n }}\n />\n </div>\n </div>\n <div className={style.learnerSkillCardContent}>\n <div className={style.skillTitleWrapper}>\n <div\n className={style.skillFocusBadge}\n style={{\n backgroundColor: tagBackgroundColor,\n color: tagTextColor\n }}\n >\n <FaIcon\n {...{\n iconName: badgeIconName,\n backgroundColor: tagBackgroundColor,\n size: {\n faSize: 10,\n wrapperSize: 16\n }\n }}\n />\n <span style={{color: tagTextColor}}>{badgeLocale}</span>\n </div>\n\n <div className={style.questionWrapper}>\n <div\n data-name=\"skill-card-title\"\n className={style.skillTitle}\n aria-label={ariaLabel || title}\n >\n {title}\n </div>\n <div className={style.contentAndQuestionsWrapper}>\n <div\n data-name=\"learner-skill-card-skill-content-number\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: translate('content', {count: content})}}\n />\n {questionsToReview ? (\n <div\n className={style.skillInformation}\n data-name=\"learner-skill-card-skill-questions-wrapper\"\n >\n <FaIcon\n {...{\n iconName: 'circle',\n iconColor: COLORS.cm_grey_400,\n backgroundColor: 'transparent',\n size: {faSize: 4, wrapperSize: 0}\n }}\n />\n <span\n data-name=\"learner-skill-card-questions-to-review\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: translate('skill_chart_side_panel_questions_to_review', {\n count: questionsToReview\n })\n }}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.progressInformations}>\n <ProgressBar\n value={progress}\n displayInfo={false}\n max={MAX_SCORE}\n className={style.progressWrapper}\n style={{backgroundColor: COLORS.cm_positive_500}}\n />\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n type: PropTypes.oneOf(['skill']).isRequired,\n title: PropTypes.string.isRequired,\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n cardIndex: PropTypes.number,\n focus: PropTypes.bool,\n progress: PropTypes.number,\n metrics: PropTypes.shape({\n content: PropTypes.number,\n questionsToReview: PropTypes.number\n }),\n icon: PropTypes.shape({\n color: PropTypes.string,\n name: PropTypes.string\n }),\n onClick: PropTypes.func\n};\nexport default LearnerSkillCard;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAA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CAACsE,YAAY,GAAG;EAC9BxD,SAAS,EAAEyD,iBAAQ,CAACC,iBAAiB,CAAC1D;AACxC,CAAC;AAEDd,gBAAgB,CAACyE,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EAC3BC,IAAI,EAAEC,kBAAS,CAACC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAACC,UAAU;EAC3C3E,KAAK,EAAEyE,kBAAS,CAACG,MAAM,CAACD,UAAU;EAClC1E,KAAK,EAAEwE,kBAAS,CAACG,MAAM;EACvB,YAAY,EAAEH,kBAAS,CAACG,MAAM;EAC9B7E,SAAS,EAAE0E,kBAAS,CAACI,MAAM;EAC3B3E,KAAK,EAAEuE,kBAAS,CAACK,IAAI;EACrB1E,QAAQ,EAAEqE,kBAAS,CAACI,MAAM;EAC1B1E,OAAO,EAAEsE,kBAAS,CAACM,KAAK,CAAC;IACvBxE,OAAO,EAAEkE,kBAAS,CAACI,MAAM;IACzBrE,iBAAiB,EAAEiE,kBAAS,CAACI;EAC/B,CAAC,CAAC;EACFxE,IAAI,EAAEoE,kBAAS,CAACM,KAAK,CAAC;IACpBpE,KAAK,EAAE8D,kBAAS,CAACG,MAAM;IACvBhE,IAAI,EAAE6D,kBAAS,CAACG;EAClB,CAAC,CAAC;EACFtE,OAAO,EAAEmE,kBAAS,CAACO;AACrB,CAAC;AAAC,IAAAC,QAAA,GAAAvF,OAAA,CAAAzB,OAAA,GACa0B,gBAAgB","ignoreList":[]}
@@ -3,6 +3,7 @@
3
3
  @value cm_grey_100 from colors;
4
4
  @value cm_grey_400 from colors;
5
5
  @value cm_grey_500 from colors;
6
+ @value cm_grey_700 from colors;
6
7
  @value cm_grey_75 from colors;
7
8
 
8
9
  .container {
@@ -46,14 +47,14 @@
46
47
  left: 0;
47
48
  width: 100%;
48
49
  height: 160px;
49
- background: #1d1d2b80;
50
+ background: color(cm_grey_700 a(50%));
50
51
  border-top-right-radius: 12px;
51
52
  border-top-left-radius: 12px;
52
53
  transition: all 0.5s ease-out;
53
54
  }
54
55
 
55
56
  .container:hover .imageContainer::after {
56
- background: #1d1d2b00;
57
+ background: color(cm_grey_700 a(0%));
57
58
  }
58
59
  .container:hover {
59
60
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.10);
@@ -2,6 +2,10 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+ var _sortBy2 = _interopRequireDefault(require("lodash/fp/sortBy"));
6
+ var _size2 = _interopRequireDefault(require("lodash/fp/size"));
7
+ var _pipe2 = _interopRequireDefault(require("lodash/fp/pipe"));
8
+ var _map2 = _interopRequireDefault(require("lodash/fp/map"));
5
9
  var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
6
10
  var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
7
11
  var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
@@ -109,12 +113,11 @@ const SearchPage = (props, context) => {
109
113
  }))), recommendationsView) : /*#__PURE__*/_react.default.createElement(_cardsGrid.default, cards);
110
114
 
111
115
  // Convert sections object to array and sort by order
112
- const sectionsArray = (0, _keys2.default)(sections).map(key => ({
116
+ const sortedSections = (0, _pipe2.default)(_keys2.default, (0, _map2.default)(key => ({
113
117
  key,
114
118
  ...sections[key]
115
- }));
116
- const sortedSections = sectionsArray.sort((a, b) => a.order - b.order);
117
- const hasSections = sortedSections.length > 0;
119
+ })), (0, _sortBy2.default)('order'))(sections);
120
+ const hasSections = (0, _size2.default)(sortedSections) > 0;
118
121
  const contentGridSection = /*#__PURE__*/_react.default.createElement("div", {
119
122
  className: _style.default.contentSection
120
123
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_button","_filters","_cardsGrid","_cardsList","_certificationCard","_learnerSkillCard","_playlistCard","_cmPopin","_tag","_card","_learningPriorityCard","_colors","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchPage","props","context","title","searchFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr2","nodeRef","useRef","recommendationsView","_isEmpty2","createElement","renderSection","section","sectionCount","titleWithCount","className","style","sectionTitle","label","toString","type","size","customStyle","backgroundColor","COLORS","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sectionsArray","_keys2","map","sortedSections","sort","b","order","hasSections","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","index","cardsWrapper","role","ref","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","shape","Filters","CardsGrid","number","Button","CardsList","CMPopin","objectOf","arrayOf","oneOfType","cardPropTypes","LearnerSkillCard","CertificationCard","PlaylistCard","LearningPriorityCard","showMore","onShowMore","func","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel","_default","exports"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sectionsArray = keys(sections).map(key => ({\n key,\n ...sections[key]\n }));\n const sortedSections = sectionsArray.sort((a, b) => a.order - b.order);\n\n const hasSections = sortedSections.length > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div>\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,UAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,kBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,iBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,aAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,QAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,IAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,KAAA,GAAAb,OAAA;AACA,IAAAc,qBAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AACA,IAAAgB,MAAA,GAAAd,sBAAA,CAAAF,OAAA;AAAgC,SAAAiB,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAnB,wBAA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AAS,CAACX,SAAS,CAAC;EACrD5D,iBAAiB,EAAEgE,kBAAS,CAACC,MAAM;EACnChE,mBAAmB,EAAE+D,kBAAS,CAACC,MAAM;EACrC/D,oBAAoB,EAAE8D,kBAAS,CAACC,MAAM;EACtC9D,aAAa,EAAE6D,kBAAS,CAACC,MAAM;EAC/B7D,cAAc,EAAE4D,kBAAS,CAACE,KAAK,CAACM,gBAAO,CAACZ,SAAS,CAAC;EAClDvD,QAAQ,EAAE2D,kBAAS,CAACS,QAAQ,CAC1BT,kBAAS,CAACE,KAAK,CAAC;IACdzE,KAAK,EAAEuE,kBAAS,CAACC,MAAM;IACvBtE,KAAK,EAAEqE,kBAAS,CAACU,OAAO,CACtBV,kBAAS,CAACW,SAAS,CAAC,CAClBX,kBAAS,CAACE,KAAK,CAACU,mBAAa,CAAC,EAC9BZ,kBAAS,CAACE,KAAK,CAACW,yBAAgB,CAACjB,SAAS,CAAC,EAC3CI,kBAAS,CAACE,KAAK,CAACY,0BAAiB,CAAClB,SAAS,CAAC,EAC5CI,kBAAS,CAACE,KAAK,CAACa,qBAAY,CAACnB,SAAS,CAAC,EACvCI,kBAAS,CAACE,KAAK,CAACc,6BAAoB,CAACpB,SAAS,CAAC,CAChD,CACH,CAAC;IACDqB,QAAQ,EAAEjB,kBAAS,CAACC,MAAM;IAC1BiB,UAAU,EAAElB,kBAAS,CAACmB,IAAI;IAC1BrC,KAAK,EAAEkB,kBAAS,CAACK,MAAM;IACvBzE,KAAK,EAAEoE,kBAAS,CAACK,MAAM;IACvB,mBAAmB,EAAEL,kBAAS,CAACE,KAAK,CAAC;MACnCkB,uBAAuB,EAAEpB,kBAAS,CAACC,MAAM;MACzCoB,wBAAwB,EAAErB,kBAAS,CAACC;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAArH,OAAA,GAEaoB,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_button","_filters","_cardsGrid","_cardsList","_certificationCard","_learnerSkillCard","_playlistCard","_cmPopin","_tag","_card","_learningPriorityCard","_colors","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchPage","props","context","title","searchFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr2","nodeRef","useRef","recommendationsView","_isEmpty2","createElement","renderSection","section","sectionCount","titleWithCount","className","style","sectionTitle","label","toString","type","size","customStyle","backgroundColor","COLORS","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe2","_keys2","_map2","_sortBy2","hasSections","_size2","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","map","index","cardsWrapper","role","ref","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","shape","Filters","CardsGrid","number","Button","CardsList","CMPopin","objectOf","arrayOf","oneOfType","cardPropTypes","LearnerSkillCard","CertificationCard","PlaylistCard","LearningPriorityCard","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel","_default","exports"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, size, sortBy} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\n\n const cardsView = isEmpty(cards?.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const hasSections = size(sortedSections) > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div>\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\n ) : (\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,UAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,kBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,iBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,aAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,QAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,IAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,KAAA,GAAAb,OAAA;AACA,IAAAc,qBAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AACA,IAAAgB,MAAA,GAAAd,sBAAA,CAAAF,OAAA;AAAgC,SAAAiB,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OA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ACH;AACF,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,CAAAtH,OAAA,GAEaoB,UAAU","ignoreList":[]}
@@ -198,7 +198,7 @@
198
198
  "questions": "Pitanja",
199
199
  "skill_scope_specifier": "na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "fokusirane vještine",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Ocijenite ovaj kurs",
204
204
  "diploma": "Validirani put"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificate"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Dodatne informacije o vašem certifikatu"
@@ -198,7 +198,7 @@
198
198
  "questions": "Otázky",
199
199
  "skill_scope_specifier": " na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "zaměřených dovedností",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Ohodnoťte tento kurz",
204
204
  "diploma": "Ověřená cesta"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certifikát"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Další informace o vašem certifikátu"
@@ -198,7 +198,7 @@
198
198
  "questions": "Fragen",
199
199
  "skill_scope_specifier": "auf <b>{{focusedSkill}}</b>\n",
200
200
  "focused_skills": "fokussierte Fähigkeiten\n",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Bewerten Sie diesen Kurs",
204
204
  "diploma": "Validierter Weg"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Zertifikat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Die zusätzlichen Informationen zu Ihrem Zertifikat"
@@ -198,7 +198,7 @@
198
198
  "questions": "Preguntas",
199
199
  "skill_scope_specifier": "sobre <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "habilidades interesadas",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Califica este curso",
204
204
  "diploma": "Vía validada"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificado"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Información adicional sobre su certificado"
@@ -198,7 +198,7 @@
198
198
  "questions": "Küsimused",
199
199
  "skill_scope_specifier": "seoses oskusega <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "fookusoskused",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Hinda seda kursust",
204
204
  "diploma": "Valideeritud rada"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Tunnistus"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Täiendav teave teie sertifikaadi kohta"
@@ -198,7 +198,7 @@
198
198
  "questions": "Kysymykset",
199
199
  "skill_scope_specifier": "valmiudessa <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "osaamisen painopisteet",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Arvioi tämä kurssi",
204
204
  "diploma": "Vahvistettu reitti"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Todistus"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "oppimispolku"
224
+ "diploma": "oppimispolku"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Lisätietoja todistuksestasi"
@@ -198,7 +198,7 @@
198
198
  "questions": "Pitanja",
199
199
  "skill_scope_specifier": "na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "fokusirane vještine",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Ocijenite ovaj tečaj",
204
204
  "diploma": "Validirani put"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Potvrda"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Dodatne informacije o vašem certifikatu"
@@ -198,7 +198,7 @@
198
198
  "questions": "Kérdések",
199
199
  "skill_scope_specifier": "<b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "célzott képességek",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Értékelje ezt a tanfolyamot",
204
204
  "diploma": "Ellenőrzött útvonal"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Bizonyítvány"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "További információk a tanúsítványról"
@@ -198,7 +198,7 @@
198
198
  "questions": "Հարցեր",
199
199
  "skill_scope_specifier": "<b>{{focusedSkill}}</b> ում",
200
200
  "focused_skills": "կենտրոնացված հմտություններ",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Գնահատեք այս դասընթացը",
204
204
  "diploma": "Վավերացված ուղի"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificate"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Ձեր վկայականի մասին լրացուցիչ տեղեկություններ"
@@ -198,7 +198,7 @@
198
198
  "questions": "Domande\n",
199
199
  "skill_scope_specifier": "su <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "competenze messe a fuoco",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Vota questo corso",
204
204
  "diploma": "Percorso convalidato"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificato"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Le informazioni aggiuntive sul tuo certificato"
@@ -198,7 +198,7 @@
198
198
  "questions": "質問",
199
199
  "skill_scope_specifier": "<b>{{focusedSkill}}</b>で",
200
200
  "focused_skills": "フォーカスしたスキル",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "このコースを評価する",
204
204
  "diploma": "検証済みの経路"
@@ -221,7 +221,7 @@
221
221
  "diploma": "証明書"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "証明書に関する追加情報"
@@ -198,7 +198,7 @@
198
198
  "questions": "질문",
199
199
  "skill_scope_specifier": "<b>{focusedSkill}</b>에 관해",
200
200
  "focused_skills": "집중한 기술",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "이 강좌를 평가해 주세요",
204
204
  "diploma": "검증된 경로"
@@ -221,7 +221,7 @@
221
221
  "diploma": "인증서"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "인증서에 대한 추가 정보"
@@ -198,7 +198,7 @@
198
198
  "questions": "Klausimai",
199
199
  "skill_scope_specifier": "<b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "pagrindiniai įgūdžiai",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Įvertinkite šį kursą",
204
204
  "diploma": "Patvirtintas kelias"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Sertifikatas"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "mokymosi kelias"
224
+ "diploma": "mokymosi kelias"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Papildoma informacija apie jūsų sertifikatą"
@@ -198,7 +198,7 @@
198
198
  "questions": "Vragen",
199
199
  "skill_scope_specifier": "op <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "gefocuste vaardigheden",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Beoordeel deze cursus",
204
204
  "diploma": "Gevalideerd traject"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificaat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "De aanvullende informatie over uw certificaat"
@@ -198,7 +198,7 @@
198
198
  "questions": "Pytania",
199
199
  "skill_scope_specifier": "na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "wybrane umiejętności",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Oceń ten kurs",
204
204
  "diploma": "Sprawdzona ścieżka"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certyfikat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Dodatkowe informacje o Twoim certyfikacie"
@@ -198,7 +198,7 @@
198
198
  "questions": "Questões",
199
199
  "skill_scope_specifier": "em <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "competências com foco",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Avalie este curso",
204
204
  "diploma": "Caminho validado"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificado"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "As informações adicionais sobre o seu certificado"
@@ -198,7 +198,7 @@
198
198
  "questions": "Întrebări",
199
199
  "skill_scope_specifier": "pe <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "abilități focalizate",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Evaluează acest curs",
204
204
  "diploma": "Calea validată"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Informațiile suplimentare despre certificatul dvs"
@@ -198,7 +198,7 @@
198
198
  "questions": "Вопросы",
199
199
  "skill_scope_specifier": "на <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "выбранные навыки",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Оцените этот курс",
204
204
  "diploma": "Проверенный путь"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Сертификат"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Дополнительная информация о вашем сертификате"
@@ -198,7 +198,7 @@
198
198
  "questions": "Otázky",
199
199
  "skill_scope_specifier": "na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "zručnosti, na ktoré sa zameriavate",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Ohodnoťte tento kurz",
204
204
  "diploma": "Overená cesta"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certifikát"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Ďalšie informácie o vašom certifikáte"
@@ -198,7 +198,7 @@
198
198
  "questions": "Vprašanja",
199
199
  "skill_scope_specifier": "na <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "osredotočene veščine",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Ocenite ta tečaj",
204
204
  "diploma": "Potrjena pot"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certifikat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Dodatne informacije o vašem certifikatu"
@@ -198,7 +198,7 @@
198
198
  "questions": "Frågor",
199
199
  "skill_scope_specifier": "på <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "färdighet i fokus",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Betygsätt denna kurs",
204
204
  "diploma": "Validerad väg"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certifikat"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "inlärningsväg"
224
+ "diploma": "inlärningsväg"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Ytterligare information om ditt certifikat"
@@ -198,7 +198,7 @@
198
198
  "questions": "Mga Tanong",
199
199
  "skill_scope_specifier": "sa <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "mga kasanayang pinagtuunan ng pansin",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "I-rate ang kursong ito",
204
204
  "diploma": "Napatunayang landas"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Sertipiko"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Karagdagang impormasyon tungkol sa iyong sertipiko"
@@ -198,7 +198,7 @@
198
198
  "questions": "Sorular",
199
199
  "skill_scope_specifier": "<b>{{focusedSkill}}</b> üzerinde",
200
200
  "focused_skills": "odaklanan beceriler",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Bu kursu değerlendirin",
204
204
  "diploma": "Doğrulanmış yol"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Sertifika"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Sertifikanız hakkında ek bilgi"
@@ -198,7 +198,7 @@
198
198
  "questions": "Питання",
199
199
  "skill_scope_specifier": "на <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "навички розвитку",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Оцініть цей курс",
204
204
  "diploma": "Перевірений шлях"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Сертифікат"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Додаткова інформація про ваш сертифікат"
@@ -198,7 +198,7 @@
198
198
  "questions": "Câu hỏi",
199
199
  "skill_scope_specifier": "vào <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "kỹ năng được chú trọng",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "Đánh giá khóa học này",
204
204
  "diploma": "Lộ trình đã được xác thực"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Chứng chỉ"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "Thông tin bổ sung về chứng chỉ của bạn"
@@ -198,7 +198,7 @@
198
198
  "questions": "问题",
199
199
  "skill_scope_specifier": "关于<b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "已重点关注的技能",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "评价此课程",
204
204
  "diploma": "经过验证的途径"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificate"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "有关您证书的附加信息"
@@ -198,7 +198,7 @@
198
198
  "questions": "問題",
199
199
  "skill_scope_specifier": "關於 <b>{{focusedSkill}}</b>",
200
200
  "focused_skills": "聚焦技能",
201
- "custom": {
201
+ "custom":{
202
202
  "digitlearning": {
203
203
  "comment_aria_label": "評量本課程",
204
204
  "diploma": "驗證途徑"
@@ -221,7 +221,7 @@
221
221
  "diploma": "Certificate"
222
222
  },
223
223
  "mylcl-learning": {
224
- "diploma": "learning path"
224
+ "diploma": "learning path"
225
225
  },
226
226
  "who": {
227
227
  "badge": "有關您證書的附加信息"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.40.10-alpha.16.0+0e1bb0f2f",
3
+ "version": "11.40.10",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -166,5 +166,5 @@
166
166
  "last 2 versions",
167
167
  "IE 11"
168
168
  ],
169
- "gitHead": "0e1bb0f2f79930452ed46ed3ad618416841d4f15"
169
+ "gitHead": "bd95b52e4de1ae6683039b991cdde4c74259c255"
170
170
  }