"use strict";

exports.__esModule = true;
exports.variantPropertyKeyValuesSelector = exports.productPropertyValuesSelector = exports.productPropertyValueSelector = exports.variantPropertyMapKvaSelector = exports.productPropertyMapSelector = exports.customProfileTypesSelector = exports.customAttributesDefinitionSelector = exports.groupedCustomAttributesDefinitionSelector = exports.profileAttributeGroupsSelector = exports.baseAttributesSelector = exports.customAttributesSelector = exports.mappedDefinitionAttributesSelector = exports.definitionEntityBaseAttributesSelector = exports.definitionEntityCustomAttributesSelector = exports.mappedDefinitionEntity = exports.definitionEntity = exports.newProfileDefinitionNameSelector = exports.newProfileDefinitionInstanceSelector = exports.mappedBaseDefinitionsListSelector = exports.mappedCustomDefinitionsListSelector = exports.mappedDefinitionsListSelector = exports.mappedOrderLookupsListSelector = exports.orderLookupsNextPageToLoad = exports.orderLookupsListCurrentInfo = exports.mappedLookupListSelector = exports.lookupsListSelector = exports.lookupsNextPageToLoad = exports.lookupsListCurrentInfo = exports.namedLookupLocalizedValuesSelector = exports.namedLookupLocalizedSelector = exports.selectCurrentLookupDetails = exports.namedLookupValuesSelector = exports.namedLookupSelector = exports.lookupByNameSelector = exports.mappedLookupsListSelector = exports.lookupSelector = void 0;

var _reselect = require("reselect");

var _immutable = _interopRequireDefault(require("immutable"));

var _utils = require("../utils");

var _setTranslationWithFallback = require("../utils/setTranslationWithFallback");

var _locale = require("../selectors/locale");

var _localizationHelper = require("../utils/localizationHelper");

var _propertyHelper = require("../utils/propertyHelper");

var _metadata = require("../reducers/metadata");

var _constants = require("../constants");

var _lodash = require("lodash");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var metadata = function metadata(state) {
  return state.get("metadata");
};

