@edx/frontend-plugin-learner-dashboard 3.3.5 → 3.4.0
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/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +6 -3
- package/dist/progressive-profiling-dashboard/api/service.js +32 -0
- package/dist/progressive-profiling-dashboard/api/service.js.map +1 -0
- package/dist/progressive-profiling-dashboard/data/progressiveProfilingFields.js +60 -0
- package/dist/progressive-profiling-dashboard/data/progressiveProfilingFields.js.map +1 -0
- package/dist/progressive-profiling-dashboard/field-renderer/FieldRenderer.js +86 -0
- package/dist/progressive-profiling-dashboard/field-renderer/FieldRenderer.js.map +1 -0
- package/dist/progressive-profiling-dashboard/field-renderer/index.js +14 -0
- package/dist/progressive-profiling-dashboard/field-renderer/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js +58 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js +157 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js +62 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js +101 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js +125 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js +106 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js +28 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js +40 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js +59 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js +14 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.scss +269 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js +68 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +28 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js.map +1 -0
- package/dist/progressive-profiling-dashboard/utils/constants.js +12 -0
- package/dist/progressive-profiling-dashboard/utils/constants.js.map +1 -0
- package/dist/tracking/constants.js +2 -1
- package/dist/tracking/constants.js.map +1 -1
- package/dist/tracking/trackers/progressiveProfiling.js +42 -0
- package/dist/tracking/trackers/progressiveProfiling.js.map +1 -0
- package/dist/tracking/utils.js +15 -2
- package/dist/tracking/utils.js.map +1 -1
- package/package.json +7 -4
- package/src/index.jsx +2 -0
- package/src/progressive-profiling-dashboard/api/service.js +24 -0
- package/src/progressive-profiling-dashboard/data/progressiveProfilingFields.js +85 -0
- package/src/progressive-profiling-dashboard/field-renderer/FieldRenderer.jsx +87 -0
- package/src/progressive-profiling-dashboard/field-renderer/index.jsx +1 -0
- package/src/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.jsx +55 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.jsx +156 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.jsx +59 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.jsx +105 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.jsx +95 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx +85 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.jsx +3 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js +35 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.jsx +46 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/tests/BaseContainer.test.jsx +76 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.jsx +1 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.scss +269 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.jsx +62 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +24 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/tests/ProgressiveProfiling.test.jsx +165 -0
- package/src/progressive-profiling-dashboard/utils/constants.jsx +5 -0
- package/src/tracking/constants.js +2 -0
- package/src/tracking/trackers/progressiveProfiling.js +38 -0
- package/src/tracking/utils.js +16 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressiveProfilingPageModal.js","names":["_react","_interopRequireDefault","require","_frontendPlatform","_i18n","_paragon","_propTypes","_messages","_jsxRuntime","e","__esModule","default","ProgressiveProfilingPageModal","props","formatMessage","useIntl","isOpen","redirectUrl","platformName","getConfig","SITE_NAME","handleSubmit","preventDefault","window","location","href","jsxs","ModalDialog","title","messages","onClose","size","variant","hasCloseButton","children","jsx","Header","Title","Body","Footer","ActionRow","Button","onClick","propTypes","PropTypes","bool","string","isRequired","defaultProps","_default","exports"],"sources":["../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.jsx"],"sourcesContent":["import React from 'react';\n\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { ActionRow, Button, ModalDialog } from '@openedx/paragon';\nimport PropTypes from 'prop-types';\n\nimport messages from './messages';\n\nconst ProgressiveProfilingPageModal = (props) => {\n const { formatMessage } = useIntl();\n const { isOpen, redirectUrl } = props;\n const platformName = getConfig().SITE_NAME;\n\n const handleSubmit = (e) => {\n e.preventDefault();\n window.location.href = redirectUrl;\n };\n\n return (\n <ModalDialog\n title={formatMessage(messages['modal.title'])}\n isOpen={isOpen}\n onClose={() => {}}\n size=\"sm\"\n variant=\"default\"\n hasCloseButton={false}\n >\n <ModalDialog.Header>\n <ModalDialog.Title>\n {formatMessage(messages['modal.title'])}\n </ModalDialog.Title>\n </ModalDialog.Header>\n\n <ModalDialog.Body>\n {formatMessage(messages['modal.description'])}\n </ModalDialog.Body>\n\n <ModalDialog.Footer>\n <ActionRow>\n <Button onClick={handleSubmit} variant=\"primary\">\n {formatMessage(messages['continue.to.platform'], { platformName })}\n </Button>\n </ActionRow>\n </ModalDialog.Footer>\n </ModalDialog>\n );\n};\n\nProgressiveProfilingPageModal.propTypes = {\n isOpen: PropTypes.bool,\n redirectUrl: PropTypes.string.isRequired,\n};\n\nProgressiveProfilingPageModal.defaultProps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B,QAAA,CAAAsB,WAAW,CAACU,KAAK;QAAAH,QAAA,EACfpB,aAAa,CAACe,iBAAQ,CAAC,aAAa,CAAC;MAAC,CACtB;IAAC,CACF,CAAC,eAErB,IAAArB,WAAA,CAAA2B,GAAA,EAAC9B,QAAA,CAAAsB,WAAW,CAACW,IAAI;MAAAJ,QAAA,EACdpB,aAAa,CAACe,iBAAQ,CAAC,mBAAmB,CAAC;IAAC,CAC7B,CAAC,eAEnB,IAAArB,WAAA,CAAA2B,GAAA,EAAC9B,QAAA,CAAAsB,WAAW,CAACY,MAAM;MAAAL,QAAA,eACjB,IAAA1B,WAAA,CAAA2B,GAAA,EAAC9B,QAAA,CAAAmC,SAAS;QAAAN,QAAA,eACR,IAAA1B,WAAA,CAAA2B,GAAA,EAAC9B,QAAA,CAAAoC,MAAM;UAACC,OAAO,EAAErB,YAAa;UAACW,OAAO,EAAC,SAAS;UAAAE,QAAA,EAC7CpB,aAAa,CAACe,iBAAQ,CAAC,sBAAsB,CAAC,EAAE;YAAEX;UAAa,CAAC;QAAC,CAC5D;MAAC,CACA;IAAC,CACM,CAAC;EAAA,CACV,CAAC;AAElB,CAAC;AAEDN,6BAA6B,CAAC+B,SAAS,GAAG;EACxC3B,MAAM,EAAE4B,kBAAS,CAACC,IAAI;EACtB5B,WAAW,EAAE2B,kBAAS,CAACE,MAAM,CAACC;AAChC,CAAC;AAEDnC,6BAA6B,CAACoC,YAAY,GAAG;EAC3ChC,MAAM,EAAE;AACV,CAAC;AAAC,IAAAiC,QAAA,GAAAC,OAAA,CAAAvC,OAAA,GAEaC,6BAA6B","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _frontendPlatform = require("@edx/frontend-platform");
|
|
10
|
+
var _i18n = require("@edx/frontend-platform/i18n");
|
|
11
|
+
var _paragon = require("@openedx/paragon");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _messages = _interopRequireDefault(require("./messages"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const LargeLayout = ({
|
|
17
|
+
enterpriseBranding
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
formatMessage
|
|
21
|
+
} = (0, _i18n.useIntl)();
|
|
22
|
+
const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;
|
|
23
|
+
const enterpriseName = enterpriseBranding?.enterpriseName || null;
|
|
24
|
+
const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString || enterpriseBranding?.platformWelcomeString || '';
|
|
25
|
+
const siteName = (0, _frontendPlatform.getConfig)().SITE_NAME;
|
|
26
|
+
const baseLogoSrc = (0, _frontendPlatform.getConfig)().LOGO_WHITE_URL || (0, _frontendPlatform.getConfig)().LOGO_URL;
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
28
|
+
className: "w-50 d-flex",
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "col-md-10 bg-primary-400 auth-hero-left position-relative",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Hyperlink, {
|
|
32
|
+
destination: (0, _frontendPlatform.getConfig)().MARKETING_SITE_BASE_URL,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
34
|
+
className: "welcome-page-logo auth-hero-base-logo",
|
|
35
|
+
alt: siteName,
|
|
36
|
+
src: baseLogoSrc
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
39
|
+
className: "auth-hero-content d-flex flex-column",
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
41
|
+
className: "d-flex align-items-center",
|
|
42
|
+
children: [enterpriseLogoUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
|
+
className: "auth-hero-enterprise-logo-wrapper mr-4",
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
45
|
+
alt: enterpriseName || 'Enterprise',
|
|
46
|
+
src: enterpriseLogoUrl,
|
|
47
|
+
className: "auth-hero-enterprise-logo"
|
|
48
|
+
})
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
50
|
+
className: "auth-hero-slash mr-4",
|
|
51
|
+
"aria-hidden": "true"
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: "auth-hero-heading",
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
55
|
+
className: (0, _classnames.default)('auth-hero-heading-line text-white'),
|
|
56
|
+
children: formatMessage(_messages.default['start.learning'])
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "auth-hero-heading-line text-accent-a",
|
|
59
|
+
children: formatMessage(_messages.default['with.edx'])
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
}), enterpriseWelcomeHtml && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
className: "auth-hero-message mt-4"
|
|
64
|
+
// eslint-disable-next-line react/no-danger
|
|
65
|
+
,
|
|
66
|
+
dangerouslySetInnerHTML: {
|
|
67
|
+
__html: enterpriseWelcomeHtml
|
|
68
|
+
}
|
|
69
|
+
})]
|
|
70
|
+
})]
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
|
+
className: "col-md-3 bg-white p-0",
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
74
|
+
className: "m1-n1 w-100 h-100 large-screen-svg-primary",
|
|
75
|
+
preserveAspectRatio: "xMaxYMin meet",
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
77
|
+
transform: "skewX(171.6)",
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
79
|
+
x: "0",
|
|
80
|
+
y: "0",
|
|
81
|
+
height: "100%",
|
|
82
|
+
width: "100%"
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
})]
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
LargeLayout.propTypes = {
|
|
90
|
+
enterpriseBranding: _propTypes.default.shape({
|
|
91
|
+
enterpriseLogoUrl: _propTypes.default.string,
|
|
92
|
+
enterpriseName: _propTypes.default.string,
|
|
93
|
+
enterpriseBrandedWelcomeString: _propTypes.default.string,
|
|
94
|
+
platformWelcomeString: _propTypes.default.string
|
|
95
|
+
})
|
|
96
|
+
};
|
|
97
|
+
LargeLayout.defaultProps = {
|
|
98
|
+
enterpriseBranding: null
|
|
99
|
+
};
|
|
100
|
+
var _default = exports.default = LargeLayout;
|
|
101
|
+
//# sourceMappingURL=LargeLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LargeLayout.js","names":["_react","_interopRequireDefault","require","_propTypes","_frontendPlatform","_i18n","_paragon","_classnames","_messages","_jsxRuntime","e","__esModule","default","LargeLayout","enterpriseBranding","formatMessage","useIntl","enterpriseLogoUrl","enterpriseName","enterpriseWelcomeHtml","enterpriseBrandedWelcomeString","platformWelcomeString","siteName","getConfig","SITE_NAME","baseLogoSrc","LOGO_WHITE_URL","LOGO_URL","jsxs","className","children","jsx","Hyperlink","destination","MARKETING_SITE_BASE_URL","Image","alt","src","classNames","messages","dangerouslySetInnerHTML","__html","preserveAspectRatio","transform","x","y","height","width","propTypes","PropTypes","shape","string","defaultProps","_default","exports"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Hyperlink, Image } from '@openedx/paragon';\nimport classNames from 'classnames';\n\nimport messages from './messages';\n\nconst LargeLayout = ({ enterpriseBranding }) => {\n const { formatMessage } = useIntl();\n\n const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;\n const enterpriseName = enterpriseBranding?.enterpriseName || null;\n\n const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString\n || enterpriseBranding?.platformWelcomeString\n || '';\n\n const siteName = getConfig().SITE_NAME;\n const baseLogoSrc = getConfig().LOGO_WHITE_URL || getConfig().LOGO_URL;\n\n return (\n <div className=\"w-50 d-flex\">\n <div className=\"col-md-10 bg-primary-400 auth-hero-left position-relative\">\n {/* base edX logo at very top-left */}\n <Hyperlink destination={getConfig().MARKETING_SITE_BASE_URL}>\n <Image\n className=\"welcome-page-logo auth-hero-base-logo\"\n alt={siteName}\n src={baseLogoSrc}\n />\n </Hyperlink>\n\n {/* main hero content block, aligned like Figma */}\n <div className=\"auth-hero-content d-flex flex-column\">\n {/* row: [enterprise logo] [yellow slash] [Start learning with edX] */}\n <div className=\"d-flex align-items-center\">\n {enterpriseLogoUrl && (\n <div className=\"auth-hero-enterprise-logo-wrapper mr-4\">\n <Image\n alt={enterpriseName || 'Enterprise'}\n src={enterpriseLogoUrl}\n className=\"auth-hero-enterprise-logo\"\n />\n </div>\n )}\n\n <div className=\"auth-hero-slash mr-4\" aria-hidden=\"true\" />\n\n <div className=\"auth-hero-heading\">\n <div\n className={classNames(\n 'auth-hero-heading-line text-white',\n )}\n >\n {formatMessage(messages['start.learning'])}\n </div>\n <div className=\"auth-hero-heading-line text-accent-a\">\n {formatMessage(messages['with.edx'])}\n </div>\n </div>\n </div>\n\n {/* enterprise-specific message aligned under heading */}\n {enterpriseWelcomeHtml && (\n <div\n className=\"auth-hero-message mt-4\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{ __html: enterpriseWelcomeHtml }}\n />\n )}\n </div>\n </div>\n\n {/* keep existing right decorative triangle */}\n <div className=\"col-md-3 bg-white p-0\">\n <svg\n className=\"m1-n1 w-100 h-100 large-screen-svg-primary\"\n preserveAspectRatio=\"xMaxYMin meet\"\n >\n <g transform=\"skewX(171.6)\">\n <rect x=\"0\" y=\"0\" height=\"100%\" width=\"100%\" />\n </g>\n </svg>\n </div>\n </div>\n );\n};\n\nLargeLayout.propTypes = {\n enterpriseBranding: PropTypes.shape({\n enterpriseLogoUrl: PropTypes.string,\n enterpriseName: PropTypes.string,\n enterpriseBrandedWelcomeString: PropTypes.string,\n platformWelcomeString: PropTypes.string,\n }),\n};\n\nLargeLayout.defaultProps = {\n enterpriseBranding: null,\n};\n\nexport default LargeLayout;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAkC,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAAmB,CAAC,KAAK;EAC9C,MAAM;IAAEC;EAAc,CAAC,G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WAAW,CAACmC,SAAS,GAAG;EACtBlC,kBAAkB,EAAEmC,kBAAS,CAACC,KAAK,CAAC;IAClCjC,iBAAiB,EAAEgC,kBAAS,CAACE,MAAM;IACnCjC,cAAc,EAAE+B,kBAAS,CAACE,MAAM;IAChC/B,8BAA8B,EAAE6B,kBAAS,CAACE,MAAM;IAChD9B,qBAAqB,EAAE4B,kBAAS,CAACE;EACnC,CAAC;AACH,CAAC;AAEDtC,WAAW,CAACuC,YAAY,GAAG;EACzBtC,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAAuC,QAAA,GAAAC,OAAA,CAAA1C,OAAA,GAEaC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _frontendPlatform = require("@edx/frontend-platform");
|
|
10
|
+
var _i18n = require("@edx/frontend-platform/i18n");
|
|
11
|
+
var _paragon = require("@openedx/paragon");
|
|
12
|
+
var _messages = _interopRequireDefault(require("./messages"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const MediumLayout = ({
|
|
16
|
+
enterpriseBranding
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
formatMessage
|
|
20
|
+
} = (0, _i18n.useIntl)();
|
|
21
|
+
const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;
|
|
22
|
+
const enterpriseName = enterpriseBranding?.enterpriseName || null;
|
|
23
|
+
const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString || enterpriseBranding?.platformWelcomeString || '';
|
|
24
|
+
const siteName = (0, _frontendPlatform.getConfig)().SITE_NAME;
|
|
25
|
+
const baseLogoSrc = (0, _frontendPlatform.getConfig)().LOGO_WHITE_URL || (0, _frontendPlatform.getConfig)().LOGO_URL;
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
27
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: "w-100 medium-screen-top-stripe"
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "w-100 p-0 mb-3 d-flex",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32
|
+
className: "col-md-10 bg-primary-400 auth-hero-left",
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Hyperlink, {
|
|
34
|
+
destination: (0, _frontendPlatform.getConfig)().MARKETING_SITE_BASE_URL,
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
36
|
+
className: "welcome-page-logo auth-hero-base-logo",
|
|
37
|
+
alt: siteName,
|
|
38
|
+
src: baseLogoSrc
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
41
|
+
className: "auth-hero-content d-flex flex-column",
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
43
|
+
className: "d-flex align-items-center",
|
|
44
|
+
children: [enterpriseLogoUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: "auth-hero-enterprise-logo-wrapper mr-4",
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
47
|
+
alt: enterpriseName || 'Enterprise',
|
|
48
|
+
src: enterpriseLogoUrl,
|
|
49
|
+
className: "auth-hero-enterprise-logo"
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
|
+
className: "auth-hero-slash mr-4",
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
55
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
56
|
+
width: "191",
|
|
57
|
+
height: "250",
|
|
58
|
+
viewBox: "0 0 191 250",
|
|
59
|
+
fill: "none",
|
|
60
|
+
style: {
|
|
61
|
+
width: '100%',
|
|
62
|
+
height: '100%'
|
|
63
|
+
},
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
|
|
65
|
+
x1: "69.8107",
|
|
66
|
+
y1: "33.833",
|
|
67
|
+
x2: "32.9503",
|
|
68
|
+
y2: "206.952",
|
|
69
|
+
stroke: "#F0CC00",
|
|
70
|
+
strokeWidth: "8"
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
74
|
+
className: "auth-hero-heading",
|
|
75
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
76
|
+
className: "auth-hero-heading-line text-white",
|
|
77
|
+
children: formatMessage(_messages.default['start.learning'])
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
className: "auth-hero-heading-line text-accent-a",
|
|
80
|
+
children: formatMessage(_messages.default['with.site.name'], {
|
|
81
|
+
siteName
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
}), enterpriseWelcomeHtml && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
+
className: "auth-hero-message mt-3"
|
|
87
|
+
// eslint-disable-next-line react/no-danger
|
|
88
|
+
,
|
|
89
|
+
dangerouslySetInnerHTML: {
|
|
90
|
+
__html: enterpriseWelcomeHtml
|
|
91
|
+
}
|
|
92
|
+
})]
|
|
93
|
+
})]
|
|
94
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
+
className: "col-md-2 bg-white p-0",
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
97
|
+
className: "w-100 h-100 medium-screen-svg-primary",
|
|
98
|
+
preserveAspectRatio: "xMaxYMin meet",
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
100
|
+
transform: "skewX(168)",
|
|
101
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
102
|
+
x: "0",
|
|
103
|
+
y: "0",
|
|
104
|
+
height: "100%",
|
|
105
|
+
width: "100%"
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
MediumLayout.propTypes = {
|
|
114
|
+
enterpriseBranding: _propTypes.default.shape({
|
|
115
|
+
enterpriseLogoUrl: _propTypes.default.string,
|
|
116
|
+
enterpriseName: _propTypes.default.string,
|
|
117
|
+
enterpriseBrandedWelcomeString: _propTypes.default.string,
|
|
118
|
+
platformWelcomeString: _propTypes.default.string
|
|
119
|
+
})
|
|
120
|
+
};
|
|
121
|
+
MediumLayout.defaultProps = {
|
|
122
|
+
enterpriseBranding: null
|
|
123
|
+
};
|
|
124
|
+
var _default = exports.default = MediumLayout;
|
|
125
|
+
//# sourceMappingURL=MediumLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediumLayout.js","names":["_react","_interopRequireDefault","require","_propTypes","_frontendPlatform","_i18n","_paragon","_messages","_jsxRuntime","e","__esModule","default","MediumLayout","enterpriseBranding","formatMessage","useIntl","enterpriseLogoUrl","enterpriseName","enterpriseWelcomeHtml","enterpriseBrandedWelcomeString","platformWelcomeString","siteName","getConfig","SITE_NAME","baseLogoSrc","LOGO_WHITE_URL","LOGO_URL","jsxs","Fragment","children","jsx","className","Hyperlink","destination","MARKETING_SITE_BASE_URL","Image","alt","src","xmlns","width","height","viewBox","fill","style","x1","y1","x2","y2","stroke","strokeWidth","messages","dangerouslySetInnerHTML","__html","preserveAspectRatio","transform","x","y","propTypes","PropTypes","shape","string","defaultProps","_default","exports"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Hyperlink, Image } from '@openedx/paragon';\n\nimport messages from './messages';\n\nconst MediumLayout = ({ enterpriseBranding }) => {\n const { formatMessage } = useIntl();\n\n const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;\n const enterpriseName = enterpriseBranding?.enterpriseName || null;\n const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString\n || enterpriseBranding?.platformWelcomeString\n || '';\n\n const siteName = getConfig().SITE_NAME;\n const baseLogoSrc = getConfig().LOGO_WHITE_URL || getConfig().LOGO_URL;\n\n return (\n <>\n <div className=\"w-100 medium-screen-top-stripe\" />\n <div className=\"w-100 p-0 mb-3 d-flex\">\n <div className=\"col-md-10 bg-primary-400 auth-hero-left\">\n <Hyperlink destination={getConfig().MARKETING_SITE_BASE_URL}>\n <Image className=\"welcome-page-logo auth-hero-base-logo\" alt={siteName} src={baseLogoSrc} />\n </Hyperlink>\n\n <div className=\"auth-hero-content d-flex flex-column\">\n <div className=\"d-flex align-items-center\">\n {enterpriseLogoUrl && (\n <div className=\"auth-hero-enterprise-logo-wrapper mr-4\">\n <Image\n alt={enterpriseName || 'Enterprise'}\n src={enterpriseLogoUrl}\n className=\"auth-hero-enterprise-logo\"\n />\n </div>\n )}\n\n <div className=\"auth-hero-slash mr-4\" aria-hidden=\"true\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"191\" height=\"250\" viewBox=\"0 0 191 250\" fill=\"none\" style={{ width: '100%', height: '100%' }}>\n <line x1=\"69.8107\" y1=\"33.833\" x2=\"32.9503\" y2=\"206.952\" stroke=\"#F0CC00\" strokeWidth=\"8\" />\n </svg>\n </div>\n\n <div className=\"auth-hero-heading\">\n <div className=\"auth-hero-heading-line text-white\">\n {formatMessage(messages['start.learning'])}\n </div>\n <div className=\"auth-hero-heading-line text-accent-a\">\n {formatMessage(messages['with.site.name'], { siteName })}\n </div>\n </div>\n </div>\n\n {enterpriseWelcomeHtml && (\n <div\n className=\"auth-hero-message mt-3\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{\n __html: enterpriseWelcomeHtml,\n }}\n />\n )}\n </div>\n </div>\n <div className=\"col-md-2 bg-white p-0\">\n <svg className=\"w-100 h-100 medium-screen-svg-primary\" preserveAspectRatio=\"xMaxYMin meet\">\n <g transform=\"skewX(168)\">\n <rect x=\"0\" y=\"0\" height=\"100%\" width=\"100%\" />\n </g>\n </svg>\n </div>\n </div>\n </>\n );\n};\n\nMediumLayout.propTypes = {\n enterpriseBranding: PropTypes.shape({\n enterpriseLogoUrl: PropTypes.string,\n enterpriseName: PropTypes.string,\n enterpriseBrandedWelcomeString: PropTypes.string,\n platformWelcomeString: PropTypes.string,\n }),\n};\n\nMediumLayout.defaultProps = {\n enterpriseBranding: null,\n};\n\nexport default MediumLayout;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAkC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAA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2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _frontendPlatform = require("@edx/frontend-platform");
|
|
10
|
+
var _i18n = require("@edx/frontend-platform/i18n");
|
|
11
|
+
var _paragon = require("@openedx/paragon");
|
|
12
|
+
var _messages = _interopRequireDefault(require("./messages"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const SmallLayout = ({
|
|
16
|
+
enterpriseBranding
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
formatMessage
|
|
20
|
+
} = (0, _i18n.useIntl)();
|
|
21
|
+
const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;
|
|
22
|
+
const enterpriseName = enterpriseBranding?.enterpriseName || null;
|
|
23
|
+
const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString || enterpriseBranding?.platformWelcomeString || '';
|
|
24
|
+
const siteName = (0, _frontendPlatform.getConfig)().SITE_NAME;
|
|
25
|
+
const baseLogoSrc = (0, _frontendPlatform.getConfig)().LOGO_WHITE_URL || (0, _frontendPlatform.getConfig)().LOGO_URL;
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
27
|
+
className: "min-vw-100 bg-primary-400 auth-hero-left",
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
|
+
className: "col-md-12 small-screen-top-stripe"
|
|
30
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Hyperlink, {
|
|
31
|
+
destination: (0, _frontendPlatform.getConfig)().MARKETING_SITE_BASE_URL,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
33
|
+
className: "logo-small auth-hero-base-logo",
|
|
34
|
+
alt: siteName,
|
|
35
|
+
src: baseLogoSrc
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
|
+
className: "auth-hero-content d-flex flex-column",
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
40
|
+
className: "d-flex align-items-center",
|
|
41
|
+
children: [enterpriseLogoUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
42
|
+
className: "auth-hero-enterprise-logo-wrapper mr-4",
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Image, {
|
|
44
|
+
alt: enterpriseName || 'Enterprise',
|
|
45
|
+
src: enterpriseLogoUrl,
|
|
46
|
+
className: "auth-hero-enterprise-logo"
|
|
47
|
+
})
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
49
|
+
className: "auth-hero-slash mr-4",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
width: "191",
|
|
54
|
+
height: "250",
|
|
55
|
+
viewBox: "0 0 191 250",
|
|
56
|
+
fill: "none",
|
|
57
|
+
style: {
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%'
|
|
60
|
+
},
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("line", {
|
|
62
|
+
x1: "69.8107",
|
|
63
|
+
y1: "33.833",
|
|
64
|
+
x2: "32.9503",
|
|
65
|
+
y2: "206.952",
|
|
66
|
+
stroke: "#F0CC00",
|
|
67
|
+
strokeWidth: "8"
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
+
className: "auth-hero-heading",
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
className: "auth-hero-heading-line text-white",
|
|
74
|
+
children: formatMessage(_messages.default['start.learning'])
|
|
75
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
76
|
+
className: "auth-hero-heading-line text-accent-a",
|
|
77
|
+
children: formatMessage(_messages.default['with.site.name'], {
|
|
78
|
+
siteName
|
|
79
|
+
})
|
|
80
|
+
})]
|
|
81
|
+
})]
|
|
82
|
+
}), enterpriseWelcomeHtml && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
|
+
className: "auth-hero-message mt-3"
|
|
84
|
+
// eslint-disable-next-line react/no-danger
|
|
85
|
+
// HTML is provided by trusted enterprise branding config (sanitized upstream).
|
|
86
|
+
,
|
|
87
|
+
dangerouslySetInnerHTML: {
|
|
88
|
+
__html: enterpriseWelcomeHtml
|
|
89
|
+
}
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
SmallLayout.propTypes = {
|
|
95
|
+
enterpriseBranding: _propTypes.default.shape({
|
|
96
|
+
enterpriseLogoUrl: _propTypes.default.string,
|
|
97
|
+
enterpriseName: _propTypes.default.string,
|
|
98
|
+
enterpriseBrandedWelcomeString: _propTypes.default.string,
|
|
99
|
+
platformWelcomeString: _propTypes.default.string
|
|
100
|
+
})
|
|
101
|
+
};
|
|
102
|
+
SmallLayout.defaultProps = {
|
|
103
|
+
enterpriseBranding: null
|
|
104
|
+
};
|
|
105
|
+
var _default = exports.default = SmallLayout;
|
|
106
|
+
//# sourceMappingURL=SmallLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmallLayout.js","names":["_react","_interopRequireDefault","require","_propTypes","_frontendPlatform","_i18n","_paragon","_messages","_jsxRuntime","e","__esModule","default","SmallLayout","enterpriseBranding","formatMessage","useIntl","enterpriseLogoUrl","enterpriseName","enterpriseWelcomeHtml","enterpriseBrandedWelcomeString","platformWelcomeString","siteName","getConfig","SITE_NAME","baseLogoSrc","LOGO_WHITE_URL","LOGO_URL","jsxs","className","children","jsx","Hyperlink","destination","MARKETING_SITE_BASE_URL","Image","alt","src","xmlns","width","height","viewBox","fill","style","x1","y1","x2","y2","stroke","strokeWidth","messages","dangerouslySetInnerHTML","__html","propTypes","PropTypes","shape","string","defaultProps","_default","exports"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Hyperlink, Image } from '@openedx/paragon';\n\nimport messages from './messages';\n\nconst SmallLayout = ({ enterpriseBranding }) => {\n const { formatMessage } = useIntl();\n\n const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;\n const enterpriseName = enterpriseBranding?.enterpriseName || null;\n const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString\n || enterpriseBranding?.platformWelcomeString\n || '';\n\n const siteName = getConfig().SITE_NAME;\n const baseLogoSrc = getConfig().LOGO_WHITE_URL || getConfig().LOGO_URL;\n\n return (\n <div className=\"min-vw-100 bg-primary-400 auth-hero-left\">\n <div className=\"col-md-12 small-screen-top-stripe\" />\n <Hyperlink destination={getConfig().MARKETING_SITE_BASE_URL}>\n <Image className=\"logo-small auth-hero-base-logo\" alt={siteName} src={baseLogoSrc} />\n </Hyperlink>\n\n <div className=\"auth-hero-content d-flex flex-column\">\n <div className=\"d-flex align-items-center\">\n {enterpriseLogoUrl && (\n <div className=\"auth-hero-enterprise-logo-wrapper mr-4\">\n <Image\n alt={enterpriseName || 'Enterprise'}\n src={enterpriseLogoUrl}\n className=\"auth-hero-enterprise-logo\"\n />\n </div>\n )}\n\n <div className=\"auth-hero-slash mr-4\" aria-hidden=\"true\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"191\" height=\"250\" viewBox=\"0 0 191 250\" fill=\"none\" style={{ width: '100%', height: '100%' }}>\n <line x1=\"69.8107\" y1=\"33.833\" x2=\"32.9503\" y2=\"206.952\" stroke=\"#F0CC00\" strokeWidth=\"8\" />\n </svg>\n </div>\n\n <div className=\"auth-hero-heading\">\n <div className=\"auth-hero-heading-line text-white\">\n {formatMessage(messages['start.learning'])}\n </div>\n <div className=\"auth-hero-heading-line text-accent-a\">\n {formatMessage(messages['with.site.name'], { siteName })}\n </div>\n </div>\n </div>\n\n {enterpriseWelcomeHtml && (\n <div\n className=\"auth-hero-message mt-3\"\n // eslint-disable-next-line react/no-danger\n // HTML is provided by trusted enterprise branding config (sanitized upstream).\n dangerouslySetInnerHTML={{\n __html: enterpriseWelcomeHtml,\n }}\n />\n )}\n </div>\n </div>\n );\n};\n\nSmallLayout.propTypes = {\n enterpriseBranding: PropTypes.shape({\n enterpriseLogoUrl: PropTypes.string,\n enterpriseName: PropTypes.string,\n enterpriseBrandedWelcomeString: PropTypes.string,\n platformWelcomeString: PropTypes.string,\n }),\n};\n\nSmallLayout.defaultProps = {\n enterpriseBranding: null,\n};\n\nexport default SmallLayout;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAkC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAAmB,CAAC,KAA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,CACF;IAAA,CACE,CAAC;EAAA,CACH,CAAC;AAEV,CAAC;AAEDN,WAAW,CAACwC,SAAS,GAAG;EACtBvC,kBAAkB,EAAEwC,kBAAS,CAACC,KAAK,CAAC;IAClCtC,iBAAiB,EAAEqC,kBAAS,CAACE,MAAM;IACnCtC,cAAc,EAAEoC,kBAAS,CAACE,MAAM;IAChCpC,8BAA8B,EAAEkC,kBAAS,CAACE,MAAM;IAChDnC,qBAAqB,EAAEiC,kBAAS,CAACE;EACnC,CAAC;AACH,CAAC;AAED3C,WAAW,CAAC4C,YAAY,GAAG;EACzB3C,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAA4C,QAAA,GAAAC,OAAA,CAAA/C,OAAA,GAEaC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AuthLargeLayout", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _LargeLayout.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AuthMediumLayout", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _MediumLayout.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AuthSmallLayout", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _SmallLayout.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _LargeLayout = _interopRequireDefault(require("./LargeLayout"));
|
|
25
|
+
var _MediumLayout = _interopRequireDefault(require("./MediumLayout"));
|
|
26
|
+
var _SmallLayout = _interopRequireDefault(require("./SmallLayout"));
|
|
27
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_LargeLayout","_interopRequireDefault","require","_MediumLayout","_SmallLayout","e","__esModule","default"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.jsx"],"sourcesContent":["export { default as AuthLargeLayout } from './LargeLayout';\nexport { default as AuthMediumLayout } from './MediumLayout';\nexport { default as AuthSmallLayout } from './SmallLayout';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA2D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _i18n = require("@edx/frontend-platform/i18n");
|
|
8
|
+
const messages = (0, _i18n.defineMessages)({
|
|
9
|
+
'welcome.to.platform': {
|
|
10
|
+
id: 'welcome.to.platform',
|
|
11
|
+
defaultMessage: 'Welcome to {siteName}, {fullName}!',
|
|
12
|
+
description: 'Welcome message that appears on progressive profile page'
|
|
13
|
+
},
|
|
14
|
+
'start.learning': {
|
|
15
|
+
id: 'start.learning',
|
|
16
|
+
defaultMessage: 'Start learning',
|
|
17
|
+
description: 'Header text for logistration MFE pages'
|
|
18
|
+
},
|
|
19
|
+
'with.site.name': {
|
|
20
|
+
id: 'with.site.name',
|
|
21
|
+
defaultMessage: 'with {siteName}',
|
|
22
|
+
description: 'Header text with site name for logistration MFE pages'
|
|
23
|
+
},
|
|
24
|
+
'with.edx': {
|
|
25
|
+
id: 'with.edx',
|
|
26
|
+
defaultMessage: ' with edX'
|
|
27
|
+
},
|
|
28
|
+
'complete.your.profile.1': {
|
|
29
|
+
id: 'complete.your.profile.1',
|
|
30
|
+
defaultMessage: 'Complete',
|
|
31
|
+
description: 'part of text "complete your profile"'
|
|
32
|
+
},
|
|
33
|
+
'complete.your.profile.2': {
|
|
34
|
+
id: 'complete.your.profile.2',
|
|
35
|
+
defaultMessage: 'your profile',
|
|
36
|
+
description: 'part of text "complete your profile"'
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var _default = exports.default = messages;
|
|
40
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","names":["_i18n","require","messages","defineMessages","id","defaultMessage","description","_default","exports","default"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js"],"sourcesContent":["import { defineMessages } from '@edx/frontend-platform/i18n';\n\nconst messages = defineMessages({\n 'welcome.to.platform': {\n id: 'welcome.to.platform',\n defaultMessage: 'Welcome to {siteName}, {fullName}!',\n description: 'Welcome message that appears on progressive profile page',\n },\n 'start.learning': {\n id: 'start.learning',\n defaultMessage: 'Start learning',\n description: 'Header text for logistration MFE pages',\n },\n 'with.site.name': {\n id: 'with.site.name',\n defaultMessage: 'with {siteName}',\n description: 'Header text with site name for logistration MFE pages',\n },\n 'with.edx': {\n id: 'with.edx',\n defaultMessage: ' with edX',\n },\n 'complete.your.profile.1': {\n id: 'complete.your.profile.1',\n defaultMessage: 'Complete',\n description: 'part of text \"complete your profile\"',\n },\n 'complete.your.profile.2': {\n id: 'complete.your.profile.2',\n defaultMessage: 'your profile',\n description: 'part of text \"complete your profile\"',\n },\n});\n\nexport default messages;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,QAAQ,GAAG,IAAAC,oBAAc,EAAC;EAC9B,qBAAqB,EAAE;IACrBC,EAAE,EAAE,qBAAqB;IACzBC,cAAc,EAAE,oCAAoC;IACpDC,WAAW,EAAE;EACf,CAAC;EACD,gBAAgB,EAAE;IAChBF,EAAE,EAAE,gBAAgB;IACpBC,cAAc,EAAE,gBAAgB;IAChCC,WAAW,EAAE;EACf,CAAC;EACD,gBAAgB,EAAE;IAChBF,EAAE,EAAE,gBAAgB;IACpBC,cAAc,EAAE,iBAAiB;IACjCC,WAAW,EAAE;EACf,CAAC;EACD,UAAU,EAAE;IACVF,EAAE,EAAE,UAAU;IACdC,cAAc,EAAE;EAClB,CAAC;EACD,yBAAyB,EAAE;IACzBD,EAAE,EAAE,yBAAyB;IAC7BC,cAAc,EAAE,UAAU;IAC1BC,WAAW,EAAE;EACf,CAAC;EACD,yBAAyB,EAAE;IACzBF,EAAE,EAAE,yBAAyB;IAC7BC,cAAc,EAAE,cAAc;IAC9BC,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYP,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _paragon = require("@openedx/paragon");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _welcomePageLayout = require("./components/welcome-page-layout");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const BaseContainer = ({
|
|
15
|
+
children,
|
|
16
|
+
enterpriseBranding
|
|
17
|
+
}) => {
|
|
18
|
+
const brandingData = enterpriseBranding?.thirdPartyAuthContext?.enterpriseBranding;
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
+
className: "col-md-12 extra-large-screen-top-stripe"
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
|
+
className: "layout",
|
|
24
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
25
|
+
maxWidth: _paragon.breakpoints.small.maxWidth - 1,
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthSmallLayout, {
|
|
27
|
+
enterpriseBranding: brandingData
|
|
28
|
+
})
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
30
|
+
minWidth: _paragon.breakpoints.medium.minWidth,
|
|
31
|
+
maxWidth: _paragon.breakpoints.large.maxWidth - 1,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthMediumLayout, {
|
|
33
|
+
enterpriseBranding: brandingData
|
|
34
|
+
})
|
|
35
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
36
|
+
minWidth: _paragon.breakpoints.extraLarge.minWidth,
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthLargeLayout, {
|
|
38
|
+
enterpriseBranding: brandingData
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "content",
|
|
42
|
+
children: children
|
|
43
|
+
})]
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
BaseContainer.defaultProps = {
|
|
48
|
+
enterpriseBranding: null
|
|
49
|
+
};
|
|
50
|
+
BaseContainer.propTypes = {
|
|
51
|
+
children: _propTypes.default.node.isRequired,
|
|
52
|
+
enterpriseBranding: _propTypes.default.shape({
|
|
53
|
+
thirdPartyAuthContext: _propTypes.default.shape({
|
|
54
|
+
enterpriseBranding: _propTypes.default.shape({})
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
var _default = exports.default = BaseContainer;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_paragon","_propTypes","_reactResponsive","_welcomePageLayout","_jsxRuntime","e","__esModule","default","BaseContainer","children","enterpriseBranding","brandingData","thirdPartyAuthContext","jsxs","Fragment","jsx","className","maxWidth","breakpoints","small","AuthSmallLayout","minWidth","medium","large","AuthMediumLayout","extraLarge","AuthLargeLayout","defaultProps","propTypes","PropTypes","node","isRequired","shape","_default","exports"],"sources":["../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.jsx"],"sourcesContent":["import React from 'react';\n\nimport { breakpoints } from '@openedx/paragon';\nimport PropTypes from 'prop-types';\nimport MediaQuery from 'react-responsive';\n\nimport { AuthLargeLayout, AuthMediumLayout, AuthSmallLayout } from './components/welcome-page-layout';\n\nconst BaseContainer = ({ children, enterpriseBranding }) => {\n const brandingData = enterpriseBranding?.thirdPartyAuthContext?.enterpriseBranding;\n\n return (\n <>\n <div className=\"col-md-12 extra-large-screen-top-stripe\" />\n <div className=\"layout\">\n <MediaQuery maxWidth={breakpoints.small.maxWidth - 1}>\n <AuthSmallLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <MediaQuery minWidth={breakpoints.medium.minWidth} maxWidth={breakpoints.large.maxWidth - 1}>\n <AuthMediumLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <MediaQuery minWidth={breakpoints.extraLarge.minWidth}>\n <AuthLargeLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <div className=\"content\">\n {children}\n </div>\n </div>\n </>\n );\n};\n\nBaseContainer.defaultProps = {\n enterpriseBranding: null,\n};\n\nBaseContainer.propTypes = {\n children: PropTypes.node.isRequired,\n enterpriseBranding: PropTypes.shape({\n thirdPartyAuthContext: PropTypes.shape({\n enterpriseBranding: PropTypes.shape({}),\n }),\n }),\n};\n\nexport default BaseContainer;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,kBAAA,GAAAJ,OAAA;AAAsG,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtG,MAAMG,aAAa,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAmB,CAAC,KAAK;EAC1D,MAAMC,YAAY,GAAGD,kBAAkB,EAAEE,qBAAqB,EAAEF,kBAAkB;EAElF,oBACE,IAAAN,WAAA,CAAAS,IAAA,EAAAT,WAAA,CAAAU,QAAA;IAAAL,QAAA,gBACE,IAAAL,WAAA,CAAAW,GAAA;MAAKC,SAAS,EAAC;IAAyC,CAAE,CAAC,eAC3D,IAAAZ,WAAA,CAAAS,IAAA;MAAKG,SAAS,EAAC,QAAQ;MAAAP,QAAA,gBACrB,IAAAL,WAAA,CAAAW,GAAA,EAACb,gBAAA,CAAAK,OAAU;QAACU,QAAQ,EAAEC,oBAAW,CAACC,KAAK,CAACF,QAAQ,GAAG,CAAE;QAAAR,QAAA,eACnD,IAAAL,WAAA,CAAAW,GAAA,EAACZ,kBAAA,CAAAiB,eAAe;UAACV,kBAAkB,EAAEC;QAAa,CAAE;MAAC,CAC3C,CAAC,eACb,IAAAP,WAAA,CAAAW,GAAA,EAACb,gBAAA,CAAAK,OAAU;QAACc,QAAQ,EAAEH,oBAAW,CAACI,MAAM,CAACD,QAAS;QAACJ,QAAQ,EAAEC,oBAAW,CAACK,KAAK,CAACN,QAAQ,GAAG,CAAE;QAAAR,QAAA,eAC1F,IAAAL,WAAA,CAAAW,GAAA,EAACZ,kBAAA,CAAAqB,gBAAgB;UAACd,kBAAkB,EAAEC;QAAa,CAAE;MAAC,CAC5C,CAAC,eACb,IAAAP,WAAA,CAAAW,GAAA,EAACb,gBAAA,CAAAK,OAAU;QAACc,QAAQ,EAAEH,oBAAW,CAACO,UAAU,CAACJ,QAAS;QAAAZ,QAAA,eACpD,IAAAL,WAAA,CAAAW,GAAA,EAACZ,kBAAA,CAAAuB,eAAe;UAAChB,kBAAkB,EAAEC;QAAa,CAAE;MAAC,CAC3C,CAAC,eACb,IAAAP,WAAA,CAAAW,GAAA;QAAKC,SAAS,EAAC,SAAS;QAAAP,QAAA,EACrBA;MAAQ,CACN,CAAC;IAAA,CACH,CAAC;EAAA,CACN,CAAC;AAEP,CAAC;AAEDD,aAAa,CAACmB,YAAY,GAAG;EAC3BjB,kBAAkB,EAAE;AACtB,CAAC;AAEDF,aAAa,CAACoB,SAAS,GAAG;EACxBnB,QAAQ,EAAEoB,kBAAS,CAACC,IAAI,CAACC,UAAU;EACnCrB,kBAAkB,EAAEmB,kBAAS,CAACG,KAAK,CAAC;IAClCpB,qBAAqB,EAAEiB,kBAAS,CAACG,KAAK,CAAC;MACrCtB,kBAAkB,EAAEmB,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC;EACH,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA3B,OAAA,GAEaC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ProgressiveProfiling", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ProgressiveProfiling.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ProgressiveProfiling = _interopRequireDefault(require("./ProgressiveProfiling"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ProgressiveProfiling","_interopRequireDefault","require","e","__esModule","default"],"sources":["../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.jsx"],"sourcesContent":["export { default as ProgressiveProfiling } from './ProgressiveProfiling';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|