// #region Imports
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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Themeable } from '../../../../Controls/Behaviors/Themeable';
import { Disableable } from '../../../Behaviors/Disableable';
import { Labelable } from '../../../Behaviors/Labelable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { HyperlinkUnderline } from '../../../Types/HyperlinkUnderline';
import { CustomElement } from '../../Abstracts/CustomElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { breadcrumbItemElementTemplate } from './BreadcrumbItemElementTemplate';
import { breadcrumbItemElementCosmopolitanStyle } from './Themes/BreadcrumbItemElement.Cosmopolitan';
import { breadcrumbItemElementJoyStyle } from './Themes/BreadcrumbItemElement.Joy';
import { breadcrumbItemElementMemphisStyle } from './Themes/BreadcrumbItemElement.Memphis';
// #endregion
/**
 * Breadcrumb Item - A component representing an individual link or label within a breadcrumb navigation trail.
 *
 * @description
 * The `Breadcrumb Item` component is used as a single element in a breadcrumb navigation trail. It can act as a link to navigate
 * to a previous section of the hierarchy or as a label for the current page. When an `href` is provided, the item renders as
 * an anchor link. Otherwise, it renders its slotted content directly. Breadcrumb items are commonly used in conjunction
 * with the `Breadcrumb` component to create a complete navigation trail.
 *
 * @name Breadcrumb Item
 * @element mosaik-breadcrumb-item
 * @category Navigation
 *
 * @slot label - The label content when using the anchor behavior.
 *
 * @csspart link - The anchor link element when href is provided.
 * @csspart label - The text label area of the anchor link.
 *
 * @cssprop {String} --breadcrumb-item-border-style - The item border style CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-family - The item font family CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-letter-spacing - The item font letter spacing CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-line-height - The item font line height CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-size - The item font size CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-text-decoration - The item font text decoration CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-text-transform - The item font text transform CSS custom property.
 * @cssprop {String} --breadcrumb-item-font-weight - The item font weight CSS custom property.
 * @cssprop {String} --breadcrumb-item-foreground-color - The item foreground color CSS custom property.
 * @cssprop {String} --breadcrumb-item-gap - The item gap CSS custom property.
 * @cssprop {String} --breadcrumb-item-padding-bottom - The item padding bottom CSS custom property.
 * @cssprop {String} --breadcrumb-item-padding-left - The item padding left CSS custom property.
 * @cssprop {String} --breadcrumb-item-padding-right - The item padding right CSS custom property.
 * @cssprop {String} --breadcrumb-item-padding-top - The item padding top CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow - The item shadow CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow-blur - The item shadow blur CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow-color - The item shadow color CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow-offset-x - The item shadow offset x CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow-offset-y - The item shadow offset y CSS custom property.
 * @cssprop {String} --breadcrumb-item-shadow-spread - The item shadow spread CSS custom property.
 * @cssprop {String} --breadcrumb-item-transition-duration - The item transition duration CSS custom property.
 * @cssprop {String} --breadcrumb-item-transition-mode - The item transition mode CSS custom property.
 * @cssprop {String} --breadcrumb-item-transition-property - The item transition property CSS custom property.
 * @cssprop {String} --breadcrumb-item-translate - The item translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Breadcrumb trail with slotted content:
 * ```html
 * <mosaik-breadcrumb>
 *   <mosaik-breadcrumb-item>Home</mosaik-breadcrumb-item>
 *   <mosaik-breadcrumb-item>Category</mosaik-breadcrumb-item>
 *   <mosaik-breadcrumb-item is-active>Current Page</mosaik-breadcrumb-item>
 * </mosaik-breadcrumb>
 * ```
 *
 * @example
 * Breadcrumb trail with anchor links for navigation:
 * ```html
 * <mosaik-breadcrumb>
 *   <mosaik-breadcrumb-item label="Home" href="/home"></mosaik-breadcrumb-item>
 *   <mosaik-breadcrumb-item label="Products" href="/products"></mosaik-breadcrumb-item>
 *   <mosaik-breadcrumb-item label="Details" is-active></mosaik-breadcrumb-item>
 * </mosaik-breadcrumb>
 * ```
 *
 * @public
 */
let BreadcrumbItemElement = class BreadcrumbItemElement extends Themeable(Variantable(Disableable(Labelable(CustomElement)))) {
    // #region Fields
    _isActive;
    _href;
    _download;
    _rel;
    _target;
    _underline;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._isActive = false;
        this._href = '';
        this._download = '';
        this._rel = '';
        this._target = '';
        this._underline = HyperlinkUnderline.Hover;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-breadcrumb-item';
    }
    /**
     * Gets or sets the `isActive` property.
     *
     * @public
     * @attr
     */
    get isActive() {
        return this._isActive;
    }
    set isActive(value) {
        if (this._isActive !== value) {
            this._isActive = value;
            this.requestUpdate('isActive');
        }
    }
    /**
     * Gets or sets the `href` property.
     * Contains a URL or a URL fragment that the hyperlink points to.
     *
     * @public
     */
    get href() {
        return this._href;
    }
    set href(value) {
        if (this._href !== value) {
            this._href = value;
            this.requestUpdate('href');
        }
    }
    /**
     * Gets or sets the `download` property.
     * Instructs browsers to download the URL instead of navigating to it.
     *
     * @public
     */
    get download() {
        return this._download;
    }
    set download(value) {
        if (this._download !== value) {
            this._download = value;
            this.requestUpdate('download');
        }
    }
    /**
     * Gets or sets the `rel` property.
     * Specifies the relationship of the target object to the link object.
     *
     * @public
     */
    get rel() {
        return this._rel;
    }
    set rel(value) {
        if (this._rel !== value) {
            this._rel = value;
            this.requestUpdate('rel');
        }
    }
    /**
     * Gets or sets the `target` property.
     * Specifies where to display the linked URL.
     *
     * @public
     */
    get target() {
        return this._target;
    }
    set target(value) {
        if (this._target !== value) {
            this._target = value;
            this.requestUpdate('target');
        }
    }
    /**
     * Gets or sets the `underline` property.
     * Determines when the underline is displayed on the link.
     *
     * @public
     * @attr underline
     */
    get underline() {
        return this._underline;
    }
    set underline(value) {
        if (this._underline !== value) {
            this._underline = value;
            this.requestUpdate('underline');
        }
    }
};
__decorate([
    Attribute({
        type: Boolean,
        useDefault: true
    }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], BreadcrumbItemElement.prototype, "isActive", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BreadcrumbItemElement.prototype, "href", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BreadcrumbItemElement.prototype, "download", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BreadcrumbItemElement.prototype, "rel", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BreadcrumbItemElement.prototype, "target", null);
__decorate([
    Attribute({ type: HyperlinkUnderline }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BreadcrumbItemElement.prototype, "underline", null);
BreadcrumbItemElement = __decorate([
    Component({
        selector: 'mosaik-breadcrumb-item',
        template: breadcrumbItemElementTemplate,
        themes: {
            joy: breadcrumbItemElementJoyStyle,
            memphis: breadcrumbItemElementMemphisStyle,
            cosmopolitan: breadcrumbItemElementCosmopolitanStyle
        },
        imports: [
            IconElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BreadcrumbItemElement);
export { BreadcrumbItemElement };
//# sourceMappingURL=BreadcrumbItemElement.js.map