@commercetools-frontend/application-shell 22.30.3 → 22.32.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 (96) hide show
  1. package/dist/{application-entry-point-2365588d.esm.js → application-entry-point-44f059a0.esm.js} +3 -3
  2. package/dist/{application-entry-point-257a1cbc.cjs.prod.js → application-entry-point-654951a6.cjs.prod.js} +2 -2
  3. package/dist/{application-entry-point-a403a123.cjs.dev.js → application-entry-point-c2f77f23.cjs.dev.js} +3 -3
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +11 -5
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +11 -5
  6. package/dist/commercetools-frontend-application-shell.esm.js +5 -5
  7. package/dist/{custom-view-dev-host-4e28e0f9.cjs.prod.js → custom-view-dev-host-50d585ab.cjs.prod.js} +12 -16
  8. package/dist/{custom-view-dev-host-e57a61c2.esm.js → custom-view-dev-host-8c058d60.esm.js} +12 -15
  9. package/dist/{custom-view-dev-host-2cc66e5d.cjs.dev.js → custom-view-dev-host-d7d6a676.cjs.dev.js} +12 -16
  10. package/dist/declarations/src/components/application-page-title/application-page-title.d.ts +16 -0
  11. package/dist/declarations/src/components/application-shell/application-shell.d.ts +17 -0
  12. package/dist/declarations/src/components/application-shell-authenticated/application-shell-authenticated.d.ts +4 -0
  13. package/dist/declarations/src/components/navbar/menu-items.d.ts +1 -0
  14. package/dist/declarations/src/components/navbar/menu-items.styles.d.ts +5 -1
  15. package/dist/declarations/src/components/navbar/navbar.d.ts +4 -0
  16. package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +6 -0
  17. package/dist/declarations/src/components/workspaces-navigation-button/index.d.ts +1 -0
  18. package/dist/declarations/src/components/workspaces-navigation-button/messages.d.ts +8 -0
  19. package/dist/declarations/src/components/workspaces-navigation-button/workspaces-navigation-button.d.ts +3 -0
  20. package/dist/declarations/src/configure-store.d.ts +3 -0
  21. package/dist/declarations/src/hooks/use-routes-creator/use-routes-creator.d.ts +3 -0
  22. package/dist/declarations/src/index.d.ts +16 -1
  23. package/dist/declarations/src/types/generated/ctp.d.ts +562 -0
  24. package/dist/declarations/src/types/generated/mc.d.ts +5 -0
  25. package/dist/declarations/src/types/generated/proxy.d.ts +3 -0
  26. package/dist/declarations/src/types/generated/settings.d.ts +22 -0
  27. package/dist/declarations/src/utils/get-mc-origin/get-mc-origin.d.ts +16 -0
  28. package/dist/{index-01054d41.esm.js → index-30d34b7f.esm.js} +185 -154
  29. package/dist/{index-986cb2e3.cjs.prod.js → index-312ee159.cjs.prod.js} +175 -144
  30. package/dist/{index-9ad54c23.cjs.dev.js → index-89389085.cjs.dev.js} +190 -153
  31. package/dist/{index-055ebc13.cjs.prod.js → index-91985d64.cjs.prod.js} +2 -2
  32. package/dist/{index-ca730730.cjs.dev.js → index-b1476d46.cjs.dev.js} +2 -2
  33. package/dist/{index-4e5248df.esm.js → index-b6081c20.esm.js} +2 -2
  34. package/dist/navbar-3b9c6b6b.esm.js +1394 -0
  35. package/dist/{navbar-ced649a9.cjs.prod.js → navbar-9da45ea7.cjs.prod.js} +172 -111
  36. package/dist/navbar-b18bb556.cjs.dev.js +1426 -0
  37. package/dist/oidc-6c6599a2.cjs.dev.js +98 -0
  38. package/dist/oidc-8275c04f.esm.js +84 -0
  39. package/dist/{oidc-callback-64f9a790.cjs.prod.js → oidc-callback-0e597d85.cjs.prod.js} +11 -12
  40. package/dist/{oidc-callback-bc478925.esm.js → oidc-callback-427bb1fe.esm.js} +11 -12
  41. package/dist/{oidc-callback-651f63e0.cjs.dev.js → oidc-callback-cb22ccb9.cjs.dev.js} +11 -12
  42. package/dist/oidc-d02d4ab8.cjs.prod.js +98 -0
  43. package/dist/{project-container-7b970853.cjs.prod.js → project-container-8ea3157d.cjs.prod.js} +14 -16
  44. package/dist/{project-container-7f10329f.cjs.dev.js → project-container-a3583d97.cjs.dev.js} +14 -16
  45. package/dist/{project-container-e9061cf4.esm.js → project-container-e40ef9d5.esm.js} +14 -16
  46. package/dist/{project-expired-7b154842.cjs.dev.js → project-expired-5fcc5f07.cjs.dev.js} +8 -8
  47. package/dist/{project-expired-1cb50976.esm.js → project-expired-d577ae18.esm.js} +8 -8
  48. package/dist/{project-expired-08aee9c1.cjs.prod.js → project-expired-dfccc21f.cjs.prod.js} +8 -8
  49. package/dist/{project-not-found-d1bc7cf2.cjs.prod.js → project-not-found-2278758f.cjs.prod.js} +7 -7
  50. package/dist/{project-not-found-1b3a3444.cjs.dev.js → project-not-found-4604d59d.cjs.dev.js} +7 -7
  51. package/dist/{project-not-found-3dc52680.esm.js → project-not-found-fd3a1f58.esm.js} +7 -7
  52. package/dist/{project-not-initialized-3ca17563.esm.js → project-not-initialized-b34c95c9.esm.js} +8 -8
  53. package/dist/{project-not-initialized-f314f99a.cjs.prod.js → project-not-initialized-cb1d4d19.cjs.prod.js} +8 -8
  54. package/dist/{project-not-initialized-72ca9efb.cjs.dev.js → project-not-initialized-d85c316d.cjs.dev.js} +8 -8
  55. package/dist/{project-suspended-944c20e8.esm.js → project-suspended-56e0ee3b.esm.js} +7 -7
  56. package/dist/{project-suspended-f767d4f0.cjs.dev.js → project-suspended-5e490e56.cjs.dev.js} +7 -7
  57. package/dist/{project-suspended-c5ae709a.cjs.prod.js → project-suspended-ec44d7fc.cjs.prod.js} +7 -7
  58. package/dist/{quick-access-ee9ef366.cjs.dev.js → quick-access-809ff4ff.cjs.dev.js} +204 -133
  59. package/dist/{quick-access-30cee256.esm.js → quick-access-a19e4dc0.esm.js} +204 -132
  60. package/dist/{quick-access-c4f74cba.cjs.prod.js → quick-access-cbb7a118.cjs.prod.js} +204 -133
  61. package/dist/{redirect-to-login-3ebce35d.cjs.dev.js → redirect-to-login-32ebe009.cjs.dev.js} +10 -13
  62. package/dist/{redirect-to-login-3c5a3f4a.cjs.prod.js → redirect-to-login-60a00442.cjs.prod.js} +10 -13
  63. package/dist/{redirect-to-login-af9860c8.esm.js → redirect-to-login-b69fb5ce.esm.js} +10 -13
  64. package/dist/{redirect-to-logout-e365ba72.cjs.prod.js → redirect-to-logout-1ffebbfe.cjs.prod.js} +9 -10
  65. package/dist/{redirect-to-logout-fff4cb7c.cjs.dev.js → redirect-to-logout-371cc9b1.cjs.dev.js} +9 -10
  66. package/dist/{redirect-to-logout-f3172701.esm.js → redirect-to-logout-7b502bb5.esm.js} +9 -10
  67. package/dist/{redirector-0a16c1d1.cjs.prod.js → redirector-01f35da8.cjs.prod.js} +3 -4
  68. package/dist/{redirector-d2fd2b5e.esm.js → redirector-76670a54.esm.js} +3 -4
  69. package/dist/{redirector-e58b9bc3.cjs.dev.js → redirector-98dfc5f0.cjs.dev.js} +3 -4
  70. package/dist/{requests-in-flight-loader-171a2177.cjs.prod.js → requests-in-flight-loader-49463178.cjs.prod.js} +7 -7
  71. package/dist/{requests-in-flight-loader-dd3f8cbb.cjs.dev.js → requests-in-flight-loader-7d5f946c.cjs.dev.js} +7 -7
  72. package/dist/{requests-in-flight-loader-acb4dbaa.esm.js → requests-in-flight-loader-e45b9001.esm.js} +7 -7
  73. package/dist/{service-page-project-switcher-6c523761.cjs.dev.js → service-page-project-switcher-679fa3be.cjs.dev.js} +1 -1
  74. package/dist/{service-page-project-switcher-65755fa9.esm.js → service-page-project-switcher-9bebaaa0.esm.js} +1 -1
  75. package/dist/{service-page-project-switcher-2b3f4d1d.cjs.prod.js → service-page-project-switcher-d3bc9ef6.cjs.prod.js} +1 -1
  76. package/dist/{use-applications-menu-2fe3d465.cjs.dev.js → use-applications-menu-222b9106.cjs.prod.js} +40 -49
  77. package/dist/{use-applications-menu-0d3f4ffc.cjs.prod.js → use-applications-menu-302a0ac8.cjs.dev.js} +40 -49
  78. package/dist/{use-applications-menu-03759eab.esm.js → use-applications-menu-b583e9c3.esm.js} +38 -46
  79. package/dist/{user-settings-menu-bbc43c88.cjs.dev.js → user-settings-menu-7c17f227.cjs.dev.js} +22 -29
  80. package/dist/{user-settings-menu-3f86267c.cjs.prod.js → user-settings-menu-8bba9f50.cjs.prod.js} +22 -29
  81. package/dist/{user-settings-menu-36bea559.esm.js → user-settings-menu-ff4a6c63.esm.js} +22 -29
  82. package/dist/{version-tracker-2ce61357.esm.js → version-tracker-58df65c0.esm.js} +6 -6
  83. package/dist/{version-tracker-ab883166.cjs.dev.js → version-tracker-66d5d210.cjs.dev.js} +6 -6
  84. package/dist/{version-tracker-b049fca7.cjs.prod.js → version-tracker-a984dbbe.cjs.prod.js} +6 -6
  85. package/package.json +17 -16
  86. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +1 -2
  87. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +1 -2
  88. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +1 -2
  89. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +21 -26
  90. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +21 -26
  91. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +16 -20
  92. package/dist/navbar-e3ee2a76.esm.js +0 -1325
  93. package/dist/navbar-f981de75.cjs.dev.js +0 -1358
  94. package/dist/oidc-63e926e1.cjs.dev.js +0 -115
  95. package/dist/oidc-cfa56c46.cjs.prod.js +0 -115
  96. package/dist/oidc-ff53dfd3.esm.js +0 -100
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var _taggedTemplateLiteral = require('@babel/runtime-corejs3/helpers/taggedTemplateLiteral');
4
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
5
4
  require('prop-types');
