@saasquatch/mint-components 2.1.10-56 → 2.1.11-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/dist/cjs/{ShadowViewAddon-a26deae6.js → ShadowViewAddon-2b3f51be.js} +7 -7
  2. package/dist/cjs/{data-8c8a08f6.js → data-6b5095f8.js} +2 -91
  3. package/dist/cjs/eventKeys-7af4df4d.js +5 -0
  4. package/dist/cjs/{global-b7b1b8fe.js → global-0f8b1267.js} +3177 -3126
  5. package/dist/cjs/{index.module-f8c8495f.js → index.module-42d413d9.js} +154 -149
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/mint-components.cjs.js +3 -3
  8. package/dist/cjs/parseStates-d1effc19.js +16 -0
  9. package/dist/cjs/{re-render-72a0ef45.js → re-render-69bde9ee.js} +1 -1
  10. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +484 -99
  11. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +404 -93
  12. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-code-verification.cjs.entry.js +7 -8
  14. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +892 -0
  16. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  20. package/dist/cjs/{sqm-lead-checkbox-field-view-0af2a157.js → sqm-lead-checkbox-field-view-d90f8941.js} +1 -1
  21. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
  22. package/dist/cjs/{sqm-lead-input-field-view-0cd7ebdb.js → sqm-lead-input-field-view-818d9e9a.js} +1 -1
  23. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
  24. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  25. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  26. package/dist/cjs/{sqm-navigation-sidebar-item-view-49b152dd.js → sqm-navigation-sidebar-item-view-20693e59.js} +1 -1
  27. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  28. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  30. package/dist/cjs/sqm-partner-info-modal-view-464c52c9.js +135 -0
  31. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  33. package/dist/cjs/{sqm-portal-email-verification-view-c81fe7f1.js → sqm-portal-email-verification-view-60f8e0a7.js} +2 -2
  34. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  35. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +6 -6
  36. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  37. package/dist/cjs/{sqm-portal-profile-view-639337e3.js → sqm-portal-profile-view-2bfd7afd.js} +2 -2
  38. package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
  39. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  40. package/dist/cjs/{sqm-portal-registration-form-view-020f661c.js → sqm-portal-registration-form-view-fd48f1d3.js} +1 -1
  41. package/dist/cjs/{sqm-portal-reset-password-view-6b1acd90.js → sqm-portal-reset-password-view-d90d77f9.js} +1 -1
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  43. package/dist/cjs/{sqm-portal-verify-email-view-424e406a.js → sqm-portal-verify-email-view-b31638f8.js} +2 -2
  44. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
  45. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
  46. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  47. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  48. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  49. package/dist/cjs/sqm-stencilbook.cjs.entry.js +265 -84
  50. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  51. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  52. package/dist/cjs/{sqm-text-span-view-f274fdf2.js → sqm-text-span-view-8a32dd8c.js} +1 -1
  53. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  54. package/dist/cjs/{sqm-user-info-form-view-53306f6e.js → sqm-user-info-form-view-01bf2f41.js} +33 -40
  55. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  56. package/dist/cjs/{useChildElements-041127d7.js → useChildElements-89bc50a9.js} +1 -1
  57. package/dist/cjs/{useInstantAccessRegistration-2398df36.js → useInstantAccessRegistration-651aa95b.js} +2 -2
  58. package/dist/cjs/{useLeadFormState-b4c2ab5b.js → useLeadFormState-76d3b511.js} +2 -2
  59. package/dist/cjs/{usePayoutStatus-0192fccd.js → usePayoutStatus-cf050a03.js} +4 -6
  60. package/dist/cjs/{usePortalRegistrationForm-23ee2d62.js → usePortalRegistrationForm-31822dc4.js} +2 -2
  61. package/dist/cjs/{useReferralCodes-0f7948af.js → useReferralCodes-89c2b972.js} +1 -1
  62. package/dist/cjs/{useReferralTable-6e9de0d5.js → useReferralTable-d3ddfd05.js} +3 -3
  63. package/dist/cjs/{useRegistrationFormState-4fe5b770.js → useRegistrationFormState-a223f597.js} +1 -1
  64. package/dist/cjs/{useVerificationEmail-5d19aa99.js → useVerificationEmail-994bc32f.js} +1 -1
  65. package/dist/cjs/{utilities-fcdb9504.js → utilities-096934ea.js} +1 -1
  66. package/dist/cjs/utils-a8e0bd9b.js +93 -0
  67. package/dist/collection/collection-manifest.json +1 -1
  68. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +150 -0
  69. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +129 -0
  70. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +670 -0
  71. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +284 -0
  72. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +0 -1
  73. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  74. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +1 -27
  75. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  76. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +13 -1
  77. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  78. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +12 -1
  79. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
  80. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  81. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
  82. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
  83. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
  84. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +510 -11
  85. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +20 -5
  86. package/dist/collection/components/tax-and-cash/data.js +1 -0
  87. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +75 -37
  88. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +688 -13
  89. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +95 -1
  90. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  91. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +49 -11
  92. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  93. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  94. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +4 -0
  95. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  96. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +9 -17
  97. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -16
  98. package/dist/esm/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-78b791d2.js} +7 -7
  99. package/dist/{mint-components/p-0c0d4065.js → esm/data-33c16dff.js} +24 -5
  100. package/dist/esm/eventKeys-f76b6a03.js +3 -0
  101. package/dist/esm/{global-96c14d63.js → global-39f55ec2.js} +3177 -3126
  102. package/dist/esm/{index.module-b23fdad8.js → index.module-cede12c6.js} +153 -150
  103. package/dist/esm/{keys-406491dc.js → keys-db1897ae.js} +1 -1
  104. package/dist/esm/loader.js +3 -3
  105. package/dist/esm/mint-components.js +3 -3
  106. package/dist/esm/parseStates-ed75e224.js +14 -0
  107. package/dist/esm/{re-render-f30aeb6b.js → re-render-7a0c7976.js} +1 -1
  108. package/dist/esm/sqm-banking-info-form_10.entry.js +474 -89
  109. package/dist/esm/sqm-big-stat_46.entry.js +398 -87
  110. package/dist/esm/sqm-close-button.entry.js +1 -1
  111. package/dist/esm/sqm-code-verification.entry.js +8 -9
  112. package/dist/esm/sqm-context-router.entry.js +1 -1
  113. package/dist/esm/sqm-email-verification_2.entry.js +887 -0
  114. package/dist/esm/sqm-empty_4.entry.js +2 -2
  115. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  116. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  117. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  118. package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
  119. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  120. package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
  121. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  122. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  123. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  124. package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
  125. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  126. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  127. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  128. package/dist/esm/sqm-partner-info-modal-view-a6324934.js +132 -0
  129. package/dist/esm/sqm-password-field.entry.js +2 -2
  130. package/dist/esm/sqm-popup-container.entry.js +1 -1
  131. package/dist/esm/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-33f5c108.js} +2 -2
  132. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  133. package/dist/esm/sqm-portal-forgot-password_6.entry.js +6 -6
  134. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  135. package/dist/esm/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-88fd6a93.js} +2 -2
  136. package/dist/esm/sqm-portal-profile.entry.js +5 -5
  137. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  138. package/dist/esm/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-9bf30b56.js} +1 -1
  139. package/dist/esm/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f8d1689c.js} +1 -1
  140. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  141. package/dist/esm/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-0b70c1b1.js} +2 -2
  142. package/dist/esm/sqm-qr-code.entry.js +2 -2
  143. package/dist/esm/sqm-referral-table_11.entry.js +6 -6
  144. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  145. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  146. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  147. package/dist/esm/sqm-stencilbook.entry.js +231 -50
  148. package/dist/esm/sqm-tab.entry.js +2 -2
  149. package/dist/esm/sqm-tabs.entry.js +3 -3
  150. package/dist/esm/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-4db9e33f.js} +1 -1
  151. package/dist/esm/sqm-text-span.entry.js +1 -1
  152. package/dist/esm/{sqm-user-info-form-view-19d81a2b.js → sqm-user-info-form-view-365cef98.js} +12 -19
  153. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  154. package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-c26d7347.js} +1 -1
  155. package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-e2392f42.js} +2 -2
  156. package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-9099c8d4.js} +2 -2
  157. package/dist/esm/{usePayoutStatus-46c0c289.js → usePayoutStatus-fa504d49.js} +3 -4
  158. package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-5844032a.js} +2 -2
  159. package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-3cde72d4.js} +1 -1
  160. package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-35e6d4c1.js} +3 -3
  161. package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-1813bdef.js} +1 -1
  162. package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-cb3d51e3.js} +1 -1
  163. package/dist/esm/{utilities-77b1e0cc.js → utilities-c9e730ed.js} +1 -1
  164. package/dist/esm/utils-8267d3d8.js +85 -0
  165. package/dist/esm-es5/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-78b791d2.js} +1 -1
  166. package/dist/esm-es5/data-33c16dff.js +1 -0
  167. package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
  168. package/dist/esm-es5/global-39f55ec2.js +285 -0
  169. package/dist/esm-es5/index.module-cede12c6.js +1 -0
  170. package/dist/esm-es5/{keys-406491dc.js → keys-db1897ae.js} +1 -1
  171. package/dist/esm-es5/loader.js +1 -1
  172. package/dist/esm-es5/mint-components.js +1 -1
  173. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  174. package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-7a0c7976.js} +1 -1
  175. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  176. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  177. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  178. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  179. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  180. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -0
  181. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  182. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  183. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  184. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  185. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
  186. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  187. package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
  188. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  189. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  190. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  191. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
  192. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  193. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  194. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  195. package/dist/esm-es5/sqm-partner-info-modal-view-a6324934.js +1 -0
  196. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  197. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  198. package/dist/esm-es5/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-33f5c108.js} +1 -1
  199. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  200. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  201. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  202. package/dist/esm-es5/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-88fd6a93.js} +1 -1
  203. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  204. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  205. package/dist/esm-es5/{sqm-portal-registration-form-view-2f4936ef.js → sqm-portal-registration-form-view-9bf30b56.js} +1 -1
  206. package/dist/esm-es5/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f8d1689c.js} +1 -1
  207. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  208. package/dist/esm-es5/{sqm-portal-verify-email-view-1a638fae.js → sqm-portal-verify-email-view-0b70c1b1.js} +1 -1
  209. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  210. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  211. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  212. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  213. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  214. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  215. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  216. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  217. package/dist/esm-es5/{sqm-text-span-view-738acfb3.js → sqm-text-span-view-4db9e33f.js} +1 -1
  218. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  219. package/dist/esm-es5/sqm-user-info-form-view-365cef98.js +1 -0
  220. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  221. package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-c26d7347.js} +1 -1
  222. package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-e2392f42.js} +1 -1
  223. package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-9099c8d4.js} +1 -1
  224. package/dist/esm-es5/{usePayoutStatus-46c0c289.js → usePayoutStatus-fa504d49.js} +2 -2
  225. package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-5844032a.js} +1 -1
  226. package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-3cde72d4.js} +1 -1
  227. package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-35e6d4c1.js} +1 -1
  228. package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-1813bdef.js} +1 -1
  229. package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-cb3d51e3.js} +1 -1
  230. package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-c9e730ed.js} +1 -1
  231. package/dist/esm-es5/utils-8267d3d8.js +1 -0
  232. package/dist/mint-components/mint-components.esm.js +1 -1
  233. package/dist/mint-components/mint-components.js +1 -1
  234. package/dist/mint-components/{p-f35d856a.system.js → p-00463c83.system.js} +1 -1
  235. package/dist/mint-components/p-037c1a4f.system.entry.js +1 -0
  236. package/dist/mint-components/p-038d0b8f.entry.js +133 -0
  237. package/dist/mint-components/{p-217dedde.js → p-0553e659.js} +2 -2
  238. package/dist/mint-components/{p-642f2c89.js → p-092db51a.js} +1 -1
  239. package/dist/mint-components/{p-a4f8abad.js → p-095b7128.js} +1 -1
  240. package/dist/mint-components/{p-95510f27.entry.js → p-0c43b6ff.entry.js} +1 -1
  241. package/dist/mint-components/{p-3366b81e.js → p-0d75a207.js} +2 -2
  242. package/dist/mint-components/{p-e4f17c21.system.js → p-0fec43e8.system.js} +1 -1
  243. package/dist/mint-components/p-115dfc03.system.js +1 -0
  244. package/dist/mint-components/p-13f3a647.js +1 -0
  245. package/dist/mint-components/{p-f55ecf35.system.js → p-140e6a15.system.js} +1 -1
  246. package/dist/mint-components/{p-3bc62ca6.entry.js → p-160828b4.entry.js} +1 -1
  247. package/dist/mint-components/{p-c30d0049.system.entry.js → p-16deb1a9.system.entry.js} +1 -1
  248. package/dist/mint-components/{p-f0baeed0.entry.js → p-19293c16.entry.js} +1 -1
  249. package/dist/mint-components/{p-b66f45d1.entry.js → p-1b0cbbae.entry.js} +1 -1
  250. package/dist/mint-components/p-1c413a06.system.js +1 -0
  251. package/dist/mint-components/{p-d4570314.entry.js → p-1d49dddc.entry.js} +1 -1
  252. package/dist/mint-components/p-1e35f151.system.js +1 -0
  253. package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-21e7079a.system.entry.js} +1 -1
  254. package/dist/mint-components/{p-5141769d.system.entry.js → p-247cfbdc.system.entry.js} +1 -1
  255. package/dist/mint-components/{p-8583ce0c.system.js → p-28e0062c.system.js} +1 -1
  256. package/dist/mint-components/p-28ed2ae9.js +1 -0
  257. package/dist/mint-components/{p-e3497e0e.system.entry.js → p-28fe7357.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-25558a33.entry.js → p-2d3a12f2.entry.js} +2 -2
  259. package/dist/mint-components/{p-f1374258.system.entry.js → p-2f4d8ab8.system.entry.js} +1 -1
  260. package/dist/mint-components/{p-ec0b649a.entry.js → p-3181e54a.entry.js} +1 -1
  261. package/dist/mint-components/{p-fb5c9802.entry.js → p-3218bb1d.entry.js} +1 -1
  262. package/dist/mint-components/{p-035d9b65.js → p-32d078a3.js} +1 -1
  263. package/dist/mint-components/{p-8f2d03c7.entry.js → p-3461a8cb.entry.js} +1 -1
  264. package/dist/mint-components/{p-90833864.system.entry.js → p-357040e6.system.entry.js} +1 -1
  265. package/dist/mint-components/{p-85721089.system.js → p-36395228.system.js} +1 -1
  266. package/dist/mint-components/{p-e6ace3ab.js → p-370e0d75.js} +1 -1
  267. package/dist/mint-components/{p-fc284f91.system.entry.js → p-3756d0d1.system.entry.js} +1 -1
  268. package/dist/mint-components/{p-db0a2afd.entry.js → p-37658fec.entry.js} +1 -1
  269. package/dist/mint-components/{p-7b909aa5.system.js → p-379cb9f1.system.js} +1 -1
  270. package/dist/mint-components/{p-55676213.entry.js → p-38dc2f60.entry.js} +1 -1
  271. package/dist/mint-components/p-39840341.js +1 -0
  272. package/dist/mint-components/{p-f581aac7.js → p-3c333076.js} +1 -1
  273. package/dist/mint-components/{p-bc386a7b.js → p-3c555674.js} +1 -1
  274. package/dist/mint-components/{p-bab4929e.js → p-3c88d2ed.js} +2 -2
  275. package/dist/mint-components/{p-f8a09b0f.js → p-438f6702.js} +152 -152
  276. package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-45475cf9.system.entry.js} +1 -1
  277. package/dist/mint-components/{p-56ca7e3c.js → p-45e2a83a.js} +1 -1
  278. package/dist/mint-components/{p-7161e1a6.js → p-4723526d.js} +1 -1
  279. package/dist/mint-components/{p-cabf6326.js → p-50d959bd.js} +1 -1
  280. package/dist/mint-components/{p-626b31cb.system.entry.js → p-52748a87.system.entry.js} +1 -1
  281. package/dist/mint-components/p-52eca331.js +1 -0
  282. package/dist/mint-components/{p-cb0a5990.entry.js → p-55627a5c.entry.js} +1 -1
  283. package/dist/mint-components/{p-d997001a.js → p-567a5ded.js} +1 -1
  284. package/dist/mint-components/{p-5b871e38.system.entry.js → p-5c9d030a.system.entry.js} +1 -1
  285. package/dist/mint-components/{p-c8a8d231.entry.js → p-5dc9e95b.entry.js} +2 -2
  286. package/dist/mint-components/p-5e26014d.system.js +1 -0
  287. package/dist/mint-components/{p-80e116ec.system.entry.js → p-60085f20.system.entry.js} +1 -1
  288. package/dist/mint-components/{p-52674798.entry.js → p-608da224.entry.js} +1 -1
  289. package/dist/mint-components/{p-f39cf252.system.entry.js → p-6194855b.system.entry.js} +1 -1
  290. package/dist/mint-components/{p-013564b3.entry.js → p-62212b9a.entry.js} +1 -1
  291. package/dist/mint-components/{p-c45a929a.system.entry.js → p-62e1c8b2.system.entry.js} +1 -1
  292. package/dist/mint-components/p-63c299f1.system.js +1 -0
  293. package/dist/mint-components/p-64041ee1.entry.js +291 -0
  294. package/dist/mint-components/p-647933ac.entry.js +122 -0
  295. package/dist/mint-components/p-64f56cc9.system.js +285 -0
  296. package/dist/mint-components/p-6562cbec.system.entry.js +1 -0
  297. package/dist/mint-components/{p-70570e4d.system.entry.js → p-691d34f1.system.entry.js} +1 -1
  298. package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-6a4496b3.system.entry.js} +1 -1
  299. package/dist/mint-components/{p-692e14c5.system.js → p-6b1a6b0c.system.js} +1 -1
  300. package/dist/mint-components/p-6f8dde97.system.js +1 -0
  301. package/dist/mint-components/p-70e34ae1.system.js +6 -0
  302. package/dist/mint-components/{p-b9f57e84.system.entry.js → p-71561bb2.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-d65991d0.entry.js → p-731c4d33.entry.js} +1 -1
  304. package/dist/mint-components/{p-77b9cde8.system.js → p-7547180f.system.js} +1 -1
  305. package/dist/mint-components/{p-a0c5631b.system.js → p-77117f6c.system.js} +1 -1
  306. package/dist/mint-components/{p-dd368927.system.entry.js → p-7a08d288.system.entry.js} +1 -1
  307. package/dist/mint-components/p-7d5956ec.system.entry.js +1 -0
  308. package/dist/mint-components/{p-d18dedd4.js → p-7e36a1ff.js} +1 -1
  309. package/dist/mint-components/{p-e6240c72.js → p-8474aa63.js} +1 -1
  310. package/dist/mint-components/{p-e84b874c.js → p-857a2d77.js} +1 -1
  311. package/dist/mint-components/{p-205cfdcd.system.js → p-86381dc7.system.js} +1 -1
  312. package/dist/mint-components/{p-b2b85238.entry.js → p-86a70151.entry.js} +1 -1
  313. package/dist/mint-components/{p-058aefe1.entry.js → p-886fb141.entry.js} +1 -1
  314. package/dist/mint-components/{p-6668f9f0.entry.js → p-88c9cc1b.entry.js} +1 -1
  315. package/dist/mint-components/{p-ce050888.system.js → p-8b258a3e.system.js} +1 -1
  316. package/dist/mint-components/p-8ecc8875.js +116 -0
  317. package/dist/mint-components/{p-0d83907e.js → p-8f9c1387.js} +1 -1
  318. package/dist/mint-components/{p-d005df28.system.entry.js → p-95aaf35a.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-77fa2383.entry.js → p-96e4e6a4.entry.js} +1 -1
  320. package/dist/mint-components/{p-09f7aacd.entry.js → p-991f60fc.entry.js} +2 -2
  321. package/dist/mint-components/p-996eb820.entry.js +1 -0
  322. package/dist/mint-components/{p-027fc3be.system.entry.js → p-998c989a.system.entry.js} +1 -1
  323. package/dist/mint-components/{p-7b59e13c.system.js → p-9b33e2a7.system.js} +1 -1
  324. package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-9bd53e4d.system.entry.js} +1 -1
  325. package/dist/mint-components/{p-61897e72.entry.js → p-9c1b0c8b.entry.js} +1 -1
  326. package/dist/mint-components/{p-5ff7b000.entry.js → p-9d6984e7.entry.js} +2 -2
  327. package/dist/mint-components/{p-982d1f6f.entry.js → p-9e43f1eb.entry.js} +2 -2
  328. package/dist/mint-components/p-a0986077.system.entry.js +1 -0
  329. package/dist/mint-components/p-a1e1c42a.js +1 -0
  330. package/dist/mint-components/p-a2db4345.system.js +1 -0
  331. package/dist/mint-components/{p-669d52c4.js → p-a7f72a66.js} +1 -1
  332. package/dist/mint-components/{p-172675ca.system.js → p-a86ce218.system.js} +1 -1
  333. package/dist/mint-components/p-a8891ebd.js +1 -0
  334. package/dist/mint-components/p-a8ecdc44.system.js +1 -0
  335. package/dist/mint-components/p-aa319fbe.entry.js +9 -0
  336. package/dist/mint-components/{p-d6193876.system.js → p-b1b8e629.system.js} +1 -1
  337. package/dist/mint-components/p-b2a99637.system.js +1 -0
  338. package/dist/mint-components/p-b2bde2f5.entry.js +1 -0
  339. package/dist/mint-components/p-b451970a.system.entry.js +1 -0
  340. package/dist/mint-components/{p-e12754f5.system.entry.js → p-b5c0bad5.system.entry.js} +1 -1
  341. package/dist/mint-components/{p-5c4ba8a0.entry.js → p-b5fed7c6.entry.js} +1 -1
  342. package/dist/mint-components/{p-3286ef38.js → p-bcadd021.js} +1 -1
  343. package/dist/mint-components/p-c7535e70.system.entry.js +1 -0
  344. package/dist/mint-components/{p-5b1d2866.system.js → p-c84a2512.system.js} +1 -1
  345. package/dist/mint-components/{p-f4e36adf.system.entry.js → p-c8e45671.system.entry.js} +1 -1
  346. package/dist/mint-components/{p-e00ec007.js → p-ce11858c.js} +1 -1
  347. package/dist/mint-components/{p-ab0ea688.system.entry.js → p-d01949f7.system.entry.js} +1 -1
  348. package/dist/mint-components/p-d20188db.js +1 -0
  349. package/dist/mint-components/{p-19c441b2.system.js → p-d355336b.system.js} +1 -1
  350. package/dist/mint-components/{p-782af7ae.system.entry.js → p-d5a1c979.system.entry.js} +1 -1
  351. package/dist/mint-components/p-d6714617.entry.js +1 -0
  352. package/dist/mint-components/{p-aefc6c4f.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
  353. package/dist/mint-components/{p-3c46b4dd.system.js → p-df88dcaa.system.js} +1 -1
  354. package/dist/mint-components/{p-18133026.system.entry.js → p-e1292288.system.entry.js} +1 -1
  355. package/dist/mint-components/{p-036a2617.system.js → p-e4dbca9a.system.js} +1 -1
  356. package/dist/mint-components/p-e95402dc.js +49 -0
  357. package/dist/mint-components/{p-2d5c2bd4.system.entry.js → p-e9e05970.system.entry.js} +1 -1
  358. package/dist/mint-components/p-ee0f1cf1.system.js +1 -0
  359. package/dist/mint-components/{p-09348341.entry.js → p-f11d29fd.entry.js} +1 -1
  360. package/dist/mint-components/{p-dac20392.system.js → p-f368f04a.system.js} +1 -1
  361. package/dist/mint-components/{p-653db72e.entry.js → p-f4a57aed.entry.js} +1 -1
  362. package/dist/mint-components/p-f9671d6a.system.entry.js +1 -0
  363. package/dist/mint-components/{p-e5ea43b1.entry.js → p-f972e5c9.entry.js} +2 -2
  364. package/dist/mint-components/{p-5ce78407.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
  365. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +12 -0
  366. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +51 -0
  367. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +122 -0
  368. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +17 -0
  369. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +0 -1
  370. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +0 -5
  371. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +2 -1
  372. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +2 -1
  373. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
  374. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +78 -0
  375. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
  376. package/dist/types/components/tax-and-cash/data.d.ts +1 -0
  377. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +2 -0
  378. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
  379. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +165 -0
  380. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
  381. package/dist/types/components.d.ts +614 -82
  382. package/dist/types/saasquatch.d.ts +1 -0
  383. package/docs/docs.docx +0 -0
  384. package/docs/raisins.json +1 -1
  385. package/grapesjs/grapesjs.js +1 -1
  386. package/package.json +1 -1
  387. package/shoelace/assets/icons/twitter-x.svg +4 -0
  388. package/dist/cjs/extractProps-e9c55ba8.js +0 -35
  389. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
  390. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
  391. package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +0 -25
  392. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +0 -19
  393. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +0 -163
  394. package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +0 -26
  395. package/dist/esm/data-12e6aae1.js +0 -216
  396. package/dist/esm/extractProps-54064fb0.js +0 -32
  397. package/dist/esm/sqm-email-verification.entry.js +0 -414
  398. package/dist/esm/sqm-widget-verification.entry.js +0 -210
  399. package/dist/esm-es5/data-12e6aae1.js +0 -1
  400. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  401. package/dist/esm-es5/global-96c14d63.js +0 -271
  402. package/dist/esm-es5/index.module-b23fdad8.js +0 -1
  403. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  404. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
  405. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  406. package/dist/mint-components/p-02499e08.entry.js +0 -1
  407. package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
  408. package/dist/mint-components/p-0797a946.js +0 -1
  409. package/dist/mint-components/p-0a3d4374.system.entry.js +0 -1
  410. package/dist/mint-components/p-2cce6e14.entry.js +0 -9
  411. package/dist/mint-components/p-30c1ef36.system.js +0 -1
  412. package/dist/mint-components/p-38c7775a.js +0 -1
  413. package/dist/mint-components/p-3adbfd0b.system.js +0 -6
  414. package/dist/mint-components/p-4da5a3fe.system.entry.js +0 -1
  415. package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
  416. package/dist/mint-components/p-57dd28bd.system.js +0 -1
  417. package/dist/mint-components/p-6c4ad51a.js +0 -1
  418. package/dist/mint-components/p-6e512063.entry.js +0 -25
  419. package/dist/mint-components/p-7265bbcb.system.js +0 -271
  420. package/dist/mint-components/p-738dce27.system.entry.js +0 -1
  421. package/dist/mint-components/p-7efb8782.system.js +0 -1
  422. package/dist/mint-components/p-8fb1708b.system.entry.js +0 -1
  423. package/dist/mint-components/p-91a96e98.entry.js +0 -1
  424. package/dist/mint-components/p-a7f52290.entry.js +0 -281
  425. package/dist/mint-components/p-b395470f.entry.js +0 -16
  426. package/dist/mint-components/p-c67f8558.system.entry.js +0 -1
  427. package/dist/mint-components/p-ca098be1.system.js +0 -1
  428. package/dist/mint-components/p-d0993bb9.js +0 -1
  429. package/dist/mint-components/p-d4f332a7.entry.js +0 -106
  430. package/dist/mint-components/p-de0d6fd7.js +0 -49
  431. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  432. package/dist/mint-components/p-ea03e50e.system.js +0 -1
  433. package/dist/mint-components/p-fbe00c97.system.entry.js +0 -1
  434. package/dist/mint-components/p-fe70e20c.entry.js +0 -1
  435. package/dist/mint-components/p-ff118a19.system.js +0 -1
  436. package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +0 -7
  437. package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +0 -8
  438. package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +0 -42
  439. package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +0 -3
@@ -0,0 +1,284 @@
1
+ import { useLocale, useMutation, useQuery, useSetParent, } from "@saasquatch/component-boilerplate";
2
+ import { useEffect, useMemo, useState } from "@saasquatch/universal-hooks";
3
+ import { gql } from "graphql-request";
4
+ import { TAX_FORM_UPDATED_EVENT_KEY } from "../tax-and-cash/eventKeys";
5
+ import { VERIFICATION_PARENT_NAMESPACE } from "../sqm-widget-verification/keys";
6
+ import { GET_FINANCE_NETWORK_SETTINGS, } from "../tax-and-cash/data";
7
+ // new field under impactConnection:{ resolvedByEmail: boolean } - determines if connection came from managed identity
8
+ export const GET_USER_PARTNER_INFO = gql `
9
+ query getUserPartnerInfo {
10
+ user: viewer {
11
+ ... on User {
12
+ id
13
+ accountId
14
+ firstName
15
+ lastName
16
+ email
17
+ countryCode
18
+ customFields
19
+ impactConnection {
20
+ connected
21
+ connectionStatus
22
+ publisher {
23
+ id
24
+ countryCode
25
+ currency
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ `;
32
+ export const GET_COUNTRIES = gql `
33
+ query getCountries {
34
+ impactPayoutCountries(limit: 1000) {
35
+ data {
36
+ countryCode
37
+ displayName
38
+ }
39
+ }
40
+ }
41
+ `;
42
+ export const GET_CURRENCIES = gql `
43
+ query currencies($locale: RSLocale) {
44
+ currencies(limit: 300) {
45
+ data {
46
+ displayName(locale: $locale)
47
+ currencyCode
48
+ }
49
+ }
50
+ }
51
+ `;
52
+ export const CONNECT_PARTNER = gql `
53
+ mutation createImpactConnection($vars: ImpactConnectionInput!) {
54
+ createImpactConnection(impactConnectionInput: $vars) {
55
+ success
56
+ validationErrors {
57
+ field
58
+ message
59
+ }
60
+ user {
61
+ id
62
+ accountId
63
+ impactConnection {
64
+ connected
65
+ publisher {
66
+ brandedSignup
67
+ requiredTaxDocumentType
68
+ currentTaxDocument {
69
+ type
70
+ status
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ `;
78
+ const START_IMPACT_CONNECTION = gql `
79
+ mutation startImpactConnection($vars: ImpactConnectionInput!) {
80
+ startImpactConnection(impactConnectionInput: $vars) {
81
+ success
82
+ validationErrors {
83
+ field
84
+ message
85
+ }
86
+ user {
87
+ id
88
+ accountId
89
+ impactConnection {
90
+ connected
91
+ publisher {
92
+ brandedSignup
93
+ requiredTaxDocumentType
94
+ currentTaxDocument {
95
+ type
96
+ status
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ `;
104
+ const GET_BRAND_NAME = gql `
105
+ query getTenantSettings {
106
+ tenantSettings {
107
+ companyName
108
+ }
109
+ }
110
+ `;
111
+ export function usePartnerInfoModal(props) {
112
+ var _a, _b, _c, _d, _e, _f, _g;
113
+ const locale = useLocale();
114
+ const setVerificationContext = useSetParent(VERIFICATION_PARENT_NAMESPACE);
115
+ const { data: userData, loading: userLoading, refetch, } = useQuery(GET_USER_PARTNER_INFO, {});
116
+ const user = userData === null || userData === void 0 ? void 0 : userData.user;
117
+ const { data: currenciesData, loading: currenciesLoading } = useQuery(GET_CURRENCIES, { variables: { locale } });
118
+ const { data: countriesData, loading: countriesLoading } = useQuery(GET_COUNTRIES, {});
119
+ const { data: tenantSettingsData } = useQuery(GET_BRAND_NAME, {});
120
+ const { data: financeNetworkData } = useQuery(GET_FINANCE_NETWORK_SETTINGS, {
121
+ variables: { filter: {} },
122
+ });
123
+ const [startImpactConnection, { loading: connectLoading, errors: connectErrors },] = useMutation(START_IMPACT_CONNECTION);
124
+ const [allowBankingCollection, setAllowBankingCollection] = useState(false);
125
+ const [checkboxError, setCheckboxError] = useState("");
126
+ // No pre-filled country, use locale to determine countryCode instead
127
+ const [countryCode, setCountryCode] = 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) || "");
128
+ const [currency, setCurrency] = 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) || "");
129
+ const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
130
+ // copied from useTaxAndCash for displaying currencies based on country - could be in helper?
131
+ const currencies = useMemo(() => {
132
+ var _a, _b;
133
+ const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
134
+ var _a, _b;
135
+ const currency = (_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((c) => c.currencyCode === settings.currency);
136
+ if (!currency)
137
+ return agg;
138
+ if (agg.find((c) => c.currencyCode === settings.currency))
139
+ return agg;
140
+ if (countryCode && settings.countryCode !== countryCode)
141
+ return agg;
142
+ return [...agg, currency];
143
+ }, []);
144
+ return (allValidCurrencies || []).sort((a, b) => a.displayName.localeCompare(b.displayName));
145
+ }, [financeNetworkData, currenciesData, countryCode]);
146
+ const [countrySearch, setCountrySearch] = useState("");
147
+ const [currencySearch, setCurrencySearch] = useState("");
148
+ const [filteredCountries, setFilteredCountries] = useState(((_f = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _f === void 0 ? void 0 : _f.data) || []);
149
+ const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
150
+ const [error, setError] = useState("");
151
+ const [success, setSuccess] = useState(false);
152
+ useEffect(() => {
153
+ var _a;
154
+ const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
155
+ if (!userData || !publisher)
156
+ return;
157
+ setCountryCode(publisher.countryCode);
158
+ setCurrency(publisher.currency);
159
+ }, [userData, user]);
160
+ useEffect(() => {
161
+ if (!(countries === null || countries === void 0 ? void 0 : countries.length))
162
+ return;
163
+ if (countrySearch.trim() === "") {
164
+ setFilteredCountries(countries || []);
165
+ }
166
+ else {
167
+ setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
168
+ }
169
+ }, [countrySearch, countries]);
170
+ useEffect(() => {
171
+ if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
172
+ return;
173
+ if (currencySearch.trim() === "") {
174
+ setFilteredCurrencies(currencies || []);
175
+ }
176
+ else {
177
+ setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
178
+ }
179
+ }, [currencySearch, currencies]);
180
+ const impactConnection = user === null || user === void 0 ? void 0 : user.impactConnection;
181
+ function onCountryChange(e) {
182
+ var _a, _b;
183
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
184
+ if (!value)
185
+ return;
186
+ setCountryCode(value);
187
+ setCurrency("");
188
+ setError("");
189
+ }
190
+ function onCurrencyChange(e) {
191
+ var _a, _b;
192
+ const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
193
+ if (!value)
194
+ return;
195
+ setCurrency(value);
196
+ setError("");
197
+ }
198
+ function onCheckboxChange(e) {
199
+ const checked = e.target.checked;
200
+ setAllowBankingCollection(checked);
201
+ if (checked)
202
+ setCheckboxError("");
203
+ }
204
+ async function onSubmit() {
205
+ var _a, _b;
206
+ if (!allowBankingCollection) {
207
+ setCheckboxError(props.missingFieldsErrorText);
208
+ return;
209
+ }
210
+ if (!countryCode || !currency) {
211
+ setError(props.missingFieldsErrorText);
212
+ return;
213
+ }
214
+ setError("");
215
+ setCheckboxError("");
216
+ try {
217
+ const vars = {
218
+ user: {
219
+ id: user.id,
220
+ accountId: user.accountId,
221
+ },
222
+ firstName: user.firstName,
223
+ lastName: user.lastName,
224
+ // phoneNumber: null,
225
+ // phoneNumberCountryCode: null,
226
+ countryCode,
227
+ currency,
228
+ };
229
+ const result = await startImpactConnection({ vars });
230
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
231
+ setError(props.networkErrorText);
232
+ return;
233
+ }
234
+ const connectionResult = result
235
+ .startImpactConnection;
236
+ console.log(result, connectionResult, "result and connectionResult from creating partner from modal");
237
+ if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
238
+ const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
239
+ setError(validationMsg || props.networkErrorText);
240
+ console.error("Failed to create Impact connection:", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
241
+ return;
242
+ }
243
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
244
+ await refetch();
245
+ setSuccess(true);
246
+ setVerificationContext(true);
247
+ }
248
+ catch (e) {
249
+ console.error("Partner creation error:", e);
250
+ setError(props.networkErrorText);
251
+ }
252
+ }
253
+ const showModal = !success &&
254
+ !userLoading &&
255
+ (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
256
+ return {
257
+ states: {
258
+ open: showModal,
259
+ loading: userLoading || countriesLoading || currenciesLoading,
260
+ submitting: connectLoading,
261
+ isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
262
+ countryCode,
263
+ currency,
264
+ error,
265
+ success,
266
+ brandName: ((_g = tenantSettingsData === null || tenantSettingsData === void 0 ? void 0 : tenantSettingsData.tenantSettings) === null || _g === void 0 ? void 0 : _g.companyName) || "",
267
+ filteredCountries: filteredCountries || [],
268
+ filteredCurrencies: filteredCurrencies || [],
269
+ allowBankingCollection,
270
+ checkboxError,
271
+ disabled: userLoading || connectLoading,
272
+ },
273
+ callbacks: {
274
+ onCountryChange,
275
+ onCurrencyChange,
276
+ onCheckboxChange,
277
+ setCurrencySearch,
278
+ setCountrySearch,
279
+ onSubmit,
280
+ onClose: () => setSuccess(true),
281
+ },
282
+ text: props.getTextProps(),
283
+ };
284
+ }
@@ -16,7 +16,6 @@ const props = {
16
16
  iframeSrc: "https://example.com",
17
17
  iframeHeight: "100%",
18
18
  iframeWidth: "100%",
19
- codeParam: "rsCode",
20
19
  },
