UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

79 lines (78 loc) 3.15 kB
import { TRANSACTION_ANALYTICS_SUBCATEGORY_DETAILS as a, TRANSACTION_ANALYTICS_CATEGORY as T } from "../TransactionsOverview/constants.js"; import { TRANSACTION_FIELDS as r } from "../TransactionsOverview/components/TransactionsTable/fields.js"; import { DetailsTab as n } from "./types.js"; const t = "adyen-pe-transaction-data", E = `${t}__amount`, d = `${t}__action-bar`, l = `${t}__container`, N = `${t}__head-container`, o = `${t}__input`, s = `${o}-container`, S = `${s}--short`, R = `${s}--text-input`, I = `${s}--with-error`, D = `${o}-head`, m = `${t}__label`, O = `${t}__list`, X = `${t}__tags`, f = `${t}__status-box`, p = `${t}__timeline-label`, C = `${t}__timeline-value`, U = `${t}__refund-response`, c = `${t}__refund-response-icon`, $ = `${c}--success`, L = `${c}--error`, b = `${t}__refund-statuses-container`, P = /* @__PURE__ */ new Set([ "status", "category", "paymentMethod", "bankAccount", "balanceAccount", "id", "balanceAccountId", ...r, "account", "deductedAmount", "description", "lineItems", "merchantReference", "originalAmount", "paymentPspReference", "pspReference", "refundDetails", "refundMetadata", "refundPspReference", "refundReason" ]), h = { balanceAccount: "account", balanceAccountId: (e) => { const _ = e?.balanceAccount; if (_ && !_.description) return "account"; }, description: (e) => { if (e?.balanceAccount?.description) return "account"; } }, F = [ { id: n.SUMMARY, label: "transactions.details.views.summary", content: null }, { id: n.DETAILS, label: "transactions.details.views.details", content: null }, { id: n.TIMELINE, label: "transactions.details.views.timeline", content: null } ], y = ["completed", "in_progress", "failed"], M = ["requested_by_customer", "issue_with_item_sold", "fraudulent", "duplicate", "other"], w = Object.freeze({ requested_by_customer: "transactions.details.common.refundReasons.requestedByCustomer", issue_with_item_sold: "transactions.details.common.refundReasons.issueWithItemSold", fraudulent: "transactions.details.common.refundReasons.fraudulent", duplicate: "transactions.details.common.refundReasons.duplicate", other: "transactions.details.common.refundReasons.other" }), B = { category: T, subCategory: a }; export { M as REFUND_REASONS, w as REFUND_REASONS_KEYS, y as REFUND_STATUSES, d as TX_DATA_ACTION_BAR, E as TX_DATA_AMOUNT, t as TX_DATA_CLASS, l as TX_DATA_CONTAINER, N as TX_DATA_HEAD_CONTAINER, o as TX_DATA_INPUT, s as TX_DATA_INPUT_CONTAINER, S as TX_DATA_INPUT_CONTAINER_SHORT, R as TX_DATA_INPUT_CONTAINER_TEXT, I as TX_DATA_INPUT_CONTAINER_WITH_ERROR, D as TX_DATA_INPUT_HEAD, m as TX_DATA_LABEL, O as TX_DATA_LIST, X as TX_DATA_TAGS, h as TX_DETAILS_FIELDS_REMAPS, P as TX_DETAILS_RESERVED_FIELDS_SET, F as TX_DETAILS_TABS, U as TX_REFUND_RESPONSE, L as TX_REFUND_RESPONSE_ERROR_ICON, c as TX_REFUND_RESPONSE_ICON, $ as TX_REFUND_RESPONSE_SUCCESS_ICON, b as TX_REFUND_STATUSES_CONTAINER, f as TX_STATUS_BOX, p as TX_TIMELINE_LABEL, C as TX_TIMELINE_VALUE, B as sharedTransactionDetailsEventProperties };