@saasquatch/mint-components 1.6.2-1 → 1.6.2-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 (457) hide show
  1. package/dist/{esm/useValidationState-f9d1a9bf.js → cjs/AsYouType-6788393a.js} +2 -10
  2. package/dist/cjs/{GenericTableView-4921be4b.js → GenericTableView-47869553.js} +2 -2
  3. package/dist/cjs/{ShadowViewAddon-aa0e441d.js → ShadowViewAddon-0ce4871c.js} +28 -21
  4. package/dist/cjs/{global-021e3c7a.js → global-4e52f274.js} +5 -15
  5. package/dist/cjs/{index.module-6650575b.js → index.module-7972acac.js} +6658 -6307
  6. package/dist/cjs/loader.cjs.js +5 -5
  7. package/dist/cjs/{luxon-59ca7d19.js → luxon-479fc825.js} +1 -1
  8. package/dist/cjs/mint-components.cjs.js +5 -5
  9. package/dist/cjs/raisins-plop-target.cjs.entry.js +2 -5
  10. package/dist/cjs/{re-render-421592aa.js → re-render-99b2655c.js} +5 -5
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +5 -5
  12. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +119 -125
  13. package/dist/cjs/sqm-empty_5.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  16. package/dist/cjs/{sqm-hero-view-46223e34.js → sqm-hero-view-bc763ed2.js} +2 -2
  17. package/dist/cjs/sqm-hero.cjs.entry.js +5 -3
  18. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
  19. package/dist/cjs/{sqm-navigation-sidebar-item-view-958c8908.js → sqm-navigation-sidebar-item-view-b3ca14b4.js} +2 -2
  20. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -6
  21. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  22. package/dist/cjs/sqm-password-field.cjs.entry.js +16 -10
  23. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
  24. package/dist/cjs/{sqm-portal-email-verification-view-b685b780.js → sqm-portal-email-verification-view-f2a35e7c.js} +1 -1
  25. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -10
  26. package/dist/cjs/{sqm-portal-footer-view-9f7f3834.js → sqm-portal-footer-view-8eadb31d.js} +1 -1
  27. package/dist/cjs/sqm-portal-footer.cjs.entry.js +14 -5
  28. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +21 -10
  29. package/dist/cjs/sqm-portal-logout.cjs.entry.js +9 -7
  30. package/dist/cjs/{sqm-portal-profile-view-a6b0c4a7.js → sqm-portal-profile-view-730252e8.js} +1 -1
  31. package/dist/cjs/sqm-portal-profile.cjs.entry.js +13 -21
  32. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +13 -10
  33. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +93 -42
  34. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +17 -17
  35. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +32 -51
  36. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +13 -13
  37. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  38. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +25 -19
  40. package/dist/cjs/sqm-stencilbook.cjs.entry.js +105 -102
  41. package/dist/cjs/sqm-tab.cjs.entry.js +8 -0
  42. package/dist/cjs/sqm-tabs.cjs.entry.js +8 -6
  43. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  44. package/dist/cjs/{stencil-hooks.module-87a1f4f7.js → stencil-hooks.module-6fe43579.js} +1 -0
  45. package/dist/cjs/{use-callback-e754042f.js → use-callback-5d15897d.js} +1 -1
  46. package/dist/cjs/useChildElements-42a97f2a.js +32 -0
  47. package/dist/cjs/{useReferralTable-7909aa6b.js → useReferralTable-a985ce58.js} +10 -10
  48. package/dist/cjs/useRegistrationFormState-b7598d69.js +23 -0
  49. package/dist/collection/collection-manifest.json +1 -4
  50. package/dist/collection/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.js → raisins-plop-target/raisins-plop-target.js} +1 -6
  51. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +2 -2
  52. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +1 -1
  53. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
  54. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +8 -5
  55. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +1 -0
  56. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -1
  57. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +1 -1
  58. package/dist/collection/components/sqm-form-message/sqm-form-message.js +1 -0
  59. package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +1 -0
  60. package/dist/collection/components/sqm-hero/sqm-hero.js +9 -2
  61. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  62. package/dist/collection/components/sqm-image/sqm-image.js +1 -1
  63. package/dist/collection/components/sqm-input-field/sqm-input-field.js +4 -1
  64. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +9 -2
  65. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +5 -2
  66. package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -0
  67. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -3
  68. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +4 -1
  69. package/dist/collection/components/sqm-password-field/PasswordField.stories.js +3 -0
  70. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +7 -4
  71. package/dist/collection/components/sqm-password-field/sqm-password-field.js +5 -1
  72. package/dist/collection/components/sqm-password-field/usePasswordField.js +5 -2
  73. package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +3 -1
  74. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +7 -3
  75. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +2 -2
  76. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +9 -5
  77. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +37 -1
  78. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +60 -9
  79. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -0
  80. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -1
  81. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +44 -54
  82. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +6 -4
  83. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +13 -21
  84. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +10 -9
  85. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +24 -31
  86. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +16 -9
  87. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +52 -32
  88. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +52 -11
  89. package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +8 -0
  90. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +21 -21
  91. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +9 -9
  92. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +21 -40
  93. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
  94. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -2
  95. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
  96. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +8 -8
  97. package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -1
  98. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +15 -9
  99. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  100. package/dist/collection/components/sqm-route/sqm-route.js +2 -1
  101. package/dist/collection/components/sqm-router/sqm-router.js +2 -1
  102. package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -1
  103. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  104. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
  105. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -1
  106. package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
  107. package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +14 -2
  108. package/dist/collection/components/sqm-table-row/sqm-table-row.js +11 -1
  109. package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -3
  110. package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
  111. package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -3
  112. package/dist/collection/components/sqm-text/sqm-text.js +0 -7
  113. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  114. package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
  115. package/dist/collection/global/styles.js +2 -12
  116. package/dist/collection/global/styles.ts +2 -12
  117. package/dist/collection/tables/GenericTableView.js +2 -2
  118. package/dist/collection/tables/useChildElements.js +13 -4
  119. package/dist/{cjs/useValidationState-6a7e4f59.js → esm/AsYouType-46f67d0d.js} +1 -15
  120. package/dist/esm/{GenericTableView-59c5d47c.js → GenericTableView-10cac7d6.js} +2 -2
  121. package/dist/esm/{ShadowViewAddon-dba590a6.js → ShadowViewAddon-846aecda.js} +28 -21
  122. package/dist/esm/{global-d07f1376.js → global-44835899.js} +5 -15
  123. package/dist/esm/{index.module-f64d9e4c.js → index.module-132e274f.js} +6636 -6285
  124. package/dist/esm/loader.js +5 -5
  125. package/dist/esm/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
  126. package/dist/esm/mint-components.js +5 -5
  127. package/dist/esm/raisins-plop-target.entry.js +6 -9
  128. package/dist/esm/{re-render-a805b533.js → re-render-81cd3caa.js} +5 -5
  129. package/dist/esm/sqm-asset-card.entry.js +5 -5
  130. package/dist/esm/sqm-big-stat_35.entry.js +113 -119
  131. package/dist/esm/sqm-empty_5.entry.js +1 -1
  132. package/dist/esm/sqm-form-message.entry.js +1 -1
  133. package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
  134. package/dist/esm/{sqm-hero-view-93fac447.js → sqm-hero-view-9fb2be89.js} +2 -2
  135. package/dist/esm/sqm-hero.entry.js +5 -3
  136. package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
  137. package/dist/esm/{sqm-navigation-sidebar-item-view-2ed13955.js → sqm-navigation-sidebar-item-view-364af025.js} +2 -2
  138. package/dist/esm/sqm-navigation-sidebar-item.entry.js +6 -6
  139. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  140. package/dist/esm/sqm-password-field.entry.js +16 -10
  141. package/dist/esm/sqm-popup-container.entry.js +6 -6
  142. package/dist/esm/{sqm-portal-email-verification-view-527c54bd.js → sqm-portal-email-verification-view-5ac21bb4.js} +1 -1
  143. package/dist/esm/sqm-portal-email-verification.entry.js +11 -10
  144. package/dist/esm/{sqm-portal-footer-view-5af8c8de.js → sqm-portal-footer-view-f3a6eaed.js} +1 -1
  145. package/dist/esm/sqm-portal-footer.entry.js +14 -5
  146. package/dist/esm/sqm-portal-forgot-password.entry.js +21 -10
  147. package/dist/esm/sqm-portal-logout.entry.js +9 -7
  148. package/dist/esm/{sqm-portal-profile-view-878b75ff.js → sqm-portal-profile-view-630f05c8.js} +1 -1
  149. package/dist/esm/sqm-portal-profile.entry.js +13 -21
  150. package/dist/esm/sqm-portal-protected-route.entry.js +13 -10
  151. package/dist/esm/sqm-portal-registration-form.entry.js +91 -40
  152. package/dist/esm/sqm-portal-reset-password.entry.js +19 -19
  153. package/dist/esm/sqm-portal-verify-email.entry.js +32 -51
  154. package/dist/esm/sqm-referral-table_11.entry.js +13 -13
  155. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  156. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  157. package/dist/esm/sqm-rewards-table_9.entry.js +25 -19
  158. package/dist/esm/sqm-stencilbook.entry.js +105 -102
  159. package/dist/esm/sqm-tab.entry.js +8 -0
  160. package/dist/esm/sqm-tabs.entry.js +8 -6
  161. package/dist/esm/sqm-text-span.entry.js +1 -1
  162. package/dist/esm/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
  163. package/dist/esm/{use-callback-69ec5c5c.js → use-callback-684c8bb7.js} +1 -1
  164. package/dist/esm/useChildElements-9431f3e2.js +30 -0
  165. package/dist/esm/{useReferralTable-ff2e6347.js → useReferralTable-0516b6d5.js} +10 -10
  166. package/dist/esm/useRegistrationFormState-ebb08075.js +18 -0
  167. package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
  168. package/dist/esm-es5/{GenericTableView-59c5d47c.js → GenericTableView-10cac7d6.js} +1 -1
  169. package/dist/esm-es5/ShadowViewAddon-846aecda.js +1 -0
  170. package/dist/esm-es5/{global-d07f1376.js → global-44835899.js} +2 -2
  171. package/dist/esm-es5/index.module-132e274f.js +1 -0
  172. package/dist/esm-es5/loader.js +1 -1
  173. package/dist/esm-es5/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
  174. package/dist/esm-es5/mint-components.js +1 -1
  175. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  176. package/dist/esm-es5/{re-render-a805b533.js → re-render-81cd3caa.js} +1 -1
  177. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  178. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  179. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  180. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  181. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  182. package/dist/esm-es5/{sqm-hero-view-93fac447.js → sqm-hero-view-9fb2be89.js} +1 -1
  183. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  184. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  185. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-2ed13955.js → sqm-navigation-sidebar-item-view-364af025.js} +1 -1
  186. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  187. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  188. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  189. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  190. package/dist/esm-es5/{sqm-portal-email-verification-view-527c54bd.js → sqm-portal-email-verification-view-5ac21bb4.js} +1 -1
  191. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  192. package/dist/esm-es5/{sqm-portal-footer-view-5af8c8de.js → sqm-portal-footer-view-f3a6eaed.js} +1 -1
  193. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  194. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  195. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  196. package/dist/esm-es5/{sqm-portal-profile-view-878b75ff.js → sqm-portal-profile-view-630f05c8.js} +1 -1
  197. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  198. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  199. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  200. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  201. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  202. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  203. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  204. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  205. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  206. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  207. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  208. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  209. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  210. package/dist/esm-es5/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
  211. package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
  212. package/dist/esm-es5/useChildElements-9431f3e2.js +1 -0
  213. package/dist/esm-es5/useReferralTable-0516b6d5.js +1 -0
  214. package/dist/esm-es5/useRegistrationFormState-ebb08075.js +1 -0
  215. package/dist/mint-components/global/styles.ts +2 -12
  216. package/dist/mint-components/mint-components.esm.js +1 -1
  217. package/dist/mint-components/mint-components.js +1 -1
  218. package/dist/mint-components/{p-16beb451.system.entry.js → p-00d4636f.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-b22b94ac.js → p-0148c516.js} +1 -1
  220. package/dist/mint-components/p-06f56536.js +1 -0
  221. package/dist/mint-components/{p-82e5167e.system.entry.js → p-07d424a2.system.entry.js} +1 -1
  222. package/dist/mint-components/p-088d3b4a.system.entry.js +1 -0
  223. package/dist/mint-components/p-0b1d703d.entry.js +1 -0
  224. package/dist/mint-components/p-0d482ad4.js +1 -0
  225. package/dist/mint-components/p-0d49d56d.js +1 -0
  226. package/dist/mint-components/{p-e907c45c.system.js → p-0e441a14.system.js} +1 -1
  227. package/dist/mint-components/{p-7ce9b6f0.entry.js → p-0f4c1e0e.entry.js} +3 -3
  228. package/dist/mint-components/p-121cdc60.js +1 -0
  229. package/dist/mint-components/{p-fd05df17.system.js → p-136325c0.system.js} +1 -1
  230. package/dist/mint-components/p-162fca19.js +1 -0
  231. package/dist/mint-components/p-1c21b5d1.js +1 -0
  232. package/dist/mint-components/{p-f6aaa05d.js → p-1c40d459.js} +4 -4
  233. package/dist/mint-components/p-1cc3dfe5.system.js +1 -0
  234. package/dist/mint-components/{p-eded5687.system.entry.js → p-1f6fdeda.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-89d8133d.entry.js → p-222e5418.entry.js} +1 -1
  236. package/dist/mint-components/p-2383eadd.system.entry.js +1 -0
  237. package/dist/mint-components/p-242bd74b.entry.js +9 -0
  238. package/dist/mint-components/{p-788e20c2.system.js → p-292857fd.system.js} +1 -1
  239. package/dist/mint-components/p-2dce26fa.system.entry.js +1 -0
  240. package/dist/mint-components/{p-433f243c.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-698756dd.system.entry.js → p-3d0dc005.system.entry.js} +1 -1
  242. package/dist/mint-components/p-3f43b39c.entry.js +1 -0
  243. package/dist/mint-components/p-436779be.js +1 -0
  244. package/dist/mint-components/{p-e2bf9132.system.js → p-446a0805.system.js} +1 -1
  245. package/dist/mint-components/{p-66d4a1de.system.js → p-4935076f.system.js} +1 -1
  246. package/dist/mint-components/p-4ce8e325.system.entry.js +1 -0
  247. package/dist/mint-components/{p-27a8ee57.system.entry.js → p-50553269.system.entry.js} +1 -1
  248. package/dist/mint-components/{p-52aeaa53.entry.js → p-50afa774.entry.js} +1 -1
  249. package/dist/mint-components/p-51102b8f.entry.js +13 -0
  250. package/dist/mint-components/{p-68f8fc59.system.js → p-519dc03b.system.js} +1 -1
  251. package/dist/mint-components/{p-50cb9888.js → p-52a2beaf.js} +1 -1
  252. package/dist/mint-components/{p-78c7b4b7.js → p-538904bd.js} +1 -1
  253. package/dist/mint-components/{p-26ae2b6b.system.js → p-53aef3ba.system.js} +2 -2
  254. package/dist/mint-components/p-574ba520.system.js +1 -0
  255. package/dist/mint-components/{p-e09f76b7.system.js → p-5d292177.system.js} +1 -1
  256. package/dist/mint-components/{p-b18c9d88.entry.js → p-63101d0c.entry.js} +1 -1
  257. package/dist/mint-components/{p-9bac73dc.system.js → p-684aadb5.system.js} +1 -1
  258. package/dist/mint-components/{p-59167300.entry.js → p-703f4552.entry.js} +12 -12
  259. package/dist/mint-components/p-73681688.system.entry.js +1 -0
  260. package/dist/mint-components/p-7c3e3cb4.entry.js +1 -0
  261. package/dist/mint-components/{p-c8b5a819.js → p-7dea8d9a.js} +1 -1
  262. package/dist/mint-components/{p-b60e43ec.system.entry.js → p-7f4b0ba0.system.entry.js} +1 -1
  263. package/dist/mint-components/p-83d4885d.entry.js +99 -0
  264. package/dist/mint-components/{p-d7d007fb.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
  265. package/dist/mint-components/p-89fc4544.system.js +1 -0
  266. package/dist/mint-components/{p-dd627dd0.entry.js → p-8a2c78e0.entry.js} +1 -1
  267. package/dist/mint-components/p-8b7a19d3.system.entry.js +1 -0
  268. package/dist/mint-components/p-8c4bcbc6.entry.js +1 -0
  269. package/dist/mint-components/{p-5a5c9039.system.entry.js → p-8d6a2a61.system.entry.js} +1 -1
  270. package/dist/mint-components/p-90dfce36.entry.js +1 -0
  271. package/dist/mint-components/p-92110eef.entry.js +1 -0
  272. package/dist/mint-components/p-99397ef5.system.js +1 -0
  273. package/dist/mint-components/p-9d362d44.system.js +1 -0
  274. package/dist/mint-components/p-9f596d8d.system.entry.js +1 -0
  275. package/dist/mint-components/{p-a3f87461.entry.js → p-a1acdbb4.entry.js} +1 -1
  276. package/dist/mint-components/p-a395bae0.entry.js +1 -0
  277. package/dist/mint-components/{p-a6291305.system.entry.js → p-a4335cb5.system.entry.js} +1 -1
  278. package/dist/mint-components/{p-45c2d208.system.entry.js → p-af3b56d3.system.entry.js} +1 -1
  279. package/dist/mint-components/{p-dce5643a.js → p-afcf252c.js} +2 -2
  280. package/dist/mint-components/p-b2e7ca31.system.entry.js +1 -0
  281. package/dist/mint-components/{p-82536ec7.entry.js → p-b3d7d353.entry.js} +1 -1
  282. package/dist/mint-components/{p-a8c7d22f.entry.js → p-b52109dd.entry.js} +1 -1
  283. package/dist/mint-components/p-b593a42e.system.entry.js +1 -0
  284. package/dist/mint-components/p-bb9dadd3.system.entry.js +1 -0
  285. package/dist/mint-components/p-bc2cf095.entry.js +1 -0
  286. package/dist/mint-components/{p-09582767.system.entry.js → p-bed78bee.system.entry.js} +1 -1
  287. package/dist/mint-components/p-c01e754d.system.entry.js +1 -0
  288. package/dist/mint-components/p-c4e22786.system.js +1 -0
  289. package/dist/mint-components/{p-ae5b1a9a.js → p-c627c865.js} +2 -2
  290. package/dist/mint-components/{p-cc6f7cb5.entry.js → p-ca08cf71.entry.js} +1 -1
  291. package/dist/mint-components/p-cac0e237.entry.js +1 -0
  292. package/dist/mint-components/{p-c88cb982.entry.js → p-ce6f7e0e.entry.js} +1 -1
  293. package/dist/mint-components/{p-d1aef95c.entry.js → p-ceeeb344.entry.js} +1 -1
  294. package/dist/mint-components/{p-29f82c6d.system.entry.js → p-ceefa54a.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-0b94ee0c.entry.js → p-d08b59df.entry.js} +2 -2
  296. package/dist/mint-components/p-d21ccfa1.entry.js +1 -0
  297. package/dist/mint-components/p-d307abaa.entry.js +1 -0
  298. package/dist/mint-components/{p-8a0cf4be.system.js → p-d4ee07e6.system.js} +2 -2
  299. package/dist/mint-components/p-d5c94703.entry.js +1 -0
  300. package/dist/mint-components/{p-e7bf8047.js → p-d64a0bc1.js} +1 -1
  301. package/dist/mint-components/p-dbfb865e.js +1 -0
  302. package/dist/mint-components/p-dc37fe51.system.js +1 -0
  303. package/dist/mint-components/{p-e81e451e.system.entry.js → p-df2b4e11.system.entry.js} +1 -1
  304. package/dist/mint-components/{p-c7797ffe.system.js → p-e0fa9595.system.js} +1 -1
  305. package/dist/mint-components/{p-1644c8e4.js → p-e733843b.js} +1 -1
  306. package/dist/mint-components/{p-f09e5077.system.entry.js → p-e8d07dfa.system.entry.js} +1 -1
  307. package/dist/mint-components/p-f3eaabf8.system.entry.js +1 -0
  308. package/dist/mint-components/{p-04342637.entry.js → p-f54b436e.entry.js} +1 -1
  309. package/dist/mint-components/{p-95543e61.system.entry.js → p-f5e601b0.system.entry.js} +1 -1
  310. package/dist/mint-components/p-f8863064.system.entry.js +1 -0
  311. package/dist/types/components/raisins-plop-target/raisins-plop-target.d.ts +9 -0
  312. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
  313. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -2
  314. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -0
  315. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +5 -1
  316. package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +1 -1
  317. package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
  318. package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +1 -0
  319. package/dist/types/components/sqm-hero/sqm-hero.d.ts +3 -2
  320. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
  321. package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
  322. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +4 -1
  323. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -0
  324. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
  325. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +2 -0
  326. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -3
  327. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +4 -1
  328. package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +2 -0
  329. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +6 -1
  330. package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +3 -1
  331. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +3 -2
  332. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +2 -2
  333. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -3
  334. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +10 -1
  335. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +14 -5
  336. package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -0
  337. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +2 -1
  338. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +13 -26
  339. package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +4 -2
  340. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +5 -13
  341. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +7 -3
  342. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +13 -14
  343. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +2 -0
  344. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +19 -14
  345. package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +2 -0
  346. package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +17 -0
  347. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +10 -10
  348. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +5 -5
  349. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
  350. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -2
  351. package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
  352. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -3
  353. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +3 -3
  354. package/dist/types/components/sqm-route/sqm-route.d.ts +2 -1
  355. package/dist/types/components/sqm-router/sqm-router.d.ts +2 -1
  356. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -1
  357. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
  358. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
  359. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
  360. package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
  361. package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +6 -0
  362. package/dist/types/components/sqm-table-row/sqm-table-row.d.ts +7 -0
  363. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -3
  364. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -2
  365. package/dist/types/components/sqm-text/sqm-text.d.ts +0 -7
  366. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  367. package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
  368. package/dist/types/components.d.ts +214 -719
  369. package/dist/types/global/styles.d.ts +1 -1
  370. package/docs/docs.docx +0 -0
  371. package/docs/raisins.json +1 -1
  372. package/grapesjs/grapesjs.js +1 -1
  373. package/package.json +5 -4
  374. package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +0 -89
  375. package/dist/cjs/sqm-qa-tabs.cjs.entry.js +0 -100
  376. package/dist/cjs/sqm-qa.cjs.entry.js +0 -112
  377. package/dist/cjs/useChildElements-161f4899.js +0 -23
  378. package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
  379. package/dist/collection/assets/saasquatch-logo-wide.jpeg +0 -0
  380. package/dist/collection/assets/saasquatch-logo.png +0 -0
  381. package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1038
  382. package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +0 -79
  383. package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +0 -56
  384. package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +0 -70
  385. package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +0 -491
  386. package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +0 -31
  387. package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +0 -59
  388. package/dist/collection/components/sqm-qa-tabs/useTabs.js +0 -46
  389. package/dist/esm/sqm-qa-referral-card.entry.js +0 -85
  390. package/dist/esm/sqm-qa-tabs.entry.js +0 -96
  391. package/dist/esm/sqm-qa.entry.js +0 -108
  392. package/dist/esm/useChildElements-c26c601d.js +0 -21
  393. package/dist/esm-es5/ShadowViewAddon-dba590a6.js +0 -1
  394. package/dist/esm-es5/index.module-f64d9e4c.js +0 -1
  395. package/dist/esm-es5/sqm-qa-referral-card.entry.js +0 -1
  396. package/dist/esm-es5/sqm-qa-tabs.entry.js +0 -1
  397. package/dist/esm-es5/sqm-qa.entry.js +0 -1
  398. package/dist/esm-es5/use-callback-69ec5c5c.js +0 -1
  399. package/dist/esm-es5/useChildElements-c26c601d.js +0 -1
  400. package/dist/esm-es5/useReferralTable-ff2e6347.js +0 -1
  401. package/dist/esm-es5/useValidationState-f9d1a9bf.js +0 -1
  402. package/dist/mint-components/p-02388c5b.system.entry.js +0 -1
  403. package/dist/mint-components/p-05bc51fd.system.entry.js +0 -1
  404. package/dist/mint-components/p-0626cb73.js +0 -1
  405. package/dist/mint-components/p-14911a74.js +0 -1
  406. package/dist/mint-components/p-18bb324a.js +0 -1
  407. package/dist/mint-components/p-1e132e9b.entry.js +0 -1
  408. package/dist/mint-components/p-2a056bc0.entry.js +0 -1
  409. package/dist/mint-components/p-2b25d0d6.js +0 -1
  410. package/dist/mint-components/p-34bc2c5a.system.entry.js +0 -1
  411. package/dist/mint-components/p-35741c5c.system.js +0 -1
  412. package/dist/mint-components/p-3a621348.system.js +0 -1
  413. package/dist/mint-components/p-3a62e293.js +0 -1
  414. package/dist/mint-components/p-3a967b5d.system.entry.js +0 -1
  415. package/dist/mint-components/p-3da83662.system.entry.js +0 -1
  416. package/dist/mint-components/p-4198e94e.entry.js +0 -1
  417. package/dist/mint-components/p-43cdfe9b.system.entry.js +0 -1
  418. package/dist/mint-components/p-46ed891a.entry.js +0 -1
  419. package/dist/mint-components/p-4c2cec5c.system.entry.js +0 -1
  420. package/dist/mint-components/p-4c93df52.entry.js +0 -1
  421. package/dist/mint-components/p-4d31c11c.entry.js +0 -99
  422. package/dist/mint-components/p-505d8965.system.entry.js +0 -1
  423. package/dist/mint-components/p-571835e1.system.entry.js +0 -1
  424. package/dist/mint-components/p-6611741a.entry.js +0 -1
  425. package/dist/mint-components/p-6c661f42.system.js +0 -1
  426. package/dist/mint-components/p-6ea95c5e.system.entry.js +0 -1
  427. package/dist/mint-components/p-7102315f.entry.js +0 -1
  428. package/dist/mint-components/p-8217d5a2.entry.js +0 -1
  429. package/dist/mint-components/p-85339263.entry.js +0 -1
  430. package/dist/mint-components/p-8be5d9f4.system.entry.js +0 -1
  431. package/dist/mint-components/p-8d17170f.system.js +0 -1
  432. package/dist/mint-components/p-963c56e6.system.entry.js +0 -1
  433. package/dist/mint-components/p-99389e40.entry.js +0 -9
  434. package/dist/mint-components/p-a0197667.entry.js +0 -1
  435. package/dist/mint-components/p-ba306ce6.system.entry.js +0 -1
  436. package/dist/mint-components/p-c2b5997d.entry.js +0 -1
  437. package/dist/mint-components/p-c38b22d6.entry.js +0 -1
  438. package/dist/mint-components/p-c3d728b0.system.entry.js +0 -1
  439. package/dist/mint-components/p-c9977e50.system.entry.js +0 -1
  440. package/dist/mint-components/p-ca2819e8.system.js +0 -1
  441. package/dist/mint-components/p-cc330970.entry.js +0 -1
  442. package/dist/mint-components/p-cdabe7a8.js +0 -1
  443. package/dist/mint-components/p-dec7a657.entry.js +0 -1
  444. package/dist/mint-components/p-e0140005.system.entry.js +0 -1
  445. package/dist/mint-components/p-e6c1a0a6.entry.js +0 -1
  446. package/dist/mint-components/p-e742d610.entry.js +0 -1
  447. package/dist/mint-components/p-f2e52e81.system.js +0 -1
  448. package/dist/mint-components/p-f7c85612.js +0 -1
  449. package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -250
  450. package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +0 -14
  451. package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +0 -9
  452. package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +0 -20
  453. package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +0 -15
  454. package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +0 -9
  455. package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +0 -23
  456. package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +0 -9
  457. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts +0 -11
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
7
- require('./global-021e3c7a.js');
8
- require('./use-callback-e754042f.js');
9
- const index_module = require('./index.module-6650575b.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
7
+ require('./global-4e52f274.js');
8
+ require('./use-callback-5d15897d.js');
9
+ const index_module = require('./index.module-7972acac.js');
10
10
  require('./extends-08099afd.js');
11
11
  const cjs = require('./cjs-1066ec21.js');
12
12
  require('./JSS-97fd087e.js');
13
13
  const utils = require('./utils-6847bc06.js');
14
14
  require('./sqm-text-span-view-2c7d94b5.js');
15
15
  require('./sqm-portal-container-view-840db620.js');
16
- const sqmPortalProfileView = require('./sqm-portal-profile-view-a6b0c4a7.js');
16
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-730252e8.js');
17
17
 
18
18
  const GET_USER = index_module.dist.gql `
19
19
  query {
@@ -59,12 +59,12 @@ const defaultFormState = {
59
59
  error: "",
60
60
  };
61
61
  function usePortalProfile(props) {
62
- const userIdent = index_module.ae();
62
+ const userIdent = index_module._();
63
63
  const [success, setSuccess] = stencilHooks_module.useState(false);
64
64
  const [userData, setUserData] = stencilHooks_module.useState(undefined);
65
65
  const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
66
- const userDataResponse = index_module.wn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
67
- const [upsertUser, upsertUserResponse] = index_module.je(UPSERT_USER);
66
+ const userDataResponse = index_module.dn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
67
+ const [upsertUser, upsertUserResponse] = index_module.Ie(UPSERT_USER);
68
68
  stencilHooks_module.useEffect(() => {
69
69
  if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
70
70
  return;
@@ -167,27 +167,19 @@ const PortalProfile = class {
167
167
  index.registerInstance(this, hostRef);
168
168
  this.ignored = true;
169
169
  /**
170
- * First name input field label
171
- *
172
170
  * @uiName First Name Label
173
171
  */
174
172
  this.firstnametext = "First Name";
175
173
  /**
176
- * Last name input field label
177
- *
178
- * @uiName Last Name Label
174
+ * @uiName Last Name Field Label
179
175
  */
180
176
  this.lastnametext = "Last Name";
181
177
  /**
182
- * Email input field label
183
- *
184
- * @uiName Email Label
178
+ * @uiName Email Field Label
185
179
  */
186
180
  this.emailtext = "Email";
187
181
  /**
188
- * Country input field label
189
- *
190
- * @uiName Country Label
182
+ * @uiName Country Field Label
191
183
  */
192
184
  this.countrytext = "Country";
193
185
  /**
@@ -203,7 +195,7 @@ const PortalProfile = class {
203
195
  */
204
196
  this.submitChangeButtonText = "Submit Changes";
205
197
  /**
206
- * Show or hide the country field
198
+ * Show or hide the country field.
207
199
  *
208
200
  * @uiName Show Country Field
209
201
  */
@@ -212,7 +204,7 @@ const PortalProfile = class {
212
204
  }
213
205
  disconnectedCallback() { }
214
206
  render() {
215
- const props = index_module.L()
207
+ const props = index_module.isDemo()
216
208
  ? usePortalProfileDemo(utils.getProps(this))
217
209
  : usePortalProfile(utils.getProps(this));
218
210
  return index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, props));
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
7
- require('./use-callback-e754042f.js');
8
- const index_module = require('./index.module-6650575b.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
7
+ require('./use-callback-5d15897d.js');
8
+ const index_module = require('./index.module-7972acac.js');
9
9
  require('./extends-08099afd.js');
10
10
 
11
11
  function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
12
12
  var _a;
13
- const userIdent = index_module.ae();
13
+ const userIdent = index_module._();
14
14
  const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
15
15
  const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
16
- const { pathname, search } = index_module.Fn();
16
+ const { pathname, search } = index_module.gn();
17
17
  const nextPageParam = new URLSearchParams();
18
18
  nextPageParam.append("nextPage", `${pathname}${search}`);
19
19
  stencilHooks_module.useEffect(() => {
20
20
  if (!authenticated) {
21
- return index_module.In.push({
21
+ return index_module.vn.push({
22
22
  pathname: redirectTo,
23
23
  search: "?" + nextPageParam.toString(),
24
24
  });
25
25
  }
26
26
  if (requireEmailVerification && !emailVerified) {
27
- return index_module.In.push({
27
+ return index_module.vn.push({
28
28
  pathname: redirectToUnverified || redirectTo,
29
29
  search: "?" + nextPageParam.toString(),
30
30
  });
@@ -38,23 +38,26 @@ const PortalProtectedRoute = class {
38
38
  index.registerInstance(this, hostRef);
39
39
  this.ignored = true;
40
40
  /**
41
+ * Redirect participants to this path they are not logged in.
42
+ *
41
43
  * @uiName Redirect Path
42
44
  */
43
45
  this.redirectTo = "/";
44
46
  /**
45
47
  * @uiName Require Email Verification
46
- * @default
47
48
  */
48
49
  this.requireEmailVerification = false;
49
50
  /**
50
- * @uiName Redirect Unverified Users Path
51
+ * Redirect participants to this path when email verification is required but they have not verified their email.
52
+ *
53
+ * @uiName Unverified Participant Redirect Path
51
54
  */
52
55
  this.redirectToUnverified = "/emailVerification";
53
56
  stencilHooks_module.h$1(this);
54
57
  }
55
58
  disconnectedCallback() { }
56
59
  render() {
57
- const hasUser = index_module.L()
60
+ const hasUser = index_module.isDemo()
58
61
  ? usePortalProtectedRouteDemo()
59
62
  : usePortalProtectedRoute(this);
60
63
  return (index.h(index.Host, { style: { display: hasUser ? "contents" : "none" } }, index.h("slot", null)));
@@ -3,16 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
7
- const useCallback = require('./use-callback-e754042f.js');
8
- const index_module = require('./index.module-6650575b.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
7
+ const useCallback = require('./use-callback-5d15897d.js');
8
+ const index_module = require('./index.module-7972acac.js');
9
9
  require('./extends-08099afd.js');
10
10
  const jsonpointer = require('./jsonpointer-11327262.js');
11
11
  const cjs = require('./cjs-1066ec21.js');
12
12
  const mixins = require('./mixins-fe9d4112.js');
13
13
  const JSS = require('./JSS-97fd087e.js');
14
14
  const sqmTextSpanView = require('./sqm-text-span-view-2c7d94b5.js');
15
- const useValidationState = require('./useValidationState-6a7e4f59.js');
15
+ const AsYouType = require('./AsYouType-6788393a.js');
16
+ const useRegistrationFormState = require('./useRegistrationFormState-b7598d69.js');
16
17
 
17
18
  const style = {
18
19
  Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
@@ -43,7 +44,7 @@ sqm-portal-register {
43
44
  const sheet = JSS.createStyleSheet(style);
44
45
  const styleString = sheet.toString();
45
46
  function PortalRegistrationFormView(props) {
46
- var _a, _b, _c, _d, _e, _f, _g, _h;
47
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
47
48
  const { states, refs, callbacks, content } = props;
48
49
  if (states.error) {
49
50
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
@@ -54,10 +55,11 @@ function PortalRegistrationFormView(props) {
54
55
  styleString),
55
56
  index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
56
57
  index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
57
- states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
58
- index.h("div", { part: "erroralert-text" }, props.states.error))),
58
+ ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.disabled) ? (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
59
+ index.h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
60
+ index.h("div", { part: "erroralert-text" }, props.states.error)))),
59
61
  content.formData,
60
- !states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
62
+ !states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
61
63
  if (!value) {
62
64
  return "Cannot be empty";
63
65
  }
@@ -65,31 +67,67 @@ function PortalRegistrationFormView(props) {
65
67
  if (!value.includes("@")) {
66
68
  return "Must be a valid email address";
67
69
  }
68
- } }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
70
+ } }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.email) ? {
71
+ value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.email,
72
+ }
73
+ : {}), (((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
69
74
  class: sheet.classes.ErrorStyle,
70
- helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
75
+ helpText: ((_k = (_j = states.validationState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
71
76
  "Cannot be empty",
72
77
  }
73
78
  : [])))),
74
79
  !states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
75
80
  content.passwordField,
76
- !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
81
+ !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_m = (_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.initialData) === null || _m === void 0 ? void 0 : _m.confirmPassword) ? {
82
+ value: (_p = (_o = states.registrationFormState) === null || _o === void 0 ? void 0 : _o.initialData) === null || _p === void 0 ? void 0 : _p.confirmPassword,
83
+ }
84
+ : {}), (((_r = (_q = states.validationState) === null || _q === void 0 ? void 0 : _q.validationErrors) === null || _r === void 0 ? void 0 : _r.confirmPassword) ? {
77
85
  class: sheet.classes.ErrorStyle,
78
- helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
86
+ helpText: ((_t = (_s = states.validationState) === null || _s === void 0 ? void 0 : _s.validationErrors) === null || _t === void 0 ? void 0 : _t.confirmPassword) ||
79
87
  "Cannot be empty",
80
88
  }
81
89
  : [])))),
82
90
  content.terms,
83
91
  index.h("div", { class: sheet.classes.ButtonsContainer },
84
- index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
92
+ index.h("sl-button", { submit: true, loading: states.loading, disabled: (_u = states.registrationFormState) === null || _u === void 0 ? void 0 : _u.disabled, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
85
93
  content.secondaryButton))));
86
94
  }
87
95
 
96
+ const RegistrationFormQuery = index_module.dist.gql `
97
+ query RegistrationFormQuery($key: String!) {
98
+ form(key: $key) {
99
+ key
100
+ type
101
+ initialData {
102
+ initialData
103
+ isEnabled
104
+ isEnabledErrorMessage
105
+ }
106
+ }
107
+ }
108
+ `;
88
109
  function usePortalRegistrationForm(props) {
89
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
110
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
90
111
  const formRef = stencilHooks_module.useRef(null);
91
- const { validationState, setValidationState } = useValidationState.useValidationState({});
92
- const [request, { loading, errors, data, formError }] = index_module.We();
112
+ const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
113
+ const { validationState, setValidationState } = useRegistrationFormState.useValidationState({});
114
+ const [request, { loading, errors, data, formError }] = index_module.Re();
115
+ const queryResponse = index_module.dn(RegistrationFormQuery, { key: props.formKey });
116
+ const formLoading = loading || queryResponse.loading;
117
+ stencilHooks_module.useEffect(() => {
118
+ var _a, _b, _c;
119
+ const initialData = (_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData.initialData;
120
+ const disabled = ((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false;
121
+ const disabledMessage = ((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
122
+ "The registration form is currently disabled.";
123
+ const formState = {
124
+ loading: formLoading,
125
+ disabled,
126
+ disabledMessage,
127
+ initialData,
128
+ };
129
+ setRegistrationFormState(formState);
130
+ }, [(_a = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _a === void 0 ? void 0 : _a.form.initialData, formLoading]);
93
131
  const submit = async (event) => {
94
132
  let formControls = event.target.getFormControls();
95
133
  let formData = {};
@@ -99,6 +137,7 @@ function usePortalRegistrationForm(props) {
99
137
  return;
100
138
  const key = control.name;
101
139
  const value = control.value;
140
+ // control.value = initialData[key] || control.value;
102
141
  jsonpointer.jsonpointer.set(formData, key, value);
103
142
  // required validation
104
143
  if (control.required && !value) {
@@ -128,13 +167,15 @@ function usePortalRegistrationForm(props) {
128
167
  delete formData.email;
129
168
  delete formData.password;
130
169
  delete formData.confirmPassword;
131
- formData = { ...formData };
132
170
  const redirectPath = props.redirectPath;
133
171
  const variables = {
134
- email,
135
- password,
136
- formData,
137
- redirectPath,
172
+ key: props.formKey,
173
+ formData: {
174
+ email,
175
+ password,
176
+ redirectPath,
177
+ ...formData,
178
+ },
138
179
  };
139
180
  try {
140
181
  await request(variables);
@@ -148,7 +189,7 @@ function usePortalRegistrationForm(props) {
148
189
  const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
149
190
  if (name !== "tel")
150
191
  return;
151
- const asYouType = new useValidationState.AsYouType("US");
192
+ const asYouType = new AsYouType.AsYouType("US");
152
193
  e.target.value = asYouType.input(e.target.value);
153
194
  }, []);
154
195
  stencilHooks_module.useEffect(() => {
@@ -158,7 +199,7 @@ function usePortalRegistrationForm(props) {
158
199
  managedIdentityResponse.result.results.length &&
159
200
  managedIdentityResponse.result.results[0].success &&
160
201
  managedIdentityResponse.result.results[0].data.token) {
161
- index_module.In.push(props.nextPage);
202
+ index_module.vn.push(props.nextPage);
162
203
  }
163
204
  }, [data === null || data === void 0 ? void 0 : data.submitForm]);
164
205
  stencilHooks_module.useEffect(() => {
@@ -171,21 +212,27 @@ function usePortalRegistrationForm(props) {
171
212
  };
172
213
  }, [formRef.current]);
173
214
  let errorMessage = "";
174
- if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
215
+ if (((_b = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _b === void 0 ? void 0 : _b.form.initialData.isEnabled) === false) {
216
+ errorMessage =
217
+ ((_c = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.data) === null || _c === void 0 ? void 0 : _c.form.initialData.isEnabledErrorMessage) ||
218
+ "The registration form is disabled";
219
+ }
220
+ else if ((_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d["error"]) {
175
221
  errorMessage = "Network request failed";
176
222
  }
177
- else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
223
+ else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors.length)) {
178
224
  errorMessage = "Network request failed";
179
225
  }
180
226
  else {
181
227
  errorMessage =
182
- formError || ((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
228
+ formError || ((_j = (_h = (_g = (_f = queryResponse === null || queryResponse === void 0 ? void 0 : queryResponse.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || ((_o = (_m = (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.response) === null || _k === void 0 ? void 0 : _k.errors) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.extensions) === null || _o === void 0 ? void 0 : _o.message) || ((_r = (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.response) === null || _p === void 0 ? void 0 : _p.errors) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
183
229
  }
184
230
  return {
185
231
  states: {
186
- loading,
232
+ loading: loading || queryResponse.loading,
187
233
  error: errorMessage,
188
234
  validationState,
235
+ registrationFormState,
189
236
  confirmPassword: props.confirmPassword,
190
237
  hideInputs: props.hideInputs,
191
238
  loginPath: props.loginPath,
@@ -205,23 +252,23 @@ const PortalRegistrationForm = class {
205
252
  index.registerInstance(this, hostRef);
206
253
  this.ignored = true;
207
254
  /**
208
- * Page navigated to after registration
255
+ * Page participants are navigated to after registration.
209
256
  *
210
- * @uiName Next Page
257
+ * @uiName Registration Redirect Path
211
258
  */
212
259
  this.nextPage = "/";
213
260
  /**
214
- * The page that users are redirected to from the verification email.
261
+ * The page that participants are redirected to from the verification email.
215
262
  *
216
- * @uiName Email Redirection Base Path
263
+ * @uiName Email Redirection Path
217
264
  */
218
265
  this.redirectPath = "/verifyEmail";
219
266
  /**
220
- * @uiName Email Label
267
+ * @uiName Email Field Label
221
268
  */
222
269
  this.emailLabel = "Email";
223
270
  /**
224
- * @uiName Password Label
271
+ * @uiName Password Field Label
225
272
  */
226
273
  this.passwordLabel = "Password";
227
274
  /**
@@ -237,10 +284,9 @@ const PortalRegistrationForm = class {
237
284
  */
238
285
  this.confirmPasswordLabel = "Confirm Password";
239
286
  /**
240
- * Show or hide the confirm password input
287
+ * Show or hide the confirm password input.
241
288
  *
242
289
  * @uiName Show Confirm Password Field
243
- * @default
244
290
  */
245
291
  this.confirmPassword = false;
246
292
  /**
@@ -248,32 +294,37 @@ const PortalRegistrationForm = class {
248
294
  */
249
295
  this.enablePasswordValidation = true;
250
296
  /**
251
- * Hide default input fields to use custom fields
297
+ * Hide default input fields to use custom fields.
252
298
  *
253
299
  * @uiName Hide Default Inputs
254
- * @default
255
300
  */
256
301
  this.hideInputs = false;
257
302
  /**
258
- * @uiName Heading Label
303
+ * @uiName Header Text
259
304
  */
260
305
  this.pageLabel = "Register";
261
306
  /**
262
- * Login button redirection path
307
+ * Login button redirection path.
263
308
  *
264
- * @uiName Login Path
309
+ * @uiName Login Redirect Path
265
310
  */
266
311
  this.loginPath = "/login";
312
+ /**
313
+ * Microsite Registration Form Key
314
+ *
315
+ * @uiName Form Key
316
+ */
317
+ this.formKey = "microsite-registration-form";
267
318
  stencilHooks_module.h$1(this);
268
319
  }
269
320
  disconnectedCallback() { }
270
321
  render() {
271
- const { states, callbacks, refs } = index_module.L()
322
+ const { states, callbacks, refs } = index_module.isDemo()
272
323
  ? useRegisterDemo(this)
273
324
  : usePortalRegistrationForm(this);
274
325
  const content = {
275
326
  formData: index.h("slot", { name: "formData" }),
276
- secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.In.push(states.loginPath) }, this.loginLabel))),
327
+ secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.vn.push(states.loginPath) }, this.loginLabel))),
277
328
  terms: index.h("slot", { name: "terms" }),
278
329
  emailLabel: this.emailLabel,
279
330
  passwordLabel: this.passwordLabel,
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
7
- require('./use-callback-e754042f.js');
8
- const index_module = require('./index.module-6650575b.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
7
+ require('./use-callback-5d15897d.js');
8
+ const index_module = require('./index.module-7972acac.js');
9
9
  require('./extends-08099afd.js');
10
10
  const jsonpointer = require('./jsonpointer-11327262.js');
11
11
  const cjs = require('./cjs-1066ec21.js');
@@ -19,8 +19,8 @@ function usePortalResetPassword(props) {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
20
20
  const [reset, setReset] = stencilHooks_module.useState(false);
21
21
  const [error, setError] = stencilHooks_module.useState("");
22
- const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module.Ke();
23
- const [resetPassword, resetPasswordState] = index_module.Ge();
22
+ const [verifyPasswordResetCode, verifyPasswordResetCodeState] = index_module._e();
23
+ const [resetPassword, resetPasswordState] = index_module.Ne();
24
24
  const urlParams = new URLSearchParams(window.location.search);
25
25
  const oobCode = urlParams.get("oobCode");
26
26
  urlParams.delete("oobCode");
@@ -41,10 +41,10 @@ function usePortalResetPassword(props) {
41
41
  const gotoNextPage = () => {
42
42
  urlParams.delete("nextPage");
43
43
  const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
44
- index_module.In.push(url.href);
44
+ index_module.vn.push(url.href);
45
45
  };
46
46
  const failed = () => {
47
- index_module.In.push({
47
+ index_module.vn.push({
48
48
  pathname: props.failedPage,
49
49
  search: urlParams.toString() && "?" + urlParams.toString(),
50
50
  });
@@ -100,22 +100,21 @@ const PortalResetPassword = class {
100
100
  index.registerInstance(this, hostRef);
101
101
  this.ignored = true;
102
102
  /**
103
- * The page that users are redirected to when the password reset succeeds.
103
+ * The page that participants are redirected to when the password reset succeeds.
104
104
  *
105
- * @uiName Next Page Path
105
+ * @uiName Reset Successful Redirect Path
106
106
  */
107
107
  this.nextPage = "/";
108
108
  /**
109
- * The page that users are redirected to if the reset fails due to outdated password reset attempt.
109
+ * The page that participants are redirected to if the reset fails due to outdated password reset attempt.
110
110
  *
111
- * @uiName Failed Page Path
111
+ * @uiName Reset Failed Redirect Path
112
112
  */
113
113
  this.failedPage = "/";
114
114
  /**
115
- * Show or hide confirm password field
115
+ * Show or hide confirm password field.
116
116
  *
117
117
  * @uiName Show Confirm Password
118
- * @default
119
118
  */
120
119
  this.confirmPassword = false;
121
120
  /**
@@ -123,9 +122,10 @@ const PortalResetPassword = class {
123
122
  */
124
123
  this.resetPasswordHeader = "Reset your password";
125
124
  /**
126
- * Displayed after a successful password reset
125
+ * Displayed after a successful password reset.
127
126
  *
128
127
  * @uiName Successful Password Reset Text
128
+ * @uiWidget textArea
129
129
  */
130
130
  this.passwordResetHeader = "Password reset";
131
131
  /**
@@ -133,13 +133,13 @@ const PortalResetPassword = class {
133
133
  */
134
134
  this.resetPasswordButtonText = "Reset Password";
135
135
  /**
136
- * Button text displayed after a successful password reset
136
+ * Button text displayed after a successful password reset.
137
137
  *
138
138
  * @uiName Continue Button Text
139
139
  */
140
140
  this.continueButtonText = "Continue";
141
141
  /**
142
- * @uiName Confirm Password Label
142
+ * @uiName Password Comfirmation Label
143
143
  */
144
144
  this.confirmPasswordFieldLabel = "Confirm Password";
145
145
  /**
@@ -150,7 +150,7 @@ const PortalResetPassword = class {
150
150
  }
151
151
  disconnectedCallback() { }
152
152
  render() {
153
- const { states, callbacks } = index_module.L()
153
+ const { states, callbacks } = index_module.isDemo()
154
154
  ? usePortalResetPasswordDemo(this)
155
155
  : usePortalResetPassword(this);
156
156
  return index.h(sqmPortalResetPasswordView.PortalResetPasswordView, { states: states, callbacks: callbacks });