21
20
  },
22
21
  };
@@ -25,5 +25,5 @@ export function ReferralIframeView(props) {
25
25
  const styleString = sheet.toString();
26
26
  return (h("div", { class: sheet.classes.Container },
27
27
  h("style", { type: "text/css" }, styleString),
28
- h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?${encodeURIComponent(content.codeParam)}=${data.shareCode}` })));
28
+ h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
29
29
  }
@@ -22,11 +22,6 @@ export class SqmReferralIframe {
22
22
  * @uiName IFrame width
23
23
  */
24
24
  this.iframeWidth = "100%";
25
- /**
26
- * Override the default parameter name used in the iframe
27
- * @uiName Referral code parameter name
28
- */
29
- this.codeParam = "rsCode";
30
25
  withHooks(this);
31
26
  }
32
27
  disconnectedCallback() { }
@@ -113,33 +108,12 @@ export class SqmReferralIframe {
113
108
  "reflect": false,
114
109
  "defaultValue": "\"100%\""
115
110
  },
116
- "codeParam": {
117
- "type": "string",
118
- "mutable": false,
119
- "complexType": {
120
- "original": "string",
121
- "resolved": "string",
122
- "references": {}
123
- },
124
- "required": false,
125
- "optional": false,
126
- "docs": {
127
- "tags": [{
128
- "text": "Referral code parameter name",
129
- "name": "uiName"
130
- }],
131
- "text": "Override the default parameter name used in the iframe"
132
- },
133
- "attribute": "code-param",
134
- "reflect": false,
135
- "defaultValue": "\"rsCode\""
136
- },
137
111
  "demoData": {
138
112
  "type": "unknown",
139
113
  "mutable": false,
140
114
  "complexType": {
141
115
  "original": "DemoData<ReferralIframeViewProps>",
142
- "resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; codeParam: string; }; }; data?: { shareCode: string; }; }",
116
+ "resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }",
143
117
  "references": {
144
118
  "DemoData": {
145
119
  "location": "import",
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { GenericTableView } from "../../tables/GenericTableView";
3
3
  import { Converted as ConvertedStatus, DateCell, } from "./ReferralTableCell.stories";
4
- import { PayoutApproved, PayoutProcessing, PayoutFailed, PayoutCancelled, PendingTaxReview, PendingNewTaxForm, PendingTaxSubmission, PendingPartnerCreation, PendingW9, CashReward, } from "./TaxAndCashReferralTableRewardsCell.stories";
4
+ import { PayoutApproved, PayoutProcessing, PayoutFailed, PayoutCancelled, PendingTaxReview, PendingNewTaxForm, PendingTaxSubmission, PartnerNotCreatedSetupNotStarted, PendingW9, CashReward, } from "./TaxAndCashReferralTableRewardsCell.stories";
5
5
  export default {
6
6
  title: "Components/Tax And Cash Referral Table",
7
7
  };
@@ -75,7 +75,7 @@ const taxAndCashTableProps = {
75
75
  h("sqm-referral-table-user-cell", { name: "Partner Creation User" }),
76
76
  h(ConvertedStatus, null),
77
77
  h(DateCell, null),
78
- h(PendingPartnerCreation, null),
78
+ h(PartnerNotCreatedSetupNotStarted, null),
79
79
  ],
80
80
  [
81
81
  h("sqm-referral-table-user-cell", { name: "Missing W9 User" }),
@@ -162,7 +162,19 @@ export const PendingTaxSubmission = () => {
162
162
  },
163
163
  } }, defaultProps)));
164
164
  };
165
- export const PendingPartnerCreation = () => {
165
+ export const PartnerNotCreatedSetupNotStarted = () => {
166
+ return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
167
+ {
168
+ ...cashReward,
169
+ statuses: ["PENDING"],
170
+ pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
171
+ },
172
+ ], taxConnection: {
173
+ ...taxConnection,
174
+ connected: false,
175
+ } }, defaultProps)));
176
+ };
177
+ export const PartnerCreatedSetupStartedButIncomplete = () => {
166
178
  return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
167
179
  {
168
180
  ...cashReward,
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { GenericTableView } from "../../tables/GenericTableView";
3
3
  import { SourceCellReferral, DateCell } from "./RewardsTableCell.stories";
4
- import { StatusCellPayoutSent, StatusCellPayoutFailed, StatusCellPendingNewTaxForm, StatusCellPendingPartnerCreation, StatusCellPendingTaxReview, StatusCellPendingTaxSubmission, StatusCellPayoutProcessing, CashReward, StatusCellPendingW9, StatusCellPayoutCancelled, } from "./TaxAndCashRewardsTableCell.stories";
4
+ import { StatusCellPayoutSent, StatusCellPayoutFailed, StatusCellPendingNewTaxForm, StatusCellPendingTaxReview, StatusCellPendingTaxSubmission, StatusCellPayoutProcessing, CashReward, StatusCellPendingW9, StatusCellPayoutCancelled, StatusCellPartnerNotCreatedSetupNotStarted, } from "./TaxAndCashRewardsTableCell.stories";
5
5
  export default {
6
6
  title: "Components/Tax And Cash Rewards Table",
7
7
  };
@@ -58,7 +58,7 @@ const r_pending_tax_review = [
58
58
  ];
59
59
  const r_pending_partner_creation = [
60
60
  h(CashReward, null),
61
- h(StatusCellPendingPartnerCreation, null),
61
+ h(StatusCellPartnerNotCreatedSetupNotStarted, null),
62
62
  h(SourceCellReferral, null),
63
63
  h(DateCell, null),
64
64
  ];
@@ -92,6 +92,7 @@ const processingPFT = {
92
92
  const taxConnection = {
93
93
  connected: true,
94
94
  taxHandlingEnabled: true,
95
+ connectionStatus: "NOT_STARTED",
95
96
  publisher: {
96
97
  requiredTaxDocumentType: "W8BEN",
97
98
  currentTaxDocument: {
@@ -152,7 +153,17 @@ export const StatusCellPendingTaxSubmission = () => {
152
153
  },
153
154
  } }));
154
155
  };
155
- export const StatusCellPendingPartnerCreation = () => {
156
+ export const StatusCellPartnerCreatedSetupStartedButIncomplete = () => {
157
+ return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
158
+ ...cashReward,
159
+ ...pending,
160
+ pendingReasons: ["US_TAX"],
161
+ }, taxConnection: {
162
+ ...taxConnection,
163
+ connected: false,
164
+ } }));
165
+ };
166
+ export const StatusCellPartnerNotCreatedSetupNotStarted = () => {
156
167
  return (h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
157
168
  ...cashReward,
158
169
  ...pending,
@@ -107,7 +107,8 @@ import * as LeadFormDropdownField from "../sqm-lead-form/LeadFormDropdownField.s
107
107
  import * as LeadCheckboxField from "../sqm-lead-form/LeadCheckboxField.stories";
108
108
  import * as Skeleton from "../sqm-skeleton/Skeleton.stories";
109
109
  import * as UserInfoFormView from "../tax-and-cash/sqm-user-info-form/UserInfoFormView.stories";
110
- import * as UserAttribute from "../sqm-user-attribute/UserAttribute.stories";
110
+ import * as PartnerInfoModal from "../sqm-partner-info-modal/PartnerInfoModal.stories";
111
+ import * as WidgetVerification from "../sqm-widget-verification/WidgetVerification.stories";
111
112
  import { ShadowViewAddon } from "../../ShadowViewAddon";
112
113
  import { CucumberAddon } from "./CucumberAddon";
113
114
  import { HookStoryAddon } from "./HookStoryAddon";
@@ -219,7 +220,8 @@ const stories = [
219
220
  TaxAndCashRewardsTable,
220
221
  TaxAndCashReferralTableRewardsCell,
221
222
  TaxAndCashReferralTable,
222
- UserAttribute,
223
+ PartnerInfoModal,
224
+ WidgetVerification,
223
225
  ];
224
226
  /**
225
227
  * For internal documentation
@@ -50,7 +50,7 @@ export function TextSpanView(props, children) {
50
50
  display: inline;
51
51
  }
52
52
  `;
53
- return (h("span", { class: sheet.classes[type], part: "sqm-base" },
53
+ return (h("span", { class: sheet.classes[type], part: "sqm-text-span-base" },
54
54
  h("style", { type: "text/css" },
55
55
  vanillaStyle,
56
56
  styleString),
@@ -0,0 +1,16 @@
1
+ import { h } from "@stencil/core";
2
+ export default {
3
+ title: "Components/Widget Verification",
4
+ };
5
+ export const Step1Email = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
6
+ "sqm-widget-verification": { showCode: false },
7
+ }) }));
8
+ export const Step2Code = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
9
+ "sqm-widget-verification": { showCode: true },
10
+ }) }));
11
+ export const Step3PartnerModal = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
12
+ "sqm-widget-verification": { showPartnerModal: true },
13
+ }) }));
14
+ export const Loading = () => (h("sqm-widget-verification", { stateController: JSON.stringify({
15
+ "sqm-widget-verification": { loading: true },
16
+ }) }));
@@ -54,7 +54,6 @@ const style = {
54
54
  },
55
55
  ContinueButton: {
56
56
  width: "100%",
57
- maxWidth: "100px",
58
57
  },
59
58
  FooterContainer: {
60
59
  display: "flex",
@@ -132,7 +131,7 @@ export function WidgetCodeVerificationView(props) {
132
131
  h("sl-input", { class: inputClass, name: "code" }),
133
132
  h("sl-input", { class: inputClass, name: "code" })),
134
133
  states.verifyFailed && (h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
135
- h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
136
- h("div", { class: sheet.classes.FooterContainer },
137
- h(TextSpanView, { type: "p" }, resendCodeText)))));
134
+ h("div", { class: sheet.classes.FooterContainer },
135
+ h(TextSpanView, { type: "p" }, resendCodeText)),
136
+ h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)))));
138
137
  }
@@ -14,11 +14,9 @@ const style = {
14
14
  gap: "var(--sl-spacing-medium)",
15
15
  position: "relative",
16
16
  flexDirection: "column",
17
- maxWidth: "320px",
18
17
  },
19
18
  ContinueButton: {
20
19
  width: "100%",
21
- maxWidth: "100px",
22
20
  },
23
21
  SkeletonOne: {
24
22
  width: "50%",