import { r as registerInstance, h, g as getElement, c as createEvent } from './index-08b73e9e.js';
import { c as create } from './index-30b826ad.js';
import { d as dist } from './index-3cf720d3.js';
import { d as dist$1 } from './index-8ba22472.js';
import { P as PhoneNumbers, A as Addresses, E as EmailAddresses, N as Name } from './Item-f4cbd6f4.js';
import './index-945f930d.js';
import './Credentials-b84c0c5f.js';
import './Token-ba2c5d5c.js';
import './index-a0a71287.js';
import { A as Authorization } from './index-2d6441ea.js';
import './ok-c9833bf3.js';
import './index-c2c33860.js';
import './index-8e333ab5.js';
import './index-f77ff597.js';
import { a as itemToAmount } from './model-40d54c5a.js';
import { c as create$1 } from './index-86b46652.js';
import { c as create$2 } from './index-f9034522.js';
import './_commonjsHelpers-9943807e.js';
import './index-1f953d81.js';
import './TextDecoder-357ac2ce.js';
import './index-714bb39b.js';
import './index-063af7ee.js';

const styleCss$f = ".sc-ig-authorization-amount-h{display:block;padding:1em 5%}.sc-ig-authorization-amount-h>section.sc-ig-authorization-amount{display:-ms-flexbox;display:flex;-ms-flex-flow:column wrap;flex-flow:column wrap;max-height:3.5em;padding-bottom:1em;width:60%}.sc-ig-authorization-amount-h>section.sc-ig-authorization-amount>.sc-ig-authorization-amount:nth-child(odd){font-weight:bold}.sc-ig-authorization-amount-h>section.sc-ig-authorization-amount>.sc-ig-authorization-amount:nth-child(odd)::first-letter{text-transform:capitalize}";

