@saasquatch/mint-components 2.0.0-6 → 2.0.0-60

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.
Files changed (57) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +69 -28
  2. package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-7b95ae7a.js} +1 -0
  3. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +5 -13
  4. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +7 -6
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
  7. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -0
  8. package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
  9. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  10. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  11. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +7 -4
  12. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +4 -1
  13. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  14. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +9 -41
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -25
  17. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -1
  18. package/dist/esm/sqm-banking-info-form_10.entry.js +69 -28
  19. package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -0
  20. package/dist/esm/sqm-big-stat_46.entry.js +5 -13
  21. package/dist/esm/sqm-portal-google-registration-form.entry.js +7 -6
  22. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  23. package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
  24. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  25. package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-1a6bb4b4.js} +1 -1
  26. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  27. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  28. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  29. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  30. package/dist/mint-components/mint-components.esm.js +1 -1
  31. package/dist/mint-components/{p-ddf3c05e.js → p-1522a7d1.js} +1 -1
  32. package/dist/mint-components/{p-3ea29bac.system.entry.js → p-1ba34945.system.entry.js} +1 -1
  33. package/dist/mint-components/{p-a0730259.entry.js → p-1ce5a30d.entry.js} +6 -6
  34. package/dist/mint-components/{p-38b92bc5.entry.js → p-38263521.entry.js} +1 -1
  35. package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
  36. package/dist/mint-components/{p-13e66b37.system.entry.js → p-5c97c43e.system.entry.js} +1 -1
  37. package/dist/mint-components/{p-ec25aaa7.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
  38. package/dist/mint-components/p-71a6e549.system.entry.js +1 -0
  39. package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
  40. package/dist/mint-components/p-967a9040.system.js +1 -1
  41. package/dist/mint-components/{p-e110688b.entry.js → p-9df7c27f.entry.js} +1 -1
  42. package/dist/mint-components/{p-be88596c.system.js → p-b21c5311.system.js} +1 -1
  43. package/dist/mint-components/p-c2ac14b7.entry.js +1 -0
  44. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -0
  45. package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
  46. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
  47. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  48. package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
  49. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  50. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -12
  51. package/dist/types/components.d.ts +16 -32
  52. package/docs/docs.docx +0 -0
  53. package/docs/raisins.json +1 -1
  54. package/grapesjs/grapesjs.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
  57. package/dist/mint-components/p-ea063d99.entry.js +0 -1
@@ -3713,9 +3713,6 @@ const style$5 = {
3713
3713
  backgroundColor: "var(--sl-color-red-100)",
3714
3714
  borderTop: "none",
3715
3715
  },
3716
- "& sl-icon::part(base)": {
3717
- color: "var(--sl-color-danger-500)",
3718
- },
3719
3716
  },