var lookups = (0, _reselect.createSelector)(metadata, function (meta) {
  return meta.get("lookups");
});
var lookupsModule = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookups, function (lookups) {
    return lookups.get(moduleName);
  });
});
var lookupSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupsModule(moduleName), function (module) {
    return module.get("index");
  });
});
exports.lookupSelector = lookupSelector;
var mappedLookupsListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupSelector(moduleName), _locale.currentLocaleOrDefault, function (lookups, locale) {
    return lookups.map(function (lookup) {
      return lookup.set("displayName", (0, _localizationHelper.getLocalization)(lookup.get("displayName"), locale, lookup.get("lookupName"))).delete("values");
    });
  });
});
exports.mappedLookupsListSelector = mappedLookupsListSelector;
var lookupValuesSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
  return (0, _reselect.createSelector)(lookups, function (lookups) {
    return lookups.getIn([moduleName, "index", lookupName]) || _immutable.default.Map();
  });
});
var lookupByNameSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
  return (0, _reselect.createSelector)(lookups, function (lookups) {
    return lookups.getIn([moduleName, "index", lookupName]) || null;
  });
});
exports.lookupByNameSelector = lookupByNameSelector;
var namedLookupSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
  return (0, _reselect.createSelector)(lookupSelector(moduleName), _locale.currentLocaleOrDefault, function (lookups, locale) {
    return (0, _utils.setTranslation)(locale, lookups.get(lookupName), "displayName") || _immutable.default.Map();
  });
});
exports.namedLookupSelector = namedLookupSelector;
var namedLookupValuesSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
  return (0, _reselect.createSelector)(namedLookupSelector(moduleName, lookupName), _locale.currentLocaleOrDefault, function (statuses, locale) {
    return (statuses.get("values") || _immutable.default.Map()).map(function (status) {
      return (0, _utils.setTranslation)(locale, status, "displayName");
    });
  });
});
exports.namedLookupValuesSelector = namedLookupValuesSelector;
var selectCurrentLookupDetails = (0, _utils.memoize)(function (moduleName, lookupName) {
  return namedLookupSelector(moduleName, lookupName);
});
exports.selectCurrentLookupDetails = selectCurrentLookupDetails;
var namedLookupLocalizedSelector = (0, _utils.memoize)(function (moduleName, lookupName, key, defaultValue) {
  if (defaultValue === void 0) {
    defaultValue = key;
  }

  return (0, _reselect.createSelector)(lookupValuesSelector(moduleName, lookupName), _locale.currentLocaleOrDefault, function (lookups, locale) {
    var values = lookups.get("values");
    if (values == null || key == null) return (0, _localizationHelper.getLocalization)(null, locale, defaultValue);
    var value = (0, _propertyHelper.getPropertyOrDefault)(values.toJS(), key, defaultValue, true);
    return (0, _localizationHelper.getLocalization)(value == null ? void 0 : value.displayName, locale, defaultValue);
  });
});
exports.namedLookupLocalizedSelector = namedLookupLocalizedSelector;
var namedLookupLocalizedValuesSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
  return (0, _reselect.createSelector)(lookupValuesSelector(moduleName, lookupName), _locale.currentLocaleOrDefault, function (lookup, locale) {
    return (lookup.get("values") || _immutable.default.Map()).map(function (lookupValue) {
      return (0, _localizationHelper.getLocalization)(lookupValue.get("displayName"), locale, lookupValue.get("value"));
    });
  });
});
exports.namedLookupLocalizedValuesSelector = namedLookupLocalizedValuesSelector;
var lookupsListCurrentInfo = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupsModule(moduleName), function (data) {
    var _data$get;

    return {
      currentPage: (_data$get = data.get("currentPage")) != null ? _data$get : 1,
      totalCount: data.get("index").size
    };
  });
});
exports.lookupsListCurrentInfo = lookupsListCurrentInfo;
var lookupsNextPageToLoad = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupsModule(moduleName), function (data) {
    return data.get("nextPageToLoad");
  });
});
exports.lookupsNextPageToLoad = lookupsNextPageToLoad;
var lookupsListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupsModule(moduleName), function (module) {
    return module.get("list");
  });
});
exports.lookupsListSelector = lookupsListSelector;
var mappedLookupListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(lookupSelector(moduleName), lookupsListSelector(moduleName), function (index, list) {
    return list.map(function (id) {
      return index.get(id);
    }).filter(Boolean).map(function (item) {
      return item.set("id", item.get("lookupName"));
    });
  });
});
exports.mappedLookupListSelector = mappedLookupListSelector;
var orderLookupsListCurrentInfo = lookupsListCurrentInfo(_metadata.ORDER_MODULE_NAME);
exports.orderLookupsListCurrentInfo = orderLookupsListCurrentInfo;
var orderLookupsNextPageToLoad = lookupsNextPageToLoad(_metadata.ORDER_MODULE_NAME);
exports.orderLookupsNextPageToLoad = orderLookupsNextPageToLoad;
var mappedOrderLookupsListSelector = mappedLookupListSelector(_metadata.ORDER_MODULE_NAME);
/***  DEFINITIONS  ***/