6
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
7
6
  var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
8
7
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
9
- var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
10
8
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
11
9
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
12
10
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
@@ -40,11 +38,11 @@ var designSystem = require('@commercetools-uikit/design-system');
40
38
  var icons = require('@commercetools-uikit/icons');
41
39
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
42
40
  var jsxRuntime = require('@emotion/react/jsx-runtime');
43
- var dist_commercetoolsFrontendApplicationShell = require('./index-986cb2e3.cjs.prod.js');
41
+ var dist_commercetoolsFrontendApplicationShell = require('./index-312ee159.cjs.prod.js');
44
42
  var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
45
43
  var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
46
44
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
47
- require('./index-055ebc13.cjs.prod.js');
45
+ require('./index-91985d64.cjs.prod.js');
48
46
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
49
47
  require('@babel/runtime-corejs3/core-js-stable/reflect/has');
50
48
  require('@reduxjs/toolkit');
@@ -59,7 +57,7 @@ require('redux-logger');
59
57
  require('@emotion/styled/base');
60
58
  require('@commercetools-frontend/application-components');
61
59
  require('@commercetools-frontend/i18n');
62
- require('./oidc-cfa56c46.cjs.prod.js');
60
+ require('./oidc-d02d4ab8.cjs.prod.js');
63
61
  require('@babel/runtime-corejs3/core-js-stable/url');
64
62
  require('@commercetools-uikit/spacings');
65
63
  require('@commercetools-uikit/flat-button');
@@ -69,6 +67,8 @@ require('react-select');
69
67
  require('@commercetools-uikit/accessible-hidden');
70
68
  require('@commercetools-uikit/select-input');
71
69
  require('@commercetools-uikit/text');
70
+ require('@commercetools-uikit/secondary-button');
71
+ require('@commercetools-uikit/tooltip');
72
72
  require('@commercetools-frontend/assets/images/ct-logo.svg');
73
73
  require('@commercetools-frontend/browser-history');
74
74
  require('@commercetools-frontend/l10n');
@@ -97,7 +97,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
97
97
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
98
98
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
99
99
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
100
- var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
101
100
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
102
101
  var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
103
102
  var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
@@ -127,26 +126,26 @@ var _ref2 = {
127
126
  name: "lhzw0z",
128
127
  styles: "flex:1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
129
128
  } ;
130
- const ButlerCommand = props => {
131
- var _context;
132
- return jsxRuntime.jsxs("div", {
133
- "data-testid": "quick-access-result(".concat(props.command.id, ")"),
134
- "aria-current": props.isSelected === true ? 'true' : 'false',
135
- css: /*#__PURE__*/react.css("display:flex;padding:0 ", designSystem.customProperties.spacingM, ";height:36px;font-size:16px;font-weight:200;line-height:36px;cursor:default;", props.isSelected === true ? _concatInstanceProperty__default["default"](_context = "\n background: ".concat(designSystem.customProperties.colorAccent, ";\n color: ")).call(_context, designSystem.customProperties.colorSurface, ";\n ") : '', ";" + ("" ), "" ),
136
- onMouseEnter: props.onMouseEnter,
137
- onClick: props.onClick,
138
- children: [jsxRuntime.jsx("div", {
139
- css: _ref2,
140
- children: props.command.text
141
- }), (_Array$isArray__default["default"](props.command.subCommands) && props.command.subCommands.length > 0 || typeof props.command.subCommands === 'function') && jsxRuntime.jsx("div", {
142
- css: _ref$1,
143
- children: jsxRuntime.jsx(icons.AngleThinRightIcon, {
144
- size: "medium",
145
- color: props.isSelected ? 'surface' : 'neutral60'
146
- })
147
- })]
148
- }, props.command.id);
149
- };
129
+ const ButlerCommand = props => jsxRuntime.jsxs("div", {
130
+ "data-testid": `quick-access-result(${props.command.id})`,
131
+ "aria-current": props.isSelected === true ? 'true' : 'false',
132
+ css: /*#__PURE__*/react.css("display:flex;padding:0 ", designSystem.customProperties.spacingM, ";height:36px;font-size:16px;font-weight:200;line-height:36px;cursor:default;", props.isSelected === true ? `
133
+ background: ${designSystem.customProperties.colorAccent};
134
+ color: ${designSystem.customProperties.colorSurface};
135
+ ` : '', ";" + ("" ), "" ),
136
+ onMouseEnter: props.onMouseEnter,
137
+ onClick: props.onClick,
138
+ children: [jsxRuntime.jsx("div", {
139
+ css: _ref2,
140
+ children: props.command.text
141
+ }), (_Array$isArray__default["default"](props.command.subCommands) && props.command.subCommands.length > 0 || typeof props.command.subCommands === 'function') && jsxRuntime.jsx("div", {
142
+ css: _ref$1,
143
+ children: jsxRuntime.jsx(icons.AngleThinRightIcon, {
144
+ size: "medium",
145
+ color: props.isSelected ? 'surface' : 'neutral60'
146
+ })
147
+ })]
148
+ }, props.command.id);
150
149
  ButlerCommand.propTypes = {};
