@epec-fcfm-uchile/frontend-component-header 1.0.3 → 1.0.5
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.
- package/dist/learning-header/AuthenticatedUserDropdown.js +12 -23
- package/dist/learning-header/AuthenticatedUserDropdown.js.map +1 -1
- package/dist/learning-header/LearningHeader.js +2 -1
- package/dist/learning-header/LearningHeader.js.map +1 -1
- package/dist/learning-header/LearningHeaderCourseInfo.js +0 -2
- package/dist/learning-header/LearningHeaderCourseInfo.js.map +1 -1
- package/dist/learning-header/LearningUserMenuToggle.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,46 +1,35 @@
|
|
|
1
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
1
|
import React from 'react';
|
|
8
2
|
import PropTypes from 'prop-types';
|
|
9
3
|
import { faUserCircle } from '@fortawesome/free-solid-svg-icons';
|
|
10
4
|
import { getConfig } from '@edx/frontend-platform';
|
|
11
5
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
|
12
6
|
import { Dropdown } from '@openedx/paragon';
|
|
13
|
-
import LearningUserMenuToggleSlot from '../plugin-slots/LearningUserMenuToggleSlot';
|
|
14
7
|
import LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';
|
|
15
8
|
import messages from './messages';
|
|
16
9
|
var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
|
|
17
|
-
var username = _ref.username
|
|
10
|
+
var username = _ref.username,
|
|
11
|
+
email = _ref.email;
|
|
18
12
|
var intl = useIntl();
|
|
19
13
|
var dropdownItems = [{
|
|
20
|
-
message: intl.formatMessage(messages.dashboard),
|
|
21
|
-
href: "".concat(getConfig().LMS_BASE_URL, "/dashboard")
|
|
22
|
-
}, {
|
|
23
14
|
message: intl.formatMessage(messages.profile),
|
|
24
|
-
href:
|
|
15
|
+
href: 'https://app.fcfmonline.cl/profile'
|
|
25
16
|
}, {
|
|
26
|
-
message: intl.formatMessage(messages.account),
|
|
27
|
-
href: getConfig().ACCOUNT_SETTINGS_URL
|
|
28
|
-
}].concat(_toConsumableArray(getConfig().ORDER_HISTORY_URL ? [{
|
|
29
|
-
message: intl.formatMessage(messages.orderHistory),
|
|
30
|
-
href: getConfig().ORDER_HISTORY_URL
|
|
31
|
-
}] : []), [{
|
|
32
17
|
message: intl.formatMessage(messages.signOut),
|
|
33
18
|
href: getConfig().LOGOUT_URL
|
|
34
|
-
}]
|
|
19
|
+
}];
|
|
35
20
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
36
21
|
className: "user-dropdown ml-3"
|
|
37
22
|
}, /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
38
23
|
variant: "outline-primary",
|
|
39
24
|
"aria-label": intl.formatMessage(messages.userOptionsDropdownLabel)
|
|
40
|
-
}, /*#__PURE__*/React.createElement(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
26
|
+
icon: faUserCircle,
|
|
27
|
+
className: "d-md-none",
|
|
28
|
+
size: "lg"
|
|
29
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
30
|
+
"data-hj-suppress": true,
|
|
31
|
+
className: "d-none d-md-inline"
|
|
32
|
+
}, username), /*#__PURE__*/React.createElement("span", null, email)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
44
33
|
className: "dropdown-menu-right"
|
|
45
34
|
}, /*#__PURE__*/React.createElement(LearningUserMenuSlot, {
|
|
46
35
|
items: dropdownItems
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","getConfig","useIntl","Dropdown","
|
|
1
|
+
{"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","getConfig","useIntl","Dropdown","LearningUserMenuSlot","messages","AuthenticatedUserDropdown","_ref","username","email","intl","dropdownItems","message","formatMessage","profile","href","signOut","LOGOUT_URL","createElement","className","Toggle","variant","userOptionsDropdownLabel","FontAwesomeIcon","icon","size","Menu","items","propTypes","string","isRequired"],"sources":["../../src/learning-header/AuthenticatedUserDropdown.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { faUserCircle } from '@fortawesome/free-solid-svg-icons';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Dropdown } from '@openedx/paragon';\n\nimport LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';\n\nimport messages from './messages';\n\nconst AuthenticatedUserDropdown = ({ username, email }) => {\n const intl = useIntl();\n const dropdownItems = [\n {\n message: intl.formatMessage(messages.profile),\n href: 'https://app.fcfmonline.cl/profile',\n },\n {\n message: intl.formatMessage(messages.signOut),\n href: getConfig().LOGOUT_URL,\n },\n ];\n\n return (\n <Dropdown className=\"user-dropdown ml-3\">\n <Dropdown.Toggle variant=\"outline-primary\" aria-label={intl.formatMessage(messages.userOptionsDropdownLabel)}>\n <FontAwesomeIcon icon={faUserCircle} className=\"d-md-none\" size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {username}\n </span>\n <span>\n {email}\n </span>\n </Dropdown.Toggle>\n <Dropdown.Menu className=\"dropdown-menu-right\">\n <LearningUserMenuSlot items={dropdownItems} />\n </Dropdown.Menu>\n </Dropdown>\n );\n};\n\nAuthenticatedUserDropdown.propTypes = {\n username: PropTypes.string.isRequired,\n};\n\nexport default AuthenticatedUserDropdown;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,YAAY,QAAQ,mCAAmC;AAChE,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,OAAOC,oBAAoB,MAAM,sCAAsC;AAEvE,OAAOC,QAAQ,MAAM,YAAY;AAEjC,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,IAAA,EAA4B;EAAA,IAAtBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAClD,IAAMC,IAAI,GAAGR,OAAO,CAAC,CAAC;EACtB,IAAMS,aAAa,GAAG,CACpB;IACEC,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACS,OAAO,CAAC;IAC7CC,IAAI,EAAE;EACR,CAAC,EACD;IACEH,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACW,OAAO,CAAC;IAC7CD,IAAI,EAAEd,SAAS,CAAC,CAAC,CAACgB;EACpB,CAAC,CACF;EAED,oBACEnB,KAAA,CAAAoB,aAAA,CAACf,QAAQ;IAACgB,SAAS,EAAC;EAAoB,gBACtCrB,KAAA,CAAAoB,aAAA,CAACf,QAAQ,CAACiB,MAAM;IAACC,OAAO,EAAC,iBAAiB;IAAC,cAAYX,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACiB,wBAAwB;EAAE,gBAC3GxB,KAAA,CAAAoB,aAAA,CAACK,eAAe;IAACC,IAAI,EAAExB,YAAa;IAACmB,SAAS,EAAC,WAAW;IAACM,IAAI,EAAC;EAAI,CAAE,CAAC,eACrE3B,KAAA,CAAAoB,aAAA;IAAM,wBAAgB;IAACC,SAAS,EAAC;EAAoB,GAClDX,QACG,CAAC,eACPV,KAAA,CAAAoB,aAAA,eACGT,KACG,CACO,CAAC,eAClBX,KAAA,CAAAoB,aAAA,CAACf,QAAQ,CAACuB,IAAI;IAACP,SAAS,EAAC;EAAqB,gBAC5CrB,KAAA,CAAAoB,aAAA,CAACd,oBAAoB;IAACuB,KAAK,EAAEhB;EAAc,CAAE,CAChC,CACP,CAAC;AAEf,CAAC;AAEDL,yBAAyB,CAACsB,SAAS,GAAG;EACpCpB,QAAQ,EAAET,SAAS,CAAC8B,MAAM,CAACC;AAC7B,CAAC;AAED,eAAexB,yBAAyB","ignoreList":[]}
|
|
@@ -40,7 +40,8 @@ var LearningHeader = function LearningHeader(_ref) {
|
|
|
40
40
|
courseNumber: courseNumber,
|
|
41
41
|
courseTitle: courseTitle
|
|
42
42
|
})), showUserDropdown && authenticatedUser && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LearningHelpSlot, null), /*#__PURE__*/React.createElement(AuthenticatedUserDropdown, {
|
|
43
|
-
username: authenticatedUser.username
|
|
43
|
+
username: authenticatedUser.username,
|
|
44
|
+
email: authenticatedUser.email
|
|
44
45
|
})), showUserDropdown && !authenticatedUser && /*#__PURE__*/React.createElement(AnonymousUserMenu, null)));
|
|
45
46
|
};
|
|
46
47
|
LearningHeader.propTypes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningHeader.js","names":["React","useContext","PropTypes","getConfig","useIntl","AppContext","AnonymousUserMenu","AuthenticatedUserDropdown","LogoSlot","CourseInfoSlot","courseInfoDataShape","messages","LearningHelpSlot","LearningHeader","_ref","courseOrg","courseNumber","courseTitle","showUserDropdown","intl","_useContext","authenticatedUser","headerLogo","createElement","href","concat","LMS_BASE_URL","src","LOGO_URL","alt","SITE_NAME","className","formatMessage","skipNavLink","style","lineHeight","Fragment","username","propTypes","bool","defaultProps"],"sources":["../../src/learning-header/LearningHeader.jsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { AppContext } from '@edx/frontend-platform/react';\n\nimport AnonymousUserMenu from './AnonymousUserMenu';\nimport AuthenticatedUserDropdown from './AuthenticatedUserDropdown';\nimport LogoSlot from '../plugin-slots/LogoSlot';\nimport CourseInfoSlot from '../plugin-slots/CourseInfoSlot';\nimport { courseInfoDataShape } from './LearningHeaderCourseInfo';\nimport messages from './messages';\nimport LearningHelpSlot from '../plugin-slots/LearningHelpSlot';\n\nconst LearningHeader = ({\n courseOrg,\n courseNumber,\n courseTitle,\n showUserDropdown,\n}) => {\n const intl = useIntl();\n const { authenticatedUser } = useContext(AppContext);\n\n const headerLogo = (\n <LogoSlot\n href={`${getConfig().LMS_BASE_URL}/dashboard`}\n src={getConfig().LOGO_URL}\n alt={getConfig().SITE_NAME}\n />\n );\n\n return (\n <header className=\"learning-header\">\n <a className=\"sr-only sr-only-focusable\" href=\"#main-content\">{intl.formatMessage(messages.skipNavLink)}</a>\n <div className=\"container-xl py-2 d-flex align-items-center\">\n {headerLogo}\n <div className=\"flex-grow-1 course-title-lockup d-flex\" style={{ lineHeight: 1 }}>\n <CourseInfoSlot courseOrg={courseOrg} courseNumber={courseNumber} courseTitle={courseTitle} />\n </div>\n {showUserDropdown && authenticatedUser && (\n <>\n <LearningHelpSlot />\n <AuthenticatedUserDropdown\n username={authenticatedUser.username}\n />\n </>\n )}\n {showUserDropdown && !authenticatedUser && (\n <AnonymousUserMenu />\n )}\n </div>\n </header>\n );\n};\n\nLearningHeader.propTypes = {\n courseOrg: courseInfoDataShape.courseOrg,\n courseNumber: courseInfoDataShape.courseNumber,\n courseTitle: courseInfoDataShape.courseTitle,\n showUserDropdown: PropTypes.bool,\n};\n\nLearningHeader.defaultProps = {\n courseOrg: null,\n courseNumber: null,\n courseTitle: null,\n showUserDropdown: true,\n};\n\nexport default LearningHeader;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,UAAU,QAAQ,8BAA8B;AAEzD,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,yBAAyB,MAAM,6BAA6B;AACnE,OAAOC,QAAQ,MAAM,0BAA0B;AAC/C,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,SAASC,mBAAmB,QAAQ,4BAA4B;AAChE,OAAOC,QAAQ,MAAM,YAAY;AACjC,OAAOC,gBAAgB,MAAM,kCAAkC;AAE/D,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAKd;EAAA,IAJJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAEhB,IAAMC,IAAI,GAAGf,OAAO,CAAC,CAAC;EACtB,IAAAgB,WAAA,GAA8BnB,UAAU,CAACI,UAAU,CAAC;IAA5CgB,iBAAiB,GAAAD,WAAA,CAAjBC,iBAAiB;EAEzB,IAAMC,UAAU,gBACdtB,KAAA,CAAAuB,aAAA,CAACf,QAAQ;IACPgB,IAAI,KAAAC,MAAA,CAAKtB,SAAS,CAAC,CAAC,CAACuB,YAAY,eAAa;IAC9CC,GAAG,EAAExB,SAAS,CAAC,CAAC,CAACyB,QAAS;IAC1BC,GAAG,EAAE1B,SAAS,CAAC,CAAC,CAAC2B;EAAU,CAC5B,CACF;EAED,oBACE9B,KAAA,CAAAuB,aAAA;IAAQQ,SAAS,EAAC;EAAiB,gBACjC/B,KAAA,CAAAuB,aAAA;IAAGQ,SAAS,EAAC,2BAA2B;IAACP,IAAI,EAAC;EAAe,GAAEL,IAAI,CAACa,aAAa,CAACrB,QAAQ,CAACsB,WAAW,CAAK,CAAC,eAC5GjC,KAAA,CAAAuB,aAAA;IAAKQ,SAAS,EAAC;EAA6C,GACzDT,UAAU,eACXtB,KAAA,CAAAuB,aAAA;IAAKQ,SAAS,EAAC,wCAAwC;IAACG,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAE;EAAE,gBAC/EnC,KAAA,CAAAuB,aAAA,CAACd,cAAc;IAACM,SAAS,EAAEA,SAAU;IAACC,YAAY,EAAEA,YAAa;IAACC,WAAW,EAAEA;EAAY,CAAE,CAC1F,CAAC,EACLC,gBAAgB,IAAIG,iBAAiB,iBACtCrB,KAAA,CAAAuB,aAAA,CAAAvB,KAAA,CAAAoC,QAAA,qBACEpC,KAAA,CAAAuB,aAAA,CAACX,gBAAgB,MAAE,CAAC,eACpBZ,KAAA,CAAAuB,aAAA,CAAChB,yBAAyB;IACxB8B,QAAQ,EAAEhB,iBAAiB,CAACgB;
|
|
1
|
+
{"version":3,"file":"LearningHeader.js","names":["React","useContext","PropTypes","getConfig","useIntl","AppContext","AnonymousUserMenu","AuthenticatedUserDropdown","LogoSlot","CourseInfoSlot","courseInfoDataShape","messages","LearningHelpSlot","LearningHeader","_ref","courseOrg","courseNumber","courseTitle","showUserDropdown","intl","_useContext","authenticatedUser","headerLogo","createElement","href","concat","LMS_BASE_URL","src","LOGO_URL","alt","SITE_NAME","className","formatMessage","skipNavLink","style","lineHeight","Fragment","username","email","propTypes","bool","defaultProps"],"sources":["../../src/learning-header/LearningHeader.jsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { AppContext } from '@edx/frontend-platform/react';\n\nimport AnonymousUserMenu from './AnonymousUserMenu';\nimport AuthenticatedUserDropdown from './AuthenticatedUserDropdown';\nimport LogoSlot from '../plugin-slots/LogoSlot';\nimport CourseInfoSlot from '../plugin-slots/CourseInfoSlot';\nimport { courseInfoDataShape } from './LearningHeaderCourseInfo';\nimport messages from './messages';\nimport LearningHelpSlot from '../plugin-slots/LearningHelpSlot';\n\nconst LearningHeader = ({\n courseOrg,\n courseNumber,\n courseTitle,\n showUserDropdown,\n}) => {\n const intl = useIntl();\n const { authenticatedUser } = useContext(AppContext);\n\n const headerLogo = (\n <LogoSlot\n href={`${getConfig().LMS_BASE_URL}/dashboard`}\n src={getConfig().LOGO_URL}\n alt={getConfig().SITE_NAME}\n />\n );\n\n return (\n <header className=\"learning-header\">\n <a className=\"sr-only sr-only-focusable\" href=\"#main-content\">{intl.formatMessage(messages.skipNavLink)}</a>\n <div className=\"container-xl py-2 d-flex align-items-center\">\n {headerLogo}\n <div className=\"flex-grow-1 course-title-lockup d-flex\" style={{ lineHeight: 1 }}>\n <CourseInfoSlot courseOrg={courseOrg} courseNumber={courseNumber} courseTitle={courseTitle} />\n </div>\n {showUserDropdown && authenticatedUser && (\n <>\n <LearningHelpSlot />\n <AuthenticatedUserDropdown\n username={authenticatedUser.username} email={authenticatedUser.email}\n />\n </>\n )}\n {showUserDropdown && !authenticatedUser && (\n <AnonymousUserMenu />\n )}\n </div>\n </header>\n );\n};\n\nLearningHeader.propTypes = {\n courseOrg: courseInfoDataShape.courseOrg,\n courseNumber: courseInfoDataShape.courseNumber,\n courseTitle: courseInfoDataShape.courseTitle,\n showUserDropdown: PropTypes.bool,\n};\n\nLearningHeader.defaultProps = {\n courseOrg: null,\n courseNumber: null,\n courseTitle: null,\n showUserDropdown: true,\n};\n\nexport default LearningHeader;\n"],"mappings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idth: 0
|
|
10
10
|
}
|
|
11
11
|
}, /*#__PURE__*/React.createElement("span", {
|
|
12
|
-
className: "d-block small m-0"
|
|
13
|
-
}, courseOrg, " ", courseNumber), /*#__PURE__*/React.createElement("span", {
|
|
14
12
|
className: "d-block m-0 font-weight-bold course-title"
|
|
15
13
|
}, courseTitle));
|
|
16
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningHeaderCourseInfo.js","names":["React","PropTypes","LearningHeaderCourseInfo","_ref","courseOrg","courseNumber","courseTitle","createElement","style","minWidth","className","courseInfoDataShape","string","propTypes"],"sources":["../../src/learning-header/LearningHeaderCourseInfo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst LearningHeaderCourseInfo = ({\n courseOrg,\n courseNumber,\n courseTitle,\n}) => (\n <div style={{ minWidth: 0 }}>\n <span className=\"d-block
|
|
1
|
+
{"version":3,"file":"LearningHeaderCourseInfo.js","names":["React","PropTypes","LearningHeaderCourseInfo","_ref","courseOrg","courseNumber","courseTitle","createElement","style","minWidth","className","courseInfoDataShape","string","propTypes"],"sources":["../../src/learning-header/LearningHeaderCourseInfo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst LearningHeaderCourseInfo = ({\n courseOrg,\n courseNumber,\n courseTitle,\n}) => (\n <div style={{ minWidth: 0 }}>\n <span className=\"d-block m-0 font-weight-bold course-title\">{courseTitle}</span>\n </div>\n);\n\nexport const courseInfoDataShape = {\n courseOrg: PropTypes.string,\n courseNumber: PropTypes.string,\n courseTitle: PropTypes.string,\n};\n\nLearningHeaderCourseInfo.propTypes = courseInfoDataShape;\n\nexport default LearningHeaderCourseInfo;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA;EAAA,IAC5BC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,WAAW,GAAAH,IAAA,CAAXG,WAAW;EAAA,oBAEXN,KAAA,CAAAO,aAAA;IAAKC,KAAK,EAAE;MAAEC,QAAQ,EAAE;IAAE;EAAE,gBAC1BT,KAAA,CAAAO,aAAA;IAAMG,SAAS,EAAC;EAA2C,GAAEJ,WAAkB,CAC5E,CAAC;AAAA,CACP;AAED,OAAO,IAAMK,mBAAmB,GAAG;EACjCP,SAAS,EAAEH,SAAS,CAACW,MAAM;EAC3BP,YAAY,EAAEJ,SAAS,CAACW,MAAM;EAC9BN,WAAW,EAAEL,SAAS,CAACW;AACzB,CAAC;AAEDV,wBAAwB,CAACW,SAAS,GAAGF,mBAAmB;AAExD,eAAeT,wBAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningUserMenuToggle.js","names":["React","FontAwesomeIcon","PropTypes","LearningUserMenuToggle","_ref","label","icon","createElement","Fragment","className","size","LearningUserMenuTogglePropTypes","string","isRequired","shape","prefix","iconName","propTypes"],"sources":["../../src/learning-header/LearningUserMenuToggle.jsx"],"sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport PropTypes from 'prop-types';\n\nconst LearningUserMenuToggle = ({\n label,\n icon,\n}) => (\n <>\n <FontAwesomeIcon icon={icon} className=\"d-md-none\" size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {label}\n </span>\n </>\n);\n\nexport const LearningUserMenuTogglePropTypes = {\n label: PropTypes.string.isRequired,\n // Full shape available by examining @fortawesome/fontawesome-common-types/index.d.ts.\n icon: PropTypes.shape({\n prefix: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nLearningUserMenuToggle.propTypes = LearningUserMenuTogglePropTypes;\n\nexport default LearningUserMenuToggle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA;EAAA,IAC1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAAA,oBAEJN,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,qBACER,KAAA,CAAAO,aAAA,CAACN,eAAe;IAACK,IAAI,EAAEA,IAAK;IAACG,SAAS,EAAC,WAAW;IAACC,IAAI,EAAC;EAAI,CAAE,CAAC,eAC/DV,KAAA,CAAAO,aAAA;IAAM,wBAAgB;IAACE,SAAS,EAAC;EAAoB,GAClDJ,KACG,
|
|
1
|
+
{"version":3,"file":"LearningUserMenuToggle.js","names":["React","FontAwesomeIcon","PropTypes","LearningUserMenuToggle","_ref","label","icon","createElement","Fragment","className","size","LearningUserMenuTogglePropTypes","string","isRequired","shape","prefix","iconName","propTypes"],"sources":["../../src/learning-header/LearningUserMenuToggle.jsx"],"sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport PropTypes from 'prop-types';\n\nconst LearningUserMenuToggle = ({\n label,\n icon,\n}) => (\n <>\n <FontAwesomeIcon icon={icon} className=\"d-md-none\" size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {label}\n </span>\n \n </>\n);\n\nexport const LearningUserMenuTogglePropTypes = {\n label: PropTypes.string.isRequired,\n // Full shape available by examining @fortawesome/fontawesome-common-types/index.d.ts.\n icon: PropTypes.shape({\n prefix: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nLearningUserMenuToggle.propTypes = LearningUserMenuTogglePropTypes;\n\nexport default LearningUserMenuToggle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA;EAAA,IAC1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAAA,oBAEJN,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,qBACER,KAAA,CAAAO,aAAA,CAACN,eAAe;IAACK,IAAI,EAAEA,IAAK;IAACG,SAAS,EAAC,WAAW;IAACC,IAAI,EAAC;EAAI,CAAE,CAAC,eAC/DV,KAAA,CAAAO,aAAA;IAAM,wBAAgB;IAACE,SAAS,EAAC;EAAoB,GAClDJ,KACG,CAEN,CAAC;AAAA,CACJ;AAED,OAAO,IAAMM,+BAA+B,GAAG;EAC7CN,KAAK,EAAEH,SAAS,CAACU,MAAM,CAACC,UAAU;EAClC;EACAP,IAAI,EAAEJ,SAAS,CAACY,KAAK,CAAC;IACpBC,MAAM,EAAEb,SAAS,CAACU,MAAM,CAACC,UAAU;IACnCG,QAAQ,EAAEd,SAAS,CAACU,MAAM,CAACC;EAC7B,CAAC,CAAC,CAACA;AACL,CAAC;AAEDV,sBAAsB,CAACc,SAAS,GAAGN,+BAA+B;AAElE,eAAeR,sBAAsB","ignoreList":[]}
|