exports.mappedOrderLookupsListSelector = mappedOrderLookupsListSelector;
var definitions = (0, _reselect.createSelector)(metadata, function (meta) {
  return meta.get("definitions");
});
var definitionsModule = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(definitions, function (definitions) {
    var _definitions$get;

    return (_definitions$get = definitions.get(moduleName)) != null ? _definitions$get : _immutable.default.Map();
  });
});
var mappedDefinitionsListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(definitionsModule(moduleName), _locale.currentLocaleOrDefault, function (definitions, locale) {
    return definitions.map(function (definition) {
      return definition.set("type", definition.get("isSharedEntity") === true ? _constants.definitionType.shared : _constants.definitionType.embedded).set("displayName", (0, _localizationHelper.getLocalization)(definition.get("displayName"), locale, definition.get("entityTypeName"))).delete("attributes");
    });
  });
});
exports.mappedDefinitionsListSelector = mappedDefinitionsListSelector;
var mappedCustomDefinitionsListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(mappedDefinitionsListSelector(moduleName), function (definitions) {
    return definitions.filter(function (a) {
      return a.get("isBuiltIn") === false;
    });
  });
});
exports.mappedCustomDefinitionsListSelector = mappedCustomDefinitionsListSelector;
var mappedBaseDefinitionsListSelector = (0, _utils.memoize)(function (moduleName) {
  return (0, _reselect.createSelector)(mappedDefinitionsListSelector(moduleName), function (definitions) {
    return definitions.filter(function (a) {
      return a.get("isBuiltIn") === true;
    });
  });
});
exports.mappedBaseDefinitionsListSelector = mappedBaseDefinitionsListSelector;
var newProfileDefinitionInstanceSelector = (0, _reselect.createSelector)(definitions, function (definitions) {
  return definitions.get("newInstance") || null;
});
exports.newProfileDefinitionInstanceSelector = newProfileDefinitionInstanceSelector;
var newProfileDefinitionNameSelector = (0, _reselect.createSelector)(definitions, function (definitions) {
  return definitions.get("newInstanceId");
});
exports.newProfileDefinitionNameSelector = newProfileDefinitionNameSelector;
var definitionEntity = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionsModule(moduleName), function (definition) {
    return definition.getIn([entityName]) || _immutable.default.Map();
  });
});
exports.definitionEntity = definitionEntity;
var mappedDefinitionEntity = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionEntity(moduleName, entityName), _locale.currentLocaleOrDefault, function (definition, locale) {
    return (0, _setTranslationWithFallback.setTranslationWithFallbackField)(locale, definition, "entityTypeName", "displayName");
  });
});
exports.mappedDefinitionEntity = mappedDefinitionEntity;
var definitionEntityAttributes = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionEntity(moduleName, entityName), function (definition) {
    return definition.get("attributes") || _immutable.default.List();
  });
});

var filterIsBuiltInAttributes = function filterIsBuiltInAttributes(isBuiltIn) {
  return function (attributes) {
    return attributes.filter(function (a) {
      return a.get("isBuiltIn") === isBuiltIn;
    });
  };
};

var definitionEntityCustomAttributesSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionEntityAttributes(moduleName, entityName), filterIsBuiltInAttributes(false));
});
exports.definitionEntityCustomAttributesSelector = definitionEntityCustomAttributesSelector;
var definitionEntityBaseAttributesSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionEntityAttributes(moduleName, entityName), filterIsBuiltInAttributes(true));
});
exports.definitionEntityBaseAttributesSelector = definitionEntityBaseAttributesSelector;
var mappedDefinitionAttributesSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(definitionEntityAttributes(moduleName, entityName), _locale.currentLocaleOrDefault, function (attributes, locale) {
    return attributes.map(function (a) {
      return (0, _setTranslationWithFallback.setTranslationWithFallbackField)(locale, a, "name", "displayName");
    });
  });
});
exports.mappedDefinitionAttributesSelector = mappedDefinitionAttributesSelector;
var customAttributesSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(mappedDefinitionAttributesSelector(moduleName, entityName), filterIsBuiltInAttributes(false));
});
exports.customAttributesSelector = customAttributesSelector;
var baseAttributesSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(mappedDefinitionAttributesSelector(moduleName, entityName), filterIsBuiltInAttributes(true));
});
exports.baseAttributesSelector = baseAttributesSelector;
var profileAttributeGroupsSelector = (0, _reselect.createSelector)(metadata, _locale.currentLocaleOrDefault, function (meta, locale) {
  var groups = meta.get("profileAttributeGroups");
  return !(groups != null && groups.size) ? null : groups == null ? void 0 : groups.map(function (x) {
    return (0, _setTranslationWithFallback.setTranslationWithFallbackField)(locale, x, "name", "displayName");
  });
});
exports.profileAttributeGroupsSelector = profileAttributeGroupsSelector;
var groupedCustomAttributesDefinitionSelector = (0, _utils.memoize)(function (moduleName, entityName) {
  return (0, _reselect.createSelector)(profileAttributeGroupsSelector, customAttributesSelector(moduleName, entityName), _locale.currentLocaleOrDefault, function (allProfileAttributeGroups, attributes) {
    return attributes.groupBy(function (item) {
      return item.get("groupId");
    }).map(function (group) {
      var groupId = group.first().get("groupId");
      var profileAttributeGroup = allProfileAttributeGroups == null ? void 0 : allProfileAttributeGroups.get(groupId);
      return _immutable.default.fromJS({
        id: groupId,
        name: profileAttributeGroup == null ? void 0 : profileAttributeGroup.get("displayName"),
        displayOrder: profileAttributeGroup == null ? void 0 : profileAttributeGroup.get("displayOrder")
      }).set("baseAttributes", group.filter(function (i) {
        return i.get("dataType") !== _constants.attributeDataType.entityReference;
      })).set("profileAttributes", group.filter(function (i) {
        return i.get("dataType") === _constants.attributeDataType.entityReference;
      }));
    }).sortBy(function (x) {
      return x.get("displayOrder");
    });
  });
});
exports.groupedCustomAttributesDefinitionSelector = groupedCustomAttributesDefinitionSelector;
var customAttributesDefinitionSelector = (0, _utils.memoize)(function (moduleName, profileEntityName) {
  return (0, _reselect.createSelector)(mappedDefinitionEntity(moduleName, profileEntityName), customAttributesSelector(moduleName, profileEntityName), function (definition, attributes) {
    var profileAttributes = attributes == null ? void 0 : attributes.filter(function (a) {
      return a.get("dataType") === _constants.attributeDataType.entityReference;
    });
    var baseAttributes = attributes == null ? void 0 : attributes.filter(function (a) {
      return a.get("dataType") !== _constants.attributeDataType.entityReference;
    });
    return definition.set("baseAttributes", baseAttributes).set("profileAttributes", profileAttributes);
  });
});
exports.customAttributesDefinitionSelector = customAttributesDefinitionSelector;
var customProfileTypesSelector = (0, _utils.memoize)(function () {
  return (0, _reselect.createSelector)(definitionsModule("customer"), function (types) {
    return types.filter(function (t) {
      return t.get("isBuiltIn") === false && t.get("isSharedEntity") === true;
    });
  });
});
exports.customProfileTypesSelector = customProfileTypesSelector;
var productPropertyMapSelector = (0, _utils.memoize)(function (definitionName) {
  return (0, _reselect.createSelector)(definitionEntity("product", definitionName), function (immutableProductDefinition) {
    var productDefinition = immutableProductDefinition.toJS();
    var propertyMap = {};
    (0, _lodash.each)(productDefinition.properties, function (property) {
      var name = (0, _lodash.camelCase)(property.propertyName);
      propertyMap[name] = property;
    });
    (0, _lodash.each)(productDefinition.propertyGroups, function (group) {
      (0, _lodash.each)(group.properties, function (property) {
        var name = (0, _lodash.camelCase)(property.propertyName);
        propertyMap[name] = property;
      });
    });
    (0, _lodash.each)(productDefinition.variantProperties, function (property) {
      var name = (0, _lodash.camelCase)(property.propertyName);
      propertyMap[name] = property;
    });
    return propertyMap;
  });
});
exports.productPropertyMapSelector = productPropertyMapSelector;
var variantPropertyMapKvaSelector = (0, _utils.memoize)(function (definitionName) {
  return (0, _reselect.createSelector)(definitionEntity("product", definitionName), function (immutableProductDefinition) {
    var productDefinition = immutableProductDefinition.toJS();
    var propertyMap = {};
    (0, _lodash.each)(productDefinition.variantProperties, function (property) {
      if (property.isKeyVariant) {
        var name = (0, _lodash.camelCase)(property.propertyName);
        propertyMap[name] = property;
      }
    });
    return propertyMap;
  });
});
exports.variantPropertyMapKvaSelector = variantPropertyMapKvaSelector;
var productPropertyValueSelector = (0, _utils.memoize)(function (_ref, propertyName, propertyValue) {
  var definitionName = _ref.definitionName;
  return (0, _reselect.createSelector)(productPropertyMapSelector(definitionName), lookupSelector("product"), _locale.currentLocaleOrDefault, function (propertyMap, lookups, locale) {
    var property = propertyMap[(0, _lodash.camelCase)(propertyName)];
    return resolveProductPropertyValue(property, propertyValue, locale, lookups);
  });
});
exports.productPropertyValueSelector = productPropertyValueSelector;
var productPropertyValuesSelector = (0, _utils.memoize)(function (_ref2, propertyBag) {
  var definitionName = _ref2.definitionName;
  return (0, _reselect.createSelector)(productPropertyMapSelector(definitionName), lookupSelector("product"), _locale.currentLocaleOrDefault, function (propertyMap, lookups, locale) {
    if (propertyBag != null) {
      return Object.keys(propertyBag).reduce(function (acc, rec) {
        return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, rec, resolveProductPropertyValue(propertyMap[(0, _lodash.camelCase)(rec)], propertyBag[rec], locale, lookups)));
      }, {});
    }

    return null;
  });
});
exports.productPropertyValuesSelector = productPropertyValuesSelector;
var variantPropertyKeyValuesSelector = (0, _utils.memoize)(function (_ref3, propertyBag) {
  var definitionName = _ref3.definitionName;
  return (0, _reselect.createSelector)(variantPropertyMapKvaSelector(definitionName), lookupSelector("product"), _locale.currentLocaleOrDefault, function (propertyMap, lookups, locale) {
    if (propertyBag != null) {
      return Object.keys(propertyBag).reduce(function (acc, rec) {
        return propertyMap[(0, _lodash.camelCase)(rec)] ? _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, rec, resolveProductPropertyValue(propertyMap[(0, _lodash.camelCase)(rec)], propertyBag[rec], locale, lookups))) : acc;
      }, {});
    }

    return null;
  });
});
exports.variantPropertyKeyValuesSelector = variantPropertyKeyValuesSelector;

