/**
 * @since Last modified: 2023-11-14 11:12:56
 * @function getClient
 * @description Determine what the user terminal is based on the browser width.
 * @returns {string}  - Return client type.
 * @see {@link https://codepen.io/axui/pen/OJdXdxM|demo @ codepen}
 * @example
 * ax.getClient();
 */
'use strict';
import ceils from './ceils';
const getClient = () => {
    let width = document.body.clientWidth, result = (width < ceils.phone) ? 'phone' :
        (width > ceils.phone && width < ceils.pad) ? 'pad' :
            (width > ceils.pad && width < ceils.flip) ? 'flip' :
                (width > ceils.flip && width < ceils.pro) ? 'pro' : 'pc';
    return result;
};
export default getClient;
