@saasquatch/mint-components 2.3.0-9 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/{esm/usePortalRegistrationForm-3a1f36a2.js → cjs/AsYouType-d15caac8.js} +267 -222
  2. package/dist/cjs/{ShadowViewAddon-3b477e58.js → ShadowViewAddon-05c6968d.js} +4 -4
  3. package/dist/cjs/{global-b7b1b8fe.js → global-258c36b8.js} +7 -3
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +49 -36
  7. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +38 -25
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +6 -9
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-lead-checkbox-field-view-0af2a157.js → sqm-lead-checkbox-field-view-b3a85029.js} +1 -1
  12. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  13. package/dist/cjs/{sqm-lead-input-field-view-0cd7ebdb.js → sqm-lead-input-field-view-88de1b78.js} +1 -1
  14. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  15. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  17. package/dist/cjs/{sqm-partner-info-modal-view-2b6fee0f.js → sqm-partner-info-modal-view-243aad7b.js} +6 -7
  18. package/dist/cjs/{sqm-portal-email-verification-view-abb773a7.js → sqm-portal-email-verification-view-6cc7ef05.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +3 -2
  21. package/dist/cjs/{sqm-portal-profile-view-3515e1e5.js → sqm-portal-profile-view-a4ba4657.js} +1 -1
  22. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -2
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +69 -12
  26. package/dist/cjs/{sqm-user-info-form-view-374a3f01.js → sqm-user-info-form-view-c5f9b79b.js} +1007 -11
  27. package/dist/cjs/subregions-3d27e279.js +1068 -0
  28. package/dist/cjs/{useIndirectTaxForm-112914a0.js → useIndirectTaxForm-5211013b.js} +6 -2
  29. package/dist/cjs/{useLeadFormState-b4c2ab5b.js → useLeadFormState-bf49984b.js} +1 -1
  30. package/dist/cjs/usePortalRegistrationForm-8a3a14ac.js +215 -0
  31. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  32. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +1 -1
  33. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +1 -1
  34. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +2 -2
  35. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +5 -6
  36. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -6
  37. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +0 -1
  38. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
  39. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +2 -0
  40. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -0
  41. package/dist/collection/components/tax-and-cash/phoneExtensions.js +12 -0
  42. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -3
  43. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +3 -3
  44. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +3 -2
  45. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +5 -1
  46. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +29 -19
  47. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +52 -0
  48. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  49. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -5
  50. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +3 -1
  51. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -28
  52. package/dist/collection/components/tax-and-cash/utils.js +30 -27
  53. package/dist/collection/global/styles.js +7 -3
  54. package/dist/collection/global/styles.ts +7 -3
  55. package/dist/{cjs/usePortalRegistrationForm-23ee2d62.js → esm/AsYouType-2d56519e.js} +248 -226
  56. package/dist/esm/{ShadowViewAddon-e115fa1c.js → ShadowViewAddon-543f0fef.js} +4 -4
  57. package/dist/esm/{global-75e96214.js → global-32d00a6e.js} +7 -3
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/mint-components.js +1 -1
  60. package/dist/esm/sqm-banking-info-form_10.entry.js +49 -36
  61. package/dist/esm/sqm-big-stat_47.entry.js +37 -24
  62. package/dist/esm/sqm-code-verification.entry.js +1 -1
  63. package/dist/esm/sqm-email-verification_2.entry.js +6 -9
  64. package/dist/esm/sqm-empty_4.entry.js +1 -1
  65. package/dist/esm/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-aa977b97.js} +1 -1
  66. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  67. package/dist/esm/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-671ff96f.js} +1 -1
  68. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  69. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  70. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  71. package/dist/esm/{sqm-partner-info-modal-view-bc843d7d.js → sqm-partner-info-modal-view-8f141a4f.js} +6 -7
  72. package/dist/esm/{sqm-portal-email-verification-view-fde1eb35.js → sqm-portal-email-verification-view-29ca7a13.js} +1 -1
  73. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  74. package/dist/esm/sqm-portal-forgot-password_6.entry.js +2 -1
  75. package/dist/esm/{sqm-portal-profile-view-2018590a.js → sqm-portal-profile-view-769aafeb.js} +1 -1
  76. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  77. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  78. package/dist/esm/sqm-rewards-table_9.entry.js +1 -2
  79. package/dist/esm/sqm-stencilbook.entry.js +69 -12
  80. package/dist/esm/{sqm-user-info-form-view-5322525c.js → sqm-user-info-form-view-ceb3917a.js} +1005 -9
  81. package/dist/esm/subregions-810a5c2d.js +1055 -0
  82. package/dist/esm/{useIndirectTaxForm-a6ac7e7e.js → useIndirectTaxForm-4dc576f0.js} +6 -2
  83. package/dist/esm/{useLeadFormState-332b2796.js → useLeadFormState-6214b2d9.js} +1 -1
  84. package/dist/esm/usePortalRegistrationForm-78fdfd93.js +213 -0
  85. package/dist/esm-es5/AsYouType-2d56519e.js +1 -0
  86. package/dist/esm-es5/{ShadowViewAddon-e115fa1c.js → ShadowViewAddon-543f0fef.js} +1 -1
  87. package/dist/esm-es5/{global-75e96214.js → global-32d00a6e.js} +1 -1
  88. package/dist/esm-es5/loader.js +1 -1
  89. package/dist/esm-es5/mint-components.js +1 -1
  90. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  91. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  92. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  93. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  94. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  95. package/dist/esm-es5/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-aa977b97.js} +1 -1
  96. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  97. package/dist/esm-es5/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-671ff96f.js} +1 -1
  98. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  99. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  100. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  101. package/dist/esm-es5/{sqm-partner-info-modal-view-bc843d7d.js → sqm-partner-info-modal-view-8f141a4f.js} +1 -1
  102. package/dist/esm-es5/{sqm-portal-email-verification-view-fde1eb35.js → sqm-portal-email-verification-view-29ca7a13.js} +1 -1
  103. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  104. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  105. package/dist/esm-es5/{sqm-portal-profile-view-2018590a.js → sqm-portal-profile-view-769aafeb.js} +1 -1
  106. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  107. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  108. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  109. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  110. package/dist/esm-es5/sqm-user-info-form-view-ceb3917a.js +1 -0
  111. package/dist/esm-es5/subregions-810a5c2d.js +1 -0
  112. package/dist/esm-es5/{useIndirectTaxForm-a6ac7e7e.js → useIndirectTaxForm-4dc576f0.js} +2 -2
  113. package/dist/esm-es5/{useLeadFormState-332b2796.js → useLeadFormState-6214b2d9.js} +1 -1
  114. package/dist/esm-es5/usePortalRegistrationForm-78fdfd93.js +1 -0
  115. package/dist/mint-components/global/styles.ts +7 -3
  116. package/dist/mint-components/mint-components.esm.js +1 -1
  117. package/dist/mint-components/mint-components.js +1 -1
  118. package/dist/mint-components/{p-ef32fa8f.entry.js → p-0436b138.entry.js} +1 -1
  119. package/dist/mint-components/{p-24f1d342.system.entry.js → p-058e5447.system.entry.js} +1 -1
  120. package/dist/mint-components/{p-8e148cb0.system.js → p-0607b068.system.js} +1 -1
  121. package/dist/mint-components/{p-2d4132fb.js → p-0ad64881.js} +7 -5
  122. package/dist/mint-components/{p-3354cc75.system.entry.js → p-141c5bdb.system.entry.js} +1 -1
  123. package/dist/mint-components/{p-37e24621.system.entry.js → p-241e7226.system.entry.js} +1 -1
  124. package/dist/mint-components/p-2a2332a6.entry.js +83 -0
  125. package/dist/mint-components/{p-3bbc0db2.entry.js → p-3ada35f5.entry.js} +1 -1
  126. package/dist/mint-components/{p-7d2d9ef9.system.js → p-3e7fb8a7.system.js} +1 -1
  127. package/dist/mint-components/{p-1d398dbc.entry.js → p-4f364438.entry.js} +1 -1
  128. package/dist/mint-components/p-55847fc2.system.entry.js +1 -0
  129. package/dist/mint-components/p-5c3bff99.entry.js +1 -0
  130. package/dist/mint-components/{p-7cbdf341.entry.js → p-5d3d0e0b.entry.js} +2 -2
  131. package/dist/mint-components/{p-b2ad3fca.system.js → p-5fa706cf.system.js} +1 -1
  132. package/dist/mint-components/{p-b3e1f2fa.entry.js → p-61f7bf8a.entry.js} +3 -3
  133. package/dist/mint-components/{p-b3309d9b.entry.js → p-62610658.entry.js} +2 -2
  134. package/dist/mint-components/{p-6ef373ed.system.js → p-6cd93ea3.system.js} +2 -2
  135. package/dist/mint-components/{p-c0f8f977.system.entry.js → p-6e92460d.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-13d8ecad.js → p-6f8a3436.js} +1 -1
  137. package/dist/mint-components/{p-4d73a616.entry.js → p-714bf981.entry.js} +1 -1
  138. package/dist/mint-components/p-765e3379.js +1 -0
  139. package/dist/mint-components/p-76ad156b.entry.js +9 -0
  140. package/dist/mint-components/{p-51ae6716.system.entry.js → p-7727662f.system.entry.js} +1 -1
  141. package/dist/mint-components/{p-4eaa3eb7.js → p-7c0f5891.js} +1 -1
  142. package/dist/mint-components/{p-c0a85e22.js → p-7c482564.js} +1 -1
  143. package/dist/mint-components/{p-2ed13619.entry.js → p-7c657e1f.entry.js} +1 -1
  144. package/dist/mint-components/p-8dcd72fe.system.entry.js +1 -0
  145. package/dist/mint-components/{p-1efb42e2.js → p-92e81c72.js} +3 -3
  146. package/dist/mint-components/p-92f520c9.js +1 -0
  147. package/dist/mint-components/{p-99eecdcb.system.entry.js → p-933bae53.system.entry.js} +1 -1
  148. package/dist/mint-components/{p-c66e5217.system.js → p-989437c5.system.js} +1 -1
  149. package/dist/mint-components/p-990e73ba.system.js +1 -0
  150. package/dist/mint-components/{p-e8e7af06.js → p-9c982f7e.js} +1 -1
  151. package/dist/mint-components/p-a08157c4.js +1 -0
  152. package/dist/mint-components/{p-13e439bc.js → p-a094da68.js} +1 -1
  153. package/dist/mint-components/p-a779e577.js +13 -0
  154. package/dist/mint-components/p-aef2db59.system.js +1 -0
  155. package/dist/mint-components/p-b0d49a64.system.entry.js +1 -0
  156. package/dist/mint-components/{p-0815b973.system.js → p-b111d5d7.system.js} +1 -1
  157. package/dist/mint-components/{p-5bc707cf.entry.js → p-b1536972.entry.js} +23 -23
  158. package/dist/mint-components/{p-b871d158.js → p-b8e46769.js} +1 -1
  159. package/dist/mint-components/{p-1f387c7b.system.js → p-bfb00685.system.js} +1 -1
  160. package/dist/mint-components/{p-7628e56f.system.js → p-c05a4b0c.system.js} +1 -1
  161. package/dist/mint-components/{p-9a15cd5a.system.entry.js → p-c51ea96f.system.entry.js} +1 -1
  162. package/dist/mint-components/p-d463fa82.system.js +1 -0
  163. package/dist/mint-components/p-d47d0862.entry.js +1 -0
  164. package/dist/mint-components/{p-abd717d4.js → p-db45be67.js} +1 -1
  165. package/dist/mint-components/{p-86d20b47.system.entry.js → p-dc196a22.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-432a44de.entry.js → p-e2fb11af.entry.js} +2 -2
  167. package/dist/mint-components/{p-24a867ab.system.js → p-e7f45f18.system.js} +1 -1
  168. package/dist/mint-components/{p-d08408b3.entry.js → p-e87d9982.entry.js} +1 -1
  169. package/dist/mint-components/{p-33ca28ba.system.entry.js → p-ee685659.system.entry.js} +1 -1
  170. package/dist/mint-components/p-ee91aeac.system.js +1 -0
  171. package/dist/mint-components/{p-025ddad2.system.entry.js → p-f194f4e5.system.entry.js} +1 -1
  172. package/dist/mint-components/p-f7218609.system.entry.js +1 -0
  173. package/dist/mint-components/p-fa477f5f.system.entry.js +1 -0
  174. package/dist/mint-components/p-fd231c49.system.js +1 -0
  175. package/dist/types/components/tax-and-cash/phoneExtensions.d.ts +12 -0
  176. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  177. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
  178. package/dist/types/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.d.ts +1 -0
  179. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  180. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +2 -0
  181. package/dist/types/components/tax-and-cash/utils.d.ts +8 -2
  182. package/docs/docs.docx +0 -0
  183. package/grapesjs/grapesjs.js +1 -1
  184. package/package.json +4 -2
  185. package/dist/cjs/subregions-984e30d7.js +0 -1505
  186. package/dist/esm/subregions-7c9778d0.js +0 -1492
  187. package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +0 -1
  188. package/dist/esm-es5/subregions-7c9778d0.js +0 -1
  189. package/dist/esm-es5/usePortalRegistrationForm-3a1f36a2.js +0 -1
  190. package/dist/mint-components/p-335a5736.entry.js +0 -1
  191. package/dist/mint-components/p-3a41b39c.js +0 -13
  192. package/dist/mint-components/p-5623f1e0.js +0 -1
  193. package/dist/mint-components/p-5fdf0286.system.js +0 -1
  194. package/dist/mint-components/p-6eebbc59.entry.js +0 -83
  195. package/dist/mint-components/p-7f29622d.js +0 -1
  196. package/dist/mint-components/p-8a08cec6.system.entry.js +0 -1
  197. package/dist/mint-components/p-90200f08.system.entry.js +0 -1
  198. package/dist/mint-components/p-a8cfa8fd.entry.js +0 -9
  199. package/dist/mint-components/p-ae2f610e.system.js +0 -1
  200. package/dist/mint-components/p-b7188d47.system.entry.js +0 -1
  201. package/dist/mint-components/p-b9509a55.system.entry.js +0 -1
  202. package/dist/mint-components/p-bd03efe0.system.js +0 -1
  203. package/dist/mint-components/p-c13c20b2.system.js +0 -1
  204. package/dist/mint-components/p-c41d536d.entry.js +0 -1
  205. package/dist/mint-components/p-db6bf7cf.system.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-8277cbb3.js');
4
- const global = require('./global-b7b1b8fe.js');
4
+ const global = require('./global-258c36b8.js');
5
5
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
6
6
  const index_module = require('./index.module-f8c8495f.js');
7
7
  const cjs = require('./cjs-1066ec21.js');
@@ -2369,7 +2369,7 @@ const vanillaStyle$2 = `
2369
2369
  }
2370
2370
  sl-select::part(label){
2371
2371
  font-size: var(--sl-input-label-font-size-small);
2372
- font-weight: var(--sl-font-weight-semibold);
2372
+ font-weight: var(--sl-font-weight-bold);
2373
2373
  }
2374
2374
  `;
2375
2375
  JSS.jss.setup(JSS.create());
@@ -2774,7 +2774,7 @@ const vanillaStyle$4 = `
2774
2774
 
2775
2775
  *::part(input-label), *::part(select-label), *::part(textarea-label){
2776
2776
  font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
2777
- font-weight: var(--sl-font-weight-semibold);
2777
+ font-weight: var(--sl-font-weight-bold);
2778
2778
  color: var(--sqm-input-label-color, var(--sqm-text), black);
2779
2779
  }
2780
2780
 
@@ -4828,7 +4828,7 @@ const vanillaStyle$8 = `
4828
4828
  }
4829
4829
  sl-select::part(label){
4830
4830
  font-size: var(--sl-input-label-font-size-small);
4831
- font-weight: var(--sl-font-weight-semibold);
4831
+ font-weight: var(--sl-font-weight-bold);
4832
4832
  }
4833
4833
  sl-select::part(menu){
4834
4834
  max-height: 300px;
@@ -26526,7 +26526,7 @@ html {
26526
26526
  --sqm-input-border-color-focus: ${((_68 = config === null || config === void 0 ? void 0 : config.formFields) === null || _68 === void 0 ? void 0 : _68.selectedStateColor) || "hsl(0, 0%, 7%)"};
26527
26527
  --sqm-input-border-color-hover: ${((_69 = config === null || config === void 0 ? void 0 : config.formFields) === null || _69 === void 0 ? void 0 : _69.hoverStateColor) || "hsl(0, 0%, 91%)"};
26528
26528
 
26529
- --sqm-input-label-font-size: inherit;
26529
+ --sqm-input-label-font-size: var(--sl-input-label-font-size-small);
26530
26530
  --sqm-input-disabled-color: var(--sqm-text-subdued);
26531
26531
  --sqm-input-disabled-background: ${((_70 = config === null || config === void 0 ? void 0 : config.formFields) === null || _70 === void 0 ? void 0 : _70.disabledBackgroundColor) || "#F4F4F5"};
26532
26532
 
@@ -26722,7 +26722,6 @@ sl-button[type="primary"]::part(base):hover{
26722
26722
  color: var(--sqm-primary-button-color-hover);
26723
26723
  }
26724
26724
 
26725
-
26726
26725
  *::part(primarybutton-base):focus,
26727
26726
  sl-button[type="primary"]::part(base):focus {
26728
26727
  box-shadow: none;
@@ -26747,10 +26746,15 @@ sl-button[type="secondary"]::part(base):hover {
26747
26746
  *::part(input-label), *::part(select-label), *::part(textarea-label){
26748
26747
  font-family: var(--sqm-primary-font);
26749
26748
  font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
26750
- font-weight: var(--sl-font-weight-semibold);
26749
+ font-weight: var(--sl-font-weight-bold);
26751
26750
  color: var(--sqm-input-label-color, var(--sqm-text), black);
26752
26751
  }
26753
26752
 
26753
+ sl-input::part(label) {
26754
+ font-weight: var(--sl-font-weight-bold);
26755
+ font-size: var(--sl-input-font-size-small);
26756
+ }
26757
+
26754
26758
  *::part(input-base), *::part(select-base), *::part(textarea-base){
26755
26759
  font-family: var(--sqm-primary-font);
26756
26760
  background-color: var(--sqm-input-background, #fff);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- require('./global-b7b1b8fe.js');
6
+ require('./global-258c36b8.js');
7
7
  require('./dom-context-hooks.module-e7b6727c.js');
8
8
  require('./index.module-f8c8495f.js');
9
9
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-8277cbb3.js');
4
- require('./global-b7b1b8fe.js');
4
+ require('./global-258c36b8.js');
5
5
  require('./dom-context-hooks.module-e7b6727c.js');
6
6
  require('./index.module-f8c8495f.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
@@ -11,17 +11,18 @@ const cjs = require('./cjs-1066ec21.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
13
  require('./mixins-4761d472.js');
14
+ require('./AsYouType-d15caac8.js');
15
+ const subregions = require('./subregions-3d27e279.js');
14
16
  const GenericTableView = require('./GenericTableView-be5648e4.js');
15
17
  const reRender = require('./re-render-72a0ef45.js');
16
18
  const useChildElements = require('./useChildElements-041127d7.js');
17
19
  const luxon = require('./luxon-c1ad356a.js');
18
20
  const useReferralTable = require('./useReferralTable-6e9de0d5.js');
19
- const sqmUserInfoFormView = require('./sqm-user-info-form-view-374a3f01.js');
20
- const subregions = require('./subregions-984e30d7.js');
21
+ const sqmUserInfoFormView = require('./sqm-user-info-form-view-c5f9b79b.js');
21
22
  const data = require('./data-89ac73dd.js');
22
23
  const keys = require('./keys-5a2c9ed2.js');
23
24
  const eventKeys = require('./eventKeys-7af4df4d.js');
24
- const useIndirectTaxForm = require('./useIndirectTaxForm-112914a0.js');
25
+ const useIndirectTaxForm = require('./useIndirectTaxForm-5211013b.js');
25
26
 
26
27
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
27
28
  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, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
@@ -869,10 +870,10 @@ const API_FIELD_TO_FORM_FIELD = {
869
870
  bankProvinceState: "bankState",
870
871
  };
871
872
  /**
872
- * Maps Impact API error code paths (from validationErrors[].errorPath) to short,
873
+ * Maps Impact API error codes (from validationErrors[].code) to short,
873
874
  * readable frontend error codes used in the ICU select props.
874
875
  */
875
- const API_ERROR_PATH_TO_FRONTEND = {
876
+ const API_ERROR_CODE_TO_FRONTEND = {
876
877
  // Beneficiary account name
877
878
  "withdrawal.settings.error.empty_beneficiaryname": "empty",
878
879
  "withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
@@ -1163,7 +1164,7 @@ function useBankingInfoForm(props) {
1163
1164
  console.error("Validation failed: ", validationErrors);
1164
1165
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1165
1166
  const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
1166
- const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
1167
+ const errorCode = API_ERROR_CODE_TO_FRONTEND[error.code] || error.code;
1167
1168
  return {
1168
1169
  ...agg,
1169
1170
  [formField]: {
@@ -2839,7 +2840,7 @@ const IndirectTaxFormView = (props) => {
2839
2840
  }, {
2840
2841
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2841
2842
  }))),
2842
- states.isPartner && (index.h("sqm-form-message", { loading: states.loading, type: "info" },
2843
+ states.isPartnerLegacy && (index.h("sqm-form-message", { loading: states.loading, type: "info" },
2843
2844
  index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
2844
2845
  global.intl.formatMessage({
2845
2846
  id: "isPartnerAlertDescription",
@@ -2852,11 +2853,11 @@ const IndirectTaxFormView = (props) => {
2852
2853
  states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
2853
2854
  index.h("div", { class: classes.RadioContainer },
2854
2855
  index.h("div", { class: classes.InnerRadioContainer },
2855
- index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
2856
+ index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled },
2856
2857
  index.h("div", { class: classes.RadioContent },
2857
2858
  text.notRegistered,
2858
2859
  index.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
2859
- index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
2860
+ index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled },
2860
2861
  index.h("div", { class: classes.RadioContent },
2861
2862
  text.otherRegion,
2862
2863
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
@@ -3061,7 +3062,7 @@ const IndirectTaxForm = class {
3061
3062
  : useIndirectTaxForm.useIndirectTaxForm(this);
3062
3063
  const registeredInDifferentCountryDetailsSlot = (index.h(sqmUserInfoFormView.OtherRegionSlotView, { states: {
3063
3064
  hide: props.states.formState.checked !== "otherRegion",
3064
- disabled: props.states.disabled || props.states.isPartner,
3065
+ disabled: props.states.disabled,
3065
3066
  formState: props.slotProps.formState,
3066
3067
  loading: props.states.loading,
3067
3068
  isPartner: props.states.isPartner,
@@ -3086,6 +3087,7 @@ function useDemoIndirectTaxForm(props) {
3086
3087
  disabled: false,
3087
3088
  loading: false,
3088
3089
  isPartner: false,
3090
+ isPartnerLegacy: false,
3089
3091
  loadingError: false,
3090
3092
  errors: {},
3091
3093
  formState: {
@@ -4443,7 +4445,7 @@ const GET_INDIRECT_TAX_COUNTRY_CODE = index_module.dist.gql `
4443
4445
  }
4444
4446
  `;
4445
4447
  function useUserInfoForm(props) {
4446
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4448
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
4447
4449
  const currencyRef = domContextHooks_module.useRef(undefined);
4448
4450
  const phoneCountryRef = domContextHooks_module.useRef(undefined);
4449
4451
  const formRef = domContextHooks_module.useRef(null);
@@ -4549,7 +4551,9 @@ function useUserInfoForm(props) {
4549
4551
  setFilteredPhoneCountries(countries || []);
4550
4552
  }
4551
4553
  else {
4552
- setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
4554
+ setFilteredPhoneCountries(countries.filter((c) => c.displayName
4555
+ .toLowerCase()
4556
+ .includes(phoneCountrySearch.toLowerCase())) || []);
4553
4557
  }
4554
4558
  }, [phoneCountrySearch, countries]);
4555
4559
  domContextHooks_module.useEffect(() => {
@@ -4563,7 +4567,7 @@ function useUserInfoForm(props) {
4563
4567
  }
4564
4568
  }, [currencySearch, currencies]);
4565
4569
  async function connectPartner(formData) {
4566
- var _a, _b, _c, _d;
4570
+ var _a, _b, _c, _d, _e, _f;
4567
4571
  const vars = {
4568
4572
  user: {
4569
4573
  id: user.id,
@@ -4577,36 +4581,34 @@ function useUserInfoForm(props) {
4577
4581
  city: formData.city,
4578
4582
  state: formData.state,
4579
4583
  postalCode: formData.postalCode,
4580
- phoneNumber: formData.phoneNumber,
4584
+ phoneNumber: subregions.toDomesticNumber(formData.phoneNumberCountryCode, formData.phoneNumber),
4581
4585
  phoneNumberCountryCode: formData.phoneNumberCountryCode,
4582
4586
  };
4587
+ // if user went through early partner creation, connectionStatus === "STARTED"
4588
+ // otherwise trigger legacy partner creation
4589
+ const userData = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
4583
4590
  let result = null;
4584
4591
  let connectionResult;
4585
- result = await completeImpactPartner({
4586
- vars,
4587
- });
4588
- connectionResult = (_a = result) === null || _a === void 0 ? void 0 : _a.completeImpactConnection;
4589
- // if (userData?.impactConnection?.connectionStatus === "STARTED") {
4590
- // result = await completeImpactPartner({
4591
- // vars,
4592
- // });
4593
- // connectionResult = (result as CompletePartnerResult)
4594
- // ?.completeImpactConnection;
4595
- // } else {
4596
- // result = await connectImpactPartner({
4597
- // vars,
4598
- // });
4599
- // connectionResult = (result as ConnectPartnerResult)
4600
- // ?.createImpactConnection;
4601
- // }
4602
- if (!result || ((_b = result) === null || _b === void 0 ? void 0 : _b.message))
4592
+ if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
4593
+ result = await completeImpactPartner({
4594
+ vars,
4595
+ });
4596
+ connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
4597
+ }
4598
+ else {
4599
+ result = await connectImpactPartner({
4600
+ vars,
4601
+ });
4602
+ connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
4603
+ }
4604
+ if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
4603
4605
  throw new Error();
4604
4606
  if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
4605
4607
  console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
4606
4608
  throw new Error();
4607
4609
  }
4608
4610
  await refetch();
4609
- const resultPublisher = (_d = (_c = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher;
4611
+ const resultPublisher = (_f = (_e = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher;
4610
4612
  const hasValidCurrentDocument = subregions.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
4611
4613
  // Fire form change event
4612
4614
  window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
@@ -4644,12 +4646,13 @@ function useUserInfoForm(props) {
4644
4646
  return;
4645
4647
  }
4646
4648
  const { allowBankingCollection, ...userData } = formData;
4649
+ const normalizedPhoneNumber = subregions.toDomesticNumber(userData.phoneNumberCountryCode, userData.phoneNumber);
4647
4650
  setUserFormContext({
4648
4651
  ...userFormContext,
4649
4652
  firstName: userData.firstName,
4650
4653
  lastName: userData.lastName,
4651
4654
  phoneNumberCountryCode: userData.phoneNumberCountryCode,
4652
- phoneNumber: userData.phoneNumber,
4655
+ phoneNumber: normalizedPhoneNumber,
4653
4656
  countryCode: userData.countryCode,
4654
4657
  address: userData.address,
4655
4658
  city: userData.city,
@@ -4660,7 +4663,10 @@ function useUserInfoForm(props) {
4660
4663
  const skipNextStep = getSkipNextStep(userData);
4661
4664
  if (skipNextStep) {
4662
4665
  try {
4663
- const { resultPublisher, hasValidCurrentDocument } = await connectPartner(formData);
4666
+ const { resultPublisher, hasValidCurrentDocument } = await connectPartner({
4667
+ ...formData,
4668
+ phoneNumber: normalizedPhoneNumber,
4669
+ });
4664
4670
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
4665
4671
  !hasValidCurrentDocument) {
4666
4672
  // Go to docusign form
@@ -4736,6 +4742,11 @@ function useUserInfoForm(props) {
4736
4742
  loading: loading || connectLoading || completeLoading,
4737
4743
  isPartner: !!((_g = (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
4738
4744
  isUser: !!((_j = (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
4745
+ // Show banner when pre-existing partner is created with legacy mutation createImpactConnection
4746
+ isUserLegacy: !!((_l = (_k = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _k === void 0 ? void 0 : _k.impactConnection) === null || _l === void 0 ? void 0 : _l.user) &&
4747
+ ((_o = (_m = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _m === void 0 ? void 0 : _m.impactConnection) === null || _o === void 0 ? void 0 : _o.connectionStatus) !== "STARTED",
4748
+ isPartnerLegacy: !!((_q = (_p = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _p === void 0 ? void 0 : _p.impactConnection) === null || _q === void 0 ? void 0 : _q.publisher) &&
4749
+ ((_s = (_r = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _r === void 0 ? void 0 : _r.impactConnection) === null || _s === void 0 ? void 0 : _s.connectionStatus) !== "STARTED",
4739
4750
  formState: {
4740
4751
  ...userFormContext,
4741
4752
  errors: formErrors,
@@ -4953,6 +4964,8 @@ function useDemoUserInfoForm(props) {
4953
4964
  loading: false,
4954
4965
  isPartner: false,
4955
4966
  isUser: false,
4967
+ isPartnerLegacy: false,
4968
+ isUserLegacy: false,
4956
4969
  loadingError: false,
4957
4970
  formState: {
4958
4971
  errors: {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
@@ -14,9 +14,11 @@ require('./useReferralCodes-0f7948af.js');
14
14
  require('./mixins-4761d472.js');
15
15
  const copyTextView = require('./copy-text-view-bb2c0ea7.js');
16
16
  require('./sqm-text-span-view-b9e10f5d.js');
17
- const usePortalRegistrationForm = require('./usePortalRegistrationForm-23ee2d62.js');
17
+ const AsYouType = require('./AsYouType-d15caac8.js');
18
+ const subregions = require('./subregions-3d27e279.js');
18
19
  const useRegistrationFormState = require('./useRegistrationFormState-4fe5b770.js');
19
20
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
21
+ const usePortalRegistrationForm = require('./usePortalRegistrationForm-8a3a14ac.js');
20
22
  const reRender = require('./re-render-72a0ef45.js');
21
23
  const useChildElements = require('./useChildElements-041127d7.js');
22
24
  const luxon = require('./luxon-c1ad356a.js');
@@ -24,16 +26,15 @@ const index$1 = require('./index-8c6255f5.js');
24
26
  const imageUrl = require('./imageUrl-a7880cab.js');
25
27
  const emailRegistrationView = require('./email-registration-view-306c8878.js');
26
28
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-2398df36.js');
27
- const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
29
+ const useLeadFormState = require('./useLeadFormState-bf49984b.js');
28
30
  const utilities = require('./utilities-fcdb9504.js');
29
31
  const ErrorView = require('./ErrorView-ee7b0f36.js');
30
- const ShadowViewAddon = require('./ShadowViewAddon-3b477e58.js');
32
+ const ShadowViewAddon = require('./ShadowViewAddon-05c6968d.js');
31
33
  require('./sqm-portal-container-view-757f921b.js');
32
- const subregions = require('./subregions-984e30d7.js');
33
34
  const data = require('./data-89ac73dd.js');
34
35
  const keys = require('./keys-5a2c9ed2.js');
35
36
  require('./eventKeys-7af4df4d.js');
36
- const useIndirectTaxForm = require('./useIndirectTaxForm-112914a0.js');
37
+ const useIndirectTaxForm = require('./useIndirectTaxForm-5211013b.js');
37
38
  const parseStates = require('./parseStates-d1effc19.js');
38
39
 
39
40
  /**
@@ -2145,7 +2146,7 @@ function useLeadForm(props) {
2145
2146
  const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
2146
2147
  if (name !== "tel")
2147
2148
  return;
2148
- const asYouType = new usePortalRegistrationForm.AsYouType("US");
2149
+ const asYouType = new AsYouType.AsYouType("US");
2149
2150
  e.target.value = asYouType.input(e.target.value);
2150
2151
  }, []);
2151
2152
  function resetForm() {
@@ -6661,15 +6662,19 @@ function getCurrentStep(user) {
6661
6662
  if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
6662
6663
  return "/1";
6663
6664
  }
6664
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, billingState, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
6665
- const hasBillingInfo = billingAddress &&
6666
- billingCity &&
6667
- billingCountryCode &&
6668
- billingPostalCode &&
6669
- phoneNumberCountryCode &&
6670
- phoneNumber;
6671
- if (!hasBillingInfo) {
6672
- return "/1";
6665
+ const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
6666
+ const isCompleted = user.impactConnection.connectionStatus === "COMPLETED";
6667
+ if (!isCompleted) {
6668
+ const hasBillingInfo = billingAddress &&
6669
+ billingCity &&
6670
+ billingCountryCode &&
6671
+ billingPostalCode &&
6672
+ phoneNumberCountryCode &&
6673
+ phoneNumber &&
6674
+ subregions.isValidI18nPhoneNumber(phoneNumberCountryCode, phoneNumber);
6675
+ if (!hasBillingInfo) {
6676
+ return "/1";
6677
+ }
6673
6678
  }
6674
6679
  // If they do have a required document, look at current document
6675
6680
  if (requiredTaxDocumentType && !currentTaxDocument) {
@@ -6688,7 +6693,7 @@ function useTaxAndCash() {
6688
6693
  const host = index_module._();
6689
6694
  const user = index_module.J();
6690
6695
  const locale = index_module.L();
6691
- const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(useIndirectTaxForm.COMPLETE_PARTNER);
6696
+ const [completeImpactPartner] = index_module.$e(useIndirectTaxForm.COMPLETE_PARTNER);
6692
6697
  // State for current step of form
6693
6698
  const [step, setStep] = index_module.In({
6694
6699
  namespace: data.TAX_CONTEXT_NAMESPACE,
@@ -6796,7 +6801,6 @@ function useTaxAndCash() {
6796
6801
  setCurrenciesContext(supportedCurrencies);
6797
6802
  }, [supportedCurrencies]);
6798
6803
  domContextHooks_module.useEffect(() => {
6799
- var _a;
6800
6804
  if (errors) {
6801
6805
  setStep("/error");
6802
6806
  return;
@@ -6811,7 +6815,8 @@ function useTaxAndCash() {
6811
6815
  publisher.billingCountryCode &&
6812
6816
  publisher.billingPostalCode &&
6813
6817
  publisher.phoneNumberCountryCode &&
6814
- publisher.phoneNumber;
6818
+ publisher.phoneNumber &&
6819
+ subregions.isValidI18nPhoneNumber(publisher.phoneNumberCountryCode, publisher.phoneNumber);
6815
6820
  if (hasBillingInfo &&
6816
6821
  ((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
6817
6822
  const vars = {
@@ -6839,13 +6844,19 @@ function useTaxAndCash() {
6839
6844
  const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
6840
6845
  if (!user || step !== "/loading")
6841
6846
  return;
6842
- if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
6843
- (user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
6844
- completeConnection(user);
6845
- refetch();
6847
+ async function routeAfterMaybeCompleting() {
6848
+ var _a;
6849
+ if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
6850
+ (user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
6851
+ // Finish the early-created connection before routing so the next
6852
+ // step sees the completed status
6853
+ await completeConnection(user);
6854
+ await refetch();
6855
+ }
6856
+ const currentStep = getCurrentStep(user);
6857
+ setStep(currentStep);
6846
6858
  }
6847
- const currentStep = getCurrentStep(user);
6848
- setStep(currentStep);
6859
+ routeAfterMaybeCompleting();
6849
6860
  }
6850
6861
  }, [host, user, (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
6851
6862
  function getFinanceNetworkFilter() {
@@ -8390,9 +8401,11 @@ function useWidgetVerification() {
8390
8401
  };
8391
8402
  const onPartnerModalComplete = () => {
8392
8403
  setShowPartnerModal(false);
8404
+ // Reset the latch so a later partner creation can re-trigger this effect
8393
8405
  setPartnerCreated(false);
8394
8406
  setContext(true);
8395
8407
  };
8408
+ // The modal signals completion by flipping partnerCreated; advance the flow here
8396
8409
  domContextHooks_module.useEffect(() => {
8397
8410
  if (partnerCreated)
8398
8411
  onPartnerModalComplete();
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -11,7 +11,7 @@ const utils = require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
12
  const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
13
13
  const data = require('./data-89ac73dd.js');
14
- const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-2b6fee0f.js');
14
+ const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-243aad7b.js');
15
15
  const keys = require('./keys-5a2c9ed2.js');
16
16
  const eventKeys = require('./eventKeys-7af4df4d.js');
17
17
  const parseStates = require('./parseStates-d1effc19.js');
@@ -243,7 +243,7 @@ sl-button[type="secondary"]::part(base):hover {
243
243
  *::part(input-label), *::part(select-label), *::part(textarea-label){
244
244
  font-family: var(--sqm-primary-font);
245
245
  font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
246
- font-weight: var(--sl-font-weight-semibold);
246
+ font-weight: var(--sl-font-weight-bold);
247
247
  color: var(--sqm-input-label-color, var(--sqm-text), black);
248
248
  }
249
249
 
@@ -506,7 +506,8 @@ function usePartnerInfoModal(props) {
506
506
  const { data: currenciesData, loading: currenciesLoading } = index_module.wn(GET_CURRENCIES, { variables: { locale } });
507
507
  const { data: countriesData, loading: countriesLoading } = index_module.wn(GET_COUNTRIES, {});
508
508
  // No pre-filled country, use locale to determine countryCode instead
509
- const [countryCode, setCountryCode] = domContextHooks_module.useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) || locale.replace(/^.*_/, ""));
509
+ const [countryCode, setCountryCode] = domContextHooks_module.useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
510
+ locale.replace(/^.*_/, ""));
510
511
  const [currency, setCurrency] = domContextHooks_module.useState(((_d = (_c = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.currency) || "");
511
512
  const { data: financeNetworkData } = index_module.wn(data.GET_FINANCE_NETWORK_SETTINGS, {
512
513
  variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
@@ -605,11 +606,7 @@ function usePartnerInfoModal(props) {
605
606
  }
606
607
  async function onSubmit() {
607
608
  var _a, _b;
608
- if (!allowBankingCollection) {
609
- setError(props.missingFieldsErrorText);
610
- return;
611
- }
612
- if (!countryCode || !currency) {
609
+ if (!allowBankingCollection || !countryCode || !currency) {
613
610
  setError(props.missingFieldsErrorText);
614
611
  return;
615
612
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  require('./index.module-f8c8495f.js');
9
9
  const utils = require('./utils-6847bc06.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-8277cbb3.js');
4
- const global = require('./global-b7b1b8fe.js');
4
+ const global = require('./global-258c36b8.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- require('./global-b7b1b8fe.js');
6
+ require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
- const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
13
- const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-0af2a157.js');
12
+ const useLeadFormState = require('./useLeadFormState-bf49984b.js');
13
+ const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-b3a85029.js');
14
14
 
15
15
  function useLeadCheckboxField() {
16
16
  const leadFormState = domContextHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-8277cbb3.js');
4
- const global = require('./global-b7b1b8fe.js');
4
+ const global = require('./global-258c36b8.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-4761d472.js');
7
7
 
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- require('./global-b7b1b8fe.js');
6
+ require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./mixins-4761d472.js');
13
- const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
14
- const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-0cd7ebdb.js');
13
+ const useLeadFormState = require('./useLeadFormState-bf49984b.js');
14
+ const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-88de1b78.js');
15
15
 
16
16
  function useLeadInputField() {
17
17
  const leadFormState = domContextHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-b7b1b8fe.js');
6
+ const global = require('./global-258c36b8.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
8
  const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-8277cbb3.js');
4
- const global = require('./global-b7b1b8fe.js');
4
+ const global = require('./global-258c36b8.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
@@ -131,13 +131,14 @@ function PartnerInfoModalView(props) {
131
131
  const styleString = sheet.toString();
132
132
  if (!states.open)
133
133
  return index.h("div", null);
134
+ const modalHeader = states.isExistingPartner
135
+ ? text.modalHeaderExistingPartner
136
+ : text.modalHeader;
134
137
  return (index.h("div", null,
135
138
  index.h("style", { type: "text/css" },
136
139
  " ",
137
140
  styleString),
138
- index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: states.isExistingPartner
139
- ? text.modalHeaderExistingPartner
140
- : text.modalHeader, "onSl-request-close": (e) => {
141
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: modalHeader, "onSl-request-close": (e) => {
141
142
  e.preventDefault();
142
143
  }, "onSl-hide": (e) => {
143
144
  var _a;
@@ -145,9 +146,7 @@ function PartnerInfoModalView(props) {
145
146
  e.preventDefault();
146
147
  }
147
148
  }, "onSl-initial-focus": callbacks.onInitialFocus },
148
- index.h("h2", { class: sheet.classes.DialogTitle }, states.isExistingPartner
149
- ? text.modalHeaderExistingPartner
150
- : text.modalHeader),
149
+ index.h("h2", { class: sheet.classes.DialogTitle }, modalHeader),
151
150
  index.h(PartnerInfoModalContentView, Object.assign({}, props)))));
152
151
  }
153
152