@saasquatch/mint-components 2.0.0-66 → 2.0.0-68

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 (253) hide show
  1. package/dist/cjs/{ShadowViewAddon-23b04c91.js → ShadowViewAddon-1b38dcfc.js} +11 -7
  2. package/dist/cjs/{copy-text-view-51c8ee5d.js → copy-text-view-322436c2.js} +2 -8
  3. package/dist/cjs/{usePayoutStatus-fe32dd1a.js → data-16106637.js} +142 -0
  4. package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mint-components.cjs.js +1 -1
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +10 -14
  8. package/dist/cjs/{sqm-base-registration-form-view-7b95ae7a.js → sqm-base-registration-form-view-69a4b615.js} +9 -4
  9. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +1317 -13
  10. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  21. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  22. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
  24. package/dist/cjs/sqm-portal-profile.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  26. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -3
  30. package/dist/cjs/sqm-stencilbook.cjs.entry.js +18 -17
  31. package/dist/cjs/sqm-tabs.cjs.entry.js +1 -4
  32. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -2
  33. package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -4
  34. package/dist/cjs/{usePortalLogin-353f776a.js → usePortalLogin-1c022d8d.js} +1 -1
  35. package/dist/cjs/{utils-0d3ac0fb.js → utils-6847bc06.js} +0 -4
  36. package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
  37. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
  38. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -2
  39. package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
  40. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
  41. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
  42. package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
  43. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
  44. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
  45. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
  46. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
  47. package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
  48. package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
  49. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
  50. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
  51. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
  52. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
  53. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -2
  54. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -3
  55. package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -1
  56. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -1
  57. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -3
  58. package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
  59. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +8 -4
  60. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +6 -10
  61. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +0 -1
  62. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -4
  63. package/dist/collection/components/views/copy-text-view.js +2 -8
  64. package/dist/collection/utils/utils.js +0 -1
  65. package/dist/esm/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-1adaf077.js} +11 -7
  66. package/dist/esm/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +2 -8
  67. package/dist/esm/{usePayoutStatus-42cc6a2c.js → data-acdb790f.js} +128 -1
  68. package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/mint-components.js +1 -1
  71. package/dist/esm/sqm-banking-info-form_10.entry.js +3 -7
  72. package/dist/esm/{sqm-base-registration-form-view-1a6bb4b4.js → sqm-base-registration-form-view-9e97d8b4.js} +9 -4
  73. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +1315 -12
  74. package/dist/esm/sqm-code-verification.entry.js +1 -1
  75. package/dist/esm/sqm-context-router.entry.js +1 -1
  76. package/dist/esm/sqm-email-verification.entry.js +1 -1
  77. package/dist/esm/sqm-empty_4.entry.js +1 -1
  78. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
  79. package/dist/esm/sqm-lead-checkbox-field.entry.js +1 -1
  80. package/dist/esm/sqm-lead-input-field.entry.js +1 -1
  81. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  82. package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
  83. package/dist/esm/sqm-pagination_3.entry.js +2 -2
  84. package/dist/esm/sqm-password-field.entry.js +1 -1
  85. package/dist/esm/sqm-popup-container.entry.js +1 -1
  86. package/dist/esm/sqm-portal-google-login.entry.js +2 -2
  87. package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
  88. package/dist/esm/sqm-portal-profile.entry.js +1 -1
  89. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  90. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  91. package/dist/esm/sqm-qr-code.entry.js +1 -1
  92. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  93. package/dist/esm/sqm-rewards-table_9.entry.js +2 -3
  94. package/dist/esm/sqm-stencilbook.entry.js +18 -17
  95. package/dist/esm/sqm-tabs.entry.js +1 -4
  96. package/dist/esm/sqm-widget-verification-controller.entry.js +3 -2
  97. package/dist/esm/sqm-widget-verification.entry.js +2 -3
  98. package/dist/esm/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
  99. package/dist/esm/{utils-84b4b092.js → utils-334c1e34.js} +0 -4
  100. package/dist/esm-es5/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-1adaf077.js} +1 -1
  101. package/dist/esm-es5/data-acdb790f.js +6 -0
  102. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  103. package/dist/esm-es5/loader.js +1 -1
  104. package/dist/esm-es5/mint-components.js +1 -1
  105. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  106. package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +1 -0
  107. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
  108. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  109. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  110. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  111. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  112. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
  113. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  114. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  115. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  116. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  117. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  118. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  119. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  120. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  121. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  122. package/dist/esm-es5/sqm-portal-profile.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-qr-code.entry.js +1 -1
  126. package/dist/esm-es5/sqm-referral-table_11.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-tabs.entry.js +1 -1
  130. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  131. package/dist/esm-es5/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
  132. package/dist/esm-es5/utils-334c1e34.js +1 -0
  133. package/dist/mint-components/mint-components.esm.js +1 -1
  134. package/dist/mint-components/{p-6b247deb.entry.js → p-010957a1.entry.js} +6 -6
  135. package/dist/mint-components/p-0797a946.js +1 -0
  136. package/dist/mint-components/{p-0ea4d6a1.system.entry.js → p-0b9b1b36.system.entry.js} +1 -1
  137. package/dist/mint-components/{p-7d735c9c.js → p-0e1a1b14.js} +4 -4
  138. package/dist/mint-components/{p-7bae9bb7.system.entry.js → p-14e813a7.system.entry.js} +1 -1
  139. package/dist/mint-components/{p-35081b0c.system.entry.js → p-18720462.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-c6fa4cc5.system.js → p-20c40fdf.system.js} +1 -1
  141. package/dist/mint-components/{p-eba70d67.system.entry.js → p-2700136f.system.entry.js} +1 -1
  142. package/dist/mint-components/{p-67aa0b2d.entry.js → p-30278955.entry.js} +1 -1
  143. package/dist/mint-components/{p-622b4066.entry.js → p-31bba357.entry.js} +2 -2
  144. package/dist/mint-components/{p-2ff72acc.entry.js → p-3b46fae5.entry.js} +2 -2
  145. package/dist/mint-components/{p-e711d0e9.js → p-44fc6029.js} +1 -1
  146. package/dist/mint-components/p-469a6450.system.js +6 -0
  147. package/dist/mint-components/{p-7b8cd420.system.entry.js → p-4ce51b1c.system.entry.js} +1 -1
  148. package/dist/mint-components/p-51a6a779.js +1 -0
  149. package/dist/mint-components/{p-cb845a3a.system.entry.js → p-56009bf0.system.entry.js} +1 -1
  150. package/dist/mint-components/{p-c86f64ad.system.entry.js → p-5b7a896e.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-0caad0db.entry.js → p-5d059c95.entry.js} +1 -1
  152. package/dist/mint-components/{p-f370bddc.entry.js → p-60c14cec.entry.js} +1 -1
  153. package/dist/mint-components/p-6333265f.system.js +1 -0
  154. package/dist/mint-components/{p-6b0f79d1.system.entry.js → p-6445e926.system.entry.js} +1 -1
  155. package/dist/mint-components/p-662ed116.system.entry.js +1 -0
  156. package/dist/mint-components/{p-a9ad7fb2.system.entry.js → p-674d9089.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-29f0c87d.entry.js → p-6a0ddee0.entry.js} +1 -1
  158. package/dist/mint-components/p-6c006998.entry.js +33 -0
  159. package/dist/mint-components/{p-b1eafaae.entry.js → p-6d9ce4e5.entry.js} +1 -1
  160. package/dist/mint-components/{p-b703c89f.system.entry.js → p-717b6730.system.entry.js} +1 -1
  161. package/dist/mint-components/p-720341b1.entry.js +273 -0
  162. package/dist/mint-components/{p-b55002dc.system.entry.js → p-72b914b9.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-433e7458.entry.js → p-7e323f2c.entry.js} +1 -1
  164. package/dist/mint-components/p-80569911.system.js +1 -0
  165. package/dist/mint-components/{p-c531cc75.entry.js → p-85029918.entry.js} +1 -1
  166. package/dist/mint-components/{p-ab018deb.entry.js → p-8931d05e.entry.js} +2 -2
  167. package/dist/mint-components/{p-b487cb00.system.entry.js → p-8afb47c5.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-cf22cf56.entry.js → p-8b5b2acc.entry.js} +1 -1
  169. package/dist/mint-components/p-95b6e903.entry.js +1 -0
  170. package/dist/mint-components/p-967a9040.system.js +1 -1
  171. package/dist/mint-components/p-9ba07029.system.entry.js +1 -0
  172. package/dist/mint-components/{p-6dc742bc.js → p-9ec99ced.js} +1 -1
  173. package/dist/mint-components/{p-bb452830.system.js → p-9f8d34d1.system.js} +1 -1
  174. package/dist/mint-components/{p-4250b06d.entry.js → p-a217cc8d.entry.js} +1 -1
  175. package/dist/mint-components/{p-4c9d80e4.entry.js → p-a32afaaa.entry.js} +1 -1
  176. package/dist/mint-components/{p-61157c6a.entry.js → p-a5c63310.entry.js} +1 -1
  177. package/dist/mint-components/{p-1c6ef258.system.entry.js → p-ac86903a.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-76d4ef41.entry.js → p-aefaec37.entry.js} +1 -1
  179. package/dist/mint-components/{p-bfd77a07.entry.js → p-b00e8365.entry.js} +1 -1
  180. package/dist/mint-components/{p-66cf70f7.system.entry.js → p-b3510ca0.system.entry.js} +1 -1
  181. package/dist/mint-components/{p-06f13966.system.entry.js → p-bec87ac9.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-f7c0877d.entry.js → p-c95a437e.entry.js} +1 -1
  183. package/dist/mint-components/p-d2bb770d.system.entry.js +1 -0
  184. package/dist/mint-components/{p-d4edce6c.system.entry.js → p-d3120982.system.entry.js} +1 -1
  185. package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
  186. package/dist/mint-components/{p-cf4e1709.entry.js → p-d9780ae9.entry.js} +1 -1
  187. package/dist/mint-components/{p-978d06ab.entry.js → p-e1422b78.entry.js} +1 -1
  188. package/dist/mint-components/p-e1e7d01c.js +157 -0
  189. package/dist/mint-components/{p-84d1041d.system.entry.js → p-e3b4e06a.system.entry.js} +1 -1
  190. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  191. package/dist/mint-components/{p-0d21194c.entry.js → p-ea0bc627.entry.js} +1 -1
  192. package/dist/mint-components/{p-dd30354a.system.entry.js → p-f3613921.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-55eaba8e.system.entry.js → p-f3c2074b.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-2623b232.system.entry.js → p-f401ef19.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-c065057d.entry.js → p-f7e49c12.entry.js} +2 -2
  196. package/dist/mint-components/p-fedb9ab8.system.entry.js +1 -0
  197. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
  198. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  199. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
  200. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
  201. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
  202. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
  203. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
  204. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
  205. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
  206. package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
  207. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
  208. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +3 -2
  209. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  210. package/dist/types/components.d.ts +16 -4
  211. package/docs/docs.docx +0 -0
  212. package/docs/raisins.json +1 -1
  213. package/grapesjs/grapesjs.js +1 -1
  214. package/package.json +2 -2
  215. package/dist/cjs/data-88adb95b.js +0 -146
  216. package/dist/cjs/parseStates-d1effc19.js +0 -16
  217. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1313
  218. package/dist/esm/data-807686c2.js +0 -130
  219. package/dist/esm/parseStates-ed75e224.js +0 -14
  220. package/dist/esm/sqm-tax-and-cash.entry.js +0 -1309
  221. package/dist/esm-es5/data-807686c2.js +0 -1
  222. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  223. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  224. package/dist/esm-es5/sqm-base-registration-form-view-1a6bb4b4.js +0 -1
  225. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  226. package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
  227. package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +0 -6
  228. package/dist/esm-es5/utils-84b4b092.js +0 -1
  229. package/dist/mint-components/p-115dfc03.system.js +0 -1
  230. package/dist/mint-components/p-13f3a647.js +0 -1
  231. package/dist/mint-components/p-1522a7d1.js +0 -1
  232. package/dist/mint-components/p-26468242.js +0 -1
  233. package/dist/mint-components/p-4306a11d.entry.js +0 -33
  234. package/dist/mint-components/p-43a9fb8e.system.entry.js +0 -1
  235. package/dist/mint-components/p-454a6d05.system.entry.js +0 -1
  236. package/dist/mint-components/p-4b9976cc.system.js +0 -1
  237. package/dist/mint-components/p-60f1cca2.system.js +0 -1
  238. package/dist/mint-components/p-71a6e549.system.entry.js +0 -1
  239. package/dist/mint-components/p-75c569f7.entry.js +0 -1
  240. package/dist/mint-components/p-7837f69e.js +0 -46
  241. package/dist/mint-components/p-7b8232f8.system.js +0 -6
  242. package/dist/mint-components/p-8c3c4e92.js +0 -112
  243. package/dist/mint-components/p-a63a985a.system.entry.js +0 -1
  244. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  245. package/dist/mint-components/p-b038b72a.system.entry.js +0 -1
  246. package/dist/mint-components/p-b21c5311.system.js +0 -1
  247. package/dist/mint-components/p-c2ac14b7.entry.js +0 -1
  248. package/dist/mint-components/p-c40ea48b.entry.js +0 -273
  249. package/dist/mint-components/p-ecc84140.system.entry.js +0 -1
  250. package/shoelace/assets/icons/twitter-x.svg +0 -4
  251. /package/dist/esm-es5/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +0 -0
  252. /package/dist/mint-components/{p-45c3ff6d.js → p-4a0a76a5.js} +0 -0
  253. /package/dist/mint-components/{p-c210374a.system.js → p-ce81839d.system.js} +0 -0
