// #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 { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { footerElementTemplate } from './FooterElementTemplate';
import { footerElementJoyStyle } from './Themes/FooterElement.Joy';
import { footerElementMemphisStyle } from './Themes/FooterElement.Memphis';
import { footerElementCosmopolitanStyle } from './Themes/FooterElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Footer - A semantic footer component for page-level or section-level navigation and information.
 *
 * @description
 * The Footer element provides a structured layout for footer content with multiple slots for
 * organizing links, copyright information, branding, and additional content. Features top/bottom
 * sections for full-width content and start/end slots for multi-column layouts. Automatically
 * generates copyright text with the current year. Supports responsive breakpoints for layout
 * adjustments. Commonly used for site-wide footers, section footers, or card footers.
 *
 * @name Footer
 * @element mosaik-footer
 * @category Primitives
 *
 * @slot top - Full-width content area above the main footer section
 * @slot start - Left/start column content (navigation links, etc.)
 * @slot end - Right/end column content (additional links, social media, etc.)
 * @slot bottom - Full-width content area below the main footer section
 * @slot brand - Branding content (logo, company name) displayed with copyright
 * @slot copyright - Custom copyright text (overrides auto-generated copyright)
 *
 * @csspart footer - The footer semantic element
 * @csspart footer-main - Main container for start/end columns
 * @csspart footer-main-top - Top section containing start/end slots
 * @csspart footer-main-bottom - Bottom section containing copyright and brand
 * @csspart copyright - Copyright text element
 *
 * @example
 * Basic footer with auto-generated copyright:
 * ```html
 * <mosaik-footer brand="Acme Inc">
 *   <nav slot="start">
 *     <a href="/about">About</a>
 *     <a href="/contact">Contact</a>
 *   </nav>
 *   <nav slot="end">
 *     <a href="/privacy">Privacy</a>
 *     <a href="/terms">Terms</a>
 *   </nav>
 * </mosaik-footer>
 * ```
 *
 * @example
 * Footer with custom copyright and branding:
 * ```html
 * <mosaik-footer>
 *   <div slot="copyright">© 2024 My Company. All rights reserved.</div>
 *   <div slot="brand">
 *     <img src="logo.svg" alt="Company Logo">
 *   </div>
 *   <nav slot="start">
 *     <mosaik-footer-item-group label="Products">
 *       <mosaik-footer-item href="/product-a">Product A</mosaik-footer-item>
 *       <mosaik-footer-item href="/product-b">Product B</mosaik-footer-item>
 *     </mosaik-footer-item-group>
 *   </nav>
 * </mosaik-footer>
 * ```
 *
 * @example
 * Full-featured footer with all sections:
 * ```html
 * <mosaik-footer brand="Mosaik Design System">
 *   <div slot="top">
 *     <p>Join our newsletter for updates</p>
 *     <input type="email" placeholder="Email">
 *   </div>
 *
 *   <nav slot="start">
 *     <h3>Resources</h3>
 *     <a href="/docs">Documentation</a>
 *     <a href="/examples">Examples</a>
 *   </nav>
 *
 *   <nav slot="end">
 *     <h3>Connect</h3>
 *     <a href="/twitter">Twitter</a>
 *     <a href="/github">GitHub</a>
 *   </nav>
 *
 *   <div slot="bottom">
 *     <small>Built with ❤️ by the Mosaik team</small>
 *   </div>
 * </mosaik-footer>
 * ```
 *
 * @public
 */
let FooterElement = class FooterElement extends Themeable(CustomElement) {
    // #region Fields
    _copyright;
    _breakpoint;
    _brand;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._brand = '';
        this._copyright = `Copyright © ${new Date().getFullYear()} ${this._brand}`;
        this._breakpoint = '';
    }
    // #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-footer';
    }
    /**
     * Gets or sets the `brand` property.
     *
     * @public
     */
    get brand() {
        return this._brand;
    }
    set brand(value) {
        if (this._brand !== value) {
            this._brand = value;
            this.requestUpdate('brand');
        }
    }
    /**
     * Gets or sets the `copyright` property.
     *
     * @public
     */
    get copyright() {
        return this._copyright;
    }
    set copyright(value) {
        if (this._copyright !== value) {
            this._copyright = value;
            this.requestUpdate('copyright');
        }
    }
    /**
     * Gets or sets the `breakpoint` property.
     *
     * @public
     * @attr
     */
    get breakpoint() {
        return this._breakpoint;
    }
    set breakpoint(value) {
        if (this._breakpoint !== value) {
            this._breakpoint = value;
            this.requestUpdate('breakpoint');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "brand", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "copyright", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "breakpoint", null);
FooterElement = __decorate([
    Component({
        selector: 'mosaik-footer',
        template: footerElementTemplate,
        themes: {
            joy: footerElementJoyStyle,
            memphis: footerElementMemphisStyle,
            cosmopolitan: footerElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], FooterElement);
export { FooterElement };
//# sourceMappingURL=FooterElement.js.map