import { Component, Element, h, Prop, State } from "@stencil/core";
import * as translation from "../../translation";
export class IntergiroAuthorizationHistoryVoid {
  componentWillLoad() {
    this.t = translation.create(this.element);
  }
  render() {
    return (this.history.type == "void" && [
      h("section", null,
        h("smoothly-display", null, this.t("status")),
        h("smoothly-display", null, this.t(this.history.status))),
      h("section", null,
        h("smoothly-display", null, this.t("merchant")),
        h("smoothly-display", null, this.history.merchant)),
      h("section", null,
        h("smoothly-display", null, this.t("number")),
        h("smoothly-display", null, this.history.number)),
      h("ig-authorization-history-error", { history: this.history }),
    ]);
  }
  static get is() { return "ig-authorization-history-void"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "history": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Authorization.History",
        "resolved": "Fail | Pending | Settlement | Success",
        "references": {
          "Authorization": {
            "location": "import",
            "path": "@payfunc/model-acquirer"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
  static get states() { return {
    "t": {}
  }; }
  static get elementRef() { return "element"; }
}
