// #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 '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../Text/TextElement';
import { summaryElementTemplate } from './SummaryElementTemplate';
import { summaryElementCosmopolitanStyle } from './Themes/SummaryElement.Cosmopolitan';
import { summaryElementJoyStyle } from './Themes/SummaryElement.Joy';
import { summaryElementMemphisStyle } from './Themes/SummaryElement.Memphis';
// #endregion
/**
 * Summary - A semantic container for grouping related information with a header and content.
 *
 * @description
 * The Summary element provides a structured container using HTML fieldset/legend semantics for
 * grouping related form controls or information blocks. Features a prominent header (legend) and
 * flexible content slots for prefix/suffix elements. Ideal for creating labeled sections within
 * forms, settings panels, or information cards. The fieldset structure provides built-in accessibility
 * benefits for screen readers and assistive technologies.
 *
 * @name Summary
 * @element mosaik-summary
 * @category Primitives
 *
 * @slot - Default slot for additional content below the main container
 * @slot prefix - Content positioned before the main content
 * @slot suffix - Content positioned after the main content
 * @slot header - Custom header content (overrides header attribute, rendered as legend)
 * @slot content - Main content area (overrides content attribute)
 *
 * @csspart root - The fieldset root element
 * @csspart header - The legend header element
 * @csspart container - Container for prefix, content, and suffix
 * @csspart content - The main content text element
 *
 * @cssprop {String} --summary-gap - Spacing between elements (from gap mixin)
 *
 * @dependency {TextElement} - Text rendering component for content
 *
 * @example
 * Basic summary with text attributes:
 * ```html
 * <mosaik-summary
 *   header="Personal Information"
 *   content="Please provide your contact details">
 *   <input type="text" placeholder="Name">
 *   <input type="email" placeholder="Email">
 * </mosaik-summary>
 * ```
 *
 * @example
 * Summary with slotted content and prefix/suffix:
 * ```html
 * <mosaik-summary>
 *   <span slot="header">Account Settings</span>
 *   <mosaik-icon slot="prefix" data="settings-icon"></mosaik-icon>
 *   <div slot="content">
 *     <p>Configure your account preferences</p>
 *   </div>
 *   <mosaik-badge slot="suffix" label="3"></mosaik-badge>
 * </mosaik-summary>
 * ```
 *
 * @example
 * Form section grouping:
 * ```html
 * <form>
 *   <mosaik-summary header="Billing Address">
 *     <input type="text" name="street" placeholder="Street">
 *     <input type="text" name="city" placeholder="City">
 *     <input type="text" name="zip" placeholder="ZIP Code">
 *   </mosaik-summary>
 *
 *   <mosaik-summary header="Payment Method">
 *     <select name="payment">
 *       <option>Credit Card</option>
 *       <option>PayPal</option>
 *     </select>
 *   </mosaik-summary>
 * </form>
 * ```
 *
 * @public
 */
let SummaryElement = class SummaryElement extends Themeable(CustomElement) {
    // #region Fields
    _header;
    _content;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._header = '';
        this._content = '';
    }
    // #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-summary';
    }
    /**
     * Gets or sets the `header` property.
     *
     * @public
     */
    get header() {
        return this._header;
    }
    set header(value) {
        if (this._header !== value) {
            this._header = value;
            this.requestUpdate('header');
        }
    }
    /**
     * Gets or sets the `content` property.
     *
     * @public
     */
    get content() {
        return this._content;
    }
    set content(value) {
        if (this._content !== value) {
            this._content = value;
            this.requestUpdate('content');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], SummaryElement.prototype, "header", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], SummaryElement.prototype, "content", null);
SummaryElement = __decorate([
    Component({
        selector: 'mosaik-summary',
        template: summaryElementTemplate,
        themes: {
            joy: summaryElementJoyStyle,
            memphis: summaryElementMemphisStyle,
            cosmopolitan: summaryElementCosmopolitanStyle
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], SummaryElement);
export { SummaryElement };
//# sourceMappingURL=SummaryElement.js.map