151
150
  ButlerCommand.displayName = 'ButlerCommand';
152
151
 
@@ -399,7 +398,6 @@ var messages = reactIntl.defineMessages({
399
398
  }
400
399
  });
401
400
 
402
- var _templateObject$3, _templateObject2$2;
403
401
  function ownKeys(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; }
404
402
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context12, _context13; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context12 = ownKeys(Object(t), !0)).call(_context12, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context13 = ownKeys(Object(t))).call(_context13, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
405
403
  const isSelectAllCombo = event => event.key === 'a' && event.metaKey && !event.ctrlKey && !event.altKey && !event.shiftKey;
@@ -421,7 +419,24 @@ const hasNewWindowModifier = event => {
421
419
  return event.ctrlKey;
422
420
  }
423
421
  };
424
- const shakeAnimation = react.keyframes(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n from,\n to {\n transform: translate3d(0, 0, 0);\n }\n\n 14%,\n 42%,\n 70% {\n transform: translate3d(-3px, 0, 0);\n }\n\n 28%,\n 56%,\n 84% {\n transform: translate3d(3px, 0, 0);\n }\n"])));
422
+ const shakeAnimation = react.keyframes`
423
+ from,
424
+ to {
425
+ transform: translate3d(0, 0, 0);
426
+ }
427
+
428
+ 14%,
429
+ 42%,
430
+ 70% {
431
+ transform: translate3d(-3px, 0, 0);
432
+ }
433
+
434
+ 28%,
435
+ 56%,
436
+ 84% {
437
+ transform: translate3d(3px, 0, 0);
438
+ }
439
+ `;
425
440
  const initialState = {
426
441
  hasNetworkError: false,
427
442
  isLoading: false,
@@ -906,7 +921,11 @@ const ButlerWithAnimation = props => jsxRuntime.jsx(react.ClassNames, {
906
921
  children: _ref2 => {
907
922
  let css = _ref2.css;
908
923
  return jsxRuntime.jsx(Butler, _objectSpread(_objectSpread({}, props), {}, {
909
- classNameShakeAnimation: css(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n animation-duration: 0.45s;\n animation-fill-mode: both;\n animation-name: ", ";\n "])), shakeAnimation)
924
+ classNameShakeAnimation: css`
925
+ animation-duration: 0.45s;
926
+ animation-fill-mode: both;
927
+ animation-name: ${shakeAnimation};
928
+ `
910
929
  }));
911
930
  }
912
931
  });
@@ -942,7 +961,6 @@ const actionTypes = {
942
961
  go: 'go'
943
962
  };
944
963
 
945
- var _templateObject$2;
946
964
  function nonNullable(value) {
947
965
  return value !== null && value !== undefined && typeof value !== 'boolean';
948
966
  }
@@ -958,7 +976,7 @@ const createCommands = _ref => {
958
976
  keywords: ['Go to Dashboard'],
959
977
  action: {
960
978
  type: actionTypes.go,
961
- to: "/".concat(applicationContext.project.key, "/dashboard")
979
+ to: `/${applicationContext.project.key}/dashboard`
962
980
  }
963
981
  }, applicationContext.project && applicationContext.permissions && permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions) && {
964
982
  id: 'go/products',
@@ -966,35 +984,35 @@ const createCommands = _ref => {
966
984
  keywords: ['Go to Products'],
967
985
  action: {
968
986
  type: actionTypes.go,
969
- to: "/".concat(applicationContext.project.key, "/products")
987
+ to: `/${applicationContext.project.key}/products`
970
988
  },
971
989
  subCommands: _filterInstanceProperty__default["default"](_context2 = [permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions) && {
972
990
  id: 'go/products/list',
973
991
  text: intl.formatMessage(messages.openProductList),
974
992
  action: {
975
993
  type: actionTypes.go,
976
- to: "/".concat(applicationContext.project.key, "/products")
994
+ to: `/${applicationContext.project.key}/products`
977
995
  }
978
996
  }, permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions) && {
979
997
  id: 'go/products/modified',
980
998
  text: intl.formatMessage(messages.openModifiedProducts),
981
999
  action: {
982
1000
  type: actionTypes.go,
983
- to: "/".concat(applicationContext.project.key, "/products/modified")
1001
+ to: `/${applicationContext.project.key}/products/modified`
984
1002
  }
985
1003
  }, permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions) && featureToggles.pimSearch && {
986
1004
  id: 'go/products/pim-search',
987
1005
  text: intl.formatMessage(messages.openPimSearch),
988
1006
  action: {
989
1007
  type: actionTypes.go,
990
- to: "/".concat(applicationContext.project.key, "/products")
1008
+ to: `/${applicationContext.project.key}/products`
991
1009
  }
992
1010
  }, permissions$1.hasSomePermissions([permissions.ManageProducts], applicationContext.permissions) && {
993
1011
  id: 'go/products/add',
994
1012
  text: intl.formatMessage(messages.openAddProducts),
995
1013
  action: {
996
1014
  type: actionTypes.go,
997
- to: "/".concat(applicationContext.project.key, "/products/new")
1015
+ to: `/${applicationContext.project.key}/products/new`
998
1016
  }
999
1017
  }]).call(_context2, nonNullable)
1000
1018
  }, applicationContext.project && applicationContext.permissions && permissions$1.hasSomePermissions([permissions.ViewCategories], applicationContext.permissions) && {
@@ -1003,28 +1021,28 @@ const createCommands = _ref => {
1003
1021
  keywords: ['Go to Categories'],
1004
1022
  action: {
1005
1023
  type: actionTypes.go,
1006
- to: "/".concat(applicationContext.project.key, "/categories")
1024
+ to: `/${applicationContext.project.key}/categories`
1007
1025
  },
1008
1026
  subCommands: _filterInstanceProperty__default["default"](_context3 = [permissions$1.hasSomePermissions([permissions.ViewCategories], applicationContext.permissions) && {
1009
1027
  id: 'go/categories/list',
1010
1028
  text: intl.formatMessage(messages.openCategoriesList),
1011
1029
  action: {
1012
1030
  type: actionTypes.go,
1013
- to: "/".concat(applicationContext.project.key, "/categories?mode=list")
1031
+ to: `/${applicationContext.project.key}/categories?mode=list`
1014
1032
  }
1015
1033
  }, permissions$1.hasSomePermissions([permissions.ViewCategories], applicationContext.permissions) && {
1016
1034
  id: 'go/categories/search',
1017
1035
  text: intl.formatMessage(messages.openCategoriesSearch),
1018
1036
  action: {
1019
1037
  type: actionTypes.go,
1020
- to: "/".concat(applicationContext.project.key, "/categories?mode=search")
1038
+ to: `/${applicationContext.project.key}/categories?mode=search`
1021
1039
  }
1022
1040
  }, permissions$1.hasSomePermissions([permissions.ManageCategories], applicationContext.permissions) && {
1023
1041
  id: 'go/categories/add',
1024
1042
  text: intl.formatMessage(messages.openAddCategory),
1025
1043
  action: {
1026
1044
  type: actionTypes.go,
1027
- to: "/".concat(applicationContext.project.key, "/categories/new")
1045
+ to: `/${applicationContext.project.key}/categories/new`
1028
1046
  }
1029
1047
  }]).call(_context3, nonNullable)
1030
1048
  }, applicationContext.project && applicationContext.permissions && permissions$1.hasSomePermissions([permissions.ViewCustomers, permissions.ViewCustomerGroups], applicationContext.permissions) && {
@@ -1033,35 +1051,35 @@ const createCommands = _ref => {
1033
1051
  keywords: ['Go to Customers'],
1034
1052
  action: {
1035
1053
  type: actionTypes.go,
1036
- to: "/".concat(applicationContext.project.key, "/customers")
1054
+ to: `/${applicationContext.project.key}/customers`
1037
1055
  },
1038
1056
  subCommands: _filterInstanceProperty__default["default"](_context4 = [permissions$1.hasSomePermissions([permissions.ViewCustomers], applicationContext.permissions) && {
1039
1057
  id: 'go/customers/list',
1040
1058
  text: intl.formatMessage(messages.openCustomersList),
1041
1059
  action: {
1042
1060
  type: actionTypes.go,
1043
- to: "/".concat(applicationContext.project.key, "/customers")
1061
+ to: `/${applicationContext.project.key}/customers`
1044
1062
  }
1045
1063
  }, permissions$1.hasSomePermissions([permissions.ManageCustomers], applicationContext.permissions) && {
1046
1064
  id: 'go/customers/new',
1047
1065
  text: intl.formatMessage(messages.openAddCustomer),
1048
1066
  action: {
1049
1067
  type: actionTypes.go,
1050
- to: "/".concat(applicationContext.project.key, "/customers/new")
1068
+ to: `/${applicationContext.project.key}/customers/new`
1051
1069
  }
1052
1070
  }, permissions$1.hasSomePermissions([permissions.ViewCustomerGroups], applicationContext.permissions) && {
1053
1071
  id: 'go/customer/customer-groups',
1054
1072
  text: intl.formatMessage(messages.openCustomerGroupsList),
1055
1073
  action: {
1056
1074
  type: actionTypes.go,
1057
- to: "/".concat(applicationContext.project.key, "/customers/customer-groups")
1075
+ to: `/${applicationContext.project.key}/customers/customer-groups`
1058
1076
  }
1059
1077
  }, permissions$1.hasSomePermissions([permissions.ManageCustomerGroups], applicationContext.permissions) && {
1060
1078
  id: 'go/customers/customer-groups/add',
1061
1079
  text: intl.formatMessage(messages.openAddCustomerGroup),
1062
1080
  action: {
1063
1081
  type: actionTypes.go,
1064
- to: "/".concat(applicationContext.project.key, "/customers/customer-groups/new")
1082
+ to: `/${applicationContext.project.key}/customers/customer-groups/new`
1065
1083
  }
1066
1084
  }]).call(_context4, nonNullable)
1067
1085
  }, applicationContext.project && applicationContext.permissions && permissions$1.hasSomePermissions([permissions.ViewOrders], applicationContext.permissions) && {
@@ -1070,21 +1088,21 @@ const createCommands = _ref => {
1070
1088
  keywords: ['Go to Orders'],
1071
1089
  action: {
1072
1090
  type: actionTypes.go,
1073
- to: "/".concat(applicationContext.project.key, "/orders")
1091
+ to: `/${applicationContext.project.key}/orders`
1074
1092
  },
1075
1093
  subCommands: _filterInstanceProperty__default["default"](_context5 = [permissions$1.hasSomePermissions([permissions.ViewOrders], applicationContext.permissions) && {
1076
1094
  id: 'go/orders/list',
1077
1095
  text: intl.formatMessage(messages.openOrdersList),
1078
1096
  action: {
1079
1097
  type: actionTypes.go,
1080
- to: "/".concat(applicationContext.project.key, "/orders")
1098
+ to: `/${applicationContext.project.key}/orders`
1081
1099
  }
1082
1100
  }, permissions$1.hasSomePermissions([permissions.ManageOrders], applicationContext.permissions) && {
1083
1101
  id: 'go/orders/add',
1084
1102
  text: intl.formatMessage(messages.openAddOrder),
1085
1103
  action: {
1086
1104
  type: actionTypes.go,
1087
- to: "/".concat(applicationContext.project.key, "/orders/new")
1105
+ to: `/${applicationContext.project.key}/orders/new`
1088
1106
  }
1089
1107
  }]).call(_context5, nonNullable)
1090
1108
  }, applicationContext.project && applicationContext.permissions && permissions$1.hasSomePermissions([permissions.ViewDiscountCodes, permissions.ViewProductDiscounts, permissions.ViewCartDiscounts], applicationContext.permissions) && {
@@ -1093,56 +1111,56 @@ const createCommands = _ref => {
1093
1111
  keywords: ['Go to Discounts'],
1094
1112
  action: {
1095
1113
  type: actionTypes.go,
1096
- to: "/".concat(applicationContext.project.key, "/discounts")
1114
+ to: `/${applicationContext.project.key}/discounts`
1097
1115
  },
1098
1116
  subCommands: _filterInstanceProperty__default["default"](_context6 = [permissions$1.hasSomePermissions([permissions.ViewProductDiscounts], applicationContext.permissions) && {
1099
1117
  id: 'go/discounts/products/list',
1100
1118
  text: intl.formatMessage(messages.openProductDiscountsList),
1101
1119
  action: {
1102
1120
  type: actionTypes.go,
1103
- to: "/".concat(applicationContext.project.key, "/discounts/products")
1121
+ to: `/${applicationContext.project.key}/discounts/products`
1104
1122
  }
1105
1123
  }, permissions$1.hasSomePermissions([permissions.ViewCartDiscounts], applicationContext.permissions) && {
1106
1124
  id: 'go/discounts/carts/list',
1107
1125
  text: intl.formatMessage(messages.openCartDiscountsList),
1108
1126
  action: {
1109
1127
  type: actionTypes.go,
1110
- to: "/".concat(applicationContext.project.key, "/discounts/carts")
1128
+ to: `/${applicationContext.project.key}/discounts/carts`
1111
1129
  }
1112
1130
  }, permissions$1.hasSomePermissions([permissions.ViewDiscountCodes], applicationContext.permissions) && {
1113
1131
  id: 'go/discounts/codes/list',
1114
1132
  text: intl.formatMessage(messages.openDiscountCodesList),
1115
1133
  action: {
1116
1134
  type: actionTypes.go,
1117
- to: "/".concat(applicationContext.project.key, "/discounts/codes")
1135
+ to: `/${applicationContext.project.key}/discounts/codes`
1118
1136
  }
1119
1137
  }, permissions$1.hasSomePermissions([permissions.ManageProductDiscounts, permissions.ManageDiscountCodes, permissions.ManageCartDiscounts], applicationContext.permissions) && {
1120
1138
  id: 'go/discounts/add',
1121
1139
  text: intl.formatMessage(messages.openAddDiscount),
1122
1140
  action: {
1123
1141
  type: actionTypes.go,
1124
- to: "/".concat(applicationContext.project.key, "/discounts/new")
1142
+ to: `/${applicationContext.project.key}/discounts/new`
1125
1143
  },
1126
1144
  subCommands: _filterInstanceProperty__default["default"](_context7 = [permissions$1.hasSomePermissions([permissions.ManageProductDiscounts], applicationContext.permissions) && {
1127
1145
  id: 'go/discounts/product/add',
1128
1146
  text: intl.formatMessage(messages.openAddProductDiscount),
1129
1147
  action: {
1130
1148
  type: actionTypes.go,
1131
- to: "/".concat(applicationContext.project.key, "/discounts/products/new")
1149
+ to: `/${applicationContext.project.key}/discounts/products/new`
1132
1150
  }
1133
1151
  }, permissions$1.hasSomePermissions([permissions.ManageCartDiscounts], applicationContext.permissions) && {
1134
1152
  id: 'go/discounts/cart/add',
1135
1153
  text: intl.formatMessage(messages.openAddCartDiscount),
1136
1154
  action: {
1137
1155
  type: actionTypes.go,
1138
- to: "/".concat(applicationContext.project.key, "/discounts/carts/new")
1156
+ to: `/${applicationContext.project.key}/discounts/carts/new`
1139
1157
  }
1140
1158
  }, permissions$1.hasSomePermissions([permissions.ManageDiscountCodes], applicationContext.permissions) && {
1141
1159
  id: 'go/discounts/code/add',
1142
1160
  text: intl.formatMessage(messages.openAddCartDiscount),
1143
1161
  action: {
1144
1162
  type: actionTypes.go,
1145
- to: "/".concat(applicationContext.project.key, "/discounts/codes/new")
1163
+ to: `/${applicationContext.project.key}/discounts/codes/new`
1146
1164
  }
1147
1165
  }]).call(_context7, nonNullable)
1148
1166
  }]).call(_context6, nonNullable)
@@ -1152,49 +1170,49 @@ const createCommands = _ref => {
1152
1170
  keywords: ['Go to Settings'],
1153
1171
  action: {
1154
1172
  type: actionTypes.go,
1155
- to: "/".concat(applicationContext.project.key, "/settings/project")
1173
+ to: `/${applicationContext.project.key}/settings/project`
1156
1174
  },
1157
1175
  subCommands: _filterInstanceProperty__default["default"](_context8 = [permissions$1.hasSomePermissions([permissions.ViewProjectSettings, permissions.ManageProjectSettings], applicationContext.permissions) && {
1158
1176
  id: 'go/settings/project',
1159
1177
  text: intl.formatMessage(messages.openProjectSettings),
1160
1178
  action: {
1161
1179
  type: actionTypes.go,
1162
- to: "/".concat(applicationContext.project.key, "/settings/project")
1180
+ to: `/${applicationContext.project.key}/settings/project`
1163
1181
  },
1164
1182
  subCommands: _filterInstanceProperty__default["default"](_context9 = [{
1165
1183
  id: 'go/settings/project/international',
1166
1184
  text: intl.formatMessage(messages.openProjectSettingsInternationalTab),
1167
1185
  action: {
1168
1186
  type: actionTypes.go,
1169
- to: "/".concat(applicationContext.project.key, "/settings/project/international")
1187
+ to: `/${applicationContext.project.key}/settings/project/international`
1170
1188
  }
1171
1189
  }, {
1172
1190
  id: 'go/settings/project/taxes',
1173
1191
  text: intl.formatMessage(messages.openProjectSettingsTaxesTab),
1174
1192
  action: {
1175
1193
  type: actionTypes.go,
1176
- to: "/".concat(applicationContext.project.key, "/settings/project/taxes")
1194
+ to: `/${applicationContext.project.key}/settings/project/taxes`
1177
1195
  }
1178
1196
  }, {
1179
1197
  id: 'go/settings/project/shipping-methods',
1180
1198
  text: intl.formatMessage(messages.openProjectSettingsShippingMethodsTab),
1181
1199
  action: {
1182
1200
  type: actionTypes.go,
1183
- to: "/".concat(applicationContext.project.key, "/settings/project/shipping-methods")
1201
+ to: `/${applicationContext.project.key}/settings/project/shipping-methods`
1184
1202
  }
1185
1203
  }, {
1186
1204
  id: 'go/settings/project/channels',
1187
1205
  text: intl.formatMessage(messages.openProjectSettingsChannelsTab),
1188
1206
  action: {
1189
1207
  type: actionTypes.go,
1190
- to: "/".concat(applicationContext.project.key, "/settings/project/channels")
1208
+ to: `/${applicationContext.project.key}/settings/project/channels`
1191
1209
  }
1192
1210
  }, {
1193
1211
  id: 'go/settings/project/stores',
1194
1212
  text: intl.formatMessage(messages.openProjectSettingsStoresTab),
1195
1213
  action: {
1196
1214
  type: actionTypes.go,
1197
- to: "/".concat(applicationContext.project.key, "/settings/project/stores")
1215
+ to: `/${applicationContext.project.key}/settings/project/stores`
1198
1216
  }
1199
1217
  }]).call(_context9, nonNullable)
1200
1218
  }, permissions$1.hasSomePermissions([permissions.ViewProductTypes], applicationContext.permissions) && {
@@ -1202,28 +1220,28 @@ const createCommands = _ref => {
1202
1220
  text: intl.formatMessage(messages.openProductTypesSettings),
1203
1221
  action: {
1204
1222
  type: actionTypes.go,
1205
- to: "/".concat(applicationContext.project.key, "/settings/product-types")
1223
+ to: `/${applicationContext.project.key}/settings/product-types`
1206
1224
  }
1207
1225
  }, permissions$1.hasSomePermissions([permissions.ViewDeveloperSettings], applicationContext.permissions) && {
1208
1226
  id: 'go/settings/developer',
1209
1227
  text: intl.formatMessage(messages.openDeveloperSettings),
1210
1228
  action: {
1211
1229
  type: actionTypes.go,
1212
- to: "/".concat(applicationContext.project.key, "/settings/developer")
1230
+ to: `/${applicationContext.project.key}/settings/developer`
1213
1231
  },
1214
1232
  subCommands: _filterInstanceProperty__default["default"](_context10 = [permissions$1.hasSomePermissions([permissions.ViewDeveloperSettings], applicationContext.permissions) && {
1215
1233
  id: 'go/settings/developer/api-clients/list',
1216
1234
  text: intl.formatMessage(messages.openApiClientsList),
1217
1235
  action: {
1218
1236
  type: actionTypes.go,
1219
- to: "/".concat(applicationContext.project.key, "/settings/developer/api-clients")
1237
+ to: `/${applicationContext.project.key}/settings/developer/api-clients`
1220
1238
  }
1221
1239
  }, permissions$1.hasSomePermissions([permissions.ManageDeveloperSettings], applicationContext.permissions) && {
1222
1240
  id: 'go/settings/developer/api-clients/add',
1223
1241
  text: intl.formatMessage(messages.openAddApiClient),
1224
1242
  action: {
1225
1243
  type: actionTypes.go,
1226
- to: "/".concat(applicationContext.project.key, "/settings/developer/api-clients/new")
1244
+ to: `/${applicationContext.project.key}/settings/developer/api-clients/new`
1227
1245
  }
1228
1246
  }]).call(_context10, nonNullable)
1229
1247
  }, featureToggles.customApplications && permissions$1.hasSomePermissions([permissions.ManageProjectSettings], applicationContext.permissions) && {
@@ -1231,7 +1249,7 @@ const createCommands = _ref => {
1231
1249
  text: intl.formatMessage(messages.openCustomApplicationsSettings),
1232
1250
  action: {
1233
1251
  type: actionTypes.go,
1234
- to: "/".concat(applicationContext.project.key, "/settings/custom-applications")
1252
+ to: `/${applicationContext.project.key}/settings/custom-applications`
1235
1253
  }
1236
1254
  }]).call(_context8, nonNullable)
1237
1255
  }, applicationContext.project && applicationContext.project.languages && applicationContext.project.languages.length > 1 && {
@@ -1244,8 +1262,11 @@ const createCommands = _ref => {
1244
1262
  subCommands: () => {
1245
1263
  var _context11, _context12;
1246
1264
  return _Promise__default["default"].resolve(_filterInstanceProperty__default["default"](_context11 = _mapInstanceProperty__default["default"](_context12 = applicationContext.project ? applicationContext.project.languages : []).call(_context12, language => changeProjectDataLocale && {
1247
- id: "action/set-resource-language/".concat(language),
1248
- text: commonTags.oneLineTrim(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), language, language === applicationContext.dataLocale ? ' (active)' : ''),
1265
+ id: `action/set-resource-language/${language}`,
1266
+ text: commonTags.oneLineTrim`
1267
+ ${language}
1268
+ ${language === applicationContext.dataLocale ? ' (active)' : ''}
1269
+ `,
1249
1270
  action: () => {
1250
1271
  changeProjectDataLocale(language);
1251
1272
 
@@ -1272,7 +1293,7 @@ const createCommands = _ref => {
1272
1293
  keywords: ['Go to user account', 'Go to profile', 'Open profile'],
1273
1294
  action: {
1274
1295
  type: actionTypes.go,
1275
- to: "/account/profile"
1296
+ to: `/account/profile`
1276
1297
  }
1277
1298
  }, {
1278
1299
  id: 'go/privacy-policy',
@@ -1288,7 +1309,7 @@ const createCommands = _ref => {
1288
1309
  keywords: ['Sign out'],
1289
1310
  action: {
1290
1311
  type: actionTypes.go,
1291
- to: "/logout?reason=".concat(constants.LOGOUT_REASONS.USER)
1312
+ to: `/logout?reason=${constants.LOGOUT_REASONS.USER}`
1292
1313
  }
1293
1314
  }, {
1294
1315
  id: 'go/manage-projects',
@@ -1296,7 +1317,7 @@ const createCommands = _ref => {
1296
1317
  keywords: ['Go to manage projects', 'Go to projects', 'Open projects list'],
1297
1318
  action: {
1298
1319
  type: actionTypes.go,
1299
- to: "/account/projects"
1320
+ to: `/account/projects`
1300
1321
  }
1301
1322
  }, {
1302
1323
  id: 'go/manage-organizations',
@@ -1304,10 +1325,10 @@ const createCommands = _ref => {
1304
1325
  keywords: ['Go to manage organizations', 'Go to organizations', 'Open organizations list'],
1305
1326
  action: {
1306
1327
  type: actionTypes.go,
1307
- to: "/account/organizations"
1328
+ to: `/account/organizations`
1308
1329
  }
1309
1330
  }, ...(applicationContext.user ? _mapInstanceProperty__default["default"](_context13 = applicationContext.user.projects.results).call(_context13, userProject => ({
1310
- id: "go/project(".concat(userProject.key, ")"),
1331
+ id: `go/project(${userProject.key})`,
1311
1332
  text: intl.formatMessage(messages.useProject, {
1312
1333
  projectName: userProject.name
1313
1334
  }),
@@ -1315,7 +1336,7 @@ const createCommands = _ref => {
1315
1336
  action: () => {
1316
1337
  // Switching projects needs a full redirect so that
1317
1338
  // the feature flags are reloaded (and things caches get destroyed)
1318
- window.location.href = "/".concat(userProject.key);
1339
+ window.location.href = `/${userProject.key}`;
1319
1340
  }
1320
1341
  })) : [])]).call(_context, nonNullable);
1321
1342
  };
@@ -1338,10 +1359,8 @@ const loadHistoryEntries = () => {
1338
1359
  }
1339
1360
  };
1340
1361
 
1341
- var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
1342
1362
  var QuickAccessProductQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "QuickAccessProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "productId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "product" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "productId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allVariants" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "sku" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 208, source: { body: "query QuickAccessProduct($productId: String!) {\n product(id: $productId) {\n id\n masterData {\n staged {\n allVariants {\n id\n key\n sku\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
1343
1363
  const createProductVariantSubCommands = _ref => {
1344
- var _context, _context2, _context3, _context4;
1345
1364
  let intl = _ref.intl,
1346
1365
  applicationContext = _ref.applicationContext,
1347
1366
  productId = _ref.productId,
@@ -1349,32 +1368,60 @@ const createProductVariantSubCommands = _ref => {
1349
1368
  const canViewProducts = permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions);
1350
1369
  if (!canViewProducts || !applicationContext.project) return [];
1351
1370
  return [{
1352
- id: _concatInstanceProperty__default["default"](_context = "go/product(".concat(productId, ")/variant(")).call(_context, variantId, ")/attributes"),
1371
+ id: `go/product(${productId})/variant(${variantId})/attributes`,
1353
1372
  text: intl.formatMessage(messages.showProductVariantAttributes),
1354
1373
  action: {
1355
1374
  type: actionTypes.go,
1356
- to: commonTags.oneLineTrim(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n /attributes\n "])), applicationContext.project.key, productId, variantId)
1375
+ to: commonTags.oneLineTrim`
1376
+ /${applicationContext.project.key}
1377
+ /products
1378
+ /${productId}
1379
+ /variants
1380
+ /${variantId}
1381
+ /attributes
1382
+ `
1357
1383
  }
1358
1384
  }, {
1359
- id: _concatInstanceProperty__default["default"](_context2 = "go/product(".concat(productId, ")/variant")).call(_context2, variantId, "/images"),
1385
+ id: `go/product(${productId})/variant${variantId}/images`,
1360
1386
  text: intl.formatMessage(messages.showProductVariantImages),
1361
1387
  action: {
1362
1388
  type: actionTypes.go,
1363
- to: commonTags.oneLineTrim(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n /images\n "])), applicationContext.project.key, productId, variantId)
1389
+ to: commonTags.oneLineTrim`
1390
+ /${applicationContext.project.key}
1391
+ /products
1392
+ /${productId}
1393
+ /variants
1394
+ /${variantId}
1395
+ /images
1396
+ `
1364
1397
  }
1365
1398
  }, {
1366
- id: _concatInstanceProperty__default["default"](_context3 = "go/product(".concat(productId, ")/variant(")).call(_context3, variantId, ")/prices"),
1399
+ id: `go/product(${productId})/variant(${variantId})/prices`,
1367
1400
  text: intl.formatMessage(messages.showProductVariantPrices),
1368
1401
  action: {
1369
1402
  type: actionTypes.go,
1370
- to: commonTags.oneLineTrim(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n /prices\n "])), applicationContext.project.key, productId, variantId)
1403
+ to: commonTags.oneLineTrim`
1404
+ /${applicationContext.project.key}
1405
+ /products
1406
+ /${productId}
1407
+ /variants
1408
+ /${variantId}
1409
+ /prices
1410
+ `
1371
1411
  }
1372
1412
  }, {
1373
- id: _concatInstanceProperty__default["default"](_context4 = "go/product(".concat(productId, ")/variant(")).call(_context4, variantId, ")/inventory"),
1413
+ id: `go/product(${productId})/variant(${variantId})/inventory`,
1374
1414
  text: intl.formatMessage(messages.showProductVariantInventory),
1375
1415
  action: {
1376
1416
  type: actionTypes.go,
1377
- to: commonTags.oneLineTrim(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n /inventory\n "])), applicationContext.project.key, productId, variantId)
1417
+ to: commonTags.oneLineTrim`
1418
+ /${applicationContext.project.key}
1419
+ /products
1420
+ /${productId}
1421
+ /variants
1422
+ /${variantId}
1423
+ /inventory
1424
+ `
1378
1425
  }
1379
1426
  }];
1380
1427
  };
@@ -1402,25 +1449,28 @@ const createProductVariantListSubCommands = async _ref2 => {
1402
1449
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
1403
1450
  });
1404
1451
  if (data && data.product && data.product.masterData && data.product.masterData.staged && applicationContext.project) {
1405
- var _context5;
1452
+ var _context;
1406
1453
  const projectKey = applicationContext.project.key;
1407
- return _mapInstanceProperty__default["default"](_context5 = data.product.masterData.staged.allVariants).call(_context5, variant => {
1408
- var _context6;
1409
- return {
1410
- id: _concatInstanceProperty__default["default"](_context6 = "go/product(".concat(productId, ")/variant(")).call(_context6, variant.id, ")"),
1411
- text: formatVariantMessage(variant, intl),
1412
- subCommands: createProductVariantSubCommands({
1413
- intl,
1414
- applicationContext,
1415
- productId,
1416
- variantId: variant.id
1417
- }),
1418
- action: {
1419
- type: actionTypes.go,
1420
- to: commonTags.oneLineTrim(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n "])), projectKey, productId, variant.id)
1421
- }
1422
- };
1423
- });
1454
+ return _mapInstanceProperty__default["default"](_context = data.product.masterData.staged.allVariants).call(_context, variant => ({
1455
+ id: `go/product(${productId})/variant(${variant.id})`,
1456
+ text: formatVariantMessage(variant, intl),
1457
+ subCommands: createProductVariantSubCommands({
1458
+ intl,
1459
+ applicationContext,
1460
+ productId,
1461
+ variantId: variant.id
1462
+ }),
1463
+ action: {
1464
+ type: actionTypes.go,
1465
+ to: commonTags.oneLineTrim`
1466
+ /${projectKey}
1467
+ /products
1468
+ /${productId}
1469
+ /variants
1470
+ /${variant.id}
1471
+ `
1472
+ }
1473
+ }));
1424
1474
  }
1425
1475
  return [];
1426
1476
  };
@@ -1431,18 +1481,28 @@ const createProductTabsSubCommands = _ref3 => {
1431
1481
  const canViewProducts = permissions$1.hasSomePermissions([permissions.ViewProducts], applicationContext.permissions);
1432
1482
  if (!canViewProducts || !applicationContext.project) return [];
1433
1483
  return [{
1434
- id: "go/product(".concat(productId, ")/general"),
1484
+ id: `go/product(${productId})/general`,
1435
1485
  text: intl.formatMessage(messages.openProductVariantGeneral),
1436
1486
  action: {
1437
1487
  type: actionTypes.go,
1438
- to: commonTags.oneLineTrim(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /general\n "])), applicationContext.project.key, productId)
1488
+ to: commonTags.oneLineTrim`
1489
+ /${applicationContext.project.key}
1490
+ /products
1491
+ /${productId}
1492
+ /general
1493
+ `
1439
1494
  }
1440
1495
  }, {
1441
- id: "go/product(".concat(productId, ")/variants"),
1496
+ id: `go/product(${productId})/variants`,
1442
1497
  text: intl.formatMessage(messages.openProductVariantList),
1443
1498
  action: {
1444
1499
  type: actionTypes.go,
1445
- to: commonTags.oneLineTrim(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n "])), applicationContext.project.key, productId)
1500
+ to: commonTags.oneLineTrim`
1501
+ /${applicationContext.project.key}
1502
+ /products
1503
+ /${productId}
1504
+ /variants
1505
+ `
1446
1506
  },
1447
1507
  subCommands: execQuery => createProductVariantListSubCommands({
1448
1508
  intl,
@@ -1451,11 +1511,16 @@ const createProductTabsSubCommands = _ref3 => {
1451
1511
  execQuery
1452
1512
  })
1453
1513
  }, {
1454
- id: "go/product(".concat(productId, ")/search"),
1514
+ id: `go/product(${productId})/search`,
1455
1515
  text: intl.formatMessage(messages.openProductVariantSearch),
1456
1516
  action: {
1457
1517
  type: actionTypes.go,
1458
- to: commonTags.oneLineTrim(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /search\n "])), applicationContext.project.key, productId)
1518
+ to: commonTags.oneLineTrim`
1519
+ /${applicationContext.project.key}
1520
+ /products
1521
+ /${productId}
1522
+ /search
1523
+ `
1459
1524
  }
1460
1525
  }];
1461
1526
  };
@@ -1494,10 +1559,9 @@ const translate = (nameAllLocales, projectDataLocale) => {
1494
1559
  return '';
1495
1560
  };
1496
1561
 
1497
- var _templateObject, _templateObject2;
1498
1562
  var QuickAccessQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "QuickAccess" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "searchText" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "canViewProducts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "productsWhereClause" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "includeProductsByIds" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "productsByIds" }, name: { kind: "Name", value: "products" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "productsWhereClause" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "includeProductsByIds" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "Field", alias: { kind: "Name", value: "productById" }, name: { kind: "Name", value: "product" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "canViewProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }, { kind: "Field", alias: { kind: "Name", value: "productByKey" }, name: { kind: "Name", value: "product" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "canViewProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }, { kind: "Field", alias: { kind: "Name", value: "productByVariantSku" }, name: { kind: "Name", value: "product" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "sku" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "canViewProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "variant" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "sku" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sku" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }] } }] } }, { kind: "Field", alias: { kind: "Name", value: "productByVariantKey" }, name: { kind: "Name", value: "product" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "variantKey" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "canViewProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "staged" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "variant" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "key" }, value: { kind: "Variable", name: { kind: "Name", value: "searchText" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sku" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1407, source: { body: "query QuickAccess(\n $searchText: String!\n $canViewProducts: Boolean!\n $productsWhereClause: String\n $includeProductsByIds: Boolean!\n) {\n productsByIds: products(where: $productsWhereClause)\n @include(if: $includeProductsByIds) {\n results {\n id\n masterData {\n staged {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n\n productById: product(id: $searchText) @include(if: $canViewProducts) {\n id\n masterData {\n staged {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n\n productByKey: product(key: $searchText) @include(if: $canViewProducts) {\n id\n masterData {\n staged {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n\n productByVariantSku: product(sku: $searchText)\n @include(if: $canViewProducts) {\n id\n masterData {\n staged {\n nameAllLocales {\n locale\n value\n }\n variant(sku: $searchText) {\n sku\n key\n id\n }\n }\n }\n }\n\n productByVariantKey: product(variantKey: $searchText)\n @include(if: $canViewProducts) {\n id\n masterData {\n staged {\n nameAllLocales {\n locale\n value\n }\n variant(key: $searchText) {\n sku\n key\n id\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
1499
1563
  const searchProductIdsAction = (searchText, projectKey, dataLocale) => sdk.actions.post({
1500
- uri: "/".concat(projectKey, "/search/products"),
1564
+ uri: `/${projectKey}/search/products`,
1501
1565
  mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.PIM_SEARCH,
1502
1566
  payload: {
1503
1567
  query: {
@@ -1527,7 +1591,7 @@ const pimIndexerStatusAction = (projectKey, dataLocale) =>
1527
1591
  // error, so we send a regular request for now and limit to no results
1528
1592
  // instead to keep the payload minimal
1529
1593
  sdk.actions.post({
1530
- uri: "/".concat(projectKey, "/search/products"),
1594
+ uri: `/${projectKey}/search/products`,
1531
1595
  mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.PIM_SEARCH,
1532
1596
  payload: {
1533
1597
  query: {
@@ -1627,26 +1691,31 @@ const QuickAccess = props => {
1627
1691
  searchText: sanitize(searchText),
1628
1692
  // Pass conditional arguments to disable some of the queries
1629
1693
  canViewProducts,
1630
- productsWhereClause: "id in (".concat(_mapInstanceProperty__default["default"](idsOfProductsMatchingSearchText).call(idsOfProductsMatchingSearchText, id => _JSON$stringify__default["default"](id)).join(', '), ")"),
1694
+ productsWhereClause: `id in (${_mapInstanceProperty__default["default"](idsOfProductsMatchingSearchText).call(idsOfProductsMatchingSearchText, id => _JSON$stringify__default["default"](id)).join(', ')})`,
1631
1695
  includeProductsByIds: Boolean(canViewProducts && idsOfProductsMatchingSearchText.length > 0)
1632
1696
  }, {
1633
1697
  target: constants.GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
1634
1698
  });
1635
1699
  const commands = [];
1636
1700
  if (data && data.productByVariantKey && data.productByVariantKey.masterData && data.productByVariantKey.masterData.staged && data.productByVariantKey.masterData.staged.variant && applicationContext.project && applicationContext.dataLocale) {
1637
- var _context2;
1638
1701
  const productId = data.productByVariantKey.id;
1639
1702
  const variantId = data.productByVariantKey.masterData.staged.variant.id;
1640
1703
  const variantKey = data.productByVariantKey.masterData.staged.variant.key;
1641
1704
  commands.push({
1642
- id: _concatInstanceProperty__default["default"](_context2 = "go/product-variant-by-key/product(".concat(productId, "/variant(")).call(_context2, variantId, ")"),
1705
+ id: `go/product-variant-by-key/product(${productId}/variant(${variantId})`,
1643
1706
  text: intl.formatMessage(messages.showProductVariant, {
1644
1707
  variantName: translate(data.productByVariantKey.masterData.staged.nameAllLocales, applicationContext.dataLocale)
1645
1708
  }),
1646
1709
  keywords: variantKey ? [variantKey] : undefined,
1647
1710
  action: {
1648
1711
  type: actionTypes.go,
1649
- to: commonTags.oneLineTrim(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n "])), applicationContext.project.key, productId, variantId)
1712
+ to: commonTags.oneLineTrim`
1713
+ /${applicationContext.project.key}
1714
+ /products
1715
+ /${productId}
1716
+ /variants
1717
+ /${variantId}
1718
+ `
1650
1719
  },
1651
1720
  subCommands: createProductVariantSubCommands({
1652
1721
  intl,
@@ -1657,17 +1726,22 @@ const QuickAccess = props => {
1657
1726
  });
1658
1727
  }
1659
1728
  if (data && data.productByVariantSku && data.productByVariantSku.masterData && data.productByVariantSku.masterData.staged && data.productByVariantSku.masterData.staged.variant && applicationContext.project && applicationContext.dataLocale) {
1660
- var _context3;
1661
1729
  const productId = data.productByVariantSku.id;
1662
1730
  const variantId = data.productByVariantSku.masterData.staged.variant.id;
1663
1731
  commands.push({
1664
- id: _concatInstanceProperty__default["default"](_context3 = "go/product-variant-by-sku/product(".concat(productId, ")/variant(")).call(_context3, variantId, ")"),
1732
+ id: `go/product-variant-by-sku/product(${productId})/variant(${variantId})`,
1665
1733
  text: intl.formatMessage(messages.showProductVariant, {
1666
1734
  variantName: data.productByVariantSku.masterData.staged.variant.sku
1667
1735
  }),
1668
1736
  action: {
1669
1737
  type: actionTypes.go,
1670
- to: commonTags.oneLineTrim(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /", "\n /products\n /", "\n /variants\n /", "\n "])), applicationContext.project.key, productId, variantId)
1738
+ to: commonTags.oneLineTrim`
1739
+ /${applicationContext.project.key}
1740
+ /products
1741
+ /${productId}
1742
+ /variants
1743
+ /${variantId}
1744
+ `
1671
1745
  },
1672
1746
  subCommands: createProductVariantSubCommands({
1673
1747
  intl,
@@ -1678,17 +1752,16 @@ const QuickAccess = props => {
1678
1752
  });
1679
1753
  }
1680
1754
  if (data && data.productById && data.productById.masterData && data.productById.masterData.staged && data.productById.masterData.staged.nameAllLocales && applicationContext.project && applicationContext.dataLocale) {
1681
- var _context4;
1682
1755
  const productId = data.productById.id;
1683
1756
  commands.push({
1684
- id: "go/product-by-id/product(".concat(productId, ")"),
1757
+ id: `go/product-by-id/product(${productId})`,
1685
1758
  text: intl.formatMessage(messages.showProduct, {
1686
1759
  productName: translate(data.productById.masterData.staged.nameAllLocales, applicationContext.dataLocale)
1687
1760
  }),
1688
1761
  keywords: [productId],
1689
1762
  action: {
1690
1763
  type: actionTypes.go,
1691
- to: _concatInstanceProperty__default["default"](_context4 = "/".concat(applicationContext.project.key, "/products/")).call(_context4, productId)
1764
+ to: `/${applicationContext.project.key}/products/${productId}`
1692
1765
  },
1693
1766
  subCommands: createProductTabsSubCommands({
1694
1767
  intl,
@@ -1698,19 +1771,18 @@ const QuickAccess = props => {
1698
1771
  });
1699
1772
  }
1700
1773
  if (data && data.productsByIds && data.productsByIds.results) {
1701
- var _context5;
1702
- _forEachInstanceProperty__default["default"](_context5 = data.productsByIds.results).call(_context5, product => {
1774
+ var _context2;
1775
+ _forEachInstanceProperty__default["default"](_context2 = data.productsByIds.results).call(_context2, product => {
1703
1776
  if (product.masterData.staged && applicationContext.project && applicationContext.dataLocale) {
1704
- var _context6;
1705
1777
  commands.push({
1706
- id: "go/product-by-search-text/product(".concat(product.id, ")"),
1778
+ id: `go/product-by-search-text/product(${product.id})`,
1707
1779
  text: intl.formatMessage(messages.showProduct, {
1708
1780
  productName: translate(product.masterData.staged.nameAllLocales, applicationContext.dataLocale)
1709
1781
  }),
1710
1782
  keywords: [product.id],
1711
1783
  action: {
1712
1784
  type: actionTypes.go,
1713
- to: _concatInstanceProperty__default["default"](_context6 = "/".concat(applicationContext.project.key, "/products/")).call(_context6, product.id)
1785
+ to: `/${applicationContext.project.key}/products/${product.id}`
1714
1786
  },
1715
1787
  subCommands: createProductTabsSubCommands({
1716
1788
  intl,
@@ -1722,16 +1794,15 @@ const QuickAccess = props => {
1722
1794
  });
1723
1795
  }
1724
1796
  if (data && data.productByKey && applicationContext.project && applicationContext.dataLocale) {
1725
- var _context7;
1726
1797
  const productId = data.productByKey.id;
1727
1798
  commands.push({
1728
- id: "go/product-by-key/product(".concat(productId, ")"),
1799
+ id: `go/product-by-key/product(${productId})`,
1729
1800
  text: intl.formatMessage(messages.showProduct, {
1730
1801
  productName: searchText
1731
1802
  }),
1732
1803
  action: {
1733
1804
  type: actionTypes.go,
1734
- to: _concatInstanceProperty__default["default"](_context7 = "/".concat(applicationContext.project.key, "/products/")).call(_context7, productId)
1805
+ to: `/${applicationContext.project.key}/products/${productId}`
1735
1806
  },
1736
1807
  subCommands: createProductTabsSubCommands({
1737
1808
  intl,
@@ -1776,7 +1847,7 @@ const QuickAccess = props => {
1776
1847
  }
1777
1848
  }, [applicationContext, debouncedGetProjectCommands, execQuery, intl, isCanViewDashboardEnabled, isCustomApplicationsEnabled, isPimSearchEnabled, props.onChangeProjectDataLocale]);
1778
1849
  const executeCommand = react$1.useCallback((command, meta) => {
1779
- var _context8;
1850
+ var _context3;
1780
1851
  if (typeof command.action === 'function') {
1781
1852
  // Idea: We could handle these errors and set them on status bar of Butler
1782
1853
  // We can also handle sync/async commands by checking command.action.then
@@ -1785,7 +1856,7 @@ const QuickAccess = props => {
1785
1856
  }
1786
1857
  // open in new window
1787
1858
  // and always open other pages in a new window
1788
- if (meta.openInNewTab || !_startsWithInstanceProperty__default["default"](_context8 = command.action.to).call(_context8, '/')) {
1859
+ if (meta.openInNewTab || !_startsWithInstanceProperty__default["default"](_context3 = command.action.to).call(_context3, '/')) {
1789
1860
  // eslint-disable-next-line no-restricted-globals
1790
1861
  open(command.action.to, '_blank');
1791
1862
  } else if (applicationContext.environment.useFullRedirectsForLinks) {