@saasquatch/mint-components 1.12.1-0 → 1.12.1-10

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 (222) hide show
  1. package/dist/cjs/{ShadowViewAddon-c3e91cee.js → ShadowViewAddon-63b78308.js} +48 -118
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +6 -11
  5. package/dist/cjs/sqm-checkbox-field-view-e0a31f2a.js +66 -0
  6. package/dist/cjs/sqm-portal-change-marketing.cjs.entry.js +221 -0
  7. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -0
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +10 -9
  9. package/dist/collection/collection-manifest.json +1 -0
  10. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
  11. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
  12. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +13 -43
  13. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +39 -0
  14. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +191 -0
  15. package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +112 -0
  16. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -0
  17. package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-272f75a5.js} +53 -122
  18. package/dist/esm/{global-04c7d3b5.js → global-62554cef.js} +1 -1
  19. package/dist/esm/{index.module-def4aec5.js → index.module-48f73e70.js} +1 -1
  20. package/dist/esm/loader.js +3 -3
  21. package/dist/esm/mint-components.js +3 -3
  22. package/dist/esm/{re-render-12fd274a.js → re-render-cb4d43dc.js} +1 -1
  23. package/dist/esm/sqm-asset-card.entry.js +1 -1
  24. package/dist/esm/sqm-banking-info-form_16.entry.js +6 -6
  25. package/dist/esm/sqm-big-stat_39.entry.js +10 -15
  26. package/dist/esm/sqm-checkbox-field-view-0ef58cb3.js +64 -0
  27. package/dist/esm/sqm-close-button.entry.js +1 -1
  28. package/dist/esm/sqm-context-router.entry.js +1 -1
  29. package/dist/esm/sqm-empty_4.entry.js +2 -2
  30. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  31. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  32. package/dist/esm/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-41a14ca6.js} +1 -1
  33. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  34. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  35. package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-af40eedb.js} +1 -1
  36. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  37. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  38. package/dist/esm/sqm-password-field.entry.js +2 -2
  39. package/dist/esm/sqm-popup-container.entry.js +1 -1
  40. package/dist/esm/sqm-portal-change-marketing.entry.js +217 -0
  41. package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
  42. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  43. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  44. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  45. package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
  46. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  47. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  48. package/dist/esm/sqm-portal-registration-form.entry.js +4 -2
  49. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  50. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  51. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  52. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  53. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  54. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  55. package/dist/esm/sqm-stencilbook.entry.js +13 -12
  56. package/dist/esm/sqm-tab.entry.js +2 -2
  57. package/dist/esm/sqm-tabs.entry.js +3 -3
  58. package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-a6b895dd.js} +1 -1
  59. package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-46a98499.js} +2 -2
  60. package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-6e8350db.js} +3 -3
  61. package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-de6b208e.js} +1 -1
  62. package/dist/esm/{utilities-3f5bba22.js → utilities-e8022681.js} +1 -1
  63. package/dist/esm-es5/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-272f75a5.js} +1 -1
  64. package/dist/esm-es5/{global-04c7d3b5.js → global-62554cef.js} +1 -1
  65. package/dist/esm-es5/{index.module-def4aec5.js → index.module-48f73e70.js} +1 -1
  66. package/dist/esm-es5/loader.js +1 -1
  67. package/dist/esm-es5/mint-components.js +1 -1
  68. package/dist/esm-es5/{re-render-12fd274a.js → re-render-cb4d43dc.js} +1 -1
  69. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  70. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  71. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  72. package/dist/esm-es5/sqm-checkbox-field-view-0ef58cb3.js +1 -0
  73. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  74. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  75. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  76. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  77. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  78. package/dist/esm-es5/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-41a14ca6.js} +1 -1
  79. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  80. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  81. package/dist/esm-es5/sqm-navigation-sidebar-item-view-af40eedb.js +1 -0
  82. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  83. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  84. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  85. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  86. package/dist/esm-es5/sqm-portal-change-marketing.entry.js +1 -0
  87. package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
  88. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  89. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  90. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
  92. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  93. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  94. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  95. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  96. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  97. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  98. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  99. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  100. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  101. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  102. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  103. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  104. package/dist/esm-es5/{useChildElements-32e1bda1.js → useChildElements-a6b895dd.js} +1 -1
  105. package/dist/esm-es5/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-46a98499.js} +1 -1
  106. package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-6e8350db.js} +1 -1
  107. package/dist/esm-es5/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-de6b208e.js} +1 -1
  108. package/dist/esm-es5/{utilities-3f5bba22.js → utilities-e8022681.js} +1 -1
  109. package/dist/mint-components/mint-components.esm.js +1 -1
  110. package/dist/mint-components/mint-components.js +1 -1
  111. package/dist/mint-components/{p-ce5afa40.entry.js → p-0068067d.entry.js} +1 -1
  112. package/dist/mint-components/p-018088cc.entry.js +13 -0
  113. package/dist/mint-components/{p-7731f793.system.entry.js → p-099c59cc.system.entry.js} +1 -1
  114. package/dist/mint-components/{p-3d4656bb.system.js → p-0f010c01.system.js} +1 -1
  115. package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-0f30148d.system.entry.js} +1 -1
  116. package/dist/mint-components/{p-b5861974.system.entry.js → p-115edc43.system.entry.js} +1 -1
  117. package/dist/mint-components/{p-5f1c4160.system.entry.js → p-13976be9.system.entry.js} +1 -1
  118. package/dist/mint-components/p-175075e7.system.js +1 -0
  119. package/dist/mint-components/{p-b6fc1227.system.entry.js → p-1bb2fd65.system.entry.js} +1 -1
  120. package/dist/mint-components/{p-137ea86e.entry.js → p-1bdacfcb.entry.js} +1 -1
  121. package/dist/mint-components/{p-ce621bcc.js → p-1d803c85.js} +1 -1
  122. package/dist/mint-components/{p-458b2894.entry.js → p-1e0f4667.entry.js} +2 -2
  123. package/dist/mint-components/{p-c84659a3.system.js → p-1eb21821.system.js} +1 -1
  124. package/dist/mint-components/{p-eba44835.system.entry.js → p-215d9dce.system.entry.js} +1 -1
  125. package/dist/mint-components/{p-3223ba7b.entry.js → p-23112de2.entry.js} +1 -1
  126. package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-2364eb2d.system.entry.js} +1 -1
  127. package/dist/mint-components/{p-cf690d55.system.entry.js → p-275b2841.system.entry.js} +1 -1
  128. package/dist/mint-components/{p-5be235f9.entry.js → p-29023a9c.entry.js} +1 -1
  129. package/dist/mint-components/{p-0d8c53ac.system.js → p-2a2d4343.system.js} +1 -1
  130. package/dist/mint-components/{p-5b333fa8.system.entry.js → p-30797093.system.entry.js} +1 -1
  131. package/dist/mint-components/p-30f84f8b.system.js +1 -0
  132. package/dist/mint-components/p-32642d34.js +1 -0
  133. package/dist/mint-components/{p-86990110.entry.js → p-3b08cc52.entry.js} +1 -1
  134. package/dist/mint-components/{p-aee2304a.entry.js → p-3fefb1f4.entry.js} +11 -11
  135. package/dist/mint-components/{p-afd366ae.system.entry.js → p-44c3791a.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-b370fca8.system.js → p-481dedf2.system.js} +1 -1
  137. package/dist/mint-components/p-48b07ec7.system.entry.js +1 -0
  138. package/dist/mint-components/{p-35d84041.system.entry.js → p-498c4ffd.system.entry.js} +1 -1
  139. package/dist/mint-components/{p-51f517a2.js → p-4dcdf9b6.js} +1 -1
  140. package/dist/mint-components/{p-61eab172.js → p-512089bb.js} +1 -1
  141. package/dist/mint-components/{p-3ec16698.entry.js → p-513f79fb.entry.js} +1 -1
  142. package/dist/mint-components/p-52553737.system.entry.js +1 -0
  143. package/dist/mint-components/{p-a9050eb0.entry.js → p-52acd113.entry.js} +1 -1
  144. package/dist/mint-components/{p-ed095674.system.js → p-57ea9c0b.system.js} +1 -1
  145. package/dist/mint-components/{p-4edde470.entry.js → p-59111d6c.entry.js} +1 -1
  146. package/dist/mint-components/p-5ab5131c.entry.js +1 -0
  147. package/dist/mint-components/{p-674a64fe.system.js → p-5da7c982.system.js} +1 -1
  148. package/dist/mint-components/{p-ec41d6a4.entry.js → p-5de3473d.entry.js} +1 -1
  149. package/dist/mint-components/{p-021a735d.entry.js → p-5f20200a.entry.js} +1 -1
  150. package/dist/mint-components/p-60bf4471.system.entry.js +1 -0
  151. package/dist/mint-components/{p-32d1d162.entry.js → p-64b25dd9.entry.js} +1 -1
  152. package/dist/mint-components/{p-dd7ee007.system.js → p-66d09e59.system.js} +1 -1
  153. package/dist/mint-components/{p-1dd69917.system.entry.js → p-670d441e.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-5cac90e8.system.entry.js → p-68160d49.system.entry.js} +1 -1
  155. package/dist/mint-components/{p-eaada4da.js → p-6aed684b.js} +1 -1
  156. package/dist/mint-components/{p-59fe4ad1.system.js → p-6f980faf.system.js} +1 -1
  157. package/dist/mint-components/p-711bb8da.entry.js +1 -0
  158. package/dist/mint-components/{p-4df8f1d2.system.js → p-74609159.system.js} +1 -1
  159. package/dist/mint-components/{p-d8d2de11.entry.js → p-74d012fc.entry.js} +1 -1
  160. package/dist/mint-components/p-7624c91a.entry.js +18 -0
  161. package/dist/mint-components/{p-4502ed11.system.entry.js → p-7726e4ea.system.entry.js} +1 -1
  162. package/dist/mint-components/{p-7049e9b0.entry.js → p-778b55a5.entry.js} +1 -1
  163. package/dist/mint-components/p-7ab32670.entry.js +33 -0
  164. package/dist/mint-components/{p-0b9fa97f.js → p-7eabcffc.js} +1 -1
  165. package/dist/mint-components/p-804de0cf.system.entry.js +1 -0
  166. package/dist/mint-components/{p-9f0629ba.system.entry.js → p-83df7db2.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-7f088154.entry.js → p-8e3390b6.entry.js} +1 -1
  168. package/dist/mint-components/{p-6cef104b.entry.js → p-902770d7.entry.js} +1 -1
  169. package/dist/mint-components/{p-01cfff8a.system.entry.js → p-92b08cb2.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-94324315.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-bb00db59.js → p-98602fa9.js} +1 -1
  172. package/dist/mint-components/{p-2dd67762.entry.js → p-9982db11.entry.js} +1 -1
  173. package/dist/mint-components/{p-b4c52c5a.entry.js → p-9a520e94.entry.js} +2 -2
  174. package/dist/mint-components/{p-07f675ab.system.entry.js → p-9aa177d6.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-a8f7cb95.js → p-9b4a99c4.js} +1 -1
  176. package/dist/mint-components/{p-02424350.system.js → p-9bb9a767.system.js} +1 -1
  177. package/dist/mint-components/p-a178a449.system.js +1 -0
  178. package/dist/mint-components/p-a6b36268.system.js +1 -0
  179. package/dist/mint-components/p-b07a88fd.js +1 -0
  180. package/dist/mint-components/{p-56f14840.entry.js → p-b169229a.entry.js} +1 -1
  181. package/dist/mint-components/{p-41a11a7f.js → p-b348d95c.js} +1 -1
  182. package/dist/mint-components/{p-10e89d0a.entry.js → p-b5b9f737.entry.js} +1 -1
  183. package/dist/mint-components/{p-4ea58025.system.entry.js → p-b7324c0e.system.entry.js} +1 -1
  184. package/dist/mint-components/{p-8b5b78ca.entry.js → p-b86003f6.entry.js} +1 -1
  185. package/dist/mint-components/{p-be4b748a.system.entry.js → p-baca1c93.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-711ba77e.system.entry.js → p-bd6d9d54.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-2ee2ebba.js → p-bda832b2.js} +2 -2
  188. package/dist/mint-components/{p-8704937c.js → p-c4719154.js} +1 -1
  189. package/dist/mint-components/{p-e3735866.entry.js → p-c89c890e.entry.js} +1 -1
  190. package/dist/mint-components/p-c98cd85a.system.entry.js +1 -0
  191. package/dist/mint-components/{p-44787d6e.system.js → p-ce5057f7.system.js} +1 -1
  192. package/dist/mint-components/p-cefffd56.system.entry.js +1 -0
  193. package/dist/mint-components/{p-58ef25d3.system.entry.js → p-d71ec46e.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-4d233cd4.js → p-da1e21f2.js} +1 -1
  195. package/dist/mint-components/{p-10685090.js → p-de0a29b2.js} +2 -2
  196. package/dist/mint-components/{p-aad11a68.entry.js → p-df2ada74.entry.js} +1 -1
  197. package/dist/mint-components/{p-03494732.entry.js → p-e169497d.entry.js} +1 -1
  198. package/dist/mint-components/{p-8679ed9f.system.entry.js → p-f99765fe.system.entry.js} +1 -1
  199. package/dist/mint-components/{p-af062c8f.system.entry.js → p-fc58dc2f.system.entry.js} +1 -1
  200. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +4 -10
  201. package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +27 -0
  202. package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +35 -0
  203. package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
  204. package/dist/types/components.d.ts +59 -15
  205. package/docs/docs.docx +0 -0
  206. package/docs/raisins.json +1 -1
  207. package/grapesjs/grapesjs.js +1 -1
  208. package/package.json +1 -1
  209. package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
  210. package/dist/mint-components/p-1c857edb.entry.js +0 -33
  211. package/dist/mint-components/p-770368bc.system.js +0 -1
  212. package/dist/mint-components/p-79191f88.entry.js +0 -1
  213. package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
  214. package/dist/mint-components/p-91669312.entry.js +0 -1
  215. package/dist/mint-components/p-95771f79.system.js +0 -1
  216. package/dist/mint-components/p-96242551.system.entry.js +0 -1
  217. package/dist/mint-components/p-9c310991.system.entry.js +0 -1
  218. package/dist/mint-components/p-a6a7dcaa.js +0 -1
  219. package/dist/mint-components/p-d5de2646.system.entry.js +0 -1
  220. package/dist/mint-components/p-d8e68e16.entry.js +0 -13
  221. package/dist/mint-components/p-e6d74386.system.entry.js +0 -1
  222. package/dist/mint-components/p-ed17e637.system.js +0 -1
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { S as Sn, i as isDemo } from './index.module-def4aec5.js';
3
+ import { S as Sn, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import './mixins-f60a614c.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-60ef06cc.js';
8
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-af40eedb.js';
9
9
 
10
10
  function useNavigationSidebarItem(props) {
11
11
  const currentPage = Sn();
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
3
- import { S as Sn, H } from './index.module-def4aec5.js';
3
+ import { S as Sn, H } from './index.module-48f73e70.js';
4
4
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
5
5
 
6
6
  const NavigationSidebar = class {
@@ -1,11 +1,11 @@
1
1
  import { h, r as registerInstance } from './index-17b4da69.js';
2
2
  import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as isDemo } from './index.module-def4aec5.js';
3
+ import { i as isDemo } from './index.module-48f73e70.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import { E as ErrorStyles } from './mixins-f60a614c.js';
6
6
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
- import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-9fc1ac80.js';
8
+ import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-de6b208e.js';
9
9
 
10
10
  var constants = {
11
11
  error: {
@@ -1,6 +1,6 @@
1
1
  import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
2
2
  import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import { B } from './index.module-def4aec5.js';
3
+ import { B } from './index.module-48f73e70.js';
4
4
  import { g as getProps } from './utils-334c1e34.js';
5
5
 
6
6
  const PopupContainerView = (props) => {
@@ -0,0 +1,217 @@
1
+ import { h, r as registerInstance } from './index-17b4da69.js';
2
+ import { k as useState, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
+ import './global-62554cef.js';
4
+ import { d as dist, Q, y as yn, e as $e, i as isDemo } from './index.module-48f73e70.js';
5
+ import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
+ import { c as cjs } from './cjs-bdfb4486.js';
7
+ import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
+ import { g as getProps } from './utils-334c1e34.js';
9
+ import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
10
+ import { C as CheckboxFieldView } from './sqm-checkbox-field-view-0ef58cb3.js';
11
+
12
+ function PortalProfileView(props) {
13
+ const { states, callbacks } = props;
14
+ const { text, formState } = states;
15
+ const { error } = formState;
16
+ const style = {
17
+ Container: {
18
+ display: "flex",
19
+ flexDirection: "column",
20
+ gap: "var(--sl-spacing-xxx-large)",
21
+ padding: "var(--sl-spacing-xxx-large)",
22
+ },
23
+ Error: {
24
+ "&::part(erroralert-base)": {
25
+ "margin-bottom": "15px",
26
+ },
27
+ },
28
+ };
29
+ const sheet = createStyleSheet(style);
30
+ const styleString = sheet.toString();
31
+ return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
32
+ h("style", { type: "text/css" }, styleString),
33
+ h(TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
34
+ h("sl-form", { "onSl-submit": callbacks.onSubmit },
35
+ h(CheckboxFieldView, { states: {
36
+ checked: states.formState.marketingEmailOptIn,
37
+ }, content: {
38
+ checkboxLabel: text.marketingCheckboxLabel,
39
+ checkboxName: "marketingEmailOptIn",
40
+ }, callbacks: {
41
+ setChecked: callbacks.setChecked,
42
+ } }),
43
+ h("sl-button", { type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
44
+ error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
45
+ h("div", { part: "erroralert-text" }, error))))));
46
+ }
47
+
48
+ const GET_USER = dist.gql `
49
+ query {
50
+ viewer {
51
+ ... on User {
52
+ id
53
+ accountId
54
+ marketingEmailOptIn
55
+ }
56
+ }
57
+ }
58
+ `;
59
+ const UPSERT_USER = dist.gql `
60
+ mutation ($userInput: UserInput!) {
61
+ upsertUser(userInput: $userInput) {
62
+ id
63
+ marketingEmailOptIn
64
+ }
65
+ }
66
+ `;
67
+ // view doesn't tolerate undefined, even when we're loading
68
+ const defaultFormState = {
69
+ marketingEmailOptIn: false,
70
+ errors: {},
71
+ error: "",
72
+ };
73
+ function usePortalProfile(props) {
74
+ const userIdent = Q();
75
+ const [success, setSuccess] = useState(false);
76
+ const [userData, setUserData] = useState(undefined);
77
+ const [formState, setFormState] = useState(defaultFormState);
78
+ const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
79
+ const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
80
+ useEffect(() => {
81
+ if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
82
+ return;
83
+ if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) {
84
+ setFormState((state) => {
85
+ var _a, _b, _c;
86
+ return ({
87
+ ...state,
88
+ error: (_c = (_b = (_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0].message,
89
+ });
90
+ });
91
+ }
92
+ else {
93
+ setUserData((state) => {
94
+ var _a;
95
+ return ({
96
+ ...state,
97
+ ...(_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data) === null || _a === void 0 ? void 0 : _a.upsertUser,
98
+ });
99
+ });
100
+ if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data)
101
+ setSuccess(true);
102
+ }
103
+ }, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading]);
104
+ useEffect(() => {
105
+ var _a, _b;
106
+ setUserData((data) => { var _a; return ({ ...data, ...(_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer }); });
107
+ setFormState({
108
+ ...defaultFormState,
109
+ ...(_a = userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer,
110
+ ...(_b = upsertUserResponse.data) === null || _b === void 0 ? void 0 : _b.upsertUser,
111
+ });
112
+ }, [userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data]);
113
+ useEffect(() => {
114
+ var _a, _b;
115
+ if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
116
+ setFormState({
117
+ ...(_b = userDataResponse.data) === null || _b === void 0 ? void 0 : _b.viewer,
118
+ error: props.networkRequestMessage,
119
+ });
120
+ }
121
+ }, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
122
+ const onSubmit = (event) => {
123
+ var _a;
124
+ setSuccess(false);
125
+ const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
126
+ formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
127
+ jsonpointer.set(formData, key, value);
128
+ });
129
+ upsertUser({
130
+ id: userIdent === null || userIdent === void 0 ? void 0 : userIdent.id,
131
+ accountId: userIdent === null || userIdent === void 0 ? void 0 : userIdent.accountId,
132
+ marketingEmailOptIn: formData.marketingEmailOptIn,
133
+ });
134
+ setFormState((s) => ({ ...s, errors: {}, error: "" }));
135
+ return;
136
+ };
137
+ return {
138
+ states: {
139
+ success,
140
+ loading: (userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.loading) || upsertUserResponse.loading,
141
+ submitDisabled: false,
142
+ formState,
143
+ user: userData,
144
+ text: {
145
+ emailPreferencesHeader: props.emailPreferencesHeader,
146
+ marketingCheckboxLabel: props.marketingCheckboxLabel,
147
+ submitChangeButtonText: props.submitChangeButtonText,
148
+ },
149
+ },
150
+ callbacks: {
151
+ onSubmit,
152
+ setChecked: (value) => setFormState({ ...formState, marketingEmailOptIn: value }),
153
+ },
154
+ };
155
+ }
156
+
157
+ const PortalChangeMarketing = class {
158
+ constructor(hostRef) {
159
+ registerInstance(this, hostRef);
160
+ this.ignored = true;
161
+ /**
162
+ * @uiName Email preferences header
163
+ */
164
+ this.emailPreferencesHeader = "Email preferences";
165
+ /**
166
+ * @uiName Marketing checkbox label
167
+ */
168
+ this.marketingCheckboxLabel = "I want to receive marketing emails and promotions for this referral program from impact.com";
169
+ /**
170
+ * @uiName Submit changes button text
171
+ */
172
+ this.submitChangeButtonText = "Save";
173
+ /**
174
+ * @uiName Network request error message
175
+ * Displayed when the page fails to load due to a network error. The participant can try refreshing the page.
176
+ */
177
+ this.networkRequestMessage = "An error occurred while loading this page. Please refresh the page.";
178
+ h$1(this);
179
+ }
180
+ disconnectedCallback() { }
181
+ render() {
182
+ const props = isDemo()
183
+ ? usePortalProfileDemo(getProps(this))
184
+ : usePortalProfile(getProps(this));
185
+ return h(PortalProfileView, Object.assign({}, props));
186
+ }
187
+ };
188
+ function usePortalProfileDemo(props) {
189
+ return cjs({
190
+ states: {
191
+ success: false,
192
+ loading: false,
193
+ submitDisabled: false,
194
+ user: {
195
+ id: "01",
196
+ accountId: "111100000",
197
+ marketingEmailOptIn: false,
198
+ },
199
+ text: {
200
+ emailPreferencesHeader: props.emailPreferencesHeader,
201
+ marketingCheckboxLabel: props.marketingCheckboxLabel,
202
+ submitChangeButtonText: props.submitChangeButtonText,
203
+ },
204
+ formState: {
205
+ marketingEmailOptIn: false,
206
+ errors: null,
207
+ error: "",
208
+ },
209
+ },
210
+ callbacks: {
211
+ onSubmit: (e) => console.log(e),
212
+ setChecked: () => { },
213
+ },
214
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
215
+ }
216
+
217
+ export { PortalChangeMarketing as sqm_portal_change_marketing };
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-04c7d3b5.js';
2
+ import { i as intl } from './global-62554cef.js';
3
3
  import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
4
4
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
5
5
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import './global-04c7d3b5.js';
4
- import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
3
+ import './global-62554cef.js';
4
+ import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-48f73e70.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-4307c992.js';
9
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-460bac1b.js';
10
10
 
11
11
  function usePortalEmailVerification(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { e as un, $ as $n, i as isDemo } from './index.module-def4aec5.js';
3
+ import { f as un, $ as $n, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-def4aec5.js';
3
+ import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-48f73e70.js';
4
4
 
5
5
  function usePortalLogout({ nextPage }) {
6
6
  setUserIdentity(undefined);
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-04c7d3b5.js';
2
+ import { i as intl } from './global-62554cef.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
5
5
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import './global-04c7d3b5.js';
4
- import { d as dist, Q, y as yn, f as $e, i as isDemo } from './index.module-def4aec5.js';
3
+ import './global-62554cef.js';
4
+ import { d as dist, Q, y as yn, e as $e, i as isDemo } from './index.module-48f73e70.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
10
- import { i as isEmpty } from './utilities-3f5bba22.js';
9
+ import { P as PortalProfileView } from './sqm-portal-profile-view-4caa9f28.js';
10
+ import { i as isEmpty } from './utilities-e8022681.js';
11
11
 
12
12
  const GET_USER = dist.gql `
13
13
  query {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
2
  import { f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-def4aec5.js';
3
+ import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-48f73e70.js';
4
4
 
5
5
  function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
6
6
  var _a;
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { d as dist, L, W as We, y as yn, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
3
+ import { d as dist, L, W as We, y as yn, $ as $n, u as useCallback, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
9
+ import { u as useRegistrationFormState } from './useRegistrationFormState-de6b208e.js';
10
10
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
11
11
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
12
12
 
@@ -57,6 +57,7 @@ function usePortalRegistrationForm(props) {
57
57
  const submit = async (event) => {
58
58
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
59
59
  let formControls = event.target.getFormControls();
60
+ console.log("Test 123");
60
61
  let formData = {};
61
62
  let validationErrors = {};
62
63
  formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
@@ -102,6 +103,7 @@ function usePortalRegistrationForm(props) {
102
103
  validationErrors: {},
103
104
  });
104
105
  const { email, password } = formData;
106
+ console.log("form data is ", formData);
105
107
  delete formData.email;
106
108
  delete formData.password;
107
109
  delete formData.confirmPassword;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { h as Qe, T as Te, $ as $n, i as isDemo } from './index.module-def4aec5.js';
3
+ import { h as Qe, T as Te, $ as $n, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-def4aec5.js';
3
+ import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import './mixins-f60a614c.js';
6
6
  import './JSS-67b5cff8.js';
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
2
2
  import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
4
- import { i as isDemo } from './index.module-def4aec5.js';
3
+ import { i as intl } from './global-62554cef.js';
4
+ import { i as isDemo } from './index.module-48f73e70.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
9
- import { a as useRequestRerender, u as useRerenderListener } from './re-render-12fd274a.js';
10
- import { u as useChildElements } from './useChildElements-32e1bda1.js';
9
+ import { a as useRequestRerender, u as useRerenderListener } from './re-render-cb4d43dc.js';
10
+ import { u as useChildElements } from './useChildElements-a6b895dd.js';
11
11
  import { l as luxon } from './luxon-7600be8d.js';
12
12
  import { g as getPaypalMeta } from './mockRewardData-0eb6e778.js';
13
- import { u as useReferralTable, t as tryMethod } from './useReferralTable-f4de0650.js';
13
+ import { u as useReferralTable, t as tryMethod } from './useReferralTable-6e8350db.js';
14
14
  import { l as luxonLocale } from './utils-334c1e34.js';
15
15
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
16
16
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as isDemo, b as setUserIdentity } from './index.module-def4aec5.js';
3
+ import { i as isDemo, b as setUserIdentity } from './index.module-48f73e70.js';
4
4
  import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
9
- import './useRegistrationFormState-9fc1ac80.js';
10
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
9
+ import './useRegistrationFormState-de6b208e.js';
10
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46a98499.js';
11
11
 
12
12
  const ReferredRegistration = class {
13
13
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import './index.module-def4aec5.js';
4
- import { a as useRequestRerender } from './re-render-12fd274a.js';
3
+ import './index.module-48f73e70.js';
4
+ import { a as useRequestRerender } from './re-render-cb4d43dc.js';
5
5
 
6
6
  const RewardTableCustomerNoteColumn = class {
7
7
  constructor(hostRef) {
@@ -1,16 +1,16 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
2
2
  import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
4
- import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-def4aec5.js';
3
+ import { i as intl } from './global-62554cef.js';
4
+ import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-48f73e70.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
9
- import { u as useRerenderListener, a as useRequestRerender } from './re-render-12fd274a.js';
10
- import { u as useChildElements } from './useChildElements-32e1bda1.js';
9
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-cb4d43dc.js';
10
+ import { u as useChildElements } from './useChildElements-a6b895dd.js';
11
11
  import { l as luxon } from './luxon-7600be8d.js';
12
12
  import { m as mockRewardData } from './mockRewardData-0eb6e778.js';
13
- import { g as generateUserError } from './useReferralTable-f4de0650.js';
13
+ import { g as generateUserError } from './useReferralTable-6e8350db.js';
14
14
  import { l as luxonLocale } from './utils-334c1e34.js';
15
15
 
16
16
  const debug = browser("sq:useRewardsTable");
@@ -1,12 +1,12 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
2
2
  import { a as commonjsGlobal, u as useMemo, k as useState, f as useEffect, c as createCommonjsModule, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import './global-04c7d3b5.js';
4
- import { $ as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-def4aec5.js';
3
+ import './global-62554cef.js';
4
+ import { $ as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-48f73e70.js';
5
5
  import './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
9
- import './useChildElements-32e1bda1.js';
9
+ import './useChildElements-a6b895dd.js';
10
10
  import { l as luxon } from './luxon-7600be8d.js';
11
11
  import './utils-334c1e34.js';
12
12
  import './sqm-text-span-view-8d140661.js';
@@ -17,17 +17,18 @@ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.j
17
17
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
18
18
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
19
19
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
20
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-60ef06cc.js';
21
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-4307c992.js';
20
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-af40eedb.js';
21
+ import { C as CheckboxFieldView } from './sqm-checkbox-field-view-0ef58cb3.js';
22
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-460bac1b.js';
22
23
  import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-c2ed8fed.js';
23
- import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
24
- import './utilities-3f5bba22.js';
24
+ import { P as PortalProfileView } from './sqm-portal-profile-view-4caa9f28.js';
25
+ import './utilities-e8022681.js';
25
26
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
26
27
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
27
28
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.js';
28
- import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-e012b2aa.js';
29
+ import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-272f75a5.js';
29
30
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
30
- import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-6e13a323.js';
31
+ import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-41a14ca6.js';
31
32
 
32
33
  /**
33
34
  * lodash (Custom Build) <https://lodash.com/>
@@ -10179,7 +10180,7 @@ const dashboardTemplate = "<sqm-portal-container direction=\"column\" padding=\"
10179
10180
 
10180
10181
  const leadSubmitTemplate = "<sqm-referral-iframe></sqm-referral-iframe>\n";
10181
10182
 
10182
- const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n";
10183
+ const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-marketing></sqm-portal-change-marketing>\n</sqm-portal-container>\n";
10183
10184
 
10184
10185
  const activityTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n></sqm-portal-container>\n";
10185
10186
 
@@ -10743,7 +10744,7 @@ const defaultProps$b = {
10743
10744
  checked: false,
10744
10745
  },
10745
10746
  content: {
10746
- checkboxName: "agree",
10747
+ checkboxName: "terms",
10747
10748
  checkboxLabel: "By signing up you agree to the {labelLink}",
10748
10749
  checkboxLabelLink: "https://example.com",
10749
10750
  checkboxLabelLinkText: "Terms and Conditions",
@@ -10841,7 +10842,7 @@ const CheckboxField = /*#__PURE__*/Object.freeze({
10841
10842
  TermsAndConditionsLongCustomLabel: TermsAndConditionsLongCustomLabel
10842
10843
  });
10843
10844
 
10844
- const scenario$k = "@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n A checkbox that is used to opt in for referral program marketing emails.\n\n Background: A user is on the portal registration page\n Given a user is viewing the \"/register\"\n And \"/register\" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | Marketing Emails Checkbox |\n \n @motivating\n Scenario: Checkbox is optional by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the form is submitted\n And there is no error for the checkbox\n\n Scenario: The form field name is provided by default\n Given the customer has added a marketing emails checkbox to their registration form\n Then the field name is automatically set to \"marketing-emails\"\n And the name is configurable \n\n\n\n ";
10845
+ const scenario$k = "@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n A checkbox that is used to opt in for referral program marketing emails.\n\n Background: A user is on the portal registration page\n Given a user is viewing the \"/register\"\n And \"/register\" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | Marketing Emails Checkbox |\n\n @motivating\n Scenario: Checkbox is optional by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the form is submitted\n And there is no error for the checkbox\n\n Scenario: The form field name is provided by default\n Given the customer has added a marketing emails checkbox to their registration form\n Then the field name is automatically set to \"marketingEmailOptIn\"\n And the name is not configurable";
10845
10846
 
10846
10847
  const MarketingEmailsCheckbox_stories = {
10847
10848
  title: "Components/Marketing Emails Checkbox",
@@ -1,7 +1,7 @@
1
1
  import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
2
2
  import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import './index.module-def4aec5.js';
4
- import { a as useRequestRerender } from './re-render-12fd274a.js';
3
+ import './index.module-48f73e70.js';
4
+ import { a as useRequestRerender } from './re-render-cb4d43dc.js';
5
5
 
6
6
  const TabView = ({}, children) => {
7
7
  return h(Host, null, children);
@@ -1,8 +1,8 @@
1
1
  import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
2
2
  import { u as useMemo, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import { _ } from './index.module-def4aec5.js';
4
- import { u as useRerenderListener } from './re-render-12fd274a.js';
5
- import { u as useChildElements } from './useChildElements-32e1bda1.js';
3
+ import { _ } from './index.module-48f73e70.js';
4
+ import { u as useRerenderListener } from './re-render-cb4d43dc.js';
5
+ import { u as useChildElements } from './useChildElements-a6b895dd.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
 
8
8
  const TabsView = ({ content, placement, }) => {
@@ -1,5 +1,5 @@
1
1
  import { k as useState, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
2
- import { _ } from './index.module-def4aec5.js';
2
+ import { _ } from './index.module-48f73e70.js';
3
3
 
4
4
  function useChildElements() {
5
5
  const host = _();
@@ -1,7 +1,7 @@
1
1
  import { k as useState } from './stencil-hooks.module-ac12ca1c.js';
2
- import { c as mn } from './index.module-def4aec5.js';
2
+ import { c as mn } from './index.module-48f73e70.js';
3
3
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
4
- import { u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
4
+ import { u as useRegistrationFormState } from './useRegistrationFormState-de6b208e.js';
5
5
 
6
6
  function useInstantAccessRegistration(props) {
7
7
  const cookie = new URLSearchParams(window.location.search);
@@ -1,8 +1,8 @@
1
1
  import { h } from './index-17b4da69.js';
2
2
  import { b as browser, j as useReducer, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
3
- import { d as dist, Q, H, L, y as yn, k as kn } from './index.module-def4aec5.js';
4
- import { u as useRerenderListener } from './re-render-12fd274a.js';
5
- import { u as useChildElements } from './useChildElements-32e1bda1.js';
3
+ import { d as dist, Q, H, L, y as yn, k as kn } from './index.module-48f73e70.js';
4
+ import { u as useRerenderListener } from './re-render-cb4d43dc.js';
5
+ import { u as useChildElements } from './useChildElements-a6b895dd.js';
6
6
 
7
7
  const debug = browser("sq:useReferralTable");
8
8
  const CSS_NAMESPACE = "sqm-referral-table";
@@ -1,5 +1,5 @@
1
1
  import { y } from './stencil-hooks.module-ac12ca1c.js';
2
- import { _ } from './index.module-def4aec5.js';
2
+ import { _ } from './index.module-48f73e70.js';
3
3
 
4
4
  const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
5
5
  function useRegistrationFormState(formState) {
@@ -1,5 +1,5 @@
1
1
  import { k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
2
- import { u as useCallback } from './index.module-def4aec5.js';
2
+ import { u as useCallback } from './index.module-48f73e70.js';
3
3
 
4
4
  // import { IntlMessageFormat } from 'intl-messageformat';
5
5
  function isMobile(breakPoint) {