@saasquatch/mint-components 2.2.0-6 → 2.2.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 (456) hide show
  1. package/dist/cjs/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
  2. package/dist/cjs/{data-c03e282a.js → data-8c8a08f6.js} +90 -1
  3. package/dist/cjs/extractProps-e9c55ba8.js +35 -0
  4. package/dist/cjs/{keys-5a2c9ed2.js → keys-cff24974.js} +0 -4
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mint-components.cjs.js +1 -1
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +101 -482
  8. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +360 -424
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +6 -5
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  12. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  13. package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
  16. package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
  17. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  18. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  19. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  20. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
  21. package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
  22. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +10 -28
  23. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -30
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +532 -740
  26. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  27. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  28. package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-53306f6e.js} +40 -33
  29. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  30. package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
  31. package/dist/cjs/{usePayoutStatus-0a98ee05.js → usePayoutStatus-0192fccd.js} +5 -3
  32. package/dist/collection/collection-manifest.json +1 -1
  33. package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
  34. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  35. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
  36. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  37. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  38. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  39. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  40. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  41. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  42. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +0 -1
  43. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
  44. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  45. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +145 -209
  46. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +10 -30
  47. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +0 -1
  48. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  49. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +137 -223
  50. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +10 -30
  51. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -1
  52. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  53. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  54. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  55. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  56. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  57. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  58. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -4
  59. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  60. package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +43 -0
  61. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +19 -0
  62. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +175 -0
  63. package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +30 -0
  64. package/dist/collection/components/sqm-widget-verification/keys.js +0 -2
  65. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
  66. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
  67. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +9 -19
  68. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +46 -486
  69. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +11 -43
  70. package/dist/collection/components/tax-and-cash/data.js +0 -1
  71. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  72. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  73. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  74. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  75. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +12 -51
  76. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  77. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +36 -7
  78. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -3
  79. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  80. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +1 -0
  81. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -10
  82. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +25 -0
  83. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +17 -34
  84. package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-0b980200.js} +435 -34
  85. package/dist/esm/data-12e6aae1.js +216 -0
  86. package/dist/esm/extractProps-54064fb0.js +32 -0
  87. package/dist/esm/{global-75e96214.js → global-96c14d63.js} +1 -1
  88. package/dist/esm/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
  89. package/dist/esm/keys-406491dc.js +6 -0
  90. package/dist/esm/loader.js +3 -3
  91. package/dist/esm/mint-components.js +3 -3
  92. package/dist/esm/{re-render-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
  93. package/dist/esm/sqm-banking-info-form_10.entry.js +95 -476
  94. package/dist/esm/sqm-big-stat_46.entry.js +364 -428
  95. package/dist/esm/sqm-close-button.entry.js +1 -1
  96. package/dist/esm/sqm-code-verification.entry.js +9 -8
  97. package/dist/esm/sqm-context-router.entry.js +1 -1
  98. package/dist/esm/sqm-email-verification.entry.js +414 -0
  99. package/dist/esm/sqm-empty_4.entry.js +3 -3
  100. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  101. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  102. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  103. package/dist/esm/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  104. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  105. package/dist/esm/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  106. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  107. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  108. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  109. package/dist/esm/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  110. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  111. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  112. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  113. package/dist/esm/sqm-password-field.entry.js +2 -2
  114. package/dist/esm/sqm-popup-container.entry.js +1 -1
  115. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  116. package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.js} +2 -2
  117. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  118. package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
  119. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  120. package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
  121. package/dist/esm/sqm-portal-profile.entry.js +5 -5
  122. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  123. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  124. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  125. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  126. package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
  127. package/dist/esm/sqm-qr-code.entry.js +2 -2
  128. package/dist/esm/sqm-referral-table_11.entry.js +15 -33
  129. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  130. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  131. package/dist/esm/sqm-rewards-table_9.entry.js +14 -35
  132. package/dist/esm/sqm-stencilbook.entry.js +506 -714
  133. package/dist/esm/sqm-tab.entry.js +2 -2
  134. package/dist/esm/sqm-tabs.entry.js +3 -3
  135. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  136. package/dist/esm/sqm-text-span.entry.js +1 -1
  137. package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-19d81a2b.js} +20 -13
  138. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  139. package/dist/esm/sqm-widget-verification.entry.js +210 -0
  140. package/dist/esm/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
  141. package/dist/esm/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +2 -2
  142. package/dist/esm/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +2 -2
  143. package/dist/esm/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +4 -3
  144. package/dist/esm/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
  145. package/dist/esm/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
  146. package/dist/esm/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +3 -3
  147. package/dist/esm/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
  148. package/dist/esm/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
  149. package/dist/esm/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
  150. package/dist/esm-es5/ShadowViewAddon-0b980200.js +1 -0
  151. package/dist/esm-es5/data-12e6aae1.js +1 -0
  152. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  153. package/dist/esm-es5/{global-75e96214.js → global-96c14d63.js} +1 -1
  154. package/dist/esm-es5/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
  155. package/dist/esm-es5/keys-406491dc.js +1 -0
  156. package/dist/esm-es5/loader.js +1 -1
  157. package/dist/esm-es5/mint-components.js +1 -1
  158. package/dist/esm-es5/{re-render-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
  159. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  160. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  161. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  162. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  163. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  164. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  165. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  166. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  167. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  168. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  169. package/dist/esm-es5/{sqm-lead-checkbox-field-view-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  170. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  171. package/dist/esm-es5/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  172. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  173. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  174. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  175. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  176. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  177. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  178. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  179. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  180. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  181. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  182. package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  183. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  184. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  185. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  187. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  188. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  189. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  190. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  191. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  192. package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  193. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  194. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  195. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  196. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  197. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  198. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  199. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  200. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  201. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  202. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  203. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
  204. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  205. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  206. package/dist/esm-es5/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
  207. package/dist/esm-es5/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +1 -1
  208. package/dist/esm-es5/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +1 -1
  209. package/dist/esm-es5/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +2 -2
  210. package/dist/esm-es5/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
  211. package/dist/esm-es5/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
  212. package/dist/esm-es5/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +1 -1
  213. package/dist/esm-es5/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
  214. package/dist/esm-es5/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
  215. package/dist/esm-es5/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
  216. package/dist/mint-components/mint-components.esm.js +1 -1
  217. package/dist/mint-components/mint-components.js +1 -1
  218. package/dist/mint-components/p-00b235c5.system.entry.js +1 -0
  219. package/dist/mint-components/{p-4eadbd5b.entry.js → p-013564b3.entry.js} +1 -1
  220. package/dist/mint-components/{p-1b0326d1.entry.js → p-02499e08.entry.js} +1 -1
  221. package/dist/mint-components/{p-d34564f8.system.entry.js → p-027fc3be.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-bb0b5e4b.js → p-035d9b65.js} +1 -1
  223. package/dist/mint-components/{p-e651593c.system.js → p-036a2617.system.js} +1 -1
  224. package/dist/mint-components/p-044f930a.system.js +1 -0
  225. package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
  226. package/dist/mint-components/p-0797a946.js +1 -0
  227. package/dist/mint-components/{p-60b1f3d9.entry.js → p-09348341.entry.js} +1 -1
  228. package/dist/mint-components/{p-29bc5f50.entry.js → p-09f7aacd.entry.js} +2 -2
  229. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  230. package/dist/{esm/data-017e5ef2.js → mint-components/p-0c0d4065.js} +5 -24
  231. package/dist/mint-components/{p-cfea215d.js → p-0d83907e.js} +1 -1
  232. package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
  233. package/dist/mint-components/p-13292317.entry.js +11 -0
  234. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  235. package/dist/mint-components/{p-d284ae70.system.js → p-172675ca.system.js} +1 -1
  236. package/dist/mint-components/{p-b2ad3fca.system.js → p-19c441b2.system.js} +1 -1
  237. package/dist/mint-components/{p-dafe30c3.entry.js → p-1d92c169.entry.js} +1 -1
  238. package/dist/mint-components/{p-0815b973.system.js → p-205cfdcd.system.js} +1 -1
  239. package/dist/mint-components/{p-ae4994e1.js → p-2668335b.js} +1 -1
  240. package/dist/mint-components/{p-13bb56a8.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
  241. package/dist/mint-components/p-2d5c2bd4.system.entry.js +1 -0
  242. package/dist/mint-components/{p-2190dc73.system.js → p-30c1ef36.system.js} +1 -1
  243. package/dist/mint-components/{p-4eaa3eb7.js → p-3286ef38.js} +1 -1
  244. package/dist/mint-components/{p-eae44b42.js → p-3366b81e.js} +2 -2
  245. package/dist/mint-components/p-38c7775a.js +1 -0
  246. package/dist/mint-components/p-3adbfd0b.system.js +6 -0
  247. package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
  248. package/dist/mint-components/{p-4e3db52b.entry.js → p-3bc62ca6.entry.js} +1 -1
  249. package/dist/mint-components/{p-d71a8b38.entry.js → p-40bad95a.entry.js} +2 -2
  250. package/dist/mint-components/{p-bd972473.system.js → p-43c31fd5.system.js} +1 -1
  251. package/dist/mint-components/{p-df897432.system.entry.js → p-4da5a3fe.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-bcfdb510.entry.js → p-52674798.entry.js} +1 -1
  253. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  254. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  255. package/dist/mint-components/p-5b1d2866.system.js +1 -0
  256. package/dist/mint-components/{p-02c0f88e.system.entry.js → p-5b871e38.system.entry.js} +1 -1
  257. package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
  258. package/dist/mint-components/{p-7ea3f49c.entry.js → p-5c4ba8a0.entry.js} +1 -1
  259. package/dist/mint-components/{p-81bc6dca.system.entry.js → p-5ce78407.system.entry.js} +1 -1
  260. package/dist/mint-components/{p-14183edc.entry.js → p-61897e72.entry.js} +1 -1
  261. package/dist/mint-components/{p-025ddad2.system.entry.js → p-626b31cb.system.entry.js} +1 -1
  262. package/dist/mint-components/{p-bf9ab2d3.js → p-642f2c89.js} +1 -1
  263. package/dist/mint-components/{p-78e6dc8d.entry.js → p-653db72e.entry.js} +1 -1
  264. package/dist/mint-components/{p-27daf264.entry.js → p-6668f9f0.entry.js} +1 -1
  265. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  266. package/dist/mint-components/p-6c4ad51a.js +1 -0
  267. package/dist/mint-components/{p-8e148cb0.system.js → p-7265bbcb.system.js} +1 -1
  268. package/dist/mint-components/{p-2d3f7b76.system.entry.js → p-738dce27.system.entry.js} +1 -1
  269. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  270. package/dist/mint-components/{p-5fdf0286.system.js → p-77b9cde8.system.js} +1 -1
  271. package/dist/mint-components/p-77fa2383.entry.js +1 -0
  272. package/dist/mint-components/{p-f6de2e5c.system.entry.js → p-782af7ae.system.entry.js} +1 -1
  273. package/dist/mint-components/p-7939e4af.entry.js +1 -0
  274. package/dist/mint-components/{p-1317cc92.system.js → p-7b59e13c.system.js} +1 -1
  275. package/dist/mint-components/{p-f32050f6.system.js → p-7efb8782.system.js} +1 -1
  276. package/dist/mint-components/{p-24f1d342.system.entry.js → p-80e116ec.system.entry.js} +1 -1
  277. package/dist/mint-components/p-8285869e.entry.js +9 -0
  278. package/dist/mint-components/{p-614723aa.js → p-832aea99.js} +1 -1
  279. package/dist/mint-components/{p-e920c95c.system.js → p-85721089.system.js} +1 -1
  280. package/dist/mint-components/{p-376c7608.system.js → p-8583ce0c.system.js} +1 -1
  281. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  282. package/dist/mint-components/p-892797eb.system.entry.js +1 -0
  283. package/dist/mint-components/{p-2ab31786.js → p-8962e023.js} +1 -1
  284. package/dist/mint-components/{p-1599a178.entry.js → p-8f2d03c7.entry.js} +1 -1
  285. package/dist/mint-components/{p-ab59c5eb.system.entry.js → p-90833864.system.entry.js} +1 -1
  286. package/dist/mint-components/p-91a96e98.entry.js +1 -0
  287. package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-9390586b.system.entry.js} +1 -1
  288. package/dist/mint-components/{p-38d04e4b.entry.js → p-95510f27.entry.js} +1 -1
  289. package/dist/mint-components/{p-432a44de.entry.js → p-982d1f6f.entry.js} +2 -3
  290. package/dist/mint-components/{p-c66e5217.system.js → p-a0c5631b.system.js} +1 -1
  291. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  292. package/dist/mint-components/{p-0766438e.js → p-a4f8abad.js} +1 -1
  293. package/dist/mint-components/{p-209157a9.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-eee0bcf4.entry.js → p-af407cce.entry.js} +1 -1
  295. package/dist/mint-components/p-b2b85238.entry.js +1 -0
  296. package/dist/mint-components/p-b395470f.entry.js +16 -0
  297. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  298. package/dist/mint-components/{p-921eb024.entry.js → p-b66f45d1.entry.js} +1 -1
  299. package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-45230a44.js → p-bab4929e.js} +1 -1
  301. package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
  302. package/dist/mint-components/{p-c0a85e22.js → p-bc386a7b.js} +1 -1
  303. package/dist/mint-components/p-be12607e.entry.js +281 -0
  304. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  305. package/dist/mint-components/p-bf188b72.system.entry.js +1 -0
  306. package/dist/mint-components/{p-6b4e5d94.system.entry.js → p-c30d0049.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-30cfe3e3.system.entry.js → p-c45a929a.system.entry.js} +1 -1
  308. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  309. package/dist/mint-components/p-c8a3f3b0.js +499 -0
  310. package/dist/mint-components/{p-b3309d9b.entry.js → p-c8a8d231.entry.js} +2 -2
  311. package/dist/mint-components/{p-3354cc75.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
  312. package/dist/mint-components/p-ca098be1.system.js +1 -0
  313. package/dist/mint-components/{p-623a0a0b.system.entry.js → p-d005df28.system.entry.js} +1 -1
  314. package/dist/mint-components/{p-8a6531d2.js → p-d0993bb9.js} +1 -1
  315. package/dist/mint-components/p-d18dedd4.js +1 -0
  316. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  317. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  318. package/dist/mint-components/{p-b1765c78.system.js → p-d55c50af.system.js} +1 -1
  319. package/dist/mint-components/p-d6193876.system.js +1 -0
  320. package/dist/mint-components/{p-092c2606.entry.js → p-db0a2afd.entry.js} +1 -1
  321. package/dist/mint-components/p-de0d6fd7.js +49 -0
  322. package/dist/mint-components/p-e00ec007.js +1 -0
  323. package/dist/mint-components/{p-9a15cd5a.system.entry.js → p-e12754f5.system.entry.js} +1 -1
  324. package/dist/mint-components/p-e30abc44.js +1 -0
  325. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  326. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  327. package/dist/mint-components/{p-3bbc0db2.entry.js → p-e5ea43b1.entry.js} +2 -2
  328. package/dist/mint-components/{p-abd717d4.js → p-e6240c72.js} +1 -1
  329. package/dist/mint-components/{p-3a41b39c.js → p-e84b874c.js} +1 -1
  330. package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-e9485160.system.entry.js} +1 -1
  331. package/dist/mint-components/p-ea03e50e.system.js +1 -0
  332. package/dist/mint-components/p-ec0b649a.entry.js +1 -0
  333. package/dist/mint-components/{p-925aa740.system.entry.js → p-f1374258.system.entry.js} +1 -1
  334. package/dist/mint-components/{p-e6de31a7.system.entry.js → p-f39cf252.system.entry.js} +1 -1
  335. package/dist/mint-components/{p-6f6c3ac6.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
  336. package/dist/mint-components/{p-02e2b13b.system.js → p-f55ecf35.system.js} +1 -1
  337. package/dist/mint-components/{p-7a091fa7.js → p-f581aac7.js} +1 -1
  338. package/dist/mint-components/{p-8d073bdf.entry.js → p-f6528f8a.entry.js} +1 -1
  339. package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
  340. package/dist/mint-components/p-f8026ed6.system.js +1 -0
  341. package/dist/mint-components/{p-13d8ecad.js → p-f8a09b0f.js} +1 -1
  342. package/dist/mint-components/p-fb804001.system.entry.js +1 -0
  343. package/dist/mint-components/{p-0b32e1d4.system.entry.js → p-fc284f91.system.entry.js} +1 -1
  344. package/dist/mint-components/{p-099ce3d5.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
  345. package/dist/mint-components/p-fe70e20c.entry.js +1 -0
  346. package/dist/mint-components/p-ff118a19.system.js +1 -0
  347. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  348. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  349. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  350. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -18
  351. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +7 -19
  352. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  353. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  354. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  355. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  356. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  357. package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +11 -0
  358. package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +8 -0
  359. package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +45 -0
  360. package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +3 -0
  361. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -2
  362. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +7 -75
  363. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
  364. package/dist/types/components/tax-and-cash/data.d.ts +0 -1
  365. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  366. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  367. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  368. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
  369. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
  370. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  371. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  372. package/dist/types/components.d.ts +472 -613
  373. package/dist/types/saasquatch.d.ts +0 -2
  374. package/docs/docs.docx +0 -0
  375. package/docs/raisins.json +1 -1
  376. package/grapesjs/grapesjs.js +1 -1
  377. package/package.json +15 -3
  378. package/readme.md +60 -1
  379. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  380. package/dist/cjs/parseStates-d1effc19.js +0 -16
  381. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -886
  382. package/dist/cjs/sqm-partner-info-modal-view-97770d03.js +0 -149
  383. package/dist/cjs/utils-15ce04e3.js +0 -93
  384. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -171
  385. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -143
  386. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -669
  387. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -269
  388. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
  389. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  390. package/dist/esm/keys-1054056a.js +0 -8
  391. package/dist/esm/parseStates-ed75e224.js +0 -14
  392. package/dist/esm/sqm-email-verification_2.entry.js +0 -881
  393. package/dist/esm/sqm-partner-info-modal-view-5709904e.js +0 -146
  394. package/dist/esm/utils-17daa419.js +0 -85
  395. package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
  396. package/dist/esm-es5/data-017e5ef2.js +0 -1
  397. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  398. package/dist/esm-es5/keys-1054056a.js +0 -1
  399. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  400. package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
  401. package/dist/esm-es5/sqm-partner-info-modal-view-5709904e.js +0 -1
  402. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  403. package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
  404. package/dist/esm-es5/utils-17daa419.js +0 -1
  405. package/dist/mint-components/p-00046ec1.js +0 -116
  406. package/dist/mint-components/p-00dd7f08.js +0 -1
  407. package/dist/mint-components/p-0102ad17.system.entry.js +0 -1
  408. package/dist/mint-components/p-0a6489fa.entry.js +0 -1
  409. package/dist/mint-components/p-0f042aa6.entry.js +0 -116
  410. package/dist/mint-components/p-115dfc03.system.js +0 -1
  411. package/dist/mint-components/p-13f3a647.js +0 -1
  412. package/dist/mint-components/p-1d86895f.system.js +0 -1
  413. package/dist/mint-components/p-1f387c7b.system.js +0 -1
  414. package/dist/mint-components/p-1faa6ddf.system.entry.js +0 -1
  415. package/dist/mint-components/p-28ed2ae9.js +0 -1
  416. package/dist/mint-components/p-31edeff4.system.js +0 -1
  417. package/dist/mint-components/p-3254fbb4.entry.js +0 -291
  418. package/dist/mint-components/p-4034f157.js +0 -1
  419. package/dist/mint-components/p-4691e9d5.system.js +0 -1
  420. package/dist/mint-components/p-4a8ffa03.system.js +0 -1
  421. package/dist/mint-components/p-4e34bcb1.system.js +0 -1
  422. package/dist/mint-components/p-4f9dc974.js +0 -1
  423. package/dist/mint-components/p-53d90eb5.js +0 -463
  424. package/dist/mint-components/p-5e300ec1.system.js +0 -6
  425. package/dist/mint-components/p-6af71f23.entry.js +0 -9
  426. package/dist/mint-components/p-6c23abd8.entry.js +0 -1
  427. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  428. package/dist/mint-components/p-753d06ef.entry.js +0 -133
  429. package/dist/mint-components/p-7aace2b3.system.js +0 -1
  430. package/dist/mint-components/p-87f86492.js +0 -1
  431. package/dist/mint-components/p-8ae8968c.js +0 -1
  432. package/dist/mint-components/p-8f15bf17.entry.js +0 -1
  433. package/dist/mint-components/p-99eecdcb.system.entry.js +0 -1
  434. package/dist/mint-components/p-9b15ee47.system.js +0 -1
  435. package/dist/mint-components/p-a49d9288.entry.js +0 -1
  436. package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
  437. package/dist/mint-components/p-b1b20d42.entry.js +0 -11
  438. package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
  439. package/dist/mint-components/p-b699f76e.system.js +0 -1
  440. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  441. package/dist/mint-components/p-b7370480.js +0 -1
  442. package/dist/mint-components/p-badf28bb.system.js +0 -1
  443. package/dist/mint-components/p-c41d536d.entry.js +0 -1
  444. package/dist/mint-components/p-ce7d824b.js +0 -49
  445. package/dist/mint-components/p-d08408b3.entry.js +0 -1
  446. package/dist/mint-components/p-d6ccb6fc.entry.js +0 -1
  447. package/dist/mint-components/p-e516e8ca.system.entry.js +0 -1
  448. package/dist/mint-components/p-e93cdcbd.system.js +0 -1
  449. package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
  450. package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
  451. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -15
  452. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -50
  453. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
  454. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
  455. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
  456. package/docs/stats.json +0 -122783
@@ -1,36 +1,33 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
2
- import { b as buildFontsCssUrl, i as intl } from './global-75e96214.js';
2
+ import { b as buildFontsCssUrl, i as intl } from './global-96c14d63.js';
3
3
  import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
4
- import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn, o as Ue, s as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn, p as En, X as Xe } from './index.module-02cb914c.js';
4
+ import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn, p as Ue, s as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn } from './index.module-b23fdad8.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
7
  import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
- import './useReferralCodes-25f8b792.js';
9
+ import './useReferralCodes-52ca720f.js';
10
10
  import './mixins-f750863a.js';
11
11
  import { C as CopyTextView } from './copy-text-view-87259b11.js';
12
- import './sqm-text-span-view-4db9e33f.js';
13
- import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-3a1f36a2.js';
14
- import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
15
- import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-9bf30b56.js';
16
- import { a as useRequestRerender } from './re-render-bf46ba54.js';
17
- import { u as useChildElements } from './useChildElements-06937df7.js';
18
- import './luxon-1be92a8e.js';
12
+ import './sqm-text-span-view-72f43dff.js';
13
+ import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-62de6fb1.js';
14
+ import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-2c090c38.js';
15
+ import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
16
+ import { a as useRequestRerender } from './re-render-f30aeb6b.js';
17
+ import { u as useChildElements } from './useChildElements-9bccfb72.js';
18
+ import { l as luxon } from './luxon-1be92a8e.js';
19
19
  import { p as pathToRegexp } from './index-ffa26b43.js';
20
20
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
21
21
  import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
22
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69c9ffe0.js';
23
- import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-332b2796.js';
24
- import { i as isEmpty } from './utilities-cbd8f2eb.js';
22
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69fefed0.js';
23
+ import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-dd4e8b08.js';
24
+ import { i as isEmpty } from './utilities-77b1e0cc.js';
25
25
  import { E as ErrorView } from './ErrorView-74cb3af8.js';
26
- import { u as useDemoBigStat, V as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, X as demoRewardExchange, G as useShareButton, a as ShareButtonView, J as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-4d554869.js';
27
- import './sqm-portal-container-view-a8c708cd.js';
28
- import { g as getCountryObj, L as LoadingView } from './utils-17daa419.js';
29
- import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-017e5ef2.js';
30
- import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
31
- import './eventKeys-f76b6a03.js';
32
- import { u as usePayoutStatus } from './usePayoutStatus-227ae365.js';
33
- import { p as parseStates } from './parseStates-ed75e224.js';
26
+ import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-0b980200.js';
27
+ import './sqm-portal-container-view-200c9df8.js';
28
+ import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, g as getCountryObj, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, i as GET_FINANCE_NETWORK_SETTINGS, j as CURRENCIES_QUERY_NAMESPACE, k as GET_CURRENCIES, L as LoadingView } from './data-12e6aae1.js';
29
+ import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
30
+ import { u as usePayoutStatus } from './usePayoutStatus-46c0c289.js';
34
31
 
35
32
  /**
36
33
  *
@@ -787,7 +784,7 @@ const CheckboxField = class {
787
784
  */
788
785
  this.checkboxLabelLink = "https://example.com";
789
786
  /**
790
- * @uiName Checkbox label link lext
787
+ * @uiName Checkbox label link text
791
788
  */
792
789
  this.checkboxLabelLinkText = "Terms and Conditions";
793
790
  /**
@@ -4619,6 +4616,11 @@ const SqmReferralIframe = class {
4619
4616
  * @uiName IFrame width
4620
4617
  */
4621
4618
  this.iframeWidth = "100%";
4619
+ /**
4620
+ * Override the default parameter name used in the iframe
4621
+ * @uiName Referral code parameter name
4622
+ */
4623
+ this.codeParam = "rsCode";
4622
4624
  h(this);
4623
4625
  }
