@saasquatch/mint-components 2.2.0 → 2.3.0-10

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 (387) 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 +480 -1059
  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 +879 -0
  11. package/dist/cjs/sqm-partner-info-modal-view-2b6fee0f.js +155 -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 +940 -357
  15. package/dist/cjs/sqm-user-info-form-view-374a3f01.js +1427 -0
  16. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  17. package/dist/cjs/subregions-984e30d7.js +1505 -0
  18. package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-112914a0.js} +294 -5
  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 +149 -0
  22. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +671 -0
  23. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +261 -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 +6 -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/sqm-indirect-tax-form-view.js +2 -10
  47. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  48. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
  49. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +6 -0
  50. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -2
  51. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +59 -30
  52. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +51 -2
  53. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +151 -0
  54. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
  55. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +26 -23
  56. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
  57. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +39 -19
  58. package/dist/collection/components/tax-and-cash/utils.js +55 -0
  59. package/dist/esm/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +5 -5
  60. package/dist/{mint-components/p-0c0d4065.js → esm/data-8698cbc6.js} +25 -5
  61. package/dist/esm/eventKeys-f76b6a03.js +3 -0
  62. package/dist/esm/{global-96c14d63.js → global-75e96214.js} +1 -1
  63. package/dist/esm/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  64. package/dist/esm/keys-1054056a.js +8 -0
  65. package/dist/esm/loader.js +3 -3
  66. package/dist/esm/mint-components.js +3 -3
  67. package/dist/esm/parseStates-ed75e224.js +14 -0
  68. package/dist/esm/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  69. package/dist/esm/sqm-banking-info-form_10.entry.js +466 -1045
  70. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +454 -21
  71. package/dist/esm/sqm-close-button.entry.js +1 -1
  72. package/dist/esm/sqm-code-verification.entry.js +7 -8
  73. package/dist/esm/sqm-context-router.entry.js +1 -1
  74. package/dist/esm/sqm-email-verification_2.entry.js +874 -0
  75. package/dist/esm/sqm-empty_4.entry.js +2 -2
  76. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  77. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  78. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  79. package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  80. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  81. package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  82. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  83. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  84. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  85. package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  86. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  87. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  88. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  89. package/dist/esm/sqm-partner-info-modal-view-bc843d7d.js +152 -0
  90. package/dist/esm/sqm-password-field.entry.js +2 -2
  91. package/dist/esm/sqm-popup-container.entry.js +1 -1
  92. package/dist/esm/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  93. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  94. package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
  95. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  96. package/dist/esm/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  97. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  98. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  99. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  100. package/dist/esm/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  101. package/dist/esm/sqm-qr-code.entry.js +2 -2
  102. package/dist/esm/sqm-referral-table_11.entry.js +32 -14
  103. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  104. package/dist/esm/sqm-rewards-table_9.entry.js +35 -14
  105. package/dist/esm/sqm-stencilbook.entry.js +916 -333
  106. package/dist/esm/sqm-tab.entry.js +2 -2
  107. package/dist/esm/sqm-tabs.entry.js +3 -3
  108. package/dist/esm/sqm-user-info-form-view-5322525c.js +1421 -0
  109. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  110. package/dist/esm/subregions-7c9778d0.js +1492 -0
  111. package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  112. package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-a6ac7e7e.js} +292 -5
  113. package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +2 -2
  114. package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +2 -2
  115. package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +2 -2
  116. package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  117. package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +3 -3
  118. package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  119. package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  120. package/dist/esm/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  121. package/dist/esm-es5/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +1 -1
  122. package/dist/esm-es5/data-8698cbc6.js +1 -0
  123. package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
  124. package/dist/esm-es5/{global-96c14d63.js → global-75e96214.js} +1 -1
  125. package/dist/esm-es5/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  126. package/dist/esm-es5/keys-1054056a.js +1 -0
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/mint-components.js +1 -1
  129. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  130. package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  131. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  132. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
  133. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  134. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  135. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  136. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -0
  137. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  138. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  139. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  140. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  141. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  142. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  143. package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  144. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  145. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  146. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  147. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  148. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  149. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  150. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  151. package/dist/esm-es5/sqm-partner-info-modal-view-bc843d7d.js +1 -0
  152. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  153. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  154. package/dist/esm-es5/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  155. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  156. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  157. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  158. package/dist/esm-es5/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  159. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  160. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  161. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  162. package/dist/esm-es5/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  163. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  164. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  165. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  166. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  167. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  168. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  169. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  170. package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +1 -0
  171. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  172. package/dist/esm-es5/subregions-7c9778d0.js +1 -0
  173. package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  174. package/dist/esm-es5/useIndirectTaxForm-a6ac7e7e.js +6 -0
  175. package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +1 -1
  176. package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +1 -1
  177. package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +1 -1
  178. package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  179. package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +1 -1
  180. package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  181. package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  182. package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  183. package/dist/mint-components/mint-components.esm.js +1 -1
  184. package/dist/mint-components/mint-components.js +1 -1
  185. package/dist/mint-components/{p-626b31cb.system.entry.js → p-025ddad2.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-5b871e38.system.entry.js → p-02c0f88e.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-f55ecf35.system.js → p-02e2b13b.system.js} +1 -1
  188. package/dist/mint-components/{p-a4f8abad.js → p-0766438e.js} +1 -1
  189. package/dist/mint-components/{p-205cfdcd.system.js → p-0815b973.system.js} +1 -1
  190. package/dist/mint-components/{p-db0a2afd.entry.js → p-092c2606.entry.js} +1 -1
  191. package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-099ce3d5.system.entry.js} +1 -1
  192. package/dist/mint-components/p-0a6489fa.entry.js +1 -0
  193. package/dist/mint-components/{p-fc284f91.system.entry.js → p-0b32e1d4.system.entry.js} +1 -1
  194. package/dist/mint-components/p-115dfc03.system.js +1 -0
  195. package/dist/mint-components/{p-7b59e13c.system.js → p-1317cc92.system.js} +1 -1
  196. package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-13bb56a8.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-f8a09b0f.js → p-13d8ecad.js} +1 -1
  198. package/dist/mint-components/p-13e439bc.js +1 -0
  199. package/dist/mint-components/p-13f3a647.js +1 -0
  200. package/dist/mint-components/{p-61897e72.entry.js → p-14183edc.entry.js} +1 -1
  201. package/dist/mint-components/{p-8f2d03c7.entry.js → p-1599a178.entry.js} +1 -1
  202. package/dist/mint-components/{p-02499e08.entry.js → p-1b0326d1.entry.js} +1 -1
  203. package/dist/mint-components/p-1d398dbc.entry.js +11 -0
  204. package/dist/mint-components/p-1d86895f.system.js +1 -0
  205. package/dist/mint-components/{p-c8a3f3b0.js → p-1efb42e2.js} +1 -1
  206. package/dist/mint-components/p-1f387c7b.system.js +1 -0
  207. package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-209157a9.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-30c1ef36.system.js → p-2190dc73.system.js} +1 -1
  209. package/dist/mint-components/p-24a867ab.system.js +1 -0
  210. package/dist/mint-components/{p-80e116ec.system.entry.js → p-24f1d342.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-6668f9f0.entry.js → p-27daf264.entry.js} +1 -1
  212. package/dist/mint-components/p-28ed2ae9.js +1 -0
  213. package/dist/mint-components/{p-09f7aacd.entry.js → p-29bc5f50.entry.js} +2 -2
  214. package/dist/mint-components/p-2bc6ac74.system.entry.js +1 -0
  215. package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
  216. package/dist/mint-components/p-2d4132fb.js +99 -0
  217. package/dist/mint-components/p-2ed13619.entry.js +1 -0
  218. package/dist/mint-components/{p-c45a929a.system.entry.js → p-30cfe3e3.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-d55c50af.system.js → p-31815fb6.system.js} +1 -1
  220. package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-3354cc75.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-5bc5c61e.entry.js → p-335a5736.entry.js} +1 -1
  222. package/dist/mint-components/{p-e9485160.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-8583ce0c.system.js → p-376c7608.system.js} +1 -1
  224. package/dist/mint-components/p-37e24621.system.entry.js +1 -0
  225. package/dist/mint-components/{p-95510f27.entry.js → p-38d04e4b.entry.js} +1 -1
  226. package/dist/mint-components/{p-e84b874c.js → p-3a41b39c.js} +1 -1
  227. package/dist/mint-components/{p-e5ea43b1.entry.js → p-3bbc0db2.entry.js} +2 -2
  228. package/dist/mint-components/{p-982d1f6f.entry.js → p-432a44de.entry.js} +3 -2
  229. package/dist/mint-components/{p-bab4929e.js → p-45230a44.js} +1 -1
  230. package/dist/mint-components/p-4691e9d5.system.js +1 -0
  231. package/dist/mint-components/{p-1d92c169.entry.js → p-4d73a616.entry.js} +1 -1
  232. package/dist/mint-components/{p-3bc62ca6.entry.js → p-4e3db52b.entry.js} +1 -1
  233. package/dist/mint-components/{p-3286ef38.js → p-4eaa3eb7.js} +1 -1
  234. package/dist/mint-components/{p-013564b3.entry.js → p-4eadbd5b.entry.js} +1 -1
  235. package/dist/mint-components/p-4f9dc974.js +1 -0
  236. package/dist/mint-components/{p-f7ca4cc4.system.entry.js → p-51ae6716.system.entry.js} +1 -1
  237. package/dist/mint-components/p-5623f1e0.js +1 -0
  238. package/dist/mint-components/p-5bc707cf.entry.js +299 -0
  239. package/dist/mint-components/p-5c52100b.js +117 -0
  240. package/dist/mint-components/{p-77b9cde8.system.js → p-5fdf0286.system.js} +1 -1
  241. package/dist/mint-components/{p-09348341.entry.js → p-60b1f3d9.entry.js} +1 -1
  242. package/dist/mint-components/{p-d005df28.system.entry.js → p-623a0a0b.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-c30d0049.system.entry.js → p-6b4e5d94.system.entry.js} +1 -1
  244. package/dist/mint-components/p-6ef373ed.system.js +6 -0
  245. package/dist/mint-components/{p-f4e36adf.system.entry.js → p-6f6c3ac6.system.entry.js} +1 -1
  246. package/dist/mint-components/p-6f8dde97.system.js +1 -0
  247. package/dist/mint-components/{p-43c31fd5.system.js → p-7628e56f.system.js} +1 -1
  248. package/dist/mint-components/{p-653db72e.entry.js → p-78e6dc8d.entry.js} +1 -1
  249. package/dist/mint-components/{p-f581aac7.js → p-7a091fa7.js} +1 -1
  250. package/dist/mint-components/{p-40bad95a.entry.js → p-7cbdf341.entry.js} +2 -2
  251. package/dist/mint-components/{p-044f930a.system.js → p-7d2d9ef9.system.js} +1 -1
  252. package/dist/mint-components/{p-5c4ba8a0.entry.js → p-7ea3f49c.entry.js} +1 -1
  253. package/dist/mint-components/p-7f29622d.js +1 -0
  254. package/dist/mint-components/{p-5ce78407.system.entry.js → p-81bc6dca.system.entry.js} +1 -1
  255. package/dist/mint-components/{p-f6528f8a.entry.js → p-84495fb8.entry.js} +1 -1
  256. package/dist/mint-components/p-85ecc0aa.entry.js +83 -0
  257. package/dist/mint-components/{p-b96e90a2.system.entry.js → p-86d20b47.system.entry.js} +1 -1
  258. package/dist/mint-components/p-87f86492.js +1 -0
  259. package/dist/mint-components/p-8a08cec6.system.entry.js +1 -0
  260. package/dist/mint-components/{p-d0993bb9.js → p-8a6531d2.js} +1 -1
  261. package/dist/mint-components/p-8ae8968c.js +1 -0
  262. package/dist/mint-components/{p-7265bbcb.system.js → p-8e148cb0.system.js} +1 -1
  263. package/dist/mint-components/p-8f15bf17.entry.js +1 -0
  264. package/dist/mint-components/{p-b66f45d1.entry.js → p-921eb024.entry.js} +1 -1
  265. package/dist/mint-components/{p-f1374258.system.entry.js → p-925aa740.system.entry.js} +1 -1
  266. package/dist/mint-components/p-99eecdcb.system.entry.js +1 -0
  267. package/dist/mint-components/{p-e12754f5.system.entry.js → p-9a15cd5a.system.entry.js} +1 -1
  268. package/dist/mint-components/p-9c1f5317.system.js +1 -0
  269. package/dist/mint-components/{p-832aea99.js → p-9f48640d.js} +1 -1
  270. package/dist/mint-components/p-a49d9288.entry.js +1 -0
  271. package/dist/mint-components/p-a8cfa8fd.entry.js +9 -0
  272. package/dist/mint-components/{p-90833864.system.entry.js → p-ab59c5eb.system.entry.js} +1 -1
  273. package/dist/mint-components/{p-e6240c72.js → p-abd717d4.js} +1 -1
  274. package/dist/mint-components/p-ae2f610e.system.js +1 -0
  275. package/dist/mint-components/{p-19c441b2.system.js → p-b2ad3fca.system.js} +1 -1
  276. package/dist/mint-components/{p-c8a8d231.entry.js → p-b3309d9b.entry.js} +2 -2
  277. package/dist/mint-components/p-b3e1f2fa.entry.js +91 -0
  278. package/dist/mint-components/p-b7188d47.system.entry.js +1 -0
  279. package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
  280. package/dist/mint-components/p-b9509a55.system.entry.js +1 -0
  281. package/dist/mint-components/p-badf28bb.system.js +1 -0
  282. package/dist/mint-components/{p-035d9b65.js → p-bb0b5e4b.js} +1 -1
  283. package/dist/mint-components/{p-52674798.entry.js → p-bcfdb510.entry.js} +1 -1
  284. package/dist/mint-components/p-bd03efe0.system.js +1 -0
  285. package/dist/mint-components/{p-642f2c89.js → p-bf9ab2d3.js} +1 -1
  286. package/dist/mint-components/{p-bc386a7b.js → p-c0a85e22.js} +1 -1
  287. package/dist/mint-components/p-c0f8f977.system.entry.js +1 -0
  288. package/dist/mint-components/p-c13c20b2.system.js +1 -0
  289. package/dist/mint-components/p-c41d536d.entry.js +1 -0
  290. package/dist/mint-components/{p-a0c5631b.system.js → p-c66e5217.system.js} +1 -1
  291. package/dist/mint-components/{p-0d83907e.js → p-cfea215d.js} +1 -1
  292. package/dist/mint-components/p-d08408b3.entry.js +1 -0
  293. package/dist/mint-components/{p-172675ca.system.js → p-d284ae70.system.js} +1 -1
  294. package/dist/mint-components/{p-027fc3be.system.entry.js → p-d34564f8.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-1021a49f.system.entry.js → p-db6bf7cf.system.entry.js} +1 -1
  296. package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-df897432.system.entry.js} +1 -1
  297. package/dist/mint-components/{p-036a2617.system.js → p-e651593c.system.js} +1 -1
  298. package/dist/mint-components/{p-f39cf252.system.entry.js → p-e6de31a7.system.entry.js} +1 -1
  299. package/dist/mint-components/{p-2668335b.js → p-e8e7af06.js} +1 -1
  300. package/dist/mint-components/{p-85721089.system.js → p-e920c95c.system.js} +1 -1
  301. package/dist/mint-components/{p-3366b81e.js → p-eae44b42.js} +2 -2
  302. package/dist/mint-components/{p-af407cce.entry.js → p-ef32fa8f.entry.js} +1 -1
  303. package/dist/mint-components/{p-7efb8782.system.js → p-f32050f6.system.js} +1 -1
  304. package/dist/mint-components/{p-782af7ae.system.entry.js → p-f6de2e5c.system.entry.js} +1 -1
  305. package/dist/mint-components/{p-9390586b.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
  306. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +15 -0
  307. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +51 -0
  308. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +123 -0
  309. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +16 -0
  310. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +18 -1
  311. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +19 -7
  312. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
  313. package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
  314. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +75 -7
  315. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
  316. package/dist/types/components/tax-and-cash/data.d.ts +3 -0
  317. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +8 -0
  318. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
  319. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +173 -0
  320. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
  321. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
  322. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +1 -0
  323. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -5
  324. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +19 -0
  325. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
  326. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
  327. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  328. package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
  329. package/dist/types/components.d.ts +644 -32
  330. package/dist/types/saasquatch.d.ts +2 -0
  331. package/docs/docs.docx +0 -0
  332. package/docs/raisins.json +1 -1
  333. package/grapesjs/grapesjs.js +1 -1
  334. package/package.json +2 -4
  335. package/dist/cjs/extractProps-e9c55ba8.js +0 -35
  336. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
  337. package/dist/cjs/sqm-user-info-form-view-53306f6e.js +0 -2074
  338. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
  339. package/dist/esm/data-12e6aae1.js +0 -216
  340. package/dist/esm/extractProps-54064fb0.js +0 -32
  341. package/dist/esm/keys-406491dc.js +0 -6
  342. package/dist/esm/sqm-email-verification.entry.js +0 -414
  343. package/dist/esm/sqm-user-info-form-view-19d81a2b.js +0 -2066
  344. package/dist/esm/sqm-widget-verification.entry.js +0 -210
  345. package/dist/esm-es5/data-12e6aae1.js +0 -1
  346. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  347. package/dist/esm-es5/keys-406491dc.js +0 -1
  348. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  349. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  350. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
  351. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  352. package/dist/esm-es5/usePayoutStatus-46c0c289.js +0 -6
  353. package/dist/mint-components/p-00b235c5.system.entry.js +0 -1
  354. package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
  355. package/dist/mint-components/p-0797a946.js +0 -1
  356. package/dist/mint-components/p-13292317.entry.js +0 -11
  357. package/dist/mint-components/p-2d5c2bd4.system.entry.js +0 -1
  358. package/dist/mint-components/p-38c7775a.js +0 -1
  359. package/dist/mint-components/p-3adbfd0b.system.js +0 -6
  360. package/dist/mint-components/p-3af3e2c1.entry.js +0 -25
  361. package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
  362. package/dist/mint-components/p-57dd28bd.system.js +0 -1
  363. package/dist/mint-components/p-5b1d2866.system.js +0 -1
  364. package/dist/mint-components/p-6c4ad51a.js +0 -1
  365. package/dist/mint-components/p-77fa2383.entry.js +0 -1
  366. package/dist/mint-components/p-7939e4af.entry.js +0 -1
  367. package/dist/mint-components/p-8285869e.entry.js +0 -9
  368. package/dist/mint-components/p-892797eb.system.entry.js +0 -1
  369. package/dist/mint-components/p-91a96e98.entry.js +0 -1
  370. package/dist/mint-components/p-b2b85238.entry.js +0 -1
  371. package/dist/mint-components/p-b395470f.entry.js +0 -16
  372. package/dist/mint-components/p-bba16a46.system.entry.js +0 -1
  373. package/dist/mint-components/p-be12607e.entry.js +0 -281
  374. package/dist/mint-components/p-bf188b72.system.entry.js +0 -1
  375. package/dist/mint-components/p-ca098be1.system.js +0 -1
  376. package/dist/mint-components/p-d18dedd4.js +0 -1
  377. package/dist/mint-components/p-d4f332a7.entry.js +0 -106
  378. package/dist/mint-components/p-d6193876.system.js +0 -1
  379. package/dist/mint-components/p-de0d6fd7.js +0 -49
  380. package/dist/mint-components/p-e00ec007.js +0 -1
  381. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  382. package/dist/mint-components/p-ea03e50e.system.js +0 -1
  383. package/dist/mint-components/p-ec0b649a.entry.js +0 -1
  384. package/dist/mint-components/p-f8026ed6.system.js +0 -1
  385. package/dist/mint-components/p-fb804001.system.entry.js +0 -1
  386. package/dist/mint-components/p-fe70e20c.entry.js +0 -1
  387. package/dist/mint-components/p-ff118a19.system.js +0 -1
@@ -0,0 +1,879 @@
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-2b6fee0f.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 START_IMPACT_CONNECTION = index_module.dist.gql `
475
+ mutation startImpactConnection($vars: ImpactConnectionInput!) {
476
+ startImpactConnection(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
+ function usePartnerInfoModal(props) {
501
+ var _a, _b, _c, _d, _e;
502
+ const locale = index_module.L();
503
+ const setPartnerCreated = index_module.En(keys.PARTNER_CREATED_NAMESPACE);
504
+ const { data: userData, loading: userLoading, refetch, } = index_module.wn(GET_USER_PARTNER_INFO, {});
505
+ const user = userData === null || userData === void 0 ? void 0 : userData.user;
506
+ const { data: currenciesData, loading: currenciesLoading } = index_module.wn(GET_CURRENCIES, { variables: { locale } });
507
+ const { data: countriesData, loading: countriesLoading } = index_module.wn(GET_COUNTRIES, {});
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(/^.*_/, ""));
510
+ 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
+ const { data: financeNetworkData } = index_module.wn(data.GET_FINANCE_NETWORK_SETTINGS, {
512
+ variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
513
+ });
514
+ const [startImpactConnection, { loading: connectLoading }] = index_module.$e(START_IMPACT_CONNECTION);
515
+ const [allowBankingCollection, setAllowBankingCollection] = domContextHooks_module.useState(false);
516
+ const countries = domContextHooks_module.useMemo(() => {
517
+ var _a;
518
+ const data = (_a = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data;
519
+ if (!data)
520
+ return [];
521
+ return [...data].sort((a, b) => {
522
+ if (a.countryCode === "US")
523
+ return -1;
524
+ if (b.countryCode === "US")
525
+ return 1;
526
+ return a.displayName.localeCompare(b.displayName);
527
+ });
528
+ }, [countriesData]);
529
+ const isExistingPartner = !!((_e = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher);
530
+ const _currencies = domContextHooks_module.useMemo(() => {
531
+ var _a, _b, _c;
532
+ // if isExistingPartner, grab all currencies since select is disabled anyways
533
+ if (isExistingPartner) {
534
+ return ((_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) || [];
535
+ }
536
+ 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) => {
537
+ var _a, _b;
538
+ if (countryCode && settings.countryCode !== countryCode)
539
+ return agg;
540
+ 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);
541
+ if (!c)
542
+ return agg;
543
+ if (agg.find((cur) => cur.currencyCode === settings.currency))
544
+ return agg;
545
+ return [...agg, c];
546
+ }, []);
547
+ return allValidCurrencies || [];
548
+ }, [financeNetworkData, currenciesData, countryCode, isExistingPartner]);
549
+ const currencies = domContextHooks_module.useMemo(() => [..._currencies].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
550
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
551
+ const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
552
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
553
+ const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
554
+ const [error, setError] = domContextHooks_module.useState("");
555
+ const [success, setSuccess] = domContextHooks_module.useState(false);
556
+ domContextHooks_module.useEffect(() => {
557
+ var _a;
558
+ const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
559
+ if (!userData || !publisher)
560
+ return;
561
+ setCountryCode(publisher.countryCode);
562
+ setCurrency(publisher.currency);
563
+ }, [userData, user]);
564
+ domContextHooks_module.useEffect(() => {
565
+ if (!(countries === null || countries === void 0 ? void 0 : countries.length))
566
+ return;
567
+ if (countrySearch.trim() === "") {
568
+ setFilteredCountries(countries || []);
569
+ }
570
+ else {
571
+ setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
572
+ }
573
+ }, [countrySearch, countries]);
574
+ domContextHooks_module.useEffect(() => {
575
+ if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
576
+ return;
577
+ if (currencySearch.trim() === "") {
578
+ setFilteredCurrencies(currencies || []);
579
+ }
580
+ else {
581
+ setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
582
+ }
583
+ }, [currencySearch, currencies]);
584
+ const impactConnection = user === null || user === void 0 ? void 0 : user.impactConnection;
585
+ function onCountryChange(e) {
586
+ var _a, _b;
587
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
588
+ if (!value)
589
+ return;
590
+ setCountryCode(value);
591
+ setCurrency("");
592
+ setError("");
593
+ }
594
+ function onCurrencyChange(e) {
595
+ var _a, _b;
596
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
597
+ if (!value)
598
+ return;
599
+ setCurrency(value);
600
+ setError("");
601
+ }
602
+ function onCheckboxChange(e) {
603
+ const checked = e.target.checked;
604
+ setAllowBankingCollection(checked);
605
+ }
606
+ async function onSubmit() {
607
+ var _a, _b;
608
+ if (!allowBankingCollection) {
609
+ setError(props.missingFieldsErrorText);
610
+ return;
611
+ }
612
+ if (!countryCode || !currency) {
613
+ setError(props.missingFieldsErrorText);
614
+ return;
615
+ }
616
+ setError("");
617
+ if (!user) {
618
+ setError(props.networkErrorText);
619
+ return;
620
+ }
621
+ try {
622
+ const vars = {
623
+ user: {
624
+ id: user.id,
625
+ accountId: user.accountId,
626
+ },
627
+ firstName: user.firstName,
628
+ lastName: user.lastName,
629
+ countryCode,
630
+ currency,
631
+ };
632
+ const result = await startImpactConnection({ vars });
633
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
634
+ setError(props.networkErrorText);
635
+ return;
636
+ }
637
+ const connectionResult = result
638
+ .startImpactConnection;
639
+ if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
640
+ const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
641
+ setError(validationMsg || props.networkErrorText);
642
+ console.error("Failed to create Impact connection:", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
643
+ return;
644
+ }
645
+ window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
646
+ await refetch();
647
+ setPartnerCreated === null || setPartnerCreated === void 0 ? void 0 : setPartnerCreated(true);
648
+ setSuccess(true);
649
+ }
650
+ catch (e) {
651
+ console.error("Partner creation error:", e);
652
+ setError(props.networkErrorText);
653
+ }
654
+ }
655
+ const showModal = !success &&
656
+ !userLoading &&
657
+ (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
658
+ return {
659
+ states: {
660
+ open: showModal,
661
+ loading: userLoading || countriesLoading || currenciesLoading,
662
+ submitting: connectLoading,
663
+ isExistingPartner,
664
+ countryCode,
665
+ currency,
666
+ error,
667
+ success,
668
+ filteredCountries: filteredCountries || [],
669
+ filteredCurrencies: filteredCurrencies || [],
670
+ allowBankingCollection,
671
+ disabled: userLoading || connectLoading,
672
+ },
673
+ callbacks: {
674
+ onCountryChange,
675
+ onCurrencyChange,
676
+ onCheckboxChange,
677
+ setCurrencySearch,
678
+ setCountrySearch,
679
+ onSubmit,
680
+ onClose: () => setSuccess(true),
681
+ },
682
+ text: props.getTextProps(),
683
+ };
684
+ }
685
+
686
+ const PartnerInfoModal = class {
687
+ constructor(hostRef) {
688
+ index.registerInstance(this, hostRef);
689
+ /**
690
+ * Header text when user has no existing partner
691
+ *
692
+ * @uiName New partner header
693
+ * @uiWidget textArea
694
+ */
695
+ this.modalHeader = "Let's get you ready for rewards";
696
+ /**
697
+ * Header text when user has an existing partner
698
+ *
699
+ * @uiName Existing partner header
700
+ * @uiWidget textArea
701
+ */
702
+ this.modalHeaderExistingPartner = "We found an existing account";
703
+ /**
704
+ * Description for new partner setup
705
+ *
706
+ * @uiName New partner description
707
+ * @uiWidget textArea
708
+ */
709
+ this.descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
710
+ /**
711
+ * Description for existing partner confirmation
712
+ *
713
+ * @uiName Existing partner description
714
+ * @uiWidget textArea
715
+ */
716
+ 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.";
717
+ /**
718
+ * Support description for existing partner confirmation
719
+ *
720
+ * @uiName Existing partner support description
721
+ * @uiWidget textArea
722
+ */
723
+ this.supportDescriptionExistingPartner = "If this is a mistake, please contact {supportLink} or sign up for this referral program with a different email.";
724
+ /**
725
+ * Support description for existing partner confirmation
726
+ *
727
+ * @uiName Existing partner support description
728
+ */
729
+ this.supportLink = "Support";
730
+ /**
731
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
732
+ * @uiName Terms and conditions checkbox
733
+ */
734
+ this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information.";
735
+ /**
736
+ * The link text that appears in the terms and conditions checkbox
737
+ * @uiName Terms and conditions text
738
+ * @uiWidget textArea
739
+ */
740
+ this.termsAndConditionsLabel = "terms and conditions";
741
+ /**
742
+ * The link that appears in the terms and conditions checkbox
743
+ * @uiName Terms and conditions link
744
+ */
745
+ this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
746
+ /**
747
+ * @uiName Country label
748
+ */
749
+ this.countryLabel = "Country";
750
+ /**
751
+ * @uiName Currency label
752
+ */
753
+ this.currencyLabel = "Currency";
754
+ /**
755
+ * @uiName Submit button label
756
+ */
757
+ this.submitButtonLabel = "Submit";
758
+ /**
759
+ * @uiName Confirm button label
760
+ */
761
+ this.confirmButtonLabel = "Confirm";
762
+ /**
763
+ * @uiName Search country placeholder
764
+ */
765
+ this.searchCountryPlaceholder = "Search for a country";
766
+ /**
767
+ * @uiName Search currency placeholder
768
+ */
769
+ this.searchCurrencyPlaceholder = "Search for a currency";
770
+ /**
771
+ * @uiName Network error text
772
+ * @uiWidget textArea
773
+ */
774
+ this.networkErrorText = "An error occurred. Please try again.";
775
+ /**
776
+ * @uiName Missing fields error text
777
+ * @uiWidget textArea
778
+ */
779
+ this.missingFieldsErrorText = "Please fill out all fields.";
780
+ /**
781
+ * Used to render in another modal.
782
+ * @undocumented
783
+ */
784
+ this.inModal = false;
785
+ /**
786
+ * @undocumented
787
+ * @componentState { "title": "Connected (hidden)", "default": true, "props": { "states": { "open": false } } }
788
+ * @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
789
+ * @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
790
+ */
791
+ this.stateController = '{"sqm-partner-info-modal":{"states":{"open":false}}}';
792
+ domContextHooks_module.h$1(this);
793
+ }
794
+ disconnectedCallback() { }
795
+ getTextProps() {
796
+ return utils.getProps(this);
797
+ }
798
+ render() {
799
+ const props = index_module.isDemo()
800
+ ? useDemoPartnerInfoModal(this)
801
+ : usePartnerInfoModal(this);
802
+ if (this.inModal) {
803
+ return index.h(sqmPartnerInfoModalView.PartnerInfoModalContentView, Object.assign({}, props));
804
+ }
805
+ return index.h(sqmPartnerInfoModalView.PartnerInfoModalView, Object.assign({}, props));
806
+ }
807
+ };
808
+ function useDemoPartnerInfoModal(props) {
809
+ const [countryCode, setCountryCode] = domContextHooks_module.useState("US");
810
+ const [currency, setCurrency] = domContextHooks_module.useState("");
811
+ const [error, setError] = domContextHooks_module.useState("");
812
+ const [allowBankingCollection, setAllowBankingCollection] = domContextHooks_module.useState(false);
813
+ const parsed = parseStates.parseStates(props.stateController);
814
+ const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
815
+ // @ts-ignore
816
+ return cjs.cjs({
817
+ states: {
818
+ open: false,
819
+ loading: false,
820
+ submitting: false,
821
+ isExistingPartner: false,
822
+ countryCode,
823
+ currency,
824
+ error,
825
+ success: false,
826
+ filteredCountries: [],
827
+ filteredCurrencies: [],
828
+ allowBankingCollection,
829
+ disabled: false,
830
+ },
831
+ callbacks: {
832
+ onCountryChange: (e) => {
833
+ var _a, _b;
834
+ 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;
835
+ if (value) {
836
+ setCountryCode(value);
837
+ setCurrency("");
838
+ }
839
+ },
840
+ onCurrencyChange: (e) => {
841
+ var _a, _b;
842
+ 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;
843
+ if (value)
844
+ setCurrency(value);
845
+ },
846
+ onCheckboxChange: (e) => {
847
+ setAllowBankingCollection(e.target.checked);
848
+ },
849
+ setCountrySearch: () => { },
850
+ setCurrencySearch: () => { },
851
+ onSubmit: () => {
852
+ if (!countryCode || !currency) {
853
+ setError(props.missingFieldsErrorText);
854
+ return;
855
+ }
856
+ setError("");
857
+ },
858
+ onClose: () => { },
859
+ onInitialFocus: (e) => e.preventDefault(),
860
+ },
861
+ text: {
862
+ modalHeader: props.modalHeader,
863
+ descriptionNewPartner: props.descriptionNewPartner,
864
+ descriptionExistingPartner: props.descriptionExistingPartner,
865
+ countryLabel: props.countryLabel,
866
+ currencyLabel: props.currencyLabel,
867
+ submitButtonLabel: props.submitButtonLabel,
868
+ confirmButtonLabel: props.confirmButtonLabel,
869
+ searchCountryPlaceholder: props.searchCountryPlaceholder,
870
+ searchCurrencyPlaceholder: props.searchCurrencyPlaceholder,
871
+ supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
872
+ supportLink: props.supportLink,
873
+ modalHeaderExistingPartner: props.modalHeaderExistingPartner,
874
+ },
875
+ }, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
876
+ }
877
+
878
+ exports.sqm_email_verification = WidgetEmailVerification;
879
+ exports.sqm_partner_info_modal = PartnerInfoModal;