var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
    function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
    var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
    var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
    var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
    var _, done = false;
    for (var i = decorators.length - 1; i >= 0; i--) {
        var context = {};
        for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
        for (var p in contextIn.access) context.access[p] = contextIn.access[p];
        context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
        var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
        if (kind === "accessor") {
            if (result === void 0) continue;
            if (result === null || typeof result !== "object") throw new TypeError("Object expected");
            if (_ = accept(result.get)) descriptor.get = _;
            if (_ = accept(result.set)) descriptor.set = _;
            if (_ = accept(result.init)) initializers.unshift(_);
        }
        else if (_ = accept(result)) {
            if (kind === "field") initializers.unshift(_);
            else descriptor[key] = _;
        }
    }
    if (target) Object.defineProperty(target, contextIn.name, descriptor);
    done = true;
};
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
    var useValue = arguments.length > 2;
    for (var i = 0; i < initializers.length; i++) {
        value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
    }
    return useValue ? value : void 0;
};
import { DeesElement, customElement, html, css, cssManager, property, } from '@design.estate/dees-element';
let SzConfigOverview = (() => {
    let _classDecorators = [customElement('sz-config-overview')];
    let _classDescriptor;
    let _classExtraInitializers = [];
    let _classThis;
    let _classSuper = DeesElement;
    let _heading_decorators;
    let _heading_initializers = [];
    let _heading_extraInitializers = [];
    let _infoText_decorators;
    let _infoText_initializers = [];
    let _infoText_extraInitializers = [];
    var SzConfigOverview = class extends _classSuper {
        static { _classThis = this; }
        static {
            const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
            _heading_decorators = [property({ type: String })];
            _infoText_decorators = [property({ type: String })];
            __esDecorate(this, null, _heading_decorators, { kind: "accessor", name: "heading", static: false, private: false, access: { has: obj => "heading" in obj, get: obj => obj.heading, set: (obj, value) => { obj.heading = value; } }, metadata: _metadata }, _heading_initializers, _heading_extraInitializers);
            __esDecorate(this, null, _infoText_decorators, { kind: "accessor", name: "infoText", static: false, private: false, access: { has: obj => "infoText" in obj, get: obj => obj.infoText, set: (obj, value) => { obj.infoText = value; } }, metadata: _metadata }, _infoText_initializers, _infoText_extraInitializers);
            __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
            SzConfigOverview = _classThis = _classDescriptor.value;
            if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
        }
        static demo = () => html `<sz-config-overview
    heading="Configuration"
    infoText="This is a read-only view of the current running configuration."
  >
    <div style="padding: 20px; text-align: center; color: #71717a; font-size: 14px;">
      Place &lt;sz-config-section&gt; elements here
    </div>
  </sz-config-overview>`;
        static demoGroups = ['Configuration'];
        #heading_accessor_storage = __runInitializers(this, _heading_initializers, '');
        get heading() { return this.#heading_accessor_storage; }
        set heading(value) { this.#heading_accessor_storage = value; }
        #infoText_accessor_storage = (__runInitializers(this, _heading_extraInitializers), __runInitializers(this, _infoText_initializers, ''));
        get infoText() { return this.#infoText_accessor_storage; }
        set infoText(value) { this.#infoText_accessor_storage = value; }
        static styles = [
            cssManager.defaultStyles,
            css `
      :host {
        display: block;
      }

      .heading {
        font-size: 20px;
        font-weight: 600;
        color: ${cssManager.bdTheme('#18181b', '#fafafa')};
        margin-bottom: 16px;
      }

      .info-banner {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 18px;
        margin-bottom: 20px;
        border-radius: 8px;
        background: ${cssManager.bdTheme('#eff6ff', 'rgba(59,130,246,0.08)')};
        border: 1px solid ${cssManager.bdTheme('#bfdbfe', 'rgba(59,130,246,0.2)')};
        color: ${cssManager.bdTheme('#1e40af', '#93c5fd')};
        font-size: 13px;
        line-height: 1.5;
      }

      .info-banner dees-icon {
        flex-shrink: 0;
        font-size: 18px;
        margin-top: 1px;
      }

      ::slotted(sz-config-section) {
        margin-bottom: 12px;
      }

      ::slotted(sz-config-section:last-child) {
        margin-bottom: 0;
      }
    `,
        ];
        render() {
            return html `
      ${this.heading ? html `<div class="heading">${this.heading}</div>` : ''}
      ${this.infoText ? html `
        <div class="info-banner">
          <dees-icon .icon=${'lucide:info'}></dees-icon>
          <span>${this.infoText}</span>
        </div>
      ` : ''}
      <slot></slot>
    `;
        }
        constructor() {
            super(...arguments);
            __runInitializers(this, _infoText_extraInitializers);
        }
        static {
            __runInitializers(_classThis, _classExtraInitializers);
        }
    };
    return SzConfigOverview = _classThis;
})();
export { SzConfigOverview };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3otY29uZmlnLW92ZXJ2aWV3LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfd2ViL2VsZW1lbnRzL3N6LWNvbmZpZy1vdmVydmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsT0FBTyxFQUNMLFdBQVcsRUFDWCxhQUFhLEVBQ2IsSUFBSSxFQUNKLEdBQUcsRUFDSCxVQUFVLEVBQ1YsUUFBUSxHQUVULE1BQU0sNkJBQTZCLENBQUM7SUFTeEIsZ0JBQWdCOzRCQUQ1QixhQUFhLENBQUMsb0JBQW9CLENBQUM7Ozs7c0JBQ0UsV0FBVzs7Ozs7OztnQ0FBbkIsU0FBUS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