/**
 * @param ms - milliseconds to delay
 * @returns Promise that resolves after the specified time
 */
var delay = function (ms) { return new Promise(function (resolve) { setTimeout(resolve, ms); }); };
var noop = function () {
    /** noop * */
};
var deleteNullish = function (obj) {
    var cleaned = {};
    Object.entries(obj).forEach(function (_a) {
        var key = _a[0], value = _a[1];
        if (value !== undefined && value !== null) {
            cleaned[key] = value;
        }
    });
    return cleaned;
};
function openURL(url) {
    var safeURL = url;
    if (safeURL) {
        if (!safeURL.startsWith('http://') && !safeURL.startsWith('https://')) {
            safeURL = 'https://' + safeURL;
        }
        window.open(safeURL, '_blank', 'noopener,noreferrer');
    }
}
function classnames() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    return args.filter(Boolean).join(' ');
}

export { delay as a, classnames as c, deleteNullish as d, noop as n, openURL as o };
//# sourceMappingURL=bundle-CDcu1I4f.js.map