4624
4626
  disconnectedCallback() { }
@@ -6053,7 +6055,6 @@ function useDemoShareCode(props) {
6053
6055
  borderRadius: props.borderRadius,
6054
6056
  borderColor: props.borderColor,
6055
6057
  buttonType: props.buttonType,
6056
- rewardStatus: "AVAILABLE",
6057
6058
  open,
6058
6059
  onClick: () => {
6059
6060
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
@@ -6113,6 +6114,199 @@ const ShareLink = class {
6113
6114
  * @uiGroup Style
6114
6115
  */
6115
6116
  this.buttonStyle = "icon";
6117
+ /**
6118
+ * Let advocates customize their share links up to 5 times.
6119
+ *
6120
+ * @uiName Allow customization
6121
+ * @uiType boolean
6122
+ * @uiGroup Customizable Vanity Link
6123
+ * @uiWidget CustomLinkSwitch
6124
+ * @requiredFlavor impact
6125
+ */
6126
+ this.allowCustomization = false;
6127
+ /**
6128
+ * Text for the cancel button in editing mode
6129
+ *
6130
+ * @uiName Cancel button label
6131
+ * @uiType string
6132
+ * @uiGroup Customizable Vanity Link
6133
+ * @requiredFlavor impact
6134
+ */
6135
+ this.cancelLabelText = "Cancel";
6136
+ /**
6137
+ * Tooltip text shown when link customization is disabled
6138
+ *
6139
+ * @uiName Customize disabled tooltip
6140
+ * @uiType string
6141
+ * @uiGroup Customizable Vanity Link
6142
+ * @requiredFlavor impact
6143
+ */
6144
+ this.customizeDisabledTooltip = "Link customization is not available.";
6145
+ /**
6146
+ * Displayed below the share link.
6147
+ *
6148
+ * @uiName Customize link button label
6149
+ * @uiType string
6150
+ * @uiGroup Customizable Vanity Link
6151
+ * @requiredFlavor impact
6152
+ */
6153
+ this.customizeLinkButtonLabel = "Customize Link";
6154
+ /**
6155
+ * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
6156
+ *
6157
+ * @uiName Edit limit reached text
6158
+ * @uiType string
6159
+ * @uiWidget textarea
6160
+ * @uiGroup Customizable Vanity Link
6161
+ * @requiredFlavor impact
6162
+ */
6163
+ this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6164
+ /**
6165
+ * Subtext shown while the user is customizing their URL.
6166
+ *
6167
+ * @uiName Edit limit text
6168
+ * @uiType string
6169
+ * @uiGroup Customizable Vanity Link
6170
+ * @requiredFlavor impact
6171
+ */
6172
+ this.editLimitText = "You can edit your link up to {editsRemaining} more time(s).";
6173
+ /**
6174
+ * Description text shown when the link contains invalid special characters.
6175
+ *
6176
+ * @uiName Invalid characters error description
6177
+ * @uiType string
6178
+ * @uiWidget textarea
6179
+ * @uiGroup Customizable Vanity Link
6180
+ * @requiredFlavor impact
6181
+ */
6182
+ this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6183
+ /**
6184
+ * Title of the error message shown when the link contains invalid special characters.
6185
+ *
6186
+ * @uiName Invalid characters error title
6187
+ * @uiType string
6188
+ * @uiGroup Customizable Vanity Link
6189
+ * @requiredFlavor impact
6190
+ */
6191
+ this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
6192
+ /**
6193
+ * Description text shown when the link has already been taken
6194
+ *
6195
+ * @uiName Link taken error message
6196
+ * @uiType string
6197
+ * @uiWidget textarea
6198
+ * @uiGroup Customizable Vanity Link
6199
+ * @requiredFlavor impact
6200
+ */
6201
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6202
+ /**
6203
+ * Title of the error message shown when the link has already been taken
6204
+ *
6205
+ * @uiName Link taken error title
6206
+ * @uiType string
6207
+ * @uiGroup Customizable Vanity Link
6208
+ * @requiredFlavor impact
6209
+ */
6210
+ this.linkTakenErrorTitle = "This link is already taken";
6211
+ /**
6212
+ * Description text shown when the link contains profanity or brand names.
6213
+ *
6214
+ * @uiName Restricted words error description
6215
+ * @uiType string
6216
+ * @uiWidget textarea
6217
+ * @uiGroup Customizable Vanity Link
6218
+ * @requiredFlavor impact
6219
+ */
6220
+ this.restrictedWordsErrorDescription = "This link contains a restricted word.";
6221
+ /**
6222
+ * Title of the error message shown when the link contains profanity or brand names.
6223
+ *
6224
+ * @uiName Restricted words error title
6225
+ * @uiType string
6226
+ * @uiGroup Customizable Vanity Link
6227
+ * @requiredFlavor impact
6228
+ */
6229
+ this.restrictedWordsErrorTitle = "Please try a different link";
6230
+ /**
6231
+ * Text for the save button in editing mode
6232
+ *
6233
+ * @uiName Save button label
6234
+ * @uiType string
6235
+ * @uiGroup Customizable Vanity Link
6236
+ * @requiredFlavor impact
6237
+ */
6238
+ this.saveLabelText = "Save";
6239
+ /**
6240
+ * Text for the save button while saving is in progress
6241
+ *
6242
+ * @uiName Saving button label
6243
+ * @uiType string
6244
+ * @uiGroup Customizable Vanity Link
6245
+ * @requiredFlavor impact
6246
+ */
6247
+ this.savingLabelText = "Saving...";
6248
+ /**
6249
+ * Label shown above the link input while editing
6250
+ *
6251
+ * @uiName Edit input label
6252
+ * @uiType string
6253
+ * @uiGroup Customizable Vanity Link
6254
+ * @requiredFlavor impact
6255
+ */
6256
+ this.editLabelText = "Enter your link";
6257
+ /**
6258
+ * Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
6259
+ *
6260
+ * @uiName Characters remaining text
6261
+ * @uiType string
6262
+ * @uiGroup Customizable Vanity Link
6263
+ * @requiredFlavor impact
6264
+ */
6265
+ this.charactersRemainingText = "Characters remaining: {charactersRemaining}";
6266
+ /**
6267
+ * Text shown while the link is being validated
6268
+ *
6269
+ * @uiName Validating label
6270
+ * @uiType string
6271
+ * @uiGroup Customizable Vanity Link
6272
+ * @requiredFlavor impact
6273
+ */
6274
+ this.validatingLabelText = "Validating...";
6275
+ /**
6276
+ * @uiName Min characters text
6277
+ * @uiType string
6278
+ * @uiGroup Customizable Vanity Link
6279
+ * @requiredFlavor impact
6280
+ */
6281
+ this.minCharactersText = "Minimum 3 characters.";
6282
+ /**
6283
+ * Display text for the support link in the edit limit reached message
6284
+ *
6285
+ * @uiName Support link text
6286
+ * @uiType string
6287
+ * @uiGroup Customizable Vanity Link
6288
+ * @requiredFlavor impact
6289
+ */
6290
+ this.supportLinkText = "Support";
6291
+ /**
6292
+ * Title shown when saving fails with an unknown error
6293
+ *
6294
+ * @uiName Save error title
6295
+ * @uiType string
6296
+ * @uiGroup Customizable Vanity Link
6297
+ * @requiredFlavor impact
6298
+ */
6299
+ this.saveErrorTitle = "Error";
6300
+ /**
6301
+ * Description shown when saving fails with an unknown error
6302
+ *
6303
+ * @uiName Save error description
6304
+ * @uiType string
6305
+ * @uiWidget textarea
6306
+ * @uiGroup Customizable Vanity Link
6307
+ * @requiredFlavor impact
6308
+ */
6309
+ this.saveErrorDescription = "Failed to save custom link. Please try again.";
6116
6310
  h(this);
6117
6311
  }
6118
6312
  disconnectedCallback() { }
@@ -6121,33 +6315,79 @@ const ShareLink = class {
6121
6315
  const props = isDemo()
6122
6316
  ? useDemoShareLink(thisProps)
6123
6317
  : useShareLink(thisProps);
6124
- return h$1(CopyTextView, Object.assign({}, props));
6318
+ return h$1(ShareLinkView, Object.assign({}, props));
6125
6319
  }
6126
6320
  };
6127
6321
  function useDemoShareLink(props) {
6322
+ var _a;
6128
6323
  const [open, setOpen] = useState(false);
6324
+ const [isEditing, setIsEditing] = useState(false);
6325
+ const [editValue, setEditValue] = useState("");
6129
6326
  const copyString = "https://www.example.com/sharelink/abc";
6130
- return cjs({
6131
- copyString: copyString,
6132
- tooltiptext: props.tooltiptext,
6133
- textAlign: props.textAlign,
6134
- buttonStyle: props.buttonStyle,
6135
- backgroundColor: props.backgroundColor,
6136
- textColor: props.textColor,
6137
- borderRadius: props.borderRadius,
6138
- buttonType: props.buttonType,
6139
- copyButtonLabel: props.copyButtonLabel,
6140
- borderColor: props.borderColor,
6141
- rewardStatus: "AVAILABLE",
6142
- open,
6143
- onClick: () => {
6144
- // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
6145
- // Only if called from a user-initiated event
6146
- navigator.clipboard.writeText(copyString);
6147
- setOpen(true);
6148
- setTimeout(() => setOpen(false), props.tooltiplifespan);
6327
+ const domainPrefix = "https://www.example.com/";
6328
+ const baseProps = {
6329
+ copyTextViewProps: {
6330
+ copyString,
6331
+ tooltiptext: props.tooltiptext,
6332
+ textAlign: props.textAlign,
6333
+ buttonStyle: props.buttonStyle,
6334
+ backgroundColor: props.backgroundColor,
6335
+ textColor: props.textColor,
6336
+ borderRadius: props.borderRadius,
6337
+ buttonType: props.buttonType,
6338
+ copyButtonLabel: props.copyButtonLabel,
6339
+ borderColor: props.borderColor,
6340
+ open,
6341
+ onClick: () => {
6342
+ navigator.clipboard.writeText(copyString);
6343
+ setOpen(true);
6344
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
6345
+ },
6149
6346
  },
6150
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
6347
+ allowCustomization: props.allowCustomization,
6348
+ customizeLinkLabel: props.customizeLinkButtonLabel,
6349
+ saveLabelText: props.saveLabelText,
6350
+ savingLabelText: props.savingLabelText,
6351
+ cancelLabelText: props.cancelLabelText,
6352
+ editLabelText: props.editLabelText,
6353
+ charactersRemainingText: props.charactersRemainingText,
6354
+ validatingLabelText: props.validatingLabelText,
6355
+ isEditing,
6356
+ editValue,
6357
+ domainPrefix,
6358
+ editsRemaining: 5,
6359
+ maxEdits: 5,
6360
+ limitReached: false,
6361
+ validationError: null,
6362
+ isValidating: false,
6363
+ isSaving: false,
6364
+ characterLimit: 15,
6365
+ minCharacters: 3,
6366
+ charactersRemaining: 15 - editValue.length,
6367
+ editLimitText: props.editLimitText,
6368
+ editLimitReachedText: props.editLimitReachedText,
6369
+ supportLinkText: props.supportLinkText,
6370
+ minCharactersText: props.minCharactersText,
6371
+ customizeDisabled: false,
6372
+ customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
6373
+ onCustomizeClick: () => {
6374
+ setIsEditing(true);
6375
+ setEditValue("");
6376
+ },
6377
+ onEditValueChange: (value) => {
6378
+ setEditValue(value);
6379
+ },
6380
+ onSave: () => {
6381
+ setIsEditing(false);
6382
+ },
6383
+ onCancel: () => {
6384
+ setIsEditing(false);
6385
+ setEditValue("");
6386
+ },
6387
+ };
6388
+ return cjs(baseProps, props.demoData || {}, {
6389
+ arrayMerge: (_, a) => a,
6390
+ });
6151
6391
  }
6152
6392
 
6153
6393
  const StatContainer = class {
@@ -6391,33 +6631,12 @@ function useTaskCardDemo(props) {
6391
6631
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6392
6632
  }
6393
6633
 
6394
- /**
6395
- * Util function for getting just the props with a certain prefix.
6396
- * @param props Text props on stencil component
6397
- * @param prefix Prefix denoting which group the text prop belongs to
6398
- * @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
6399
- */
6400
- function extractProps(props, prefix) {
6401
- const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
6402
- const formattedProps = keys.reduce((prev, k) => {
6403
- const key = k.replace(prefix, "");
6404
- return {
6405
- ...prev,
6406
- [key]: props[k],
6407
- };
6408
- }, {});
6409
- return formattedProps;
6410
- }
6411
-
6412
6634
  function getCurrentStep(user) {
6413
6635
  var _a, _b;
6414
6636
  if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
6415
6637
  return "/1";
6416
6638
  }
6417
6639
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
6418
- if (user.impactConnection.connectionStatus === "STARTED") {
6419
- return "/1";
6420
- }
6421
6640
  // If they do have a required document, look at current document
6422
6641
  if (requiredTaxDocumentType && !currentTaxDocument) {
6423
6642
  // Specific to custom CASH setting,
@@ -6646,6 +6865,11 @@ const TaxAndCashMonolith = class {
6646
6865
  * @uiGroup Step 1 Properties
6647
6866
  */
6648
6867
  this.step1_currency = "Currency";
6868
+ /**
6869
+ * @uiName Currency field help text
6870
+ * @uiGroup Step 1 Properties
6871
+ */
6872
+ this.step1_currencyHelpText = "Choose your preferred payout currency";
6649
6873
  /**
6650
6874
  * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
6651
6875
  * @uiName Terms and conditions checkbox
@@ -6733,7 +6957,7 @@ const TaxAndCashMonolith = class {
6733
6957
  * @uiName Indirect tax number field label
6734
6958
  * @uiGroup Step 2 Properties
6735
6959
  */
6736
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
6960
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
6737
6961
  /**
6738
6962
  * @uiName Province field label
6739
6963
  * @uiGroup Step 2 Properties
@@ -6743,7 +6967,7 @@ const TaxAndCashMonolith = class {
6743
6967
  * @uiName Missing indirect tax number error message
6744
6968
  * @uiGroup Step 2 Properties
6745
6969
  */
6746
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
6970
+ this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
6747
6971
  /**
6748
6972
  * Displayed to participants registered for QST.
6749
6973
  * @uiName QST number field label
@@ -7311,7 +7535,7 @@ const TaxAndCashMonolith = class {
7311
7535
  * @uiName Payout status badge
7312
7536
  * @uiGroup Dashboard Properties
7313
7537
  */
7314
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
7538
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
7315
7539
  /**
7316
7540
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
7317
7541
  * @uiName Payout schedule by threshold text
@@ -7887,6 +8111,77 @@ const TimelineReward = class {
7887
8111
  }
7888
8112
  };
7889
8113
 
8114
+ function UserAttributeView(props) {
8115
+ const style = {
8116
+ P: {
8117
+ margin: "0",
8118
+ padding: "0",
8119
+ fontSize: props.fontSize ? `${props.fontSize}px` : "inherit",
8120
+ fontWeight: props.fontWeight || "inherit",
8121
+ color: props.color || "var(--sqm-text)",
8122
+ },
8123
+ };
8124
+ const sheet = createStyleSheet(style);
8125
+ const styleString = sheet.toString();
8126
+ const loadingSkeleton = (h$1("sqm-skeleton", { width: "200px", height: "20px" }));
8127
+ return (h$1(Host, null,
8128
+ h$1("style", null, styleString),
8129
+ h$1("p", { class: sheet.classes.P, part: "sqm-base" }, props.loading ? loadingSkeleton : props.value)));
8130
+ }
8131
+
8132
+ const GET_CUSTOM_FIELDS = dist.gql `
8133
+ query getCustomFields {
8134
+ viewer {
8135
+ ... on User {
8136
+ customFields
8137
+ }
8138
+ }
8139
+ }
8140
+ `;
8141
+ function useUserAttribute(props) {
8142
+ var _a, _b;
8143
+ const user = J();
8144
+ const res = wn(GET_CUSTOM_FIELDS, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
8145
+ const loading = res.loading;
8146
+ const customFields = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields;
8147
+ let value = customFields === null || customFields === void 0 ? void 0 : customFields[props.value];
8148
+ if (props.value === "lastSeenDate" && typeof value === "number") {
8149
+ value = luxon.DateTime.fromMillis(value).toLocaleString(luxon.DateTime.DATE_MED);
8150
+ }
8151
+ return {
8152
+ loading,
8153
+ value,
8154
+ fontSize: props.fontSize,
8155
+ color: props.color,
8156
+ fontWeight: props.fontWeight,
8157
+ };
8158
+ }
8159
+
8160
+ const UserAttribute = class {
8161
+ constructor(hostRef) {
8162
+ registerInstance(this, hostRef);
8163
+ this.ignored = true;
8164
+ h(this);
8165
+ }
8166
+ disconnectedCallback() { }
8167
+ render() {
8168
+ const props = isDemo() ? useCustomFieldsDemo(this) : useUserAttribute(this);
8169
+ if (props.value == null) {
8170
+ return h$1(Host, { style: { display: "none" } });
8171
+ }
8172
+ return h$1(UserAttributeView, Object.assign({}, props));
8173
+ }
8174
+ };
8175
+ function useCustomFieldsDemo(props) {
8176
+ return cjs({
8177
+ loading: false,
8178
+ value: "Custom Field Value",
8179
+ fontSize: props.fontSize,
8180
+ color: props.color,
8181
+ fontWeight: props.fontWeight,
8182
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
8183
+ }
8184
+
7890
8185
  function UserNameView(props) {
7891
8186
  return h$1(Host, null, props.loading ? props.loadingText : props.username);
7892
8187
  }
@@ -7945,363 +8240,4 @@ function useUserNameDemo(props) {
7945
8240
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
7946
8241
  }
7947
8242
 
7948
- const USER_LOOKUP = dist.gql `
7949
- query checkUserVerification {
7950
- viewer {
7951
- ... on User {
7952
- id
7953
- accountId
7954
- email
7955
- emailVerified
7956
- managedIdentity {
7957
- email
7958
- emailVerified
7959
- }
7960
- impactConnection {
7961
- connected
7962
- }
7963
- }
7964
- }
7965
- }
7966
- `;
7967
- function useWidgetVerification() {
7968
- const [showCode] = In({
7969
- namespace: SHOW_CODE_NAMESPACE,
7970
- initialValue: false,
7971
- });
7972
- In({
7973
- namespace: VERIFICATION_EMAIL_NAMESPACE,
7974
- initialValue: undefined,
7975
- });
7976
- const setContext = En(VERIFICATION_PARENT_NAMESPACE);
7977
- const [loading, setLoading] = useState(true);
7978
- const [showPartnerModal, setShowPartnerModal] = In({
7979
- namespace: SHOW_PARTNER_MODAL_NAMESPACE,
7980
- initialValue: false,
7981
- });
7982
- const [partnerCreated, setPartnerCreated] = In({
7983
- namespace: PARTNER_CREATED_NAMESPACE,
7984
- initialValue: false,
7985
- });
7986
- const [fetch] = Xe(USER_LOOKUP);
7987
- useEffect(() => {
7988
- const checkUser = async () => {
7989
- var _a, _b, _c, _d, _e;
7990
- try {
7991
- const res = await fetch({});
7992
- if (!res || res instanceof Error)
7993
- throw new Error();
7994
- // Flow changed to send email -> verify code -> show early partner creation modal
7995
- const emailVerified = ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified) || ((_c = (_b = res === null || res === void 0 ? void 0 : res.viewer) === null || _b === void 0 ? void 0 : _b.managedIdentity) === null || _c === void 0 ? void 0 : _c.emailVerified);
7996
- const isConnected = (_e = (_d = res === null || res === void 0 ? void 0 : res.viewer) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.connected;
7997
- if (isConnected) {
7998
- // Partner already created, show widget content
7999
- setContext(true);
8000
- }
8001
- else if (emailVerified) {
8002
- // Email verified but no partner yet, show partner modal
8003
- setShowPartnerModal(true);
8004
- }
8005
- }
8006
- catch (e) {
8007
- console.error("Could not fetch user information:", e);
8008
- }
8009
- finally {
8010
- setLoading(false);
8011
- }
8012
- };
8013
- checkUser();
8014
- }, []);
8015
- const onVerification = () => {
8016
- setShowPartnerModal(true);
8017
- };
8018
- const onPartnerModalComplete = () => {
8019
- setShowPartnerModal(false);
8020
- setPartnerCreated(false);
8021
- setContext(true);
8022
- };
8023
- useEffect(() => {
8024
- if (partnerCreated)
8025
- onPartnerModalComplete();
8026
- }, [partnerCreated]);
8027
- return {
8028
- showCode,
8029
- showPartnerModal,
8030
- onVerification,
8031
- onPartnerModalComplete,
8032
- loading,
8033
- };
8034
- }
8035
-
8036
- const style$3 = {
8037
- Dialog: {
8038
- "&::part(panel)": {
8039
- maxWidth: "480px",
8040
- },
8041
- "&::part(body)": {
8042
- padding: "0 var(--sl-spacing-x-large)",
8043
- fontSize: "var(--sl-font-size-small)",
8044
- overflow: "visible",
8045
- },
8046
- "&::part(footer)": {
8047
- display: "flex",
8048
- flexDirection: "column",
8049
- gap: "var(--sl-spacing-small)",
8050
- },
8051
- "&::part(overlay)": {
8052
- background: "rgba(0, 0, 0, 0.5)",
8053
- },
8054
- },
8055
- DialogTitle: {
8056
- fontSize: "var(--sl-font-size-x-large)",
8057
- fontWeight: "600",
8058
- padding: "var(--sl-spacing-x-large) 0 0 0",
8059
- margin: "0",
8060
- },
8061
- };
8062
- const sheet$3 = createStyleSheet(style$3);
8063
- const styleString$3 = sheet$3.toString();
8064
- const WidgetVerification = class {
8065
- constructor(hostRef) {
8066
- registerInstance(this, hostRef);
8067
- // ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
8068
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8069
- GENERAL PROPS
8070
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
8071
- /**
8072
- * @uiName General widget header text with partner creation
8073
- * @uiGroup General Text
8074
- */
8075
- this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
8076
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8077
- EMAIL STEP PROPS
8078
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
8079
- /**
8080
- * @uiName Verify email widget header text
8081
- * @uiGroup Email Verification Step
8082
- */
8083
- this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
8084
- /**
8085
- * @uiName Send code to email alert header
8086
- * @uiGroup Email Verification Step
8087
- */
8088
- this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
8089
- /**
8090
- * @uiName Send code to email alert description
8091
- * @uiGroup Email Verification Step
8092
- */
8093
- this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
8094
- /**
8095
- * @uiName Email input label
8096
- * @uiGroup Email Verification Step
8097
- */
8098
- this.emailStep_emailLabel = "Email";
8099
- /**
8100
- * @uiName Send code button text
8101
- * @uiGroup Email Verification Step
8102
- */
8103
- this.emailStep_sendCodeText = "Send code";
8104
- /**
8105
- * @uiName Send code button text
8106
- * @uiGroup Email Verification Step
8107
- */
8108
- this.emailStep_emailValidationErrorText = "Please enter a valid email";
8109
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8110
- CODE STEP PROPS
8111
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
8112
- /**
8113
- * @uiName Verify code widget header text
8114
- * @uiGroup Code Verification Step
8115
- */
8116
- this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
8117
- /**
8118
- * @uiName Reverify code widget header text
8119
- * @uiGroup Code Verification Step
8120
- */
8121
- this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
8122
- /**
8123
- * Text displayed under verify button
8124
- * @uiName Resend code text
8125
- * @uiGroup Code Verification Step
8126
- */
8127
- this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
8128
- /**
8129
- * The link that appears in the resend code link
8130
- * @uiName Resend code label
8131
- * @uiGroup Code Verification Step
8132
- */
8133
- this.codeStep_resendCodeLabel = "Resend code";
8134
- /**
8135
- * Link text displayed under verify button
8136
- * @uiName Resend code text
8137
- * @uiGroup Code Verification Step
8138
- */
8139
- this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
8140
- /**
8141
- * Error text displayed under verification input
8142
- * @uiName Invalid code text
8143
- * @uiGroup Code Verification Step
8144
- */
8145
- this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
8146
- /**
8147
- * @uiName Verify code button text
8148
- * @uiGroup Code Verification Step
8149
- */
8150
- this.codeStep_verifyText = "Verify";
8151
- /**
8152
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
8153
- * @uiName Network error message
8154
- * @uiGroup Code Verification Step
8155
- */
8156
- this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
8157
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8158
- PARTNER CREATION STEP PROPS
8159
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
8160
- /**
8161
- * @uiName New partner header
8162
- * @uiGroup Partner Creation Step
8163
- * @uiWidget textArea
8164
- */
8165
- this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
8166
- /**
8167
- * @uiName Existing partner header
8168
- * @uiGroup Partner Creation Step
8169
- * @uiWidget textArea
8170
- */
8171
- this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
8172
- /**
8173
- * @uiName New partner description
8174
- * @uiGroup Partner Creation Step
8175
- * @uiWidget textArea
8176
- */
8177
- this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
8178
- /**
8179
- * @uiName Existing partner description
8180
- * @uiGroup Partner Creation Step
8181
- * @uiWidget textArea
8182
- */
8183
- this.createPartnerStep_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.";
8184
- /**
8185
- * @uiName Existing partner support description
8186
- * @uiGroup Partner Creation Step
8187
- * @uiWidget textArea
8188
- */
8189
- this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
8190
- /**
8191
- * @uiName Country label
8192
- * @uiGroup Partner Creation Step
8193
- */
8194
- this.createPartnerStep_countryLabel = "Country";
8195
- /**
8196
- * @uiName Currency label
8197
- * @uiGroup Partner Creation Step
8198
- */
8199
- this.createPartnerStep_currencyLabel = "Currency";
8200
- /**
8201
- * @uiName Submit button label
8202
- * @uiGroup Partner Creation Step
8203
- */
8204
- this.createPartnerStep_submitButtonLabel = "Submit";
8205
- /**
8206
- * @uiName Confirm button label
8207
- * @uiGroup Partner Creation Step
8208
- */
8209
- this.createPartnerStep_confirmButtonLabel = "Confirm";
8210
- /**
8211
- * @uiName Search country placeholder
8212
- * @uiGroup Partner Creation Step
8213
- */
8214
- this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
8215
- /**
8216
- * @uiName Search currency placeholder
8217
- * @uiGroup Partner Creation Step
8218
- */
8219
- this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
8220
- /**
8221
- * @uiName Network error text
8222
- * @uiGroup Partner Creation Step
8223
- * @uiWidget textArea
8224
- */
8225
- this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
8226
- /**
8227
- * @uiName Missing fields error text
8228
- * @uiGroup Partner Creation Step
8229
- * @uiWidget textArea
8230
- */
8231
- this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
8232
- /**
8233
- * @undocumented
8234
- * @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
8235
- * @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
8236
- * @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
8237
- */
8238
- this.stateController = "{}";
8239
- h(this);
8240
- }
8241
- disconnectedCallback() { }
8242
- getStepTextProps(prefix) {
8243
- const props = getProps(this);
8244
- return extractProps(props, prefix);
8245
- }
8246
- render() {
8247
- var _a;
8248
- const props = isDemo()
8249
- ? useDemoWidgetVerificationInternal(this)
8250
- : useWidgetVerification();
8251
- if (props.loading)
8252
- return h$1("sl-spinner", null);
8253
- // for handling state previews in content editor
8254
- const partnerState = typeof props["sqm-partner-info-modal_stateController"] === "string"
8255
- ? parseStates(props["sqm-partner-info-modal_stateController"])
8256
- : props["sqm-partner-info-modal_stateController"];
8257
- if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
8258
- return h$1("div", null);
8259
- }
8260
- const partnerText = this.getStepTextProps("createPartnerStep_");
8261
- const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
8262
- const renderStepContent = () => {
8263
- if (props.showPartnerModal) {
8264
- return (h$1("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
8265
- }
8266
- if (props.showCode) {
8267
- return (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
8268
- }
8269
- return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
8270
- };
8271
- return (h$1("div", null, h$1("style", { type: "text/css" }, styleString$3), h$1("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
8272
- e.preventDefault();
8273
- }, "onSl-hide": (e) => {
8274
- var _a;
8275
- if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
8276
- e.preventDefault();
8277
- }
8278
- } }, h$1("h2", { class: sheet$3.classes.DialogTitle }, dialogLabel), renderStepContent())));
8279
- }
8280
- };
8281
- function useDemoWidgetVerificationInternal(props) {
8282
- const [showCode, setShowCode] = In({
8283
- namespace: SHOW_CODE_NAMESPACE,
8284
- initialValue: false,
8285
- });
8286
- const [email, setEmail] = In({
8287
- namespace: VERIFICATION_EMAIL_NAMESPACE,
8288
- initialValue: undefined,
8289
- });
8290
- const setContext = En(VERIFICATION_PARENT_NAMESPACE);
8291
- const states = parseStates(props.stateController);
8292
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
8293
- ? { ...prev, ...states[key] }
8294
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
8295
- const onVerification = () => {
8296
- setContext(true);
8297
- };
8298
- return cjs({
8299
- showCode,
8300
- showPartnerModal: false,
8301
- onVerification,
8302
- onPartnerModalComplete: () => { },
8303
- loading: false,
8304
- }, formatted || {}, { arrayMerge: (_, a) => a });
8305
- }
8306
-
8307
- export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, LeadDropdownField as sqm_lead_dropdown_field, LeadForm as sqm_lead_form, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalGoogleRegistrationForm as sqm_portal_google_registration_form, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, ReferredRegistration as sqm_referred_registration, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, TaxAndCashMonolith as sqm_tax_and_cash, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name, WidgetVerification as sqm_widget_verification };
8243
+ export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, LeadDropdownField as sqm_lead_dropdown_field, LeadForm as sqm_lead_form, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalGoogleRegistrationForm as sqm_portal_google_registration_form, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, ReferredRegistration as sqm_referred_registration, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, TaxAndCashMonolith as sqm_tax_and_cash, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserAttribute as sqm_user_attribute, UserName as sqm_user_name };