// #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 { TextElement } from '../../Primitives/Text/TextElement';
import { anchorElementTemplate } from './AnchorElementTemplate';
import { anchorElementJoyStyle } from './Themes/AnchorElement.Joy';
import { anchorElementRetroStyle } from './Themes/AnchorElement.Retro';
import { anchorElementCosmopolitanStyle } from './Themes/AnchorElement.Cosmopolitan';
// #endregion
/**
 * Anchor - A component representing a hyperlink or clickable element that navigates to a different location.
 *
 * @description
 * The Anchor component provides a customizable hyperlink element that can be used for navigation or as a clickable link
 * in a user interface. It supports extensive styling options through CSS properties and can be used in various
 * contexts where linking or navigation is required.
 *
 * @name Anchor
 * @element mosaik-anchor
 * @category Links
 *
 * @slot label - The slot for the label or text content of the Anchor.
 *
 * @csspart link - The link part of the Anchor component.
 * @csspart label - The label part of the Anchor component.
 * @csspart focusRing - The focus ring part.
 *
 * @cssprop {String} --anchor-font-family - The font family for the Anchor component.
 * @cssprop {String} --anchor-font-size - The font size for the Anchor component.
 * @cssprop {String} --anchor-font-line-height - The line height for the Anchor component font.
 * @cssprop {String} --anchor-font-weight - The font weight for the Anchor component.
 * @cssprop {String} --anchor-font-letter-spacing - The letter spacing for the Anchor component font.
 * @cssprop {String} --anchor-font-text-decoration - The text decoration for the Anchor component font.
 * @cssprop {String} --anchor-font-text-transform - The text transform for the Anchor component font.
 * @cssprop {String} --anchor-background-color - The background color of the Anchor component.
 * @cssprop {String} --anchor-border-color - The border color of the Anchor component.
 * @cssprop {String} --anchor-foreground-color - The foreground color of the Anchor component.
 *
 * @dependency {TextElement} - The Text element.
 *
 * @example
 * ```html
 * <mosaik-anchor href="https://example.com">
 *   <span slot="label">Visit Example.com</span>
 * </mosaik-anchor>
 * ```
 *
 * @public
 */
let AnchorElement = class AnchorElement extends Themeable(Variantable(Disableable(Labelable(CustomElement)))) {
    // #region Fields
    _href;
    _download;
    _rel;
    _target;
    _underline;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._href = '';
        this._download = '';
        this._rel = '';
        this._target = '';
        this._underline = HyperlinkUnderline.Always;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-anchor';
    }
    /**
     * Gets or sets the `href` property.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @public
     * @attr
     */
    get underline() {
        return this._underline;
    }
    set underline(value) {
        if (this._underline !== value) {
            this._underline = value;
            this.requestUpdate('underline');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], AnchorElement.prototype, "href", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], AnchorElement.prototype, "download", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], AnchorElement.prototype, "rel", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], AnchorElement.prototype, "target", null);
__decorate([
    Attribute({ type: HyperlinkUnderline }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], AnchorElement.prototype, "underline", null);
AnchorElement = __decorate([
    Component({
        selector: 'mosaik-anchor',
        template: anchorElementTemplate,
        themes: {
            joy: anchorElementJoyStyle,
            retro: anchorElementRetroStyle,
            cosmopolitan: anchorElementCosmopolitanStyle
        },
        imports: [TextElement]
    }),
    __metadata("design:paramtypes", [])
], AnchorElement);
export { AnchorElement };
//# sourceMappingURL=AnchorElement.js.map