@commercetools-frontend/application-shell 22.8.4 → 22.9.1

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 (109) hide show
  1. package/dist/{application-entry-point-626d4f27.esm.js → application-entry-point-3613e4a5.esm.js} +1 -1
  2. package/dist/{application-entry-point-799dedf0.cjs.prod.js → application-entry-point-bde45acf.cjs.prod.js} +2 -2
  3. package/dist/{application-entry-point-c81156e7.cjs.dev.js → application-entry-point-fd6f9973.cjs.dev.js} +2 -2
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +90 -68
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +90 -68
  6. package/dist/commercetools-frontend-application-shell.esm.js +43 -53
  7. package/dist/{custom-view-dev-host-ebfb1a45.esm.js → custom-view-dev-host-5ce5a507.esm.js} +17 -27
  8. package/dist/{custom-view-dev-host-67d817e6.cjs.dev.js → custom-view-dev-host-621386e0.cjs.dev.js} +18 -28
  9. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -1
  10. package/dist/declarations/src/components/quick-access/types.d.ts +1 -1
  11. package/dist/declarations/src/components/user-settings-menu/index.d.ts +1 -1
  12. package/dist/declarations/src/constants.d.ts +7 -41
  13. package/dist/declarations/src/export-types.d.ts +1 -2
  14. package/dist/declarations/src/index.d.ts +1 -5
  15. package/dist/declarations/src/types/generated/settings.d.ts +223 -29
  16. package/dist/declarations/src/utils/index.d.ts +0 -5
  17. package/dist/index-37a25e51.cjs.dev.js +232 -0
  18. package/dist/index-6cd618cc.cjs.prod.js +232 -0
  19. package/dist/index-89e5711a.esm.js +206 -0
  20. package/dist/{index-78d3ae73.cjs.prod.js → index-beeb5dbb.cjs.prod.js} +64 -195
  21. package/dist/index-c0b19086.cjs.dev.js +2081 -0
  22. package/dist/index-e6cf101e.esm.js +2019 -0
  23. package/dist/{navbar-fabab486.esm.js → navbar-1d867dcd.esm.js} +20 -29
  24. package/dist/{navbar-050867c3.cjs.dev.js → navbar-5d636a16.cjs.dev.js} +28 -37
  25. package/dist/{navbar-86da110e.cjs.prod.js → navbar-78f58680.cjs.prod.js} +28 -37
  26. package/dist/{oidc-a55e3dd9.cjs.prod.js → oidc-0c6ca06c.cjs.dev.js} +48 -7
  27. package/dist/{oidc-db881d40.esm.js → oidc-95696f7b.esm.js} +37 -2
  28. package/dist/{oidc-97f361cb.cjs.dev.js → oidc-b2ac8a92.cjs.prod.js} +48 -7
  29. package/dist/{oidc-callback-5d640fb8.cjs.prod.js → oidc-callback-27fd978b.cjs.prod.js} +22 -32
  30. package/dist/{oidc-callback-55a5150a.esm.js → oidc-callback-7e6fcaff.esm.js} +22 -32
  31. package/dist/{oidc-callback-a63daea8.cjs.dev.js → oidc-callback-9d5cdf00.cjs.dev.js} +22 -32
  32. package/dist/{project-container-d56f2529.cjs.dev.js → project-container-0ef3869c.cjs.dev.js} +26 -36
  33. package/dist/{project-container-e18774d3.esm.js → project-container-b189c7a3.esm.js} +22 -32
  34. package/dist/{project-container-031be70e.cjs.prod.js → project-container-c6fb1e4f.cjs.prod.js} +26 -36
  35. package/dist/{project-expired-901cefec.cjs.prod.js → project-expired-911e2f79.cjs.prod.js} +20 -30
  36. package/dist/{project-expired-29485ba9.esm.js → project-expired-bd4f93bc.esm.js} +20 -30
  37. package/dist/{project-expired-c3456ca0.cjs.dev.js → project-expired-e2815596.cjs.dev.js} +20 -30
  38. package/dist/{project-not-found-085ef4e5.esm.js → project-not-found-bfd9a058.esm.js} +20 -30
  39. package/dist/{project-not-found-fca07541.cjs.dev.js → project-not-found-c0f09321.cjs.dev.js} +20 -30
  40. package/dist/{project-not-found-3d256c51.cjs.prod.js → project-not-found-e5255cac.cjs.prod.js} +20 -30
  41. package/dist/{project-not-initialized-aa3ee9b9.cjs.dev.js → project-not-initialized-0ed0f209.cjs.dev.js} +20 -30
  42. package/dist/{project-not-initialized-3eab0739.cjs.prod.js → project-not-initialized-2b02f3bb.cjs.prod.js} +20 -30
  43. package/dist/{project-not-initialized-7ea0312a.esm.js → project-not-initialized-8d0cab2e.esm.js} +20 -30
  44. package/dist/{project-suspended-d2e44ebc.cjs.dev.js → project-suspended-94956aec.cjs.dev.js} +20 -30
  45. package/dist/{project-suspended-4fa9898c.esm.js → project-suspended-cee209a6.esm.js} +20 -30
  46. package/dist/{project-suspended-75fb744e.cjs.prod.js → project-suspended-cfa2eb3b.cjs.prod.js} +20 -30
  47. package/dist/{quick-access-5339bf0a.cjs.dev.js → quick-access-1b73b555.cjs.dev.js} +13 -23
  48. package/dist/{quick-access-0171b3b4.esm.js → quick-access-232ff40f.esm.js} +13 -23
  49. package/dist/{quick-access-5d1221de.cjs.prod.js → quick-access-ce774311.cjs.prod.js} +13 -23
  50. package/dist/{redirect-to-login-307caa5d.esm.js → redirect-to-login-9535ddbc.esm.js} +9 -46
  51. package/dist/{redirect-to-login-27195c81.cjs.dev.js → redirect-to-login-aa538da2.cjs.dev.js} +10 -47
  52. package/dist/{redirect-to-login-0d640e8f.cjs.prod.js → redirect-to-login-ee9f3801.cjs.prod.js} +10 -47
  53. package/dist/{redirect-to-logout-96629236.esm.js → redirect-to-logout-3a0798c1.esm.js} +21 -31
  54. package/dist/{redirect-to-logout-a70923e8.cjs.prod.js → redirect-to-logout-96e94d9d.cjs.prod.js} +21 -31
  55. package/dist/{redirect-to-logout-3a2b1fa5.cjs.dev.js → redirect-to-logout-ccdd9a48.cjs.dev.js} +21 -31
  56. package/dist/{requests-in-flight-loader-079ab400.cjs.prod.js → requests-in-flight-loader-7f4804b4.cjs.prod.js} +22 -32
  57. package/dist/{requests-in-flight-loader-6e0036d5.esm.js → requests-in-flight-loader-8333ff01.esm.js} +22 -32
  58. package/dist/{requests-in-flight-loader-958eb383.cjs.dev.js → requests-in-flight-loader-b48dcc38.cjs.dev.js} +22 -32
  59. package/dist/{service-page-project-switcher-df3d126a.cjs.prod.js → service-page-project-switcher-d656d2f0.cjs.prod.js} +1 -1
  60. package/dist/{service-page-project-switcher-b7bd8abf.esm.js → service-page-project-switcher-dd1d0479.esm.js} +1 -1
  61. package/dist/{service-page-project-switcher-c8bc7002.cjs.dev.js → service-page-project-switcher-ea2d1f5b.cjs.dev.js} +1 -1
  62. package/dist/{use-applications-menu-acb9c2a6.cjs.dev.js → use-applications-menu-10d6d71b.cjs.prod.js} +1 -2
  63. package/dist/{use-applications-menu-ab2cd8e4.esm.js → use-applications-menu-902e4f5f.esm.js} +1 -2
  64. package/dist/{use-applications-menu-f0048898.cjs.prod.js → use-applications-menu-c03f484f.cjs.dev.js} +1 -2
  65. package/dist/{user-settings-menu-fb16a654.esm.js → user-settings-menu-5841d422.esm.js} +2 -62
  66. package/dist/{user-settings-menu-70934c89.cjs.dev.js → user-settings-menu-59dbf5d2.cjs.dev.js} +3 -63
  67. package/dist/{user-settings-menu-1c4bbef3.cjs.prod.js → user-settings-menu-70751be9.cjs.prod.js} +3 -63
  68. package/dist/{version-tracker-1b7e512b.esm.js → version-tracker-8e09ba95.esm.js} +44 -16
  69. package/dist/{version-tracker-b7102920.cjs.prod.js → version-tracker-b14edb65.cjs.prod.js} +45 -17
  70. package/dist/{version-tracker-946fe271.cjs.dev.js → version-tracker-e862fb1a.cjs.dev.js} +45 -17
  71. package/package.json +18 -21
  72. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -2
  73. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -2
  74. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -2
  75. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +5 -26
  76. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +5 -26
  77. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +3 -24
  78. package/dist/configure-apollo-7220061a.cjs.dev.js +0 -821
  79. package/dist/configure-apollo-b9019f27.esm.js +0 -765
  80. package/dist/configure-apollo-c401b506.cjs.prod.js +0 -815
  81. package/dist/constants-0b9c2426.esm.js +0 -68
  82. package/dist/constants-0da1db32.cjs.prod.js +0 -78
  83. package/dist/constants-bef5a843.cjs.dev.js +0 -78
  84. package/dist/declarations/src/apollo-links/error-link.d.ts +0 -2
  85. package/dist/declarations/src/apollo-links/header-link.d.ts +0 -3
  86. package/dist/declarations/src/apollo-links/index.d.ts +0 -4
  87. package/dist/declarations/src/apollo-links/token-retry-link.d.ts +0 -3
  88. package/dist/declarations/src/apollo-links/utils.d.ts +0 -10
  89. package/dist/declarations/src/components/custom-view-loader/custom-view-loader.d.ts +0 -8
  90. package/dist/declarations/src/components/custom-view-loader/index.d.ts +0 -1
  91. package/dist/declarations/src/components/custom-view-loader/messages.d.ts +0 -7
  92. package/dist/declarations/src/configure-apollo.d.ts +0 -7
  93. package/dist/declarations/src/hooks/apollo-hooks/apollo-hooks.d.ts +0 -13
  94. package/dist/declarations/src/hooks/apollo-hooks/index.d.ts +0 -1
  95. package/dist/declarations/src/utils/apollo-client-runtime-cache.d.ts +0 -4
  96. package/dist/declarations/src/utils/apollo-context.d.ts +0 -15
  97. package/dist/declarations/src/utils/get-correlation-id/get-correlation-id.d.ts +0 -3
  98. package/dist/declarations/src/utils/get-correlation-id/index.d.ts +0 -1
  99. package/dist/declarations/src/utils/http-client.d.ts +0 -31
  100. package/dist/declarations/src/utils/logger.d.ts +0 -10
  101. package/dist/declarations/src/utils/oidc-storage.d.ts +0 -11
  102. package/dist/declarations/src/utils/select-project-key-from-url/index.d.ts +0 -1
  103. package/dist/declarations/src/utils/select-project-key-from-url/select-project-key-from-url.d.ts +0 -1
  104. package/dist/declarations/src/utils/select-team-id-from-storage/index.d.ts +0 -1
  105. package/dist/declarations/src/utils/select-team-id-from-storage/select-team-id-from-storage.d.ts +0 -1
  106. package/dist/declarations/src/utils/select-user-id/index.d.ts +0 -1
  107. package/dist/declarations/src/utils/select-user-id/select-user-id.d.ts +0 -1
  108. package/dist/index-8fa9e7c2.cjs.dev.js +0 -2225
  109. package/dist/index-cc877433.esm.js +0 -2159
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var configureApollo = require('./configure-apollo-c401b506.cjs.prod.js');
4
3
  var _pt = require('prop-types');
