@saasquatch/mint-components 1.15.0-3 → 1.15.0-30

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 (437) hide show
  1. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-925a0842.js} +3 -3
  2. package/dist/cjs/{ShadowViewAddon-787391f7.js → ShadowViewAddon-93071495.js} +444 -411
  3. package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-f0702822.js} +54 -39
  4. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-37b44222.js} +1 -1
  5. package/dist/cjs/{global-e31dc4f5.js → global-e1930bce.js} +186 -28
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/mint-components.cjs.js +2 -2
  8. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  9. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +8 -45
  10. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
  11. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +290 -115
  12. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-b297e933.js} +1 -1
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +50 -49
  16. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-2e737286.js} +1 -1
  18. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  19. package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-10b62df1.js} +18 -7
  20. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +26 -3
  21. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
  22. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
  23. package/dist/cjs/sqm-pagination_3.cjs.entry.js +86 -59
  24. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  25. package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-d65ef736.js} +3 -3
  26. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  27. package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-fdd97c18.js} +24 -17
  28. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +25 -4
  29. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -3
  30. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +4 -4
  31. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-8cb284d2.js} +2 -2
  32. package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-21a99152.js} +3 -3
  33. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  34. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
  35. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
  36. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
  37. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  38. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  40. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-3da9ed28.js} +2 -7
  41. package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
  42. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +4 -6
  43. package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
  44. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  45. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  46. package/dist/cjs/sqm-stencilbook.cjs.entry.js +144 -29
  47. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -4
  48. package/dist/cjs/sqm-text-span-view-ce4c0178.js +63 -0
  49. package/dist/cjs/sqm-text-span.cjs.entry.js +4 -4
  50. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  51. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
  52. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
  53. package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
  54. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
  55. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  56. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
  57. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  58. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +58 -1
  59. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  60. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  61. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
  62. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
  63. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  64. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  65. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +59 -54
  66. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -32
  67. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  68. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  69. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +1 -4
  70. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
  71. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  72. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +17 -6
  73. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  74. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  75. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  76. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
  77. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +7 -4
  78. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  79. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +22 -15
  80. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +95 -2
  81. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  82. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +103 -2
  83. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  84. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  85. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  86. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +11 -3
  87. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  88. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  89. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
  90. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +75 -0
  91. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  92. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
  93. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  94. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  95. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  96. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
  97. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
  98. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  99. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  100. package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
  101. package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
  102. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
  103. package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
  104. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
  105. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  106. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  107. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  108. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +7 -2
  109. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  110. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
  111. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
  112. package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
  113. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  114. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  115. package/dist/collection/components/sqm-text/sqm-text.js +100 -48
  116. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  117. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  118. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  119. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  120. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  121. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -12
  122. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -15
  123. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -11
  124. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -2
  125. package/dist/collection/components/views/copy-text-view.js +53 -38
  126. package/dist/collection/global/mixins.js +8 -8
  127. package/dist/collection/global/styles.js +186 -28
  128. package/dist/collection/global/styles.ts +186 -28
  129. package/dist/collection/tables/GenericTableView.js +2 -2
  130. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +3 -3
  131. package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-b6997735.js} +444 -411
  132. package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-3f41072a.js} +54 -39
  133. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
  134. package/dist/esm/{global-be1f9992.js → global-3c495429.js} +186 -28
  135. package/dist/esm/loader.js +2 -2
  136. package/dist/esm/mint-components.js +2 -2
  137. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  138. package/dist/esm/sqm-banking-info-form_17.entry.js +8 -45
  139. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
  140. package/dist/esm/sqm-big-stat_41.entry.js +290 -115
  141. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  142. package/dist/esm/sqm-close-button.entry.js +2 -2
  143. package/dist/esm/sqm-email-verification.entry.js +2 -2
  144. package/dist/esm/sqm-empty_4.entry.js +50 -49
  145. package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
  146. package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
  147. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  148. package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-6e046743.js} +18 -7
  149. package/dist/esm/sqm-navigation-sidebar-item.entry.js +26 -3
  150. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
  151. package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
  152. package/dist/esm/sqm-pagination_3.entry.js +86 -59
  153. package/dist/esm/sqm-password-field.entry.js +1 -1
  154. package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +3 -3
  155. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  156. package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-55fc0873.js} +24 -17
  157. package/dist/esm/sqm-portal-forgot-password.entry.js +25 -4
  158. package/dist/esm/sqm-portal-google-login.entry.js +3 -3
  159. package/dist/esm/sqm-portal-google-registration-form.entry.js +4 -4
  160. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +2 -2
  161. package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +3 -3
  162. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  163. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
  164. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  165. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
  166. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  167. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
  168. package/dist/esm/sqm-portal-verify-email.entry.js +3 -3
  169. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +2 -7
  170. package/dist/esm/sqm-qr-code.entry.js +1 -1
  171. package/dist/esm/sqm-referral-table_11.entry.js +4 -6
  172. package/dist/esm/sqm-referred-registration.entry.js +2 -2
  173. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  174. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  175. package/dist/esm/sqm-stencilbook.entry.js +144 -29
  176. package/dist/esm/sqm-tabs.entry.js +9 -4
  177. package/dist/esm/sqm-text-span-view-cd3902e5.js +61 -0
  178. package/dist/esm/sqm-text-span.entry.js +4 -4
  179. package/dist/esm-es5/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +1 -1
  180. package/dist/esm-es5/ShadowViewAddon-b6997735.js +1 -0
  181. package/dist/esm-es5/copy-text-view-3f41072a.js +1 -0
  182. package/dist/esm-es5/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
  183. package/dist/esm-es5/{global-be1f9992.js → global-3c495429.js} +4 -4
  184. package/dist/esm-es5/loader.js +1 -1
  185. package/dist/esm-es5/mint-components.js +1 -1
  186. package/dist/esm-es5/mixins-f750863a.js +1 -0
  187. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
  189. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  190. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  191. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  192. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  193. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  194. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  195. package/dist/esm-es5/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
  196. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  197. package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +1 -0
  198. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  199. package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.js +1 -0
  200. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  201. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  202. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +1 -1
  204. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  205. package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +1 -0
  206. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  207. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  208. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +1 -1
  210. package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +1 -1
  211. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  212. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
  213. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  214. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
  215. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  216. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
  217. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +1 -1
  219. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  220. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  221. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  222. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  223. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  224. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  225. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  226. package/dist/esm-es5/sqm-text-span-view-cd3902e5.js +1 -0
  227. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  228. package/dist/mint-components/global/styles.ts +186 -28
  229. package/dist/mint-components/mint-components.esm.js +1 -1
  230. package/dist/mint-components/mint-components.js +1 -1
  231. package/dist/mint-components/p-042642d3.entry.js +1 -0
  232. package/dist/mint-components/{p-91ab3da1.js → p-057f5402.js} +1 -1
  233. package/dist/mint-components/{p-e5d0375e.system.js → p-0df294ad.system.js} +1 -1
  234. package/dist/mint-components/p-10586a3f.js +1 -0
  235. package/dist/mint-components/{p-99ad7d56.system.js → p-223dd3f7.system.js} +1 -1
  236. package/dist/mint-components/p-24cedc6c.system.js +1 -0
  237. package/dist/mint-components/p-2927748b.system.js +1 -0
  238. package/dist/mint-components/{p-837a0fdd.js → p-294f6682.js} +1 -1
  239. package/dist/mint-components/{p-aad32fb6.system.js → p-38de17fa.system.js} +1 -1
  240. package/dist/mint-components/p-3a21f8f9.system.entry.js +1 -0
  241. package/dist/mint-components/{p-19bc3406.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-164a9103.system.entry.js → p-41d051b1.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-90fc6774.system.entry.js → p-457962b7.system.entry.js} +1 -1
  244. package/dist/mint-components/p-46a672e4.entry.js +1 -0
  245. package/dist/mint-components/p-49b20dae.js +1 -0
  246. package/dist/mint-components/{p-380bfde1.entry.js → p-4b42b756.entry.js} +1 -1
  247. package/dist/mint-components/{p-2dca9e1a.system.js → p-4b9789a2.system.js} +1 -1
  248. package/dist/mint-components/p-4e4b84bb.system.entry.js +1 -0
  249. package/dist/mint-components/{p-b75bb6e3.system.js → p-505951d2.system.js} +1 -1
  250. package/dist/mint-components/p-54b0b768.system.js +1 -0
  251. package/dist/mint-components/p-56f3427d.system.js +1 -0
  252. package/dist/mint-components/{p-10d17989.entry.js → p-576d3b4a.entry.js} +1 -1
  253. package/dist/mint-components/{p-5d7e308c.system.entry.js → p-5973487a.system.entry.js} +1 -1
  254. package/dist/mint-components/p-5c5964e0.js +1 -0
  255. package/dist/mint-components/p-5d407714.system.entry.js +1 -0
  256. package/dist/mint-components/{p-a2fde301.entry.js → p-5ef6de10.entry.js} +1 -1
  257. package/dist/mint-components/{p-ff8b8067.entry.js → p-61dec887.entry.js} +1 -1
  258. package/dist/mint-components/p-66a2b1a4.js +1 -0
  259. package/dist/mint-components/p-6798cad1.system.js +1 -0
  260. package/dist/mint-components/{p-65069b66.js → p-69d60453.js} +22 -22
  261. package/dist/mint-components/p-6b0fa3a2.entry.js +1 -0
  262. package/dist/mint-components/{p-50c902ca.system.entry.js → p-6e1acebb.system.entry.js} +1 -1
  263. package/dist/mint-components/{p-57eef0af.entry.js → p-708f58e8.entry.js} +6 -6
  264. package/dist/mint-components/p-71168e62.entry.js +258 -0
  265. package/dist/mint-components/{p-92816d1f.js → p-72ff8268.js} +1 -1
  266. package/dist/mint-components/p-74afdafb.system.js +1 -0
  267. package/dist/mint-components/{p-0d182dc1.system.js → p-79947589.system.js} +1 -1
  268. package/dist/mint-components/{p-0c78815e.system.entry.js → p-7cbec088.system.entry.js} +1 -1
  269. package/dist/mint-components/p-804ee38a.system.entry.js +1 -0
  270. package/dist/mint-components/{p-7a9290ba.js → p-82113e37.js} +1 -1
  271. package/dist/mint-components/p-83e1c41c.entry.js +13 -0
  272. package/dist/mint-components/{p-3f067fd5.js → p-850d59f3.js} +1 -1
  273. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-865f812e.entry.js} +1 -1
  274. package/dist/mint-components/p-8692e7a5.entry.js +144 -0
  275. package/dist/mint-components/{p-42187319.system.entry.js → p-884ac29e.system.entry.js} +1 -1
  276. package/dist/mint-components/p-893d7ab4.js +1 -0
  277. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  278. package/dist/mint-components/p-8c4992d3.js +1 -0
  279. package/dist/mint-components/{p-00ed4c2e.entry.js → p-8e93e590.entry.js} +1 -1
  280. package/dist/mint-components/p-8feb4180.entry.js +1 -0
  281. package/dist/mint-components/p-906e04ba.system.entry.js +1 -0
  282. package/dist/mint-components/{p-dbcb5359.js → p-9438e80a.js} +1 -1
  283. package/dist/mint-components/{p-cbbfac66.entry.js → p-97428eb3.entry.js} +2 -2
  284. package/dist/mint-components/p-9acf0b39.system.entry.js +1 -0
  285. package/dist/mint-components/p-9f2edf59.system.js +1 -0
  286. package/dist/mint-components/{p-6055eb4c.system.js → p-a1091368.system.js} +1 -1
  287. package/dist/mint-components/{p-4428294b.entry.js → p-a3e68251.entry.js} +1 -1
  288. package/dist/mint-components/p-a572db9b.system.entry.js +1 -0
  289. package/dist/mint-components/p-a5bc3f7b.system.entry.js +1 -0
  290. package/dist/mint-components/{p-7f80a9d7.entry.js → p-a60d5315.entry.js} +1 -1
  291. package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
  292. package/dist/mint-components/{p-21620f81.system.entry.js → p-a86f2006.system.entry.js} +1 -1
  293. package/dist/mint-components/{p-bbcd824a.js → p-a87b265e.js} +1 -1
  294. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-af516659.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-2f101bae.entry.js → p-b6761073.entry.js} +1 -1
  296. package/dist/mint-components/p-b6de39a2.entry.js +1 -0
  297. package/dist/mint-components/p-b80891a8.entry.js +1 -0
  298. package/dist/mint-components/p-ba3e2d27.system.entry.js +1 -0
  299. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-b287833c.system.entry.js → p-c16dada5.system.entry.js} +1 -1
  301. package/dist/mint-components/{p-a7746488.system.js → p-c4d80117.system.js} +1 -1
  302. package/dist/mint-components/{p-91959fbe.js → p-c96a25c6.js} +1 -1
  303. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-cd0ee247.entry.js} +1 -1
  304. package/dist/mint-components/{p-0ebab63e.system.js → p-ceecfa65.system.js} +1 -1
  305. package/dist/mint-components/{p-9386ad84.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
  306. package/dist/mint-components/{p-35b475bf.js → p-d1ae7a2d.js} +1 -1
  307. package/dist/mint-components/{p-d07f3090.entry.js → p-d1b5f5b0.entry.js} +1 -1
  308. package/dist/mint-components/{p-5c28406d.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
  309. package/dist/mint-components/p-d6352d15.js +1 -0
  310. package/dist/mint-components/p-db45cc4c.js +394 -0
  311. package/dist/mint-components/{p-ef6381d4.entry.js → p-de7e83b3.entry.js} +2 -2
  312. package/dist/mint-components/p-e09a3d73.system.entry.js +1 -0
  313. package/dist/mint-components/p-e1e62d55.entry.js +1 -0
  314. package/dist/mint-components/{p-4794641c.system.js → p-e2705fbe.system.js} +1 -1
  315. package/dist/mint-components/p-e309a219.js +1 -0
  316. package/dist/mint-components/{p-f940190a.js → p-e518a60d.js} +1 -1
  317. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-e80f9e26.system.entry.js} +1 -1
  318. package/dist/mint-components/{p-f0772618.system.entry.js → p-e8ed71cf.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-775f3ded.entry.js → p-f0fdbd82.entry.js} +1 -1
  320. package/dist/mint-components/{p-bdb7d451.system.js → p-f6db346b.system.js} +12 -12
  321. package/dist/mint-components/p-f80ab10b.entry.js +13 -0
  322. package/dist/mint-components/p-f84d2ed0.system.entry.js +1 -0
  323. package/dist/mint-components/p-fdaa4dbb.system.entry.js +1 -0
  324. package/dist/mint-components/{p-cd569259.system.js → p-fdba347c.system.js} +1 -1
  325. package/dist/mint-components/{p-f7c99803.system.js → p-ffaaec76.system.js} +1 -1
  326. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  327. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  328. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
  329. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
  330. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
  331. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  332. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
  333. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  334. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  335. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  336. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  337. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -7
  338. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  339. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  340. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  341. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  342. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  343. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  344. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -0
  345. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +3 -0
  346. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +7 -0
  347. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  348. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  349. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  350. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  351. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  352. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
  353. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  354. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +20 -0
  355. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  356. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
  357. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  358. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  359. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  360. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  361. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  362. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
  363. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
  364. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  365. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +43 -1
  366. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  367. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  368. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  369. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  370. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  371. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  372. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  373. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  374. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  375. package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
  376. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  377. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  378. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  379. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  380. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  381. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  382. package/dist/types/components.d.ts +1112 -15
  383. package/dist/types/global/mixins.d.ts +12 -12
  384. package/dist/types/global/styles.d.ts +1 -1
  385. package/docs/docs.docx +0 -0
  386. package/docs/raisins.json +1 -1
  387. package/grapesjs/grapesjs.js +1 -1
  388. package/package.json +1 -1
  389. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  390. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  391. package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
  392. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  393. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  394. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  395. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  396. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  397. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  398. package/dist/mint-components/p-116baa69.entry.js +0 -258
  399. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  400. package/dist/mint-components/p-1f089c3f.system.entry.js +0 -1
  401. package/dist/mint-components/p-24db5c70.js +0 -1
  402. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  403. package/dist/mint-components/p-31015791.js +0 -1
  404. package/dist/mint-components/p-37996351.system.js +0 -1
  405. package/dist/mint-components/p-38e5c429.system.js +0 -1
  406. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  407. package/dist/mint-components/p-3db34d68.js +0 -1
  408. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  409. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  410. package/dist/mint-components/p-492b70db.system.js +0 -1
  411. package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
  412. package/dist/mint-components/p-562428ef.system.js +0 -1
  413. package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
  414. package/dist/mint-components/p-626e9e84.js +0 -1
  415. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  416. package/dist/mint-components/p-63a75798.js +0 -1
  417. package/dist/mint-components/p-653f963f.entry.js +0 -13
  418. package/dist/mint-components/p-693942df.entry.js +0 -144
  419. package/dist/mint-components/p-6cc141b9.js +0 -394
  420. package/dist/mint-components/p-7846937e.entry.js +0 -13
  421. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  422. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  423. package/dist/mint-components/p-91521e9d.js +0 -1
  424. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  425. package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
  426. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  427. package/dist/mint-components/p-c9f1dde7.js +0 -1
  428. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  429. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  430. package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
  431. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  432. package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
  433. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  434. package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
  435. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  436. package/dist/mint-components/p-f56bedd5.js +0 -1
  437. package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
@@ -1 +1 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?t(e.value):a(e.value).then(s,o)}l((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(r){return l([e,r])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-e07bc6c4.system.js","./p-57dd28bd.system.js","./p-a71b9154.system.js"],(function(e){"use strict";var r,t,n,a,i,s,o,l,u,c,d,p,f,m,v,b,h,g,y,x;return{setters:[function(e){r=e.h;t=e.r},function(e){n=e.k;a=e.f;i=e.n},function(e){s=e.i},function(e){o=e.d;l=e.t;u=e.w;c=e.J;d=e.$;p=e.i;f=e.q},function(e){m=e.c},function(e){v=e.g},function(e){b=e.c},function(e){h=e.T},function(e){g=e.S;y=e.V},function(e){x=e.u}],execute:function(){var w=o.gql(__makeTemplateObject(["\n mutation upsertUser($userInput: UserInput!) {\n upsertUser(userInput: $userInput) {\n id\n accountId\n email\n }\n }\n"],["\n mutation upsertUser($userInput: UserInput!) {\n upsertUser(userInput: $userInput) {\n id\n accountId\n email\n }\n }\n"]));var _=o.gql(__makeTemplateObject(["\n query user {\n viewer {\n ... on User {\n id\n accountId\n email\n impactConnection {\n user {\n id\n email\n }\n }\n }\n }\n }\n"],["\n query user {\n viewer {\n ... on User {\n id\n accountId\n email\n impactConnection {\n user {\n id\n email\n }\n }\n }\n }\n }\n"]));function k(){var e=this;var r=c();var t=d(w),n=t[0],a=t[1],i=a.loading,s=a.data,o=a.errors;var l=function(t){return __awaiter(e,void 0,void 0,(function(){var e,a;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,n({userInput:{id:r.id,accountId:r.accountId,email:t}})];case 1:e=i.sent();if(e instanceof Error||!e)throw new Error;return[2,e];case 2:a=i.sent();console.error("Could not set email on user",a);return[2,undefined];case 3:return[2]}}))}))};return[l,{loading:i,data:s,errors:o}]}function E(e){var r=this;var t=l(g),i=t[0],s=t[1];var o=l(y),c=o[0],d=o[1];var p=n(false),f=p[0],m=p[1];var v=n(false),b=v[0],h=v[1];var w=n(false),E=w[0],T=w[1];var C=x(),I=C.initialized,j=C.send,S=j[0],O=j[1],L=O.loading,D=O.errors;var P=k()[0];var U=n(true),q=U[0],W=U[1];var $=u(_,{}),A=$.data,H=$.loading;var z=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;a((function(){if(!(A===null||A===void 0?void 0:A.viewer))return;m(!!A.viewer.email)}),[A]);a((function(){if(I)W(false)}),[I]);var M=function(e){return __awaiter(r,void 0,void 0,(function(){var r,t,n,a,i;return __generator(this,(function(o){switch(o.label){case 0:e.preventDefault();if(!(A===null||A===void 0?void 0:A.viewer))return[2];W(true);r=A.viewer.email;if(!!r)return[3,2];t=e.detail.formData;n=t.get("email").toString();if(!z.test(n)){h(true);return[2]}return[4,P(n)];case 1:a=o.sent();if(!a||!a.user.email)h(true);o.label=2;case 2:if(!I)return[2];return[4,S()];case 3:i=o.sent();if(!i||!i.success)T(true);else{d(r);s(true)}W(false);return[2]}}))}))};return{callbacks:{submitEmail:M},states:{loading:q,initialLoading:H&&!I,error:b,email:A===null||A===void 0?void 0:A.viewer.email,sendCodeError:E},text:e.getTextProps()}}var T={Wrapper:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",marginTop:"var(--sl-spacing-medium)"},InputsContainer:{display:"flex",gap:"var(--sl-spacing-medium)",position:"relative",flexDirection:"column",maxWidth:"320px"},ErrorAlertContainer:{"&::part(base)":{backgroundColor:"var(--sl-color-red-100)",borderTop:"none"},"&::part(message)":{}},ContinueButton:{width:"100%",maxWidth:"100px"},SkeletonOne:{width:"50%",height:"16px"},SkeletonTwo:{width:"30%",height:"34px"},SkeletonThree:{width:"15%",height:"24px"},ErrorInput:{"&::part(base)":{border:"1px solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var C="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var I=b(T);var j=I.toString();function S(e){var t=e.states,n=e.callbacks,a=e.text;var i=function(){return r("div",{class:I.classes.Wrapper},r("sl-skeleton",{class:I.classes.SkeletonOne}),r("sl-skeleton",{class:I.classes.SkeletonTwo}),r("sl-skeleton",{class:I.classes.SkeletonThree}))};return r("div",{part:"sqm-base"},r("style",{type:"text/css"},C,j),t.sendCodeError&&r("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"danger",class:I.classes.ErrorAlertContainer,open:true},r("sl-icon",{slot:"icon",name:"exclamation-octagon"}),r("b",null,a.sendCodeErrorHeader),r("br",null),s.formatMessage({id:"sendCodeErrorDescription",defaultMessage:a.sendCodeErrorDescription},{supportLink:r("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},a.supportLink)})),t.initialLoading?i():r("div",{class:I.classes.Wrapper},r(h,{type:"p"},a.verifyEmailHeaderText),r("sl-form",{"onSl-submit":n.submitEmail},r("div",{class:I.classes.InputsContainer},r("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",label:a.emailLabel,value:t.email||"",type:"email",id:"email",name:"email",disabled:!!t.email||t.loading},t.error?{class:I.classes.ErrorInput,helpText:a.emailValidationErrorText}:{})),r("sl-button",{submit:true,class:I.classes.ContinueButton,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},a.sendCodeText)))))}var O=e("sqm_email_verification",function(){function e(e){t(this,e);this.verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.sendCodeErrorHeader="There was an error sending your code";this.supportLink="support team";this.sendCodeErrorDescription="Please try again. If this problem continues, contact our program {supportLink}.";this.emailLabel="Email";this.sendCodeText="Send code";this.emailValidationErrorText="Please enter a valid email";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getTextProps=function(){return v(this)};e.prototype.render=function(){var e=p()?L(this):E(this);return r(S,Object.assign({},e))};return e}());function L(e){var r=this;var t=f(g);return m({states:{error:true,initialLoading:false,loading:false,email:"test@example.com",sendCodeError:true},callbacks:{submitEmail:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){return[2,t(true)]}))}))}},text:e.getTextProps()},e.demoData||{},{arrayMerge:function(e,r){return r}})}}}}));
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?t(e.value):a(e.value).then(s,o)}l((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(r){return l([e,r])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-f6db346b.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-74afdafb.system.js","./p-57dd28bd.system.js","./p-a71b9154.system.js"],(function(e){"use strict";var r,t,n,a,i,s,o,l,u,c,d,p,f,m,v,b,h,g,y,x;return{setters:[function(e){r=e.h;t=e.r},function(e){n=e.k;a=e.f;i=e.n},function(e){s=e.i},function(e){o=e.d;l=e.t;u=e.w;c=e.J;d=e.$;p=e.i;f=e.q},function(e){m=e.c},function(e){v=e.g},function(e){b=e.c},function(e){h=e.T},function(e){g=e.S;y=e.V},function(e){x=e.u}],execute:function(){var w=o.gql(__makeTemplateObject(["\n mutation upsertUser($userInput: UserInput!) {\n upsertUser(userInput: $userInput) {\n id\n accountId\n email\n }\n }\n"],["\n mutation upsertUser($userInput: UserInput!) {\n upsertUser(userInput: $userInput) {\n id\n accountId\n email\n }\n }\n"]));var _=o.gql(__makeTemplateObject(["\n query user {\n viewer {\n ... on User {\n id\n accountId\n email\n impactConnection {\n user {\n id\n email\n }\n }\n }\n }\n }\n"],["\n query user {\n viewer {\n ... on User {\n id\n accountId\n email\n impactConnection {\n user {\n id\n email\n }\n }\n }\n }\n }\n"]));function k(){var e=this;var r=c();var t=d(w),n=t[0],a=t[1],i=a.loading,s=a.data,o=a.errors;var l=function(t){return __awaiter(e,void 0,void 0,(function(){var e,a;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);return[4,n({userInput:{id:r.id,accountId:r.accountId,email:t}})];case 1:e=i.sent();if(e instanceof Error||!e)throw new Error;return[2,e];case 2:a=i.sent();console.error("Could not set email on user",a);return[2,undefined];case 3:return[2]}}))}))};return[l,{loading:i,data:s,errors:o}]}function E(e){var r=this;var t=l(g),i=t[0],s=t[1];var o=l(y),c=o[0],d=o[1];var p=n(false),f=p[0],m=p[1];var v=n(false),b=v[0],h=v[1];var w=n(false),E=w[0],T=w[1];var C=x(),I=C.initialized,j=C.send,S=j[0],O=j[1],L=O.loading,D=O.errors;var P=k()[0];var U=n(true),q=U[0],W=U[1];var $=u(_,{}),A=$.data,H=$.loading;var z=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;a((function(){if(!(A===null||A===void 0?void 0:A.viewer))return;m(!!A.viewer.email)}),[A]);a((function(){if(I)W(false)}),[I]);var M=function(e){return __awaiter(r,void 0,void 0,(function(){var r,t,n,a,i;return __generator(this,(function(o){switch(o.label){case 0:e.preventDefault();if(!(A===null||A===void 0?void 0:A.viewer))return[2];W(true);r=A.viewer.email;if(!!r)return[3,2];t=e.detail.formData;n=t.get("email").toString();if(!z.test(n)){h(true);return[2]}return[4,P(n)];case 1:a=o.sent();if(!a||!a.user.email)h(true);o.label=2;case 2:if(!I)return[2];return[4,S()];case 3:i=o.sent();if(!i||!i.success)T(true);else{d(r);s(true)}W(false);return[2]}}))}))};return{callbacks:{submitEmail:M},states:{loading:q,initialLoading:H&&!I,error:b,email:A===null||A===void 0?void 0:A.viewer.email,sendCodeError:E},text:e.getTextProps()}}var T={Wrapper:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",marginTop:"var(--sl-spacing-medium)"},InputsContainer:{display:"flex",gap:"var(--sl-spacing-medium)",position:"relative",flexDirection:"column",maxWidth:"320px"},ErrorAlertContainer:{"&::part(base)":{backgroundColor:"var(--sl-color-red-100)",borderTop:"none"},"&::part(message)":{}},ContinueButton:{width:"100%",maxWidth:"100px"},SkeletonOne:{width:"50%",height:"16px"},SkeletonTwo:{width:"30%",height:"34px"},SkeletonThree:{width:"15%",height:"24px"},ErrorInput:{"&::part(base)":{border:"1px solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var C="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var I=b(T);var j=I.toString();function S(e){var t=e.states,n=e.callbacks,a=e.text;var i=function(){return r("div",{class:I.classes.Wrapper},r("sl-skeleton",{class:I.classes.SkeletonOne}),r("sl-skeleton",{class:I.classes.SkeletonTwo}),r("sl-skeleton",{class:I.classes.SkeletonThree}))};return r("div",{part:"sqm-base"},r("style",{type:"text/css"},C,j),t.sendCodeError&&r("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"danger",class:I.classes.ErrorAlertContainer,open:true},r("sl-icon",{slot:"icon",name:"exclamation-octagon"}),r("b",null,a.sendCodeErrorHeader),r("br",null),s.formatMessage({id:"sendCodeErrorDescription",defaultMessage:a.sendCodeErrorDescription},{supportLink:r("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},a.supportLink)})),t.initialLoading?i():r("div",{class:I.classes.Wrapper},r(h,{type:"p"},a.verifyEmailHeaderText),r("sl-form",{"onSl-submit":n.submitEmail},r("div",{class:I.classes.InputsContainer},r("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",label:a.emailLabel,value:t.email||"",type:"email",id:"email",name:"email",disabled:!!t.email||t.loading},t.error?{class:I.classes.ErrorInput,helpText:a.emailValidationErrorText}:{})),r("sl-button",{submit:true,class:I.classes.ContinueButton,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},a.sendCodeText)))))}var O=e("sqm_email_verification",function(){function e(e){t(this,e);this.verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.sendCodeErrorHeader="There was an error sending your code";this.supportLink="support team";this.sendCodeErrorDescription="Please try again. If this problem continues, contact our program {supportLink}.";this.emailLabel="Email";this.sendCodeText="Send code";this.emailValidationErrorText="Please enter a valid email";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getTextProps=function(){return v(this)};e.prototype.render=function(){var e=p()?L(this):E(this);return r(S,Object.assign({},e))};return e}());function L(e){var r=this;var t=f(g);return m({states:{error:true,initialLoading:false,loading:false,email:"test@example.com",sendCodeError:true},callbacks:{submitEmail:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){return[2,t(true)]}))}))}},text:e.getTextProps()},e.demoData||{},{arrayMerge:function(e,r){return r}})}}}}));
@@ -1 +1 @@
1
- import{h as e}from"./p-f708da7b.js";import{i as t}from"./p-65069b66.js";import{c as o}from"./p-cef45012.js";import{A as s,a as r}from"./p-91521e9d.js";import{T as a}from"./p-c9f1dde7.js";const i=o({Wrapper:s,Column:{...r},ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}}),n=i.toString();function l(o){const{states:s,callbacks:r,content:{email:l,verifyMessage:c,emailVerificationHeader:p,resendEmailButtonText:d,verificationStatusMessage:m,verificationLoadingMessage:f,verificationResentMessage:u}}=o;return e("div",{class:i.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",n),e(a,{type:"h3"},p),e("sl-form",{class:i.classes.Column,"onSl-submit":r.submit},o.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},o.states.error)),o.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},u)),e(a,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:c},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},l)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:s.loadingVerification?f+" {countdown}":m},{countdown:s.loadingVerification?e("sl-spinner",null):s.countdown})),e("a",{class:s.loading?i.classes.ButtonLinkLoading:i.classes.ButtonLink,onClick:r.submit},d)))}export{l as P}
1
+ import{h as e}from"./p-f708da7b.js";import{i as t}from"./p-69d60453.js";import{c as o}from"./p-cef45012.js";import{A as s,a as r}from"./p-49b20dae.js";import{T as a}from"./p-e309a219.js";const i=o({Wrapper:s,Column:{...r},ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}}),n=i.toString();function l(o){const{states:s,callbacks:r,content:{email:l,verifyMessage:c,emailVerificationHeader:p,resendEmailButtonText:m,verificationStatusMessage:d,verificationLoadingMessage:f,verificationResentMessage:u}}=o;return e("div",{class:i.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",n),e(a,{type:"h3"},p),e("sl-form",{class:i.classes.Column,"onSl-submit":r.submit},o.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},o.states.error)),o.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},u)),e(a,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:c},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},l)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:s.loadingVerification?f+" {countdown}":d},{countdown:s.loadingVerification?e("sl-spinner",null):s.countdown})),e("a",{class:s.loading?i.classes.ButtonLinkLoading:i.classes.ButtonLink,onClick:r.submit},m)))}export{l as P}
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-8175e85f.system.js"],(function(t){"use strict";var e,i,s,r,n,a,o,l,u,c,d;return{setters:[function(t){e=t.h;i=t.r},function(t){s=t.i;r=t.k;n=t.n},function(t){a=t.i},function(t){o=t.c},function(t){l=t.g},function(t){u=t.c},function(t){c=t.E},function(t){d=t.R}],execute:function(){var p={error:{length:"Length should be a valid positive number",password:"Password should be a valid string"},regex:{digits:"(\\d.*)",letters:"([a-zA-Z].*)",symbols:"([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",spaces:"([\\s].*)"}};var v=p.regex;function h(t,e){if(e&&e>1){var i=parseInt(e,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function t(e){this.positive=false;if(e){return h.call(this,e)}return true},has:function t(e){this.positive=true;if(e){return h.call(this,e)}return true},is:function t(){this.positive=true;return true},min:function t(e){return this.password.length>=e},max:function t(e){return this.password.length<=e},digits:function t(e){return h.call(this,v.digits,e)},letters:function t(e){return h.call(this,v.letters,e)},uppercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toLowerCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toUpperCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(e){return h.call(this,v.symbols,e)},spaces:function t(e){return h.call(this,v.spaces,e)},oneOf:function t(e){return e.indexOf(this.password)>=0===this.positive}};var m=p.error;function g(t){var e=Number(t);if(isNaN(e)||!Number.isInteger(e)||e<1){throw new Error(m.length)}}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,e){this.properties.push({method:t,arguments:e});return this}var b=function(){function t(){this.properties=[]}t.prototype.validate=function(t,e){var i=this;this.list=Boolean(e&&e.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,e){if(!w.call(i,e)){return t.concat(e.method)}return t}),[])}return this.properties.every(w.bind(this))};t.prototype.letters=function(t){t&&g(t);return y.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&g(t);return y.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&g(t);return y.call(this,"symbols",arguments)};t.prototype.min=function(t){g(t);return y.call(this,"min",arguments)};t.prototype.max=function(t){g(t);return y.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&g(t);return y.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&g(t);return y.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&g(t);return y.call(this,"spaces",arguments)};t.prototype.has=function(){return y.call(this,"has",arguments)};t.prototype.not=function(){return y.call(this,"not",arguments)};t.prototype.is=function(){return y.call(this,"is",arguments)};t.prototype.oneOf=function(){return y.call(this,"oneOf",arguments)};return t}();var x=b;var L=(new x).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var V=function(t,e){var i=L.validate(t,{list:true});var s=j(i,t,e);return s};var C=function(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"}))};var _=function(){return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"}))};var E={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var S={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:__assign(__assign({},E),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},E)};var I=u(S);var T=I.toString();var j=function(t,i,s){var r={min:s.minErrorText,uppercase:s.uppercaseErrorText,lowercase:s.lowercaseErrorText,has:s.hasErrorText};if(!t.length&&i)return e("div",{class:I.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},e("style",{type:"text/css"},T),e(C,null)," ",e("span",null,s.meetsRequirementsText));return e("div",{class:I.classes.Base},e("style",{type:"text/css"},T),s.doesNotMeetRequirementsText,e("ul",{class:I.classes.ValidationList},Object.keys(r).map((function(i){return t.includes(i)?e("li",{class:I.classes.ValidationItemInvalid},e(_,null)," ",e("span",null,r[i])):e("li",{class:I.classes.ValidationItemValid},e(C,null)," ",e("span",null,r[i]))}))))};var k={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:c};var q="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(k);var F=D.toString();function O(t){var i,s,r,n,a,o,l,u,c,d;var p=t.states,v=t.callbacks;return e("div",{class:D.classes.InputContainer,part:"sqm-base"},e("style",{type:"text/css"},q,F),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/password",label:p.content.fieldLabel||"Password",required:true,disabled:((i=p.registrationFormState)===null||i===void 0?void 0:i.loading)||((s=p.registrationFormState)===null||s===void 0?void 0:s.disabled),validationError:function(t){var e=t.value;if(!e){return"Cannot be empty"}}},((n=(r=p.registrationFormState)===null||r===void 0?void 0:r.initialData)===null||n===void 0?void 0:n.password)?{value:(o=(a=p.registrationFormState)===null||a===void 0?void 0:a.initialData)===null||o===void 0?void 0:o.password}:{},((u=(l=p.registrationFormState)===null||l===void 0?void 0:l.validationErrors)===null||u===void 0?void 0:u.password)?{class:D.classes.ErrorStyle,helpText:((d=(c=p.registrationFormState)===null||c===void 0?void 0:c.validationErrors)===null||d===void 0?void 0:d.password)||"Cannot be empty"}:[],{onInput:function(t){return p.enableValidation&&v.onInput(t)}})),p.dynamicValidation)}function M(t){var e=s(d);var i=r(""),n=i[0],a=i[1];function o(e){var i=V(e.target.value,t);a(i)}return{states:{enableValidation:!t.disableValidation,dynamicValidation:n,registrationFormState:e,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var R=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.disableValidation=false;this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a()?B(l(this)):M(l(this)),i=t.states,s=t.callbacks;return e(O,{states:i,callbacks:s})};return t}());function B(t){var e,i,s,n,a,l,u;var c=r(""),d=c[0],p=c[1];var v=r(""),h=v[0],f=v[1];if(t.demoData&&h!=((e=t===null||t===void 0?void 0:t.demoData)===null||e===void 0?void 0:e.initValue)){var m=V(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"",t);p(((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)===""?"":m);f((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)}function g(e){var i=V(e.target.value,t);p(i)}return o({states:{enableValidation:!t.disableValidation,dynamicValidation:d,registrationFormState:((l=(a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.states)===null||l===void 0?void 0:l.registrationFormState)||{},content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,e){return e}})}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-8175e85f.system.js"],(function(t){"use strict";var e,i,s,r,n,a,o,l,u,c,d;return{setters:[function(t){e=t.h;i=t.r},function(t){s=t.i;r=t.k;n=t.n},function(t){a=t.i},function(t){o=t.c},function(t){l=t.g},function(t){u=t.c},function(t){c=t.E},function(t){d=t.R}],execute:function(){var p={error:{length:"Length should be a valid positive number",password:"Password should be a valid string"},regex:{digits:"(\\d.*)",letters:"([a-zA-Z].*)",symbols:"([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",spaces:"([\\s].*)"}};var v=p.regex;function h(t,e){if(e&&e>1){var i=parseInt(e,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function t(e){this.positive=false;if(e){return h.call(this,e)}return true},has:function t(e){this.positive=true;if(e){return h.call(this,e)}return true},is:function t(){this.positive=true;return true},min:function t(e){return this.password.length>=e},max:function t(e){return this.password.length<=e},digits:function t(e){return h.call(this,v.digits,e)},letters:function t(e){return h.call(this,v.letters,e)},uppercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toLowerCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toUpperCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(e){return h.call(this,v.symbols,e)},spaces:function t(e){return h.call(this,v.spaces,e)},oneOf:function t(e){return e.indexOf(this.password)>=0===this.positive}};var m=p.error;function g(t){var e=Number(t);if(isNaN(e)||!Number.isInteger(e)||e<1){throw new Error(m.length)}}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,e){this.properties.push({method:t,arguments:e});return this}var b=function(){function t(){this.properties=[]}t.prototype.validate=function(t,e){var i=this;this.list=Boolean(e&&e.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,e){if(!w.call(i,e)){return t.concat(e.method)}return t}),[])}return this.properties.every(w.bind(this))};t.prototype.letters=function(t){t&&g(t);return y.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&g(t);return y.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&g(t);return y.call(this,"symbols",arguments)};t.prototype.min=function(t){g(t);return y.call(this,"min",arguments)};t.prototype.max=function(t){g(t);return y.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&g(t);return y.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&g(t);return y.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&g(t);return y.call(this,"spaces",arguments)};t.prototype.has=function(){return y.call(this,"has",arguments)};t.prototype.not=function(){return y.call(this,"not",arguments)};t.prototype.is=function(){return y.call(this,"is",arguments)};t.prototype.oneOf=function(){return y.call(this,"oneOf",arguments)};return t}();var x=b;var L=(new x).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var V=function(t,e){var i=L.validate(t,{list:true});var s=j(i,t,e);return s};var C=function(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"}))};var _=function(){return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"}))};var E={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var S={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:__assign(__assign({},E),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},E)};var I=u(S);var T=I.toString();var j=function(t,i,s){var r={min:s.minErrorText,uppercase:s.uppercaseErrorText,lowercase:s.lowercaseErrorText,has:s.hasErrorText};if(!t.length&&i)return e("div",{class:I.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},e("style",{type:"text/css"},T),e(C,null)," ",e("span",null,s.meetsRequirementsText));return e("div",{class:I.classes.Base},e("style",{type:"text/css"},T),s.doesNotMeetRequirementsText,e("ul",{class:I.classes.ValidationList},Object.keys(r).map((function(i){return t.includes(i)?e("li",{class:I.classes.ValidationItemInvalid},e(_,null)," ",e("span",null,r[i])):e("li",{class:I.classes.ValidationItemValid},e(C,null)," ",e("span",null,r[i]))}))))};var k={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:c};var q="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(k);var F=D.toString();function O(t){var i,s,r,n,a,o,l,u,c,d;var p=t.states,v=t.callbacks;return e("div",{class:D.classes.InputContainer,part:"sqm-base"},e("style",{type:"text/css"},q,F),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/password",label:p.content.fieldLabel||"Password",required:true,disabled:((i=p.registrationFormState)===null||i===void 0?void 0:i.loading)||((s=p.registrationFormState)===null||s===void 0?void 0:s.disabled),validationError:function(t){var e=t.value;if(!e){return"Cannot be empty"}}},((n=(r=p.registrationFormState)===null||r===void 0?void 0:r.initialData)===null||n===void 0?void 0:n.password)?{value:(o=(a=p.registrationFormState)===null||a===void 0?void 0:a.initialData)===null||o===void 0?void 0:o.password}:{},((u=(l=p.registrationFormState)===null||l===void 0?void 0:l.validationErrors)===null||u===void 0?void 0:u.password)?{class:D.classes.ErrorStyle,helpText:((d=(c=p.registrationFormState)===null||c===void 0?void 0:c.validationErrors)===null||d===void 0?void 0:d.password)||"Cannot be empty"}:[],{onInput:function(t){return p.enableValidation&&v.onInput(t)}})),p.dynamicValidation)}function M(t){var e=s(d);var i=r(""),n=i[0],a=i[1];function o(e){var i=V(e.target.value,t);a(i)}return{states:{enableValidation:!t.disableValidation,dynamicValidation:n,registrationFormState:e,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var R=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.disableValidation=false;this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a()?B(l(this)):M(l(this)),i=t.states,s=t.callbacks;return e(O,{states:i,callbacks:s})};return t}());function B(t){var e,i,s,n,a,l,u;var c=r(""),d=c[0],p=c[1];var v=r(""),h=v[0],f=v[1];if(t.demoData&&h!=((e=t===null||t===void 0?void 0:t.demoData)===null||e===void 0?void 0:e.initValue)){var m=V(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"",t);p(((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)===""?"":m);f((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)}function g(e){var i=V(e.target.value,t);p(i)}return o({states:{enableValidation:!t.disableValidation,dynamicValidation:d,registrationFormState:((l=(a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.states)===null||l===void 0?void 0:l.registrationFormState)||{},content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -1 +1 @@
1
- import{r as e,h as s}from"./p-f708da7b.js";import{k as t,f as o,n as r}from"./p-cd651f81.js";import{f as a,T as i,j as d,i as n}from"./p-94a876b9.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-91521e9d.js";import"./p-c9f1dde7.js";import{P as u}from"./p-f940190a.js";const p=class{constructor(s){e(this,s),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",this.passwordMismatchText="Passwords do not match.",this.codeInvalidText="The password reset code is invalid or has expired, please try again.",this.resetSuccessText="Your password has been reset and you are being redirected. If you are not redirected, please click Continue.",this.networkErrorMessage="An error occurred while resetting your password. Please refresh the page and try again.",r(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r}=n()?l({states:{error:"",loading:!1,reset:!1,confirmPassword:(p=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:p.passwordResetHeader,resetPasswordHeader:p.resetPasswordHeader,continueButtonText:p.continueButtonText,resetPasswordButtonText:p.resetPasswordButtonText,confirmPasswordFieldLabel:p.confirmPasswordFieldLabel,passwordFieldLabel:p.passwordFieldLabel,meetsRequirementsText:p.meetsRequirementsText,doesNotMeetRequirementsText:p.doesNotMeetRequirementsText,minErrorText:p.minErrorText,uppercaseErrorText:p.uppercaseErrorText,lowercaseErrorText:p.lowercaseErrorText,hasErrorText:p.hasErrorText,passwordMismatchText:p.passwordMismatchText,codeInvalidText:p.codeInvalidText,resetSuccessText:p.resetSuccessText}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},p.demoData||{},{arrayMerge:(e,s)=>s}):function(e){var s,r,n,l,u,p,h,w,f,x;const[b,v]=t(!1),[T,P]=t(""),[g,j]=a(),[C,y]=i(),E=new URLSearchParams(d.location.search),R=E.get("oobCode");E.delete("oobCode");const k=E.get("nextPage");o((()=>{(async()=>{await g({oobCode:R})instanceof Error&&P(e.networkErrorMessage)})()}),[]);const q=()=>{E.delete("nextPage");const s=m(k||e.nextPage);d.push(s.href)};return{states:{loading:y.loading,reset:b,confirmPassword:e.confirmPassword,error:(null===(u=null===(l=null===(n=null===(r=null===(s=y.errors)||void 0===s?void 0:s.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===l?void 0:l.extensions)||void 0===u?void 0:u.message)||(null===(f=null===(w=null===(h=null===(p=y.errors)||void 0===p?void 0:p.response)||void 0===h?void 0:h.errors)||void 0===w?void 0:w[0])||void 0===f?void 0:f.message)||T,oobCodeValidating:j.loading,oobCodeValid:null===(x=j.data)||void 0===x?void 0:x.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText,passwordMismatchText:e.passwordMismatchText,codeInvalidText:e.codeInvalidText,resetSuccessText:e.resetSuccessText}},callbacks:{submit:async s=>{P("");let t=s.detail.formData;null==t||t.forEach(((e,s)=>{c.set(t,s,e)}));const o={oobCode:R,password:t.password};if(t.password!==t.confirmPassword)return void P(e.passwordMismatchText);const r=await C(o);if(r instanceof Error)return P(e.networkErrorMessage);r.resetManagedIdentityPassword&&(v(!0),setTimeout((()=>{q()}),5e3))},failed:()=>{d.push({pathname:e.failedPage,search:E.toString()&&"?"+E.toString()})},gotoNextPage:q}}}(this);var p;return s(u,{states:e,callbacks:r})}};export{p as sqm_portal_reset_password}
1
+ import{r as e,h as s}from"./p-f708da7b.js";import{k as t,f as o,n as r}from"./p-cd651f81.js";import{f as a,T as i,j as d,i as n}from"./p-94a876b9.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-e309a219.js";import{P as u}from"./p-e518a60d.js";const p=class{constructor(s){e(this,s),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",this.passwordMismatchText="Passwords do not match.",this.codeInvalidText="The password reset code is invalid or has expired, please try again.",this.resetSuccessText="Your password has been reset and you are being redirected. If you are not redirected, please click Continue.",this.networkErrorMessage="An error occurred while resetting your password. Please refresh the page and try again.",r(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r}=n()?l({states:{error:"",loading:!1,reset:!1,confirmPassword:(p=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:p.passwordResetHeader,resetPasswordHeader:p.resetPasswordHeader,continueButtonText:p.continueButtonText,resetPasswordButtonText:p.resetPasswordButtonText,confirmPasswordFieldLabel:p.confirmPasswordFieldLabel,passwordFieldLabel:p.passwordFieldLabel,meetsRequirementsText:p.meetsRequirementsText,doesNotMeetRequirementsText:p.doesNotMeetRequirementsText,minErrorText:p.minErrorText,uppercaseErrorText:p.uppercaseErrorText,lowercaseErrorText:p.lowercaseErrorText,hasErrorText:p.hasErrorText,passwordMismatchText:p.passwordMismatchText,codeInvalidText:p.codeInvalidText,resetSuccessText:p.resetSuccessText}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},p.demoData||{},{arrayMerge:(e,s)=>s}):function(e){var s,r,n,l,u,p,h,w,b,f;const[x,v]=t(!1),[T,P]=t(""),[g,j]=a(),[C,y]=i(),E=new URLSearchParams(d.location.search),R=E.get("oobCode");E.delete("oobCode");const k=E.get("nextPage");o((()=>{(async()=>{await g({oobCode:R})instanceof Error&&P(e.networkErrorMessage)})()}),[]);const q=()=>{E.delete("nextPage");const s=m(k||e.nextPage);d.push(s.href)};return{states:{loading:y.loading,reset:x,confirmPassword:e.confirmPassword,error:(null===(u=null===(l=null===(n=null===(r=null===(s=y.errors)||void 0===s?void 0:s.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===l?void 0:l.extensions)||void 0===u?void 0:u.message)||(null===(b=null===(w=null===(h=null===(p=y.errors)||void 0===p?void 0:p.response)||void 0===h?void 0:h.errors)||void 0===w?void 0:w[0])||void 0===b?void 0:b.message)||T,oobCodeValidating:j.loading,oobCodeValid:null===(f=j.data)||void 0===f?void 0:f.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText,passwordMismatchText:e.passwordMismatchText,codeInvalidText:e.codeInvalidText,resetSuccessText:e.resetSuccessText}},callbacks:{submit:async s=>{P("");let t=s.detail.formData;null==t||t.forEach(((e,s)=>{c.set(t,s,e)}));const o={oobCode:R,password:t.password};if(t.password!==t.confirmPassword)return void P(e.passwordMismatchText);const r=await C(o);if(r instanceof Error)return P(e.networkErrorMessage);r.resetManagedIdentityPassword&&(v(!0),setTimeout((()=>{q()}),5e3))},failed:()=>{d.push({pathname:e.failedPage,search:E.toString()&&"?"+E.toString()})},gotoNextPage:q}}}(this);var p;return s(u,{states:e,callbacks:r})}};export{p as sqm_portal_reset_password}
@@ -0,0 +1 @@
1
+ import{h as t,c as s,r as n}from"./p-f708da7b.js";import{u as o,f as a,n as e}from"./p-cd651f81.js";import{_ as r}from"./p-94a876b9.js";import{g as l}from"./p-9ec99ced.js";import{u as c}from"./p-4e451f75.js";import{u as p}from"./p-19ccb4ce.js";const i=({content:n,placement:o,textColor:a="var(--sqm-text)"})=>{const e=`\n sl-tab-panel::part(base) {\n padding: ${o&&"top"!==o&&"bottom"!==o?"0 var(--sl-spacing-xx-large);":"var(--sl-spacing-x-large) 0;"};\n }\n\n sl-tab::part(base) {\n color: ${a};\n }\n `;return console.log("text color is ",a),t(s,null,t("style",{type:"text/css"},e),t("sl-tab-group",{placement:o},n.tabs.map((s=>{const n=s.getAttribute("slot");return"RAISINS-PLOP-TARGET"===s.tagName?t("sl-tab",{slot:"nav"},t("div",{style:{marginTop:"10px"}},t("slot",{name:n}))):[t("sl-tab",{slot:"nav",panel:n,part:"tab",id:s.getAttribute("id")||n},s.getAttribute("header")),t("sl-tab-panel",{name:n},t("slot",{name:n}))]}))),t("div",{style:{display:"none"}},t("slot",null)))},m=class{constructor(t){n(this,t),e(this)}disconnectedCallback(){}render(){const{content:s}=function(){const t=p(),s=r(),n=c(),e=o((()=>t.filter((t=>"SQM-TAB"===t.tagName||"RAISINS-PLOP-TARGET"===t.tagName)).map(((t,s)=>{if("RAISINS-PLOP-TARGET"===t.tagName){const s=t;s.style.position="absolute",s.style.left="6px";const n=t.firstElementChild.childNodes[1];n.innerHTML="+",n.style.lineHeight="20px"}return t.setAttribute("slot","tab-"+s),t.setAttribute("id","tab-"+s),t}))),[t,n]);return a((()=>{const t=t=>{var n;const o=t.target;if(t.stopPropagation(),!o)return;const a=o.closest("sqm-tabs");if(!s.contains(o)||!a)return;const e=o.closest("sqm-tab");null===(n=a.shadowRoot.querySelector("sl-tab-group"))||void 0===n||n.show(e.id)};return s.addEventListener("sq:reveal",t),()=>{s.removeEventListener("sq:reveal",t)}}),[]),{content:{tabs:e}}}(),{placement:n,textColor:e}=l(this);return t(i,{placement:n,content:s,textColor:e},t("slot",null))}};export{m as sqm_tabs}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as s}from"./p-f708da7b.js";import{n}from"./p-cd651f81.js";import{i as a}from"./p-69d60453.js";import"./p-94a876b9.js";import{g as i}from"./p-9ec99ced.js";import"./p-cef45012.js";import{P as r,a as o}from"./p-a9f4ddb1.js";function l(e){const{emptyStateHeader:s,emptyStateImage:n,emptyStateText:i,supportText:r,missingFeature:o=""}=e;return t("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},t("img",{style:{height:"100px",margin:"auto"},src:n}),t("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("p",{part:"header-text"},s)),t("sqm-text",{slot:"content"},t("p",{part:"description-text"},a.formatMessage({id:"emptyStateText",defaultMessage:i},{supportText:t("a",{target:"_blank",href:`mailto:saasquatch-support@impact.com?subject=Next steps for ${o} feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the ${o} feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: ${o}%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you`},r)})))))}const m=class{constructor(t){e(this,t),this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}render(){return t(s,{slot:"empty"},t(l,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))}},h=class{constructor(t){e(this,t),this.ignored=!0,this.direction="column",this.gap="xxx-large",this.display="grid",this.maxWidth="100%",this.flexWrap="wrap",this.backgroundColor="#ffffff00",n(this)}disconnectedCallback(){}render(){return t(r,Object.assign({},i(this)),t("slot",null))}},p=class{constructor(t){e(this,t),this.ignored=!0,n(this)}disconnectedCallback(){}componentWillLoad(){}render(){return t("div",null,t("style",null,`\n sqm-text {\n display: block;\n color: ${this.textColor||"var(--sqm-text)"};\n }\n\n sqm-text h1 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xxx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-x-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-large)"};\n font-weight: var(--sl-font-weight-bold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text p {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-medium)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text sub {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-small)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n `),t("slot",null))}},c=class{constructor(t){e(this,t),this.textAlign="left",this.labelMargin="small",this.padding="none",n(this)}disconnectedCallback(){}render(){const e=t("slot",{name:"label"},this.label),s=t("slot",{name:"content"});return t(o,Object.assign({},{...i(this),label:e,content:s}))}};export{m as sqm_empty,h as sqm_portal_container,p as sqm_text,c as sqm_titled_section}