@saasquatch/mint-components 1.11.0 → 1.11.1-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 (306) hide show
  1. package/dist/cjs/{ShadowViewAddon-c3e91cee.js → ShadowViewAddon-2c6026c3.js} +137 -212
  2. package/dist/cjs/copy-text-view-a22ad7e7.js +173 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  6. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +3 -3
  7. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +6 -5
  8. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  9. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  11. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +2 -2
  12. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  13. package/dist/cjs/sqm-pagination_3.cjs.entry.js +316 -0
  14. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  16. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  21. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -3
  24. package/dist/cjs/sqm-stencilbook.cjs.entry.js +241 -84
  25. package/dist/cjs/sqm-tabs.cjs.entry.js +1 -1
  26. package/dist/collection/collection-manifest.json +10 -0
  27. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  28. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  29. package/dist/collection/components/sqm-pagination/Pagination.stories.js +12 -0
  30. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +30 -0
  31. package/dist/collection/components/sqm-pagination/sqm-pagination.js +85 -0
  32. package/dist/collection/components/sqm-pagination/usePagination.js +8 -0
  33. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +20 -0
  34. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +60 -0
  35. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +315 -0
  36. package/dist/collection/components/sqm-referral-code/useReferralCode.js +51 -0
  37. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +35 -0
  38. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +59 -0
  39. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +99 -0
  40. package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +75 -0
  41. package/dist/collection/components/sqm-share-button/useShareButton.js +15 -16
  42. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  43. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
  44. package/dist/collection/components/sqm-share-link/useShareLink.js +5 -3
  45. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
  46. package/dist/collection/components/views/copy-text-view.js +16 -2
  47. package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-5bb2b69a.js} +140 -214
  48. package/dist/esm/copy-text-view-bf55abeb.js +168 -0
  49. package/dist/esm/{global-04c7d3b5.js → global-b89b6edc.js} +1 -1
  50. package/dist/esm/{index.module-def4aec5.js → index.module-f122af7b.js} +1 -1
  51. package/dist/esm/loader.js +3 -3
  52. package/dist/esm/mint-components.js +3 -3
  53. package/dist/esm/{re-render-12fd274a.js → re-render-c64289f3.js} +1 -1
  54. package/dist/esm/sqm-asset-card.entry.js +2 -2
  55. package/dist/esm/sqm-banking-info-form_16.entry.js +9 -9
  56. package/dist/esm/sqm-big-stat_38.entry.js +10 -9
  57. package/dist/esm/sqm-close-button.entry.js +3 -3
  58. package/dist/esm/sqm-context-router.entry.js +1 -1
  59. package/dist/esm/sqm-empty_4.entry.js +3 -3
  60. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  61. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  62. package/dist/esm/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-09cc28d6.js} +1 -1
  63. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  64. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  65. package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-14114804.js} +2 -2
  66. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  67. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  68. package/dist/esm/sqm-pagination_3.entry.js +310 -0
  69. package/dist/esm/sqm-password-field.entry.js +4 -4
  70. package/dist/esm/sqm-popup-container.entry.js +1 -1
  71. package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-ced567c9.js} +2 -2
  72. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  73. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  74. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  75. package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-d72dd5ac.js} +1 -1
  76. package/dist/esm/sqm-portal-profile.entry.js +6 -6
  77. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  78. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  79. package/dist/esm/sqm-portal-reset-password.entry.js +4 -4
  80. package/dist/esm/sqm-portal-verify-email.entry.js +4 -4
  81. package/dist/esm/sqm-referral-table_11.entry.js +8 -8
  82. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  83. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  84. package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
  85. package/dist/esm/sqm-stencilbook.entry.js +234 -77
  86. package/dist/esm/sqm-tab.entry.js +2 -2
  87. package/dist/esm/sqm-tabs.entry.js +3 -3
  88. package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-37daf533.js} +1 -1
  89. package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-9d4cb797.js} +2 -2
  90. package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-42f99ea2.js} +3 -3
  91. package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-53c71782.js} +1 -1
  92. package/dist/esm/{utilities-3f5bba22.js → utilities-18d10876.js} +1 -1
  93. package/dist/esm-es5/{GenericTableView-d59d8ab4.js → GenericTableView-bf154727.js} +1 -1
  94. package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +1 -0
  95. package/dist/esm-es5/copy-text-view-bf55abeb.js +1 -0
  96. package/dist/esm-es5/{email-registration-view-a89a88bf.js → email-registration-view-12793040.js} +1 -1
  97. package/dist/esm-es5/{global-04c7d3b5.js → global-b89b6edc.js} +1 -1
  98. package/dist/esm-es5/{index.module-def4aec5.js → index.module-f122af7b.js} +1 -1
  99. package/dist/esm-es5/loader.js +1 -1
  100. package/dist/esm-es5/mint-components.js +1 -1
  101. package/dist/esm-es5/{re-render-12fd274a.js → re-render-c64289f3.js} +1 -1
  102. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  103. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  104. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  105. package/dist/esm-es5/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-b24c708b.js} +1 -1
  106. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  107. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  108. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  109. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  110. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  111. package/dist/esm-es5/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-09cc28d6.js} +1 -1
  112. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  113. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  114. package/dist/esm-es5/sqm-navigation-sidebar-item-view-14114804.js +1 -0
  115. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  116. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  117. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -0
  118. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  119. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  120. package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-ced567c9.js} +1 -1
  121. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  122. package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-95cd454f.js} +1 -1
  123. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  124. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  125. package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-d72dd5ac.js} +1 -1
  126. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  127. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  129. package/dist/esm-es5/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-f1454d43.js} +1 -1
  130. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  131. package/dist/esm-es5/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-3739f523.js} +1 -1
  132. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  133. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  134. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  135. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  136. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  137. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  138. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  139. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  140. package/dist/esm-es5/{useChildElements-32e1bda1.js → useChildElements-37daf533.js} +1 -1
  141. package/dist/esm-es5/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-9d4cb797.js} +1 -1
  142. package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-42f99ea2.js} +1 -1
  143. package/dist/esm-es5/useRegistrationFormState-53c71782.js +1 -0
  144. package/dist/esm-es5/{utilities-3f5bba22.js → utilities-18d10876.js} +1 -1
  145. package/dist/mint-components/mint-components.esm.js +1 -1
  146. package/dist/mint-components/mint-components.js +1 -1
  147. package/dist/mint-components/{p-a8f7cb95.js → p-00be5090.js} +1 -1
  148. package/dist/mint-components/{p-7049e9b0.entry.js → p-01434e4a.entry.js} +1 -1
  149. package/dist/mint-components/p-0161f5da.entry.js +13 -0
  150. package/dist/mint-components/{p-c5d2e4ba.js → p-02f6cda4.js} +1 -1
  151. package/dist/mint-components/{p-4e48267b.system.js → p-03a647c2.system.js} +1 -1
  152. package/dist/mint-components/{p-509e29e6.js → p-0806343b.js} +1 -1
  153. package/dist/mint-components/{p-3d4656bb.system.js → p-0f028514.system.js} +1 -1
  154. package/dist/mint-components/{p-b370fca8.system.js → p-1099290c.system.js} +1 -1
  155. package/dist/mint-components/{p-d8d2de11.entry.js → p-110dddfe.entry.js} +1 -1
  156. package/dist/mint-components/{p-137ea86e.entry.js → p-12c56ba6.entry.js} +1 -1
  157. package/dist/mint-components/{p-5cac90e8.system.entry.js → p-14dac608.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-d49e2f7a.js → p-15dee492.js} +1 -1
  159. package/dist/mint-components/{p-c5577dd7.system.js → p-18a19cb5.system.js} +1 -1
  160. package/dist/mint-components/{p-711ba77e.system.entry.js → p-18a7f543.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-a9050eb0.entry.js → p-1b1d10e5.entry.js} +1 -1
  162. package/dist/mint-components/{p-3ec16698.entry.js → p-1c6e4a5f.entry.js} +2 -2
  163. package/dist/mint-components/{p-32d1d162.entry.js → p-1c710e16.entry.js} +1 -1
  164. package/dist/mint-components/{p-01cfff8a.system.entry.js → p-1ce4fa30.system.entry.js} +1 -1
  165. package/dist/mint-components/{p-eaada4da.js → p-1df19ea2.js} +1 -1
  166. package/dist/mint-components/{p-02424350.system.js → p-21d4f6ce.system.js} +1 -1
  167. package/dist/mint-components/{p-733825fa.system.entry.js → p-22de9f73.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-b4c52c5a.entry.js → p-246a2827.entry.js} +2 -2
  169. package/dist/mint-components/{p-8e907ac7.system.entry.js → p-26306ac4.system.entry.js} +1 -1
  170. package/dist/mint-components/p-2e16db11.entry.js +1 -0
  171. package/dist/mint-components/{p-1b9e6fc6.js → p-32cf8417.js} +1 -1
  172. package/dist/mint-components/{p-ce621bcc.js → p-3373d84e.js} +1 -1
  173. package/dist/mint-components/{p-56f14840.entry.js → p-3cc5474d.entry.js} +1 -1
  174. package/dist/mint-components/{p-7f088154.entry.js → p-41499327.entry.js} +1 -1
  175. package/dist/mint-components/{p-44787d6e.system.js → p-43a990b6.system.js} +1 -1
  176. package/dist/mint-components/{p-59fe4ad1.system.js → p-46ca288c.system.js} +1 -1
  177. package/dist/mint-components/{p-9f0629ba.system.entry.js → p-476182e7.system.entry.js} +1 -1
  178. package/dist/mint-components/p-4856b234.system.entry.js +1 -0
  179. package/dist/mint-components/{p-ec41d6a4.entry.js → p-48b7d703.entry.js} +6 -6
  180. package/dist/mint-components/p-494e407e.entry.js +1 -0
  181. package/dist/mint-components/{p-a51533cb.system.js → p-523ed056.system.js} +1 -1
  182. package/dist/mint-components/{p-eba44835.system.entry.js → p-53ff8bd0.system.entry.js} +1 -1
  183. package/dist/mint-components/{p-0d8c53ac.system.js → p-55588b46.system.js} +1 -1
  184. package/dist/mint-components/{p-3ed71bef.system.js → p-59c141a2.system.js} +1 -1
  185. package/dist/mint-components/p-5b7e2d53.entry.js +1 -0
  186. package/dist/mint-components/p-5c845bc2.system.entry.js +1 -0
  187. package/dist/mint-components/p-5d37482d.entry.js +1 -0
  188. package/dist/mint-components/p-5fc8d87c.system.js +1 -0
  189. package/dist/mint-components/p-646d302a.system.js +1 -0
  190. package/dist/mint-components/p-6628bc0e.system.js +1 -0
  191. package/dist/mint-components/{p-4502ed11.system.entry.js → p-67846dce.system.entry.js} +1 -1
  192. package/dist/mint-components/p-6b0e6a6c.js +1 -0
  193. package/dist/mint-components/{p-6cef104b.entry.js → p-6e62f207.entry.js} +1 -1
  194. package/dist/mint-components/{p-770368bc.system.js → p-6e7e8af6.system.js} +1 -1
  195. package/dist/mint-components/{p-3f385f47.entry.js → p-73c6b26d.entry.js} +9 -9
  196. package/dist/mint-components/{p-c84659a3.system.js → p-73decce7.system.js} +1 -1
  197. package/dist/mint-components/{p-58ef25d3.system.entry.js → p-7962ab58.system.entry.js} +1 -1
  198. package/dist/mint-components/{p-4edde470.entry.js → p-798ed3a2.entry.js} +1 -1
  199. package/dist/mint-components/{p-41a11a7f.js → p-8077e9c6.js} +1 -1
  200. package/dist/mint-components/{p-cf690d55.system.entry.js → p-82e09b8d.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-fb93c962.js → p-855ae1b5.js} +1 -1
  202. package/dist/mint-components/p-89a760ea.js +1 -0
  203. package/dist/mint-components/{p-af062c8f.system.entry.js → p-8c97bfb1.system.entry.js} +1 -1
  204. package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-9288cca6.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-1c857edb.entry.js → p-942d1c22.entry.js} +2 -2
  206. package/dist/mint-components/{p-86990110.entry.js → p-96cb9c17.entry.js} +1 -1
  207. package/dist/mint-components/{p-2ee2ebba.js → p-991c9787.js} +2 -2
  208. package/dist/mint-components/{p-8704937c.js → p-9c3d78e9.js} +1 -1
  209. package/dist/mint-components/{p-674a64fe.system.js → p-9deac406.system.js} +1 -1
  210. package/dist/mint-components/{p-1dd69917.system.entry.js → p-a1150633.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-b5861974.system.entry.js → p-a474b0ec.system.entry.js} +1 -1
  212. package/dist/mint-components/{p-9c310991.system.entry.js → p-acc93caa.system.entry.js} +1 -1
  213. package/dist/mint-components/{p-9df2fe24.entry.js → p-b0ce005d.entry.js} +2 -2
  214. package/dist/mint-components/{p-e5a0c50e.entry.js → p-b334bde8.entry.js} +2 -2
  215. package/dist/mint-components/p-b4eb9c46.entry.js +11 -0
  216. package/dist/mint-components/p-b5176703.entry.js +1 -0
  217. package/dist/mint-components/p-b71c0e2d.system.entry.js +1 -0
  218. package/dist/mint-components/{p-7d5e0645.system.js → p-bb6f6681.system.js} +1 -1
  219. package/dist/mint-components/p-bd4e9c2b.js +1 -0
  220. package/dist/mint-components/{p-ed095674.system.js → p-bf834367.system.js} +1 -1
  221. package/dist/mint-components/{p-07f675ab.system.entry.js → p-c1ba2ad0.system.entry.js} +1 -1
  222. package/dist/mint-components/p-c37137cd.js +2 -0
  223. package/dist/mint-components/{p-be4b748a.system.entry.js → p-c39f9dc1.system.entry.js} +1 -1
  224. package/dist/mint-components/p-c7ce2c1e.system.js +1 -0
  225. package/dist/mint-components/p-ca17d998.entry.js +1 -0
  226. package/dist/mint-components/{p-e8dde8f4.system.js → p-ce746af8.system.js} +1 -1
  227. package/dist/mint-components/{p-2dd67762.entry.js → p-cfbe2f86.entry.js} +1 -1
  228. package/dist/mint-components/{p-3223ba7b.entry.js → p-d3d281ff.entry.js} +1 -1
  229. package/dist/mint-components/p-d666b326.js +1 -0
  230. package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-d68ed4a6.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-4ea58025.system.entry.js → p-daba8cd2.system.entry.js} +1 -1
  232. package/dist/mint-components/p-dc41ff27.entry.js +1 -0
  233. package/dist/mint-components/{p-afd366ae.system.entry.js → p-de2a8fae.system.entry.js} +1 -1
  234. package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e2bb72eb.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-4d233cd4.js → p-e41cb11f.js} +1 -1
  236. package/dist/mint-components/{p-bb00db59.js → p-ea88142c.js} +1 -1
  237. package/dist/mint-components/p-eb4e9efb.system.entry.js +1 -0
  238. package/dist/mint-components/{p-b6fc1227.system.entry.js → p-ec8a9e91.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-5b333fa8.system.entry.js → p-ecefeaa9.system.entry.js} +1 -1
  240. package/dist/mint-components/{p-c8610d0c.js → p-ed161025.js} +1 -1
  241. package/dist/mint-components/p-f1ec1180.entry.js +1 -0
  242. package/dist/mint-components/{p-4df8f1d2.system.js → p-f44d88fa.system.js} +1 -1
  243. package/dist/mint-components/{p-35d84041.system.entry.js → p-f52c3aec.system.entry.js} +1 -1
  244. package/dist/mint-components/{p-aad11a68.entry.js → p-fae82751.entry.js} +1 -1
  245. package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-fb2c0ce4.system.entry.js} +1 -1
  246. package/dist/mint-components/{p-10685090.js → p-fec0ac31.js} +24 -24
  247. package/dist/mint-components/{p-7731f793.system.entry.js → p-ff41c804.system.entry.js} +1 -1
  248. package/dist/types/components/sqm-pagination/Pagination.stories.d.ts +5 -0
  249. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +7 -0
  250. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +17 -0
  251. package/dist/types/components/sqm-pagination/usePagination.d.ts +15 -0
  252. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +1 -0
  253. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +18 -0
  254. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +70 -0
  255. package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +9 -0
  256. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +9 -0
  257. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +10 -0
  258. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +21 -0
  259. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +59 -0
  260. package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -0
  261. package/dist/types/components/views/copy-text-view.d.ts +2 -0
  262. package/dist/types/components.d.ts +170 -0
  263. package/docs/docs.docx +0 -0
  264. package/docs/raisins.json +1 -1
  265. package/grapesjs/grapesjs.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +0 -1
  268. package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
  269. package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
  270. package/dist/mint-components/p-021a735d.entry.js +0 -1
  271. package/dist/mint-components/p-03494732.entry.js +0 -1
  272. package/dist/mint-components/p-0b9fa97f.js +0 -1
  273. package/dist/mint-components/p-10e89d0a.entry.js +0 -1
  274. package/dist/mint-components/p-51f517a2.js +0 -1
  275. package/dist/mint-components/p-5be235f9.entry.js +0 -1
  276. package/dist/mint-components/p-5f1c4160.system.entry.js +0 -1
  277. package/dist/mint-components/p-61eab172.js +0 -1
  278. package/dist/mint-components/p-76b2506e.system.entry.js +0 -1
  279. package/dist/mint-components/p-79191f88.entry.js +0 -1
  280. package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
  281. package/dist/mint-components/p-91669312.entry.js +0 -1
  282. package/dist/mint-components/p-95771f79.system.js +0 -1
  283. package/dist/mint-components/p-a6a7dcaa.js +0 -1
  284. package/dist/mint-components/p-ce5afa40.entry.js +0 -1
  285. package/dist/mint-components/p-d495896f.system.entry.js +0 -1
  286. package/dist/mint-components/p-dd7ee007.system.js +0 -1
  287. package/dist/mint-components/p-e3735866.entry.js +0 -11
  288. package/dist/mint-components/p-ed17e637.system.js +0 -1
  289. package/dist/types/global/android.d.ts +0 -7
  290. package/dist/types/global/demo.d.ts +0 -2
  291. package/dist/types/stories/features.d.ts +0 -4
  292. package/dist/types/stories/templates.d.ts +0 -4
  293. package/dist/cjs/{GenericTableView-80d7642e.js → GenericTableView-a3f48e15.js} +1 -1
  294. package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-4c5d9379.js} +1 -1
  295. package/dist/cjs/{sqm-close-button-view-fd6e8f60.js → sqm-close-button-view-217239b7.js} +1 -1
  296. package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-4e90b6f5.js} +1 -1
  297. package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-bff9783d.js} +1 -1
  298. package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-3cd69fe7.js} +1 -1
  299. package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-34771d2c.js} +1 -1
  300. package/dist/cjs/{sqm-portal-verify-email-view-7ffcc0d4.js → sqm-portal-verify-email-view-c8f91506.js} +1 -1
  301. package/dist/esm/{GenericTableView-d59d8ab4.js → GenericTableView-bf154727.js} +1 -1
  302. package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-12793040.js} +1 -1
  303. package/dist/esm/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-b24c708b.js} +1 -1
  304. package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-95cd454f.js} +1 -1
  305. package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-f1454d43.js} +1 -1
  306. package/dist/esm/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-3739f523.js} +1 -1