const IntergiroAuthorizationAmount = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    const totals = {
      authorized: this.state.authorization.amount,
      captured: this.state.authorization.captured.amount,
      refunded: this.state.authorization.refunded.amount,
    };
    return [
      h("section", null, Object.keys(totals).map(t => [
        h("smoothly-display", { type: "text" }, this.t(t)),
        h("smoothly-display", { type: "price", value: totals[t], currency: this.state.authorization.currency }),
      ])),
      h("ig-authorization-amount-table", { state: this.state, "settlement-currency": this.settlementCurrency, "cost-plus": this.costPlus }),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationAmount.style = styleCss$f;

const styleCss$e = ".sc-ig-authorization-amount-table-h{display:inline-block;margin:auto;background-color:rgb(var(--smoothly-default-color));border:1px solid rgb(var(--smoothly-medium-color));padding-bottom:.2em;width:100%}[hidden].sc-ig-authorization-amount-table-h{display:none}.sc-ig-authorization-amount-table-h>table.sc-ig-authorization-amount-table{width:100%}.sc-ig-authorization-amount-table-h>table.sc-ig-authorization-amount-table>th.sc-ig-authorization-amount-table{width:5em;text-align:left;padding:0.4em 0.5em;text-transform:capitalize}tr.sc-ig-authorization-amount-table>*.sc-ig-authorization-amount-table:nth-child(n+4),.sc-ig-authorization-amount-table-h>table.sc-ig-authorization-amount-table>th.sc-ig-authorization-amount-table:nth-child(n+4){text-align:right}.sc-ig-authorization-amount-table-h>table.sc-ig-authorization-amount-table>tr.sc-ig-authorization-amount-table>*.sc-ig-authorization-amount-table:nth-child(3),.sc-ig-authorization-amount-table-h>table.sc-ig-authorization-amount-table>th.sc-ig-authorization-amount-table:nth-of-type(3){overflow:visible;padding-left:2.5em}tr.sc-ig-authorization-amount-table>*.sc-ig-authorization-amount-table{display:table-cell;text-align:left;padding:0.2em .5em;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}tr.sc-ig-authorization-amount-table>smoothly-display.sc-ig-authorization-amount-table:first-of-type{text-transform:capitalize}tr.sc-ig-authorization-amount-table:last-child>smoothly-display.sc-ig-authorization-amount-table{border-top:solid 1px rgb(var(--smoothly-light-color));text-align:right}tr.sc-ig-authorization-amount-table:last-child>label.sc-ig-authorization-amount-table{text-align:center;font-weight:bold;text-transform:capitalize;padding-left:.5em}";

const IntergiroAuthorizationAmountTable = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    var _a;
    const t = this.t;
    const history = [
      { date: this.state.authorization.created, type: t("authorization"), amount: this.state.authorization.amount },
    ];
    this.state.authorization.voided && history.push({ date: this.state.authorization.voided, type: t("cancellation") });
    (_a = this.state.authorization.change) === null || _a === void 0 ? void 0 : _a.forEach(a => history.push({ date: a.created, type: t("authorization"), amount: a.amount }));
    this.state.authorization.captured.history.forEach(c => history.push({ date: c.created, type: t("capture"), amount: c.amount, settlement: c.settlement }));
    this.state.authorization.refunded.history.forEach(r => history.push({ date: r.created, type: t("refund"), amount: r.amount, settlement: r.settlement }));
    const gross = dist.Currency.round(history.reduce((r, v) => (v.settlement ? (r += v.settlement.gross) : r), 0), this.settlementCurrency);
    const fee = dist.Currency.round(history.reduce((r, v) => v.settlement ? (r += typeof v.settlement.fee == "object" ? v.settlement.fee.total : v.settlement.fee) : r, 0), this.settlementCurrency);
    const schemeFee = this.costPlus
      ? dist.Currency.round(history.reduce((r, v) => (v.settlement ? (r += typeof v.settlement.fee == "object" ? v.settlement.fee.scheme : 0) : r), 0), this.settlementCurrency)
      : 0;
    const net = dist.Currency.round(history.reduce((r, v) => (v.settlement ? (r += v.settlement.net) : r), 0), this.settlementCurrency);
    return (h("table", null, h("th", { color: "light" }, t("type")), h("th", { color: "light" }, t("created")), h("th", { color: "light" }, t("settled")), h("th", { color: "light" }, t("amount")), h("th", { color: "light" }, t("gross")), h("th", { color: "light" }, t("fee")), this.costPlus && h("th", { color: "light" }, t("interchange")), h("th", { color: "light" }, t("net")), history
      .sort((a, b) => dist.DateTime.parse(a.date).getTime() - dist.DateTime.parse(b.date).getTime())
      .map(a => (h("tr", null, h("smoothly-display", null, a === null || a === void 0 ? void 0 : a.type), h("smoothly-display-date-time", { datetime: dist.DateTime.localize(a.date) }), h("smoothly-display-date-time", { datetime: dist.DateTime.localize(a.settlement ? a.settlement.created : "-") }), h("smoothly-display-amount", { amount: a.amount, currency: this.state.authorization.currency }), a.settlement
      ? [
        h("smoothly-display-amount", { amount: a.settlement.gross, currency: this.settlementCurrency }),
        h("smoothly-display-amount", { amount: typeof a.settlement.fee == "object" ? a.settlement.fee.total : a.settlement.fee, currency: this.settlementCurrency }),
        this.costPlus && (h("smoothly-display-amount", { amount: schemeFee, currency: this.state.authorization.currency })),
        h("smoothly-display-amount", { amount: a.settlement.net, currency: this.settlementCurrency }),
      ]
      : [h("p", null, "-"), h("p", null, "-"), this.costPlus && h("p", null, "-"), h("p", null, "-")]))), h("tr", { style: { height: "1em" } }), h("tr", null, h("td", null), h("td", null), h("td", null), h("label", null, t("settled ")), h("smoothly-display", { type: gross > 0 ? "price" : "text", value: gross > 0 ? gross : "-", currency: this.state.authorization.currency }), h("smoothly-display", { type: fee > 0 ? "price" : "text", value: fee > 0 ? fee : "-", currency: this.state.authorization.currency }), this.costPlus && (h("smoothly-display", { type: schemeFee > 0 ? "price" : "text", value: schemeFee > 0 ? schemeFee : "-", currency: this.state.authorization.currency })), h("smoothly-display", { type: net > 0 ? "price" : "text", value: net > 0 ? net : "-", currency: this.state.authorization.currency }))));
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationAmountTable.style = styleCss$e;

const styleCss$d = ".sc-ig-authorization-card-h{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;padding:1em;padding-left:4.5em}.sc-ig-authorization-card-h>section.sc-ig-authorization-card{width:50%}.sc-ig-authorization-card-h>section.sc-ig-authorization-card>*.sc-ig-authorization-card:first-child{font-weight:bold}.sc-ig-authorization-card-h>section.sc-ig-authorization-card>*.sc-ig-authorization-card:first-child::first-letter{text-transform:capitalize}";

const IntergiroAuthorizationCard = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  render() {
    const card = this.value.authorization.card;
    const descriptor = this.value.authorization.descriptor;
    return card ? ([
      h("section", null, h("smoothly-display", null, this.t("scheme")), h("smoothly-display", null, card.scheme)),
      h("section", null, h("smoothly-display", null, this.t("number")), h("smoothly-display", null, dist$1.format(card.iin + "******" + card.last4, "card-number"))),
      h("section", null, h("smoothly-display", null, this.t("expires")), h("smoothly-display", null, typeof card.expires == "string" ? card.expires : dist$1.format(card.expires, "card-expires"))),
      descriptor && (h("section", null, h("smoothly-display", null, this.t("descriptor")), h("smoothly-display", null, descriptor))),
    ]) : (h("p", null, "There is no card information available"));
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationCard.style = styleCss$d;

const styleCss$c = ".sc-ig-authorization-details-h{display:table-row}.sc-ig-authorization-details-h>td.sc-ig-authorization-details{border-top:solid 1px rgb(var(--smoothly-medium-shade));border-bottom:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));padding:0 1em}.table.sc-ig-authorization-details{background-color:rgb(var(--smoothly-default-color));max-width:70em;margin:1em auto}";

const IntergiroAuthorizationDetails = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.abbreviated = false;
  }
  render() {
    var _a;
    let result;
    switch (this.opened) {
      case "amount":
        result = (h("ig-authorization-amount", { state: Authorization.is(this.state) ? this.state : undefined, "settlement-currency": (_a = this.merchant) === null || _a === void 0 ? void 0 : _a.currency, "cost-plus": this.costPlus }));
        break;
      case "number":
        result = (h("ig-number-details", { number: this.state.authorization.number, identifier: this.state.authorization.id, reference: Authorization.is(this.state) ? this.state.authorization.reference : undefined }));
        break;
      case "card":
        result = h("ig-authorization-card", { value: this.state });
        break;
      case "merchant":
        result = (h("ig-merchant-table", { class: "table", abbrivated: true, merchants: this.merchant ? [this.merchant] : [] }));
        break;
      case "history":
        result = h("ig-authorization-history", { state: this.state });
        break;
      default:
        return "";
    }
    return h("td", { colSpan: this.abbreviated ? 7 : 8 }, result);
  }
};
IntergiroAuthorizationDetails.style = styleCss$c;

