"use strict";
exports.id = 177;
exports.ids = [177];
exports.modules = {

/***/ 9177:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Cy": () => (/* binding */ parseAddress),
/* harmony export */   "Gy": () => (/* binding */ getValueView),
/* harmony export */   "WF": () => (/* binding */ getTooltipValueView)
/* harmony export */ });
const getValueView = (value)=>{
    if (!value) return "";
    // Support old and new address format
    let addressJson;
    try {
        addressJson = JSON.parse(value);
    } catch (error) {}
    if (!addressJson) return value;
    let addressStr = "";
    for (const [key, value] of Object.entries(addressJson)){
        if (!value || !key) continue;
        addressStr += value + ", ";
    }
    return addressStr;
};
const getTooltipValueView = (value)=>{
    if (!value) return "";
    // Support old and new address format
    let addressJson;
    try {
        addressJson = JSON.parse(value);
    } catch (error) {}
    if (!addressJson) return value;
    let addressStr = "";
    for (const [key, value] of Object.entries(addressJson)){
        if (!value || !key) continue;
        addressStr += `${key}: ${value}\n`;
    }
    return addressStr;
};
/**
 * Support old and new address format
 */ const parseAddress = (address)=>{
    let addressString;
    let addressJson;
    if (address) {
        try {
            addressJson = JSON.parse(address);
        } catch (error) {}
        if (!addressJson) addressString = address;
        if (addressJson && typeof addressJson !== "object") {
            addressString = addressJson;
            addressJson = undefined;
        }
    }
    return {
        addressString,
        addressJson
    };
};


/***/ })

};
;