@saasquatch/mint-components 1.8.5-24 → 1.8.5-25
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/cjs/{ShadowViewAddon-1e2f6f9b.js → ShadowViewAddon-89ba2ab0.js} +17 -17
- package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-a6b6430e.js} +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +17 -17
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +3 -3
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-cae2a67d.js → sqm-invoice-table-view-501f8985.js} +8 -8
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-ca5f6db9.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-851a020f.js → sqm-portal-profile-view-d8697f23.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-07a13210.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-ce552bbc.js → sqm-portal-verify-email-view-1ae5724a.js} +3 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +87 -29
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13 -11
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +3 -3
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +2 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +1 -1
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +4 -4
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +2 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +2 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +2 -2
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +3 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +89 -30
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -12
- package/dist/collection/components/views/email-registration-view.js +3 -3
- package/dist/esm/{ShadowViewAddon-8fd4f148.js → ShadowViewAddon-c22043d9.js} +17 -17
- package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-4a4202e7.js} +3 -3
- package/dist/esm/sqm-banking-info-form_16.entry.js +17 -17
- package/dist/esm/sqm-big-stat_38.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-c905071b.js → sqm-invoice-table-view-d00894ce.js} +8 -8
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-eeff5fa0.js → sqm-portal-profile-view-13f0ef79.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-d3e726a9.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-283bf637.js → sqm-portal-verify-email-view-279b4e58.js} +3 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +89 -31
- package/dist/esm/sqm-referred-registration.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +13 -11
- package/dist/esm-es5/ShadowViewAddon-c22043d9.js +1 -0
- package/dist/esm-es5/{email-registration-view-07d80492.js → email-registration-view-4a4202e7.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-c905071b.js → sqm-invoice-table-view-d00894ce.js} +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-13f0ef79.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-d3e726a9.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-279b4e58.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-05bfb3bf.js +391 -0
- package/dist/mint-components/{p-ebbcc7c5.entry.js → p-11be93f5.entry.js} +1 -1
- package/dist/mint-components/{p-11858d60.system.entry.js → p-18ccb4ad.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b3fff57.entry.js → p-1a5005fe.entry.js} +2 -2
- package/dist/mint-components/{p-5c750437.entry.js → p-1a8a8795.entry.js} +1 -1
- package/dist/mint-components/{p-a61430ad.system.entry.js → p-20e2037d.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3be6d20.entry.js → p-2a6133dc.entry.js} +1 -1
- package/dist/mint-components/{p-e0f374e2.entry.js → p-2f2b220a.entry.js} +1 -1
- package/dist/mint-components/{p-03cfceb5.js → p-3539d14d.js} +1 -1
- package/dist/mint-components/p-3a5d82b7.system.entry.js +1 -0
- package/dist/mint-components/p-44b12b2e.system.js +1 -1
- package/dist/mint-components/{p-d49e2f7a.js → p-46ef82ed.js} +1 -1
- package/dist/mint-components/{p-6868667d.entry.js → p-4e513c81.entry.js} +1 -1
- package/dist/mint-components/p-71fed413.system.entry.js +1 -0
- package/dist/mint-components/{p-7d5e0645.system.js → p-7487f23c.system.js} +1 -1
- package/dist/mint-components/p-7f6a6657.system.js +1 -0
- package/dist/mint-components/p-8a9ceee6.entry.js +9 -0
- package/dist/mint-components/p-911de805.entry.js +1 -0
- package/dist/mint-components/p-9b400b7e.system.entry.js +1 -0
- package/dist/mint-components/p-a40d2ed3.system.js +1 -0
- package/dist/mint-components/{p-6a6b1966.system.entry.js → p-a9482c97.system.entry.js} +1 -1
- package/dist/mint-components/p-b153fc0c.system.js +1 -0
- package/dist/mint-components/p-b5ee2781.js +1 -0
- package/dist/mint-components/p-b67f5743.system.js +1 -0
- package/dist/mint-components/p-b6c4cfec.system.entry.js +1 -0
- package/dist/mint-components/p-b9d010e0.js +1 -0
- package/dist/mint-components/p-be584089.system.entry.js +1 -0
- package/dist/mint-components/{p-6d95589e.system.entry.js → p-be96cc00.system.entry.js} +1 -1
- package/dist/mint-components/p-c74a8f95.entry.js +1 -0
- package/dist/mint-components/{p-2020caa1.system.js → p-cd45b39f.system.js} +1 -1
- package/dist/mint-components/p-cef64e28.system.entry.js +1 -0
- package/dist/mint-components/{p-41e2a408.entry.js → p-d3cd5ec5.entry.js} +1 -1
- package/dist/mint-components/{p-1403b1f1.system.entry.js → p-da99e3c7.system.entry.js} +1 -1
- package/dist/mint-components/{p-9891a965.entry.js → p-dd5ca1b2.entry.js} +2 -2
- package/dist/mint-components/{p-1b9e6fc6.js → p-ea6a7135.js} +1 -1
- package/dist/mint-components/p-f5f25aba.js +1 -0
- package/dist/mint-components/{p-4d964945.entry.js → p-f710f9d7.entry.js} +3 -3
- package/dist/mint-components/{p-4e48267b.system.js → p-fca0dc98.system.js} +1 -1
- package/dist/mint-components/{p-b2e34063.system.entry.js → p-fd3dacb9.system.entry.js} +1 -1
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-8fd4f148.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-eeff5fa0.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-283bf637.js +0 -1
- package/dist/mint-components/p-0382167f.entry.js +0 -1
- package/dist/mint-components/p-10036f16.js +0 -1
- package/dist/mint-components/p-3652236f.system.entry.js +0 -1
- package/dist/mint-components/p-3e096e73.entry.js +0 -1
- package/dist/mint-components/p-4a3a0014.entry.js +0 -9
- package/dist/mint-components/p-4d9744bf.js +0 -1
- package/dist/mint-components/p-5e1366ac.system.js +0 -1
- package/dist/mint-components/p-6bf41e0d.system.js +0 -1
- package/dist/mint-components/p-8c5a6603.js +0 -1
- package/dist/mint-components/p-9bdccddd.system.entry.js +0 -1
- package/dist/mint-components/p-ab174fe6.system.entry.js +0 -1
- package/dist/mint-components/p-abc6cb26.system.js +0 -1
- package/dist/mint-components/p-ccb7d32e.system.entry.js +0 -1
- package/dist/mint-components/p-d4b174e1.system.js +0 -1
- package/dist/mint-components/p-d60b15e7.js +0 -391
- package/dist/mint-components/p-da718618.system.entry.js +0 -1
- package/dist/mint-components/p-e1253472.system.entry.js +0 -1
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
|
@@ -362,17 +362,17 @@ const EditProfileView = (props) => {
|
|
|
362
362
|
index.h("div", { class: "FormSection" },
|
|
363
363
|
states.formState.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
364
364
|
index.h("div", { part: "erroralert-text" }, states.formState.error))),
|
|
365
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
365
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
|
|
366
366
|
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
367
367
|
: []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
|
|
368
368
|
? errors.firstName.message
|
|
369
369
|
: undefined })),
|
|
370
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
370
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: states.formState.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, (errors.lastName && errors.lastName.status !== "valid"
|
|
371
371
|
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
372
372
|
: []), { error: errors.lastName && errors.lastName.status !== "valid"
|
|
373
373
|
? errors.lastName.message
|
|
374
374
|
: undefined }))),
|
|
375
|
-
text.showregion && states.formState.currentRegion && (index.h("sl-input", { exportparts: "label: input-label
|
|
375
|
+
text.showregion && states.formState.currentRegion && (index.h("sl-input", { exportparts: "label: input-label", disabled: true, value: states.formState.currentRegion, label: text.currentregiontext, id: "currentRegion", name: "currentRegion" })),
|
|
376
376
|
index.h("div", { class: "ButtonWrapper" },
|
|
377
377
|
index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
|
|
378
378
|
callbacks.onSubmit(e);
|
|
@@ -1594,7 +1594,7 @@ function PortalChangePasswordView(props) {
|
|
|
1594
1594
|
index.h("sl-form", { "onSl-submit": callbacks.submit },
|
|
1595
1595
|
index.h("div", { class: sheet.classes.InputContainer },
|
|
1596
1596
|
index.h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
|
|
1597
|
-
index.h("sl-input", { exportparts: "label: input-label
|
|
1597
|
+
index.h("sl-input", { exportparts: "label: input-label", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
|
|
1598
1598
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
|
|
1599
1599
|
index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
|
|
1600
1600
|
index.h("sl-button", { class: sheet.classes.CancelButton, type: "text", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
|
|
@@ -1641,9 +1641,9 @@ function PortalLoginView(props) {
|
|
|
1641
1641
|
index.h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
|
|
1642
1642
|
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1643
1643
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1644
|
-
index.h("sl-input", { exportparts: "label: input-label
|
|
1644
|
+
index.h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1645
1645
|
index.h("div", null,
|
|
1646
|
-
index.h("sl-input", { exportparts: "label: input-label
|
|
1646
|
+
index.h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1647
1647
|
index.h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1648
1648
|
index.h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1649
1649
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
@@ -1693,7 +1693,7 @@ function PortalRegisterView(props) {
|
|
|
1693
1693
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1694
1694
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1695
1695
|
content.formData,
|
|
1696
|
-
!states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
1696
|
+
!states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
1697
1697
|
if (!value) {
|
|
1698
1698
|
return content.requiredFieldErrorMessage;
|
|
1699
1699
|
}
|
|
@@ -1709,7 +1709,7 @@ function PortalRegisterView(props) {
|
|
|
1709
1709
|
: [])))),
|
|
1710
1710
|
!states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
1711
1711
|
content.passwordField,
|
|
1712
|
-
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
1712
|
+
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1713
1713
|
class: sheet$5.classes.ErrorStyle,
|
|
1714
1714
|
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1715
1715
|
}
|
|
@@ -2768,7 +2768,7 @@ function NameFieldsView(props) {
|
|
|
2768
2768
|
index.h("style", { type: "text/css" },
|
|
2769
2769
|
vanillaStyle$5,
|
|
2770
2770
|
styleString$9),
|
|
2771
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
2771
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2772
2772
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2773
2773
|
}
|
|
2774
2774
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
@@ -2776,7 +2776,7 @@ function NameFieldsView(props) {
|
|
|
2776
2776
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2777
2777
|
}
|
|
2778
2778
|
: []))),
|
|
2779
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
2779
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
|
|
2780
2780
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2781
2781
|
}
|
|
2782
2782
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
@@ -2835,7 +2835,7 @@ function CheckboxFieldView(props) {
|
|
|
2835
2835
|
index.h("style", { type: "text/css" },
|
|
2836
2836
|
vanillaStyle$6,
|
|
2837
2837
|
styleString$a),
|
|
2838
|
-
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label
|
|
2838
|
+
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2839
2839
|
e.target.value = e.target.checked;
|
|
2840
2840
|
callbacks.setChecked(e.target.value);
|
|
2841
2841
|
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
@@ -2893,7 +2893,7 @@ function DropdownFieldView(props) {
|
|
|
2893
2893
|
index.h("style", { type: "text/css" },
|
|
2894
2894
|
vanillaStyle$7,
|
|
2895
2895
|
styleString$b),
|
|
2896
|
-
index.h("sl-select", Object.assign({ exportparts: "label: input-label
|
|
2896
|
+
index.h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2897
2897
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2898
2898
|
}
|
|
2899
2899
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
@@ -2930,7 +2930,7 @@ function InputFieldView(props) {
|
|
|
2930
2930
|
index.h("style", { type: "text/css" },
|
|
2931
2931
|
vanillaStyle$8,
|
|
2932
2932
|
styleString$c),
|
|
2933
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
2933
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2934
2934
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2935
2935
|
}
|
|
2936
2936
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
@@ -3441,7 +3441,7 @@ function RewardExchangeView(props) {
|
|
|
3441
3441
|
borderRadius: "4px",
|
|
3442
3442
|
};
|
|
3443
3443
|
return (index.h("div", { key: item.key, style: style },
|
|
3444
|
-
index.h("sl-card", {
|
|
3444
|
+
index.h("sl-card", { class: sheet$d.classes.Card, style: {
|
|
3445
3445
|
cursor: item.unavailableReasonCode
|
|
3446
3446
|
? "not-allowed"
|
|
3447
3447
|
: "pointer",
|
|
@@ -3499,7 +3499,7 @@ function RewardExchangeView(props) {
|
|
|
3499
3499
|
}))))))));
|
|
3500
3500
|
}))),
|
|
3501
3501
|
index.h("div", { class: sheet$d.classes.Button },
|
|
3502
|
-
index.h("sl-button", {
|
|
3502
|
+
index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3503
3503
|
];
|
|
3504
3504
|
}
|
|
3505
3505
|
function chooseAmount() {
|
|
@@ -3519,8 +3519,8 @@ function RewardExchangeView(props) {
|
|
|
3519
3519
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
|
|
3520
3520
|
index.h("div", { class: "space" }))),
|
|
3521
3521
|
index.h("div", { class: sheet$d.classes.Button },
|
|
3522
|
-
index.h("sl-button", {
|
|
3523
|
-
index.h("sl-button", {
|
|
3522
|
+
index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3523
|
+
index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3524
3524
|
}
|
|
3525
3525
|
function confirmation() {
|
|
3526
3526
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-a6b6430e.js}
RENAMED
|
@@ -60,9 +60,9 @@ function EmailRegistrationView(props) {
|
|
|
60
60
|
index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
61
61
|
props.states.error &&
|
|
62
62
|
getErrorMessage(props.states.error, props.content.fraudErrorMessage, props.content.fraudErrorMessageTitle),
|
|
63
|
-
content.includeName && (index.h("sl-input", { exportparts: "label: input-label
|
|
64
|
-
content.includeName && (index.h("sl-input", { exportparts: "label: input-label
|
|
65
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
63
|
+
content.includeName && (index.h("sl-input", { exportparts: "label: input-label", type: "name", name: "/firstName", label: content.firstNameLabel || "First Name", disabled: states.loading })),
|
|
64
|
+
content.includeName && (index.h("sl-input", { exportparts: "label: input-label", type: "name", name: "/lastName", label: content.lastNameLabel || "Last Name", disabled: states.loading })),
|
|
65
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
66
66
|
if (!value) {
|
|
67
67
|
return content.requiredFieldErrorMessage;
|
|
68
68
|
}
|
|
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-f1923bc6.js');
|
|
|
16
16
|
const luxon = require('./luxon-a4661470.js');
|
|
17
17
|
const useReferralTable = require('./useReferralTable-7244325a.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-501f8985.js');
|
|
20
20
|
|
|
21
21
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
22
22
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -867,7 +867,7 @@ const BankingInfoFormView = (props) => {
|
|
|
867
867
|
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
868
868
|
index.h("div", null,
|
|
869
869
|
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
870
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label
|
|
870
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
871
871
|
formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
872
872
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
873
873
|
: [
|
|
@@ -875,7 +875,7 @@ const BankingInfoFormView = (props) => {
|
|
|
875
875
|
slots.paymentMethodSlot,
|
|
876
876
|
slots.formInputsSlot,
|
|
877
877
|
])),
|
|
878
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label
|
|
878
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
879
879
|
id: "paypal-input-label",
|
|
880
880
|
defaultMessage: text.toPayPalAccount,
|
|
881
881
|
}, { feeCap: states.feeCap }))),
|
|
@@ -884,11 +884,11 @@ const BankingInfoFormView = (props) => {
|
|
|
884
884
|
: slots.paypalInputSlot)),
|
|
885
885
|
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
886
886
|
index.h("h4", null, text.paymentSchedule)),
|
|
887
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label
|
|
887
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
888
888
|
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
889
889
|
? getLoadingSkeleton("toPayPalAccount")
|
|
890
890
|
: slots.paymentThresholdSelectSlot)),
|
|
891
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label
|
|
891
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
892
892
|
formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
893
893
|
? getLoadingSkeleton("toPayPalAccount")
|
|
894
894
|
: slots.paymentFixedDaySelectSlot))))),
|
|
@@ -6672,18 +6672,18 @@ const UserInfoFormView = (props) => {
|
|
|
6672
6672
|
text.isPartnerAlertDescription)),
|
|
6673
6673
|
index.h("div", null,
|
|
6674
6674
|
index.h("div", { class: classes.InputContainer },
|
|
6675
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
6675
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
6676
6676
|
class: classes.ErrorInput,
|
|
6677
6677
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6678
6678
|
}
|
|
6679
6679
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6680
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
6680
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6681
6681
|
class: classes.ErrorInput,
|
|
6682
6682
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6683
6683
|
}
|
|
6684
6684
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6685
|
-
index.h("sl-input", { exportparts: "label: input-label
|
|
6686
|
-
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label
|
|
6685
|
+
index.h("sl-input", { exportparts: "label: input-label", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6686
|
+
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6687
6687
|
class: classes.ErrorInput,
|
|
6688
6688
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6689
6689
|
}
|
|
@@ -6697,7 +6697,7 @@ const UserInfoFormView = (props) => {
|
|
|
6697
6697
|
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6698
6698
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6699
6699
|
index.h("div", { style: { display: "flex", gap: "4px" } },
|
|
6700
|
-
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label
|
|
6700
|
+
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "140px" }, value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6701
6701
|
class: classes.ErrorInput,
|
|
6702
6702
|
}
|
|
6703
6703
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
@@ -6719,7 +6719,7 @@ const UserInfoFormView = (props) => {
|
|
|
6719
6719
|
index.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6720
6720
|
_b.dial_code));
|
|
6721
6721
|
})),
|
|
6722
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
6722
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", label: " ", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, style: { marginTop: "2px", width: "362px" }, validationError: ({ value }) =>
|
|
6723
6723
|
// Naive phone number validation
|
|
6724
6724
|
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6725
6725
|
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
@@ -6727,7 +6727,7 @@ const UserInfoFormView = (props) => {
|
|
|
6727
6727
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6728
6728
|
}
|
|
6729
6729
|
: {}), { required: true }))),
|
|
6730
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
6730
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6731
6731
|
// Checks for non-ASCII characters
|
|
6732
6732
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6733
6733
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6735,7 +6735,7 @@ const UserInfoFormView = (props) => {
|
|
|
6735
6735
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6736
6736
|
}
|
|
6737
6737
|
: {}), { required: true })),
|
|
6738
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
6738
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6739
6739
|
// Checks for non-ASCII characters
|
|
6740
6740
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6741
6741
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6743,17 +6743,17 @@ const UserInfoFormView = (props) => {
|
|
|
6743
6743
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6744
6744
|
}
|
|
6745
6745
|
: {}), { required: true })),
|
|
6746
|
-
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label
|
|
6746
|
+
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6747
6747
|
class: classes.ErrorInput,
|
|
6748
6748
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6749
6749
|
}
|
|
6750
6750
|
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6751
|
-
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label
|
|
6751
|
+
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6752
6752
|
class: classes.ErrorInput,
|
|
6753
6753
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6754
6754
|
}
|
|
6755
6755
|
: {}), { required: true })),
|
|
6756
|
-
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label
|
|
6756
|
+
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6757
6757
|
class: classes.ErrorInput,
|
|
6758
6758
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6759
6759
|
}
|
|
@@ -6773,7 +6773,7 @@ const UserInfoFormView = (props) => {
|
|
|
6773
6773
|
" - ",
|
|
6774
6774
|
c.displayName)))),
|
|
6775
6775
|
index.h("div", { class: classes.CheckboxWrapper },
|
|
6776
|
-
index.h("sl-checkbox", { exportparts: "label: input-label
|
|
6776
|
+
index.h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6777
6777
|
e.target.value = e.target.checked;
|
|
6778
6778
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6779
6779
|
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
@@ -19,7 +19,7 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
19
19
|
const useRegistrationFormState = require('./useRegistrationFormState-ad3190c9.js');
|
|
20
20
|
const utilities = require('./utilities-73df97e1.js');
|
|
21
21
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
22
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-89ba2ab0.js');
|
|
23
23
|
require('./sqm-portal-container-view-5fb2ad49.js');
|
|
24
24
|
|
|
25
25
|
const BigStat = class {
|
|
@@ -1508,8 +1508,8 @@ function LinkButtonView(props) {
|
|
|
1508
1508
|
index.h("style", { type: "text/css" },
|
|
1509
1509
|
styleString$1,
|
|
1510
1510
|
vanillaStyle),
|
|
1511
|
-
index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base" },
|
|
1512
|
-
index.h("a", {
|
|
1511
|
+
index.h("sl-button", { onClick: onClick, type: "primary", exportparts: "base: primarybutton-base" },
|
|
1512
|
+
index.h("a", { class: sheet$1.classes.Link, part: "sqm-link" }, buttonText))));
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
1515
|
const LinkButton = class {
|
|
@@ -14,9 +14,9 @@ function EmptyStateView(props) {
|
|
|
14
14
|
index.h("img", { style: { height: "100px", margin: "auto" }, src: emptyStateImage }),
|
|
15
15
|
index.h("sqm-titled-section", { style: { maxHeight: "400px" }, "label-margin": "xxx-small", "text-align": "center" },
|
|
16
16
|
index.h("sqm-text", { slot: "label" },
|
|
17
|
-
index.h("p",
|
|
17
|
+
index.h("p", null, emptyStateHeader)),
|
|
18
18
|
index.h("sqm-text", { slot: "content" },
|
|
19
|
-
index.h("p", {
|
|
19
|
+
index.h("p", { style: { color: "var(--sl-color-gray-500)" } }, emptyStateText)))));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const Empty = class {
|
|
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
|
-
const emailRegistrationView = require('./email-registration-view-
|
|
12
|
+
const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
13
13
|
require('./useRegistrationFormState-ad3190c9.js');
|
|
14
14
|
const useInstantAccessRegistration = require('./useInstantAccessRegistration-fe258c50.js');
|
|
15
15
|
|
|
@@ -1753,7 +1753,7 @@ const OtherRegionSlotView = (props) => {
|
|
|
1753
1753
|
};
|
|
1754
1754
|
const IndirectTaxNumberInput = ({ label, error, name, }) => {
|
|
1755
1755
|
var _a;
|
|
1756
|
-
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label
|
|
1756
|
+
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, label: label, disabled: states.loading || states.disabled, value: formState[name] }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a[name]) && {
|
|
1757
1757
|
class: classes.ErrorInput,
|
|
1758
1758
|
helpText: error,
|
|
1759
1759
|
}), { id: name, name: `/${name}` })));
|
|
@@ -1761,13 +1761,13 @@ const OtherRegionSlotView = (props) => {
|
|
|
1761
1761
|
const SpainFields = () => {
|
|
1762
1762
|
var _a, _b;
|
|
1763
1763
|
return (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1764
|
-
index.h("sl-select", Object.assign({ required: true, exportparts: "label: input-label
|
|
1764
|
+
index.h("sl-select", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, value: formState.subRegion, label: text.subRegion, disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
|
|
1765
1765
|
class: classes.ErrorInput,
|
|
1766
1766
|
helpText: formatErrorMessage(text.subRegion, text.error.fieldRequiredError),
|
|
1767
1767
|
}), { id: "subRegion", name: "/subRegion" }), props.data.esRegions.map((r) => (index.h("sl-menu-item", { value: r.regionCode }, r.displayName)))),
|
|
1768
1768
|
index.h(IndirectTaxNumberInput, { name: "indirectTaxNumber", label: getTaxFieldLabel("VAT"), error: getTaxFieldError("VAT") }),
|
|
1769
|
-
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label
|
|
1770
|
-
formState.hasSubRegionTaxNumber && (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label
|
|
1769
|
+
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label", checked: formState.hasSubRegionTaxNumber, "onSl-change": callbacks.onSpainToggle, disabled: states.disabled || states.isPartner }, text.isRegisteredSubRegionIncomeTax),
|
|
1770
|
+
formState.hasSubRegionTaxNumber && (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, label: text.subRegionTaxNumberLabel, disabled: states.loading || states.disabled, value: formState.subRegionTaxNumber }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.subRegionTaxNumber) && {
|
|
1771
1771
|
class: classes.ErrorInput,
|
|
1772
1772
|
helpText: formatErrorMessage(text.subRegionTaxNumberLabel, text.error.fieldRequiredError),
|
|
1773
1773
|
}), { id: "subRegionTaxNumber", name: "/subRegionTaxNumber" })))));
|
|
@@ -1777,14 +1777,14 @@ const OtherRegionSlotView = (props) => {
|
|
|
1777
1777
|
const { classes } = sheet$1;
|
|
1778
1778
|
const currentTaxType = (_a = INDIRECT_TAX_PROVINCES === null || INDIRECT_TAX_PROVINCES === void 0 ? void 0 : INDIRECT_TAX_PROVINCES.find((p) => p.regionCode === formState.province)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
1779
1779
|
return (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1780
|
-
index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label
|
|
1780
|
+
index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label", class: classes.Input, label: text.province, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("province", e) }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.province) && {
|
|
1781
1781
|
class: classes.ErrorInput,
|
|
1782
1782
|
helpText: formatErrorMessage(text.province, text.error.fieldRequiredError),
|
|
1783
1783
|
}), { id: "province", name: "/province" }), props.data.provinces.map((p) => (index.h("sl-menu-item", { value: p.regionCode }, p.displayName)))),
|
|
1784
1784
|
currentTaxType === "GST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("GST"), error: getTaxFieldError("GST"), name: "indirectTaxNumber" })),
|
|
1785
1785
|
currentTaxType === "HST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("HST"), error: getTaxFieldError("HST"), name: "indirectTaxNumber" })),
|
|
1786
1786
|
formState.province === "QUEBEC" && (index.h("div", { class: classes.ConditionalInputsContainer },
|
|
1787
|
-
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label
|
|
1787
|
+
index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label", "onSl-change": callbacks.onQstToggle, checked: formState.hasQst, disabled: states.isPartner || states.disabled }, text.isRegisteredQST),
|
|
1788
1788
|
formState.hasQst && (index.h(IndirectTaxNumberInput, { name: "qstNumber", label: text.qstNumber, error: formatErrorMessage(text.qstNumber, text.error.fieldRequiredError) }))))));
|
|
1789
1789
|
};
|
|
1790
1790
|
const getActiveForm = (selectedRegion) => {
|
|
@@ -1795,7 +1795,7 @@ const OtherRegionSlotView = (props) => {
|
|
|
1795
1795
|
case "ES":
|
|
1796
1796
|
return index.h(SpainFields, null);
|
|
1797
1797
|
default:
|
|
1798
|
-
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label
|
|
1798
|
+
return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, value: formState.indirectTaxNumber, label: getTaxFieldLabel(vatLabels[selectedRegion] || "GENERAL"), disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
|
|
1799
1799
|
class: classes.ErrorInput,
|
|
1800
1800
|
helpText: getTaxFieldError(vatLabels[selectedRegion] || "GENERAL"),
|
|
1801
1801
|
}), { id: "indirectTaxNumber", name: "/indirectTaxNumber" })));
|
|
@@ -1809,7 +1809,7 @@ const OtherRegionSlotView = (props) => {
|
|
|
1809
1809
|
vanillaStyle),
|
|
1810
1810
|
index.h("hr", { class: classes.HR }),
|
|
1811
1811
|
index.h("div", { class: classes.InputContainer },
|
|
1812
|
-
index.h("sl-select", Object.assign({ required: true, class: classes.Input, value: formState.selectedRegion, exportparts: "label: input-label
|
|
1812
|
+
index.h("sl-select", Object.assign({ required: true, class: classes.Input, value: formState.selectedRegion, exportparts: "label: input-label", label: text.selectedRegion, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("selectedRegion", e) }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.selectedRegion) && {
|
|
1813
1813
|
class: classes.ErrorInput,
|
|
1814
1814
|
helpText: formatErrorMessage(text.selectedRegion, text.error.fieldRequiredError),
|
|
1815
1815
|
}), { id: "selectedRegion", name: "/selectedRegion" }),
|
|
@@ -493,7 +493,7 @@ function PortalResetPasswordView(props) {
|
|
|
493
493
|
index.h("style", { type: "text/css" },
|
|
494
494
|
vanillaStyle,
|
|
495
495
|
styleString$1),
|
|
496
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
496
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/password", label: states.content.fieldLabel || "Password", required: true, disabled: ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.loading) || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), validationError: ({ value }) => {
|
|
497
497
|
if (!value) {
|
|
498
498
|
return "Cannot be empty";
|
|
499
499
|
}
|
|
@@ -36,7 +36,7 @@ function PortalForgotPasswordView(props) {
|
|
|
36
36
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
37
37
|
props.states.success && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
38
38
|
index.h("div", { part: "successalert-text" }, content.successAlertText))),
|
|
39
|
-
index.h("sl-input", { exportparts: "label: input-label
|
|
39
|
+
index.h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
40
40
|
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
41
41
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
|
|
42
42
|
index.h("div", { class: sheet.classes.SecondaryButton }, content.secondaryButton)))));
|
|
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
13
|
-
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-
|
|
13
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-ca5f6db9.js');
|
|
14
14
|
|
|
15
15
|
function usePortalForgotPassword(props) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g;
|
package/dist/cjs/{sqm-portal-profile-view-851a020f.js → sqm-portal-profile-view-d8697f23.js}
RENAMED
|
@@ -69,16 +69,16 @@ function PortalProfileView(props) {
|
|
|
69
69
|
error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
70
70
|
index.h("div", { part: "erroralert-text" }, error))),
|
|
71
71
|
index.h("div", { class: sheet.classes.NameInputContainer },
|
|
72
|
-
index.h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label
|
|
72
|
+
index.h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label", value: (_c = states.user) === null || _c === void 0 ? void 0 : _c.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, ((errors === null || errors === void 0 ? void 0 : errors.firstName) && (errors === null || errors === void 0 ? void 0 : errors.firstName.status) !== "valid"
|
|
73
73
|
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
74
74
|
: []), { id: "firstName", name: "firstName", error: (errors === null || errors === void 0 ? void 0 : errors.firstName) && (errors === null || errors === void 0 ? void 0 : errors.firstName.status) !== "valid"
|
|
75
75
|
? errors === null || errors === void 0 ? void 0 : errors.firstName.message : undefined })),
|
|
76
|
-
index.h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label
|
|
76
|
+
index.h("sl-input", Object.assign({ class: sheet.classes.NameInputStyle, exportparts: "label: input-label", value: (_d = states.user) === null || _d === void 0 ? void 0 : _d.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, ((errors === null || errors === void 0 ? void 0 : errors.lastName) && (errors === null || errors === void 0 ? void 0 : errors.lastName.status) !== "valid"
|
|
77
77
|
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
78
78
|
: []), { error: (errors === null || errors === void 0 ? void 0 : errors.lastName) && (errors === null || errors === void 0 ? void 0 : errors.lastName.status) !== "valid"
|
|
79
79
|
? errors === null || errors === void 0 ? void 0 : errors.lastName.message : undefined }))),
|
|
80
|
-
index.h("sl-input", { label: text.emailtext, value: (_e = states.user) === null || _e === void 0 ? void 0 : _e.email, exportparts: "label: input-label
|
|
81
|
-
states.showCountry && (index.h("sl-input", { label: text.countrytext, value: country, exportparts: "label: input-label
|
|
80
|
+
index.h("sl-input", { label: text.emailtext, value: (_e = states.user) === null || _e === void 0 ? void 0 : _e.email, exportparts: "label: input-label", disabled: true }),
|
|
81
|
+
states.showCountry && (index.h("sl-input", { label: text.countrytext, value: country, exportparts: "label: input-label", disabled: true })),
|
|
82
82
|
index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
|
|
83
83
|
callbacks.onSubmit(e);
|
|
84
84
|
}, submit: true }, text.submitChangeButtonText))));
|
|
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
13
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
13
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-d8697f23.js');
|
|
14
14
|
const utilities = require('./utilities-73df97e1.js');
|
|
15
15
|
|
|
16
16
|
const GET_USER = index_module.dist.gql `
|
|
@@ -57,7 +57,7 @@ function PortalRegistrationFormView(props) {
|
|
|
57
57
|
index.h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
58
58
|
index.h("div", { part: "erroralert-text" }, props.states.error)))),
|
|
59
59
|
content.formData,
|
|
60
|
-
!states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
60
|
+
!states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
|
|
61
61
|
if (!value) {
|
|
62
62
|
return content.requiredFieldErrorMessage;
|
|
63
63
|
}
|
|
@@ -76,7 +76,7 @@ function PortalRegistrationFormView(props) {
|
|
|
76
76
|
: [])))),
|
|
77
77
|
!states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": !states.enablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
78
78
|
content.passwordField,
|
|
79
|
-
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label
|
|
79
|
+
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
|
|
80
80
|
value: (_q = (_p = states.registrationFormState) === null || _p === void 0 ? void 0 : _p.initialData) === null || _q === void 0 ? void 0 : _q.confirmPassword,
|
|
81
81
|
}
|
|
82
82
|
: {}), (((_s = (_r = states.registrationFormState) === null || _r === void 0 ? void 0 : _r.validationErrors) === null || _s === void 0 ? void 0 : _s.confirmPassword) ? {
|
|
@@ -71,7 +71,7 @@ function PortalResetPasswordView(props) {
|
|
|
71
71
|
props.states.error && (index.h("sqm-form-message", { type: "error", class: sheet.classes.Banner, exportparts: "erroralert-icon" },
|
|
72
72
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
73
73
|
!states.reset && (index.h("sqm-password-field", { fieldLabel: states.content.passwordFieldLabel, demoData: states.passwordDemoData, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText })),
|
|
74
|
-
!states.reset && states.confirmPassword && (index.h("sl-input", { exportparts: "label: input-label
|
|
74
|
+
!states.reset && states.confirmPassword && (index.h("sl-input", { exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, disabled: states.loading, required: true })),
|
|
75
75
|
index.h("div", { class: sheet.classes.ButtonsContainer },
|
|
76
76
|
index.h("sl-button", { class: sheet.classes.ContinueButton, submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, states.reset
|
|
77
77
|
? states.content.continueButtonText
|
|
@@ -11,7 +11,7 @@ require('./mixins-fe9d4112.js');
|
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const utils = require('./utils-6847bc06.js');
|
|
13
13
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
14
|
-
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-
|
|
14
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-07a13210.js');
|
|
15
15
|
|
|
16
16
|
function usePortalResetPassword(props) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -24,7 +24,9 @@ const sheet = JSS.createStyleSheet(style);
|
|
|
24
24
|
const styleString = sheet.toString();
|
|
25
25
|
function PortalVerifyEmailView(props) {
|
|
26
26
|
const { states, data, callbacks, content } = props;
|
|
27
|
-
if (states.
|
|
27
|
+
if (states.loading)
|
|
28
|
+
return;
|
|
29
|
+
if (states.success) {
|
|
28
30
|
return (index.h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
|
|
29
31
|
index.h("style", { type: "text/css" },
|
|
30
32
|
vanillaStyle,
|