"use strict";
function addPrefixToHeaderIcon(data) {
  if (Array.isArray(data)) {
    data.forEach((item) => addPrefixToHeaderIcon(item));
    return;
  }
  if (typeof data === "object" && data !== null) {
    for (const key in data) {
      if (key === "headerIcon" || key === "anchorIcon" && data.hasOwnProperty(key)) {
        const value = data[key];
        data[key] = "https://vv-1317974657.cos.ap-shanghai.myqcloud.com/headerIcon/" + (typeof value === "string" ? value : value != null ? String(value) : "");
      } else if (typeof data[key] === "object" && data[key] !== null) {
        addPrefixToHeaderIcon(data[key]);
      }
    }
  }
  return data;
}
exports.addPrefixToHeaderIcon = addPrefixToHeaderIcon;
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/addPrefixToHeaderIcon.js.map
