/**
 * @name isMobile
 * @description A method that returns if the browser used to access the app is from a mobile device or not
 * @param {String} userAgent window.navigator.userAgent
 * @returns {Boolean} true or false
 */
export const isMobile = (userAgent) => {
    return !!(userAgent.toLowerCase().match(/android/i) ||
        userAgent.toLowerCase().match(/blackberry|bb/i) ||
        userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
        userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
};
export const generateUUID = () => {
    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
        return v.toString(16);
    });
};
