@saasquatch/mint-components 2.5.5-0 → 2.5.5-1

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 (317) hide show
  1. package/dist/cjs/{ShadowViewAddon-84dd103e.js → ShadowViewAddon-f57cb460.js} +5 -5
  2. package/dist/cjs/{data-04ef5511.js → data-ae38fa86.js} +1 -1
  3. package/dist/cjs/{global-258c36b8.js → global-3ba30270.js} +1 -1
  4. package/dist/cjs/{index.module-f8c8495f.js → index.module-3221a469.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mint-components.cjs.js +2 -2
  7. package/dist/cjs/{re-render-72a0ef45.js → re-render-34b36aca.js} +1 -1
  8. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +9 -9
  9. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +27 -20
  10. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-code-verification.cjs.entry.js +13 -5
  12. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +7 -6
  14. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  18. package/dist/cjs/{sqm-lead-checkbox-field-view-b3a85029.js → sqm-lead-checkbox-field-view-d6df81c7.js} +1 -1
  19. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
  20. package/dist/cjs/{sqm-lead-input-field-view-88de1b78.js → sqm-lead-input-field-view-cd3f8076.js} +1 -1
  21. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
  22. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-49b152dd.js → sqm-navigation-sidebar-item-view-9134e64e.js} +1 -1
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  26. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  28. package/dist/cjs/{sqm-partner-info-modal-view-7298c1a9.js → sqm-partner-info-modal-view-6173c618.js} +1 -1
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  31. package/dist/cjs/{sqm-portal-email-verification-view-a2a60c53.js → sqm-portal-email-verification-view-38d8344c.js} +1 -1
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
  33. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +4 -4
  34. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  35. package/dist/cjs/{sqm-portal-profile-view-95a3ad9f.js → sqm-portal-profile-view-062eda68.js} +1 -1
  36. package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
  37. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  38. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  39. package/dist/cjs/{sqm-portal-verify-email-view-a679a0a7.js → sqm-portal-verify-email-view-2a120d0a.js} +1 -1
  40. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
  41. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  42. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  44. package/dist/cjs/sqm-stencilbook.cjs.entry.js +16 -16
  45. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  46. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  47. package/dist/cjs/{sqm-user-info-form-view-6f5f8eb8.js → sqm-user-info-form-view-aedca5fe.js} +3 -3
  48. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  49. package/dist/cjs/{subregions-cd5c7ad6.js → subregions-36662566.js} +1 -1
  50. package/dist/cjs/{useChildElements-041127d7.js → useChildElements-36f7e4bb.js} +1 -1
  51. package/dist/cjs/{useIndirectTaxForm-ed4df485.js → useIndirectTaxForm-7656fc63.js} +3 -3
  52. package/dist/cjs/{useInstantAccessRegistration-2398df36.js → useInstantAccessRegistration-43514e50.js} +2 -2
  53. package/dist/cjs/{useLeadFormState-bf49984b.js → useLeadFormState-34f9834b.js} +2 -2
  54. package/dist/cjs/{usePortalRegistrationForm-8a3a14ac.js → usePortalRegistrationForm-b18a1f6b.js} +2 -2
  55. package/dist/cjs/{useReferralCodes-1bfc02eb.js → useReferralCodes-25d5320a.js} +1 -1
  56. package/dist/cjs/{useReferralTable-06887d9a.js → useReferralTable-ad86986b.js} +3 -3
  57. package/dist/cjs/{useRegistrationFormState-4fe5b770.js → useRegistrationFormState-ea81d55a.js} +1 -1
  58. package/dist/cjs/{useVerificationEmail-5d19aa99.js → useVerificationEmail-70aad5f1.js} +1 -1
  59. package/dist/cjs/{utilities-fcdb9504.js → utilities-dfc34bea.js} +1 -1
  60. package/dist/collection/components/sqm-widget-verification/getVerificationStep.js +8 -1
  61. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -2
  62. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +2 -1
  63. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +6 -6
  64. package/dist/esm/{ShadowViewAddon-be5cdc78.js → ShadowViewAddon-e1375e0d.js} +5 -5
  65. package/dist/esm/{data-0be04430.js → data-04d2da44.js} +1 -1
  66. package/dist/esm/{global-32d00a6e.js → global-f019575d.js} +1 -1
  67. package/dist/esm/{index.module-02cb914c.js → index.module-cc08450c.js} +1 -1
  68. package/dist/esm/loader.js +2 -2
  69. package/dist/esm/mint-components.js +2 -2
  70. package/dist/esm/{re-render-bf46ba54.js → re-render-380499f8.js} +1 -1
  71. package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
  72. package/dist/esm/sqm-big-stat_47.entry.js +27 -20
  73. package/dist/esm/sqm-close-button.entry.js +1 -1
  74. package/dist/esm/sqm-code-verification.entry.js +13 -5
  75. package/dist/esm/sqm-context-router.entry.js +1 -1
  76. package/dist/esm/sqm-email-verification_2.entry.js +7 -6
  77. package/dist/esm/sqm-empty_4.entry.js +2 -2
  78. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  79. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  80. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  81. package/dist/esm/{sqm-lead-checkbox-field-view-aa977b97.js → sqm-lead-checkbox-field-view-04aa32a7.js} +1 -1
  82. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  83. package/dist/esm/{sqm-lead-input-field-view-671ff96f.js → sqm-lead-input-field-view-919dc0a9.js} +1 -1
  84. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  85. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  86. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  87. package/dist/esm/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-40837457.js} +1 -1
  88. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  89. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  90. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  91. package/dist/esm/{sqm-partner-info-modal-view-a68cec80.js → sqm-partner-info-modal-view-e02fb63a.js} +1 -1
  92. package/dist/esm/sqm-password-field.entry.js +2 -2
  93. package/dist/esm/sqm-popup-container.entry.js +1 -1
  94. package/dist/esm/{sqm-portal-email-verification-view-bd5effa7.js → sqm-portal-email-verification-view-3fa9587c.js} +1 -1
  95. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  96. package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
  97. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  98. package/dist/esm/{sqm-portal-profile-view-fdd6c632.js → sqm-portal-profile-view-41894261.js} +1 -1
  99. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  100. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  101. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  102. package/dist/esm/{sqm-portal-verify-email-view-76185bef.js → sqm-portal-verify-email-view-c102aa7c.js} +1 -1
  103. package/dist/esm/sqm-qr-code.entry.js +2 -2
  104. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  105. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  106. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  107. package/dist/esm/sqm-stencilbook.entry.js +16 -16
  108. package/dist/esm/sqm-tab.entry.js +2 -2
  109. package/dist/esm/sqm-tabs.entry.js +3 -3
  110. package/dist/esm/{sqm-user-info-form-view-5c457c98.js → sqm-user-info-form-view-8a95c5eb.js} +3 -3
  111. package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
  112. package/dist/esm/{subregions-8e84e5fa.js → subregions-16dc47a9.js} +1 -1
  113. package/dist/esm/{useChildElements-06937df7.js → useChildElements-aa9eb7c9.js} +1 -1
  114. package/dist/esm/{useIndirectTaxForm-f622ba23.js → useIndirectTaxForm-8d2e873d.js} +3 -3
  115. package/dist/esm/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-7b11eb02.js} +2 -2
  116. package/dist/esm/{useLeadFormState-6214b2d9.js → useLeadFormState-b67018f2.js} +2 -2
  117. package/dist/esm/{usePortalRegistrationForm-78fdfd93.js → usePortalRegistrationForm-91e5786d.js} +2 -2
  118. package/dist/esm/{useReferralCodes-acbe7b0a.js → useReferralCodes-a0a271ca.js} +1 -1
  119. package/dist/esm/{useReferralTable-3aa4b527.js → useReferralTable-670580ff.js} +3 -3
  120. package/dist/esm/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-95a75c57.js} +1 -1
  121. package/dist/esm/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-99d9f705.js} +1 -1
  122. package/dist/esm/{utilities-cbd8f2eb.js → utilities-23a276e0.js} +1 -1
  123. package/dist/esm-es5/{ShadowViewAddon-be5cdc78.js → ShadowViewAddon-e1375e0d.js} +1 -1
  124. package/dist/esm-es5/{data-0be04430.js → data-04d2da44.js} +1 -1
  125. package/dist/esm-es5/{global-32d00a6e.js → global-f019575d.js} +1 -1
  126. package/dist/esm-es5/{index.module-02cb914c.js → index.module-cc08450c.js} +1 -1
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/mint-components.js +1 -1
  129. package/dist/esm-es5/{re-render-bf46ba54.js → re-render-380499f8.js} +1 -1
  130. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  131. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  132. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  133. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  134. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  135. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  136. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  137. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  138. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  139. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  140. package/dist/esm-es5/{sqm-lead-checkbox-field-view-aa977b97.js → sqm-lead-checkbox-field-view-04aa32a7.js} +1 -1
  141. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  142. package/dist/esm-es5/{sqm-lead-input-field-view-671ff96f.js → sqm-lead-input-field-view-919dc0a9.js} +1 -1
  143. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  144. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  145. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  146. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-40837457.js} +1 -1
  147. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  148. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  149. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  150. package/dist/esm-es5/{sqm-partner-info-modal-view-a68cec80.js → sqm-partner-info-modal-view-e02fb63a.js} +1 -1
  151. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  152. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  153. package/dist/esm-es5/{sqm-portal-email-verification-view-bd5effa7.js → sqm-portal-email-verification-view-3fa9587c.js} +1 -1
  154. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  155. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  156. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  157. package/dist/esm-es5/{sqm-portal-profile-view-fdd6c632.js → sqm-portal-profile-view-41894261.js} +1 -1
  158. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  159. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  160. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  161. package/dist/esm-es5/{sqm-portal-verify-email-view-76185bef.js → sqm-portal-verify-email-view-c102aa7c.js} +1 -1
  162. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  163. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  164. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  165. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  166. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  167. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  168. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  169. package/dist/esm-es5/{sqm-user-info-form-view-5c457c98.js → sqm-user-info-form-view-8a95c5eb.js} +1 -1
  170. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  171. package/dist/esm-es5/{subregions-8e84e5fa.js → subregions-16dc47a9.js} +1 -1
  172. package/dist/esm-es5/{useChildElements-06937df7.js → useChildElements-aa9eb7c9.js} +1 -1
  173. package/dist/esm-es5/{useIndirectTaxForm-f622ba23.js → useIndirectTaxForm-8d2e873d.js} +1 -1
  174. package/dist/esm-es5/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-7b11eb02.js} +1 -1
  175. package/dist/esm-es5/{useLeadFormState-6214b2d9.js → useLeadFormState-b67018f2.js} +1 -1
  176. package/dist/esm-es5/{usePortalRegistrationForm-78fdfd93.js → usePortalRegistrationForm-91e5786d.js} +1 -1
  177. package/dist/esm-es5/{useReferralCodes-acbe7b0a.js → useReferralCodes-a0a271ca.js} +1 -1
  178. package/dist/esm-es5/{useReferralTable-3aa4b527.js → useReferralTable-670580ff.js} +1 -1
  179. package/dist/esm-es5/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-95a75c57.js} +1 -1
  180. package/dist/esm-es5/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-99d9f705.js} +1 -1
  181. package/dist/esm-es5/{utilities-cbd8f2eb.js → utilities-23a276e0.js} +1 -1
  182. package/dist/mint-components/mint-components.esm.js +1 -1
  183. package/dist/mint-components/mint-components.js +1 -1
  184. package/dist/mint-components/{p-7c0f5891.js → p-0306ce68.js} +1 -1
  185. package/dist/mint-components/p-03361685.system.entry.js +1 -0
  186. package/dist/mint-components/{p-811f0ad3.system.js → p-036b876f.system.js} +1 -1
  187. package/dist/mint-components/{p-08e2f4b1.entry.js → p-08f36275.entry.js} +2 -2
  188. package/dist/mint-components/{p-e87d9982.entry.js → p-092305db.entry.js} +1 -1
  189. package/dist/mint-components/{p-63cce0ad.system.js → p-0ac8d8f4.system.js} +1 -1
  190. package/dist/mint-components/{p-9fc70866.entry.js → p-0dca7884.entry.js} +1 -1
  191. package/dist/mint-components/p-104f6ced.entry.js +1 -0
  192. package/dist/mint-components/{p-b111d5d7.system.js → p-128610fb.system.js} +1 -1
  193. package/dist/mint-components/{p-d34564f8.system.entry.js → p-16bd4751.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-700d8950.system.js → p-1cf59d96.system.js} +1 -1
  195. package/dist/mint-components/{p-058e5447.system.entry.js → p-1ee1dd9c.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-0436b138.entry.js → p-1f292473.entry.js} +1 -1
  197. package/dist/mint-components/{p-f194f4e5.system.entry.js → p-220cd813.system.entry.js} +1 -1
  198. package/dist/mint-components/{p-c5efdac3.system.js → p-263ca1be.system.js} +1 -1
  199. package/dist/mint-components/{p-8310ab1e.entry.js → p-274816ae.entry.js} +1 -1
  200. package/dist/mint-components/{p-0a6489fa.entry.js → p-28fa5159.entry.js} +1 -1
  201. package/dist/mint-components/{p-aa69a316.js → p-290314a6.js} +1 -1
  202. package/dist/mint-components/p-2cc01e0a.system.js +1 -0
  203. package/dist/mint-components/{p-8205800c.system.entry.js → p-319bf866.system.entry.js} +1 -1
  204. package/dist/mint-components/p-31b7d861.entry.js +1 -0
  205. package/dist/mint-components/{p-092c2606.entry.js → p-31c5f477.entry.js} +1 -1
  206. package/dist/mint-components/{p-209157a9.system.entry.js → p-31cfa118.system.entry.js} +1 -1
  207. package/dist/mint-components/{p-79c054d4.system.entry.js → p-3268c98c.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-ea7218d3.system.js → p-3390f1f2.system.js} +1 -1
  209. package/dist/mint-components/p-34917ee4.system.js +1 -0
  210. package/dist/mint-components/p-34bea1be.system.js +1 -0
  211. package/dist/mint-components/{p-623a0a0b.system.entry.js → p-3db7a3c0.system.entry.js} +1 -1
  212. package/dist/mint-components/{p-22d22fa9.js → p-429fa431.js} +1 -1
  213. package/dist/mint-components/{p-0766438e.js → p-44ce74b6.js} +1 -1
  214. package/dist/mint-components/{p-6f6c3ac6.system.entry.js → p-47dc2362.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-5fa706cf.system.js → p-48b25874.system.js} +1 -1
  216. package/dist/mint-components/{p-925aa740.system.entry.js → p-4ca6cc3c.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-9a1746bc.system.js → p-51d06654.system.js} +1 -1
  218. package/dist/mint-components/{p-824cd0fa.system.entry.js → p-5218d9dd.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-9ced75b2.js → p-5264ea68.js} +1 -1
  220. package/dist/mint-components/{p-2ec539fc.js → p-5300edb5.js} +1 -1
  221. package/dist/mint-components/{p-6a903273.system.entry.js → p-57c693ef.system.entry.js} +1 -1
  222. package/dist/mint-components/p-59d5f239.system.entry.js +1 -0
  223. package/dist/mint-components/{p-6f8a3436.js → p-5b0de730.js} +1 -1
  224. package/dist/mint-components/{p-361e8a80.entry.js → p-5c3cdefe.entry.js} +1 -1
  225. package/dist/mint-components/{p-f6de2e5c.system.entry.js → p-5cda271c.system.entry.js} +1 -1
  226. package/dist/mint-components/p-5d99dbc9.js +1 -0
  227. package/dist/mint-components/{p-462b1ead.entry.js → p-6b5528b1.entry.js} +2 -2
  228. package/dist/mint-components/p-6c8758ac.entry.js +1 -0
  229. package/dist/mint-components/{p-62610658.entry.js → p-6dffb326.entry.js} +2 -2
  230. package/dist/mint-components/{p-8a6531d2.js → p-6e9738a4.js} +1 -1
  231. package/dist/mint-components/{p-e920c95c.system.js → p-7062154c.system.js} +1 -1
  232. package/dist/mint-components/p-717fa601.js +1 -0
  233. package/dist/mint-components/{p-2a4b742a.system.entry.js → p-732907b1.system.entry.js} +1 -1
  234. package/dist/mint-components/{p-9944b514.js → p-78e98761.js} +1 -1
  235. package/dist/mint-components/{p-bcfdb510.entry.js → p-808f7f22.entry.js} +1 -1
  236. package/dist/mint-components/{p-02e2b13b.system.js → p-80cee817.system.js} +1 -1
  237. package/dist/mint-components/{p-df897432.system.entry.js → p-85996c52.system.entry.js} +1 -1
  238. package/dist/mint-components/{p-099ce3d5.system.entry.js → p-8629d0be.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-4aa008b5.system.entry.js → p-86c430f8.system.entry.js} +1 -1
  240. package/dist/mint-components/{p-60b1f3d9.entry.js → p-8707c7fb.entry.js} +1 -1
  241. package/dist/mint-components/{p-1599a178.entry.js → p-88a5350b.entry.js} +1 -1
  242. package/dist/mint-components/{p-d9d3661c.entry.js → p-93e4954e.entry.js} +14 -14
  243. package/dist/mint-components/{p-ee91aeac.system.js → p-952eefec.system.js} +1 -1
  244. package/dist/mint-components/{p-01fcd601.system.js → p-956f9479.system.js} +1 -1
  245. package/dist/mint-components/{p-f355b2be.entry.js → p-95f82a6f.entry.js} +1 -1
  246. package/dist/mint-components/{p-78e6dc8d.entry.js → p-9715be5b.entry.js} +1 -1
  247. package/dist/mint-components/{p-db45be67.js → p-99f7e6f1.js} +1 -1
  248. package/dist/mint-components/{p-227ca8d4.system.js → p-9a69f781.system.js} +1 -1
  249. package/dist/mint-components/{p-38d04e4b.entry.js → p-9f517f81.entry.js} +1 -1
  250. package/dist/mint-components/{p-13bb56a8.system.entry.js → p-9f7d1197.system.entry.js} +1 -1
  251. package/dist/mint-components/{p-ee685659.system.entry.js → p-a04be06d.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-f2e2ef27.js → p-a417a4c7.js} +1 -1
  253. package/dist/mint-components/p-a495e3a5.entry.js +1 -0
  254. package/dist/mint-components/{p-f11a39b4.entry.js → p-a52a961e.entry.js} +1 -1
  255. package/dist/mint-components/{p-d870d624.system.entry.js → p-ab8a551f.system.entry.js} +1 -1
  256. package/dist/mint-components/{p-d47d0862.entry.js → p-ac65d2c1.entry.js} +1 -1
  257. package/dist/mint-components/{p-318b8760.system.entry.js → p-ad9ea625.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-3e60ad62.system.js → p-b47e3740.system.js} +1 -1
  259. package/dist/mint-components/{p-bf9ab2d3.js → p-b56f3e55.js} +1 -1
  260. package/dist/mint-components/{p-2d3f7b76.system.entry.js → p-b6b5fa4f.system.entry.js} +1 -1
  261. package/dist/mint-components/{p-376c7608.system.js → p-bc625793.system.js} +1 -1
  262. package/dist/mint-components/{p-7c482564.js → p-c03131dd.js} +1 -1
  263. package/dist/mint-components/{p-7aa89fa8.js → p-c43e1d3b.js} +1 -1
  264. package/dist/mint-components/{p-14183edc.entry.js → p-c50e77ad.entry.js} +1 -1
  265. package/dist/mint-components/{p-3fe016dc.system.js → p-c5698ef9.system.js} +1 -1
  266. package/dist/mint-components/{p-0b32e1d4.system.entry.js → p-ca872769.system.entry.js} +1 -1
  267. package/dist/mint-components/{p-456720e4.js → p-ca90ea64.js} +1 -1
  268. package/dist/mint-components/{p-20ab3ff4.entry.js → p-cdf5354f.entry.js} +1 -1
  269. package/dist/mint-components/{p-3acfe5be.system.entry.js → p-d028db52.system.entry.js} +1 -1
  270. package/dist/mint-components/{p-50bba02e.entry.js → p-d0318b41.entry.js} +1 -1
  271. package/dist/mint-components/{p-bfb00685.system.js → p-d0ce74bd.system.js} +1 -1
  272. package/dist/mint-components/p-d26df2da.entry.js +1 -0
  273. package/dist/mint-components/{p-ab59c5eb.system.entry.js → p-d46a048d.system.entry.js} +1 -1
  274. package/dist/mint-components/{p-0607b068.system.js → p-d533ff7b.system.js} +1 -1
  275. package/dist/mint-components/p-d6a7f402.entry.js +1 -0
  276. package/dist/mint-components/p-d9dbbf22.system.entry.js +1 -0
  277. package/dist/mint-components/{p-a779e577.js → p-db30fbd1.js} +1 -1
  278. package/dist/mint-components/{p-30eab7b9.entry.js → p-de8d7e90.entry.js} +2 -2
  279. package/dist/mint-components/{p-921eb024.entry.js → p-e006b6ad.entry.js} +1 -1
  280. package/dist/mint-components/p-e0578030.system.js +1 -0
  281. package/dist/mint-components/{p-b27f98f1.js → p-e4eac70d.js} +1 -1
  282. package/dist/mint-components/{p-141c5bdb.system.entry.js → p-e66187b6.system.entry.js} +1 -1
  283. package/dist/mint-components/{p-87f86492.js → p-e7cf6632.js} +1 -1
  284. package/dist/mint-components/{p-4f364438.entry.js → p-e7d6e1e0.entry.js} +2 -2
  285. package/dist/mint-components/{p-6d6f2e60.js → p-eb992f94.js} +1 -1
  286. package/dist/mint-components/{p-2190dc73.system.js → p-ec3e44c8.system.js} +1 -1
  287. package/dist/mint-components/{p-eae44b42.js → p-ed741b3b.js} +1 -1
  288. package/dist/mint-components/{p-989437c5.system.js → p-eedda43c.system.js} +1 -1
  289. package/dist/mint-components/{p-7918979f.entry.js → p-f0b63c48.entry.js} +1 -1
  290. package/dist/mint-components/{p-0114ca06.js → p-f381533a.js} +1 -1
  291. package/dist/mint-components/{p-b290f390.system.entry.js → p-f507b364.system.entry.js} +1 -1
  292. package/dist/mint-components/{p-02c0f88e.system.entry.js → p-f69a4eb1.system.entry.js} +1 -1
  293. package/dist/mint-components/{p-4eadbd5b.entry.js → p-f982278b.entry.js} +1 -1
  294. package/dist/mint-components/{p-7a091fa7.js → p-f9fcc772.js} +1 -1
  295. package/dist/mint-components/p-fbdd8c2a.system.entry.js +1 -0
  296. package/dist/mint-components/{p-6b4e5d94.system.entry.js → p-fdc4f293.system.entry.js} +1 -1
  297. package/dist/mint-components/{p-08db34e6.system.js → p-ff1a5481.system.js} +1 -1
  298. package/dist/mint-components/{p-85b4259e.system.entry.js → p-ff75998a.system.entry.js} +1 -1
  299. package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +1 -0
  300. package/docs/docs.docx +0 -0
  301. package/package.json +2 -2
  302. package/dist/mint-components/p-1317cc92.system.js +0 -1
  303. package/dist/mint-components/p-1b0326d1.entry.js +0 -1
  304. package/dist/mint-components/p-1d86895f.system.js +0 -1
  305. package/dist/mint-components/p-30cfe3e3.system.entry.js +0 -1
  306. package/dist/mint-components/p-4e3db52b.entry.js +0 -1
  307. package/dist/mint-components/p-6e92460d.system.entry.js +0 -1
  308. package/dist/mint-components/p-7ea3f49c.entry.js +0 -1
  309. package/dist/mint-components/p-8ae8968c.js +0 -1
  310. package/dist/mint-components/p-8f15bf17.entry.js +0 -1
  311. package/dist/mint-components/p-940bc86b.system.entry.js +0 -1
  312. package/dist/mint-components/p-9b35d62f.entry.js +0 -1
  313. package/dist/mint-components/p-a49d9288.entry.js +0 -1
  314. package/dist/mint-components/p-b4d3ddfa.system.entry.js +0 -1
  315. package/dist/mint-components/p-badf28bb.system.js +0 -1
  316. package/dist/mint-components/p-cfea215d.js +0 -1
  317. package/dist/mint-components/p-f32050f6.system.js +0 -1
@@ -60,6 +60,7 @@ export function useUpsertUserEmail() {
60
60
  ];
61
61
  }
62
62
  export function useWidgetEmailVerification(props) {
63
+ var _a;
63
64
  const [_, setShowCode] = useParent(SHOW_CODE_NAMESPACE);
64
65
  const [_email, setEmail] = useParent(VERIFICATION_EMAIL_NAMESPACE);
65
66
  const [emailExists, setEmailExists] = useState(false);
@@ -128,7 +129,7 @@ export function useWidgetEmailVerification(props) {
128
129
  loading,
129
130
  initialLoading: initialLoading && !initialized,
130
131
  error,
131
- email: data === null || data === void 0 ? void 0 : data.viewer.email,
132
+ email: (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.email,
132
133
  sendCodeError: mutationError,
133
134
  },
134
135
  text: props.getTextProps(),
@@ -2,7 +2,7 @@ import { useLazyQuery, useParentState, useSetParent, } from "@saasquatch/compone
2
2
  import { useState } from "@saasquatch/stencil-hooks";
3
3
  import { useEffect } from "@saasquatch/universal-hooks";
4
4
  import { gql } from "graphql-request";
5
- import { getVerificationStep } from "./getVerificationStep";
5
+ import { getStepAfterVerification, getVerificationStep, } from "./getVerificationStep";
6
6
  import { PARTNER_CREATED_NAMESPACE, SHOW_CODE_NAMESPACE, SHOW_PARTNER_MODAL_NAMESPACE, VERIFICATION_EMAIL_NAMESPACE, VERIFICATION_PARENT_NAMESPACE, } from "./keys";
7
7
  const USER_LOOKUP = gql `
8
8
  query checkUserVerification {
@@ -52,14 +52,12 @@ export function useWidgetVerification() {
52
52
  initialValue: false,
53
53
  });
54
54
  const [fetch] = useLazyQuery(USER_LOOKUP);
55
- const [viewer, setViewer] = useState(undefined);
56
55
  useEffect(() => {
57
56
  const checkUser = async () => {
58
57
  try {
59
58
  const res = await fetch({});
60
59
  if (!res || res instanceof Error)
61
60
  throw new Error();
62
- setViewer(res.viewer);
63
61
  const step = getVerificationStep(res.viewer);
64
62
  if (step === "content")
65
63
  setContext(true);
@@ -75,9 +73,11 @@ export function useWidgetVerification() {
75
73
  };
76
74
  checkUser();
77
75
  }, []);
78
- const onVerification = () => {
79
- const step = getVerificationStep({ ...viewer, emailVerified: true });
80
- if (step === "partner")
76
+ // Re-query so a failed or stale mount lookup can't decide the partner step
77
+ const onVerification = async () => {
78
+ const res = await fetch({});
79
+ const viewer = res && !(res instanceof Error) ? res.viewer : undefined;
80
+ if (getStepAfterVerification(viewer) === "partner")
81
81
  setShowPartnerModal(true);
82
82
  else
83
83
  setContext(true);
@@ -1,19 +1,19 @@
1
1
  import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { b as browser, u as useMemo, k as useState, m as useRef } from './dom-context-hooks.module-50442785.js';
4
- import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-02cb914c.js';
4
+ import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-cc08450c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { l as luxonLocale } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
- import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-acbe7b0a.js';
8
+ import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-a0a271ca.js';
9
9
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
10
10
  import { C as CopyTextView } from './copy-text-view-87259b11.js';
11
11
  import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
12
- import { u as useChildElements } from './useChildElements-06937df7.js';
12
+ import { u as useChildElements } from './useChildElements-aa9eb7c9.js';
13
13
  import { l as luxon } from './luxon-1be92a8e.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
16
- import { a as isValidColor, b as isMobile } from './utilities-cbd8f2eb.js';
16
+ import { a as isValidColor, b as isMobile } from './utilities-23a276e0.js';
17
17
  import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-200c9df8.js';
18
18
 
19
19
  function BigStatView(props) {
@@ -1,4 +1,4 @@
1
- import { d as dist } from './index.module-02cb914c.js';
1
+ import { d as dist } from './index.module-cc08450c.js';
2
2
 
3
3
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
4
4
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -1,5 +1,5 @@
1
1
  import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './dom-context-hooks.module-50442785.js';
2
- import { U, g as getEnvironmentSDK } from './index.module-02cb914c.js';
2
+ import { U, g as getEnvironmentSDK } from './index.module-cc08450c.js';
3
3
 
4
4
  /* @generated */
5
5
  // prettier-ignore
@@ -8760,6 +8760,6 @@ var umd = createCommonjsModule(function (module, exports) {
8760
8760
 
8761
8761
  });
8762
8762
 
8763
- var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return h(e,PROGRAM_CONTEXT_NAME)}function G(){var e;return null==(e=J())?void 0:e.jwt}function J(){lazilyStartUserContext();var e=_(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var Q=getTenantAlias,z=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=he(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},he=function(e){var n=e.split("_");return n[n.length-1]},pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=G(),a=z(),o=Q(),i=Ee(a,o,r),s=_(),null!=(u=h(s,"sq:graphql-client",{attempts:0}))?u:i),d=useReducer(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var De,Se={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,Se);return [n[1],n[0]]}var ke,Ae=le(De||(De=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function je(){var e=$e(Ae),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var qe,Re=le(ke||(ke=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ve(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var xe,We=le(qe||(qe=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Oe(){var e=$e(We),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o&&null!=(r=o.result)&&null!=(a=r.results)&&a.length){var i=o.result.results[0];if(i.success){var c=i.data.token,d=o$1(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o,formError:i[0]}]}var Ne,_e=le(xe||(xe=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ge=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Je(){return $e(Ge)}function Qe(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function ze(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=useRef(Ze);ze({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=J(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn,mn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function vn(){var e=H(),n=getEnvironment(),t=$e(mn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}var gn=dist$1.gql(fn||(fn=X(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function hn(){var e=$e(gn),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var n=e.authenticateManagedIdentityWithGoogle.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}function pn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function yn(){return useReducer(function(e){return e+1},0)}function Cn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&Cn(r);}return Object.freeze(e)}var bn={loading:!0,data:void 0,errors:void 0};function wn(e,n,t,r){var a=Me(e,bn,K({batch:!0},r||{})),o=a[0],i=a[1],s=yn(),u=s[1];return pn(function(){!t&&i(n);},[e,n,i,s[0],t]),ze({skip:t,update:i,variables:n}),Cn(K({},o,{refetch:u}))}function In(e){var n=_(),t=y(n,Mn(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,Dn(e.namespace),[r,a]),[r,a]}function Pn(e){var n=d(Dn(e)),t=d(Mn(e));return n?[t,n[1]]:[void 0,void 0]}function En(e){var n=d(Dn(e));if(n)return n[1]}function Fn(e){return d(Mn(e))}function Mn(e){return e+"-value"}function Dn(e){return e+"-state"}function Sn(e){var n=_(),t=wn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=y(n,Mn(e.namespace),t),a=r[0],o=r[1];return useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function $n(e){return d(Mn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function kn(){var e=yn()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var An,jn=history_default;function qn(e){var n=useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function Rn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=qn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=wn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),h=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:h.currentPage,pageCount:h.pageCount,pageProgress:h.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var On=dist$1.gql(An||(An=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var _n=1e3,Un=60*_n,Ln=60*Un,Hn=24*Ln,Tn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Hn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Ln;case"minutes":case"minute":case"mins":case"min":case"m":return t*Un;case"seconds":case"second":case"secs":case"sec":case"s":return t*_n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Hn?Gn(e,n,Hn,"day"):n>=Ln?Gn(e,n,Ln,"hour"):n>=Un?Gn(e,n,Un,"minute"):n>=_n?Gn(e,n,_n,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Hn?Math.round(e/Hn)+"d":n>=Ln?Math.round(e/Ln)+"h":n>=Un?Math.round(e/Un)+"m":n>=_n?Math.round(e/_n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Jn,Qn,zn,Bn,Kn,Zn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Tn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Jn={exports:{}},Jn.exports),Jn.exports),Xn=Zn("sq:load-event"),Yn=dist$1.gql(Qn||(Qn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var nt=Zn("sq:useForm"),tt=dist$1.gql(zn||(zn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),rt=dist$1.gql(Bn||(Bn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),at=dist$1.gql(Kn||(Kn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
8763
+ var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return h(e,PROGRAM_CONTEXT_NAME)}function G(){var e;return null==(e=J())?void 0:e.jwt}function J(){lazilyStartUserContext();var e=_(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var Q=getTenantAlias,z=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=he(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(o.indexOf(r),1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},he=function(e){var n=e.split("_");return n[n.length-1]},pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=G(),a=z(),o=Q(),i=Ee(a,o,r),s=_(),null!=(u=h(s,"sq:graphql-client",{attempts:0}))?u:i),d=useReducer(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var De,Se={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,Se);return [n[1],n[0]]}var ke,Ae=le(De||(De=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function je(){var e=$e(Ae),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var qe,Re=le(ke||(ke=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ve(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var xe,We=le(qe||(qe=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Oe(){var e=$e(We),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o&&null!=(r=o.result)&&null!=(a=r.results)&&a.length){var i=o.result.results[0];if(i.success){var c=i.data.token,d=o$1(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o,formError:i[0]}]}var Ne,_e=le(xe||(xe=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ge=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Je(){return $e(Ge)}function Qe(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function ze(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=useRef(Ze);ze({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=J(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn,mn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function vn(){var e=H(),n=getEnvironment(),t=$e(mn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}var gn=dist$1.gql(fn||(fn=X(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function hn(){var e=$e(gn),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var n=e.authenticateManagedIdentityWithGoogle.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}function pn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function yn(){return useReducer(function(e){return e+1},0)}function Cn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&Cn(r);}return Object.freeze(e)}var bn={loading:!0,data:void 0,errors:void 0};function wn(e,n,t,r){var a=Me(e,bn,K({batch:!0},r||{})),o=a[0],i=a[1],s=yn(),u=s[1];return pn(function(){!t&&i(n);},[e,n,i,s[0],t]),ze({skip:t,update:i,variables:n}),Cn(K({},o,{refetch:u}))}function In(e){var n=_(),t=y(n,Mn(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,Dn(e.namespace),[r,a]),[r,a]}function Pn(e){var n=d(Dn(e)),t=d(Mn(e));return n?[t,n[1]]:[void 0,void 0]}function En(e){var n=d(Dn(e));if(n)return n[1]}function Fn(e){return d(Mn(e))}function Mn(e){return e+"-value"}function Dn(e){return e+"-state"}function Sn(e){var n=_(),t=wn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=y(n,Mn(e.namespace),t),a=r[0],o=r[1];return useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function $n(e){return d(Mn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function kn(){var e=yn()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var An,jn=history_default;function qn(e){var n=useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function Rn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=qn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=wn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),h=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:h.currentPage,pageCount:h.pageCount,pageProgress:h.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var On=dist$1.gql(An||(An=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var _n=1e3,Un=60*_n,Ln=60*Un,Hn=24*Ln,Tn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Hn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Ln;case"minutes":case"minute":case"mins":case"min":case"m":return t*Un;case"seconds":case"second":case"secs":case"sec":case"s":return t*_n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Hn?Gn(e,n,Hn,"day"):n>=Ln?Gn(e,n,Ln,"hour"):n>=Un?Gn(e,n,Un,"minute"):n>=_n?Gn(e,n,_n,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Hn?Math.round(e/Hn)+"d":n>=Ln?Math.round(e/Ln)+"h":n>=Un?Math.round(e/Un)+"m":n>=_n?Math.round(e/_n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Jn,Qn,zn,Bn,Kn,Zn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Tn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Jn={exports:{}},Jn.exports),Jn.exports),Xn=Zn("sq:load-event"),Yn=dist$1.gql(Qn||(Qn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var nt=Zn("sq:useForm"),tt=dist$1.gql(zn||(zn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),rt=dist$1.gql(Bn||(Bn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),at=dist$1.gql(Kn||(Kn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
8764
8764
 
8765
8765
  export { $e as $, B, Ee as E, Fn as F, G, H, In as I, J, L, Mn as M, Oe as O, Pe as P, Qe as Q, Rn as R, Sn as S, Te as T, U, Ve as V, Xe as X, _, je as a, useCallback as b, an as c, dist$1 as d, Q as e, Je as f, getEnvironmentSDK as g, hn as h, isDemo as i, jn as j, kn as k, ln as l, setProgramId as m, nn as n, Ue as o, En as p, Pn as q, $n as r, setUserIdentity as s, un as u, vn as v, wn as w, yn as y };
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-38ad4957.js';
2
- import './global-32d00a6e.js';
2
+ import './global-f019575d.js';
3
3
  import './dom-context-hooks.module-50442785.js';
4
- import './index.module-02cb914c.js';
4
+ import './index.module-cc08450c.js';
5
5
 
6
6
  /*
7
7
  Stencil Client Patch Esm v2.4.0 | MIT Licensed | https://stenciljs.com
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, H, b as bootstrapLazy } from './index-38ad4957.js';
2
- import './global-32d00a6e.js';
2
+ import './global-f019575d.js';
3
3
  import './dom-context-hooks.module-50442785.js';
4
- import './index.module-02cb914c.js';
4
+ import './index.module-cc08450c.js';
5
5
 
6
6
  /*
7
7
  Stencil Client Patch Browser v2.4.0 | MIT Licensed | https://stenciljs.com
@@ -1,5 +1,5 @@
1
1
  import { f as useEffect } from './dom-context-hooks.module-50442785.js';
2
- import { _, y as yn } from './index.module-02cb914c.js';
2
+ import { _, y as yn } from './index.module-cc08450c.js';
3
3
 
4
4
  const RENDER_EVENT = "sqm:request-rerender";
5
5
  /**
@@ -1,24 +1,24 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { m as useRef, k as useState, f as useEffect, n as h$1, b as browser, j as useReducer, u as useMemo } from './dom-context-hooks.module-50442785.js';
4
- import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, p as En, b as useCallback, R as Rn, w as wn } from './index.module-02cb914c.js';
4
+ import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, p as En, b as useCallback, R as Rn, w as wn } from './index.module-cc08450c.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 } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
9
  import './mixins-f750863a.js';
10
10
  import './AsYouType-2d56519e.js';
11
- import { t as taxTypeToName, d as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, c as formatPayoutThreshold, b as isBalanceUnderPayoutThreshold, o as objectIsFull, e as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-8e84e5fa.js';
11
+ import { t as taxTypeToName, d as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, c as formatPayoutThreshold, b as isBalanceUnderPayoutThreshold, o as objectIsFull, e as toDomesticNumber, A as ADDRESS_REGIONS } from './subregions-16dc47a9.js';
12
12
  import { G as GenericTableView } from './GenericTableView-471a9386.js';
13
- import { u as useRerenderListener, a as useRequestRerender } from './re-render-bf46ba54.js';
14
- import { g as generateUserError, d as dropZoneColumnIndexes } from './useReferralTable-3aa4b527.js';
15
- import { u as useChildElements } from './useChildElements-06937df7.js';
13
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-380499f8.js';
14
+ import { g as generateUserError, d as dropZoneColumnIndexes } from './useReferralTable-670580ff.js';
15
+ import { u as useChildElements } from './useChildElements-aa9eb7c9.js';
16
16
  import { l as luxon } from './luxon-1be92a8e.js';
17
- import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-5c457c98.js';
18
- import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE } from './data-0be04430.js';
17
+ import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, T as TaxAndCashDashboardView, U as UserInfoFormView } from './sqm-user-info-form-view-8a95c5eb.js';
18
+ import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE } from './data-04d2da44.js';
19
19
  import { c as VERIFICATION_EVENT_KEY } from './keys-1054056a.js';
20
20
  import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
21
- import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-f622ba23.js';
21
+ import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-8d2e873d.js';
22
22
 
23
23
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
24
24
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
@@ -1,36 +1,36 @@
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-32d00a6e.js';
2
+ import { b as buildFontsCssUrl, i as intl } from './global-f019575d.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, 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-cc08450c.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-acbe7b0a.js';
9
+ import './useReferralCodes-a0a271ca.js';
10
10
  import './mixins-f750863a.js';
11
11
  import { C as CopyTextView } from './copy-text-view-87259b11.js';
12
12
  import './sqm-text-span-view-72f43dff.js';
13
13
  import { A as AsYouType } from './AsYouType-2d56519e.js';
14
- import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-8e84e5fa.js';
15
- import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-aa44cfff.js';
14
+ import { g as getCountryObj, i as isValidI18nPhoneNumber, L as LoadingView } from './subregions-16dc47a9.js';
15
+ import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-95a75c57.js';
16
16
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-79265df5.js';
17
- import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-78fdfd93.js';
18
- import { a as useRequestRerender } from './re-render-bf46ba54.js';
19
- import { u as useChildElements } from './useChildElements-06937df7.js';
17
+ import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-91e5786d.js';
18
+ import { a as useRequestRerender } from './re-render-380499f8.js';
19
+ import { u as useChildElements } from './useChildElements-aa9eb7c9.js';
20
20
  import { l as luxon } from './luxon-1be92a8e.js';
21
21
  import { p as pathToRegexp } from './index-ffa26b43.js';
22
22
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
23
23
  import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
24
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69c9ffe0.js';
25
- import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-6214b2d9.js';
26
- import { i as isEmpty } from './utilities-cbd8f2eb.js';
24
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-7b11eb02.js';
25
+ import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-b67018f2.js';
26
+ import { i as isEmpty } from './utilities-23a276e0.js';
27
27
  import { E as ErrorView } from './ErrorView-c6fc1d9b.js';
28
- 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-be5cdc78.js';
28
+ 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-e1375e0d.js';
29
29
  import './sqm-portal-container-view-200c9df8.js';
30
- 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-0be04430.js';
30
+ 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-04d2da44.js';
31
31
  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';
32
32
  import './eventKeys-f76b6a03.js';
33
- import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-f622ba23.js';
33
+ import { u as usePayoutStatus, C as COMPLETE_PARTNER } from './useIndirectTaxForm-8d2e873d.js';
34
34
  import { p as parseStates } from './parseStates-ed75e224.js';
35
35
 
36
36
  /**
@@ -8367,7 +8367,14 @@ function getVerificationStep(viewer) {
8367
8367
  const emailVerified = (viewer === null || viewer === void 0 ? void 0 : viewer.emailVerified) || ((_b = viewer === null || viewer === void 0 ? void 0 : viewer.managedIdentity) === null || _b === void 0 ? void 0 : _b.emailVerified);
8368
8368
  if (!emailVerified)
8369
8369
  return "verify";
8370
- return ((_c = viewer === null || viewer === void 0 ? void 0 : viewer.cashRewards) === null || _c === void 0 ? void 0 : _c.totalCount) > 0 ? "partner" : "content";
8370
+ // A missing count is unknown, not zero, so fail closed to the partner step
8371
+ const cashRewardCount = (_c = viewer === null || viewer === void 0 ? void 0 : viewer.cashRewards) === null || _c === void 0 ? void 0 : _c.totalCount;
8372
+ return cashRewardCount == null || cashRewardCount > 0 ? "partner" : "content";
8373
+ }
8374
+ function getStepAfterVerification(viewer) {
8375
+ return getVerificationStep({ ...viewer, emailVerified: true }) === "partner"
8376
+ ? "partner"
8377
+ : "content";
8371
8378
  }
8372
8379
 
8373
8380
  const USER_LOOKUP = dist.gql `
@@ -8418,14 +8425,12 @@ function useWidgetVerification() {
8418
8425
  initialValue: false,
8419
8426
  });
8420
8427
  const [fetch] = Xe(USER_LOOKUP);
8421
- const [viewer, setViewer] = useState(undefined);
8422
8428
  useEffect(() => {
8423
8429
  const checkUser = async () => {
8424
8430
  try {
8425
8431
  const res = await fetch({});
8426
8432
  if (!res || res instanceof Error)
8427
8433
  throw new Error();
8428
- setViewer(res.viewer);
8429
8434
  const step = getVerificationStep(res.viewer);
8430
8435
  if (step === "content")
8431
8436
  setContext(true);
@@ -8441,9 +8446,11 @@ function useWidgetVerification() {
8441
8446
  };
8442
8447
  checkUser();
8443
8448
  }, []);
8444
- const onVerification = () => {
8445
- const step = getVerificationStep({ ...viewer, emailVerified: true });
8446
- if (step === "partner")
8449
+ // Re-query so a failed or stale mount lookup can't decide the partner step
8450
+ const onVerification = async () => {
8451
+ const res = await fetch({});
8452
+ const viewer = res && !(res instanceof Error) ? res.viewer : undefined;
8453
+ if (getStepAfterVerification(viewer) === "partner")
8447
8454
  setShowPartnerModal(true);
8448
8455
  else
8449
8456
  setContext(true);
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
2
2
  import { n as h } from './dom-context-hooks.module-50442785.js';
3
- import { g as getEnvironmentSDK } from './index.module-02cb914c.js';
3
+ import { g as getEnvironmentSDK } from './index.module-cc08450c.js';
4
4
  import './JSS-67b5cff8.js';
5
5
  import './mixins-f750863a.js';
6
6
  import { C as CloseButtonView } from './sqm-close-button-view-fd9012e7.js';
@@ -1,14 +1,14 @@
1
1
  import { h, r as registerInstance } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { l, k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-50442785.js';
4
- import { d as dist, q as Pn, F as Fn, i as isDemo, p as En } from './index.module-02cb914c.js';
4
+ import { d as dist, q as Pn, F as Fn, i as isDemo, p as En } from './index.module-cc08450c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { E as ErrorStyles } from './mixins-f750863a.js';
9
9
  import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
10
10
  import { a as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
11
- import { u as useVerificationEmail } from './useVerificationEmail-9f2c0bab.js';
11
+ import { u as useVerificationEmail } from './useVerificationEmail-99d9f705.js';
12
12
 
13
13
  const style = {
14
14
  Wrapper: {
@@ -163,6 +163,7 @@ function useWidgetCodeVerification(props) {
163
163
  const [codeRef, setCodeRef] = useState(null);
164
164
  const [validationError, setValidationError] = useState(false);
165
165
  const [emailError, setEmailError] = useState(false);
166
+ const [routing, setRouting] = useState(false);
166
167
  const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
167
168
  useEffect(() => {
168
169
  if (!codeRef)
@@ -232,7 +233,14 @@ function useWidgetCodeVerification(props) {
232
233
  setValidationError(false);
233
234
  const res = await verifyEmail(code);
234
235
  if (res === null || res === void 0 ? void 0 : res.success) {
235
- props.onVerification(res.accessKey);
236
+ // Keep this step (and its spinner) up until the parent has picked the next step
237
+ setRouting(true);
238
+ try {
239
+ await props.onVerification(res.accessKey);
240
+ }
241
+ finally {
242
+ setRouting(false);
243
+ }
236
244
  reset();
237
245
  }
238
246
  else {
@@ -258,7 +266,7 @@ function useWidgetCodeVerification(props) {
258
266
  emailResent,
259
267
  resendError: sendErrors || verifyErrors,
260
268
  initialiseLoading: !initialized,
261
- loading: sendLoading || verifyLoading,
269
+ loading: sendLoading || verifyLoading || routing,
262
270
  verifyFailed: !!validationError,
263
271
  },
264
272
  callbacks: {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
2
2
  import { b as browser, k as useState, i as d, f as useEffect, n as h } from './dom-context-hooks.module-50442785.js';
3
- import { _ } from './index.module-02cb914c.js';
3
+ import { _ } from './index.module-cc08450c.js';
4
4
  import { g as getProps } from './utils-334c1e34.js';
5
5
  import { p as pathToRegexp } from './index-ffa26b43.js';
6
6
 
@@ -1,17 +1,17 @@
1
1
  import { h, r as registerInstance } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { k as useState, f as useEffect, n as h$1, u as useMemo } from './dom-context-hooks.module-50442785.js';
4
- import { d as dist, q as Pn, w as wn, J, $ as $e, i as isDemo, p as En, L } from './index.module-02cb914c.js';
4
+ import { d as dist, q as Pn, w as wn, J, $ as $e, i as isDemo, p as En, L } from './index.module-cc08450c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
9
- import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-0be04430.js';
10
- import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-a68cec80.js';
9
+ import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-04d2da44.js';
10
+ import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-e02fb63a.js';
11
11
  import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE } from './keys-1054056a.js';
12
12
  import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
13
13
  import { p as parseStates } from './parseStates-ed75e224.js';
14
- import { u as useVerificationEmail } from './useVerificationEmail-9f2c0bab.js';
14
+ import { u as useVerificationEmail } from './useVerificationEmail-99d9f705.js';
15
15
 
16
16
  const UpsertUserEmailMutation = dist.gql `
17
17
  mutation upsertUser($userInput: UserInput!) {
@@ -70,6 +70,7 @@ function useUpsertUserEmail() {
70
70
  ];
71
71
  }
72
72
  function useWidgetEmailVerification(props) {
73
+ var _a;
73
74
  const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
74
75
  const [_email, setEmail] = Pn(VERIFICATION_EMAIL_NAMESPACE);
75
76
  const [emailExists, setEmailExists] = useState(false);
@@ -138,7 +139,7 @@ function useWidgetEmailVerification(props) {
138
139
  loading,
139
140
  initialLoading: initialLoading && !initialized,
140
141
  error,
141
- email: data === null || data === void 0 ? void 0 : data.viewer.email,
142
+ email: (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.email,
142
143
  sendCodeError: mutationError,
143
144
  },
144
145
  text: props.getTextProps(),
@@ -1,7 +1,7 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { n as h$1 } from './dom-context-hooks.module-50442785.js';
4
- import './index.module-02cb914c.js';
4
+ import './index.module-cc08450c.js';
5
5
  import { g as getProps } from './utils-334c1e34.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, e as createEvent, h as h$1, g as getElement } from './index-38ad4957.js';
2
2
  import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-50442785.js';
3
- import { g as getEnvironmentSDK, i as isDemo } from './index.module-02cb914c.js';
3
+ import { g as getEnvironmentSDK, i as isDemo } from './index.module-cc08450c.js';
4
4
 
5
5
  function useGoogleSignIn(props) {
6
6
  const [loaded, setLoaded] = useState(false);
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
2
2
  import { o as m, f as useEffect, n as h } from './dom-context-hooks.module-50442785.js';
3
- import { G, e as Q, E as Ee, P as Pe } from './index.module-02cb914c.js';
3
+ import { G, e as Q, E as Ee, P as Pe } from './index.module-cc08450c.js';
4
4
 
5
5
  async function useGraphQLClientProvider({ domain }) {
6
6
  const token = G();
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-38ad4957.js';
2
2
  import { n as h } from './dom-context-hooks.module-50442785.js';
3
- import { i as isDemo, s as setUserIdentity } from './index.module-02cb914c.js';
3
+ import { i as isDemo, s as setUserIdentity } from './index.module-cc08450c.js';
4
4
  import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-f750863a.js';
8
- import './useRegistrationFormState-aa44cfff.js';
8
+ import './useRegistrationFormState-95a75c57.js';
9
9
  import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
10
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-69c9ffe0.js';
10
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-7b11eb02.js';
11
11
 
12
12
  const InstantAccessRegistration = class {
13
13
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-38ad4957.js';
2
- import { i as intl } from './global-32d00a6e.js';
2
+ import { i as intl } from './global-f019575d.js';
3
3
  import { j as jss, a as create } from './JSS-67b5cff8.js';
4
4
 
5
5
  const style = {