@saasquatch/mint-components 1.5.0-71 → 1.5.0-75

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 (264) hide show
  1. package/dist/cjs/{ShadowViewAddon-fbbacd12.js → ShadowViewAddon-c4425ca8.js} +19 -20
  2. package/dist/cjs/{global-58d95b21.js → global-633d1fb7.js} +46 -3
  3. package/dist/cjs/{index.module-54724339.js → index.module-f972f103.js} +6189 -6189
  4. package/dist/cjs/loader.cjs.js +3 -4
  5. package/dist/cjs/mint-components.cjs.js +3 -4
  6. package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
  7. package/dist/cjs/sqm-big-stat.cjs.entry.js +3 -3
  8. package/dist/cjs/{sqm-brand_28.cjs.entry.js → sqm-brand_29.cjs.entry.js} +113 -73
  9. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
  10. package/dist/cjs/sqm-image_4.cjs.entry.js +12 -12
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -6
  12. package/dist/cjs/sqm-name-fields.cjs.entry.js +2 -2
  13. package/dist/cjs/{sqm-navigation-sidebar-item-view-da648fbc.js → sqm-navigation-sidebar-item-view-2ac54715.js} +2 -2
  14. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  15. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  16. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
  17. package/dist/cjs/{sqm-portal-email-verification-view-f42557ca.js → sqm-portal-email-verification-view-c32a55d6.js} +1 -1
  18. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -7
  19. package/dist/cjs/{sqm-portal-footer-view-5e6903c9.js → sqm-portal-footer-view-cac67bc9.js} +1 -1
  20. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
  21. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  22. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  23. package/dist/cjs/{sqm-portal-profile-view-637d2fe7.js → sqm-portal-profile-view-dea275e0.js} +1 -1
  24. package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -8
  25. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
  26. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
  27. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
  28. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -6
  29. package/dist/cjs/sqm-refresh-button.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +21 -15
  31. package/dist/cjs/sqm-stencilbook.cjs.entry.js +266 -93
  32. package/dist/cjs/sqm-tab-group.cjs.entry.js +20 -0
  33. package/dist/cjs/sqm-tab-panel.cjs.entry.js +20 -0
  34. package/dist/cjs/sqm-tab.cjs.entry.js +20 -0
  35. package/dist/cjs/{useChildElements-4bc9b219.js → useChildElements-36bc6f2a.js} +2 -2
  36. package/dist/cjs/{useDemoBigStat-426e3319.js → useDemoBigStat-99093687.js} +4 -4
  37. package/dist/cjs/{useReferralTable-e473585e.js → useReferralTable-873ca73d.js} +6 -6
  38. package/dist/collection/collection-manifest.json +4 -0
  39. package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +1 -1
  40. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -0
  41. package/dist/collection/components/sqm-image/Image.stories.js +3 -0
  42. package/dist/collection/components/sqm-image/sqm-image-view.js +2 -2
  43. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +38 -21
  44. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
  45. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -0
  46. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +87 -3
  47. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +25 -13
  48. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -4
  49. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -1
  50. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
  51. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +3 -0
  52. package/dist/collection/components/sqm-scroll/Scroll.stories.js +59 -0
  53. package/dist/collection/components/sqm-scroll/sqm-scroll.js +113 -0
  54. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  55. package/dist/collection/components/sqm-tab/sqm-tab.js +19 -0
  56. package/dist/collection/components/sqm-tab-group/sqm-tab-group.js +19 -0
  57. package/dist/collection/components/sqm-tab-panel/sqm-tab-panel.js +19 -0
  58. package/dist/collection/components/sqm-task-card/SVGs.js +3 -3
  59. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +4 -6
  60. package/dist/collection/components/sqm-text/sqm-text.js +12 -11
  61. package/dist/esm/{ShadowViewAddon-98630948.js → ShadowViewAddon-37fc80aa.js} +19 -20
  62. package/dist/esm/{global-58010a55.js → global-d45758a7.js} +45 -2
  63. package/dist/esm/{index.module-ec3dcc82.js → index.module-8e23a02c.js} +6172 -6172
  64. package/dist/esm/loader.js +3 -4
  65. package/dist/esm/mint-components.js +3 -4
  66. package/dist/esm/sqm-asset-card.entry.js +2 -2
  67. package/dist/esm/sqm-big-stat.entry.js +3 -3
  68. package/dist/esm/{sqm-brand_28.entry.js → sqm-brand_29.entry.js} +113 -74
  69. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
  70. package/dist/esm/sqm-image_4.entry.js +13 -13
  71. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -6
  72. package/dist/esm/sqm-name-fields.entry.js +2 -2
  73. package/dist/esm/{sqm-navigation-sidebar-item-view-a6f7f96c.js → sqm-navigation-sidebar-item-view-7ed452df.js} +2 -2
  74. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  75. package/dist/esm/sqm-password-field.entry.js +2 -2
  76. package/dist/esm/sqm-popup-container.entry.js +4 -4
  77. package/dist/esm/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-08c7e4d9.js} +1 -1
  78. package/dist/esm/sqm-portal-email-verification.entry.js +6 -7
  79. package/dist/esm/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-fe94be2b.js} +1 -1
  80. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  81. package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
  82. package/dist/esm/sqm-portal-logout.entry.js +4 -4
  83. package/dist/esm/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-a549a7c0.js} +1 -1
  84. package/dist/esm/sqm-portal-profile.entry.js +7 -8
  85. package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
  86. package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
  87. package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
  88. package/dist/esm/sqm-referral-table_11.entry.js +5 -6
  89. package/dist/esm/sqm-refresh-button.entry.js +2 -2
  90. package/dist/esm/sqm-rewards-table_9.entry.js +21 -15
  91. package/dist/esm/sqm-stencilbook.entry.js +266 -93
  92. package/dist/esm/sqm-tab-group.entry.js +16 -0
  93. package/dist/esm/sqm-tab-panel.entry.js +16 -0
  94. package/dist/esm/sqm-tab.entry.js +16 -0
  95. package/dist/esm/{useChildElements-c11d6189.js → useChildElements-47a37020.js} +2 -2
  96. package/dist/esm/{useDemoBigStat-022e116d.js → useDemoBigStat-e2bb9edb.js} +4 -4
  97. package/dist/esm/{useReferralTable-bccb9ac0.js → useReferralTable-a585a7f3.js} +6 -6
  98. package/dist/esm-es5/ShadowViewAddon-37fc80aa.js +1 -0
  99. package/dist/esm-es5/{global-58010a55.js → global-d45758a7.js} +2 -2
  100. package/dist/esm-es5/index.module-8e23a02c.js +1 -0
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/mint-components.js +1 -1
  103. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  104. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  105. package/dist/esm-es5/sqm-brand_29.entry.js +1 -0
  106. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  107. package/dist/esm-es5/sqm-image_4.entry.js +1 -1
  108. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  109. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  110. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a6f7f96c.js → sqm-navigation-sidebar-item-view-7ed452df.js} +1 -1
  111. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  112. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  113. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  114. package/dist/esm-es5/{sqm-portal-email-verification-view-2c8bfca8.js → sqm-portal-email-verification-view-08c7e4d9.js} +1 -1
  115. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-portal-footer-view-a6c21fb9.js → sqm-portal-footer-view-fe94be2b.js} +1 -1
  117. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  118. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  119. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  120. package/dist/esm-es5/{sqm-portal-profile-view-6a4ab589.js → sqm-portal-profile-view-a549a7c0.js} +1 -1
  121. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  122. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  123. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  124. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  125. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  126. package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
  127. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  128. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  129. package/dist/esm-es5/sqm-tab-group.entry.js +1 -0
  130. package/dist/esm-es5/sqm-tab-panel.entry.js +1 -0
  131. package/dist/esm-es5/sqm-tab.entry.js +1 -0
  132. package/dist/esm-es5/{useChildElements-c11d6189.js → useChildElements-47a37020.js} +1 -1
  133. package/dist/esm-es5/useDemoBigStat-e2bb9edb.js +1 -0
  134. package/dist/esm-es5/useReferralTable-a585a7f3.js +1 -0
  135. package/dist/mint-components/mint-components.esm.js +1 -1
  136. package/dist/mint-components/mint-components.js +1 -1
  137. package/dist/mint-components/p-051cd961.system.entry.js +1 -0
  138. package/dist/mint-components/p-0c67d3db.entry.js +1 -0
  139. package/dist/mint-components/{p-5a2bd8cc.js → p-0c774d6b.js} +153 -153
  140. package/dist/mint-components/{p-8a55dda8.system.js → p-0d59a2af.system.js} +1 -1
  141. package/dist/mint-components/{p-0aee946d.js → p-0ed31cac.js} +1 -1
  142. package/dist/mint-components/p-0ee39103.entry.js +1 -0
  143. package/dist/mint-components/{p-d312db42.entry.js → p-111e4604.entry.js} +1 -1
  144. package/dist/mint-components/{p-0d66fc45.js → p-11adc84b.js} +1 -1
  145. package/dist/mint-components/p-12c6ad5d.system.entry.js +1 -0
  146. package/dist/mint-components/{p-59454f33.system.js → p-17abcb17.system.js} +1 -1
  147. package/dist/mint-components/p-20f8caa1.system.entry.js +1 -0
  148. package/dist/mint-components/p-2213f0e9.js +30 -0
  149. package/dist/mint-components/p-2a68cee5.entry.js +1 -0
  150. package/dist/mint-components/p-2d7db47e.entry.js +1 -0
  151. package/dist/mint-components/{p-e1166d9b.system.entry.js → p-3250c3fb.system.entry.js} +1 -1
  152. package/dist/mint-components/p-3a8a0112.entry.js +1 -0
  153. package/dist/mint-components/{p-382a1bca.system.js → p-41659735.system.js} +1 -1
  154. package/dist/mint-components/p-48b6bc64.entry.js +1 -0
  155. package/dist/mint-components/p-4bb1034f.entry.js +1 -0
  156. package/dist/mint-components/p-5259ba01.entry.js +1 -0
  157. package/dist/mint-components/p-55b946ad.system.entry.js +1 -0
  158. package/dist/mint-components/p-55e0465a.system.entry.js +1 -0
  159. package/dist/mint-components/p-58e5967c.entry.js +13 -0
  160. package/dist/mint-components/{p-e7b20665.entry.js → p-609552b3.entry.js} +1 -1
  161. package/dist/mint-components/{p-0988f079.system.js → p-672a504b.system.js} +22 -22
  162. package/dist/mint-components/p-68c38020.entry.js +1 -0
  163. package/dist/mint-components/{p-197d1027.system.entry.js → p-68fd7c3d.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-7a5c88bc.js → p-69f44e8b.js} +1 -1
  165. package/dist/mint-components/p-6b36aefc.js +1 -0
  166. package/dist/mint-components/p-7aea48a0.entry.js +1 -0
  167. package/dist/mint-components/{p-1288be55.entry.js → p-81ef8a71.entry.js} +1 -1
  168. package/dist/mint-components/p-88765e8f.system.entry.js +1 -0
  169. package/dist/mint-components/{p-76325d9c.system.entry.js → p-90c60371.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-49c9ff69.entry.js → p-91ce29c3.entry.js} +1 -1
  171. package/dist/mint-components/p-95a1e28e.entry.js +1 -0
  172. package/dist/mint-components/{p-4dbf5bbf.system.js → p-96a155ce.system.js} +1 -1
  173. package/dist/mint-components/p-9724cf5a.entry.js +1 -0
  174. package/dist/mint-components/{p-9f65904f.entry.js → p-98e66502.entry.js} +1 -1
  175. package/dist/mint-components/p-9e557b3b.system.entry.js +1 -0
  176. package/dist/mint-components/p-aab3dc7b.system.entry.js +1 -0
  177. package/dist/mint-components/{p-ea197664.js → p-ac3742ab.js} +1 -1
  178. package/dist/mint-components/p-b343d948.system.entry.js +1 -0
  179. package/dist/mint-components/{p-01748c80.system.entry.js → p-bcd85b52.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-7d74b018.system.entry.js → p-bfa918e7.system.entry.js} +1 -1
  181. package/dist/mint-components/{p-14655192.js → p-c094483d.js} +1 -1
  182. package/dist/mint-components/p-c33c381f.entry.js +1 -0
  183. package/dist/mint-components/{p-d6ef4765.system.entry.js → p-c4fcc31a.system.entry.js} +1 -1
  184. package/dist/mint-components/{p-4275c957.system.entry.js → p-c579ab6c.system.entry.js} +1 -1
  185. package/dist/mint-components/p-c5a062af.system.entry.js +1 -0
  186. package/dist/mint-components/{p-b18cc44f.js → p-c841ffb0.js} +1 -1
  187. package/dist/mint-components/p-cd08d6a8.entry.js +150 -0
  188. package/dist/mint-components/p-cdbbb5f4.system.js +1 -0
  189. package/dist/mint-components/{p-ac65007d.js → p-cf5d224f.js} +1 -1
  190. package/dist/mint-components/p-cf65447a.system.entry.js +1 -0
  191. package/dist/mint-components/p-cfdaecda.entry.js +1 -0
  192. package/dist/mint-components/{p-d8a45132.entry.js → p-d0857216.entry.js} +2 -2
  193. package/dist/mint-components/p-d165c3e3.system.js +1 -0
  194. package/dist/mint-components/{p-a674c833.system.entry.js → p-d1caa056.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-18003e9c.system.js → p-d518d3a9.system.js} +1 -1
  196. package/dist/mint-components/p-d66eb6a1.system.entry.js +1 -0
  197. package/dist/mint-components/p-dde01793.system.js +1 -0
  198. package/dist/mint-components/{p-f5cba1f7.system.entry.js → p-e0d0db66.system.entry.js} +1 -1
  199. package/dist/mint-components/p-e443f189.system.js +1 -0
  200. package/dist/mint-components/p-ec98a39f.system.entry.js +1 -0
  201. package/dist/mint-components/{p-14bd5b1e.entry.js → p-eefd4638.entry.js} +5 -2
  202. package/dist/mint-components/{p-54986541.entry.js → p-ef7a6f26.entry.js} +1 -1
  203. package/dist/mint-components/p-f4b9696d.system.entry.js +1 -0
  204. package/dist/mint-components/{p-5ab40dfa.system.js → p-f8968fee.system.js} +1 -1
  205. package/dist/mint-components/{p-136e2028.system.entry.js → p-f9513a04.system.entry.js} +1 -1
  206. package/dist/mint-components/{p-f86a5253.entry.js → p-fe5467dd.entry.js} +2 -2
  207. package/dist/mint-components/p-fec7d941.system.entry.js +1 -0
  208. package/dist/types/components/sqm-image/Image.stories.d.ts +1 -0
  209. package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -1
  210. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +1 -1
  211. package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +3 -1
  212. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +7 -3
  213. package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +7 -0
  214. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +11 -0
  215. package/dist/types/components/sqm-tab/sqm-tab.d.ts +6 -0
  216. package/dist/types/components/sqm-tab-group/sqm-tab-group.d.ts +6 -0
  217. package/dist/types/components/sqm-tab-panel/sqm-tab-panel.d.ts +6 -0
  218. package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -3
  219. package/dist/types/components.d.ts +64 -2
  220. package/dist/types/saasquatch.d.ts +3 -0
  221. package/grapesjs/grapesjs.js +1 -1
  222. package/package.json +1 -1
  223. package/dist/cjs/insertcss-04580cfa.js +0 -47
  224. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -57
  225. package/dist/esm/insertcss-bcaf3818.js +0 -45
  226. package/dist/esm-es5/ShadowViewAddon-98630948.js +0 -1
  227. package/dist/esm-es5/index.module-ec3dcc82.js +0 -1
  228. package/dist/esm-es5/insertcss-bcaf3818.js +0 -1
  229. package/dist/esm-es5/sqm-brand_28.entry.js +0 -1
  230. package/dist/esm-es5/useDemoBigStat-022e116d.js +0 -1
  231. package/dist/esm-es5/useReferralTable-bccb9ac0.js +0 -1
  232. package/dist/mint-components/p-27849b7e.system.entry.js +0 -1
  233. package/dist/mint-components/p-27e04aaf.entry.js +0 -1
  234. package/dist/mint-components/p-3b184c32.js +0 -1
  235. package/dist/mint-components/p-408551bc.entry.js +0 -1
  236. package/dist/mint-components/p-4991f4c0.system.entry.js +0 -1
  237. package/dist/mint-components/p-5cfce001.system.entry.js +0 -1
  238. package/dist/mint-components/p-5e3f4daa.system.entry.js +0 -1
  239. package/dist/mint-components/p-61d68133.system.entry.js +0 -1
  240. package/dist/mint-components/p-61d769e2.system.js +0 -1
  241. package/dist/mint-components/p-63a6475a.system.entry.js +0 -1
  242. package/dist/mint-components/p-673407d4.entry.js +0 -150
  243. package/dist/mint-components/p-71a4e832.entry.js +0 -13
  244. package/dist/mint-components/p-72a978c8.entry.js +0 -1
  245. package/dist/mint-components/p-871536c7.entry.js +0 -1
  246. package/dist/mint-components/p-875f46d7.system.entry.js +0 -1
  247. package/dist/mint-components/p-8d74871c.system.js +0 -1
  248. package/dist/mint-components/p-95e36be8.entry.js +0 -1
  249. package/dist/mint-components/p-96c971fa.entry.js +0 -1
  250. package/dist/mint-components/p-97f843f9.system.entry.js +0 -1
  251. package/dist/mint-components/p-a2038ff2.entry.js +0 -1
  252. package/dist/mint-components/p-af7d926d.system.entry.js +0 -1
  253. package/dist/mint-components/p-b0c32d15.system.js +0 -1
  254. package/dist/mint-components/p-b0d6a380.system.js +0 -1
  255. package/dist/mint-components/p-b9974b87.entry.js +0 -1
  256. package/dist/mint-components/p-bb7cbb9d.system.entry.js +0 -1
  257. package/dist/mint-components/p-caad0168.entry.js +0 -1
  258. package/dist/mint-components/p-dcff1a85.entry.js +0 -1
  259. package/dist/mint-components/p-e7a29898.entry.js +0 -1
  260. package/dist/mint-components/p-f241ee8a.system.entry.js +0 -1
  261. package/dist/mint-components/p-f4c0cd0b.js +0 -1
  262. package/dist/mint-components/p-f80e4997.system.entry.js +0 -1
  263. package/dist/mint-components/p-fc3bbee6.js +0 -30
  264. package/dist/mint-components/p-fe4d9531.system.js +0 -1
@@ -1,4 +1,4 @@
1
- import{h as e}from"./p-64c3217a.js";import{e as a,u as r}from"./p-b7da9a8a.js";import{d as t,n as l,M as d,R as o,b as n,w as i}from"./p-3b184c32.js";import{u as s,a as u}from"./p-ac65007d.js";const c=t.gql`
1
+ import{h as e}from"./p-64c3217a.js";import{e as a,u as r}from"./p-b7da9a8a.js";import{d as t,i as l,M as d,A as o,b as n,a as i}from"./p-6b36aefc.js";import{u as s,a as u}from"./p-cf5d224f.js";const c=t.gql`
2
2
  query getReferrals(
3
3
  $programId: ID
4
4
  $rewardFilter: RewardFilterInput
@@ -0,0 +1 @@
1
+ import{h as s,c as a,r as t}from"./p-64c3217a.js";import{m as o}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{R as c}from"./p-6b36aefc.js";import"./p-81f34787.js";import{g as e}from"./p-4e05c65a.js";const r=t=>{const{states:o,callbacks:c}=t,{styles:e}=o;return s(a,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding}},e.closeButton&&s("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:()=>c.closePopup()},e.closeButtonText),s("slot",null),e.poweredBy?s("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))},n=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){const a=e(this);return s(r,Object.assign({},function(s){const a=c(),t=s.popupPadding?"none"===s.popupPadding?"0":`var(--sl-spacing-${s.popupPadding})`:"var(--sl-spacing-medium)",o=s.embedPadding?"none"===s.embedPadding?"0":`var(--sl-spacing-${s.embedPadding})`:"0",e="POPUP"===c()?t:o;return{states:{showCloseButton:s.closeButton&&"POPUP"===a,styles:{...s,padding:e,closeButtonText:s.closeButtonText?s.closeButtonText:"X"}},data:{},callbacks:{closePopup:function(){var s;"POPUP"===c()&&(null===(s=window.frameElement.squatchJsApi)||void 0===s||s.close())}}}}(a)))}};n.style=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";export{n as sqm_popup_container}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):a(e.value).then(r,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return u([e,t])}}function u(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;a=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){n.label=r[1];break}if(r[0]===6&&n.label<o[1]){n.label=o[1];o=r;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(r);break}if(o[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];a=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-8bcaafaf.system.js","./p-6b43e4cc.system.js"],(function(e){"use strict";var t,n,i,a,o,r,s,u,l,c,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;a=e.u;o=e.m},function(){},function(e){r=e.n;s=e.t;u=e.p;l=e.k},function(){},function(e){c=e.c},function(){},function(){},function(){},function(e){f=e.P}],execute:function(){function d(e){var t=this;var n=e.nextPage,o=e.failedPage;var l,c,f,d,v;var h=i(false),p=h[0],b=h[1];var y=i(true),g=y[0],m=y[1];var w=r();var _=s(),k=_[0],x=_[1],P=x.loading,j=x.data,S=x.errors;var C=i(""),I=C[0],E=C[1];var M=new URLSearchParams(window.location.search);var N=M.get("oobCode");var T=M.get("nextPage");M.delete("oobCode");var q=function(){return u.push({pathname:o,search:M.toString()&&"?"+M.toString()})};var V=function(){M.delete("nextPage");return u.push({pathname:T||n,search:M.toString()&&"?"+M.toString()})};var D=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!N)return[3,2];E("");return[4,k({oobCode:N})];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};a((function(){var e;if((e=j===null||j===void 0?void 0:j.verifyManagedIdentityEmail)===null||e===void 0?void 0:e.success){b(true)}}),[(l=j===null||j===void 0?void 0:j.verifyManagedIdentityEmail)===null||l===void 0?void 0:l.success]);a((function(){D()}),[]);a((function(){var e,t;if((e=w===null||w===void 0?void 0:w.managedIdentity)===null||e===void 0?void 0:e.emailVerified){m(false);setTimeout((function(){V()}),3e3)}else if(!N||((t=j===null||j===void 0?void 0:j.verifyManagedIdentityEmail)===null||t===void 0?void 0:t.success)===false){m(false)}else if(!w){m(false);setTimeout((function(){V()}),3e3)}}),[(c=w===null||w===void 0?void 0:w.managedIdentity)===null||c===void 0?void 0:c.emailVerified]);a((function(){if(S===null||S===void 0?void 0:S.message){E("Network request failed.")}}),[S]);return{states:{loading:P||g,error:((v=(d=(f=S===null||S===void 0?void 0:S.response)===null||f===void 0?void 0:f.errors)===null||d===void 0?void 0:d[0])===null||v===void 0?void 0:v.message)||I,verified:p},data:{oobCode:N},callbacks:{failed:q,gotoNextPage:V}}}var v=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=l()?h(this):d(this),t=e.states,i=e.data,a=e.callbacks;return n(f,{states:t,data:i,callbacks:a})};return e}());function h(e){return c({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):a(e.value).then(r,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return u([e,t])}}function u(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(o=r[0]&2?a["return"]:r[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;if(a=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;a=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){n.label=r[1];break}if(r[0]===6&&n.label<o[1]){n.label=o[1];o=r;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(r);break}if(o[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];a=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-d165c3e3.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-8bcaafaf.system.js","./p-6b43e4cc.system.js"],(function(e){"use strict";var t,n,i,a,o,r,s,u,l,c,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;a=e.u;o=e.m},function(){},function(e){r=e.i;s=e.K;u=e.c;l=e.j},function(){},function(e){c=e.c},function(){},function(){},function(){},function(e){f=e.P}],execute:function(){function d(e){var t=this;var n=e.nextPage,o=e.failedPage;var l,c,f,d,v;var h=i(false),p=h[0],y=h[1];var b=i(true),g=b[0],m=b[1];var w=r();var _=s(),x=_[0],j=_[1],k=j.loading,P=j.data,S=j.errors;var C=i(""),I=C[0],E=C[1];var M=new URLSearchParams(window.location.search);var N=M.get("oobCode");var T=M.get("nextPage");M.delete("oobCode");var q=function(){return u.push({pathname:o,search:M.toString()&&"?"+M.toString()})};var V=function(){M.delete("nextPage");return u.push({pathname:T||n,search:M.toString()&&"?"+M.toString()})};var D=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!N)return[3,2];E("");return[4,x({oobCode:N})];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};a((function(){var e;if((e=P===null||P===void 0?void 0:P.verifyManagedIdentityEmail)===null||e===void 0?void 0:e.success){y(true)}}),[(l=P===null||P===void 0?void 0:P.verifyManagedIdentityEmail)===null||l===void 0?void 0:l.success]);a((function(){D()}),[]);a((function(){var e,t;if((e=w===null||w===void 0?void 0:w.managedIdentity)===null||e===void 0?void 0:e.emailVerified){m(false);setTimeout((function(){V()}),3e3)}else if(!N||((t=P===null||P===void 0?void 0:P.verifyManagedIdentityEmail)===null||t===void 0?void 0:t.success)===false){m(false)}else if(!w){m(false);setTimeout((function(){V()}),3e3)}}),[(c=w===null||w===void 0?void 0:w.managedIdentity)===null||c===void 0?void 0:c.emailVerified]);a((function(){if(S===null||S===void 0?void 0:S.message){E("Network request failed.")}}),[S]);return{states:{loading:k||g,error:((v=(d=(f=S===null||S===void 0?void 0:S.response)===null||f===void 0?void 0:f.errors)===null||d===void 0?void 0:d[0])===null||v===void 0?void 0:v.message)||I,verified:p},data:{oobCode:N},callbacks:{failed:q,gotoNextPage:V}}}var v=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=l()?h(this):d(this),t=e.states,i=e.data,a=e.callbacks;return n(f,{states:t,data:i,callbacks:a})};return e}());function h(e){return c({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var e in s)if(Object.prototype.hasOwnProperty.call(s,e))t[e]=s[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js"],(function(t){"use strict";var s,i,n,e,a,r,o,l,u;return{setters:[function(t){s=t.h;i=t.r},function(t){n=t.o;e=t.k;a=t.m},function(){},function(t){r=t.k},function(){},function(t){o=t.c},function(t){l=t.E},function(t){u=t.c}],execute:function(){var c={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 d=c.regex;function p(t,s){if(s&&s>1){var i=parseInt(s,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var v={not:function t(s){this.positive=false;if(s){return p.call(this,s)}return true},has:function t(s){this.positive=true;if(s){return p.call(this,s)}return true},is:function t(){this.positive=true;return true},min:function t(s){return this.password.length>=s},max:function t(s){return this.password.length<=s},digits:function t(s){return p.call(this,d.digits,s)},letters:function t(s){return p.call(this,d.letters,s)},uppercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toLowerCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toUpperCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(s){return p.call(this,d.symbols,s)},spaces:function t(s){return p.call(this,d.spaces,s)},oneOf:function t(s){return s.indexOf(this.password)>=0===this.positive}};var h=c.error;function f(t){var s=Number(t);if(isNaN(s)||!Number.isInteger(s)||s<1){throw new Error(h.length)}}function m(t){return v[t.method].apply(this,t.arguments)}function g(t,s){this.properties.push({method:t,arguments:s});return this}var y=function(){function t(){this.properties=[]}t.prototype.validate=function(t,s){var i=this;this.list=Boolean(s&&s.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,s){if(!m.call(i,s)){return t.concat(s.method)}return t}),[])}return this.properties.every(m.bind(this))};t.prototype.letters=function(t){t&&f(t);return g.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&f(t);return g.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&f(t);return g.call(this,"symbols",arguments)};t.prototype.min=function(t){f(t);return g.call(this,"min",arguments)};t.prototype.max=function(t){f(t);return g.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&f(t);return g.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&f(t);return g.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&f(t);return g.call(this,"spaces",arguments)};t.prototype.has=function(){return g.call(this,"has",arguments)};t.prototype.not=function(){return g.call(this,"not",arguments)};t.prototype.is=function(){return g.call(this,"is",arguments)};t.prototype.oneOf=function(){return g.call(this,"oneOf",arguments)};return t}();var w=y;var b=(new w).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var x=function(t){var s=b.validate(t,{list:true});var i=k(s,t);return i};var L=function(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},s("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 V=function(){return s("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("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 C={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"};var _={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var I={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({},_),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},_)};var E=u(I);var j=E.toString();var k=function(t,i){if(!t.length&&i)return s("div",{class:E.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},s("style",{type:"text/css"},j),s(L,null)," ",s("span",null,"Password has met all requirements"));return s("div",{class:E.classes.Base},s("style",{type:"text/css"},j),"Password must meet the following requirements:",s("ul",{class:E.classes.ValidationList},Object.keys(C).map((function(i){return t.includes(i)?s("li",{class:E.classes.ValidationItemInvalid},s(V,null)," ",s("span",null,C[i])):s("li",{class:E.classes.ValidationItemValid},s(L,null)," ",s("span",null,C[i]))}))))};var O={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:l};var S="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(O);var P=D.toString();function B(t){var i,n;var e=t.states,a=t.callbacks;return s("div",{class:D.classes.InputContainer},s("style",{type:"text/css"},S,P),s("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:e.content.fieldLabel||"Password",required:true,validationError:function(t){var s=t.value;if(!s){return"Cannot be empty"}}},((i=e.validationErrors)===null||i===void 0?void 0:i.password)?{class:D.classes.ErrorStyle,helpText:((n=e.validationErrors)===null||n===void 0?void 0:n.password)||"Cannot be empty"}:[],{onInput:function(t){return e.enableValidation&&a.onInput(t)}})),e.dynamicValidation)}var M="sq:validation-state";function Z(t){var s=n(M);var i=e(""),a=i[0],r=i[1];function o(t){var s=x(t.target.value);r(s)}return{states:{enableValidation:t.enableValidation,dynamicValidation:a,validationErrors:s===null||s===void 0?void 0:s.validationErrors,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var q=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.enableValidation=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r()?z(this):Z(this),i=t.states,n=t.callbacks;return s(B,{states:i,callbacks:n})};return t}());function z(t){var s,i,n,a,r,l,u;var c=e(""),d=c[0],p=c[1];var v=e(""),h=v[0],f=v[1];if(t.demoData&&h!=((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)){var m=x(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"");p(((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)===""?"":m);f((a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.initValue)}function g(t){var s=x(t.target.value);p(s)}return o({states:{enableValidation:true,dynamicValidation:d,validationErrors:((l=(r=t===null||t===void 0?void 0:t.demoData)===null||r===void 0?void 0:r.states)===null||l===void 0?void 0:l.validationErrors)||{},content:{fieldLabel:"Password"}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,s){return s}})}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var e in s)if(Object.prototype.hasOwnProperty.call(s,e))t[e]=s[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-d165c3e3.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js"],(function(t){"use strict";var s,i,n,e,a,r,o,l,u;return{setters:[function(t){s=t.h;i=t.r},function(t){n=t.o;e=t.k;a=t.m},function(){},function(t){r=t.j},function(){},function(t){o=t.c},function(t){l=t.E},function(t){u=t.c}],execute:function(){var c={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 d=c.regex;function p(t,s){if(s&&s>1){var i=parseInt(s,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var v={not:function t(s){this.positive=false;if(s){return p.call(this,s)}return true},has:function t(s){this.positive=true;if(s){return p.call(this,s)}return true},is:function t(){this.positive=true;return true},min:function t(s){return this.password.length>=s},max:function t(s){return this.password.length<=s},digits:function t(s){return p.call(this,d.digits,s)},letters:function t(s){return p.call(this,d.letters,s)},uppercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toLowerCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toUpperCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(s){return p.call(this,d.symbols,s)},spaces:function t(s){return p.call(this,d.spaces,s)},oneOf:function t(s){return s.indexOf(this.password)>=0===this.positive}};var h=c.error;function f(t){var s=Number(t);if(isNaN(s)||!Number.isInteger(s)||s<1){throw new Error(h.length)}}function m(t){return v[t.method].apply(this,t.arguments)}function g(t,s){this.properties.push({method:t,arguments:s});return this}var y=function(){function t(){this.properties=[]}t.prototype.validate=function(t,s){var i=this;this.list=Boolean(s&&s.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,s){if(!m.call(i,s)){return t.concat(s.method)}return t}),[])}return this.properties.every(m.bind(this))};t.prototype.letters=function(t){t&&f(t);return g.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&f(t);return g.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&f(t);return g.call(this,"symbols",arguments)};t.prototype.min=function(t){f(t);return g.call(this,"min",arguments)};t.prototype.max=function(t){f(t);return g.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&f(t);return g.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&f(t);return g.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&f(t);return g.call(this,"spaces",arguments)};t.prototype.has=function(){return g.call(this,"has",arguments)};t.prototype.not=function(){return g.call(this,"not",arguments)};t.prototype.is=function(){return g.call(this,"is",arguments)};t.prototype.oneOf=function(){return g.call(this,"oneOf",arguments)};return t}();var w=y;var b=(new w).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var x=function(t){var s=b.validate(t,{list:true});var i=k(s,t);return i};var L=function(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},s("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 V=function(){return s("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("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 C={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"};var _={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var I={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({},_),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},_)};var j=u(I);var E=j.toString();var k=function(t,i){if(!t.length&&i)return s("div",{class:j.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},s("style",{type:"text/css"},E),s(L,null)," ",s("span",null,"Password has met all requirements"));return s("div",{class:j.classes.Base},s("style",{type:"text/css"},E),"Password must meet the following requirements:",s("ul",{class:j.classes.ValidationList},Object.keys(C).map((function(i){return t.includes(i)?s("li",{class:j.classes.ValidationItemInvalid},s(V,null)," ",s("span",null,C[i])):s("li",{class:j.classes.ValidationItemValid},s(L,null)," ",s("span",null,C[i]))}))))};var O={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:l};var S="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(O);var P=D.toString();function B(t){var i,n;var e=t.states,a=t.callbacks;return s("div",{class:D.classes.InputContainer},s("style",{type:"text/css"},S,P),s("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:e.content.fieldLabel||"Password",required:true,validationError:function(t){var s=t.value;if(!s){return"Cannot be empty"}}},((i=e.validationErrors)===null||i===void 0?void 0:i.password)?{class:D.classes.ErrorStyle,helpText:((n=e.validationErrors)===null||n===void 0?void 0:n.password)||"Cannot be empty"}:[],{onInput:function(t){return e.enableValidation&&a.onInput(t)}})),e.dynamicValidation)}var M="sq:validation-state";function Z(t){var s=n(M);var i=e(""),a=i[0],r=i[1];function o(t){var s=x(t.target.value);r(s)}return{states:{enableValidation:t.enableValidation,dynamicValidation:a,validationErrors:s===null||s===void 0?void 0:s.validationErrors,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var q=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.enableValidation=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r()?z(this):Z(this),i=t.states,n=t.callbacks;return s(B,{states:i,callbacks:n})};return t}());function z(t){var s,i,n,a,r,l,u;var c=e(""),d=c[0],p=c[1];var v=e(""),h=v[0],f=v[1];if(t.demoData&&h!=((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)){var m=x(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"");p(((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)===""?"":m);f((a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.initValue)}function g(t){var s=x(t.target.value);p(s)}return o({states:{enableValidation:true,dynamicValidation:d,validationErrors:((l=(r=t===null||t===void 0?void 0:t.demoData)===null||r===void 0?void 0:r.states)===null||l===void 0?void 0:l.validationErrors)||{},content:{fieldLabel:"Password"}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,s){return s}})}}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-672a504b.system.js","./p-e00e11b1.system.js","./p-d165c3e3.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-8bcaafaf.system.js","./p-d518d3a9.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,c,l;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.u;a=e.m},function(){},function(){},function(e){o=e.n;s=e.i;u=e.j},function(){},function(e){c=e.c},function(){},function(){},function(){},function(e){l=e.P}],execute:function(){function f(e){var t=this;var n,a,u,c,l;var f=o(),d=f[0],v=f[1],m=v.loading,y=v.data,h=v.errors;var p=s();var b=(n=p===null||p===void 0?void 0:p.managedIdentity)===null||n===void 0?void 0:n.email;var g=i(false),w=g[0],_=g[1];var x=i(""),j=x[0],k=x[1];var P=new URLSearchParams(window.location.search);var E=P.get("nextPage");var V=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,i;return __generator(this,(function(r){switch(r.label){case 0:if(!b)return[2];k("");t=E?{nextPage:E}:null;n=e.redirectPath;i={email:b,urlParams:t,redirectPath:n};return[4,d(i)];case 1:r.sent();return[2]}}))}))};r((function(){var e;if((e=y===null||y===void 0?void 0:y.requestManagedIdentityVerificationEmail)===null||e===void 0?void 0:e.success){_(true)}}),[(a=y===null||y===void 0?void 0:y.requestManagedIdentityVerificationEmail)===null||a===void 0?void 0:a.success]);r((function(){if(h===null||h===void 0?void 0:h.message){k("Network request failed.")}}),[h]);return{states:{loading:m,error:((l=(c=(u=h===null||h===void 0?void 0:h.response)===null||u===void 0?void 0:u.errors)===null||c===void 0?void 0:c[0])===null||l===void 0?void 0:l.message)||j,success:w},callbacks:{submit:V},content:{email:b,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText}}}var d=e("sqm_portal_email_verification",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?v(this):f(this),t=e.states,i=e.callbacks,r=e.content;return n(l,{states:t,callbacks:i,content:r})};return e}());function v(e){var t=this;return c({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- import{h as l}from"./p-64c3217a.js";import{i as e}from"./p-5a2bd8cc.js";import{c as t}from"./p-373fa002.js";import{T as r}from"./p-179988b5.js";import{P as a}from"./p-975d4358.js";function o(o){var i,s,n,p,d;const{states:u,callbacks:m}=o,{text:b,formState:c}=u,{errors:v,error:x}=c,f=t({FormStyle:{"& >*:not(:last-child)":{"margin-bottom":"32px"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},NameInputStyle:{"&:not(:last-child)":{"margin-right":"var(--sl-spacing-medium)"}}}),g=f.toString(),y=(null===(i=u.user)||void 0===i?void 0:i.countryCode)?e.formatDisplayName(null===(s=u.user)||void 0===s?void 0:s.countryCode,{type:"region"}):"";return l(a,Object.assign({},{direction:"row",padding:"xxx-large",gap:"xxx-large",minWidth:"600px"}),l("style",{type:"text/css"},g),l(r,Object.assign({},{type:"h1"}),b.editProfileHeader),l(r,Object.assign({},{type:"h2"}),b.editProfileSubHeader),l("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&l("sqm-form-message",{exportparts:"success-icon"},l("div",{part:"successalert-text"},"Your profile has been successfully updated.")),x&&l("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},l("div",{part:"erroralert-text"},x)),l(a,Object.assign({},{direction:"row",padding:"none",gap:"32px",minWidth:"50%"}),l("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:null===(n=u.user)||void 0===n?void 0:n.firstName,onInput:m.onChange,label:b.firstnametext,disabled:u.loading},(null==v?void 0:v.firstName)&&"valid"!==(null==v?void 0:v.firstName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(null==v?void 0:v.firstName)&&"valid"!==(null==v?void 0:v.firstName.status)?null==v?void 0:v.firstName.message:void 0})),l("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:null===(p=u.user)||void 0===p?void 0:p.lastName,onInput:m.onChange,label:b.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(null==v?void 0:v.lastName)&&"valid"!==(null==v?void 0:v.lastName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(null==v?void 0:v.lastName)&&"valid"!==(null==v?void 0:v.lastName.status)?null==v?void 0:v.lastName.message:void 0}))),l("sl-input",{label:b.emailtext,value:null===(d=u.user)||void 0===d?void 0:d.email,exportparts:"label: input-label",disabled:!0}),u.showCountry&&l("sl-input",{label:b.countrytext,value:y,exportparts:"label: input-label",disabled:!0}),l("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:l=>{m.onSubmit(l)},submit:!0},b.submitChangeButtonText)))}export{o as P}
1
+ import{h as l}from"./p-64c3217a.js";import{i as e}from"./p-0c774d6b.js";import{c as t}from"./p-373fa002.js";import{T as r}from"./p-179988b5.js";import{P as a}from"./p-975d4358.js";function o(o){var i,s,n,p,d;const{states:u,callbacks:m}=o,{text:b,formState:c}=u,{errors:v,error:x}=c,f=t({FormStyle:{"& >*:not(:last-child)":{"margin-bottom":"32px"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},NameInputStyle:{"&:not(:last-child)":{"margin-right":"var(--sl-spacing-medium)"}}}),g=f.toString(),y=(null===(i=u.user)||void 0===i?void 0:i.countryCode)?e.formatDisplayName(null===(s=u.user)||void 0===s?void 0:s.countryCode,{type:"region"}):"";return l(a,Object.assign({},{direction:"row",padding:"xxx-large",gap:"xxx-large",minWidth:"600px"}),l("style",{type:"text/css"},g),l(r,Object.assign({},{type:"h1"}),b.editProfileHeader),l(r,Object.assign({},{type:"h2"}),b.editProfileSubHeader),l("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&l("sqm-form-message",{exportparts:"success-icon"},l("div",{part:"successalert-text"},"Your profile has been successfully updated.")),x&&l("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},l("div",{part:"erroralert-text"},x)),l(a,Object.assign({},{direction:"row",padding:"none",gap:"32px",minWidth:"50%"}),l("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:null===(n=u.user)||void 0===n?void 0:n.firstName,onInput:m.onChange,label:b.firstnametext,disabled:u.loading},(null==v?void 0:v.firstName)&&"valid"!==(null==v?void 0:v.firstName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(null==v?void 0:v.firstName)&&"valid"!==(null==v?void 0:v.firstName.status)?null==v?void 0:v.firstName.message:void 0})),l("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:null===(p=u.user)||void 0===p?void 0:p.lastName,onInput:m.onChange,label:b.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(null==v?void 0:v.lastName)&&"valid"!==(null==v?void 0:v.lastName.status)?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(null==v?void 0:v.lastName)&&"valid"!==(null==v?void 0:v.lastName.status)?null==v?void 0:v.lastName.message:void 0}))),l("sl-input",{label:b.emailtext,value:null===(d=u.user)||void 0===d?void 0:d.email,exportparts:"label: input-label",disabled:!0}),u.showCountry&&l("sl-input",{label:b.countrytext,value:y,exportparts:"label: input-label",disabled:!0}),l("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:l=>{m.onSubmit(l)},submit:!0},b.submitChangeButtonText)))}export{o as P}