import { r as registerIconLibrary } from './library-19af6c52.js';

const registerIcons = (path = '') => {
  var _a;
  if (!path && !((_a = window === null || window === void 0 ? void 0 : window.scIcons) === null || _a === void 0 ? void 0 : _a.path)) {
    return;
  }
  return registerIconLibrary('default', {
    resolver: function (name) {
      var _a;
      const iconPath = path || ((_a = window === null || window === void 0 ? void 0 : window.scIcons) === null || _a === void 0 ? void 0 : _a.path);
      return `${iconPath === null || iconPath === void 0 ? void 0 : iconPath.replace(/\/$/, '')}/${name}.svg`;
    },
    mutator: function (svg) {
      return svg.setAttribute('fill', 'none');
    },
  });
};
window.registerSureCartIconPath = registerIcons;
window.registerSureCartIconLibrary = registerIconLibrary;

registerIcons();
