@commercetools-frontend/experimental-components 4.0.0 → 5.0.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.
@@ -52,7 +52,6 @@ var PropTypes = require('prop-types');
52
52
  var applicationComponents = require('@commercetools-frontend/application-components');
53
53
  var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
54
54
  var applicationShellConnectors = require('@commercetools-frontend/application-shell-connectors');
55
- var applicationShell = require('@commercetools-frontend/application-shell');
56
55
  var react = require('@apollo/client/react');
57
56
  var _lastIndexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/last-index-of');
58
57
  var msw = require('msw');
@@ -60,11 +59,11 @@ var get = require('lodash/get');
60
59
  var formik = require('formik');
61
60
  var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
62
61
  var _setTimeout = require('@babel/runtime-corejs3/core-js-stable/set-timeout');
62
+ var applicationShell = require('@commercetools-frontend/application-shell');
63
63
  var debounce = require('debounce-promise');
64
64
  var pick = require('lodash/pick');
65
65
  var hooks = require('@apollo/client/react/hooks');
66
66
  var moment$1 = require('moment');
67
- var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
68
67
  var classnames = require('classnames');
69
68
  require('react-required-if');
70
69
  var designSystem = require('@commercetools-uikit/design-system');
@@ -120,8 +119,6 @@ var compact = require('lodash/compact');
120
119
  var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
121
120
  require('@babel/runtime-corejs3/helpers/get');
122
121
  var _spliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/splice');
123
- var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
124
- var reactRouterDom = require('react-router-dom');
125
122
 
126
123
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
127
124
 
@@ -163,7 +160,6 @@ var _setTimeout__default = /*#__PURE__*/_interopDefault(_setTimeout);
163
160
  var debounce__default = /*#__PURE__*/_interopDefault(debounce);
164
161
  var pick__default = /*#__PURE__*/_interopDefault(pick);
165
162
  var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
166
- var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
167
163
  var classnames__default = /*#__PURE__*/_interopDefault(classnames);
168
164
  var Textarea__default = /*#__PURE__*/_interopDefault(Textarea);
169
165
  var has__default = /*#__PURE__*/_interopDefault(has);
@@ -203,7 +199,6 @@ var _findIndexInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInde
203
199
  var compact__default = /*#__PURE__*/_interopDefault(compact);
204
200
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
205
201
  var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
206
- var _URL__default = /*#__PURE__*/_interopDefault(_URL);
207
202
 
208
203
  const QUERY_MAX_LIMIT = 500;
209
204
  const SHOW_TOOLTIP_CHARS_COUNT = 40;
@@ -215,28 +210,6 @@ const SEARCHABLE_REFERENCES = {
215
210
  productType: 'product-type',
216
211
  state: 'state'
217
212
  };
218
- const trackingEvents$5 = {
219
- showInfoNotification: {
220
- category: 'Account-Profile',
221
- action: 'showMyProfileUpdateNotification',
222
- label: 'Show My Profile Update Notification'
223
- },
224
- clickOnInfoNotification: {
225
- category: 'Account-Profile',
226
- action: 'openAccountMyProfilePage',
227
- label: 'Open My Profile Page'
228
- },
229
- clickCloseInfoNotification: {
230
- category: 'Account-Profile',
231
- action: 'closeInfoNotification',
232
- label: 'Close Info Notification'
233
- },
234
- updateBusinessRoleOnProfilePage: {
235
- category: 'Account-Profile',
236
- action: 'updateMyProfilePage',
237
- label: 'Update My Profile Page'
238
- }
239
- };
240
213
  const BUSINESS_ROLE_NOTIFICATION = 'businessRoleNotification';
241
214
 
242
215
  // The max API limit for one request
@@ -2219,8 +2192,6 @@ const injectStorage = options => WrappedComponent => {
2219
2192
  return WithStorage;
2220
2193
  };
2221
2194
 
