@saasquatch/mint-components 1.12.0-0 → 1.12.0-2

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 (371) hide show
  1. package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-13173901.js} +33 -32
  2. package/dist/cjs/{global-c3637175.js → global-e4ebdbcc.js} +161 -10
  3. package/dist/cjs/index-56d1fa5b.js +2227 -0
  4. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-236d0403.js} +1392 -228
  5. package/dist/cjs/loader.cjs.js +4 -4
  6. package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
  7. package/dist/cjs/mint-components.cjs.js +4 -4
  8. package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
  9. package/dist/cjs/{re-render-5bde3d2e.js → re-render-5de6631a.js} +2 -2
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  11. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +409 -440
  12. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +127 -73
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-code-verification.cjs.entry.js +38 -34
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-email-verification.cjs.entry.js +34 -10
  17. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  18. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  22. package/dist/cjs/{sqm-invoice-table-view-ce9a34ac.js → sqm-invoice-table-view-dbba9bb4.js} +1 -1
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-fc865ecf.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  30. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-4bc2760b.js} +1 -1
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  32. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  33. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  34. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-cbab7c80.js} +1 -1
  35. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
  36. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  37. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
  38. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  41. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  42. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
  45. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -24
  47. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  48. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  49. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  50. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +3 -3
  51. package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
  52. package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
  53. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-23beb180.js} +2 -2
  54. package/dist/cjs/useEmailVerification-33465f36.js +155 -0
  55. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-7c125c00.js} +3 -3
  56. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-54d0ba70.js} +14 -13
  57. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-e7e820d0.js} +2 -2
  58. package/dist/cjs/{utilities-f7de6c04.js → utilities-ac5b5f2c.js} +2 -2
  59. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
  60. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
  61. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
  62. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +2 -2
  63. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +19 -9
  64. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +6 -58
  65. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -7
  66. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
  67. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
  68. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +59 -7
  69. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +88 -9
  70. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +29 -8
  71. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +56 -8
  72. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -16
  73. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -79
  74. package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-72e231a5.js} +7 -6
  75. package/dist/esm/{global-6306a9b8.js → global-adae7650.js} +161 -10
  76. package/dist/esm/index-0c7b14c5.js +2225 -0
  77. package/dist/esm/{index.module-6c840c4e.js → index.module-c0eb7dc2.js} +1389 -222
  78. package/dist/esm/loader.js +4 -4
  79. package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  80. package/dist/esm/mint-components.js +4 -4
  81. package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  82. package/dist/esm/{re-render-1bcfd0de.js → re-render-5882a144.js} +2 -2
  83. package/dist/esm/sqm-asset-card.entry.js +2 -2
  84. package/dist/esm/sqm-banking-info-form_16.entry.js +10 -41
  85. package/dist/esm/sqm-big-stat_39.entry.js +72 -18
  86. package/dist/esm/sqm-close-button.entry.js +2 -2
  87. package/dist/esm/sqm-code-verification.entry.js +36 -32
  88. package/dist/esm/sqm-context-router.entry.js +2 -2
  89. package/dist/esm/sqm-email-verification.entry.js +33 -9
  90. package/dist/esm/sqm-empty_4.entry.js +3 -3
  91. package/dist/esm/sqm-form-message.entry.js +1 -1
  92. package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
  93. package/dist/esm/sqm-header-logo.entry.js +1 -1
  94. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  95. package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  96. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
  97. package/dist/esm/sqm-logout-current-user.entry.js +3 -2
  98. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  99. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  100. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  101. package/dist/esm/sqm-password-field.entry.js +3 -3
  102. package/dist/esm/sqm-popup-container.entry.js +2 -2
  103. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
  104. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  105. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  106. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  107. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
  108. package/dist/esm/sqm-portal-profile.entry.js +6 -5
  109. package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
  110. package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
  111. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  112. package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
  113. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  114. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  115. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  116. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  117. package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
  118. package/dist/esm/sqm-scroll.entry.js +1 -1
  119. package/dist/esm/sqm-stencilbook.entry.js +44 -22
  120. package/dist/esm/sqm-tab.entry.js +3 -3
  121. package/dist/esm/sqm-tabs.entry.js +4 -4
  122. package/dist/esm/sqm-text-span.entry.js +1 -1
  123. package/dist/esm/sqm-widget-verification-internal.entry.js +2 -2
  124. package/dist/esm/sqm-widget-verification.entry.js +2 -2
  125. package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  126. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-fe94b660.js} +2 -2
  127. package/dist/esm/useEmailVerification-8f2dc2bd.js +152 -0
  128. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +3 -3
  129. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-52008143.js} +5 -4
  130. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-4cfd1a8d.js} +2 -2
  131. package/dist/esm/{utilities-443732be.js → utilities-98445452.js} +2 -2
  132. package/dist/esm-es5/ShadowViewAddon-72e231a5.js +1 -0
  133. package/dist/esm-es5/global-adae7650.js +285 -0
  134. package/dist/esm-es5/index-0c7b14c5.js +1 -0
  135. package/dist/esm-es5/index.module-c0eb7dc2.js +53 -0
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  138. package/dist/esm-es5/mint-components.js +1 -1
  139. package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  140. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-5882a144.js} +1 -1
  141. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  142. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  143. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  144. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  145. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  146. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  147. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  148. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  149. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  150. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  151. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  152. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  153. package/dist/esm-es5/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  154. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  155. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  156. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  157. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  158. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  159. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  160. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  161. package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
  162. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  163. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  164. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  165. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
  166. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  167. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  168. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  169. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  170. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  171. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  172. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  173. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  174. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  175. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  176. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  177. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  178. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  179. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  180. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  181. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
  182. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  183. package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  184. package/dist/esm-es5/useChildElements-fe94b660.js +1 -0
  185. package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +1 -0
  186. package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +1 -1
  187. package/dist/esm-es5/useReferralTable-52008143.js +1 -0
  188. package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +1 -0
  189. package/dist/esm-es5/{utilities-443732be.js → utilities-98445452.js} +1 -1
  190. package/dist/mint-components/mint-components.esm.js +1 -1
  191. package/dist/mint-components/mint-components.js +1 -1
  192. package/dist/mint-components/p-0078bc76.system.js +53 -0
  193. package/dist/mint-components/{p-5becb2ff.system.js → p-00ec17d4.system.js} +1 -1
  194. package/dist/mint-components/{p-cd44de66.system.js → p-06c561ea.system.js} +1 -1
  195. package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
  196. package/dist/mint-components/{p-d83b0cf3.js → p-0db003f7.js} +153 -153
  197. package/dist/mint-components/{p-0121e044.js → p-0ecb3019.js} +1 -1
  198. package/dist/mint-components/{p-04ced592.system.entry.js → p-14488d1c.system.entry.js} +1 -1
  199. package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-a85f57bb.entry.js → p-15e01e7a.entry.js} +1 -1
  201. package/dist/mint-components/{p-2816bf6a.js → p-1602bf01.js} +1 -1
  202. package/dist/mint-components/p-18399da0.system.entry.js +1 -0
  203. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-18cd88c4.system.entry.js} +1 -1
  204. package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
  205. package/dist/mint-components/{p-03dbe2ce.entry.js → p-1e40967f.entry.js} +1 -1
  206. package/dist/mint-components/p-1f02e20b.entry.js +1 -0
  207. package/dist/mint-components/p-253c87e1.system.entry.js +1 -0
  208. package/dist/mint-components/p-25a70095.system.entry.js +1 -0
  209. package/dist/mint-components/p-2632464d.entry.js +1 -0
  210. package/dist/mint-components/p-286190c4.system.entry.js +1 -0
  211. package/dist/mint-components/{p-4e373c3d.system.js → p-34a87e67.system.js} +1 -1
  212. package/dist/mint-components/{p-59818690.system.entry.js → p-34dab223.system.entry.js} +1 -1
  213. package/dist/mint-components/{p-947fe79b.entry.js → p-3ba349a3.entry.js} +1 -1
  214. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-3c46b3de.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-bc826117.system.entry.js → p-3da2b3cf.system.entry.js} +1 -1
  216. package/dist/mint-components/p-414b3b6c.system.entry.js +1 -0
  217. package/dist/mint-components/p-4185f6f5.system.entry.js +1 -0
  218. package/dist/mint-components/{p-1d27da33.js → p-4209cd94.js} +4 -4
  219. package/dist/mint-components/{p-43621f12.system.js → p-423821b9.system.js} +1 -1
  220. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-45d0b48a.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-45d6cde6.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
  223. package/dist/mint-components/{p-5291891c.entry.js → p-4c0b7768.entry.js} +3 -3
  224. package/dist/mint-components/{p-c763c0b2.js → p-4d060f15.js} +1 -1
  225. package/dist/mint-components/p-52241ba9.system.js +1 -0
  226. package/dist/mint-components/p-556753b2.js +42 -0
  227. package/dist/mint-components/p-55dcb6ff.system.js +1 -0
  228. package/dist/mint-components/{p-9d34f4f0.entry.js → p-56b37aeb.entry.js} +3 -3
  229. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-5a2fd8e0.system.entry.js} +1 -1
  230. package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
  231. package/dist/mint-components/{p-e0e7635a.js → p-611a30f0.js} +1 -1
  232. package/dist/mint-components/{p-9e0230c3.entry.js → p-64acc813.entry.js} +1 -1
  233. package/dist/mint-components/{p-76392386.entry.js → p-657b290b.entry.js} +1 -1
  234. package/dist/mint-components/{p-04348a9b.js → p-65a449de.js} +1 -1
  235. package/dist/mint-components/p-65de8fb2.js +1 -0
  236. package/dist/mint-components/{p-4671e644.entry.js → p-6a70d2d6.entry.js} +1 -1
  237. package/dist/mint-components/p-6eede6e5.system.entry.js +1 -0
  238. package/dist/mint-components/p-6fbfd683.js +1 -0
  239. package/dist/mint-components/{p-9ec008cb.system.entry.js → p-70886c65.system.entry.js} +1 -1
  240. package/dist/mint-components/{p-c3b37bbf.js → p-7507d72b.js} +1 -1
  241. package/dist/mint-components/{p-0527d90b.system.entry.js → p-78a831e0.system.entry.js} +1 -1
  242. package/dist/mint-components/p-78c1bd77.system.js +1 -0
  243. package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
  244. package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
  245. package/dist/mint-components/p-7c4c727c.system.entry.js +1 -0
  246. package/dist/mint-components/p-7e5f0292.system.entry.js +1 -0
  247. package/dist/mint-components/{p-ead27698.system.entry.js → p-816fb64f.system.entry.js} +1 -1
  248. package/dist/mint-components/p-832eba3a.entry.js +1 -0
  249. package/dist/mint-components/p-858a87ce.entry.js +1 -0
  250. package/dist/mint-components/p-89669879.system.js +1 -0
  251. package/dist/mint-components/p-8b7d2f44.entry.js +1 -0
  252. package/dist/mint-components/{p-b651706a.js → p-8ccb4267.js} +24 -24
  253. package/dist/mint-components/{p-a5a9aa07.entry.js → p-8d696fc9.entry.js} +11 -11
  254. package/dist/mint-components/{p-39af4acd.entry.js → p-8da20810.entry.js} +17 -17
  255. package/dist/mint-components/p-8defb972.system.entry.js +1 -0
  256. package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
  257. package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-721a89c6.entry.js → p-99a09fab.entry.js} +2 -2
  259. package/dist/mint-components/p-9cdaa099.entry.js +1 -0
  260. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-a1f0d8ba.system.entry.js} +1 -1
  261. package/dist/mint-components/{p-a45b03d2.entry.js → p-a2e1af83.entry.js} +1 -1
  262. package/dist/mint-components/p-a80c8f5c.system.js +1 -0
  263. package/dist/mint-components/{p-1f9a9b70.system.entry.js → p-a9487844.system.entry.js} +1 -1
  264. package/dist/mint-components/{p-51d53165.system.entry.js → p-ab7322f0.system.entry.js} +1 -1
  265. package/dist/mint-components/{p-4eae91a9.system.js → p-ab89b44a.system.js} +1 -1
  266. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-ac69b460.system.entry.js} +1 -1
  267. package/dist/mint-components/{p-f56348dc.system.entry.js → p-b14a77e8.system.entry.js} +1 -1
  268. package/dist/mint-components/p-b28df069.js +1 -0
  269. package/dist/mint-components/p-b4771476.entry.js +1 -0
  270. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-c293f586.system.entry.js} +1 -1
  271. package/dist/mint-components/p-c9ca8473.system.entry.js +1 -0
  272. package/dist/mint-components/p-cac64545.system.entry.js +1 -0
  273. package/dist/mint-components/{p-bee1e573.entry.js → p-cadb8dba.entry.js} +1 -1
  274. package/dist/mint-components/{p-6c928c7d.entry.js → p-cafebf8a.entry.js} +1 -1
  275. package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
  276. package/dist/mint-components/{p-84b25a46.entry.js → p-cdcd825e.entry.js} +1 -1
  277. package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
  278. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-d0c4f3bf.system.entry.js} +1 -1
  279. package/dist/mint-components/{p-94454880.entry.js → p-d2a925d5.entry.js} +1 -1
  280. package/dist/mint-components/p-d3293ac3.entry.js +11 -0
  281. package/dist/mint-components/{p-b1e8a802.entry.js → p-d39da925.entry.js} +1 -1
  282. package/dist/mint-components/p-d4138847.system.entry.js +1 -0
  283. package/dist/mint-components/p-d70bfe30.entry.js +8 -0
  284. package/dist/mint-components/p-d7b701a7.entry.js +1 -0
  285. package/dist/mint-components/{p-36f7caec.system.entry.js → p-d90ef1da.system.entry.js} +1 -1
  286. package/dist/mint-components/{p-ac51940e.system.js → p-dce3d296.system.js} +1 -1
  287. package/dist/mint-components/{p-68747d88.js → p-def70672.js} +1 -1
  288. package/dist/mint-components/p-e05ff098.system.js +1 -0
  289. package/dist/mint-components/p-e4c3817a.system.entry.js +1 -0
  290. package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
  291. package/dist/mint-components/p-e7797040.entry.js +1 -0
  292. package/dist/mint-components/{p-e93e5740.entry.js → p-e810da97.entry.js} +1 -1
  293. package/dist/mint-components/p-e82eec3c.entry.js +13 -0
  294. package/dist/mint-components/p-e8bfd924.system.entry.js +1 -0
  295. package/dist/mint-components/p-e8fcaaa2.entry.js +13 -0
  296. package/dist/mint-components/{p-1b861be5.entry.js → p-ee328054.entry.js} +1 -1
  297. package/dist/mint-components/p-ef49d744.entry.js +1 -0
  298. package/dist/mint-components/{p-22425c71.system.entry.js → p-f0fba496.system.entry.js} +1 -1
  299. package/dist/mint-components/{p-4babe350.system.js → p-f338ef55.system.js} +1 -1
  300. package/dist/mint-components/p-f5f0fc0e.entry.js +1 -0
  301. package/dist/mint-components/{p-65e2c043.system.js → p-faf019cf.system.js} +1 -1
  302. package/dist/mint-components/p-fcb224ab.js +25 -0
  303. package/dist/mint-components/{p-fc422446.system.js → p-fda3d0ca.system.js} +22 -22
  304. package/dist/mint-components/p-fe8e1071.entry.js +1 -0
  305. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
  306. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
  307. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +2 -3
  308. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -10
  309. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +1 -0
  310. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
  311. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
  312. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
  313. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +7 -0
  314. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -0
  315. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
  316. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -16
  317. package/dist/types/components.d.ts +82 -52
  318. package/docs/docs.docx +0 -0
  319. package/docs/raisins.json +1 -1
  320. package/grapesjs/grapesjs.js +1 -1
  321. package/package.json +1 -1
  322. package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
  323. package/dist/esm/useEmailVerification-7135732c.js +0 -72
  324. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
  325. package/dist/esm-es5/global-6306a9b8.js +0 -285
  326. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  327. package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
  328. package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
  329. package/dist/esm-es5/useReferralTable-f6ffa103.js +0 -1
  330. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  331. package/dist/mint-components/p-012daf3c.entry.js +0 -1
  332. package/dist/mint-components/p-0893073b.entry.js +0 -1
  333. package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
  334. package/dist/mint-components/p-117b4705.system.js +0 -1
  335. package/dist/mint-components/p-11d1b212.js +0 -1
  336. package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
  337. package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
  338. package/dist/mint-components/p-23fdd44e.entry.js +0 -1
  339. package/dist/mint-components/p-2868f475.entry.js +0 -1
  340. package/dist/mint-components/p-36e9296e.system.entry.js +0 -1
  341. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  342. package/dist/mint-components/p-39397731.entry.js +0 -1
  343. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  344. package/dist/mint-components/p-663303b7.entry.js +0 -8
  345. package/dist/mint-components/p-66a04cca.system.entry.js +0 -1
  346. package/dist/mint-components/p-7dd1ff31.system.entry.js +0 -1
  347. package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
  348. package/dist/mint-components/p-8a337864.js +0 -7
  349. package/dist/mint-components/p-8d554a89.system.js +0 -1
  350. package/dist/mint-components/p-93576222.system.js +0 -1
  351. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  352. package/dist/mint-components/p-a02afa72.system.js +0 -1
  353. package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
  354. package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
  355. package/dist/mint-components/p-bdd6bb13.js +0 -1
  356. package/dist/mint-components/p-c8878e79.entry.js +0 -1
  357. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  358. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  359. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  360. package/dist/mint-components/p-cb433855.system.entry.js +0 -1
  361. package/dist/mint-components/p-d35d8c06.entry.js +0 -11
  362. package/dist/mint-components/p-d468925f.entry.js +0 -1
  363. package/dist/mint-components/p-def516b8.system.js +0 -1
  364. package/dist/mint-components/p-e12d3414.system.entry.js +0 -1
  365. package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
  366. package/dist/mint-components/p-f36e33ff.entry.js +0 -13
  367. package/dist/mint-components/p-f450654b.system.entry.js +0 -1
  368. package/dist/mint-components/p-f4cbbe47.entry.js +0 -1
  369. package/dist/mint-components/p-f531a5c9.system.entry.js +0 -1
  370. package/dist/mint-components/p-f655a7df.js +0 -1
  371. package/dist/mint-components/p-fd21ae8f.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-fc422446.system.js","./p-93576222.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-e8dde8f4.system.js","./p-4eae91a9.system.js","./p-def516b8.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-8d554a89.system.js","./p-6333265f.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,m,_,E,T,g,y,N;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.n;s=e.j;l=e.u;o=e.f},function(e){d=e.i},function(e){u=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){v=e.G},function(e){p=e.a;h=e.u},function(e){m=e.u},function(e){_=e.l},function(e){E=e.g},function(e){T=e.u;g=e.t},function(e){y=e.l},function(e){N=e.T}],execute:function(){var D=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return b()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var P=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var x=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var A=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var b=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:A[Math.floor(Math.random()*A.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?_.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:_.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:P[Math.floor(Math.random()*P.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},E()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:P[Math.floor(Math.random()*P.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:P[Math.floor(Math.random()*P.length)],type:"CREDIT",value:1},depth:1}]}}};var I=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(R,null);var t=r(w,null);var n=u()?S(this,e,t):T(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;p([this.showReferrer,this.perPage]);return r(v,{states:a,data:i,callbacks:s,elements:l})};return e}());function R(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function w(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function S(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=h();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||D(e.perPage)}),[e.perPage]);var f=m();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,m,_;var E=this;return __generator(this,(function(T){switch(T.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(E,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,g(e,(function(){return e.renderLabel(t)}))]}return[2,g(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(E,void 0,void 0,(function(){return __generator(this,(function(t){return[2,g(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=T.sent();T.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(E,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,g(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([T.sent()])).filter((function(e){return e}));T.label=4;case 4:v=p;i({rows:v});_=o;if(!_)return[3,6];return[4,Promise.all(o)];case 5:_=T.sent();T.label=6;case 6:m=_;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,d]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){p([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var O=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(y(this.locale)).toLocaleString(_.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){p([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var G=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(h==="NOT_YET_DUE"||h==="TRANSFERRED"){return"PAYOUT_APPROVED"}else if(h==="OVERDUE")return"PAYOUT_FAILED";else if(h==="REVERSED")return"PAYOUT_CANCELLED";if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var m=t.publisher.currentTaxDocument.status;if(m==="INACTIVE")return"PENDING_NEW_TAX_FORM";if(m==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("PAYOUT_CONFIGURATION_MISSING")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return _.DateTime.fromMillis(t).setLocale(y(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u;var c=s(t,e.taxConnection);var f=l(c);var v=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:c});var p=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:c});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(N,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},c==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:f,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:v,date:o(t.dateScheduledFor)})):r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:f,pill:true},v),t.dateExpires&&c==="AVAILABLE"&&r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,c==="PENDING_REVIEW"&&((n=t.referral)===null||n===void 0?void 0:n.dateModerated)&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PAYOUT_APPROVED"&&r("div",null,r(N,{type:"p"},p)),c==="PAYOUT_FAILED"&&r("div",null,r(N,{type:"p"},p)),c==="PAYOUT_CANCELLED"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_TAX_REVIEW"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_NEW_TAX_FORM"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_TAX_SUBMISSION"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_PARTNER_CREATION"&&r("div",null,r(N,{type:"p"},p)),c==="DENIED"&&((u=t.referral)===null||u===void 0?void 0:u.dateModerated)&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(N,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateGiven).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="EXPIRED"&&t.dateExpires&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="CANCELLED"&&t.dateCancelled&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateCancelled).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PENDING"&&t.dateScheduledFor&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateScheduledFor).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED))))," ",c==="AVAILABLE"&&t.dateExpires&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){p([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var q=f(k);var V=q.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};return r("div",null,r("style",{type:"text/css"},V),r("sl-badge",{pill:true,type:t(this.fraudStatus),class:q.classes.Badge},this.statusText),this.statusSubText?r("p",{class:q.classes.SubText},this.statusSubText):null)};return e}());var X=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){p([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var j=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){p([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as i}from"./p-64c3217a.js";import{k as a,m as t,f as s,n}from"./p-fd2c5407.js";import"./p-d83b0cf3.js";import{h as r,u as o,K as l,x as c,b as d,i as v}from"./p-bdd6bb13.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-5d0c9424.js";import{P as m}from"./p-e0e7635a.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[b,{loading:y,errors:w}]=r(),[M,{data:k,loading:j}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,x=new URLSearchParams(c.location.search),E=x.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:x.toString()&&"?"+x.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:y,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:j,isVerified:!!(null===(p=null==k?void 0:k.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:E?{nextPage:E}:null,redirectPath:e.redirectPath},t=await b(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-93576222.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-9dcfa187.system.js"],(function(e){"use strict";var t,n,i,r,s,a,o,c,u,l,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.n},function(e){r=e.d;s=e.K;a=e.E;o=e.a;c=e.i},function(e){u=e.c},function(){},function(e){l=e.g},function(e){f=e.L}],execute:function(){var d=r.gql(__makeTemplateObject(["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"],["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"]));function m(e){var t,n;var i=s();var r=a(d,{},!i),c=r.loading,u=r.data;var l=function(){o(undefined)};var f=(t=e.userIdentificationText)===null||t===void 0?void 0:t.replace("{email}",(n=u===null||u===void 0?void 0:u.viewer)===null||n===void 0?void 0:n.email);return __assign({loading:c,onSwitchClick:l,filledInEmailText:f},e)}var h=e("sqm_logout_current_user",function(){function e(e){t(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?";this.emailErrorText="Error fetching email";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?v(this):m(l(this));var t={userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText};return n(f,Object.assign({},e,t))};return e}());function v(e){return u({onSwitchClick:function(){return o(undefined)},filledInEmailText:"john@example.com",switchUserText:e.switchUserText,emailErrorText:e.emailErrorText,loading:false},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- import{y as t}from"./p-fd2c5407.js";import{T as r}from"./p-bdd6bb13.js";const o="sq:registration-form-state";function s(o){const s=r(),[e,i]=t(s,"sq:registration-form-state",o);return{registrationFormState:e,setRegistrationFormState:i}}export{o as R,s as u}
@@ -1 +0,0 @@
1
- import{h as t,r as s}from"./p-64c3217a.js";import{i,k as n,n as e}from"./p-fd2c5407.js";import{i as r}from"./p-bdd6bb13.js";import{c as l}from"./p-c1086930.js";import{E as a}from"./p-02be1a88.js";import{c as o}from"./p-cef45012.js";import{g as u}from"./p-9ec99ced.js";import{R as c}from"./p-f655a7df.js";var d="(\\d.*)",h="([a-zA-Z].*)",p="([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",v="([\\s].*)";function m(t,s){if(s&&s>1){const i=parseInt(s,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function(t){return this.positive=!1,!t||m.call(this,t)},has:function(t){return this.positive=!0,!t||m.call(this,t)},is:function(){return this.positive=!0,!0},min:function(t){return this.password.length>=t},max:function(t){return this.password.length<=t},digits:function(t){return m.call(this,d,t)},letters:function(t){return m.call(this,h,t)},uppercase:function(t){if(t&&t>1){let s=0,i=0;for(;i<t&&s<this.password.length;){const t=this.password.charAt(s);t!==t.toLowerCase()&&i++,s++}return i===t===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function(t){if(t&&t>1){let s=0,i=0;for(;i<t&&s<this.password.length;){const t=this.password.charAt(s);t!==t.toUpperCase()&&i++,s++}return i===t===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function(t){return m.call(this,p,t)},spaces:function(t){return m.call(this,v,t)},oneOf:function(t){return t.indexOf(this.password)>=0===this.positive}},g="Length should be a valid positive number";function b(t){const s=Number(t);if(isNaN(s)||!Number.isInteger(s)||s<1)throw new Error(g)}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,s){return this.properties.push({method:t,arguments:s}),this}const x=(new class{constructor(){this.properties=[]}validate(t,s){return this.list=Boolean(s&&s.list),this.password=String(t),this.positive=!0,this.list?this.properties.reduce(((t,s)=>w.call(this,s)?t:t.concat(s.method)),[]):this.properties.every(w.bind(this))}letters(t){return t&&b(t),y.call(this,"letters",arguments)}digits(t){return t&&b(t),y.call(this,"digits",arguments)}symbols(t){return t&&b(t),y.call(this,"symbols",arguments)}min(t){return b(t),y.call(this,"min",arguments)}max(t){return b(t),y.call(this,"max",arguments)}lowercase(t){return t&&b(t),y.call(this,"lowercase",arguments)}uppercase(t){return t&&b(t),y.call(this,"uppercase",arguments)}spaces(t){return t&&b(t),y.call(this,"spaces",arguments)}has(){return y.call(this,"has",arguments)}not(){return y.call(this,"not",arguments)}is(){return y.call(this,"is",arguments)}oneOf(){return y.call(this,"oneOf",arguments)}}).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/),C=(t,s)=>{const i=x.validate(t,{list:!0});return E(i,t,s)},L=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},t("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"})),j=()=>t("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"})),I={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},k=o({Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:{...I,color:"var(--sl-color-success-600)"},ValidationItemInvalid:{...I}}),V=k.toString(),E=(s,i,n)=>{const e={min:n.minErrorText,uppercase:n.uppercaseErrorText,lowercase:n.lowercaseErrorText,has:n.hasErrorText};return!s.length&&i?t("div",{class:k.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},t("style",{type:"text/css"},V),t(L,null)," ",t("span",null,n.meetsRequirementsText)):t("div",{class:k.classes.Base},t("style",{type:"text/css"},V),n.doesNotMeetRequirementsText,t("ul",{class:k.classes.ValidationList},Object.keys(e).map((i=>s.includes(i)?t("li",{class:k.classes.ValidationItemInvalid},t(j,null)," ",t("span",null,e[i])):t("li",{class:k.classes.ValidationItemValid},t(L,null)," ",t("span",null,e[i]))))))},M=o({InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:a}),S=M.toString();function Z(s){var i,n,e,r,l,a,o,u,c,d;const{states:h,callbacks:p}=s;return t("div",{class:M.classes.InputContainer,part:"sqm-base"},t("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",S),t("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/password",label:h.content.fieldLabel||"Password",required:!0,disabled:(null===(i=h.registrationFormState)||void 0===i?void 0:i.loading)||(null===(n=h.registrationFormState)||void 0===n?void 0:n.disabled),validationError:({value:t})=>{if(!t)return"Cannot be empty"}},(null===(r=null===(e=h.registrationFormState)||void 0===e?void 0:e.initialData)||void 0===r?void 0:r.password)?{value:null===(a=null===(l=h.registrationFormState)||void 0===l?void 0:l.initialData)||void 0===a?void 0:a.password}:{},(null===(u=null===(o=h.registrationFormState)||void 0===o?void 0:o.validationErrors)||void 0===u?void 0:u.password)?{class:M.classes.ErrorStyle,helpText:(null===(d=null===(c=h.registrationFormState)||void 0===c?void 0:c.validationErrors)||void 0===d?void 0:d.password)||"Cannot be empty"}:[],{onInput:t=>h.enableValidation&&p.onInput(t)})),h.dynamicValidation)}const q=class{constructor(t){s(this,t),this.ignored=!0,this.fieldLabel="Password",this.disableValidation=!1,this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",e(this)}disconnectedCallback(){}render(){const{states:s,callbacks:e}=r()?function(t){var s,i,e,r,a,o,u;const[c,d]=n(""),[h,p]=n("");if(t.demoData&&h!=(null===(s=null==t?void 0:t.demoData)||void 0===s?void 0:s.initValue)){const s=C((null===(i=null==t?void 0:t.demoData)||void 0===i?void 0:i.initValue)||"",t);d(""===(null===(e=null==t?void 0:t.demoData)||void 0===e?void 0:e.initValue)?"":s),p(null===(r=null==t?void 0:t.demoData)||void 0===r?void 0:r.initValue)}return l({states:{enableValidation:!t.disableValidation,dynamicValidation:c,registrationFormState:(null===(o=null===(a=null==t?void 0:t.demoData)||void 0===a?void 0:a.states)||void 0===o?void 0:o.registrationFormState)||{},content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:function(s){const i=C(s.target.value,t);d(i)}}},(null===(u=null==t?void 0:t.demoData)||void 0===u?void 0:u.states)||{},{arrayMerge:(t,s)=>s})}(u(this)):function(t){const s=i(c),[e,r]=n("");return{states:{enableValidation:!t.disableValidation,dynamicValidation:e,registrationFormState:s,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:function(s){const i=C(s.target.value,t);r(i)}}}}(u(this));return t(Z,{states:s,callbacks:e})}};export{q as sqm_password_field}