@saasquatch/mint-components 2.1.9-7 → 2.1.9-8

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 (283) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/parseStates-d1effc19.js +16 -0
  4. package/dist/cjs/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +370 -5
  5. package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -4
  6. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +5 -4
  7. package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-cd758f12.js} +1 -2
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +27 -1
  9. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -2
  10. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +4 -1
  11. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  12. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
  13. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
  14. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
  15. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +49 -1
  16. package/dist/esm/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +5 -5
  17. package/dist/esm/{data-a6752028.js → data-2b0feb3f.js} +2 -2
  18. package/dist/esm/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
  19. package/dist/esm/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
  20. package/dist/esm/{keys-406491dc.js → keys-db1897ae.js} +1 -1
  21. package/dist/esm/loader.js +3 -3
  22. package/dist/esm/mint-components.js +3 -3
  23. package/dist/esm/parseStates-ed75e224.js +14 -0
  24. package/dist/esm/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
  25. package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
  26. package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +379 -15
  27. package/dist/esm/sqm-close-button.entry.js +1 -1
  28. package/dist/esm/sqm-code-verification.entry.js +7 -8
  29. package/dist/esm/sqm-context-router.entry.js +1 -1
  30. package/dist/esm/sqm-email-verification_2.entry.js +9 -8
  31. package/dist/esm/sqm-empty_4.entry.js +2 -2
  32. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  33. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  34. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  35. package/dist/esm/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
  36. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  37. package/dist/esm/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
  38. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  39. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  40. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  41. package/dist/esm/{sqm-navigation-sidebar-item-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
  42. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  43. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  44. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  45. package/dist/esm/{sqm-partner-info-modal-view-77c231af.js → sqm-partner-info-modal-view-dbedda28.js} +1 -2
  46. package/dist/esm/sqm-password-field.entry.js +2 -2
  47. package/dist/esm/sqm-popup-container.entry.js +1 -1
  48. package/dist/esm/{sqm-portal-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
  49. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  50. package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
  51. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  52. package/dist/esm/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
  53. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  54. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  55. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  56. package/dist/esm/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
  57. package/dist/esm/sqm-qr-code.entry.js +2 -2
  58. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  59. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  60. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  61. package/dist/esm/sqm-stencilbook.entry.js +41 -15
  62. package/dist/esm/sqm-tab.entry.js +2 -2
  63. package/dist/esm/sqm-tabs.entry.js +3 -3
  64. package/dist/esm/{sqm-user-info-form-view-ef04a79f.js → sqm-user-info-form-view-f9026468.js} +2 -2
  65. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  66. package/dist/esm/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
  67. package/dist/esm/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +2 -2
  68. package/dist/esm/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +2 -2
  69. package/dist/esm/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
  70. package/dist/esm/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +2 -2
  71. package/dist/esm/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
  72. package/dist/esm/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +3 -3
  73. package/dist/esm/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
  74. package/dist/esm/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
  75. package/dist/esm/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
  76. package/dist/esm-es5/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +1 -1
  77. package/dist/esm-es5/{data-a6752028.js → data-2b0feb3f.js} +1 -1
  78. package/dist/esm-es5/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
  79. package/dist/esm-es5/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
  80. package/dist/esm-es5/{keys-406491dc.js → keys-db1897ae.js} +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/mint-components.js +1 -1
  83. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  84. package/dist/esm-es5/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
  85. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  86. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
  87. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  88. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  89. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  90. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  91. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  92. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  93. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  94. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  95. package/dist/esm-es5/{sqm-lead-checkbox-field-view-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
  96. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  97. package/dist/esm-es5/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.js} +1 -1
  98. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  99. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  100. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  101. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.js} +1 -1
  102. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  103. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  104. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  105. package/dist/esm-es5/sqm-partner-info-modal-view-dbedda28.js +1 -0
  106. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  107. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  108. package/dist/esm-es5/{sqm-portal-email-verification-view-13e25037.js → sqm-portal-email-verification-view-80736644.js} +1 -1
  109. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  110. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  111. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  112. package/dist/esm-es5/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
  113. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  114. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  115. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
  117. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  118. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  119. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  120. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  121. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  122. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  123. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  124. package/dist/esm-es5/{sqm-user-info-form-view-ef04a79f.js → sqm-user-info-form-view-f9026468.js} +1 -1
  125. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  126. package/dist/esm-es5/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
  127. package/dist/esm-es5/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +1 -1
  128. package/dist/esm-es5/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +1 -1
  129. package/dist/esm-es5/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
  130. package/dist/esm-es5/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +1 -1
  131. package/dist/esm-es5/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
  132. package/dist/esm-es5/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +1 -1
  133. package/dist/esm-es5/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
  134. package/dist/esm-es5/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
  135. package/dist/esm-es5/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
  136. package/dist/mint-components/mint-components.esm.js +1 -1
  137. package/dist/mint-components/mint-components.js +1 -1
  138. package/dist/mint-components/{p-51b8ed78.js → p-014977d7.js} +1 -1
  139. package/dist/mint-components/{p-30967f75.js → p-092db51a.js} +1 -1
  140. package/dist/mint-components/{p-bd804f4c.js → p-095b7128.js} +1 -1
  141. package/dist/mint-components/{p-bae7d6b5.system.entry.js → p-098d134a.system.entry.js} +1 -1
  142. package/dist/mint-components/{p-504ed1f2.entry.js → p-0c43b6ff.entry.js} +1 -1
  143. package/dist/mint-components/{p-ab678644.js → p-0d75a207.js} +1 -1
  144. package/dist/mint-components/p-115dfc03.system.js +1 -0
  145. package/dist/mint-components/p-13f3a647.js +1 -0
  146. package/dist/mint-components/{p-473562fc.system.js → p-140e6a15.system.js} +1 -1
  147. package/dist/mint-components/{p-fa32d8eb.system.entry.js → p-15a703c7.system.entry.js} +1 -1
  148. package/dist/mint-components/p-160764bc.system.entry.js +1 -0
  149. package/dist/mint-components/{p-b9652150.entry.js → p-160828b4.entry.js} +1 -1
  150. package/dist/mint-components/{p-878bb2cf.system.entry.js → p-16deb1a9.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-1435edd4.entry.js → p-1b0cbbae.entry.js} +1 -1
  152. package/dist/mint-components/{p-f50c3306.entry.js → p-1b2fcd7f.entry.js} +1 -1
  153. package/dist/mint-components/p-1c413a06.system.js +1 -0
  154. package/dist/mint-components/{p-2774c704.system.entry.js → p-21e7079a.system.entry.js} +1 -1
  155. package/dist/mint-components/{p-695ec086.system.js → p-28e0062c.system.js} +1 -1
  156. package/dist/mint-components/{p-c8060ef5.system.entry.js → p-2f4d8ab8.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-dfb50245.entry.js → p-3181e54a.entry.js} +1 -1
  158. package/dist/mint-components/{p-5d79c8a0.system.js → p-31dde9fc.system.js} +1 -1
  159. package/dist/mint-components/{p-d863acaa.js → p-32d078a3.js} +1 -1
  160. package/dist/mint-components/{p-7528770e.entry.js → p-3461a8cb.entry.js} +1 -1
  161. package/dist/mint-components/{p-6e816a17.system.entry.js → p-357040e6.system.entry.js} +1 -1
  162. package/dist/mint-components/{p-452f644f.system.js → p-36395228.system.js} +1 -1
  163. package/dist/mint-components/{p-5245e4ce.system.entry.js → p-3756d0d1.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-5f6d617a.entry.js → p-37658fec.entry.js} +1 -1
  165. package/dist/mint-components/p-39840341.js +1 -0
  166. package/dist/mint-components/{p-5126508b.js → p-3c333076.js} +1 -1
  167. package/dist/mint-components/{p-6684e9ad.js → p-3c555674.js} +1 -1
  168. package/dist/mint-components/{p-21851092.js → p-3c88d2ed.js} +2 -2
  169. package/dist/mint-components/{p-e7a9ce16.js → p-438f6702.js} +1 -1
  170. package/dist/mint-components/{p-fe0eceba.system.entry.js → p-45475cf9.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-f7948b16.system.entry.js → p-52748a87.system.entry.js} +1 -1
  172. package/dist/mint-components/{p-614630a8.system.js → p-54bf015a.system.js} +1 -1
  173. package/dist/mint-components/{p-d2d2c4ea.system.entry.js → p-59f69bdc.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-96cbca52.system.entry.js → p-5c9d030a.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-1b7b65ef.entry.js → p-5dc9e95b.entry.js} +2 -2
  176. package/dist/mint-components/{p-82be3d10.system.entry.js → p-60085f20.system.entry.js} +1 -1
  177. package/dist/mint-components/{p-cc0fe4a3.entry.js → p-608da224.entry.js} +1 -1
  178. package/dist/mint-components/{p-5825aee6.system.entry.js → p-6194855b.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-b8766db9.entry.js → p-62212b9a.entry.js} +1 -1
  180. package/dist/mint-components/{p-f3ddbe2f.system.entry.js → p-62e1c8b2.system.entry.js} +1 -1
  181. package/dist/mint-components/p-63c299f1.system.js +1 -0
  182. package/dist/mint-components/{p-adb56df3.system.entry.js → p-64b56141.system.entry.js} +1 -1
  183. package/dist/mint-components/{p-1b9705fd.system.js → p-64f56cc9.system.js} +1 -1
  184. package/dist/mint-components/p-6638c7c6.system.js +1 -0
  185. package/dist/mint-components/{p-f95952a0.system.entry.js → p-66c0100c.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-2ad9470d.system.entry.js → p-6a4496b3.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-1775cb0c.system.js → p-70e34ae1.system.js} +2 -2
  188. package/dist/mint-components/p-7144ac40.js +1 -0
  189. package/dist/mint-components/{p-20280398.system.entry.js → p-71545bfd.system.entry.js} +1 -1
  190. package/dist/mint-components/{p-6d444f3f.system.js → p-74aac245.system.js} +1 -1
  191. package/dist/mint-components/{p-59644ef8.system.js → p-7547180f.system.js} +1 -1
  192. package/dist/mint-components/{p-f84605ec.system.js → p-77117f6c.system.js} +1 -1
  193. package/dist/mint-components/p-7a5814ef.system.entry.js +1 -0
  194. package/dist/mint-components/{p-a03189bd.js → p-7e36a1ff.js} +1 -1
  195. package/dist/mint-components/{p-5450693e.entry.js → p-8139fdec.entry.js} +1 -1
  196. package/dist/mint-components/{p-320b306b.js → p-8474aa63.js} +1 -1
  197. package/dist/mint-components/{p-33a6ab09.js → p-857a2d77.js} +1 -1
  198. package/dist/mint-components/{p-b179621d.system.js → p-86381dc7.system.js} +1 -1
  199. package/dist/mint-components/{p-e502fd80.entry.js → p-86a70151.entry.js} +1 -1
  200. package/dist/mint-components/{p-a30f0ffd.entry.js → p-886fb141.entry.js} +1 -1
  201. package/dist/mint-components/{p-b6fc53c9.entry.js → p-88c9cc1b.entry.js} +1 -1
  202. package/dist/mint-components/{p-97b8c481.js → p-896390f9.js} +1 -1
  203. package/dist/mint-components/{p-fca34d77.js → p-8f9c1387.js} +1 -1
  204. package/dist/mint-components/{p-44afc747.entry.js → p-93c5c8ec.entry.js} +1 -1
  205. package/dist/mint-components/{p-9c381424.system.entry.js → p-95aaf35a.system.entry.js} +1 -1
  206. package/dist/mint-components/{p-f6fc7569.entry.js → p-96e4e6a4.entry.js} +1 -1
  207. package/dist/mint-components/{p-ed17e1b8.entry.js → p-991f60fc.entry.js} +1 -1
  208. package/dist/mint-components/{p-353ab6db.entry.js → p-996eb820.entry.js} +1 -1
  209. package/dist/mint-components/{p-b8288385.system.entry.js → p-998c989a.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-82905fda.system.js → p-9b33e2a7.system.js} +1 -1
  211. package/dist/mint-components/{p-7767314d.system.entry.js → p-9bd53e4d.system.entry.js} +1 -1
  212. package/dist/mint-components/{p-89f8ab67.entry.js → p-9c1b0c8b.entry.js} +1 -1
  213. package/dist/mint-components/{p-07f3b868.entry.js → p-9e43f1eb.entry.js} +1 -1
  214. package/dist/mint-components/{p-9fa6606e.js → p-a5912b2f.js} +1 -1
  215. package/dist/mint-components/{p-7a7ebf08.js → p-a7ee6531.js} +1 -1
  216. package/dist/mint-components/{p-83277c69.system.js → p-a86ce218.system.js} +1 -1
  217. package/dist/mint-components/{p-d6c1e876.system.js → p-a8ecdc44.system.js} +1 -1
  218. package/dist/mint-components/p-a9bf9d3c.entry.js +291 -0
  219. package/dist/mint-components/p-adcc37f3.entry.js +105 -0
  220. package/dist/mint-components/{p-f3b21df2.system.js → p-b1b8e629.system.js} +1 -1
  221. package/dist/mint-components/{p-93cb9438.system.entry.js → p-b297016f.system.entry.js} +1 -1
  222. package/dist/mint-components/p-b2a99637.system.js +1 -0
  223. package/dist/mint-components/p-b2bde2f5.entry.js +1 -0
  224. package/dist/mint-components/{p-d2448c85.system.entry.js → p-b451970a.system.entry.js} +1 -1
  225. package/dist/mint-components/{p-4da8028d.system.entry.js → p-b5c0bad5.system.entry.js} +1 -1
  226. package/dist/mint-components/{p-ad017a39.js → p-b5f57914.js} +1 -1
  227. package/dist/mint-components/{p-80174c14.entry.js → p-b5fed7c6.entry.js} +1 -1
  228. package/dist/mint-components/{p-c2c01ab5.entry.js → p-ba953c21.entry.js} +1 -1
  229. package/dist/mint-components/{p-47f594c3.entry.js → p-bba694e4.entry.js} +1 -1
  230. package/dist/mint-components/{p-d5375baf.js → p-bcadd021.js} +1 -1
  231. package/dist/mint-components/{p-79854479.system.js → p-be63f29b.system.js} +1 -1
  232. package/dist/mint-components/p-bfbfde38.entry.js +33 -0
  233. package/dist/mint-components/{p-07da0ddd.system.entry.js → p-c7535e70.system.entry.js} +1 -1
  234. package/dist/mint-components/{p-d42aba0e.system.js → p-c84a2512.system.js} +1 -1
  235. package/dist/mint-components/{p-55b1be64.system.entry.js → p-c8e45671.system.entry.js} +1 -1
  236. package/dist/mint-components/{p-e5e8e13e.js → p-ce11858c.js} +1 -1
  237. package/dist/mint-components/{p-1d450b85.js → p-d20188db.js} +1 -1
  238. package/dist/mint-components/{p-6a754f51.entry.js → p-d2927531.entry.js} +2 -2
  239. package/dist/mint-components/{p-e4d3b7a9.system.js → p-d355336b.system.js} +1 -1
  240. package/dist/mint-components/{p-5822a43f.system.entry.js → p-d5a1c979.system.entry.js} +1 -1
  241. package/dist/mint-components/p-d6714617.entry.js +1 -0
  242. package/dist/mint-components/{p-5e106c95.system.js → p-d798004f.system.js} +1 -1
  243. package/dist/mint-components/p-dac1f2cb.system.entry.js +1 -0
  244. package/dist/mint-components/{p-7333d103.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
  245. package/dist/mint-components/{p-c756bc32.system.js → p-e4dbca9a.system.js} +1 -1
  246. package/dist/mint-components/{p-7c0255ad.entry.js → p-e5ee6cf5.entry.js} +2 -2
  247. package/dist/mint-components/{p-8f5b316e.js → p-e95402dc.js} +1 -1
  248. package/dist/mint-components/{p-0a900fb1.system.entry.js → p-e9e05970.system.entry.js} +1 -1
  249. package/dist/mint-components/{p-546a65c7.system.js → p-eaf5d0af.system.js} +1 -1
  250. package/dist/mint-components/{p-84866680.entry.js → p-f11d29fd.entry.js} +1 -1
  251. package/dist/mint-components/{p-dece706f.js → p-f18a6658.js} +1 -1
  252. package/dist/mint-components/{p-06ca4346.entry.js → p-f4a57aed.entry.js} +1 -1
  253. package/dist/mint-components/{p-2e2c5ec4.entry.js → p-f972e5c9.entry.js} +1 -1
  254. package/dist/mint-components/{p-91c4b8d5.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
  255. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
  256. package/docs/docs.docx +0 -0
  257. package/package.json +1 -1
  258. package/dist/cjs/extractProps-e9c55ba8.js +0 -35
  259. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -314
  260. package/dist/esm/extractProps-54064fb0.js +0 -32
  261. package/dist/esm/sqm-widget-verification.entry.js +0 -310
  262. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  263. package/dist/esm-es5/sqm-big-stat_45.entry.js +0 -1
  264. package/dist/esm-es5/sqm-partner-info-modal-view-77c231af.js +0 -1
  265. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  266. package/dist/mint-components/p-0797a946.js +0 -1
  267. package/dist/mint-components/p-1b0d7020.js +0 -1
  268. package/dist/mint-components/p-2c0bb139.entry.js +0 -33
  269. package/dist/mint-components/p-2c962fa2.entry.js +0 -105
  270. package/dist/mint-components/p-35724e1c.entry.js +0 -1
  271. package/dist/mint-components/p-38c7775a.js +0 -1
  272. package/dist/mint-components/p-4b365f1f.system.js +0 -1
  273. package/dist/mint-components/p-57dd28bd.system.js +0 -1
  274. package/dist/mint-components/p-71c585b7.entry.js +0 -1
  275. package/dist/mint-components/p-78909fc0.system.js +0 -1
  276. package/dist/mint-components/p-9b05116b.system.entry.js +0 -1
  277. package/dist/mint-components/p-a1529aef.system.entry.js +0 -1
  278. package/dist/mint-components/p-a9855b29.system.entry.js +0 -1
  279. package/dist/mint-components/p-c0953cd9.entry.js +0 -19
  280. package/dist/mint-components/p-e44c816e.system.js +0 -1
  281. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  282. package/dist/mint-components/p-e6924adb.entry.js +0 -273
  283. package/dist/mint-components/p-e9a596d6.system.entry.js +0 -1
@@ -1,314 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-8277cbb3.js');
6
- const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
7
- const index_module = require('./index.module-42d413d9.js');
8
- const cjs = require('./cjs-1066ec21.js');
9
- const utils = require('./utils-6847bc06.js');
10
- const extractProps = require('./extractProps-e9c55ba8.js');
11
- const keys = require('./keys-cff24974.js');
12
-
13
- const USER_LOOKUP = index_module.dist.gql `
14
- query checkUserVerification {
15
- viewer {
16
- ... on User {
17
- id
18
- accountId
19
- email
20
- emailVerified
21
- managedIdentity {
22
- email
23
- emailVerified
24
- }
25
- impactConnection {
26
- connected
27
- }
28
- }
29
- }
30
- }
31
- `;
32
- function useWidgetVerification() {
33
- const userIdentity = index_module.J();
34
- const [showCode, setShowCode] = index_module.In({
35
- namespace: keys.SHOW_CODE_NAMESPACE,
36
- initialValue: false,
37
- });
38
- const [email, setEmail] = index_module.In({
39
- namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
40
- initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
41
- });
42
- const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
43
- const [loading, setLoading] = domContextHooks_module.useState(true);
44
- const [showPartnerModal, setShowPartnerModal] = domContextHooks_module.useState(false);
45
- const [fetch] = index_module.Xe(USER_LOOKUP);
46
- domContextHooks_module.useEffect(() => {
47
- const checkUser = async () => {
48
- var _a, _b, _c, _d, _e;
49
- try {
50
- const res = await fetch({});
51
- if (!res || res instanceof Error)
52
- throw new Error();
53
- // Flow changed to send email -> verify code -> show early partner creation modal
54
- 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);
55
- 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;
56
- if (isConnected) {
57
- // Partner already created, show widget content
58
- setContext(true);
59
- }
60
- else if (emailVerified) {
61
- // Email verified but no partner yet, show partner modal
62
- setShowPartnerModal(true);
63
- }
64
- }
65
- catch (e) {
66
- console.error("Could not fetch user information:", e);
67
- }
68
- finally {
69
- setLoading(false);
70
- }
71
- };
72
- checkUser();
73
- }, []);
74
- const onVerification = () => {
75
- setShowPartnerModal(true);
76
- };
77
- const onPartnerModalComplete = () => {
78
- setShowPartnerModal(false);
79
- setContext(true);
80
- };
81
- return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
82
- }
83
-
84
- const WidgetVerification = class {
85
- constructor(hostRef) {
86
- index.registerInstance(this, hostRef);
87
- // ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
88
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89
- GENERAL PROPS
90
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
91
- /**
92
- * @uiName General verify widget header text
93
- * @uiGroup General Text
94
- */
95
- this.general_verifyEmailHeader = "Verify your email";
96
- /**
97
- * @uiName General verify widget description text
98
- * @uiGroup General Text
99
- */
100
- this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
101
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102
- EMAIL STEP PROPS
103
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
104
- /**
105
- * @uiName Verify email widget header text
106
- * @uiGroup Email Verification Step
107
- */
108
- this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
109
- /**
110
- * @uiName Send code to email alert header
111
- * @uiGroup Email Verification Step
112
- */
113
- this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
114
- /**
115
- * @uiName Send code to email alert description
116
- * @uiGroup Email Verification Step
117
- */
118
- this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
119
- /**
120
- * @uiName Email input label
121
- * @uiGroup Email Verification Step
122
- */
123
- this.emailStep_emailLabel = "Email";
124
- /**
125
- * @uiName Send code button text
126
- * @uiGroup Email Verification Step
127
- */
128
- this.emailStep_sendCodeText = "Send code";
129
- /**
130
- * @uiName Send code button text
131
- * @uiGroup Email Verification Step
132
- */
133
- this.emailStep_emailValidationErrorText = "Please enter a valid email";
134
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135
- CODE STEP PROPS
136
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
137
- /**
138
- * @uiName Verify code widget header text
139
- * @uiGroup Code Verification Step
140
- */
141
- this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
142
- /**
143
- * @uiName Reverify code widget header text
144
- * @uiGroup Code Verification Step
145
- */
146
- this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
147
- /**
148
- * Text displayed under verify button
149
- * @uiName Resend code text
150
- * @uiGroup Code Verification Step
151
- */
152
- this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
153
- /**
154
- * The link that appears in the resend code link
155
- * @uiName Resend code label
156
- * @uiGroup Code Verification Step
157
- */
158
- this.codeStep_resendCodeLabel = "Resend code";
159
- /**
160
- * Link text displayed under verify button
161
- * @uiName Resend code text
162
- * @uiGroup Code Verification Step
163
- */
164
- this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
165
- /**
166
- * Error text displayed under verification input
167
- * @uiName Invalid code text
168
- * @uiGroup Code Verification Step
169
- */
170
- this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
171
- /**
172
- * @uiName Verify code button text
173
- * @uiGroup Code Verification Step
174
- */
175
- this.codeStep_verifyText = "Verify";
176
- /**
177
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
178
- * @uiName Network error message
179
- * @uiGroup Code Verification Step
180
- */
181
- this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
182
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
183
- PARTNER CREATION STEP PROPS
184
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
185
- /**
186
- * @uiName New partner header
187
- * @uiGroup Partner Creation Step
188
- * @uiWidget textArea
189
- */
190
- this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
191
- /**
192
- * @uiName Existing partner header
193
- * @uiGroup Partner Creation Step
194
- * @uiWidget textArea
195
- */
196
- this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
197
- /**
198
- * @uiName New partner description
199
- * @uiGroup Partner Creation Step
200
- * @uiWidget textArea
201
- */
202
- this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
203
- /**
204
- * @uiName Existing partner description
205
- * @uiGroup Partner Creation Step
206
- * @uiWidget textArea
207
- */
208
- 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.";
209
- /**
210
- * @uiName Existing partner support description
211
- * @uiGroup Partner Creation Step
212
- * @uiWidget textArea
213
- */
214
- this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
215
- /**
216
- * @uiName Country label
217
- * @uiGroup Partner Creation Step
218
- */
219
- this.createPartnerStep_countryLabel = "Country";
220
- /**
221
- * @uiName Currency label
222
- * @uiGroup Partner Creation Step
223
- */
224
- this.createPartnerStep_currencyLabel = "Currency";
225
- /**
226
- * @uiName Submit button label
227
- * @uiGroup Partner Creation Step
228
- */
229
- this.createPartnerStep_submitButtonLabel = "Submit";
230
- /**
231
- * @uiName Confirm button label
232
- * @uiGroup Partner Creation Step
233
- */
234
- this.createPartnerStep_confirmButtonLabel = "Confirm";
235
- /**
236
- * @uiName Search country placeholder
237
- * @uiGroup Partner Creation Step
238
- */
239
- this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
240
- /**
241
- * @uiName Search currency placeholder
242
- * @uiGroup Partner Creation Step
243
- */
244
- this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
245
- /**
246
- * @uiName Network error text
247
- * @uiGroup Partner Creation Step
248
- * @uiWidget textArea
249
- */
250
- this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
251
- /**
252
- * @uiName Missing fields error text
253
- * @uiGroup Partner Creation Step
254
- * @uiWidget textArea
255
- */
256
- this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
257
- /**
258
- * @undocumented
259
- * @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
260
- * @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
261
- * @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
262
- */
263
- this.stateController = "{}";
264
- domContextHooks_module.h$1(this);
265
- }
266
- disconnectedCallback() { }
267
- getStepTextProps(prefix) {
268
- const props = utils.getProps(this);
269
- return extractProps.extractProps(props, prefix);
270
- }
271
- render() {
272
- const props = index_module.isDemo()
273
- ? useDemoWidgetVerificationInternal(this)
274
- : useWidgetVerification();
275
- if (props.loading)
276
- return index.h("sl-spinner", null);
277
- if (props.showPartnerModal) {
278
- return (index.h("sqm-partner-info-modal", Object.assign({}, this.getStepTextProps("createPartnerStep_"))));
279
- }
280
- const generalText = this.getStepTextProps("general_");
281
- return (index.h("div", null, index.h("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), index.h("p", { style: {
282
- color: "var(--sl-color-neutral-500)",
283
- fontSize: "var(--sl-font-size-medium)",
284
- margin: "0",
285
- } }, generalText.verifyEmailDescription), props.showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps.extractProps(props, "sqm-code-verification_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps.extractProps(props, "sqm-email-verification_"))))));
286
- }
287
- };
288
- function useDemoWidgetVerificationInternal(props) {
289
- const [showCode, setShowCode] = index_module.In({
290
- namespace: keys.SHOW_CODE_NAMESPACE,
291
- initialValue: false,
292
- });
293
- const [email, setEmail] = index_module.In({
294
- namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
295
- initialValue: undefined,
296
- });
297
- const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
298
- const states = extractProps.parseStates(props.stateController);
299
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
300
- ? { ...prev, ...states[key] }
301
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
302
- const onVerification = () => {
303
- setContext(true);
304
- };
305
- return cjs.cjs({
306
- showCode,
307
- showPartnerModal: false,
308
- onVerification,
309
- onPartnerModalComplete: () => { },
310
- loading: false,
311
- }, formatted || {}, { arrayMerge: (_, a) => a });
312
- }
313
-
314
- exports.sqm_widget_verification = WidgetVerification;
@@ -1,32 +0,0 @@
1
- function parseStates(states) {
2
- if (typeof states === "string") {
3
- try {
4
- return JSON.parse(states);
5
- }
6
- catch (e) {
7
- return undefined;
8
- }
9
- }
10
- if (typeof states === "object")
11
- return states;
12
- }
13
-
14
- /**
15
- * Util function for getting just the props with a certain prefix.
16
- * @param props Text props on stencil component
17
- * @param prefix Prefix denoting which group the text prop belongs to
18
- * @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
19
- */
20
- function extractProps(props, prefix) {
21
- const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
22
- const formattedProps = keys.reduce((prev, k) => {
23
- const key = k.replace(prefix, "");
24
- return {
25
- ...prev,
26
- [key]: props[k],
27
- };
28
- }, {});
29
- return formattedProps;
30
- }
31
-
32
- export { extractProps as e, parseStates as p };
@@ -1,310 +0,0 @@
1
- import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
2
- import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-50442785.js';
3
- import { d as dist, J, I as In, q as En, X as Xe, i as isDemo } from './index.module-e266b4d7.js';
4
- import { c as cjs } from './cjs-bdfb4486.js';
5
- import { g as getProps } from './utils-334c1e34.js';
6
- import { e as extractProps, p as parseStates } from './extractProps-54064fb0.js';
7
- import { S as SHOW_CODE_NAMESPACE, V as VERIFICATION_EMAIL_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
8
-
9
- const USER_LOOKUP = dist.gql `
10
- query checkUserVerification {
11
- viewer {
12
- ... on User {
13
- id
14
- accountId
15
- email
16
- emailVerified
17
- managedIdentity {
18
- email
19
- emailVerified
20
- }
21
- impactConnection {
22
- connected
23
- }
24
- }
25
- }
26
- }
27
- `;
28
- function useWidgetVerification() {
29
- const userIdentity = J();
30
- const [showCode, setShowCode] = In({
31
- namespace: SHOW_CODE_NAMESPACE,
32
- initialValue: false,
33
- });
34
- const [email, setEmail] = In({
35
- namespace: VERIFICATION_EMAIL_NAMESPACE,
36
- initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
37
- });
38
- const setContext = En(VERIFICATION_PARENT_NAMESPACE);
39
- const [loading, setLoading] = useState(true);
40
- const [showPartnerModal, setShowPartnerModal] = useState(false);
41
- const [fetch] = Xe(USER_LOOKUP);
42
- useEffect(() => {
43
- const checkUser = async () => {
44
- var _a, _b, _c, _d, _e;
45
- try {
46
- const res = await fetch({});
47
- if (!res || res instanceof Error)
48
- throw new Error();
49
- // Flow changed to send email -> verify code -> show early partner creation modal
50
- 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);
51
- 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;
52
- if (isConnected) {
53
- // Partner already created, show widget content
54
- setContext(true);
55
- }
56
- else if (emailVerified) {
57
- // Email verified but no partner yet, show partner modal
58
- setShowPartnerModal(true);
59
- }
60
- }
61
- catch (e) {
62
- console.error("Could not fetch user information:", e);
63
- }
64
- finally {
65
- setLoading(false);
66
- }
67
- };
68
- checkUser();
69
- }, []);
70
- const onVerification = () => {
71
- setShowPartnerModal(true);
72
- };
73
- const onPartnerModalComplete = () => {
74
- setShowPartnerModal(false);
75
- setContext(true);
76
- };
77
- return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
78
- }
79
-
80
- const WidgetVerification = class {
81
- constructor(hostRef) {
82
- registerInstance(this, hostRef);
83
- // ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
84
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85
- GENERAL PROPS
86
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
87
- /**
88
- * @uiName General verify widget header text
89
- * @uiGroup General Text
90
- */
91
- this.general_verifyEmailHeader = "Verify your email";
92
- /**
93
- * @uiName General verify widget description text
94
- * @uiGroup General Text
95
- */
96
- this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
97
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
98
- EMAIL STEP PROPS
99
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
100
- /**
101
- * @uiName Verify email widget header text
102
- * @uiGroup Email Verification Step
103
- */
104
- this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
105
- /**
106
- * @uiName Send code to email alert header
107
- * @uiGroup Email Verification Step
108
- */
109
- this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
110
- /**
111
- * @uiName Send code to email alert description
112
- * @uiGroup Email Verification Step
113
- */
114
- this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
115
- /**
116
- * @uiName Email input label
117
- * @uiGroup Email Verification Step
118
- */
119
- this.emailStep_emailLabel = "Email";
120
- /**
121
- * @uiName Send code button text
122
- * @uiGroup Email Verification Step
123
- */
124
- this.emailStep_sendCodeText = "Send code";
125
- /**
126
- * @uiName Send code button text
127
- * @uiGroup Email Verification Step
128
- */
129
- this.emailStep_emailValidationErrorText = "Please enter a valid email";
130
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131
- CODE STEP PROPS
132
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
133
- /**
134
- * @uiName Verify code widget header text
135
- * @uiGroup Code Verification Step
136
- */
137
- this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
138
- /**
139
- * @uiName Reverify code widget header text
140
- * @uiGroup Code Verification Step
141
- */
142
- this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
143
- /**
144
- * Text displayed under verify button
145
- * @uiName Resend code text
146
- * @uiGroup Code Verification Step
147
- */
148
- this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
149
- /**
150
- * The link that appears in the resend code link
151
- * @uiName Resend code label
152
- * @uiGroup Code Verification Step
153
- */
154
- this.codeStep_resendCodeLabel = "Resend code";
155
- /**
156
- * Link text displayed under verify button
157
- * @uiName Resend code text
158
- * @uiGroup Code Verification Step
159
- */
160
- this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
161
- /**
162
- * Error text displayed under verification input
163
- * @uiName Invalid code text
164
- * @uiGroup Code Verification Step
165
- */
166
- this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
167
- /**
168
- * @uiName Verify code button text
169
- * @uiGroup Code Verification Step
170
- */
171
- this.codeStep_verifyText = "Verify";
172
- /**
173
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
174
- * @uiName Network error message
175
- * @uiGroup Code Verification Step
176
- */
177
- this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
178
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179
- PARTNER CREATION STEP PROPS
180
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
181
- /**
182
- * @uiName New partner header
183
- * @uiGroup Partner Creation Step
184
- * @uiWidget textArea
185
- */
186
- this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
187
- /**
188
- * @uiName Existing partner header
189
- * @uiGroup Partner Creation Step
190
- * @uiWidget textArea
191
- */
192
- this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
193
- /**
194
- * @uiName New partner description
195
- * @uiGroup Partner Creation Step
196
- * @uiWidget textArea
197
- */
198
- this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
199
- /**
200
- * @uiName Existing partner description
201
- * @uiGroup Partner Creation Step
202
- * @uiWidget textArea
203
- */
204
- 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.";
205
- /**
206
- * @uiName Existing partner support description
207
- * @uiGroup Partner Creation Step
208
- * @uiWidget textArea
209
- */
210
- this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
211
- /**
212
- * @uiName Country label
213
- * @uiGroup Partner Creation Step
214
- */
215
- this.createPartnerStep_countryLabel = "Country";
216
- /**
217
- * @uiName Currency label
218
- * @uiGroup Partner Creation Step
219
- */
220
- this.createPartnerStep_currencyLabel = "Currency";
221
- /**
222
- * @uiName Submit button label
223
- * @uiGroup Partner Creation Step
224
- */
225
- this.createPartnerStep_submitButtonLabel = "Submit";
226
- /**
227
- * @uiName Confirm button label
228
- * @uiGroup Partner Creation Step
229
- */
230
- this.createPartnerStep_confirmButtonLabel = "Confirm";
231
- /**
232
- * @uiName Search country placeholder
233
- * @uiGroup Partner Creation Step
234
- */
235
- this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
236
- /**
237
- * @uiName Search currency placeholder
238
- * @uiGroup Partner Creation Step
239
- */
240
- this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
241
- /**
242
- * @uiName Network error text
243
- * @uiGroup Partner Creation Step
244
- * @uiWidget textArea
245
- */
246
- this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
247
- /**
248
- * @uiName Missing fields error text
249
- * @uiGroup Partner Creation Step
250
- * @uiWidget textArea
251
- */
252
- this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
253
- /**
254
- * @undocumented
255
- * @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
256
- * @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
257
- * @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
258
- */
259
- this.stateController = "{}";
260
- h(this);
261
- }
262
- disconnectedCallback() { }
263
- getStepTextProps(prefix) {
264
- const props = getProps(this);
265
- return extractProps(props, prefix);
266
- }
267
- render() {
268
- const props = isDemo()
269
- ? useDemoWidgetVerificationInternal(this)
270
- : useWidgetVerification();
271
- if (props.loading)
272
- return h$1("sl-spinner", null);
273
- if (props.showPartnerModal) {
274
- return (h$1("sqm-partner-info-modal", Object.assign({}, this.getStepTextProps("createPartnerStep_"))));
275
- }
276
- const generalText = this.getStepTextProps("general_");
277
- return (h$1("div", null, h$1("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), h$1("p", { style: {
278
- color: "var(--sl-color-neutral-500)",
279
- fontSize: "var(--sl-font-size-medium)",
280
- margin: "0",
281
- } }, generalText.verifyEmailDescription), props.showCode ? (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_")))) : (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))))));
282
- }
283
- };
284
- function useDemoWidgetVerificationInternal(props) {
285
- const [showCode, setShowCode] = In({
286
- namespace: SHOW_CODE_NAMESPACE,
287
- initialValue: false,
288
- });
289
- const [email, setEmail] = In({
290
- namespace: VERIFICATION_EMAIL_NAMESPACE,
291
- initialValue: undefined,
292
- });
293
- const setContext = En(VERIFICATION_PARENT_NAMESPACE);
294
- const states = parseStates(props.stateController);
295
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
296
- ? { ...prev, ...states[key] }
297
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
298
- const onVerification = () => {
299
- setContext(true);
300
- };
301
- return cjs({
302
- showCode,
303
- showPartnerModal: false,
304
- onVerification,
305
- onPartnerModalComplete: () => { },
306
- loading: false,
307
- }, formatted || {}, { arrayMerge: (_, a) => a });
308
- }
309
-
310
- export { WidgetVerification as sqm_widget_verification };
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))t[s]=r[s]}return t};return __assign.apply(this,arguments)};function parseStates(t){if(typeof t==="string"){try{return JSON.parse(t)}catch(t){return undefined}}if(typeof t==="object")return t}function extractProps(t,r){var e=Object.keys(t).filter((function(t){return t.startsWith(r)}));var n=e.reduce((function(e,n){var s;var a=n.replace(r,"");return __assign(__assign({},e),(s={},s[a]=t[n],s))}),{});return n}export{extractProps as e,parseStates as p};