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';
import './sz-dns-ssl-card.js';
import './sz-quick-actions-card.js';
let SzStatusGridInfra = (() => {
    let _classDecorators = [customElement('sz-status-grid-infra')];
    let _classDescriptor;
    let _classExtraInitializers = [];
    let _classThis;
    let _classSuper = DeesElement;
    let _dnsConfigured_decorators;
    let _dnsConfigured_initializers = [];
    let _dnsConfigured_extraInitializers = [];
    let _acmeConfigured_decorators;
    let _acmeConfigured_initializers = [];
    let _acmeConfigured_extraInitializers = [];
    let _actions_decorators;
    let _actions_initializers = [];
    let _actions_extraInitializers = [];
    var SzStatusGridInfra = class extends _classSuper {
        static { _classThis = this; }
        static {
            const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
            _dnsConfigured_decorators = [property({ type: Boolean })];
            _acmeConfigured_decorators = [property({ type: Boolean })];
            _actions_decorators = [property({ type: Array })];
            __esDecorate(this, null, _dnsConfigured_decorators, { kind: "accessor", name: "dnsConfigured", static: false, private: false, access: { has: obj => "dnsConfigured" in obj, get: obj => obj.dnsConfigured, set: (obj, value) => { obj.dnsConfigured = value; } }, metadata: _metadata }, _dnsConfigured_initializers, _dnsConfigured_extraInitializers);
            __esDecorate(this, null, _acmeConfigured_decorators, { kind: "accessor", name: "acmeConfigured", static: false, private: false, access: { has: obj => "acmeConfigured" in obj, get: obj => obj.acmeConfigured, set: (obj, value) => { obj.acmeConfigured = value; } }, metadata: _metadata }, _acmeConfigured_initializers, _acmeConfigured_extraInitializers);
            __esDecorate(this, null, _actions_decorators, { kind: "accessor", name: "actions", static: false, private: false, access: { has: obj => "actions" in obj, get: obj => obj.actions, set: (obj, value) => { obj.actions = value; } }, metadata: _metadata }, _actions_initializers, _actions_extraInitializers);
            __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
            SzStatusGridInfra = _classThis = _classDescriptor.value;
            if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
        }
        static demo = () => html `
    <div style="padding: 24px; max-width: 1200px;">
      <sz-status-grid-infra
        dnsConfigured
        acmeConfigured
        .actions=${[
            { label: 'Deploy Service', icon: 'plus', primary: true },
            { label: 'View All Services' },
            { label: 'Platform Services' },
            { label: 'Manage Domains' },
        ]}
      ></sz-status-grid-infra>
    </div>
  `;
        static demoGroups = ['Dashboard Grids'];
        #dnsConfigured_accessor_storage = __runInitializers(this, _dnsConfigured_initializers, false);
        get dnsConfigured() { return this.#dnsConfigured_accessor_storage; }
        set dnsConfigured(value) { this.#dnsConfigured_accessor_storage = value; }
        #acmeConfigured_accessor_storage = (__runInitializers(this, _dnsConfigured_extraInitializers), __runInitializers(this, _acmeConfigured_initializers, false));
        get acmeConfigured() { return this.#acmeConfigured_accessor_storage; }
        set acmeConfigured(value) { this.#acmeConfigured_accessor_storage = value; }
        #actions_accessor_storage = (__runInitializers(this, _acmeConfigured_extraInitializers), __runInitializers(this, _actions_initializers, []));
        get actions() { return this.#actions_accessor_storage; }
        set actions(value) { this.#actions_accessor_storage = value; }
        static styles = [
            cssManager.defaultStyles,
            css `
      :host {
        display: block;
      }

      .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: stretch;
      }

      .grid > * {
        height: 100%;
      }

      @media (min-width: 768px) {
        .grid {
          grid-template-columns: 1fr 2fr;
        }
      }
    `,
        ];
        render() {
            return html `
      <div class="grid">
        <sz-dns-ssl-card
          ?dnsConfigured=${this.dnsConfigured}
          ?acmeConfigured=${this.acmeConfigured}
        ></sz-dns-ssl-card>
        <sz-quick-actions-card
          .actions=${this.actions}
          @action-click=${(e) => this.dispatchEvent(new CustomEvent('action-click', { detail: e.detail, bubbles: true, composed: true }))}
        ></sz-quick-actions-card>
      </div>
    `;
        }
        constructor() {
            super(...arguments);
            __runInitializers(this, _actions_extraInitializers);
        }
        static {
            __runInitializers(_classThis, _classExtraInitializers);
        }
    };
    return SzStatusGridInfra = _classThis;
})();
export { SzStatusGridInfra };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3otc3RhdHVzLWdyaWQtaW5mcmEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c193ZWIvZWxlbWVudHMvc3otc3RhdHVzLWdyaWQtaW5m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