var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { UmbTextStyles } from '../../../style/index.js';
import { css, html, customElement } from '../../../../../external/lit/index.js';
import { UmbLitElement } from '../../../lit-element/index.js';
/**
 * A component that displays a "Forbidden" message when a user tries to access a route they do not have permission for.
 * This is typically used in routing scenarios where access control is enforced.
 * It informs the user that they do not have the necessary permissions to view the requested resource.
 * @element umb-route-forbidden
 */
let UmbRouteForbiddenElement = class UmbRouteForbiddenElement extends UmbLitElement {
    render() {
        return html `
			<div class="uui-text">
				<h4><umb-localize key="routing_routeForbiddenTitle">Access denied</umb-localize></h4>
				<umb-localize key="routing_routeForbiddenDescription">
					You do not have permission to access this resource. Please contact your administrator for assistance.
				</umb-localize>
			</div>
		`;
    }
    static { this.styles = [
        UmbTextStyles,
        css `
			:host {
				display: block;
				width: 100%;
				height: 100%;
				min-width: 0;
			}

			:host > div {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				height: 100%;
				opacity: 0;
				animation: fadeIn 2s 0s forwards;
			}

			@keyframes fadeIn {
				100% {
					opacity: 100%;
				}
			}
		`,
    ]; }
};
UmbRouteForbiddenElement = __decorate([
    customElement('umb-route-forbidden')
], UmbRouteForbiddenElement);
export { UmbRouteForbiddenElement };
export default UmbRouteForbiddenElement;
