"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serializeProperties = exports.setMbox3rdPartyId = exports.setPageParams = exports.getPageParams = void 0;
function getPageParams() {
    return window.pageParams;
}
exports.getPageParams = getPageParams;
function setPageParams(params) {
    return (window.pageParams = { ...window.pageParams, ...params });
}
exports.setPageParams = setPageParams;
function setMbox3rdPartyId(id) {
    setPageParams({ mbox3rdPartyId: id });
}
exports.setMbox3rdPartyId = setMbox3rdPartyId;
function serializeProperties(props) {
    if (props === undefined) {
        return {};
    }
    const serialized = {};
    for (const key in props) {
        serialized[key] = props[key];
        if (Array.isArray(props[key])) {
            serialized[key] = JSON.stringify(props[key]);
        }
    }
    return serialized;
}
exports.serializeProperties = serializeProperties;
//# sourceMappingURL=utils.js.map