@saasquatch/mint-components 1.11.1-6 → 1.11.1-61

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 (307) hide show
  1. package/dist/cjs/{ShadowViewAddon-75ebafd6.js → ShadowViewAddon-c3e91cee.js} +211 -145
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +3 -3
  6. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +5 -6
  7. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  8. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  10. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +2 -2
  11. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  12. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  13. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  16. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  18. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  19. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +63 -46
  20. package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-stencilbook.cjs.entry.js +84 -241
  23. package/dist/cjs/sqm-tabs.cjs.entry.js +1 -1
  24. package/dist/collection/collection-manifest.json +0 -10
  25. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  26. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  27. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
  28. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +128 -109
  29. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -1
  30. package/dist/collection/components/sqm-share-button/useShareButton.js +15 -19
  31. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  32. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
  33. package/dist/collection/components/sqm-share-link/useShareLink.js +3 -9
  34. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -6
  35. package/dist/collection/components/views/copy-text-view.js +2 -16
  36. package/dist/esm/{ShadowViewAddon-69360ca6.js → ShadowViewAddon-e012b2aa.js} +213 -148
  37. package/dist/esm/{global-b89b6edc.js → global-04c7d3b5.js} +1 -1
  38. package/dist/esm/{index.module-f122af7b.js → index.module-def4aec5.js} +1 -1
  39. package/dist/esm/loader.js +3 -3
  40. package/dist/esm/mint-components.js +3 -3
  41. package/dist/esm/{re-render-c64289f3.js → re-render-12fd274a.js} +1 -1
  42. package/dist/esm/sqm-asset-card.entry.js +2 -2
  43. package/dist/esm/sqm-banking-info-form_16.entry.js +9 -9
  44. package/dist/esm/sqm-big-stat_38.entry.js +9 -10
  45. package/dist/esm/sqm-close-button.entry.js +3 -3
  46. package/dist/esm/sqm-context-router.entry.js +1 -1
  47. package/dist/esm/sqm-empty_4.entry.js +3 -3
  48. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  49. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  50. package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-6e13a323.js} +1 -1
  51. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  52. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  53. package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
  54. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  55. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  56. package/dist/esm/sqm-password-field.entry.js +4 -4
  57. package/dist/esm/sqm-popup-container.entry.js +1 -1
  58. package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-4307c992.js} +2 -2
  59. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  60. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  61. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  62. package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  63. package/dist/esm/sqm-portal-profile.entry.js +6 -6
  64. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  65. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  66. package/dist/esm/sqm-portal-reset-password.entry.js +4 -4
  67. package/dist/esm/sqm-portal-verify-email.entry.js +4 -4
  68. package/dist/esm/sqm-referral-table_11.entry.js +68 -51
  69. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  70. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  71. package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
  72. package/dist/esm/sqm-stencilbook.entry.js +77 -234
  73. package/dist/esm/sqm-tab.entry.js +2 -2
  74. package/dist/esm/sqm-tabs.entry.js +3 -3
  75. package/dist/esm/{useChildElements-37daf533.js → useChildElements-32e1bda1.js} +1 -1
  76. package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-46b89952.js} +2 -2
  77. package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f4de0650.js} +3 -3
  78. package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-9fc1ac80.js} +1 -1
  79. package/dist/esm/{utilities-18d10876.js → utilities-3f5bba22.js} +1 -1
  80. package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
  81. package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
  82. package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
  83. package/dist/esm-es5/{global-b89b6edc.js → global-04c7d3b5.js} +1 -1
  84. package/dist/esm-es5/{index.module-f122af7b.js → index.module-def4aec5.js} +1 -1
  85. package/dist/esm-es5/loader.js +1 -1
  86. package/dist/esm-es5/mint-components.js +1 -1
  87. package/dist/esm-es5/{re-render-c64289f3.js → re-render-12fd274a.js} +1 -1
  88. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  89. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  90. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
  92. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  93. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  94. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  95. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  96. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  97. package/dist/esm-es5/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-6e13a323.js} +1 -1
  98. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  99. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  100. package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +1 -0
  101. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  102. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  103. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  104. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  105. package/dist/esm-es5/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
  106. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  107. package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  108. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  109. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  110. package/dist/esm-es5/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  111. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  112. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  113. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  114. package/dist/esm-es5/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  115. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  116. package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
  117. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  118. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  119. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  120. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  121. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  122. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  123. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  124. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  125. package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-32e1bda1.js} +1 -1
  126. package/dist/esm-es5/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-46b89952.js} +1 -1
  127. package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f4de0650.js} +1 -1
  128. package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
  129. package/dist/esm-es5/{utilities-18d10876.js → utilities-3f5bba22.js} +1 -1
  130. package/dist/mint-components/mint-components.esm.js +1 -1
  131. package/dist/mint-components/mint-components.js +1 -1
  132. package/dist/mint-components/p-021a735d.entry.js +1 -0
  133. package/dist/mint-components/{p-21d4f6ce.system.js → p-02424350.system.js} +1 -1
  134. package/dist/mint-components/p-03494732.entry.js +1 -0
  135. package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-07f675ab.system.entry.js} +1 -1
  136. package/dist/mint-components/p-0b9fa97f.js +1 -0
  137. package/dist/mint-components/{p-55588b46.system.js → p-0d8c53ac.system.js} +1 -1
  138. package/dist/mint-components/{p-969075f6.js → p-10685090.js} +23 -23
  139. package/dist/mint-components/p-10e89d0a.entry.js +1 -0
  140. package/dist/mint-components/{p-12c56ba6.entry.js → p-137ea86e.entry.js} +1 -1
  141. package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
  142. package/dist/mint-components/{p-942d1c22.entry.js → p-1c857edb.entry.js} +2 -2
  143. package/dist/mint-components/{p-a1150633.system.entry.js → p-1dd69917.system.entry.js} +1 -1
  144. package/dist/mint-components/p-21670740.system.entry.js +1 -0
  145. package/dist/mint-components/{p-cfbe2f86.entry.js → p-2dd67762.entry.js} +1 -1
  146. package/dist/mint-components/{p-991c9787.js → p-2ee2ebba.js} +2 -2
  147. package/dist/mint-components/{p-d3d281ff.entry.js → p-3223ba7b.entry.js} +1 -1
  148. package/dist/mint-components/{p-1c710e16.entry.js → p-32d1d162.entry.js} +1 -1
  149. package/dist/mint-components/{p-f52c3aec.system.entry.js → p-35d84041.system.entry.js} +1 -1
  150. package/dist/mint-components/{p-0f028514.system.js → p-3d4656bb.system.js} +1 -1
  151. package/dist/mint-components/{p-1c6e4a5f.entry.js → p-3ec16698.entry.js} +2 -2
  152. package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
  153. package/dist/mint-components/{p-aa933e70.entry.js → p-3f385f47.entry.js} +9 -9
  154. package/dist/mint-components/{p-8077e9c6.js → p-41a11a7f.js} +1 -1
  155. package/dist/mint-components/{p-43a990b6.system.js → p-44787d6e.system.js} +1 -1
  156. package/dist/mint-components/{p-67846dce.system.entry.js → p-4502ed11.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-e41cb11f.js → p-4d233cd4.js} +1 -1
  158. package/dist/mint-components/{p-f44d88fa.system.js → p-4df8f1d2.system.js} +1 -1
  159. package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
  160. package/dist/mint-components/{p-daba8cd2.system.entry.js → p-4ea58025.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-798ed3a2.entry.js → p-4edde470.entry.js} +1 -1
  162. package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
  163. package/dist/mint-components/p-51f517a2.js +1 -0
  164. package/dist/mint-components/{p-3cc5474d.entry.js → p-56f14840.entry.js} +1 -1
  165. package/dist/mint-components/{p-7962ab58.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-46ca288c.system.js → p-59fe4ad1.system.js} +1 -1
  167. package/dist/mint-components/{p-ecefeaa9.system.entry.js → p-5b333fa8.system.entry.js} +1 -1
  168. package/dist/mint-components/p-5be235f9.entry.js +1 -0
  169. package/dist/mint-components/{p-14dac608.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
  170. package/dist/mint-components/p-5f1c4160.system.entry.js +1 -0
  171. package/dist/mint-components/p-61eab172.js +1 -0
  172. package/dist/mint-components/{p-9deac406.system.js → p-674a64fe.system.js} +1 -1
  173. package/dist/mint-components/{p-6e62f207.entry.js → p-6cef104b.entry.js} +1 -1
  174. package/dist/mint-components/{p-18a7f543.system.entry.js → p-711ba77e.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-22de9f73.system.entry.js → p-733825fa.system.entry.js} +1 -1
  176. package/dist/mint-components/p-76b2506e.system.entry.js +1 -0
  177. package/dist/mint-components/{p-6e7e8af6.system.js → p-770368bc.system.js} +1 -1
  178. package/dist/mint-components/{p-ff41c804.system.entry.js → p-7731f793.system.entry.js} +1 -1
  179. package/dist/mint-components/p-79191f88.entry.js +1 -0
  180. package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
  181. package/dist/mint-components/{p-41499327.entry.js → p-7f088154.entry.js} +1 -1
  182. package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
  183. package/dist/mint-components/{p-96cb9c17.entry.js → p-86990110.entry.js} +1 -1
  184. package/dist/mint-components/{p-9c3d78e9.js → p-8704937c.js} +1 -1
  185. package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
  186. package/dist/mint-components/{p-26306ac4.system.entry.js → p-8e907ac7.system.entry.js} +1 -1
  187. package/dist/mint-components/p-91669312.entry.js +1 -0
  188. package/dist/mint-components/p-95771f79.system.js +1 -0
  189. package/dist/mint-components/{p-acc93caa.system.entry.js → p-9c310991.system.entry.js} +1 -1
  190. package/dist/mint-components/{p-f7c1ebb1.entry.js → p-9df2fe24.entry.js} +2 -2
  191. package/dist/mint-components/{p-476182e7.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
  192. package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
  193. package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
  194. package/dist/mint-components/p-a6a7dcaa.js +1 -0
  195. package/dist/mint-components/{p-9288cca6.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
  196. package/dist/mint-components/{p-00be5090.js → p-a8f7cb95.js} +1 -1
  197. package/dist/mint-components/{p-1b1d10e5.entry.js → p-a9050eb0.entry.js} +1 -1
  198. package/dist/mint-components/{p-fae82751.entry.js → p-aad11a68.entry.js} +1 -1
  199. package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-af062c8f.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-de2a8fae.system.entry.js → p-afd366ae.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-1099290c.system.js → p-b370fca8.system.js} +1 -1
  202. package/dist/mint-components/{p-246a2827.entry.js → p-b4c52c5a.entry.js} +2 -2
  203. package/dist/mint-components/{p-a474b0ec.system.entry.js → p-b5861974.system.entry.js} +1 -1
  204. package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-ea88142c.js → p-bb00db59.js} +1 -1
  206. package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-be4b748a.system.entry.js} +1 -1
  207. package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
  208. package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
  209. package/dist/mint-components/{p-73decce7.system.js → p-c84659a3.system.js} +1 -1
  210. package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
  211. package/dist/mint-components/p-ce5afa40.entry.js +1 -0
  212. package/dist/mint-components/{p-3373d84e.js → p-ce621bcc.js} +1 -1
  213. package/dist/mint-components/{p-82e09b8d.system.entry.js → p-cf690d55.system.entry.js} +1 -1
  214. package/dist/mint-components/p-d495896f.system.entry.js +1 -0
  215. package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
  216. package/dist/mint-components/{p-110dddfe.entry.js → p-d8d2de11.entry.js} +1 -1
  217. package/dist/mint-components/p-dd7ee007.system.js +1 -0
  218. package/dist/mint-components/p-e3735866.entry.js +11 -0
  219. package/dist/mint-components/{p-b334bde8.entry.js → p-e5a0c50e.entry.js} +2 -2
  220. package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
  221. package/dist/mint-components/{p-1df19ea2.js → p-eaada4da.js} +1 -1
  222. package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-eba44835.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-48b7d703.entry.js → p-ec41d6a4.entry.js} +6 -6
  224. package/dist/mint-components/{p-bf834367.system.js → p-ed095674.system.js} +1 -1
  225. package/dist/mint-components/p-ed17e637.system.js +1 -0
  226. package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
  227. package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
  228. package/dist/mint-components/p-fdbd9aa7.entry.js +1 -0
  229. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
  230. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +2 -0
  231. package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
  232. package/dist/types/components/views/copy-text-view.d.ts +0 -2
  233. package/dist/types/components.d.ts +0 -170
  234. package/docs/docs.docx +0 -0
  235. package/docs/raisins.json +1 -1
  236. package/grapesjs/grapesjs.js +1 -1
  237. package/package.json +1 -1
  238. package/dist/cjs/copy-text-view-ec6055a6.js +0 -198
  239. package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -321
  240. package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
  241. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
  242. package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -86
  243. package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
  244. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
  245. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
  246. package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -55
  247. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
  248. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
  249. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -99
  250. package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -99
  251. package/dist/esm/copy-text-view-730ad677.js +0 -192
  252. package/dist/esm/sqm-pagination_3.entry.js +0 -315
  253. package/dist/esm-es5/ShadowViewAddon-69360ca6.js +0 -1
  254. package/dist/esm-es5/copy-text-view-730ad677.js +0 -1
  255. package/dist/esm-es5/sqm-navigation-sidebar-item-view-14114804.js +0 -1
  256. package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
  257. package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
  258. package/dist/mint-components/p-01434e4a.entry.js +0 -1
  259. package/dist/mint-components/p-0fcec6ab.system.js +0 -1
  260. package/dist/mint-components/p-1ce4fa30.system.entry.js +0 -1
  261. package/dist/mint-components/p-2d98dd8b.js +0 -29
  262. package/dist/mint-components/p-2e16db11.entry.js +0 -1
  263. package/dist/mint-components/p-3d90aa82.entry.js +0 -13
  264. package/dist/mint-components/p-494e407e.entry.js +0 -1
  265. package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
  266. package/dist/mint-components/p-5c845bc2.system.entry.js +0 -1
  267. package/dist/mint-components/p-5d1791f2.system.entry.js +0 -1
  268. package/dist/mint-components/p-5d37482d.entry.js +0 -1
  269. package/dist/mint-components/p-5fc8d87c.system.js +0 -1
  270. package/dist/mint-components/p-6790974f.system.entry.js +0 -1
  271. package/dist/mint-components/p-6b0e6a6c.js +0 -1
  272. package/dist/mint-components/p-89a760ea.js +0 -1
  273. package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
  274. package/dist/mint-components/p-b5176703.entry.js +0 -1
  275. package/dist/mint-components/p-bd4e9c2b.js +0 -1
  276. package/dist/mint-components/p-c02ffc85.system.entry.js +0 -1
  277. package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
  278. package/dist/mint-components/p-ca17d998.entry.js +0 -1
  279. package/dist/mint-components/p-d666b326.js +0 -1
  280. package/dist/mint-components/p-dc41ff27.entry.js +0 -1
  281. package/dist/mint-components/p-e78d511b.system.js +0 -1
  282. package/dist/mint-components/p-f1ec1180.entry.js +0 -1
  283. package/dist/types/components/sqm-pagination/Pagination.stories.d.ts +0 -5
  284. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
  285. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
  286. package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
  287. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
  288. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
  289. package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
  290. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
  291. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
  292. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -21
  293. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -47
  294. package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
  295. package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
  296. package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
  297. package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +1 -1
  298. package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
  299. package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
  300. package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
  301. package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
  302. package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
  303. package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
  304. package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
  305. package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  306. package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  307. package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