@@ -1 +1 @@
1
- System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-60f1cca2.system.js","./p-7159c51c.system.js"],(function(t){"use strict";var e,n,r,o,i,s;return{setters:[function(t){e=t.r;n=t.h;r=t.c},function(t){o=t.n},function(t){i=t.l},function(t){s=t.l}],execute:function(){var l=t("sqm_invoice_table_data_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return this.data};return t}());var c=t("sqm_invoice_table_date_cell",function(){function t(t){e(this,t);this.ignored=true;this.locale="en";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t,e;var n=!this.date?"-":(e=(t=s.DateTime.fromMillis(this.date))===null||t===void 0?void 0:t.setLocale(i(this.locale)))===null||e===void 0?void 0:e.toLocaleString(s.DateTime.DATE_MED);return n};return t}());var a=t("sqm_invoice_table_download_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t="svg:hover, svg:hover * {\n cursor: pointer;\n }";return n(r,null,n("style",null,t),!!this.downloadUrl&&n("a",{href:this.downloadUrl,target:"_blank"},n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z",fill:"var(--sqm-text-subdued)"}),n("path",{d:"M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z",fill:"var(--sqm-text-subdued)"}))))};return t}());var d=t("sqm_table_cell",function(){function t(t){e(this,t);this.colspan=1;this.padding="15px 10px"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("td",{colSpan:this.colspan,style:{padding:this.padding}},n("slot",null)))};return t}());var u=t("sqm_table_row",function(){function t(t){e(this,t);this.border="var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("tr",{style:{border:this.border}},n("slot",null)))};return t}())}}}));
1
+ System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-6333265f.system.js","./p-7159c51c.system.js"],(function(t){"use strict";var e,n,r,o,i,s;return{setters:[function(t){e=t.r;n=t.h;r=t.c},function(t){o=t.n},function(t){i=t.l},function(t){s=t.l}],execute:function(){var l=t("sqm_invoice_table_data_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return this.data};return t}());var a=t("sqm_invoice_table_date_cell",function(){function t(t){e(this,t);this.ignored=true;this.locale="en";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t,e;var n=!this.date?"-":(e=(t=s.DateTime.fromMillis(this.date))===null||t===void 0?void 0:t.setLocale(i(this.locale)))===null||e===void 0?void 0:e.toLocaleString(s.DateTime.DATE_MED);return n};return t}());var c=t("sqm_invoice_table_download_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t="svg:hover, svg:hover * {\n cursor: pointer;\n }";return n(r,null,n("style",null,t),!!this.downloadUrl&&n("a",{href:this.downloadUrl,target:"_blank"},n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z",fill:"var(--sqm-text-subdued)"}),n("path",{d:"M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z",fill:"var(--sqm-text-subdued)"}))))};return t}());var d=t("sqm_table_cell",function(){function t(t){e(this,t);this.colspan=1;this.padding="15px 10px"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("td",{colSpan:this.colspan,style:{padding:this.padding}},n("slot",null)))};return t}());var u=t("sqm_table_row",function(){function t(t){e(this,t);this.border="var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("tr",{style:{border:this.border}},n("slot",null)))};return t}())}}}));
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-c7c11325.js";import{n as o}from"./p-63e29387.js";import{i as e,j as a}from"./p-0ec54f97.js";import"./p-e7e129ac.js";import{c as r}from"./p-c1086930.js";import"./p-6dc742bc.js";import{c as i}from"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as n}from"./p-240bec23.js";import{u as l}from"./p-e711d0e9.js";const c=class{constructor(t){s(this,t),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordPath="/forgotPassword",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.registerPath="/register",this.pageLabel="Sign in to your account",this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.",this.googleUserNotRegisteredError="Your Google account has not registered on our platform. Please complete the registration process with your Google account.",this.registerCTA="Don't have an account?",o(this)}disconnectedCallback(){}render(){const{states:s,callbacks:o}=e()?r({states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:async()=>{console.log("google submit")},submit:async()=>{console.log("submit")}},content:{googleButton:null}},this.demoData||{},{arrayMerge:(s,t)=>t}):l(this),c=i({RegisterButton:{"&::part(label)":{padding:"0"}}}),g=c.toString(),h={forgotPasswordButton:t("slot",{name:"forgotPassword"},t("a",{onClick:()=>a.push(s.forgotPasswordPath)},this.forgotPasswordLabel)),googleButton:t("sqm-google-sign-in",{onInitComplete:o.googleSubmit}),secondaryButton:t("slot",{name:"secondaryButton"},t("style",null,g),t("span",null,this.registerCTA," ",t("sl-button",{size:"large",type:"text",disabled:s.loading,onClick:()=>a.push(s.registerPath),className:c.classes.RegisterButton},this.registerLabel))),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return t(n,{states:s,callbacks:o,content:h})}};export{c as sqm_portal_google_login}
1
+ import{r as s,h as t}from"./p-c7c11325.js";import{n as o}from"./p-63e29387.js";import{i as e,j as a}from"./p-0ec54f97.js";import"./p-e7e129ac.js";import{c as r}from"./p-c1086930.js";import"./p-9ec99ced.js";import{c as i}from"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as n}from"./p-240bec23.js";import{u as l}from"./p-44fc6029.js";const c=class{constructor(t){s(this,t),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordPath="/forgotPassword",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.registerPath="/register",this.pageLabel="Sign in to your account",this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.",this.googleUserNotRegisteredError="Your Google account has not registered on our platform. Please complete the registration process with your Google account.",this.registerCTA="Don't have an account?",o(this)}disconnectedCallback(){}render(){const{states:s,callbacks:o}=e()?r({states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:async()=>{console.log("google submit")},submit:async()=>{console.log("submit")}},content:{googleButton:null}},this.demoData||{},{arrayMerge:(s,t)=>t}):l(this),c=i({RegisterButton:{"&::part(label)":{padding:"0"}}}),g=c.toString(),h={forgotPasswordButton:t("slot",{name:"forgotPassword"},t("a",{onClick:()=>a.push(s.forgotPasswordPath)},this.forgotPasswordLabel)),googleButton:t("sqm-google-sign-in",{onInitComplete:o.googleSubmit}),secondaryButton:t("slot",{name:"secondaryButton"},t("style",null,g),t("span",null,this.registerCTA," ",t("sl-button",{size:"large",type:"text",disabled:s.loading,onClick:()=>a.push(s.registerPath),className:c.classes.RegisterButton},this.registerLabel))),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return t(n,{states:s,callbacks:o,content:h})}};export{c as sqm_portal_google_login}
@@ -0,0 +1,33 @@
1
+ import{r as e,h as t}from"./p-c7c11325.js";import"./p-db1a0db1.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-0ec54f97.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-aa8c6332.js";import{i as v}from"./p-513f5d80.js";const f=s.gql`
2
+ query {
3
+ viewer {
4
+ ... on User {
5
+ id
6
+ accountId
7
+ firstName
8
+ lastName
9
+ email
10
+ countryCode
11
+ }
12
+ }
13
+ }
14
+ `,h=s.gql`
15
+ mutation (
16
+ $id: String!
17
+ $accountId: String!
18
+ $firstName: String!
19
+ $lastName: String!
20
+ ) {
21
+ upsertUser(
22
+ userInput: {
23
+ id: $id
24
+ accountId: $accountId
25
+ firstName: $firstName
26
+ lastName: $lastName
27
+ }
28
+ ) {
29
+ firstName
30
+ lastName
31
+ }
32
+ }
33
+ `,p={country:"",email:"",firstName:"",lastName:"",errors:{},error:""},b=class{constructor(t){e(this,t),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.editProfileHeader="Edit your profile",this.editProfileSubHeader="Personal Information",this.submitChangeButtonText="Submit Changes",this.hideCountry=!1,this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.fieldEmptyText="Field is required",this.formErrorText="Please correct the errors below to update your profile.",this.submissionSuccessText="Your profile has been successfully updated.",o(this)}disconnectedCallback(){}render(){const e=u()?function(e){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!e.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,emailtext:e.emailtext,countrytext:e.countrytext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText,submissionSuccessText:e.submissionSuccessText,fieldEmptyText:e.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(m(this)):function(e){const t=a(),[o,s]=r(!1),[u,d]=r(void 0),[m,c]=r(p),b=l(f,{},!(null==t?void 0:t.jwt)),[N,g]=n(h);return i((()=>{(null==g?void 0:g.loading)||((null==g?void 0:g.errors)?c((e=>{var t,r,i;return{...e,error:null===(i=null===(r=null===(t=null==g?void 0:g.errors)||void 0===t?void 0:t.response)||void 0===r?void 0:r.errors)||void 0===i?void 0:i[0].message}})):(d((e=>{var t;return{...e,...null===(t=null==g?void 0:g.data)||void 0===t?void 0:t.upsertUser}})),(null==g?void 0:g.data)&&s(!0)))}),[null==g?void 0:g.loading]),i((()=>{var e,t;d((e=>{var t;return{...e,...null===(t=null==b?void 0:b.data)||void 0===t?void 0:t.viewer}})),c({...p,...null===(e=b.data)||void 0===e?void 0:e.viewer,...null===(t=g.data)||void 0===t?void 0:t.upsertUser})}),[null==b?void 0:b.data]),i((()=>{var t,r;(null===(t=null==g?void 0:g.errors)||void 0===t?void 0:t.message)&&c({...null===(r=b.data)||void 0===r?void 0:r.viewer,error:e.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==b?void 0:b.loading)||g.loading,submitDisabled:!1,showCountry:!e.hideCountry,formState:m,user:u,text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,countrytext:e.countrytext,emailtext:e.emailtext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText}},callbacks:{onSubmit:()=>{if(s(!1),m.firstName&&m.lastName)return N({id:null==t?void 0:t.id,accountId:null==t?void 0:t.accountId,firstName:m.firstName,lastName:m.lastName}),void c((e=>({...e,errors:{},error:""})));const r={};m.firstName||(r.firstName={message:e.fieldEmptyText}),m.lastName||(r.lastName={message:e.fieldEmptyText}),v(r)||c((t=>({...t,error:e.formErrorText}))),c((e=>({...e,errors:r})))},onChange:e=>{const{name:t,value:r}=e.target;c((e=>({...e,[t]:r})))}}}}(m(this));return t(c,Object.assign({},e))}};export{b as sqm_portal_profile}
@@ -1,4 +1,4 @@
1
- import{h as r,r as t}from"./p-c7c11325.js";import{i as a}from"./p-db1a0db1.js";import{k as o,f as n,n as e}from"./p-63e29387.js";import{d as s,t as i,w as l,J as p,$ as c,i as d,p as u}from"./p-0ec54f97.js";import{c as m}from"./p-c1086930.js";import{g as b}from"./p-6dc742bc.js";import{c as f}from"./p-cef45012.js";import{T as v}from"./p-204861a6.js";import{S as h,V as y}from"./p-38c7775a.js";import{u as q}from"./p-c30ad421.js";const x=s.gql`
1
+ import{h as r,r as t}from"./p-c7c11325.js";import{i as a}from"./p-db1a0db1.js";import{k as o,f as n,n as e}from"./p-63e29387.js";import{d as s,t as i,w as l,J as p,$ as c,i as d,p as u}from"./p-0ec54f97.js";import{c as m}from"./p-c1086930.js";import{g as b}from"./p-9ec99ced.js";import{c as f}from"./p-cef45012.js";import{T as v}from"./p-204861a6.js";import{S as h,V as y}from"./p-38c7775a.js";import{u as q}from"./p-c30ad421.js";const x=s.gql`
2
2
  mutation upsertUser($userInput: UserInput!) {
3
3
  upsertUser(userInput: $userInput) {
4
4
  id
@@ -1 +1 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,o)}l((r=r.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:[]},r,i,a,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(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-e0a724dd.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-60f1cca2.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-57dd28bd.system.js","./p-d09d3b8f.system.js"],(function(e){"use strict";var t,n,r,i,a,s,o,l,c,u,d,f,p,m,v,h,y,g,b,x,_;return{setters:[function(e){t=e.h;n=e.r},function(e){r=e.i},function(e){i=e.l;a=e.k;s=e.f;o=e.n},function(e){l=e.d;c=e.t;u=e.F;d=e.i;f=e.p},function(e){p=e.c},function(e){m=e.g},function(e){v=e.c},function(e){h=e.E},function(e){y=e.T},function(e){g=e.V;b=e.S;x=e.a},function(e){_=e.u}],execute:function(){var C={Wrapper:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",maxWidth:"550px"},HeaderContainer:{display:"flex",flexDirection:"column"},InputsContainer:{display:"flex",gap:"var(--sl-spacing-medium)",position:"relative",flexDirection:"column"},CodeInputContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},CodeInput:{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}},CodeInputError:__assign(__assign({},h),{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}}),ErrorText:{color:"var(--sqm-danger-color-text)",fontSize:"var(--sl-font-size-small)",margin:"0"},ContinueButton:{width:"100%",maxWidth:"100px"},FooterContainer:{display:"flex",flexDirection:"column"},SkeletonOne:{width:"50%",height:"16px"},SkeletonTwo:{width:"30%",height:"34px"},SkeletonThree:{width:"15%",height:"24px"}};var w="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n\n\n";var E=v(C);var T=E.toString();function k(e){var n=e.states,i=e.refs,a=e.callbacks,s=e.text;var o=r.formatMessage({id:"resendCodeText",defaultMessage:s.resendCodeText},{resendCodeLink:t("a",{href:"",style:{textDecoration:"underline",color:"inherit",cursor:"pointer"},onClick:function(e){e.preventDefault();a.resendEmail()}},s.resendCodeLabel)});var l=r.formatMessage({id:"codeResentSuccessfully",defaultMessage:s.codeResentSuccessfullyText},{email:n.email});var c=n.verifyFailed?E.classes.CodeInputError:E.classes.CodeInput;return t("div",{part:"sqm-base"},t("style",{type:"text/css"},w,T),t("div",{class:E.classes.Wrapper},t("div",{class:E.classes.HeaderContainer},t(y,{type:"p"},r.formatMessage({id:"emailHeaderText",defaultMessage:n.verifyFailed?s.reverifyCodeHeaderText:s.verifyCodeHeaderText},{email:n.email}))),n.emailResent&&t("sqm-form-message",{type:"success",exportparts:"successalert-icon"},t("b",null,l)),t("div",{class:E.classes.InputsContainer},t("div",{ref:i.codeWrapperRef,class:E.classes.CodeInputContainer},t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"})),n.verifyFailed&&t("p",{class:E.classes.ErrorText},s.invalidCodeText),t("sl-button",{class:E.classes.ContinueButton,onClick:a.submitCode,disabled:n.loading||n.initialiseLoading,loading:n.loading||n.initialiseLoading,exportparts:"base: primarybutton-base",type:"primary"},s.verifyText)),t("div",{class:E.classes.FooterContainer},t(y,{type:"p"},o))))}var S=l.gql(__makeTemplateObject(["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"],["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"]));function j(e){var t=this;var n=i();var r=c(b),o=r[0],l=r[1];var d=u(g);var f=a(false),p=f[0],m=f[1];var v=a(false),h=v[0],y=v[1];var x=a(null),C=x[0],w=x[1];var E=a(false),T=E[0],k=E[1];var S=a(false),j=S[0],I=S[1];var P=_(),R=P.initialized,F=P.verificationEmail,L=P.send,A=L[0],O=L[1],q=O.loading,M=O.errors,W=P.verify,D=W[0],$=W[1],z=$.loading,H=$.errors;s((function(){if(!C)return;var e=C.querySelectorAll("sl-input");var t=Array.from(e).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));t.forEach((function(e,n){e.addEventListener("focus",(function(e){e.target.select()}));e.addEventListener("keydown",(function(e){if(e.key==="Backspace"&&e.target.value===""){t[Math.max(0,n-1)].focus()}}));e.addEventListener("input",(function(e){var r=e.data;if(!r)return;if(n===t.length-1){e.target.value=r.slice(0,1);return}if(r.length>1){var i=r.slice(1);e.target.value=r.slice(0,1);t[n+1].dispatchEvent(new InputEvent("input",{inputType:"insertFromPaste",data:i}))}t[n+1].focus()}))}))}),[C]);var B=function(){l(false);k(false)};var K=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!R)return[2];return[4,A()];case 1:e=t.sent();if(!e){I(true);return[2]}if(p)y(true);m(true);return[2]}}))}))};var V=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,r,i;return __generator(this,(function(a){switch(a.label){case 0:t=C.querySelectorAll("sl-input");n=Array.from(t).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));if(n.find((function(e){return!e.value}))){k(true);return[2]}r="";n.forEach((function(e){r=""+r+e.value}));if(!R)return[2];k(false);return[4,D(r)];case 1:i=a.sent();if(i===null||i===void 0?void 0:i.success){e.onVerification(i.accessKey);B()}else{k(true)}return[2]}}))}))};s((function(){if(!R)return;if(!d)K();else m(true)}),[R]);return{refs:{codeWrapperRef:w},states:{email:F,emailResent:h,resendError:M||H,initialiseLoading:!R,loading:q||z,verifyFailed:!!T},callbacks:{resendEmail:K,submitCode:V},text:e.getTextProps()}}var I=e("sqm_code_verification",function(){function e(e){n(this,e);this.verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.resendCodeText="Didn't receive your code? {resendCodeLink}";this.resendCodeLabel="Resend code";this.codeResentSuccessfullyText="Another code has been sent to {email}";this.invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.verifyText="Verify";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getTextProps=function(){return m(this)};e.prototype.render=function(){var e=d()?P(this):j(this);return t(k,Object.assign({},e))};return e}());function P(e){var t=this;var n=a(false),r=n[0],i=n[1];var s=f(x);return p({states:{initialiseLoading:false,loading:false,email:"test@example.com",emailResent:r,verifyFailed:false},refs:{codeWrapperRef:function(){}},callbacks:{resendEmail:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,i(true)]}))}))},submitCode:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,s(true)]}))}))}},text:e.getTextProps()},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,o)}l((r=r.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:[]},r,i,a,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(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-e0a724dd.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-57dd28bd.system.js","./p-d09d3b8f.system.js"],(function(e){"use strict";var t,n,r,i,a,s,o,l,u,c,d,f,p,m,v,h,y,g,b,x,_;return{setters:[function(e){t=e.h;n=e.r},function(e){r=e.i},function(e){i=e.l;a=e.k;s=e.f;o=e.n},function(e){l=e.d;u=e.t;c=e.F;d=e.i;f=e.p},function(e){p=e.c},function(e){m=e.g},function(e){v=e.c},function(e){h=e.E},function(e){y=e.T},function(e){g=e.V;b=e.S;x=e.a},function(e){_=e.u}],execute:function(){var C={Wrapper:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",maxWidth:"550px"},HeaderContainer:{display:"flex",flexDirection:"column"},InputsContainer:{display:"flex",gap:"var(--sl-spacing-medium)",position:"relative",flexDirection:"column"},CodeInputContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},CodeInput:{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}},CodeInputError:__assign(__assign({},h),{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}}),ErrorText:{color:"var(--sqm-danger-color-text)",fontSize:"var(--sl-font-size-small)",margin:"0"},ContinueButton:{width:"100%",maxWidth:"100px"},FooterContainer:{display:"flex",flexDirection:"column"},SkeletonOne:{width:"50%",height:"16px"},SkeletonTwo:{width:"30%",height:"34px"},SkeletonThree:{width:"15%",height:"24px"}};var w="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n\n\n";var E=v(C);var T=E.toString();function k(e){var n=e.states,i=e.refs,a=e.callbacks,s=e.text;var o=r.formatMessage({id:"resendCodeText",defaultMessage:s.resendCodeText},{resendCodeLink:t("a",{href:"",style:{textDecoration:"underline",color:"inherit",cursor:"pointer"},onClick:function(e){e.preventDefault();a.resendEmail()}},s.resendCodeLabel)});var l=r.formatMessage({id:"codeResentSuccessfully",defaultMessage:s.codeResentSuccessfullyText},{email:n.email});var u=n.verifyFailed?E.classes.CodeInputError:E.classes.CodeInput;return t("div",{part:"sqm-base"},t("style",{type:"text/css"},w,T),t("div",{class:E.classes.Wrapper},t("div",{class:E.classes.HeaderContainer},t(y,{type:"p"},r.formatMessage({id:"emailHeaderText",defaultMessage:n.verifyFailed?s.reverifyCodeHeaderText:s.verifyCodeHeaderText},{email:n.email}))),n.emailResent&&t("sqm-form-message",{type:"success",exportparts:"successalert-icon"},t("b",null,l)),t("div",{class:E.classes.InputsContainer},t("div",{ref:i.codeWrapperRef,class:E.classes.CodeInputContainer},t("sl-input",{class:u,name:"code"}),t("sl-input",{class:u,name:"code"}),t("sl-input",{class:u,name:"code"}),t("sl-input",{class:u,name:"code"}),t("sl-input",{class:u,name:"code"}),t("sl-input",{class:u,name:"code"})),n.verifyFailed&&t("p",{class:E.classes.ErrorText},s.invalidCodeText),t("sl-button",{class:E.classes.ContinueButton,onClick:a.submitCode,disabled:n.loading||n.initialiseLoading,loading:n.loading||n.initialiseLoading,exportparts:"base: primarybutton-base",type:"primary"},s.verifyText)),t("div",{class:E.classes.FooterContainer},t(y,{type:"p"},o))))}var S=l.gql(__makeTemplateObject(["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"],["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"]));function j(e){var t=this;var n=i();var r=u(b),o=r[0],l=r[1];var d=c(g);var f=a(false),p=f[0],m=f[1];var v=a(false),h=v[0],y=v[1];var x=a(null),C=x[0],w=x[1];var E=a(false),T=E[0],k=E[1];var S=a(false),j=S[0],I=S[1];var P=_(),R=P.initialized,F=P.verificationEmail,L=P.send,A=L[0],O=L[1],q=O.loading,M=O.errors,W=P.verify,D=W[0],$=W[1],z=$.loading,H=$.errors;s((function(){if(!C)return;var e=C.querySelectorAll("sl-input");var t=Array.from(e).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));t.forEach((function(e,n){e.addEventListener("focus",(function(e){e.target.select()}));e.addEventListener("keydown",(function(e){if(e.key==="Backspace"&&e.target.value===""){t[Math.max(0,n-1)].focus()}}));e.addEventListener("input",(function(e){var r=e.data;if(!r)return;if(n===t.length-1){e.target.value=r.slice(0,1);return}if(r.length>1){var i=r.slice(1);e.target.value=r.slice(0,1);t[n+1].dispatchEvent(new InputEvent("input",{inputType:"insertFromPaste",data:i}))}t[n+1].focus()}))}))}),[C]);var B=function(){l(false);k(false)};var K=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!R)return[2];return[4,A()];case 1:e=t.sent();if(!e){I(true);return[2]}if(p)y(true);m(true);return[2]}}))}))};var V=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,r,i;return __generator(this,(function(a){switch(a.label){case 0:t=C.querySelectorAll("sl-input");n=Array.from(t).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));if(n.find((function(e){return!e.value}))){k(true);return[2]}r="";n.forEach((function(e){r=""+r+e.value}));if(!R)return[2];k(false);return[4,D(r)];case 1:i=a.sent();if(i===null||i===void 0?void 0:i.success){e.onVerification(i.accessKey);B()}else{k(true)}return[2]}}))}))};s((function(){if(!R)return;if(!d)K();else m(true)}),[R]);return{refs:{codeWrapperRef:w},states:{email:F,emailResent:h,resendError:M||H,initialiseLoading:!R,loading:q||z,verifyFailed:!!T},callbacks:{resendEmail:K,submitCode:V},text:e.getTextProps()}}var I=e("sqm_code_verification",function(){function e(e){n(this,e);this.verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.resendCodeText="Didn't receive your code? {resendCodeLink}";this.resendCodeLabel="Resend code";this.codeResentSuccessfullyText="Another code has been sent to {email}";this.invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.verifyText="Verify";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getTextProps=function(){return m(this)};e.prototype.render=function(){var e=d()?P(this):j(this);return t(k,Object.assign({},e))};return e}());function P(e){var t=this;var n=a(false),r=n[0],i=n[1];var s=f(x);return p({states:{initialiseLoading:false,loading:false,email:"test@example.com",emailResent:r,verifyFailed:false},refs:{codeWrapperRef:function(){}},callbacks:{resendEmail:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,i(true)]}))}))},submitCode:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,s(true)]}))}))}},text:e.getTextProps()},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));