"use strict";

exports.__esModule = true;
exports.default = 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 insertIcons = function insertIcons(svgString) {
  var parser = new DOMParser();
  var iconDoc = parser.parseFromString(svgString, "image/svg+xml");
  var err = iconDoc.querySelector("parsererror");

  if (err) {
    console.error("SVG failed to parse: ", svgString);
    return;
  }
  /* istanbul ignore else */


  if (document.body !== null) {
    var body = document.body;
    var iconNode = iconDoc.querySelector("svg");
    /* istanbul ignore else */

    if (iconNode) {
      body.appendChild(iconNode);
    }
  } else {
    throw new Error("Document body not found");
  }
};

var _default = insertIcons;
var _default2 = _default;
var _default3 = _default2;
exports.default = _default3;
;

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

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(insertIcons, "insertIcons", "/home/vsts/work/1/s/src/utils/insertIcons.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/insertIcons.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(insertIcons, "insertIcons", "/home/vsts/work/1/s/src/utils/insertIcons.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/insertIcons.js");
})();

;

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