var resolveProductPropertyValue = function resolveProductPropertyValue(property, propertyValue, locale, lookups) {
  var _property$lookupDefin, _lookup$get;

  if (property != null) {
    switch (property.dataType) {
      case "Lookup":
        var lookupName = (_property$lookupDefin = property.lookupDefinition) == null ? void 0 : _property$lookupDefin.lookupName;
        var lookup = lookups == null ? void 0 : lookups.get(lookupName);
        var lookupValue = lookup == null ? void 0 : (_lookup$get = lookup.get("values")) == null ? void 0 : _lookup$get.get(propertyValue);
        return (0, _localizationHelper.getLocalization)(lookupValue == null ? void 0 : lookupValue.get("displayName"), locale, lookupValue == null ? void 0 : lookupValue.get("value"));

      default:
        return propertyValue;
    }
  }

  return propertyValue;
};

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(metadata, "metadata", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookups, "lookups", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsModule, "lookupsModule", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupSelector, "lookupSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedLookupsListSelector, "mappedLookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupValuesSelector, "lookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupByNameSelector, "lookupByNameSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupSelector, "namedLookupSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupValuesSelector, "namedLookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(selectCurrentLookupDetails, "selectCurrentLookupDetails", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupLocalizedSelector, "namedLookupLocalizedSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupLocalizedValuesSelector, "namedLookupLocalizedValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsListCurrentInfo, "lookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsNextPageToLoad, "lookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsListSelector, "lookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedLookupListSelector, "mappedLookupListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(orderLookupsListCurrentInfo, "orderLookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(orderLookupsNextPageToLoad, "orderLookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedOrderLookupsListSelector, "mappedOrderLookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitions, "definitions", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionsModule, "definitionsModule", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionsListSelector, "mappedDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedCustomDefinitionsListSelector, "mappedCustomDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedBaseDefinitionsListSelector, "mappedBaseDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(newProfileDefinitionInstanceSelector, "newProfileDefinitionInstanceSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(newProfileDefinitionNameSelector, "newProfileDefinitionNameSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntity, "definitionEntity", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionEntity, "mappedDefinitionEntity", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityAttributes, "definitionEntityAttributes", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(filterIsBuiltInAttributes, "filterIsBuiltInAttributes", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityCustomAttributesSelector, "definitionEntityCustomAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityBaseAttributesSelector, "definitionEntityBaseAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionAttributesSelector, "mappedDefinitionAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customAttributesSelector, "customAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(baseAttributesSelector, "baseAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(profileAttributeGroupsSelector, "profileAttributeGroupsSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(groupedCustomAttributesDefinitionSelector, "groupedCustomAttributesDefinitionSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customAttributesDefinitionSelector, "customAttributesDefinitionSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customProfileTypesSelector, "customProfileTypesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyMapSelector, "productPropertyMapSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(variantPropertyMapKvaSelector, "variantPropertyMapKvaSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyValueSelector, "productPropertyValueSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyValuesSelector, "productPropertyValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(variantPropertyKeyValuesSelector, "variantPropertyKeyValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(resolveProductPropertyValue, "resolveProductPropertyValue", "/home/vsts/work/1/s/src/selectors/metadata.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(metadata, "metadata", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookups, "lookups", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsModule, "lookupsModule", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupSelector, "lookupSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedLookupsListSelector, "mappedLookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupValuesSelector, "lookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupByNameSelector, "lookupByNameSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupSelector, "namedLookupSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupValuesSelector, "namedLookupValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(selectCurrentLookupDetails, "selectCurrentLookupDetails", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupLocalizedSelector, "namedLookupLocalizedSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(namedLookupLocalizedValuesSelector, "namedLookupLocalizedValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsListCurrentInfo, "lookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsNextPageToLoad, "lookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(lookupsListSelector, "lookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedLookupListSelector, "mappedLookupListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(orderLookupsListCurrentInfo, "orderLookupsListCurrentInfo", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(orderLookupsNextPageToLoad, "orderLookupsNextPageToLoad", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedOrderLookupsListSelector, "mappedOrderLookupsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitions, "definitions", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionsModule, "definitionsModule", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionsListSelector, "mappedDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedCustomDefinitionsListSelector, "mappedCustomDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedBaseDefinitionsListSelector, "mappedBaseDefinitionsListSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(newProfileDefinitionInstanceSelector, "newProfileDefinitionInstanceSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(newProfileDefinitionNameSelector, "newProfileDefinitionNameSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntity, "definitionEntity", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionEntity, "mappedDefinitionEntity", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityAttributes, "definitionEntityAttributes", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(filterIsBuiltInAttributes, "filterIsBuiltInAttributes", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityCustomAttributesSelector, "definitionEntityCustomAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(definitionEntityBaseAttributesSelector, "definitionEntityBaseAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(mappedDefinitionAttributesSelector, "mappedDefinitionAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customAttributesSelector, "customAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(baseAttributesSelector, "baseAttributesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(profileAttributeGroupsSelector, "profileAttributeGroupsSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(groupedCustomAttributesDefinitionSelector, "groupedCustomAttributesDefinitionSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customAttributesDefinitionSelector, "customAttributesDefinitionSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(customProfileTypesSelector, "customProfileTypesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyMapSelector, "productPropertyMapSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(variantPropertyMapKvaSelector, "variantPropertyMapKvaSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyValueSelector, "productPropertyValueSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(productPropertyValuesSelector, "productPropertyValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(variantPropertyKeyValuesSelector, "variantPropertyKeyValuesSelector", "/home/vsts/work/1/s/src/selectors/metadata.js");
  reactHotLoader.register(resolveProductPropertyValue, "resolveProductPropertyValue", "/home/vsts/work/1/s/src/selectors/metadata.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();