5
4
  var react = require('react');
6
5
  var reactRouterDom = require('react-router-dom');
6
+ var index = require('./index-6cd618cc.cjs.prod.js');
7
7
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
8
8
  var _styled = require('@emotion/styled/base');
9
9
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -20,12 +20,11 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
20
20
  var react$1 = require('@emotion/react');
21
21
  var applicationComponents = require('@commercetools-frontend/application-components');
22
22
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
23
- var constants$1 = require('@commercetools-frontend/constants');
23
+ var constants = require('@commercetools-frontend/constants');
24
24
  var i18n = require('@commercetools-frontend/i18n');
25
25
  var reactNotifications = require('@commercetools-frontend/react-notifications');
26
26
  var sentry = require('@commercetools-frontend/sentry');
27
- var constants = require('./constants-0da1db32.cjs.prod.js');
28
- require('uuid');
27
+ var oidc = require('./oidc-b2ac8a92.cjs.prod.js');
29
28
  require('@babel/runtime-corejs3/core-js-stable/url');
30
29
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
31
30
  var LogoSVG = require('@commercetools-frontend/assets/images/logo.svg');
@@ -42,7 +41,6 @@ var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instan
42
41
  var memoize = require('memoize-one');
43
42
  var AccessibleHidden = require('@commercetools-uikit/accessible-hidden');
44
43
  var SelectInput = require('@commercetools-uikit/select-input');
45
- var react$2 = require('@apollo/client/react');
46
44
  var CTLogoSVG = require('@commercetools-frontend/assets/images/ct-logo.svg');
47
45
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
48
46
  var history = require('@commercetools-frontend/browser-history');
@@ -58,6 +56,7 @@ require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
58
56
  var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
59
57
  var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries');
60
58
  var _flagsInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flags');
59
+ var react$2 = require('@apollo/client/react');
61
60
  var combineAdapters = require('@flopflip/combine-adapters');
62
61
  var httpAdapter = require('@flopflip/http-adapter');
63
62
  var ldAdapter = require('@flopflip/launchdarkly-adapter');
@@ -67,13 +66,12 @@ var types = require('@flopflip/types');
67
66
  var reactRedux = require('react-redux');
