"use strict";

exports.__esModule = true;
exports.stringifyWithoutQuotes = exports.getModuleNameFromHref = exports.getAllAfterPrependHref = exports.concatObjectPropsWithDelimeter = exports.parseGuid = void 0;

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

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

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 parseGuid = function parseGuid(guid) {
  if ((guid == null ? void 0 : guid.length) === 32) {
    return guid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
  }

  if ((guid == null ? void 0 : guid.length) === 36 && /(.{8})-(.{4})-(.{4})-(.{4})-(.{12})/.test(guid)) {
    return guid;
  }

  return "";
};

exports.parseGuid = parseGuid;

var concatObjectPropsWithDelimeter = function concatObjectPropsWithDelimeter(object, propsToUse, delimeter, useSpace) {
  if (delimeter === void 0) {
    delimeter = ",";
  }

  if (useSpace === void 0) {
    useSpace = true;
  }

  var concatedString = "";
  var valuesToUse = [];
  propsToUse.forEach(function (prop) {
    var tempProp = object[prop];

    if (tempProp != null) {
      valuesToUse.push(tempProp);
    }
  });
  valuesToUse.forEach(function (value, index) {
    concatedString += value;

    if (index < valuesToUse.length - 1) {
      if (delimeter != null) {
        concatedString += delimeter;
      }

      if (useSpace) {
        concatedString += " ";
      }
    }
  });
  return concatedString;
};

exports.concatObjectPropsWithDelimeter = concatObjectPropsWithDelimeter;

var getAllAfterPrependHref = function getAllAfterPrependHref(prependHref, href) {
  var prependSlashCount = ((prependHref == null ? void 0 : prependHref.match(/\//g)) || []).length;
  return href.split("/").slice(prependSlashCount).join("/");
};

exports.getAllAfterPrependHref = getAllAfterPrependHref;

var getModuleNameFromHref = function getModuleNameFromHref(prependPath, href) {
  var pathArray = href.split("/");
  var moduleNamePosition = ((prependPath == null ? void 0 : prependPath.match(/\//g)) || []).length;
  var moduleName = moduleNamePosition < pathArray.length ? pathArray[moduleNamePosition] : "";
  var moduleHref = moduleNamePosition < pathArray.length ? pathArray.slice(0, moduleNamePosition + 1).join("/") : "";
  return [moduleName, moduleHref];
};

exports.getModuleNameFromHref = getModuleNameFromHref;

var stringifyWithoutQuotes = function stringifyWithoutQuotes(obj) {
  return JSON.stringify(obj).replace(/"/g, "");
};

exports.stringifyWithoutQuotes = stringifyWithoutQuotes;
;

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

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(parseGuid, "parseGuid", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(concatObjectPropsWithDelimeter, "concatObjectPropsWithDelimeter", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(getAllAfterPrependHref, "getAllAfterPrependHref", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(getModuleNameFromHref, "getModuleNameFromHref", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(stringifyWithoutQuotes, "stringifyWithoutQuotes", "/home/vsts/work/1/s/src/utils/parseHelper.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(parseGuid, "parseGuid", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(concatObjectPropsWithDelimeter, "concatObjectPropsWithDelimeter", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(getAllAfterPrependHref, "getAllAfterPrependHref", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(getModuleNameFromHref, "getModuleNameFromHref", "/home/vsts/work/1/s/src/utils/parseHelper.js");
  reactHotLoader.register(stringifyWithoutQuotes, "stringifyWithoutQuotes", "/home/vsts/work/1/s/src/utils/parseHelper.js");
})();

;

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