@alviere/ui 0.11.0 → 0.11.1

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.
package/dist/index.js CHANGED
@@ -5614,8 +5614,9 @@ function isDebugMode() {
5614
5614
  if (typeof window !== "undefined" && window.location.search.includes("debug=true")) {
5615
5615
  return true;
5616
5616
  }
5617
- if (typeof import.meta !== "undefined" && __vite_import_meta_env__) {
5618
- return false;
5617
+ const viteEnv = __vite_import_meta_env__;
5618
+ if (viteEnv) {
5619
+ return viteEnv.VITE_DEBUG === "true";
5619
5620
  }
5620
5621
  if (typeof process !== "undefined" && process.env) {
5621
5622
  return process.env.VITE_DEBUG === "true";
@@ -5687,13 +5688,13 @@ class AlviereCoreManager {
5687
5688
  const cacheKey = this.getCacheKey(config);
5688
5689
  const cached = this.cache.get(cacheKey);
5689
5690
  if (cached) {
5690
- this.logger = getLogger(cached.instance);
5691
- this.logger.info("🔍 Returning cached AlviereCore instance...", cached.instance);
5691
+ const logger2 = getLogger(cached.instance);
5692
+ logger2.info("🔍 Returning cached AlviereCore instance...");
5692
5693
  return cached.instance;
5693
5694
  }
5694
5695
  const instance = new AlviereCore(config);
5695
- this.logger = getLogger(instance);
5696
- this.logger.info("🔍 Creating new AlviereCore instance...", instance);
5696
+ const logger = getLogger(instance);
5697
+ logger.info("🔍 Creating new AlviereCore instance...");
5697
5698
  this.cache.set(cacheKey, {
5698
5699
  instance,
5699
5700
  key: {
@@ -6339,7 +6340,9 @@ class SchemaValidator {
6339
6340
  if (matchValue === void 0) {
6340
6341
  return null;
6341
6342
  }
6342
- if (value !== matchValue) {
6343
+ const normalizedValue = typeof value === "string" ? value.trim() : value === void 0 || value === null ? "" : String(value);
6344
+ const normalizedMatchValue = typeof matchValue === "string" ? matchValue.trim() : matchValue === void 0 || matchValue === null ? "" : String(matchValue);
6345
+ if (normalizedValue !== normalizedMatchValue) {
6343
6346
  return rule.message || "Values do not match";
6344
6347
  }
6345
6348
  return null;
@@ -11678,6 +11681,8 @@ const createFlowCoreStore = () => {
11678
11681
  const { subscribe, set: set2, update: update2 } = writable({ core: null, isInitialized: false, config: null });
11679
11682
  return {
11680
11683
  subscribe,
11684
+ set: set2,
11685
+ update: update2,
11681
11686
  /**
11682
11687
  * Initialize the shared AlviereCore instance
11683
11688
  */
@@ -11840,7 +11845,7 @@ function createBaseFormMixin(options) {
11840
11845
  return validFields / totalFields * 100;
11841
11846
  });
11842
11847
  async function submit() {
11843
- if (!get$1(canSubmit)) {
11848
+ if (!get$1(canSubmit)()) {
11844
11849
  uiLogger.warn(`[${formName}] Cannot submit: form validation failed or is disabled`);
11845
11850
  return;
11846
11851
  }
@@ -12288,28 +12293,13 @@ function createAccountStatusGuard(config) {
12288
12293
  }
12289
12294
  const INDIVIDUAL_PAYER = { "profileId": "INDIVIDUAL_PAYER", "config": { "labels": { "finalText": "Payment in process" } }, "steps": [{ "type": "CREATE_CONSUMER_ACCOUNT", "fields": { "first_name": { "required": "First Name is required", "alphabetic": true }, "last_name": { "required": "Last Name is required", "alphabetic": true }, "email_address": { "required": "Email Address is required", "email": true } }, "fieldMeta": { "first_name": { "label": "First Name" }, "last_name": { "label": "Last Name" }, "email_address": { "label": "Email Address" }, "line_1": { "label": "Address Line 1" }, "line_2": { "label": "Address Line 2" }, "city": { "label": "City" }, "state": { "label": "State/Province" }, "postal_code": { "label": "Postal Code" }, "country": { "label": "Country" } }, "config": { "groups": { "information": "consumer_information" }, "layout": [{ "label": "Peronal Information", "group": "consumer_information", "rows": [{ "fields": ["first_name", "last_name"] }, { "fields": ["email_address"] }] }], "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE"], "polling": { "enabled": true, "intervalMs": 2e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "ADD_BANK_ACCOUNT", "fields": { "ach_routing_number": {}, "ach_account_number": {}, "ach_account_type": {} }, "fieldMeta": { "ach_routing_number": { "label": "Routing Number", "helpText": "You can find your routing number on your check or bank statement." }, "ach_account_number": { "label": "Account Number" }, "ach_account_type": { "label": "Account Type" } }, "config": { "requireRoutingAndAccountConfirmation": true } }, { "type": "CHECKOUT_CONFIRM", "config": { "amountEditable": false, "legalTexts": { "required": true, "documents": [{ "type": "ACH_DEBIT_AUTHORIZATION" }] } } }] };
12290
12295
  const BUSINESS_PAYER = { "profileId": "BUSINESS_PAYER", "config": { "labels": { "finalText": "Payment in process" } }, "steps": [{ "type": "CREATE_BUSINESS_ACCOUNT", "fields": { "business_name": { "required": "Business Name is required", "alphabetic": true }, "business_type": { "required": "Business Type is required" }, "country_of_incorporation": { "required": "Country of Incorporation is required" }, "state_of_incorporation": { "required": "State of Incorporation is required" }, "ein": {} }, "fieldMeta": { "business_name": { "label": "Business Name" }, "business_type": { "label": "Business Type" }, "country_of_incorporation": { "label": "Country of Incorporation" }, "state_of_incorporation": { "label": "State of Incorporation" }, "ein": { "label": "EIN" }, "email_address": { "label": "Email Address" }, "line_1": { "label": "Address Line 1" }, "line_2": { "label": "Address Line 2" }, "city": { "label": "City" }, "state": { "label": "State/Province" }, "postal_code": { "label": "Postal Code" }, "country": { "label": "Country" } }, "config": { "groups": { "information": "business_information" }, "layout": [{ "label": "Business Information", "group": "business_information", "rows": [{ "fields": ["business_name", "business_type"] }, { "fields": ["country_of_incorporation", "state_of_incorporation"] }, { "fields": ["ein"] }] }], "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE"], "polling": { "enabled": true, "intervalMs": 3e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "ADD_BANK_ACCOUNT", "fields": { "ach_routing_number": {}, "ach_account_number": {}, "ach_account_type": {} }, "fieldMeta": { "ach_routing_number": { "label": "Routing Number", "helpText": "You can find your routing number on your check or bank statement." }, "ach_account_number": { "label": "Account Number" }, "ach_account_type": { "label": "Account Type" } }, "config": { "requireRoutingAndAccountConfirmation": true } }, { "type": "CHECKOUT_CONFIRM", "config": { "amountEditable": false, "legalTexts": { "required": true, "documents": [{ "type": "ACH_DEBIT_AUTHORIZATION" }] } } }] };
12291
- const PAYEE = { "profileId": "PAYEE", "config": { "labels": { "finalText": "Onboarding in Process" } }, "steps": [{ "type": "CREATE_BUSINESS_ACCOUNT", "fields": { "business_type": { "required": "Business Type is required" }, "business_name": { "required": "Business Name is required", "alphabetic": true }, "country_of_incorporation": { "required": "Country of Incorporation is required" }, "state_of_incorporation": { "required": "State of Incorporation is required" }, "nature_of_business": { "required": "Nature of Business is required" }, "ein": { "required": "EIN is required" }, "line_1": { "required": "Address Line 1 is required" }, "city": { "required": "City is required" }, "state": { "required": "State is required" }, "postal_code": { "required": "Postal Code is required" } }, "fieldsMeta": { "business_name": { "label": "Business Name" }, "business_type": { "label": "Business Type" }, "country_of_incorporation": { "label": "Country of Incorporation" }, "state_of_incorporation": { "label": "State of Incorporation" }, "nature_of_business": { "label": "Nature of Business (NAICS)" }, "ein": { "label": "EIN" }, "line_1": { "label": "Address Line 1" }, "city": { "label": "City" }, "state": { "label": "State" }, "postal_code": { "label": "Postal Code" } }, "config": { "labels": { "createAccountLabel": "Create Account", "creatingAccountLabel": "Creating Account...", "updateAccountLabel": "Update Account", "updatingAccountLabel": "Updating Account..." }, "groups": { "information": "business_information", "primary_address": "primary_address" }, "layout": [{ "label": "Business Information", "group": "business_information", "rows": [{ "fields": ["business_name", "business_type"] }, { "fields": ["country_of_incorporation", "state_of_incorporation"] }, { "fields": ["nature_of_business", "ein"] }] }, { "label": "Address", "group": "primary_address", "rows": [{ "fields": ["line_1"] }, { "fields": ["city", "state"] }, { "fields": ["postal_code"] }] }], "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE", "CREATED"], "barrierStatuses": ["MANUAL_REVIEW"], "barrierTitle": "Review in progress", "barrierMessage": "Your account is currently under review. <br />You will be able to continue once the review is complete.", "polling": { "enabled": true, "intervalMs": 3e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "START_ONBOARDING", "config": { "legalTexts": { "required": true, "documents": [{ "type": "TERMS_AND_CONDITIONS" }, { "type": "PRIVACY_POLICY" }] }, "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE"], "barrierStatuses": ["MANUAL_REVIEW"], "barrierTitle": "Manual review in progress", "barrierMessage": "Your account is currently under manual review. You will be able to continue once the review is complete.", "polling": { "enabled": true, "intervalMs": 3e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "ADD_BANK_ACCOUNT", "fields": { "ach_routing_number": {}, "ach_account_number": {} }, "fieldMeta": { "ach_routing_number": { "label": "Routing Number", "helpText": "You can find your routing number on your check or bank statement." }, "ach_account_number": { "label": "Account Number" } }, "config": { "labels": { "finalizeButton": "Finalize Onboarding" }, "requireRoutingAndAccountConfirmation": true } }] };
12296
+ const PAYEE = { "profileId": "PAYEE", "config": { "labels": { "finalText": "Process complete" } }, "steps": [{ "type": "CREATE_BUSINESS_ACCOUNT", "fields": { "business_type": { "required": "Business Type is required" }, "business_name": { "required": "Business Name is required", "alphabetic": true }, "country_of_incorporation": { "required": "Country of Incorporation is required" }, "state_of_incorporation": { "required": "State of Incorporation is required" }, "nature_of_business": { "required": "Nature of Business is required" }, "ein": { "required": "EIN is required" }, "line_1": { "required": "Address Line 1 is required" }, "city": { "required": "City is required" }, "state": { "required": "State is required" }, "postal_code": { "required": "Postal Code is required" } }, "fieldMeta": { "business_name": { "label": "Business Name" }, "business_type": { "label": "Business Type" }, "country_of_incorporation": { "label": "Country of Incorporation" }, "state_of_incorporation": { "label": "State of Incorporation" }, "nature_of_business": { "label": "Nature of Business (NAICS)" }, "ein": { "label": "EIN" }, "line_1": { "label": "Address Line 1" }, "city": { "label": "City" }, "state": { "label": "State" }, "postal_code": { "label": "Postal Code" } }, "config": { "labels": { "createAccountLabel": "Create Account", "creatingAccountLabel": "Creating Account...", "updateAccountLabel": "Update Account", "updatingAccountLabel": "Updating Account..." }, "groups": { "information": "business_information", "primary_address": "primary_address" }, "layout": [{ "label": "Business Information", "group": "business_information", "rows": [{ "fields": ["business_name", "business_type"] }, { "fields": ["country_of_incorporation", "state_of_incorporation"] }, { "fields": ["nature_of_business", "ein"] }] }, { "label": "Address", "group": "primary_address", "rows": [{ "fields": ["line_1"] }, { "fields": ["city", "state"] }, { "fields": ["postal_code"] }] }], "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE", "CREATED"], "barrierStatuses": ["MANUAL_REVIEW"], "barrierTitle": "Review in progress", "barrierMessage": "Your account is currently under review. <br />You will be able to continue once the review is complete.", "polling": { "enabled": true, "intervalMs": 3e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "START_ONBOARDING", "config": { "legalTexts": { "required": true, "documents": [{ "type": "TERMS_AND_CONDITIONS" }, { "type": "PRIVACY_POLICY" }] }, "statusPolicy": { "allowedStatusesForNextStep": ["ACTIVE"], "barrierStatuses": ["MANUAL_REVIEW"], "barrierTitle": "Manual review in progress", "barrierMessage": "Your account is currently under review. <br />You will be able to continue once the review is complete.", "polling": { "enabled": true, "intervalMs": 3e3, "maxRetries": 5, "terminalStatuses": ["FAILED", "REJECTED"], "onTerminal": "error" } } } }, { "type": "ADD_BANK_ACCOUNT", "fields": { "ach_routing_number": {}, "ach_account_number": {} }, "fieldMeta": { "ach_routing_number": { "label": "Routing Number", "helpText": "You can find your routing number on your check or bank statement." }, "ach_account_number": { "label": "Account Number" } }, "config": { "labels": { "finalizeButton": "Finalize Onboarding" }, "requireRoutingAndAccountConfirmation": true } }] };
12292
12297
  const recipesJson = {
12293
12298
  INDIVIDUAL_PAYER,
12294
12299
  BUSINESS_PAYER,
12295
12300
  PAYEE
12296
12301
  };
12297
- function normalizeValidationSchema(schema) {
12298
- var _a2;
12299
- if (!schema) return {};
12300
- const normalized = { ...schema };
12301
- if ((_a2 = schema.pattern) == null ? void 0 : _a2.regex) {
12302
- normalized.pattern = {
12303
- message: schema.pattern.message,
12304
- regex: new RegExp(schema.pattern.regex)
12305
- };
12306
- }
12307
- return normalized;
12308
- }
12309
12302
  function normalizeRecipe(raw, profileId) {
12310
- Object.entries(raw.fields || {}).forEach(([key, schema]) => {
12311
- normalizeValidationSchema(schema);
12312
- });
12313
12303
  return {
12314
12304
  profileId: raw.profileId || profileId,
12315
12305
  steps: raw.steps,
@@ -12708,7 +12698,7 @@ var root_1$9 = /* @__PURE__ */ from_html(`<h2 class="svelte-oq2xej"> </h2>`);
12708
12698
  var root_2$5 = /* @__PURE__ */ from_html(`<div><alviere-spinner><span slot="message"><!></span></alviere-spinner></div>`, 2);
12709
12699
  var root_13$2 = /* @__PURE__ */ from_html(`<div class="form-row svelte-oq2xej"></div>`);
12710
12700
  var root_11$1 = /* @__PURE__ */ from_html(`<div class="form-section svelte-oq2xej"><h3 class="svelte-oq2xej"> </h3> <!></div>`);
12711
- var root_22$2 = /* @__PURE__ */ from_html(`<span class="validation-info svelte-oq2xej"> </span>`);
12701
+ var root_22$1 = /* @__PURE__ */ from_html(`<span class="validation-info svelte-oq2xej"> </span>`);
12712
12702
  var root_23$1 = /* @__PURE__ */ from_html(`<p><span class="validation-hint svelte-oq2xej">Please fill in all required fields to continue</span></p>`);
12713
12703
  var root_24$1 = /* @__PURE__ */ from_html(`<span class="validation-error">Please fix the errors above</span>`);
12714
12704
  var root$9 = /* @__PURE__ */ from_html(`<div class="alviere-create-account svelte-oq2xej"><!> <!> <form novalidate=""><!> <div class="form-actions svelte-oq2xej"><div class="form-status svelte-oq2xej"><!> <!> <!></div> <alviere-button><!></alviere-button></div></form></div>`, 2);
@@ -13347,7 +13337,7 @@ function CreateAccount($$anchor, $$props) {
13347
13337
  if ((_a3 = baseForm.state.alviereCore) === null || _a3 === void 0 ? void 0 : _a3.isScopedToPayee()) {
13348
13338
  const accountUuidFromJWT = baseForm.state.alviereCore.getAccountUuid();
13349
13339
  uiLogger.info("🔄 Returning user detected - JWT already scoped to payor account:", accountUuidFromJWT);
13350
- if (accountUuidFromJWT && accountUuidFromJWT !== "862a2524-ce32-4fa7-b138-e7ac7e93c022") {
13340
+ if (accountUuidFromJWT) {
13351
13341
  try {
13352
13342
  const account = await checkIfAccountExistsAndIsActive(accountUuidFromJWT);
13353
13343
  if (account) {
@@ -14049,7 +14039,7 @@ function CreateAccount($$anchor, $$props) {
14049
14039
  var node_13 = child(div_5);
14050
14040
  {
14051
14041
  var consequent_11 = ($$anchor2) => {
14052
- var span_1 = root_22$2();
14042
+ var span_1 = root_22$1();
14053
14043
  var text_7 = child(span_1, true);
14054
14044
  reset(span_1);
14055
14045
  template_effect(() => set_text(text_7, get$1(pendingUserMessage)));
@@ -14511,20 +14501,21 @@ var root_8$2 = /* @__PURE__ */ from_html(`<div class="bank-accounts-section__car
14511
14501
  var root_6$2 = /* @__PURE__ */ from_html(`<div class="bank-accounts-section__card-content__info-row svelte-t9z8bl"><span class="label svelte-t9z8bl">Bank:</span> <span class="value svelte-t9z8bl"> </span></div> <!> <!>`, 1);
14512
14502
  var root_9$2 = /* @__PURE__ */ from_html(`<div class="bank-accounts-section__card-content__info-row svelte-t9z8bl"><span class="label svelte-t9z8bl">Account Type:</span> <span class="value svelte-t9z8bl"> </span></div>`);
14513
14503
  var root_3$6 = /* @__PURE__ */ from_html(`<alviere-list-item><div slot="leading"><alviere-badge> </alviere-badge></div> <div slot="primary-text"><span> <!></span></div> <div slot="badges"><!></div> <div slot="secondary-text"><span> </span></div> <div slot="tertiary-text"><span> </span></div> <div slot="actions"><alviere-button></alviere-button> <alviere-button></alviere-button></div> <div slot="expanded-content"><div class="bank-accounts-section__card-content svelte-t9z8bl"><div class="bank-accounts-section__card-content__info-row svelte-t9z8bl"><span class="label svelte-t9z8bl">Account Number:</span> <span class="value svelte-t9z8bl"> </span></div> <div class="bank-accounts-section__card-content__info-row svelte-t9z8bl"><span class="label svelte-t9z8bl">Routing/SWIFT:</span> <span class="value svelte-t9z8bl"> </span></div> <!> <!></div></div></alviere-list-item>`, 2);
14514
- var root_2$4 = /* @__PURE__ */ from_html(`<div class="bank-accounts-section svelte-t9z8bl"><div class="alviere-add-bank-account__header svelte-t9z8bl"><h2 class="svelte-t9z8bl"> </h2> <alviere-button>Add New Bank Account</alviere-button></div> <alviere-list></alviere-list> <div class="alviere-add-bank-account__footer svelte-t9z8bl"><alviere-button> </alviere-button></div></div>`, 2);
14515
- var root_11 = /* @__PURE__ */ from_html(`<alviere-button><span class="alviere-add-bank-account__button__label">Back to Bank Accounts</span></alviere-button>`, 2);
14516
- var root_15$1 = /* @__PURE__ */ from_html(`<span class="bank-region svelte-t9z8bl"> </span>`);
14517
- var root_14$1 = /* @__PURE__ */ from_html(`<div class="routing-info svelte-t9z8bl"><div class="routing-info-header svelte-t9z8bl"><span class="bank-name svelte-t9z8bl"> </span> <!></div></div>`);
14518
- var root_16$1 = /* @__PURE__ */ from_html(`<alviere-spinner></alviere-spinner>`, 2);
14519
- var root_13$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
14520
- var root_17$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!></div>`);
14521
- var root_18$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!> <!></div>`);
14522
- var root_20$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!> <!></div>`);
14523
- var root_12$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row alviere-add-bank-account__form__row--banking-info svelte-t9z8bl"><alviere-badge>ACH</alviere-badge> <!></div> <!> <!> <!>`, 3);
14524
- var root_22$1 = /* @__PURE__ */ from_html(`<span class="validation-hint svelte-t9z8bl">Please fill in all required fields to continue</span>`);
14525
- var root_23 = /* @__PURE__ */ from_html(`<span class="validation-error svelte-t9z8bl">Please fix the errors above</span>`);
14526
- var root_24 = /* @__PURE__ */ from_html(`<span class="validation-error svelte-t9z8bl" role="alert"> </span>`);
14527
- var root_10 = /* @__PURE__ */ from_html(`<form novalidate="" class="alviere-add-bank-account__form svelte-t9z8bl"><div class="alviere-add-bank-account__header svelte-t9z8bl"><h2 class="svelte-t9z8bl">Add Bank Account</h2> <!></div> <div class="alviere-add-bank-account__form__section"><!> <div class="alviere-add-bank-account__form__row svelte-t9z8bl"><alviere-checkbox></alviere-checkbox></div></div> <div class="form-actions svelte-t9z8bl"><div class="form-status svelte-t9z8bl"><!> <!> <!></div> <alviere-button> </alviere-button></div></form>`, 2);
14504
+ var root_10 = /* @__PURE__ */ from_html(`<div class="form-status svelte-t9z8bl"><span class="validation-error svelte-t9z8bl" role="alert"> </span></div>`);
14505
+ var root_2$4 = /* @__PURE__ */ from_html(`<div class="bank-accounts-section svelte-t9z8bl"><div class="alviere-add-bank-account__header svelte-t9z8bl"><h2 class="svelte-t9z8bl"> </h2> <alviere-button>Add New Bank Account</alviere-button></div> <alviere-list></alviere-list> <div class="alviere-add-bank-account__footer svelte-t9z8bl"><!> <alviere-button> </alviere-button></div></div>`, 2);
14506
+ var root_12$1 = /* @__PURE__ */ from_html(`<alviere-button><span class="alviere-add-bank-account__button__label">Back to Bank Accounts</span></alviere-button>`, 2);
14507
+ var root_16$1 = /* @__PURE__ */ from_html(`<span class="bank-region svelte-t9z8bl"> </span>`);
14508
+ var root_15$1 = /* @__PURE__ */ from_html(`<div class="routing-info svelte-t9z8bl"><div class="routing-info-header svelte-t9z8bl"><span class="bank-name svelte-t9z8bl"> </span> <!></div></div>`);
14509
+ var root_17$1 = /* @__PURE__ */ from_html(`<alviere-spinner></alviere-spinner>`, 2);
14510
+ var root_14$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
14511
+ var root_18$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!></div>`);
14512
+ var root_19$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!> <!></div>`);
14513
+ var root_21$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row svelte-t9z8bl"><!> <!></div>`);
14514
+ var root_13$1 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account__form__row alviere-add-bank-account__form__row--banking-info svelte-t9z8bl"><alviere-badge>ACH</alviere-badge> <!></div> <!> <!> <!>`, 3);
14515
+ var root_23 = /* @__PURE__ */ from_html(`<span class="validation-hint svelte-t9z8bl">Please fill in all required fields to continue</span>`);
14516
+ var root_24 = /* @__PURE__ */ from_html(`<span class="validation-error svelte-t9z8bl">Please fix the errors above</span>`);
14517
+ var root_25 = /* @__PURE__ */ from_html(`<span class="validation-error svelte-t9z8bl" role="alert"> </span>`);
14518
+ var root_11 = /* @__PURE__ */ from_html(`<form novalidate="" class="alviere-add-bank-account__form svelte-t9z8bl"><div class="alviere-add-bank-account__header svelte-t9z8bl"><h2 class="svelte-t9z8bl">Add Bank Account</h2> <!></div> <div class="alviere-add-bank-account__form__section"><!> <div class="alviere-add-bank-account__form__row svelte-t9z8bl"><alviere-checkbox></alviere-checkbox></div></div> <div class="form-actions svelte-t9z8bl"><div class="form-status svelte-t9z8bl"><!> <!> <!></div> <alviere-button> </alviere-button></div></form>`, 2);
14528
14519
  var root$8 = /* @__PURE__ */ from_html(`<div class="alviere-add-bank-account svelte-t9z8bl"><!> <!> <!></div> <alviere-modal><div class="alviere-add-bank-account__routing-help svelte-t9z8bl"><!> <p class="alviere-add-bank-account__routing-help-text svelte-t9z8bl">Your routing number is the first 9 digits located on the bottom left of your checks.</p></div></alviere-modal>`, 3);
14529
14520
  const $$css$b = {
14530
14521
  hash: "svelte-t9z8bl",
@@ -14532,7 +14523,7 @@ const $$css$b = {
14532
14523
  @media (max-width: 768px) {.alviere-add-bank-account__header.svelte-t9z8bl {justify-content:space-between;}
14533
14524
  }
14534
14525
  @media (max-width: 768px) {.alviere-add-bank-account__header.svelte-t9z8bl .alviere-add-bank-account__button__label {display:none;}
14535
- }.alviere-add-bank-account__footer.svelte-t9z8bl {display:flex;justify-content:center;align-items:center;padding-top:2rem;}.alviere-add-bank-account__form.svelte-t9z8bl {max-width:100%;margin:0 auto;font-family:"Darker Grotesque", sans-serif;line-height:1;background:#ffffff;}.alviere-add-bank-account__form__row.svelte-t9z8bl {display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem;padding-bottom:1rem;}.alviere-add-bank-account__form__row--banking-info.svelte-t9z8bl {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:0.5rem;}.alviere-add-bank-account__routing-help.svelte-t9z8bl {display:flex;flex-direction:column;align-items:center;gap:0.5rem;text-align:center;}.alviere-add-bank-account__routing-help-text.svelte-t9z8bl {font-size:1.125rem;color:#3f3f46;}.routing-info.svelte-t9z8bl {border-radius:6px;padding:0.5rem;}.routing-info-header.svelte-t9z8bl {display:flex;align-items:center;gap:0.5rem;}.routing-info.svelte-t9z8bl .bank-name:where(.svelte-t9z8bl) {font-weight:600;color:var(--gray-600);font-size:0.75rem;}.bank-region.svelte-t9z8bl {color:var(--gray-600);font-size:0.75rem;}.bank-accounts-section.svelte-t9z8bl {margin:0 auto;background:#fff;}.bank-accounts-section__card-content.svelte-t9z8bl {display:flex;flex-direction:column;gap:0.75rem;padding:1rem;padding-top:0.5rem;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl {display:flex;justify-content:space-between;align-items:center;padding:0.5rem 0 0;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl .label:where(.svelte-t9z8bl) {font-weight:500;color:#495057;font-size:0.9rem;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl .value:where(.svelte-t9z8bl) {font-weight:600;color:#212529;font-size:0.9rem;}.form-actions.svelte-t9z8bl {margin-top:24px;text-align:center;}.form-status.svelte-t9z8bl {margin-bottom:1rem;text-align:center;font-size:1.125rem;}.validation-hint.svelte-t9z8bl {color:#6b7280;font-size:0.875rem;font-style:italic;}.validation-error.svelte-t9z8bl {color:#b3311f;font-size:1.125rem;font-weight:500;margin-top:0.25rem;}.spinner-container.svelte-t9z8bl {position:absolute;display:flex;justify-content:center;align-items:center;height:100%;width:100%;background-color:rgba(255, 255, 255, 0.2);backdrop-filter:blur(3px);z-index:1000;}`
14526
+ }.alviere-add-bank-account__footer.svelte-t9z8bl {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;padding-top:2rem;}.alviere-add-bank-account__footer.svelte-t9z8bl .form-status:where(.svelte-t9z8bl) {width:100%;text-align:center;}.alviere-add-bank-account__form.svelte-t9z8bl {max-width:100%;margin:0 auto;font-family:"Darker Grotesque", sans-serif;line-height:1;background:#ffffff;}.alviere-add-bank-account__form__row.svelte-t9z8bl {display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem;padding-bottom:1rem;}.alviere-add-bank-account__form__row--banking-info.svelte-t9z8bl {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:0.5rem;}.alviere-add-bank-account__routing-help.svelte-t9z8bl {display:flex;flex-direction:column;align-items:center;gap:0.5rem;text-align:center;}.alviere-add-bank-account__routing-help-text.svelte-t9z8bl {font-size:1.125rem;color:#3f3f46;}.routing-info.svelte-t9z8bl {border-radius:6px;padding:0.5rem;}.routing-info-header.svelte-t9z8bl {display:flex;align-items:center;gap:0.5rem;}.routing-info.svelte-t9z8bl .bank-name:where(.svelte-t9z8bl) {font-weight:600;color:var(--gray-600);font-size:0.75rem;}.bank-region.svelte-t9z8bl {color:var(--gray-600);font-size:0.75rem;}.bank-accounts-section.svelte-t9z8bl {margin:0 auto;background:#fff;}.bank-accounts-section__card-content.svelte-t9z8bl {display:flex;flex-direction:column;gap:0.75rem;padding:1rem;padding-top:0.5rem;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl {display:flex;justify-content:space-between;align-items:center;padding:0.5rem 0 0;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl .label:where(.svelte-t9z8bl) {font-weight:500;color:#495057;font-size:0.9rem;}.bank-accounts-section__card-content__info-row.svelte-t9z8bl .value:where(.svelte-t9z8bl) {font-weight:600;color:#212529;font-size:0.9rem;}.form-actions.svelte-t9z8bl {margin-top:24px;text-align:center;}.form-status.svelte-t9z8bl {margin-bottom:1rem;text-align:center;font-size:1.125rem;}.validation-hint.svelte-t9z8bl {color:#6b7280;font-size:0.875rem;font-style:italic;}.validation-error.svelte-t9z8bl {color:#b3311f;font-size:1.125rem;font-weight:500;margin-top:0.25rem;}.spinner-container.svelte-t9z8bl {position:absolute;display:flex;justify-content:center;align-items:center;height:100%;width:100%;background-color:rgba(255, 255, 255, 0.2);backdrop-filter:blur(3px);z-index:1000;}`
14536
14527
  };
14537
14528
  function AddBankAccount($$anchor, $$props) {
14538
14529
  push($$props, true);
@@ -14575,6 +14566,8 @@ function AddBankAccount($$anchor, $$props) {
14575
14566
  country: "USA",
14576
14567
  currency: "USD",
14577
14568
  bankAccountType: "ACH",
14569
+ ach_routing_number: "",
14570
+ ach_account_number: "",
14578
14571
  ach_details: { routing_number: "", account_number: "", type: "" },
14579
14572
  eft_details: {
14580
14573
  institution_number: "",
@@ -14634,10 +14627,6 @@ function AddBankAccount($$anchor, $$props) {
14634
14627
  pattern: {
14635
14628
  regex: /^\d{9}$/,
14636
14629
  message: "Routing number must be exactly 9 digits"
14637
- },
14638
- match: {
14639
- fieldRef: () => baseForm.state.formData.ach_details.routing_number || "",
14640
- message: "Routing number confirmation does not match"
14641
14630
  }
14642
14631
  },
14643
14632
  confirm_account_number: {
@@ -14646,10 +14635,6 @@ function AddBankAccount($$anchor, $$props) {
14646
14635
  minLength: {
14647
14636
  value: 3,
14648
14637
  message: "Account number must be at least 3 digits"
14649
- },
14650
- match: {
14651
- fieldRef: () => baseForm.state.formData.ach_details.account_number || "",
14652
- message: "Account number confirmation does not match"
14653
14638
  }
14654
14639
  }
14655
14640
  }) : baseSchemas;
@@ -14709,6 +14694,7 @@ function AddBankAccount($$anchor, $$props) {
14709
14694
  let bankAccounts = /* @__PURE__ */ state(proxy({ bank_accounts: [] }));
14710
14695
  let showAddForm = /* @__PURE__ */ state(false);
14711
14696
  let selectedBankAccountUuid = /* @__PURE__ */ state(null);
14697
+ const hasSelectedBankAccount = /* @__PURE__ */ user_derived(() => get$1(bankAccounts).bank_accounts.some((account) => account.payment_method_uuid === get$1(selectedBankAccountUuid)));
14712
14698
  let formError = /* @__PURE__ */ state(null);
14713
14699
  let bankInfo = /* @__PURE__ */ state(null);
14714
14700
  let isLoadingBankInfo = /* @__PURE__ */ state(false);
@@ -14749,6 +14735,7 @@ function AddBankAccount($$anchor, $$props) {
14749
14735
  await checkForBankAccounts();
14750
14736
  });
14751
14737
  async function checkForBankAccounts() {
14738
+ var _a3;
14752
14739
  if (!baseForm.state.alviereCore) {
14753
14740
  throw new Error("AlviereCore not initialized");
14754
14741
  }
@@ -14760,8 +14747,8 @@ function AddBankAccount($$anchor, $$props) {
14760
14747
  get$1(bankAccounts).bank_accounts = accountsWithExpansion.filter((account) => allowedStatuses.has(account.status));
14761
14748
  const currentPrimary = get$1(bankAccounts).bank_accounts.find((account) => account.primary);
14762
14749
  const routingNumbers = get$1(bankAccounts).bank_accounts.map((account) => {
14763
- var _a3, _b2;
14764
- return (_b2 = (_a3 = account.bank_account_details) === null || _a3 === void 0 ? void 0 : _a3.ach_details) === null || _b2 === void 0 ? void 0 : _b2.routing_number;
14750
+ var _a4, _b2;
14751
+ return (_b2 = (_a4 = account.bank_account_details) === null || _a4 === void 0 ? void 0 : _a4.ach_details) === null || _b2 === void 0 ? void 0 : _b2.routing_number;
14765
14752
  }).filter((routing) => typeof routing === "string" && routing.length > 0);
14766
14753
  routingNumbers.forEach((routingNumber) => {
14767
14754
  if (get$1(bankInfoByRouting)[routingNumber] !== void 0) {
@@ -14775,7 +14762,15 @@ function AddBankAccount($$anchor, $$props) {
14775
14762
  set(bankInfoByRouting, Object.assign(Object.assign({}, get$1(bankInfoByRouting)), { [routingNumber]: null }), true);
14776
14763
  });
14777
14764
  });
14778
- set(selectedBankAccountUuid, (currentPrimary === null || currentPrimary === void 0 ? void 0 : currentPrimary.payment_method_uuid) || null, true);
14765
+ if (currentPrimary === null || currentPrimary === void 0 ? void 0 : currentPrimary.payment_method_uuid) {
14766
+ set(selectedBankAccountUuid, currentPrimary.payment_method_uuid, true);
14767
+ } else if (get$1(bankAccounts).bank_accounts.length === 1) {
14768
+ set(selectedBankAccountUuid, ((_a3 = get$1(bankAccounts).bank_accounts[0]) === null || _a3 === void 0 ? void 0 : _a3.payment_method_uuid) || null, true);
14769
+ } else {
14770
+ set(selectedBankAccountUuid, null);
14771
+ }
14772
+ } else {
14773
+ set(selectedBankAccountUuid, null);
14779
14774
  }
14780
14775
  set(isCheckingBankAccounts, false);
14781
14776
  }
@@ -14788,17 +14783,37 @@ function AddBankAccount($$anchor, $$props) {
14788
14783
  }
14789
14784
  async function updateBankAccount(uuid) {
14790
14785
  set(isSubmitting, true);
14786
+ set(formError, null);
14791
14787
  const paymentsService = baseForm.state.alviereCore.createPaymentsService();
14792
14788
  try {
14793
14789
  await paymentsService.processUpdateBankAccount(accountUuid(), uuid, { primary: true });
14790
+ await checkForBankAccounts();
14794
14791
  } catch (error) {
14792
+ const errorCode = getErrorCode(error);
14793
+ set(formError, getPrimaryBankAccountErrorMessage(error, errorCode), true);
14794
+ uiLogger.error("Failed to update primary bank account", { error, errorCode, uuid });
14795
+ } finally {
14795
14796
  set(isSubmitting, false);
14796
14797
  }
14797
- await checkForBankAccounts();
14798
- set(isSubmitting, false);
14798
+ }
14799
+ function getErrorCode(error) {
14800
+ var _a3, _b2, _c2, _d, _e, _f, _g, _h;
14801
+ if (!error || typeof error !== "object") return void 0;
14802
+ const parsed = error;
14803
+ const parsedMessageCode = typeof parsed.message === "string" ? (_a3 = parsed.message.match(/Alcore API Error\s+(\d+)/)) === null || _a3 === void 0 ? void 0 : _a3[1] : void 0;
14804
+ return parsed.errorCode || parsed.error_code || parsed.code || ((_b2 = parsed.cause) === null || _b2 === void 0 ? void 0 : _b2.errorCode) || ((_c2 = parsed.cause) === null || _c2 === void 0 ? void 0 : _c2.error_code) || ((_d = parsed.cause) === null || _d === void 0 ? void 0 : _d.code) || ((_f = (_e = parsed.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.errorCode) || ((_h = (_g = parsed.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.error_code) || parsedMessageCode || void 0;
14805
+ }
14806
+ function getPrimaryBankAccountErrorMessage(error, errorCode) {
14807
+ if (errorCode === AlcoreErrorCodes.BANK_ACCOUNT_PRIMARY_REQUIRES_ACTIVE_STATUS || errorCode === "340028") {
14808
+ return "Only ACTIVE bank accounts can be set as primary. Please try again after verification completes.";
14809
+ }
14810
+ if (error instanceof Error && error.message.trim()) {
14811
+ return error.message;
14812
+ }
14813
+ return "Failed to update primary bank account. Please try again.";
14799
14814
  }
14800
14815
  function selectBankAccount(uuid) {
14801
- set(selectedBankAccountUuid, uuid, true);
14816
+ set(selectedBankAccountUuid, uuid || null, true);
14802
14817
  }
14803
14818
  async function handleAddBankAccount(event2) {
14804
14819
  var _a3, _b2;
@@ -14816,6 +14831,11 @@ function AddBankAccount($$anchor, $$props) {
14816
14831
  uiLogger.error("Form validation failed");
14817
14832
  return;
14818
14833
  }
14834
+ const confirmationsValid = validateConfirmationFields();
14835
+ if (!confirmationsValid) {
14836
+ uiLogger.error("Confirmation validation failed");
14837
+ return;
14838
+ }
14819
14839
  const formData = baseForm.state.formData;
14820
14840
  const request = {
14821
14841
  external_id: formData.external_id || `bank-${Date.now()}`,
@@ -14877,6 +14897,74 @@ function AddBankAccount($$anchor, $$props) {
14877
14897
  set(isSubmitting, false);
14878
14898
  }
14879
14899
  }
14900
+ function normalizeComparableValue(value) {
14901
+ if (value === void 0 || value === null) return "";
14902
+ return String(value).trim();
14903
+ }
14904
+ function validateRoutingConfirmation() {
14905
+ const original = normalizeComparableValue(baseForm.state.formData.ach_details.routing_number || baseForm.state.formData.ach_routing_number);
14906
+ const confirmation = normalizeComparableValue(baseForm.state.formData.confirm_routing_number);
14907
+ if (!confirmation) {
14908
+ return true;
14909
+ }
14910
+ if (!/^\d{9}$/.test(confirmation)) {
14911
+ baseForm.actions.setFieldError("confirm_routing_number", "Routing number must be exactly 9 digits");
14912
+ return false;
14913
+ }
14914
+ if (!original || confirmation !== original) {
14915
+ baseForm.actions.setFieldError("confirm_routing_number", "Routing number confirmation does not match");
14916
+ return false;
14917
+ }
14918
+ baseForm.actions.clearFieldError("confirm_routing_number");
14919
+ return true;
14920
+ }
14921
+ function validateAccountConfirmation() {
14922
+ const original = normalizeComparableValue(baseForm.state.formData.ach_details.account_number || baseForm.state.formData.ach_account_number);
14923
+ const confirmation = normalizeComparableValue(baseForm.state.formData.confirm_account_number);
14924
+ if (!confirmation) {
14925
+ return true;
14926
+ }
14927
+ if (!/^\d+$/.test(confirmation)) {
14928
+ baseForm.actions.setFieldError("confirm_account_number", "Account number must contain only digits");
14929
+ return false;
14930
+ }
14931
+ if (confirmation.length < 3) {
14932
+ baseForm.actions.setFieldError("confirm_account_number", "Account number must be at least 3 digits");
14933
+ return false;
14934
+ }
14935
+ if (!original || confirmation !== original) {
14936
+ baseForm.actions.setFieldError("confirm_account_number", "Account number confirmation does not match");
14937
+ return false;
14938
+ }
14939
+ baseForm.actions.clearFieldError("confirm_account_number");
14940
+ return true;
14941
+ }
14942
+ function validateConfirmationFields() {
14943
+ if (!get$1(requireRoutingAndAccountConfirmation)) {
14944
+ return true;
14945
+ }
14946
+ const routingValid = validateRoutingConfirmation();
14947
+ const accountValid = validateAccountConfirmation();
14948
+ return routingValid && accountValid;
14949
+ }
14950
+ function clearSubmissionErrorOnEdit() {
14951
+ if (get$1(formError)) {
14952
+ set(formError, null);
14953
+ }
14954
+ }
14955
+ user_effect(() => {
14956
+ if (!get$1(requireRoutingAndAccountConfirmation)) return;
14957
+ const routingOriginal = normalizeComparableValue(baseForm.state.formData.ach_details.routing_number || baseForm.state.formData.ach_routing_number);
14958
+ const routingConfirmation = normalizeComparableValue(baseForm.state.formData.confirm_routing_number);
14959
+ if (routingOriginal && routingConfirmation && routingOriginal === routingConfirmation && baseForm.state.validationErrors.confirm_routing_number === "Routing number confirmation does not match") {
14960
+ baseForm.actions.clearFieldError("confirm_routing_number");
14961
+ }
14962
+ const accountOriginal = normalizeComparableValue(baseForm.state.formData.ach_details.account_number || baseForm.state.formData.ach_account_number);
14963
+ const accountConfirmation = normalizeComparableValue(baseForm.state.formData.confirm_account_number);
14964
+ if (accountOriginal && accountConfirmation && accountOriginal === accountConfirmation && baseForm.state.validationErrors.confirm_account_number === "Account number confirmation does not match") {
14965
+ baseForm.actions.clearFieldError("confirm_account_number");
14966
+ }
14967
+ });
14880
14968
  function getBankAccountDisplayInfo(bankAccount) {
14881
14969
  const details = bankAccount.bank_account_details;
14882
14970
  if (details === null || details === void 0 ? void 0 : details.ach_details) {
@@ -14983,7 +15071,7 @@ function AddBankAccount($$anchor, $$props) {
14983
15071
  }
14984
15072
  var node_1 = sibling(node, 2);
14985
15073
  {
14986
- var consequent_7 = ($$anchor2) => {
15074
+ var consequent_8 = ($$anchor2) => {
14987
15075
  var div_2 = root_2$4();
14988
15076
  var div_3 = child(div_2);
14989
15077
  var h2 = child(div_3);
@@ -15164,16 +15252,40 @@ function AddBankAccount($$anchor, $$props) {
15164
15252
  });
15165
15253
  reset(alviere_list);
15166
15254
  var div_18 = sibling(alviere_list, 2);
15167
- var alviere_button_3 = child(div_18);
15255
+ var node_8 = child(div_18);
15256
+ {
15257
+ var consequent_7 = ($$anchor3) => {
15258
+ var div_19 = root_10();
15259
+ var span_10 = child(div_19);
15260
+ var text_12 = child(span_10, true);
15261
+ reset(span_10);
15262
+ reset(div_19);
15263
+ template_effect(() => set_text(text_12, get$1(formError)));
15264
+ append($$anchor3, div_19);
15265
+ };
15266
+ if_block(node_8, ($$render) => {
15267
+ if (get$1(formError)) $$render(consequent_7);
15268
+ });
15269
+ }
15270
+ var alviere_button_3 = sibling(node_8, 2);
15168
15271
  set_custom_element_data(alviere_button_3, "variant", "primary");
15169
15272
  set_custom_element_data(alviere_button_3, "size", "md");
15273
+ template_effect(() => set_custom_element_data(alviere_button_3, "disabled", !get$1(hasSelectedBankAccount)));
15170
15274
  set_custom_element_data(alviere_button_3, "handler", () => {
15171
15275
  if (get$1(hostElement)) {
15276
+ if (!get$1(hasSelectedBankAccount)) {
15277
+ uiLogger.warn("⚠️ Continue blocked: no bank account selected");
15278
+ return;
15279
+ }
15172
15280
  const selectedBankAccount = get$1(bankAccounts).bank_accounts.find((account) => account.payment_method_uuid === get$1(selectedBankAccountUuid));
15281
+ if (!(selectedBankAccount == null ? void 0 : selectedBankAccount.payment_method_uuid)) {
15282
+ uiLogger.warn("⚠️ Continue blocked: selected bank account is invalid");
15283
+ return;
15284
+ }
15173
15285
  const paymentMethodStatus = (selectedBankAccount == null ? void 0 : selectedBankAccount.status) || "ACTIVE";
15174
15286
  const paymentMethodEvent = new CustomEvent(ComponentEvents.PAYMENT_METHOD, {
15175
15287
  detail: {
15176
- payment_method_uuid: get$1(selectedBankAccountUuid),
15288
+ payment_method_uuid: selectedBankAccount.payment_method_uuid,
15177
15289
  status: "ACTIVE"
15178
15290
  },
15179
15291
  bubbles: true,
@@ -15184,7 +15296,7 @@ function AddBankAccount($$anchor, $$props) {
15184
15296
  const customEvent = new CustomEvent(ComponentEvents.FORM_SUCCESS, {
15185
15297
  detail: {
15186
15298
  stepType: "ADD_BANK_ACCOUNT",
15187
- payment_method_uuid: get$1(selectedBankAccountUuid),
15299
+ payment_method_uuid: selectedBankAccount.payment_method_uuid,
15188
15300
  payment_method_status: paymentMethodStatus,
15189
15301
  success: true
15190
15302
  },
@@ -15197,14 +15309,14 @@ function AddBankAccount($$anchor, $$props) {
15197
15309
  uiLogger.warn("⚠️ Host element not available for event dispatch");
15198
15310
  }
15199
15311
  });
15200
- var text_12 = child(alviere_button_3, true);
15312
+ var text_13 = child(alviere_button_3, true);
15201
15313
  reset(alviere_button_3);
15202
15314
  reset(div_18);
15203
15315
  reset(div_2);
15204
15316
  template_effect(
15205
15317
  ($0) => {
15206
15318
  set_text(text2, `Your Bank Accounts (${get$1(bankAccounts).bank_accounts.length ?? ""})`);
15207
- set_text(text_12, $0);
15319
+ set_text(text_13, $0);
15208
15320
  },
15209
15321
  [
15210
15322
  () => {
@@ -15216,107 +15328,107 @@ function AddBankAccount($$anchor, $$props) {
15216
15328
  append($$anchor2, div_2);
15217
15329
  };
15218
15330
  if_block(node_1, ($$render) => {
15219
- if (!get$1(isCheckingBankAccounts) && !get$1(showAddForm) && get$1(bankAccounts).bank_accounts.length) $$render(consequent_7);
15331
+ if (!get$1(isCheckingBankAccounts) && !get$1(showAddForm) && get$1(bankAccounts).bank_accounts.length) $$render(consequent_8);
15220
15332
  });
15221
15333
  }
15222
- var node_8 = sibling(node_1, 2);
15334
+ var node_9 = sibling(node_1, 2);
15223
15335
  {
15224
- var consequent_22 = ($$anchor2) => {
15225
- var form = root_10();
15226
- var div_19 = child(form);
15227
- var node_9 = sibling(child(div_19), 2);
15336
+ var consequent_23 = ($$anchor2) => {
15337
+ var form = root_11();
15338
+ var div_20 = child(form);
15339
+ var node_10 = sibling(child(div_20), 2);
15228
15340
  {
15229
- var consequent_8 = ($$anchor3) => {
15230
- var alviere_button_4 = root_11();
15341
+ var consequent_9 = ($$anchor3) => {
15342
+ var alviere_button_4 = root_12$1();
15231
15343
  set_custom_element_data(alviere_button_4, "type", "button");
15232
15344
  set_custom_element_data(alviere_button_4, "variant", "secondary");
15233
15345
  set_custom_element_data(alviere_button_4, "handler", () => set(showAddForm, false));
15234
15346
  set_custom_element_data(alviere_button_4, "iconName", "X");
15235
15347
  append($$anchor3, alviere_button_4);
15236
15348
  };
15237
- if_block(node_9, ($$render) => {
15238
- if (get$1(bankAccounts).bank_accounts.length > 0) $$render(consequent_8);
15349
+ if_block(node_10, ($$render) => {
15350
+ if (get$1(bankAccounts).bank_accounts.length > 0) $$render(consequent_9);
15239
15351
  });
15240
15352
  }
15241
- reset(div_19);
15242
- var div_20 = sibling(div_19, 2);
15243
- var node_10 = child(div_20);
15353
+ reset(div_20);
15354
+ var div_21 = sibling(div_20, 2);
15355
+ var node_11 = child(div_21);
15244
15356
  {
15245
- var consequent_18 = ($$anchor3) => {
15246
- var fragment_2 = root_12$1();
15247
- var div_21 = first_child(fragment_2);
15248
- var alviere_badge_2 = child(div_21);
15357
+ var consequent_19 = ($$anchor3) => {
15358
+ var fragment_2 = root_13$1();
15359
+ var div_22 = first_child(fragment_2);
15360
+ var alviere_badge_2 = child(div_22);
15249
15361
  set_custom_element_data(alviere_badge_2, "size", "sm");
15250
15362
  set_custom_element_data(alviere_badge_2, "variant", "tertiary");
15251
- var node_11 = sibling(alviere_badge_2, 2);
15363
+ var node_12 = sibling(alviere_badge_2, 2);
15252
15364
  {
15253
- var consequent_12 = ($$anchor4) => {
15254
- var fragment_3 = root_13$1();
15255
- var node_12 = first_child(fragment_3);
15365
+ var consequent_13 = ($$anchor4) => {
15366
+ var fragment_3 = root_14$1();
15367
+ var node_13 = first_child(fragment_3);
15256
15368
  {
15257
- var consequent_10 = ($$anchor5) => {
15258
- var div_22 = root_14$1();
15259
- var div_23 = child(div_22);
15260
- var span_10 = child(div_23);
15261
- var text_13 = child(span_10, true);
15262
- reset(span_10);
15263
- var node_13 = sibling(span_10, 2);
15369
+ var consequent_11 = ($$anchor5) => {
15370
+ var div_23 = root_15$1();
15371
+ var div_24 = child(div_23);
15372
+ var span_11 = child(div_24);
15373
+ var text_14 = child(span_11, true);
15374
+ reset(span_11);
15375
+ var node_14 = sibling(span_11, 2);
15264
15376
  {
15265
- var consequent_9 = ($$anchor6) => {
15266
- var span_11 = root_15$1();
15267
- var text_14 = child(span_11);
15268
- reset(span_11);
15269
- template_effect(() => set_text(text_14, `(${get$1(bankInfo).city ?? ""})`));
15270
- append($$anchor6, span_11);
15377
+ var consequent_10 = ($$anchor6) => {
15378
+ var span_12 = root_16$1();
15379
+ var text_15 = child(span_12);
15380
+ reset(span_12);
15381
+ template_effect(() => set_text(text_15, `(${get$1(bankInfo).city ?? ""})`));
15382
+ append($$anchor6, span_12);
15271
15383
  };
15272
- if_block(node_13, ($$render) => {
15384
+ if_block(node_14, ($$render) => {
15273
15385
  var _a3;
15274
- if ((_a3 = get$1(bankInfo)) == null ? void 0 : _a3.city) $$render(consequent_9);
15386
+ if ((_a3 = get$1(bankInfo)) == null ? void 0 : _a3.city) $$render(consequent_10);
15275
15387
  });
15276
15388
  }
15389
+ reset(div_24);
15277
15390
  reset(div_23);
15278
- reset(div_22);
15279
15391
  template_effect(() => {
15280
15392
  var _a3;
15281
- return set_text(text_13, (_a3 = get$1(bankInfo)) == null ? void 0 : _a3.name);
15393
+ return set_text(text_14, (_a3 = get$1(bankInfo)) == null ? void 0 : _a3.name);
15282
15394
  });
15283
- append($$anchor5, div_22);
15395
+ append($$anchor5, div_23);
15284
15396
  };
15285
- if_block(node_12, ($$render) => {
15286
- if (get$1(bankInfo)) $$render(consequent_10);
15397
+ if_block(node_13, ($$render) => {
15398
+ if (get$1(bankInfo)) $$render(consequent_11);
15287
15399
  });
15288
15400
  }
15289
- var node_14 = sibling(node_12, 2);
15401
+ var node_15 = sibling(node_13, 2);
15290
15402
  {
15291
- var consequent_11 = ($$anchor5) => {
15292
- var alviere_spinner_1 = root_16$1();
15403
+ var consequent_12 = ($$anchor5) => {
15404
+ var alviere_spinner_1 = root_17$1();
15293
15405
  set_custom_element_data(alviere_spinner_1, "size", "sm");
15294
15406
  set_custom_element_data(alviere_spinner_1, "variant", "circular");
15295
15407
  append($$anchor5, alviere_spinner_1);
15296
15408
  };
15297
- if_block(node_14, ($$render) => {
15298
- if (get$1(isLoadingBankInfo)) $$render(consequent_11);
15409
+ if_block(node_15, ($$render) => {
15410
+ if (get$1(isLoadingBankInfo)) $$render(consequent_12);
15299
15411
  });
15300
15412
  }
15301
15413
  append($$anchor4, fragment_3);
15302
15414
  };
15303
- if_block(node_11, ($$render) => {
15304
- if (baseForm.state.formData.ach_details.routing_number && baseForm.state.formData.ach_details.routing_number.length === 9) $$render(consequent_12);
15415
+ if_block(node_12, ($$render) => {
15416
+ if (baseForm.state.formData.ach_details.routing_number && baseForm.state.formData.ach_details.routing_number.length === 9) $$render(consequent_13);
15305
15417
  });
15306
15418
  }
15307
- reset(div_21);
15308
- var node_15 = sibling(div_21, 2);
15419
+ reset(div_22);
15420
+ var node_16 = sibling(div_22, 2);
15309
15421
  {
15310
- var consequent_13 = ($$anchor4) => {
15311
- var div_24 = root_17$1();
15312
- var node_16 = child(div_24);
15422
+ var consequent_14 = ($$anchor4) => {
15423
+ var div_25 = root_18$1();
15424
+ var node_17 = child(div_25);
15313
15425
  {
15314
15426
  let $0 = /* @__PURE__ */ user_derived(() => getFieldLabel("ach_account_type"));
15315
15427
  let $1 = /* @__PURE__ */ user_derived(() => getFieldPlaceholder("ach_account_type"));
15316
15428
  let $2 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_account_type ? "invalid" : "neutral");
15317
15429
  let $3 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_account_type || "");
15318
15430
  let $4 = /* @__PURE__ */ user_derived(() => getFieldHelpText("ach_account_type"));
15319
- SearchSelect(node_16, {
15431
+ SearchSelect(node_17, {
15320
15432
  get label() {
15321
15433
  return get$1($0);
15322
15434
  },
@@ -15330,6 +15442,7 @@ function AddBankAccount($$anchor, $$props) {
15330
15442
  return get$1($1);
15331
15443
  },
15332
15444
  onchange: (e) => {
15445
+ clearSubmissionErrorOnEdit();
15333
15446
  const newValue = e.detail.value;
15334
15447
  baseForm.state.formData.ach_details.type = newValue;
15335
15448
  baseForm.handlers.handleFieldChange("ach_account_type", newValue);
@@ -15349,25 +15462,25 @@ function AddBankAccount($$anchor, $$props) {
15349
15462
  required: true
15350
15463
  });
15351
15464
  }
15352
- reset(div_24);
15353
- append($$anchor4, div_24);
15465
+ reset(div_25);
15466
+ append($$anchor4, div_25);
15354
15467
  };
15355
- if_block(node_15, ($$render) => {
15356
- if (get$1(shouldShowAccountType)) $$render(consequent_13);
15468
+ if_block(node_16, ($$render) => {
15469
+ if (get$1(shouldShowAccountType)) $$render(consequent_14);
15357
15470
  });
15358
15471
  }
15359
- var node_17 = sibling(node_15, 2);
15472
+ var node_18 = sibling(node_16, 2);
15360
15473
  {
15361
- var consequent_15 = ($$anchor4) => {
15362
- var div_25 = root_18$1();
15363
- var node_18 = child(div_25);
15474
+ var consequent_16 = ($$anchor4) => {
15475
+ var div_26 = root_19$1();
15476
+ var node_19 = child(div_26);
15364
15477
  {
15365
15478
  let $0 = /* @__PURE__ */ user_derived(() => getFieldLabel("ach_routing_number"));
15366
15479
  let $1 = /* @__PURE__ */ user_derived(() => getFieldPlaceholder("ach_routing_number"));
15367
15480
  let $2 = /* @__PURE__ */ user_derived(() => getFieldHelpText("ach_routing_number"));
15368
15481
  let $3 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_routing_number ? "invalid" : "neutral");
15369
15482
  let $4 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_routing_number || "");
15370
- TextInput(node_18, {
15483
+ TextInput(node_19, {
15371
15484
  get value() {
15372
15485
  return baseForm.state.formData.ach_details.routing_number;
15373
15486
  },
@@ -15396,15 +15509,20 @@ function AddBankAccount($$anchor, $$props) {
15396
15509
  set(isRoutingHelpOpen, true);
15397
15510
  },
15398
15511
  oninput: (e) => {
15512
+ clearSubmissionErrorOnEdit();
15399
15513
  const newValue = e.target.value;
15400
15514
  baseForm.state.formData.ach_details.routing_number = newValue;
15515
+ baseForm.state.formData.ach_routing_number = newValue;
15401
15516
  baseForm.handlers.handleFieldChange("ach_routing_number", newValue);
15517
+ if (get$1(requireRoutingAndAccountConfirmation) && baseForm.state.formData.confirm_routing_number) {
15518
+ validateRoutingConfirmation();
15519
+ }
15402
15520
  }
15403
15521
  });
15404
15522
  }
15405
- var node_19 = sibling(node_18, 2);
15523
+ var node_20 = sibling(node_19, 2);
15406
15524
  {
15407
- var consequent_14 = ($$anchor5) => {
15525
+ var consequent_15 = ($$anchor5) => {
15408
15526
  {
15409
15527
  let $0 = /* @__PURE__ */ user_derived(() => getFieldLabel("confirm_routing_number"));
15410
15528
  let $1 = /* @__PURE__ */ user_derived(() => getFieldPlaceholder("confirm_routing_number"));
@@ -15436,36 +15554,40 @@ function AddBankAccount($$anchor, $$props) {
15436
15554
  return get$1($4);
15437
15555
  },
15438
15556
  oninput: (e) => {
15557
+ clearSubmissionErrorOnEdit();
15439
15558
  const newValue = e.target.value;
15440
15559
  baseForm.state.formData.confirm_routing_number = newValue;
15441
15560
  baseForm.handlers.handleFieldChange("confirm_routing_number", newValue);
15561
+ if (get$1(requireRoutingAndAccountConfirmation)) {
15562
+ validateRoutingConfirmation();
15563
+ }
15442
15564
  },
15443
15565
  blockPaste: true
15444
15566
  });
15445
15567
  }
15446
15568
  };
15447
- if_block(node_19, ($$render) => {
15448
- if (get$1(requireRoutingAndAccountConfirmation)) $$render(consequent_14);
15569
+ if_block(node_20, ($$render) => {
15570
+ if (get$1(requireRoutingAndAccountConfirmation)) $$render(consequent_15);
15449
15571
  });
15450
15572
  }
15451
- reset(div_25);
15452
- append($$anchor4, div_25);
15573
+ reset(div_26);
15574
+ append($$anchor4, div_26);
15453
15575
  };
15454
- if_block(node_17, ($$render) => {
15455
- if (get$1(shouldShowRoutingNumber)) $$render(consequent_15);
15576
+ if_block(node_18, ($$render) => {
15577
+ if (get$1(shouldShowRoutingNumber)) $$render(consequent_16);
15456
15578
  });
15457
15579
  }
15458
- var node_20 = sibling(node_17, 2);
15580
+ var node_21 = sibling(node_18, 2);
15459
15581
  {
15460
- var consequent_17 = ($$anchor4) => {
15461
- var div_26 = root_20$1();
15462
- var node_21 = child(div_26);
15582
+ var consequent_18 = ($$anchor4) => {
15583
+ var div_27 = root_21$1();
15584
+ var node_22 = child(div_27);
15463
15585
  {
15464
15586
  let $0 = /* @__PURE__ */ user_derived(() => getFieldLabel("ach_account_number"));
15465
15587
  let $1 = /* @__PURE__ */ user_derived(() => getFieldPlaceholder("ach_account_number"));
15466
15588
  let $2 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_account_number ? "invalid" : "neutral");
15467
15589
  let $3 = /* @__PURE__ */ user_derived(() => baseForm.state.validationErrors.ach_account_number || "");
15468
- TextInput(node_21, {
15590
+ TextInput(node_22, {
15469
15591
  get value() {
15470
15592
  return baseForm.state.formData.ach_details.account_number;
15471
15593
  },
@@ -15488,15 +15610,20 @@ function AddBankAccount($$anchor, $$props) {
15488
15610
  return get$1($3);
15489
15611
  },
15490
15612
  oninput: (e) => {
15613
+ clearSubmissionErrorOnEdit();
15491
15614
  const newValue = e.target.value;
15492
15615
  baseForm.state.formData.ach_details.account_number = newValue;
15616
+ baseForm.state.formData.ach_account_number = newValue;
15493
15617
  baseForm.handlers.handleFieldChange("ach_account_number", newValue);
15618
+ if (get$1(requireRoutingAndAccountConfirmation) && baseForm.state.formData.confirm_account_number) {
15619
+ validateAccountConfirmation();
15620
+ }
15494
15621
  }
15495
15622
  });
15496
15623
  }
15497
- var node_22 = sibling(node_21, 2);
15624
+ var node_23 = sibling(node_22, 2);
15498
15625
  {
15499
- var consequent_16 = ($$anchor5) => {
15626
+ var consequent_17 = ($$anchor5) => {
15500
15627
  {
15501
15628
  let $0 = /* @__PURE__ */ user_derived(() => getFieldLabel("confirm_account_number"));
15502
15629
  let $1 = /* @__PURE__ */ user_derived(() => getFieldPlaceholder("confirm_account_number"));
@@ -15529,101 +15656,106 @@ function AddBankAccount($$anchor, $$props) {
15529
15656
  return get$1($4);
15530
15657
  },
15531
15658
  oninput: (e) => {
15659
+ clearSubmissionErrorOnEdit();
15532
15660
  const newValue = e.target.value;
15533
15661
  baseForm.state.formData.confirm_account_number = newValue;
15534
15662
  baseForm.handlers.handleFieldChange("confirm_account_number", newValue);
15663
+ if (get$1(requireRoutingAndAccountConfirmation)) {
15664
+ validateAccountConfirmation();
15665
+ }
15535
15666
  },
15536
15667
  blockPaste: true
15537
15668
  });
15538
15669
  }
15539
15670
  };
15540
- if_block(node_22, ($$render) => {
15541
- if (get$1(requireRoutingAndAccountConfirmation)) $$render(consequent_16);
15671
+ if_block(node_23, ($$render) => {
15672
+ if (get$1(requireRoutingAndAccountConfirmation)) $$render(consequent_17);
15542
15673
  });
15543
15674
  }
15544
- reset(div_26);
15545
- append($$anchor4, div_26);
15675
+ reset(div_27);
15676
+ append($$anchor4, div_27);
15546
15677
  };
15547
- if_block(node_20, ($$render) => {
15548
- if (get$1(shouldShowAccountNumber)) $$render(consequent_17);
15678
+ if_block(node_21, ($$render) => {
15679
+ if (get$1(shouldShowAccountNumber)) $$render(consequent_18);
15549
15680
  });
15550
15681
  }
15551
15682
  append($$anchor3, fragment_2);
15552
15683
  };
15553
- if_block(node_10, ($$render) => {
15554
- if (baseForm.state.formData.bankAccountType === "ACH") $$render(consequent_18);
15684
+ if_block(node_11, ($$render) => {
15685
+ if (baseForm.state.formData.bankAccountType === "ACH") $$render(consequent_19);
15555
15686
  });
15556
15687
  }
15557
- var div_27 = sibling(node_10, 2);
15558
- var alviere_checkbox = child(div_27);
15688
+ var div_28 = sibling(node_11, 2);
15689
+ var alviere_checkbox = child(div_28);
15559
15690
  template_effect(() => set_custom_element_data(alviere_checkbox, "checked", get$1(bankAccounts).bank_accounts.length === 0 ? true : baseForm.state.formData.primary));
15560
15691
  set_custom_element_data(alviere_checkbox, "label", "Make this my primary bank account");
15561
15692
  template_effect(() => set_custom_element_data(alviere_checkbox, "disabled", get$1(bankAccounts).bank_accounts.length === 0 ? true : false));
15562
15693
  alviere_checkbox.__change = (event2) => {
15563
15694
  var _a3;
15695
+ clearSubmissionErrorOnEdit();
15564
15696
  const detail = event2.detail;
15565
15697
  const targetChecked = (_a3 = event2.target) == null ? void 0 : _a3.checked;
15566
15698
  const checked = (detail == null ? void 0 : detail.checked) ?? targetChecked ?? false;
15567
15699
  baseForm.handlers.handleFieldChange("primary", checked);
15568
15700
  };
15569
- reset(div_27);
15570
- reset(div_20);
15571
- var div_28 = sibling(div_20, 2);
15572
- var div_29 = child(div_28);
15573
- var node_23 = child(div_29);
15574
- {
15575
- var consequent_19 = ($$anchor3) => {
15576
- var span_12 = root_22$1();
15577
- append($$anchor3, span_12);
15578
- };
15579
- if_block(node_23, ($$render) => {
15580
- if (!baseForm.computed.canSubmit) $$render(consequent_19);
15581
- });
15582
- }
15583
- var node_24 = sibling(node_23, 2);
15701
+ reset(div_28);
15702
+ reset(div_21);
15703
+ var div_29 = sibling(div_21, 2);
15704
+ var div_30 = child(div_29);
15705
+ var node_24 = child(div_30);
15584
15706
  {
15585
15707
  var consequent_20 = ($$anchor3) => {
15586
15708
  var span_13 = root_23();
15587
15709
  append($$anchor3, span_13);
15588
15710
  };
15589
15711
  if_block(node_24, ($$render) => {
15590
- if (baseForm.computed.hasErrors && baseForm.computed.canSubmit) $$render(consequent_20);
15712
+ if (!baseForm.computed.canSubmit) $$render(consequent_20);
15591
15713
  });
15592
15714
  }
15593
15715
  var node_25 = sibling(node_24, 2);
15594
15716
  {
15595
15717
  var consequent_21 = ($$anchor3) => {
15596
15718
  var span_14 = root_24();
15597
- var text_15 = child(span_14, true);
15598
- reset(span_14);
15599
- template_effect(() => set_text(text_15, get$1(formError)));
15600
15719
  append($$anchor3, span_14);
15601
15720
  };
15602
15721
  if_block(node_25, ($$render) => {
15603
- if (get$1(formError)) $$render(consequent_21);
15722
+ if (baseForm.computed.hasErrors && baseForm.computed.canSubmit) $$render(consequent_21);
15604
15723
  });
15605
15724
  }
15606
- reset(div_29);
15607
- var alviere_button_5 = sibling(div_29, 2);
15725
+ var node_26 = sibling(node_25, 2);
15726
+ {
15727
+ var consequent_22 = ($$anchor3) => {
15728
+ var span_15 = root_25();
15729
+ var text_16 = child(span_15, true);
15730
+ reset(span_15);
15731
+ template_effect(() => set_text(text_16, get$1(formError)));
15732
+ append($$anchor3, span_15);
15733
+ };
15734
+ if_block(node_26, ($$render) => {
15735
+ if (get$1(formError)) $$render(consequent_22);
15736
+ });
15737
+ }
15738
+ reset(div_30);
15739
+ var alviere_button_5 = sibling(div_30, 2);
15608
15740
  set_custom_element_data(alviere_button_5, "type", "submit");
15609
15741
  set_custom_element_data(alviere_button_5, "variant", "tertiary");
15610
15742
  set_custom_element_data(alviere_button_5, "size", "md");
15611
15743
  template_effect(() => set_custom_element_data(alviere_button_5, "disabled", !baseForm.computed.canSubmit || get$1(isSubmitting)));
15612
15744
  set_custom_element_data(alviere_button_5, "handler", handleAddBankAccount);
15613
- var text_16 = child(alviere_button_5, true);
15745
+ var text_17 = child(alviere_button_5, true);
15614
15746
  reset(alviere_button_5);
15615
- reset(div_28);
15747
+ reset(div_29);
15616
15748
  reset(form);
15617
15749
  bind_this(form, ($$value) => baseForm.state.formElement = $$value, () => {
15618
15750
  var _a3;
15619
15751
  return (_a3 = baseForm == null ? void 0 : baseForm.state) == null ? void 0 : _a3.formElement;
15620
15752
  });
15621
- template_effect(() => set_text(text_16, get$1(isSubmitting) ? "Adding..." : "Add Bank Account"));
15753
+ template_effect(() => set_text(text_17, get$1(isSubmitting) ? "Adding..." : "Add Bank Account"));
15622
15754
  event$1("submit", form, handleAddBankAccount);
15623
15755
  append($$anchor2, form);
15624
15756
  };
15625
- if_block(node_8, ($$render) => {
15626
- if (get$1(showAddForm) || !get$1(isCheckingBankAccounts) && !get$1(bankAccounts).bank_accounts.length) $$render(consequent_22);
15757
+ if_block(node_9, ($$render) => {
15758
+ if (get$1(showAddForm) || !get$1(isCheckingBankAccounts) && !get$1(bankAccounts).bank_accounts.length) $$render(consequent_23);
15627
15759
  });
15628
15760
  }
15629
15761
  reset(div);
@@ -15631,11 +15763,11 @@ function AddBankAccount($$anchor, $$props) {
15631
15763
  var alviere_modal = sibling(div, 2);
15632
15764
  template_effect(() => set_custom_element_data(alviere_modal, "open", get$1(isRoutingHelpOpen)));
15633
15765
  set_custom_element_data(alviere_modal, "title", "Where to find your routing number");
15634
- var div_30 = child(alviere_modal);
15635
- var node_26 = child(div_30);
15636
- html(node_26, () => routingNumberHelpSvg);
15766
+ var div_31 = child(alviere_modal);
15767
+ var node_27 = child(div_31);
15768
+ html(node_27, () => routingNumberHelpSvg);
15637
15769
  next(2);
15638
- reset(div_30);
15770
+ reset(div_31);
15639
15771
  reset(alviere_modal);
15640
15772
  event$1("close", alviere_modal, () => {
15641
15773
  set(isRoutingHelpOpen, false);
@@ -16062,7 +16194,7 @@ var root_1$5 = /* @__PURE__ */ from_html(`<div class="alviere-timeline__step-wra
16062
16194
  var root$5 = /* @__PURE__ */ from_html(`<div role="progressbar" aria-label="Progress timeline" part="root"><div class="alviere-timeline__container svelte-1db5upf" part="container"></div></div>`);
16063
16195
  const $$css$8 = {
16064
16196
  hash: "svelte-1db5upf",
16065
- code: ":root {--alv-color-primary: #227e9e;--alv-color-primary-hover: #1b6680;--alv-color-primary-active: #145164;--alv-color-primary-light: #e8f4f8;--alv-color-primary-light-hover: #d1e8f0;--alv-color-on-primary: #ffffff;--alv-color-success: #436b1d;--alv-color-success-light: #d4edda;--alv-color-success-border: #c3e6cb;--alv-color-success-text: #155724;--alv-color-on-success: #ffffff;--alv-color-success-rgb: 67, 107, 29;--alv-color-error: #b3311f;--alv-color-error-light: #f8d7da;--alv-color-error-border: #f5c6cb;--alv-color-error-text: #721c24;--alv-color-on-error: #ffffff;--alv-color-error-rgb: 179, 49, 31;--alv-color-warning: #ffc107;--alv-color-warning-light: #fff3cd;--alv-color-warning-border: #ffeaa7;--alv-color-warning-text: #856404;--alv-color-on-warning: #000000;--alv-color-info: #175db8;--alv-color-info-light: #d1ecf1;--alv-color-info-border: #bee5eb;--alv-color-info-text: #0c5460;--alv-color-on-info: #ffffff;--alv-color-gray-50: #fafafa;--alv-color-gray-100: #f4f4f5;--alv-color-gray-200: #e4e4e7;--alv-color-gray-300: #d4d4d8;--alv-color-gray-400: #a1a1aa;--alv-color-gray-500: #71717a;--alv-color-gray-600: #52525b;--alv-color-gray-700: #3f3f46;--alv-color-gray-800: #27272a;--alv-color-gray-900: #18181b;--alv-color-surface: #ffffff;--alv-color-surface-secondary: #f9fafb;--alv-color-surface-tertiary: #f4f4f5;--alv-color-surface-elevated: #ffffff;--alv-color-text-primary: #18181b;--alv-color-text-secondary: #52525b;--alv-color-text-tertiary: #71717a;--alv-color-text-disabled: #a1a1aa;--alv-color-text-on-primary: #ffffff;--alv-color-text-on-surface: #18181b;--alv-color-border: #e4e4e7;--alv-color-border-hover: #d4d4d8;--alv-color-border-focus: #227e9e;--alv-color-border-error: #b3311f;--alv-color-border-success: #436b1d;--alv-color-background: #ffffff;--alv-color-background-disabled: #f4f4f5;--alv-color-background-hover: #f9fafb;--alv-color-background-active: #f4f4f5;}:root {--alv-font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--alv-font-family-grotesque: 'Darker Grotesque', sans-serif;--alv-font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;--alv-font-size-3xs: 0.625rem;--alv-font-size-2xs: 0.75rem;--alv-font-size-xs: 1rem;--alv-font-size-sm: 1.125rem;--alv-font-size-base: 1.25rem;--alv-font-size-lg: 1.5rem;--alv-font-size-xl: 1.75rem;--alv-font-weight-light: 300;--alv-font-weight-normal: 400;--alv-font-weight-medium: 500;--alv-font-weight-semibold: 600;--alv-font-weight-bold: 700;--alv-line-height-tight: 1.25;--alv-line-height-normal: 1.5;--alv-line-height-relaxed: 1.75;}:root {--alv-spacing-xs: 0.25rem;--alv-spacing-sm: 0.5rem;--alv-spacing-md: 1rem;--alv-spacing-lg: 1.5rem;--alv-spacing-xl: 2rem;--alv-spacing-2xl: 3rem;--alv-spacing-3xl: 4rem;}:root {--alv-border-radius-none: 0;--alv-border-radius-sm: 0.125rem;--alv-border-radius: 0.25rem;--alv-border-radius-md: 0.375rem;--alv-border-radius-lg: 0.5rem;--alv-border-radius-xl: 0.75rem;--alv-border-radius-2xl: 1rem;--alv-border-radius-full: 9999px;}:root {--alv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);--alv-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);--alv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--alv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);--alv-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);--alv-shadow-none: none;}:root {--alv-transition-fast: 150ms ease-in-out;--alv-transition-normal: 250ms ease-in-out;--alv-transition-slow: 350ms ease-in-out;--alv-transition-none: none;}:root {--alv-input-height-sm: 2.5rem;--alv-input-height: 3.25rem;--alv-input-height-lg: 3.75rem;--alv-input-padding-x: 0.75rem;--alv-input-padding-y: 0.5rem;--alv-input-border-color: var(--alv-color-border);--alv-input-border-hover: var(--alv-color-border-hover);--alv-input-border-focus: var(--alv-color-border-focus);--alv-input-bg: var(--alv-color-background);--alv-input-bg-disabled: var(--alv-color-background-disabled);}:root {--alv-z-dropdown: 1000;--alv-z-sticky: 1020;--alv-z-fixed: 1030;--alv-z-modal-backdrop: 1040;--alv-z-modal: 1050;--alv-z-popover: 1060;--alv-z-tooltip: 1070;}:root {--alv-button-primary-bg: var(--alv-color-primary);--alv-button-primary-bg-hover: var(--alv-color-primary-hover);--alv-button-primary-bg-active: var(--alv-color-primary-active);--alv-button-primary-text: var(--alv-color-on-primary);--alv-button-primary-border: var(--alv-color-primary);--alv-button-secondary-bg: transparent;--alv-button-secondary-bg-hover: var(--alv-color-primary-light);--alv-button-secondary-bg-active: var(--alv-color-primary-light-hover);--alv-button-secondary-text: var(--alv-color-primary);--alv-button-secondary-border: var(--alv-color-primary);--alv-button-tertiary-bg: transparent;--alv-button-tertiary-bg-hover: var(--alv-color-gray-100);--alv-button-tertiary-bg-active: var(--alv-color-gray-200);--alv-button-tertiary-text: var(--alv-color-text-primary);--alv-button-tertiary-border: transparent;--alv-button-link-bg: transparent;--alv-button-link-bg-hover: transparent;--alv-button-link-bg-active: transparent;--alv-button-link-text: var(--alv-color-primary);--alv-button-link-text-hover: var(--alv-color-primary-hover);--alv-button-link-border: transparent;}:root {--alv-spinner-color: var(--alv-color-text-primary);--alv-spinner-size-sm: 1rem;--alv-spinner-size-md: 1.5rem;--alv-spinner-size-lg: 4rem;--alv-spinner-stroke-width: 2px;}:root {--alv-timeline-color: var(--alv-color-gray-600);--alv-timeline-completed-color: var(--alv-color-success);--alv-timeline-error-color: var(--alv-color-error);--alv-timeline-pending-color: var(--alv-color-gray-400);--alv-timeline-step-size-sm: 1.25rem;--alv-timeline-step-size-md: 2rem;--alv-timeline-step-size-lg: 2.5rem;--alv-timeline-connector-width: 3px;--alv-timeline-font-size: var(--alv-font-size-base);}:root {--alv-badge-primary-bg: var(--alv-color-primary);--alv-badge-primary-text: var(--alv-color-on-primary);--alv-badge-secondary-bg: var(--alv-color-gray-200);--alv-badge-secondary-text: var(--alv-color-text-primary);--alv-badge-success-bg: var(--alv-color-success);--alv-badge-success-text: var(--alv-color-on-success);--alv-badge-error-bg: var(--alv-color-error);--alv-badge-error-text: var(--alv-color-on-error);--alv-badge-warning-bg: var(--alv-color-warning);--alv-badge-warning-text: var(--alv-color-on-warning);--alv-badge-info-bg: var(--alv-color-info);--alv-badge-info-text: var(--alv-color-on-info);}:root {--alv-list-bg: var(--alv-color-surface);--alv-list-border: var(--alv-color-border);--alv-list-item-bg: transparent;--alv-list-item-bg-hover: var(--alv-color-background-hover);--alv-list-item-bg-active: var(--alv-color-background-active);--alv-list-item-text: var(--alv-color-text-primary);--alv-list-item-text-secondary: var(--alv-color-text-secondary);}:root {--alv-radio-border: var(--alv-color-border);--alv-radio-border-hover: var(--alv-color-border-hover);--alv-radio-border-focus: var(--alv-color-border-focus);--alv-radio-bg: var(--alv-color-background);--alv-radio-checked-bg: var(--alv-color-primary);--alv-radio-checked-border: var(--alv-color-primary);--alv-radio-text: var(--alv-color-text-primary);--alv-radio-text-disabled: var(--alv-color-text-disabled);}.alviere-timeline.svelte-1db5upf {display:flex;align-items:center;justify-content:center;width:100%;--timeline-color: var(--alv-timeline-color, var(--alv-color-gray-600));--timeline-completed-color: var(--alv-timeline-completed-color, var(--alv-color-success));--timeline-error-color: var(--alv-timeline-error-color, var(--alv-color-error));--timeline-pending-color: var(--alv-timeline-pending-color, var(--alv-color-gray-400));--timeline-info-color: var(--alv-timeline-info-color, var(--alv-color-info));--timeline-warning-color: var(--alv-timeline-warning-color, var(--alv-color-warning));}.alviere-timeline--sm.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-sm, 1.25rem);--timeline-connector-width: 2px;--timeline-font-size: var(--alv-font-size-sm);--timeline-connector-padding: 0.625rem;}.alviere-timeline--md.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-md, 2rem);--timeline-connector-width: var(--alv-timeline-connector-width, 3px);--timeline-font-size: var(--alv-timeline-font-size, var(--alv-font-size-base));}.alviere-timeline--lg.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-lg, 2.5rem);--timeline-connector-width: 4px;--timeline-font-size: var(--alv-font-size-lg);}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__container:where(.svelte-1db5upf) {flex-direction:row;align-items:center;justify-content:space-between;width:100%;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf) {position:relative;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):nth-child(1) .alviere-timeline__step:where(.svelte-1db5upf) {align-items:flex-start;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):nth-child(1) .alviere-timeline__connector:where(.svelte-1db5upf) {width:calc(100% - var(--timeline-connector-padding) * 2 + 50% - var(--timeline-connector-padding) - var(--timeline-step-size));left:calc(var(--timeline-step-size) + var(--timeline-connector-padding));}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):last-child .alviere-timeline__step:where(.svelte-1db5upf) {align-items:flex-end;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):last-child .alviere-timeline__connector:where(.svelte-1db5upf) {width:calc(100% - var(--timeline-connector-padding) * 2);}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__connector:where(.svelte-1db5upf) {height:var(--timeline-connector-width);align-self:center;position:relative;top:calc(var(--timeline-step-size) * 0.5 + var(--timeline-connector-width) * 0.5);left:calc(50% + var(--timeline-step-size) * 0.5 + var(--timeline-connector-padding));min-width:2rem;width:calc(100% - var(--timeline-connector-padding) * 2 + 50% - var(--timeline-connector-padding) - var(--timeline-step-size));}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__container:where(.svelte-1db5upf) {flex-direction:column;align-items:flex-start;}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf) {flex-direction:column;align-items:flex-start;}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__connector:where(.svelte-1db5upf) {width:var(--timeline-connector-width);height:2rem;}.alviere-timeline__container.svelte-1db5upf {display:flex;align-items:center;width:100%;gap:0;}.alviere-timeline__step-wrapper.svelte-1db5upf {position:relative;flex:1;}.alviere-timeline__step.svelte-1db5upf {display:flex;flex-direction:column;align-items:center;gap:0.5rem;position:relative;}.alviere-timeline__step-indicator.svelte-1db5upf {position:relative;width:var(--timeline-step-size);height:var(--timeline-step-size);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--alv-color-surface, #ffffff);border:1px solid var(--timeline-color);transition:all var(--alv-transition-normal, 0.3s ease-in-out);}.alviere-timeline__step-icon.svelte-1db5upf {font-size:calc(var(--timeline-step-size) * 0.5);font-weight:var(--alv-font-weight-bold, 700);color:var(--alv-color-on-primary, #ffffff);transition:all var(--alv-transition-normal, 0.3s ease-in-out);display:flex;flex-direction:column;align-items:center;justify-content:center;}.alviere-timeline__step-icon.svelte-1db5upf svg {width:calc(var(--timeline-step-size) * 0.75);height:calc(var(--timeline-step-size) * 0.75);}.alviere-timeline__step--pending.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-pending-color);background:var(--alv-color-surface, #ffffff);}.alviere-timeline__step--pending.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--timeline-pending-color);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-color);background:var(--timeline-color);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-primary, #ffffff);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-text:where(.svelte-1db5upf) {font-weight:var(--alv-font-weight-bold, 700);}.alviere-timeline__step--completed.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-completed-color);background:var(--timeline-completed-color);}.alviere-timeline__step--completed.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-success, #ffffff);}.alviere-timeline__step--error.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-error-color);background:var(--timeline-error-color);}.alviere-timeline__step--error.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-error, #ffffff);}.alviere-timeline__step--info.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-info-color);background:var(--timeline-info-color);}.alviere-timeline__step--info.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-info, #ffffff);}.alviere-timeline__step--warning.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-warning-color);background:var(--timeline-warning-color);}.alviere-timeline__step--warning.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-warning, #000000);}.alviere-timeline__step-label.svelte-1db5upf {display:none;flex-direction:column;align-items:center;text-align:center;gap:0.25rem;}.alviere-timeline__step-text.svelte-1db5upf {font-size:var(--timeline-font-size);font-weight:var(--alv-font-weight-medium, 500);color:var(--alv-color-text-primary);white-space:nowrap;}.alviere-timeline__step-description.svelte-1db5upf {font-size:calc(var(--timeline-font-size) * 0.875);color:var(--alv-color-text-secondary);white-space:nowrap;}.alviere-timeline__connector.svelte-1db5upf {background:var(--timeline-pending-color);transition:background-color var(--alv-transition-normal, 0.3s ease-in-out);}.alviere-timeline__step-ripple.svelte-1db5upf {position:absolute;top:50%;left:50%;width:var(--timeline-step-size);height:var(--timeline-step-size);border-radius:50%;background:rgba(var(--alv-color-success-rgb, 67, 107, 29), 0.3);transform:translate(-50%, -50%) scale(0);pointer-events:none;opacity:0;transition:all 0.6s ease-out;}.alviere-timeline__step-ripple--active.svelte-1db5upf {transform:translate(-50%, -50%) scale(2);opacity:1;}\n@media (max-width: 768px) {.alviere-timeline__step-text.svelte-1db5upf {font-size:var(--alv-font-size-sm);}.alviere-timeline__step-description.svelte-1db5upf {font-size:var(--alv-font-size-xs);}\n}.alviere-timeline__step-indicator.svelte-1db5upf:focus-visible {outline:2px solid var(--timeline-color);outline-offset:2px;}\n@media (prefers-reduced-motion: reduce) {.alviere-timeline__step-ripple.svelte-1db5upf {transition:none;}.alviere-timeline__step-indicator.svelte-1db5upf {transition:none;}.alviere-timeline__connector.svelte-1db5upf {transition:none;}\n}"
16197
+ code: ":root {--alv-color-primary: #227e9e;--alv-color-primary-hover: #1b6680;--alv-color-primary-active: #145164;--alv-color-primary-light: #e8f4f8;--alv-color-primary-light-hover: #d1e8f0;--alv-color-on-primary: #ffffff;--alv-color-success: #436b1d;--alv-color-success-light: #d4edda;--alv-color-success-border: #c3e6cb;--alv-color-success-text: #155724;--alv-color-on-success: #ffffff;--alv-color-success-rgb: 67, 107, 29;--alv-color-error: #b3311f;--alv-color-error-light: #f8d7da;--alv-color-error-border: #f5c6cb;--alv-color-error-text: #721c24;--alv-color-on-error: #ffffff;--alv-color-error-rgb: 179, 49, 31;--alv-color-warning: #ffc107;--alv-color-warning-light: #fff3cd;--alv-color-warning-border: #ffeaa7;--alv-color-warning-text: #856404;--alv-color-on-warning: #000000;--alv-color-info: #175db8;--alv-color-info-light: #d1ecf1;--alv-color-info-border: #bee5eb;--alv-color-info-text: #0c5460;--alv-color-on-info: #ffffff;--alv-color-gray-50: #fafafa;--alv-color-gray-100: #f4f4f5;--alv-color-gray-200: #e4e4e7;--alv-color-gray-300: #d4d4d8;--alv-color-gray-400: #a1a1aa;--alv-color-gray-500: #71717a;--alv-color-gray-600: #52525b;--alv-color-gray-700: #3f3f46;--alv-color-gray-800: #27272a;--alv-color-gray-900: #18181b;--alv-color-surface: #ffffff;--alv-color-surface-secondary: #f9fafb;--alv-color-surface-tertiary: #f4f4f5;--alv-color-surface-elevated: #ffffff;--alv-color-text-primary: #18181b;--alv-color-text-secondary: #52525b;--alv-color-text-tertiary: #71717a;--alv-color-text-disabled: #a1a1aa;--alv-color-text-on-primary: #ffffff;--alv-color-text-on-surface: #18181b;--alv-color-border: #e4e4e7;--alv-color-border-hover: #d4d4d8;--alv-color-border-focus: #227e9e;--alv-color-border-error: #b3311f;--alv-color-border-success: #436b1d;--alv-color-background: #ffffff;--alv-color-background-disabled: #f4f4f5;--alv-color-background-hover: #f9fafb;--alv-color-background-active: #f4f4f5;}:root {--alv-font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--alv-font-family-grotesque: 'Darker Grotesque', sans-serif;--alv-font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;--alv-font-size-3xs: 0.625rem;--alv-font-size-2xs: 0.75rem;--alv-font-size-xs: 1rem;--alv-font-size-sm: 1.125rem;--alv-font-size-base: 1.25rem;--alv-font-size-lg: 1.5rem;--alv-font-size-xl: 1.75rem;--alv-font-weight-light: 300;--alv-font-weight-normal: 400;--alv-font-weight-medium: 500;--alv-font-weight-semibold: 600;--alv-font-weight-bold: 700;--alv-line-height-tight: 1.25;--alv-line-height-normal: 1.5;--alv-line-height-relaxed: 1.75;}:root {--alv-spacing-xs: 0.25rem;--alv-spacing-sm: 0.5rem;--alv-spacing-md: 1rem;--alv-spacing-lg: 1.5rem;--alv-spacing-xl: 2rem;--alv-spacing-2xl: 3rem;--alv-spacing-3xl: 4rem;}:root {--alv-border-radius-none: 0;--alv-border-radius-sm: 0.125rem;--alv-border-radius: 0.25rem;--alv-border-radius-md: 0.375rem;--alv-border-radius-lg: 0.5rem;--alv-border-radius-xl: 0.75rem;--alv-border-radius-2xl: 1rem;--alv-border-radius-full: 9999px;}:root {--alv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);--alv-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);--alv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--alv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);--alv-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);--alv-shadow-none: none;}:root {--alv-transition-fast: 150ms ease-in-out;--alv-transition-normal: 250ms ease-in-out;--alv-transition-slow: 350ms ease-in-out;--alv-transition-none: none;}:root {--alv-input-height-sm: 2.5rem;--alv-input-height: 3.25rem;--alv-input-height-lg: 3.75rem;--alv-input-padding-x: 0.75rem;--alv-input-padding-y: 0.5rem;--alv-input-border-color: var(--alv-color-border);--alv-input-border-hover: var(--alv-color-border-hover);--alv-input-border-focus: var(--alv-color-border-focus);--alv-input-bg: var(--alv-color-background);--alv-input-bg-disabled: var(--alv-color-background-disabled);}:root {--alv-z-dropdown: 1000;--alv-z-sticky: 1020;--alv-z-fixed: 1030;--alv-z-modal-backdrop: 1040;--alv-z-modal: 1050;--alv-z-popover: 1060;--alv-z-tooltip: 1070;}:root {--alv-button-primary-bg: var(--alv-color-primary);--alv-button-primary-bg-hover: var(--alv-color-primary-hover);--alv-button-primary-bg-active: var(--alv-color-primary-active);--alv-button-primary-text: var(--alv-color-on-primary);--alv-button-primary-border: var(--alv-color-primary);--alv-button-secondary-bg: transparent;--alv-button-secondary-bg-hover: var(--alv-color-primary-light);--alv-button-secondary-bg-active: var(--alv-color-primary-light-hover);--alv-button-secondary-text: var(--alv-color-primary);--alv-button-secondary-border: var(--alv-color-primary);--alv-button-tertiary-bg: transparent;--alv-button-tertiary-bg-hover: var(--alv-color-gray-100);--alv-button-tertiary-bg-active: var(--alv-color-gray-200);--alv-button-tertiary-text: var(--alv-color-text-primary);--alv-button-tertiary-border: transparent;--alv-button-link-bg: transparent;--alv-button-link-bg-hover: transparent;--alv-button-link-bg-active: transparent;--alv-button-link-text: var(--alv-color-primary);--alv-button-link-text-hover: var(--alv-color-primary-hover);--alv-button-link-border: transparent;}:root {--alv-spinner-color: var(--alv-color-text-primary);--alv-spinner-size-sm: 1rem;--alv-spinner-size-md: 1.5rem;--alv-spinner-size-lg: 4rem;--alv-spinner-stroke-width: 2px;}:root {--alv-timeline-color: var(--alv-color-gray-600);--alv-timeline-completed-color: var(--alv-color-success);--alv-timeline-error-color: var(--alv-color-error);--alv-timeline-pending-color: var(--alv-color-gray-400);--alv-timeline-step-size-sm: 1.25rem;--alv-timeline-step-size-md: 2rem;--alv-timeline-step-size-lg: 2.5rem;--alv-timeline-connector-width: 3px;--alv-timeline-font-size: var(--alv-font-size-base);}:root {--alv-badge-primary-bg: var(--alv-color-primary);--alv-badge-primary-text: var(--alv-color-on-primary);--alv-badge-secondary-bg: var(--alv-color-gray-200);--alv-badge-secondary-text: var(--alv-color-text-primary);--alv-badge-success-bg: var(--alv-color-success);--alv-badge-success-text: var(--alv-color-on-success);--alv-badge-error-bg: var(--alv-color-error);--alv-badge-error-text: var(--alv-color-on-error);--alv-badge-warning-bg: var(--alv-color-warning);--alv-badge-warning-text: var(--alv-color-on-warning);--alv-badge-info-bg: var(--alv-color-info);--alv-badge-info-text: var(--alv-color-on-info);}:root {--alv-list-bg: var(--alv-color-surface);--alv-list-border: var(--alv-color-border);--alv-list-item-bg: transparent;--alv-list-item-bg-hover: var(--alv-color-background-hover);--alv-list-item-bg-active: var(--alv-color-background-active);--alv-list-item-text: var(--alv-color-text-primary);--alv-list-item-text-secondary: var(--alv-color-text-secondary);}:root {--alv-radio-border: var(--alv-color-border);--alv-radio-border-hover: var(--alv-color-border-hover);--alv-radio-border-focus: var(--alv-color-border-focus);--alv-radio-bg: var(--alv-color-background);--alv-radio-checked-bg: var(--alv-color-primary);--alv-radio-checked-border: var(--alv-color-primary);--alv-radio-text: var(--alv-color-text-primary);--alv-radio-text-disabled: var(--alv-color-text-disabled);}.alviere-timeline.svelte-1db5upf {display:flex;align-items:center;justify-content:center;width:100%;--timeline-color: var(--alv-timeline-color, var(--alv-color-gray-600));--timeline-completed-color: var(--alv-timeline-completed-color, var(--alv-color-success));--timeline-error-color: var(--alv-timeline-error-color, var(--alv-color-error));--timeline-pending-color: var(--alv-timeline-pending-color, var(--alv-color-gray-400));--timeline-info-color: var(--alv-timeline-info-color, var(--alv-color-info));--timeline-warning-color: var(--alv-timeline-warning-color, var(--alv-color-warning));}.alviere-timeline--sm.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-sm, 1.25rem);--timeline-connector-width: 2px;--timeline-font-size: var(--alv-font-size-sm);--timeline-connector-padding: 0.625rem;}.alviere-timeline--md.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-md, 2rem);--timeline-connector-width: var(--alv-timeline-connector-width, 3px);--timeline-font-size: var(--alv-timeline-font-size, var(--alv-font-size-base));}.alviere-timeline--lg.svelte-1db5upf {--timeline-step-size: var(--alv-timeline-step-size-lg, 2.5rem);--timeline-connector-width: 4px;--timeline-font-size: var(--alv-font-size-lg);}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__container:where(.svelte-1db5upf) {flex-direction:row;align-items:center;justify-content:space-between;width:100%;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf) {position:relative;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):nth-child(1) .alviere-timeline__step:where(.svelte-1db5upf) {align-items:flex-start;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):nth-child(1) .alviere-timeline__connector:where(.svelte-1db5upf) {width:calc(100% - var(--timeline-connector-padding) * 2 + 50% - var(--timeline-connector-padding) - var(--timeline-step-size));left:calc(var(--timeline-step-size) + var(--timeline-connector-padding));}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):last-child .alviere-timeline__step:where(.svelte-1db5upf) {align-items:flex-end;}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf):last-child .alviere-timeline__connector:where(.svelte-1db5upf) {width:calc(100% - var(--timeline-connector-padding) * 2);}.alviere-timeline--horizontal.svelte-1db5upf .alviere-timeline__connector:where(.svelte-1db5upf) {height:var(--timeline-connector-width);align-self:center;position:relative;top:calc(var(--timeline-step-size) * 0.5 + var(--timeline-connector-width) * 0.5);left:calc(50% + var(--timeline-step-size) * 0.5 + var(--timeline-connector-padding));min-width:2rem;width:calc(100% - var(--timeline-connector-padding) * 2 + 50% - var(--timeline-connector-padding) - var(--timeline-step-size));}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__container:where(.svelte-1db5upf) {flex-direction:column;align-items:flex-start;}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__step-wrapper:where(.svelte-1db5upf) {flex-direction:column;align-items:flex-start;}.alviere-timeline--vertical.svelte-1db5upf .alviere-timeline__connector:where(.svelte-1db5upf) {width:var(--timeline-connector-width);height:2rem;}.alviere-timeline__container.svelte-1db5upf {display:flex;align-items:center;width:100%;gap:0;}.alviere-timeline__step-wrapper.svelte-1db5upf {position:relative;flex:1;}.alviere-timeline__step.svelte-1db5upf {display:flex;flex-direction:column;align-items:center;gap:0.5rem;position:relative;}.alviere-timeline__step-indicator.svelte-1db5upf {position:relative;width:var(--timeline-step-size);height:var(--timeline-step-size);border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--alv-color-surface, #ffffff);border:1px solid var(--timeline-color);transition:all var(--alv-transition-normal, 0.3s ease-in-out);}.alviere-timeline__step-icon.svelte-1db5upf {font-size:calc(var(--timeline-step-size) * 0.5);font-weight:var(--alv-font-weight-bold, 700);color:var(--alv-color-on-primary, #ffffff);transition:all var(--alv-transition-normal, 0.3s ease-in-out);display:flex;flex-direction:column;align-items:center;justify-content:center;}.alviere-timeline__step-icon.svelte-1db5upf svg {width:calc(var(--timeline-step-size) * 0.7);height:calc(var(--timeline-step-size) * 0.7);}.alviere-timeline__step--pending.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-pending-color);background:var(--alv-color-surface, #ffffff);}.alviere-timeline__step--pending.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--timeline-pending-color);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-color);background:var(--timeline-color);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-primary, #ffffff);}.alviere-timeline__step--active.svelte-1db5upf .alviere-timeline__step-text:where(.svelte-1db5upf) {font-weight:var(--alv-font-weight-bold, 700);}.alviere-timeline__step--completed.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-completed-color);background:var(--timeline-completed-color);}.alviere-timeline__step--completed.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-success, #ffffff);}.alviere-timeline__step--error.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-error-color);background:var(--timeline-error-color);}.alviere-timeline__step--error.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-error, #ffffff);}.alviere-timeline__step--info.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-info-color);background:var(--timeline-info-color);}.alviere-timeline__step--info.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-info, #ffffff);}.alviere-timeline__step--warning.svelte-1db5upf .alviere-timeline__step-indicator:where(.svelte-1db5upf) {border-color:var(--timeline-warning-color);background:var(--timeline-warning-color);}.alviere-timeline__step--warning.svelte-1db5upf .alviere-timeline__step-icon:where(.svelte-1db5upf) {color:var(--alv-color-on-warning, #000000);}.alviere-timeline__step-label.svelte-1db5upf {display:none;flex-direction:column;align-items:center;text-align:center;gap:0.25rem;}.alviere-timeline__step-text.svelte-1db5upf {font-size:var(--timeline-font-size);font-weight:var(--alv-font-weight-medium, 500);color:var(--alv-color-text-primary);white-space:nowrap;}.alviere-timeline__step-description.svelte-1db5upf {font-size:calc(var(--timeline-font-size) * 0.875);color:var(--alv-color-text-secondary);white-space:nowrap;}.alviere-timeline__connector.svelte-1db5upf {background:var(--timeline-pending-color);transition:background-color var(--alv-transition-normal, 0.3s ease-in-out);}.alviere-timeline__step-ripple.svelte-1db5upf {position:absolute;top:50%;left:50%;width:var(--timeline-step-size);height:var(--timeline-step-size);border-radius:50%;background:rgba(var(--alv-color-success-rgb, 67, 107, 29), 0.3);transform:translate(-50%, -50%) scale(0);pointer-events:none;opacity:0;transition:all 0.6s ease-out;}.alviere-timeline__step-ripple--active.svelte-1db5upf {transform:translate(-50%, -50%) scale(2);opacity:1;}\n@media (max-width: 768px) {.alviere-timeline__step-text.svelte-1db5upf {font-size:var(--alv-font-size-sm);}.alviere-timeline__step-description.svelte-1db5upf {font-size:var(--alv-font-size-xs);}\n}.alviere-timeline__step-indicator.svelte-1db5upf:focus-visible {outline:2px solid var(--timeline-color);outline-offset:2px;}\n@media (prefers-reduced-motion: reduce) {.alviere-timeline__step-ripple.svelte-1db5upf {transition:none;}.alviere-timeline__step-indicator.svelte-1db5upf {transition:none;}.alviere-timeline__connector.svelte-1db5upf {transition:none;}\n}"
16066
16198
  };
16067
16199
  function Timeline($$anchor, $$props) {
16068
16200
  push($$props, true);
@@ -17749,8 +17881,8 @@ var root_13 = /* @__PURE__ */ from_html(`<div class="error-message svelte-qf1k5k
17749
17881
  var root_9 = /* @__PURE__ */ from_html(`<div class="alviere-multi-step-flow__step-content svelte-qf1k5k"><div class="alviere-multi-step-flow__step-content__header svelte-qf1k5k"><h3 class="svelte-qf1k5k"> </h3></div> <div class="alviere-multi-step-flow__step-content__component"><!></div></div>`);
17750
17882
  var root_14 = /* @__PURE__ */ from_html(`<div class="alviere-multi-step-flow__flow-complete svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-complete__header svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-complete__header__icon svelte-qf1k5k"><!></div></div> <div class="alviere-multi-step-flow__flow-complete__content svelte-qf1k5k"><p> </p></div></div>`);
17751
17883
  var root_16 = /* @__PURE__ */ from_html(`<p class="flow-barrier-status svelte-qf1k5k"> </p>`);
17752
- var root_17 = /* @__PURE__ */ from_html(`<p class="flow-barrier-description svelte-qf1k5k"> </p>`);
17753
- var root_15 = /* @__PURE__ */ from_html(`<div class="alviere-multi-step-flow__flow-barrier svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-barrier__header svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-barrier__header__icon svelte-qf1k5k"><!></div></div> <div class="alviere-multi-step-flow__flow-barrier__content svelte-qf1k5k"><h3 class="svelte-qf1k5k"> </h3> <p class="flow-barrier-message svelte-qf1k5k"> </p> <!> <!></div></div>`);
17884
+ var root_17 = /* @__PURE__ */ from_html(`<p class="flow-barrier-description svelte-qf1k5k"><!></p>`);
17885
+ var root_15 = /* @__PURE__ */ from_html(`<div class="alviere-multi-step-flow__flow-barrier svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-barrier__header svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-barrier__header__icon svelte-qf1k5k"><!></div></div> <div class="alviere-multi-step-flow__flow-barrier__content svelte-qf1k5k"><h3 class="svelte-qf1k5k"> </h3> <p class="flow-barrier-message svelte-qf1k5k"><!></p> <!> <!></div></div>`);
17754
17886
  var root_19 = /* @__PURE__ */ from_html(`<p class="flow-error-code svelte-qf1k5k"> </p>`);
17755
17887
  var root_20 = /* @__PURE__ */ from_html(`<p class="flow-error-description svelte-qf1k5k"> </p>`);
17756
17888
  var root_18 = /* @__PURE__ */ from_html(`<div class="alviere-multi-step-flow__flow-error svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-error__header svelte-qf1k5k"><div class="alviere-multi-step-flow__flow-error__header__icon svelte-qf1k5k"><!></div></div> <div class="alviere-multi-step-flow__flow-error__content svelte-qf1k5k"><h3 class="svelte-qf1k5k">Unable to Continue</h3> <p class="flow-error-message svelte-qf1k5k"> </p> <!> <!></div></div>`);
@@ -18461,40 +18593,38 @@ function MultiStepFlow($$anchor, $$props) {
18461
18593
  var text_6 = child(h3_1, true);
18462
18594
  reset(h3_1);
18463
18595
  var p_2 = sibling(h3_1, 2);
18464
- var text_7 = child(p_2, true);
18596
+ var node_15 = child(p_2);
18597
+ html(node_15, () => get$1(flowBarrier).message || "");
18465
18598
  reset(p_2);
18466
- var node_15 = sibling(p_2, 2);
18599
+ var node_16 = sibling(p_2, 2);
18467
18600
  {
18468
18601
  var consequent_11 = ($$anchor3) => {
18469
18602
  var p_3 = root_16();
18470
- var text_8 = child(p_3);
18603
+ var text_7 = child(p_3);
18471
18604
  reset(p_3);
18472
- template_effect(() => set_text(text_8, `Status: ${get$1(flowBarrier).status ?? ""}`));
18605
+ template_effect(() => set_text(text_7, `Status: ${get$1(flowBarrier).status ?? ""}`));
18473
18606
  append($$anchor3, p_3);
18474
18607
  };
18475
- if_block(node_15, ($$render) => {
18608
+ if_block(node_16, ($$render) => {
18476
18609
  if (debug() && get$1(flowBarrier).status) $$render(consequent_11);
18477
18610
  });
18478
18611
  }
18479
- var node_16 = sibling(node_15, 2);
18612
+ var node_17 = sibling(node_16, 2);
18480
18613
  {
18481
18614
  var consequent_12 = ($$anchor3) => {
18482
18615
  var p_4 = root_17();
18483
- var text_9 = child(p_4, true);
18616
+ var node_18 = child(p_4);
18617
+ html(node_18, () => get$1(flowBarrier).description);
18484
18618
  reset(p_4);
18485
- template_effect(() => set_text(text_9, get$1(flowBarrier).description));
18486
18619
  append($$anchor3, p_4);
18487
18620
  };
18488
- if_block(node_16, ($$render) => {
18621
+ if_block(node_17, ($$render) => {
18489
18622
  if (debug() && get$1(flowBarrier).description) $$render(consequent_12);
18490
18623
  });
18491
18624
  }
18492
18625
  reset(div_16);
18493
18626
  reset(div_13);
18494
- template_effect(() => {
18495
- set_text(text_6, get$1(flowBarrier).title || "Please wait");
18496
- set_text(text_7, get$1(flowBarrier).message);
18497
- });
18627
+ template_effect(() => set_text(text_6, get$1(flowBarrier).title || "Please wait"));
18498
18628
  transition(1, div_13, () => fade, () => ({ duration: 300, delay: 100 }));
18499
18629
  transition(2, div_13, () => fade, () => ({ duration: 200 }));
18500
18630
  append($$anchor2, div_13);
@@ -18503,58 +18633,58 @@ function MultiStepFlow($$anchor, $$props) {
18503
18633
  if (get$1(flowBarrier)) $$render(consequent_13);
18504
18634
  });
18505
18635
  }
18506
- var node_17 = sibling(node_13, 2);
18636
+ var node_19 = sibling(node_13, 2);
18507
18637
  {
18508
18638
  var consequent_16 = ($$anchor2) => {
18509
18639
  var div_17 = root_18();
18510
18640
  var div_18 = child(div_17);
18511
18641
  var div_19 = child(div_18);
18512
- var node_18 = child(div_19);
18513
- html(node_18, () => errorIcon.outerHTML);
18642
+ var node_20 = child(div_19);
18643
+ html(node_20, () => errorIcon.outerHTML);
18514
18644
  reset(div_19);
18515
18645
  reset(div_18);
18516
18646
  var div_20 = sibling(div_18, 2);
18517
18647
  var p_5 = sibling(child(div_20), 2);
18518
- var text_10 = child(p_5, true);
18648
+ var text_8 = child(p_5, true);
18519
18649
  reset(p_5);
18520
- var node_19 = sibling(p_5, 2);
18650
+ var node_21 = sibling(p_5, 2);
18521
18651
  {
18522
18652
  var consequent_14 = ($$anchor3) => {
18523
18653
  var p_6 = root_19();
18524
- var text_11 = child(p_6);
18654
+ var text_9 = child(p_6);
18525
18655
  reset(p_6);
18526
- template_effect(() => set_text(text_11, `Error Code: ${get$1(flowError).errorCode ?? ""}`));
18656
+ template_effect(() => set_text(text_9, `Error Code: ${get$1(flowError).errorCode ?? ""}`));
18527
18657
  append($$anchor3, p_6);
18528
18658
  };
18529
- if_block(node_19, ($$render) => {
18659
+ if_block(node_21, ($$render) => {
18530
18660
  if (debug() && get$1(flowError).errorCode) $$render(consequent_14);
18531
18661
  });
18532
18662
  }
18533
- var node_20 = sibling(node_19, 2);
18663
+ var node_22 = sibling(node_21, 2);
18534
18664
  {
18535
18665
  var consequent_15 = ($$anchor3) => {
18536
18666
  var p_7 = root_20();
18537
- var text_12 = child(p_7, true);
18667
+ var text_10 = child(p_7, true);
18538
18668
  reset(p_7);
18539
- template_effect(() => set_text(text_12, get$1(flowError).description));
18669
+ template_effect(() => set_text(text_10, get$1(flowError).description));
18540
18670
  append($$anchor3, p_7);
18541
18671
  };
18542
- if_block(node_20, ($$render) => {
18672
+ if_block(node_22, ($$render) => {
18543
18673
  if (debug() && get$1(flowError).description) $$render(consequent_15);
18544
18674
  });
18545
18675
  }
18546
18676
  reset(div_20);
18547
18677
  reset(div_17);
18548
- template_effect(() => set_text(text_10, get$1(flowError).message));
18678
+ template_effect(() => set_text(text_8, get$1(flowError).message));
18549
18679
  transition(1, div_17, () => fade, () => ({ duration: 300, delay: 100 }));
18550
18680
  transition(2, div_17, () => fade, () => ({ duration: 200 }));
18551
18681
  append($$anchor2, div_17);
18552
18682
  };
18553
- if_block(node_17, ($$render) => {
18683
+ if_block(node_19, ($$render) => {
18554
18684
  if (get$1(flowError)) $$render(consequent_16);
18555
18685
  });
18556
18686
  }
18557
- var node_21 = sibling(node_17, 2);
18687
+ var node_23 = sibling(node_19, 2);
18558
18688
  {
18559
18689
  var consequent_17 = ($$anchor2) => {
18560
18690
  var div_21 = root_21();
@@ -18576,20 +18706,20 @@ function MultiStepFlow($$anchor, $$props) {
18576
18706
  );
18577
18707
  append($$anchor2, div_21);
18578
18708
  };
18579
- if_block(node_21, ($$render) => {
18709
+ if_block(node_23, ($$render) => {
18580
18710
  if (config().showNavigation !== false && !get$1(flowError) && !get$1(flowBarrier) && !flowManager.isComplete()) $$render(consequent_17);
18581
18711
  });
18582
18712
  }
18583
- var node_22 = sibling(node_21, 2);
18713
+ var node_24 = sibling(node_23, 2);
18584
18714
  {
18585
18715
  var consequent_18 = ($$anchor2) => {
18586
18716
  var div_22 = root_22();
18587
- var text_13 = child(div_22, true);
18717
+ var text_11 = child(div_22, true);
18588
18718
  reset(div_22);
18589
- template_effect(() => set_text(text_13, get$1(error)));
18719
+ template_effect(() => set_text(text_11, get$1(error)));
18590
18720
  append($$anchor2, div_22);
18591
18721
  };
18592
- if_block(node_22, ($$render) => {
18722
+ if_block(node_24, ($$render) => {
18593
18723
  if (get$1(error)) $$render(consequent_18);
18594
18724
  });
18595
18725
  }