68
67
  var upperFirst = require('lodash/upperFirst');
69
68
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
70
- var oidc = require('./oidc-a55e3dd9.cjs.prod.js');
71
69
  require('@commercetools-uikit/design-system/materials/resets.css');
72
- var actionsGlobal = require('@commercetools-frontend/actions-global');
73
70
  var ssr = require('@commercetools-frontend/application-config/ssr');
74
71
  var permissions = require('@commercetools-frontend/permissions');
75
72
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
76
73
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
74
+ var actionsGlobal = require('@commercetools-frontend/actions-global');
77
75
 
78
76
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
79
77
 
@@ -114,7 +112,10 @@ var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsW
114
112
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
115
113
  var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
116
114
 
117
- const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-079ab400.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
115
+ // NOTE: This string will be replaced on build time with the package version.
116
+ var applicationShellVersion = "22.9.1";
117
+
118
+ const RequestsInFlightLoader = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./requests-in-flight-loader-7f4804b4.cjs.prod.js' /* webpackChunkName: "requests-in-flight-loader" */); }));
118
119
 
119
120
  // Attempt to load the `projectKey` from localStorage
120
121
  function selectProjectKeyFromLocalStorage() {
@@ -128,15 +129,7 @@ const getPreviousProjectKey = defaultProjectKeyOfUser => {
128
129
  return;
129
130
  };
130
131
 
131
- const createApolloContextForProxyForwardTo = proxyForwardTocontext => ({
132
- // Send the request to the forward-to endpoint.
133
- uri: "".concat(configureApollo.getMcApiUrl(), "/proxy/forward-to"),
134
- // Custom properties to be used by the "header-link".
135
- forwardToConfig: proxyForwardTocontext,
136
- skipGraphQlTargetCheck: true
137
- });
138
-
139
- var messages$2 = reactIntl.defineMessages({
132
+ var messages$1 = reactIntl.defineMessages({
140
133
  backToProjectLink: {
141
134
  id: 'AppBar.backToProjectLink',
142
135
  defaultMessage: 'Back to project'
@@ -154,7 +147,7 @@ const BackToProject = props => {
154
147
  return jsxRuntime.jsx(FlatButton__default["default"], {
155
148
  onClick: () => redirectToProject(props.projectKey || ''),
156
149
  icon: jsxRuntime.jsx(icons.AngleLeftIcon, {}),
157
- label: intl.formatMessage(messages$2.backToProjectLink)
150
+ label: intl.formatMessage(messages$1.backToProjectLink)
158
151
  });
159
152
  };
160
153
  BackToProject.displayName = 'BackToProject';
@@ -229,17 +222,7 @@ const LoadingPlaceholder = /*#__PURE__*/_styled__default["default"]("div", {
229
222
  } )("background-color:", designSystem.customProperties.colorNeutral, ";animation-name:", animationPulse, ";animation-duration:1s;animation-timing-function:ease-out;animation-delay:0;animation-direction:alternate;animation-iteration-count:infinite;width:", getWidthBySize, ";height:", getHeightBySize, ";border-radius:", getRadiusBySize, ";" + ("" ));
230
223
  LoadingPlaceholder.displayName = 'LoadingPlaceholder';
231
224
 
232
- function useMcQuery(query, options) {
233
- return react$2.useQuery(query, options);
234
- }
235
- function useMcLazyQuery(query, options) {
236
- return react$2.useLazyQuery(query, options);
237
- }
238
- function useMcMutation(mutation, options) {
239
- return react$2.useMutation(mutation, options);
240
- }
241
-
242
- var messages$1 = reactIntl.defineMessages({
225
+ var messages = reactIntl.defineMessages({
243
226
  projectsLabel: {
244
227
  id: 'ProjectSwitcher.projectsLabel',
245
228
  description: 'The label for project dropdown switcher',
@@ -322,10 +305,10 @@ const ProjectSwitcherOption = props => {
322
305
  children: project.key
323
306
  }), project.suspension && project.suspension.isActive && jsxRuntime.jsx("div", {
324
307
  css: /*#__PURE__*/react$1.css("font-size:11px;color:", designSystem.designTokens.colorError, ";" + ("" ), "" ),
325
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages$1.suspended))
308
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages.suspended))
326
309
  }), project.expiry && project.expiry.isActive && jsxRuntime.jsx("div", {
327
310
  css: /*#__PURE__*/react$1.css("font-size:11px;color:", designSystem.designTokens.colorError, ";" + ("" ), "" ),
328
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages$1.expired))
311
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages.expired))
329
312
  })]
330
313
  })
331
314
  }));
@@ -341,10 +324,10 @@ const mapProjectsToOptions = memoize__default["default"](projects => _mapInstanc
341
324
  const redirectTo = targetUrl => useIsServedByProxy.location.replace(targetUrl);
342
325
  const ProjectSwitcher = props => {
343
326
  const intl = reactIntl.useIntl();
344
- const _useMcQuery = useMcQuery(ProjectsQuery, {
327
+ const _useMcQuery = applicationShellConnectors.useMcQuery(ProjectsQuery, {
345
328
  onError: sentry.reportErrorToSentry,
346
329
  context: {
347
- target: constants$1.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
330
+ target: constants.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
348
331
  }
349
332
  }),
350
333
  loading = _useMcQuery.loading,
@@ -355,7 +338,7 @@ const ProjectSwitcher = props => {
355
338
  children: [jsxRuntime.jsx(AccessibleHidden__default["default"], {
356
339
  children: jsxRuntime.jsx("span", {
357
340
  id: PROJECT_SWITCHER_LABEL_ID,
358
- children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages$1.projectsLabel))
341
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$8({}, messages.projectsLabel))
359
342
  })
360
343
  }), jsxRuntime.jsx(SelectInput__default["default"], {
361
344
  value: props.projectKey || '',
@@ -366,7 +349,7 @@ const ProjectSwitcher = props => {
366
349
  if (selectedProjectKey !== props.projectKey) {
367
350
  var _window$app$__DEVELOP;
368
351
  if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP !== void 0 && _window$app$__DEVELOP.authorizeUrl) {
369
- configureApollo.setActiveProjectKey(selectedProjectKey);
352
+ applicationShellConnectors.oidcStorage.setActiveProjectKey(selectedProjectKey);
370
353
  }
371
354
 
372
355
  // We simply redirect to a "new" browser page, instead of using the
@@ -388,8 +371,8 @@ const ProjectSwitcher = props => {
388
371
  },
389
372
  isClearable: false,
390
373
  backspaceRemovesValue: false,
391
- placeholder: intl.formatMessage(messages$1.searchPlaceholder),
392
- noOptionsMessage: () => intl.formatMessage(messages$1.noResults)
374
+ placeholder: intl.formatMessage(messages.searchPlaceholder),
375
+ noOptionsMessage: () => intl.formatMessage(messages.noResults)
393
376
  })]
394
377
  });
395
378
  };
@@ -398,7 +381,7 @@ ProjectSwitcher.displayName = 'ProjectSwitcher';
398
381
  // eslint-disable-next-line import/prefer-default-export
