@edx/frontend-app-learner-dashboard 1.3.0 → 1.5.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.
Files changed (19) hide show
  1. package/dist/widgets/LearnerDashboardHeader/app.js +0 -12
  2. package/dist/widgets/LearnerDashboardHeader/app.js.map +1 -1
  3. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/api.js +2 -2
  4. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/api.js.map +1 -1
  5. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js +2 -2
  6. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js.map +1 -1
  7. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js +2 -2
  8. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js.map +1 -1
  9. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js +2 -2
  10. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js.map +1 -1
  11. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js +2 -2
  12. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -1
  13. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js +2 -2
  14. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -1
  15. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js +2 -2
  16. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -1
  17. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +2 -2
  18. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js.map +1 -1
  19. package/package.json +1 -1
@@ -6,7 +6,6 @@ import MasqueradeBar from './MasqueradeBar';
6
6
  import CoursesLink from './CoursesLink';
7
7
  import DiscoverLinkMenuItem from './DiscoverLinkMenuItem';
8
8
  import ProgramsLinkMenuItem from './ProgramsLinkMenuItem';
9
- import OrderHistoryLinkMenuItem from './OrderHistoryLinkMenuItem';
10
9
  const app = {
11
10
  appId: 'org.openedx.frontend.app.learnerDashboard.header',
12
11
  slots: [
@@ -48,17 +47,6 @@ const app = {
48
47
  }
49
48
  },
50
49
  helpButtonSlotOperation({ appId, role: dashboardRole }),
51
- {
52
- slotId: 'org.openedx.frontend.slot.header.authenticatedMenu.v1',
53
- id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkOrderHistory.v1',
54
- op: WidgetOperationTypes.INSERT_BEFORE,
55
- relatedId: 'org.openedx.frontend.widget.header.desktopAuthenticatedMenuLogout.v1',
56
- element: (_jsx(OrderHistoryLinkMenuItem, { variant: "navLink" })),
57
- condition: {
58
- active: [dashboardRole],
59
- callback: () => getAppConfig(appId).ORDER_HISTORY_URL ? true : false,
60
- }
61
- },
62
50
  {
63
51
  slotId: 'org.openedx.frontend.slot.header.main.v1',
64
52
  id: 'org.openedx.frontend.widget.learnerDashboard.headerMasqueradeBar.v1',
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/widgets/LearnerDashboardHeader/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA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AAI;aAC7D;SACF;QACD;YACE,MAAM,EAAE,kDAAkD;YAC1D,EAAE,EAAE,oEAAoE;YACxE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,OAAO,EAAE,CACP,KAAC,oBAAoB,IACnB,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;QACD,uBAAuB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;QACvD;YACE,MAAM,EAAE,uDAAuD;YAC/D,EAAE,EAAE,wEAAwE;YAC5E,EAAE,EAAE,oBAAoB,CAAC,aAAa;YACtC,SAAS,EAAE,sEAAsE;YACjF,OAAO,EAAE,CACP,KAAC,wBAAwB,IACvB,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;gBACvB,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;aACrE;SACF;QACD;YACE,MAAM,EAAE,0CAA0C;YAClD,EAAE,EAAE,qEAAqE;YACzE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,SAAS,EAAE,aAAa;YACxB,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;KACF;CACF,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import { App, LinkMenuItem, WidgetOperationTypes, getAppConfig, helpButtonSlotOperation } from '@openedx/frontend-base';\n\nimport { appId, dashboardRole } from '../../constants';\n\nimport ConfirmEmailBanner from './ConfirmEmailBanner';\nimport MasqueradeBar from './MasqueradeBar';\nimport CoursesLink from './CoursesLink';\nimport DiscoverLinkMenuItem from './DiscoverLinkMenuItem';\nimport ProgramsLinkMenuItem from './ProgramsLinkMenuItem';\nimport OrderHistoryLinkMenuItem from './OrderHistoryLinkMenuItem';\n\nconst app: App = {\n appId: 'org.openedx.frontend.app.learnerDashboard.header',\n slots: [\n {\n slotId: 'org.openedx.frontend.slot.header.main.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerConfirmEmail.v1',\n op: WidgetOperationTypes.PREPEND,\n component: ConfirmEmailBanner,\n condition: {\n active: [dashboardRole]\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkCourses.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <LinkMenuItem\n label={<CoursesLink />}\n role={dashboardRole}\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole]\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkPrograms.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <ProgramsLinkMenuItem\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole],\n callback: () => getAppConfig(appId).ENABLE_PROGRAMS === true,\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkDiscover.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <DiscoverLinkMenuItem\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole]\n }\n },\n helpButtonSlotOperation({ appId, role: dashboardRole }),\n {\n slotId: 'org.openedx.frontend.slot.header.authenticatedMenu.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkOrderHistory.v1',\n op: WidgetOperationTypes.INSERT_BEFORE,\n relatedId: 'org.openedx.frontend.widget.header.desktopAuthenticatedMenuLogout.v1',\n element: (\n <OrderHistoryLinkMenuItem\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole],\n callback: () => getAppConfig(appId).ORDER_HISTORY_URL ? true : false,\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.main.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerMasqueradeBar.v1',\n op: WidgetOperationTypes.APPEND,\n component: MasqueradeBar,\n condition: {\n active: [dashboardRole]\n }\n },\n ]\n};\n\nexport default app;\n"]}
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/widgets/LearnerDashboardHeader/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAO,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAExH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,MAAM,GAAG,GAAQ;IACf,KAAK,EAAE,kDAAkD;IACzD,KAAK,EAAE;QACL;YACE,MAAM,EAAE,0CAA0C;YAClD,EAAE,EAAE,oEAAoE;YACxE,EAAE,EAAE,oBAAoB,CAAC,OAAO;YAChC,SAAS,EAAE,kBAAkB;YAC7B,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;QACD;YACE,MAAM,EAAE,kDAAkD;YAC1D,EAAE,EAAE,mEAAmE;YACvE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,OAAO,EAAE,CACP,KAAC,YAAY,IACX,KAAK,EAAE,KAAC,WAAW,KAAG,EACtB,IAAI,EAAE,aAAa,EACnB,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;QACD;YACE,MAAM,EAAE,kDAAkD;YAC1D,EAAE,EAAE,oEAAoE;YACxE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,OAAO,EAAE,CACP,KAAC,oBAAoB,IACnB,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;gBACvB,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,eAAe,KAAK,IAAI;aAC7D;SACF;QACD;YACE,MAAM,EAAE,kDAAkD;YAC1D,EAAE,EAAE,oEAAoE;YACxE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,OAAO,EAAE,CACP,KAAC,oBAAoB,IACnB,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;QACD,uBAAuB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;QACvD;YACE,MAAM,EAAE,0CAA0C;YAClD,EAAE,EAAE,qEAAqE;YACzE,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,SAAS,EAAE,aAAa;YACxB,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,aAAa,CAAC;aACxB;SACF;KACF;CACF,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import { App, LinkMenuItem, WidgetOperationTypes, getAppConfig, helpButtonSlotOperation } from '@openedx/frontend-base';\n\nimport { appId, dashboardRole } from '../../constants';\n\nimport ConfirmEmailBanner from './ConfirmEmailBanner';\nimport MasqueradeBar from './MasqueradeBar';\nimport CoursesLink from './CoursesLink';\nimport DiscoverLinkMenuItem from './DiscoverLinkMenuItem';\nimport ProgramsLinkMenuItem from './ProgramsLinkMenuItem';\n\nconst app: App = {\n appId: 'org.openedx.frontend.app.learnerDashboard.header',\n slots: [\n {\n slotId: 'org.openedx.frontend.slot.header.main.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerConfirmEmail.v1',\n op: WidgetOperationTypes.PREPEND,\n component: ConfirmEmailBanner,\n condition: {\n active: [dashboardRole]\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkCourses.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <LinkMenuItem\n label={<CoursesLink />}\n role={dashboardRole}\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole]\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkPrograms.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <ProgramsLinkMenuItem\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole],\n callback: () => getAppConfig(appId).ENABLE_PROGRAMS === true,\n }\n },\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerLinkDiscover.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <DiscoverLinkMenuItem\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [dashboardRole]\n }\n },\n helpButtonSlotOperation({ appId, role: dashboardRole }),\n {\n slotId: 'org.openedx.frontend.slot.header.main.v1',\n id: 'org.openedx.frontend.widget.learnerDashboard.headerMasqueradeBar.v1',\n op: WidgetOperationTypes.APPEND,\n component: MasqueradeBar,\n condition: {\n active: [dashboardRole]\n }\n },\n ]\n};\n\nexport default app;\n"]}
@@ -7,10 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { getAppConfig } from '@openedx/frontend-base';
10
+ import { getSiteConfig } from '@openedx/frontend-base';
11
11
  import { getAuthenticatedHttpClient, getAuthenticatedUser } from '@openedx/frontend-base';
