import { Component, h, Prop } from "@stencil/core";
export class IntergiroHistoryDetails {
  render() {
    let result;
    switch (this.history.type) {
      case "create":
        result = h("ig-authorization-history-create", { history: this.history });
        break;
      case "capture":
      case "refund":
        result = h("ig-authorization-history-capture", { history: this.history });
        break;
      case "void":
        result = h("ig-authorization-history-void", { history: this.history });
        break;
      case "verification":
        result = h("ig-authorization-history-verification", { history: this.history });
        break;
      default:
        return "";
    }
    return this.opened && h("td", { colSpan: 5 }, result);
  }
  static get is() { return "ig-history-details"; }
  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": ""
      }
    },
    "opened": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "opened",
      "reflect": false
    }
  }; }
}
