@saasquatch/mint-components 1.15.0-118 → 1.15.0-119

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 (290) hide show
  1. package/dist/cjs/{ShadowViewAddon-8fed996f.js → ShadowViewAddon-8d4ab3f3.js} +49 -3
  2. package/dist/cjs/{copy-text-view-44dfefc7.js → copy-text-view-e2782134.js} +5 -3
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/{sqm-big-stat_43.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +145 -2
  6. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +23 -8
  8. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +2 -2
  9. package/dist/collection/components/sqm-hero/Hero.stories.js +1 -1
  10. package/dist/collection/components/sqm-hero/sqm-hero-view.js +3 -2
  11. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
  12. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
  13. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -0
  14. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +4 -4
  15. package/dist/collection/components/views/copy-text-view.js +5 -3
  16. package/dist/esm/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-a2beb98a.js} +2 -2
  17. package/dist/esm/{ShadowViewAddon-928bfc1a.js → ShadowViewAddon-ae08cb04.js} +54 -9
  18. package/dist/esm/{copy-text-view-a319c261.js → copy-text-view-d8822c16.js} +5 -3
  19. package/dist/esm/{data-ee3ae298.js → data-dea73d4d.js} +1 -1
  20. package/dist/esm/{global-80edfef3.js → global-ef7a7354.js} +1 -1
  21. package/dist/esm/{index.module-38dad6c9.js → index.module-c9811a48.js} +1 -1
  22. package/dist/esm/loader.js +3 -3
  23. package/dist/esm/mint-components.js +3 -3
  24. package/dist/esm/{re-render-9c90767d.js → re-render-7e22fb0d.js} +1 -1
  25. package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
  26. package/dist/esm/{sqm-big-stat_43.entry.js → sqm-big-stat_44.entry.js} +155 -13
  27. package/dist/esm/sqm-close-button.entry.js +1 -1
  28. package/dist/esm/sqm-code-verification.entry.js +3 -3
  29. package/dist/esm/sqm-context-router.entry.js +1 -1
  30. package/dist/esm/sqm-email-verification.entry.js +3 -3
  31. package/dist/esm/sqm-empty_4.entry.js +2 -2
  32. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  33. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  34. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  35. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  36. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  37. package/dist/esm/{sqm-navigation-sidebar-item-view-797601b0.js → sqm-navigation-sidebar-item-view-bedd6ed7.js} +1 -1
  38. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  39. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  40. package/dist/esm/sqm-pagination_3.entry.js +4 -4
  41. package/dist/esm/sqm-password-field.entry.js +2 -2
  42. package/dist/esm/sqm-popup-container.entry.js +1 -1
  43. package/dist/esm/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-37bee5df.js} +1 -1
  44. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  45. package/dist/esm/sqm-portal-google-login.entry.js +2 -2
  46. package/dist/esm/sqm-portal-google-registration-form.entry.js +3 -3
  47. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  48. package/dist/esm/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-afb6d879.js} +1 -1
  49. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  50. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  51. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  52. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  53. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  54. package/dist/esm/sqm-qr-code.entry.js +2 -2
  55. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  56. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  57. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  58. package/dist/esm/sqm-stencilbook.entry.js +29 -14
  59. package/dist/esm/sqm-tab.entry.js +2 -2
  60. package/dist/esm/sqm-tabs.entry.js +3 -3
  61. package/dist/esm/sqm-tax-and-cash.entry.js +4 -4
  62. package/dist/esm/sqm-widget-verification-controller.entry.js +3 -3
  63. package/dist/esm/sqm-widget-verification.entry.js +1 -1
  64. package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-3d872cef.js} +1 -1
  65. package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dda1f52b.js} +2 -2
  66. package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-93462be3.js} +1 -1
  67. package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-e95df3c3.js} +1 -1
  68. package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-1eb3cd72.js} +2 -2
  69. package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-c2e809cf.js} +1 -1
  70. package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-909ccb28.js} +3 -3
  71. package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-24d594ea.js} +1 -1
  72. package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-55e0e98f.js} +1 -1
  73. package/dist/esm/{utilities-ad9c2893.js → utilities-72c07b09.js} +1 -1
  74. package/dist/esm/{utils-27b2ed4b.js → utils-a86c25e9.js} +1 -1
  75. package/dist/esm-es5/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-a2beb98a.js} +1 -1
  76. package/dist/esm-es5/ShadowViewAddon-ae08cb04.js +1 -0
  77. package/dist/esm-es5/copy-text-view-d8822c16.js +1 -0
  78. package/dist/esm-es5/{data-ee3ae298.js → data-dea73d4d.js} +1 -1
  79. package/dist/esm-es5/{global-80edfef3.js → global-ef7a7354.js} +1 -1
  80. package/dist/esm-es5/{index.module-38dad6c9.js → index.module-c9811a48.js} +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/mint-components.js +1 -1
  83. package/dist/esm-es5/{re-render-9c90767d.js → re-render-7e22fb0d.js} +1 -1
  84. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  85. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
  86. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  87. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  88. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  89. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  90. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  91. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  92. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  93. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  94. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  95. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  96. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-797601b0.js → sqm-navigation-sidebar-item-view-bedd6ed7.js} +1 -1
  97. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  98. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  99. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  100. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  101. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  102. package/dist/esm-es5/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-37bee5df.js} +1 -1
  103. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  104. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  105. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  107. package/dist/esm-es5/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-afb6d879.js} +1 -1
  108. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  109. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  110. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  111. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  112. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  113. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  114. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  115. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  116. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  117. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  118. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  119. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  120. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  121. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  122. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  123. package/dist/esm-es5/{useChildElements-4e70ac0e.js → useChildElements-3d872cef.js} +1 -1
  124. package/dist/esm-es5/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dda1f52b.js} +1 -1
  125. package/dist/esm-es5/{usePayoutStatus-7eeec61b.js → usePayoutStatus-93462be3.js} +1 -1
  126. package/dist/esm-es5/{usePortalLogin-d0720c81.js → usePortalLogin-e95df3c3.js} +1 -1
  127. package/dist/esm-es5/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-1eb3cd72.js} +1 -1
  128. package/dist/esm-es5/{useReferralCodes-311e6d72.js → useReferralCodes-c2e809cf.js} +1 -1
  129. package/dist/esm-es5/{useReferralTable-65a01a6a.js → useReferralTable-909ccb28.js} +1 -1
  130. package/dist/esm-es5/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-24d594ea.js} +1 -1
  131. package/dist/esm-es5/{useVerificationEmail-f9413de9.js → useVerificationEmail-55e0e98f.js} +1 -1
  132. package/dist/esm-es5/{utilities-ad9c2893.js → utilities-72c07b09.js} +1 -1
  133. package/dist/esm-es5/{utils-27b2ed4b.js → utils-a86c25e9.js} +1 -1
  134. package/dist/mint-components/mint-components.esm.js +1 -1
  135. package/dist/mint-components/mint-components.js +1 -1
  136. package/dist/mint-components/p-087b86af.system.entry.js +1 -0
  137. package/dist/mint-components/{p-e34b460e.entry.js → p-0bc0f590.entry.js} +1 -1
  138. package/dist/mint-components/{p-8e2bead4.js → p-0ec54f97.js} +1 -1
  139. package/dist/mint-components/{p-aa77d858.system.entry.js → p-0ef925fd.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-3d99fa43.entry.js → p-10c63703.entry.js} +1 -1
  141. package/dist/mint-components/p-125a894f.js +1 -0
  142. package/dist/mint-components/{p-7270fb59.entry.js → p-14fd4b05.entry.js} +1 -1
  143. package/dist/mint-components/{p-bb627d95.entry.js → p-155f7d25.entry.js} +2 -2
  144. package/dist/mint-components/{p-d8c5b80a.system.js → p-171310d9.system.js} +1 -1
  145. package/dist/mint-components/{p-1c1f4ce7.system.js → p-17a0f310.system.js} +1 -1
  146. package/dist/mint-components/p-18d33a7f.js +448 -0
  147. package/dist/mint-components/{p-773ce89c.system.js → p-2074933f.system.js} +1 -1
  148. package/dist/mint-components/{p-5e0af707.entry.js → p-20916402.entry.js} +2 -2
  149. package/dist/mint-components/{p-14bc40a9.entry.js → p-261ef00a.entry.js} +1 -1
  150. package/dist/mint-components/{p-0cba75e6.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-d5f1df29.entry.js → p-27a7f6a6.entry.js} +1 -1
  152. package/dist/mint-components/{p-d2e2e10f.js → p-28c50364.js} +1 -1
  153. package/dist/mint-components/{p-b065215a.entry.js → p-29398c98.entry.js} +1 -1
  154. package/dist/mint-components/{p-0e59a91e.js → p-293e3b25.js} +1 -1
  155. package/dist/mint-components/{p-6e069052.entry.js → p-29ba2eaa.entry.js} +1 -1
  156. package/dist/mint-components/{p-433ca566.system.entry.js → p-29fa3d84.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-00378aec.entry.js → p-2c0c8872.entry.js} +2 -2
  158. package/dist/mint-components/{p-9dbfdb41.system.entry.js → p-2e1eceb7.system.entry.js} +1 -1
  159. package/dist/mint-components/{p-a6234a78.entry.js → p-2fd59b38.entry.js} +1 -1
  160. package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-355079f4.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-c2c59452.system.js → p-37ffa277.system.js} +1 -1
  162. package/dist/mint-components/{p-c3884e55.entry.js → p-386ec00c.entry.js} +1 -1
  163. package/dist/mint-components/{p-e425b7a1.entry.js → p-3b0e2094.entry.js} +2 -2
  164. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  165. package/dist/mint-components/{p-485e2d9f.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-a4e56204.js → p-43246ab1.js} +1 -1
  167. package/dist/mint-components/{p-b3da317b.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-3787a4d6.js → p-49400aab.js} +2 -2
  169. package/dist/mint-components/{p-f0e0d0b9.system.entry.js → p-4a0f42ac.system.entry.js} +1 -1
  170. package/dist/mint-components/{p-19f41a8e.js → p-4a379796.js} +1 -1
  171. package/dist/mint-components/p-4ae4db45.system.js +1 -0
  172. package/dist/mint-components/{p-e4e3ddb6.system.js → p-4ddf5eaa.system.js} +1 -1
  173. package/dist/mint-components/{p-a2533860.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-0e66f410.system.entry.js → p-5116afad.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-3cb249c3.js → p-513f5d80.js} +1 -1
  176. package/dist/mint-components/{p-3dc34570.system.js → p-537a3894.system.js} +1 -1
  177. package/dist/mint-components/{p-258f4e5e.system.entry.js → p-54abb144.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-6ad674c2.js → p-552a6d1b.js} +1 -1
  179. package/dist/mint-components/p-5581ba8e.system.js +1 -0
  180. package/dist/mint-components/{p-c1629004.entry.js → p-56069d3f.entry.js} +1 -1
  181. package/dist/mint-components/{p-1394d253.system.js → p-574b08e7.system.js} +1 -1
  182. package/dist/mint-components/{p-002e6205.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
  183. package/dist/mint-components/{p-8543a70f.system.entry.js → p-5aad9df5.system.entry.js} +1 -1
  184. package/dist/mint-components/{p-4271f436.system.entry.js → p-5b29d833.system.entry.js} +1 -1
  185. package/dist/mint-components/{p-ef8b70cd.system.entry.js → p-5bb59fa8.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-22d20816.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-7af4fba0.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  188. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  189. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  190. package/dist/mint-components/{p-1f511d5d.entry.js → p-682359ae.entry.js} +1 -1
  191. package/dist/mint-components/p-6919414d.entry.js +33 -0
  192. package/dist/mint-components/{p-1d4a327c.js → p-699a9b20.js} +1 -1
  193. package/dist/mint-components/{p-a148663a.system.js → p-6c82d60c.system.js} +1 -1
  194. package/dist/mint-components/{p-f307b716.js → p-71af93e3.js} +1 -1
  195. package/dist/mint-components/{p-fa6fba34.system.js → p-71daeed9.system.js} +1 -1
  196. package/dist/mint-components/p-7558f9ef.entry.js +258 -0
  197. package/dist/mint-components/{p-9f82e69d.entry.js → p-75b8fd75.entry.js} +1 -1
  198. package/dist/mint-components/{p-05650cb6.entry.js → p-78878a5a.entry.js} +1 -1
  199. package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-78c754de.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-b9bccc55.entry.js → p-7eb0573c.entry.js} +1 -1
  201. package/dist/mint-components/{p-df37ef17.system.js → p-7ff34e84.system.js} +1 -1
  202. package/dist/mint-components/{p-15012f59.system.js → p-867b2baf.system.js} +1 -1
  203. package/dist/mint-components/{p-1a278658.entry.js → p-92a54b0c.entry.js} +1 -1
  204. package/dist/mint-components/{p-dbe29e53.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  205. package/dist/mint-components/p-976ee669.js +1 -0
  206. package/dist/mint-components/{p-4d19270b.js → p-97dc6863.js} +2 -2
  207. package/dist/mint-components/{p-0b0f49ad.entry.js → p-9943f53e.entry.js} +1 -1
  208. package/dist/mint-components/{p-ebb487d0.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-5b9297cd.system.entry.js → p-9b29f4f5.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-862845d7.js → p-9c79ab08.js} +2 -2
  211. package/dist/mint-components/p-a0f3c1f0.js +1 -0
  212. package/dist/mint-components/{p-89b859c7.system.entry.js → p-a4564acb.system.entry.js} +1 -1
  213. package/dist/mint-components/{p-a5c9ce6c.entry.js → p-a4e8eb33.entry.js} +1 -1
  214. package/dist/mint-components/{p-9aadc253.entry.js → p-a52df294.entry.js} +1 -1
  215. package/dist/mint-components/{p-e64fbb70.js → p-a5b58d30.js} +1 -1
  216. package/dist/mint-components/p-a5e8bfd4.system.js +1 -0
  217. package/dist/mint-components/{p-0bb21f5b.system.entry.js → p-a8c86cd8.system.entry.js} +1 -1
  218. package/dist/mint-components/p-a8e92144.js +1 -0
  219. package/dist/mint-components/{p-5ed49bf2.js → p-aa596749.js} +1 -1
  220. package/dist/mint-components/{p-3d1b91a1.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-711bc624.entry.js → p-b2fdb0b1.entry.js} +1 -1
  222. package/dist/mint-components/{p-da3ffd4e.system.entry.js → p-b4a922e1.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-9fb8b33a.system.js → p-bb5d153f.system.js} +1 -1
  224. package/dist/mint-components/{p-0ea61502.system.js → p-bcac83f0.system.js} +1 -1
  225. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  226. package/dist/mint-components/{p-b22b7891.js → p-c30ad421.js} +1 -1
  227. package/dist/mint-components/{p-da6fe95f.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  228. package/dist/mint-components/{p-8dc1cd0f.entry.js → p-d08bcd88.entry.js} +1 -1
  229. package/dist/mint-components/{p-d399162b.system.js → p-d09d3b8f.system.js} +1 -1
  230. package/dist/mint-components/{p-d821418e.system.js → p-d14f3149.system.js} +1 -1
  231. package/dist/mint-components/{p-100c878b.system.entry.js → p-d399b343.system.entry.js} +1 -1
  232. package/dist/mint-components/{p-f51e41dd.system.entry.js → p-d51c9a98.system.entry.js} +1 -1
  233. package/dist/mint-components/p-d6ea42b6.entry.js +9 -0
  234. package/dist/mint-components/{p-abd33116.system.entry.js → p-d848957e.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-672d144e.entry.js → p-dcc50d90.entry.js} +1 -1
  236. package/dist/mint-components/p-e05590ac.system.entry.js +1 -0
  237. package/dist/mint-components/{p-91014439.system.js → p-e174b704.system.js} +1 -1
  238. package/dist/mint-components/{p-9d29a0ff.system.entry.js → p-e71e147a.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-94f9fbf7.entry.js → p-ea063d99.entry.js} +1 -1
  240. package/dist/mint-components/{p-587115cb.system.entry.js → p-ee92a728.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-82505f6e.system.js → p-f3392945.system.js} +1 -1
  242. package/dist/mint-components/{p-d785a297.system.entry.js → p-f4202a64.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-fb5be0c5.js → p-f5fff87e.js} +1 -1
  244. package/dist/mint-components/{p-c79bb1c6.entry.js → p-f764e51f.entry.js} +2 -2
  245. package/dist/mint-components/p-f7919872.system.js +1 -0
  246. package/dist/mint-components/{p-22c11f0e.entry.js → p-f9295990.entry.js} +1 -1
  247. package/dist/mint-components/p-fa0ad3f2.entry.js +11 -0
  248. package/dist/mint-components/{p-e539fed3.entry.js → p-fab109de.entry.js} +1 -1
  249. package/dist/mint-components/{p-ad586adc.system.entry.js → p-fcbed888.system.entry.js} +1 -1
  250. package/dist/mint-components/{p-578a27c8.system.js → p-ff0e1564.system.js} +1 -1
  251. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  252. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  253. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -2
  254. package/dist/types/components.d.ts +4 -4
  255. package/docs/docs.docx +0 -0
  256. package/docs/raisins.json +1 -1
  257. package/package.json +1 -1
  258. package/dist/cjs/sqm-portal-forgot-password-view-0a8d3243.js +0 -53
  259. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -156
  260. package/dist/esm/sqm-portal-forgot-password-view-0e795cdd.js +0 -51
  261. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -152
  262. package/dist/esm-es5/ShadowViewAddon-928bfc1a.js +0 -1
  263. package/dist/esm-es5/copy-text-view-a319c261.js +0 -1
  264. package/dist/esm-es5/sqm-big-stat_43.entry.js +0 -1
  265. package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
  266. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  267. package/dist/mint-components/p-000c91b1.js +0 -1
  268. package/dist/mint-components/p-10507209.system.entry.js +0 -1
  269. package/dist/mint-components/p-1337f47c.entry.js +0 -1
  270. package/dist/mint-components/p-1de49f76.js +0 -1
  271. package/dist/mint-components/p-209ea185.js +0 -1
  272. package/dist/mint-components/p-3f1f78c0.system.entry.js +0 -1
  273. package/dist/mint-components/p-42da8239.system.js +0 -1
  274. package/dist/mint-components/p-56a5e3b2.entry.js +0 -9
  275. package/dist/mint-components/p-7059ee40.system.entry.js +0 -1
  276. package/dist/mint-components/p-7970e73a.js +0 -1
  277. package/dist/mint-components/p-84a5b46a.system.js +0 -1
  278. package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
  279. package/dist/mint-components/p-a0c8162d.entry.js +0 -258
  280. package/dist/mint-components/p-a89baf7b.system.js +0 -1
  281. package/dist/mint-components/p-c4886223.entry.js +0 -1
  282. package/dist/mint-components/p-c7965639.entry.js +0 -1
  283. package/dist/mint-components/p-cab1f502.js +0 -1
  284. package/dist/mint-components/p-d278519f.js +0 -448
  285. package/dist/mint-components/p-e57d61af.system.js +0 -1
  286. package/dist/mint-components/p-e9d0caf7.entry.js +0 -11
  287. package/dist/mint-components/p-f4dc053e.entry.js +0 -33
  288. package/dist/mint-components/p-f4f57363.system.js +0 -1
  289. package/dist/mint-components/p-fb77f662.entry.js +0 -1
  290. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -1 +1 @@
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,a=arguments.length;n<a;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,n,a){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function i(t){try{l(a.next(t))}catch(t){o(t)}}function s(t){try{l(a["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):r(t.value).then(i,s)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,r,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,r&&(o=i[0]&2?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];r=0}finally{a=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-773ce89c.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-4bd679a7.system.js","./p-15bfd7e2.system.js","./p-1a673057.system.js","./p-1c1f4ce7.system.js","./p-8a6494c7.system.js","./p-f4f57363.system.js"],(function(t){"use strict";var e,n,a,r,o,i,s,l,u,c,d,p,f,v,g,y,h,m,b,x,C,T;return{setters:[function(t){e=t.h;n=t.F;a=t.r},function(t){r=t.i},function(t){o=t.n;i=t.k},function(t){s=t.F;l=t.i;u=t.d;c=t.H;d=t.J;p=t.B;f=t.w;v=t.$},function(t){g=t.c},function(t){y=t.g},function(t){h=t.c},function(t){m=t.R;b=t.a;x=t.S;C=t.u},function(){},function(t){T=t.C}],execute:function(){var _={Container:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"var(--sl-spacing-small)",width:"100%"},TextContainer:{display:"flex",gap:"var(--sl-spacing-xx-small)"}};var w=h(_);var P=w.toString();function S(t){var a=t.states,r=t.callbacks,o=t.text,i=t.buttonType;var s=r.onNext,l=r.onPrev;var u=a.currentPage,c=a.totalPages,d=a.loading;if(c===1)return e(n,null);return e("span",{class:w.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},P),!d&&e(n,null,e("sl-button",{exportparts:"base: "+i+"button-base",onClick:l,part:"sqm-pagination-button",circle:true,disabled:u===1},e("sl-icon",{name:"chevron-left",label:"Previous Page"})),e("div",{class:w.classes.TextContainer},o.paginationText)),e("sl-button",{exportparts:"base: "+i+"button-base",onClick:s,part:"sqm-pagination-button",circle:true,disabled:u===c},e("sl-icon",{name:"chevron-right",label:"Previous Page"})))}function j(t){var e;var n=s(m);var a=n.states.currentPage+1;var o=(e=n.states)===null||e===void 0?void 0:e.pageCount;return{states:{currentPage:a,totalPages:o,loading:n.states.loading},callbacks:{onNext:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)+1)},onPrev:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText},{currentPage:a,totalPages:o})}}}var k=t("sqm_pagination",function(){function t(t){a(this,t);this.ignored=true;this.paginationText="{currentPage} of {totalPages}";this.buttonType="secondary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=l()?I(y(this)):j(y(this));return e(S,Object.assign({},t))};return t}());function I(t){var e=i(1),n=e[0],a=e[1];return g({states:{currentPage:n,totalPages:5,loading:false},buttonType:t.buttonType,callbacks:{onNext:function(){return a(n+1)},onPrev:function(){return a(n-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText||"{currentPage} of {totalPages}"},{currentPage:n,totalPages:5})}},t.demoData||{},{arrayMerge:function(t,e){return e}})}var E=u.gql(__makeTemplateObject(["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"]));var M=u.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 q(t){var e,n;var a=t.programId,r=a===void 0?c():a;var o=d();var l=p();var u=s(b);var g=f(E,{programId:r},!(o===null||o===void 0?void 0:o.jwt)||(u===null||u===void 0?void 0:u.referralCode)!==undefined).data;var y=v(M)[0];var h=v(x)[0];var m=(n=(u===null||u===void 0?void 0:u.referralCode)||((e=g===null||g===void 0?void 0:g.user)===null||e===void 0?void 0:e.referralCode))!==null&&n!==void 0?n:"...";var C=i(false),T=C[0],_=C[1];function w(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!u)return[3,2];return[4,h({referralCode:u.referralCode})];case 1:e.sent();u.refresh();e.label=2;case 2:navigator.clipboard.writeText(m);_(true);setTimeout((function(){return _(false)}),t.tooltiplifespan);y({eventMeta:{programId:r,id:o===null||o===void 0?void 0:o.id,accountId:o===null||o===void 0?void 0:o.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:l,shareMedium:"DIRECT"}}});return[2]}}))}))}return __assign(__assign({},t),{onClick:w,open:T,copyString:m,isCopied:u===null||u===void 0?void 0:u.isCopied,showNotificationText:t.showNotificationText&&!!(u===null||u===void 0?void 0:u.singleUse)})}var R=t("sqm_referral_code",function(){function t(t){a(this,t);this.tooltiptext="Copied to Clipboard";this.showNotificationText=false;this.notificationText="You've copied this code before";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Code";this.buttonStyle="icon";this.buttonType="primary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=y(this);var n=l()?A(t):q(t);return e(T,Object.assign({},n))};return t}());function A(t){var e=i(false),n=e[0],a=e[1];var r="REFERRALCODE001";return g({copyString:r,tooltiptext:t.tooltiptext,textAlign:t.textAlign,copyButtonLabel:t.copyButtonLabel,buttonStyle:t.buttonStyle,notificationText:t.notificationText,showNotificationText:t.showNotificationText,isCopied:t.showNotificationText,borderColor:t.borderColor,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,buttonType:t.buttonType,isUsed:false,rewardStatus:"AVAILABLE",open:n,onClick:function(){navigator.clipboard.writeText(r);a(true);setTimeout((function(){return a(false)}),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:function(t,e){return e}})}function O(t){var n=t.slots,a=t.titleText,r=t.states,o=t.textColor,i=o===void 0?"var(--sqm-text-subdued)":o;var s={Wrapper:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column",gap:"var(--sl-spacing-large)",color:i},HeaderContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},ShareCodeContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},ShareButtonContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},TitleText:{fontSize:"var(--sl-font-size-large)",margin:"0"}};var l="\n :host {\n display: block;\n }\n :host([hidden]): {\n display: none;\n }\n ";var u=h(s);var c=u.toString();var d=function(t){if(t.noCodes){return n.empty}if(t.loading){return n.loading}return e("div",{class:u.classes.Wrapper},e("div",{class:u.classes.ShareCodeContainer},n.shareCodes),e("div",{class:u.classes.ShareButtonContainer},n.shareButtons))};return e("div",{class:u.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},l,c),e("div",{class:u.classes.HeaderContainer},e("h2",{class:u.classes.TitleText},a),!r.noCodes&&!r.loading&&n.pagination),d(r))}var U=t("sqm_referral_codes",function(){function t(t){a(this,t);this.titleText="Start sharing";this.emptyStateHeaderText="Your new codes and links aren’t ready yet";this.emptyStateDescriptionText="Please contact our program support team to let them know you’re out of codes.";this.emptyStateImageUrl="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=y(this);var n=l()?$(t):C(t);var a={shareButtons:e("slot",{name:"shareButtons"}),shareCodes:e("slot",{name:"shareCodes"}),pagination:e("slot",{name:"pagination"}),empty:e(D,{headerText:this.emptyStateHeaderText,descriptionText:this.emptyStateDescriptionText,imageUrl:this.emptyStateImageUrl}),loading:e(N,null)};var r=__assign(__assign({slots:a},n),{loading:n.states.loading,noCodes:n.states.noCodes});return e(O,Object.assign({},r))};return t}());function D(t){var n=t.headerText,a=t.descriptionText,r=t.imageUrl;return e("slot",{name:"empty"},e("sqm-empty",{emptyStateHeader:n,emptyStateText:a,emptyStateImage:r}))}function N(){return e("slot",{name:"loading"},e(B,null),e(B,null),e(B,null),e(B,null))}function B(){return e("sl-skeleton",{style:{width:"100%"}})}function $(t){return g({titleText:t.titleText,textColor:t.textColor,states:{noCodes:false,loading:false}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
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,a=arguments.length;n<a;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,n,a){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function i(t){try{l(a.next(t))}catch(t){o(t)}}function s(t){try{l(a["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):r(t.value).then(i,s)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,r,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,r&&(o=i[0]&2?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];r=0}finally{a=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-2074933f.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-15bfd7e2.system.js","./p-1a673057.system.js","./p-17a0f310.system.js","./p-8a6494c7.system.js","./p-4ae4db45.system.js"],(function(t){"use strict";var e,n,a,r,o,i,s,l,u,c,d,p,f,v,g,y,h,m,b,x,C,T;return{setters:[function(t){e=t.h;n=t.F;a=t.r},function(t){r=t.i},function(t){o=t.n;i=t.k},function(t){s=t.F;l=t.i;u=t.d;c=t.H;d=t.J;p=t.B;f=t.w;v=t.$},function(t){g=t.c},function(t){y=t.g},function(t){h=t.c},function(t){m=t.R;b=t.a;x=t.S;C=t.u},function(){},function(t){T=t.C}],execute:function(){var _={Container:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"var(--sl-spacing-small)",width:"100%"},TextContainer:{display:"flex",gap:"var(--sl-spacing-xx-small)"}};var w=h(_);var P=w.toString();function S(t){var a=t.states,r=t.callbacks,o=t.text,i=t.buttonType;var s=r.onNext,l=r.onPrev;var u=a.currentPage,c=a.totalPages,d=a.loading;if(c===1)return e(n,null);return e("span",{class:w.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},P),!d&&e(n,null,e("sl-button",{exportparts:"base: "+i+"button-base",onClick:l,part:"sqm-pagination-button",circle:true,disabled:u===1},e("sl-icon",{name:"chevron-left",label:"Previous Page"})),e("div",{class:w.classes.TextContainer},o.paginationText)),e("sl-button",{exportparts:"base: "+i+"button-base",onClick:s,part:"sqm-pagination-button",circle:true,disabled:u===c},e("sl-icon",{name:"chevron-right",label:"Previous Page"})))}function j(t){var e;var n=s(m);var a=n.states.currentPage+1;var o=(e=n.states)===null||e===void 0?void 0:e.pageCount;return{states:{currentPage:a,totalPages:o,loading:n.states.loading},callbacks:{onNext:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)+1)},onPrev:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText},{currentPage:a,totalPages:o})}}}var k=t("sqm_pagination",function(){function t(t){a(this,t);this.ignored=true;this.paginationText="{currentPage} of {totalPages}";this.buttonType="secondary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=l()?I(y(this)):j(y(this));return e(S,Object.assign({},t))};return t}());function I(t){var e=i(1),n=e[0],a=e[1];return g({states:{currentPage:n,totalPages:5,loading:false},buttonType:t.buttonType,callbacks:{onNext:function(){return a(n+1)},onPrev:function(){return a(n-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText||"{currentPage} of {totalPages}"},{currentPage:n,totalPages:5})}},t.demoData||{},{arrayMerge:function(t,e){return e}})}var E=u.gql(__makeTemplateObject(["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"]));var M=u.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 q(t){var e,n;var a=t.programId,r=a===void 0?c():a;var o=d();var l=p();var u=s(b);var g=f(E,{programId:r},!(o===null||o===void 0?void 0:o.jwt)||(u===null||u===void 0?void 0:u.referralCode)!==undefined).data;var y=v(M)[0];var h=v(x)[0];var m=(n=(u===null||u===void 0?void 0:u.referralCode)||((e=g===null||g===void 0?void 0:g.user)===null||e===void 0?void 0:e.referralCode))!==null&&n!==void 0?n:"...";var C=i(false),T=C[0],_=C[1];function w(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!u)return[3,2];return[4,h({referralCode:u.referralCode})];case 1:e.sent();u.refresh();e.label=2;case 2:navigator.clipboard.writeText(m);_(true);setTimeout((function(){return _(false)}),t.tooltiplifespan);y({eventMeta:{programId:r,id:o===null||o===void 0?void 0:o.id,accountId:o===null||o===void 0?void 0:o.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:l,shareMedium:"DIRECT"}}});return[2]}}))}))}return __assign(__assign({},t),{onClick:w,open:T,copyString:m,isCopied:u===null||u===void 0?void 0:u.isCopied,showNotificationText:t.showNotificationText&&!!(u===null||u===void 0?void 0:u.singleUse)})}var R=t("sqm_referral_code",function(){function t(t){a(this,t);this.tooltiptext="Copied to Clipboard";this.showNotificationText=false;this.notificationText="You've copied this code before";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Code";this.buttonStyle="icon";this.buttonType="primary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=y(this);var n=l()?A(t):q(t);return e(T,Object.assign({},n))};return t}());function A(t){var e=i(false),n=e[0],a=e[1];var r="REFERRALCODE001";return g({copyString:r,tooltiptext:t.tooltiptext,textAlign:t.textAlign,copyButtonLabel:t.copyButtonLabel,buttonStyle:t.buttonStyle,notificationText:t.notificationText,showNotificationText:t.showNotificationText,isCopied:t.showNotificationText,borderColor:t.borderColor,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,buttonType:t.buttonType,isUsed:false,rewardStatus:"AVAILABLE",open:n,onClick:function(){navigator.clipboard.writeText(r);a(true);setTimeout((function(){return a(false)}),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:function(t,e){return e}})}function O(t){var n=t.slots,a=t.titleText,r=t.states,o=t.textColor,i=o===void 0?"var(--sqm-text-subdued)":o;var s={Wrapper:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column",gap:"var(--sl-spacing-large)",color:i},HeaderContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},ShareCodeContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},ShareButtonContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},TitleText:{fontSize:"var(--sl-font-size-large)",margin:"0"}};var l="\n :host {\n display: block;\n }\n :host([hidden]): {\n display: none;\n }\n ";var u=h(s);var c=u.toString();var d=function(t){if(t.noCodes){return n.empty}if(t.loading){return n.loading}return e("div",{class:u.classes.Wrapper},e("div",{class:u.classes.ShareCodeContainer},n.shareCodes),e("div",{class:u.classes.ShareButtonContainer},n.shareButtons))};return e("div",{class:u.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},l,c),e("div",{class:u.classes.HeaderContainer},e("h2",{class:u.classes.TitleText},a),!r.noCodes&&!r.loading&&n.pagination),d(r))}var U=t("sqm_referral_codes",function(){function t(t){a(this,t);this.titleText="Start sharing";this.emptyStateHeaderText="Your new codes and links aren’t ready yet";this.emptyStateDescriptionText="Please contact our program support team to let them know you’re out of codes.";this.emptyStateImageUrl="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=y(this);var n=l()?$(t):C(t);var a={shareButtons:e("slot",{name:"shareButtons"}),shareCodes:e("slot",{name:"shareCodes"}),pagination:e("slot",{name:"pagination"}),empty:e(D,{headerText:this.emptyStateHeaderText,descriptionText:this.emptyStateDescriptionText,imageUrl:this.emptyStateImageUrl}),loading:e(N,null)};var r=__assign(__assign({slots:a},n),{loading:n.states.loading,noCodes:n.states.noCodes});return e(O,Object.assign({},r))};return t}());function D(t){var n=t.headerText,a=t.descriptionText,r=t.imageUrl;return e("slot",{name:"empty"},e("sqm-empty",{emptyStateHeader:n,emptyStateText:a,emptyStateImage:r}))}function N(){return e("slot",{name:"loading"},e(B,null),e(B,null),e(B,null),e(B,null))}function B(){return e("sl-skeleton",{style:{width:"100%"}})}function $(t){return g({titleText:t.titleText,textColor:t.textColor,states:{noCodes:false,loading:false}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -1 +1 @@
1
- import{h as t,c as n,r as s}from"./p-c7c11325.js";import{u as o,f as a,n as r}from"./p-63e29387.js";import{_ as e}from"./p-8e2bead4.js";import{g as l}from"./p-6951663b.js";import{u as p}from"./p-fb5be0c5.js";import{u as c}from"./p-000c91b1.js";const m=({content:s,placement:o,textColor:a="var(--sqm-text)"})=>t(n,null,t("style",{type:"text/css"},`\n sl-tab-panel::part(base) {\n padding: ${o&&"top"!==o&&"bottom"!==o?"0 var(--sl-spacing-xx-large);":"var(--sl-spacing-x-large) 0;"};\n }\n\n sl-tab::part(base) {\n color: ${a};\n font-family: var(--sqm-primary-font);\n }\n\n sl-tab-group {\n --sl-color-primary-500: var(--sqm-accent-color-icon);\n }\n\n sl-tab-group::part(tabs) {\n border-bottom: 2px solid var(--sqm-border-color);\n font-family: var(--sqm-primary-font);\n }\n `),t("sl-tab-group",{placement:o},s.tabs.map((n=>{const s=n.getAttribute("slot");return"RAISINS-PLOP-TARGET"===n.tagName?t("sl-tab",{slot:"nav"},t("div",{style:{marginTop:"10px"}},t("slot",{name:s}))):[t("sl-tab",{slot:"nav",panel:s,part:"tab",id:n.getAttribute("id")||s},n.getAttribute("header")),t("sl-tab-panel",{name:s},t("slot",{name:s}))]}))),t("div",{style:{display:"none"}},t("slot",null))),i=class{constructor(t){s(this,t),r(this)}disconnectedCallback(){}render(){const{content:n}=function(){const t=c(),n=e(),s=p(),r=o((()=>t.filter((t=>"SQM-TAB"===t.tagName||"RAISINS-PLOP-TARGET"===t.tagName)).map(((t,n)=>{if("RAISINS-PLOP-TARGET"===t.tagName){const n=t;n.style.position="absolute",n.style.left="6px";const s=t.firstElementChild.childNodes[1];s.innerHTML="+",s.style.lineHeight="20px"}return t.setAttribute("slot","tab-"+n),t.setAttribute("id","tab-"+n),t}))),[t,s]);return a((()=>{const t=t=>{var s;const o=t.target;if(t.stopPropagation(),!o)return;const a=o.closest("sqm-tabs");if(!n.contains(o)||!a)return;const r=o.closest("sqm-tab");null===(s=a.shadowRoot.querySelector("sl-tab-group"))||void 0===s||s.show(r.id)};return n.addEventListener("sq:reveal",t),()=>{n.removeEventListener("sq:reveal",t)}}),[]),{content:{tabs:r}}}(),{placement:s,textColor:r}=l(this);return t(m,{placement:s,content:n,textColor:r},t("slot",null))}};export{i as sqm_tabs}
1
+ import{h as t,c as n,r as s}from"./p-c7c11325.js";import{u as o,f as a,n as r}from"./p-63e29387.js";import{_ as e}from"./p-0ec54f97.js";import{g as l}from"./p-6951663b.js";import{u as p}from"./p-f5fff87e.js";import{u as c}from"./p-976ee669.js";const m=({content:s,placement:o,textColor:a="var(--sqm-text)"})=>t(n,null,t("style",{type:"text/css"},`\n sl-tab-panel::part(base) {\n padding: ${o&&"top"!==o&&"bottom"!==o?"0 var(--sl-spacing-xx-large);":"var(--sl-spacing-x-large) 0;"};\n }\n\n sl-tab::part(base) {\n color: ${a};\n font-family: var(--sqm-primary-font);\n }\n\n sl-tab-group {\n --sl-color-primary-500: var(--sqm-accent-color-icon);\n }\n\n sl-tab-group::part(tabs) {\n border-bottom: 2px solid var(--sqm-border-color);\n font-family: var(--sqm-primary-font);\n }\n `),t("sl-tab-group",{placement:o},s.tabs.map((n=>{const s=n.getAttribute("slot");return"RAISINS-PLOP-TARGET"===n.tagName?t("sl-tab",{slot:"nav"},t("div",{style:{marginTop:"10px"}},t("slot",{name:s}))):[t("sl-tab",{slot:"nav",panel:s,part:"tab",id:n.getAttribute("id")||s},n.getAttribute("header")),t("sl-tab-panel",{name:s},t("slot",{name:s}))]}))),t("div",{style:{display:"none"}},t("slot",null))),i=class{constructor(t){s(this,t),r(this)}disconnectedCallback(){}render(){const{content:n}=function(){const t=c(),n=e(),s=p(),r=o((()=>t.filter((t=>"SQM-TAB"===t.tagName||"RAISINS-PLOP-TARGET"===t.tagName)).map(((t,n)=>{if("RAISINS-PLOP-TARGET"===t.tagName){const n=t;n.style.position="absolute",n.style.left="6px";const s=t.firstElementChild.childNodes[1];s.innerHTML="+",s.style.lineHeight="20px"}return t.setAttribute("slot","tab-"+n),t.setAttribute("id","tab-"+n),t}))),[t,s]);return a((()=>{const t=t=>{var s;const o=t.target;if(t.stopPropagation(),!o)return;const a=o.closest("sqm-tabs");if(!n.contains(o)||!a)return;const r=o.closest("sqm-tab");null===(s=a.shadowRoot.querySelector("sl-tab-group"))||void 0===s||s.show(r.id)};return n.addEventListener("sq:reveal",t),()=>{n.removeEventListener("sq:reveal",t)}}),[]),{content:{tabs:r}}}(),{placement:s,textColor:r}=l(this);return t(m,{placement:s,content:n,textColor:r},t("slot",null))}};export{i as sqm_tabs}
@@ -0,0 +1 @@
1
+ import{i as t,y as r}from"./p-63e29387.js";import{_ as s}from"./p-0ec54f97.js";const o="sq:registration-form-state";function i(){const r=t("sq:registration-form-state-internal"),s=t("sq:registration-form-state");return r?[s,r[1]]:[void 0,void 0]}function e(t){const o=s(),[i,e]=r(o,"sq:registration-form-state",t);return r(o,"sq:registration-form-state-internal",[i,e]),{registrationFormState:i,setRegistrationFormState:e}}export{o as R,i as a,e as u}
@@ -1 +1 @@
1
- import{h as t,r as e,c as s}from"./p-c7c11325.js";import{i as n}from"./p-d2e2e10f.js";import{n as a}from"./p-63e29387.js";import"./p-8e2bead4.js";import{g as i}from"./p-6951663b.js";import"./p-cef45012.js";import{P as r,a as o}from"./p-9580aac3.js";function l(e){const{emptyStateHeader:s,emptyStateImage:a,emptyStateText:i,supportText:r,missingFeature:o=""}=e;return t("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},t("img",{style:{height:"100px",margin:"auto"},src:a}),t("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("p",{part:"header-text"},s)),t("sqm-text",{slot:"content"},t("p",{part:"description-text"},n.formatMessage({id:"emptyStateText",defaultMessage:i},{supportText:t("a",{target:"_blank",href:`mailto:saasquatch-support@impact.com?subject=Next steps for ${o} feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the ${o} feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: ${o}%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you`},r)})))))}const m=class{constructor(t){e(this,t),this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}render(){return t(s,{slot:"empty"},t(l,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))}},h=class{constructor(t){e(this,t),this.ignored=!0,this.direction="column",this.gap="xxx-large",this.display="grid",this.maxWidth="100%",this.flexWrap="wrap",a(this)}disconnectedCallback(){}render(){return t(r,Object.assign({},i(this)),t("slot",null))}},p=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}componentWillLoad(){}render(){return t("div",null,t("style",null,`\n sqm-text {\n display: block;\n color: ${this.textColor||"var(--sqm-text)"};\n }\n\n sqm-text h1 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xxx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-x-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-large)"};\n font-weight: var(--sl-font-weight-bold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text p {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-medium)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text sub {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-small)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n `),t("slot",null))}},c=class{constructor(t){e(this,t),this.textAlign="left",this.labelMargin="small",this.padding="none",a(this)}disconnectedCallback(){}render(){const e=t("slot",{name:"label"},this.label),s=t("slot",{name:"content"});return t(o,Object.assign({},{...i(this),label:e,content:s}))}};export{m as sqm_empty,h as sqm_portal_container,p as sqm_text,c as sqm_titled_section}
1
+ import{h as t,r as e,c as s}from"./p-c7c11325.js";import{i as n}from"./p-28c50364.js";import{n as a}from"./p-63e29387.js";import"./p-0ec54f97.js";import{g as i}from"./p-6951663b.js";import"./p-cef45012.js";import{P as r,a as o}from"./p-9580aac3.js";function l(e){const{emptyStateHeader:s,emptyStateImage:a,emptyStateText:i,supportText:r,missingFeature:o=""}=e;return t("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},t("img",{style:{height:"100px",margin:"auto"},src:a}),t("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("p",{part:"header-text"},s)),t("sqm-text",{slot:"content"},t("p",{part:"description-text"},n.formatMessage({id:"emptyStateText",defaultMessage:i},{supportText:t("a",{target:"_blank",href:`mailto:saasquatch-support@impact.com?subject=Next steps for ${o} feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the ${o} feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: ${o}%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you`},r)})))))}const m=class{constructor(t){e(this,t),this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}render(){return t(s,{slot:"empty"},t(l,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))}},h=class{constructor(t){e(this,t),this.ignored=!0,this.direction="column",this.gap="xxx-large",this.display="grid",this.maxWidth="100%",this.flexWrap="wrap",a(this)}disconnectedCallback(){}render(){return t(r,Object.assign({},i(this)),t("slot",null))}},c=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}componentWillLoad(){}render(){return t("div",null,t("style",null,`\n sqm-text {\n display: block;\n color: ${this.textColor||"var(--sqm-text)"};\n }\n\n sqm-text h1 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xxx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-x-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-large)"};\n font-weight: var(--sl-font-weight-bold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text p {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-medium)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text sub {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-small)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n `),t("slot",null))}},p=class{constructor(t){e(this,t),this.textAlign="left",this.labelMargin="small",this.padding="none",a(this)}disconnectedCallback(){}render(){const e=t("slot",{name:"label"},this.label),s=t("slot",{name:"content"});return t(o,Object.assign({},{...i(this),label:e,content:s}))}};export{m as sqm_empty,h as sqm_portal_container,c as sqm_text,p as sqm_titled_section}
@@ -1,4 +1,4 @@
1
- import{r as e,h as o}from"./p-c7c11325.js";import{k as t,f as a,n as r}from"./p-63e29387.js";import{d as n,H as i,J as d,B as c,F as s,w as l,$ as m,i as g}from"./p-8e2bead4.js";import{c as h}from"./p-c1086930.js";import{g as u}from"./p-6951663b.js";import"./p-cef45012.js";import{a as p}from"./p-862845d7.js";import{Q as w}from"./p-692bacf3.js";const v=n.gql`
1
+ import{r as e,h as o}from"./p-c7c11325.js";import{k as t,f as a,n as r}from"./p-63e29387.js";import{d as n,H as i,J as c,B as d,F as s,w as l,$ as m,i as g}from"./p-0ec54f97.js";import{c as h}from"./p-c1086930.js";import{g as u}from"./p-6951663b.js";import"./p-cef45012.js";import{a as p}from"./p-9c79ab08.js";import{Q as w}from"./p-692bacf3.js";const v=n.gql`
2
2
  query shareLink($programId: ID, $engagementMedium: UserEngagementMedium!) {
3
3
  user: viewer {
4
4
  ... on User {
@@ -14,4 +14,4 @@ import{r as e,h as o}from"./p-c7c11325.js";import{k as t,f as a,n as r}from"./p-
14
14
  mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
15
15
  createUserAnalyticsEvent(eventMeta: $eventMeta)
16
16
  }
17
- `,C=class{constructor(o){e(this,o),this.titleText="Share your QR code",this.viewCodeText="View QR code",this.downloadCodeText="Download",this.printCodeText="Print",this.errorHeaderText="There was an error loading your QR code",this.errorDescriptionText="Please refresh this page and try again",this.hideTitle=!1,this.alignment="center",r(this)}disconnectedCallback(){}render(){const e=u(this),r=g()?function(e){const[o,a]=t(!1);return h({dialogIsOpen:o,hideTitle:e.hideTitle,showDialog:()=>a(!0),hideDialog:()=>a(!1),titleText:e.titleText,viewCodeText:e.viewCodeText,downloadCodeText:e.downloadCodeText,printCodeText:e.printCodeText,alignment:e.alignment,qrLink:"https://media.istockphoto.com/id/1251071788/vector/qr-code-bar-code-black-icon-digital-technology.jpg?s=612x612&w=0&k=20&c=maw4OqMSEegAdSo8Drm9HO7i1ddddvP2YaL1UuWbRig=",fireViewQrEvent:()=>{console.log("View QR Code clicked")},createDownloadable:async()=>{console.log("Download QR Code clicked")},createPrintable:async()=>{console.log("Print QR Code clicked")}},e.demoData||{},{arrayMerge:(e,o)=>o})}(e):function(e){var o;const r=i(),n=d(),g=c(),h=s(p),[u,w]=t(null),[C,R]=t(!1),[y,q]=t(!1),{data:E,loading:M}=l(v,{programId:r,engagementMedium:g},!(null==n?void 0:n.jwt)||void 0!==(null==h?void 0:h.shareLink)),[b]=m(f),k=null===(o=null==E?void 0:E.user)||void 0===o?void 0:o.shareLink,I=`${k}?qrCode`,Q=M||y;a((()=>{k&&(async()=>{q(!0);try{const e=await fetch(`${k}?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0`),o=await e.blob(),t=URL.createObjectURL(o);w(t)}catch(e){R(!0)}finally{q(!1)}})()}),[k]);const $=async()=>{b({eventMeta:{programId:r,id:null==n?void 0:n.id,accountId:null==n?void 0:n.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:g,shareMedium:"DIRECT"}}})};return{...e,loading:Q,qrLink:u,error:C,createDownloadable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=800&qrCodeImageFormat=png`),o=await e.blob(),t=URL.createObjectURL(o);o&&$();const a=document.createElement("a");a.href=t,a.download="qrCode.png",document.body.appendChild(a),a.click(),document.body.removeChild(a)}catch(e){console.error("Failed to fetch QR code:",e),R(!0)}},createPrintable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=1000&qrCodeImageFormat=png&qrCodeErrorCorrectionLevel=H`),o=await e.blob(),t=URL.createObjectURL(o);o&&$();const a=window.open("about:blank","_new"),r=a.document.createElement("img");r.src=t,r.onload=()=>{a.print(),a.close()},a.document.body.appendChild(r)}catch(e){console.error("Failed to fetch QR code: ",e),R(!0)}}}}(e);return o(w,Object.assign({},r))}};export{C as sqm_qr_code}
17
+ `,C=class{constructor(o){e(this,o),this.titleText="Share your QR code",this.viewCodeText="View QR code",this.downloadCodeText="Download",this.printCodeText="Print",this.errorHeaderText="There was an error loading your QR code",this.errorDescriptionText="Please refresh this page and try again",this.hideTitle=!1,this.alignment="center",r(this)}disconnectedCallback(){}render(){const e=u(this),r=g()?function(e){const[o,a]=t(!1);return h({dialogIsOpen:o,hideTitle:e.hideTitle,showDialog:()=>a(!0),hideDialog:()=>a(!1),titleText:e.titleText,viewCodeText:e.viewCodeText,downloadCodeText:e.downloadCodeText,printCodeText:e.printCodeText,alignment:e.alignment,qrLink:"https://media.istockphoto.com/id/1251071788/vector/qr-code-bar-code-black-icon-digital-technology.jpg?s=612x612&w=0&k=20&c=maw4OqMSEegAdSo8Drm9HO7i1ddddvP2YaL1UuWbRig=",fireViewQrEvent:()=>{console.log("View QR Code clicked")},createDownloadable:async()=>{console.log("Download QR Code clicked")},createPrintable:async()=>{console.log("Print QR Code clicked")}},e.demoData||{},{arrayMerge:(e,o)=>o})}(e):function(e){var o;const r=i(),n=c(),g=d(),h=s(p),[u,w]=t(null),[C,R]=t(!1),[y,q]=t(!1),{data:E,loading:M}=l(v,{programId:r,engagementMedium:g},!(null==n?void 0:n.jwt)||void 0!==(null==h?void 0:h.shareLink)),[b]=m(f),k=null===(o=null==E?void 0:E.user)||void 0===o?void 0:o.shareLink,I=`${k}?qrCode`,Q=M||y;a((()=>{k&&(async()=>{q(!0);try{const e=await fetch(`${k}?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0`),o=await e.blob(),t=URL.createObjectURL(o);w(t)}catch(e){R(!0)}finally{q(!1)}})()}),[k]);const $=async()=>{b({eventMeta:{programId:r,id:null==n?void 0:n.id,accountId:null==n?void 0:n.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:g,shareMedium:"DIRECT"}}})};return{...e,loading:Q,qrLink:u,error:C,createDownloadable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=800&qrCodeImageFormat=png`),o=await e.blob(),t=URL.createObjectURL(o);o&&$();const a=document.createElement("a");a.href=t,a.download="qrCode.png",document.body.appendChild(a),a.click(),document.body.removeChild(a)}catch(e){console.error("Failed to fetch QR code:",e),R(!0)}},createPrintable:async()=>{try{const e=await fetch(`${I}&qrCodeSize=1000&qrCodeImageFormat=png&qrCodeErrorCorrectionLevel=H`),o=await e.blob(),t=URL.createObjectURL(o);o&&$();const a=window.open("about:blank","_new"),r=a.document.createElement("img");r.src=t,r.onload=()=>{a.print(),a.close()},a.document.body.appendChild(r)}catch(e){console.error("Failed to fetch QR code: ",e),R(!0)}}}}(e);return o(w,Object.assign({},r))}};export{C as sqm_qr_code}