@saasquatch/mint-components 1.12.1-1 → 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 (267) hide show
  1. package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-63b78308.js} +67 -137
  2. package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
  3. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/mint-components.cjs.js +3 -3
  6. package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +61 -61
  9. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +64 -69
  10. package/dist/cjs/sqm-checkbox-field-view-e0a31f2a.js +66 -0
  11. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
  13. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
  15. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  16. package/dist/cjs/{sqm-invoice-table-view-a9133a11.js → sqm-invoice-table-view-e3b03a00.js} +1 -1
  17. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  18. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
  19. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
  20. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  21. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
  24. package/dist/cjs/sqm-portal-change-marketing.cjs.entry.js +221 -0
  25. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
  26. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
  27. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  28. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
  29. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
  30. package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
  31. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  32. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -11
  33. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
  34. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
  35. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  36. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  37. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  38. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
  39. package/dist/cjs/sqm-stencilbook.cjs.entry.js +54 -53
  40. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  41. package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
  42. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
  43. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
  44. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
  45. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
  46. package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
  47. package/dist/collection/collection-manifest.json +1 -0
  48. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
  49. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
  50. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +12 -42
  51. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +39 -0
  52. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +191 -0
  53. package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +112 -0
  54. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +0 -4
  55. package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-272f75a5.js} +68 -137
  56. package/dist/esm/{global-6306a9b8.js → global-62554cef.js} +2 -2
  57. package/dist/esm/{index.module-6c840c4e.js → index.module-48f73e70.js} +3 -40
  58. package/dist/esm/loader.js +3 -3
  59. package/dist/esm/mint-components.js +3 -3
  60. package/dist/esm/{re-render-1bcfd0de.js → re-render-cb4d43dc.js} +4 -4
  61. package/dist/esm/sqm-asset-card.entry.js +1 -1
  62. package/dist/esm/sqm-banking-info-form_16.entry.js +61 -61
  63. package/dist/esm/sqm-big-stat_39.entry.js +62 -67
  64. package/dist/esm/sqm-checkbox-field-view-0ef58cb3.js +64 -0
  65. package/dist/esm/sqm-close-button.entry.js +1 -1
  66. package/dist/esm/sqm-context-router.entry.js +2 -2
  67. package/dist/esm/sqm-empty_4.entry.js +2 -2
  68. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
  69. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  70. package/dist/esm/{sqm-invoice-table-view-71915a5e.js → sqm-invoice-table-view-41a14ca6.js} +1 -1
  71. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  72. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  73. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-af40eedb.js} +2 -2
  74. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  75. package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
  76. package/dist/esm/sqm-password-field.entry.js +2 -2
  77. package/dist/esm/sqm-popup-container.entry.js +4 -4
  78. package/dist/esm/sqm-portal-change-marketing.entry.js +217 -0
  79. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
  80. package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
  81. package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
  82. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  83. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
  84. package/dist/esm/sqm-portal-profile.entry.js +7 -7
  85. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  86. package/dist/esm/sqm-portal-registration-form.entry.js +7 -11
  87. package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
  88. package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
  89. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  90. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  91. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  92. package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
  93. package/dist/esm/sqm-stencilbook.entry.js +49 -48
  94. package/dist/esm/sqm-tab.entry.js +2 -2
  95. package/dist/esm/sqm-tabs.entry.js +4 -4
  96. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-a6b895dd.js} +2 -2
  97. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46a98499.js} +3 -3
  98. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-6e8350db.js} +9 -9
  99. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-de6b208e.js} +2 -2
  100. package/dist/esm/{utilities-443732be.js → utilities-e8022681.js} +1 -1
  101. package/dist/esm-es5/ShadowViewAddon-272f75a5.js +1 -0
  102. package/dist/esm-es5/{global-6306a9b8.js → global-62554cef.js} +2 -2
  103. package/dist/esm-es5/index.module-48f73e70.js +1 -0
  104. package/dist/esm-es5/loader.js +1 -1
  105. package/dist/esm-es5/mint-components.js +1 -1
  106. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-cb4d43dc.js} +1 -1
  107. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  108. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  109. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  110. package/dist/esm-es5/sqm-checkbox-field-view-0ef58cb3.js +1 -0
  111. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  112. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  113. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  114. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  115. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-invoice-table-view-71915a5e.js → sqm-invoice-table-view-41a14ca6.js} +1 -1
  117. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  118. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  119. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-af40eedb.js} +1 -1
  120. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  121. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  122. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  123. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  124. package/dist/esm-es5/sqm-portal-change-marketing.entry.js +1 -0
  125. package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
  126. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  127. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  129. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
  130. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  131. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  132. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  133. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  134. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  135. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  136. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  137. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  138. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  139. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  140. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  141. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  142. package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-a6b895dd.js} +1 -1
  143. package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46a98499.js} +1 -1
  144. package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-6e8350db.js} +1 -1
  145. package/dist/esm-es5/useRegistrationFormState-de6b208e.js +1 -0
  146. package/dist/esm-es5/{utilities-443732be.js → utilities-e8022681.js} +1 -1
  147. package/dist/mint-components/mint-components.esm.js +1 -1
  148. package/dist/mint-components/mint-components.js +1 -1
  149. package/dist/mint-components/{p-9e0230c3.entry.js → p-0068067d.entry.js} +1 -1
  150. package/dist/mint-components/p-018088cc.entry.js +13 -0
  151. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-099c59cc.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-4babe350.system.js → p-0f010c01.system.js} +1 -1
  153. package/dist/mint-components/{p-f531a5c9.system.entry.js → p-0f30148d.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-36e9296e.system.entry.js → p-115edc43.system.entry.js} +1 -1
  155. package/dist/mint-components/{p-22425c71.system.entry.js → p-13976be9.system.entry.js} +1 -1
  156. package/dist/mint-components/p-175075e7.system.js +1 -0
  157. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-1bb2fd65.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-012daf3c.entry.js → p-1bdacfcb.entry.js} +1 -1
  159. package/dist/mint-components/{p-2816bf6a.js → p-1d803c85.js} +1 -1
  160. package/dist/mint-components/{p-17f56865.entry.js → p-1e0f4667.entry.js} +2 -2
  161. package/dist/mint-components/{p-8d554a89.system.js → p-1eb21821.system.js} +1 -1
  162. package/dist/mint-components/{p-51d53165.system.entry.js → p-215d9dce.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-84b25a46.entry.js → p-23112de2.entry.js} +1 -1
  164. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-2364eb2d.system.entry.js} +1 -1
  165. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-275b2841.system.entry.js} +1 -1
  166. package/dist/mint-components/p-29023a9c.entry.js +1 -0
  167. package/dist/mint-components/{p-5becb2ff.system.js → p-2a2d4343.system.js} +1 -1
  168. package/dist/mint-components/{p-cb38b9b0.system.entry.js → p-30797093.system.entry.js} +1 -1
  169. package/dist/mint-components/p-30f84f8b.system.js +1 -0
  170. package/dist/mint-components/p-32642d34.js +1 -0
  171. package/dist/mint-components/{p-6c928c7d.entry.js → p-3b08cc52.entry.js} +1 -1
  172. package/dist/mint-components/{p-acd77a6e.entry.js → p-3fefb1f4.entry.js} +8 -8
  173. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-44c3791a.system.entry.js} +1 -1
  174. package/dist/mint-components/p-481dedf2.system.js +1 -0
  175. package/dist/mint-components/p-48b07ec7.system.entry.js +1 -0
  176. package/dist/mint-components/{p-cb433855.system.entry.js → p-498c4ffd.system.entry.js} +1 -1
  177. package/dist/mint-components/p-4dcdf9b6.js +1 -0
  178. package/dist/mint-components/{p-0121e044.js → p-512089bb.js} +1 -1
  179. package/dist/mint-components/{p-f36e33ff.entry.js → p-513f79fb.entry.js} +2 -2
  180. package/dist/mint-components/p-52553737.system.entry.js +1 -0
  181. package/dist/mint-components/{p-03dbe2ce.entry.js → p-52acd113.entry.js} +1 -1
  182. package/dist/mint-components/{p-43621f12.system.js → p-57ea9c0b.system.js} +1 -1
  183. package/dist/mint-components/{p-a45b03d2.entry.js → p-59111d6c.entry.js} +1 -1
  184. package/dist/mint-components/{p-947fe79b.entry.js → p-5ab5131c.entry.js} +1 -1
  185. package/dist/mint-components/{p-4eae91a9.system.js → p-5da7c982.system.js} +1 -1
  186. package/dist/mint-components/{p-b8233366.entry.js → p-5de3473d.entry.js} +1 -1
  187. package/dist/mint-components/{p-94454880.entry.js → p-5f20200a.entry.js} +1 -1
  188. package/dist/mint-components/p-60bf4471.system.entry.js +1 -0
  189. package/dist/mint-components/{p-f4cbbe47.entry.js → p-64b25dd9.entry.js} +1 -1
  190. package/dist/mint-components/{p-4e373c3d.system.js → p-66d09e59.system.js} +1 -1
  191. package/dist/mint-components/{p-e12d3414.system.entry.js → p-670d441e.system.entry.js} +1 -1
  192. package/dist/mint-components/{p-bc826117.system.entry.js → p-68160d49.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-68747d88.js → p-6aed684b.js} +1 -1
  194. package/dist/mint-components/{p-fc422446.system.js → p-6f980faf.system.js} +1 -1
  195. package/dist/mint-components/p-711bb8da.entry.js +1 -0
  196. package/dist/mint-components/{p-cd44de66.system.js → p-74609159.system.js} +1 -1
  197. package/dist/mint-components/{p-4671e644.entry.js → p-74d012fc.entry.js} +1 -1
  198. package/dist/mint-components/p-7624c91a.entry.js +18 -0
  199. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-7726e4ea.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-0893073b.entry.js → p-778b55a5.entry.js} +1 -1
  201. package/dist/mint-components/{p-9d34f4f0.entry.js → p-7ab32670.entry.js} +1 -1
  202. package/dist/mint-components/{p-11d1b212.js → p-7eabcffc.js} +1 -1
  203. package/dist/mint-components/p-804de0cf.system.entry.js +1 -0
  204. package/dist/mint-components/{p-9ec008cb.system.entry.js → p-83df7db2.system.entry.js} +1 -1
  205. package/dist/mint-components/p-8e3390b6.entry.js +1 -0
  206. package/dist/mint-components/{p-76392386.entry.js → p-902770d7.entry.js} +1 -1
  207. package/dist/mint-components/{p-f450654b.system.entry.js → p-92b08cb2.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-94324315.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-5cd917db.js → p-98602fa9.js} +1 -1
  210. package/dist/mint-components/{p-d468925f.entry.js → p-9982db11.entry.js} +1 -1
  211. package/dist/mint-components/{p-5291891c.entry.js → p-9a520e94.entry.js} +2 -2
  212. package/dist/mint-components/{p-59818690.system.entry.js → p-9aa177d6.system.entry.js} +1 -1
  213. package/dist/mint-components/p-9b4a99c4.js +1 -0
  214. package/dist/mint-components/{p-ac51940e.system.js → p-9bb9a767.system.js} +1 -1
  215. package/dist/mint-components/p-a178a449.system.js +1 -0
  216. package/dist/mint-components/p-a6b36268.system.js +1 -0
  217. package/dist/mint-components/p-b07a88fd.js +1 -0
  218. package/dist/mint-components/{p-bee1e573.entry.js → p-b169229a.entry.js} +1 -1
  219. package/dist/mint-components/{p-04348a9b.js → p-b348d95c.js} +1 -1
  220. package/dist/mint-components/p-b5b9f737.entry.js +1 -0
  221. package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-b7324c0e.system.entry.js} +1 -1
  222. package/dist/mint-components/p-b86003f6.entry.js +1 -0
  223. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-baca1c93.system.entry.js} +1 -1
  224. package/dist/mint-components/{p-0c9ad5f3.system.entry.js → p-bd6d9d54.system.entry.js} +1 -1
  225. package/dist/mint-components/{p-1d27da33.js → p-bda832b2.js} +2 -2
  226. package/dist/mint-components/{p-d83b0cf3.js → p-c4719154.js} +1 -1
  227. package/dist/mint-components/{p-d35d8c06.entry.js → p-c89c890e.entry.js} +2 -2
  228. package/dist/mint-components/{p-a4282d02.system.entry.js → p-c98cd85a.system.entry.js} +1 -1
  229. package/dist/mint-components/{p-3cb18382.system.js → p-ce5057f7.system.js} +1 -1
  230. package/dist/mint-components/p-cefffd56.system.entry.js +1 -0
  231. package/dist/mint-components/{p-0527d90b.system.entry.js → p-d71ec46e.system.entry.js} +1 -1
  232. package/dist/mint-components/{p-e0e7635a.js → p-da1e21f2.js} +1 -1
  233. package/dist/mint-components/{p-b651706a.js → p-de0a29b2.js} +2 -2
  234. package/dist/mint-components/{p-fd21ae8f.entry.js → p-df2ada74.entry.js} +1 -1
  235. package/dist/mint-components/p-e169497d.entry.js +1 -0
  236. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-f99765fe.system.entry.js} +1 -1
  237. package/dist/mint-components/{p-04ced592.system.entry.js → p-fc58dc2f.system.entry.js} +1 -1
  238. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +3 -9
  239. package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +27 -0
  240. package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +35 -0
  241. package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
  242. package/dist/types/components.d.ts +59 -15
  243. package/docs/docs.docx +0 -0
  244. package/docs/raisins.json +1 -1
  245. package/grapesjs/grapesjs.js +1 -1
  246. package/package.json +1 -1
  247. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
  248. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  249. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  250. package/dist/mint-components/p-1279f7a3.system.entry.js +0 -1
  251. package/dist/mint-components/p-15a64357.entry.js +0 -13
  252. package/dist/mint-components/p-1b861be5.entry.js +0 -1
  253. package/dist/mint-components/p-2868f475.entry.js +0 -1
  254. package/dist/mint-components/p-6792c8d8.system.entry.js +0 -1
  255. package/dist/mint-components/p-93576222.system.js +0 -1
  256. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  257. package/dist/mint-components/p-a02afa72.system.js +0 -1
  258. package/dist/mint-components/p-b1e8a802.entry.js +0 -1
  259. package/dist/mint-components/p-b3e97f8a.system.entry.js +0 -1
  260. package/dist/mint-components/p-bdd6bb13.js +0 -1
  261. package/dist/mint-components/p-c3b37bbf.js +0 -1
  262. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  263. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  264. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  265. package/dist/mint-components/p-def516b8.system.js +0 -1
  266. package/dist/mint-components/p-f56348dc.system.entry.js +0 -1
  267. package/dist/mint-components/p-f655a7df.js +0 -1
