@epec-fcfm-uchile/frontend-component-header 1.0.4 → 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 -8
- 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/LearningUserMenuToggle.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,15 +4,15 @@ import { faUserCircle } from '@fortawesome/free-solid-svg-icons';
|
|
|
4
4
|
import { getConfig } from '@edx/frontend-platform';
|
|
5
5
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
|
6
6
|
import { Dropdown } from '@openedx/paragon';
|
|
7
|
-
import LearningUserMenuToggleSlot from '../plugin-slots/LearningUserMenuToggleSlot';
|
|
8
7
|
import LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';
|
|
9
8
|
import messages from './messages';
|
|
10
9
|
var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
|
|
11
|
-
var username = _ref.username
|
|
10
|
+
var username = _ref.username,
|
|
11
|
+
email = _ref.email;
|
|
12
12
|
var intl = useIntl();
|
|
13
13
|
var dropdownItems = [{
|
|
14
|
-
message: intl.formatMessage(messages.
|
|
15
|
-
href:
|
|
14
|
+
message: intl.formatMessage(messages.profile),
|
|
15
|
+
href: 'https://app.fcfmonline.cl/profile'
|
|
16
16
|
}, {
|
|
17
17
|
message: intl.formatMessage(messages.signOut),
|
|
18
18
|
href: getConfig().LOGOUT_URL
|
|
@@ -22,10 +22,14 @@ var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
|
|
|
22
22
|
}, /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
23
23
|
variant: "outline-primary",
|
|
24
24
|
"aria-label": intl.formatMessage(messages.userOptionsDropdownLabel)
|
|
25
|
-
}, /*#__PURE__*/React.createElement(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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, {
|
|
29
33
|
className: "dropdown-menu-right"
|
|
30
34
|
}, /*#__PURE__*/React.createElement(LearningUserMenuSlot, {
|
|
31
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 courseNum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
|
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":[]}
|