const styleCss$b = ".sc-ig-authorization-history-h{display:block;margin:auto;padding:1em;max-width:60em}[hidden].sc-ig-authorization-history-h{display:none}.sc-ig-authorization-history-h>table.sc-ig-authorization-history{background-color:rgb(var(--smoothly-default-color));border:1px solid rgb(var(--smoothly-medium-color));width:100%}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history:hover{-webkit-box-shadow:var(--smoothly-shadow);box-shadow:var(--smoothly-shadow);border-top-color:rgb(var(--smoothly-medium-color));border-bottom-color:rgb(var(--smoothly-medium-color))}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>th.sc-ig-authorization-history{display:table-cell;text-align:left;padding:0.3em .5em;text-transform:capitalize}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history:first-child,.sc-ig-authorization-history-h>table.sc-ig-authorization-history>th.sc-ig-authorization-history:first-child{width:10em}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history:nth-of-type(2),.sc-ig-authorization-history-h>table.sc-ig-authorization-history>th.sc-ig-authorization-history:nth-of-type(2){width:30em}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history:first-child{display:inline-block}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history>*.sc-ig-authorization-history:not(section){padding-left:.3em}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history>section.sc-ig-authorization-history>*.sc-ig-authorization-history:not(smoothly-icon){padding:0.5em 0.3em;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:3em;display:inline-block;text-transform:capitalize}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history>section.sc-ig-authorization-history>smoothly-icon.sc-ig-authorization-history{display:inline-block;vertical-align:middle;margin-left:.3em}.sc-ig-authorization-history-h>table.sc-ig-authorization-history>tr.sc-ig-authorization-history>td.sc-ig-authorization-history>.openable.sc-ig-authorization-history:hover{background-color:rgb(var(--smoothly-dark-shade));cursor:pointer}.opened.sc-ig-authorization-history{-webkit-box-sizing:border-box;box-sizing:border-box;border:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));border-bottom:2.5px solid rgb(var(--smoothly-dark-shade));margin-bottom:-2.2px;margin-top:-1px}section.opened.sc-ig-authorization-history{border-left:none}";

const IntergiroAuthorizationHistory = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.opened = {};
  }
  componentWillLoad() {
    this.t = create$1(this.element);
  }
  toggleColumn(index, column) {
    const opened = this.opened;
    opened[index] == column ? delete opened[index] : (opened[index] = column);
    this.opened = Object.assign({}, opened);
  }
  getVerification(value) {
    return value ? this.t(value == "verified" ? value : "verification " + value) : undefined;
  }
  getDescription(attempt) {
    let result = "";
    switch (attempt.type) {
      case "create":
        const amount = attempt.status == "success"
          ? this.state.authorization.amount + " " + this.state.authorization.currency
          : attempt.status == "fail" && attempt.amount && attempt.currency
            ? attempt.amount + " " + attempt.currency
            : undefined;
        result += amount !== null && amount !== void 0 ? amount : "";
        result += "reason" in attempt ? " " + this.t(attempt.reason) : "";
        result += "verification" in attempt ? ", " + this.getVerification(attempt.verification) : "";
        break;
      case "capture":
      case "refund":
        result += attempt.amount + " " + attempt.currency + ("reason" in attempt ? ", " + this.t(attempt.reason) : "");
        break;
      case "void":
        result += "reason" in attempt ? this.t(attempt.reason) : "";
        break;
      case "verification":
        result +=
          itemToAmount(attempt.items) +
            " " +
            attempt.currency +
            ("reason" in attempt ? ", " + this.t(attempt.reason) : "");
        break;
    }
    return result;
  }
  render() {
    const history = this.state.authorization.history;
    return (history.length > 0 && (h("table", null, h("th", { color: "light" }, this.t("type")), h("th", { color: "light" }, this.t("description")), h("th", { color: "light" }, this.t("date")), history.map((attempt, index) => {
      return [
        h("tr", null, h("td", null, h("section", { class: "openable" + (this.opened[index] ? " opened" : ""), onClick: () => this.toggleColumn(index, "type") }, h("smoothly-icon", { toolTip: this.t(attempt.status), size: "small", name: attempt.status == "success"
            ? "checkmark-circle"
            : attempt.status == "fail"
              ? "warning"
              : "hourglass", color: attempt.status == "success" ? "success" : attempt.status == "fail" ? "danger" : "warning", fill: "clear" }), h("smoothly-display", null, this.t(attempt.type)))), h("td", null, h("smoothly-display", null, this.getDescription(attempt))), h("td", null, h("smoothly-display-date-time", { datetime: attempt.date }))),
        h("ig-history-details", { history: attempt, opened: !!this.opened[index] }),
      ];
    }))));
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationHistory.style = styleCss$b;

const styleCss$a = ".sc-ig-authorization-history-capture-h{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:4.5em}.sc-ig-authorization-history-capture-h>section.sc-ig-authorization-history-capture{min-width:30%;padding-bottom:.5em;text-transform:capitalize}.sc-ig-authorization-history-capture-h>section.sc-ig-authorization-history-capture>*.sc-ig-authorization-history-capture{text-align:left;width:80%;margin:0;white-space:nowrap}.sc-ig-authorization-history-capture-h>section.sc-ig-authorization-history-capture>*.sc-ig-authorization-history-capture:first-child{font-weight:bold;text-transform:capitalize}.sc-ig-authorization-history-capture-h>section.sc-ig-authorization-history-capture>*.sc-ig-authorization-history-capture:last-child{white-space:normal}";

const IntergiroAuthorizationHistoryCapture = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create$1(this.element);
  }
  render() {
    return ((this.history.type == "capture" || this.history.type == "refund") && [
      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)),
      this.history.status == "success" && (h("section", null, h("smoothly-display", null, this.t("reference")), h("smoothly-display", null, this.history.reference))),
      h("ig-authorization-history-error", { history: this.history }),
    ]);
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationHistoryCapture.style = styleCss$a;