3720
3717
  WarningAlertContainer: {
3721
3718
  "&::part(base)": {
@@ -3723,9 +3720,6 @@ const style$5 = {
3723
3720
  borderTop: "none",
3724
3721
  maxWidth: "600px",
3725
3722
  },
3726
- "& sl-icon::part(base)": {
3727
- color: "var(--sl-color-warning-500)",
3728
- },
3729
3723
  },
3730
3724
  WarningHoldAlertContainer: {
3731
3725
  marginLeft: "-20px",
@@ -3733,9 +3727,10 @@ const style$5 = {
3733
3727
  maxWidth: "850px",
3734
3728
  border: "none",
3735
3729
  backgroundColor: "transparent",
3730
+ color: "var(--sqm-text)",
3736
3731
  },
3737
3732
  "& sl-icon::part(base)": {
3738
- color: "var(--sl-color-warning-500)",
3733
+ color: "var(--sqm-warning-color-icon)",
3739
3734
  },
3740
3735
  },
3741
3736
  ErrorHoldAlertContainer: {
@@ -3744,9 +3739,10 @@ const style$5 = {
3744
3739
  maxWidth: "850px",
3745
3740
  border: "none",
3746
3741
  backgroundColor: "transparent",
3742
+ color: "var(--sqm-text)",
3747
3743
  },
3748
3744
  "& sl-icon::part(base)": {
3749
- color: "var(--sl-color-danger-500)",
3745
+ color: "var(--sqm-danger-color-icon)",
3750
3746
  },
3751
3747
  },
3752
3748
  ExpiringSoonAlertContainer: {
@@ -3769,7 +3765,7 @@ const style$5 = {
3769
3765
  display: "flex",
3770
3766
  gap: "var(--sl-spacing-x-small)",
3771
3767
  "&::part(base)": {
3772
- color: "var(--sl-color-green-500)",
3768
+ color: "var(--sqm-text)",
3773
3769
  },
3774
3770
  },
3775
3771
  IndirectTaxPreviewDetails: {
@@ -3778,12 +3774,13 @@ const style$5 = {
3778
3774
  flexDirection: "column",
3779
3775
  lineHeight: "var(--sl-spacing-medium)",
3780
3776
  fontSize: "var(--sl-font-size-small)",
3777
+ color: "var(--sqm-text-subdued)",
3781
3778
  },
3782
3779
  InvoiceTableContainer: {
3783
3780
  marginTop: "var(--sl-spacing-medium)",
3784
3781
  },
3785
3782
  NotRegisteredIndirectTaxText: {
3786
- color: "var(--sl-color-gray-500)",
3783
+ color: "var(--sqm-text-subdued)",
3787
3784
  },
3788
3785
  TaxDocumentsContainer: {
3789
3786
  marginTop: "var(--sl-spacing-xx-large)",
@@ -3804,7 +3801,6 @@ const style$5 = {
3804
3801
  "& p": {
3805
3802
  margin: "0",
3806
3803
  paddingTop: "2px",
3807
- color: "var(--sl-color-gray-500)",
3808
3804
  },
3809
3805
  },
3810
3806
  StatusAlert: {
@@ -3839,7 +3835,7 @@ const style$5 = {
3839
3835
  },
3840
3836
  TaxDocSubtext: {
3841
3837
  margin: "0",
3842
- color: "var(--sl-color-neutral-500)",
3838
+ color: "var(--sqm-text-subdued)",
3843
3839
  lineHeight: "var(--sl-spacing-medium)",
3844
3840
  fontSize: "var(--sl-font-size-small)",
3845
3841
  marginLeft: "1px",
@@ -3860,13 +3856,13 @@ const style$5 = {
3860
3856
  gap: "6px",
3861
3857
  },
3862
3858
  DescriptionText: {
3863
- color: "var(--sl-color-gray-500)",
3859
+ color: "var(--sqm-text-subdued)",
3864
3860
  fontSize: "var(--sl-font-size-x-small)",
3865
3861
  marginBottom: "none",
3866
3862
  maxWidth: "492px",
3867
3863
  },
3868
3864
  PageDescriptionText: {
3869
- color: "var(--sl-color-neutral-500)",
3865
+ color: "var(--sqm-text-subdued)",
3870
3866
  fontSize: "var(--sl-font-size-medium)",
3871
3867
  marginTop: "0",
3872
3868
  },
@@ -3897,9 +3893,53 @@ const style$5 = {
3897
3893
  },
3898
3894
  },
3899
3895
  DialogButton: { margin: "auto", width: "100%" },
3896
+ SuccessBadge: {
3897
+ "&::part(base)": {
3898
+ textAlign: "center",
3899
+ whiteSpace: "pre-line",
3900
+ background: "var(--sqm-success-color-icon)",
3901
+ },
3902
+ },
3903
+ WarningBadge: {
3904
+ "&::part(base)": {
3905
+ textAlign: "center",
3906
+ whiteSpace: "pre-line",
3907
+ background: "var(--sqm-warning-color-icon)",
3908
+ },
3909
+ },
3910
+ ErrorBadge: {
3911
+ "&::part(base)": {
3912
+ textAlign: "center",
3913
+ whiteSpace: "pre-line",
3914
+ background: "var(--sqm-danger-color-icon)",
3915
+ },
3916
+ },
3917
+ SubduedText: {
3918
+ color: "var(--sqm-text-subdued)",
3919
+ },
3900
3920
  };
3901
3921
  const sheet$4 = JSS.createStyleSheet(style$5);
3902
3922
  const styleString$4 = sheet$4.toString();
3923
+ const vanillaStyle$3 = `
3924
+ :host{
3925
+ display: block;
3926
+ }
3927
+
3928
+ sl-button[type="secondary"]::part(base) {
3929
+ font-family: var(--sqm-primary-font);
3930
+ background-color: var(--sqm-secondary-button-background);
3931
+ color: var(--sqm-secondary-button-color);
3932
+ border-color: var(--sqm-secondary-button-color-border);
3933
+ border-radius: var(--sqm-secondary-button-radius);
3934
+ }
3935
+
3936
+ sl-button[type="secondary"]::part(base):hover {
3937
+ background-color: var(--sqm-secondary-button-background-hover);
3938
+ color: var(--sqm-secondary-button-color-hover);
3939
+ border-color: var(--sqm-secondary-button-border-color-hover);
3940
+ }
3941
+
3942
+ `;
3903
3943
  const TaxAndCashDashboardView = (props) => {
3904
3944
  var _a;
3905
3945
  const { states, text, callbacks, slots } = props;
@@ -3985,7 +4025,7 @@ const TaxAndCashDashboardView = (props) => {
3985
4025
  }, {
3986
4026
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3987
4027
  }),
3988
- alertType: "error",
4028
+ alertType: "danger",
3989
4029
  icon: "exclamation-octagon",
3990
4030
  class: sheet$4.classes.ErrorHoldAlertContainer,
3991
4031
  };
@@ -4023,16 +4063,16 @@ const TaxAndCashDashboardView = (props) => {
4023
4063
  }
4024
4064
  const statusMap = {
4025
4065
  NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4026
- index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
4027
- index.h("p", null, global.intl.formatMessage({
4066
+ index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
4067
+ index.h("p", { class: sheet$4.classes.SubduedText }, global.intl.formatMessage({
4028
4068
  id: `badgeTextAwaitingReview`,
4029
4069
  defaultMessage: text.badgeTextAwaitingReview,
4030
4070
  }, {
4031
4071
  dateSubmitted: states.dateSubmitted,
4032
4072
  })))),
4033
4073
  ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4034
- index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
4035
- index.h("p", null, global.intl.formatMessage({
4074
+ index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
4075
+ index.h("p", { class: sheet$4.classes.SubduedText }, global.intl.formatMessage({
4036
4076
  id: `badgeTextSubmittedOn`,
4037
4077
  defaultMessage: states.documentType === "W9"
4038
4078
  ? text.badgeTextSubmittedOn
@@ -4041,8 +4081,8 @@ const TaxAndCashDashboardView = (props) => {
4041
4081
  dateSubmitted: states.dateSubmitted,
4042
4082
  })))),
4043
4083
  INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4044
- index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
4045
- index.h("p", null, text.invalidForm))),
4084
+ index.h("sl-badge", { class: sheet$4.classes.ErrorBadge, type: "danger", pill: true }, text.statusTextNotActive),
4085
+ index.h("p", { class: sheet$4.classes.SubduedText }, text.invalidForm))),
4046
4086
  undefined: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4047
4087
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
4048
4088
  index.h("p", null, global.intl.formatMessage({
@@ -4104,9 +4144,11 @@ const TaxAndCashDashboardView = (props) => {
4104
4144
  const alertInfo = getAlert(states.payoutStatus);
4105
4145
  return (index.h("div", null,
4106
4146
  index.h("div", null,
4107
- index.h("style", { type: "text/css" }, styleString$4),
4147
+ index.h("style", { type: "text/css" },
4148
+ styleString$4,
4149
+ vanillaStyle$3),
4108
4150
  states.loadingError && (index.h("div", null,
4109
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
4151
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
4110
4152
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4111
4153
  index.h("strong", null, text.error.loadingErrorAlertHeader),
4112
4154
  index.h("br", null),
@@ -4126,7 +4168,7 @@ const TaxAndCashDashboardView = (props) => {
4126
4168
  }, {
4127
4169
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4128
4170
  }))),
4129
- alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
4171
+ alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
4130
4172
  index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
4131
4173
  index.h("strong", null, alertInfo.header),
4132
4174
  index.h("p", { style: { margin: "0" } }, alertInfo.description),
@@ -4142,7 +4184,7 @@ const TaxAndCashDashboardView = (props) => {
4142
4184
  index.h("div", { class: sheet$4.classes.BankingInformationContainer },
4143
4185
  slots.payoutDetailsCardSlot,
4144
4186
  !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4145
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4187
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, exportparts: "base: secondarybutton-base", type: "secondary", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4146
4188
  (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4147
4189
  index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4148
4190
  index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
@@ -4693,7 +4735,6 @@ const TaxAndCashDashboard = class {
4693
4735
  }
4694
4736
  };
4695
4737
  function useDemoTaxAndCashDashboard(props) {
4696
- console.log("dashboard", { props });
4697
4738
  // @ts-ignore
4698
4739
  return cjs.cjs({
4699
4740
  states: {
@@ -5786,7 +5827,7 @@ const style$6 = {
5786
5827
  };
5787
5828
  const sheet$5 = JSS.createStyleSheet(style$6);
5788
5829
  const styleString$5 = sheet$5.toString();
5789
- const vanillaStyle$3 = `
5830
+ const vanillaStyle$4 = `
5790
5831
  :host{
5791
5832
  display: block;
5792
5833
  }
@@ -5994,7 +6035,7 @@ const UserInfoFormView = (props) => {
5994
6035
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
5995
6036
  index.h("style", { type: "text/css" },
5996
6037
  styleString$5,
5997
- vanillaStyle$3),
6038
+ vanillaStyle$4),
5998
6039
  states.loadingError && (index.h("div", null,
5999
6040
  index.h("sqm-form-message", { type: "error" },
6000
6041
  index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
@@ -49,6 +49,7 @@ function BaseRegistrationFormView(props) {
49
49
  index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
50
50
  states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
51
51
  index.h("div", { part: "erroralert-text" }, props.states.error))),
52
+ content.formData,
52
53
  index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
53
54
  if (!value) {
54
55
  return content.requiredFieldErrorMessage;
@@ -3186,18 +3186,10 @@ const PayoutStatusAlert = class {
3186
3186
  this.errorDescription = "There was an error with determining your payout status.";
3187
3187
  /**
3188
3188
  * @undocumented
3189
- * @componentState { "title": "Information Required", "props": { "demoData": { "states": { "status": "INFORMATION_REQUIRED" } } }, "uiGroup": "Alert States" }
3190
- * @componentState { "title": "Over W9 Threshold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "CASH_ONLY_DEFER_W9" } } }, "uiGroup": "Alert States" }
3191
- * @componentState { "title": "Over W9 Threshold - Hold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "NONE" } } }, "uiGroup": "Alert States" }
3192
- * @componentState { "title": "Verification Required", "props": { "demoData": { "states": { "status": "VERIFICATION:REQUIRED" } } }, "uiGroup": "Alert States" }
3193
- * @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
3194
- * @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
3195
- * @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
3196
- * @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
3197
- * @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
3198
- * @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
3199
- * @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
3200
- * @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
3189
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3190
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3191
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
3192
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
3201
3193
  */
3202
3194
  this.stateController = "{}";
3203
3195
  domContextHooks_module.h$1(this);
@@ -3231,7 +3223,7 @@ function useDemoPayoutStatusAlert(props) {
3231
3223
  onTermsClick: () => { },
3232
3224
  onClick: () => console.log("show"),
3233
3225
  },
3234
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
3226
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
3235
3227
  }
3236
3228
 
3237
3229
  const GET_USER$1 = index_module.dist.gql `
@@ -11,7 +11,7 @@ const JSS = require('./JSS-8503a151.js');
11
11
  require('./mixins-4761d472.js');
12
12
  require('./sqm-text-span-view-7a61ae4c.js');
13
13
  const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
14
- const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8847804c.js');
14
+ const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
15
15
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
16
16
  require('./AsYouType-6788393a.js');
17
17
  const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
@@ -85,9 +85,12 @@ function usePortalGoogleRegistrationForm(props) {
85
85
  let formData = {};
86
86
  let errorMessage = null;
87
87
  formControls.forEach((control) => {
88
- if (!control.name || control.name !== "/email")
88
+ if (!control.name)
89
89
  return;
90
90
  jsonpointer.jsonpointer.set(formData, control.name, control.value);
91
+ // only validate email field
92
+ if (control.name !== "/email")
93
+ return;
91
94
  if (control.required && !control.value)
92
95
  errorMessage = props.requiredFieldErrorMessage;
93
96
  if (typeof control.validationError === "function") {
@@ -325,9 +328,7 @@ const PortalGoogleRegistrationForm = class {
325
328
  ...states,
326
329
  emailDisabled: true,
327
330
  hidePasswords: showRegistrationForm.mode === "google",
328
- }, callbacks: callbacks, content: {
329
- ...content,
330
- }, refs: refs }));
331
+ }, callbacks: callbacks, content: content, refs: refs }));
331
332
  }
332
333
  };
333
334
  function useRegisterDemo(props) {
@@ -363,7 +364,7 @@ function useGoogleDemo(props) {
363
364
  mode: "base",
364
365
  });
365
366
  return cjs.cjs({
366
- emailValidationError: true,
367
+ emailValidationError: false,
367
368
  handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
368
369
  showRegistrationForm,
369
370
  handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
@@ -26,7 +26,7 @@ const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-de90ef03
26
26
  const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
27
27
  const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
28
28
  const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
29
- const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8847804c.js');
29
+ const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-7b95ae7a.js');
30
30
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
31
31
  const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
32
32
  require('./utilities-9a0c5e91.js');
@@ -1283,7 +1283,7 @@ const TaxAndCashMonolith = class {
1283
1283
  case "/4":
1284
1284
  return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1285
1285
  case "/dashboard":
1286
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1286
+ return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1287
1287
  case "/error":
1288
1288
  return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: global.intl.formatMessage({
1289
1289
  id: "loadingErrorAlertDescription",
@@ -46,6 +46,7 @@ export function BaseRegistrationFormView(props) {
46
46
  h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
47
47
  states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
48
48
  h("div", { part: "erroralert-text" }, props.states.error))),
49
+ content.formData,
49
50
  h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
50
51
  if (!value) {
51
52
  return content.requiredFieldErrorMessage;
@@ -122,13 +122,13 @@ export class Hero {
122
122
  "optional": true,
123
123
  "docs": {
124
124
  "tags": [{
125
- "text": "Content background",
125
+ "text": "Splash image",
126
126
  "name": "uiName"
127
127
  }, {
128
128
  "text": "Background",
129
129
  "name": "uiWidget"
130
130
  }],
131
- "text": "Content background color or image (for use in the left column)"
131
+ "text": "Splash image or background color (for use in the left column)"
132
132
  },
133
133
  "attribute": "background",
134
134
  "reflect": false
@@ -172,13 +172,13 @@ export class Hero {
172
172
  "optional": true,
173
173
  "docs": {
174
174
  "tags": [{
175
- "text": "Splash image",
175
+ "text": "Content background",
176
176
  "name": "uiName"
177
177
  }, {
178
178
  "text": "Background",
179
179
  "name": "uiWidget"
180
180
  }],
181
- "text": "Splash image or background color (for use in the right column)"
181
+ "text": "Content background color or image (for use in the right column)"
182
182
  },
183
183
  "attribute": "secondary-background",
184
184
  "reflect": false
@@ -6,8 +6,8 @@ import { HeroImageView } from "./sqm-hero-image-view";
6
6
  * @uiName Hero Image
7
7
  * @validParents ["sqm-portal-container","sqm-brand", "div"]
8
8
  * @exampleGroup Common Components
9
- * @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right" background-color="#F9F9F9"></sqm-hero-image>
10
- * @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" background-color="#F9F9F9" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
9
+ * @example Two Column Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right"></sqm-hero-image>
10
+ * @example Overlay Hero Image - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
11
11
  */
12
12
  export class HeroImage {
13
13
  constructor() {
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
4
4
  import { PortalFooterView } from "./sqm-portal-footer-view";
5
5
  /**
6
6
  * @uiName Footer
7
- * @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame"]
7
+ * @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame", "sqm-referred-registration"]
8
8
  */
9
9
  export class PortalFooter {
10
10
  constructor() {
@@ -7,6 +7,11 @@ import { PortalRegistrationFormView, } from "../sqm-portal-registration-form/sqm
7
7
  import { usePortalRegistrationForm } from "../sqm-portal-registration-form/usePortalRegistrationForm";
8
8
  import { usePortalGoogleRegistrationForm } from "./usePortalGoogleRegistrationForm";
9
9
  import { createStyleSheet } from "../../styling/JSS";
10
+ /**
11
+ * @uiName Google Registration
12
+ * @canvasRenderer always-replace
13
+ * @slots [{"name":"formData","title":"Additional Fields"},{"name":"terms","title":"Terms And Conditions Fields"}]
14
+ */
10
15
  export class PortalGoogleRegistrationForm {
11
16
  constructor() {
12
17
  this.ignored = true;
@@ -194,9 +199,7 @@ export class PortalGoogleRegistrationForm {
194
199
  ...states,
195
200
  emailDisabled: true,
196
201
  hidePasswords: showRegistrationForm.mode === "google",
197
- }, callbacks: callbacks, content: {
198
- ...content,
199
- }, refs: refs }));
202
+ }, callbacks: callbacks, content: content, refs: refs }));
200
203
  }
201
204
  static get is() { return "sqm-portal-google-registration-form"; }
202
205
  static get encapsulation() { return "shadow"; }
@@ -871,7 +874,7 @@ function useGoogleDemo(props) {
871
874
  mode: "base",
872
875
  });
873
876
  return deepmerge({
874
- emailValidationError: true,
877
+ emailValidationError: false,
875
878
  handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
876
879
  showRegistrationForm,
877
880
  handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
@@ -13,9 +13,12 @@ export function usePortalGoogleRegistrationForm(props) {
13
13
  let formData = {};
14
14
  let errorMessage = null;
15
15
  formControls.forEach((control) => {
16
- if (!control.name || control.name !== "/email")
16
+ if (!control.name)
17
17
  return;
18
18
  jsonpointer.set(formData, control.name, control.value);
19
+ // only validate email field
20
+ if (control.name !== "/email")
21
+ return;
19
22
  if (control.required && !control.value)
20
23
  errorMessage = props.requiredFieldErrorMessage;
21
24
  if (typeof control.validationError === "function") {
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
4
4
  import { PortalSectionView } from "./sqm-portal-section-view";
5
5
  /**
6
6
  * @uiName Titled Section
7
- * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card"]
7
+ * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card", "sqm-referred-registration"]
8
8
  * @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span", "sqm-user-name"]
9
9
  * @slots [{"name":"label", "title":"Label"},{"name":"content", "title":"Content"}]
10
10
  * @exampleGroup Layout
@@ -112,18 +112,10 @@ export class PayoutStatusAlert {
112
112
  this.errorDescription = "There was an error with determining your payout status.";
113
113
  /**
114
114
  * @undocumented
115
- * @componentState { "title": "Information Required", "props": { "demoData": { "states": { "status": "INFORMATION_REQUIRED" } } }, "uiGroup": "Alert States" }
116
- * @componentState { "title": "Over W9 Threshold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "CASH_ONLY_DEFER_W9" } } }, "uiGroup": "Alert States" }
117
- * @componentState { "title": "Over W9 Threshold - Hold", "props": { "demoData": { "states": { "status": "OVER_W9_THRESHOLD", "enforceUsTaxComplianceOption": "NONE" } } }, "uiGroup": "Alert States" }
118
- * @componentState { "title": "Verification Required", "props": { "demoData": { "states": { "status": "VERIFICATION:REQUIRED" } } }, "uiGroup": "Alert States" }
119
- * @componentState { "title": "Verification Internal", "props": { "demoData": { "states": { "status": "VERIFICATION:INTERNAL" } } }, "uiGroup": "Alert States" }
120
- * @componentState { "title": "Verification Review", "props": { "demoData": { "states": { "status": "VERIFICATION:REVIEW" } } }, "uiGroup": "Alert States" }
121
- * @componentState { "title": "Verification Failed", "props": { "demoData": { "states": { "status": "VERIFICATION:FAILED" } } }, "uiGroup": "Alert States" }
122
- * @componentState { "title": "Account Review", "props": { "demoData": { "states": { "status": "ACCOUNT_REVIEW" } } }, "uiGroup": "Alert States" }
123
- * @componentState { "title": "Hold", "props": { "demoData": { "states": { "status": "HOLD" } } }, "uiGroup": "Alert States" }
124
- * @componentState { "title": "Done - No Alert", "props": { "demoData": { "states": { "status": "DONE" } } }, "uiGroup": "Alert States" }
125
- * @componentState { "title": "Error State", "props": { "demoData": { "states": { "error": true } } }, "uiGroup": "Alert States" }
126
- * @componentState { "title": "Loading State", "props": { "demoData": { "states": { "loading": true } } }, "uiGroup": "Alert States" }
115
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
116
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
117
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
118
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
127
119
  */
128
120
  this.stateController = "{}";
129
121
  withHooks(this);
@@ -660,40 +652,16 @@ export class PayoutStatusAlert {
660
652
  "text": undefined,
661
653
  "name": "undocumented"
662
654
  }, {
663
- "text": "{ \"title\": \"Information Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } } }, \"uiGroup\": \"Alert States\" }",
655
+ "text": "{ \"title\": \"Payout Info Required\", \"props\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
664
656
  "name": "componentState"
665
657
  }, {
666
- "text": "{ \"title\": \"Over W9 Threshold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"CASH_ONLY_DEFER_W9\" } } }, \"uiGroup\": \"Alert States\" }",
658
+ "text": "{ \"title\": \"Verification Required\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
667
659
  "name": "componentState"
668
660
  }, {
669
- "text": "{ \"title\": \"Over W9 Threshold - Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"OVER_W9_THRESHOLD\", \"enforceUsTaxComplianceOption\": \"NONE\" } } }, \"uiGroup\": \"Alert States\" }",
661
+ "text": "{ \"title\": \"Identity Verification\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
670
662
  "name": "componentState"
671
663
  }, {
672
- "text": "{ \"title\": \"Verification Required\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } } }, \"uiGroup\": \"Alert States\" }",
673
- "name": "componentState"
674
- }, {
675
- "text": "{ \"title\": \"Verification Internal\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:INTERNAL\" } } }, \"uiGroup\": \"Alert States\" }",
676
- "name": "componentState"
677
- }, {
678
- "text": "{ \"title\": \"Verification Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } } }, \"uiGroup\": \"Alert States\" }",
679
- "name": "componentState"
680
- }, {
681
- "text": "{ \"title\": \"Verification Failed\", \"props\": { \"demoData\": { \"states\": { \"status\": \"VERIFICATION:FAILED\" } } }, \"uiGroup\": \"Alert States\" }",
682
- "name": "componentState"
683
- }, {
684
- "text": "{ \"title\": \"Account Review\", \"props\": { \"demoData\": { \"states\": { \"status\": \"ACCOUNT_REVIEW\" } } }, \"uiGroup\": \"Alert States\" }",
685
- "name": "componentState"
686
- }, {
687
- "text": "{ \"title\": \"Hold\", \"props\": { \"demoData\": { \"states\": { \"status\": \"HOLD\" } } }, \"uiGroup\": \"Alert States\" }",
688
- "name": "componentState"
689
- }, {
690
- "text": "{ \"title\": \"Done - No Alert\", \"props\": { \"demoData\": { \"states\": { \"status\": \"DONE\" } } }, \"uiGroup\": \"Alert States\" }",
691
- "name": "componentState"
692
- }, {
693
- "text": "{ \"title\": \"Error State\", \"props\": { \"demoData\": { \"states\": { \"error\": true } } }, \"uiGroup\": \"Alert States\" }",
694
- "name": "componentState"
695
- }, {
696
- "text": "{ \"title\": \"Loading State\", \"props\": { \"demoData\": { \"states\": { \"loading\": true } } }, \"uiGroup\": \"Alert States\" }",
664
+ "text": "{ \"title\": \"Account Hold\", \"props\": { \"states\": { \"status\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
697
665
  "name": "componentState"
698
666
  }],
699
667
  "text": ""
@@ -752,5 +720,5 @@ function useDemoPayoutStatusAlert(props) {
752
720
  onTermsClick: () => { },
753
721
  onClick: () => console.log("show"),
754
722
  },
755
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
723
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
756
724
  }
@@ -1125,7 +1125,7 @@ export class TaxAndCashMonolith {
1125
1125
  case "/4":
1126
1126
  return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1127
1127
  case "/dashboard":
1128
- return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
1128
+ return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
1129
1129
  case "/error":
1130
1130
  return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
1131
1131
  id: "loadingErrorAlertDescription",