@@ -0,0 +1,64 @@
1
+ import { h } from './index-17b4da69.js';
2
+ import { i as intl } from './global-62554cef.js';
3
+ import { j as jss, a as create } from './JSS-67b5cff8.js';
4
+
5
+ const style = {
6
+ ErrorStyle: {
7
+ "&::part(control)": {
8
+ background: "var(--sl-color-danger-10)",
9
+ borderColor: "var(--sl-color-danger-500)",
10
+ outline: "var(--sl-color-danger-500)",
11
+ },
12
+ "&:host": {
13
+ "--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
14
+ },
15
+ },
16
+ ErrorMessageStyle: {
17
+ margin: 0,
18
+ marginTop: "5px",
19
+ color: "var(--sl-color-danger-500)",
20
+ fontSize: "var(--sl-input-help-text-font-size-medium)",
21
+ fontFamily: "var(--sl-font-sans)",
22
+ fontWeight: "var(--sl-font-weight-normal)",
23
+ },
24
+ FieldContainer: {
25
+ "margin-bottom": "var(--sl-spacing-large)",
26
+ },
27
+ };
28
+ const vanillaStyle = `
29
+ :host {
30
+ margin: 0 auto;
31
+ width: 100%;
32
+ display: block;
33
+ }
34
+ sl-checkbox::part(label){
35
+ font-size: var(--sl-input-label-font-size-small);
36
+ font-weight: var(--sl-font-weight-normal);
37
+ line-height: 20px;
38
+ }
39
+ sl-checkbox::part(base){
40
+ align-items: start;
41
+ }
42
+ `;
43
+ jss.setup(create());
44
+ const sheet = jss.createStyleSheet(style);
45
+ const styleString = sheet.toString();
46
+ function CheckboxFieldView(props) {
47
+ var _b, _c;
48
+ const { states, content, callbacks } = props;
49
+ return (h("div", { class: sheet.classes.FieldContainer, part: "sqm-base" },
50
+ h("style", { type: "text/css" },
51
+ vanillaStyle,
52
+ styleString),
53
+ h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
54
+ e.target.value = e.target.checked;
55
+ callbacks.setChecked(e.target.value);
56
+ } }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), required: false }), intl.formatMessage({
57
+ id: content.checkboxName + "-message",
58
+ defaultMessage: content.checkboxLabel,
59
+ }, {
60
+ labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
61
+ }))));
62
+ }
63
+
64
+ export { CheckboxFieldView as C };
@@ -1,6 +1,6 @@
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 { g as getEnvironmentSDK } from './index.module-6c840c4e.js';
3
+ import { a as getEnvironmentSDK } from './index.module-48f73e70.js';
4
4
  import './mixins-f60a614c.js';