@@ -1,16 +1,17 @@
1
1
  import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
2
2
  import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
4
- import { d as dist, H, Q, y as yn, f as $e, B, a as getEnvironmentSDK, L } from './index.module-def4aec5.js';
3
+ import { i as intl } from './global-b89b6edc.js';
4
+ import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-f122af7b.js';
5
+ import { l as luxonLocale } from './utils-334c1e34.js';
6
+ import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
7
+ import { a as REFERRAL_CODES_NAMESPACE, C as CopyTextView } from './copy-text-view-bf55abeb.js';
5
8
  import { c as cjs } from './cjs-bdfb4486.js';
6
9
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
7
- import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
- import { u as useChildElements } from './useChildElements-32e1bda1.js';
10
+ import { u as useChildElements } from './useChildElements-37daf533.js';
9
11
  import { l as luxon } from './luxon-7600be8d.js';
10
- import { l as luxonLocale } from './utils-334c1e34.js';
11
12
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
12
13
  import { p as pathToRegexp } from './index-ffa26b43.js';
13
- import { a as isValidColor, b as isMobile } from './utilities-3f5bba22.js';
14
+ import { a as isValidColor, b as isMobile } from './utilities-18d10876.js';
14
15
  import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-6c582684.js';
15
16
 
16
17
  const medium = {
@@ -216,80 +217,6 @@ function LeaderboardView(props) {
216
217
  h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
217
218
  }
218
219
 
219
- const style$2 = {
220
- HostBlock: HostBlock,
221
- inputStyle: {
222
- "&::part(input)": { textOverflow: "ellipsis", width: "100%" },
223
- "&::part(base)": { cursor: "pointer", overflow: "visible" },
224
- width: "100%",
225
- },
226
- inputErrorStyle: {
227
- "&::part(base)": {
228
- border: "2px solid red",
229
- },
230
- },
231
- containerStyle: {
232
- display: "flex",
233
- alignItems: "center",
234
- gap: "var(--sl-spacing-x-small)",
235
- width: "100%",
236
- },
237
- errorTextStyle: {
238
- margin: "0",
239
- color: "var(--sl-color-danger-500)",
240
- },
241
- };
242
- const vanillaStyle$1 = `
243
- :host{
244
- display: block;
245
- width: 100%;
246
- }
247
- `;
248
- const textAlignStyle = {
249
- right: `
250
- sl-input::part(input){
251
- text-align: right;
252
- }`,
253
- center: `
254
- sl-input::part(input){
255
- text-align: center;
256
- }`,
257
- left: ``,
258
- };
259
- const disabledStyles = `
260
- sl-input::part(input){
261
- cursor: default;
262
- }
263
- `;
264
- const sheet$2 = createStyleSheet(style$2);
265
- const styleString$2 = sheet$2.toString();
266
- function CopyTextView(props) {
267
- const { buttonStyle = "icon" } = props;
268
- const error = !props.loading && props.error;
269
- const inputText = error ? props.inputPlaceholderText : props.copyString;
270
- const disabled = error || props.loading || props.disabled;
271
- const tooltipPlacement = props.buttonStyle === "button-below"
272
- ? "bottom"
273
- : props.buttonStyle === "button-outside"
274
- ? "top"
275
- : "top-end";
276
- const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts: "base: copy-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, size: "medium", style: { width: `${buttonStyle === "button-below" && "100%"}` }, disabled: disabled, type: "primary" }, props.copyButtonLabel || "Copy"))));
277
- return (h("div", null,
278
- h("style", { type: "text/css" },
279
- styleString$2,
280
- vanillaStyle$1,
281
- textAlignStyle[props.textAlign],
282
- disabled && disabledStyles),
283
- h("div", { class: sheet$2.classes.containerStyle, style: {
284
- flexDirection: `${buttonStyle === "button-below" ? "column" : "row"}`,
285
- } },
286
- h("sl-input", { class: `${sheet$2.classes.inputStyle} ${error ? sheet$2.classes.inputErrorStyle : ""}`, exportparts: "base: input-base, input: input-label", value: props.loading ? "Loading..." : inputText, readonly: true, disabled: disabled },
287
- buttonStyle === "icon" && copyButton,
288
- error && (h("p", { slot: "help-text", class: sheet$2.classes.errorTextStyle }, props.errorText))),
289
- (buttonStyle === "button-outside" || buttonStyle === "button-below") &&
290
- copyButton)));
291
- }
292
-
293
220
  function BigStatView(props) {
294
221
  const { statvalue, flexReverse, alignment } = props;
295
222
  // Dependent on props, not feasiable to move out
@@ -325,7 +252,7 @@ function BigStatView(props) {
325
252
  h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
326
253
  }
327
254
 
328
- const style$3 = {
255
+ const style$2 = {
329
256
  HostBlock: HostBlock,
330
257
  Frame: {
331
258
  display: "flex",
@@ -359,17 +286,17 @@ const style$3 = {
359
286
  },
360
287
  },
361
288
  };
362
- const sheet$3 = createStyleSheet(style$3);
363
- const styleString$3 = sheet$3.toString();
289
+ const sheet$2 = createStyleSheet(style$2);
290
+ const styleString$2 = sheet$2.toString();
364
291
  function PortalFrameView(props, children) {
365
292
  const { data, notFullScreen } = props;
366
- return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$3.classes.Frame, part: "sqm-base" },
367
- h("style", { type: "text/css" }, styleString$3),
368
- h("div", { class: sheet$3.classes.HeaderWrapper, part: "sqm-header" },
293
+ return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$2.classes.Frame, part: "sqm-base" },
294
+ h("style", { type: "text/css" }, styleString$2),
295
+ h("div", { class: sheet$2.classes.HeaderWrapper, part: "sqm-header" },
369
296
  data.header,
370
297
  h("slot", { name: "sqm-navigation-menu" })),
371
298
  children,
372
- h("div", { class: sheet$3.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
299
+ h("div", { class: sheet$2.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
373
300
  }
374
301
 
375
302
  const EditProfileView = (props) => {
@@ -449,9 +376,10 @@ function useShareLink(props) {
449
376
  const { programId = H() } = props;
450
377
  const user = Q();
451
378
  const engagementMedium = B();
452
- const { data } = yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt));
379
+ const contextData = In(REFERRAL_CODES_NAMESPACE);
380
+ const { data } = yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
453
381
  const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
454
- const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
382
+ const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
455
383
  // Shown during loading
456
384
  "...";
457
385
  const [open, setOpen] = useState(false);
@@ -514,26 +442,22 @@ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformT
514
442
  alert(unsupportedPlatformText);
515
443
  }
516
444
  }
517
- function FacebookShare(directLink, res, errorText) {
518
- var _a, _b;
519
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) === "undefined" ||
520
- directLink === "undefined") {
445
+ function FacebookShare(directLink, messageLink, errorText) {
446
+ if (messageLink === "undefined" || directLink === "undefined") {
521
447
  return alert(errorText);
522
448
  }
523
449
  if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
524
- return SquatchAndroid.shareOnFacebook(directLink, res.data.viewer.messageLink);
450
+ return SquatchAndroid.shareOnFacebook(directLink, messageLink);
525
451
  }
526
452
  else {
527
- return GenericShare(res, errorText);
453
+ return GenericShare(messageLink, errorText);
528
454
  }
529
455
  }
530
- function GenericShare(res, errorText) {
531
- var _a, _b;
532
- return ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) ? window.open(res.data.viewer.messageLink)
533
- : alert(errorText);
456
+ function GenericShare(messageLink, errorText) {
457
+ return messageLink ? window.open(messageLink) : alert(errorText);
534
458
  }
535
459
  function useShareButton(props) {
536
- var _a, _b;
460
+ var _a, _b, _c;
537
461
  const { sharetitle, sharetext, medium } = props;
538
462
  const programId = props.programId ? props.programId : H();
539
463
  const user = Q();
@@ -542,23 +466,25 @@ function useShareButton(props) {
542
466
  programId: programId,
543
467
  shareMedium: medium.toUpperCase(),
544
468
  };
469
+ const data = In(REFERRAL_CODES_NAMESPACE);
545
470
  // only queries if a programId is available
546
- const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
547
- const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
471
+ const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || (data === null || data === void 0 ? void 0 : data[medium]) !== undefined);
472
+ const directLink = ((_a = data === null || data === void 0 ? void 0 : data[medium]) === null || _a === void 0 ? void 0 : _a.shareLink) || ((_c = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.viewer) === null || _c === void 0 ? void 0 : _c.shareLink);
548
473
  const environment = getEnvironmentSDK();
549
474
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
550
475
  window.orientation === undefined) ||
551
476
  (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
552
477
  function onClick() {
478
+ var _a, _b, _c, _d, _e, _f;
553
479
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
554
480
  environment.type === "SquatchAndroid") {
555
- FacebookShare(directLink, res, props.errorText);
481
+ FacebookShare(directLink, ((_a = data === null || data === void 0 ? void 0 : data[medium]) === null || _a === void 0 ? void 0 : _a.messageLink) || ((_c = (_b = res.data) === null || _b === void 0 ? void 0 : _b.viewer) === null || _c === void 0 ? void 0 : _c.messageLink), props.errorText);
556
482
  }
557
483
  else if (medium.toLocaleUpperCase() === "DIRECT") {
558
484
  NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
559
485
  }
560
486
  else {
561
- GenericShare(res, props.errorText);
487
+ GenericShare(((_d = data === null || data === void 0 ? void 0 : data[medium]) === null || _d === void 0 ? void 0 : _d.messageLink) || ((_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.messageLink), props.errorText);
562
488
  }
563
489
  }
564
490
  return { ...props, loading: res.loading, onClick, hide };
@@ -1634,7 +1560,7 @@ function PortalChangePasswordView(props) {
1634
1560
  h("style", { type: "text/css" }, styleString))));
1635
1561
  }
