var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/checkout/components/PaymentResultToastV2/components/Hero.tsx
var Hero_exports = {};
__export(Hero_exports, {
  Hero: () => Hero,
  default: () => Hero_default
});
module.exports = __toCommonJS(Hero_exports);
var import_react = __toESM(require("react"));
var import_classnames = __toESM(require("classnames"));
var PREFIX = "payment-result-toast-v2";
function SuccessIcon() {
  return /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 20 20", width: "20", height: "20", "aria-hidden": "true" }, /* @__PURE__ */ import_react.default.createElement("circle", { cx: "10", cy: "10", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }), /* @__PURE__ */ import_react.default.createElement(
    "path",
    {
      d: "M6.2 10.2 8.8 12.8 13.9 7.4",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "1.75",
      strokeLinecap: "round",
      strokeLinejoin: "round"
    }
  ));
}
function FailedIcon() {
  return /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 20 20", width: "20", height: "20", "aria-hidden": "true" }, /* @__PURE__ */ import_react.default.createElement("circle", { cx: "10", cy: "10", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }), /* @__PURE__ */ import_react.default.createElement("path", { d: "M10 6v5", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }), /* @__PURE__ */ import_react.default.createElement("circle", { cx: "10", cy: "14", r: "0.9", fill: "currentColor" }));
}
var Hero = (0, import_react.memo)(function Hero2({
  status,
  tone,
  headline,
  changeDueText,
  failureReason
}) {
  const isFailed = status === "failed" || status === "wallet-pass-failed";
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${PREFIX}__hero`, `${PREFIX}__hero--${tone}`) }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__hero-check`, "aria-hidden": "true" }, isFailed ? /* @__PURE__ */ import_react.default.createElement(FailedIcon, null) : /* @__PURE__ */ import_react.default.createElement(SuccessIcon, null)), /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__hero-copy` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__hero-status` }, headline), changeDueText ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__hero-change` }, changeDueText) : null, failureReason ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${PREFIX}__hero-reason` }, failureReason) : null));
});
Hero.displayName = "PaymentResultToastV2Hero";
var Hero_default = Hero;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Hero
});