const styleCss$9 = ".sc-ig-authorization-history-create-h{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:4.5em}.sc-ig-authorization-history-create-h>section.sc-ig-authorization-history-create{min-width:30%;padding-bottom:.5em;text-transform:capitalize}.sc-ig-authorization-history-create-h>section.sc-ig-authorization-history-create>*.sc-ig-authorization-history-create{text-align:left;width:80%;margin:0;white-space:nowrap}.sc-ig-authorization-history-create-h>section.sc-ig-authorization-history-create>*.sc-ig-authorization-history-create:first-child{font-weight:bold}.sc-ig-authorization-history-create-h>section.sc-ig-authorization-history-create>*.sc-ig-authorization-history-create:first-child::first-letter{text-transform:capitalize}.sc-ig-authorization-history-create-h>section.sc-ig-authorization-history-create>*.sc-ig-authorization-history-create:last-child{white-space:normal}";

const IntergiroAuthorizationHistoryCreate = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create$1(this.element);
  }
  render() {
    var _a;
    return (this.history.type == "create" && [
      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)),
      this.history.status != "success" && [
        this.history.rule && (h("section", null, h("smoothly-display", null, this.t("rules")), this.history.rule.map(r => (h("smoothly-display", null, r))))),
        this.history.card && (h("section", null, h("smoothly-display", null, this.t("card")), h("smoothly-display", null, this.history.card.scheme + " " + ((_a = this.history.card.type) !== null && _a !== void 0 ? _a : "")), h("smoothly-display", { type: "card-number", value: this.history.card.iin + "******" + this.history.card.last4 }), this.history.card.csc && (h("smoothly-display", { type: "text", value: "CSC " + this.history.card.csc })), h("smoothly-display", { type: "card-expires", value: this.history.card.expires }))),
        this.history.descriptor && (h("section", null, h("smoothly-display", null, this.t("descriptor")), h("smoothly-display", null, this.history.descriptor))),
        this.history.recurring && (h("section", null, h("smoothly-display", null, this.t("recurring")), h("smoothly-display", null, typeof this.history.recurring == "string" ? this.history.recurring : this.history.recurring.type))),
      ],
      this.history.status == "fail" && [
        this.history.verification && (h("section", null, h("smoothly-display", null, this.t("verification")), h("smoothly-display", null, this.history.verification))),
      ],
      h("ig-authorization-history-error", { history: this.history }),
    ]);
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationHistoryCreate.style = styleCss$9;

const styleCss$8 = ".sc-ig-authorization-history-verification-h{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:4.5em}.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification{min-width:30%;padding-bottom:0.5em;text-transform:capitalize}.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification>*.sc-ig-authorization-history-verification{text-align:left;width:80%;margin:0;white-space:nowrap}.sc-ig-authorization-history-verification-h>section.details.sc-ig-authorization-history-verification,.sc-ig-authorization-history-verification-h>details.sc-ig-authorization-history-verification{width:100%}.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification:not(.details)>*.sc-ig-authorization-history-verification:first-child,.sc-ig-authorization-history-verification-h details.sc-ig-authorization-history-verification>summary.sc-ig-authorization-history-verification{font-weight:bold;cursor:pointer}.sc-ig-authorization-history-verification-h>details.sc-ig-authorization-history-verification>summary.sc-ig-authorization-history-verification,.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification>*.sc-ig-authorization-history-verification:first-child::first-letter{text-transform:capitalize}.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification>details.sc-ig-authorization-history-verification>pre.sc-ig-authorization-history-verification,.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification>*.sc-ig-authorization-history-verification:last-child{white-space:normal}.sc-ig-authorization-history-verification-h>section.items.sc-ig-authorization-history-verification,.sc-ig-authorization-history-verification-h>section.sc-ig-authorization-history-verification>ig-items-list.sc-ig-authorization-history-verification{width:100%}";

