UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

98 lines (96 loc) 3.89 kB
/** * VERSION: 2.154.0-alpha.1 * BUILD_TIMESTAMP: 1763401626706 * BUILD_DATE: Mon Nov 17 2025 17:47:06 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 73f4468155aaed0f31ab0d59dc3394018b939b6d */ import { j as e, t as l, R as c, v as p, C as m } from "./es6-OV3Jb0XZ.js"; import { FormattedHTMLMessage as o } from "react-intl"; const u = ({ verificationService: s }) => { const t = s.verificationResponse.consolationRewardCode || "${consolationRewardCode}", i = s.programTheme.config.offerType === "noCode", { verificationId: n } = s.verificationResponse, { rewardDisplay: d } = s.programTheme.config, r = !i && !!d.length; return /* @__PURE__ */ e.jsxs("div", { id: "sid-step-consolation", className: "sid-l-container", children: [ /* @__PURE__ */ e.jsxs("div", { className: "sid-header sid-l-horz-center sid-l-space-top-md", children: [ /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx(l, { verificationService: s }) }), /* @__PURE__ */ e.jsx( "div", { className: "sid-header__title sid-l-horz-center sid-l-space-top-md", id: "consolation-status", role: "alertdialog", children: /* @__PURE__ */ e.jsx( o, { id: "step.consolation.title", defaultMessage: "Claim your offer", tagName: "h1" } ) } ), /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx( o, { id: "step.consolation.subtitle", defaultMessage: "Unfortunately we could not verify your status, but we value your interest and are offering this promo code as a thank you. It is unique to you and can only be used once." } ) }) ] }), r && /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center sid-reward-container sid-l-space-top-md", children: d.map((a) => a !== c.TEXT ? /* @__PURE__ */ e.jsx( "img", { className: "sid-l-space-top-md sid-barcode", alt: t, src: p(n, "consolationRewardCode", a) }, a ) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [ /* @__PURE__ */ e.jsx( "div", { className: "sid-reward-code sid-l-space-top-lg sid-h-jumbo-text sid-l-horz-center", role: "region", children: t } ), /* @__PURE__ */ e.jsx("div", { className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center", children: /* @__PURE__ */ e.jsx( m, { textToCopy: t, notificationText: /* @__PURE__ */ e.jsx(o, { id: "copied", defaultMessage: "Copied" }), children: /* @__PURE__ */ e.jsx( o, { id: "step.success.copyCouponCode", defaultMessage: "Copy Coupon code" } ) } ) }) ] })) }), /* @__PURE__ */ e.jsx("div", { className: "sid-footer sid-l-horz-center sid-l-space-top-lg", children: /* @__PURE__ */ e.jsx( o, { id: "rewardCodeEmailNotification", defaultMessage: "We have emailed you a copy so you can use your new code now or later. Look for the email from verify@sheerid.com." } ) }), /* @__PURE__ */ e.jsx( "div", { className: "sid-footer sid-l-horz-center sid-l-space-top-lg sid-h-small-text", role: "contentinfo", children: /* @__PURE__ */ e.jsx(o, { id: "companyName", defaultMessage: "{Company}", children: (a) => /* @__PURE__ */ e.jsx( o, { id: "step.consolation.verificationOnly", defaultMessage: "Please direct any and all questions about this offer to {companyName}.", values: { companyName: a } } ) }) } ) ] }); }, x = u; export { x as default };