"use strict";

exports.__esModule = true;
exports.isMobileDevice = exports.MOBILE_USER_AGENT_REGEX = void 0;
const MOBILE_USER_AGENT_REGEX = exports.MOBILE_USER_AGENT_REGEX = /mobi/i;

/**
 * Detects if the current device is mobile based on user agent string.
 *
 * @returns true if the device is detected as mobile, false otherwise
 */
const isMobileDevice = () => {
  if (typeof navigator === 'undefined' || navigator.userAgent == null) {
    return false;
  }
  return MOBILE_USER_AGENT_REGEX.test(navigator.userAgent.toLowerCase());
};
exports.isMobileDevice = isMobileDevice;
//# sourceMappingURL=mobileDetection.js.map