const IntergiroAuthorizationHistoryVerification = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create$1(this.element);
  }
  render() {
    var _a;
    const history = this.history;
    return (history.type == "verification" && [
      h("section", null, h("smoothly-display", null, this.t("status")), h("smoothly-display", null, this.t(history.status))),
      (history.response.challenge || history.response.method || history.status == "success") && (h("section", null, h("smoothly-display", null, "3D"), history.response.challenge ? "3D2 challenge" : history.response.method ? "3D2 method" : "3D1")),
      h("section", null, h("smoothly-display", null, this.t("merchant")), h("smoothly-display", null, history.merchant)),
      h("section", null, h("smoothly-display", null, this.t("number")), h("smoothly-display", null, history.number)),
      h("section", null, h("smoothly-display", null, this.t("step")), h("smoothly-display", null, history.step)),
      h("section", { class: typeof history.items != "number" ? "items" : "" }, h("smoothly-display", null, this.t("items")), typeof history.items == "number" ? (h("smoothly-display-amount", { amount: history.items, currency: history.currency })) : (h("ig-items-list", { items: history.items, currency: history.currency }))),
      history.recurring && (h("section", null, h("smoothly-display", null, this.t("recurring")), h("smoothly-display", null, typeof history.recurring == "string" ? history.recurring : history.recurring.type))),
      history.contact && Object.entries(history.contact).length > 0 && (h("section", null, h("smoothly-display", null, this.t("customer")), history.contact.type && (h("smoothly-display", { type: "text", value: this.t("Type") + ": " + history.contact.type })), history.contact.name && (h("smoothly-display", { type: "text", value: this.t("name") + " " + Name.get(history.contact.name) })), ((_a = history.contact) === null || _a === void 0 ? void 0 : _a.email) && (h("smoothly-display", { type: "email", value: EmailAddresses.is(history.contact.email) ? history.contact.email.primary : history.contact.email })), history.contact.address && (h("ig-address-display", { value: Addresses.is(history.contact.address) ? history.contact.address.primary : history.contact.address })), history.contact.phone && (h("smoothly-display", { type: "phone", value: PhoneNumbers.is(history.contact.phone) ? history.contact.phone.primary : history.contact.phone })), history.contact.id && h("smoothly-display", { value: "ID: " + history.contact.id }))),
      h("ig-authorization-history-error", { history: this.history }),
      history.browser && Object.entries(history.browser).length > 0 && (h("details", null, h("summary", null, this.t("browser")), h("section", null, Object.entries(history.browser).map(value => (h("smoothly-display", { type: "text", value: value[0] + ": " + value[1] })))))),
      h("details", null, h("summary", null, this.t("target")), h("section", null, h("smoothly-display", null, history.target))),
      h("details", null, h("summary", null, this.t("response")), h("section", { class: "response" }, Object.entries(history.response).map(value => [
        h("smoothly-display", { style: { fontWeight: "bold", textTransform: "capitalize" }, type: "text", value: value[0] + ": " }),
        typeof value[1] == "object"
          ? Object.entries(value[1]).map(value => (h("smoothly-display", { style: { marginLeft: "1em" }, type: "text", value: value[0] + ": " + value[1] })))
          : value[1],
      ]))),
    ]);
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationHistoryVerification.style = styleCss$8;

const styleCss$7 = ".sc-ig-authorization-history-void-h{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:4.5em}.sc-ig-authorization-history-void-h>section.sc-ig-authorization-history-void{min-width:30%;padding-bottom:.5em;text-transform:capitalize}.sc-ig-authorization-history-void-h>section.sc-ig-authorization-history-void>*.sc-ig-authorization-history-void{text-align:left;width:80%;margin:0;white-space:nowrap}.sc-ig-authorization-history-void-h>section.sc-ig-authorization-history-void>*.sc-ig-authorization-history-void:first-child{font-weight:bold}.sc-ig-authorization-history-void-h>section.sc-ig-authorization-history-void>*.sc-ig-authorization-history-void:first-child::first-letter{text-transform:capitalize}.sc-ig-authorization-history-void-h>section.sc-ig-authorization-history-void>*.sc-ig-authorization-history-void:last-child{white-space:normal}";

const IntergiroAuthorizationHistoryVoid = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  componentWillLoad() {
    this.t = create$1(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 }),
    ]);
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationHistoryVoid.style = styleCss$7;

const styleCss$6 = ".sc-ig-authorization-status-h{display:-ms-flexbox;display:flex}.sc-ig-authorization-status-h>ig-status.sc-ig-authorization-status{margin-left:0.2em;text-transform:lowercase}";