399
382
  const REQUESTS_IN_FLIGHT_LOADER_DOM_ID = 'loader-for-requests-in-flight';
400
383
 
401
- const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-1c4bbef3.cjs.prod.js' /* webpackChunkName: "user-settings-menu" */); }));
384
+ const UserSettingsMenu = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./user-settings-menu-70751be9.cjs.prod.js' /* webpackChunkName: "user-settings-menu" */); }));
402
385
 
403
386
  var _ref$1 = {
404
387
  name: "36bnqj",
@@ -412,7 +395,7 @@ const AppBar = props => {
412
395
  var _props$user$defaultPr, _props$user;
413
396
  const previousProjectKey = getPreviousProjectKey((_props$user$defaultPr = (_props$user = props.user) === null || _props$user === void 0 ? void 0 : _props$user.defaultProjectKey) !== null && _props$user$defaultPr !== void 0 ? _props$user$defaultPr : undefined);
414
397
  return jsxRuntime.jsxs("div", {
415
- css: /*#__PURE__*/react$1.css("background-color:", designSystem.designTokens.colorSurface, ";box-shadow:", applicationComponents.designTokens.shadowForAppbar, ";min-height:", constants.DIMENSIONS.header, ";position:relative;width:100%;z-index:20000;display:flex;align-items:center;justify-content:space-between;" + ("" ), "" ),
398
+ css: /*#__PURE__*/react$1.css("background-color:", designSystem.designTokens.colorSurface, ";box-shadow:", applicationComponents.designTokens.shadowForAppbar, ";min-height:", oidc.DIMENSIONS.header, ";position:relative;width:100%;z-index:20000;display:flex;align-items:center;justify-content:space-between;" + ("" ), "" ),
416
399
  "data-test": "top-navigation",
417
400
  children: [jsxRuntime.jsxs(Spacings__default["default"].Inline, {
418
401
  children: [jsxRuntime.jsx("div", {
@@ -442,7 +425,7 @@ const AppBar = props => {
442
425
  scale: "m",
443
426
  alignItems: "center",
444
427
  children: [jsxRuntime.jsx("div", {
445
- id: constants.CONTAINERS.LOCALE_SWITCHER
428
+ id: oidc.CONTAINERS.LOCALE_SWITCHER
446
429
  }), (() => {
447
430
  if (!props.user) {
448
431
  return jsxRuntime.jsx(LoadingPlaceholder, {
@@ -467,7 +450,7 @@ const AppBar = props => {
467
450
  });
468
451
  })()]
469
452
  }), jsxRuntime.jsx("div", {
470
- css: /*#__PURE__*/react$1.css("border-left:1px ", designSystem.designTokens.colorNeutral90, " solid;height:", constants.DIMENSIONS.headerItemDivider, ";" + ("" ), "" )
453
+ css: /*#__PURE__*/react$1.css("border-left:1px ", designSystem.designTokens.colorNeutral90, " solid;height:", oidc.DIMENSIONS.headerItemDivider, ";" + ("" ), "" )
471
454
  }), props.user ? jsxRuntime.jsx(UserSettingsMenu, {
472
455
  language: props.user.language,
473
456
  firstName: props.user.firstName,
@@ -537,13 +520,13 @@ const ErrorApologizer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(fun
537
520
 
538
521
  var ProjectQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "projectKey" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "project" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "projectKey" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "currencies" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "initialized" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "daysLeft" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "allPermissionsForAllApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allAppliedPermissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedActionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedMenuVisibilities" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "allAppliedDataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "StoreDataFence" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "owner" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "sampleDataImportDataset" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1025, source: { body: "query FetchProject($projectKey: String) {\n project(key: $projectKey) {\n key\n version\n name\n countries\n currencies\n languages\n initialized\n expiry {\n isActive\n daysLeft\n }\n suspension {\n isActive\n reason\n }\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n allPermissionsForAllApplications {\n allAppliedPermissions {\n name\n value\n }\n allAppliedActionRights {\n group\n name\n value\n }\n allAppliedMenuVisibilities {\n name\n value\n }\n allAppliedDataFences {\n ... on StoreDataFence {\n type\n name\n value\n group\n __typename\n }\n }\n }\n owner {\n id\n name\n }\n sampleDataImportDataset\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
539
522
  const FetchProject = props => {
540
- const _useMcQuery = useMcQuery(ProjectQuery, {
523
+ const _useMcQuery = applicationShellConnectors.useMcQuery(ProjectQuery, {
541
524
  onError: sentry.reportErrorToSentry,
542
525
  variables: {
543
526
  projectKey: props.projectKey
544
527
  },
545
528
  context: {
546
- target: constants$1.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
529
+ target: constants.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
547
530
  },
548
531
  skip: props.skip === true
549
532
  }),
@@ -567,10 +550,10 @@ FetchProject.displayName = 'FetchProject';
567
550
 
568
551
  var LoggedInUserQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchLoggedInUser" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "user" }, name: { kind: "Name", value: "me" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "gravatarHash" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "language" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "numberFormat" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "timeZone" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "launchdarklyTrackingId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "launchdarklyTrackingGroup" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "launchdarklyTrackingSubgroup" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "launchdarklyTrackingTeam" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "launchdarklyTrackingTenant" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultProjectKey" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "businessRole" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "projects" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "suspension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "expiry" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "isActive" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "idTokenUserInfo" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "iss" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "sub" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "aud" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "exp" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "iat" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "additionalClaims" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 654, source: { body: "query FetchLoggedInUser {\n user: me {\n id\n email\n createdAt\n gravatarHash\n firstName\n lastName\n language\n numberFormat\n timeZone\n launchdarklyTrackingId\n launchdarklyTrackingGroup\n launchdarklyTrackingSubgroup\n launchdarklyTrackingTeam\n launchdarklyTrackingTenant\n defaultProjectKey\n businessRole\n projects {\n total\n results {\n name\n key\n suspension {\n isActive\n }\n expiry {\n isActive\n }\n }\n }\n idTokenUserInfo {\n iss\n sub\n aud\n exp\n iat\n email\n name\n additionalClaims\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
569
552
  const FetchUser = props => {
570
- const _useMcQuery = useMcQuery(LoggedInUserQuery, {
553
+ const _useMcQuery = applicationShellConnectors.useMcQuery(LoggedInUserQuery, {
571
554
  onError: sentry.reportErrorToSentry,
572
555
  context: {
573
- target: constants$1.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
556
+ target: constants.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
574
557
  }
575
558
  }),
576
559
  loading = _useMcQuery.loading,
@@ -589,9 +572,9 @@ FetchUser.propTypes = {
589
572
  };
590
573
  FetchUser.displayName = 'FetchUser';
591
574
 
592
- const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-86da110e.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
575
+ const Navbar = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./navbar-78f58680.cjs.prod.js' /* webpackChunkName: "navbar" */); }));
593
576
 
594
- const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-031be70e.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
577
+ const ProjectContainer = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./project-container-c6fb1e4f.cjs.prod.js' /* webpackChunkName: "project-container" */); }));
595
578
 
596
579
  const getSelectedDataLocaleForProject = projectLocales => {
597
580
  const cachedDataLocale = window.localStorage.getItem(constants.STORAGE_KEYS.SELECTED_DATA_LOCALE);
@@ -703,7 +686,7 @@ var pimIndexerStates = {
703
686
  NOT_INDEXED: 'NOT_INDEXED'
704
687
  };
705
688
 
706
- const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-5d1221de.cjs.prod.js' /* webpackChunkName: "quick-access" */); }));
689
+ const QuickAccess = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./quick-access-ce774311.cjs.prod.js' /* webpackChunkName: "quick-access" */); }));
707
690
 
708
691
  const QuickAccessTrigger = props => {
709
692
  const _useState = react.useState(false),
@@ -790,7 +773,7 @@ const QuickAccessTrigger = props => {
790
773
  QuickAccessTrigger.propTypes = {};
791
774
  QuickAccessTrigger.displayName = 'QuickAccessTrigger';
792
775
 
793
- const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-a70923e8.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
776
+ const RedirectToLogout = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-logout-96e94d9d.cjs.prod.js' /* webpackChunkName: "redirect-to-logout" */); }));
794
777
 
795
778
  const RedirectToProjectCreate = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-project-create-2266c427.cjs.prod.js' /* webpackChunkName: "redirect-to-project-create" */); }));
796
779
 
@@ -828,7 +811,7 @@ const getDefaultedFeatureToggles = allFeatureToggles => _reduceInstanceProperty_
828
811
  const useAllMenuFeatureToggles = () => {
829
812
  const servedByProxy = useIsServedByProxy.useIsServedByProxy();
830
813
  const mcProxyApiUrl = applicationShellConnectors.useApplicationContext(applicationContext => applicationContext.environment.mcProxyApiUrl);
831
- const _useMcQuery = useMcQuery(FetchAllMenuFeatureToggles, {
814
+ const _useMcQuery = applicationShellConnectors.useMcQuery(FetchAllMenuFeatureToggles, {
832
815
  fetchPolicy: 'cache-and-network',
833
816
  skip: !servedByProxy,
834
817
  onError: sentry.reportErrorToSentry,
@@ -912,7 +895,7 @@ const SetupFlopFlipProvider = props => {
912
895
  query: AllFeaturesQuery,
913
896
  errorPolicy: 'ignore',
914
897
  context: {
915
- target: constants$1.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
898
+ target: constants.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND
916
899
  }
917
900
  });
918
901
  return parseFlags(response.data);
@@ -940,7 +923,7 @@ const ThemeSwitcher = () => {
940
923
  });
941
924
  };
942
925
 
943
- const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-b7102920.cjs.prod.js' /* webpackChunkName: "version-tracker" */); }));
926
+ const VersionTracker = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./version-tracker-b14edb65.cjs.prod.js' /* webpackChunkName: "version-tracker" */); }));
944
927
 
945
928
  // TODO: Remove this file once the new navigation is enabled for all users
946
929
  const NewMainNavigationFlagWrapper = props => {
@@ -1006,7 +989,7 @@ const ApplicationShellAuthenticated = props => {
1006
989
  const hasUserBeenDeletedError = getHasUserBeenDeletedError(error.graphQLErrors);
1007
990
  if (hasUnauthorizedError || hasUserBeenDeletedError) {
1008
991
  let logoutReason;
1009
- if (hasUnauthorizedError) logoutReason = constants$1.LOGOUT_REASONS.UNAUTHORIZED;else if (hasUserBeenDeletedError) logoutReason = constants$1.LOGOUT_REASONS.DELETED;
992
+ if (hasUnauthorizedError) logoutReason = constants.LOGOUT_REASONS.UNAUTHORIZED;else if (hasUserBeenDeletedError) logoutReason = constants.LOGOUT_REASONS.DELETED;
1010
993
  return jsxRuntime.jsx(RedirectToLogout, {
1011
994
  reason: logoutReason
1012
995
  });
@@ -1030,7 +1013,7 @@ const ApplicationShellAuthenticated = props => {
1030
1013
  }
1031
1014
  });
1032
1015
  }
1033
- const projectKeyFromUrl = configureApollo.selectProjectKeyFromUrl(location.pathname);
1016
+ const projectKeyFromUrl = applicationShellConnectors.selectProjectKeyFromUrl(location.pathname);
1034
1017
  return jsxRuntime.jsx(applicationShellConnectors.ApplicationContextProvider, {
1035
1018
  user: user,
1036
1019
  environment: applicationEnvironment,
@@ -1062,7 +1045,7 @@ const ApplicationShellAuthenticated = props => {
1062
1045
  children: [jsxRuntime.jsx(ThemeSwitcher, {}), jsxRuntime.jsx(VersionTracker, {}), jsxRuntime.jsx(RequestsInFlightLoader, {}), jsxRuntime.jsx(sentry.SentryUserTracker, {
1063
1046
  user: user !== null && user !== void 0 ? user : undefined
1064
1047
  }), jsxRuntime.jsxs("div", {
1065
- css: /*#__PURE__*/react$1.css("height:100vh;display:grid;grid-template-rows:auto ", constants.DIMENSIONS.header, " 1fr;grid-template-columns:min-content 1fr;" + ("" ), "" ),
1048
+ css: /*#__PURE__*/react$1.css("height:100vh;display:grid;grid-template-rows:auto ", oidc.DIMENSIONS.header, " 1fr;grid-template-columns:min-content 1fr;" + ("" ), "" ),
1066
1049
  children: [jsxRuntime.jsxs("div", {
1067
1050
  ref: notificationsGlobalRef,
1068
1051
  role: "region",
@@ -1071,7 +1054,7 @@ const ApplicationShellAuthenticated = props => {
1071
1054
  children: [jsxRuntime.jsx("div", {
1072
1055
  id: "above-top-navigation"
1073
1056
  }), jsxRuntime.jsx(reactNotifications.NotificationsList, {
1074
- domain: constants$1.DOMAINS.GLOBAL
1057
+ domain: constants.DOMAINS.GLOBAL
1075
1058
  })]
1076
1059
  }), jsxRuntime.jsx(reactRouterDom.Route, {
1077
1060
  children: () => {
@@ -1164,19 +1147,19 @@ const ApplicationShellAuthenticated = props => {
1164
1147
  children: [jsxRuntime.jsx("div", {
1165
1148
  ref: notificationsPageRef,
1166
1149
  children: jsxRuntime.jsx(reactNotifications.NotificationsList, {
1167
- domain: constants$1.DOMAINS.PAGE
1150
+ domain: constants.DOMAINS.PAGE
1168
1151
  })
1169
1152
  }), jsxRuntime.jsx(reactNotifications.NotificationsList, {
1170
- domain: constants$1.DOMAINS.SIDE
1153
+ domain: constants.DOMAINS.SIDE
1171
1154
  }), jsxRuntime.jsxs("div", {
1172
1155
  css: _ref,
1173
1156
  children: [jsxRuntime.jsx(applicationComponents.PortalsContainer
1174
1157
  // @ts-ignore
1175
1158
  , {
1176
1159
  ref: layoutRefs,
1177
- offsetTop: constants.DIMENSIONS.header,
1178
- offsetLeft: projectKeyFromUrl ? isNewNavigationEnabled ? constants.DIMENSIONS.newNavMenu : constants.DIMENSIONS.navMenu : '0px',
1179
- offsetLeftOnExpandedMenu: projectKeyFromUrl ? isNewNavigationEnabled ? constants.DIMENSIONS.newNavMenuExpanded : constants.DIMENSIONS.navMenuExpanded : '0px'
1160
+ offsetTop: oidc.DIMENSIONS.header,
1161
+ offsetLeft: projectKeyFromUrl ? isNewNavigationEnabled ? oidc.DIMENSIONS.newNavMenu : oidc.DIMENSIONS.navMenu : '0px',
1162
+ offsetLeftOnExpandedMenu: projectKeyFromUrl ? isNewNavigationEnabled ? oidc.DIMENSIONS.newNavMenuExpanded : oidc.DIMENSIONS.navMenuExpanded : '0px'
1180
1163
  }), jsxRuntime.jsxs(reactRouterDom.Switch, {
1181
1164
  children: [jsxRuntime.jsx(reactRouterDom.Redirect, {
1182
1165
  from: "/profile",
@@ -1195,7 +1178,7 @@ const ApplicationShellAuthenticated = props => {
1195
1178
  */
1196
1179
  props.render ? jsxRuntime.jsx(jsxRuntime.Fragment, {
1197
1180
  children: props.render()
1198
- }) : jsxRuntime.jsx(configureApollo.RouteCatchAll, {})
1181
+ }) : jsxRuntime.jsx(index.RouteCatchAll, {})
1199
1182
  }), jsxRuntime.jsx(reactRouterDom.Route, {
1200
1183
  exact: true,
1201
1184
  path: "/",
@@ -1300,9 +1283,9 @@ const AmILoggedIn = props => {
1300
1283
  // a valid access token. If we get an error, we assume that the user is not
1301
1284
  // authenticated. If we don't get any error, the access token sent with the cookie
1302
1285
  // is valid. We return null while the query is loading.
1303
- const _useMcQuery = useMcQuery(AmILoggedInQuery, {
1286
+ const _useMcQuery = applicationShellConnectors.useMcQuery(AmILoggedInQuery, {
1304
1287
  context: {
1305
- target: constants$1.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND,
1288
+ target: constants.GRAPHQL_TARGETS.MERCHANT_CENTER_BACKEND,
1306
1289
  skipTokenRetry: true
1307
1290
  },
1308
1291
  // NOTE: With `no-cache` the `useQuery` will not trigger a
@@ -1361,14 +1344,14 @@ AmILoggedIn.displayName = 'AmILoggedIn';
1361
1344
 
1362
1345
  const withoutProjectKeyClaim = scope => {
1363
1346
  var _context;
1364
- return _filterInstanceProperty__default["default"](_context = scope.split(' ')).call(_context, claim => !_startsWithInstanceProperty__default["default"](claim).call(claim, constants.OIDC_CLAIMS.PROJECT_KEY)).join(' ');
1347
+ return _filterInstanceProperty__default["default"](_context = scope.split(' ')).call(_context, claim => !_startsWithInstanceProperty__default["default"](claim).call(claim, oidc.OIDC_CLAIMS.PROJECT_KEY)).join(' ');
1365
1348
  };
1366
1349
  const hasCachedAuthenticationState = () => {
1367
1350
  var _window$app$__DEVELOP;
1368
1351
  if ((_window$app$__DEVELOP = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP !== void 0 && (_window$app$__DEVELOP = _window$app$__DEVELOP.oidc) !== null && _window$app$__DEVELOP !== void 0 && _window$app$__DEVELOP.authorizeUrl) {
1369
1352
  try {
1370
1353
  var _window$app$__DEVELOP5, _window$app$__DEVELOP6, _window$app$__DEVELOP7, _window$app$__DEVELOP8;
1371
- const activeProjectKey = configureApollo.getActiveProjectKey();
1354
+ const activeProjectKey = applicationShellConnectors.oidcStorage.getActiveProjectKey();
1372
1355
  if (activeProjectKey) {
1373
1356
  var _window$app$__DEVELOP2;
1374
1357
  // GIVEN The application is not requesting a project key,
@@ -1377,7 +1360,7 @@ const hasCachedAuthenticationState = () => {
1377
1360
  // THEN we remove the cached project key.
1378
1361
  // This is the case of an application like `account`.
1379
1362
  if (!((_window$app$__DEVELOP2 = window.app.__DEVELOPMENT__) !== null && _window$app$__DEVELOP2 !== void 0 && (_window$app$__DEVELOP2 = _window$app$__DEVELOP2.oidc) !== null && _window$app$__DEVELOP2 !== void 0 && _window$app$__DEVELOP2.initialProjectKey)) {
1380
- configureApollo.removeActiveProjectKey();
1363
+ applicationShellConnectors.oidcStorage.removeActiveProjectKey();
1381
1364
  }
1382
1365
  } else {
1383
1366
  var _window$app$__DEVELOP3;
@@ -1385,7 +1368,7 @@ const hasCachedAuthenticationState = () => {
1385
1368
  var _window$app$__DEVELOP4;
1386
1369
  // Here we store the initial project key in local storage,
1387
1370
  // so that it gets picked up when we initiate the login flow.
1388
- configureApollo.setActiveProjectKey((_window$app$__DEVELOP4 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP4 === void 0 || (_window$app$__DEVELOP4 = _window$app$__DEVELOP4.oidc) === null || _window$app$__DEVELOP4 === void 0 ? void 0 : _window$app$__DEVELOP4.initialProjectKey);
1371
+ applicationShellConnectors.oidcStorage.setActiveProjectKey((_window$app$__DEVELOP4 = window.app.__DEVELOPMENT__) === null || _window$app$__DEVELOP4 === void 0 || (_window$app$__DEVELOP4 = _window$app$__DEVELOP4.oidc) === null || _window$app$__DEVELOP4 === void 0 ? void 0 : _window$app$__DEVELOP4.initialProjectKey);
1389
1372
  }
1390
1373
  }
1391
1374
 
@@ -1393,7 +1376,7 @@ const hasCachedAuthenticationState = () => {
1393
1376
  // if they don't match, then we know that one of the claims within the scope has changed
1394
1377
  // given a change, we need to force the user to log in, so that new values on respective claim
1395
1378
  // will apply for the given custom application
1396
- const cachedScope = configureApollo.getSessionScope();
1379
+ const cachedScope = applicationShellConnectors.oidcStorage.getSessionScope();
1397
1380
  // Force the user to log in again
1398
1381
  if (!cachedScope) {
1399
1382
  return false;
@@ -1422,7 +1405,7 @@ const hasCachedAuthenticationState = () => {
1422
1405
  return window.localStorage.getItem(constants.STORAGE_KEYS.IS_AUTHENTICATED) === 'true';
1423
1406
  };
1424
1407
 
1425
- const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-5d640fb8.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
1408
+ const OidcCallback = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./oidc-callback-27fd978b.cjs.prod.js' /* webpackChunkName: "oidc-callback" */); }));
1426
1409
 
1427
1410
  function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1428
1411
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1519,10 +1502,10 @@ const useCoercedEnvironmentValues = environment => {
1519
1502
  const ApplicationShellProvider = props => {
1520
1503
  const apolloClient = react.useMemo(() => {
1521
1504
  var _props$apolloClient;
1522
- return (_props$apolloClient = props.apolloClient) !== null && _props$apolloClient !== void 0 ? _props$apolloClient : configureApollo.createApolloClient();
1505
+ return (_props$apolloClient = props.apolloClient) !== null && _props$apolloClient !== void 0 ? _props$apolloClient : applicationShellConnectors.createApolloClient();
1523
1506
  }, [props.apolloClient]);
1524
1507
  react.useEffect(() => {
1525
- configureApollo.setCachedApolloClient(apolloClient);
1508
+ applicationShellConnectors.setCachedApolloClient(apolloClient);
1526
1509
  }, [apolloClient]);
1527
1510
  const coercedEnvironmentValues = useCoercedEnvironmentValues(props.environment);
1528
1511
  const browserLocale = getBrowserLocale(window);
@@ -1532,7 +1515,7 @@ const ApplicationShellProvider = props => {
1532
1515
  children: jsxRuntime.jsx(applicationShellConnectors.ApplicationContextProvider, {
1533
1516
  environment: coercedEnvironmentValues,
1534
1517
  children: jsxRuntime.jsx(reactRedux.Provider, {
1535
- store: configureApollo.internalReduxStore,
1518
+ store: index.internalReduxStore,
1536
1519
  children: jsxRuntime.jsx(react$2.ApolloProvider, {
1537
1520
  client: apolloClient,
1538
1521
  children: jsxRuntime.jsxs(reactRouterDom.Router, {
@@ -1572,7 +1555,7 @@ const ApplicationShellProvider = props => {
1572
1555
  ApplicationShellProvider.propTypes = {};
1573
1556
  ApplicationShellProvider.displayName = 'ApplicationShellProvider';
1574
1557
 
1575
- const RedirectToLogin = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-login-0d640e8f.cjs.prod.js' /* webpackChunkName: "redirect-to-login" */); }));
1558
+ const RedirectToLogin = /*#__PURE__*/react.lazy(() => Promise.resolve().then(function () { return require('./redirect-to-login-ee9f3801.cjs.prod.js' /* webpackChunkName: "redirect-to-login" */); }));
1576
1559
 
1577
1560
  const styles = {
1578
1561
  name: "1prreal",
@@ -1586,7 +1569,7 @@ const ApplicationShell = props => {
1586
1569
  react.useEffect(() => {
1587
1570
  var _props$onRegisterErro;
1588
1571
  (_props$onRegisterErro = props.onRegisterErrorListeners) === null || _props$onRegisterErro === void 0 || _props$onRegisterErro.call(props, {
1589
- dispatch: configureApollo.internalReduxStore.dispatch
1572
+ dispatch: index.internalReduxStore.dispatch
1590
1573
  });
1591
1574
  // eslint-disable-next-line react-hooks/exhaustive-deps
1592
1575
  }, []); // <-- run only once, when component mounts
@@ -1623,117 +1606,7 @@ const ApplicationShell = props => {
1623
1606
  };
1624
1607
  ApplicationShell.propTypes = {};
1625
1608
  ApplicationShell.displayName = 'ApplicationShell';
1626
- ApplicationShell.version = configureApollo.applicationShellVersion;
1627
-
1628
- const messages = reactIntl.defineMessages({
1629
- loadError: {
1630
- id: 'CustomViewLoader.error.load',
1631
- defaultMessage: 'We could not load the Custom View. Please contact your administrator to check its configuration.'
1632
- }
1633
- });
1634
-
1635
- const isIframeReady = iFrameElementRef => {
1636
- try {
1637
- var _iFrameElementRef$con;
1638
- return (iFrameElementRef === null || iFrameElementRef === void 0 || (_iFrameElementRef$con = iFrameElementRef.contentWindow) === null || _iFrameElementRef$con === void 0 ? void 0 : _iFrameElementRef$con.document.readyState) === 'complete';
1639
- } catch {
1640
- // Trying to access the contentWindow of a cross-origin iFrame will throw an error.
1641
- // We are not supposed to even get here because the iFrame must use
1642
- // a URL from our very same domain (the custom view is proxied through our http-proxy service).
1643
- return false;
1644
- }
1645
- };
1646
- const CustomPanelIframe = /*#__PURE__*/_styled__default["default"]("iframe", {
1647
- target: "e1e3x9i10"
1648
- } )({
1649
- name: "174lt7a",
1650
- styles: "height:100%;width:100%;border:none"
1651
- } );
1652
- function CustomViewLoader(props) {
1653
- var _props$customView$typ;
1654
- const iFrameElementRef = react.useRef(null);
1655
- const dataLocale = applicationShellConnectors.useApplicationContext(context => context.dataLocale);
1656
- const projectKey = applicationShellConnectors.useApplicationContext(context => {
1657
- var _context$project;
1658
- return (_context$project = context.project) === null || _context$project === void 0 ? void 0 : _context$project.key;
1659
- });
1660
- const iFrameCommunicationChannel = react.useRef(new MessageChannel());
1661
- const showNotification = actionsGlobal.useShowNotification();
1662
- const intl = reactIntl.useIntl();
1663
- const messageFromIFrameHandler = react.useCallback(event => {
1664
- if (event.data.origin === window.location.origin) {
1665
- console.log('message received from iframe port: ', event);
1666
- }
1667
- }, []);
1668
-
1669
- // onLoad handler is called from the iFrame even where the URL is not valid
1670
- // (blocked by CORS, 404, etc.) so we need to make sure the iFrame is ready
1671
- const onLoadSuccessHandler = react.useCallback(() => {
1672
- var _iFrameElementRef$cur, _context;
1673
- // Show error and block if the iFrame is not ready
1674
- // (error loading it)
1675
- if (!isIframeReady(iFrameElementRef.current)) {
1676
- showNotification({
1677
- domain: constants$1.DOMAINS.PAGE,
1678
- kind: constants$1.NOTIFICATION_KINDS_PAGE.error,
1679
- text: intl.formatMessage(messages.loadError)
1680
- });
1681
- return;
1682
- }
1683
-
1684
- // Listen for messages from the iFrame
1685
- iFrameCommunicationChannel.current.port1.onmessage = messageFromIFrameHandler;
1686
-
1687
- // Transfer port2 to the iFrame so it can send messages back privately
1688
- (_iFrameElementRef$cur = iFrameElementRef.current) === null || _iFrameElementRef$cur === void 0 || (_iFrameElementRef$cur = _iFrameElementRef$cur.contentWindow) === null || _iFrameElementRef$cur === void 0 || _iFrameElementRef$cur.postMessage(constants$1.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_BOOTSTRAP, window.location.href, [iFrameCommunicationChannel.current.port2]);
1689
-
1690
- // Send the initialization message to the iFrame
1691
- iFrameCommunicationChannel.current.port1.postMessage({
1692
- source: constants$1.CUSTOM_VIEWS_EVENTS_META.SOURCE,
1693
- destination: _concatInstanceProperty__default["default"](_context = "".concat(constants$1.CUSTOM_VIEWS_EVENTS_META.DESTINATION_PREFIX)).call(_context, props.customView.id),
1694
- eventName: constants$1.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_INITIALIZATION,
1695
- eventData: {
1696
- context: {
1697
- dataLocale,
1698
- projectKey,
1699
- customViewConfig: props.customView,
1700
- hostUrl: props.hostUrl || window.location.href
1701
- }
1702
- }
1703
- });
1704
-
1705
- // We want the effect to run only once so we don't need the dependencies array.
1706
- // eslint-disable-next-line react-hooks/exhaustive-deps
1707
- }, []);
1708
- react.useEffect(() => {
1709
- // Close the channel when the component unmounts
1710
- return () => {
1711
- var _iFrameCommunicationC;
1712
- (_iFrameCommunicationC = iFrameCommunicationChannel.current) === null || _iFrameCommunicationC === void 0 || _iFrameCommunicationC.port1.close();
1713
- };
1714
- }, []);
1715
-
1716
- // Currently we only support custom panels
1717
- if (props.customView.type !== 'CustomPanel') {
1718
- sentry.reportErrorToSentry(new Error("CustomViewLoader: Provided Custom View has an unsupported type: ".concat(props.customView.type, ". Supported types: ['CustomPanel'].")));
1719
- return null;
1720
- }
1721
- const panelSize = ((_props$customView$typ = props.customView.typeSettings) === null || _props$customView$typ === void 0 || (_props$customView$typ = _props$customView$typ.size) === null || _props$customView$typ === void 0 ? void 0 : _props$customView$typ.toLocaleLowerCase()) || 'large';
1722
- const iFrameUrl = [window.location.origin, 'custom-views', props.customView.id, 'projects', projectKey].join('/');
1723
- return jsxRuntime.jsx(applicationComponents.CustomPanel, {
1724
- title: "Custom View: ".concat(props.customView.defaultLabel),
1725
- onClose: props.onClose,
1726
- size: panelSize,
1727
- children: jsxRuntime.jsx(CustomPanelIframe, {
1728
- id: "custom-view-".concat(props.customView.id),
1729
- title: "Custom View: ".concat(props.customView.defaultLabel),
1730
- ref: iFrameElementRef,
1731
- src: iFrameUrl,
1732
- onLoad: onLoadSuccessHandler
1733
- }, "custom-view-".concat(props.customView.id))
1734
- });
1735
- }
1736
- CustomViewLoader.propTypes = {};
1609
+ ApplicationShell.version = applicationShellVersion;
1737
1610
 
1738
1611
  function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1739
1612
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
@@ -1823,7 +1696,7 @@ function CustomViewShell(props) {
1823
1696
  setHostContext = _useState2[1];
1824
1697
  const iFrameCommunicationPort = react.useRef();
1825
1698
  const hostMessageHandler = react.useCallback(event => {
1826
- if (event.data.eventName === constants$1.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_INITIALIZATION) {
1699
+ if (event.data.eventName === constants.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_INITIALIZATION) {
1827
1700
  setHostContext(event.data.eventData.context);
1828
1701
  } else {
1829
1702
  console.warn("CustomViewShell: Unknown received event with name: ".concat(event.data.eventName), {
@@ -1835,7 +1708,7 @@ function CustomViewShell(props) {
1835
1708
  const bootstrapMessageHandler = event => {
1836
1709
  if ((event.origin === window.location.origin ||
1837
1710
  // event.origin is not defined in test environment
1838
- "production" === 'test') && event.data === constants$1.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_BOOTSTRAP) {
1711
+ "production" === 'test') && event.data === constants.CUSTOM_VIEWS_EVENTS_NAMES.CUSTOM_VIEW_BOOTSTRAP) {
1839
1712
  iFrameCommunicationPort.current = event.ports[0];
1840
1713
  iFrameCommunicationPort.current.onmessage = hostMessageHandler;
1841
1714
  // Once bootstraped, we don't want to listen for global messages anymore.
@@ -1979,7 +1852,7 @@ function setupGlobalErrorListener() {
1979
1852
  window.addEventListener('unhandledrejection', event => {
1980
1853
  if (shouldErrorBeTracked(event)) {
1981
1854
  const errorId = sentry.reportErrorToSentry(event);
1982
- configureApollo.internalReduxStore.dispatch(actionsGlobal.showUnexpectedErrorNotification({
1855
+ index.internalReduxStore.dispatch(actionsGlobal.showUnexpectedErrorNotification({
1983
1856
  errorId
1984
1857
  }));
1985
1858
  }
@@ -1989,7 +1862,7 @@ function setupGlobalErrorListener() {
1989
1862
  window.addEventListener('error', errorEvent => {
1990
1863
  if (shouldErrorBeTracked(errorEvent)) {
1991
1864
  const errorId = sentry.reportErrorToSentry(errorEvent);
1992
- configureApollo.internalReduxStore.dispatch(actionsGlobal.showUnexpectedErrorNotification({
1865
+ index.internalReduxStore.dispatch(actionsGlobal.showUnexpectedErrorNotification({
1993
1866
  errorId
1994
1867
  }));
1995
1868
  }
@@ -2043,7 +1916,6 @@ exports.ApplicationShell = ApplicationShell;
2043
1916
  exports.ApplicationShellProvider = ApplicationShellProvider;
2044
1917
  exports.ButlerContainer = ButlerContainer;
2045
1918
  exports.ConfigureIntlProvider = ConfigureIntlProvider;
2046
- exports.CustomViewLoader = CustomViewLoader;
2047
1919
  exports.CustomViewShellWrapper = CustomViewShellWrapper;
2048
1920
  exports.ErrorBoundary = ErrorBoundary;
2049
1921
  exports.FetchProject = FetchProject;
@@ -2056,10 +1928,7 @@ exports.RedirectToLogin = RedirectToLogin;
2056
1928
  exports.RedirectToProjectCreate = RedirectToProjectCreate;
2057
1929
  exports.SetupFlopFlipProvider = SetupFlopFlipProvider;
2058
1930
  exports.SuspendedRoute = SuspendedRoute;
2059
- exports.createApolloContextForProxyForwardTo = createApolloContextForProxyForwardTo;
1931
+ exports.applicationShellVersion = applicationShellVersion;
2060
1932
  exports.pimIndexerStates = pimIndexerStates;
2061
1933
  exports.setupGlobalErrorListener = setupGlobalErrorListener;
2062
- exports.useMcLazyQuery = useMcLazyQuery;
2063
- exports.useMcMutation = useMcMutation;
2064
- exports.useMcQuery = useMcQuery;
2065
1934
  exports.useRoutesCreator = useRoutesCreator;