UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

101 lines (99 loc) 4.05 kB
/** * WARNING: This file is intended to be used within MySheerID. * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID. */ /** * VERSION: 2.130.0-alpha.4 * BUILD_TIMESTAMP: 1759000347595 * BUILD_DATE: Sat Sep 27 2025 19:12:27 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: be6ef87ab40e8747994d32363389cf39e36a4326 */ import { j as e, L as r, b as o, o as c, p, C as m } from "../_mysheerid-preview.js"; const u = ({ verificationService: s }) => { const d = s.verificationResponse.consolationRewardCode || "${consolationRewardCode}", i = s.programTheme.config.offerType === "noCode", { verificationId: n } = s.verificationResponse, { rewardDisplay: t } = s.programTheme.config, l = !i && !!t.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(r, { 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." } ) }) ] }), l && /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center sid-reward-container sid-l-space-top-md", children: t.map((a) => a !== c.TEXT ? /* @__PURE__ */ e.jsx( "img", { className: "sid-l-space-top-md sid-barcode", alt: d, 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: d } ), /* @__PURE__ */ e.jsx("div", { className: "sid-l-space-top-md sid-h-bold-text sid-l-horz-center", children: /* @__PURE__ */ e.jsx( m, { textToCopy: d, 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 } } ) }) } ) ] }); }, f = u; export { f as default };