import { Component, Element, h, Prop, State } from "@stencil/core";
import * as translation from "./translation";
export class CustomerSubscriptions {
  componentWillLoad() {
    this.t = translation.create(this.element);
  }
  render() {
    return this.customer.subscription && this.customer.subscription.length > 0 ? (this.customer.subscription.map(s => (h("customer-subscriptions-panel", { cosmetic: this.cosmetic, subscription: s })))) : (h("smoothly-display", null, this.t("No subscriptions exists.")));
  }
  static get is() { return "customer-subscriptions"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "customer": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Customer",
        "resolved": "Customer",
        "references": {
          "Customer": {
            "location": "import",
            "path": "@payfunc/model"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "orders": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Order[]",
        "resolved": "Order[]",
        "references": {
          "Order": {
            "location": "import",
            "path": "@payfunc/model"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "receipt": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean | undefined",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "receipt",
      "reflect": false
    },
    "component": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "\"app\" | \"subscription\"",
        "resolved": "\"app\" | \"subscription\" | undefined",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "component",
      "reflect": true
    },
    "cosmetic": {
      "type": "string",
      "mutable": true,
      "complexType": {
        "original": "| string\n\t\t| {\n\t\t\t\tfontFamily?: string\n\t\t\t\theader?: { background?: string; color?: string }\n\t\t\t\tbody?: { background?: string; color?: string }\n\t\t\t\tsuccess?: { background?: string; color?: string }\n\t\t  }",
        "resolved": "string | undefined | { fontFamily?: string | undefined; header?: { background?: string | undefined; color?: string | undefined; } | undefined; body?: { background?: string | undefined; color?: string | undefined; } | undefined; success?: { background?: string | undefined; color?: string | undefined; } | undefined; }",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "cosmetic",
      "reflect": false
    }
  }; }
  static get states() { return {
    "t": {}
  }; }
  static get elementRef() { return "element"; }
}