5
5
  import './JSS-67b5cff8.js';
6
6
  import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
2
  import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { T } from './index.module-6c840c4e.js';
3
+ import { _ } from './index.module-48f73e70.js';
4
4
  import { g as getProps } from './utils-334c1e34.js';
5
5
  import { p as pathToRegexp } from './index-ffa26b43.js';
6
6
 
@@ -12,7 +12,7 @@ function matchPath(pattern, page) {
12
12
  return regexp.exec(page);
13
13
  }
14
14
  function useContextRouter(props) {
15
- const host = T();
15
+ const host = _();
16
16
  const [slot, setSlot] = useState(undefined);
17
17
  const [container, setContainer] = useState(undefined);
18
18
  const context = props.contextName;
@@ -1,7 +1,7 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
2
2
  import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-6306a9b8.js';
4
- import './index.module-6c840c4e.js';
3
+ import { i as intl } from './global-62554cef.js';
4
+ import './index.module-48f73e70.js';
5
5
  import './JSS-67b5cff8.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
2
  import { o as m, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { B, k as ke, Y, $ as $e } from './index.module-6c840c4e.js';
3
+ import { J, E as Ee, z, P as Pe } from './index.module-48f73e70.js';
4
4
 
5
5
  async function useGraphQLClientProvider({ domain }) {
6
- const token = B();
6
+ const token = J();
7
7
  const appDomain = domain;
8
- const tenantAlias = Y();
8
+ const tenantAlias = z();
9
9
  // Memoization is shared. One client per domain, tenant and token (or null)
10
- const managedIdentityClient = ke(appDomain, tenantAlias, token);
11
- const [, setGraphQLClient] = m($e, managedIdentityClient);
10
+ const managedIdentityClient = Ee(appDomain, tenantAlias, token);
11
+ const [, setGraphQLClient] = m(Pe, managedIdentityClient);
12
12
  useEffect(() => {
13
13
  setGraphQLClient(managedIdentityClient);
14
14
  }, [managedIdentityClient]);
@@ -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, a as setUserIdentity } from './index.module-6c840c4e.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-849e27f7.js';
10
- import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-8b0a4556.js';
9
+ import './useRegistrationFormState-de6b208e.js';
10
+ import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46a98499.js';
11
11
 
12
12
  const InstantAccessRegistration = class {
13
13
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-6306a9b8.js';
2
+ import { i as intl } from './global-62554cef.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  const INDIRECT_TAX_PROVINCES = [
@@ -1,7 +1,7 @@
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 intl } from './global-6306a9b8.js';
4
- import { d as dist, z, K, E as En, i as isDemo } from './index.module-6c840c4e.js';
3
+ import { i as intl } from './global-62554cef.js';
4
+ import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-48f73e70.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
7
7
 
@@ -20,10 +20,10 @@ const GET_RANK = dist.gql `
20
20
  `;
21
21
  function useLeaderboardRank(props) {
22
22
  var _a, _b, _c, _d;
23
- const programIdContext = z();
23
+ const programIdContext = H();
24
24
  // Default to context, overriden by props
25
25
  const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
26
- const user = K();
26
+ const user = Q();
27
27
  const rankVariables = programId
28
28
  ? {
29
29
  type: props.leaderboardType,
@@ -36,7 +36,7 @@ function useLeaderboardRank(props) {
36
36
  if (props.interval) {
37
37
  rankVariables.filter["interval"] = props.interval;
38
38
  }
39
- const { data: rankData } = En(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
39
+ const { data: rankData } = yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
40
40
  const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
41
41
  rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
42
42
  })
@@ -1,6 +1,6 @@
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 { d as dist, K, E as En, a as setUserIdentity, i as isDemo } from './index.module-6c840c4e.js';
3
+ import { d as dist, Q, y as yn, b as setUserIdentity, i as isDemo } from './index.module-48f73e70.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
5
  import './JSS-67b5cff8.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
@@ -19,8 +19,8 @@ const GET_USER_DETAILS = dist.gql `
19
19
  `;
20
20
  function useLogoutCurrentUser(props) {
21
21
  var _a, _b;
22
- const user = K();
23
- const { loading, data } = En(GET_USER_DETAILS, {}, !user);
22
+ const user = Q();
23
+ const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
24
24
  const onSwitchClick = () => {
25
25
  setUserIdentity(undefined);
26
26
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { x as xn } from './index.module-6c840c4e.js';
2
+ import { $ as $n } from './index.module-48f73e70.js';
3
3
  import { g as gap } from './mixins-f60a614c.js';
4
4
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
5
5
 
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
33
33
  const styleString = sheet.toString();
34
34
  return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
35
35
  e.preventDefault();
36
- xn.push(data.path);
36
+ $n.push(data.path);
37
37
  }, class: sheet.classes.ItemContainer },
38
38
  h("style", { type: "text/css" }, styleString),
39
39
  h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
@@ -1,14 +1,14 @@
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 { j as jn, i as isDemo } from './index.module-6c840c4e.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-f8e78810.js';
8
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-af40eedb.js';
9
9
 
10
10
  function useNavigationSidebarItem(props) {
11
- const currentPage = jn();
11
+ const currentPage = Sn();
12
12
  return {
13
13
  states: {
14
14
  active: currentPage.pathname === props.path,
@@ -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 { j as jn, z } from './index.module-6c840c4e.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 {
@@ -16,8 +16,8 @@ const NavigationSidebar = class {
16
16
  }
17
17
  };
18
18
  function useNavigationSidebar() {
19
- const location = jn();
20
- const programId = z();
19
+ const location = Sn();
20
+ const programId = H();
21
21
  const [checked, setChecked] = useState(false);
22
22
  // Close hamburger menu after navigation
23
23
  useEffect(() => {
@@ -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-6c840c4e.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-849e27f7.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 { n as ne } from './index.module-6c840c4e.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) => {
@@ -14,10 +14,10 @@ const PopupContainerView = (props) => {
14
14
  };
15
15
 
16
16
  function usePopupContainer(props) {
17
- const engagementMedium = ne();
17
+ const engagementMedium = B();
18
18
  function closePopup() {
19
19
  var _a;
20
- if (ne() === "POPUP") {
20
+ if (B() === "POPUP") {
21
21
  (_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
22
22
  }
23
23
  }
@@ -31,7 +31,7 @@ function usePopupContainer(props) {
31
31
  ? "0"
32
32
  : `var(--sl-spacing-${props.embedPadding})`
33
33
  : "0";
34
- const padding = ne() === "POPUP" ? popupPadding : embedPadding;
34
+ const padding = B() === "POPUP" ? popupPadding : embedPadding;
35
35
  return {
36
36
  states: {
37
37
  showCloseButton: props.closeButton && engagementMedium === "POPUP",
@@ -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-6306a9b8.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,20 +1,20 @@
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-6306a9b8.js';
4
- import { h as hn, u as un, K, x as xn, b as useCallback, i as isDemo } from './index.module-6c840c4e.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-c6ac5430.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;
13
- const [request, { loading, data, errors }] = hn();
14
- const [getVerificationStatus, { data: user, loading: loadingVerification }] = un();
15
- const userIdent = K();
13
+ const [request, { loading, data, errors }] = ln();
14
+ const [getVerificationStatus, { data: user, loading: loadingVerification }] = nn();
15
+ const userIdent = Q();
16
16
  const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
17
- const urlParams = new URLSearchParams(xn.location.search);
17
+ const urlParams = new URLSearchParams($n.location.search);
18
18
  const nextPage = urlParams.get("nextPage");
19
19
  const [success, setSuccess] = useState(false);
20
20
  const [error, setError] = useState("");
@@ -44,7 +44,7 @@ function usePortalEmailVerification(props) {
44
44
  const data = (await getVerificationStatus());
45
45
  if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
46
46
  clearInterval(timerRef.current);
47
- return xn.push({
47
+ return $n.push({
48
48
  pathname: props.redirectPath,
49
49
  search: urlParams.toString() && "?" + urlParams.toString(),
50
50
  });
@@ -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 { v as vn, x as xn, i as isDemo } from './index.module-6c840c4e.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';
@@ -12,8 +12,8 @@ function usePortalForgotPassword(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g;
13
13
  const [success, setSuccess] = useState(false);
14
14
  const [error, setError] = useState("");
15
- const [request, { loading, data, errors }] = vn();
16
- const urlParams = new URLSearchParams(xn.location.search);
15
+ const [request, { loading, data, errors }] = un();
16
+ const urlParams = new URLSearchParams($n.location.search);
17
17
  const nextPage = urlParams.get("nextPage");
18
18
  const submit = async (event) => {
19
19
  var _a;
@@ -102,7 +102,7 @@ const PortalForgotPassword = class {
102
102
  ? usePortalForgotPasswordDemo(this)
103
103
  : usePortalForgotPassword(this);
104
104
  const content = {
105
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginText))),
105
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginText))),
106
106
  messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
107
107
  emailLabel: this.emailLabel,
108
108
  submitLabel: this.submitLabel,
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { a as setUserIdentity, x as xn, i as isDemo } from './index.module-6c840c4e.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);
7
- xn.push({ pathname: nextPage, search: "" });
7
+ $n.push({ pathname: nextPage, search: "" });
8
8
  }
9
9
 
10
10
  const PortalLogout = class {
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-6306a9b8.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-6306a9b8.js';
4
- import { d as dist, K, E as En, c as xe, i as isDemo } from './index.module-6c840c4e.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-15ddbec8.js';
10
- import { i as isEmpty } from './utilities-443732be.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 {
@@ -53,12 +53,12 @@ const defaultFormState = {
53
53
  error: "",
54
54
  };
55
55
  function usePortalProfile(props) {
56
- const userIdent = K();
56
+ const userIdent = Q();
57
57
  const [success, setSuccess] = useState(false);
58
58
  const [userData, setUserData] = useState(undefined);
59
59
  const [formState, setFormState] = useState(defaultFormState);
60
- const userDataResponse = En(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
61
- const [upsertUser, upsertUserResponse] = xe(UPSERT_USER);
60
+ const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
61
+ const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
62
62
  useEffect(() => {
63
63
  if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
64
64
  return;