12
12
  import { logError, logInfo } from '@openedx/frontend-base';
13
- export const noticesUrl = `${getAppConfig().LMS_BASE_URL}/notices/api/v1/unacknowledged`;
13
+ export const noticesUrl = `${getSiteConfig().lmsBaseUrl}/notices/api/v1/unacknowledged`;
14
14
  export const getNotices = ({ onLoad, notFoundMessage }) => {
15
15
  const authenticatedUser = getAuthenticatedUser();
16
16
  const handleError = (e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/widgets/LearnerDashboardPlugins/notices-redirect/api.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,YAAY,EAAE,CAAC,YAAY,gCAAgC,CAAC;AAEzF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE;IACxD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,WAAW,GAAG,CAAO,CAAC,EAAE,EAAE;QAC9B,qEAAqE;QACrE,MAAM,EAAE,gBAAgB,EAAE,EAAE,eAAe,EAAE,EAAE,GAAG,CAAC,CAAC;QACpD,IAAI,eAAe,KAAK,GAAG,EAAE,CAAC;YAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,eAAe,EAAE,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,CAAC,CAAC,CAAC;QACd,CAAC;IACH,CAAC,CAAA,CAAC;IACF,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,0BAA0B,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import { getAppConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedHttpClient, getAuthenticatedUser } from '@openedx/frontend-base';\nimport { logError, logInfo } from '@openedx/frontend-base';\n\nexport const noticesUrl = `${getAppConfig().LMS_BASE_URL}/notices/api/v1/unacknowledged`;\n\nexport const getNotices = ({ onLoad, notFoundMessage }) => {\n const authenticatedUser = getAuthenticatedUser();\n\n const handleError = async (e) => {\n // Error probably means that notices is not installed, which is fine.\n const { customAttributes: { httpErrorStatus } } = e;\n if (httpErrorStatus === 404) {\n logInfo(`${e}. ${notFoundMessage}`);\n } else {\n logError(e);\n }\n };\n if (authenticatedUser) {\n return getAuthenticatedHttpClient().get(noticesUrl, {}).then(onLoad).catch(handleError);\n }\n return null;\n};\n\nexport default { getNotices };\n"]}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/widgets/LearnerDashboardPlugins/notices-redirect/api.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,aAAa,EAAE,CAAC,UAAU,gCAAgC,CAAC;AAExF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE;IACxD,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,WAAW,GAAG,CAAO,CAAC,EAAE,EAAE;QAC9B,qEAAqE;QACrE,MAAM,EAAE,gBAAgB,EAAE,EAAE,eAAe,EAAE,EAAE,GAAG,CAAC,CAAC;QACpD,IAAI,eAAe,KAAK,GAAG,EAAE,CAAC;YAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,eAAe,EAAE,CAAC,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,CAAC,CAAC,CAAC;QACd,CAAC;IACH,CAAC,CAAA,CAAC;IACF,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,0BAA0B,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import { getSiteConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedHttpClient, getAuthenticatedUser } from '@openedx/frontend-base';\nimport { logError, logInfo } from '@openedx/frontend-base';\n\nexport const noticesUrl = `${getSiteConfig().lmsBaseUrl}/notices/api/v1/unacknowledged`;\n\nexport const getNotices = ({ onLoad, notFoundMessage }) => {\n const authenticatedUser = getAuthenticatedUser();\n\n const handleError = async (e) => {\n // Error probably means that notices is not installed, which is fine.\n const { customAttributes: { httpErrorStatus } } = e;\n if (httpErrorStatus === 404) {\n logInfo(`${e}. ${notFoundMessage}`);\n } else {\n logError(e);\n }\n };\n if (authenticatedUser) {\n return getAuthenticatedHttpClient().get(noticesUrl, {}).then(onLoad).catch(handleError);\n }\n return null;\n};\n\nexport default { getNotices };\n"]}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { getAppConfig, snakeCaseObject } from '@openedx/frontend-base';
10
+ import { getSiteConfig, snakeCaseObject } from '@openedx/frontend-base';
11
11
  import { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';
12
12
  export function saveProgressiveProfiling(values_1) {
13
13
  return __awaiter(this, arguments, void 0, function* (values, extendedProfileFieldNames = []) {
@@ -27,7 +27,7 @@ export function saveProgressiveProfiling(values_1) {
27
27
  if (extendedProfile.length) {
28
28
  payload.extendedProfile = extendedProfile;
29
29
  }
30
- yield client.patch(`${getAppConfig().LMS_BASE_URL}/api/user/v1/accounts/${authenticatedUser.username}`, snakeCaseObject(payload), {
30
+ yield client.patch(`${getSiteConfig().lmsBaseUrl}/api/user/v1/accounts/${authenticatedUser.username}`, snakeCaseObject(payload), {
31
31
  headers: { 'Content-Type': 'application/merge-patch+json' },
32
32
  });
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAE1F,MAAM,UAAgB,wBAAwB;yDAAC,MAAM,EAAE,yBAAyB,GAAG,EAAE;QACnF,MAAM,OAAO,qBAAQ,MAAM,CAAE,CAAC;QAC9B,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;QACjD,MAAM,MAAM,GAAG,0BAA0B,EAAE,CAAC;QAE5C,yBAAyB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC9C,IAAI,OAAO,CAAC,SAAS,CAAC,KAAK,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC;gBAClE,eAAe,CAAC,IAAI,CAAC;oBACnB,SAAS;oBACT,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC;iBAC/B,CAAC,CAAC;YACL,CAAC;YAED,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,IAAI,eAAe,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,CAAC,eAAe,GAAG,eAAe,CAAC;QAC5C,CAAC;QAED,MAAM,MAAM,CAAC,KAAK,CAChB,GAAG,YAAY,EAAE,CAAC,YAAY,yBAAyB,iBAAiB,CAAC,QAAQ,EAAE,EACnF,eAAe,CAAC,OAAO,CAAC,EACxB;YACE,OAAO,EAAE,EAAE,cAAc,EAAE,8BAA8B,EAAE;SAC5D,CACF,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getAppConfig, snakeCaseObject } from '@openedx/frontend-base';\nimport { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';\n\nexport async function saveProgressiveProfiling(values, extendedProfileFieldNames = []) {\n const payload = { ...values };\n const extendedProfile = [];\n const authenticatedUser = getAuthenticatedUser();\n const client = getAuthenticatedHttpClient();\n\n extendedProfileFieldNames.forEach((fieldName) => {\n if (payload[fieldName] !== undefined && payload[fieldName] !== '') {\n extendedProfile.push({\n fieldName,\n fieldValue: payload[fieldName],\n });\n }\n\n delete payload[fieldName];\n });\n\n if (extendedProfile.length) {\n payload.extendedProfile = extendedProfile;\n }\n\n await client.patch(\n `${getAppConfig().LMS_BASE_URL}/api/user/v1/accounts/${authenticatedUser.username}`,\n snakeCaseObject(payload),\n {\n headers: { 'Content-Type': 'application/merge-patch+json' },\n },\n );\n}\n"]}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAE1F,MAAM,UAAgB,wBAAwB;yDAAC,MAAM,EAAE,yBAAyB,GAAG,EAAE;QACnF,MAAM,OAAO,qBAAQ,MAAM,CAAE,CAAC;QAC9B,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;QACjD,MAAM,MAAM,GAAG,0BAA0B,EAAE,CAAC;QAE5C,yBAAyB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC9C,IAAI,OAAO,CAAC,SAAS,CAAC,KAAK,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC;gBAClE,eAAe,CAAC,IAAI,CAAC;oBACnB,SAAS;oBACT,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC;iBAC/B,CAAC,CAAC;YACL,CAAC;YAED,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,IAAI,eAAe,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,CAAC,eAAe,GAAG,eAAe,CAAC;QAC5C,CAAC;QAED,MAAM,MAAM,CAAC,KAAK,CAChB,GAAG,aAAa,EAAE,CAAC,UAAU,yBAAyB,iBAAiB,CAAC,QAAQ,EAAE,EAClF,eAAe,CAAC,OAAO,CAAC,EACxB;YACE,OAAO,EAAE,EAAE,cAAc,EAAE,8BAA8B,EAAE;SAC5D,CACF,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getSiteConfig, snakeCaseObject } from '@openedx/frontend-base';\nimport { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';\n\nexport async function saveProgressiveProfiling(values, extendedProfileFieldNames = []) {\n const payload = { ...values };\n const extendedProfile = [];\n const authenticatedUser = getAuthenticatedUser();\n const client = getAuthenticatedHttpClient();\n\n extendedProfileFieldNames.forEach((fieldName) => {\n if (payload[fieldName] !== undefined && payload[fieldName] !== '') {\n extendedProfile.push({\n fieldName,\n fieldValue: payload[fieldName],\n });\n }\n\n delete payload[fieldName];\n });\n\n if (extendedProfile.length) {\n payload.extendedProfile = extendedProfile;\n }\n\n await client.patch(\n `${getSiteConfig().lmsBaseUrl}/api/user/v1/accounts/${authenticatedUser.username}`,\n snakeCaseObject(payload),\n {\n headers: { 'Content-Type': 'application/merge-patch+json' },\n },\n );\n}\n"]}
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import React, { useEffect, useState } from 'react';
12
12
  import { useNavigate } from 'react-router-dom';
13
13
  import { Helmet } from 'react-helmet';
14
- import { useIntl } from '@openedx/frontend-base';
14
+ import { getSiteConfig, useIntl } from '@openedx/frontend-base';
15
15
  import { getAppConfig } from '@openedx/frontend-base';
16
16
  import { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';
17
17
  import { identifyAuthenticatedUser } from '@openedx/frontend-base';
@@ -71,7 +71,7 @@ const ProgressiveProfilingPage = () => {
71
71
  trackProgressiveProfilingPageViewed();
72
72
  }
73
73
  }, [authenticatedUser === null || authenticatedUser === void 0 ? void 0 : authenticatedUser.userId]);
74
- return (_jsxs(BaseContainer, { enterpriseBranding: mfeContext, children: [_jsx(Helmet, { children: _jsx("title", { children: formatMessage(messages['progressive.profiling.page.title'], { siteName: getAppConfig().SITE_NAME }) }) }), _jsx(ProgressiveProfilingPageModal, { isOpen: showModal, redirectUrl: "/" }), _jsxs("div", { className: "mw-xs m-4 pp-page-content", children: [_jsx("div", { children: _jsx("h2", { className: "pp-page__heading text-primary", children: formatMessage(messages['progressive.profiling.page.heading']) }) }), _jsx("hr", { className: "border-light-700 mb-4" }), error && (_jsxs(Alert, { variant: "danger", children: [_jsx(Alert.Heading, { children: formatMessage(messages['welcome.page.error.heading']) }), _jsx("p", { children: formatMessage(messages['welcome.page.error.message']) })] })), _jsxs(Form, { children: [fieldList.map((fieldData) => (_jsx(FormFieldRenderer, { fieldData: fieldData, value: values[fieldData.name], onChangeHandler: onChangeHandler }, fieldData.name))), (getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK) && (_jsx("span", { className: "pp-page__support-link", children: _jsx(Hyperlink, { isInline: true, variant: "muted", destination: getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK, target: "_blank", showLaunchIcon: false, onClick: () => (trackProgressiveProfilingSupportLinkClick()), children: formatMessage(messages['optional.fields.information.link']) }) })), _jsxs("div", { className: "d-flex mt-4 mb-3", children: [_jsx(StatefulButton, { type: "submit", variant: "brand", className: "pp-page__button-width", state: submitState, labels: {
74
+ return (_jsxs(BaseContainer, { enterpriseBranding: mfeContext, children: [_jsx(Helmet, { children: _jsx("title", { children: formatMessage(messages['progressive.profiling.page.title'], { siteName: getSiteConfig().siteName }) }) }), _jsx(ProgressiveProfilingPageModal, { isOpen: showModal, redirectUrl: "/" }), _jsxs("div", { className: "mw-xs m-4 pp-page-content", children: [_jsx("div", { children: _jsx("h2", { className: "pp-page__heading text-primary", children: formatMessage(messages['progressive.profiling.page.heading']) }) }), _jsx("hr", { className: "border-light-700 mb-4" }), error && (_jsxs(Alert, { variant: "danger", children: [_jsx(Alert.Heading, { children: formatMessage(messages['welcome.page.error.heading']) }), _jsx("p", { children: formatMessage(messages['welcome.page.error.message']) })] })), _jsxs(Form, { children: [fieldList.map((fieldData) => (_jsx(FormFieldRenderer, { fieldData: fieldData, value: values[fieldData.name], onChangeHandler: onChangeHandler }, fieldData.name))), (getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK) && (_jsx("span", { className: "pp-page__support-link", children: _jsx(Hyperlink, { isInline: true, variant: "muted", destination: getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK, target: "_blank", showLaunchIcon: false, onClick: () => (trackProgressiveProfilingSupportLinkClick()), children: formatMessage(messages['optional.fields.information.link']) }) })), _jsxs("div", { className: "d-flex mt-4 mb-3", children: [_jsx(StatefulButton, { type: "submit", variant: "brand", className: "pp-page__button-width", state: submitState, labels: {
75
75
  default: formatMessage(messages['optional.fields.submit.button']),
76
76
  pending: '',
77
77
  }, onClick: handleSubmit, onMouseDown: (e) => e.preventDefault(), disabled: loadState !== COMPLETE_STATE || submitState === PENDING_STATE }), _jsx(StatefulButton, { className: "text-gray-700 font-weight-500", type: "button", variant: "link", labels: {
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressiveProfiling.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.jsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,GACvC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,2BAA2B,MAAM,sCAAsC,CAAC;AAE/E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAE5E,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EACL,sCAAsC,EAAE,oCAAoC,EAC5E,yCAAyC,EAAE,mCAAmC,GAC/E,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACpC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,MAAM,iBAAiB,GA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AE,GACtC,IACE,IACD,IACH,IACQ,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { Helmet } from 'react-helmet';\nimport { useIntl } from '@openedx/frontend-base';\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';\nimport { identifyAuthenticatedUser } from '@openedx/frontend-base';\nimport {\n Form, Hyperlink, StatefulButton, Alert,\n} from '@openedx/paragon';\nimport messages from './messages';\n\nimport useProgressiveProfilingForm from '../hooks/useProgressiveProfilingForm';\n\nimport BaseContainer from './base-container';\nimport { FormFieldRenderer } from '../field-renderer';\nimport ProgressiveProfilingPageModal from './ProgressiveProfilingPageModal';\n\nimport getThirdPartyAuthContext from './service/getThirdPartyAuthContext';\n\nimport {\n trackProgressiveProfilingSkipLinkClick, trackProgressiveProfilingSubmitClick,\n trackProgressiveProfilingSupportLinkClick, trackProgressiveProfilingPageViewed,\n} from '../../tracking/trackers/progressiveProfiling';\n\nimport { PENDING_STATE, COMPLETE_STATE } from '../utils/constants';\n\nimport './index.scss';\n\nconst ProgressiveProfilingPage = () => {\n const navigate = useNavigate();\n const { formatMessage } = useIntl();\n const authenticatedUser = getAuthenticatedUser();\n const client = getAuthenticatedHttpClient();\n const {\n loadState, submitState, error, values, fieldList, onChangeHandler, submit,\n } = useProgressiveProfilingForm(authenticatedUser.username, client);\n const [showModal, setShowModal] = useState(false);\n\n const handleSubmit = async (e) => {\n e.preventDefault();\n const success = await submit();\n if (!success) { return; }\n\n trackProgressiveProfilingSubmitClick({\n isGenderSelected: !!values.gender,\n isYearOfBirthSelected: !!values.year_of_birth,\n isLevelOfEducationSelected: !!values.level_of_education,\n isWorkExperienceSelected: !!values.work_experience,\n });\n navigate('/', { replace: true });\n };\n\n const handleSkip = () => {\n trackProgressiveProfilingSkipLinkClick();\n setShowModal(true);\n };\n\n const [mfeContext, setMfeContext] = useState(null);\n\n useEffect(() => {\n const fetchContext = async () => {\n try {\n const data = await getThirdPartyAuthContext();\n setMfeContext(data);\n } catch (err) {\n // Allow the page to render even if enterprise context cannot be fetched.\n setMfeContext(null);\n }\n };\n fetchContext();\n }, []);\n\n useEffect(() => {\n const userId = authenticatedUser?.userId;\n if (userId) {\n identifyAuthenticatedUser(userId);\n trackProgressiveProfilingPageViewed();\n }\n }, [authenticatedUser?.userId]);\n\n return (\n <BaseContainer enterpriseBranding={mfeContext}>\n <Helmet>\n <title>{formatMessage(\n messages['progressive.profiling.page.title'],\n { siteName: getAppConfig().SITE_NAME },\n )}\n </title>\n </Helmet>\n <ProgressiveProfilingPageModal isOpen={showModal} redirectUrl=\"/\" />\n <div className=\"mw-xs m-4 pp-page-content\">\n <div>\n <h2 className=\"pp-page__heading text-primary\">{formatMessage(messages['progressive.profiling.page.heading'])}</h2>\n </div><hr className=\"border-light-700 mb-4\" />\n {error && (\n <Alert variant=\"danger\">\n <Alert.Heading>{formatMessage(messages['welcome.page.error.heading'])}</Alert.Heading>\n <p>{formatMessage(messages['welcome.page.error.message'])}</p>\n </Alert>\n )}\n <Form>\n {fieldList.map((fieldData) => (\n <FormFieldRenderer\n key={fieldData.name}\n fieldData={fieldData}\n value={values[fieldData.name]}\n onChangeHandler={onChangeHandler}\n />\n ))}\n {(getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK) && (\n <span className=\"pp-page__support-link\">\n <Hyperlink\n isInline\n variant=\"muted\"\n destination={getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK}\n target=\"_blank\"\n showLaunchIcon={false}\n onClick={() => (trackProgressiveProfilingSupportLinkClick())}\n >\n {formatMessage(messages['optional.fields.information.link'])}\n </Hyperlink>\n </span>\n )}\n <div className=\"d-flex mt-4 mb-3\">\n <StatefulButton\n type=\"submit\"\n variant=\"brand\"\n className=\"pp-page__button-width\"\n state={submitState}\n labels={{\n default: formatMessage(messages['optional.fields.submit.button']),\n pending: '',\n }}\n onClick={handleSubmit}\n onMouseDown={(e) => e.preventDefault()}\n disabled={loadState !== COMPLETE_STATE || submitState === PENDING_STATE}\n />\n <StatefulButton\n className=\"text-gray-700 font-weight-500\"\n type=\"button\"\n variant=\"link\"\n labels={{\n default: formatMessage(messages['optional.fields.skip.button']),\n }}\n onClick={handleSkip}\n onMouseDown={(e) => e.preventDefault()}\n />\n </div>\n </Form>\n </div>\n </BaseContainer>\n );\n};\n\nexport default ProgressiveProfilingPage;\n"]}
1
+ {"version":3,"file":"ProgressiveProfiling.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.jsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,GACvC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,2BAA2B,MAAM,sCAAsC,CAAC;AAE/E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAE5E,OAAO,wBAAwB,MAAM,oCAA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AAC,CAAC,cAAc,EAAE,EACtC,QAAQ,EAAE,SAAS,KAAK,cAAc,IAAI,WAAW,KAAK,aAAa,GACvE,EACF,KAAC,cAAc,IACb,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,MAAM,EACd,MAAM,EAAE;4CACN,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC;yCAChE,EACD,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,GACtC,IACE,IACD,IACH,IACQ,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { Helmet } from 'react-helmet';\nimport { getSiteConfig, useIntl } from '@openedx/frontend-base';\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedUser, getAuthenticatedHttpClient } from '@openedx/frontend-base';\nimport { identifyAuthenticatedUser } from '@openedx/frontend-base';\nimport {\n Form, Hyperlink, StatefulButton, Alert,\n} from '@openedx/paragon';\nimport messages from './messages';\n\nimport useProgressiveProfilingForm from '../hooks/useProgressiveProfilingForm';\n\nimport BaseContainer from './base-container';\nimport { FormFieldRenderer } from '../field-renderer';\nimport ProgressiveProfilingPageModal from './ProgressiveProfilingPageModal';\n\nimport getThirdPartyAuthContext from './service/getThirdPartyAuthContext';\n\nimport {\n trackProgressiveProfilingSkipLinkClick, trackProgressiveProfilingSubmitClick,\n trackProgressiveProfilingSupportLinkClick, trackProgressiveProfilingPageViewed,\n} from '../../tracking/trackers/progressiveProfiling';\n\nimport { PENDING_STATE, COMPLETE_STATE } from '../utils/constants';\n\nimport './index.scss';\n\nconst ProgressiveProfilingPage = () => {\n const navigate = useNavigate();\n const { formatMessage } = useIntl();\n const authenticatedUser = getAuthenticatedUser();\n const client = getAuthenticatedHttpClient();\n const {\n loadState, submitState, error, values, fieldList, onChangeHandler, submit,\n } = useProgressiveProfilingForm(authenticatedUser.username, client);\n const [showModal, setShowModal] = useState(false);\n\n const handleSubmit = async (e) => {\n e.preventDefault();\n const success = await submit();\n if (!success) { return; }\n\n trackProgressiveProfilingSubmitClick({\n isGenderSelected: !!values.gender,\n isYearOfBirthSelected: !!values.year_of_birth,\n isLevelOfEducationSelected: !!values.level_of_education,\n isWorkExperienceSelected: !!values.work_experience,\n });\n navigate('/', { replace: true });\n };\n\n const handleSkip = () => {\n trackProgressiveProfilingSkipLinkClick();\n setShowModal(true);\n };\n\n const [mfeContext, setMfeContext] = useState(null);\n\n useEffect(() => {\n const fetchContext = async () => {\n try {\n const data = await getThirdPartyAuthContext();\n setMfeContext(data);\n } catch (err) {\n // Allow the page to render even if enterprise context cannot be fetched.\n setMfeContext(null);\n }\n };\n fetchContext();\n }, []);\n\n useEffect(() => {\n const userId = authenticatedUser?.userId;\n if (userId) {\n identifyAuthenticatedUser(userId);\n trackProgressiveProfilingPageViewed();\n }\n }, [authenticatedUser?.userId]);\n\n return (\n <BaseContainer enterpriseBranding={mfeContext}>\n <Helmet>\n <title>{formatMessage(\n messages['progressive.profiling.page.title'],\n { siteName: getSiteConfig().siteName },\n )}\n </title>\n </Helmet>\n <ProgressiveProfilingPageModal isOpen={showModal} redirectUrl=\"/\" />\n <div className=\"mw-xs m-4 pp-page-content\">\n <div>\n <h2 className=\"pp-page__heading text-primary\">{formatMessage(messages['progressive.profiling.page.heading'])}</h2>\n </div><hr className=\"border-light-700 mb-4\" />\n {error && (\n <Alert variant=\"danger\">\n <Alert.Heading>{formatMessage(messages['welcome.page.error.heading'])}</Alert.Heading>\n <p>{formatMessage(messages['welcome.page.error.message'])}</p>\n </Alert>\n )}\n <Form>\n {fieldList.map((fieldData) => (\n <FormFieldRenderer\n key={fieldData.name}\n fieldData={fieldData}\n value={values[fieldData.name]}\n onChangeHandler={onChangeHandler}\n />\n ))}\n {(getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK) && (\n <span className=\"pp-page__support-link\">\n <Hyperlink\n isInline\n variant=\"muted\"\n destination={getAppConfig().AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK}\n target=\"_blank\"\n showLaunchIcon={false}\n onClick={() => (trackProgressiveProfilingSupportLinkClick())}\n >\n {formatMessage(messages['optional.fields.information.link'])}\n </Hyperlink>\n </span>\n )}\n <div className=\"d-flex mt-4 mb-3\">\n <StatefulButton\n type=\"submit\"\n variant=\"brand\"\n className=\"pp-page__button-width\"\n state={submitState}\n labels={{\n default: formatMessage(messages['optional.fields.submit.button']),\n pending: '',\n }}\n onClick={handleSubmit}\n onMouseDown={(e) => e.preventDefault()}\n disabled={loadState !== COMPLETE_STATE || submitState === PENDING_STATE}\n />\n <StatefulButton\n className=\"text-gray-700 font-weight-500\"\n type=\"button\"\n variant=\"link\"\n labels={{\n default: formatMessage(messages['optional.fields.skip.button']),\n }}\n onClick={handleSkip}\n onMouseDown={(e) => e.preventDefault()}\n />\n </div>\n </Form>\n </div>\n </BaseContainer>\n );\n};\n\nexport default ProgressiveProfilingPage;\n"]}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import { getAppConfig } from '@openedx/frontend-base';
3
+ import { getSiteConfig } from '@openedx/frontend-base';
4
4
  import { useIntl } from '@openedx/frontend-base';
5
5
  import { ActionRow, Button, ModalDialog } from '@openedx/paragon';
6
6
  import PropTypes from 'prop-types';
@@ -8,7 +8,7 @@ import messages from './messages';
8
8
  const ProgressiveProfilingPageModal = (props) => {
9
9
  const { formatMessage } = useIntl();
10
10
  const { isOpen, redirectUrl } = props;
11
- const platformName = getAppConfig().SITE_NAME;
11
+ const platformName = getSiteConfig().siteName;
12
12
  const handleSubmit = (e) => {
13
13
  e.preventDefault();
14
14
  window.location.href = redirectUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressiveProfilingPageModal.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,6BAA6B,GAAG,CAAC,KAAK,EAAE,EAAE;IAC9C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,SAAS,CAAC;IAE9C,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE;QACzB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,WAAW,CAAC;IACrC,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,WAAW,IACV,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,EAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,SAAS,EACjB,cAAc,EAAE,KAAK,aAErB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,WAAW,CAAC,KAAK,cACf,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GACrB,GACD,EAErB,KAAC,WAAW,CAAC,IAAI,cACd,aAAa,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,GAC5B,EAEnB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,SAAS,cACR,KAAC,MAAM,IAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAC,SAAS,YAC7C,aAAa,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,GAC3D,GACC,GACO,IACT,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,6BAA6B,CAAC,SAAS,GAAG;IACxC,MAAM,EAAE,SAAS,CAAC,IAAI;IACtB,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CACzC,CAAC;AAEF,6BAA6B,CAAC,YAAY,GAAG;IAC3C,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,eAAe,6BAA6B,CAAC","sourcesContent":["import React from 'react';\n\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getAppConfig().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 = {\n isOpen: false,\n};\n\nexport default ProgressiveProfilingPageModal;\n"]}
1
+ {"version":3,"file":"ProgressiveProfilingPageModal.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,6BAA6B,GAAG,CAAC,KAAK,EAAE,EAAE;IAC9C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC,QAAQ,CAAC;IAE9C,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE;QACzB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,WAAW,CAAC;IACrC,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,WAAW,IACV,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,EAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,SAAS,EACjB,cAAc,EAAE,KAAK,aAErB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,WAAW,CAAC,KAAK,cACf,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GACrB,GACD,EAErB,KAAC,WAAW,CAAC,IAAI,cACd,aAAa,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,GAC5B,EAEnB,KAAC,WAAW,CAAC,MAAM,cACjB,KAAC,SAAS,cACR,KAAC,MAAM,IAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAC,SAAS,YAC7C,aAAa,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,EAAE,YAAY,EAAE,CAAC,GAC3D,GACC,GACO,IACT,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,6BAA6B,CAAC,SAAS,GAAG;IACxC,MAAM,EAAE,SAAS,CAAC,IAAI;IACtB,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;CACzC,CAAC;AAEF,6BAA6B,CAAC,YAAY,GAAG;IAC3C,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,eAAe,6BAA6B,CAAC","sourcesContent":["import React from 'react';\n\nimport { getSiteConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getSiteConfig().siteName;\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 = {\n isOpen: false,\n};\n\nexport default ProgressiveProfilingPageModal;\n"]}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { getAppConfig } from '@openedx/frontend-base';
4
+ import { getAppConfig, getSiteConfig } from '@openedx/frontend-base';
5
5
  import { useIntl } from '@openedx/frontend-base';
6
6
  import { Hyperlink, Image } from '@openedx/paragon';
7
7
  import classNames from 'classnames';
@@ -13,7 +13,7 @@ const LargeLayout = ({ enterpriseBranding }) => {
13
13
  const enterpriseWelcomeHtml = (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.enterpriseBrandedWelcomeString)
14
14
  || (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.platformWelcomeString)
15
15
  || '';
16
- const siteName = getAppConfig().SITE_NAME;
16
+ const siteName = getSiteConfig().siteName;
17
17
  const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().LOGO_URL;
18
18
  return (_jsxs("div", { className: "w-50 d-flex", children: [_jsxs("div", { className: "col-md-10 bg-primary-400 auth-hero-left position-relative", children: [_jsx(Hyperlink, { destination: getAppConfig().MARKETING_SITE_BASE_URL, children: _jsx(Image, { className: "welcome-page-logo auth-hero-base-logo", alt: siteName, src: baseLogoSrc }) }), _jsxs("div", { className: "auth-hero-content d-flex flex-column", children: [_jsxs("div", { className: "d-flex align-items-center", children: [enterpriseLogoUrl && (_jsx("div", { className: "auth-hero-enterprise-logo-wrapper mr-4", children: _jsx(Image, { alt: enterpriseName || 'Enterprise', src: enterpriseLogoUrl, className: "auth-hero-enterprise-logo" }) })), _jsx("div", { className: "auth-hero-slash mr-4", "aria-hidden": "true" }), _jsxs("div", { className: "auth-hero-heading", children: [_jsx("div", { className: classNames('auth-hero-heading-line text-white'), children: formatMessage(messages['start.learning']) }), _jsx("div", { className: "auth-hero-heading-line text-accent-a", children: formatMessage(messages['with.edx']) })] })] }), enterpriseWelcomeHtml && (_jsx("div", { className: "auth-hero-message mt-4",
19
19
  // eslint-disable-next-line react/no-danger
@@ -1 +1 @@
1
- {"version":3,"file":"LargeLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,WAAW,GAAG,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC7C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IAEpC,MAAM,iBAAiB,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,iBAAiB,KAAI,IAAI,CAAC;IACxE,MAAM,cAAc,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,KAAI,IAAI,CAAC;IAElE,MAAM,qBAAqB,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,8BAA8B;YAC3E,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,qBAAqB,CAAA;WACzC,EAAE,CAAC;IAER,MAAM,QAA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,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,GAC7C,GACA,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,SAAS,GAAG;IACtB,kBAAkB,EAAE,SAAS,CAAC,KAAK,CAAC;QAClC,iBAAiB,EAAE,SAAS,CAAC,MAAM;QACnC,cAAc,EAAE,SAAS,CAAC,MAAM;QAChC,8BAA8B,EAAE,SAAS,CAAC,MAAM;QAChD,qBAAqB,EAAE,SAAS,CAAC,MAAM;KACxC,CAAC;CACH,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IACzB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getAppConfig().SITE_NAME;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
1
+ {"version":3,"file":"LargeLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY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ig, getSiteConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getSiteConfig().siteName;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { getAppConfig } from '@openedx/frontend-base';
4
+ import { getAppConfig, getSiteConfig } from '@openedx/frontend-base';
5
5
  import { useIntl } from '@openedx/frontend-base';
6
6
  import { Hyperlink, Image } from '@openedx/paragon';
7
7
  import messages from './messages';
@@ -12,7 +12,7 @@ const MediumLayout = ({ enterpriseBranding }) => {
12
12
  const enterpriseWelcomeHtml = (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.enterpriseBrandedWelcomeString)
13
13
  || (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.platformWelcomeString)
14
14
  || '';
15
- const siteName = getAppConfig().SITE_NAME;
15
+ const siteName = getSiteConfig().siteName;
16
16
  const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().LOGO_URL;
17
17
  return (_jsxs(_Fragment, { children: [_jsx("div", { className: "w-100 medium-screen-top-stripe" }), _jsxs("div", { className: "w-100 p-0 mb-3 d-flex", children: [_jsxs("div", { className: "col-md-10 bg-primary-400 auth-hero-left", children: [_jsx(Hyperlink, { destination: getAppConfig().MARKETING_SITE_BASE_URL, children: _jsx(Image, { className: "welcome-page-logo auth-hero-base-logo", alt: siteName, src: baseLogoSrc }) }), _jsxs("div", { className: "auth-hero-content d-flex flex-column", children: [_jsxs("div", { className: "d-flex align-items-center", children: [enterpriseLogoUrl && (_jsx("div", { className: "auth-hero-enterprise-logo-wrapper mr-4", children: _jsx(Image, { alt: enterpriseName || 'Enterprise', src: enterpriseLogoUrl, className: "auth-hero-enterprise-logo" }) })), _jsx("div", { className: "auth-hero-slash mr-4", "aria-hidden": "true", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "191", height: "250", viewBox: "0 0 191 250", fill: "none", style: { width: '100%', height: '100%' }, children: _jsx("line", { x1: "69.8107", y1: "33.833", x2: "32.9503", y2: "206.952", stroke: "#F0CC00", strokeWidth: "8" }) }) }), _jsxs("div", { className: "auth-hero-heading", children: [_jsx("div", { className: "auth-hero-heading-line text-white", children: formatMessage(messages['start.learning']) }), _jsx("div", { className: "auth-hero-heading-line text-accent-a", children: formatMessage(messages['with.site.name'], { siteName }) })] })] }), enterpriseWelcomeHtml && (_jsx("div", { className: "auth-hero-message mt-3",
18
18
  // eslint-disable-next-line react/no-danger
@@ -1 +1 @@
1
- {"version":3,"file":"MediumLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,QAAQ,MAAM,YAAY,CA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qBAAqB,EAAE,SAAS,CAAC,MAAM;KACxC,CAAC;CACH,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC1B,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getAppConfig().SITE_NAME;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
1
+ {"version":3,"file":"MediumLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,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KACxC,CAAC;CACH,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC1B,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getAppConfig, getSiteConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getSiteConfig().siteName;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { getAppConfig } from '@openedx/frontend-base';
4
+ import { getAppConfig, getSiteConfig } from '@openedx/frontend-base';
5
5
  import { useIntl } from '@openedx/frontend-base';
6
6
  import { Hyperlink, Image } from '@openedx/paragon';
7
7
  import messages from './messages';
@@ -12,7 +12,7 @@ const SmallLayout = ({ enterpriseBranding }) => {
12
12
  const enterpriseWelcomeHtml = (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.enterpriseBrandedWelcomeString)
13
13
  || (enterpriseBranding === null || enterpriseBranding === void 0 ? void 0 : enterpriseBranding.platformWelcomeString)
14
14
  || '';
15
- const siteName = getAppConfig().SITE_NAME;
15
+ const siteName = getSiteConfig().siteName;
16
16
  const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().LOGO_URL;
17
17
  return (_jsxs("div", { className: "min-vw-100 bg-primary-400 auth-hero-left", children: [_jsx("div", { className: "col-md-12 small-screen-top-stripe" }), _jsx(Hyperlink, { destination: getAppConfig().MARKETING_SITE_BASE_URL, children: _jsx(Image, { className: "logo-small auth-hero-base-logo", alt: siteName, src: baseLogoSrc }) }), _jsxs("div", { className: "auth-hero-content d-flex flex-column", children: [_jsxs("div", { className: "d-flex align-items-center", children: [enterpriseLogoUrl && (_jsx("div", { className: "auth-hero-enterprise-logo-wrapper mr-4", children: _jsx(Image, { alt: enterpriseName || 'Enterprise', src: enterpriseLogoUrl, className: "auth-hero-enterprise-logo" }) })), _jsx("div", { className: "auth-hero-slash mr-4", "aria-hidden": "true", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "191", height: "250", viewBox: "0 0 191 250", fill: "none", style: { width: '100%', height: '100%' }, children: _jsx("line", { x1: "69.8107", y1: "33.833", x2: "32.9503", y2: "206.952", stroke: "#F0CC00", strokeWidth: "8" }) }) }), _jsxs("div", { className: "auth-hero-heading", children: [_jsx("div", { className: "auth-hero-heading-line text-white", children: formatMessage(messages['start.learning']) }), _jsx("div", { className: "auth-hero-heading-line text-accent-a", children: formatMessage(messages['with.site.name'], { siteName }) })] })] }), enterpriseWelcomeHtml && (_jsx("div", { className: "auth-hero-message mt-3",
18
18
  // eslint-disable-next-line react/no-danger
@@ -1 +1 @@
1
- {"version":3,"file":"SmallLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,wB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,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getAppConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getAppConfig().SITE_NAME;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
1
+ {"version":3,"file":"SmallLayout.js","sourceRoot":"","sources":["../../../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,WAAW,GAAG,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC7C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IAEpC,MAAM,iBAAiB,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,iBAAiB,KAAI,IAAI,CAAC;IACxE,MAAM,cAAc,GAAG,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,KAAI,IAAI,CAAC;IAClE,MAAM,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EAAC,mBAAmB,aAChC,cAAK,SAAS,EAAC,mCAAmC,YAC/C,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GACtC,EACN,cAAK,SAAS,EAAC,sCAAsC,YAClD,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,GACpD,IACF,IACF,EAEL,qBAAqB,IAAI,CACxB,cACE,SAAS,EAAC,wBAAwB;wBAClC,2CAA2C;wBAC3C,+EAA+E;wBAC/E,uBAAuB,EAAE;4BACvB,MAAM,EAAE,qBAAqB;yBAC9B,GACD,CACH,IACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,SAAS,GAAG;IACtB,kBAAkB,EAAE,SAAS,CAAC,KAAK,CAAC;QAClC,iBAAiB,EAAE,SAAS,CAAC,MAAM;QACnC,cAAc,EAAE,SAAS,CAAC,MAAM;QAChC,8BAA8B,EAAE,SAAS,CAAC,MAAM;QAChD,qBAAqB,EAAE,SAAS,CAAC,MAAM;KACxC,CAAC;CACH,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IACzB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getAppConfig, getSiteConfig } from '@openedx/frontend-base';\nimport { useIntl } from '@openedx/frontend-base';\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 = getSiteConfig().siteName;\n const baseLogoSrc = getAppConfig().LOGO_WHITE_URL || getAppConfig().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={getAppConfig().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"]}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { getAppConfig } from '@openedx/frontend-base';
10
+ import { getSiteConfig } from '@openedx/frontend-base';
11
11
  import { getAuthenticatedHttpClient } from '@openedx/frontend-base';
12
12
  export default function getThirdPartyAuthContext(urlParams) {
13
13
  return __awaiter(this, void 0, void 0, function* () {
@@ -17,7 +17,7 @@ export default function getThirdPartyAuthContext(urlParams) {
17
17
  isPublic: true,
18
18
  };
19
19
  const { data } = yield getAuthenticatedHttpClient()
20
- .get(`${getAppConfig().LMS_BASE_URL}/api/mfe_context`, requestConfig)
20
+ .get(`${getSiteConfig().lmsBaseUrl}/api/mfe_context`, requestConfig)
21
21
  .catch((e) => {
22
22
  throw (e);
23
23
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getThirdPartyAuthContext.js","sourceRoot":"","sources":["../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAgB,wBAAwB,CAAC,SAAS;;QAC9D,MAAM,aAAa,GAAG;YACpB,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,0BAA0B,EAAE;aAChD,GAAG,CACF,GAAG,YAAY,EAAE,CAAC,YAAY,kBAAkB,EAChD,aAAa,CACd;aACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;QACL,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,IAAI,EAAE;YAChD,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;YACzC,qBAAqB,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;SAC9C,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getAppConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedHttpClient } from '@openedx/frontend-base';\n\nexport default async function getThirdPartyAuthContext(urlParams) {\n const requestConfig = {\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n params: urlParams,\n isPublic: true,\n };\n\n const { data } = await getAuthenticatedHttpClient()\n .get(\n `${getAppConfig().LMS_BASE_URL}/api/mfe_context`,\n requestConfig,\n )\n .catch((e) => {\n throw (e);\n });\n return {\n fieldDescriptions: data.registrationFields || {},\n optionalFields: data.optionalFields || {},\n thirdPartyAuthContext: data.contextData || {},\n };\n}\n"]}
1
+ {"version":3,"file":"getThirdPartyAuthContext.js","sourceRoot":"","sources":["../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAgB,wBAAwB,CAAC,SAAS;;QAC9D,MAAM,aAAa,GAAG;YACpB,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,0BAA0B,EAAE;aAChD,GAAG,CACF,GAAG,aAAa,EAAE,CAAC,UAAU,kBAAkB,EAC/C,aAAa,CACd;aACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;QACL,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,IAAI,EAAE;YAChD,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;YACzC,qBAAqB,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;SAC9C,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getSiteConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedHttpClient } from '@openedx/frontend-base';\n\nexport default async function getThirdPartyAuthContext(urlParams) {\n const requestConfig = {\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n params: urlParams,\n isPublic: true,\n };\n\n const { data } = await getAuthenticatedHttpClient()\n .get(\n `${getSiteConfig().lmsBaseUrl}/api/mfe_context`,\n requestConfig,\n )\n .catch((e) => {\n throw (e);\n });\n return {\n fieldDescriptions: data.registrationFields || {},\n optionalFields: data.optionalFields || {},\n thirdPartyAuthContext: data.contextData || {},\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edx/frontend-app-learner-dashboard",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",