const IntergiroAuthorizationStatus = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    this.t = create$1(this.element);
  }
  render() {
    const status = Authorization.is(this.value)
      ? this.value.authorization.status.map(s => (s == "captured" ? "charged" : s))
      : [this.value.authorization.reason.replace(".", "").replace("_", " ")];
    return status.map((status) => (h("ig-status", { status: this.t(status != "" ? status : "unknown error"), color: !Authorization.is(this.value) ? "danger" : undefined })));
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationStatus.style = styleCss$6;

const styleCss$5 = ".sc-ig-authorization-table-h{display:block;width:100%;max-width:90em;margin:auto;border:1px solid rgb(var(--smoothly-medium-color))}[hidden].sc-ig-authorization-table-h{display:none}.sc-ig-authorization-table-h>p.sc-ig-authorization-table{padding-left:1em}.sc-ig-authorization-table-h>table.sc-ig-authorization-table{width:100%;margin-top:-1px}.sc-ig-authorization-table-h>table.sc-ig-authorization-table>thead.sc-ig-authorization-table>tr.sc-ig-authorization-table{display:table-row;font-weight:bold;height:2em}.sc-ig-authorization-table-h>table.sc-ig-authorization-table>thead.sc-ig-authorization-table>tr.sc-ig-authorization-table>th.right.sc-ig-authorization-table{text-align:right;padding-right:6em}.sc-ig-authorization-table-h>table.sc-ig-authorization-table>thead.sc-ig-authorization-table>tr.sc-ig-authorization-table>th.smaller.sc-ig-authorization-table{width:3em}.sc-ig-authorization-table-h>table.sc-ig-authorization-table>thead.sc-ig-authorization-table>tr.sc-ig-authorization-table>*.sc-ig-authorization-table{display:table-cell;padding-right:.5em;padding-left:.3em;vertical-align:middle;position:-webkit-sticky;position:sticky;top:1.55cm;z-index:2;text-align:left;text-transform:capitalize}.sc-ig-authorization-table-h>table.sc-ig-authorization-table>td.sc-ig-authorization-table{text-align:center}button.sc-ig-authorization-table{outline:none}";

const IntergiroAuthorizationTable = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.selectedChanged = createEvent(this, "selectedChanged", 7);
    this.abbreviated = false;
    this.selected = {};
    this.opened = {};
    this.count = 100;
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  toggleColumn(e) {
    const opened = Object.assign({}, this.opened);
    opened[e.detail.index] == e.detail.column
      ? delete opened[e.detail.index]
      : (opened[e.detail.index] = e.detail.column);
    this.opened = opened;
    e.stopPropagation();
  }
  handleMerchantSelected(e) {
    e.detail.checked
      ? (this.selected[e.detail.authorization.authorization.id] = e.detail.authorization)
      : delete this.selected[e.detail.authorization.authorization.id];
    this.selectedChanged.emit(this.selected);
  }
  handleChecked(e) {
    var _a;
    const selected = {};
    this.selectedChanged.emit(e.detail.selected
      ? (_a = this.authorizations) === null || _a === void 0 ? void 0 : _a.map(a => Authorization.is(a) && (selected[a.authorization.id] = a))
      : {});
    this.selected = selected;
  }
  render() {
    return [
      !this.authorizations ? (h("p", null, this.t("Loading authorizations from server..."))) : this.authorizations.length > 0 ? (h("table", null, h("thead", null, h("tr", null, !this.abbreviated && (h("th", { color: "light" }, h("smoothly-checkbox", { "select-all": true }))), h("th", { color: "light" }, this.t("number")), !this.abbreviated && h("th", { color: "light" }, this.t("merchant")), h("th", { color: "light", class: "right" }, this.t("amount")), h("th", { color: "light" }, this.t("card")), h("th", { color: "light" }, this.t("history")), h("th", { color: "light", class: "smaller" }, this.t("flags")), h("th", { color: "light" }, this.t("status")))), this.authorizations.slice(0, this.count).map((a, index) => {
        const merchant = this.merchants.find(m => m.id == a.merchant.id);
        return [
          h("ig-authorization-table-row", { state: a, selected: Authorization.is(a) && !!this.selected[a.authorization.id], merchant: merchant === null || merchant === void 0 ? void 0 : merchant.name, opened: this.opened[index], abbreviated: this.abbreviated, index: index }),
          h("ig-authorization-details", { state: a, merchant: merchant, abbreviated: this.abbreviated, "cost-plus": this.costPlus, opened: this.opened[index] }),
        ];
      }), this.count < this.authorizations.length && (h("td", { colSpan: this.abbreviated ? 5 : 6 }, h("button", null, h("smoothly-icon", { onClick: () => (this.count += 100), name: "chevron-down-circle", size: "large", toolTip: this.t("Load more authorizations") })))))) : (h("p", null, this.t("There are no authorizations to display."))),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationTable.style = styleCss$5;

const styleCss$4 = ".sc-ig-authorization-table-row-h{display:table-row;border-top:1px solid rgba(var(--smoothly-medium-color), 0);border-bottom:1px solid rgba(var(--smoothly-medium-color), 0)}[hidden].sc-ig-authorization-table-row-h{display:none}.sc-ig-authorization-table-row-h:hover{-webkit-box-shadow:var(--smoothly-shadow);box-shadow:var(--smoothly-shadow);border-top-color:rgb(var(--smoothly-medium-color));border-bottom-color:rgb(var(--smoothly-medium-color))}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row{vertical-align:middle}.sc-ig-authorization-table-row-h>td.right.sc-ig-authorization-table-row{text-align:right;white-space:nowrap;overflow:visible;padding-right:6em}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row:not(:last-child)>*.sc-ig-authorization-table-row{padding:0.5em 0.3em;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:3em;display:inline-block}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row>.openable.sc-ig-authorization-table-row:hover{background-color:rgb(var(--smoothly-dark-shade));cursor:pointer}.opened.sc-ig-authorization-table-row{-webkit-box-sizing:border-box;box-sizing:border-box;border:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));border-bottom:2.5px solid rgb(var(--smoothly-dark-shade));margin-bottom:-2.2px;margin-top:-1px}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row:first-child>*.sc-ig-authorization-table-row{border-left:none}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row:first-child>smoothly-checkbox.sc-ig-authorization-table-row{padding:0 0.3em}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row:last-child{display:-ms-flexbox;display:flex;-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.sc-ig-authorization-table-row-h>td.sc-ig-authorization-table-row>ig-authorization-status.sc-ig-authorization-table-row{margin-right:0.2em;-ms-flex-negative:5;flex-shrink:5;width:100%;max-width:20em;text-overflow:ellipsis;white-space:nowrap}";

const IntergiroAuthorizationTableRow = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.columnClicked = createEvent(this, "columnClicked", 7);
    this.authorizationSelected = createEvent(this, "authorizationSelected", 7);
    this.abbreviated = false;
  }
  componentWillLoad() {
    this.t = create(this.element);
  }
  handleColumnClick(column) {
    this.opened = column;
    this.columnClicked.emit({ index: this.index, column });
  }
  handleSelected(e) {
    if (Authorization.is(this.state))
      this.authorizationSelected.emit({ authorization: this.state, checked: e.detail.selected });
    e.stopPropagation();
    e.preventDefault();
  }
  render() {
    var _a, _b, _c, _d, _e;
    const value = this.state.authorization;
    const hasCard = value.card && value.card.iin && value.card.last4;
    return [
      !this.abbreviated && (h("td", null, h("smoothly-checkbox", { disabled: !Authorization.is(this.state), selected: this.selected }))),
      h("td", null, h("span", { onClick: () => this.handleColumnClick("number"), class: "openable" + (this.opened == "number" ? " opened" : "") }, (_b = (_a = value.number) !== null && _a !== void 0 ? _a : value.id) !== null && _b !== void 0 ? _b : this.t("unknown"))),
      !this.abbreviated && (h("td", null, h("span", { onClick: () => this.merchant && this.handleColumnClick("merchant"), class: this.merchant && "openable" + (this.opened == "merchant" ? " opened" : "") }, (_c = this.merchant) !== null && _c !== void 0 ? _c : this.t("unknown")))),
      h("td", { class: "right" }, h("span", { onClick: () => Authorization.is(this.state) && this.handleColumnClick("amount"), class: (Authorization.is(this.state) && "openable") + (this.opened == "amount" ? " opened" : "") }, value.amount ? (h("smoothly-display-amount", { amount: value.amount, currency: value.currency })) : (this.t("unknown")))),
      h("td", null, h("span", { onClick: () => hasCard && this.handleColumnClick("card"), class: hasCard && "openable" + (this.opened == "card" ? " opened" : "") }, hasCard ? dist$1.format(((_d = value.card) === null || _d === void 0 ? void 0 : _d.iin) + "******" + ((_e = value.card) === null || _e === void 0 ? void 0 : _e.last4), "card-number") : this.t("unknown"))),
      h("td", null, h("smoothly-display-date-time", { onClick: () => this.handleColumnClick("history"), class: "openable" + (this.opened == "history" ? " opened" : ""), datetime: dist.DateTime.localize(value.created) })),
      h("td", null, h("span", { title: this.state.authorization.recurring && this.t("Recurring") }, this.state.authorization.recurring ? "R" : "")),
      h("td", null, h("ig-authorization-status", { value: this.state })),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroAuthorizationTableRow.style = styleCss$4;

const styleCss$3 = ".sc-ig-history-details-h{display:table-row}.sc-ig-history-details-h>td.sc-ig-history-details{border-top:solid 1px rgb(var(--smoothly-medium-shade));border-bottom:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));padding:0 1em}.sc-ig-history-details-h>td.sc-ig-history-details>*.sc-ig-history-details{padding:1em}";

const IntergiroHistoryDetails = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  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);
  }
};
IntergiroHistoryDetails.style = styleCss$3;

const styleCss$2 = ".sc-ig-merchant-details-h{display:table-row}.sc-ig-merchant-details-h>td.sc-ig-merchant-details{border-top:solid 1px rgb(var(--smoothly-medium-shade));border-bottom:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade))}.sc-ig-merchant-details-h>td.sc-ig-merchant-details>ig-merchant-rules.sc-ig-merchant-details{padding:1em;max-width:60em;margin:auto}";

const IntergiroMerchantDetails = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.opened = "";
  }
  render() {
    let result;
    switch (this.opened) {
      case "number":
        result = (h("ig-number-details", { number: this.merchant.number, identifier: this.merchant.id, reference: this.merchant.reference }));
        break;
      case "information":
        result = h("ig-merchant-information", { merchant: this.merchant });
        break;
      case "settlement":
        result = h("ig-merchant-settlement", { merchant: this.merchant });
        break;
      case "rules":
        result = h("ig-merchant-rules", { merchant: this.merchant });
        break;
      default:
        return "";
    }
    return h("td", { colSpan: 5 }, result);
  }
};
IntergiroMerchantDetails.style = styleCss$2;

