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.154.0-alpha.1 * BUILD_TIMESTAMP: 1763401584959 * BUILD_DATE: Mon Nov 17 2025 17:46:24 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 73f4468155aaed0f31ab0d59dc3394018b939b6d */ import { j as e, p as r, c as s, q as c, s as p, C as m } from "../_mysheerid-preview.js"; const u = ({ verificationService: o }) => { const d = o.verificationResponse.consolationRewardCode || "${consolationRewardCode}", i = o.programTheme.config.offerType === "noCode", { verificationId: n } = o.verificationResponse, { rewardDisplay: t } = o.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: o }) }), /* @__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( s, { id: "step.consolation.title", defaultMessage: "Claim your offer", tagName: "h1" } ) } ), /* @__PURE__ */ e.jsx("div", { className: "sid-l-horz-center", children: /* @__PURE__ */ e.jsx( s, { 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(s, { id: "copied", defaultMessage: "Copied" }), children: /* @__PURE__ */ e.jsx( s, { 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( s, { 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(s, { id: "companyName", defaultMessage: "{Company}", children: (a) => /* @__PURE__ */ e.jsx( s, { 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 };