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 SzDnsSslCard = (() => {
    let _classDecorators = [customElement('sz-dns-ssl-card')];
    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 = [];
    var SzDnsSslCard = 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 })];
            __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(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
            SzDnsSslCard = _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: 400px;">
      <sz-dns-ssl-card
        dnsConfigured
        acmeConfigured
      ></sz-dns-ssl-card>
    </div>
  `;
        static demoGroups = ['Network'];
        #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; }
        static styles = [
            cssManager.defaultStyles,
            css `
      :host {
        display: block;
        height: 100%;
      }

      .card {
        background: ${cssManager.bdTheme('#ffffff', '#09090b')};
        border: 1px solid ${cssManager.bdTheme('#e4e4e7', '#27272a')};
        border-radius: 8px;
        padding: 20px;
        height: 100%;
        box-sizing: border-box;
      }

      .header {
        margin-bottom: 16px;
      }

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

      .subtitle {
        font-size: 13px;
        color: ${cssManager.bdTheme('#71717a', '#a1a1aa')};
        margin-top: 2px;
      }

      .items {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .item-label {
        font-size: 14px;
        color: ${cssManager.bdTheme('#18181b', '#fafafa')};
      }

      .badge {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 9999px;
        font-size: 12px;
        font-weight: 500;
      }

      .badge.configured {
        background: ${cssManager.bdTheme('#dbeafe', 'rgba(59, 130, 246, 0.2)')};
        color: ${cssManager.bdTheme('#2563eb', '#60a5fa')};
      }

      .badge.not-configured {
        background: ${cssManager.bdTheme('#f4f4f5', '#27272a')};
        color: ${cssManager.bdTheme('#71717a', '#a1a1aa')};
      }
    `,
        ];
        render() {
            return html `
      <div class="card">
        <div class="header">
          <div class="title">DNS & SSL</div>
          <div class="subtitle">Configuration status</div>
        </div>

        <div class="items">
          <div class="item">
            <span class="item-label">Cloudflare DNS</span>
            <span class="badge ${this.dnsConfigured ? 'configured' : 'not-configured'}">
              ${this.dnsConfigured ? 'Configured' : 'Not configured'}
            </span>
          </div>
          <div class="item">
            <span class="item-label">ACME (Let's Encrypt)</span>
            <span class="badge ${this.acmeConfigured ? 'configured' : 'not-configured'}">
              ${this.acmeConfigured ? 'Configured' : 'Not configured'}
            </span>
          </div>
        </div>
      </div>
    `;
        }
        constructor() {
            super(...arguments);
            __runInitializers(this, _acmeConfigured_extraInitializers);
        }
        static {
            __runInitializers(_classThis, _classExt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