@alviere/ui 0.17.1 → 0.18.0
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 +186 -151
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/web-components.js +1 -1
- package/dist/web-components.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _a, _commit_callbacks, _discard_callbacks, _pending, _blocking_pending, _deferred, _dirty_effects, _maybe_dirty_effects, _Batch_instances, traverse_effect_tree_fn, defer_effects_fn, clear_marked_fn, resolve_fn, commit_fn, _pending2, _anchor, _hydrate_open, _props, _children, _effect, _main_effect, _pending_effect, _failed_effect, _offscreen_fragment, _pending_anchor, _local_pending_count, _pending_count, _is_creating_fallback, _effect_pending, _effect_pending_subscriber, _Boundary_instances, hydrate_resolved_content_fn, hydrate_pending_content_fn, get_anchor_fn, run_fn, show_pending_snippet_fn, update_pending_count_fn, _batches, _onscreen, _offscreen, _outroing, _transition, _commit, _discard, _events, _instance;
|
|
13
|
-
import { AlviereCore, AlcoreApiError, AlcoreErrorCodes, isCriticalError, getJWTRefreshTime } from "@alviere/core";
|
|
13
|
+
import { AlviereCore, AlcoreApiError, AlcoreErrorCodes, BUSINESS_TYPES, COUNTRIES, PROFESSIONS, US_STATES, isCriticalError, getJWTRefreshTime } from "@alviere/core";
|
|
14
14
|
import { onMount, createEventDispatcher, untrack as untrack$1 } from "svelte";
|
|
15
15
|
const PUBLIC_VERSION = "5";
|
|
16
16
|
if (typeof window !== "undefined") {
|
|
@@ -8006,7 +8006,7 @@ const $$css$l = {
|
|
|
8006
8006
|
function TextInput($$anchor, $$props) {
|
|
8007
8007
|
push($$props, true);
|
|
8008
8008
|
append_styles$1($$anchor, $$css$l);
|
|
8009
|
-
let value = prop($$props, "value", 15, ""), label = prop($$props, "label", 15, ""), placeholder = prop($$props, "placeholder", 15, ""), disabled = prop($$props, "disabled", 15, false), required = prop($$props, "required", 15, false), readonly = prop($$props, "readonly", 15, false), size = prop($$props, "size", 15, "md"), id = prop($$props, "id", 15, ""), name = prop($$props, "name", 15, ""), autocomplete = prop($$props, "autocomplete", 15, ""), validationState = prop($$props, "validationState", 15, "neutral"), errorMessage = prop($$props, "errorMessage", 15, ""), helpText = prop($$props, "helpText", 15, ""), validationSchema = prop($$props, "validationSchema", 31, () => proxy({})), sensitive = prop($$props, "sensitive", 15, false), maxlength = prop($$props, "maxlength", 15, void 0), minlength = prop($$props, "minlength", 15, void 0), oninput = prop($$props, "oninput", 15), onchange = prop($$props, "onchange", 15), onfocus = prop($$props, "onfocus", 15), onblur = prop($$props, "onblur", 15), type = prop($$props, "type", 15, "text"), rows = prop($$props, "rows", 15, 3), cols = prop($$props, "cols", 15, void 0), resize = prop($$props, "resize", 15, "vertical"), blockPaste = prop($$props, "blockPaste", 15, false), suffixActionLabel = prop($$props, "suffixActionLabel", 15, ""), suffixActionAriaLabel = prop($$props, "suffixActionAriaLabel", 15, ""), suffixActionHandler = prop($$props, "suffixActionHandler", 15, void 0);
|
|
8009
|
+
let value = prop($$props, "value", 15, ""), label = prop($$props, "label", 15, ""), placeholder = prop($$props, "placeholder", 15, ""), disabled = prop($$props, "disabled", 15, false), required = prop($$props, "required", 15, false), readonly = prop($$props, "readonly", 15, false), size = prop($$props, "size", 15, "md"), id = prop($$props, "id", 15, ""), name = prop($$props, "name", 15, ""), autocomplete = prop($$props, "autocomplete", 15, "off"), validationState = prop($$props, "validationState", 15, "neutral"), errorMessage = prop($$props, "errorMessage", 15, ""), helpText = prop($$props, "helpText", 15, ""), validationSchema = prop($$props, "validationSchema", 31, () => proxy({})), sensitive = prop($$props, "sensitive", 15, false), maxlength = prop($$props, "maxlength", 15, void 0), minlength = prop($$props, "minlength", 15, void 0), oninput = prop($$props, "oninput", 15), onchange = prop($$props, "onchange", 15), onfocus = prop($$props, "onfocus", 15), onblur = prop($$props, "onblur", 15), type = prop($$props, "type", 15, "text"), rows = prop($$props, "rows", 15, 3), cols = prop($$props, "cols", 15, void 0), resize = prop($$props, "resize", 15, "vertical"), blockPaste = prop($$props, "blockPaste", 15, false), suffixActionLabel = prop($$props, "suffixActionLabel", 15, ""), suffixActionAriaLabel = prop($$props, "suffixActionAriaLabel", 15, ""), suffixActionHandler = prop($$props, "suffixActionHandler", 15, void 0);
|
|
8010
8010
|
const fallbackId = `text-input-${Math.random().toString(36).slice(2, 10)}`;
|
|
8011
8011
|
const getInputId = () => id() || name() || fallbackId;
|
|
8012
8012
|
const baseInput = createEnhancedBaseInputMixin({
|
|
@@ -8366,7 +8366,7 @@ function TextInput($$anchor, $$props) {
|
|
|
8366
8366
|
get autocomplete() {
|
|
8367
8367
|
return autocomplete();
|
|
8368
8368
|
},
|
|
8369
|
-
set autocomplete($$value = "") {
|
|
8369
|
+
set autocomplete($$value = "off") {
|
|
8370
8370
|
autocomplete($$value);
|
|
8371
8371
|
flushSync();
|
|
8372
8372
|
},
|
|
@@ -11829,11 +11829,11 @@ var root_4$6 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__req
|
|
|
11829
11829
|
var root_6$4 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__loading-message svelte-roni7d"> </div>`);
|
|
11830
11830
|
var root_8$4 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__no-options-message svelte-roni7d"> </div>`);
|
|
11831
11831
|
var root_10$3 = /* @__PURE__ */ from_html(`<div role="option" tabindex="0"> </div>`);
|
|
11832
|
-
var root_5$5 = /* @__PURE__ */ from_html(`<div
|
|
11832
|
+
var root_5$5 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__dropdown svelte-roni7d" role="listbox"><div class="alviere-search-select__options-list svelte-roni7d"><!></div></div>`);
|
|
11833
11833
|
var root_11$2 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__help svelte-roni7d"> </div>`);
|
|
11834
11834
|
var root_12$2 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__error svelte-roni7d" role="alert"><svg height="1rem" width="1rem" viewBox="0 0 24 24" class="IconStyle_currentColor__sdo2n67" style="font-size: 1em;"><g fill="none"><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2 2 6.477 2 12zm5.293-3.293 1.414-1.414 8 8-1.414 1.414z" fill="currentcolor"></path></g></svg> </div>`);
|
|
11835
11835
|
var root_13$3 = /* @__PURE__ */ from_html(`<div class="alviere-search-select__warning svelte-roni7d" role="status"><!> </div>`);
|
|
11836
|
-
var root$b = /* @__PURE__ */ from_html(`<div><div class="alviere-search-select__container svelte-roni7d"><div><!> <input type="text" class="alviere-search-select__input svelte-roni7d" role="combobox" aria-haspopup="listbox"
|
|
11836
|
+
var root$b = /* @__PURE__ */ from_html(`<div><div class="alviere-search-select__container svelte-roni7d"><div><!> <input type="text" class="alviere-search-select__input svelte-roni7d" role="combobox" aria-haspopup="listbox"/> <!> <div class="alviere-search-select__actions svelte-roni7d"><!> <button type="button" tabindex="-1" aria-hidden="true"><!></button></div> <!></div> <!></div> <div class="alviere-search-select__validation-messages svelte-roni7d"><!> <!> <!></div></div>`);
|
|
11837
11837
|
const $$css$f = {
|
|
11838
11838
|
hash: "svelte-roni7d",
|
|
11839
11839
|
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-search-select.svelte-roni7d {position:relative;width:100%;}.alviere-search-select__label.svelte-roni7d {position:absolute;max-width:calc(100% - 1.5rem);inset-inline-start:0.75rem;top:calc(50% + 1px);transform:translateY(-50%);transition:all 250ms ease-in-out;transition-delay:0.1s;display:block;font-size:1rem;font-weight:500;color:#3f3f46;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.alviere-search-select__required.svelte-roni7d {font-size:0.75rem;color:#3f3f46;text-align:end;position:absolute;right:1rem;top:calc(50% + 1px);transform:translateY(-50%);pointer-events:none;}.alviere-search-select__error.svelte-roni7d {display:flex;align-items:center;gap:0.25rem;font-size:0.75rem;color:#b3311f;line-height:1.25;}.alviere-search-select__warning.svelte-roni7d {display:flex;align-items:center;gap:0.25rem;font-size:0.75rem;color:#856404;line-height:1.25;}.alviere-search-select__warning.svelte-roni7d svg {width:1rem;height:1rem;}.alviere-search-select__wrapper.svelte-roni7d {position:relative;display:flex;align-items:center;background:#ffffff;border:1px solid #52525b;border-radius:0.25rem;transition:border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;}.alviere-search-select__wrapper--focused.svelte-roni7d {border-color:#227e9e;box-shadow:0 0 0 1px #227e9e inset;}
|
|
@@ -12360,6 +12360,7 @@ function SearchSelect($$anchor, $$props) {
|
|
|
12360
12360
|
var text2 = child(label_1, true);
|
|
12361
12361
|
reset(label_1);
|
|
12362
12362
|
template_effect(() => {
|
|
12363
|
+
set_attribute(label_1, "id", id() || name() ? `${id() || name()}-label` : void 0);
|
|
12363
12364
|
set_attribute(label_1, "for", id() || name());
|
|
12364
12365
|
set_text(text2, label());
|
|
12365
12366
|
});
|
|
@@ -12505,7 +12506,11 @@ function SearchSelect($$anchor, $$props) {
|
|
|
12505
12506
|
reset(div_7);
|
|
12506
12507
|
bind_this(div_7, ($$value) => set(optionsListElement, $$value), () => get$1(optionsListElement));
|
|
12507
12508
|
reset(div_6);
|
|
12508
|
-
template_effect(() =>
|
|
12509
|
+
template_effect(() => {
|
|
12510
|
+
set_attribute(div_6, "id", `${(id() || name()) ?? ""}-dropdown`);
|
|
12511
|
+
set_style(div_6, `max-height: ${maxHeight() ?? ""}`);
|
|
12512
|
+
set_attribute(div_6, "aria-label", label() || "Options");
|
|
12513
|
+
});
|
|
12509
12514
|
append($$anchor2, div_6);
|
|
12510
12515
|
};
|
|
12511
12516
|
if_block(node_6, ($$render) => {
|
|
@@ -12569,12 +12574,14 @@ function SearchSelect($$anchor, $$props) {
|
|
|
12569
12574
|
set_class(div, 1, `alviere-search-select alviere-search-select--${size() ?? ""}`, "svelte-roni7d");
|
|
12570
12575
|
classes = set_class(div_2, 1, "alviere-search-select__wrapper svelte-roni7d", null, classes, $0);
|
|
12571
12576
|
set_attribute(input, "placeholder", get$1(isOpen) || baseInput.state.isFocused ? searchPlaceholder() || `Search ${label() || "options"}...` : "");
|
|
12572
|
-
set_attribute(input, "id", id());
|
|
12577
|
+
set_attribute(input, "id", id() || name());
|
|
12573
12578
|
set_attribute(input, "name", name());
|
|
12574
12579
|
input.disabled = disabled();
|
|
12575
12580
|
input.readOnly = readonly();
|
|
12576
12581
|
set_attribute(input, "autocomplete", autocomplete());
|
|
12577
12582
|
set_attribute(input, "aria-expanded", get$1(isOpen));
|
|
12583
|
+
set_attribute(input, "aria-controls", `${(id() || name()) ?? ""}-dropdown`);
|
|
12584
|
+
set_attribute(input, "aria-labelledby", label() && (id() || name()) ? `${id() || name()}-label` : void 0);
|
|
12578
12585
|
classes_1 = set_class(button_1, 1, "alviere-search-select__dropdown-arrow svelte-roni7d", null, classes_1, { open: get$1(isOpen) });
|
|
12579
12586
|
button_1.disabled = disabled() || readonly();
|
|
12580
12587
|
},
|
|
@@ -13531,150 +13538,174 @@ function getPrefillValueForKey(key, prefillInfo, accountType) {
|
|
|
13531
13538
|
}
|
|
13532
13539
|
return value ?? "";
|
|
13533
13540
|
}
|
|
13534
|
-
const
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13541
|
+
const BUSINESS_TYPE_LABELS = {
|
|
13542
|
+
CORPORATION_C: "Corporation C",
|
|
13543
|
+
CORPORATION_S: "Corporation S",
|
|
13544
|
+
GENERAL_PARTNERSHIP: "General Partnership",
|
|
13545
|
+
GOVERNMENT_ENTITY: "Government Entity",
|
|
13546
|
+
LLC: "LLC",
|
|
13547
|
+
LLP: "LLP",
|
|
13548
|
+
NON_PROFIT_CORPORATION: "Non-Profit Corporation",
|
|
13549
|
+
SOLE_PROPRIETORSHIP: "Sole Proprietorship"
|
|
13550
|
+
};
|
|
13551
|
+
const COUNTRY_LABELS = {
|
|
13552
|
+
USA: "United States",
|
|
13553
|
+
CAN: "Canada",
|
|
13554
|
+
MEX: "Mexico",
|
|
13555
|
+
GBR: "United Kingdom"
|
|
13556
|
+
};
|
|
13557
|
+
const PROFESSION_LABELS = {
|
|
13558
|
+
ACCOUNTANT: "Accountant",
|
|
13559
|
+
ACTOR: "Actor",
|
|
13560
|
+
ADMINISTRATIVE_ASSISTANT: "Administrative Assistant",
|
|
13561
|
+
ANALYST: "Analyst",
|
|
13562
|
+
ARCHITECT: "Architect",
|
|
13563
|
+
ARTIST: "Artist",
|
|
13564
|
+
CARPENTER: "Carpenter",
|
|
13565
|
+
CASHIER: "Cashier",
|
|
13566
|
+
CHILDCARE: "Childcare",
|
|
13567
|
+
COOK: "Cook",
|
|
13568
|
+
CLEANER: "Cleaner",
|
|
13569
|
+
COACH: "Coach",
|
|
13570
|
+
CONSTRUCTION_WORKER: "Construction Worker",
|
|
13571
|
+
CONSULTANT: "Consultant",
|
|
13572
|
+
CONTENT_CREATOR: "Content Creator",
|
|
13573
|
+
COUNSELOR: "Counselor",
|
|
13574
|
+
CUSTOMER_SERVICE: "Customer Service",
|
|
13575
|
+
DATA_ENTRY: "Data Entry",
|
|
13576
|
+
DESIGNER: "Designer",
|
|
13577
|
+
DENTIST: "Dentist",
|
|
13578
|
+
DEVELOPER: "Developer",
|
|
13579
|
+
DIETITIAN: "Dietitian",
|
|
13580
|
+
DOCTOR: "Doctor",
|
|
13581
|
+
DRIVER: "Driver",
|
|
13582
|
+
EDITOR: "Editor",
|
|
13583
|
+
ELECTRICIAN: "Electrician",
|
|
13584
|
+
ENGINEER: "Engineer",
|
|
13585
|
+
ESTHETICIAN: "Esthetician",
|
|
13586
|
+
EXECUTIVE: "Executive",
|
|
13587
|
+
EXECUTIVE_ASSISTANT: "Executive Assistant",
|
|
13588
|
+
FARMER: "Farmer",
|
|
13589
|
+
FINANCIAL_ADVISOR: "Financial Advisor",
|
|
13590
|
+
FIREFIGHTER: "Firefighter",
|
|
13591
|
+
GRAPHIC_DESIGNER: "Graphic Designer",
|
|
13592
|
+
HAIRDRESSER: "Hairdresser",
|
|
13593
|
+
HUMAN_RESOURCES: "Human Resources",
|
|
13594
|
+
IT_SUPPORT: "IT Support",
|
|
13595
|
+
JANITOR: "Janitor",
|
|
13596
|
+
JUDGE: "Judge",
|
|
13597
|
+
LAWYER: "Lawyer",
|
|
13598
|
+
LIBRARIAN: "Librarian",
|
|
13599
|
+
MAINTENANCE_WORKER: "Maintenance Worker",
|
|
13600
|
+
MANAGER: "Manager",
|
|
13601
|
+
MEDICAL_ASSISTANT: "Medical Assistant",
|
|
13602
|
+
MECHANIC: "Mechanic",
|
|
13603
|
+
MILITARY: "Military",
|
|
13604
|
+
MUSICIAN: "Musician",
|
|
13605
|
+
NURSE: "Nurse",
|
|
13606
|
+
PARALEGAL: "Paralegal",
|
|
13607
|
+
PHOTOGRAPHER: "Photographer",
|
|
13608
|
+
PHYSICIAN: "Physician",
|
|
13609
|
+
PILOT: "Pilot",
|
|
13610
|
+
PARAMEDIC: "Paramedic",
|
|
13611
|
+
PHARMACIST: "Pharmacist",
|
|
13612
|
+
PHYSICAL_THERAPIST: "Physical Therapist",
|
|
13613
|
+
PLUMBER: "Plumber",
|
|
13614
|
+
POLITICIAN: "Politician",
|
|
13615
|
+
POLICE_OFFICER: "Police Officer",
|
|
13616
|
+
PROFESSOR: "Professor",
|
|
13617
|
+
PROJECT_MANAGER: "Project Manager",
|
|
13618
|
+
PSYCHOLOGIST: "Psychologist",
|
|
13619
|
+
RECEPTIONIST: "Receptionist",
|
|
13620
|
+
REAL_ESTATE_AGENT: "Real Estate Agent",
|
|
13621
|
+
RESEARCHER: "Researcher",
|
|
13622
|
+
RETAIL_ASSOCIATE: "Retail Associate",
|
|
13623
|
+
SALES_REPRESENTATIVE: "Sales Representative",
|
|
13624
|
+
SCIENTIST: "Scientist",
|
|
13625
|
+
SECURITY_GUARD: "Security Guard",
|
|
13626
|
+
SOCIAL_WORKER: "Social Worker",
|
|
13627
|
+
TEACHER: "Teacher",
|
|
13628
|
+
TECHNICIAN: "Technician",
|
|
13629
|
+
TRANSLATOR: "Translator",
|
|
13630
|
+
VETERINARIAN: "Veterinarian",
|
|
13631
|
+
WAREHOUSE_WORKER: "Warehouse Worker",
|
|
13632
|
+
WELDER: "Welder",
|
|
13633
|
+
WRITER: "Writer"
|
|
13634
|
+
};
|
|
13635
|
+
const US_STATE_LABELS = {
|
|
13636
|
+
AL: "Alabama",
|
|
13637
|
+
AK: "Alaska",
|
|
13638
|
+
AZ: "Arizona",
|
|
13639
|
+
AR: "Arkansas",
|
|
13640
|
+
CA: "California",
|
|
13641
|
+
CO: "Colorado",
|
|
13642
|
+
CT: "Connecticut",
|
|
13643
|
+
DE: "Delaware",
|
|
13644
|
+
FL: "Florida",
|
|
13645
|
+
GA: "Georgia",
|
|
13646
|
+
HI: "Hawaii",
|
|
13647
|
+
ID: "Idaho",
|
|
13648
|
+
IL: "Illinois",
|
|
13649
|
+
IN: "Indiana",
|
|
13650
|
+
IA: "Iowa",
|
|
13651
|
+
KS: "Kansas",
|
|
13652
|
+
KY: "Kentucky",
|
|
13653
|
+
LA: "Louisiana",
|
|
13654
|
+
ME: "Maine",
|
|
13655
|
+
MD: "Maryland",
|
|
13656
|
+
MA: "Massachusetts",
|
|
13657
|
+
MI: "Michigan",
|
|
13658
|
+
MN: "Minnesota",
|
|
13659
|
+
MS: "Mississippi",
|
|
13660
|
+
MO: "Missouri",
|
|
13661
|
+
MT: "Montana",
|
|
13662
|
+
NE: "Nebraska",
|
|
13663
|
+
NV: "Nevada",
|
|
13664
|
+
NH: "New Hampshire",
|
|
13665
|
+
NJ: "New Jersey",
|
|
13666
|
+
NM: "New Mexico",
|
|
13667
|
+
NY: "New York",
|
|
13668
|
+
NC: "North Carolina",
|
|
13669
|
+
ND: "North Dakota",
|
|
13670
|
+
OH: "Ohio",
|
|
13671
|
+
OK: "Oklahoma",
|
|
13672
|
+
OR: "Oregon",
|
|
13673
|
+
PA: "Pennsylvania",
|
|
13674
|
+
RI: "Rhode Island",
|
|
13675
|
+
SC: "South Carolina",
|
|
13676
|
+
SD: "South Dakota",
|
|
13677
|
+
TN: "Tennessee",
|
|
13678
|
+
TX: "Texas",
|
|
13679
|
+
UT: "Utah",
|
|
13680
|
+
VT: "Vermont",
|
|
13681
|
+
VA: "Virginia",
|
|
13682
|
+
WA: "Washington",
|
|
13683
|
+
WV: "West Virginia",
|
|
13684
|
+
WI: "Wisconsin",
|
|
13685
|
+
WY: "Wyoming",
|
|
13686
|
+
DC: "District of Columbia",
|
|
13687
|
+
AS: "American Samoa",
|
|
13688
|
+
GU: "Guam",
|
|
13689
|
+
MP: "Northern Mariana Islands",
|
|
13690
|
+
PR: "Puerto Rico",
|
|
13691
|
+
VI: "U.S. Virgin Islands"
|
|
13692
|
+
};
|
|
13693
|
+
const businessTypeOptions = BUSINESS_TYPES.map((value) => ({
|
|
13694
|
+
value,
|
|
13695
|
+
label: BUSINESS_TYPE_LABELS[value]
|
|
13696
|
+
}));
|
|
13697
|
+
const countryOptions = COUNTRIES.map((value) => ({
|
|
13698
|
+
value,
|
|
13699
|
+
label: COUNTRY_LABELS[value]
|
|
13700
|
+
}));
|
|
13701
|
+
const professionOptions = PROFESSIONS.map((value) => ({
|
|
13702
|
+
value,
|
|
13703
|
+
label: PROFESSION_LABELS[value]
|
|
13704
|
+
}));
|
|
13705
|
+
const usStates = US_STATES.map((value) => ({
|
|
13706
|
+
value,
|
|
13707
|
+
label: US_STATE_LABELS[value]
|
|
13708
|
+
}));
|
|
13678
13709
|
const accountConfigs = {
|
|
13679
13710
|
business: {
|
|
13680
13711
|
type: "business",
|
|
@@ -17231,6 +17262,7 @@ function AddBankAccount($$anchor, $$props) {
|
|
|
17231
17262
|
template_effect(() => set_custom_element_data(alviere_list_item, "selected", get$1(selectedBankAccountUuid) === get$1(bankAccount).payment_method_uuid));
|
|
17232
17263
|
set_custom_element_data(alviere_list_item, "expandable", true);
|
|
17233
17264
|
template_effect(() => set_custom_element_data(alviere_list_item, "last", index2 === get$1(bankAccounts).bank_accounts.length - 1));
|
|
17265
|
+
template_effect(() => set_custom_element_data(alviere_list_item, "selectLabel", getLabel("selectAccountAriaLabel", `Select account ending in ${get$1(displayInfo).accountNumber}`)));
|
|
17234
17266
|
var div_4 = child(alviere_list_item);
|
|
17235
17267
|
var alviere_badge = child(div_4);
|
|
17236
17268
|
set_custom_element_data(alviere_badge, "size", "sm");
|
|
@@ -17270,6 +17302,7 @@ function AddBankAccount($$anchor, $$props) {
|
|
|
17270
17302
|
});
|
|
17271
17303
|
set_custom_element_data(alviere_button_1, "iconName", "Starred");
|
|
17272
17304
|
template_effect(() => set_custom_element_data(alviere_button_1, "disabled", get$1(bankAccount).primary === true));
|
|
17305
|
+
template_effect(() => set_custom_element_data(alviere_button_1, "ariaLabel", getLabel("makePrimaryAriaLabel", `Make ••••${get$1(displayInfo).accountNumber} primary`)));
|
|
17273
17306
|
var alviere_button_2 = sibling(alviere_button_1, 2);
|
|
17274
17307
|
set_custom_element_data(alviere_button_2, "variant", "secondary");
|
|
17275
17308
|
set_custom_element_data(alviere_button_2, "size", "sm");
|
|
@@ -17278,6 +17311,7 @@ function AddBankAccount($$anchor, $$props) {
|
|
|
17278
17311
|
deleteBankAccount(get$1(bankAccount).payment_method_uuid || "");
|
|
17279
17312
|
});
|
|
17280
17313
|
set_custom_element_data(alviere_button_2, "iconName", "Trash");
|
|
17314
|
+
template_effect(() => set_custom_element_data(alviere_button_2, "ariaLabel", getLabel("deleteAriaLabel", `Delete ••••${get$1(displayInfo).accountNumber}`)));
|
|
17281
17315
|
reset(div_7);
|
|
17282
17316
|
var div_8 = sibling(div_7, 2);
|
|
17283
17317
|
var div_9 = child(div_8);
|
|
@@ -17609,6 +17643,7 @@ function AddBankAccount($$anchor, $$props) {
|
|
|
17609
17643
|
get label() {
|
|
17610
17644
|
return get$1($0);
|
|
17611
17645
|
},
|
|
17646
|
+
name: "ach_account_type",
|
|
17612
17647
|
get value() {
|
|
17613
17648
|
return baseForm.state.formData.ach_details.type;
|
|
17614
17649
|
},
|