"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.click = exports.hover = exports.identify = void 0;
exports.identify = (userAddress, userEmail) => {
    if (window === null || window === void 0 ? void 0 : window.heap) {
        window.heap.identify(userAddress);
        if (userEmail) {
            window.heap.addUserProperties({ email: userEmail });
        }
    }
};
exports.hover = (payload) => {
    return () => {
        return (window === null || window === void 0 ? void 0 : window.heap) && window.heap.track('hover', payload);
    };
};
exports.click = (payload) => {
    if (window === null || window === void 0 ? void 0 : window.heap) {
        window.heap.track('click', payload);
    }
};
//# sourceMappingURL=heap.js.map