/**
 * @since Last modified: 2024/04/20 14:48:57
 * @function getClientType
 * @description Determine what the user client is based on the browser width.
 * @returns {string}  - Returnuser client type.
 * @see {@link https://codepen.io/axui/pen/OJdXdxM|demo @ codepen}
 * @example
 * ax.getClientType();
 */
'use strict';
import ceils from './ceils';
const getClientType = () => {
    let width = document.body.clientWidth, result = (width < ceils.xs) ? 'phone' :
        (width > ceils.xs && width < ceils.sm) ? 'pad' :
            (width > ceils.sm && width < ceils.md) ? 'flip' :
                (width > ceils.md && width < ceils.lg) ? 'pro' : 'pc';
    return result;
};
export default getClientType;
