@saasquatch/mint-components 2.1.10-0 → 2.1.10-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/cjs/{ShadowViewAddon-a26deae6.js → ShadowViewAddon-c97e80de.js} +422 -19
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +1 -27
  5. package/dist/cjs/sqm-big-stat_45.cjs.entry.js +264 -36
  6. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  7. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  9. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  10. package/dist/cjs/{sqm-portal-email-verification-view-c81fe7f1.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
  11. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  12. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
  13. package/dist/cjs/{sqm-portal-profile-view-639337e3.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
  14. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-registration-form-view-020f661c.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  16. package/dist/cjs/{sqm-portal-reset-password-view-6b1acd90.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  17. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
  18. package/dist/cjs/{sqm-portal-verify-email-view-424e406a.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
  19. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  20. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  21. package/dist/cjs/sqm-stencilbook.cjs.entry.js +168 -25
  22. package/dist/cjs/{sqm-text-span-view-f274fdf2.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  23. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  24. package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -0
  25. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  26. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  27. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  28. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  29. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  30. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  31. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  32. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  33. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  34. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  35. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -19
  36. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +0 -50
  37. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -59
  38. package/dist/esm/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-33f1a8f7.js} +424 -22
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/mint-components.js +1 -1
  41. package/dist/esm/sqm-banking-info-form_10.entry.js +1 -27
  42. package/dist/esm/sqm-big-stat_45.entry.js +264 -36
  43. package/dist/esm/sqm-code-verification.entry.js +1 -1
  44. package/dist/esm/sqm-email-verification.entry.js +1 -1
  45. package/dist/esm/sqm-empty_4.entry.js +1 -1
  46. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  47. package/dist/esm/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  48. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  49. package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
  50. package/dist/esm/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  51. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  52. package/dist/esm/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  53. package/dist/esm/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  54. package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
  55. package/dist/esm/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  56. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  57. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  58. package/dist/esm/sqm-stencilbook.entry.js +168 -25
  59. package/dist/esm/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-72f43dff.js} +1 -1
  60. package/dist/esm/sqm-text-span.entry.js +1 -1
  61. package/dist/esm-es5/ShadowViewAddon-33f1a8f7.js +1 -0
  62. package/dist/esm-es5/loader.js +1 -1
  63. package/dist/esm-es5/mint-components.js +1 -1
  64. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  65. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
  66. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  67. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  68. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  69. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  70. package/dist/esm-es5/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  71. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  72. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  73. package/dist/esm-es5/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  74. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  75. package/dist/esm-es5/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  76. package/dist/esm-es5/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  77. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  78. package/dist/esm-es5/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  79. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  80. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  81. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  82. package/dist/esm-es5/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-72f43dff.js} +1 -1
  83. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  84. package/dist/mint-components/mint-components.esm.js +1 -1
  85. package/dist/mint-components/{p-ab0ea688.system.entry.js → p-00b235c5.system.entry.js} +1 -1
  86. package/dist/mint-components/p-08930b83.js +499 -0
  87. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  88. package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
  89. package/dist/mint-components/{p-25558a33.entry.js → p-13292317.entry.js} +1 -1
  90. package/dist/mint-components/{p-d65991d0.entry.js → p-13d1b10d.entry.js} +1 -1
  91. package/dist/mint-components/{p-d4570314.entry.js → p-1d92c169.entry.js} +1 -1
  92. package/dist/mint-components/{p-7161e1a6.js → p-2668335b.js} +1 -1
  93. package/dist/mint-components/{p-6e512063.entry.js → p-3af3e2c1.entry.js} +1 -1
  94. package/dist/mint-components/{p-5ff7b000.entry.js → p-40bad95a.entry.js} +1 -1
  95. package/dist/mint-components/{p-f35d856a.system.js → p-43c31fd5.system.js} +1 -1
  96. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  97. package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
  98. package/dist/mint-components/{p-dac20392.system.js → p-686dd5eb.system.js} +1 -1
  99. package/dist/mint-components/{p-7b909aa5.system.js → p-7562cd98.system.js} +1 -1
  100. package/dist/mint-components/p-76271ec4.entry.js +9 -0
  101. package/dist/mint-components/p-78b40f71.system.js +1 -0
  102. package/dist/mint-components/{p-cb0a5990.entry.js → p-7939e4af.entry.js} +1 -1
  103. package/dist/mint-components/{p-e6ace3ab.js → p-832aea99.js} +1 -1
  104. package/dist/mint-components/{p-6640bbd6.entry.js → p-8784539d.entry.js} +21 -21
  105. package/dist/mint-components/{p-b9f57e84.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-fbe00c97.system.entry.js → p-892797eb.system.entry.js} +1 -1
  107. package/dist/mint-components/{p-d997001a.js → p-8962e023.js} +1 -1
  108. package/dist/mint-components/{p-dd368927.system.entry.js → p-9390586b.system.entry.js} +1 -1
  109. package/dist/mint-components/{p-3c46b4dd.system.js → p-a4825ec2.system.js} +1 -1
  110. package/dist/mint-components/{p-058aefe1.entry.js → p-af407cce.entry.js} +1 -1
  111. package/dist/mint-components/{p-56ca7e3c.js → p-b3ad957c.js} +1 -1
  112. package/dist/mint-components/{p-70570e4d.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
  113. package/dist/mint-components/{p-c67f8558.system.entry.js → p-bba16a46.system.entry.js} +1 -1
  114. package/dist/mint-components/{p-669d52c4.js → p-bee4af5d.js} +1 -1
  115. package/dist/mint-components/p-c3c8d4ee.system.entry.js +1 -0
  116. package/dist/mint-components/{p-cabf6326.js → p-c813ec64.js} +1 -1
  117. package/dist/mint-components/p-ca098be1.system.js +1 -1
  118. package/dist/mint-components/{p-18133026.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  119. package/dist/mint-components/{p-3687d433.entry.js → p-d4f332a7.entry.js} +1 -1
  120. package/dist/mint-components/{p-692e14c5.system.js → p-d55c50af.system.js} +1 -1
  121. package/dist/mint-components/p-dd12c32a.system.entry.js +1 -0
  122. package/dist/mint-components/p-e30abc44.js +1 -0
  123. package/dist/mint-components/{p-fb5c9802.entry.js → p-e506bf7f.entry.js} +1 -1
  124. package/dist/mint-components/{p-aefc6c4f.system.entry.js → p-e9485160.system.entry.js} +1 -1
  125. package/dist/mint-components/{p-f0baeed0.entry.js → p-f6528f8a.entry.js} +1 -1
  126. package/dist/mint-components/{p-5141769d.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
  127. package/dist/mint-components/{p-e4f17c21.system.js → p-f8026ed6.system.js} +1 -1
  128. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  129. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  130. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  131. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  132. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  133. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -6
  134. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -8
  135. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +0 -2
  136. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -10
  137. package/dist/types/components.d.ts +349 -38
  138. package/docs/docs.docx +0 -0
  139. package/docs/raisins.json +1 -1
  140. package/grapesjs/grapesjs.js +1 -1
  141. package/package.json +2 -2
  142. package/dist/esm-es5/ShadowViewAddon-47f1e579.js +0 -1
  143. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  144. package/dist/mint-components/p-0614dcbc.entry.js +0 -9
  145. package/dist/mint-components/p-217dedde.js +0 -463
  146. package/dist/mint-components/p-55676213.entry.js +0 -1
  147. package/dist/mint-components/p-57ac2160.system.entry.js +0 -1
  148. package/dist/mint-components/p-abc28aeb.system.entry.js +0 -1
  149. package/dist/mint-components/p-b699f76e.system.js +0 -1
  150. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  151. package/dist/mint-components/p-bf545082.system.entry.js +0 -1
  152. package/dist/mint-components/p-ce050888.system.js +0 -1
  153. package/dist/mint-components/p-e3497e0e.system.entry.js +0 -1
  154. package/dist/types/global/android.d.ts +0 -7
  155. package/dist/types/global/demo.d.ts +0 -2
  156. package/dist/types/stories/features.d.ts +0 -4
  157. package/dist/types/stories/templates.d.ts +0 -4
@@ -1,16 +1,15 @@
1
- import { useEngagementMedium, useMutation, useParentValue, useProgramId, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
- import { useState } from "@saasquatch/universal-hooks";
1
+ import { useEngagementMedium, useLazyQuery, useMutation, useParentValue, useProgramId, useQuery, useRefreshDispatcher, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
+ import { useRef, useState } from "@saasquatch/universal-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import { REFERRAL_CODES_NAMESPACE, SET_CODE_COPIED, } from "../sqm-referral-codes/useReferralCodes";
5
+ const MAX_EDITS = 5;
6
+ const CHARACTER_LIMIT = 15;
7
+ const MIN_CHARACTERS = 3;
5
8
  const MessageLinkQuery = gql `
6
- query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
9
+ query ($programId: ID) {
7
10
  user: viewer {
8
11
  ... on User {
9
- shareLink(
10
- programId: $programId
11
- engagementMedium: $engagementMedium
12
- shareMedium: DIRECT
13
- )
12
+ shareLink(programId: $programId)
14
13
  }
15
14
  }
16
15
  }
@@ -20,19 +19,115 @@ const WIDGET_ENGAGEMENT_EVENT = gql `
20
19
  createUserAnalyticsEvent(eventMeta: $eventMeta)
21
20
  }
22
21
  `;
22
+ const ADD_SHARE_LINK_CODE = gql `
23
+ mutation ($addShareLinkCodeInput: AddShareLinkCodeInput!) {
24
+ addShareLinkCode(addShareLinkCodeInput: $addShareLinkCodeInput) {
25
+ linkCode {
26
+ linkCode
27
+ shortUrl
28
+ referralCode {
29
+ code
30
+ }
31
+ }
32
+ }
33
+ }
34
+ `;
35
+ const VALIDATE_LINK_CODE = gql `
36
+ query validateLinkCode($linkCode: String!) {
37
+ validateLinkCode(linkCode: $linkCode) {
38
+ valid
39
+ invalidReason
40
+ }
41
+ }
42
+ `;
43
+ const GET_LINK_DOMAIN = gql `
44
+ query getLinkDomain {
45
+ tenantSettings {
46
+ primaryLinkDomain {
47
+ host
48
+ }
49
+ }
50
+ }
51
+ `;
52
+ const SHARE_LINK_EDIT_COUNT = gql `
53
+ query shareLinkEditCount {
54
+ viewer {
55
+ ... on User {
56
+ shareLinkCodes {
57
+ totalCount
58
+ data {
59
+ isVanity
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ `;
66
+ function parseShareUrl(url) {
67
+ try {
68
+ const parsed = new URL(url);
69
+ return {
70
+ url: parsed.origin + parsed.pathname,
71
+ domain: parsed.origin + "/",
72
+ path: parsed.pathname.slice(1),
73
+ };
74
+ }
75
+ catch {
76
+ return { url, domain: url, path: "" };
77
+ }
78
+ }
23
79
  export function useShareLink(props) {
24
- var _a, _b;
80
+ var _a, _b, _c, _d, _e, _f, _g;
25
81
  const { programId = useProgramId() } = props;
26
82
  const user = useUserIdentity();
27
83
  const engagementMedium = useEngagementMedium();
28
84
  const contextData = useParentValue(REFERRAL_CODES_NAMESPACE);
29
- const { data } = useQuery(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
85
+ const { data, refetch } = useQuery(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
30
86
  const [sendLoadEvent] = useMutation(WIDGET_ENGAGEMENT_EVENT);
31
- const [setCopied, copiedRes] = useMutation(SET_CODE_COPIED);
32
- const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
87
+ const [setCopied] = useMutation(SET_CODE_COPIED);
88
+ const [addShareLinkCode, { loading: isSaving }] = useMutation(ADD_SHARE_LINK_CODE);
89
+ const [validateLinkCode] = useLazyQuery(VALIDATE_LINK_CODE);
90
+ const { refresh } = useRefreshDispatcher();
91
+ const { data: linkDomainData } = useQuery(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
92
+ const { data: editCountData, refetch: refetchEditCount } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
93
+ const { url: copyString, domain: domainPrefix, path: pathSuffix, } = parseShareUrl((_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
33
94
  // Shown during loading
34
- "...";
95
+ "...");
35
96
  const [open, setOpen] = useState(false);
97
+ const [isEditing, setIsEditing] = useState(false);
98
+ const [editValue, setEditValue] = useState("");
99
+ const [validationError, setValidationError] = useState(null);
100
+ const [isValidating, setIsValidating] = useState(false);
101
+ const debounceTimerRef = useRef(undefined);
102
+ const latestValidationValueRef = useRef("");
103
+ const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
104
+ const customizeDisabled = !hasPrimaryLinkDomain;
105
+ const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
106
+ const editCount = vanityCount;
107
+ const editsRemaining = Math.max(0, MAX_EDITS - editCount);
108
+ const limitReached = editsRemaining <= 0;
109
+ function mapErrorCodeToInfo(errorCode) {
110
+ if (!errorCode)
111
+ return null;
112
+ const errorMap = {
113
+ EXISTING_CODE_CONFLICT: {
114
+ code: "EXISTING_CODE_CONFLICT",
115
+ title: props.linkTakenErrorTitle,
116
+ description: props.linkTakenErrorDescription,
117
+ },
118
+ INVALID_CHARACTER: {
119
+ code: "INVALID_CHARACTER",
120
+ title: props.invalidCharactersErrorTitle,
121
+ description: props.invalidCharactersErrorDescription,
122
+ },
123
+ BLOCKED_WORD: {
124
+ code: "BLOCKED_WORD",
125
+ title: props.restrictedWordsErrorTitle,
126
+ description: props.restrictedWordsErrorDescription,
127
+ },
128
+ };
129
+ return errorMap[errorCode];
130
+ }
36
131
  async function onClick() {
37
132
  if (contextData) {
38
133
  await setCopied({ referralCode: contextData.referralCode });
@@ -56,5 +151,123 @@ export function useShareLink(props) {
56
151
  },
57
152
  });
58
153
  }
59
- return { ...props, onClick, open, copyString: copyString };
154
+ function onCustomizeClick() {
155
+ if (limitReached || customizeDisabled)
156
+ return;
157
+ setIsEditing(true);
158
+ setEditValue(editCount === 0 ? "" : pathSuffix);
159
+ setValidationError(null);
160
+ }
161
+ function onEditValueChange(value) {
162
+ const trimmed = value.slice(0, CHARACTER_LIMIT);
163
+ setEditValue(trimmed);
164
+ setValidationError(null);
165
+ latestValidationValueRef.current = trimmed;
166
+ if (debounceTimerRef.current)
167
+ clearTimeout(debounceTimerRef.current);
168
+ if (!trimmed || trimmed.length < MIN_CHARACTERS) {
169
+ setIsValidating(false);
170
+ return;
171
+ }
172
+ setIsValidating(true);
173
+ debounceTimerRef.current = setTimeout(async () => {
174
+ var _a, _b;
175
+ const requestedValue = trimmed;
176
+ try {
177
+ const result = await validateLinkCode({ linkCode: requestedValue });
178
+ // Discard stale responses if the user has continued typing
179
+ if (latestValidationValueRef.current !== requestedValue)
180
+ return;
181
+ if (!((_a = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _a === void 0 ? void 0 : _a.valid)) {
182
+ const reason = (_b = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _b === void 0 ? void 0 : _b.invalidReason;
183
+ setValidationError(mapErrorCodeToInfo(reason));
184
+ }
185
+ }
186
+ catch {
187
+ // Validation query failed — don't block the user
188
+ if (latestValidationValueRef.current !== requestedValue)
189
+ return;
190
+ }
191
+ if (latestValidationValueRef.current === requestedValue) {
192
+ setIsValidating(false);
193
+ }
194
+ }, 500);
195
+ }
196
+ async function onSave() {
197
+ var _a, _b;
198
+ if (!editValue ||
199
+ editValue.length < MIN_CHARACTERS ||
200
+ validationError ||
201
+ isValidating)
202
+ return;
203
+ try {
204
+ await addShareLinkCode({
205
+ addShareLinkCodeInput: {
206
+ userId: user === null || user === void 0 ? void 0 : user.id,
207
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
208
+ programId,
209
+ linkCode: editValue,
210
+ makeShareLinkCodePrimaryForReferralCode: true,
211
+ },
212
+ });
213
+ setIsEditing(false);
214
+ await Promise.all([refetch(), refetchEditCount()]);
215
+ refresh();
216
+ }
217
+ catch (e) {
218
+ const errorCode = (_a = e === null || e === void 0 ? void 0 : e.extensions) === null || _a === void 0 ? void 0 : _a.code;
219
+ setValidationError((_b = mapErrorCodeToInfo(errorCode)) !== null && _b !== void 0 ? _b : {
220
+ code: null,
221
+ title: props.saveErrorTitle,
222
+ description: (e === null || e === void 0 ? void 0 : e.message) || props.saveErrorDescription,
223
+ });
224
+ }
225
+ }
226
+ function onCancel() {
227
+ setIsEditing(false);
228
+ setEditValue("");
229
+ setValidationError(null);
230
+ setIsValidating(false);
231
+ latestValidationValueRef.current = "";
232
+ if (debounceTimerRef.current)
233
+ clearTimeout(debounceTimerRef.current);
234
+ }
235
+ return {
236
+ copyTextViewProps: {
237
+ ...props,
238
+ onClick,
239
+ open,
240
+ copyString,
241
+ },
242
+ minCharactersText: props.minCharactersText,
243
+ allowCustomization: props.allowCustomization,
244
+ customizeLinkLabel: props.customizeLinkButtonLabel,
245
+ saveLabelText: props.saveLabelText,
246
+ savingLabelText: props.savingLabelText,
247
+ cancelLabelText: props.cancelLabelText,
248
+ editLabelText: props.editLabelText,
249
+ charactersRemainingText: props.charactersRemainingText,
250
+ validatingLabelText: props.validatingLabelText,
251
+ isEditing,
252
+ editValue,
253
+ domainPrefix,
254
+ editsRemaining,
255
+ maxEdits: MAX_EDITS,
256
+ limitReached,
257
+ validationError,
258
+ isValidating,
259
+ isSaving,
260
+ characterLimit: CHARACTER_LIMIT,
261
+ minCharacters: MIN_CHARACTERS,
262
+ charactersRemaining: CHARACTER_LIMIT - editValue.length,
263
+ editLimitText: props.editLimitText,
264
+ editLimitReachedText: props.editLimitReachedText,
265
+ supportLinkText: props.supportLinkText,
266
+ customizeDisabled,
267
+ customizeDisabledTooltip: props.customizeDisabledTooltip,
268
+ onCustomizeClick,
269
+ onEditValueChange,
270
+ onSave,
271
+ onCancel,
272
+ };
60
273
  }
@@ -50,7 +50,7 @@ export function TextSpanView(props, children) {
50
50
  display: inline;
51
51
  }
52
52
  `;
53
- return (h("span", { class: sheet.classes[type], part: "sqm-base" },
53
+ return (h("span", { class: sheet.classes[type], part: "sqm-text-span" },
54
54
  h("style", { type: "text/css" },
55
55
  vanillaStyle,
56
56
  styleString),
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { intl } from "../../../global/global";
3
3
  export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
4
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38;
4
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
5
5
  const { errors, ...formState } = props.states.formState;
6
6
  return {
7
7
  0: {
@@ -196,23 +196,5 @@ export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
196
196
  h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
197
197
  h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
198
198
  },
199
- 15: {
200
- input: (h("sl-input", Object.assign({ required: true, label: props.text.branchNameLabel, name: "/branchName", id: "branchName", key: "branchName", type: "text" }, (((_33 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _33 === void 0 ? void 0 : _33.branchName) && {
201
- class: "error-input",
202
- helpText: getValidationErrorMessage({
203
- type: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.branchName) === null || _35 === void 0 ? void 0 : _35.type,
204
- label: props.text.branchNameLabel,
205
- }),
206
- })))),
207
- },
208
- 16: {
209
- input: (h("sl-input", Object.assign({ required: true, label: props.text.classificationCodeLabel, name: "/classificationCode", id: "classificationCode", key: "classificationCode", type: "text" }, (((_36 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _36 === void 0 ? void 0 : _36.classificationCode) && {
210
- class: "error-input",
211
- helpText: getValidationErrorMessage({
212
- type: (_38 = (_37 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _37 === void 0 ? void 0 : _37.classificationCode) === null || _38 === void 0 ? void 0 : _38.type,
213
- label: props.text.classificationCodeLabel,
214
- }),
215
- })))),
216
- },
217
199
  };
218
200
  }
@@ -168,19 +168,11 @@ export class BankingInfoForm {
168
168
  * @uiName Branch code field label
169
169
  */
170
170
  this.branchCodeLabel = "Branch code";
171
- /**
172
- * @uiName Branch name field label
173
- */
174
- this.branchNameLabel = "Branch name";
175
171
  /**
176
172
  * Label text for the classification input field
177
173
  * @uiName Classification field label
178
174
  */
179
175
  this.classificationLabel = "Classification";
180
- /**
181
- * @uiName Classification code field label
182
- */
183
- this.classificationCodeLabel = "KBE Code";
184
176
  /**
185
177
  * @uiName Taxpayer ID field label
186
178
  */
@@ -1181,27 +1173,6 @@ export class BankingInfoForm {
1181
1173
  "reflect": false,
1182
1174
  "defaultValue": "\"Branch code\""
1183
1175
  },
1184
- "branchNameLabel": {
1185
- "type": "string",
1186
- "mutable": false,
1187
- "complexType": {
1188
- "original": "string",
1189
- "resolved": "string",
1190
- "references": {}
1191
- },
1192
- "required": false,
1193
- "optional": false,
1194
- "docs": {
1195
- "tags": [{
1196
- "text": "Branch name field label",
1197
- "name": "uiName"
1198
- }],
1199
- "text": ""
1200
- },
1201
- "attribute": "branch-name-label",
1202
- "reflect": false,
1203
- "defaultValue": "\"Branch name\""
1204
- },
1205
1176
  "classificationLabel": {
1206
1177
  "type": "string",
1207
1178
  "mutable": false,
@@ -1223,27 +1194,6 @@ export class BankingInfoForm {
1223
1194
  "reflect": false,
1224
1195
  "defaultValue": "\"Classification\""
1225
1196
  },
1226
- "classificationCodeLabel": {
1227
- "type": "string",
1228
- "mutable": false,
1229
- "complexType": {
1230
- "original": "string",
1231
- "resolved": "string",
1232
- "references": {}
1233
- },
1234
- "required": false,
1235
- "optional": false,
1236
- "docs": {
1237
- "tags": [{
1238
- "text": "Classification code field label",
1239
- "name": "uiName"
1240
- }],
1241
- "text": ""
1242
- },
1243
- "attribute": "classification-code-label",
1244
- "reflect": false,
1245
- "defaultValue": "\"KBE Code\""
1246
- },
1247
1197
  "taxPayerIdLabel": {
1248
1198
  "type": "string",
1249
1199
  "mutable": false,
@@ -499,22 +499,12 @@ export class TaxAndCashMonolith {
499
499
  * @uiGroup Step 4 Properties
500
500
  */
501
501
  this.step4_branchCodeLabel = "Branch code";
502
- /**
503
- * @uiName Branch name field label
504
- * @uiGroup Step 4 Properties
505
- */
506
- this.step4_branchNameLabel = "Branch name";
507
502
  /**
508
503
  * Label text for the classification input field
509
504
  * @uiName Classification field label
510
505
  * @uiGroup Step 4 Properties
511
506
  */
512
507
  this.step4_classificationLabel = "Classification";
513
- /**
514
- * @uiName Classification code field label
515
- * @uiGroup Step 4 Properties
516
- */
517
- this.step4_classificationCodeLabel = "KBE Code";
518
508
  /**
519
509
  * @uiName Taxpayer ID field label
520
510
  * @uiGroup Step 4 Properties
@@ -3248,30 +3238,6 @@ export class TaxAndCashMonolith {
3248
3238
  "reflect": false,
3249
3239
  "defaultValue": "\"Branch code\""
3250
3240
  },
3251
- "step4_branchNameLabel": {
3252
- "type": "string",
3253
- "mutable": false,
3254
- "complexType": {
3255
- "original": "string",
3256
- "resolved": "string",
3257
- "references": {}
3258
- },
3259
- "required": false,
3260
- "optional": false,
3261
- "docs": {
3262
- "tags": [{
3263
- "text": "Branch name field label",
3264
- "name": "uiName"
3265
- }, {
3266
- "text": "Step 4 Properties",
3267
- "name": "uiGroup"
3268
- }],
3269
- "text": ""
3270
- },
3271
- "attribute": "step-4_branch-name-label",
3272
- "reflect": false,
3273
- "defaultValue": "\"Branch name\""
3274
- },
3275
3241
  "step4_classificationLabel": {
3276
3242
  "type": "string",
3277
3243
  "mutable": false,
@@ -3296,30 +3262,6 @@ export class TaxAndCashMonolith {
3296
3262
  "reflect": false,
3297
3263
  "defaultValue": "\"Classification\""
3298
3264
  },
3299
- "step4_classificationCodeLabel": {
3300
- "type": "string",
3301
- "mutable": false,
3302
- "complexType": {
3303
- "original": "string",
3304
- "resolved": "string",
3305
- "references": {}
3306
- },
3307
- "required": false,
3308
- "optional": false,
3309
- "docs": {
3310
- "tags": [{
3311
- "text": "Classification code field label",
3312
- "name": "uiName"
3313
- }, {
3314
- "text": "Step 4 Properties",
3315
- "name": "uiGroup"
3316
- }],
3317
- "text": ""
3318
- },
3319
- "attribute": "step-4_classification-code-label",
3320
- "reflect": false,
3321
- "defaultValue": "\"KBE Code\""
3322
- },
3323
3265
  "step4_taxPayerIdLabel": {
3324
3266
  "type": "string",
3325
3267
  "mutable": false,
@@ -5896,7 +5838,7 @@ export class TaxAndCashMonolith {
5896
5838
  "mutable": false,
5897
5839
  "complexType": {
5898
5840
  "original": "DemoData<TaxAndCashMonolith>",
5899
- "resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_currencyHelpText?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_currencyHelpText\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
5841
+ "resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_currencyHelpText?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_classificationLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_currencyHelpText\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_classificationLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
5900
5842
  "references": {
5901
5843
  "DemoData": {
5902
5844
  "location": "import",