@saasquatch/mint-components 1.9.4-3 → 1.9.4

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 (235) hide show
  1. package/dist/cjs/{ShadowViewAddon-2ac1c573.js → ShadowViewAddon-850c94e5.js} +4 -4
  2. package/dist/cjs/{global-3a78afbc.js → global-63fc1ac0.js} +1 -1
  3. package/dist/cjs/{index.module-ab3585d1.js → index.module-1c1b1773.js} +3147 -3147
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/{re-render-92120289.js → re-render-80fc0098.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +6 -6
  9. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +7 -12
  10. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  15. package/dist/cjs/{sqm-invoice-table-view-a27222ee.js → sqm-invoice-table-view-87cb5517.js} +1 -1
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-navigation-sidebar-item-view-cd119f1b.js → sqm-navigation-sidebar-item-view-ce511a66.js} +1 -1
  19. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  23. package/dist/cjs/{sqm-portal-email-verification-view-b2dbd18b.js → sqm-portal-email-verification-view-a3d827f0.js} +1 -1
  24. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
  25. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  26. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  27. package/dist/cjs/{sqm-portal-profile-view-94ebeed9.js → sqm-portal-profile-view-d1417903.js} +1 -1
  28. package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
  29. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  30. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  32. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  33. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  34. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  35. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  36. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  37. package/dist/cjs/sqm-stencilbook.cjs.entry.js +9 -9
  38. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  39. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  40. package/dist/cjs/{useChildElements-4406563d.js → useChildElements-9df6a4d0.js} +1 -1
  41. package/dist/cjs/{useInstantAccessRegistration-2f63285b.js → useInstantAccessRegistration-8d3bdcfd.js} +2 -2
  42. package/dist/cjs/{useReferralTable-eb70be6f.js → useReferralTable-d7e272e6.js} +3 -3
  43. package/dist/cjs/{useRegistrationFormState-ba01f49a.js → useRegistrationFormState-e4aa53f4.js} +1 -1
  44. package/dist/cjs/{utilities-6d01bab5.js → utilities-951a3f99.js} +1 -1
  45. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -6
  46. package/dist/esm/{ShadowViewAddon-ee3ac20e.js → ShadowViewAddon-a68441ec.js} +4 -4
  47. package/dist/esm/{global-3d172d9f.js → global-b789ef81.js} +1 -1
  48. package/dist/esm/{index.module-3638ce1a.js → index.module-de2fdcd8.js} +3147 -3147
  49. package/dist/esm/loader.js +2 -2
  50. package/dist/esm/mint-components.js +2 -2
  51. package/dist/esm/{re-render-c045f99f.js → re-render-c459984f.js} +1 -1
  52. package/dist/esm/sqm-asset-card.entry.js +1 -1
  53. package/dist/esm/sqm-banking-info-form_16.entry.js +6 -6
  54. package/dist/esm/sqm-big-stat_38.entry.js +7 -12
  55. package/dist/esm/sqm-close-button.entry.js +1 -1
  56. package/dist/esm/sqm-context-router.entry.js +1 -1
  57. package/dist/esm/sqm-empty_4.entry.js +2 -2
  58. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  59. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  60. package/dist/esm/{sqm-invoice-table-view-bbcb10d3.js → sqm-invoice-table-view-46567eb3.js} +1 -1
  61. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  62. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  63. package/dist/esm/{sqm-navigation-sidebar-item-view-572178d9.js → sqm-navigation-sidebar-item-view-79a01b6c.js} +1 -1
  64. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  65. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  66. package/dist/esm/sqm-password-field.entry.js +2 -2
  67. package/dist/esm/sqm-popup-container.entry.js +1 -1
  68. package/dist/esm/{sqm-portal-email-verification-view-16488390.js → sqm-portal-email-verification-view-d729b7ad.js} +1 -1
  69. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  70. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  71. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  72. package/dist/esm/{sqm-portal-profile-view-c434db34.js → sqm-portal-profile-view-7abe0662.js} +1 -1
  73. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  74. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  75. package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
  76. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  77. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  78. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  79. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  80. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  81. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  82. package/dist/esm/sqm-stencilbook.entry.js +9 -9
  83. package/dist/esm/sqm-tab.entry.js +2 -2
  84. package/dist/esm/sqm-tabs.entry.js +3 -3
  85. package/dist/esm/{useChildElements-5a52000d.js → useChildElements-807a9d59.js} +1 -1
  86. package/dist/esm/{useInstantAccessRegistration-8e7998bc.js → useInstantAccessRegistration-9c15a277.js} +2 -2
  87. package/dist/esm/{useReferralTable-8ff2c699.js → useReferralTable-0afc64c8.js} +3 -3
  88. package/dist/esm/{useRegistrationFormState-7c2ca4e3.js → useRegistrationFormState-c62cdeef.js} +1 -1
  89. package/dist/esm/{utilities-eb2497c5.js → utilities-68e1c75f.js} +1 -1
  90. package/dist/esm-es5/{ShadowViewAddon-ee3ac20e.js → ShadowViewAddon-a68441ec.js} +1 -1
  91. package/dist/esm-es5/{global-3d172d9f.js → global-b789ef81.js} +1 -1
  92. package/dist/esm-es5/{index.module-3638ce1a.js → index.module-de2fdcd8.js} +1 -1
  93. package/dist/esm-es5/loader.js +1 -1
  94. package/dist/esm-es5/mint-components.js +1 -1
  95. package/dist/esm-es5/{re-render-c045f99f.js → re-render-c459984f.js} +1 -1
  96. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  97. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  98. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  99. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  100. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  101. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  102. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  103. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  104. package/dist/esm-es5/{sqm-invoice-table-view-bbcb10d3.js → sqm-invoice-table-view-46567eb3.js} +1 -1
  105. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  106. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  107. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-572178d9.js → sqm-navigation-sidebar-item-view-79a01b6c.js} +1 -1
  108. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  109. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  110. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  111. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  112. package/dist/esm-es5/{sqm-portal-email-verification-view-16488390.js → sqm-portal-email-verification-view-d729b7ad.js} +1 -1
  113. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  114. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  115. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-portal-profile-view-c434db34.js → sqm-portal-profile-view-7abe0662.js} +1 -1
  117. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  118. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  119. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  120. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  121. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  122. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  123. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  124. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  125. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  126. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  127. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  128. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  129. package/dist/esm-es5/{useChildElements-5a52000d.js → useChildElements-807a9d59.js} +1 -1
  130. package/dist/esm-es5/useInstantAccessRegistration-9c15a277.js +1 -0
  131. package/dist/esm-es5/{useReferralTable-8ff2c699.js → useReferralTable-0afc64c8.js} +1 -1
  132. package/dist/esm-es5/{useRegistrationFormState-7c2ca4e3.js → useRegistrationFormState-c62cdeef.js} +1 -1
  133. package/dist/esm-es5/{utilities-eb2497c5.js → utilities-68e1c75f.js} +1 -1
  134. package/dist/mint-components/mint-components.esm.js +1 -1
  135. package/dist/mint-components/mint-components.js +1 -1
  136. package/dist/mint-components/{p-7c7f8043.entry.js → p-019f6251.entry.js} +2 -2
  137. package/dist/mint-components/{p-28e6654d.system.js → p-038ec88a.system.js} +1 -1
  138. package/dist/mint-components/p-03e3ad0a.system.entry.js +1 -0
  139. package/dist/mint-components/{p-ab607c9c.entry.js → p-051add6d.entry.js} +1 -1
  140. package/dist/mint-components/{p-17ecd3f0.system.entry.js → p-103853e7.system.entry.js} +1 -1
  141. package/dist/mint-components/{p-23c63057.entry.js → p-153ba822.entry.js} +2 -2
  142. package/dist/mint-components/p-17f1d627.entry.js +187 -0
  143. package/dist/mint-components/{p-d9ded015.entry.js → p-1ae99002.entry.js} +1 -1
  144. package/dist/mint-components/{p-9d24ef10.system.js → p-231c8489.system.js} +1 -1
  145. package/dist/mint-components/{p-103db81d.entry.js → p-24329884.entry.js} +1 -1
  146. package/dist/mint-components/{p-b02cf0d1.system.js → p-28b27f3a.system.js} +1 -1
  147. package/dist/mint-components/{p-47dddd2e.js → p-28f8d439.js} +1 -1
  148. package/dist/mint-components/{p-eb4c433d.system.entry.js → p-2afe9d99.system.entry.js} +1 -1
  149. package/dist/mint-components/{p-52fbe728.system.entry.js → p-2c3d3992.system.entry.js} +1 -1
  150. package/dist/mint-components/{p-98b83f74.js → p-2e741415.js} +1 -1
  151. package/dist/mint-components/{p-7c3f07a3.system.entry.js → p-2ec39cff.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-2ade054c.entry.js → p-38ec36d6.entry.js} +1 -1
  153. package/dist/mint-components/{p-afe9c73b.system.entry.js → p-3cfd2915.system.entry.js} +1 -1
  154. package/dist/mint-components/p-3e2c07ed.entry.js +1 -0
  155. package/dist/mint-components/{p-264a55b2.system.entry.js → p-4508a542.system.entry.js} +1 -1
  156. package/dist/mint-components/p-46578c56.system.js +1 -0
  157. package/dist/mint-components/p-5184a08a.js +1 -0
  158. package/dist/mint-components/{p-811179fa.system.entry.js → p-54ea0df0.system.entry.js} +1 -1
  159. package/dist/mint-components/{p-97d8d837.entry.js → p-5674d07f.entry.js} +1 -1
  160. package/dist/mint-components/{p-e5c40b80.system.entry.js → p-580190e2.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-2dbf8101.system.js → p-5f4a6fb1.system.js} +1 -1
  162. package/dist/mint-components/{p-f2a7b2f9.system.js → p-608f31a7.system.js} +1 -1
  163. package/dist/mint-components/{p-a079784b.system.entry.js → p-62df0821.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-0d2ec632.system.js → p-66a4e521.system.js} +1 -1
  165. package/dist/mint-components/{p-696f533b.js → p-6a9aeb31.js} +1 -1
  166. package/dist/mint-components/p-6b5a25b0.entry.js +1 -0
  167. package/dist/mint-components/{p-99f34ef3.system.entry.js → p-6c8d2253.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-621c897d.system.entry.js → p-6ef71c21.system.entry.js} +1 -1
  169. package/dist/mint-components/{p-1e376222.js → p-6f369e92.js} +1 -1
  170. package/dist/mint-components/{p-32af0548.entry.js → p-6f7362b8.entry.js} +2 -2
  171. package/dist/mint-components/{p-983c86d9.system.entry.js → p-757998e2.system.entry.js} +1 -1
  172. package/dist/mint-components/{p-83cd4524.system.js → p-796568da.system.js} +1 -1
  173. package/dist/mint-components/{p-bbb1936b.system.js → p-79ec2410.system.js} +1 -1
  174. package/dist/mint-components/{p-20c31bc1.system.entry.js → p-7b1e561c.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-1d87e01f.entry.js → p-7b2c5a2a.entry.js} +1 -1
  176. package/dist/mint-components/{p-cc09f4e8.system.js → p-7da78815.system.js} +1 -1
  177. package/dist/mint-components/{p-39beedee.system.entry.js → p-7dbc8da3.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-d1917ddd.system.js → p-7e96c34c.system.js} +1 -1
  179. package/dist/mint-components/{p-30fb2646.system.js → p-82f697b6.system.js} +1 -1
  180. package/dist/mint-components/{p-bd81b5d2.entry.js → p-83a0dbdc.entry.js} +1 -1
  181. package/dist/mint-components/{p-e02d156f.system.entry.js → p-870545bb.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-7469de3d.entry.js → p-88d49983.entry.js} +1 -1
  183. package/dist/mint-components/{p-03e53ffb.entry.js → p-899b20df.entry.js} +1 -1
  184. package/dist/mint-components/{p-9f5cffab.system.entry.js → p-90e4c635.system.entry.js} +1 -1
  185. package/dist/mint-components/{p-6f6270e1.entry.js → p-973a4bfc.entry.js} +1 -1
  186. package/dist/mint-components/p-9c27c4ff.entry.js +1 -0
  187. package/dist/mint-components/{p-f59a0d7b.entry.js → p-a188109b.entry.js} +1 -1
  188. package/dist/mint-components/p-a26bfa84.js +1 -0
  189. package/dist/mint-components/{p-8351c7f6.js → p-a4018314.js} +1 -1
  190. package/dist/mint-components/p-a501463f.js +1 -0
  191. package/dist/mint-components/{p-38822235.js → p-abb13a96.js} +1 -1
  192. package/dist/mint-components/{p-7b98047b.system.entry.js → p-b2a7b2c0.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-a1de33d8.entry.js → p-b8954277.entry.js} +2 -2
  194. package/dist/mint-components/{p-be119a72.system.entry.js → p-b933b436.system.entry.js} +1 -1
  195. package/dist/mint-components/{p-8529f40e.system.entry.js → p-bd4f768a.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-4af28d02.system.js → p-bd89e709.system.js} +1 -1
  197. package/dist/mint-components/{p-1cee4a47.system.entry.js → p-bebc89ce.system.entry.js} +1 -1
  198. package/dist/mint-components/{p-12f25f06.system.entry.js → p-c50fb16b.system.entry.js} +1 -1
  199. package/dist/mint-components/{p-af7d016e.entry.js → p-ca4663f8.entry.js} +1 -1
  200. package/dist/mint-components/{p-8c8224b7.entry.js → p-cb75134c.entry.js} +1 -1
  201. package/dist/mint-components/p-d77daf8a.js +1 -0
  202. package/dist/mint-components/{p-bc4c010e.system.entry.js → p-d957004b.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-ec49d1dc.system.js → p-d9c92d91.system.js} +1 -1
  204. package/dist/mint-components/p-e4ac12d5.entry.js +1 -0
  205. package/dist/mint-components/{p-6249d06f.system.entry.js → p-e8488df1.system.entry.js} +1 -1
  206. package/dist/mint-components/{p-319c0e2c.system.entry.js → p-e8992cef.system.entry.js} +1 -1
  207. package/dist/mint-components/{p-0617e568.entry.js → p-ee240760.entry.js} +1 -1
  208. package/dist/mint-components/{p-dc26706c.system.entry.js → p-eea56ba4.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-269e638c.entry.js → p-eec1ca4c.entry.js} +1 -1
  210. package/dist/mint-components/{p-0ffaae24.system.entry.js → p-ef020533.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-2b47d9f8.entry.js → p-f060171e.entry.js} +1 -1
  212. package/dist/mint-components/p-f4f63aca.entry.js +33 -0
  213. package/dist/mint-components/{p-82289225.system.entry.js → p-f78940fb.system.entry.js} +1 -1
  214. package/dist/mint-components/{p-8d7e906b.entry.js → p-f89164ab.entry.js} +1 -1
  215. package/dist/mint-components/{p-1436fc4a.entry.js → p-fc459925.entry.js} +1 -1
  216. package/dist/mint-components/{p-debf9dc6.system.entry.js → p-fcbda8d2.system.entry.js} +1 -1
  217. package/dist/mint-components/{p-e6844a23.js → p-fe022ca4.js} +1 -1
  218. package/dist/mint-components/{p-f8003c7d.entry.js → p-fe5631aa.entry.js} +1 -1
  219. package/dist/mint-components/{p-92f9789b.js → p-fe677824.js} +1 -1
  220. package/dist/mint-components/{p-b49a9508.js → p-fee2e0c4.js} +1 -1
  221. package/docs/docs.docx +0 -0
  222. package/package.json +2 -2
  223. package/dist/esm-es5/useInstantAccessRegistration-8e7998bc.js +0 -1
  224. package/dist/mint-components/p-0c8f1fba.js +0 -1
  225. package/dist/mint-components/p-24ece158.js +0 -1
  226. package/dist/mint-components/p-3e5785c0.entry.js +0 -1
  227. package/dist/mint-components/p-503b9407.entry.js +0 -1
  228. package/dist/mint-components/p-6c2b5d7f.entry.js +0 -33
  229. package/dist/mint-components/p-8582164c.system.entry.js +0 -1
  230. package/dist/mint-components/p-87a96d2c.entry.js +0 -187
  231. package/dist/mint-components/p-8d28f0e9.js +0 -1
  232. package/dist/mint-components/p-926ce563.entry.js +0 -1
  233. package/dist/mint-components/p-a53a8878.entry.js +0 -1
  234. package/dist/mint-components/p-d1963267.system.js +0 -1
  235. package/dist/mint-components/p-fae5744f.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-4af28d02.system.js","./p-ec49d1dc.system.js"],(function(t){"use strict";var n,e,s,r,u;return{setters:[function(t){n=t.h;e=t.c;s=t.r},function(t){r=t.n},function(){},function(t){u=t.a}],execute:function(){var c=function(t,s){return n(e,null,s)};var i=t("sqm_tab",function(){function t(t){s(this,t);r(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){u([this.header]);return n(c,null,n("slot",null))};return t}())}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-bd89e709.system.js","./p-d9c92d91.system.js"],(function(t){"use strict";var n,e,s,r,u;return{setters:[function(t){n=t.h;e=t.c;s=t.r},function(t){r=t.n},function(){},function(t){u=t.a}],execute:function(){var c=function(t,s){return n(e,null,s)};var i=t("sqm_tab",function(){function t(t){s(this,t);r(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){u([this.header]);return n(c,null,n("slot",null))};return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-cc09f4e8.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var s,t,a,i;return{setters:[function(e){s=e.h},function(e){t=e.i},function(e){a=e.c},function(e){i=e.T}],execute:function(){e("P",l);function l(e){var l,r,n,o,d;var u=e.states,m=e.callbacks;var p=u.text,c=u.formState;var v=c.errors,b=c.error;var x={Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}};var f=a(x);var g=f.toString();var y=((l=u.user)===null||l===void 0?void 0:l.countryCode)?t.formatDisplayName((r=u.user)===null||r===void 0?void 0:r.countryCode,{type:"region"}):"";return s("div",{class:f.classes.Container,part:"sqm-base"},s("style",{type:"text/css"},g),s(i,Object.assign({},{type:"h1"}),p.editProfileHeader),s(i,Object.assign({},{type:"h2"}),p.editProfileSubHeader),s("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&s("sqm-form-message",{class:f.classes.Success,exportparts:"success-icon"},s("div",{part:"successalert-text"},p.submissionSuccessText)),b&&s("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},b)),s("div",{class:f.classes.NameInputContainer},s("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:(n=u.user)===null||n===void 0?void 0:n.firstName,onInput:m.onChange,label:p.firstnametext,disabled:u.loading},(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:p.fieldEmptyText}:[],{id:"firstName",name:"firstName",error:(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?v===null||v===void 0?void 0:v.firstName.message:undefined})),s("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:(o=u.user)===null||o===void 0?void 0:o.lastName,onInput:m.onChange,label:p.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:p.fieldEmptyText}:[],{error:(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?v===null||v===void 0?void 0:v.lastName.message:undefined}))),s("sl-input",{label:p.emailtext,value:(d=u.user)===null||d===void 0?void 0:d.email,exportparts:"label: input-label, base: input-base",disabled:true}),u.showCountry&&s("sl-input",{label:p.countrytext,value:y,exportparts:"label: input-label, base: input-base",disabled:true}),s("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:function(e){m.onSubmit(e)},submit:true},p.submitChangeButtonText)))}}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-7da78815.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var s,t,a,i;return{setters:[function(e){s=e.h},function(e){t=e.i},function(e){a=e.c},function(e){i=e.T}],execute:function(){e("P",l);function l(e){var l,r,n,o,d;var u=e.states,m=e.callbacks;var p=u.text,c=u.formState;var v=c.errors,b=c.error;var x={Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}};var f=a(x);var g=f.toString();var y=((l=u.user)===null||l===void 0?void 0:l.countryCode)?t.formatDisplayName((r=u.user)===null||r===void 0?void 0:r.countryCode,{type:"region"}):"";return s("div",{class:f.classes.Container,part:"sqm-base"},s("style",{type:"text/css"},g),s(i,Object.assign({},{type:"h1"}),p.editProfileHeader),s(i,Object.assign({},{type:"h2"}),p.editProfileSubHeader),s("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&s("sqm-form-message",{class:f.classes.Success,exportparts:"success-icon"},s("div",{part:"successalert-text"},p.submissionSuccessText)),b&&s("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},b)),s("div",{class:f.classes.NameInputContainer},s("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:(n=u.user)===null||n===void 0?void 0:n.firstName,onInput:m.onChange,label:p.firstnametext,disabled:u.loading},(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:p.fieldEmptyText}:[],{id:"firstName",name:"firstName",error:(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?v===null||v===void 0?void 0:v.firstName.message:undefined})),s("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:(o=u.user)===null||o===void 0?void 0:o.lastName,onInput:m.onChange,label:p.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:p.fieldEmptyText}:[],{error:(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?v===null||v===void 0?void 0:v.lastName.message:undefined}))),s("sl-input",{label:p.emailtext,value:(d=u.user)===null||d===void 0?void 0:d.email,exportparts:"label: input-label, base: input-base",disabled:true}),u.showCountry&&s("sl-input",{label:p.countrytext,value:y,exportparts:"label: input-label, base: input-base",disabled:true}),s("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:function(e){m.onSubmit(e)},submit:true},p.submitChangeButtonText)))}}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))s[r]=e[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-cc09f4e8.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(s){"use strict";var e,t,n,r,a,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.A;r=s.a},function(s){a=s.c},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:n,Column:__assign({},r),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=a(o);var u=l.toString();function p(s){var n=s.states,r=s.callbacks,a=s.content,o=a.email,p=a.verifyMessage,f=a.emailVerificationHeader,g=a.resendEmailButtonText,d=a.verificationStatusMessage,m=a.verificationLoadingMessage,y=a.verificationResentMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},y)),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?m+" {countdown}":d},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:r.submit},g)))}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))s[a]=e[a]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-7da78815.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(s){"use strict";var e,t,n,a,r,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.A;a=s.a},function(s){r=s.c},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:n,Column:__assign({},a),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=r(o);var u=l.toString();function p(s){var n=s.states,a=s.callbacks,r=s.content,o=r.email,p=r.verifyMessage,f=r.emailVerificationHeader,g=r.resendEmailButtonText,d=r.verificationStatusMessage,m=r.verificationLoadingMessage,y=r.verificationResentMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":a.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},y)),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?m+" {countdown}":d},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:a.submit},g)))}}}}));
@@ -1 +1 @@
1
- import{r as s,h as o}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{a as r}from"./p-0c8f1fba.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{C as a}from"./p-fb93c962.js";const c=class{constructor(o){s(this,o),this.color="#000000",t(this)}disconnectedCallback(){}render(){var s;const t=r();return"SquatchJS2"!==t.type||"POPUP"!==(null===(s=t.widgetIdent)||void 0===s?void 0:s.engagementMedium)?o("div",{style:{display:"none"}}):o(a,{onClick:()=>{var s,o;"SquatchJS2"===t.type&&(null===(o=(s=t.api).close)||void 0===o||o.call(s))},color:this.color})}};export{c as sqm_close_button}
1
+ import{r as s,h as o}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{a as r}from"./p-a26bfa84.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{C as a}from"./p-fb93c962.js";const c=class{constructor(o){s(this,o),this.color="#000000",t(this)}disconnectedCallback(){}render(){var s;const t=r();return"SquatchJS2"!==t.type||"POPUP"!==(null===(s=t.widgetIdent)||void 0===s?void 0:s.engagementMedium)?o("div",{style:{display:"none"}}):o(a,{onClick:()=>{var s,o;"SquatchJS2"===t.type&&(null===(o=(s=t.api).close)||void 0===o||o.call(s))},color:this.color})}};export{c as sqm_close_button}
@@ -1 +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-2a414b2e.system.js","./p-4af28d02.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-3ed71bef.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,l,c,f,d,v,y;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.f;a=e.n},function(e){o=e.Q;s=e.j;u=e.$;l=e.b;c=e.i},function(e){f=e.c},function(){},function(){},function(e){d=e.s;v=e.g},function(){},function(e){y=e.P}],execute:function(){var h=null;function g(e){var t=this;var n=e.nextPage,a=e.failedPage,c=e.verifySuccessText,f=e.verifyEmailText,v=e.verifyInvalidText,y=e.networkErrorMessage,g=e.continueText;var p,m,x,b,T,w,_,k,P,E;var S=i(false),j=S[0],I=S[1];var C=i(false),M=C[0],N=C[1];var V=o();var q=s(),A=q[0],D=q[1],G=D.loading,L=D.data,Q=D.errors;var R=new URLSearchParams(u.location.search);var U=R.get("oobCode");var Y=R.get("email");var $=R.get("nextPage");var z=L===undefined&&Q===undefined&&!!U;var B=!!(((p=V===null||V===void 0?void 0:V.managedIdentity)===null||p===void 0?void 0:p.emailVerified)||((m=L===null||L===void 0?void 0:L.verifyManagedIdentityEmail)===null||m===void 0?void 0:m.success)||M);var F=((x=V===null||V===void 0?void 0:V.managedIdentity)===null||x===void 0?void 0:x.email)===Y;var H=function(){return u.push({pathname:a,search:R.toString()&&"?"+R.toString()})};var J=function(){R.delete("nextPage");var e=d($||n);u.push(e.href)};var K=function(){setTimeout((function(){l(undefined);J()}),3e3)};var O=function(){setTimeout(J,3e3)};r((function(){var e=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!h)h=A({oobCode:U});return[4,h];case 1:e=t.sent();if(!(e instanceof Error)&&e.verifyManagedIdentityEmail.success){N(true)}I(true);return[2]}}))}))};e()}),[]);r((function(){if(!j)return;if(B&&F)O();else K()}),[j,B]);return{states:{loading:G||!j,disableContinue:z,error:((_=(w=(T=(b=Q===null||Q===void 0?void 0:Q.response)===null||b===void 0?void 0:b.errors)===null||T===void 0?void 0:T[0])===null||w===void 0?void 0:w.extensions)===null||_===void 0?void 0:_.message)||((E=(P=(k=Q===null||Q===void 0?void 0:Q.response)===null||k===void 0?void 0:k.errors)===null||P===void 0?void 0:P[0])===null||E===void 0?void 0:E.message)||((Q===null||Q===void 0?void 0:Q.message)||!F)&&y,success:j&&(B||F),verified:B},data:{oobCode:U},callbacks:{failed:H,gotoNextPage:J},content:{verifySuccessText:c,verifyEmailText:f,verifyInvalidText:v,continueText:g}}}var p=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";this.verifyEmailText="Verify your email";this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.";this.verifyInvalidText="The email verification code is invalid or has expired, please try again.";this.continueText="Continue";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?m(v(this)):g(v(this)),t=e.states,i=e.data,r=e.callbacks,a=e.content;return n(y,{states:t,data:i,callbacks:r,content:a})};return e}());function m(e){return f({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}},content:{verifySuccessText:e.verifySuccessText,verifyEmailText:e.verifyEmailText,verifyInvalidText:e.verifyInvalidText,continueText:e.continueText}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
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-2a414b2e.system.js","./p-bd89e709.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-3ed71bef.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,l,c,f,d,v,y;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.f;a=e.n},function(e){o=e.Q;s=e.j;u=e.$;l=e.b;c=e.i},function(e){f=e.c},function(){},function(){},function(e){d=e.s;v=e.g},function(){},function(e){y=e.P}],execute:function(){var h=null;function g(e){var t=this;var n=e.nextPage,a=e.failedPage,c=e.verifySuccessText,f=e.verifyEmailText,v=e.verifyInvalidText,y=e.networkErrorMessage,g=e.continueText;var p,m,x,b,T,w,_,k,P,E;var S=i(false),j=S[0],I=S[1];var C=i(false),M=C[0],N=C[1];var V=o();var q=s(),A=q[0],D=q[1],G=D.loading,L=D.data,Q=D.errors;var R=new URLSearchParams(u.location.search);var U=R.get("oobCode");var Y=R.get("email");var $=R.get("nextPage");var z=L===undefined&&Q===undefined&&!!U;var B=!!(((p=V===null||V===void 0?void 0:V.managedIdentity)===null||p===void 0?void 0:p.emailVerified)||((m=L===null||L===void 0?void 0:L.verifyManagedIdentityEmail)===null||m===void 0?void 0:m.success)||M);var F=((x=V===null||V===void 0?void 0:V.managedIdentity)===null||x===void 0?void 0:x.email)===Y;var H=function(){return u.push({pathname:a,search:R.toString()&&"?"+R.toString()})};var J=function(){R.delete("nextPage");var e=d($||n);u.push(e.href)};var K=function(){setTimeout((function(){l(undefined);J()}),3e3)};var O=function(){setTimeout(J,3e3)};r((function(){var e=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!h)h=A({oobCode:U});return[4,h];case 1:e=t.sent();if(!(e instanceof Error)&&e.verifyManagedIdentityEmail.success){N(true)}I(true);return[2]}}))}))};e()}),[]);r((function(){if(!j)return;if(B&&F)O();else K()}),[j,B]);return{states:{loading:G||!j,disableContinue:z,error:((_=(w=(T=(b=Q===null||Q===void 0?void 0:Q.response)===null||b===void 0?void 0:b.errors)===null||T===void 0?void 0:T[0])===null||w===void 0?void 0:w.extensions)===null||_===void 0?void 0:_.message)||((E=(P=(k=Q===null||Q===void 0?void 0:Q.response)===null||k===void 0?void 0:k.errors)===null||P===void 0?void 0:P[0])===null||E===void 0?void 0:E.message)||((Q===null||Q===void 0?void 0:Q.message)||!F)&&y,success:j&&(B||F),verified:B},data:{oobCode:U},callbacks:{failed:H,gotoNextPage:J},content:{verifySuccessText:c,verifyEmailText:f,verifyInvalidText:v,continueText:g}}}var p=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";this.verifyEmailText="Verify your email";this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.";this.verifyInvalidText="The email verification code is invalid or has expired, please try again.";this.continueText="Continue";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?m(v(this)):g(v(this)),t=e.states,i=e.data,r=e.callbacks,a=e.content;return n(y,{states:t,data:i,callbacks:r,content:a})};return e}());function m(e){return f({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}},content:{verifySuccessText:e.verifySuccessText,verifyEmailText:e.verifyEmailText,verifyInvalidText:e.verifyInvalidText,continueText:e.continueText}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- import{r as t,h as s,c as a}from"./p-64c3217a.js";import{f as e,n as r}from"./p-fd2c5407.js";import{Q as i,S as o,$ as n,i as c}from"./p-0c8f1fba.js";const l=class{constructor(s){t(this,s),this.ignored=!0,this.redirectTo="/",this.requireEmailVerification=!1,this.redirectToUnverified="/emailVerification",r(this)}disconnectedCallback(){}render(){const t=!!c()||function({requireEmailVerification:t,redirectTo:s,redirectToUnverified:a}){var r;const c=i(),l=!!(null==c?void 0:c.jwt),h=null===(r=null==c?void 0:c.managedIdentity)||void 0===r?void 0:r.emailVerified,{pathname:d,search:m}=o(),p=new URLSearchParams;return p.append("nextPage",`${d}${m}`),e((()=>l?t&&!h?n.push({pathname:a||s,search:"?"+p.toString()}):void 0:n.push({pathname:s,search:"?"+p.toString()})),[]),!!c}(this);return s(a,{style:{display:t?"contents":"none"}},s("slot",null))}};export{l as sqm_portal_protected_route}
1
+ import{r as t,h as a,c as s}from"./p-64c3217a.js";import{f as e,n as r}from"./p-fd2c5407.js";import{Q as i,S as o,$ as n,i as c}from"./p-a26bfa84.js";const l=class{constructor(a){t(this,a),this.ignored=!0,this.redirectTo="/",this.requireEmailVerification=!1,this.redirectToUnverified="/emailVerification",r(this)}disconnectedCallback(){}render(){const t=!!c()||function({requireEmailVerification:t,redirectTo:a,redirectToUnverified:s}){var r;const c=i(),l=!!(null==c?void 0:c.jwt),h=null===(r=null==c?void 0:c.managedIdentity)||void 0===r?void 0:r.emailVerified,{pathname:d,search:m}=o(),p=new URLSearchParams;return p.append("nextPage",`${d}${m}`),e((()=>l?t&&!h?n.push({pathname:s||a,search:"?"+p.toString()}):void 0:n.push({pathname:a,search:"?"+p.toString()})),[]),!!c}(this);return a(s,{style:{display:t?"contents":"none"}},a("slot",null))}};export{l as sqm_portal_protected_route}
@@ -1 +1 @@
1
- import{r as s}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{b as a,$ as o,i as r}from"./p-0c8f1fba.js";const c=class{constructor(a){s(this,a),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){a(void 0),o.push({pathname:s,search:""})}(this)}};export{c as sqm_portal_logout}
1
+ import{r as s}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{b as a,$ as o,i as r}from"./p-a26bfa84.js";const i=class{constructor(a){s(this,a),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){a(void 0),o.push({pathname:s,search:""})}(this)}};export{i as sqm_portal_logout}
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-4af28d02.system.js","./p-c06048c9.system.js"],(function(t){"use strict";var n,e,s,r,c,i,o,u;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.n;r=t.k;c=t.f},function(t){i=t.S;o=t.H},function(t){u=t.N}],execute:function(){var a=t("sqm_navigation_sidebar",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=f();return e(u,Object.assign({},t),e("slot",null))};return t}());function f(){var t=i();var n=o();var e=r(false),s=e[0],u=e[1];c((function(){u(false)}),[t.pathname,n]);function a(t){u(t.target.checked)}return{checked:s,onClick:a}}}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-bd89e709.system.js","./p-c06048c9.system.js"],(function(t){"use strict";var n,e,s,r,c,i,o,u;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.n;r=t.k;c=t.f},function(t){i=t.S;o=t.H},function(t){u=t.N}],execute:function(){var a=t("sqm_navigation_sidebar",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=f();return e(u,Object.assign({},t),e("slot",null))};return t}());function f(){var t=i();var n=o();var e=r(false),s=e[0],u=e[1];c((function(){u(false)}),[t.pathname,n]);function a(t){u(t.target.checked)}return{checked:s,onClick:a}}}}}));
@@ -1 +1 @@
1
- import{r as e,h as t,g as s,c as a}from"./p-64c3217a.js";import{n as l,j as r,u as i,f as n}from"./p-fd2c5407.js";import{i as d}from"./p-1e376222.js";import{i as o}from"./p-0c8f1fba.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import{c}from"./p-cef45012.js";import{G as p}from"./p-c5d2e4ba.js";import{a as E,u as h}from"./p-e6844a23.js";import{u as v}from"./p-24ece158.js";import{l as m}from"./p-251e7567.js";import{g as N}from"./p-f3053c61.js";import{u as _,t as P}from"./p-b49a9508.js";import{l as f}from"./p-9ec99ced.js";import{T as I}from"./p-5d0c9424.js";const D=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],A=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],y=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],R=class{constructor(t){e(this,t),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,l(this)}disconnectedCallback(){}render(){const e=t(g,null),s=t(T,null),{states:a,data:l,callbacks:d,elements:c}=o()?function(e,t,s){const[a,l]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),d=h(),o=i((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:[...Array(e)].map((()=>({id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:A[Math.floor(Math.random()*A.length)],lastName:y[Math.floor(Math.random()*y.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(10*Math.random())>=5?m.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:m.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(10*Math.random())>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:D[Math.floor(Math.random()*D.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...N()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:D[Math.floor(Math.random()*D.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:D[Math.floor(Math.random()*D.length)],type:"CREDIT",value:1},depth:1}]}})))}))(e.perPage)}),[e.perPage]),c=v();return n((()=>{l({loading:!0}),(null==o?void 0:o.data)&&async function(t){var s;let a;const r=null==o?void 0:o.referredByReferral,i=e.showReferrer&&!!(null===(s=null==o?void 0:o.referredByReferral)||void 0===s?void 0:s.dateReferralStarted);a=o.data.slice(0,i?e.perPage-1:e.perPage);const n=t.filter((e=>{var t,s;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot"))})),d=null==n?void 0:n.map((async(e,t)=>{var s;const a=null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==a&&"empty"!==a){e.setAttribute("slot","column-"+t),e.style.position="absolute";const s=e.firstElementChild.childNodes[1];return s.innerHTML="+",s.style.lineHeight="20px",P(e,(()=>e.renderLabel(t)))}return P(e,(()=>e.renderLabel()))}));let u;if(i){const e=null==n?void 0:n.map((async e=>P(e,(function(){return e.renderCell(r,e)}))));u=await Promise.all(e)}const c=null==a?void 0:a.map((async e=>{const t=null==n?void 0:n.map((async t=>P(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),p=c&&[u,...await Promise.all(c)].filter((e=>e));l({rows:p});const E=d&&await Promise.all(d);l({columns:E,loading:!1,page:0})}(c)}),[null==o?void 0:o.data,c,d]),u({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:s}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,e,s):_(this,e,s);return E([this.showReferrer,this.perPage]),t(p,{states:a,data:l,callbacks:d,elements:c})}};function g(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function T(){return t("slot",{name:"loading"},t(b,null),t(b,null),t(b,null),t(b,null))}function b(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const C=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},w=class{constructor(t){e(this,t),l(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-referral-table-cell",{"inner-template":s(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return E([this.columnTitle]),t(a,{style:{display:"none"}},t("slot",null))}},L=class{constructor(t){e(this,t),this.ignored=!0,this.locale="en",l(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=m.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED):"-"}},O=class{constructor(t){e(this,t),this.columnTitle="Date converted",this.dateShown="dateConverted",l(this)}disconnectedCallback(){}async renderCell(e,s){return t("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:null==s?void 0:s.locale})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-date-cell",{date:e[this.dateShown]})}render(){return E([this.dateShown,this.columnTitle]),t(a,{style:{display:"none"}})}},x=class{constructor(t){e(this,t),this.locale="en"}render(){var e;d.locale=this.locale;const s=c({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}}),a=s.toString(),l=e=>m.DateTime.fromMillis(e).setLocale(f(this.locale)).toRelative().replace("in","").trim();return null===(e=this.rewards)||void 0===e?void 0:e.map((e=>{var r,i;const n=((e,t)=>{var s,a,l,r,i,n,d,o,u,c,p,E;if("APPROVED"!==(null===(a=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===a?void 0:a.moderationStatus)){if("PENDING"===(null===(r=null===(l=e.referral)||void 0===l?void 0:l.fraudData)||void 0===r?void 0:r.moderationStatus))return"PENDING_REVIEW";if("DENIED"===(null===(n=null===(i=e.referral)||void 0===i?void 0:i.fraudData)||void 0===n?void 0:n.moderationStatus))return"DENIED"}const h=null===(d=e.partnerFundsTransfer)||void 0===d?void 0:d.status;if("NOT_YET_DUE"===h||"TRANSFERRED"===h)return"PAYOUT_APPROVED";if("OVERDUE"===h)return"PAYOUT_FAILED";if("REVERSED"===h)return"PAYOUT_CANCELLED";if(null===(o=null==e?void 0:e.pendingReasons)||void 0===o?void 0:o.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return"PENDING";if(!(null==t?void 0:t.connected))return"PENDING_PARTNER_CREATION";if(null===(u=null==t?void 0:t.publisher)||void 0===u?void 0:u.requiredTaxDocumentType){if(!(null===(c=null==t?void 0:t.publisher)||void 0===c?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return"PENDING_NEW_TAX_FORM";if("NOT_VERIFIED"===e)return"PENDING_TAX_REVIEW"}if(!(null===(p=null==t?void 0:t.publisher)||void 0===p?void 0:p.withdrawalSettings))return"PENDING_PARTNER_CREATION"}return(null===(E=null==e?void 0:e.pendingReasons)||void 0===E?void 0:E.includes("PAYOUT_CONFIGURATION_MISSING"))?"PENDING_PARTNER_CREATION":1===e.statuses.length?e.statuses[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"].find((t=>e.statuses.includes(t)&&t))})(e,this.taxConnection),o=(e=>{switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}})(n),u=d.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:n}),c=d.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:n});return t("sl-details",{class:s.classes.Details,disabled:this.hideDetails},t("style",{type:"text/css"},a),t("div",{slot:"summary",class:s.classes.DetailsContainer},t(I,{type:"p"},t("span",{part:"sqm-cell-value",class:s.classes.BoldText},e.prettyValue)),t("div",{class:s.classes.BadgeContainer},t("sl-badge",{class:"primary"===o?s.classes.RedeemBadge:s.classes.StatusBadge,type:o,pill:!0},"PENDING"===n&&e.dateScheduledFor?d.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:u,date:l(e.dateScheduledFor)}):u),e.dateExpires&&"AVAILABLE"===n&&t("sl-badge",{class:"primary"===o?s.classes.RedeemBadge:s.classes.StatusBadge,type:"info",pill:!0},this.expiringText,` ${l(e.dateExpires)}`))),t("div",null,"PENDING_REVIEW"===n&&(null===(r=e.referral)||void 0===r?void 0:r.dateModerated)&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PAYOUT_APPROVED"===n&&t("div",null,t(I,{type:"p"},c)),"PAYOUT_FAILED"===n&&t("div",null,t(I,{type:"p"},c)),"PAYOUT_CANCELLED"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_TAX_REVIEW"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_NEW_TAX_FORM"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_TAX_SUBMISSION"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_PARTNER_CREATION"===n&&t("div",null,t(I,{type:"p"},c)),"DENIED"===n&&(null===(i=e.referral)||void 0===i?void 0:i.dateModerated)&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)),".",this.deniedHelpText?` ${this.deniedHelpText}`:"")),e.dateGiven&&t("div",null,t(I,{type:"p"},this.rewardReceivedText," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateGiven).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"EXPIRED"===n&&e.dateExpires&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"CANCELLED"===n&&e.dateCancelled&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateCancelled).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PENDING"===n&&e.dateScheduledFor&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateScheduledFor).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED))))," ","AVAILABLE"===n&&e.dateExpires&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(f(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),e.fuelTankCode&&t("div",null,this.fuelTankText," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},e.fuelTankCode))))}))}},G=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.deniedHelpText="Contact support if you think this is a mistake.",this.hideDetails=!1,l(this)}disconnectedCallback(){}async renderCell(e,s){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:null==s?void 0:s.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:null==s?void 0:s.locale,exportparts:"sqm-cell-value"})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})}render(){return E([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]),t(a,{style:{display:"none"}})}},S=c({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),M=S.toString(),U=class{constructor(t){e(this,t)}render(){return t("div",null,t("style",{type:"text/css"},M),t("sl-badge",{pill:!0,type:(e=>"PENDING"===e?"warning":"DENIED"===e?"danger":this.converted?"success":"warning")(this.fraudStatus),class:S.classes.Badge},this.statusText),this.statusSubText?t("p",{class:S.classes.SubText},this.statusSubText):null)}},q=class{constructor(t){e(this,t),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",this.pendingReviewStatusText="Pending",this.deniedStatusText="Denied",this.pendingReviewStatusSubText="Awaiting review",this.deniedStatusSubText="Detected self-referral",l(this)}disconnectedCallback(){}async renderCell(e){var s;let a,l;const r=null===(s=null==e?void 0:e.fraudData)||void 0===s?void 0:s.moderationStatus;return"DENIED"===r?(a=this.deniedStatusText,l=this.deniedStatusSubText):"PENDING"===r?(a=this.pendingReviewStatusText,l=this.pendingReviewStatusSubText):a=e.dateConverted?this.convertedStatusText:this.inProgressStatusText,t("sqm-referral-table-status-cell",{"status-text":a,"status-sub-text":l,"fraud-status":r,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}render(){return E([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]),t(a,{style:{display:"none"}})}},V=class{constructor(t){e(this,t)}render(){return this.name}},k=class{constructor(t){e(this,t),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",l(this)}disconnectedCallback(){}async renderCell(e){var s,a,l,r,i,n,d,o;let u;return u=(null==e?void 0:e.referredUser)||(null==e?void 0:e.referrerUser)?(null===(s=null==e?void 0:e.referredUser)||void 0===s?void 0:s.firstName)||(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.lastName)||(null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName)||(null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName)?(null==e?void 0:e.referrerUser)?`${null===(i=null==e?void 0:e.referrerUser)||void 0===i?void 0:i.firstName} ${null===(n=null==e?void 0:e.referrerUser)||void 0===n?void 0:n.lastName}`:`${null===(d=null==e?void 0:e.referredUser)||void 0===d?void 0:d.firstName} ${null===(o=null==e?void 0:e.referredUser)||void 0===o?void 0:o.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:u})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){var s,a,l,r;let i;return i=e?(null===(s=null==e?void 0:e.referrerUser)||void 0===s?void 0:s.firstName)||(null===(a=e.referrerUser)||void 0===a?void 0:a.lastName)?`${null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName} ${null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:i})}render(){return E([this.deletedUser,this.anonymousUser,this.columnTitle]),t(a,{style:{display:"none"}})}};export{R as sqm_referral_table,C as sqm_referral_table_cell,w as sqm_referral_table_column,L as sqm_referral_table_date_cell,O as sqm_referral_table_date_column,x as sqm_referral_table_rewards_cell,G as sqm_referral_table_rewards_column,U as sqm_referral_table_status_cell,q as sqm_referral_table_status_column,V as sqm_referral_table_user_cell,k as sqm_referral_table_user_column}
1
+ import{r as e,h as t,g as s,c as a}from"./p-64c3217a.js";import{n as l,j as r,u as i,f as n}from"./p-fd2c5407.js";import{i as d}from"./p-6f369e92.js";import{i as o}from"./p-a26bfa84.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import{c}from"./p-cef45012.js";import{G as p}from"./p-c5d2e4ba.js";import{a as E,u as h}from"./p-fe022ca4.js";import{u as v}from"./p-5184a08a.js";import{l as m}from"./p-251e7567.js";import{g as N}from"./p-f3053c61.js";import{u as _,t as f}from"./p-fee2e0c4.js";import{l as P}from"./p-9ec99ced.js";import{T as I}from"./p-5d0c9424.js";const D=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],A=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],y=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],R=class{constructor(t){e(this,t),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,l(this)}disconnectedCallback(){}render(){const e=t(g,null),s=t(T,null),{states:a,data:l,callbacks:d,elements:c}=o()?function(e,t,s){const[a,l]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),d=h(),o=i((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:[...Array(e)].map((()=>({id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:A[Math.floor(Math.random()*A.length)],lastName:y[Math.floor(Math.random()*y.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(10*Math.random())>=5?m.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:m.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(10*Math.random())>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:D[Math.floor(Math.random()*D.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...N()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:D[Math.floor(Math.random()*D.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:D[Math.floor(Math.random()*D.length)],type:"CREDIT",value:1},depth:1}]}})))}))(e.perPage)}),[e.perPage]),c=v();return n((()=>{l({loading:!0}),(null==o?void 0:o.data)&&async function(t){var s;let a;const r=null==o?void 0:o.referredByReferral,i=e.showReferrer&&!!(null===(s=null==o?void 0:o.referredByReferral)||void 0===s?void 0:s.dateReferralStarted);a=o.data.slice(0,i?e.perPage-1:e.perPage);const n=t.filter((e=>{var t,s;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot"))})),d=null==n?void 0:n.map((async(e,t)=>{var s;const a=null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==a&&"empty"!==a){e.setAttribute("slot","column-"+t),e.style.position="absolute";const s=e.firstElementChild.childNodes[1];return s.innerHTML="+",s.style.lineHeight="20px",f(e,(()=>e.renderLabel(t)))}return f(e,(()=>e.renderLabel()))}));let u;if(i){const e=null==n?void 0:n.map((async e=>f(e,(function(){return e.renderCell(r,e)}))));u=await Promise.all(e)}const c=null==a?void 0:a.map((async e=>{const t=null==n?void 0:n.map((async t=>f(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),p=c&&[u,...await Promise.all(c)].filter((e=>e));l({rows:p});const E=d&&await Promise.all(d);l({columns:E,loading:!1,page:0})}(c)}),[null==o?void 0:o.data,c,d]),u({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:s}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,e,s):_(this,e,s);return E([this.showReferrer,this.perPage]),t(p,{states:a,data:l,callbacks:d,elements:c})}};function g(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function T(){return t("slot",{name:"loading"},t(b,null),t(b,null),t(b,null),t(b,null))}function b(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const C=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},w=class{constructor(t){e(this,t),l(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-referral-table-cell",{"inner-template":s(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return E([this.columnTitle]),t(a,{style:{display:"none"}},t("slot",null))}},L=class{constructor(t){e(this,t),this.ignored=!0,this.locale="en",l(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=m.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED):"-"}},O=class{constructor(t){e(this,t),this.columnTitle="Date converted",this.dateShown="dateConverted",l(this)}disconnectedCallback(){}async renderCell(e,s){return t("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:null==s?void 0:s.locale})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-date-cell",{date:e[this.dateShown]})}render(){return E([this.dateShown,this.columnTitle]),t(a,{style:{display:"none"}})}},x=class{constructor(t){e(this,t),this.locale="en"}render(){var e;d.locale=this.locale;const s=c({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}}),a=s.toString(),l=e=>m.DateTime.fromMillis(e).setLocale(P(this.locale)).toRelative().replace("in","").trim();return null===(e=this.rewards)||void 0===e?void 0:e.map((e=>{var r,i;const n=((e,t)=>{var s,a,l,r,i,n,d,o,u,c,p,E;if("APPROVED"!==(null===(a=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===a?void 0:a.moderationStatus)){if("PENDING"===(null===(r=null===(l=e.referral)||void 0===l?void 0:l.fraudData)||void 0===r?void 0:r.moderationStatus))return"PENDING_REVIEW";if("DENIED"===(null===(n=null===(i=e.referral)||void 0===i?void 0:i.fraudData)||void 0===n?void 0:n.moderationStatus))return"DENIED"}const h=null===(d=e.partnerFundsTransfer)||void 0===d?void 0:d.status;if("NOT_YET_DUE"===h||"TRANSFERRED"===h)return"PAYOUT_APPROVED";if("OVERDUE"===h)return"PAYOUT_FAILED";if("REVERSED"===h)return"PAYOUT_CANCELLED";if(null===(o=null==e?void 0:e.pendingReasons)||void 0===o?void 0:o.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return"PENDING";if(!(null==t?void 0:t.connected))return"PENDING_PARTNER_CREATION";if(null===(u=null==t?void 0:t.publisher)||void 0===u?void 0:u.requiredTaxDocumentType){if(!(null===(c=null==t?void 0:t.publisher)||void 0===c?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return"PENDING_NEW_TAX_FORM";if("NOT_VERIFIED"===e)return"PENDING_TAX_REVIEW"}if(!(null===(p=null==t?void 0:t.publisher)||void 0===p?void 0:p.withdrawalSettings))return"PENDING_PARTNER_CREATION"}return(null===(E=null==e?void 0:e.pendingReasons)||void 0===E?void 0:E.includes("PAYOUT_CONFIGURATION_MISSING"))?"PENDING_PARTNER_CREATION":1===e.statuses.length?e.statuses[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"].find((t=>e.statuses.includes(t)&&t))})(e,this.taxConnection),o=(e=>{switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}})(n),u=d.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:n}),c=d.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:n});return t("sl-details",{class:s.classes.Details,disabled:this.hideDetails},t("style",{type:"text/css"},a),t("div",{slot:"summary",class:s.classes.DetailsContainer},t(I,{type:"p"},t("span",{part:"sqm-cell-value",class:s.classes.BoldText},e.prettyValue)),t("div",{class:s.classes.BadgeContainer},t("sl-badge",{class:"primary"===o?s.classes.RedeemBadge:s.classes.StatusBadge,type:o,pill:!0},"PENDING"===n&&e.dateScheduledFor?d.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:u,date:l(e.dateScheduledFor)}):u),e.dateExpires&&"AVAILABLE"===n&&t("sl-badge",{class:"primary"===o?s.classes.RedeemBadge:s.classes.StatusBadge,type:"info",pill:!0},this.expiringText,` ${l(e.dateExpires)}`))),t("div",null,"PENDING_REVIEW"===n&&(null===(r=e.referral)||void 0===r?void 0:r.dateModerated)&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PAYOUT_APPROVED"===n&&t("div",null,t(I,{type:"p"},c)),"PAYOUT_FAILED"===n&&t("div",null,t(I,{type:"p"},c)),"PAYOUT_CANCELLED"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_TAX_REVIEW"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_NEW_TAX_FORM"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_TAX_SUBMISSION"===n&&t("div",null,t(I,{type:"p"},c)),"PENDING_PARTNER_CREATION"===n&&t("div",null,t(I,{type:"p"},c)),"DENIED"===n&&(null===(i=e.referral)||void 0===i?void 0:i.dateModerated)&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)),".",this.deniedHelpText?` ${this.deniedHelpText}`:"")),e.dateGiven&&t("div",null,t(I,{type:"p"},this.rewardReceivedText," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateGiven).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"EXPIRED"===n&&e.dateExpires&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"CANCELLED"===n&&e.dateCancelled&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateCancelled).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PENDING"===n&&e.dateScheduledFor&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateScheduledFor).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED))))," ","AVAILABLE"===n&&e.dateExpires&&t("div",null,t(I,{type:"p"},c," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(P(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),e.fuelTankCode&&t("div",null,this.fuelTankText," ",t("span",{class:s.classes.BoldText,part:"sqm-cell-value"},e.fuelTankCode))))}))}},G=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.deniedHelpText="Contact support if you think this is a mistake.",this.hideDetails=!1,l(this)}disconnectedCallback(){}async renderCell(e,s){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:null==s?void 0:s.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:null==s?void 0:s.locale,exportparts:"sqm-cell-value"})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})}render(){return E([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]),t(a,{style:{display:"none"}})}},S=c({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),M=S.toString(),U=class{constructor(t){e(this,t)}render(){return t("div",null,t("style",{type:"text/css"},M),t("sl-badge",{pill:!0,type:(e=>"PENDING"===e?"warning":"DENIED"===e?"danger":this.converted?"success":"warning")(this.fraudStatus),class:S.classes.Badge},this.statusText),this.statusSubText?t("p",{class:S.classes.SubText},this.statusSubText):null)}},q=class{constructor(t){e(this,t),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",this.pendingReviewStatusText="Pending",this.deniedStatusText="Denied",this.pendingReviewStatusSubText="Awaiting review",this.deniedStatusSubText="Detected self-referral",l(this)}disconnectedCallback(){}async renderCell(e){var s;let a,l;const r=null===(s=null==e?void 0:e.fraudData)||void 0===s?void 0:s.moderationStatus;return"DENIED"===r?(a=this.deniedStatusText,l=this.deniedStatusSubText):"PENDING"===r?(a=this.pendingReviewStatusText,l=this.pendingReviewStatusSubText):a=e.dateConverted?this.convertedStatusText:this.inProgressStatusText,t("sqm-referral-table-status-cell",{"status-text":a,"status-sub-text":l,"fraud-status":r,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}render(){return E([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]),t(a,{style:{display:"none"}})}},V=class{constructor(t){e(this,t)}render(){return this.name}},k=class{constructor(t){e(this,t),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",l(this)}disconnectedCallback(){}async renderCell(e){var s,a,l,r,i,n,d,o;let u;return u=(null==e?void 0:e.referredUser)||(null==e?void 0:e.referrerUser)?(null===(s=null==e?void 0:e.referredUser)||void 0===s?void 0:s.firstName)||(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.lastName)||(null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName)||(null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName)?(null==e?void 0:e.referrerUser)?`${null===(i=null==e?void 0:e.referrerUser)||void 0===i?void 0:i.firstName} ${null===(n=null==e?void 0:e.referrerUser)||void 0===n?void 0:n.lastName}`:`${null===(d=null==e?void 0:e.referredUser)||void 0===d?void 0:d.firstName} ${null===(o=null==e?void 0:e.referredUser)||void 0===o?void 0:o.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:u})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){var s,a,l,r;let i;return i=e?(null===(s=null==e?void 0:e.referrerUser)||void 0===s?void 0:s.firstName)||(null===(a=e.referrerUser)||void 0===a?void 0:a.lastName)?`${null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName} ${null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:i})}render(){return E([this.deletedUser,this.anonymousUser,this.columnTitle]),t(a,{style:{display:"none"}})}};export{R as sqm_referral_table,C as sqm_referral_table_cell,w as sqm_referral_table_column,L as sqm_referral_table_date_cell,O as sqm_referral_table_date_column,x as sqm_referral_table_rewards_cell,G as sqm_referral_table_rewards_column,U as sqm_referral_table_status_cell,q as sqm_referral_table_status_column,V as sqm_referral_table_user_cell,k as sqm_referral_table_user_column}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,c as a}from"./p-64c3217a.js";import{o,f as r,n}from"./p-fd2c5407.js";import{J as c,E as i,z as e,P as l}from"./p-a26bfa84.js";const p=class{constructor(t){s(this,t),this.ignored=!0,n(this)}disconnectedCallback(){}render(){return async function({domain:s}){const t=c(),a=s,n=e(),p=i(a,n,t),[,m]=o(l,p);r((()=>{m(p)}),[p])}(this),t(a,{style:{display:"contents"}},t("slot",null))}};export{p as sqm_graphql_client_provider}
@@ -1 +1 @@
1
- import{r as e,h as i}from"./p-64c3217a.js";import{k as a,m as t,f as s,n}from"./p-fd2c5407.js";import"./p-1e376222.js";import{l as r,n as o,Q as l,$ as c,u as d,i as v}from"./p-0c8f1fba.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-5d0c9424.js";import{P as m}from"./p-98b83f74.js";const f=class{constructor(i){e(this,i),this.ignored=!0,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. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:k,loading:j}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:j,isVerified:!!(null===(p=null==k?void 0:k.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
1
+ import{r as e,h as i}from"./p-64c3217a.js";import{k as a,m as t,f as s,n}from"./p-fd2c5407.js";import"./p-6f369e92.js";import{l as r,n as o,Q as l,$ as c,u as d,i as v}from"./p-a26bfa84.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-5d0c9424.js";import{P as m}from"./p-2e741415.js";const f=class{constructor(i){e(this,i),this.ignored=!0,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. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:k,loading:j}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:j,isVerified:!!(null===(p=null==k?void 0:k.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}