@@ -1 +0,0 @@
1
- import{k as r,u as t}from"./p-fd2c5407.js";import{_ as o}from"./p-00be5090.js";function s(){const s=o(),e=s.children.length?Array.from(s.children):[],[n,i]=r(e);let a;return t((()=>{a=new MutationObserver((()=>{const r=Array.from(s.children);i([...r])}))}),[]),t((()=>{if(a)return a.observe(s,{childList:!0}),()=>{a.disconnect()}}),[s]),n}export{s as u}
@@ -1 +0,0 @@
1
- import{k as r}from"./p-fd2c5407.js";import{c as o}from"./p-00be5090.js";import{j as a}from"./p-e7e129ac.js";import{u as t}from"./p-d666b326.js";function i(i){const n=new URLSearchParams(window.location.search),s=null==n?void 0:n.get("_saasquatch"),{registrationFormState:e,setRegistrationFormState:l}=t(),[d,{loading:c}]=o(),[m,u]=r("");return{states:{loading:c,error:null==e?void 0:e.error,registrationFormState:e},callbacks:{submit:async r=>{var o;u("");let t=r.target.getFormControls(),n=r.detail.formData,c={};null==t||t.map((r=>{if(!r.name)return;const o=r.name,t=r.value;if(a.set(n,o,t),r.required&&!t&&a.set(c,o,i.requiredFieldErrorMessage),"function"==typeof r.validationError){const i=(0,r.validationError)({control:r,key:o,value:t});i&&a.set(c,o,i)}}));const m={firstName:n.firstName,lastName:n.lastName,email:n.email,...(null==i?void 0:i.includeCookies)&&s?{cookies:s}:{}};try{const r=await d(m);if(r instanceof Error)throw r;l({...e,loading:!1,error:"",validationErrors:{}})}catch(r){(null===(o=null==r?void 0:r.message)||void 0===o?void 0:o.includes("is not valid"))?l({...e,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}}):l("fraud_error"===(null==r?void 0:r.name)?{...e,loading:!1,error:"FRAUD"}:{...e,loading:!1,error:i.networkErrorMessage,validationErrors:{}})}}}}}export{i as u}
@@ -1,11 +0,0 @@
1
- import{r as i,h as t}from"./p-64c3217a.js";import{n as e}from"./p-fd2c5407.js";import{d as r,Q as o,y as s,b as a,i as n}from"./p-00be5090.js";import{g as c}from"./p-9ec99ced.js";import"./p-cef45012.js";import{c as l}from"./p-c1086930.js";import{L as m}from"./p-e3e16c36.js";const d=r.gql`
2
- query getUserDetails {
3
- viewer {
4
- ... on User {
5
- id
6
- accountId
7
- email
8
- }
9
- }
10
- }
11
- `,h=class{constructor(t){i(this,t),this.userIdentificationText="{email}",this.switchUserText="not you?",this.emailErrorText="Error fetching email",e(this)}disconnectedCallback(){}render(){const i=n()?function(i){return l({onSwitchClick:()=>a(void 0),filledInEmailText:"john@example.com",switchUserText:i.switchUserText,emailErrorText:i.emailErrorText,loading:!1},i.demoData||{},{arrayMerge:(i,t)=>t})}(this):function(i){var t,e;const r=o(),{loading:n,data:c}=s(d,{},!r);return{loading:n,onSwitchClick:()=>{a(void 0)},filledInEmailText:null===(t=i.userIdentificationText)||void 0===t?void 0:t.replace("{email}",null===(e=null==c?void 0:c.viewer)||void 0===e?void 0:e.email),...i}}(c(this));return t(m,Object.assign({},i,{userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText}))}};export{h as sqm_logout_current_user}
@@ -1 +0,0 @@
1
- import{r as s}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{b as o,e as a,i as r}from"./p-00be5090.js";const i=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){o(void 0),a.push({pathname:s,search:""})}(this)}};export{i as sqm_portal_logout}
@@ -1 +0,0 @@
1
- import{k as o,f as n}from"./p-fd2c5407.js";import{u as r}from"./p-00be5090.js";function i(i){const[t,e]=o(window.innerWidth),s=r((()=>e(window.innerWidth)),[]);return n((()=>(window.addEventListener("resize",s),()=>window.removeEventListener("resize",s))),[]),!(t>i)}function t(o){return CSS.supports(`(color: ${o})`)}function e(o){return!o||0===Object.keys(o).length&&o.constructor===Object}export{t as a,i as b,e as i}
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):a(e.value).then(o,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,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 l([e,t])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(o[0]===6&&n.label<i[1]){n.label=i[1];i=o;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(o);break}if(i[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{r=i=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-46ca288c.system.js","./p-1099290c.system.js","./p-b2295bc5.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-e78d511b.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-9deac406.system.js","./p-6e7e8af6.system.js","./p-ce9e7c98.system.js","./p-4f775e84.system.js","./p-7ae8fb53.system.js","./p-21d4f6ce.system.js","./p-0f028514.system.js","./p-9d362d44.system.js","./p-0fcec6ab.system.js","./p-ed6ebd60.system.js"],(function(e){"use strict";var t,n,r,a,i,o,s,l,d,u,c,f,p,v,h,m,g,b,y,x,w,k,_,E,C,T,S,I,M,R,L,P,N,q,A,D,V,$,U,j,F,O,B,H,z,W,G,K,Y,Z,X,J,Q,ee,te,ne,re,ae,ie,oe,se,le,de,ue,ce,fe,pe,ve,he,me;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){a=e.n;i=e.f;o=e.k;s=e.i;l=e.u;d=e.m;u=e.b;c=e.j},function(e){f=e.i},function(e){p=e.i;v=e._;h=e.d;m=e.Q;g=e.H;b=e.$;y=e.y;x=e.B;w=e.L;k=e.g;_=e.e;E=e.p;C=e.q;T=e.x;S=e.u;I=e.r;M=e.S},function(e){R=e.j},function(e){L=e.g;P=e.a;N=e.s},function(e){q=e.c},function(e){A=e.C},function(e){D=e.c},function(){},function(e){V=e.a},function(e){$=e.u},function(){},function(){},function(e){U=e.p},function(e){j=e.R;F=e.u},function(e){O=e.i},function(e){B=e.A},function(e){H=e.b;z=e.U;W=e.B;G=e.O;K=e.J;Y=e.C;Z=e.K;X=e.D;J=e.E;Q=e.H;ee=e.I;te=e.V;ne=e.L;re=e.N;ae=e.d;ie=e.i;oe=e.P;se=e.e;le=e.f;de=e.R;ue=e.W;ce=e.j;fe=e.a;pe=e.S;ve=e.u;he=e.c;me=e.T},function(){}],execute:function(){var ge=e("sqm_big_stat",function(){function e(e){t(this,e);this.flexReverse=false;this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=p()?H(this):z(this),r=t.props,a=t.label;var i=v();var o=!!((e=i.innerHTML)===null||e===void 0?void 0:e.trim());var s=n("slot",{name:"label"},o?n("slot",null):a);return n(W,Object.assign({},r,{labelSlot:s}))};return e}());function be(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=e.map((function(e){return"family="+encodeURIComponent(e)})).join("&");return"https://fonts.googleapis.com/css2?"+n}var ye=e("sqm_brand",function(){function e(e){t(this,e);a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,t;function a(e){if(e){try{return G(e)}catch(e){}}return undefined}var o=(e=a(this.brandColor))!==null&&e!==void 0?e:"";var s=((t=this.brandFont)!==null&&t!==void 0?t:"Nunito Sans").trim()||undefined;i((function(){if(!s){return}var e=document.createElement("link");e.setAttribute("href",be(s));e.setAttribute("rel","stylesheet");document.head.appendChild(e);return function(){return document.head.removeChild(e)}}),[s]);var l=s!==null&&s!==void 0?s:"";return n(r,null,n("style",null,'\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "'+l+'", arial;\n --sl-input-font-family: "'+l+'", arial;\n --sl-tooltip-font-family: "'+l+'", arial;\n font-family: "'+l+'", arial;\n\t\t\t\n '+o+"\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }"),n("slot",null))};return e}());var xe=e("sqm_card_feed",function(){function e(e){t(this,e);this.ignored=true;this.width=347;this.gap=24;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(K,Object.assign({},L(this)),n("slot",null))};return e}());var we={IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}};var ke=q(we);var _e=ke.toString();function Ee(e,t){var r=e.missingProps,a=e.heading,i=a===void 0?"There was a problem loading this section":a,s=e.subheading,l=s===void 0?"There was a technical problem that prevented this section from loading. Please contact us with the link to this page.":s,d=e.description,u=d===void 0?"Error occured while loading <{tagName}>. Values for the following attributes are missing:":d;if(!r)return false;var c=v();var p=o(false),h=p[0],m=p[1];return n("sl-alert",{type:"danger",open:true},n("style",{type:"text/css"},_e),n("div",{slot:"icon",class:ke.classes.IconStyle},n("sl-icon",{name:"exclamation-octagon"})),n("div",{class:ke.classes.DivStyle},n("h2",{class:ke.classes.Heading},f.formatMessage({id:"error-heading",defaultMessage:i})),n("p",null,f.formatMessage({id:"error-subheading",defaultMessage:l}))),n("details",{class:ke.classes.Details},n("summary",{onClick:function(){return m(!h)}},h?"Less":"More"," details"),n("p",null,f.formatMessage({id:"error-description",defaultMessage:u},{tagName:c.tagName.toLowerCase()})),n("ul",null,r.map((function(e){return n("li",null,n("strong",null,e.attribute))})))),n("div",{class:ke.classes.Children},t))}function Ce(e){var t;var n=s(j);var r=o(false),a=r[0],l=r[1];i((function(){var t,r;if((t=n===null||n===void 0?void 0:n.initialData)===null||t===void 0?void 0:t[e.checkboxName]){l(!!((r=n===null||n===void 0?void 0:n.initialData)===null||r===void 0?void 0:r[e.checkboxName]))}}),[(t=n===null||n===void 0?void 0:n.initialData)===null||t===void 0?void 0:t[e.checkboxName]]);return{states:{registrationFormState:n,checked:a},callbacks:{setChecked:l}}}var Te=e("sqm_checkbox_field",function(){function e(e){t(this,e);this.ignored=true;this.checkboxLabel="By signing up you agree to the {labelLink}";this.checkboxLabelLink="https://example.com";this.checkboxLabelLinkText="Terms and Conditions";this.errorMessage="Must be checked";this.checkboxOptional=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=P([{attribute:"checkbox-name",value:this.checkboxName}]);if(!p()&&e){return n(Ee,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"})}var t=__assign({},L(this));var r=p()?Se(this):Ce(this),a=r.states,i=r.callbacks;return n(Y,{states:a,content:t,callbacks:i})};return e}());function Se(e){return D({states:{registrationFormState:{},checked:false},callbacks:{setChecked:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Ie=h.gql(__makeTemplateObject(["\n query fuelTankRewardsQuery($programId: ID!) {\n user: viewer {\n ... on User {\n instantAccessRewards(\n filter: { type_eq: FUELTANK, programId_eq: $programId }\n ) {\n data {\n fuelTankCode\n fuelTankType\n statuses\n dateGiven\n dateExpires\n dateRedeemed\n dateCancelled\n dateScheduledFor\n datePendingForUnhandledError\n }\n count\n totalCount\n }\n }\n }\n }\n"],["\n query fuelTankRewardsQuery($programId: ID!) {\n user: viewer {\n ... on User {\n instantAccessRewards(\n filter: { type_eq: FUELTANK, programId_eq: $programId }\n ) {\n data {\n fuelTankCode\n fuelTankType\n statuses\n dateGiven\n dateExpires\n dateRedeemed\n dateCancelled\n dateScheduledFor\n datePendingForUnhandledError\n }\n count\n totalCount\n }\n }\n }\n }\n"]));var Me=h.gql(__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]));function Re(e){var t,n,r;var a=m();var i=g();var s=x();var l=b(Me)[0];var d=y(Ie,{programId:i},!(a===null||a===void 0?void 0:a.jwt)),u=d.data,c=d.loading,f=d.refetch,p=d.errors;var v=function(e){if(!e||!e.statuses)return"ERROR";var t=e.statuses[e.statuses.length-1];if(t==="PENDING"&&e.dateScheduledFor===null)return"EMPTY_TANK";return t};var h=(r=(n=(t=u===null||u===void 0?void 0:u.user)===null||t===void 0?void 0:t.instantAccessRewards)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r[0];var w=v(h);var k=w==="PENDING"&&h.dateScheduledFor?new Date(h.dateScheduledFor).toLocaleDateString("default",{day:"numeric",month:"long",year:"numeric"}):undefined;var _=(h===null||h===void 0?void 0:h.fuelTankCode)||"...";var E=o(false),C=E[0],T=E[1];function S(){navigator.clipboard.writeText(_);T(true);setTimeout((function(){return T(false)}),e.tooltiplifespan);l({eventMeta:{programId:i,id:a===null||a===void 0?void 0:a.id,accountId:a===null||a===void 0?void 0:a.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:s,shareMedium:"DIRECT"}}})}var I=function(t){switch(t){case"CANCELLED":return e.cancelledErrorText;case"EXPIRED":return e.expiredErrorText;case"EMPTY_TANK":return e.fullfillmentErrorText;case"PENDING":return e.pendingErrorText.replace("{unpendDate}",k);case"REDEEMED":return e.redeemedErrorText;case"AVAILABLE":return"";default:return e.genericErrorText}};var M=function(e){switch(e){case"EXPIRED":case"EMPTY_TANK":case"CANCELLED":case"ERROR":return"warning";case"PENDING":return"info";case"REDEEMED":return"success";default:return}};var R=I(w);var L=M(w);var P=w!=="AVAILABLE";return __assign(__assign({},e),{onClick:S,open:C,copyString:_,error:P,errorText:R,dateAvailable:k,loading:c,errorType:L})}var Le=e("sqm_coupon_code",function(){function e(e){t(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Coupon";this.buttonStyle="icon";this.couponCodeLabel="Your coupon code:";this.cancelledErrorText="This code has been cancelled. Please reach out to the Support team for help resolving this issue.";this.redeemedErrorText="Looks like you’ve already redeemed this code.";this.expiredErrorText="Looks like this code has expired. Please reach out to the Support team for help resolving this issue.";this.fullfillmentErrorText="We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";this.pendingErrorText="Your code will be available on {unpendDate}. Mark your calendar and come back then to redeem your reward!";this.genericErrorText="We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";this.couponCodePlaceholder="...";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=L(this);var t=p()?Pe(e):Re(e);return n(Z,Object.assign({},t))};return e}());function Pe(e){var t=o(false),n=t[0],r=t[1];var a="THANKSJANE125uv125";return D({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,copyButtonLabel:e.copyButtonLabel,error:false,couponCodePlaceholder:e.couponCodePlaceholder,couponCodeLabel:e.couponCodeLabel,open:n,onClick:function(){navigator.clipboard.writeText(a);r(true);setTimeout((function(){return r(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function Ne(e,t){var r=function(){if(e.direction==="row"){return{"border-right":e.dividerStyle||"1px solid #EAEAEA"}}else{return{"border-bottom":e.dividerStyle||"1px solid #EAEAEA"}}};var a={LayoutContainer:{display:"contents","& > :not(:last-child)":__assign({},r()),"& > ::slotted(*:not(:last-child))":__assign({},r())}};var i="\n display: flex;\n flex: 1;\n box-sizing: border-box;\n flex-direction: "+e.direction+";\n background-color: var(--sqm-content-background);\n overflow-x: clip;\n "+(e.direction==="column"?"width: 100%; max-width: var(--sqm-portal-main-width);":"")+"\n "+(e.contentAreaWidth!==null?"max-width: "+e.contentAreaWidth+" !important;":"")+"\n ";var o="\n :host{\n "+i+"\n }\n @media screen and (max-width: 570px) {\n :host {\n display: flex;\n flex-direction: column;\n }\n }\n sqm-divided-layout {\n "+i+"\n }\n ";var s=q(a);var l=s.toString();return n("div",{class:s.classes.LayoutContainer,part:"sqm-base"},n("style",{type:"text/css"},o,l),t)}var qe=e("sqm_divided_layout",function(){function e(e){t(this,e);this.dividerStyle="1px solid #EAEAEA";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(Ne,Object.assign({},L(this)),n("slot",null))};return e}());function Ae(){var e=s(j);return{states:{registrationFormState:e}}}var De=e("sqm_dropdown_field",function(){function e(e){t(this,e);this.ignored=true;this.dropdownLabel="Select an option";this.errorMessage="Select an option";this.dropdownOptional=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=P([{attribute:"dropdown-name",value:this.dropdownName}]);if(!p()&&e){return n(Ee,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},n("slot",null))}var t=__assign(__assign({},L(this)),{selectOptions:n("slot",null)});var r=(p()?Ve(this):Ae()).states;return n(X,{states:r,content:t})};return e}());function Ve(e){return D({states:{registrationFormState:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var $e=h.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var Ue=h.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var je={currentRegion:"",firstName:"",lastName:"",errors:{},error:""};function Fe(e){var t=m();var n=o(false),r=n[0],a=n[1];var s=o(""),l=s[0],d=s[1];var u=o(undefined),c=u[0],p=u[1];var v=o(je),h=v[0],g=v[1];var x=y($e,{},!(t===null||t===void 0?void 0:t.jwt));var w=b(Ue),k=w[0],_=w[1];i((function(){if((_===null||_===void 0?void 0:_.loading)||!r)return;if(_===null||_===void 0?void 0:_.errors){g((function(e){var t,n,r;return __assign(__assign({},e),{error:(r=(n=(t=_===null||_===void 0?void 0:_.errors)===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.errors)===null||r===void 0?void 0:r[0].message})}))}else{p((function(e){var t;return __assign(__assign({},e),(t=_===null||_===void 0?void 0:_.data)===null||t===void 0?void 0:t.upsertUser)}));a(false)}}),[_===null||_===void 0?void 0:_.loading]);i((function(){p((function(e){var t;return __assign(__assign({},e),(t=x===null||x===void 0?void 0:x.data)===null||t===void 0?void 0:t.viewer)}))}),[x===null||x===void 0?void 0:x.data]);i((function(){var t;if((t=_===null||_===void 0?void 0:_.errors)===null||t===void 0?void 0:t.message){g((function(t){return __assign(__assign({},t),{error:e.networkErrorMessage})}))}}),[_===null||_===void 0?void 0:_.errors]);return{states:{loading:(x===null||x===void 0?void 0:x.loading)||_.loading,submitDisabled:false,formState:h,user:c,showEdit:r,text:{editprofileheader:e.editprofileheader,editprofiletext:e.editprofiletext,firstnametext:e.firstnametext,lastnametext:e.lastnametext,canceltext:e.canceltext,updatetext:e.updatetext,currentregiontext:e.currentregiontext,showregion:e.showregion,fieldEmptyText:e.fieldEmptyText}},callbacks:{onSubmit:function(){if(h.firstName&&h.lastName){k({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:h.firstName,lastName:h.lastName});g((function(e){return __assign(__assign({},e),{errors:{}})}));return}var n={};if(!h.firstName){n["firstName"]={message:e.fieldEmptyText}}if(!h.lastName){n["lastName"]={message:e.fieldEmptyText}}if(!O(n)){g((function(t){return __assign(__assign({},t),{error:e.formErrorText})}))}g((function(e){return __assign(__assign({},e),{errors:n})}))},resetForm:function(){var e,t,n,r,a,i;var o=((t=(e=x===null||x===void 0?void 0:x.data)===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.countryCode)?f.formatDisplayName(x.data.viewer.countryCode,{type:"region"}):"";p(__assign(__assign({},(n=x.data)===null||n===void 0?void 0:n.viewer),(r=_.data)===null||r===void 0?void 0:r.upsertUser));g(__assign(__assign(__assign(__assign({},je),(a=x.data)===null||a===void 0?void 0:a.viewer),(i=_.data)===null||i===void 0?void 0:i.upsertUser),{currentRegion:o}))},onChange:function(e){var t=e.target,n=t.name,r=t.value;g((function(e){var t;return __assign(__assign({},e),(t={},t[n]=r,t))}))},setShowEdit:a}}}var Oe=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";var Be=e("sqm_edit_profile",function(){function e(e){t(this,e);this.ignored=true;this.networkErrorMessage="Network request failed.";this.fieldEmptyText="Cannot be empty";this.formErrorText="Please correct the errors below to update your profile.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?He(L(this)):Fe(L(this));return n(J,Object.assign({},e))};return e}());function He(e){return D({states:{loading:false,submitDisabled:false,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:false,text:{editprofileheader:e.editprofileheader?e.editprofileheader:"Edit Profile",editprofiletext:e.editprofiletext?e.editprofiletext:"Update your profile.",firstnametext:e.firstnametext?e.firstnametext:"First Name",lastnametext:e.lastnametext?e.lastnametext:"Last Name",canceltext:e.canceltext?e.canceltext:"Cancel",updatetext:e.updatetext?e.updatetext:"Update",currentregiontext:e.currentregiontext?e.currentregiontext:"Region",showregion:true,fieldEmptyText:e.fieldEmptyText}},callbacks:{onSubmit:function(e){console.log(e)},resetForm:function(){console.log("reset")},onChange:function(){console.log("change")},setShowEdit:function(e){console.log(e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}Be.style=Oe;var ze=e("sqm_hero",function(){function e(e){t(this,e);this.columns=1;this.minHeight=200;this.background="var(--sl-color-gray-50)";this.paddingSize="large";this.wrapDirection="wrap";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e={states:__assign({},L(this)),content:{primaryColumn:n("slot",null),secondaryColumn:n("slot",{name:"secondary-column"})}};return n(Q,Object.assign({},e))};return e}());function We(e,t){var r=Boolean((e.header||e.description||e.buttonText)&&e.layout==="overlay");var a={Container:{position:"relative","&:before":{content:r?'""':"",width:"100%",height:"100%",position:"absolute",background:e.overlayColor||"var(--sl-color-primary-900)",opacity:e.overlayOpacity}},Image:{display:"block",width:"100%",height:"100%",objectFit:"cover"},Background:{backgroundImage:"url("+e.imageUrl+")",backgroundSize:"cover",backgroundPosition:e.imagePos||"center",display:"flex",justifyContent:"center",alignItems:"center"},Overlay:{zIndex:"1",padding:"calc(var(--sl-spacing-"+e.paddingText+") + var(--sl-spacing-"+e.paddingImage+"))",textAlign:"center",color:e.textColor||"var(--sl-color-neutral-0)",lineHeight:"var(--sl-line-height-dense)","@media (max-width: 599px)":{padding:"var(--sl-spacing-"+e.paddingText+")"}},Column:{display:"flex",background:e.backgroundColor||"",flexDirection:e.imagePos==="right"?"row-reverse":"row",lineHeight:"var(--sl-line-height-dense)",color:e.textColor||"var(--sl-color-neutral-900)","& .image-area":{width:e.imagePercentage?e.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+e.paddingImage+")",boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center","@media (max-width: 599px)":{width:"100%"}},"& .text-area":{width:e.imagePercentage?100-e.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+e.paddingText+")",alignSelf:"center",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%",textAlign:"center",padding:"calc(0.5*var(--sl-spacing-"+e.paddingText+"))"}},"@media (max-width: 599px)":{flexDirection:e.imageMobilePos==="bottom"?"column-reverse":"column"}},Header:{fontSize:"var(--sl-font-size-xxx-large)",fontWeight:"var(--sl-font-weight-bold)","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-xx-large)"}},Description:{fontSize:"var(--sl-font-size-x-large)",margin:"var(--sl-spacing-small) 0","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-large)"}},Button:{marginTop:"var(--sl-spacing-medium)","&::part(base)":{padding:"0 var(--sl-spacing-x-large)"},"@media (max-width: 599px)":{width:"100%"}}};var i=q(a);var o=i.toString();var s="\n :host{\n display: block;\n }";return n("div",{class:i.classes.Container,part:"sqm-base"},n("style",{type:"text/css"},s,o),e.layout==="overlay"&&l(),e.layout==="columns"&&d());function l(){return n("div",{class:i.classes.Background},n("div",{class:i.classes.Overlay,part:"sqm-overlay"},e.header&&n("div",{class:i.classes.Header},e.header),e.description&&n("div",{class:i.classes.Description},e.description),e.buttonText&&n("sl-button",{class:i.classes.Button,type:"primary",onClick:function(){return e.buttonNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}},e.buttonText),t&&t))}function d(){return n("div",null,n("div",{class:i.classes.Column},n("div",{class:"image-area"},n("img",{class:i.classes.Image,src:e.imageUrl,part:"sqm-columns-image"})),n("div",{class:"text-area",part:"sqm-columns-text-area"},e.header&&n("div",{class:i.classes.Header,part:"sqm-columns-header"},e.header),e.description&&n("div",{class:i.classes.Description,part:"sqm-columns-description"},e.description),e.buttonText&&n("sl-button",{exportparts:"base: sqm-hero-image-button",class:i.classes.Button,type:"primary",onClick:function(){return e.buttonNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}},e.buttonText))))}}var Ge=e("sqm_hero_image",function(){function e(e){t(this,e);this.overlayOpacity="0.75";this.layout="overlay";this.imagePercentage=50;this.imagePos="center";this.imageMobilePos="top";this.buttonNewTab=false;this.paddingText="xxxx-large";this.paddingImage="none";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(We,Object.assign({},L(this)),n("slot",null))};return e}());var Ke=e("sqm_hook_story_container",function(){function e(e){t(this,e);this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=this.hookStory;return n(e,null)};return e}());function Ye(e){var t={Container:{display:"flex",width:"100%",justifyContent:e.alignment||"center",background:e.backgroundColor||""},Image:{minHeight:e.minHeight||"100%",width:e.width||"100%",maxWidth:"max-content",objectFit:"cover"}};var r=q(t);var a=r.toString();var i="\n :host{\n display: block; \n }\n ";return n("div",null,n("style",{type:"text/css"},a,i),n("div",{class:r.classes.Container,part:"sqm-base"},n("img",{part:"sqm-image",src:e.imageUrl,class:r.classes.Image})))}var Ze=e("sqm_image",function(){function e(e){t(this,e);this.alignment="center"}e.prototype.render=function(){return n(Ye,Object.assign({},L(this)))};return e}());function Xe(){var e=s(j);return{states:{registrationFormState:e}}}var Je=e("sqm_input_field",function(){function e(e){t(this,e);this.ignored=true;this.fieldType="text";this.errorMessage="Cannot be empty";this.fieldOptional=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},L(this));var t=P([{attribute:"field-name",value:this.fieldName}]);if(!p()&&t){return n(Ee,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this input field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"})}var r=(p()?Qe(this):Xe()).states;return n(ee,{states:r,content:e})};return e}());function Qe(e){return D({states:{registrationFormState:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var et=h.gql(__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"]));var tt=h.gql(__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"]));var nt=h.gql(__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"]));var rt=h.gql(__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"]));function at(e){var t,n,r,a,i,o,s,d,u,c;var f=g();var p=(t=e.programId)!==null&&t!==void 0?t:f;var v=m();var h=w();var b=p?{type:e.leaderboardType,filter:{programId_eq:p}}:{type:e.leaderboardType,filter:{}};if(e.interval){b.filter["interval"]=e.interval}if(h){b["locale"]=h}if(e.maxRows>0){b["limit"]=e.maxRows}var x=y(e.hideNames?tt:et,b,!(v===null||v===void 0?void 0:v.jwt),{batch:false}),k=x.data,_=x.loading,E=x.errors;var C=y(e.hideNames?rt:nt,b,!(v===null||v===void 0?void 0:v.jwt)).data;var T=(n=k===null||k===void 0?void 0:k.userLeaderboard)===null||n===void 0?void 0:n.rows;var S=M(T);var I=S===null||S===void 0?void 0:S.sort((function(e,t){return e.rank-t.rank}));function M(t){return t===null||t===void 0?void 0:t.flatMap((function(t){var n,r;return{textValue:t.textValue,firstName:t.firstName,lastInitial:t.lastInitial,rank:(n=t.rank)===null||n===void 0?void 0:n[e.rankType],rowNumber:(r=t.rank)===null||r===void 0?void 0:r.rowNumber}}))}var R={textValue:(a=(r=C===null||C===void 0?void 0:C.viewer)===null||r===void 0?void 0:r.leaderboardRank)===null||a===void 0?void 0:a.textValue,firstName:(i=C===null||C===void 0?void 0:C.viewer)===null||i===void 0?void 0:i.firstName,lastInitial:(o=C===null||C===void 0?void 0:C.viewer)===null||o===void 0?void 0:o.lastInitial,rank:(d=(s=C===null||C===void 0?void 0:C.viewer)===null||s===void 0?void 0:s.leaderboardRank)===null||d===void 0?void 0:d[e.rankType],rowNumber:(c=(u=C===null||C===void 0?void 0:C.viewer)===null||u===void 0?void 0:u.leaderboardRank)===null||c===void 0?void 0:c.rowNumber};var L=l((function(){var e,t;return!!((t=(e=E===null||E===void 0?void 0:E.response)===null||e===void 0?void 0:e.errors)===null||t===void 0?void 0:t.find((function(e){var t,n;return((n=(t=e===null||e===void 0?void 0:e.extensions)===null||t===void 0?void 0:t.apiError)===null||n===void 0?void 0:n.statusCode)===403})))}),[E]);return{states:{loading:_,isEssentials:L,hasLeaders:(I===null||I===void 0?void 0:I.length)>0,styles:e},data:{leaderboard:I,rankType:e.rankType,viewerRank:R},elements:{empty:e.empty}}}var it=e("sqm_leaderboard",function(){function e(e){t(this,e);this.width="100%";this.hideViewer=false;this.viewingUserText="You";this.hideNames=false;this.anonymousUser="Anonymous User";this.maxRows=10;this.ignored=true;a(this);te(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e={empty:n(ot,null),usersheading:this.usersheading,statsheading:this.statsheading,rankheading:this.rankheading,rankType:this.rankType,leaderboardType:this.leaderboardType,maxRows:this.maxRows,programId:this.programId,anonymousUser:this.anonymousUser,interval:this.interval,hideViewer:this.hideViewer,viewingUserText:this.viewingUserText,hideNames:this.hideNames,showRank:this.showRank,rankSuffix:this.rankSuffix,width:this.width};var t=__assign(__assign({},e),{demoData:this.demoData});var r=p()?st(t):at(e);return n(ne,Object.assign({},r))};return e}());function ot(){return n("slot",{name:"empty"},n("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png","empty-state-header":"View your rank in the leaderboard","empty-state-text":"Be the first to refer a friend and reach the top of the leaderboard"}))}function st(e){var t,r;var a=((r=(t=e.demoData)===null||t===void 0?void 0:t.data)===null||r===void 0?void 0:r.leaderboard)||[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{textValue:"46",rank:5,rowNumber:5}];return D({states:{loading:false,hasLeaders:true,isEssentials:false,styles:{usersheading:e.usersheading?e.usersheading:"Top referrers",statsheading:e.statsheading?e.statsheading:"New customers",rankheading:e.rankheading?e.rankheading:"Rank",anonymousUser:e.anonymousUser?e.anonymousUser:"Anonymous User",showRank:e.showRank,hideViewer:e.hideViewer,viewingUserText:e.viewingUserText,hideNames:e.hideNames,rankSuffix:e.rankSuffix,width:e.width}},data:{rankType:"rowNumber",leaderboard:a},elements:{empty:n(ot,null)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var lt={Container:{display:"contents"},Link:{textDecoration:"none",color:"inherit"}};var dt="\n:host{\n display: inline; \n}\n";var ut=q(lt);var ct=ut.toString();function ft(e){var t=e.onClick,r=e.buttonText;return n("span",{class:ut.classes.Container,part:"sqm-base"},n("style",{type:"text/css"},ct,dt),n("sl-button",{onClick:t,type:"primary",exportparts:"base: primarybutton-base"},n("a",{class:ut.classes.Link,part:"sqm-link"},r)))}var pt=e("sqm_link_button",function(){function e(e){t(this,e);this.openInNewTab=false;this.buttonText="Click here"}e.prototype.render=function(){var e=this;var t=function(){var t=e.link;var n=e.openInNewTab?"_blank":"_parent";window.open(t,n)};return n(ft,Object.assign({},__assign(__assign({},L(this)),{onClick:t})))};return e}());function vt(e){var t=s(j);return{states:{registrationFormState:t,content:{lastNameLabel:e.lastNameLabel,firstNameLabel:e.firstNameLabel}}}}var ht=e("sqm_name_fields",function(){function e(e){t(this,e);this.ignored=true;this.firstNameLabel="First Name";this.lastNameLabel="Last Name";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=(p()?mt(this):vt(this)).states;return n(re,{states:e})};return e}());function mt(e){return D({states:{validationErrors:[],content:{firstNameLabel:e.firstNameLabel,lastNameLabel:e.lastNameLabel}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function gt(e){var t=e.states;var r=t.styles;return t.includeDropdown?n("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},n("sl-button",{slot:"trigger",caret:true,onClick:e.callbacks.rerender,exportparts:"base: dropdownbutton-base"},r.menuLabel),n("sl-menu",{ref:function(t){if(e.ref.current===undefined){e.ref.current=t;e.callbacks.rerender()}}},n("slot",null))):""}function bt(e){_.push(e.detail.item.value)}function yt(e){var t=d();var n=k(),r=n[1];var a=m();i((function(){var e;(e=t.current)===null||e===void 0?void 0:e.addEventListener("sl-select",(function(e){return bt(e)}))}),[t.current]);return{states:{includeDropdown:((a===null||a===void 0?void 0:a.id)||(a===null||a===void 0?void 0:a.accountId)||(a===null||a===void 0?void 0:a.jwt))!==undefined,styles:{menuLabel:e.menuLabel}},callbacks:{rerender:r},ref:t}}var xt=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";var wt=e("sqm_navigation_menu",function(){function e(e){t(this,e);this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?kt(L(this)):yt(L(this));return n(r,{slot:"sqm-navigation-menu"},n(gt,Object.assign({},e)))};return e}());function kt(e){return D({states:{includeDropdown:true,styles:__assign(__assign({},e),{menuLabel:"Menu"})},callbacks:{rerender:function(){}},ref:{current:undefined}},e.demoData||{},{arrayMerge:function(e,t){return t}})}wt.style=xt;function _t(e){var t=this;var n,r,a,i,s,l,d;var u=E(),c=u[0],f=u[1],p=f.loading,v=f.errors,h=f.data;var g=o(false),b=g[0],y=g[1];var x=o(""),w=x[0],k=x[1];var _=o(false),C=_[0],T=_[1];var S=m();var I=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,a,i,o;return __generator(this,(function(s){switch(s.label){case 0:T(false);a=(t=n.detail)===null||t===void 0?void 0:t.formData;a===null||a===void 0?void 0:a.forEach((function(e,t){R.set(a,t,e)}));if(!(S===null||S===void 0?void 0:S.jwt)){k(e.invalidSessionErrorText);return[2]}if(a.password!==a.confirmPassword){k(e.nonMatchingPasswordErrorText);return[2]}k("");i={password:a.password};return[4,c(i)];case 1:o=s.sent();if(!(o instanceof Error)&&((r=o.changeManagedIdentityPassword)===null||r===void 0?void 0:r.success)){T(true)}return[2]}}))}))};return{states:{open:b,loading:p,success:C,error:w||((i=(a=(r=(n=v===null||v===void 0?void 0:v.response)===null||n===void 0?void 0:n.errors)===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.extensions)===null||i===void 0?void 0:i.message)||((d=(l=(s=v===null||v===void 0?void 0:v.response)===null||s===void 0?void 0:s.errors)===null||l===void 0?void 0:l[0])===null||d===void 0?void 0:d.message),content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText}},data:{},callbacks:{setOpen:y,submit:I}}}var Et=e("sqm_portal_change_password",function(){function e(e){t(this,e);this.ignored=true;this.modalChangePasswordHeader="Change Password";this.cancelText="Cancel";this.changePasswordButtonText="Change Password";this.passwordFieldLabel="New Password";this.confirmPasswordFieldLabel="Confirm New Password";this.successMessage="Your password has been updated.";this.portalChangePasswordHeader="Password";this.portalChangePasswordButtonText="Change your password...";this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.nonMatchingPasswordErrorText="contain at least 1 lowercase character";this.invalidSessionErrorText="Please log in again to change your password.";this.hasErrorText="contain at least 1 number or symbol";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?Ct(this):_t(this),t=e.states,r=e.callbacks;return n(ae,{states:t,callbacks:r})};return e}());function Ct(e){var t=o(false),n=t[0],r=t[1];return D({states:{open:n,error:"",content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText}},callbacks:{setOpen:function(e){return r(e)},submit:function(e){return console.log("Submit",e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Tt=e("sqm_portal_footer",function(){function e(e){t(this,e);this.ignored=true;this.hideSupportText=false;this.supportEmail="support@example.com";this.supportText="For program support, contact {email}";this.hidePoweredBy=false;this.poweredByLink="https://impact.com/advocate/";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(ie,Object.assign({},L(this)))};Object.defineProperty(e,"assetsDirs",{get:function(){return["../../assets"]},enumerable:false,configurable:true});return e}());function St(e,t){var n=k(),r=n[1];return{data:{footer:e,header:t},callbacks:{rerender:r}}}var It=e("sqm_portal_frame",function(){function e(e){t(this,e);this.ignored=true;this.notFullScreen=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=n("slot",{name:"footer"});var t=n("slot",{name:"header"});var r=p()?Mt(e,t,this):St(e,t);return n(oe,Object.assign({},r),n("slot",null))};return e}());function Mt(e,t,r){return D({notFullScreen:true,data:{footer:e?e:n("span",null,"example@example.com"),header:t?t:n("div",{style:{display:"flex",flexDirection:"column"}},n("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),n("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:function(){}}},r.demoData||{},{arrayMerge:function(e,t){return t}})}function Rt(e){var t=this;var n,r,a,i,s,l,d;var u=C(),c=u[0],f=u[1],p=f.loading,v=f.errors,h=f.data;var m=o(""),g=m[0],b=m[1];var y=new URLSearchParams(_.location.search);var x=y.get("nextPage");var w=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,a,i,o,s;return __generator(this,(function(l){switch(l.label){case 0:b("");a=n.detail.formData;a===null||a===void 0?void 0:a.forEach((function(e,t){R.set(a,t,e)}));i={email:a.email,password:a.password};return[4,c(i)];case 1:o=l.sent();if(o instanceof Error){if((o===null||o===void 0?void 0:o.message)||((t=o===null||o===void 0?void 0:o["response"])===null||t===void 0?void 0:t["error"]))b(e.networkErrorMessage);return[2]}if((r=o.authenticateManagedIdentityWithEmailAndPassword)===null||r===void 0?void 0:r.token){y.delete("nextPage");s=N(x||e.nextPage);_.push(s.href)}return[2]}}))}))};var k=((i=(a=(r=(n=v===null||v===void 0?void 0:v.response)===null||n===void 0?void 0:n.errors)===null||r===void 0?void 0:r[0])===null||a===void 0?void 0:a.extensions)===null||i===void 0?void 0:i.message)||((d=(l=(s=v===null||v===void 0?void 0:v.response)===null||s===void 0?void 0:s.errors)===null||l===void 0?void 0:l[0])===null||d===void 0?void 0:d.message)||g;return{states:{loading:p,error:k,registerPath:e.registerPath,forgotPasswordPath:e.forgotPasswordPath},callbacks:{submit:w}}}var Lt=e("sqm_portal_login",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Sign In";this.forgotPasswordPath="/forgotPassword";this.forgotPasswordLabel="Forgot Password?";this.registerLabel="Register";this.registerPath="/register";this.pageLabel="Sign in to your account";this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?Pt(this):Rt(this),t=e.states,r=e.callbacks;var a={forgotPasswordButton:n("slot",{name:"forgotPassword"},n("a",{onClick:function(){return _.push(t.forgotPasswordPath)}},this.forgotPasswordLabel)),secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:t.loading,onClick:function(){return _.push(t.registerPath)}},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return n(se,{states:t,callbacks:r,content:a})};return e}());function Pt(e){var t=this;return D({states:{error:"",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function Nt(e){var t=this;var n,r,a,o,s,l,u,c,f;var p=d(null);var v=F({}),h=v.registrationFormState,m=v.setRegistrationFormState;var g=T(),b=g[0],y=g[1],x=y.loading,w=y.errors,k=y.data;i((function(){if(!p.current)return;var e=p.current;e.addEventListener("sl-input",C);return function(){e.removeEventListener("sl-input",C)}}),[p.current]);var E=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,a,i,o,s,l,d,u,c;return __generator(this,(function(f){switch(f.label){case 0:r=n.target.getFormControls();a={};i={};r===null||r===void 0?void 0:r.forEach((function(t){if(!t.name)return;var n=t.name;var r=t.value;R.set(a,n,r);if(t.required&&!r){R.set(i,n,e.requiredFieldErrorMessage)}if(typeof t.validationError==="function"){var o=t.validationError;var s=o({control:t,key:n,value:r});if(s)R.set(i,n,s)}}));if((e.confirmPassword||a.confirmPassword)&&a.password!==a.confirmPassword){i=__assign(__assign({},i),{confirmPassword:e.passwordMismatchErrorMessage})}if(Object.keys(i).length){m({loading:false,error:"",validationErrors:i});return[2]}m({loading:true,error:"",validationErrors:{}});o=a.email,s=a.password;delete a.email;delete a.password;delete a.confirmPassword;a=__assign({},a);l=e.redirectPath;d={email:o,password:s,formData:a,redirectPath:l};f.label=1;case 1:f.trys.push([1,3,,4]);return[4,b(d)];case 2:u=f.sent();if(u instanceof Error){throw u}m({loading:false,error:"",validationErrors:{}});if((t=u.registerManagedIdentityWithEmailAndPassword)===null||t===void 0?void 0:t.token){_.push(e.nextPage)}return[3,4];case 3:c=f.sent();m({loading:false,error:e.networkErrorMessage,validationErrors:{}});return[3,4];case 4:return[2]}}))}))};var C=S((function(e){var t,n;var r=(n=(t=e.target)===null||t===void 0?void 0:t.type)===null||n===void 0?void 0:n.toLowerCase();if(r!=="tel")return;var a=new B("US");e.target.value=a.input(e.target.value)}),[]);var I="";if((n=w===null||w===void 0?void 0:w.response)===null||n===void 0?void 0:n["error"]){I=e.networkErrorMessage}else if((w===null||w===void 0?void 0:w.message)&&!((r=w===null||w===void 0?void 0:w.response)===null||r===void 0?void 0:r.errors.length)){I=e.networkErrorMessage}else{I=((l=(s=(o=(a=w===null||w===void 0?void 0:w.response)===null||a===void 0?void 0:a.errors)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.extensions)===null||l===void 0?void 0:l.message)||((f=(c=(u=w===null||w===void 0?void 0:w.response)===null||u===void 0?void 0:u.errors)===null||c===void 0?void 0:c[0])===null||f===void 0?void 0:f.message)||(h===null||h===void 0?void 0:h.error)}return{states:{loading:x,error:I,registrationFormState:h,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs,loginPath:e.loginPath,disablePasswordValidation:e.disablePasswordValidation},callbacks:{submit:E,inputFunction:C},refs:{formRef:p}}}var qt=e("sqm_portal_register",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;this.pageLabel="Register";this.loginPath="/login";this.requiredFieldErrorMessage="Cannot be empty";this.networkErrorMessage="Network request failed.";this.passwordMismatchErrorMessage="Passwords do not match.";this.invalidEmailErrorMessage="Must be a valid email address";this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?At(this):Nt(this),t=e.states,r=e.callbacks,a=e.refs;var i={formData:n("slot",{name:"formData"}),secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:t.loading,onClick:function(){return _.push(t.loginPath)}},this.loginLabel)),terms:n("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};return n(le,{states:t,callbacks:r,content:i,refs:a})};return e}());function At(e){var t=this;return D({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:e.loginPath,disablePasswordValidation:e.disablePasswordValidation},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function Dt(e,t){var r={Container:{color:e.textColor||"var(--sl-color-neutral-900)",background:e.backgroundColor||""},Header:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-bold)",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-large)",textAlign:"center"},Grid:{display:"flex",flexDirection:"row",gap:"var(--sl-spacing-large)","@media (max-width: 499px)":{flexDirection:"column"}}};var a=q(r);var i=a.toString();var o="\n ::slotted(*){\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n ::slotted(*){\n display: block;\n }\n }";return n("div",{class:a.classes.Container,part:"sqm-base"},n("style",{type:"text/css"},i,o),n("div",{class:a.classes.Header},n("div",{class:a.classes.Header,part:"sqm-header"},e.header)),n("div",{class:a.classes.Grid,part:"sqm-grid-container"},t))}var Vt=e("sqm_program_explainer",function(){function e(e){t(this,e);this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(Dt,Object.assign({},L(this)),n("slot",null))};return e}());function $t(e){var t={Container:{display:"flex",flexDirection:"column",width:"100%",padding:"var(--sl-spacing-x-large)",lineHeight:"var(--sl-line-height-dense)",color:e.textColor||"var(--sl-color-neutral-900)",background:e.backgroundColor||"var(--sl-color-primary-50)","@media (max-width: 499px)":{flexDirection:"row",width:"auto",paddingBottom:"var(--sl-spacing-large)"}},Text:{"@media (max-width: 499px)":{marginLeft:"var(--sl-spacing-large)"}},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-bold)",marginTop:"var(--sl-spacing-x-large)","@media (max-width: 499px)":{margin:"0"}},Description:{fontSize:"var(--sl-font-size-medium)",marginTop:"var(--sl-spacing-small)","@media (max-width: 499px)":{marginTop:"var(--sl-spacing-x-small)"}},Media:{width:"64px",height:"64px",borderRadius:"100%",objectFit:"cover",userSelect:"none",background:"#FFF",color:"var(--sl-color-primary-300)",fontSize:"26px",textAlign:"center",lineHeight:"72px"}};var r=q(t);var a=r.toString();return n("div",{class:r.classes.Container,part:"sqm-base"},n("style",{type:"text/css"},a),n("div",null,e.imageUrl?n("img",{class:r.classes.Media,src:e.imageUrl,part:"sqm-media"}):n("div",{class:r.classes.Media,part:"sqm-media"},n("sl-icon",{name:e.icon}))),n("div",{class:r.classes.Text},n("div",{class:r.classes.Header,part:"sqm-header"},e.header),n("div",{class:r.classes.Description,part:"sqm-description"},e.description)))}var Ut=e("sqm_program_explainer_step",function(){function e(e){t(this,e);a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n($t,Object.assign({},L(this)))};return e}());var jt=u("sq:useProgramMenu");var Ft="sq:update-program-id";function Ot(e){var t=g();var n=v();jt({programId:t,props:e});var r=d();var a=k(),o=a[1];i((function(){var e;(e=r.current)===null||e===void 0?void 0:e.addEventListener("sl-select",(function(e){var t=e.detail.item.value;n.dispatchEvent(new CustomEvent(Ft,{detail:t,bubbles:true,composed:true}))}))}),[r.current]);return{data:{programId:t},callbacks:{rerender:o},ref:r}}var Bt=e("sqm_program_menu",function(){function e(e){t(this,e);this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=Ot(L(this)),t=e.data,a=e.ref;return n(r,{style:{display:"contents"}},n("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:function(e){return a.current=e}},n("slot",null)))};return e}());var Ht={Container:{borderRadius:"var(--sl-border-radius-large)",color:"var(--sl-color-neutral-900)",background:"var(--sl-color-neutral-0)",display:"flex",flexDirection:"column",rowGap:"var(--sl-spacing-large)"},EndContainer:{display:"flex",flexDirection:"column",alignItems:"center"},ColumnContainer:{"& p":{margin:"0"},display:"grid",gridAutoColumns:"minmax(0, 1fr)",gridAutoFlow:"column",gap:"calc(2 * var(--sl-spacing-medium))","@media (max-width: 499px)":{gridAutoFlow:"unset",gridAutoColumns:"unset",gridTemplateColumns:"1fr",border:"none"}}};var zt=q(Ht);var Wt=zt.toString();var Gt="\n :host{\n display: block; \n }\n ";function Kt(e){return n("div",{part:"sqm-base",class:zt.classes.Container,style:{border:""+(e.hideBorder?"none":"1px solid var(--sl-color-neutral-300)"),"padding-top":"var(--sl-spacing-"+e.paddingTop+")","padding-right":"var(--sl-spacing-"+e.paddingRight+")","padding-bottom":"var(--sl-spacing-"+e.paddingBottom+")","padding-left":"var(--sl-spacing-"+e.paddingLeft+")",backgroundColor:e.backgroundColor,maxWidth:""+(e.limitWidth?"600px":"none"),margin:""+(e.limitWidth?"auto":"none")}},n("style",{type:"text/css"},Wt,Gt),e.hasHeader&&n("div",{class:zt.classes.EndContainer},e.slots.header),n("div",{part:"sqm-column-container",class:zt.classes.ColumnContainer,style:{alignItems:e.verticalAlignment}},e.slots.left,e.slots.right),e.hasFooter&&n("div",{class:zt.classes.EndContainer},e.slots.footer))}var Yt=e("sqm_referral_card",function(){function e(e){t(this,e);this.ignored=true;this.verticalAlignment="start";this.hideBorder=false;this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";this.backgroundColor="#ffffff";this.limitWidth=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e={left:n("slot",{name:"left"}),right:n("slot",{name:"right"}),header:n("slot",{name:"header"}),footer:n("slot",{name:"footer"})};var t=$();var r=t.findIndex((function(e){return e.slot==="header"}))>-1;var a=t.findIndex((function(e){return e.slot==="footer"}))>-1;return n(Kt,Object.assign({},L(this),{slots:e,hasHeader:r,hasFooter:a}),n("slot",null))};return e}());var Zt=h.gql(__makeTemplateObject(["\n query getUser($programId: ID) {\n viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query getUser($programId: ID) {\n viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"]));function Xt(e){var t;var n=g();var r=m();var a=y(Zt,{programId:n},!(r===null||r===void 0?void 0:r.jwt)||!n).data;return{states:{content:e},data:{shareCode:(t=a===null||a===void 0?void 0:a.viewer)===null||t===void 0?void 0:t.referralCode}}}var Jt=e("sqm_referral_iframe",function(){function e(e){t(this,e);this.ignored=true;this.iframeHeight="100%";this.iframeWidth="100%";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=P([{attribute:"iframe-src",value:this.iframeSrc}]);if(e){return n(Ee,{missingProps:e,heading:"An error occured while loading this page",subheading:"A technical problem prevented this iframe from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"})}var t=p()?Qt(L(this)):Xt(L(this)),a=t.states,i=t.data;return n(r,{style:{display:"contents"}},n(de,{data:i,states:a}))};return e}());function Qt(e){return D({states:{content:__assign({iframeSrc:"https://example.com"},e)},data:{shareCode:"SHARECODE123"}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var en={};(function e(t,n,r,a){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function o(){}function s(e){var r=n.exports.Promise;var a=r!==void 0?r:t.Promise;if(typeof a==="function"){return new a(e)}e(o,o);return null}var l=function(){var e=Math.floor(1e3/60);var t,n;var r={};var a=0;if(typeof requestAnimationFrame==="function"&&typeof cancelAnimationFrame==="function"){t=function(t){var n=Math.random();r[n]=requestAnimationFrame((function i(o){if(a===o||a+e-1<o){a=o;delete r[n];t()}else{r[n]=requestAnimationFrame(i)}}));return n};n=function(e){if(r[e]){cancelAnimationFrame(r[e])}}}else{t=function(t){return setTimeout(t,e)};n=function(e){return clearTimeout(e)}}return{frame:t,cancel:n}}();var d=function(){var t;var n;var a={};function o(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function t(n){var r=n.transferControlToOffscreen();e.postMessage({canvas:r},[r])};e.fire=function r(i,o,l){if(n){t(i,null);return n}var d=Math.random().toString(36).slice(2);n=s((function(r){function o(t){if(t.data.callback!==d){return}delete a[d];e.removeEventListener("message",o);n=null;l();r()}e.addEventListener("message",o);t(i,d);a[d]=o.bind(null,{data:{callback:d}})}));return n};e.reset=function t(){e.postMessage({reset:true});for(var n in a){a[n]();delete a[n]}}}return function(){if(t){return t}if(!r&&i){var n=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([n])))}catch(e){typeof console!==undefined&&typeof console.warn==="function"?console.warn("🎊 Could not load worker",e):null;return null}o(t)}return t}}();var u={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:false,scalar:1};function c(e,t){return t?t(e):e}function f(e){return!(e===null||e===undefined)}function p(e,t,n){return c(e&&f(e[t])?e[t]:u[t],n)}function v(e){return e<0?0:Math.floor(e)}function h(e,t){return Math.floor(Math.random()*(t-e))+e}function m(e){return parseInt(e,16)}function g(e){return e.map(b)}function b(e){var t=String(e).replace(/[^0-9a-f]/gi,"");if(t.length<6){t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]}return{r:m(t.substring(0,2)),g:m(t.substring(2,4)),b:m(t.substring(4,6))}}function y(e){var t=p(e,"origin",Object);t.x=p(t,"x",Number);t.y=p(t,"y",Number);return t}function x(e){e.width=document.documentElement.clientWidth;e.height=document.documentElement.clientHeight}function w(e){var t=e.getBoundingClientRect();e.width=t.width;e.height=t.height}function k(e){var t=document.createElement("canvas");t.style.position="fixed";t.style.top="0px";t.style.left="0px";t.style.pointerEvents="none";t.style.zIndex=e;return t}function _(e,t,n,r,a,i,o,s,l){e.save();e.translate(t,n);e.rotate(i);e.scale(r,a);e.arc(0,0,1,o,s,l);e.restore()}function E(e){var t=e.angle*(Math.PI/180);var n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:Math.random()*10,velocity:e.startVelocity*.5+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:Math.random()*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+5,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:e.gravity*3,ovalScalar:.6,scalar:e.scalar}}function C(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift;t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity;t.wobble+=.1;t.velocity*=t.decay;t.tiltAngle+=.1;t.tiltSin=Math.sin(t.tiltAngle);t.tiltCos=Math.cos(t.tiltAngle);t.random=Math.random()+5;t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble);t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks;var r=t.x+t.random*t.tiltCos;var a=t.y+t.random*t.tiltSin;var i=t.wobbleX+t.random*t.tiltCos;var o=t.wobbleY+t.random*t.tiltSin;e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")";e.beginPath();if(t.shape==="circle"){e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):_(e,t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI)}else{e.moveTo(Math.floor(t.x),Math.floor(t.y));e.lineTo(Math.floor(t.wobbleX),Math.floor(a));e.lineTo(Math.floor(i),Math.floor(o));e.lineTo(Math.floor(r),Math.floor(t.wobbleY))}e.closePath();e.fill();return t.tick<t.totalTicks}function T(e,t,n,i,o){var d=t.slice();var u=e.getContext("2d");var c;var f;var p=s((function(t){function s(){c=f=null;u.clearRect(0,0,i.width,i.height);o();t()}function p(){if(r&&!(i.width===a.width&&i.height===a.height)){i.width=e.width=a.width;i.height=e.height=a.height}if(!i.width&&!i.height){n(e);i.width=e.width;i.height=e.height}u.clearRect(0,0,i.width,i.height);d=d.filter((function(e){return C(u,e)}));if(d.length){c=l.frame(p)}else{s()}}c=l.frame(p);f=s}));return{addFettis:function(e){d=d.concat(e);return p},canvas:e,promise:p,reset:function(){if(c){l.cancel(c)}if(f){f()}}}}function S(e,n){var r=!e;var a=!!p(n||{},"resize");var o=p(n,"disableForReducedMotion",Boolean);var l=i&&!!p(n||{},"useWorker");var u=l?d():null;var c=r?x:w;var f=e&&u?!!e.__confetti_initialized:false;var m=typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion)").matches;var b;function _(t,n,r){var a=p(t,"particleCount",v);var i=p(t,"angle",Number);var o=p(t,"spread",Number);var s=p(t,"startVelocity",Number);var l=p(t,"decay",Number);var d=p(t,"gravity",Number);var u=p(t,"drift",Number);var f=p(t,"colors",g);var m=p(t,"ticks",Number);var x=p(t,"shapes");var w=p(t,"scalar");var k=y(t);var _=a;var C=[];var S=e.width*k.x;var I=e.height*k.y;while(_--){C.push(E({x:S,y:I,angle:i,spread:o,startVelocity:s,color:f[_%f.length],shape:x[h(0,x.length)],ticks:m,decay:l,gravity:d,drift:u,scalar:w}))}if(b){return b.addFettis(C)}b=T(e,C,c,n,r);return b.promise}function C(n){var i=o||p(n,"disableForReducedMotion",Boolean);var l=p(n,"zIndex",Number);if(i&&m){return s((function(e){e()}))}if(r&&b){e=b.canvas}else if(r&&!e){e=k(l);document.body.appendChild(e)}if(a&&!f){c(e)}var d={width:e.width,height:e.height};if(u&&!f){u.init(e)}f=true;if(u){e.__confetti_initialized=true}function v(){if(u){var t={getBoundingClientRect:function(){if(!r){return e.getBoundingClientRect()}}};c(t);u.postMessage({resize:{width:t.width,height:t.height}});return}d.width=d.height=null}function h(){b=null;if(a){t.removeEventListener("resize",v)}if(r&&e){document.body.removeChild(e);e=null;f=false}}if(a){t.addEventListener("resize",v,false)}if(u){return u.fire(n,d,h)}return _(n,d,h)}C.reset=function(){if(u){u.reset()}if(b){b.reset()}};return C}n.exports=S(null,{useWorker:true,resize:true});n.exports.create=S})(function(){if(typeof window!=="undefined"){return window}if(typeof self!=="undefined"){return self}return this||{}}(),en,false);var tn=en.exports;var nn=h.gql(__makeTemplateObject(["\n query getExchangeList {\n viewer {\n ... on User {\n visibleRewardExchangeItems(limit: 20, offset: 0) {\n data {\n key\n name\n description\n imageUrl\n available\n unavailableReasonCode\n ruleType\n sourceUnit\n sourceValue\n prettySourceValue\n sourceMinValue\n prettySourceMinValue\n sourceMaxValue\n prettySourceMaxValue\n destinationMinValue\n prettyDestinationMinValue\n destinationMaxValue\n prettyDestinationMaxValue\n globalRewardKey\n destinationUnit\n steps {\n sourceValue\n prettySourceValue\n destinationValue\n prettyDestinationValue\n available\n globalRewardKey\n unavailableReasonCode\n rewardInput\n }\n }\n totalCount\n }\n }\n }\n }\n"],["\n query getExchangeList {\n viewer {\n ... on User {\n visibleRewardExchangeItems(limit: 20, offset: 0) {\n data {\n key\n name\n description\n imageUrl\n available\n unavailableReasonCode\n ruleType\n sourceUnit\n sourceValue\n prettySourceValue\n sourceMinValue\n prettySourceMinValue\n sourceMaxValue\n prettySourceMaxValue\n destinationMinValue\n prettyDestinationMinValue\n destinationMaxValue\n prettyDestinationMaxValue\n globalRewardKey\n destinationUnit\n steps {\n sourceValue\n prettySourceValue\n destinationValue\n prettyDestinationValue\n available\n globalRewardKey\n unavailableReasonCode\n rewardInput\n }\n }\n totalCount\n }\n }\n }\n }\n"]));var rn=h.gql(__makeTemplateObject(["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n fuelTankCode\n }\n }\n }\n"],["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n fuelTankCode\n }\n }\n }\n"]));function an(e){var t,n,r,a,s;var l=c((function(e,t){return __assign(__assign({},e),t)}),{selectedItem:undefined,selectedStep:undefined,redeemStage:"chooseReward",amount:0,exchangeError:false}),u=l[0],f=l[1];var p=o(false),v=p[0],h=p[1];var g=u.selectedItem,x=u.selectedStep,w=u.redeemStage,k=u.amount,_=u.exchangeError;var E=m();var C=b(rn),T=C[0],S=C[1],M=S.data,R=S.loading,L=S.errors;var P=y(nn,{},!(E===null||E===void 0?void 0:E.jwt)),N=P.data,q=P.loading,A=P.refetch,D=P.errors;i((function(){var e,t;if((t=(e=M===null||M===void 0?void 0:M.exchangeReward)===null||e===void 0?void 0:e.reward)===null||t===void 0?void 0:t.id){f({redeemStage:"success",exchangeError:false})}if(!!L){f({exchangeError:true})}}),[M,L]);var V=d();i((function(){if(!V.current)return;var e=V.current;e.confetti=e.confetti||tn.create(e,{resize:true});e.confetti()}),[V.current]);var $=I().refresh;function U(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!g)return[2];e={accountId:E===null||E===void 0?void 0:E.accountId,userId:E.id};switch(g.ruleType){case"FIXED_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:g.sourceValue,unit:g.sourceUnit},globalRewardKey:g.globalRewardKey});break;case"STEPPED_FIXED_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:x.sourceValue,unit:g.sourceUnit},globalRewardKey:x.globalRewardKey});break;case"VARIABLE_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:k,unit:g.sourceUnit},globalRewardKey:g.globalRewardKey,rewardInput:x.rewardInput});break;case"VARIABLE_CREDIT_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:k,unit:g.sourceUnit},rewardInput:{type:"CREDIT",unit:g.destinationUnit,assignedCredit:x.destinationValue}});break;default:e=__assign(__assign({},e),x.rewardInput)}return[4,T({exchangeRewardInput:e})];case 1:t.sent();$();return[2]}}))}))}var j=function(e){e&&A();f({amount:0,selectedStep:undefined,selectedItem:undefined,exchangeError:false,redeemStage:"chooseReward"})};function F(e){f({redeemStage:e})}function O(){var e,t;navigator.clipboard.writeText((t=(e=M===null||M===void 0?void 0:M.exchangeReward)===null||e===void 0?void 0:e.reward)===null||t===void 0?void 0:t.fuelTankCode);h(true);setTimeout((function(){return h(false)}),1e3)}return{states:{content:{text:e},selectedItem:g,redeemStage:w,amount:k,selectedStep:x,exchangeError:_,queryError:!!D,loading:q||R,open:v,noExchangeOptions:((t=N===null||N===void 0?void 0:N.viewer)===null||t===void 0?void 0:t.visibleRewardExchangeItems.totalCount)===0},data:{exchangeList:(r=(n=N===null||N===void 0?void 0:N.viewer)===null||n===void 0?void 0:n.visibleRewardExchangeItems)===null||r===void 0?void 0:r.data,fuelTankCode:(s=(a=M===null||M===void 0?void 0:M.exchangeReward)===null||a===void 0?void 0:a.reward)===null||s===void 0?void 0:s.fuelTankCode},callbacks:{exchangeReward:U,setExchangeState:f,setStage:F,resetState:j,copyFuelTankCode:O},refs:{canvasRef:V}}}var on=e("sqm_reward_exchange_list",function(){function e(e){t(this,e);this.ignored=true;this.notAvailableError="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";this.chooseRewardTitle="Rewards";this.chooseAmountTitle="Select";this.confirmationTitle="Confirm";this.rewardTitle="Choose a reward";this.cancelText="Cancel";this.backText="Back";this.continueText="Continue";this.continueToConfirmationText="Continue to confirmation";this.redeemText="Redeem";this.redeemTitle="Confirm and redeem";this.redemptionSuccessText="Redeemed {sourceValue} for {destinationValue}";this.sourceAmountMessage="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";this.tooltipText="Copied";this.doneText="Done";this.selectText="Select amount to receive";this.queryError="Unable to load reward exchange list. Please try again";this.redemptionError="An error occured trying to redeem this reward. Please try again";this.notEnoughError="Not enough {sourceUnit} to redeem for this reward";this.rewardRedeemedText="Reward redeemed";this.promoCode="Promo Code";this.skeletonCardNum=8;this.rewardNameTitle="Reward";this.rewardAmountTitle="Reward Amount";this.costTitle="Cost to Redeem";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign(__assign({},L(this)),{empty:n(sn,null)});var t=p()?ln(e):an(e),a=t.states,i=t.data,o=t.callbacks,s=t.refs;return n(r,{style:{display:"contents"}},n(ce,{states:a,data:i,callbacks:o,refs:s}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());function sn(){return n("slot",{name:"empty"},n("sqm-empty",{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png",emptyStateHeader:"Redeem rewards",emptyStateText:"Use your points to redeem rewards once they become available"}))}function ln(e){return D({states:{content:{text:e},redeemStage:"chooseReward",amount:0,selectedStep:undefined,selectedItem:undefined,open:false,exchangeError:false,queryError:false,loading:false,noExchangeOptions:false,empty:sn()},data:{shareCode:"SHARECODE123",exchangeList:ue.data.exchangeList},callbacks:{exchangeReward:function(){},setExchangeState:function(e){},setStage:function(e){},resetState:function(){},copyFuelTankCode:function(){}},refs:{canvasRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var dn=u("sq:useRouter");function un(e,t){if(!e)return;var n=U(e);return n.exec(t)}function cn(){var e=M();var t=v();var n=o(undefined),r=n[0],a=n[1];var s=o(undefined),l=s[0],d=s[1];var u=e.pathname;i((function(){var e=t.querySelectorAll("sqm-route");var n=Array.from(e);n.forEach((function(e){var t=document.createElement("template");t.setAttribute("path",e.path);t.innerHTML=e.innerHTML;e.parentNode.appendChild(t);e.parentNode.removeChild(e)}))}),[]);i((function(){var e,t;if(!l||!r){dn("DOM not ready for navigation rendering on:",u);return}var n=r.querySelectorAll("template");var a=Array.from(n);var i=a.find((function(e){var t,n,r;var a=(n=(t=e.attributes)===null||t===void 0?void 0:t.path)===null||n===void 0?void 0:n.nodeValue;if((r=un(a,u))===null||r===void 0?void 0:r.length)return e}));var o=(t=(e=i===null||i===void 0?void 0:i.attributes)===null||e===void 0?void 0:e.path)===null||t===void 0?void 0:t.nodeValue;dn({containerDatasetPage:l.dataset.page,templatePath:o,page:u});if(!i){dn("No matching page found for ",u,", so render nothing");l.innerHTML="";l.dataset.page=u;return}dn("Page updated to ",u,i);if(!!un(o,l.dataset.page)){dn("don't rerender")}else if(i){l.innerHTML=i.innerHTML;l.dataset.page=u}}),[r,l,u]);return{callbacks:{setSlot:a,setContainer:d}}}var fn="sqm-router{display:contents}";var pn=e("sqm_router",function(){function e(e){t(this,e);this.ignored=true;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=cn().callbacks;return n(r,null,n("div",{ref:e.setSlot,style:{display:"none"}},n("slot",null)),n("div",{style:{display:"contents"},ref:e.setContainer}))};return e}());pn.style=fn;var vn="sq:reveal";function hn(e){var t=e.scrollTagName,n=e.scrollId;function r(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(a){switch(a.label){case 0:r=document===null||document===void 0?void 0:document.querySelector(t||"#"+n);r.dispatchEvent(new CustomEvent(vn,{detail:t||"#"+n,bubbles:true,composed:true}));return[4,new Promise((function(e){return setTimeout(e,500)}))];case 1:a.sent();r.scrollIntoView({behavior:e.scrollAnimation});return[2]}}))}))}return{callbacks:{scroll:r}}}var mn=e("sqm_scroll",function(){function e(e){t(this,e);this.ignored=true;this.buttonType="default";this.scrollAnimation="smooth";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=hn(this).callbacks;var r=(e=this.buttonType)!==null&&e!==void 0?e:"primary";var a={Button:{"& .outline":{"&::part(base)":{color:"var(--sl-color-"+r+"-500)",borderColor:"var(--sl-color-"+r+"-500)",backgroundColor:"transparent","&:hover":{color:"var(--sl-color-primary-text)",backgroundColor:"var(--sl-color-"+r+"-500)"}}},"& .neutral":{"&::part(base)":{color:"var(--sl-color-primary-text)",background:"var(--sl-color-neutral-500)","&:hover":{opacity:"0.8"}}},"& .mobile":{"@media (max-width: 499px)":{width:"100%"}}}};var i=q(a);var o=i.toString();var s="\n\t\t:host{\n\t\t\tdisplay: contents;\n\t\t}\n\t\t"+(this.mobile&&"\n\t\t@media only screen and (max-width: 499px) {\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t ")+"\n\t";var l="";if(this.outline&&this.buttonType!="default")l+="outline ";if(this.buttonType==="neutral")l+="neutral ";if(this.mobile)l+="mobile ";return n("div",{class:i.classes.Button},n("style",{type:"text/css"},s,o),n("sl-button",{type:this.buttonType,onClick:t.scroll,size:this.size,pill:this.pill,circle:this.circle,class:l},(this.iconSlot||this.iconName)&&n("sl-icon",{slot:this.iconSlot||"prefix",name:this.iconName}),this.buttonText,n("slot",null)))};return e}());var gn=":host{display:block}:host([hidden]){display:none}sl-button{display:block}";var bn=e("sqm_share_button",function(){function e(e){t(this,e);this.type="default";this.iconslot="prefix";this.hideicon=false;this.hidetext=false;this.undefinedLinkText="Error: message link undefined!";this.unsupportedPlatformText="Error: not on a supported device";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=L(this);var t=p()?yn(e):fe(e);return n(pe,Object.assign({},t),n("slot",null))};return e}());function yn(e){return D(__assign(__assign({},e),{loading:false,hide:false,onClick:function(){}}),e.demoData||{},{arrayMerge:function(e,t){return t}})}bn.style=gn;var xn=h.gql(__makeTemplateObject(["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"]));var wn=h.gql(__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]));function kn(e){var t,n;var r=e.programId,a=r===void 0?g():r;var i=m();var s=x();var l=y(xn,{programId:a},!(i===null||i===void 0?void 0:i.jwt)).data;var d=b(wn)[0];var u=(n=(t=l===null||l===void 0?void 0:l.user)===null||t===void 0?void 0:t.referralCode)!==null&&n!==void 0?n:"...";var c=o(false),f=c[0],p=c[1];function v(){navigator.clipboard.writeText(u);p(true);setTimeout((function(){return p(false)}),e.tooltiplifespan);d({eventMeta:{programId:a,id:i===null||i===void 0?void 0:i.id,accountId:i===null||i===void 0?void 0:i.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:s,shareMedium:"DIRECT"}}})}return __assign(__assign({},e),{onClick:v,open:f,copyString:u})}var _n=e("sqm_share_code",function(){function e(e){t(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Code";this.buttonStyle="icon";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=L(this);var t=p()?En(e):kn(e);return n(A,Object.assign({},t))};return e}());function En(e){var t=o(false),n=t[0],r=t[1];var a="SHARECODE001";return D({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,copyButtonLabel:e.copyButtonLabel,buttonStyle:e.buttonStyle,rewardStatus:"AVAILABLE",open:n,onClick:function(){navigator.clipboard.writeText(a);r(true);setTimeout((function(){return r(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Cn=e("sqm_share_link",function(){function e(e){t(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Link";this.buttonStyle="icon";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=L(this);var t=p()?Tn(e):ve(e);return n(A,Object.assign({},t))};return e}());function Tn(e){var t=o(false),n=t[0],r=t[1];var a="https://www.example.com/sharelink/abc";return D({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,copyButtonLabel:e.copyButtonLabel,rewardStatus:"AVAILABLE",open:n,onClick:function(){navigator.clipboard.writeText(a);r(true);setTimeout((function(){return r(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Sn=e("sqm_stat_container",function(){function e(e){t(this,e);this.ignored=true;this.space="xxx-large";this.display="grid";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return n(he,Object.assign({},L(this)),n("slot",null))};return e}());var In=h.gql(__makeTemplateObject(["\n mutation taskCardEvent($userEventInput: UserEventInput!) {\n logUserEvent(userEventInput: $userEventInput) {\n userId\n }\n }\n"],["\n mutation taskCardEvent($userEventInput: UserEventInput!) {\n logUserEvent(userEventInput: $userEventInput) {\n userId\n }\n }\n"]));function Mn(e){var t=m();var n=w();var r=b(In),a=r[0],o=r[1],s=o.data,l=o.loading;var d=I().refresh;i((function(){if(s){d();u()}}),[s]);function u(){e.openNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}function c(e){a({userEventInput:{userId:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,events:[{key:e,fields:{}}]}})}function f(){e.eventKey?c(e.eventKey):u()}return{states:{loadingEvent:l,locale:n},callbacks:{sendEvent:c,onClick:f}}}var Rn=e("sqm_task_card",function(){function e(e){t(this,e);this.ignored=true;this.rewardAmount="0";this.rewardUnit="Points";this.cardTitle="Title Text";this.description="";this.repeatable=false;this.finite=0;this.showProgressBar=false;this.goal=1;this.steps=false;this.progressBarUnit="";this.expiryMessage="Ends {endDate}";this.startsOnMessage="Starts {startDate}";this.endedMessage="Ended {endDate}";this.completedText="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";this.buttonText="Complete Action";this.openNewTab=false;this.hideButton=false;a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=(p()?H(this):z(__assign(__assign({},L(this)),{programId:this.programId}))).props;var t=e.value,r=e.loading;var a=p()?Ln(this):Mn(this),i=a.states,o=a.callbacks;return n(me,{callbacks:o,states:{loading:r,loadingEvent:i.loadingEvent,progress:t,locale:i.locale},content:__assign({},L(this))})};return e}());function Ln(e){return D({states:{loadingEvent:false,locale:"en"},callbacks:{sendEvent:function(e){return console.log(e)},onClick:function(){return console.log("clicked")}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Pn=e("sqm_timeline",function(){function e(e){t(this,e);this.ignored=true;this.icon="gift";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=this;var t=$();t.forEach((function(t){try{t.setIcon(e.icon)}catch(e){}}));var r="\n\t\t:host{\n\t\t\tdisplay: block; \n\t\t}\n\n\t\t::slotted(*:not(:only-child):not(:last-child)) {\n\t\t\tmargin-bottom: var(--sl-spacing-xx-large);\n\t\t}\n\t";return n("div",null,n("style",{type:"text/css"},r),n("slot",null))};return e}());var Nn=function(){return n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M22.5 7.5H18.6761H13.5V24H20.75C21.3023 24 21.75 23.5523 21.75 23V22.5V13.5H22.5H23C23.5523 13.5 24 13.0523 24 12.5V12V9V8.5C24 7.94772 23.5523 7.5 23 7.5H22.5Z",fill:"#F2C94C"}),n("path",{d:"M2.25 22.5V23C2.25 23.5523 2.69772 24 3.25 24H10.5V7.5H6.96363H1.5H1C0.447715 7.5 0 7.94772 0 8.5V9V12V12.5C0 13.0523 0.447715 13.5 1 13.5H1.5H2.25V22.5Z",fill:"#F2C94C"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 13.5V15H21.75V13.5H2.25Z",fill:"#BE9720"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 4.06424C21 5.39348 19.0041 7.4062 18 7.5H13.5V24H10.5027V7.5H6.88188C4.8187 7.05273 3 5.46806 3 3.78109C3 2.1371 3.71404 0.835051 5.01276 0.273062C6.25382 -0.26398 7.68678 0.0304991 8.81964 0.817C10.2101 1.78237 10.9902 3.59446 11.6978 5.2384C11.7599 5.38268 11.8215 5.52566 11.8828 5.66667C11.9426 5.53298 12.0028 5.3969 12.0638 5.25912C12.7649 3.67422 13.5654 1.86488 14.9106 0.893444C16.0997 0.0347157 17.6114 -0.289736 18.9181 0.298417C20.2693 0.906596 21 2.3018 21 4.06424ZM15.9185 2.25C16.6392 1.72957 17.502 1.63518 18.2396 2.25C18.8819 2.78542 18.9162 3.03745 18.9987 3.64389L19.0133 3.75C19.0133 4.64776 18.2396 6 17.4659 6C16.9177 6 16.4871 5.99537 16.0836 5.99103C15.3479 5.98312 14.702 5.97618 13.5974 6C13.808 5.59179 13.9761 5.20003 14.1365 4.82641C14.5654 3.82715 14.9386 2.95763 15.9185 2.25ZM7.40792 2.25C7.05911 2.00783 6.25921 2.11591 5.92748 2.25945C5.65341 2.37805 5.24403 2.73987 5.24403 3.78109C5.24403 4.79286 6.88188 5.66667 6.88188 5.66667C6.88188 5.66667 8.18161 6 10.5027 6C9.71258 4.04177 8.59336 3.073 7.40792 2.25Z",fill:"#EB5757"}))};var qn=function(){return n("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",stroke:"currentColor","stroke-width":"2"}))};var An={TimelineReward:{color:"var(--sl-color-neutral-900)",lineHeight:"var(--sl-line-height-dense)","& .container":{display:"flex"},"& .line":{display:"none",color:"transparent",userSelect:"none",background:"var(--sl-color-primary-300)",width:"4px",borderRadius:"4px",margin:"-2px",position:"relative",left:"12px",top:"34px"},"& .step":{display:"flex"},"& .icon":{position:"relative",top:"4px",zIndex:"1",color:"var(--sl-color-primary-300)",marginRight:"var(--sl-spacing-large)"},"& .reward":{marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .unit":{textTransform:"uppercase",fontSize:"var(--sl-font-size-small)"},"& .description":{fontSize:"var(--sl-font-size-medium)"}}};var Dn=q(An);var Vn=Dn.toString();var $n="\n\t:host{\n\t\tdisplay: block; \n\t}\n\n\t:host(:not(:last-of-type)) .line {\n\t\tdisplay: block; \n\t}\n\t";function Un(e){var t;var r=(t=e.icon)!==null&&t!==void 0?t:e.iconState;return n("div",{class:Dn.classes.TimelineReward,part:"sqm-base"},n("style",{type:"text/css"},Vn,$n),n("div",{class:"container",part:"sqm-entry-container"},n("div",{class:"line"},"/"),n("div",{class:"step"},r==="gift"&&n("div",{class:"icon"},n(Nn,null)),r==="circle"&&n("div",{class:"icon"},n(qn,null)),n("div",null,n("div",null,n("span",{class:"reward",part:"sqm-reward"},e.reward),n("span",{class:"unit",part:"sqm-unit"},e.unit)),n("div",{class:"description",part:"sqm-description"},e.desc)))))}var jn=e("sqm_timeline_entry",function(){function e(e){t(this,e);this.ignored=true;this.iconState="gift";a(this)}e.prototype.setIcon=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.iconState=e;return[2]}))}))};e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){V([this.reward]);return n(Un,Object.assign({},L(this)))};return e}());function Fn(e){return n(r,null,e.loading?e.loadingText:e.username)}var On=h.gql(__makeTemplateObject(["\n query getUserName {\n viewer {\n ... on User {\n firstName\n lastName\n }\n }\n }\n"],["\n query getUserName {\n viewer {\n ... on User {\n firstName\n lastName\n }\n }\n }\n"]));function Bn(e){var t,n,r,a,i,o,s,l;var d=m();var u=y(On,{},!(d===null||d===void 0?void 0:d.jwt));var c=u.loading;var f=((n=(t=u.data)===null||t===void 0?void 0:t.viewer)===null||n===void 0?void 0:n.firstName)||((a=(r=u.data)===null||r===void 0?void 0:r.viewer)===null||a===void 0?void 0:a.lastName)?((o=(i=u.data)===null||i===void 0?void 0:i.viewer)===null||o===void 0?void 0:o.firstName)+" "+((l=(s=u.data)===null||s===void 0?void 0:s.viewer)===null||l===void 0?void 0:l.lastName):e.fallback;return{loadingText:e.loadingText,loading:c,username:f}}var Hn=e("sqm_user_name",function(){function e(e){t(this,e);this.ignored=true;this.fallback="Anonymous User";this.loadingText="...";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p()?zn(this):Bn(this);return n(Fn,Object.assign({},e))};return e}());function zn(e){return D({loading:false,loadingText:"...",username:"John Smith"},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))s[e]=t[e]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-1099290c.system.js","./p-1a673057.system.js","./p-f6934a55.system.js"],(function(s){"use strict";var t,a,r,e;return{setters:[function(s){t=s.h},function(s){a=s.e},function(s){r=s.c},function(s){e=s.g}],execute:function(){s("N",n);function n(s){var n=s.states,i=s.data;var o={ItemContainer:__assign(__assign({display:"flex","background-color":""+(n.active?"var(--sl-color-gray-200)":"var(--sl-color-white)"),"border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center"},e({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:n.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};var c=r(o);var l=c.toString();return t("a",{part:"sqm-link",href:i.path,onClick:function(s){s.preventDefault();a.push(i.path)},class:c.classes.ItemContainer},t("style",{type:"text/css"},l),t("sl-icon",{class:c.classes.Icon,name:i.icon}),t("p",{class:c.classes.Label,part:"sqm-label"},i.label))}}}}));
@@ -1 +0,0 @@
1
- import{r as s,h as t,c as o}from"./p-64c3217a.js";import{o as a,f as r,n}from"./p-fd2c5407.js";import{J as c,E as i,z as e,P as l}from"./p-00be5090.js";const p=class{constructor(t){s(this,t),this.ignored=!0,n(this)}disconnectedCallback(){}render(){return async function({domain:s}){const t=c(),o=s,n=e(),p=i(o,n,t),[,m]=a(l,p);r((()=>{m(p)}),[p])}(this),t(o,{style:{display:"contents"}},t("slot",null))}};export{p as sqm_graphql_client_provider}
@@ -1 +0,0 @@
1
- import{y as t}from"./p-fd2c5407.js";import{_ as r}from"./p-00be5090.js";const o="sq:registration-form-state";function s(o){const s=r(),[e,i]=t(s,"sq:registration-form-state",o);return{registrationFormState:e,setRegistrationFormState:i}}export{o as R,s as u}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-64c3217a.js";import{n as o,k as r,f as c}from"./p-fd2c5407.js";import{S as n,H as a}from"./p-00be5090.js";import{N as i}from"./p-ac1bf045.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}render(){const s=function(){const s=n(),t=a(),[o,i]=r(!1);return c((()=>{i(!1)}),[s.pathname,t]),{checked:o,onClick:function(s){i(s.target.checked)}}}();return t(i,Object.assign({},s),t("slot",null))}};export{e as sqm_navigation_sidebar}
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(t,e){if(Object.defineProperty){Object.defineProperty(t,"raw",{value:e})}else{t.raw=e}return t};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-1099290c.system.js","./p-1a673057.system.js","./p-f6934a55.system.js"],(function(t){"use strict";var e,n,i,o,a,s,l,r;return{setters:[function(t){e=t.h},function(t){n=t.f},function(t){i=t.d;o=t.Q;a=t.k;s=t.C},function(t){l=t.c},function(t){r=t.H}],execute:function(){t({C:k,u:p});var d=i.gql(__makeTemplateObject(["\n query getCodes($limit: Int!, $offset: Int!) {\n viewer {\n ... on User {\n referralCodeList(\n limit: $limit\n offset: $offset\n filter: { fuelTank_eq: true }\n ) {\n data {\n code\n dateUsed\n dateCopied\n shareLinkCodes(limit: $limit, offset: $offset) {\n data {\n linkCode\n shortUrl\n }\n }\n }\n count\n totalCount\n }\n }\n }\n }\n"],["\n query getCodes($limit: Int!, $offset: Int!) {\n viewer {\n ... on User {\n referralCodeList(\n limit: $limit\n offset: $offset\n filter: { fuelTank_eq: true }\n ) {\n data {\n code\n dateUsed\n dateCopied\n shareLinkCodes(limit: $limit, offset: $offset) {\n data {\n linkCode\n shortUrl\n }\n }\n }\n count\n totalCount\n }\n }\n }\n }\n"]));var c=t("a","sq:referral-codes");var u=t("R","sq:referral-codes-pagination");var f=t("S",i.gql(__makeTemplateObject(["\nmutation test {}\n"],["\nmutation test {}\n"])));function p(t){var e=o();console.log({props:t});var i=a(d,(function(t){var e;console.log({queryData:t});return(e=t===null||t===void 0?void 0:t.viewer)===null||e===void 0?void 0:e.referralCodeList}),{limit:1,offset:0},{},!(e===null||e===void 0?void 0:e.jwt)),l=i.envelope,r=i.states,f=i.callbacks;var p=s({namespace:u,initialValue:{states:r,callbacks:f}}),v=p[0],b=p[1];var m=s({namespace:c,initialValue:{loading:true,referralCode:"",shareLink:"",email:{messageLink:""},fbMessenger:{messageLink:"",shareLink:""},whatsApp:{messageLink:""}}}),g=m[0],y=m[1];n((function(){var t,e,n,i,o,a,s,r,d,c,u;if((t=l===null||l===void 0?void 0:l.data)===null||t===void 0?void 0:t.length){var f=l.data[0];y({referralCode:f.code,shareLink:(n=(e=f.shareLinkCodes)===null||e===void 0?void 0:e[0])===null||n===void 0?void 0:n.shortUrl,email:{messageLink:(o=(i=f.shareLinkCodes)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.shortUrl},fbMessenger:{messageLink:(s=(a=f.shareLinkCodes)===null||a===void 0?void 0:a[0])===null||s===void 0?void 0:s.shortUrl,shareLink:(d=(r=f.shareLinkCodes)===null||r===void 0?void 0:r[0])===null||d===void 0?void 0:d.shortUrl},whatsApp:{messageLink:(u=(c=f.shareLinkCodes)===null||c===void 0?void 0:c[0])===null||u===void 0?void 0:u.shortUrl}})}}),[l]);n((function(){b({states:r,callbacks:f})}),[r.currentPage]);console.log({referralData:l,states:r});return{states:__assign({},r),data:g,callbacks:{}}}var v={HostBlock:r,inputStyle:{"&::part(input)":{textOverflow:"ellipsis",width:"100%"},"&::part(base)":{cursor:"pointer",overflow:"visible"},width:"100%"},inputErrorStyle:{"&::part(base)":{border:"2px solid red"}},ContainerDiv:{display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},containerStyle:{display:"flex",alignItems:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},errorTextStyle:{margin:"0",color:"var(--sl-color-danger-500)"},notificationTextStyle:{margin:"0",color:"var(--sl-color-neutral-500)"}};var b="\n :host{\n display: block; \n width: 100%;\n }\n";var m={right:"\nsl-input::part(input){\n text-align: right;\n}",center:" \nsl-input::part(input){\n text-align: center;\n}",left:""};var g="\n sl-input::part(input){\n cursor: default;\n }\n";var y=l(v);var h=y.toString();function k(t){var n=t.buttonStyle,i=n===void 0?"icon":n;console.log("notification text is",t.notificationText);var o=!t.loading&&t.error;var a=o?t.inputPlaceholderText:t.copyString;var s=o||t.loading||t.disabled;var l=t.buttonStyle==="button-below"?"bottom":t.buttonStyle==="button-outside"?"top":"top-end";var r=e("sl-tooltip",{trigger:"manual",content:t.tooltiptext,placement:l,disabled:t.disabled,open:t.open,skidding:t.buttonStyle==="icon"?-5:0,slot:"suffix"},i==="icon"?e("sl-icon-button",{exportparts:"base: icon-button-base",onClick:function(){var e;return(e=t.onClick)===null||e===void 0?void 0:e.call(t)},name:"files",disabled:s}):e("sl-button",{exportparts:"base: copy-button-base",onClick:function(){var e;return(e=t.onClick)===null||e===void 0?void 0:e.call(t)},size:"medium",style:{width:""+(i==="button-below"&&"100%")},disabled:s,type:"primary"},t.copyButtonLabel||"Copy"));return e("div",{class:y.classes.ContainerDiv},e("style",{type:"text/css"},h,b,m[t.textAlign],s&&g),e("div",{class:y.classes.containerStyle,style:{flexDirection:""+(i==="button-below"?"column":"row")}},e("sl-input",{class:y.classes.inputStyle+" "+(o?y.classes.inputErrorStyle:""),exportparts:"base: input-base, input: input-label",value:t.loading?"Loading...":a,readonly:true,disabled:s},i==="icon"&&r,o&&e("p",{slot:"help-text",class:y.classes.errorTextStyle},t.errorText)),(i==="button-outside"||i==="button-below")&&r),t.showNotificationText&&t.notificationText&&e("p",{part:"sqm-notification-text",class:y.classes.notificationTextStyle},t.notificationText))}}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as t,c as s}from"./p-64c3217a.js";import{f as r,n as a}from"./p-fd2c5407.js";import{Q as i,S as o,e as n,i as c}from"./p-00be5090.js";const l=class{constructor(t){e(this,t),this.ignored=!0,this.redirectTo="/",this.requireEmailVerification=!1,this.redirectToUnverified="/emailVerification",a(this)}disconnectedCallback(){}render(){const e=!!c()||function({requireEmailVerification:e,redirectTo:t,redirectToUnverified:s}){var a;const c=i(),l=!!(null==c?void 0:c.jwt),h=null===(a=null==c?void 0:c.managedIdentity)||void 0===a?void 0:a.emailVerified,{pathname:d,search:m}=o(),p=new URLSearchParams;return p.append("nextPage",`${d}${m}`),r((()=>l?e&&!h?n.push({pathname:s||t,search:"?"+p.toString()}):void 0:n.push({pathname:t,search:"?"+p.toString()})),[]),!!c}(this);return t(s,{style:{display:e?"contents":"none"}},t("slot",null))}};export{l as sqm_portal_protected_route}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const Default: () => any;
@@ -1,7 +0,0 @@
1
- export interface PaginationViewProps {
2
- currentPage?: number;
3
- totalPages?: number;
4
- onNext: (e: Event) => void;
5
- onPrev: (e: Event) => void;
6
- }
7
- export declare function PaginationView(props: PaginationViewProps): any;
@@ -1,17 +0,0 @@
1
- import { DemoData } from "../../global/demo";
2
- /**
3
- * @uiName Pagination
4
- * @exampleGroup Common Components
5
- * @example Link Button - <sqm-pagination></sqm-pagination>
6
- */
7
- export declare class Pagination {
8
- ignored: boolean;
9
- /**
10
- * @undocumented
11
- * @uiType object
12
- */
13
- demoData?: DemoData<any>;
14
- constructor();
15
- disconnectedCallback(): void;
16
- render(): any;
17
- }
@@ -1,15 +0,0 @@
1
- export declare function usePagination(): {
2
- states: {
3
- errors: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
4
- loading: boolean;
5
- limit: number;
6
- currentPage: number;
7
- pageCount: number;
8
- pageProgress: string;
9
- };
10
- callbacks: {
11
- refetch: (variables?: unknown) => Promise<any>;
12
- setLimit: (newLimit: number) => void;
13
- setCurrentPage: (newPage: number) => void;
14
- };
15
- };
@@ -1,18 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- parameters: {
4
- scenario: string;
5
- };
6
- };
7
- export default _default;
8
- export declare const ReferralCode: () => any;
9
- export declare const ShowNotificationText: () => any;
10
- export declare const ShowNotificationTextWithButton: () => any;
11
- export declare const ShowNotificationTextWithButtonBelow: () => any;
12
- export declare const CustomTooltipText: () => any;
13
- export declare const TextAlignCenter: () => any;
14
- export declare const TextAlignRight: () => any;
15
- export declare const CustomTooltipDuration: () => any;
16
- export declare const CopyButton: () => any;
17
- export declare const CopyButtonBelow: () => any;
18
- export declare const Error: () => any;
@@ -1,70 +0,0 @@
1
- import { DemoData } from "../../global/demo";
2
- import { CopyTextViewProps } from "../views/copy-text-view";
3
- /**
4
- * @uiName Referral Code
5
- * @exampleGroup Sharing
6
- * @example Referral Code - <sqm-referral-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-referral-code>
7
- */
8
- export declare class ReferralCode {
9
- /**
10
- * The ID of the program that should generate the code. Defaults to the program ID in context where this widget is loaded.
11
- *
12
- * @uiName Program ID
13
- * @uiWidget programSelector
14
- */
15
- programId?: string;
16
- /**
17
- * Shown inside a tooltip after someone has successfully copied the link to their clipboard
18
- *
19
- * @uiName Tooltip text
20
- */
21
- tooltiptext: string;
22
- /**
23
- * Boolean used to show notification text below input
24
- *
25
- * @uiName Show notification text
26
- */
27
- showNotificationText: boolean;
28
- /**
29
- * Shown underneath the referral code when the user has already copied the code
30
- *
31
- * @uiName Notification text
32
- */
33
- notificationText: string;
34
- /**
35
- * The number of milliseconds that the tooltip appears for
36
- *
37
- * @uiName Tooltip lifespan
38
- */
39
- tooltiplifespan: number;
40
- /**
41
- * Change the text alignment
42
- *
43
- * @uiName referral code alignment
44
- * @uiType string
45
- * @uiEnum ["left", "center", "right"]
46
- * @uiEnumNames ["Left", "Center", "Right"]
47
- */
48
- textAlign: "left" | "center" | "right";
49
- /**
50
- * @uiName Copy button label
51
- */
52
- copyButtonLabel?: string;
53
- /**
54
- * Set the copy button style and placement
55
- *
56
- * @uiName Style
57
- * @uiType string
58
- * @uiEnum ["icon", "button-outside", "button-below"]
59
- * @uiEnumNames ["Icon", "Button outside", "Button below"]
60
- */
61
- buttonStyle?: "icon" | "button-outside" | "button-below";
62
- /**
63
- * @undocumented
64
- * @uiType object
65
- */
66
- demoData?: DemoData<CopyTextViewProps>;
67
- constructor();
68
- disconnectedCallback(): void;
69
- render(): any;
70
- }
@@ -1,9 +0,0 @@
1
- import { CopyTextViewProps } from "../views/copy-text-view";
2
- interface ReferralCodeProps {
3
- programId?: string;
4
- tooltiptext: string;
5
- tooltiplifespan: number;
6
- codeOverride?: string;
7
- }
8
- export declare function useReferralCode(props: ReferralCodeProps): CopyTextViewProps;
9
- export {};
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- parameters: {
4
- scenario: string;
5
- };
6
- };
7
- export default _default;
8
- export declare const ReferralCodes: () => any;
9
- export declare const WithPreviouslyCopiedCode: () => any;
@@ -1,10 +0,0 @@
1
- import { VNode } from "../../stencil-public-runtime";
2
- export interface ReferralCodesViewProps {
3
- slots: {
4
- shareButtons: VNode;
5
- shareCodes: VNode;
6
- pagination: VNode;
7
- };
8
- titleText?: string;
9
- }
10
- export declare function ReferralCodesView(props: ReferralCodesViewProps): any;
@@ -1,21 +0,0 @@
1
- import { DemoData } from "../../global/demo";
2
- import { ReferralCodesViewProps } from "./sqm-referral-codes-view";
3
- /**
4
- * @uiName Referral Codes
5
- * @exampleGroup Sharing
6
- * @example Referral Codes - <sqm-referral-codes><sqm-pagination slot="pagination"></sqm-pagination><sqm-referral-code slot="shareCodes"></sqm-referral-code><sqm-portal-container gap="small" slot="shareButtons"><sqm-share-button medium="email">Share via email</sqm-share-button><sqm-share-button medium="facebook">Share on Facebook</sqm-share-button><sqm-share-button medium="whatsapp">Share on WhatsApp</sqm-share-button></sqm-portal-container></sqm-referral-codes>
7
- */
8
- export declare class ReferralCodes {
9
- /**
10
- * @uiName Title Text
11
- */
12
- titleText?: string;
13
- /**
14
- * @undocumented
15
- * @uiType object
16
- */
17
- demoData?: DemoData<ReferralCodesViewProps>;
18
- constructor();
19
- disconnectedCallback(): void;
20
- render(): any;
21
- }
@@ -1,47 +0,0 @@
1
- import { ReferralCodes } from "./sqm-referral-codes";
2
- import { GraphQlRequestError } from "@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery";
3
- export declare const REFERRAL_CODES_NAMESPACE = "sq:referral-codes";
4
- export declare const REFERRAL_CODES_PAGINATION_CONTEXT = "sq:referral-codes-pagination";
5
- export declare const SET_CODE_USED: string;
6
- export declare type ReferralCodeContext = {
7
- loading?: boolean;
8
- referralCode: string;
9
- shareLink: string;
10
- email: {
11
- messageLink: string;
12
- };
13
- fbMessenger: {
14
- messageLink: string;
15
- shareLink: string;
16
- };
17
- whatsApp: {
18
- messageLink: string;
19
- };
20
- };
21
- export declare type PaginationContext = {
22
- states: {
23
- errors: GraphQlRequestError<any>;
24
- loading: boolean;
25
- limit: number;
26
- currentPage: number;
27
- pageCount: number;
28
- pageProgress: string;
29
- };
30
- callbacks: {
31
- refetch: (variables?: unknown) => Promise<any>;
32
- setLimit: (newLimit: number) => void;
33
- setCurrentPage: (newPage: number) => void;
34
- };
35
- };
36
- export declare function useReferralCodes(props: ReferralCodes): {
37
- states: {
38
- errors: GraphQlRequestError<any>;
39
- loading: boolean;
40
- limit: number;
41
- currentPage: number;
42
- pageCount: number;
43
- pageProgress: string;
44
- };
45
- data: ReferralCodeContext;
46
- callbacks: {};
47
- };
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const JSS = require('./JSS-8503a151.js');
5
4
  const mixins = require('./mixins-fe9d4112.js');
