@wix/members 1.0.542 → 1.0.543
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/build/cjs/context-account-details.js +94 -89
- package/build/cjs/context-account-details.js.map +1 -1
- package/build/cjs/context-addresses.js +2 -2
- package/build/cjs/context-addresses.js.map +1 -1
- package/build/es/context-account-details.mjs +94 -89
- package/build/es/context-account-details.mjs.map +1 -1
- package/build/es/context-addresses.mjs +2 -2
- package/build/es/context-addresses.mjs.map +1 -1
- package/context-runtime/context-account-details/runtime.js +3 -3
- package/context-runtime/context-addresses/runtime.js +3 -3
- package/package.json +2 -2
|
@@ -3265,7 +3265,7 @@ function Wa({ i18n: e11, defaultNS: t2, children: n2 }) {
|
|
|
3265
3265
|
let r2 = (0, import_react.useMemo)(() => ({ i18n: e11, defaultNS: t2 }), [e11, t2]);
|
|
3266
3266
|
return (0, import_react.createElement)(Ra.Provider, { value: r2 }, n2);
|
|
3267
3267
|
}
|
|
3268
|
-
var Ga = [...`--wst-button-primary-background-color.--wst-button-primary-background-image.--wst-button-primary-padding-top.--wst-button-primary-border-top-color.--wst-button-primary-border-top-width.--wst-button-primary-border-top-style.--wst-button-primary-padding-right.--wst-button-primary-border-right-color.--wst-button-primary-border-right-width.--wst-button-primary-border-right-style.--wst-button-primary-padding-bottom.--wst-button-primary-border-bottom-color.--wst-button-primary-border-bottom-width.--wst-button-primary-border-bottom-style.--wst-button-primary-padding-left.--wst-button-primary-border-left-color.--wst-button-primary-border-left-width.--wst-button-primary-border-left-style.--wst-button-primary-border-top-left-radius.--wst-button-primary-border-top-right-radius.--wst-button-primary-border-bottom-right-radius.--wst-button-primary-border-bottom-left-radius.--wst-button-primary-box-shadow.--wst-button-primary-column-gap.--wst-button-primary-row-gap.--wst-button-primary-letter-spacing.--wst-button-primary-text-decoration.--wst-button-primary-text-transform.--wst-button-primary-text-shadow.--wst-button-secondary-background-color.--wst-button-secondary-background-image.--wst-button-secondary-padding-top.--wst-button-secondary-border-top-color.--wst-button-secondary-border-top-width.--wst-button-secondary-border-top-style.--wst-button-secondary-padding-right.--wst-button-secondary-border-right-color.--wst-button-secondary-border-right-width.--wst-button-secondary-border-right-style.--wst-button-secondary-padding-bottom.--wst-button-secondary-border-bottom-color.--wst-button-secondary-border-bottom-width.--wst-button-secondary-border-bottom-style.--wst-button-secondary-padding-left.--wst-button-secondary-border-left-color.--wst-button-secondary-border-left-width.--wst-button-secondary-border-left-style.--wst-button-secondary-border-top-left-radius.--wst-button-secondary-border-top-right-radius.--wst-button-secondary-border-bottom-right-radius.--wst-button-secondary-border-bottom-left-radius.--wst-button-secondary-box-shadow.--wst-button-secondary-column-gap.--wst-button-secondary-row-gap.--wst-button-secondary-letter-spacing.--wst-button-secondary-text-decoration.--wst-button-secondary-text-transform.--wst-button-secondary-text-shadow`.split(`.`), `--wst-graphics-1-color`, `--wst-system-line-1-color`, `--wst-system-line-1-width`, `--wst-system-disabled-color`, `--wst-primary-background-color`, `--wst-secondary-background-color`, `--wst-shade-2-color`, `--wst-shade-3-color`, `--wst-paragraph-1-color`, `--wst-paragraph-1-font`, `--wst-paragraph-2-color`, `--wst-paragraph-2-font`, `--wst-paragraph-3-color`, `--wst-paragraph-3-font`, `--wst-heading-5-color`, `--wst-heading-5-font`, `--wst-heading-6-color`, `--wst-heading-6-font`, `--wst-button-primary-color`, `--wst-button-primary-font`, `--wst-button-secondary-color`, `--wst-button-secondary-font`, `--wst-button-tertiary-color`, `--wst-button-tertiary-font`, `--wst-links-and-actions-color`, `--wst-system-alert-color`, `--wst-system-error-color`, `--wst-system-success-color`, `--wst-system-default-light-color`, `--wst-system-default-dark-color`];
|
|
3268
|
+
var Ga = [...`--wst-button-primary-background-color.--wst-button-primary-background-image.--wst-button-primary-padding-top.--wst-button-primary-border-top-color.--wst-button-primary-border-top-width.--wst-button-primary-border-top-style.--wst-button-primary-padding-right.--wst-button-primary-border-right-color.--wst-button-primary-border-right-width.--wst-button-primary-border-right-style.--wst-button-primary-padding-bottom.--wst-button-primary-border-bottom-color.--wst-button-primary-border-bottom-width.--wst-button-primary-border-bottom-style.--wst-button-primary-padding-left.--wst-button-primary-border-left-color.--wst-button-primary-border-left-width.--wst-button-primary-border-left-style.--wst-button-primary-border-top-left-radius.--wst-button-primary-border-top-right-radius.--wst-button-primary-border-bottom-right-radius.--wst-button-primary-border-bottom-left-radius.--wst-button-primary-box-shadow.--wst-button-primary-column-gap.--wst-button-primary-row-gap.--wst-button-primary-letter-spacing.--wst-button-primary-text-decoration.--wst-button-primary-text-transform.--wst-button-primary-text-shadow.--wst-button-secondary-background-color.--wst-button-secondary-background-image.--wst-button-secondary-padding-top.--wst-button-secondary-border-top-color.--wst-button-secondary-border-top-width.--wst-button-secondary-border-top-style.--wst-button-secondary-padding-right.--wst-button-secondary-border-right-color.--wst-button-secondary-border-right-width.--wst-button-secondary-border-right-style.--wst-button-secondary-padding-bottom.--wst-button-secondary-border-bottom-color.--wst-button-secondary-border-bottom-width.--wst-button-secondary-border-bottom-style.--wst-button-secondary-padding-left.--wst-button-secondary-border-left-color.--wst-button-secondary-border-left-width.--wst-button-secondary-border-left-style.--wst-button-secondary-border-top-left-radius.--wst-button-secondary-border-top-right-radius.--wst-button-secondary-border-bottom-right-radius.--wst-button-secondary-border-bottom-left-radius.--wst-button-secondary-box-shadow.--wst-button-secondary-column-gap.--wst-button-secondary-row-gap.--wst-button-secondary-letter-spacing.--wst-button-secondary-text-decoration.--wst-button-secondary-text-transform.--wst-button-secondary-text-shadow`.split(`.`), `--wst-graphics-1-color`, `--wst-system-line-1-color`, `--wst-system-line-1-width`, `--wst-system-disabled-color`, `--wst-primary-background-color`, `--wst-secondary-background-color`, `--wst-shade-2-color`, `--wst-shade-3-color`, `--wst-paragraph-1-color`, `--wst-paragraph-1-font`, `--wst-paragraph-2-color`, `--wst-paragraph-2-font`, `--wst-paragraph-2-letter-spacing`, `--wst-paragraph-2-text-decoration`, `--wst-paragraph-3-color`, `--wst-paragraph-3-font`, `--wst-paragraph-3-letter-spacing`, `--wst-paragraph-3-text-decoration`, `--wst-heading-2-font`, `--wst-heading-2-letter-spacing`, `--wst-heading-2-text-decoration`, `--wst-heading-5-color`, `--wst-heading-5-font`, `--wst-heading-6-color`, `--wst-heading-6-font`, `--wst-button-primary-color`, `--wst-button-primary-font`, `--wst-button-secondary-color`, `--wst-button-secondary-font`, `--wst-button-tertiary-color`, `--wst-button-tertiary-font`, `--wst-button-tertiary-letter-spacing`, `--wst-button-tertiary-text-decoration`, `--wst-links-and-actions-color`, `--wst-system-alert-color`, `--wst-system-error-color`, `--wst-system-success-color`, `--wst-system-default-light-color`, `--wst-system-default-dark-color`];
|
|
3269
3269
|
var Ka = `--builder-base`;
|
|
3270
3270
|
var qa = (e11) => {
|
|
3271
3271
|
let [, t2] = (0, import_react.useState)(false);
|
|
@@ -7460,7 +7460,7 @@ function yh(e11) {
|
|
|
7460
7460
|
if (!t2 && !e11?.optional) throw Error(`useAddresses must be used within AddressesContextProvider`);
|
|
7461
7461
|
return t2;
|
|
7462
7462
|
}
|
|
7463
|
-
var bh = { address: { separator: { key: `my-addresses.address.separator`, fallback: `, ` }, regionSeparator: { key: `my-addresses.address.region-separator`, fallback: ` ` }, recipientName: { key: `my-addresses.address.recipient-name`, fallback: `{{firstName}} {{lastName}}` } }, toast: { setDefaultSuccess: { key: `my-addresses.toast.set-default-success`, fallback: `Default address saved.` }, removeSuccess: { key: `my-addresses.toast.remove-success`, fallback: `Address removed.` }, saveSuccess: { key: `my-addresses.toast.save-success`, fallback: `Address saved.` }, saveFailure: { key: `my-addresses.toast.save-failure`, fallback: `We couldn't save your address. Try again.` } }, card: { defaultBadge: { key: `my-addresses.card.default-pill`, fallback: `Default` }, manage: { key: `my-addresses.card.manage`, fallback: `Manage` }, manageLabel: { key: `my-addresses.card.manage-label`, fallback: `Manage {{address}}` }, drawerClose: { key: `my-addresses.card.drawer-close`, fallback: `Close` }, edit: { key: `my-addresses.card.edit`, fallback: `Edit` }, setAsDefault: { key: `my-addresses.card.set-as-default`, fallback: `Set as default` }, remove: { key: `my-addresses.card.remove`, fallback: `Remove` } }, addAddress: { label: { key: `my-addresses.add-address.label`, fallback: `Add
|
|
7463
|
+
var bh = { address: { separator: { key: `my-addresses.address.separator`, fallback: `, ` }, regionSeparator: { key: `my-addresses.address.region-separator`, fallback: ` ` }, recipientName: { key: `my-addresses.address.recipient-name`, fallback: `{{firstName}} {{lastName}}` } }, toast: { setDefaultSuccess: { key: `my-addresses.toast.set-default-success`, fallback: `Default address saved.` }, removeSuccess: { key: `my-addresses.toast.remove-success`, fallback: `Address removed.` }, saveSuccess: { key: `my-addresses.toast.save-success`, fallback: `Address saved.` }, saveFailure: { key: `my-addresses.toast.save-failure`, fallback: `We couldn't save your address. Try again.` } }, card: { defaultBadge: { key: `my-addresses.card.default-pill`, fallback: `Default` }, manage: { key: `my-addresses.card.manage`, fallback: `Manage` }, manageLabel: { key: `my-addresses.card.manage-label`, fallback: `Manage {{address}}` }, drawerClose: { key: `my-addresses.card.drawer-close`, fallback: `Close` }, edit: { key: `my-addresses.card.edit`, fallback: `Edit` }, setAsDefault: { key: `my-addresses.card.set-as-default`, fallback: `Set as default` }, remove: { key: `my-addresses.card.remove`, fallback: `Remove` } }, addAddress: { label: { key: `my-addresses.add-address.label`, fallback: `Add Address` } }, removeConfirmation: { title: { key: `my-addresses.remove-confirmation.title`, fallback: `Remove this address?` }, text: { key: `my-addresses.remove-confirmation.text`, fallback: `{{address}} will be removed from your saved addresses and won't be available at checkout.` }, confirm: { key: `my-addresses.remove-confirmation.confirm`, fallback: `Remove` }, cancel: { key: `my-addresses.remove-confirmation.cancel`, fallback: `Cancel` }, close: { key: `my-addresses.remove-confirmation.close`, fallback: `Close` } }, form: { addTitle: { key: `my-addresses.form.add-title`, fallback: `Add address` }, editTitle: { key: `my-addresses.form.edit-title`, fallback: `Edit address` }, close: { key: `my-addresses.form.close`, fallback: `Close` }, cancel: { key: `my-addresses.form.cancel`, fallback: `Cancel` }, save: { key: `my-addresses.form.save`, fallback: `Save` }, requiredMark: { key: `my-addresses.form.required-mark`, fallback: `*` }, firstName: { key: `my-addresses.form.first-name`, fallback: `First name` }, lastName: { key: `my-addresses.form.last-name`, fallback: `Last name` }, company: { key: `my-addresses.form.company`, fallback: `Company` }, country: { key: `my-addresses.form.country`, fallback: `Country` }, addressLine: { key: `my-addresses.form.address-line`, fallback: `Address line 1` }, addressLine2: { key: `my-addresses.form.address-line-2`, fallback: `Address line 2` }, streetName: { key: `my-addresses.form.street-name`, fallback: `Street name` }, streetNumber: { key: `my-addresses.form.street-number`, fallback: `Street number` }, city: { key: `my-addresses.form.city`, fallback: `City` }, region: { key: `my-addresses.form.region`, fallback: `Region` }, zipOrPostalCode: { key: `my-addresses.form.zip-or-postal-code`, fallback: `ZIP / Postal code` }, postalCode: { key: `my-addresses.form.postal-code`, fallback: `Postal code` }, phone: { key: `my-addresses.form.phone`, fallback: `Phone` }, countryCode: { key: `account_settings_member_field_input_country_code`, fallback: `Country code` }, countrySearch: { key: `account_settings_member_field_input_country_search`, fallback: `Search` }, countryEmpty: { key: `account_settings_member_field_input_country_empty`, fallback: `No countries found` }, regionSearch: { key: `my-addresses.form.region-search`, fallback: `Search` }, regionEmpty: { key: `my-addresses.form.region-empty`, fallback: `No results found` }, setAsDefault: { key: `my-addresses.form.set-as-default`, fallback: `Set as default address` }, firstAddressHint: { key: `my-addresses.form.first-address-hint`, fallback: `Your first address is your default.` }, firstNameRequired: { key: `my-addresses.form.first-name-required`, fallback: `Enter a first name.` }, lastNameRequired: { key: `my-addresses.form.last-name-required`, fallback: `Enter a last name.` }, postalCodeInvalid: { key: `my-addresses.form.postal-code-invalid`, fallback: `Enter a valid ZIP code.` }, phoneInvalid: { key: `my-addresses.form.phone-invalid`, fallback: `Enter a valid phone number.` } }, dummy: { firstName: { key: `my-addresses.dummy.first-name`, fallback: `Name` }, lastName: { key: `my-addresses.dummy.last-name`, fallback: `Surname` }, addressLine: { key: `my-addresses.dummy.address-line`, fallback: `Street address` }, addressLine2: { key: `my-addresses.dummy.address-line-2`, fallback: `Apartment or suite` }, city: { key: `my-addresses.dummy.city`, fallback: `City` }, subdivision: { key: `my-addresses.dummy.subdivision`, fallback: `State` }, postalCode: { key: `my-addresses.dummy.postal-code`, fallback: `Postal code` }, company: { key: `my-addresses.dummy.company`, fallback: `Company` } } };
|
|
7464
7464
|
var xh = (e11, t2) => e11.filter((e12) => !!e12).join(t2);
|
|
7465
7465
|
var Sh = (e11) => e11.addressLine ?? (xh([e11.streetName, e11.streetNumber], ` `) || null);
|
|
7466
7466
|
var Ch = (e11) => ({ firstName: e11.firstName ?? ``, lastName: e11.lastName ?? ``, company: e11.company ?? ``, country: e11.country ?? ``, subdivision: e11.subdivision ?? ``, city: e11.city ?? ``, addressLine: Sh(e11) ?? ``, addressLine2: e11.addressLine2 ?? ``, streetName: e11.streetName ?? ``, streetNumber: e11.streetNumber ?? ``, postalCode: e11.postalCode ?? ``, phone: e11.phone ?? ``, savedDefault: e11.savedDefault });
|