2222
- var useTracking = (() => React.useContext(applicationShell.GtmContext));
2223
-
2224
2195
  /**
2225
2196
  * @returns function with the following parameters
2226
2197
  * - {LocalizedStrings} localizedStrings - an array of graphql LocalizedString,
@@ -2530,10 +2501,7 @@ var messages$M = reactIntl.defineMessages({
2530
2501
  function ownKeys$1f(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2531
2502
  function _objectSpread$1f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1f(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
2532
2503
  const LinkToProfile = props => {
2533
- const _useTrackingShared = useTrackingShared(),
2534
- trackClickOnInfoNotification = _useTrackingShared.trackClickOnInfoNotification;
2535
2504
  return jsxRuntime.jsx(uiKit.Link, {
2536
- onClick: trackClickOnInfoNotification,
2537
2505
  to: "/account/profile",
2538
2506
  children: props.children
2539
2507
  });
@@ -2571,45 +2539,8 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2571
2539
  });
2572
2540
  NotificationText.displayName = 'NotificationText';
2573
2541
 
2574
- const forwardHandler = (track, handler) => function () {
2575
- track();
2576
- handler(...arguments);
2577
- };
2578
- const defaultProcessTrackingEvent = trackingEvent => trackingEvent;
2579
- const useTrackingHandler = function (trackingEvent) {
2580
- let processTrackingEvent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultProcessTrackingEvent;
2581
- const _useTrackingContext = useTracking(),
2582
- track = _useTrackingContext.track;
2583
- return React.useCallback(function () {
2584
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2585
- args[_key] = arguments[_key];
2586
- }
2587
- const _processTrackingEvent = processTrackingEvent(trackingEvent, ...args),
2588
- action = _processTrackingEvent.action,
2589
- category = _processTrackingEvent.category,
2590
- label = _processTrackingEvent.label;
2591
- track(action, category, label);
2592
- }, [track, trackingEvent, processTrackingEvent]);
2593
- };
2594
- const useTrackingShared = () => {
2595
- const trackShowInfoNotification = useTrackingHandler(trackingEvents$5.showInfoNotification);
2596
- const trackClickOnInfoNotification = useTrackingHandler(trackingEvents$5.clickOnInfoNotification);
2597
- const trackClickCloseInfoNotification = useTrackingHandler(trackingEvents$5.clickCloseInfoNotification);
2598
- const trackUpdateBusinessRoleOnProfilePage = useTrackingHandler(trackingEvents$5.updateBusinessRoleOnProfilePage);
2599
- return {
2600
- trackShowInfoNotification,
2601
- trackClickOnInfoNotification,
2602
- trackClickCloseInfoNotification,
2603
- trackUpdateBusinessRoleOnProfilePage,
2604
- forwardHandler
2605
- };
2606
- };
2607
-
2608
2542
  const useRoleNotification = _ref => {
2609
2543
  let dismissNotification = _ref.onDismiss;
2610
- const _useTrackingShared = useTrackingShared(),
2611
- trackClickCloseInfoNotification = _useTrackingShared.trackClickCloseInfoNotification,
2612
- forwardHandler = _useTrackingShared.forwardHandler;
2613
2544
  const notification = actionsGlobal.useShowNotification({
2614
2545
  domain: constants.DOMAINS.SIDE,
2615
2546
  kind: 'info'
@@ -2620,7 +2551,7 @@ const useRoleNotification = _ref => {
2620
2551
  notification({
2621
2552
  text: jsxRuntime.jsx(NotificationText, {})
2622
2553
  }, {
2623
- onDismiss: () => forwardHandler(trackClickCloseInfoNotification(), dismissNotification())
2554
+ onDismiss: () => dismissNotification()
2624
2555
  });
2625
2556
  }
2626
2557
  };
@@ -2633,9 +2564,6 @@ const useRoleNotificationEffect = () => {
2633
2564
  const storageKey = 'roleExpiry';
2634
2565
  const userBusinessRole = user.businessRole;
2635
2566
  const scopedStorageKey = [user.id, storageKey].join('/');
2636
- const _useTrackingShared = useTrackingShared(),
2637
- trackShowInfoNotification = _useTrackingShared.trackShowInfoNotification,
2638
- forwardHandler = _useTrackingShared.forwardHandler;
2639
2567
  const _usePersistedReminder = usePersistedReminder({
2640
2568
  storageKey,
2641
2569
  reminderInterval: REMINDER_OPTION_3_DAY
@@ -2648,7 +2576,6 @@ const useRoleNotificationEffect = () => {
2648
2576
  onDismiss: scheduleReminder
2649
2577
  });
2650
2578
  const isFirstTimeUser = !hasChosenReminderRef.current;
2651
- const openBusinessRoleNotification = () => forwardHandler(trackShowInfoNotification(), roleNotification());
2652
2579
  React.useEffect(() => {
2653
2580
  /*
2654
2581
  If the user does not have a business role,
@@ -2658,11 +2585,11 @@ const useRoleNotificationEffect = () => {
2658
2585
  if (isFlopFlipReady) {
2659
2586
  // 1. first time user
2660
2587
  if (!userBusinessRole && isFirstTimeUser) {
2661
- openBusinessRoleNotification();
2588
+ roleNotification();
2662
2589
  }
2663
2590
  // 2. returning but not filled business role and has closed notification before
2664
2591
  else if (!userBusinessRole && hasReminderExpired) {
2665
- openBusinessRoleNotification();
2592
+ roleNotification();
2666
2593
  }
2667
2594
  // 3. has filled business role
2668
2595
  else if (userBusinessRole) {
@@ -3069,41 +2996,11 @@ var commonPickerMessages = reactIntl.defineMessages({
3069
2996
  }
3070
2997
  });
3071
2998
 
3072
- const trackingEvents$4 = {
3073
- selectChannelName: {
3074
- action: 'select',
3075
- category: 'ReferenceChannel',
3076
- label: 'name'
3077
- },
3078
- selectChannelKey: {
3079
- action: 'select',
3080
- category: 'ReferenceChannel',
3081
- label: 'key'
3082
- },
3083
- selectChannelId: {
3084
- action: 'select',
3085
- category: 'ReferenceChannel',
3086
- label: 'id'
3087
- },
3088
- selectWithoutTyping: {
3089
- action: 'select',
3090
- category: 'ReferenceChannel',
3091
- label: 'noEntry'
3092
- }
3093
- };
3094
-
3095
2999
  function ownKeys$1c(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3096
3000
  function _objectSpread$1c(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1c(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1c(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
3097
3001
  var GetChannelsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channels" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], 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: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, 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: "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: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
3098
3002
  var GetChannelQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channel" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, 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: "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: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
3099
3003
  var PickerInputChannel = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, 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: "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: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
3100
- const getTrackingEvent$4 = (inputValue, selectedValue) => {
3101
- const id = selectedValue.value,
3102
- key = selectedValue.key,
3103
- name = selectedValue.name;
3104
- const trackingEvent = !inputValue ? trackingEvents$4.selectWithoutTyping : _startsWithInstanceProperty__default["default"](name).call(name, inputValue) ? trackingEvents$4.selectChannelName : _startsWithInstanceProperty__default["default"](key).call(key, inputValue) ? trackingEvents$4.selectChannelKey : id === inputValue ? trackingEvents$4.selectChannelId : void 0;
3105
- return trackingEvent;
3106
- };
3107
3004
  const ChannelPickerInput = _ref => {
3108
3005
  var _currentOption$data$l, _currentOption$data;
3109
3006
  let isClearable = _ref.isClearable,
@@ -3169,7 +3066,7 @@ const ChannelPickerInput = _ref => {
3169
3066
  onError(error);
3170
3067
  }), [loadOptions, convertChannelToOption, onError]);
3171
3068
  const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
3172
- const _useHandlers = useHandlers(onChange, getTrackingEvent$4),
3069
+ const _useHandlers = useHandlers(onChange),
3173
3070
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
3174
3071
  handleInternalInputChange = _useHandlers2[0],
3175
3072
  handleChange = _useHandlers2[1];
@@ -3552,7 +3449,6 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3552
3449
  value: function render() {
3553
3450
  return jsxRuntime.jsx("div", {
3554
3451
  className: classnames__default["default"](this.props.blockClassName, styles$h.block),
3555
- "data-track-component": "Search",
3556
3452
  children: jsxRuntime.jsxs("div", {
3557
3453
  className: classnames__default["default"](this.props.containerClassName, styles$h.container),
3558
3454
  children: [jsxRuntime.jsx("div", {
@@ -3569,8 +3465,6 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3569
3465
  label: this.props.label,
3570
3466
  placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$J.placeholder),
3571
3467
  inputRef: this.props.inputRef || this.setInputRef,
3572
- "data-track-component": "Text",
3573
- "data-track-event": "change",
3574
3468
  onChange: this.handleInputChange,
3575
3469
  onEnter: this.handleEnter,
3576
3470
  onBlurValue: this.props.onBlur,
@@ -3594,8 +3488,6 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3594
3488
  }),
3595
3489
  onClick: this.props.disabled ? null : this.handleSubmit,
3596
3490
  label: "search-button",
3597
- "data-track-component": "Button",
3598
- "data-track-event": "click",
3599
3491
  onMouseOver: this.props.handleMouseOver,
3600
3492
  onMouseOut: this.props.handleMouseOut,
3601
3493
  children: jsxRuntime.jsx(uiKit.SearchIcon, {
@@ -3825,9 +3717,7 @@ Option$2.displayName = 'Option';
3825
3717
 
3826
3718
  function ownKeys$18(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3827
3719
  function _objectSpread$18(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$18(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$18(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
3828
- const useHandlers = (onChange, getTrackingEvent) => {
3829
- const _useTracking = useTracking(),
3830
- track = _useTracking.track;
3720
+ const useHandlers = onChange => {
3831
3721
  const _useState = React.useState(),
3832
3722
  _useState2 = _slicedToArray(_useState, 2),
3833
3723
  inputValue = _useState2[0],
@@ -3837,25 +3727,13 @@ const useHandlers = (onChange, getTrackingEvent) => {
3837
3727
  }, []);
3838
3728
  const handleChange = useEventCallback(event => {
3839
3729
  var _event$target$value;
3840
- const doTrack = () => {
3841
- const trackingEvent = getTrackingEvent(inputValue, event.target.value);
3842
- if (trackingEvent) {
3843
- const action = trackingEvent.action,
3844
- category = trackingEvent.category,
3845
- label = trackingEvent.label;
3846
- track(action, category, label);
3847
- }
3848
- };
3849
- if (event.target.value) {
3850
- doTrack();
3851
- }
3852
3730
  const eventWithExtractedValue = _objectSpread$18(_objectSpread$18({}, event), {}, {
3853
3731
  target: _objectSpread$18(_objectSpread$18({}, event.target), {}, {
3854
3732
  value: (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value
3855
3733
  })
3856
3734
  });
3857
3735
  onChange(eventWithExtractedValue);
3858
- }, [onChange, getTrackingEvent, inputValue, track]);
3736
+ }, [onChange, inputValue]);
3859
3737
  return [handleInputChange, handleChange];
3860
3738
  };
3861
3739
 
@@ -3970,30 +3848,11 @@ var messages$H = reactIntl.defineMessages({
3970
3848
  }
3971
3849
  });
3972
3850
 
3973
- const trackingEvents$3 = {
3974
- selectProductTypeName: {
3975
- action: 'select',
3976
- category: 'ReferenceProductType',
3977
- label: 'name'
3978
- },
3979
- selectProductTypeId: {
3980
- action: 'select',
3981
- category: 'ReferenceProductType',
3982
- label: 'id'
3983
- }
3984
- };
3985
-
3986
3851
  var GetProductTypeQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetProductTypeQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productType" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 212, source: { body: "query GetProductTypesQuery($where: String) {\n productTypes(where: $where) {\n results {\n id\n name\n }\n }\n}\n\nquery GetProductTypeQuery($id: String) {\n productType(id: $id) {\n id\n name\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
3987
3852
  const DropdownIndicator$1 = () => jsxRuntime.jsx(uiKit.SearchIcon, {
3988
3853
  color: "primary"
3989
3854
  });
3990
3855
  DropdownIndicator$1.displayName = 'DropdownIndicator';
3991
- const getTrackingEvent$3 = (inputValue, selectedValue) => {
3992
- const id = selectedValue.value,
3993
- name = selectedValue.label;
3994
- const trackingEvent = _startsWithInstanceProperty__default["default"](name).call(name, inputValue) ? trackingEvents$3.selectProductTypeName : id === inputValue ? trackingEvents$3.selectProductTypeId : void 0;
3995
- return trackingEvent;
3996
- };
3997
3856
  const convertProductTypeToOption = productType => {
3998
3857
  if (!productType) return null;
3999
3858
  const id = productType.id,
@@ -4043,7 +3902,7 @@ const ProductTypePickerInput = _ref => {
4043
3902
  onError(error);
4044
3903
  }), [loadProductTypes, onError]);
4045
3904
  const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
4046
- const _useHandlers = useHandlers(onChange, getTrackingEvent$3),
3905
+ const _useHandlers = useHandlers(onChange),
4047
3906
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
4048
3907
  handleInternalInputChange = _useHandlers2[0],
4049
3908
  handleChange = _useHandlers2[1];
@@ -4104,38 +3963,8 @@ var messages$G = reactIntl.defineMessages({
4104
3963
  }
4105
3964
  });
4106
3965
 
4107
- const trackingEvents$2 = {
4108
- selectStateName: {
4109
- action: 'select',
4110
- category: 'ReferenceState',
4111
- label: 'name'
4112
- },
4113
- selectStateKey: {
4114
- action: 'select',
4115
- category: 'ReferenceState',
4116
- label: 'key'
4117
- },
4118
- selectStateId: {
4119
- action: 'select',
4120
- category: 'ReferenceState',
4121
- label: 'id'
4122
- },
4123
- selectWithoutTyping: {
4124
- action: 'select',
4125
- category: 'ReferenceState',
4126
- label: 'noEntry'
4127
- }
4128
- };
4129
-
4130
3966
  var GetStatesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetStatesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "states" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], 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: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { 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: [] }] } }] } }] } }] } }], loc: { start: 0, end: 377, source: { body: "query GetStatesQuery($where: String, $sortByNamePath: String!) {\n states(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nquery GetStateQuery($id: String) {\n state(id: $id) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
4131
3967
  var GetStateQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetStateQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "state" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], 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: "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: [] }] } }] } }] } }], loc: { start: 0, end: 377, source: { body: "query GetStatesQuery($where: String, $sortByNamePath: String!) {\n states(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nquery GetStateQuery($id: String) {\n state(id: $id) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
4132
- const getTrackingEvent$2 = (inputValue, selectedValue) => {
4133
- const id = selectedValue.value,
4134
- key = selectedValue.key,
4135
- name = selectedValue.name;
4136
- const trackingEvent = !inputValue ? trackingEvents$2.selectWithoutTyping : _startsWithInstanceProperty__default["default"](name).call(name, inputValue) ? trackingEvents$2.selectStateName : _startsWithInstanceProperty__default["default"](key).call(key, inputValue) ? trackingEvents$2.selectStateKey : id === inputValue ? trackingEvents$2.selectStateId : void 0;
4137
- return trackingEvent;
4138
- };
4139
3968
  const StatePickerInput = _ref => {
4140
3969
  var _currentOption$data$l, _currentOption$data;
4141
3970
  let isClearable = _ref.isClearable,
@@ -4192,7 +4021,7 @@ const StatePickerInput = _ref => {
4192
4021
  onError(error);
4193
4022
  }), [loadOptions, convertStateToOption, onError]);
4194
4023
  const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
4195
- const _useHandlers = useHandlers(onChange, getTrackingEvent$2),
4024
+ const _useHandlers = useHandlers(onChange),
4196
4025
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
4197
4026
  handleInternalInputChange = _useHandlers2[0],
4198
4027
  handleChange = _useHandlers2[1];
@@ -6330,37 +6159,12 @@ var messages$D = reactIntl.defineMessages({
6330
6159
  }
6331
6160
  });
6332
6161
 
6333
- const trackingEvents$1 = {
6334
- selectProductName: {
6335
- action: 'select',
6336
- category: 'ReferenceProduct',
6337
- label: 'name'
6338
- },
6339
- selectProductKey: {
6340
- action: 'select',
6341
- category: 'ReferenceProduct',
6342
- label: 'key'
6343
- },
6344
- selectProductId: {
6345
- action: 'select',
6346
- category: 'ReferenceProduct',
6347
- label: 'id'
6348
- }
6349
- };
6350
-
6351
6162
  var GetProductQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetProductQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, 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: "id" } } }], 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: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "current" }, 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: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 440, source: { body: "query GetProductsQuery($where: String) {\n products(where: $where) {\n results {\n id\n key\n masterData {\n current {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n\nquery GetProductQuery($id: String) {\n product(id: $id) {\n id\n key\n masterData {\n current {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
6352
6163
  var GetProductsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetProductsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "products" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], 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: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "masterData" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "current" }, 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: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 440, source: { body: "query GetProductsQuery($where: String) {\n products(where: $where) {\n results {\n id\n key\n masterData {\n current {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n\nquery GetProductQuery($id: String) {\n product(id: $id) {\n id\n key\n masterData {\n current {\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
6353
6164
  const DropdownIndicator = () => jsxRuntime.jsx(uiKit.SearchIcon, {
6354
6165
  color: "primary"
6355
6166
  });
6356
6167
  DropdownIndicator.displayName = 'DropdownIndicator';
6357
- const getTrackingEvent$1 = (inputValue, selectedValue) => {
6358
- const id = selectedValue.value,
6359
- key = selectedValue.key,
6360
- name = selectedValue.name;
6361
- const trackingEvent = _startsWithInstanceProperty__default["default"](name).call(name, inputValue) ? trackingEvents$1.selectProductName : _startsWithInstanceProperty__default["default"](key).call(key, inputValue) ? trackingEvents$1.selectProductKey : id === inputValue ? trackingEvents$1.selectProductId : void 0;
6362
- return trackingEvent;
6363
- };
6364
6168
  const ProductPickerInput = _ref => {
6365
6169
  var _currentOption$data$l, _currentOption$data;
6366
6170
  let isClearable = _ref.isClearable,
@@ -6418,7 +6222,7 @@ const ProductPickerInput = _ref => {
6418
6222
  onError(error);
6419
6223
  }), [loadOptions, onError, convertProductToOption]);
6420
6224
  const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
6421
- const _useHandlers = useHandlers(onChange, getTrackingEvent$1),
6225
+ const _useHandlers = useHandlers(onChange),
6422
6226
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
6423
6227
  handleInternalInputChange = _useHandlers2[0],
6424
6228
  handleChange = _useHandlers2[1];
@@ -6831,7 +6635,7 @@ function CustomInputSet(props) {
6831
6635
  touched = _useFormikContext.touched,
6832
6636
  isSubmitting = _useFormikContext.isSubmitting,
6833
6637
  dirty = _useFormikContext.dirty;
6834
- const itemFieldDefintion = _objectSpread$U(_objectSpread$U({}, props.fieldDefinition), {}, {
6638
+ const itemFieldDefinition = _objectSpread$U(_objectSpread$U({}, props.fieldDefinition), {}, {
6835
6639
  type: props.fieldDefinition.type.elementType
6836
6640
  });
6837
6641
  const value = React.useMemo(() => props.value || [undefined], [props.value]);
@@ -6890,7 +6694,7 @@ function CustomInputSet(props) {
6890
6694
  // in <CustomFieldComponent /> where proper component for given field/attribute
6891
6695
  // type is selected.
6892
6696
  const type = getType(props.fieldDefinition);
6893
- const typeName = type.name.toLowerCase();
6697
+ const typeName = type === null || type === void 0 ? void 0 : type.name.toLowerCase();
6894
6698
  const areButtonsTopAligned = _includesInstanceProperty__default["default"](_context2 = [CUSTOM_FIELD_TYPES.lenum, CUSTOM_FIELD_TYPES.localizedenum, CUSTOM_FIELD_TYPES.localizedstring, CUSTOM_FIELD_TYPES.string, CUSTOM_FIELD_TYPES.text, CUSTOM_FIELD_TYPES.ltext, CUSTOM_FIELD_TYPES.reference]).call(_context2, typeName);
6895
6699
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
6896
6700
  children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
@@ -6915,7 +6719,7 @@ function CustomInputSet(props) {
6915
6719
  alignItems: areButtonsTopAligned ? 'flex-start' : 'center',
6916
6720
  children: [jsxRuntime.jsx(CustomFieldInput, {
6917
6721
  name: fieldName,
6918
- fieldDefinition: itemFieldDefintion,
6722
+ fieldDefinition: itemFieldDefinition,
6919
6723
  isDisabled: props.isDisabled,
6920
6724
  isReadOnly: props.isReadOnly,
6921
6725
  onBlur: props.onBlur,
@@ -6942,7 +6746,6 @@ function CustomInputSet(props) {
6942
6746
  })]
6943
6747
  });
6944
6748
  }
6945
- CustomInputSet.displayName = 'CustomInputSet';
6946
6749
 
6947
6750
  var messages$C = reactIntl.defineMessages({
6948
6751
  referencedProductType: {
@@ -7401,7 +7204,6 @@ function ProductAttributes(props) {
7401
7204
  inputValuesConverter: convertInputValue
7402
7205
  });
7403
7206
  }
7404
- ProductAttributes.displayName = 'ProductAttributes';
7405
7207
 
7406
7208
  const useFieldDefintion = attributeDefinition => React.useMemo(() => attributeDefinitionToFieldDefinition(attributeDefinition), [attributeDefinition]);
7407
7209
  function ProductAttributeInput(props) {
@@ -7750,30 +7552,23 @@ const nonSetComponents = {
7750
7552
  [CUSTOM_FIELD_TYPES.date]: CustomDateTimeInput,
7751
7553
  [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput
7752
7554
  };
7753
- const getSetComponent = fieldDefinition => {
7754
- const type = getType(fieldDefinition);
7755
- const typeName = type.name.toLowerCase();
7756
- // Boolean is the only set element with picularities (i.e. way more
7757
- // convenient for user to work with it as with select input with three values:
7758
- // [true], [false] and [true, false]).
7759
- if (typeName === CUSTOM_FIELD_TYPES.boolean) return CustomBooleanInputSet;
7760
- // All the rest sets are just a fancy wrapper around single-item components
7761
- return CustomInputSet;
7762
- };
7763
- const getNonSetComponent = fieldDefinition => {
7764
- const typeName = fieldDefinition.type.name.toLowerCase();
7765
- return nonSetComponents[typeName];
7766
- };
7767
- const isSet = fieldDefinition => {
7768
- const typeName = fieldDefinition.type.name.toLowerCase();
7769
- return typeName === 'set';
7770
- };
7771
- const getInputComponent = fieldDefinition => {
7772
- if (isSet(fieldDefinition)) return getSetComponent(fieldDefinition);
7773
- return getNonSetComponent(fieldDefinition);
7774
- };
7775
7555
  const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7776
- const InputComponent = getInputComponent(props.fieldDefinition);
7556
+ const InputComponent = React.useMemo(() => {
7557
+ var _props$fieldDefinitio;
7558
+ const typeName = (_props$fieldDefinitio = props.fieldDefinition.type) === null || _props$fieldDefinitio === void 0 ? void 0 : _props$fieldDefinitio.name.toLowerCase();
7559
+ if (typeName === 'set') {
7560
+ var _getSetElementType;
7561
+ // Boolean is the only set element with peculiarities (i.e. way more
7562
+ // convenient for user to work with it as with select input with three values:
7563
+ // [true], [false] and [true, false]).
7564
+ if (((_getSetElementType = getType(props.fieldDefinition)) === null || _getSetElementType === void 0 ? void 0 : _getSetElementType.name.toLowerCase()) === CUSTOM_FIELD_TYPES.boolean) {
7565
+ return CustomBooleanInputSet;
7566
+ }
7567
+ // All the rest sets are just a fancy wrapper around single-item components
7568
+ return CustomInputSet;
7569
+ }
7570
+ return nonSetComponents[typeName];
7571
+ }, [props.fieldDefinition]);
7777
7572
  if (!InputComponent) return null;
7778
7573
  return jsxRuntime.jsx(InputComponent, {
7779
7574
  name: props.name,
@@ -8436,43 +8231,9 @@ var messages$y = reactIntl.defineMessages({
8436
8231
  }
8437
8232
  });
8438
8233
 
8439
- const trackingEvents = {
8440
- selectCustomerGroupName: {
8441
- action: 'select',
8442
- category: 'ReferenceCustomerGroup',
8443
- label: 'name'
8444
- },
8445
- selectCustomerGroupKey: {
8446
- action: 'select',
8447
- category: 'ReferenceCustomerGroup',
8448
- label: 'key'
8449
- },
8450
- selectCustomerGroupId: {
8451
- action: 'select',
8452
- category: 'ReferenceCustomerGroup',
8453
- label: 'id'
8454
- },
8455
- selectWithoutTyping: {
8456
- action: 'select',
8457
- category: 'ReferenceCustomerGroup',
8458
- label: 'noEntry'
8459
- }
8460
- };
8461
-
8462
8234
  var GetCustomerGroupsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetCustomerGroupsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "customerGroups" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], 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: "FragmentSpread", name: { kind: "Name", value: "PickerInputCustomerGroups" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputCustomerGroups" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomerGroup" } }, 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: "name" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 406, source: { body: "fragment PickerInputCustomerGroups on CustomerGroup {\n id\n key\n name\n}\n\nquery GetCustomerGroupsQuery($where: String, $sortByNamePath: String!) {\n customerGroups(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputCustomerGroups\n }\n }\n}\n\nquery GetCustomerGroupQuery($id: String) {\n customerGroup(id: $id) {\n ...PickerInputCustomerGroups\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8463
8235
  var GetCustomerGroupQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetCustomerGroupQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "customerGroup" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputCustomerGroups" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputCustomerGroups" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomerGroup" } }, 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: "name" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 406, source: { body: "fragment PickerInputCustomerGroups on CustomerGroup {\n id\n key\n name\n}\n\nquery GetCustomerGroupsQuery($where: String, $sortByNamePath: String!) {\n customerGroups(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputCustomerGroups\n }\n }\n}\n\nquery GetCustomerGroupQuery($id: String) {\n customerGroup(id: $id) {\n ...PickerInputCustomerGroups\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8464
8236
  var PickerInputCustomerGroups = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputCustomerGroups" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomerGroup" } }, 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: "name" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 406, source: { body: "fragment PickerInputCustomerGroups on CustomerGroup {\n id\n key\n name\n}\n\nquery GetCustomerGroupsQuery($where: String, $sortByNamePath: String!) {\n customerGroups(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputCustomerGroups\n }\n }\n}\n\nquery GetCustomerGroupQuery($id: String) {\n customerGroup(id: $id) {\n ...PickerInputCustomerGroups\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8465
- const getTrackingEvent = (inputValue, selectedValue) => {
8466
- const id = selectedValue.value,
8467
- key = selectedValue.key,
8468
- name = selectedValue.name;
8469
- const selectWithoutTyping = trackingEvents.selectWithoutTyping,
8470
- selectCustomerGroupId = trackingEvents.selectCustomerGroupId,
8471
- selectCustomerGroupKey = trackingEvents.selectCustomerGroupKey,
8472
- selectCustomerGroupName = trackingEvents.selectCustomerGroupName;
8473
- const trackingEvent = !inputValue ? selectWithoutTyping : _startsWithInstanceProperty__default["default"](name).call(name, inputValue) ? selectCustomerGroupName : _startsWithInstanceProperty__default["default"](key).call(key, inputValue) ? selectCustomerGroupKey : id === inputValue ? selectCustomerGroupId : void 0;
8474
- return trackingEvent;
8475
- };
8476
8237
  const CustomerGroupPickerInput = _ref => {
8477
8238
  var _currentOption$data$l, _currentOption$data;
8478
8239
  let isClearable = _ref.isClearable,
@@ -8535,7 +8296,7 @@ const CustomerGroupPickerInput = _ref => {
8535
8296
  onError(error);
8536
8297
  }), [loadOptions, convertCustomerGroupToOption, onError]);
8537
8298
  const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
8538
- const _useHandlers = useHandlers(onChange, getTrackingEvent),
8299
+ const _useHandlers = useHandlers(onChange),
8539
8300
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
8540
8301
  handleInternalInputChange = _useHandlers2[0],
8541
8302
  handleChange = _useHandlers2[1];
@@ -10178,7 +9939,7 @@ const BusinessUnitAssociatesListView = props => {
10178
9939
  };
10179
9940
  BusinessUnitAssociatesListView.displayName = 'BusinessUnitAssociatesListView';
10180
9941
 
10181
- var BusinessUnitAssociatesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "BusinessUnitAssociatesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "businessUnit" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BusinessUnitAssociatesFragment" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BusinessUnitAssociatesFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BusinessUnit" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "associates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "roles" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, 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: "customer" }, 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: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "inheritedAssociates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, 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: "customer" }, 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: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 831, source: { body: "fragment BusinessUnitAssociatesFragment on BusinessUnit {\n id\n associates {\n roles @skip(if: $shouldExcludeRoles)\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n inheritedAssociates {\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n __typename\n}\n\nquery BusinessUnitAssociatesQuery(\n $id: String!\n $shouldExcludeRoles: Boolean!\n $shouldExcludeAssociateRoleAssignmentsRoles: Boolean!\n) {\n businessUnit(id: $id) {\n ...BusinessUnitAssociatesFragment\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9942
+ var BusinessUnitAssociatesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "BusinessUnitAssociatesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "businessUnit" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "BusinessUnitAssociatesFragment" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BusinessUnitAssociatesFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BusinessUnit" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "associates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "roles" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, 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: "inheritance" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "customer" }, 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: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "inheritedAssociates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, 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: "customer" }, 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: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 849, source: { body: "fragment BusinessUnitAssociatesFragment on BusinessUnit {\n id\n associates {\n roles @skip(if: $shouldExcludeRoles)\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n inheritance\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n inheritedAssociates {\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n __typename\n}\n\nquery BusinessUnitAssociatesQuery(\n $id: String!\n $shouldExcludeRoles: Boolean!\n $shouldExcludeAssociateRoleAssignmentsRoles: Boolean!\n) {\n businessUnit(id: $id) {\n ...BusinessUnitAssociatesFragment\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10182
9943
  const useBusinessUnitAssociatesFetcher = _ref => {
10183
9944
  let id = _ref.id,
10184
9945
  shouldExcludeRoles = _ref.shouldExcludeRoles,
@@ -12456,9 +12217,6 @@ var messages$7 = reactIntl.defineMessages({
12456
12217
  function ownKeys$f(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12457
12218
  function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$f(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
12458
12219
  const MissingValueField = props => jsxRuntime.jsx(uiKit.CheckboxInput, {
12459
- "data-track-component": "MissingValue",
12460
- "data-track-event": "change",
12461
- "data-track-label": props.isChecked,
12462
12220
  name: "missing-value",
12463
12221
  isChecked: props.isChecked,
12464
12222
  onChange: props.onChange,
@@ -14333,30 +14091,6 @@ const getTimeZoneLabel = memoize__default["default"]((selectedTimeZone, timeZone
14333
14091
  return _concatInstanceProperty__default["default"](_context4 = "(GMT ".concat(timeZoneData.offset, ") ")).call(_context4, timeZoneData.name);
14334
14092
  });
14335
14093
 
14336
- function findButtonLinkPathname(element) {
14337
- if (element.tagName === 'A') {
14338
- var _context;
14339
- const linkUrl = new _URL__default["default"](element.href);
14340
- return _concatInstanceProperty__default["default"](_context = "".concat(linkUrl.pathname)).call(_context, linkUrl.search);
14341
- }
14342
- return findButtonLinkPathname(element.parentElement);
14343
- }
14344
- function trackMenuClick(_ref) {
14345
- let event = _ref.event,
14346
- track = _ref.track,
14347
- pathToMatch = _ref.pathToMatch,
14348
- trackingEvent = _ref.trackingEvent;
14349
- const buttonLinkPathname = findButtonLinkPathname(event.target);
14350
- const shouldTrackEvent = !!reactRouterDom.matchPath(buttonLinkPathname, {
14351
- path: pathToMatch,
14352
- exact: true,
14353
- strict: true
14354
- });
14355
- if (shouldTrackEvent) {
14356
- track(trackingEvent.action, trackingEvent.category, trackingEvent.label);
14357
- }
14358
- }
14359
-
14360
14094
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14361
14095
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
14362
14096
  function withPendingRequests() {
@@ -14542,7 +14276,6 @@ exports.splitVariantAttributesByConstraint = splitVariantAttributesByConstraint;
14542
14276
  exports.storesListConnectorMockHandlers = handlers$7;
14543
14277
  exports.stringToBase64 = stringToBase64;
14544
14278
  exports.swapArrayItems = swapArrayItems;
14545
- exports.trackMenuClick = trackMenuClick;
14546
14279
  exports.transformAllToProperNounCase = transformAllToProperNounCase;
14547
14280
  exports.transformCustomFieldsRawToCustomFields = transformCustomFieldsRawToCustomFields;
14548
14281
  exports.transformLocalizedFieldsForCategory = transformLocalizedFieldsForCategory;
@@ -14571,9 +14304,6 @@ exports.useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
14571
14304
  exports.useTotalNumberOfBusinessUnitsFetcherHandlers = handlers$1;
14572
14305
  exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher;
14573
14306
  exports.useTotalNumberOfStoresFetcherHandlers = handlers$3;
14574
- exports.useTracking = useTracking;
14575
- exports.useTrackingContext = useTracking;
14576
- exports.useTrackingShared = useTrackingShared;
14577
14307
  exports.validateCustomField = validateFilter$2;
14578
14308
  exports.validateCustomFields = validations;
14579
14309
  exports.validateDate = validateFilter$1;