const styleCss$1 = ".sc-ig-merchant-table-h{display:block;width:100%;max-width:90em;margin:auto;border:1px solid rgb(var(--smoothly-medium-color))}[hidden].sc-ig-merchant-table-h{display:none}.sc-ig-merchant-table-h>p.sc-ig-merchant-table{padding-left:1em}.sc-ig-merchant-table-h>table.sc-ig-merchant-table{width:100%}.sc-ig-merchant-table-h>table.sc-ig-merchant-table>thead.sc-ig-merchant-table>tr.sc-ig-merchant-table{display:table-row;font-weight:bold;height:2em}.sc-ig-merchant-table-h>table.sc-ig-merchant-table>thead.sc-ig-merchant-table>tr.sc-ig-merchant-table>th.sc-ig-merchant-table{text-transform:capitalize}.sc-ig-merchant-table-h>table.sc-ig-merchant-table>thead.sc-ig-merchant-table>tr.sc-ig-merchant-table>*.sc-ig-merchant-table{display:table-cell;padding-right:.5em;padding-left:.3em;vertical-align:middle;position:-webkit-sticky;position:sticky;top:1.55cm;z-index:1;text-align:left}.sc-ig-merchant-table-h>table.sc-ig-merchant-table>td.sc-ig-merchant-table{text-align:center}";

