import { Component, Element, h, Prop, State } from "@stencil/core";
import * as translation from "../../translation";
export class IntergiroMerchantSingleInformation {
  componentWillLoad() {
    this.t = translation.create(this.element);
  }
  render() {
    var _a;
    return (this.merchant && [
      h("label", { color: "light" }, this.t("general information")),
      h("ig-merchant-information", { merchant: this.merchant }),
      h("section", null,
        h("section", null,
          h("smoothly-display", null, this.t("number")),
          h("smoothly-display", null, (_a = this.merchant.number) !== null && _a !== void 0 ? _a : this.t("none"))),
        h("section", null,
          h("smoothly-display", null, this.t("id")),
          h("smoothly-display", null, this.merchant.id)),
        h("section", null,
          h("smoothly-display", null, this.t("reference")),
          h("smoothly-display", null, this.merchant.reference)),
        h("section", null,
          h("smoothly-display", null, this.t("currency")),
          h("smoothly-display", null, this.merchant.currency))),
    ]);
  }
  static get is() { return "ig-merchant-single-information"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "merchant": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Merchant",
        "resolved": "Merchant | undefined",
        "references": {
          "Merchant": {
            "location": "import",
            "path": "@payfunc/model-acquirer"
          }
        }
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
  static get states() { return {
    "t": {}
  }; }
  static get elementRef() { return "element"; }
}
