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 { MelodicComponent } from '@melodicdev/core';
import { pageSectionTemplate } from './page-section.template.js';
import { pageSectionStyles } from './page-section.styles.js';
/**
 * ml-page-section - Titled content section with consistent heading typography
 *
 * @example
 * ```html
 * <ml-page-section title="Recent Activity" subtitle="Last 7 days">
 *   <div>Section content here</div>
 * </ml-page-section>
 *
 * <ml-page-section title="Members" action-label="View All" action-href="/members">
 *   <div>Members list</div>
 * </ml-page-section>
 * ```
 *
 * @slot default - Section content
 * @slot action - Override for complex action content (replaces action-label link)
 *
 * @cssproperty --ml-page-section-title-font - Title font family (default: 'Cormorant Garamond', serif)
 * @cssproperty --ml-page-section-gap - Gap between header and content (default: var(--ml-space-4))
 */
let PageSectionComponent = class PageSectionComponent {
    constructor() {
        /** Section title */
        this.title = '';
        /** Subtitle text */
        this.subtitle = '';
        /** Action link label */
        this['action-label'] = '';
        /** Action link URL */
        this['action-href'] = '';
        /** Content padding */
        this.padding = 'md';
    }
    /** Check if action slot has content */
    get hasActionSlot() {
        return this.elementRef?.querySelector('[slot="action"]') !== null;
    }
};
PageSectionComponent = __decorate([
    MelodicComponent({
        selector: 'ml-page-section',
        template: pageSectionTemplate,
        styles: pageSectionStyles,
        attributes: ['title', 'subtitle', 'action-label', 'action-href', 'padding']
    })
], PageSectionComponent);
export { PageSectionComponent };
