@forgeroute/ui 0.5.12 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,11 +138,11 @@ const MSG_NOT_INITIALIZED = "Payment system not initialized";
138
138
  const MSG_INTENT_FAILED = "Failed to create payment intent";
139
139
  const MSG_NOT_COMPLETED = "Payment was not completed";
140
140
  const MSG_REQUIRES_PAYMENT_METHOD = "Payment failed. Please try a different payment method.";
141
- const MSG_NO_PAYMENT_METHOD = "No payment method returned from Stripe";
141
+ const MSG_NO_PAYMENT_METHOD = "No payment method was returned";
142
142
  const MSG_AUTH_FAILED = "Payment authentication failed";
143
143
  const MSG_AUTH_NOT_COMPLETED = "Payment authentication was not completed";
144
- const MSG_KEY_MISSING = "A Stripe publishable key is required";
145
- const MSG_LOAD_FAILED = "Failed to load Stripe";
144
+ const MSG_KEY_MISSING = "The payment form is not set up yet";
145
+ const MSG_LOAD_FAILED = "Failed to load the payment service";
146
146
  const MSG_TOKEN_FAILED = "The card details could not be checked. Please try again.";
147
147
  function paymentMethodIdOf(intent) {
148
148
  const pm = intent?.payment_method;
@@ -204,11 +204,11 @@ const KNOWN_MESSAGE_KEYS = {
204
204
  "Failed to create payment intent": "stripePayment.msg.intentFailed",
205
205
  "Payment was not completed": "stripePayment.msg.notCompleted",
206
206
  "Payment failed. Please try a different payment method.": "stripePayment.msg.requiresPaymentMethod",
207
- "No payment method returned from Stripe": "stripePayment.msg.noPaymentMethod",
207
+ "No payment method was returned": "stripePayment.msg.noPaymentMethod",
208
208
  "Payment authentication failed": "stripePayment.msg.authFailed",
209
209
  "Payment authentication was not completed": "stripePayment.msg.authNotCompleted",
210
- "A Stripe publishable key is required": "stripePayment.msg.keyMissing",
211
- "Failed to load Stripe": "stripePayment.msg.loadFailed",
210
+ "The payment form is not set up yet": "stripePayment.msg.keyMissing",
211
+ "Failed to load the payment service": "stripePayment.msg.loadFailed",
212
212
  "Verification failed": "stripePayment.msg.verifyFailed",
213
213
  "Verification failed. Please check the code and try again.": "stripePayment.msg.verifyThrown",
214
214
  "We could not check the status of this payment. Please contact support before trying again.": "stripePayment.msg.returnFailed",
@@ -428,6 +428,37 @@ function readStripeAppearance(doc, element = doc.documentElement) {
428
428
  ...Object.keys(variables).length ? { variables } : {}
429
429
  };
430
430
  }
431
+ function stripeAppearanceFromTheme(tokens) {
432
+ const variables = {};
433
+ const set = (name, value) => {
434
+ if (value && value.trim()) variables[name] = value.trim();
435
+ };
436
+ set("colorPrimary", tokens.primary);
437
+ set("colorBackground", tokens.background);
438
+ set("colorText", tokens.text);
439
+ set("colorTextSecondary", tokens.textMuted);
440
+ set("colorDanger", tokens.danger);
441
+ set("fontFamily", tokens.fontFamily);
442
+ set("borderRadius", tokens.radius);
443
+ set("fontSizeBase", tokens.fontSize);
444
+ const rules = {};
445
+ const rule = (selector, props) => {
446
+ const filled = Object.fromEntries(Object.entries(props).filter(([, v]) => !!v && v.trim()));
447
+ if (Object.keys(filled).length) rules[selector] = filled;
448
+ };
449
+ const border = tokens.border?.trim();
450
+ if (border) {
451
+ rule(".Input", { border: `1px solid ${border}` });
452
+ rule(".Tab", { border: `1px solid ${border}` });
453
+ }
454
+ if (tokens.text) rule(".Label", { color: tokens.text });
455
+ return {
456
+ theme: tokens.dark ? "night" : "stripe",
457
+ labels: tokens.labels ?? "above",
458
+ ...Object.keys(variables).length ? { variables } : {},
459
+ ...Object.keys(rules).length ? { rules } : {}
460
+ };
461
+ }
431
462
  const STRIPE_A11Y_MESSAGES = {
432
463
  get loading() {
433
464
  return uiText("stripePayment.a11y.loading");
@@ -475,7 +506,8 @@ const AMBIGUOUS_STRIPE_CODES = /* @__PURE__ */ new Set([
475
506
  "lock_timeout"
476
507
  ]);
477
508
  const MSG_SETUP_INCOMPLETE = "Payment method setup was incomplete. Please try again.";
478
- let nextId = 0;
509
+ const INSTANT_ONLY_CODE = "instant_only_unsupported";
510
+ let nextId$1 = 0;
479
511
  const jsonEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b);
480
512
  var StripePaymentComponent = class StripePaymentComponent {
481
513
  constructor() {
@@ -485,6 +517,7 @@ var StripePaymentComponent = class StripePaymentComponent {
485
517
  this.doc = inject(DOCUMENT);
486
518
  this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
487
519
  this.host = inject(ElementRef);
520
+ this.injector = inject(Injector);
488
521
  this.mountOnly = input(false, ...ngDevMode ? [{ debugName: "mountOnly" }] : /* istanbul ignore next */ []);
489
522
  this.mode = input("payment", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
490
523
  this.publishableKey = input(null, ...ngDevMode ? [{ debugName: "publishableKey" }] : /* istanbul ignore next */ []);
@@ -506,6 +539,9 @@ var StripePaymentComponent = class StripePaymentComponent {
506
539
  this.paymentElementOptions = input(null, ...ngDevMode ? [{ debugName: "paymentElementOptions" }] : /* istanbul ignore next */ []);
507
540
  this.appearance = input(null, ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
508
541
  this.appearanceFromTokens = input(false, ...ngDevMode ? [{ debugName: "appearanceFromTokens" }] : /* istanbul ignore next */ []);
542
+ this.instantOnly = input(false, ...ngDevMode ? [{ debugName: "instantOnly" }] : /* istanbul ignore next */ []);
543
+ this.linkOff = input(false, ...ngDevMode ? [{ debugName: "linkOff" }] : /* istanbul ignore next */ []);
544
+ this.showPaid = input(true, ...ngDevMode ? [{ debugName: "showPaid" }] : /* istanbul ignore next */ []);
509
545
  this.returnUrl = input(void 0, ...ngDevMode ? [{ debugName: "returnUrl" }] : /* istanbul ignore next */ []);
510
546
  this.billingDetails = input(null, ...ngDevMode ? [{ debugName: "billingDetails" }] : /* istanbul ignore next */ []);
511
547
  this.confirmParams = input(null, ...ngDevMode ? [{ debugName: "confirmParams" }] : /* istanbul ignore next */ []);
@@ -587,10 +623,12 @@ var StripePaymentComponent = class StripePaymentComponent {
587
623
  this.errorText = signal("", ...ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []);
588
624
  this.loadErrorText = signal("", ...ngDevMode ? [{ debugName: "loadErrorText" }] : /* istanbul ignore next */ []);
589
625
  this.announcement = signal("", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
590
- this.errorId = `ui-stripe-error-${nextId++}`;
626
+ this.errorId = `ui-stripe-error-${nextId$1++}`;
591
627
  this.mountRef = viewChild("mount", ...ngDevMode ? [{ debugName: "mountRef" }] : /* istanbul ignore next */ []);
628
+ this.errorBox = viewChild("errorBox", ...ngDevMode ? [{ debugName: "errorBox" }] : /* istanbul ignore next */ []);
592
629
  this.mountHidden = computed(() => !this.mountOnly() && (this.loading() || this.pending() || !!this.loadErrorText()), ...ngDevMode ? [{ debugName: "mountHidden" }] : /* istanbul ignore next */ []);
593
630
  this.achNoticeVisible = computed(() => this.showAchNotice() && this.selectedType() === "us_bank_account", ...ngDevMode ? [{ debugName: "achNoticeVisible" }] : /* istanbul ignore next */ []);
631
+ this.achNoticeText = computed(() => this.achNoticeInput() ?? this.labels.t(this.instantOnly() ? "stripePayment.achNoticeInstant" : "stripePayment.achNotice"), ...ngDevMode ? [{ debugName: "achNoticeText" }] : /* istanbul ignore next */ []);
594
632
  this.effectiveSubmitLabel = computed(() => this.submitLabel() || (this.mode() === "setup" ? this.labels.t("stripePayment.saveMethod") : this.labels.t("stripePayment.pay")), ...ngDevMode ? [{ debugName: "effectiveSubmitLabel" }] : /* istanbul ignore next */ []);
595
633
  this.submitDisabled = computed(() => this.disabled() || this.loading() || this.pending() || !this.isReady() || !!this.loadErrorText() || this.protectionOn() && (this.attempt.unknown() || this.attempt.paidLocked() || !this.readiness.ready()), ...ngDevMode ? [{ debugName: "submitDisabled" }] : /* istanbul ignore next */ []);
596
634
  this.messages = computed(() => {
@@ -625,7 +663,8 @@ var StripePaymentComponent = class StripePaymentComponent {
625
663
  ...deferred.setupFutureUsage ? { setup_future_usage: deferred.setupFutureUsage } : {},
626
664
  ...deferred.captureMethod ? { capture_method: deferred.captureMethod } : {},
627
665
  ...deferred.onBehalfOf ? { on_behalf_of: deferred.onBehalfOf } : {},
628
- ...this.paymentMethodTypes() ? { payment_method_types: this.paymentMethodTypes() } : {}
666
+ ...this.deferredTypes() ? { payment_method_types: this.deferredTypes() } : {},
667
+ ...this.instantOnly() ? { paymentMethodOptions: { us_bank_account: { verification_method: "instant" } } } : {}
629
668
  };
630
669
  else return null;
631
670
  const appearance = this.appearance();
@@ -638,12 +677,23 @@ var StripePaymentComponent = class StripePaymentComponent {
638
677
  ...ngDevMode ? { debugName: "elementsConfig" } : /* istanbul ignore next */ {},
639
678
  equal: jsonEqual
640
679
  });
680
+ this.deferredTypes = computed(() => {
681
+ const own = this.paymentMethodTypes();
682
+ if (!this.linkOff()) return own;
683
+ return own ? own.filter((type) => type !== "link") : ["card", "us_bank_account"];
684
+ }, ...ngDevMode ? [{ debugName: "deferredTypes" }] : /* istanbul ignore next */ []);
641
685
  this.elementConfig = computed(() => {
642
686
  const options = {};
643
687
  const layout = this.layout();
644
688
  if (layout) options["layout"] = layout;
645
689
  if (this.paymentMethodOrder()) options["paymentMethodOrder"] = this.paymentMethodOrder();
646
- if (this.wallets()) options["wallets"] = this.wallets();
690
+ const wallets = this.linkOff() ? {
691
+ ...this.wallets() ?? {},
692
+ applePay: "never",
693
+ googlePay: "never",
694
+ link: "never"
695
+ } : this.wallets();
696
+ if (wallets) options["wallets"] = wallets;
647
697
  if (this.fields()) options["fields"] = this.fields();
648
698
  if (this.business()) options["business"] = this.business();
649
699
  if (this.terms()) options["terms"] = this.terms();
@@ -805,6 +855,13 @@ var StripePaymentComponent = class StripePaymentComponent {
805
855
  kind: "unknown",
806
856
  reason: "no_result"
807
857
  };
858
+ if (f.code === "instant_only_unsupported") {
859
+ show(f);
860
+ return {
861
+ kind: "failure",
862
+ reason: f.code
863
+ };
864
+ }
808
865
  if (f.code === "attempt_failed_use_new_key") {
809
866
  show(f);
810
867
  return {
@@ -1115,7 +1172,8 @@ var StripePaymentComponent = class StripePaymentComponent {
1115
1172
  this.attempt.fail("return");
1116
1173
  break;
1117
1174
  case "requires_verification":
1118
- this.attempt.markUnknown("microdeposits");
1175
+ if (this.instantOnly()) this.attempt.fail("instant_only");
1176
+ else this.attempt.markUnknown("microdeposits");
1119
1177
  break;
1120
1178
  default: this.attempt.markUnknown("return_action");
1121
1179
  }
@@ -1167,10 +1225,26 @@ var StripePaymentComponent = class StripePaymentComponent {
1167
1225
  }
1168
1226
  publishFailure(f) {
1169
1227
  if (this.destroyed) return;
1170
- if (this.showErrors()) this.errorText.set(f.message);
1228
+ if (this.showErrors()) {
1229
+ this.errorText.set(f.message);
1230
+ this.revealError(f);
1231
+ }
1171
1232
  this.announcement.set("");
1172
1233
  this.failed.emit(f);
1173
1234
  }
1235
+ revealError(f) {
1236
+ if (this.mountOnly() || !this.isBrowser || f.stage === "load" || f.stage === "return") return;
1237
+ afterNextRender(() => {
1238
+ const box = this.errorBox()?.nativeElement;
1239
+ if (!box) return;
1240
+ const reduce = this.doc.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
1241
+ box.scrollIntoView?.({
1242
+ block: "center",
1243
+ behavior: reduce ? "auto" : "smooth"
1244
+ });
1245
+ box.focus({ preventScroll: true });
1246
+ }, { injector: this.injector });
1247
+ }
1174
1248
  finish(event, fromReturn = false, trace) {
1175
1249
  if (trace) trace.outcome = event.outcome;
1176
1250
  const acted = {
@@ -1178,6 +1252,13 @@ var StripePaymentComponent = class StripePaymentComponent {
1178
1252
  status: event.status
1179
1253
  };
1180
1254
  const setupProtected = event.kind === "setup" && this.protectionOn();
1255
+ if (event.outcome === "requires_verification" && this.instantOnly()) {
1256
+ this.fail({
1257
+ ...failure(INSTANT_ONLY_CODE, this.labels.t("stripePayment.msg.instantOnlyUnavailable"), fromReturn ? "return" : "result"),
1258
+ ...acted
1259
+ }, trace);
1260
+ return null;
1261
+ }
1181
1262
  if (event.outcome === "requires_payment_method") {
1182
1263
  this.fail({
1183
1264
  ...failure("requires_payment_method", setupProtected ? this.labels.t("paymentSetup.requiresPaymentMethod") : MSG_REQUIRES_PAYMENT_METHOD, fromReturn ? "return" : "result"),
@@ -1353,7 +1434,7 @@ var StripePaymentComponent = class StripePaymentComponent {
1353
1434
  });
1354
1435
  element.on("loaderror", (event) => {
1355
1436
  if (generation !== this.generation) return;
1356
- const message = event?.error?.message || localizeStripeMessage("Failed to load Stripe");
1437
+ const message = event?.error?.message || localizeStripeMessage("Failed to load the payment service");
1357
1438
  this.loadFailed(message, event?.error?.message ?? "");
1358
1439
  });
1359
1440
  element.mount(container);
@@ -1557,6 +1638,27 @@ var StripePaymentComponent = class StripePaymentComponent {
1557
1638
  isRequired: false,
1558
1639
  transformFunction: null
1559
1640
  },
1641
+ instantOnly: {
1642
+ classPropertyName: "instantOnly",
1643
+ publicName: "instantOnly",
1644
+ isSignal: true,
1645
+ isRequired: false,
1646
+ transformFunction: null
1647
+ },
1648
+ linkOff: {
1649
+ classPropertyName: "linkOff",
1650
+ publicName: "linkOff",
1651
+ isSignal: true,
1652
+ isRequired: false,
1653
+ transformFunction: null
1654
+ },
1655
+ showPaid: {
1656
+ classPropertyName: "showPaid",
1657
+ publicName: "showPaid",
1658
+ isSignal: true,
1659
+ isRequired: false,
1660
+ transformFunction: null
1661
+ },
1560
1662
  returnUrl: {
1561
1663
  classPropertyName: "returnUrl",
1562
1664
  publicName: "returnUrl",
@@ -1922,6 +2024,12 @@ var StripePaymentComponent = class StripePaymentComponent {
1922
2024
  predicate: ["mount"],
1923
2025
  descendants: true,
1924
2026
  isSignal: true
2027
+ }, {
2028
+ propertyName: "errorBox",
2029
+ first: true,
2030
+ predicate: ["errorBox"],
2031
+ descendants: true,
2032
+ isSignal: true
1925
2033
  }],
1926
2034
  ngImport: i0,
1927
2035
  template: `
@@ -1930,7 +2038,7 @@ var StripePaymentComponent = class StripePaymentComponent {
1930
2038
  <div class="sp-sr" role="status" aria-live="polite" data-testid="stripe-status">{{ statusText() }}</div>
1931
2039
  }
1932
2040
  @if (!mountOnly() && protectionOn()) {
1933
- <ui-payment-attempt-status [attempt]="attempt" [readiness]="readiness" [kind]="mode()" [allowStartOver]="allowStartOver()" (retryLoad)="reload()" />
2041
+ <ui-payment-attempt-status [attempt]="attempt" [readiness]="readiness" [kind]="mode()" [allowStartOver]="allowStartOver()" [showPaid]="showPaid()" (retryLoad)="reload()" />
1934
2042
  }
1935
2043
  @if (!mountOnly() && (loading() || pending())) {
1936
2044
  <div class="sp-skeleton" data-testid="stripe-skeleton" aria-hidden="true">
@@ -1948,10 +2056,10 @@ var StripePaymentComponent = class StripePaymentComponent {
1948
2056
  <div #mount class="sp-mount" [attr.id]="mountId() || null" [class]="mountClass()" [class.sp-mount--hidden]="mountHidden()" [attr.aria-hidden]="mountHidden() ? 'true' : null" [attr.inert]="mountHidden() ? '' : null"
1949
2057
  [attr.role]="mountOnly() ? null : 'group'" [attr.aria-label]="mountOnly() ? null : label()" data-testid="stripe-mount"></div>
1950
2058
  @if (!mountOnly() && achNoticeVisible()) {
1951
- <div class="sp-block" [attr.data-testid]="achNoticeTestId()"><ui-alert variant="info">{{ achNotice() }}</ui-alert></div>
2059
+ <div class="sp-block" [attr.data-testid]="achNoticeTestId()"><ui-alert variant="info">{{ achNoticeText() }}</ui-alert></div>
1952
2060
  }
1953
2061
  @if (!mountOnly() && errorText(); as text) {
1954
- <div class="sp-block" [id]="errorId" data-testid="stripe-error"><ui-alert variant="danger">{{ text }}</ui-alert></div>
2062
+ <div #errorBox class="sp-block sp-error" [id]="errorId" tabindex="-1" data-testid="stripe-error"><ui-alert variant="danger">{{ text }}</ui-alert></div>
1955
2063
  }
1956
2064
  @if (!mountOnly() && showSubmit()) {
1957
2065
  <div class="sp-actions">
@@ -1962,7 +2070,7 @@ var StripePaymentComponent = class StripePaymentComponent {
1962
2070
  </div>
1963
2071
  `,
1964
2072
  isInline: true,
1965
- styles: ["ui-stripe-payment{display:block;min-width:0}ui-stripe-payment .sp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sp-block{margin-top:12px}.sp-label{font-size:.875rem;font-weight:500;color:#1e293b;margin-bottom:6px}.sp-required{color:#dc2626;margin-left:2px}.sp-actions{margin-top:16px;display:flex;justify-content:flex-end}ui-stripe-payment .sp{position:relative}.sp-mount--hidden{position:absolute;top:0;left:0;right:0;opacity:0;pointer-events:none}@media(max-width:480px){.sp-actions{display:block}.sp-actions ui-button{display:flex}ui-stripe-payment .sp-actions .btn{width:100%}}\n"],
2073
+ styles: ["ui-stripe-payment{display:block;min-width:0}ui-stripe-payment .sp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sp-block{margin-top:12px}.sp-error{outline:none;scroll-margin-top:16px;scroll-margin-bottom:80px}.sp-label{font-size:.875rem;font-weight:500;color:#1e293b;margin-bottom:6px}.sp-required{color:#dc2626;margin-left:2px}.sp-actions{margin-top:16px;display:flex;justify-content:flex-end}ui-stripe-payment .sp{position:relative}.sp-mount--hidden{position:absolute;top:0;left:0;right:0;opacity:0;pointer-events:none}@media(max-width:480px){.sp-actions{display:block}.sp-actions ui-button{display:flex}ui-stripe-payment .sp-actions .btn{width:100%}}\n"],
1966
2074
  dependencies: [
1967
2075
  {
1968
2076
  kind: "component",
@@ -2066,7 +2174,7 @@ i0.ɵɵngDeclareClassMetadata({
2066
2174
  <div class="sp-sr" role="status" aria-live="polite" data-testid="stripe-status">{{ statusText() }}</div>
2067
2175
  }
2068
2176
  @if (!mountOnly() && protectionOn()) {
2069
- <ui-payment-attempt-status [attempt]="attempt" [readiness]="readiness" [kind]="mode()" [allowStartOver]="allowStartOver()" (retryLoad)="reload()" />
2177
+ <ui-payment-attempt-status [attempt]="attempt" [readiness]="readiness" [kind]="mode()" [allowStartOver]="allowStartOver()" [showPaid]="showPaid()" (retryLoad)="reload()" />
2070
2178
  }
2071
2179
  @if (!mountOnly() && (loading() || pending())) {
2072
2180
  <div class="sp-skeleton" data-testid="stripe-skeleton" aria-hidden="true">
@@ -2084,10 +2192,10 @@ i0.ɵɵngDeclareClassMetadata({
2084
2192
  <div #mount class="sp-mount" [attr.id]="mountId() || null" [class]="mountClass()" [class.sp-mount--hidden]="mountHidden()" [attr.aria-hidden]="mountHidden() ? 'true' : null" [attr.inert]="mountHidden() ? '' : null"
2085
2193
  [attr.role]="mountOnly() ? null : 'group'" [attr.aria-label]="mountOnly() ? null : label()" data-testid="stripe-mount"></div>
2086
2194
  @if (!mountOnly() && achNoticeVisible()) {
2087
- <div class="sp-block" [attr.data-testid]="achNoticeTestId()"><ui-alert variant="info">{{ achNotice() }}</ui-alert></div>
2195
+ <div class="sp-block" [attr.data-testid]="achNoticeTestId()"><ui-alert variant="info">{{ achNoticeText() }}</ui-alert></div>
2088
2196
  }
2089
2197
  @if (!mountOnly() && errorText(); as text) {
2090
- <div class="sp-block" [id]="errorId" data-testid="stripe-error"><ui-alert variant="danger">{{ text }}</ui-alert></div>
2198
+ <div #errorBox class="sp-block sp-error" [id]="errorId" tabindex="-1" data-testid="stripe-error"><ui-alert variant="danger">{{ text }}</ui-alert></div>
2091
2199
  }
2092
2200
  @if (!mountOnly() && showSubmit()) {
2093
2201
  <div class="sp-actions">
@@ -2097,7 +2205,7 @@ i0.ɵɵngDeclareClassMetadata({
2097
2205
  }
2098
2206
  </div>
2099
2207
  `,
2100
- styles: ["ui-stripe-payment{display:block;min-width:0}ui-stripe-payment .sp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sp-block{margin-top:12px}.sp-label{font-size:.875rem;font-weight:500;color:#1e293b;margin-bottom:6px}.sp-required{color:#dc2626;margin-left:2px}.sp-actions{margin-top:16px;display:flex;justify-content:flex-end}ui-stripe-payment .sp{position:relative}.sp-mount--hidden{position:absolute;top:0;left:0;right:0;opacity:0;pointer-events:none}@media(max-width:480px){.sp-actions{display:block}.sp-actions ui-button{display:flex}ui-stripe-payment .sp-actions .btn{width:100%}}\n"]
2208
+ styles: ["ui-stripe-payment{display:block;min-width:0}ui-stripe-payment .sp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sp-block{margin-top:12px}.sp-error{outline:none;scroll-margin-top:16px;scroll-margin-bottom:80px}.sp-label{font-size:.875rem;font-weight:500;color:#1e293b;margin-bottom:6px}.sp-required{color:#dc2626;margin-left:2px}.sp-actions{margin-top:16px;display:flex;justify-content:flex-end}ui-stripe-payment .sp{position:relative}.sp-mount--hidden{position:absolute;top:0;left:0;right:0;opacity:0;pointer-events:none}@media(max-width:480px){.sp-actions{display:block}.sp-actions ui-button{display:flex}ui-stripe-payment .sp-actions .btn{width:100%}}\n"]
2101
2209
  }]
2102
2210
  }],
2103
2211
  ctorParameters: () => [],
@@ -2270,6 +2378,30 @@ i0.ɵɵngDeclareClassMetadata({
2270
2378
  required: false
2271
2379
  }]
2272
2380
  }],
2381
+ instantOnly: [{
2382
+ type: i0.Input,
2383
+ args: [{
2384
+ isSignal: true,
2385
+ alias: "instantOnly",
2386
+ required: false
2387
+ }]
2388
+ }],
2389
+ linkOff: [{
2390
+ type: i0.Input,
2391
+ args: [{
2392
+ isSignal: true,
2393
+ alias: "linkOff",
2394
+ required: false
2395
+ }]
2396
+ }],
2397
+ showPaid: [{
2398
+ type: i0.Input,
2399
+ args: [{
2400
+ isSignal: true,
2401
+ alias: "showPaid",
2402
+ required: false
2403
+ }]
2404
+ }],
2273
2405
  returnUrl: [{
2274
2406
  type: i0.Input,
2275
2407
  args: [{
@@ -2713,6 +2845,10 @@ i0.ɵɵngDeclareClassMetadata({
2713
2845
  mountRef: [{
2714
2846
  type: i0.ViewChild,
2715
2847
  args: ["mount", { isSignal: true }]
2848
+ }],
2849
+ errorBox: [{
2850
+ type: i0.ViewChild,
2851
+ args: ["errorBox", { isSignal: true }]
2716
2852
  }]
2717
2853
  }
2718
2854
  });
@@ -2815,6 +2951,7 @@ function microdepositCancelMessage(options = {}) {
2815
2951
  if (partner) return `${MICRODEPOSIT_COPY.cancelBase} ${options.hasSavedMethod ? uiText("stripeMicrodepositVerify.cancelKeepsActivePartner", { partner }) : uiText("stripeMicrodepositVerify.cancelNoOtherPartner", { partner })}`;
2816
2952
  return MICRODEPOSIT_COPY.cancelBase + (options.hasSavedMethod ? MICRODEPOSIT_COPY.cancelKeepsActive : MICRODEPOSIT_COPY.cancelNoOther);
2817
2953
  }
2954
+ let nextId = 0;
2818
2955
  var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2819
2956
  constructor() {
2820
2957
  this.labels = inject(UiLabelsService);
@@ -2829,7 +2966,11 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2829
2966
  this.title = input("", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
2830
2967
  this.stepsText = input("", ...ngDevMode ? [{ debugName: "stepsText" }] : /* istanbul ignore next */ []);
2831
2968
  this.readOnlyText = input(MICRODEPOSIT_COPY.readOnly, ...ngDevMode ? [{ debugName: "readOnlyText" }] : /* istanbul ignore next */ []);
2969
+ this.showHostedLink = input(false, ...ngDevMode ? [{ debugName: "showHostedLink" }] : /* istanbul ignore next */ []);
2832
2970
  this.hideHostedLink = input(false, ...ngDevMode ? [{ debugName: "hideHostedLink" }] : /* istanbul ignore next */ []);
2971
+ this.attemptsRemaining = input(null, ...ngDevMode ? [{ debugName: "attemptsRemaining" }] : /* istanbul ignore next */ []);
2972
+ this.attemptsRemainingText = input("", ...ngDevMode ? [{ debugName: "attemptsRemainingText" }] : /* istanbul ignore next */ []);
2973
+ this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
2833
2974
  this.cancelLabel = input("", ...ngDevMode ? [{ debugName: "cancelLabel" }] : /* istanbul ignore next */ []);
2834
2975
  this.verifyLabel = input("", ...ngDevMode ? [{ debugName: "verifyLabel" }] : /* istanbul ignore next */ []);
2835
2976
  this.keepsActiveText = input("", ...ngDevMode ? [{ debugName: "keepsActiveText" }] : /* istanbul ignore next */ []);
@@ -2850,6 +2991,13 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2850
2991
  this.verified = output();
2851
2992
  this.verifyFailed = output();
2852
2993
  this.copy = MICRODEPOSIT_COPY;
2994
+ this.hintText = computed(() => this.hint().trim(), ...ngDevMode ? [{ debugName: "hintText" }] : /* istanbul ignore next */ []);
2995
+ this.errorId = `ui-mdv-error-${nextId}`;
2996
+ this.amountsHintId = `ui-mdv-hint-${nextId++}`;
2997
+ this.describedBy = computed(() => [this.shownError() ? this.errorId : "", this.amountsHintId].filter(Boolean).join(" "), ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
2998
+ this.codeField = viewChild("codeField", ...ngDevMode ? [{ debugName: "codeField" }] : /* istanbul ignore next */ []);
2999
+ this.firstField = viewChild("firstField", ...ngDevMode ? [{ debugName: "firstField" }] : /* istanbul ignore next */ []);
3000
+ this.secondField = viewChild("secondField", ...ngDevMode ? [{ debugName: "secondField" }] : /* istanbul ignore next */ []);
2853
3001
  this.first = signal("", ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
2854
3002
  this.second = signal("", ...ngDevMode ? [{ debugName: "second" }] : /* istanbul ignore next */ []);
2855
3003
  this.code = signal("", ...ngDevMode ? [{ debugName: "code" }] : /* istanbul ignore next */ []);
@@ -2869,6 +3017,13 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2869
3017
  }, ...ngDevMode ? [{ debugName: "bankLine" }] : /* istanbul ignore next */ []);
2870
3018
  this.busy = computed(() => this.verifying() || this.stripeBusy(), ...ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []);
2871
3019
  this.shownError = computed(() => this.stripeError() || this.errorText(), ...ngDevMode ? [{ debugName: "shownError" }] : /* istanbul ignore next */ []);
3020
+ this.attemptsText = computed(() => {
3021
+ const own = this.attemptsRemainingText().trim();
3022
+ if (own) return own;
3023
+ const left = this.attemptsRemaining();
3024
+ if (left === null || !Number.isFinite(left) || left < 0) return "";
3025
+ return this.labels.t(left === 1 ? "stripeMicrodepositVerify.attemptsLeft_one" : "stripeMicrodepositVerify.attemptsLeft_other", { count: left });
3026
+ }, ...ngDevMode ? [{ debugName: "attemptsText" }] : /* istanbul ignore next */ []);
2872
3027
  this.isProcessing = computed(() => this.type() === "processing", ...ngDevMode ? [{ debugName: "isProcessing" }] : /* istanbul ignore next */ []);
2873
3028
  this.safeUrl = computed(() => safeHostedUrl(this.hostedVerificationUrl()), ...ngDevMode ? [{ debugName: "safeUrl" }] : /* istanbul ignore next */ []);
2874
3029
  this.defaultSteps = computed(() => microdepositStepsText({
@@ -2881,11 +3036,42 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2881
3036
  this.codeError = computed(() => this.code().trim() ? descriptorCodeError(this.code(), this.requireSmPrefix()) : this.copy.codeRequired, ...ngDevMode ? [{ debugName: "codeError" }] : /* istanbul ignore next */ []);
2882
3037
  this.hasInvalid = computed(() => this.type() === "descriptor_code" ? !!this.codeError() : !!depositAmountError(this.first()) || !!depositAmountError(this.second()) || this.first() === "" || this.second() === "" || this.first() === null || this.second() === null, ...ngDevMode ? [{ debugName: "hasInvalid" }] : /* istanbul ignore next */ []);
2883
3038
  this.cancelMessage = computed(() => this.cancelMessageText() || this.copy.cancelBase + (this.hasSavedMethod() ? this.copy.cancelKeepsActive : this.copy.cancelNoOther), ...ngDevMode ? [{ debugName: "cancelMessage" }] : /* istanbul ignore next */ []);
3039
+ effect(() => {
3040
+ this.clientSecret();
3041
+ this.type();
3042
+ untracked(() => {
3043
+ this.first.set("");
3044
+ this.second.set("");
3045
+ this.code.set("");
3046
+ this.touched.set(false);
3047
+ this.stripeError.set("");
3048
+ this.failedAttempts = 0;
3049
+ });
3050
+ });
3051
+ effect(() => {
3052
+ const text = this.errorText();
3053
+ untracked(() => {
3054
+ if (text && this.touched()) this.focusFirstField();
3055
+ });
3056
+ });
3057
+ }
3058
+ focusFirstField(invalidOnly = false) {
3059
+ if (this.type() === "descriptor_code") {
3060
+ this.codeField()?.focus();
3061
+ return;
3062
+ }
3063
+ const firstBad = !!depositAmountError(this.first()) || this.first() === "" || this.first() === null;
3064
+ const secondBad = !!depositAmountError(this.second()) || this.second() === "" || this.second() === null;
3065
+ if (invalidOnly && !firstBad && secondBad) this.secondField()?.focus();
3066
+ else this.firstField()?.focus();
2884
3067
  }
2885
3068
  async verify() {
2886
3069
  if (this.busy()) return;
2887
3070
  this.touched.set(true);
2888
- if (this.hasInvalid()) return;
3071
+ if (this.hasInvalid()) {
3072
+ this.focusFirstField(true);
3073
+ return;
3074
+ }
2889
3075
  const secret = this.clientSecret();
2890
3076
  if (!secret) {
2891
3077
  this.verify$.emit(this.type() === "descriptor_code" ? { descriptorCode: normalizeDescriptorCode(this.code()) } : { amounts: [Number(this.first()), Number(this.second())] });
@@ -2894,6 +3080,7 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2894
3080
  const max = this.maxAttempts();
2895
3081
  if (max > 0 && this.failedAttempts >= max) {
2896
3082
  this.stripeError.set(this.copy.tooManyAttempts);
3083
+ this.focusFirstField();
2897
3084
  return;
2898
3085
  }
2899
3086
  this.stripeBusy.set(true);
@@ -2917,6 +3104,7 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
2917
3104
  count: remaining
2918
3105
  }) : message);
2919
3106
  this.verifyFailed.emit(result);
3107
+ this.focusFirstField();
2920
3108
  }
2921
3109
  confirmCancel() {
2922
3110
  if (this.cancelling()) return;
@@ -3011,6 +3199,13 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
3011
3199
  isRequired: false,
3012
3200
  transformFunction: null
3013
3201
  },
3202
+ showHostedLink: {
3203
+ classPropertyName: "showHostedLink",
3204
+ publicName: "showHostedLink",
3205
+ isSignal: true,
3206
+ isRequired: false,
3207
+ transformFunction: null
3208
+ },
3014
3209
  hideHostedLink: {
3015
3210
  classPropertyName: "hideHostedLink",
3016
3211
  publicName: "hideHostedLink",
@@ -3018,6 +3213,27 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
3018
3213
  isRequired: false,
3019
3214
  transformFunction: null
3020
3215
  },
3216
+ attemptsRemaining: {
3217
+ classPropertyName: "attemptsRemaining",
3218
+ publicName: "attemptsRemaining",
3219
+ isSignal: true,
3220
+ isRequired: false,
3221
+ transformFunction: null
3222
+ },
3223
+ attemptsRemainingText: {
3224
+ classPropertyName: "attemptsRemainingText",
3225
+ publicName: "attemptsRemainingText",
3226
+ isSignal: true,
3227
+ isRequired: false,
3228
+ transformFunction: null
3229
+ },
3230
+ hint: {
3231
+ classPropertyName: "hint",
3232
+ publicName: "hint",
3233
+ isSignal: true,
3234
+ isRequired: false,
3235
+ transformFunction: null
3236
+ },
3021
3237
  cancelLabel: {
3022
3238
  classPropertyName: "cancelLabel",
3023
3239
  publicName: "cancelLabel",
@@ -3130,6 +3346,29 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
3130
3346
  verified: "verified",
3131
3347
  verifyFailed: "verifyFailed"
3132
3348
  },
3349
+ viewQueries: [
3350
+ {
3351
+ propertyName: "codeField",
3352
+ first: true,
3353
+ predicate: ["codeField"],
3354
+ descendants: true,
3355
+ isSignal: true
3356
+ },
3357
+ {
3358
+ propertyName: "firstField",
3359
+ first: true,
3360
+ predicate: ["firstField"],
3361
+ descendants: true,
3362
+ isSignal: true
3363
+ },
3364
+ {
3365
+ propertyName: "secondField",
3366
+ first: true,
3367
+ predicate: ["secondField"],
3368
+ descendants: true,
3369
+ isSignal: true
3370
+ }
3371
+ ],
3133
3372
  ngImport: i0,
3134
3373
  template: `
3135
3374
  <div data-testid="bank-pending-card">
@@ -3152,26 +3391,30 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
3152
3391
  @if (hasSavedMethod()) {
3153
3392
  <ui-text size="sm" tone="muted" [text]="keepsActiveText() || copy.keepsActive" data-testid="bank-pending-keeps-active" />
3154
3393
  }
3155
- <!-- Finishing the verification on Stripe's page saves the payment method (a write): never offered to a read-only user -->
3156
- @if (!formHidden() && !hideHostedLink() && safeUrl(); as url) {
3394
+ <!-- The hosted page is the processor's own UI: only with the explicit showHostedLink input (own-UI policy), and never to a read-only user (finishing it saves the payment method, a write) -->
3395
+ @if (!formHidden() && showHostedLink() && !hideHostedLink() && safeUrl(); as url) {
3157
3396
  <div><ui-button variant="link" size="sm" [href]="url" target="_blank" data-testid="bank-hosted-link">{{ labels.t('stripeMicrodepositVerify.openStripeSVerificationPage') }}</ui-button></div>
3158
3397
  }
3159
3398
  </ui-alert>
3160
3399
 
3161
3400
  @if (!formHidden() && !isProcessing()) {
3162
3401
  @if (type() === 'descriptor_code') {
3163
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.verificationCode')" [hint]="labels.t('stripeMicrodepositVerify.6LettersOrNumbersFrom')" [maxlength]="6" [required]="true" [showErrors]="touched()"
3164
- [error]="touched() ? codeError() : ''" data-testid="bank-code-input" [ngModel]="code()" (ngModelChange)="code.set($event)" />
3402
+ <ui-text-input #codeField [label]="labels.t('stripeMicrodepositVerify.verificationCode')" [hint]="hintText() || labels.t('stripeMicrodepositVerify.6LettersOrNumbersFrom')" [maxlength]="6" [required]="true" [showErrors]="touched()"
3403
+ [error]="touched() ? codeError() : ''" [ariaInvalid]="!!shownError()" [ariaDescribedBy]="shownError() ? errorId : ''" data-testid="bank-code-input" [ngModel]="code()" (ngModelChange)="code.set($event)" />
3165
3404
  } @else {
3166
3405
  <ui-form-row data-testid="bank-amounts-row">
3167
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.firstDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3168
- [error]="touched() ? amountError(first()) : ''" data-testid="bank-amount-first" [ngModel]="first()" (ngModelChange)="first.set($event)" />
3169
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.secondDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3170
- [error]="touched() ? amountError(second()) : ''" data-testid="bank-amount-second" [ngModel]="second()" (ngModelChange)="second.set($event)" />
3406
+ <ui-text-input #firstField [label]="labels.t('stripeMicrodepositVerify.firstDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3407
+ [ariaInvalid]="!!shownError()" [ariaDescribedBy]="describedBy()" [error]="touched() ? amountError(first()) : ''" data-testid="bank-amount-first" [ngModel]="first()" (ngModelChange)="first.set($event)" />
3408
+ <ui-text-input #secondField [label]="labels.t('stripeMicrodepositVerify.secondDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3409
+ [ariaInvalid]="!!shownError()" [ariaDescribedBy]="describedBy()" [error]="touched() ? amountError(second()) : ''" data-testid="bank-amount-second" [ngModel]="second()" (ngModelChange)="second.set($event)" />
3171
3410
  </ui-form-row>
3411
+ <ui-text size="sm" tone="muted" [id]="amountsHintId" data-testid="bank-amounts-hint" [text]="hintText() || labels.t('stripeMicrodepositVerify.amountsHint')" />
3172
3412
  }
3173
3413
  @if (shownError(); as text) {
3174
- <ui-alert variant="danger" data-testid="bank-verify-error">{{ text }}</ui-alert>
3414
+ <ui-alert variant="danger" [id]="errorId" data-testid="bank-verify-error">{{ text }}</ui-alert>
3415
+ }
3416
+ @if (attemptsText(); as text) {
3417
+ <ui-text size="sm" tone="muted" role="status" data-testid="bank-attempts-remaining" [text]="text" />
3175
3418
  }
3176
3419
  <ui-button variant="primary" size="sm" data-testid="bank-verify-button" [loading]="busy()" [disabled]="busy() || cancelling()" (click)="verify()">{{ verifyLabel() || copy.verifyLabel }}</ui-button>
3177
3420
  }
@@ -3350,6 +3593,7 @@ var MicrodepositVerifyComponent = class MicrodepositVerifyComponent {
3350
3593
  "readonly",
3351
3594
  "hint",
3352
3595
  "ariaDescribedBy",
3596
+ "ariaInvalid",
3353
3597
  "error",
3354
3598
  "phoneFormat",
3355
3599
  "min",
@@ -3417,26 +3661,30 @@ i0.ɵɵngDeclareClassMetadata({
3417
3661
  @if (hasSavedMethod()) {
3418
3662
  <ui-text size="sm" tone="muted" [text]="keepsActiveText() || copy.keepsActive" data-testid="bank-pending-keeps-active" />
3419
3663
  }
3420
- <!-- Finishing the verification on Stripe's page saves the payment method (a write): never offered to a read-only user -->
3421
- @if (!formHidden() && !hideHostedLink() && safeUrl(); as url) {
3664
+ <!-- The hosted page is the processor's own UI: only with the explicit showHostedLink input (own-UI policy), and never to a read-only user (finishing it saves the payment method, a write) -->
3665
+ @if (!formHidden() && showHostedLink() && !hideHostedLink() && safeUrl(); as url) {
3422
3666
  <div><ui-button variant="link" size="sm" [href]="url" target="_blank" data-testid="bank-hosted-link">{{ labels.t('stripeMicrodepositVerify.openStripeSVerificationPage') }}</ui-button></div>
3423
3667
  }
3424
3668
  </ui-alert>
3425
3669
 
3426
3670
  @if (!formHidden() && !isProcessing()) {
3427
3671
  @if (type() === 'descriptor_code') {
3428
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.verificationCode')" [hint]="labels.t('stripeMicrodepositVerify.6LettersOrNumbersFrom')" [maxlength]="6" [required]="true" [showErrors]="touched()"
3429
- [error]="touched() ? codeError() : ''" data-testid="bank-code-input" [ngModel]="code()" (ngModelChange)="code.set($event)" />
3672
+ <ui-text-input #codeField [label]="labels.t('stripeMicrodepositVerify.verificationCode')" [hint]="hintText() || labels.t('stripeMicrodepositVerify.6LettersOrNumbersFrom')" [maxlength]="6" [required]="true" [showErrors]="touched()"
3673
+ [error]="touched() ? codeError() : ''" [ariaInvalid]="!!shownError()" [ariaDescribedBy]="shownError() ? errorId : ''" data-testid="bank-code-input" [ngModel]="code()" (ngModelChange)="code.set($event)" />
3430
3674
  } @else {
3431
3675
  <ui-form-row data-testid="bank-amounts-row">
3432
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.firstDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3433
- [error]="touched() ? amountError(first()) : ''" data-testid="bank-amount-first" [ngModel]="first()" (ngModelChange)="first.set($event)" />
3434
- <ui-text-input [label]="labels.t('stripeMicrodepositVerify.secondDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3435
- [error]="touched() ? amountError(second()) : ''" data-testid="bank-amount-second" [ngModel]="second()" (ngModelChange)="second.set($event)" />
3676
+ <ui-text-input #firstField [label]="labels.t('stripeMicrodepositVerify.firstDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3677
+ [ariaInvalid]="!!shownError()" [ariaDescribedBy]="describedBy()" [error]="touched() ? amountError(first()) : ''" data-testid="bank-amount-first" [ngModel]="first()" (ngModelChange)="first.set($event)" />
3678
+ <ui-text-input #secondField [label]="labels.t('stripeMicrodepositVerify.secondDepositCents')" type="number" [min]="1" [max]="99" [maxDecimals]="0" [required]="true" [showErrors]="touched()"
3679
+ [ariaInvalid]="!!shownError()" [ariaDescribedBy]="describedBy()" [error]="touched() ? amountError(second()) : ''" data-testid="bank-amount-second" [ngModel]="second()" (ngModelChange)="second.set($event)" />
3436
3680
  </ui-form-row>
3681
+ <ui-text size="sm" tone="muted" [id]="amountsHintId" data-testid="bank-amounts-hint" [text]="hintText() || labels.t('stripeMicrodepositVerify.amountsHint')" />
3437
3682
  }
3438
3683
  @if (shownError(); as text) {
3439
- <ui-alert variant="danger" data-testid="bank-verify-error">{{ text }}</ui-alert>
3684
+ <ui-alert variant="danger" [id]="errorId" data-testid="bank-verify-error">{{ text }}</ui-alert>
3685
+ }
3686
+ @if (attemptsText(); as text) {
3687
+ <ui-text size="sm" tone="muted" role="status" data-testid="bank-attempts-remaining" [text]="text" />
3440
3688
  }
3441
3689
  <ui-button variant="primary" size="sm" data-testid="bank-verify-button" [loading]="busy()" [disabled]="busy() || cancelling()" (click)="verify()">{{ verifyLabel() || copy.verifyLabel }}</ui-button>
3442
3690
  }
@@ -3455,6 +3703,7 @@ i0.ɵɵngDeclareClassMetadata({
3455
3703
  `
3456
3704
  }]
3457
3705
  }],
3706
+ ctorParameters: () => [],
3458
3707
  propDecorators: {
3459
3708
  type: [{
3460
3709
  type: i0.Input,
@@ -3536,6 +3785,14 @@ i0.ɵɵngDeclareClassMetadata({
3536
3785
  required: false
3537
3786
  }]
3538
3787
  }],
3788
+ showHostedLink: [{
3789
+ type: i0.Input,
3790
+ args: [{
3791
+ isSignal: true,
3792
+ alias: "showHostedLink",
3793
+ required: false
3794
+ }]
3795
+ }],
3539
3796
  hideHostedLink: [{
3540
3797
  type: i0.Input,
3541
3798
  args: [{
@@ -3544,6 +3801,30 @@ i0.ɵɵngDeclareClassMetadata({
3544
3801
  required: false
3545
3802
  }]
3546
3803
  }],
3804
+ attemptsRemaining: [{
3805
+ type: i0.Input,
3806
+ args: [{
3807
+ isSignal: true,
3808
+ alias: "attemptsRemaining",
3809
+ required: false
3810
+ }]
3811
+ }],
3812
+ attemptsRemainingText: [{
3813
+ type: i0.Input,
3814
+ args: [{
3815
+ isSignal: true,
3816
+ alias: "attemptsRemainingText",
3817
+ required: false
3818
+ }]
3819
+ }],
3820
+ hint: [{
3821
+ type: i0.Input,
3822
+ args: [{
3823
+ isSignal: true,
3824
+ alias: "hint",
3825
+ required: false
3826
+ }]
3827
+ }],
3547
3828
  cancelLabel: [{
3548
3829
  type: i0.Input,
3549
3830
  args: [{
@@ -3679,6 +3960,18 @@ i0.ɵɵngDeclareClassMetadata({
3679
3960
  verifyFailed: [{
3680
3961
  type: i0.Output,
3681
3962
  args: ["verifyFailed"]
3963
+ }],
3964
+ codeField: [{
3965
+ type: i0.ViewChild,
3966
+ args: ["codeField", { isSignal: true }]
3967
+ }],
3968
+ firstField: [{
3969
+ type: i0.ViewChild,
3970
+ args: ["firstField", { isSignal: true }]
3971
+ }],
3972
+ secondField: [{
3973
+ type: i0.ViewChild,
3974
+ args: ["secondField", { isSignal: true }]
3682
3975
  }]
3683
3976
  }
3684
3977
  });
@@ -5214,6 +5507,9 @@ var PaymentStripeBodyComponent = class PaymentStripeBodyComponent {
5214
5507
  "paymentElementOptions",
5215
5508
  "appearance",
5216
5509
  "appearanceFromTokens",
5510
+ "instantOnly",
5511
+ "linkOff",
5512
+ "showPaid",
5217
5513
  "returnUrl",
5218
5514
  "billingDetails",
5219
5515
  "confirmParams",
@@ -5967,6 +6263,6 @@ i0.ɵɵngDeclareClassMetadata({
5967
6263
  }]
5968
6264
  }
5969
6265
  });
5970
- export { MICRODEPOSIT_COPY, MicrodepositVerifyComponent, STRIPE_A11Y_MESSAGES, STRIPE_ACH_NOTICE, STRIPE_DEFAULT_ERROR_MESSAGE, STRIPE_ERROR_MESSAGES, STRIPE_LOADER, STRIPE_METHOD_TEXTS, STRIPE_PAYMENT_DEFAULTS, STRIPE_PAYMENT_METHODS, STRIPE_TECHNICAL_ERROR_MESSAGES, StripeConnectComponent, StripeConnectFlow, StripePaymentComponent, StripePaymentMethodComponent, StripePaymentService, buildLoadOptions, defaultStripeLoader, depositAmountError, descriptorCodeError, getStripeErrorMessage, isDarkPage, isStripeUrl, microdepositArrivalText, microdepositCancelMessage, microdepositKeepsActiveText, microdepositProcessingText, microdepositStepsText, normalizeDescriptorCode, normalizeIntent, outcomeOf, paymentMethodIdOf, provideStripePayment, readStripeAppearance, readStripeReturnParams, retrieveIntent, stripeConnectNotice, verificationOf, verifyMicrodeposits };
6266
+ export { INSTANT_ONLY_CODE, MICRODEPOSIT_COPY, MicrodepositVerifyComponent, STRIPE_A11Y_MESSAGES, STRIPE_ACH_NOTICE, STRIPE_DEFAULT_ERROR_MESSAGE, STRIPE_ERROR_MESSAGES, STRIPE_LOADER, STRIPE_METHOD_TEXTS, STRIPE_PAYMENT_DEFAULTS, STRIPE_PAYMENT_METHODS, STRIPE_TECHNICAL_ERROR_MESSAGES, StripeConnectComponent, StripeConnectFlow, StripePaymentComponent, StripePaymentMethodComponent, StripePaymentService, buildLoadOptions, defaultStripeLoader, depositAmountError, descriptorCodeError, getStripeErrorMessage, isDarkPage, isStripeUrl, microdepositArrivalText, microdepositCancelMessage, microdepositKeepsActiveText, microdepositProcessingText, microdepositStepsText, normalizeDescriptorCode, normalizeIntent, outcomeOf, paymentMethodIdOf, provideStripePayment, readStripeAppearance, readStripeReturnParams, retrieveIntent, stripeAppearanceFromTheme, stripeConnectNotice, verificationOf, verifyMicrodeposits };
5971
6267
 
5972
6268
  //# sourceMappingURL=forgeroute-ui-stripe.mjs.map