1636
1562
 
1637
- const style$4 = {
1563
+ const style$3 = {
1638
1564
  Wrapper: AuthWrapper,
1639
1565
  Column: AuthColumn,
1640
1566
  ForgotButtonContainer: {
@@ -1647,7 +1573,7 @@ const style$4 = {
1647
1573
  },
1648
1574
  ButtonsContainer: AuthButtonsContainer,
1649
1575
  };
1650
- const vanillaStyle$2 = `
1576
+ const vanillaStyle$1 = `
1651
1577
  :host {
1652
1578
  display: block;
1653
1579
  }
@@ -1655,28 +1581,28 @@ const vanillaStyle$2 = `
1655
1581
  display: none;
1656
1582
  }
1657
1583
  `;
1658
- const sheet$4 = createStyleSheet(style$4);
1659
- const styleString$4 = sheet$4.toString();
1584
+ const sheet$3 = createStyleSheet(style$3);
1585
+ const styleString$3 = sheet$3.toString();
1660
1586
  function PortalLoginView(props) {
1661
1587
  const { states, callbacks, content } = props;
1662
- return (h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
1588
+ return (h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
1663
1589
  h("style", { type: "text/css" },
1664
- vanillaStyle$2,
1665
- styleString$4),
1590
+ vanillaStyle$1,
1591
+ styleString$3),
1666
1592
  h(TextSpanView, { type: "h3" }, content.pageLabel),
1667
- h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
1593
+ h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit },
1668
1594
  props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
1669
1595
  h("div", { part: "erroralert-text" }, props.states.error))),
1670
1596
  h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
1671
1597
  h("div", null,
1672
1598
  h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
1673
- h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
1674
- h("div", { class: sheet$4.classes.ButtonsContainer },
1599
+ h("div", { class: sheet$3.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
1600
+ h("div", { class: sheet$3.classes.ButtonsContainer },
1675
1601
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
1676
1602
  content.secondaryButton))));
1677
1603
  }
1678
1604
 
1679
- const style$5 = {
1605
+ const style$4 = {
1680
1606
  Wrapper: { ...AuthWrapper, "max-width": "600px" },
1681
1607
  Column: AuthColumn,
1682
1608
  HostBlock: HostBlock,
@@ -1687,7 +1613,7 @@ const style$5 = {
1687
1613
  ButtonsContainer: AuthButtonsContainer,
1688
1614
  ErrorStyle: ErrorStyles,
1689
1615
  };
1690
- const vanillaStyle$3 = `
1616
+ const vanillaStyle$2 = `
1691
1617
  sqm-portal-register {
1692
1618
  margin: 0 auto;
1693
1619
  width: 100%;
@@ -1702,20 +1628,20 @@ sqm-portal-register {
1702
1628
  display: none;
1703
1629
  }
1704
1630
  `;
1705
- const sheet$5 = createStyleSheet(style$5);
1706
- const styleString$5 = sheet$5.toString();
1631
+ const sheet$4 = createStyleSheet(style$4);
1632
+ const styleString$4 = sheet$4.toString();
1707
1633
  function PortalRegisterView(props) {
1708
1634
  var _a, _b, _c, _d, _e, _f, _g, _h;
1709
1635
  const { states, refs, callbacks, content } = props;
1710
1636
  if (states.error) {
1711
1637
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
1712
1638
  }
1713
- return (h("div", { class: sheet$5.classes.Wrapper, part: "sqm-base" },
1639
+ return (h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
1714
1640
  h("style", { type: "text/css" },
1715
- vanillaStyle$3,
1716
- styleString$5),
1641
+ vanillaStyle$2,
1642
+ styleString$4),
1717
1643
  h(TextSpanView, { type: "h3" }, content.pageLabel),
1718
- h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1644
+ h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1719
1645
  states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
1720
1646
  h("div", { part: "erroralert-text" }, props.states.error))),
1721
1647
  content.formData,
@@ -1728,7 +1654,7 @@ function PortalRegisterView(props) {
1728
1654
  return content.invalidEmailErrorMessage;
1729
1655
  }
1730
1656
  } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
1731
- class: sheet$5.classes.ErrorStyle,
1657
+ class: sheet$4.classes.ErrorStyle,
1732
1658
  helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1733
1659
  content.requiredFieldErrorMessage,
1734
1660
  }
@@ -1736,17 +1662,17 @@ function PortalRegisterView(props) {
1736
1662
  !states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
1737
1663
  content.passwordField,
1738
1664
  !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
1739
- class: sheet$5.classes.ErrorStyle,
1665
+ class: sheet$4.classes.ErrorStyle,
1740
1666
  helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
1741
1667
  }
1742
1668
  : [])))),
1743
1669
  content.terms,
1744
- h("div", { class: sheet$5.classes.ButtonsContainer },
1670
+ h("div", { class: sheet$4.classes.ButtonsContainer },
1745
1671
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
1746
1672
  content.secondaryButton))));
1747
1673
  }
1748
1674
 
1749
- const style$6 = {
1675
+ const style$5 = {
1750
1676
  Description: {
1751
1677
  "& input[type=checkbox]": {
1752
1678
  display: "none",
@@ -1785,13 +1711,13 @@ const style$6 = {
1785
1711
  },
1786
1712
  },
1787
1713
  };
1788
- const sheet$6 = createStyleSheet(style$6);
1789
- const styleString$6 = sheet$6.toString();
1714
+ const sheet$5 = createStyleSheet(style$5);
1715
+ const styleString$5 = sheet$5.toString();
1790
1716
  function Details(props) {
1791
1717
  const rid = Math.random().toString(36).slice(2);
1792
1718
  return (h("div", { style: { opacity: props.opacity } },
1793
- h("style", { type: "text/css" }, styleString$6),
1794
- h("span", { class: sheet$6.classes.Description },
1719
+ h("style", { type: "text/css" }, styleString$5),
1720
+ h("span", { class: sheet$5.classes.Description },
1795
1721
  h("input", { type: "checkbox", id: "details-" + rid }),
1796
1722
  h("label", { class: "details", htmlFor: "details-" + rid },
1797
1723
  h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
@@ -1813,7 +1739,7 @@ const GreyGift = () => {
1813
1739
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
1814
1740
  };
1815
1741
 
1816
- const style$7 = {
1742
+ const style$6 = {
1817
1743
  ProgressBar: {
1818
1744
  "& .progress-bar": {
1819
1745
  height: "0",
@@ -1925,14 +1851,14 @@ const style$7 = {
1925
1851
  },
1926
1852
  },
1927
1853
  };
1928
- const sheet$7 = createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
1929
- const styleString$7 = sheet$7.toString();
1854
+ const sheet$6 = createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
1855
+ const styleString$6 = sheet$6.toString();
1930
1856
  function ProgressBarView(props) {
1931
1857
  const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
1932
1858
  let aggregate = buildProgressBar(repeatable, steps, props);
1933
1859
  const { columns, items } = aggregate;
1934
- return (h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1935
- h("style", { type: "text/css" }, styleString$7),
1860
+ return (h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1861
+ h("style", { type: "text/css" }, styleString$6),
1936
1862
  h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
1937
1863
  (Boolean(finite) && progress > 2 * goal)
1938
1864
  ? "progress-bar repeatable-steps"
@@ -2223,7 +2149,7 @@ const arrow_left_right = () => {
2223
2149
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
2224
2150
  };
2225
2151
 
2226
- const style$8 = {
2152
+ const style$7 = {
2227
2153
  TaskCard: {
2228
2154
  display: "inline-block",
2229
2155
  width: "100%",
@@ -2377,8 +2303,8 @@ const style$8 = {
2377
2303
  },
2378
2304
  },
2379
2305
  };
2380
- const sheet$8 = createStyleSheet(style$8);
2381
- const styleString$8 = sheet$8.toString();
2306
+ const sheet$7 = createStyleSheet(style$7);
2307
+ const styleString$7 = sheet$7.toString();
2382
2308
  function TaskCardView(props) {
2383
2309
  var _a, _b;
2384
2310
  const { callbacks, states, content } = props;
@@ -2414,11 +2340,11 @@ function TaskCardView(props) {
2414
2340
  }
2415
2341
 
2416
2342
  `;
2417
- return (h("div", { class: sheet$8.classes.TaskCard, part: "sqm-base" },
2343
+ return (h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
2418
2344
  h("style", { type: "text/css" },
2419
- styleString$8,
2345
+ styleString$7,
2420
2346
  vanillaStyle),
2421
- !states.loading && taskNotStarted && (h("div", { class: sheet$8.classes.NotStarted },
2347
+ !states.loading && taskNotStarted && (h("div", { class: sheet$7.classes.NotStarted },
2422
2348
  h("span", { class: "icon" },
2423
2349
  h("sl-icon", { name: "info-circle-fill" })),
2424
2350
  intl.formatMessage({
@@ -2429,7 +2355,7 @@ function TaskCardView(props) {
2429
2355
  .setLocale(luxonLocale(states.locale))
2430
2356
  .toLocaleString(luxon.DateTime.DATETIME_MED),
2431
2357
  }))),
2432
- !states.loading && taskEnded && (h("div", { class: sheet$8.classes.Ended },
2358
+ !states.loading && taskEnded && (h("div", { class: sheet$7.classes.Ended },
2433
2359
  h("span", { class: "icon" },
2434
2360
  h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
2435
2361
  intl.formatMessage({
@@ -2449,7 +2375,7 @@ function TaskCardView(props) {
2449
2375
  ? "main complete"
2450
2376
  : "main" },
2451
2377
  h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
2452
- h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
2378
+ h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
2453
2379
  showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
2454
2380
  h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
2455
2381
  h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
@@ -2465,7 +2391,7 @@ function TaskCardView(props) {
2465
2391
  } }, content.cardTitle)),
2466
2392
  states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
2467
2393
  content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
2468
- h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
2394
+ h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
2469
2395
  h("span", { class: "text" },
2470
2396
  content.repeatable && (h("div", null,
2471
2397
  h("span", { class: repetitions > 0
@@ -2536,7 +2462,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
2536
2462
  h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
2537
2463
  }
2538
2464
 
2539
- const vanillaStyle$4 = `
2465
+ const vanillaStyle$3 = `
2540
2466
  :host{
2541
2467
  margin: 0 auto;
2542
2468
  width: 100%;
@@ -2592,7 +2518,7 @@ function PortalFooterView(props) {
2592
2518
  const styleString = sheet.toString();
2593
2519
  return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
2594
2520
  h("style", { type: "text/css" },
2595
- vanillaStyle$4,
2521
+ vanillaStyle$3,
2596
2522
  styleString),
2597
2523
  h("div", { class: sheet.classes.RowContainer },
2598
2524
  props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
@@ -2764,7 +2690,7 @@ function ReferralIframeView(props) {
2764
2690
  h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2765
2691
  }
2766
2692
 
2767
- const style$9 = {
2693
+ const style$8 = {
2768
2694
  ErrorStyle: ErrorStyles,
2769
2695
  FieldsContainer: {
2770
2696
  "& sl-input": {
@@ -2772,7 +2698,7 @@ const style$9 = {
2772
2698
  },
2773
2699
  },
2774
2700
  };
2775
- const vanillaStyle$5 = `
2701
+ const vanillaStyle$4 = `
2776
2702
  :host {
2777
2703
  margin: 0 auto;
2778
2704
  width: 100%;
@@ -2784,21 +2710,21 @@ sl-input::part(label){
2784
2710
  font-weight: var(--sl-font-weight-semibold);
2785
2711
  }
2786
2712
  `;
2787
- const sheet$9 = createStyleSheet(style$9);
2788
- const styleString$9 = sheet$9.toString();
2713
+ const sheet$8 = createStyleSheet(style$8);
2714
+ const styleString$8 = sheet$8.toString();
2789
2715
  function NameFieldsView(props) {
2790
2716
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2791
2717
  const { states } = props;
2792
2718
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2793
- return (h("div", { class: sheet$9.classes.FieldsContainer },
2719
+ return (h("div", { class: sheet$8.classes.FieldsContainer },
2794
2720
  h("style", { type: "text/css" },
2795
- vanillaStyle$5,
2796
- styleString$9),
2721
+ vanillaStyle$4,
2722
+ styleString$8),
2797
2723
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
2798
2724
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2799
2725
  }
2800
2726
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2801
- class: sheet$9.classes.ErrorStyle,
2727
+ class: sheet$8.classes.ErrorStyle,
2802
2728
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2803
2729
  }
2804
2730
  : []))),
@@ -2806,13 +2732,13 @@ function NameFieldsView(props) {
2806
2732
  value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2807
2733
  }
2808
2734
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2809
- class: sheet$9.classes.ErrorStyle,
2735
+ class: sheet$8.classes.ErrorStyle,
2810
2736
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2811
2737
  }
2812
2738
  : [])))));
2813
2739
  }
2814
2740
 
2815
- const style$a = {
2741
+ const style$9 = {
2816
2742
  ErrorStyle: {
2817
2743
  "&::part(control)": {
2818
2744
  background: "var(--sl-color-danger-10)",
@@ -2835,7 +2761,7 @@ const style$a = {
2835
2761
  "margin-bottom": "var(--sl-spacing-large)",
2836
2762
  },
2837
2763
  };
2838
- const vanillaStyle$6 = `
2764
+ const vanillaStyle$5 = `
2839
2765
  :host {
2840
2766
  margin: 0 auto;
2841
2767
  width: 100%;
@@ -2851,22 +2777,22 @@ sl-checkbox::part(base){
2851
2777
  }
2852
2778
  `;
2853
2779
  jss.setup(create());
2854
- const sheet$a = jss.createStyleSheet(style$a);
2855
- const styleString$a = sheet$a.toString();
2780
+ const sheet$9 = jss.createStyleSheet(style$9);
2781
+ const styleString$9 = sheet$9.toString();
2856
2782
  function CheckboxFieldView(props) {
2857
2783
  var _a, _b, _c;
2858
2784
  const { states, content, callbacks } = props;
2859
2785
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2860
- return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
2786
+ return (h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
2861
2787
  h("style", { type: "text/css" },
2862
- vanillaStyle$6,
2863
- styleString$a),
2788
+ vanillaStyle$5,
2789
+ styleString$9),
2864
2790
  h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
2865
2791
  e.target.value = e.target.checked;
2866
2792
  callbacks.setChecked(e.target.value);
2867
2793
  } }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
2868
2794
  ? {
2869
- class: sheet$a.classes.ErrorStyle,
2795
+ class: sheet$9.classes.ErrorStyle,
2870
2796
  }
2871
2797
  : [])),
2872
2798
  intl.formatMessage({
@@ -2875,13 +2801,13 @@ function CheckboxFieldView(props) {
2875
2801
  }, {
2876
2802
  labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
2877
2803
  }),
2878
- !states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
2804
+ !states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$9.classes.ErrorMessageStyle }, intl.formatMessage({
2879
2805
  id: `errorMessage-${content.checkboxName}`,
2880
2806
  defaultMessage: content.errorMessage,
2881
2807
  }))))));
2882
2808
  }
2883
2809
 
2884
- const style$b = {
2810
+ const style$a = {
2885
2811
  ErrorStyle: {
2886
2812
  "--sl-input-border-color": "var(--sl-color-danger-500)",
2887
2813
  "--sl-input-background-color": "var(--sl-color-danger-10)",
@@ -2897,7 +2823,7 @@ const style$b = {
2897
2823
  "margin-bottom": "var(--sl-spacing-large)",
2898
2824
  },
2899
2825
  };
2900
- const vanillaStyle$7 = `
2826
+ const vanillaStyle$6 = `
2901
2827
  :host {
2902
2828
  margin: 0 auto;
2903
2829
  width: 100%;
@@ -2909,36 +2835,36 @@ sl-select::part(label){
2909
2835
  }
2910
2836
  `;
2911
2837
  jss.setup(create());
2912
- const sheet$b = jss.createStyleSheet(style$b);
2913
- const styleString$b = sheet$b.toString();
2838
+ const sheet$a = jss.createStyleSheet(style$a);
2839
+ const styleString$a = sheet$a.toString();
2914
2840
  function DropdownFieldView(props) {
2915
2841
  var _a, _b, _c, _d, _e, _f, _g;
2916
2842
  const { states, content } = props;
2917
2843
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2918
- return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
2844
+ return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
2919
2845
  h("style", { type: "text/css" },
2920
- vanillaStyle$7,
2921
- styleString$b),
2846
+ vanillaStyle$6,
2847
+ styleString$a),
2922
2848
  h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
2923
2849
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2924
2850
  }
2925
2851
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2926
- class: sheet$b.classes.ErrorStyle,
2852
+ class: sheet$a.classes.ErrorStyle,
2927
2853
  }
2928
2854
  : [])), content.selectOptions),
2929
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$b.classes.ErrorMessageStyle }, intl.formatMessage({
2855
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
2930
2856
  id: `errorMessage-${content.dropdownName}`,
2931
2857
  defaultMessage: content.errorMessage,
2932
2858
  })))));
2933
2859
  }
2934
2860
 
2935
- const style$c = {
2861
+ const style$b = {
2936
2862
  ErrorStyle: ErrorStyles,
2937
2863
  FieldContainer: {
2938
2864
  "margin-bottom": "var(--sl-spacing-large)",
2939
2865
  },
2940
2866
  };
2941
- const vanillaStyle$8 = `
2867
+ const vanillaStyle$7 = `
2942
2868
  :host {
2943
2869
  margin: 0 auto;
2944
2870
  width: 100%;
@@ -2946,21 +2872,21 @@ const vanillaStyle$8 = `
2946
2872
  }
2947
2873
  `;
2948
2874
  jss.setup(create());
2949
- const sheet$c = jss.createStyleSheet(style$c);
2950
- const styleString$c = sheet$c.toString();
2875
+ const sheet$b = jss.createStyleSheet(style$b);
2876
+ const styleString$b = sheet$b.toString();
2951
2877
  function InputFieldView(props) {
2952
2878
  var _a, _b, _c, _d, _e, _f, _g;
2953
2879
  const { states, content } = props;
2954
2880
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2955
- return (h("div", { class: sheet$c.classes.FieldContainer, part: "sqm-base" },
2881
+ return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
2956
2882
  h("style", { type: "text/css" },
2957
- vanillaStyle$8,
2958
- styleString$c),
2883
+ vanillaStyle$7,
2884
+ styleString$b),
2959
2885
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
2960
2886
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2961
2887
  }
2962
2888
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2963
- class: sheet$c.classes.ErrorStyle,
2889
+ class: sheet$b.classes.ErrorStyle,
2964
2890
  helpText: intl.formatMessage({
2965
2891
  id: `errorMessage-${content.fieldName}`,
2966
2892
  defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
@@ -3055,7 +2981,7 @@ function ProgressBar({ stageCount, currentStage, }) {
3055
2981
  return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
3056
2982
  }
3057
2983
 
3058
- const style$d = {
2984
+ const style$c = {
3059
2985
  HostBlock: HostBlock,
3060
2986
  Container: {
3061
2987
  minWidth: "300px",
@@ -3406,8 +3332,8 @@ const style$d = {
3406
3332
  },
3407
3333
  };
3408
3334
  // JSS config
3409
- const sheet$d = createStyleSheet(style$d);
3410
- const styleString$d = sheet$d.toString();
3335
+ const sheet$c = createStyleSheet(style$c);
3336
+ const styleString$c = sheet$c.toString();
3411
3337
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
3412
3338
  function RewardExchangeView(props) {
3413
3339
  const { states, data, callbacks, refs } = props;
@@ -3430,7 +3356,7 @@ function RewardExchangeView(props) {
3430
3356
  sourceUnit: item.sourceUnit,
3431
3357
  })));
3432
3358
  }
3433
- return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$d.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3359
+ return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3434
3360
  var _a, _b, _c, _d, _e;
3435
3361
  return callbacks.setExchangeState({
3436
3362
  amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
@@ -3438,7 +3364,7 @@ function RewardExchangeView(props) {
3438
3364
  });
3439
3365
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
3440
3366
  var _a, _b;
3441
- return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$d.classes.SelectItem },
3367
+ return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
3442
3368
  step.prettyDestinationValue,
3443
3369
  h("br", null),
3444
3370
  h("div", { class: "step-cost", slot: "suffix" },
@@ -3457,8 +3383,8 @@ function RewardExchangeView(props) {
3457
3383
  var _a;
3458
3384
  return [
3459
3385
  h("div", { part: "choose-reward-container" },
3460
- h("div", { class: sheet$d.classes.Title }, states.content.text.rewardTitle),
3461
- states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$d.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3386
+ h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
3387
+ states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3462
3388
  var _a, _b, _c, _d, _e;
3463
3389
  const style = {
3464
3390
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
@@ -3467,7 +3393,7 @@ function RewardExchangeView(props) {
3467
3393
  borderRadius: "4px",
3468
3394
  };
3469
3395
  return (h("div", { key: item.key, style: style },
3470
- h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$d.classes.Card, style: {
3396
+ h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
3471
3397
  cursor: item.unavailableReasonCode
3472
3398
  ? "not-allowed"
3473
3399
  : "pointer",
@@ -3484,14 +3410,14 @@ function RewardExchangeView(props) {
3484
3410
  ? "rgba(0, 0, 0, 0.05)"
3485
3411
  : "rgba(0, 0, 0, 0)",
3486
3412
  } },
3487
- h("div", { class: sheet$d.classes.Image, style: {
3413
+ h("div", { class: sheet$c.classes.Image, style: {
3488
3414
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3489
3415
  } },
3490
3416
  h("img", { class: item.unavailableReasonCode
3491
3417
  ? "image subdued"
3492
3418
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
3493
3419
  getAssetPath("./assets/Reward-image.png") })),
3494
- h("div", { class: sheet$d.classes.TextArea, style: {
3420
+ h("div", { class: sheet$c.classes.TextArea, style: {
3495
3421
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3496
3422
  } },
3497
3423
  h("div", { class: "title", style: {
@@ -3524,7 +3450,7 @@ function RewardExchangeView(props) {
3524
3450
  item.prettySourceMinValue,
3525
3451
  }))))))));
3526
3452
  }))),
3527
- h("div", { class: sheet$d.classes.Button },
3453
+ h("div", { class: sheet$c.classes.Button },
3528
3454
  h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
3529
3455
  ];
3530
3456
  }
@@ -3535,7 +3461,7 @@ function RewardExchangeView(props) {
3535
3461
  ? false
3536
3462
  : input && !states.amount;
3537
3463
  return (h("div", null,
3538
- h("div", { class: sheet$d.classes.ChooseAmount, part: "choose-amount-container" },
3464
+ h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
3539
3465
  h("div", { class: "wrapper" },
3540
3466
  h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3541
3467
  getAssetPath("./assets/Reward-image.png") }),
@@ -3544,7 +3470,7 @@ function RewardExchangeView(props) {
3544
3470
  ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
3545
3471
  ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
3546
3472
  h("div", { class: "space" }))),
3547
- h("div", { class: sheet$d.classes.Button },
3473
+ h("div", { class: sheet$c.classes.Button },
3548
3474
  h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3549
3475
  h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3550
3476
  }
@@ -3552,8 +3478,8 @@ function RewardExchangeView(props) {
3552
3478
  const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
3553
3479
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
3554
3480
  return (h("div", null,
3555
- h("div", { class: sheet$d.classes.Confirmation, part: "confirmation-container" },
3556
- h("div", { class: sheet$d.classes.Title }, states.content.text.redeemTitle),
3481
+ h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
3482
+ h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
3557
3483
  h("div", { class: "wrapper" },
3558
3484
  h("div", { class: "field" }, states.content.text.rewardNameTitle),
3559
3485
  h("div", { class: "reward-item-container" },
@@ -3568,13 +3494,13 @@ function RewardExchangeView(props) {
3568
3494
  h("div", { class: "wrapper top-border padding" },
3569
3495
  h("div", { class: "field" }, states.content.text.costTitle),
3570
3496
  h("div", { class: "value" }, cost)),
3571
- h("div", { class: sheet$d.classes.Button },
3497
+ h("div", { class: sheet$c.classes.Button },
3572
3498
  h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3573
3499
  h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3574
3500
  }
3575
3501
  function success() {
3576
3502
  var _a, _b, _c, _d, _e, _f;
3577
- return (h("div", { class: sheet$d.classes.Success, part: "success-container" },
3503
+ return (h("div", { class: sheet$c.classes.Success, part: "success-container" },
3578
3504
  h(Gift$1, null),
3579
3505
  h(Confetti, null),
3580
3506
  h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
@@ -3589,7 +3515,7 @@ function RewardExchangeView(props) {
3589
3515
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
3590
3516
  states.content.text.promoCode,
3591
3517
  h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
3592
- h("div", { class: sheet$d.classes.Button },
3518
+ h("div", { class: sheet$c.classes.Button },
3593
3519
  h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
3594
3520
  }
3595
3521
  const stages = {
@@ -3601,7 +3527,7 @@ function RewardExchangeView(props) {
3601
3527
  const currentStage = stages[states.redeemStage];
3602
3528
  function stageMap() {
3603
3529
  const stageNumber = stageList.indexOf(states.redeemStage);
3604
- return (h("div", { class: sheet$d.classes.ProgressBar },
3530
+ return (h("div", { class: sheet$c.classes.ProgressBar },
3605
3531
  h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
3606
3532
  if (stageList.indexOf(stage) <= stageNumber) {
3607
3533
  return h("span", { class: "text" }, stageProgressList[stage]);
@@ -3613,10 +3539,10 @@ function RewardExchangeView(props) {
3613
3539
  h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
3614
3540
  }
3615
3541
  function loading() {
3616
- return (h("div", { class: sheet$d.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3542
+ return (h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3617
3543
  return (h("div", null,
3618
- h("sl-card", { class: sheet$d.classes.Card },
3619
- h("div", { class: sheet$d.classes.CardLayout },
3544
+ h("sl-card", { class: sheet$c.classes.Card },
3545
+ h("div", { class: sheet$c.classes.CardLayout },
3620
3546
  h("div", null,
3621
3547
  h("sl-skeleton", { style: {
3622
3548
  width: "100px",
@@ -3648,12 +3574,12 @@ function RewardExchangeView(props) {
3648
3574
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
3649
3575
  return;
3650
3576
  refs.canvasRef.current = canvas;
3651
- }, id: "my-canvas", class: sheet$d.classes.Confetti }));
3577
+ }, id: "my-canvas", class: sheet$c.classes.Confetti }));
3652
3578
  }
3653
3579
  if (states.noExchangeOptions)
3654
3580
  return states.content.text.empty;
3655
- return (h("div", { class: sheet$d.classes.Container, part: "sqm-base" },
3656
- h("style", { type: "text/css" }, styleString$d),
3581
+ return (h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
3582
+ h("style", { type: "text/css" }, styleString$c),
3657
3583
  h("div", null,
3658
3584
  stageMap(),
3659
3585
  states.exchangeError && errorMessage(),
@@ -4069,7 +3995,7 @@ function CardFeedView(props, children) {
4069
3995
  h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
4070
3996
  }
4071
3997
 
4072
- const style$e = {
3998
+ const style$d = {
4073
3999
  HostBlock: HostBlock,
4074
4000
  couponCodeLabel: {
4075
4001
  margin: "var(--sl-spacing-x-small) 0",
@@ -4077,21 +4003,21 @@ const style$e = {
4077
4003
  fontSize: "var(--sl-font-size-small)",
4078
4004
  },
4079
4005
  };
4080
- const vanillaStyle$9 = `
4006
+ const vanillaStyle$8 = `
4081
4007
  :host{
4082
4008
  display: block;
4083
4009
  width: 100%;
4084
4010
  }
4085
4011
  `;
4086
- const sheet$e = createStyleSheet(style$e);
4087
- const styleString$e = sheet$e.toString();
4012
+ const sheet$d = createStyleSheet(style$d);
4013
+ const styleString$d = sheet$d.toString();
4088
4014
  function CouponCodeView(props) {
4089
4015
  const error = !props.loading && props.error;
4090
4016
  return (h("div", null,
4091
4017
  h("style", { type: "text/css" },
4092
- styleString$e,
4093
- vanillaStyle$9),
4094
- h("p", { class: sheet$e.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4018
+ styleString$d,
4019
+ vanillaStyle$8),
4020
+ h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4095
4021
  error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
4096
4022
  h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
4097
4023
  }
@@ -4181,4 +4107,4 @@ const ShadowViewAddon = ({ story }, children) => {
4181
4107
  h(TagName, { "stencilbook-shadow-view": randomInt })));
4182
4108
  };
4183
4109
 
4184
- export { successVariable as A, BigStatView as B, CopyTextView as C, DropdownFieldView as D, EditProfileView as E, loading as F, empty as G, HeroView as H, InputFieldView as I, rewardExchange as J, CardFeedView as K, LeaderboardView as L, CouponCodeView as M, NameFieldsView as N, ProgressBar as O, PortalFrameView as P, autoColorScaleCss as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShadowViewAddon as U, useBigStat as V, withShadowView as W, demoRewardExchange as X, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, CheckboxFieldView as j, RewardExchangeView as k, rewardExchangeLongText as l, rewardExchangeSelected as m, chooseAmountFixed as n, chooseAmountFixedNoDescription as o, chooseAmountVariable as p, chooseAmountVariableNoDescription as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableDisabled as s, chooseAmountVariableUnavailable as t, useShareLink as u, confirmFixed as v, confirmVariable as w, redemptionError as x, queryError as y, success as z };
4110
+ export { loading as A, BigStatView as B, CheckboxFieldView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, autoColorScaleCss as O, PortalFrameView as P, ShadowViewAddon as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, useBigStat as U, withShadowView as V, demoRewardExchange as W, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };