@saasquatch/mint-components 2.2.0 → 2.3.0-2

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 (375) hide show
  1. package/dist/cjs/{data-8c8a08f6.js → data-89ac73dd.js} +2 -90
  2. package/dist/cjs/eventKeys-7af4df4d.js +5 -0
  3. package/dist/cjs/{keys-cff24974.js → keys-5a2c9ed2.js} +4 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/parseStates-d1effc19.js +16 -0
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +461 -339
  8. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +450 -16
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -5
  10. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +893 -0
  11. package/dist/cjs/sqm-partner-info-modal-view-f6faecf5.js +149 -0
  12. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -9
  13. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +30 -9
  14. package/dist/cjs/sqm-stencilbook.cjs.entry.js +732 -326
  15. package/dist/cjs/{sqm-user-info-form-view-53306f6e.js → sqm-user-info-form-view-0e1ddbe4.js} +34 -426
  16. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  17. package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-c3c1ec56.js} +294 -5
  18. package/dist/cjs/utils-a3b3d05b.js +478 -0
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +171 -0
  21. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +143 -0
  22. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +670 -0
  23. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +276 -0
  24. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
  25. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
  26. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  27. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +209 -145
  28. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +30 -10
  29. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -0
  30. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  31. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +223 -137
  32. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +30 -10
  33. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -0
  34. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
  35. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
  36. package/dist/collection/components/sqm-widget-verification/keys.js +2 -0
  37. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
  38. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
  39. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +19 -9
  40. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +486 -46
  41. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +43 -11
  42. package/dist/collection/components/tax-and-cash/data.js +2 -0
  43. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +93 -37
  44. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +738 -13
  45. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +95 -1
  46. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
  47. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +59 -30
  48. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +51 -2
  49. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
  50. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +10 -18
  51. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
  52. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -17
  53. package/dist/esm/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +5 -5
  54. package/dist/{mint-components/p-0c0d4065.js → esm/data-8698cbc6.js} +25 -5
  55. package/dist/esm/eventKeys-f76b6a03.js +3 -0
  56. package/dist/esm/{global-96c14d63.js → global-75e96214.js} +1 -1
  57. package/dist/esm/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  58. package/dist/esm/keys-1054056a.js +8 -0
  59. package/dist/esm/loader.js +3 -3
  60. package/dist/esm/mint-components.js +3 -3
  61. package/dist/esm/parseStates-ed75e224.js +14 -0
  62. package/dist/esm/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  63. package/dist/esm/sqm-banking-info-form_10.entry.js +448 -326
  64. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +454 -21
  65. package/dist/esm/sqm-close-button.entry.js +1 -1
  66. package/dist/esm/sqm-code-verification.entry.js +7 -8
  67. package/dist/esm/sqm-context-router.entry.js +1 -1
  68. package/dist/esm/sqm-email-verification_2.entry.js +888 -0
  69. package/dist/esm/sqm-empty_4.entry.js +2 -2
  70. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  71. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  72. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  73. package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  74. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  75. package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  76. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  77. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  78. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  79. package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  80. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  81. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  82. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  83. package/dist/esm/sqm-partner-info-modal-view-d6f3a215.js +146 -0
  84. package/dist/esm/sqm-password-field.entry.js +2 -2
  85. package/dist/esm/sqm-popup-container.entry.js +1 -1
  86. package/dist/esm/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  87. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  88. package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
  89. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  90. package/dist/esm/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  91. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  92. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  93. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  94. package/dist/esm/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  95. package/dist/esm/sqm-qr-code.entry.js +2 -2
  96. package/dist/esm/sqm-referral-table_11.entry.js +32 -14
  97. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  98. package/dist/esm/sqm-rewards-table_9.entry.js +35 -14
  99. package/dist/esm/sqm-stencilbook.entry.js +708 -302
  100. package/dist/esm/sqm-tab.entry.js +2 -2
  101. package/dist/esm/sqm-tabs.entry.js +3 -3
  102. package/dist/esm/{sqm-user-info-form-view-19d81a2b.js → sqm-user-info-form-view-e1ba6009.js} +14 -403
  103. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  104. package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  105. package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-b2888ea5.js} +292 -5
  106. package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +2 -2
  107. package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +2 -2
  108. package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +2 -2
  109. package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  110. package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +3 -3
  111. package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  112. package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  113. package/dist/esm/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  114. package/dist/esm/utils-4f5cd04c.js +467 -0
  115. package/dist/esm-es5/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +1 -1
  116. package/dist/esm-es5/data-8698cbc6.js +1 -0
  117. package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
  118. package/dist/esm-es5/{global-96c14d63.js → global-75e96214.js} +1 -1
  119. package/dist/esm-es5/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  120. package/dist/esm-es5/keys-1054056a.js +1 -0
  121. package/dist/esm-es5/loader.js +1 -1
  122. package/dist/esm-es5/mint-components.js +1 -1
  123. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  124. package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  125. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  126. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
  127. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  128. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  129. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  130. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -0
  131. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  132. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  133. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  134. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  135. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  136. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  137. package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  138. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  139. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  140. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  141. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  142. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  143. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  144. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  145. package/dist/esm-es5/sqm-partner-info-modal-view-d6f3a215.js +1 -0
  146. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  147. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  148. package/dist/esm-es5/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  149. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  150. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  151. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  152. package/dist/esm-es5/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  153. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  154. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  155. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  156. package/dist/esm-es5/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  157. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  158. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  159. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  160. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  161. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  162. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  163. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  164. package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
  165. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  166. package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  167. package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
  168. package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +1 -1
  169. package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +1 -1
  170. package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +1 -1
  171. package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  172. package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +1 -1
  173. package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  174. package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  175. package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  176. package/dist/esm-es5/utils-4f5cd04c.js +1 -0
  177. package/dist/mint-components/mint-components.esm.js +1 -1
  178. package/dist/mint-components/mint-components.js +1 -1
  179. package/dist/mint-components/{p-626b31cb.system.entry.js → p-025ddad2.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-5b871e38.system.entry.js → p-02c0f88e.system.entry.js} +1 -1
  181. package/dist/mint-components/{p-f55ecf35.system.js → p-02e2b13b.system.js} +1 -1
  182. package/dist/mint-components/{p-a4f8abad.js → p-0766438e.js} +1 -1
  183. package/dist/mint-components/{p-205cfdcd.system.js → p-0815b973.system.js} +1 -1
  184. package/dist/mint-components/{p-db0a2afd.entry.js → p-092c2606.entry.js} +1 -1
  185. package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-099ce3d5.system.entry.js} +1 -1
  186. package/dist/mint-components/p-0a6489fa.entry.js +1 -0
  187. package/dist/mint-components/p-0afa6148.js +1 -0
  188. package/dist/mint-components/{p-fc284f91.system.entry.js → p-0b32e1d4.system.entry.js} +1 -1
  189. package/dist/mint-components/p-115dfc03.system.js +1 -0
  190. package/dist/mint-components/{p-7b59e13c.system.js → p-1317cc92.system.js} +1 -1
  191. package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-13bb56a8.system.entry.js} +1 -1
  192. package/dist/mint-components/{p-f8a09b0f.js → p-13d8ecad.js} +1 -1
  193. package/dist/mint-components/p-13f3a647.js +1 -0
  194. package/dist/mint-components/{p-61897e72.entry.js → p-14183edc.entry.js} +1 -1
  195. package/dist/mint-components/{p-8f2d03c7.entry.js → p-1599a178.entry.js} +1 -1
  196. package/dist/mint-components/{p-02499e08.entry.js → p-1b0326d1.entry.js} +1 -1
  197. package/dist/mint-components/p-1d398dbc.entry.js +11 -0
  198. package/dist/mint-components/p-1d86895f.system.js +1 -0
  199. package/dist/mint-components/p-1e6a2945.js +1 -0
  200. package/dist/mint-components/{p-c8a3f3b0.js → p-1efb42e2.js} +1 -1
  201. package/dist/mint-components/p-1f387c7b.system.js +1 -0
  202. package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-209157a9.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-30c1ef36.system.js → p-2190dc73.system.js} +1 -1
  204. package/dist/mint-components/{p-80e116ec.system.entry.js → p-24f1d342.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-6668f9f0.entry.js → p-27daf264.entry.js} +1 -1
  206. package/dist/mint-components/p-28ed2ae9.js +1 -0
  207. package/dist/mint-components/{p-09f7aacd.entry.js → p-29bc5f50.entry.js} +2 -2
  208. package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
  209. package/dist/mint-components/p-2ed13619.entry.js +1 -0
  210. package/dist/mint-components/{p-c45a929a.system.entry.js → p-30cfe3e3.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-d55c50af.system.js → p-31815fb6.system.js} +1 -1
  212. package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-3354cc75.system.entry.js} +1 -1
  213. package/dist/mint-components/{p-5bc5c61e.entry.js → p-335a5736.entry.js} +1 -1
  214. package/dist/mint-components/{p-e9485160.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
  215. package/dist/mint-components/p-3596e241.entry.js +116 -0
  216. package/dist/mint-components/{p-8583ce0c.system.js → p-376c7608.system.js} +1 -1
  217. package/dist/mint-components/p-37e24621.system.entry.js +1 -0
  218. package/dist/mint-components/{p-95510f27.entry.js → p-38d04e4b.entry.js} +1 -1
  219. package/dist/mint-components/{p-e84b874c.js → p-3a41b39c.js} +1 -1
  220. package/dist/mint-components/{p-e5ea43b1.entry.js → p-3bbc0db2.entry.js} +2 -2
  221. package/dist/mint-components/{p-982d1f6f.entry.js → p-432a44de.entry.js} +3 -2
  222. package/dist/mint-components/{p-bab4929e.js → p-45230a44.js} +1 -1
  223. package/dist/mint-components/p-4691e9d5.system.js +1 -0
  224. package/dist/mint-components/{p-1d92c169.entry.js → p-4d73a616.entry.js} +1 -1
  225. package/dist/mint-components/{p-3bc62ca6.entry.js → p-4e3db52b.entry.js} +1 -1
  226. package/dist/mint-components/{p-3286ef38.js → p-4eaa3eb7.js} +1 -1
  227. package/dist/mint-components/{p-013564b3.entry.js → p-4eadbd5b.entry.js} +1 -1
  228. package/dist/mint-components/p-4f9dc974.js +1 -0
  229. package/dist/mint-components/{p-f7ca4cc4.system.entry.js → p-51ae6716.system.entry.js} +1 -1
  230. package/dist/mint-components/p-56b33268.system.entry.js +1 -0
  231. package/dist/mint-components/p-58c24352.system.js +6 -0
  232. package/dist/mint-components/p-5c52100b.js +117 -0
  233. package/dist/mint-components/{p-77b9cde8.system.js → p-5fdf0286.system.js} +1 -1
  234. package/dist/mint-components/{p-09348341.entry.js → p-60b1f3d9.entry.js} +1 -1
  235. package/dist/mint-components/{p-d005df28.system.entry.js → p-623a0a0b.system.entry.js} +1 -1
  236. package/dist/mint-components/{p-c30d0049.system.entry.js → p-6b4e5d94.system.entry.js} +1 -1
  237. package/dist/mint-components/{p-f4e36adf.system.entry.js → p-6f6c3ac6.system.entry.js} +1 -1
  238. package/dist/mint-components/p-6f8dde97.system.js +1 -0
  239. package/dist/mint-components/{p-43c31fd5.system.js → p-7628e56f.system.js} +1 -1
  240. package/dist/mint-components/{p-653db72e.entry.js → p-78e6dc8d.entry.js} +1 -1
  241. package/dist/mint-components/{p-f581aac7.js → p-7a091fa7.js} +1 -1
  242. package/dist/mint-components/{p-40bad95a.entry.js → p-7cbdf341.entry.js} +2 -2
  243. package/dist/mint-components/{p-044f930a.system.js → p-7d2d9ef9.system.js} +1 -1
  244. package/dist/mint-components/{p-5c4ba8a0.entry.js → p-7ea3f49c.entry.js} +1 -1
  245. package/dist/mint-components/{p-5ce78407.system.entry.js → p-81bc6dca.system.entry.js} +1 -1
  246. package/dist/mint-components/{p-f6528f8a.entry.js → p-84495fb8.entry.js} +1 -1
  247. package/dist/mint-components/{p-b96e90a2.system.entry.js → p-86d20b47.system.entry.js} +1 -1
  248. package/dist/mint-components/p-87f86492.js +1 -0
  249. package/dist/mint-components/{p-d0993bb9.js → p-8a6531d2.js} +1 -1
  250. package/dist/mint-components/p-8ae8968c.js +1 -0
  251. package/dist/mint-components/{p-7265bbcb.system.js → p-8e148cb0.system.js} +1 -1
  252. package/dist/mint-components/p-8f15bf17.entry.js +1 -0
  253. package/dist/mint-components/{p-b66f45d1.entry.js → p-921eb024.entry.js} +1 -1
  254. package/dist/mint-components/{p-f1374258.system.entry.js → p-925aa740.system.entry.js} +1 -1
  255. package/dist/mint-components/p-99eecdcb.system.entry.js +1 -0
  256. package/dist/mint-components/{p-e12754f5.system.entry.js → p-9a15cd5a.system.entry.js} +1 -1
  257. package/dist/mint-components/p-9c1f5317.system.js +1 -0
  258. package/dist/mint-components/{p-832aea99.js → p-9f48640d.js} +1 -1
  259. package/dist/mint-components/p-a38eece5.system.entry.js +1 -0
  260. package/dist/mint-components/p-a49d9288.entry.js +1 -0
  261. package/dist/mint-components/{p-90833864.system.entry.js → p-ab59c5eb.system.entry.js} +1 -1
  262. package/dist/mint-components/{p-e6240c72.js → p-abd717d4.js} +1 -1
  263. package/dist/mint-components/p-abe9f5b1.js +99 -0
  264. package/dist/mint-components/p-ae2f610e.system.js +1 -0
  265. package/dist/mint-components/p-b222bace.system.entry.js +1 -0
  266. package/dist/mint-components/{p-19c441b2.system.js → p-b2ad3fca.system.js} +1 -1
  267. package/dist/mint-components/{p-c8a8d231.entry.js → p-b3309d9b.entry.js} +2 -2
  268. package/dist/mint-components/p-b419f9ac.entry.js +299 -0
  269. package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
  270. package/dist/mint-components/p-b96ed8eb.js +1 -0
  271. package/dist/mint-components/p-badf28bb.system.js +1 -0
  272. package/dist/mint-components/{p-035d9b65.js → p-bb0b5e4b.js} +1 -1
  273. package/dist/mint-components/{p-52674798.entry.js → p-bcfdb510.entry.js} +1 -1
  274. package/dist/mint-components/p-be6a0dee.system.js +1 -0
  275. package/dist/mint-components/{p-642f2c89.js → p-bf9ab2d3.js} +1 -1
  276. package/dist/mint-components/{p-bc386a7b.js → p-c0a85e22.js} +1 -1
  277. package/dist/mint-components/p-c0f8f977.system.entry.js +1 -0
  278. package/dist/mint-components/p-c41d536d.entry.js +1 -0
  279. package/dist/mint-components/{p-a0c5631b.system.js → p-c66e5217.system.js} +1 -1
  280. package/dist/mint-components/p-cdabd9de.system.js +1 -0
  281. package/dist/mint-components/p-cfc35705.system.entry.js +1 -0
  282. package/dist/mint-components/{p-0d83907e.js → p-cfea215d.js} +1 -1
  283. package/dist/mint-components/p-d08408b3.entry.js +1 -0
  284. package/dist/mint-components/{p-172675ca.system.js → p-d284ae70.system.js} +1 -1
  285. package/dist/mint-components/{p-027fc3be.system.entry.js → p-d34564f8.system.entry.js} +1 -1
  286. package/dist/mint-components/{p-1021a49f.system.entry.js → p-db6bf7cf.system.entry.js} +1 -1
  287. package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-df897432.system.entry.js} +1 -1
  288. package/dist/mint-components/{p-036a2617.system.js → p-e651593c.system.js} +1 -1
  289. package/dist/mint-components/{p-f39cf252.system.entry.js → p-e6de31a7.system.entry.js} +1 -1
  290. package/dist/mint-components/{p-2668335b.js → p-e8e7af06.js} +1 -1
  291. package/dist/mint-components/{p-85721089.system.js → p-e920c95c.system.js} +1 -1
  292. package/dist/mint-components/{p-3366b81e.js → p-eae44b42.js} +2 -2
  293. package/dist/mint-components/p-ebc519bc.system.js +1 -0
  294. package/dist/mint-components/{p-af407cce.entry.js → p-ef32fa8f.entry.js} +1 -1
  295. package/dist/mint-components/{p-7efb8782.system.js → p-f32050f6.system.js} +1 -1
  296. package/dist/mint-components/{p-782af7ae.system.entry.js → p-f6de2e5c.system.entry.js} +1 -1
  297. package/dist/mint-components/{p-9390586b.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
  298. package/dist/mint-components/p-ff013776.entry.js +9 -0
  299. package/dist/mint-components/p-ffcebe78.entry.js +83 -0
  300. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +15 -0
  301. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +50 -0
  302. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +123 -0
  303. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +17 -0
  304. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +18 -1
  305. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +19 -7
  306. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
  307. package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
  308. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +75 -7
  309. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
  310. package/dist/types/components/tax-and-cash/data.d.ts +3 -0
  311. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +8 -0
  312. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
  313. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +173 -0
  314. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
  315. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
  316. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -5
  317. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
  318. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
  319. package/dist/types/components.d.ts +644 -32
  320. package/dist/types/saasquatch.d.ts +2 -0
  321. package/docs/docs.docx +0 -0
  322. package/docs/raisins.json +1 -1
  323. package/grapesjs/grapesjs.js +1 -1
  324. package/package.json +2 -4
  325. package/dist/cjs/extractProps-e9c55ba8.js +0 -35
  326. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
  327. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
  328. package/dist/esm/data-12e6aae1.js +0 -216
  329. package/dist/esm/extractProps-54064fb0.js +0 -32
  330. package/dist/esm/keys-406491dc.js +0 -6
  331. package/dist/esm/sqm-email-verification.entry.js +0 -414
  332. package/dist/esm/sqm-widget-verification.entry.js +0 -210
  333. package/dist/esm-es5/data-12e6aae1.js +0 -1
  334. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  335. package/dist/esm-es5/keys-406491dc.js +0 -1
  336. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  337. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  338. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
  339. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  340. package/dist/esm-es5/usePayoutStatus-46c0c289.js +0 -6
  341. package/dist/mint-components/p-00b235c5.system.entry.js +0 -1
  342. package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
  343. package/dist/mint-components/p-0797a946.js +0 -1
  344. package/dist/mint-components/p-13292317.entry.js +0 -11
  345. package/dist/mint-components/p-2d5c2bd4.system.entry.js +0 -1
  346. package/dist/mint-components/p-38c7775a.js +0 -1
  347. package/dist/mint-components/p-3adbfd0b.system.js +0 -6
  348. package/dist/mint-components/p-3af3e2c1.entry.js +0 -25
  349. package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
  350. package/dist/mint-components/p-57dd28bd.system.js +0 -1
  351. package/dist/mint-components/p-5b1d2866.system.js +0 -1
  352. package/dist/mint-components/p-6c4ad51a.js +0 -1
  353. package/dist/mint-components/p-77fa2383.entry.js +0 -1
  354. package/dist/mint-components/p-7939e4af.entry.js +0 -1
  355. package/dist/mint-components/p-8285869e.entry.js +0 -9
  356. package/dist/mint-components/p-892797eb.system.entry.js +0 -1
  357. package/dist/mint-components/p-91a96e98.entry.js +0 -1
  358. package/dist/mint-components/p-b2b85238.entry.js +0 -1
  359. package/dist/mint-components/p-b395470f.entry.js +0 -16
  360. package/dist/mint-components/p-bba16a46.system.entry.js +0 -1
  361. package/dist/mint-components/p-be12607e.entry.js +0 -281
  362. package/dist/mint-components/p-bf188b72.system.entry.js +0 -1
  363. package/dist/mint-components/p-ca098be1.system.js +0 -1
  364. package/dist/mint-components/p-d18dedd4.js +0 -1
  365. package/dist/mint-components/p-d4f332a7.entry.js +0 -106
  366. package/dist/mint-components/p-d6193876.system.js +0 -1
  367. package/dist/mint-components/p-de0d6fd7.js +0 -49
  368. package/dist/mint-components/p-e00ec007.js +0 -1
  369. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  370. package/dist/mint-components/p-ea03e50e.system.js +0 -1
  371. package/dist/mint-components/p-ec0b649a.entry.js +0 -1
  372. package/dist/mint-components/p-f8026ed6.system.js +0 -1
  373. package/dist/mint-components/p-fb804001.system.entry.js +0 -1
  374. package/dist/mint-components/p-fe70e20c.entry.js +0 -1
  375. package/dist/mint-components/p-ff118a19.system.js +0 -1
@@ -0,0 +1,893 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8277cbb3.js');
6
+ const global = require('./global-b7b1b8fe.js');
7
+ const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
+ const index_module = require('./index.module-f8c8495f.js');
9
+ const cjs = require('./cjs-1066ec21.js');
10
+ const utils = require('./utils-6847bc06.js');
11
+ const JSS = require('./JSS-8503a151.js');
12
+ const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
13
+ const data = require('./data-89ac73dd.js');
14
+ const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-f6faecf5.js');
15
+ const keys = require('./keys-5a2c9ed2.js');
16
+ const eventKeys = require('./eventKeys-7af4df4d.js');
17
+ const parseStates = require('./parseStates-d1effc19.js');
18
+ const useVerificationEmail = require('./useVerificationEmail-5d19aa99.js');
19
+
20
+ const UpsertUserEmailMutation = index_module.dist.gql `
21
+ mutation upsertUser($userInput: UserInput!) {
22
+ upsertUser(userInput: $userInput) {
23
+ id
24
+ accountId
25
+ email
26
+ }
27
+ }
28
+ `;
29
+ const UserLookupQuery = index_module.dist.gql `
30
+ query user {
31
+ viewer {
32
+ ... on User {
33
+ id
34
+ accountId
35
+ email
36
+ impactConnection {
37
+ user {
38
+ id
39
+ email
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ `;
46
+ function useUpsertUserEmail() {
47
+ const user = index_module.J();
48
+ const [request, { loading: loading, data, errors }] = index_module.$e(UpsertUserEmailMutation);
49
+ const upsertUserEmail = async (email) => {
50
+ try {
51
+ const result = await request({
52
+ userInput: {
53
+ id: user.id,
54
+ accountId: user.accountId,
55
+ email,
56
+ },
57
+ });
58
+ if (result instanceof Error || !result)
59
+ throw new Error();
60
+ return result;
61
+ }
62
+ catch (e) {
63
+ console.error("Could not set email on user", e);
64
+ return undefined;
65
+ }
66
+ };
67
+ return [
68
+ upsertUserEmail,
69
+ {
70
+ loading,
71
+ data,
72
+ errors,
73
+ },
74
+ ];
75
+ }
76
+ function useWidgetEmailVerification(props) {
77
+ const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
78
+ const [_email, setEmail] = index_module.Pn(keys.VERIFICATION_EMAIL_NAMESPACE);
79
+ const [emailExists, setEmailExists] = domContextHooks_module.useState(false);
80
+ const [error, setError] = domContextHooks_module.useState(false);
81
+ const [mutationError, setMutationError] = domContextHooks_module.useState(false);
82
+ const { initialized, send: [sendEmail, { loading: sendLoading, errors }], } = useVerificationEmail.useVerificationEmail();
83
+ const [upsertUserEmail] = useUpsertUserEmail();
84
+ const [loading, setLoading] = domContextHooks_module.useState(true);
85
+ const { data, loading: initialLoading } = index_module.wn(UserLookupQuery, {});
86
+ const emailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
87
+ domContextHooks_module.useEffect(() => {
88
+ if (!(data === null || data === void 0 ? void 0 : data.viewer))
89
+ return;
90
+ setEmailExists(!!data.viewer.email);
91
+ }, [data]);
92
+ domContextHooks_module.useEffect(() => {
93
+ if (initialized)
94
+ setLoading(false);
95
+ }, [initialized]);
96
+ const submitEmail = async (e) => {
97
+ var _a, _b, _c, _d;
98
+ e.preventDefault();
99
+ if (!(data === null || data === void 0 ? void 0 : data.viewer))
100
+ return;
101
+ setLoading(true);
102
+ setMutationError(false);
103
+ setError(false);
104
+ let toAddress = data.viewer.email;
105
+ if (!toAddress) {
106
+ const formData = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.formData;
107
+ const newEmail = (_c = (_b = formData === null || formData === void 0 ? void 0 : formData.get("email")) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
108
+ if (!emailRegex.test(newEmail)) {
109
+ setError(true);
110
+ setLoading(false);
111
+ return;
112
+ }
113
+ const upsertResult = await upsertUserEmail(newEmail);
114
+ if (!upsertResult || !((_d = upsertResult.upsertUser) === null || _d === void 0 ? void 0 : _d.email)) {
115
+ setError(true);
116
+ setLoading(false);
117
+ return;
118
+ }
119
+ toAddress = upsertResult.upsertUser.email;
120
+ }
121
+ // UI should not allow this call til initialisation is done
122
+ if (!initialized) {
123
+ setLoading(false);
124
+ return;
125
+ }
126
+ const result = await sendEmail();
127
+ if (!result || !result.success) {
128
+ setMutationError(true);
129
+ }
130
+ else {
131
+ // This is used to let the code verification widget know an email was already sent
132
+ setEmail(toAddress);
133
+ setShowCode(true);
134
+ }
135
+ setLoading(false);
136
+ };
137
+ return {
138
+ callbacks: {
139
+ submitEmail,
140
+ },
141
+ states: {
142
+ loading,
143
+ initialLoading: initialLoading && !initialized,
144
+ error,
145
+ email: data === null || data === void 0 ? void 0 : data.viewer.email,
146
+ sendCodeError: mutationError,
147
+ },
148
+ text: props.getTextProps(),
149
+ };
150
+ }
151
+
152
+ const style = {
153
+ Wrapper: {
154
+ display: "flex",
155
+ flexDirection: "column",
156
+ gap: "var(--sl-spacing-medium)",
157
+ marginTop: "var(--sl-spacing-medium)",
158
+ },
159
+ InputsContainer: {
160
+ display: "flex",
161
+ gap: "var(--sl-spacing-medium)",
162
+ position: "relative",
163
+ flexDirection: "column",
164
+ },
165
+ ContinueButton: {
166
+ width: "100%",
167
+ },
168
+ SkeletonOne: {
169
+ width: "50%",
170
+ height: "16px",
171
+ },
172
+ SkeletonTwo: {
173
+ width: "30%",
174
+ height: "34px",
175
+ },
176
+ SkeletonThree: {
177
+ width: "15%",
178
+ height: "24px",
179
+ },
180
+ ErrorInput: {
181
+ "&::part(base)": {
182
+ border: "var(--sqm-border-thickness) solid var(--sqm-danger-color-border)",
183
+ borderRadius: "var(--sqm-input-border-radius)",
184
+ },
185
+ "&::part(help-text)": {
186
+ color: "var(--sqm-danger-color-text)",
187
+ },
188
+ },
189
+ };
190
+ const vanillaStyle = `
191
+ :host {
192
+ display: block;
193
+ }
194
+ :host([hidden]): {
195
+ display: none;
196
+ }
197
+
198
+ a {
199
+ color: inherit;
200
+ text-decoration: underline;
201
+ cursor: pointer;
202
+ }
203
+
204
+ *::part(primarybutton-base),
205
+ sl-button[type="primary"]::part(base) {
206
+ font-family: var(--sqm-primary-font);
207
+ width: 100%;
208
+ background-color: var(--sqm-primary-button-background);
209
+ color: var(--sqm-primary-button-color);
210
+ border-color: var(--sqm-primary-button-color-border);
211
+ border-radius: var(--sqm-primary-button-radius);
212
+ }
213
+
214
+ *::part(primarybutton-base):hover,
215
+ sl-button[type="primary"]::part(base):hover{
216
+ background-color: var(--sqm-primary-button-background-hover);
217
+ border-color: var(--sqm-primary-button-border-color-hover);
218
+ color: var(--sqm-primary-button-color-hover);
219
+ }
220
+
221
+
222
+ *::part(primarybutton-base):focus,
223
+ sl-button[type="primary"]::part(base):focus {
224
+ box-shadow: none;
225
+ }
226
+
227
+ *::part(secondarybutton-base),
228
+ sl-button[type="secondary"]::part(base) {
229
+ font-family: var(--sqm-primary-font);
230
+ background-color: var(--sqm-secondary-button-background);
231
+ color: var(--sqm-secondary-button-color);
232
+ border-color: var(--sqm-secondary-button-color-border);
233
+ border-radius: var(--sqm-secondary-button-radius);
234
+ }
235
+
236
+ *::part(secondarybutton-base):hover,
237
+ sl-button[type="secondary"]::part(base):hover {
238
+ background-color: var(--sqm-secondary-button-background-hover);
239
+ color: var(--sqm-secondary-button-color-hover);
240
+ border-color: var(--sqm-secondary-button-border-color-hover);
241
+ }
242
+
243
+ *::part(input-label), *::part(select-label), *::part(textarea-label){
244
+ font-family: var(--sqm-primary-font);
245
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
246
+ font-weight: var(--sl-font-weight-semibold);
247
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
248
+ }
249
+
250
+ *::part(input-base), *::part(select-base), *::part(textarea-base){
251
+ font-family: var(--sqm-primary-font);
252
+ background-color: var(--sqm-input-background, #fff);
253
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
254
+ color: var(--sqm-input-color, white);
255
+ border-width: var(--sqm-border-thickness, 1px);
256
+ }
257
+
258
+ *::part(input-base):hover, *::part(select-base):hover, *::part(textarea-base):hover{
259
+ border-color: var(--sqm-border-color-hover);
260
+ }
261
+
262
+ *::part(input-base):focus, *::part(select-base):focus, *::part(textarea-base):focus{
263
+ border-color: var(--sqm-border-color-focus);
264
+ }
265
+
266
+ sqm-name-fields::part(input-base) {
267
+ font-family: var(--sqm-primary-font);
268
+ background-color: var(--sqm-input-background, #fff);
269
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
270
+ color: var(--sqm-input-color, white);
271
+ border-width: var(--sqm-border-thickness, 1px);
272
+ }
273
+
274
+ sl-input::part(base):focus,
275
+ sl-select::part(form-control-wrapper):focus,
276
+ sl-textarea::part(textarea-label):focus {
277
+ border-color: var(--sqm-border-color-focus);
278
+ }
279
+
280
+ *::part(input-label):disabled, *::part(select-label):disabled, *::part(textarea-label):disabled{
281
+ background: var(--sqm-input-disabled-background, #f5f5f5);
282
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
283
+ }
284
+
285
+ *::part(input):-webkit-autofill {
286
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
287
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
288
+ }
289
+
290
+ *::part(input):-webkit-autofill:hover {
291
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
292
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
293
+ }
294
+
295
+ *::part(input):-webkit-autofill:focus {
296
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
297
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
298
+ }
299
+
300
+ *::part(input)::placeholder,
301
+ *::part(select)::placeholder,
302
+ *::part(textarea)::placeholder {
303
+ font-family: var(--sqm-primary-font);
304
+ color: var(--sqm-text-subdued);
305
+ }
306
+
307
+ *::part(input)::-webkit-input-placeholder,
308
+ *::part(select)::-webkit-input-placeholder,
309
+ *::part(textarea)::-webkit-input-placeholder {
310
+ font-family: var(--sqm-primary-font);
311
+ color: var(--sqm-text-subdued);
312
+ }
313
+
314
+ *::part(input)::-moz-placeholder,
315
+ *::part(select)::-moz-placeholder,
316
+ *::part(textarea)::-moz-placeholder {
317
+ font-family: var(--sqm-primary-font);
318
+ opacity: 1; /* Firefox adds an opacity to placeholders by default */
319
+ color: var(--sqm-text-subdued);
320
+ }
321
+
322
+ *::part(input)::-ms-input-placeholder,
323
+ *::part(select)::-ms-input-placeholder,
324
+ *::part(textarea)::-ms-input-placeholder {
325
+ font-family: var(--sqm-primary-font);
326
+ color: var(--sqm-text-subdued);
327
+ }
328
+
329
+
330
+ `;
331
+ const sheet = JSS.createStyleSheet(style);
332
+ const styleString = sheet.toString();
333
+ function WidgetEmailVerificationView(props) {
334
+ const { states, callbacks, text } = props;
335
+ const renderLoadingSkeleton = () => {
336
+ return (index.h("div", { class: sheet.classes.Wrapper },
337
+ index.h("sqm-skeleton", { height: "16px", width: "50%" }),
338
+ index.h("sqm-skeleton", { height: "16px", width: "50%" }),
339
+ index.h("sqm-skeleton", { height: "16px", width: "50%" }),
340
+ index.h("sqm-skeleton", { height: "34px", width: "30%" }),
341
+ index.h("sqm-skeleton", { height: "24px", width: "15%" }),
342
+ index.h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: true, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)));
343
+ };
344
+ return (index.h("div", { part: "sqm-base" },
345
+ index.h("style", { type: "text/css" },
346
+ vanillaStyle,
347
+ styleString),
348
+ states.sendCodeError && (index.h("sqm-form-message", { type: "error" },
349
+ index.h("p", { part: "alert-title" }, text.sendCodeErrorHeader),
350
+ global.intl.formatMessage({
351
+ id: "sendCodeErrorDescription",
352
+ defaultMessage: text.sendCodeErrorDescription,
353
+ }, {
354
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
355
+ }))),
356
+ states.initialLoading ? (renderLoadingSkeleton()) : (index.h("div", { class: sheet.classes.Wrapper },
357
+ index.h(sqmTextSpanView.TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
358
+ index.h("sl-form", { "onSl-submit": callbacks.submitEmail },
359
+ index.h("div", { class: sheet.classes.InputsContainer },
360
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.emailLabel, value: states.email || "", type: "email", id: "email", name: "email", disabled: !!states.email || states.loading }, (states.error
361
+ ? {
362
+ class: sheet.classes.ErrorInput,
363
+ helpText: text.emailValidationErrorText,
364
+ }
365
+ : {}))),
366
+ index.h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)))))));
367
+ }
368
+
369
+ const WidgetEmailVerification = class {
370
+ constructor(hostRef) {
371
+ index.registerInstance(this, hostRef);
372
+ /**
373
+ * @uiName Verify email widget header text
374
+ */
375
+ this.verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
376
+ /**
377
+ * @uiName Send code to email alert header
378
+ */
379
+ this.sendCodeErrorHeader = "There was an error sending your code";
380
+ /**
381
+ * @uiName Support link text
382
+ */
383
+ this.supportLink = "support team";
384
+ /**
385
+ * @uiName Send code to email alert description
386
+ */
387
+ this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program {supportLink}.";
388
+ /**
389
+ * @uiName Email input label
390
+ */
391
+ this.emailLabel = "Email";
392
+ /**
393
+ * @uiName Send code button text
394
+ */
395
+ this.sendCodeText = "Send code";
396
+ /**
397
+ * @uiName Send code button text
398
+ */
399
+ this.emailValidationErrorText = "Please enter a valid email";
400
+ domContextHooks_module.h$1(this);
401
+ }
402
+ disconnectedCallback() { }
403
+ getTextProps() {
404
+ return utils.getProps(this);
405
+ }
406
+ render() {
407
+ const props = index_module.isDemo()
408
+ ? useDemoWidgetEmailVerification(this)
409
+ : useWidgetEmailVerification(this);
410
+ return index.h(WidgetEmailVerificationView, Object.assign({}, props));
411
+ }
412
+ };
413
+ function useDemoWidgetEmailVerification(props) {
414
+ const setShowCode = index_module.En(keys.SHOW_CODE_NAMESPACE);
415
+ return cjs.cjs({
416
+ states: {
417
+ error: true,
418
+ initialLoading: false,
419
+ loading: false,
420
+ email: "test@example.com",
421
+ sendCodeError: true,
422
+ },
423
+ callbacks: {
424
+ submitEmail: async () => setShowCode(true),
425
+ },
426
+ text: props.getTextProps(),
427
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
428
+ }
429
+
430
+ const GET_USER_PARTNER_INFO = index_module.dist.gql `
431
+ query getUserPartnerInfo {
432
+ user: viewer {
433
+ ... on User {
434
+ id
435
+ accountId
436
+ firstName
437
+ lastName
438
+ email
439
+ countryCode
440
+ customFields
441
+ impactConnection {
442
+ connected
443
+ connectionStatus
444
+ publisher {
445
+ id
446
+ countryCode
447
+ currency
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ `;
454
+ const GET_COUNTRIES = index_module.dist.gql `
455
+ query getCountries {
456
+ impactPayoutCountries(limit: 1000) {
457
+ data {
458
+ countryCode
459
+ displayName
460
+ }
461
+ }
462
+ }
463
+ `;
464
+ const GET_CURRENCIES = index_module.dist.gql `
465
+ query currencies($locale: RSLocale) {
466
+ currencies(limit: 300) {
467
+ data {
468
+ displayName(locale: $locale)
469
+ currencyCode
470
+ }
471
+ }
472
+ }
473
+ `;
474
+ const CONNECT_PARTNER = index_module.dist.gql `
475
+ mutation createImpactConnection($vars: ImpactConnectionInput!) {
476
+ createImpactConnection(impactConnectionInput: $vars) {
477
+ success
478
+ validationErrors {
479
+ field
480
+ message
481
+ }
482
+ user {
483
+ id
484
+ accountId
485
+ impactConnection {
486
+ connected
487
+ publisher {
488
+ brandedSignup
489
+ requiredTaxDocumentType
490
+ currentTaxDocument {
491
+ type
492
+ status
493
+ }
494
+ }
495
+ }
496
+ }
497
+ }
498
+ }
499
+ `;
500
+ const START_IMPACT_CONNECTION = index_module.dist.gql `
501
+ mutation startImpactConnection($vars: ImpactConnectionInput!) {
502
+ startImpactConnection(impactConnectionInput: $vars) {
503
+ success
504
+ validationErrors {
505
+ field
506
+ message
507
+ }
508
+ user {
509
+ id
510
+ accountId
511
+ impactConnection {
512
+ connected
513
+ publisher {
514
+ brandedSignup
515
+ requiredTaxDocumentType
516
+ currentTaxDocument {
517
+ type
518
+ status
519
+ }
520
+ }
521
+ }
522
+ }
523
+ }
524
+ }
525
+ `;
526
+ function usePartnerInfoModal(props) {
527
+ var _a, _b, _c, _d, _e, _f, _g;
528
+ const locale = index_module.L();
529
+ const setPartnerCreated = index_module.En(keys.PARTNER_CREATED_NAMESPACE);
530
+ const { data: userData, loading: userLoading, refetch, } = index_module.wn(GET_USER_PARTNER_INFO, {});
531
+ const user = userData === null || userData === void 0 ? void 0 : userData.user;
532
+ const { data: currenciesData, loading: currenciesLoading } = index_module.wn(GET_CURRENCIES, { variables: { locale } });
533
+ const { data: countriesData, loading: countriesLoading } = index_module.wn(GET_COUNTRIES, {});
534
+ // No pre-filled country, use locale to determine countryCode instead
535
+ 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(/^.*_/, ""));
536
+ 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) || "");
537
+ const { data: financeNetworkData } = index_module.wn(data.GET_FINANCE_NETWORK_SETTINGS, {
538
+ variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
539
+ });
540
+ const [startImpactConnection, { loading: connectLoading }] = index_module.$e(START_IMPACT_CONNECTION);
541
+ const [allowBankingCollection, setAllowBankingCollection] = domContextHooks_module.useState(false);
542
+ const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
543
+ const isExistingPartner = !!((_f = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher);
544
+ const _currencies = domContextHooks_module.useMemo(() => {
545
+ var _a, _b, _c;
546
+ // if isExistingPartner, grab all currencies since select is disabled anyways
547
+ if (isExistingPartner) {
548
+ return ((_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) || [];
549
+ }
550
+ const allValidCurrencies = (_c = (_b = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.reduce((agg, settings) => {
551
+ var _a, _b;
552
+ if (countryCode && settings.countryCode !== countryCode)
553
+ return agg;
554
+ const c = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((cur) => cur.currencyCode === settings.currency);
555
+ if (!c)
556
+ return agg;
557
+ if (agg.find((cur) => cur.currencyCode === settings.currency))
558
+ return agg;
559
+ return [...agg, c];
560
+ }, []);
561
+ return allValidCurrencies || [];
562
+ }, [financeNetworkData, currenciesData, countryCode, isExistingPartner]);
563
+ const currencies = domContextHooks_module.useMemo(() => [..._currencies].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
564
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
565
+ const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
566
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(((_g = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _g === void 0 ? void 0 : _g.data) || []);
567
+ const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
568
+ const [error, setError] = domContextHooks_module.useState("");
569
+ const [success, setSuccess] = domContextHooks_module.useState(false);
570
+ domContextHooks_module.useEffect(() => {
571
+ var _a;
572
+ const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
573
+ if (!userData || !publisher)
574
+ return;
575
+ setCountryCode(publisher.countryCode);
576
+ setCurrency(publisher.currency);
577
+ }, [userData, user]);
578
+ domContextHooks_module.useEffect(() => {
579
+ if (!(countries === null || countries === void 0 ? void 0 : countries.length))
580
+ return;
581
+ if (countrySearch.trim() === "") {
582
+ setFilteredCountries(countries || []);
583
+ }
584
+ else {
585
+ setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
586
+ }
587
+ }, [countrySearch, countries]);
588
+ domContextHooks_module.useEffect(() => {
589
+ if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
590
+ return;
591
+ if (currencySearch.trim() === "") {
592
+ setFilteredCurrencies(currencies || []);
593
+ }
594
+ else {
595
+ setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
596
+ }
597
+ }, [currencySearch, currencies]);
598
+ const impactConnection = user === null || user === void 0 ? void 0 : user.impactConnection;
599
+ function onCountryChange(e) {
600
+ var _a, _b;
601
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
602
+ if (!value)
603
+ return;
604
+ setCountryCode(value);
605
+ setCurrency("");
606
+ setError("");
607
+ }
608
+ function onCurrencyChange(e) {
609
+ var _a, _b;
610
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
611
+ if (!value)
612
+ return;
613
+ setCurrency(value);
614
+ setError("");
615
+ }
616
+ function onCheckboxChange(e) {
617
+ const checked = e.target.checked;
618
+ setAllowBankingCollection(checked);
619
+ }
620
+ async function onSubmit() {
621
+ var _a, _b;
622
+ if (!allowBankingCollection) {
623
+ setError(props.missingFieldsErrorText);
624
+ return;
625
+ }
626
+ if (!countryCode || !currency) {
627
+ setError(props.missingFieldsErrorText);
628
+ return;
629
+ }
630
+ setError("");
631
+ if (!user) {
632
+ setError(props.networkErrorText);
633
+ return;
634
+ }
635
+ try {
636
+ const vars = {
637
+ user: {
638
+ id: user.id,
639
+ accountId: user.accountId,
640
+ },
641
+ firstName: user.firstName,
642
+ lastName: user.lastName,
643
+ countryCode,
644
+ currency,
645
+ };
646
+ const result = await startImpactConnection({ vars });
647
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
648
+ setError(props.networkErrorText);
649
+ return;
650
+ }
651
+ const connectionResult = result
652
+ .startImpactConnection;
653
+ if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
654
+ const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
655
+ setError(validationMsg || props.networkErrorText);
656
+ console.error("Failed to create Impact connection:", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
657
+ return;
658
+ }
659
+ window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
660
+ await refetch();
661
+ setPartnerCreated === null || setPartnerCreated === void 0 ? void 0 : setPartnerCreated(true);
662
+ setSuccess(true);
663
+ }
664
+ catch (e) {
665
+ console.error("Partner creation error:", e);
666
+ setError(props.networkErrorText);
667
+ }
668
+ }
669
+ console.log(impactConnection, "impactConnection in partner modal");
670
+ const showModal = !success &&
671
+ !userLoading &&
672
+ (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
673
+ return {
674
+ states: {
675
+ open: showModal,
676
+ loading: userLoading || countriesLoading || currenciesLoading,
677
+ submitting: connectLoading,
678
+ isExistingPartner,
679
+ countryCode,
680
+ currency,
681
+ error,
682
+ success,
683
+ filteredCountries: filteredCountries || [],
684
+ filteredCurrencies: filteredCurrencies || [],
685
+ allowBankingCollection,
686
+ disabled: userLoading || connectLoading,
687
+ },
688
+ callbacks: {
689
+ onCountryChange,
690
+ onCurrencyChange,
691
+ onCheckboxChange,
692
+ setCurrencySearch,
693
+ setCountrySearch,
694
+ onSubmit,
695
+ onClose: () => setSuccess(true),
696
+ },
697
+ text: props.getTextProps(),
698
+ };
699
+ }
700
+
701
+ const PartnerInfoModal = class {
702
+ constructor(hostRef) {
703
+ index.registerInstance(this, hostRef);
704
+ /**
705
+ * Header text when user has no existing partner
706
+ *
707
+ * @uiName New partner header
708
+ * @uiWidget textArea
709
+ */
710
+ this.modalHeader = "Let's get you ready for rewards";
711
+ /**
712
+ * Header text when user has an existing partner
713
+ *
714
+ * @uiName Existing partner header
715
+ * @uiWidget textArea
716
+ */
717
+ this.modalHeaderExistingPartner = "We found an existing account";
718
+ /**
719
+ * Description for new partner setup
720
+ *
721
+ * @uiName New partner description
722
+ * @uiWidget textArea
723
+ */
724
+ this.descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
725
+ /**
726
+ * Description for existing partner confirmation
727
+ *
728
+ * @uiName Existing partner description
729
+ * @uiWidget textArea
730
+ */
731
+ this.descriptionExistingPartner = "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.";
732
+ /**
733
+ * Support description for existing partner confirmation
734
+ *
735
+ * @uiName Existing partner support description
736
+ * @uiWidget textArea
737
+ */
738
+ this.supportDescriptionExistingPartner = "If this is a mistake, please contact {supportLink} or sign up for this referral program with a different email.";
739
+ /**
740
+ * Support description for existing partner confirmation
741
+ *
742
+ * @uiName Existing partner support description
743
+ */
744
+ this.supportLink = "Support";
745
+ /**
746
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
747
+ * @uiName Terms and conditions checkbox
748
+ */
749
+ this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
750
+ /**
751
+ * The link text that appears in the terms and conditions checkbox
752
+ * @uiName Terms and conditions text
753
+ * @uiWidget textArea
754
+ */
755
+ this.termsAndConditionsLabel = "terms and conditions";
756
+ /**
757
+ * The link that appears in the terms and conditions checkbox
758
+ * @uiName Terms and conditions link
759
+ */
760
+ this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
761
+ /**
762
+ * @uiName Country label
763
+ */
764
+ this.countryLabel = "Country";
765
+ /**
766
+ * @uiName Currency label
767
+ */
768
+ this.currencyLabel = "Currency";
769
+ /**
770
+ * @uiName Submit button label
771
+ */
772
+ this.submitButtonLabel = "Submit";
773
+ /**
774
+ * @uiName Confirm button label
775
+ */
776
+ this.confirmButtonLabel = "Confirm";
777
+ /**
778
+ * @uiName Search country placeholder
779
+ */
780
+ this.searchCountryPlaceholder = "Search for a country";
781
+ /**
782
+ * @uiName Search currency placeholder
783
+ */
784
+ this.searchCurrencyPlaceholder = "Search for a currency";
785
+ /**
786
+ * @uiName Network error text
787
+ * @uiWidget textArea
788
+ */
789
+ this.networkErrorText = "An error occurred. Please try again.";
790
+ /**
791
+ * @uiName Missing fields error text
792
+ * @uiWidget textArea
793
+ */
794
+ this.missingFieldsErrorText = "Please fill out all fields.";
795
+ /**
796
+ * Used to render in another modal.
797
+ * @undocumented
798
+ */
799
+ this.inModal = false;
800
+ /**
801
+ * @undocumented
802
+ * @componentState { "title": "Connected (hidden)", "default": true, "props": { "states": { "open": false } } }
803
+ * @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
804
+ * @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
805
+ */
806
+ this.stateController = '{"sqm-partner-info-modal":{"states":{"open":false}}}';
807
+ domContextHooks_module.h$1(this);
808
+ }
809
+ disconnectedCallback() { }
810
+ getTextProps() {
811
+ return utils.getProps(this);
812
+ }
813
+ render() {
814
+ const props = index_module.isDemo()
815
+ ? useDemoPartnerInfoModal(this)
816
+ : usePartnerInfoModal(this);
817
+ if (this.inModal) {
818
+ return index.h(sqmPartnerInfoModalView.PartnerInfoModalContentView, Object.assign({}, props));
819
+ }
820
+ return index.h(sqmPartnerInfoModalView.PartnerInfoModalView, Object.assign({}, props));
821
+ }
822
+ };
823
+ function useDemoPartnerInfoModal(props) {
824
+ const [countryCode, setCountryCode] = domContextHooks_module.useState("US");
825
+ const [currency, setCurrency] = domContextHooks_module.useState("");
826
+ const [error, setError] = domContextHooks_module.useState("");
827
+ const [allowBankingCollection, setAllowBankingCollection] = domContextHooks_module.useState(false);
828
+ const parsed = parseStates.parseStates(props.stateController);
829
+ const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
830
+ // @ts-ignore
831
+ return cjs.cjs({
832
+ states: {
833
+ open: false,
834
+ loading: false,
835
+ submitting: false,
836
+ isExistingPartner: false,
837
+ countryCode,
838
+ currency,
839
+ error,
840
+ success: false,
841
+ filteredCountries: [],
842
+ filteredCurrencies: [],
843
+ allowBankingCollection,
844
+ disabled: false,
845
+ },
846
+ callbacks: {
847
+ onCountryChange: (e) => {
848
+ var _a, _b;
849
+ const value = (_b = (_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
850
+ if (value) {
851
+ setCountryCode(value);
852
+ setCurrency("");
853
+ }
854
+ },
855
+ onCurrencyChange: (e) => {
856
+ var _a, _b;
857
+ const value = (_b = (_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
858
+ if (value)
859
+ setCurrency(value);
860
+ },
861
+ onCheckboxChange: (e) => {
862
+ setAllowBankingCollection(e.target.checked);
863
+ },
864
+ setCountrySearch: () => { },
865
+ setCurrencySearch: () => { },
866
+ onSubmit: () => {
867
+ if (!countryCode || !currency) {
868
+ setError(props.missingFieldsErrorText);
869
+ return;
870
+ }
871
+ setError("");
872
+ },
873
+ onClose: () => { },
874
+ },
875
+ text: {
876
+ modalHeader: props.modalHeader,
877
+ descriptionNewPartner: props.descriptionNewPartner,
878
+ descriptionExistingPartner: props.descriptionExistingPartner,
879
+ countryLabel: props.countryLabel,
880
+ currencyLabel: props.currencyLabel,
881
+ submitButtonLabel: props.submitButtonLabel,
882
+ confirmButtonLabel: props.confirmButtonLabel,
883
+ searchCountryPlaceholder: props.searchCountryPlaceholder,
884
+ searchCurrencyPlaceholder: props.searchCurrencyPlaceholder,
885
+ supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
886
+ supportLink: props.supportLink,
887
+ modalHeaderExistingPartner: props.modalHeaderExistingPartner,
888
+ },
889
+ }, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
890
+ }
891
+
892
+ exports.sqm_email_verification = WidgetEmailVerification;
893
+ exports.sqm_partner_info_modal = PartnerInfoModal;