5
+ const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  function GenericTableView(props) {
8
8
  const { states, data, callbacks, elements } = props;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const JSS = require('./JSS-8503a151.js');
5
4
  const mixins = require('./mixins-fe9d4112.js');
5
+ const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
8
8
  Wrapper: {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const JSS = require('./JSS-8503a151.js');
5
4
  const mixins = require('./mixins-fe9d4112.js');
5
+ const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const style = {
8
8
  HostBlock: mixins.HostBlock,
@@ -2,8 +2,8 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  const index_module = require('./index.module-df530553.js');
5
- const JSS = require('./JSS-8503a151.js');
6
5
  const mixins = require('./mixins-fe9d4112.js');
6
+ const JSS = require('./JSS-8503a151.js');
7
7
 
8
8
  function NavigationSidebarItemView(props) {
9
9
  const { states, data } = props;
@@ -2,8 +2,8 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  const global = require('./global-02e50f09.js');
5
- const JSS = require('./JSS-8503a151.js');
6
5
  const mixins = require('./mixins-fe9d4112.js');
6
+ const JSS = require('./JSS-8503a151.js');
7
7
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
8
8
 
9
9
  const style = {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const JSS = require('./JSS-8503a151.js');
5
4
  const mixins = require('./mixins-fe9d4112.js');
5
+ const JSS = require('./JSS-8503a151.js');
6
6
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
7
7
 
8
8
  const style = {