const IntergiroMerchantTable = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.selectedChanged = createEvent(this, "selectedChanged", 7);
    this.selected = {};
    this.abbrivated = false;
    this.opened = {};
  }
  componentWillLoad() {
    this.t = create$2(this.element);
  }
  handleMerchantSelected(e) {
    e.detail.checked
      ? (this.selected[e.detail.merchant.id] = e.detail.merchant)
      : delete this.selected[e.detail.merchant.id];
    this.selectedChanged.emit(this.selected);
  }
  handleChecked(e) {
    var _a;
    const selected = {};
    this.selectedChanged.emit(e.detail.selected ? (_a = this.merchants) === null || _a === void 0 ? void 0 : _a.map(m => (selected[m.id] = m)) : {});
    this.selected = selected;
  }
  toggleColumn(e) {
    const opened = Object.assign({}, this.opened);
    if (e.detail["id"] && opened[e.detail.id] == e.detail.column)
      delete opened[e.detail.id];
    else
      opened[e.detail.id] = e.detail.column;
    this.opened = opened;
    e.stopPropagation();
  }
  render() {
    return [
      !this.merchants ? (h("p", null, this.t("Loading information from server..."))) : this.merchants.length > 0 ? ([
        h("table", null, h("thead", null, h("tr", { color: "light" }, !this.abbrivated && (h("th", null, h("smoothly-checkbox", { "select-all": true }))), h("th", null, this.t("number")), h("th", null, this.t("information")), h("th", null, this.t("settlement")), h("th", null, this.t("rules")))), this.merchants.map(m => {
          var _a;
          return [
            h("ig-merchant-table-row", { abbrivated: this.abbrivated, merchant: m, selected: !!this.selected[m.id], opened: this.opened[m.id] }),
            h("ig-merchant-details", { merchant: m, opened: (_a = this.opened[m.id]) !== null && _a !== void 0 ? _a : "" }),
          ];
        })),
      ]) : (h("p", null, this.t("There are no merchants to display."))),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroMerchantTable.style = styleCss$1;

const styleCss = ".sc-ig-merchant-table-row-h{display:table-row;border-top:1px solid rgba(var(--smoothly-medium-color), 0);border-bottom:1px solid rgba(var(--smoothly-medium-color), 0)}[hidden].sc-ig-merchant-table-row-h{display:none}.sc-ig-merchant-table-row-h:hover{border-top-color:rgb(var(--smoothly-medium-color));border-bottom-color:rgb(var(--smoothly-medium-color));-webkit-box-shadow:var(--smoothly-shadow);box-shadow:var(--smoothly-shadow)}.sc-ig-merchant-table-row-h>td.sc-ig-merchant-table-row>.openable.sc-ig-merchant-table-row{padding:.5em .3em;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:3em;display:inline-block}.sc-ig-merchant-table-row-h>td.sc-ig-merchant-table-row>smoothly-checkbox.sc-ig-merchant-table-row{display:inline-block;vertical-align:-40%;margin-left:.3em}.sc-ig-merchant-table-row-h>td.sc-ig-merchant-table-row>.openable.sc-ig-merchant-table-row:hover{background-color:rgb(var(--smoothly-dark-shade));cursor:pointer}.opened.sc-ig-merchant-table-row{-webkit-box-sizing:border-box;box-sizing:border-box;border:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));border-bottom:2.5px solid rgb(var(--smoothly-dark-shade));margin-bottom:-2.2px;margin-top:-1px}.sc-ig-merchant-table-row-h>td.sc-ig-merchant-table-row:first-of-type>.opened.sc-ig-merchant-table-row{border-left:none}";

const IntergiroMerchantTableRow = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.columnClicked = createEvent(this, "columnClicked", 7);
    this.merchantSelected = createEvent(this, "merchantSelected", 7);
    this.opened = "";
  }
  componentWillLoad() {
    this.t = create$2(this.element);
  }
  handleColumnClick(column) {
    this.opened = column;
    this.columnClicked.emit({ id: this.merchant.id, column });
  }
  handleSelected(e) {
    this.merchantSelected.emit({ merchant: this.merchant, checked: e.detail.selected });
    e.stopPropagation();
    e.preventDefault();
  }
  render() {
    var _a;
    return [
      !this.abbrivated && (h("td", null, h("smoothly-checkbox", { selected: this.selected }))),
      h("td", null, h("section", { class: "openable" + (this.opened == "number" ? " opened" : ""), onClick: () => this.handleColumnClick("number") }, (_a = this.merchant.number) !== null && _a !== void 0 ? _a : this.merchant.id)),
      h("td", null, h("section", { class: "openable" + (this.opened == "information" ? " opened" : ""), onClick: () => this.handleColumnClick("information") }, this.merchant.name)),
      h("td", null, h("section", { class: "openable" + (this.opened == "settlement" ? " opened" : ""), onClick: () => this.handleColumnClick("settlement") }, this.merchant.reconciliation.account)),
      h("td", null, h("section", { class: "openable" + (this.opened == "rules" ? " opened" : ""), onClick: () => this.handleColumnClick("rules") }, Object.values(this.merchant.rules).reduce((r, v) => (v ? (r += v.length) : r), 0) + " " + this.t("rules"))),
    ];
  }
  get element() { return getElement(this); }
};
IntergiroMerchantTableRow.style = styleCss;

export { IntergiroAuthorizationAmount as ig_authorization_amount, IntergiroAuthorizationAmountTable as ig_authorization_amount_table, IntergiroAuthorizationCard as ig_authorization_card, IntergiroAuthorizationDetails as ig_authorization_details, IntergiroAuthorizationHistory as ig_authorization_history, IntergiroAuthorizationHistoryCapture as ig_authorization_history_capture, IntergiroAuthorizationHistoryCreate as ig_authorization_history_create, IntergiroAuthorizationHistoryVerification as ig_authorization_history_verification, IntergiroAuthorizationHistoryVoid as ig_authorization_history_void, IntergiroAuthorizationStatus as ig_authorization_status, IntergiroAuthorizationTable as ig_authorization_table, IntergiroAuthorizationTableRow as ig_authorization_table_row, IntergiroHistoryDetails as ig_history_details, IntergiroMerchantDetails as ig_merchant_details, IntergiroMerchantTable as ig_merchant_table, IntergiroMerchantTableRow as ig_merchant_table_row };
