"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SafeAreaInsetsHelpers = void 0;
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Utilities
 */
const SafeAreaInsets_1 = require("../../safearea/SafeAreaInsets");
/** @internal */
class SafeAreaInsetsHelpers {
    static isBottom(flags) {
        return SafeAreaInsets_1.SafeAreaInsets.Bottom.valueOf() === (flags & SafeAreaInsets_1.SafeAreaInsets.Bottom);
    }
    static isLeft(flags) {
        return SafeAreaInsets_1.SafeAreaInsets.Left.valueOf() === (flags & SafeAreaInsets_1.SafeAreaInsets.Left);
    }
    static isRight(flags) {
        return SafeAreaInsets_1.SafeAreaInsets.Right.valueOf() === (flags & SafeAreaInsets_1.SafeAreaInsets.Right);
    }
    static isTop(flags) {
        return SafeAreaInsets_1.SafeAreaInsets.Top.valueOf() === (flags & SafeAreaInsets_1.SafeAreaInsets.Top);
    }
}
exports.SafeAreaInsetsHelpers = SafeAreaInsetsHelpers;
SafeAreaInsetsHelpers.getCssClassNames = (flags) => {
    return {
        "nz-safe-area-bottom": SafeAreaInsetsHelpers.isBottom(flags),
        "nz-safe-area-left": SafeAreaInsetsHelpers.isLeft(flags),
        "nz-safe-area-right": SafeAreaInsetsHelpers.isRight(flags),
        "nz-safe-area-top": SafeAreaInsetsHelpers.isTop(flags),
    };
};
//# sourceMappingURL=SafeAreaInsets.js.map