@beamimpact/web-sdk 1.48.0 → 1.50.1

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 (278) hide show
  1. package/dist/chunks/_share-dialog-dependencies-RmYWlyJ0.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-RmYWlyJ0.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-yCBFjXxQ.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-yCBFjXxQ.esm.js.map +1 -0
  5. package/dist/chunks/beam-errors-AMvTvR1C.esm.js +2 -0
  6. package/dist/chunks/beam-errors-AMvTvR1C.esm.js.map +1 -0
  7. package/dist/chunks/{beam-errors-fXDkG1zo.esm.d.ts → beam-errors-bKCZlkvr.esm.d.ts} +2 -7
  8. package/dist/chunks/cart-contents-6_ztOjrx.esm.d.ts +18 -0
  9. package/dist/chunks/cart-contents-h60geKWa.esm.js.map +1 -1
  10. package/dist/chunks/enforce-config-S8EGgEnO.esm.js +3 -0
  11. package/dist/chunks/enforce-config-S8EGgEnO.esm.js.map +1 -0
  12. package/dist/chunks/enforce-config-l-tNb_z7.esm.js +3 -0
  13. package/dist/chunks/enforce-config-l-tNb_z7.esm.js.map +1 -0
  14. package/dist/chunks/events-T3hYV1LF.esm.js +2 -0
  15. package/dist/chunks/events-T3hYV1LF.esm.js.map +1 -0
  16. package/dist/chunks/{events-ZCTR9JGZ.esm.d.ts → events-u_8n2LIU.esm.d.ts} +33 -4
  17. package/dist/chunks/{index-PA0NAKHV.esm.d.ts → index-0X3JKFYs.esm.d.ts} +1 -1
  18. package/dist/chunks/{index-XH3OS_sy.esm.d.ts → index-2qmtuEV_.esm.d.ts} +4 -4
  19. package/dist/chunks/index-44clOvXJ.esm.js +2 -0
  20. package/dist/chunks/index-44clOvXJ.esm.js.map +1 -0
  21. package/dist/chunks/index-B-9JPaCH.esm.js +2 -0
  22. package/dist/chunks/index-B-9JPaCH.esm.js.map +1 -0
  23. package/dist/chunks/{index-M7Ut5U3j.esm.js → index-CNVMNDM4.esm.js} +2 -2
  24. package/dist/chunks/index-CNVMNDM4.esm.js.map +1 -0
  25. package/dist/chunks/{index-XHm2EBaD.esm.js → index-HVGMpZIV.esm.js} +2 -2
  26. package/dist/chunks/{index-XHm2EBaD.esm.js.map → index-HVGMpZIV.esm.js.map} +1 -1
  27. package/dist/chunks/{index-WvOCqhxv.esm.js → index-UHchr4H_.esm.js} +2 -2
  28. package/dist/chunks/index-UHchr4H_.esm.js.map +1 -0
  29. package/dist/chunks/{index-JJjxnRZK.esm.js → index-XPlAZw7t.esm.js} +2 -2
  30. package/dist/chunks/{index-JJjxnRZK.esm.js.map → index-XPlAZw7t.esm.js.map} +1 -1
  31. package/dist/chunks/{index-v6fG3D6u.esm.d.ts → index-bhqIqVQJ.esm.d.ts} +1 -1
  32. package/dist/chunks/{index--z5MSe4-.esm.d.ts → index-cznI-EZa.esm.d.ts} +1 -1
  33. package/dist/chunks/index-dLnZQZlT.esm.js +2 -0
  34. package/dist/chunks/index-dLnZQZlT.esm.js.map +1 -0
  35. package/dist/chunks/index-f7fp9odj.esm.js +2 -0
  36. package/dist/chunks/index-f7fp9odj.esm.js.map +1 -0
  37. package/dist/chunks/index-kFulvjM4.esm.js +2 -0
  38. package/dist/chunks/index-kFulvjM4.esm.js.map +1 -0
  39. package/dist/chunks/index-m1LRybiJ.esm.js +2 -0
  40. package/dist/chunks/index-m1LRybiJ.esm.js.map +1 -0
  41. package/dist/chunks/index-puZGYsUA.esm.d.ts +46 -0
  42. package/dist/chunks/index-q2vZ79t1.esm.d.ts +46 -0
  43. package/dist/chunks/index-smGc5rsi.esm.js +2 -0
  44. package/dist/chunks/index-smGc5rsi.esm.js.map +1 -0
  45. package/dist/chunks/index-wz6Yfo37.esm.js +2 -0
  46. package/dist/chunks/index-wz6Yfo37.esm.js.map +1 -0
  47. package/dist/chunks/{localize-o-cYvHQf.esm.js → localize-7sMSg1W9.esm.js} +2 -2
  48. package/dist/chunks/{localize-o-cYvHQf.esm.js.map → localize-7sMSg1W9.esm.js.map} +1 -1
  49. package/dist/chunks/{localize-m-_ESmpk.esm.js → localize-OiRewTgu.esm.js} +2 -2
  50. package/dist/chunks/{localize-m-_ESmpk.esm.js.map → localize-OiRewTgu.esm.js.map} +1 -1
  51. package/dist/chunks/{openapi-spec-hjdK2L9Q.esm.d.ts → openapi-spec-bxGNhNMa.esm.d.ts} +332 -0
  52. package/dist/chunks/order-page-WPxvCNLM.esm.js +2 -0
  53. package/dist/chunks/{order-page-Z3WcYluU.esm.js.map → order-page-WPxvCNLM.esm.js.map} +1 -1
  54. package/dist/chunks/order-page-ZpOf35sP.esm.js +2 -0
  55. package/dist/chunks/{order-page-rrfJ4w9F.esm.js.map → order-page-ZpOf35sP.esm.js.map} +1 -1
  56. package/dist/chunks/{order-page-9clVUPaS.esm.d.ts → order-page-dlXIs0gJ.esm.d.ts} +6 -4
  57. package/dist/chunks/promo-types-aQ_hre6t.esm.d.ts +14 -0
  58. package/dist/chunks/promoManager--3WXq4at.esm.js +2 -0
  59. package/dist/chunks/promoManager--3WXq4at.esm.js.map +1 -0
  60. package/dist/chunks/promoManager-YUzbMtwY.esm.js +2 -0
  61. package/dist/chunks/promoManager-YUzbMtwY.esm.js.map +1 -0
  62. package/dist/chunks/routes-YPOoVIR2.esm.js +2 -0
  63. package/dist/chunks/routes-YPOoVIR2.esm.js.map +1 -0
  64. package/dist/chunks/{routes-iurI6dvR.esm.d.ts → routes-lGXt7ttd.esm.d.ts} +76 -3
  65. package/dist/chunks/routes-o-phF_L1.esm.js +2 -0
  66. package/dist/chunks/routes-o-phF_L1.esm.js.map +1 -0
  67. package/dist/chunks/{share-button-k_Xn5956.esm.js → share-button-EsUPw38-.esm.js} +2 -2
  68. package/dist/chunks/{share-button-diP8wKOc.esm.js.map → share-button-EsUPw38-.esm.js.map} +1 -1
  69. package/dist/chunks/{share-button-diP8wKOc.esm.js → share-button-r0y-bbwR.esm.js} +2 -2
  70. package/dist/chunks/{share-button-k_Xn5956.esm.js.map → share-button-r0y-bbwR.esm.js.map} +1 -1
  71. package/dist/chunks/{shoelace-components-wBxNHnyr.esm.js → shoelace-components-PB22pjfM.esm.js} +2 -2
  72. package/dist/chunks/{shoelace-components-wBxNHnyr.esm.js.map → shoelace-components-PB22pjfM.esm.js.map} +1 -1
  73. package/dist/chunks/{shoelace-components-xrhk189_.esm.js → shoelace-components-lr4iB8kL.esm.js} +2 -2
  74. package/dist/chunks/{shoelace-components-xrhk189_.esm.js.map → shoelace-components-lr4iB8kL.esm.js.map} +1 -1
  75. package/dist/chunks/{types-zbTZ8-KP.esm.d.ts → types-IbMT3Nwn.esm.d.ts} +5 -1
  76. package/dist/chunks/{update-cart-l86bU5uS.esm.d.ts → update-cart-JO4fuiim.esm.d.ts} +1 -1
  77. package/dist/chunks/update-cart-UuMHYehB.esm.js +2 -0
  78. package/dist/chunks/update-cart-UuMHYehB.esm.js.map +1 -0
  79. package/dist/chunks/update-cart-mNsQ9K-k.esm.js +2 -0
  80. package/dist/chunks/update-cart-mNsQ9K-k.esm.js.map +1 -0
  81. package/dist/components/community-impact.d.ts +1 -1
  82. package/dist/components/community-impact.esm.js +1 -1
  83. package/dist/components/community-impact.js +1 -1
  84. package/dist/components/cumulative-impact.d.ts +1 -1
  85. package/dist/components/cumulative-impact.esm.js +1 -1
  86. package/dist/components/cumulative-impact.js +1 -1
  87. package/dist/components/impact-overview.d.ts +6 -2
  88. package/dist/components/impact-overview.esm.js +2 -2
  89. package/dist/components/impact-overview.esm.js.map +1 -1
  90. package/dist/components/impact-overview.js +2 -2
  91. package/dist/components/impact-overview.js.map +1 -1
  92. package/dist/components/index.d.ts +4 -4
  93. package/dist/components/index.esm.js +1 -1
  94. package/dist/components/index.js +1 -1
  95. package/dist/components/post-purchase.d.ts +11 -3
  96. package/dist/components/post-purchase.esm.js +4 -4
  97. package/dist/components/post-purchase.esm.js.map +1 -1
  98. package/dist/components/post-purchase.js +4 -4
  99. package/dist/components/post-purchase.js.map +1 -1
  100. package/dist/components/product-details-page.d.ts +23 -4
  101. package/dist/components/product-details-page.esm.js +24 -24
  102. package/dist/components/product-details-page.esm.js.map +1 -1
  103. package/dist/components/product-details-page.js +24 -24
  104. package/dist/components/product-details-page.js.map +1 -1
  105. package/dist/components/redeem-transaction.d.ts +5 -14
  106. package/dist/components/redeem-transaction.esm.js +27 -27
  107. package/dist/components/redeem-transaction.esm.js.map +1 -1
  108. package/dist/components/redeem-transaction.js +27 -27
  109. package/dist/components/redeem-transaction.js.map +1 -1
  110. package/dist/components/select-nonprofit.d.ts +10 -3
  111. package/dist/components/select-nonprofit.esm.js +50 -45
  112. package/dist/components/select-nonprofit.esm.js.map +1 -1
  113. package/dist/components/select-nonprofit.js +50 -45
  114. package/dist/components/select-nonprofit.js.map +1 -1
  115. package/dist/components/select-subscription-nonprofit.d.ts +1 -1
  116. package/dist/components/select-subscription-nonprofit.esm.js +1 -1
  117. package/dist/components/select-subscription-nonprofit.js +1 -1
  118. package/dist/components/shopify.d.ts +8 -7
  119. package/dist/components/shopify.esm.js +1 -1
  120. package/dist/components/shopify.esm.js.map +1 -1
  121. package/dist/components/shopify.js +1 -1
  122. package/dist/components/shopify.js.map +1 -1
  123. package/dist/components/social-share.d.ts +1 -1
  124. package/dist/components/social-share.esm.js +1 -1
  125. package/dist/components/social-share.js +1 -1
  126. package/dist/components/subscription-impact.d.ts +2 -1
  127. package/dist/components/subscription-impact.esm.js +1 -1
  128. package/dist/components/subscription-impact.js +1 -1
  129. package/dist/components/subscription-management.d.ts +15 -4
  130. package/dist/components/subscription-management.esm.js +1 -1
  131. package/dist/components/subscription-management.js +1 -1
  132. package/dist/index.d.ts +16 -14
  133. package/dist/index.esm.js +1 -1
  134. package/dist/index.js +1 -1
  135. package/dist/integrations/beam.d.ts +1 -1
  136. package/dist/integrations/beam.esm.js +1 -1
  137. package/dist/integrations/beam.js +1 -1
  138. package/dist/integrations/cart.d.ts +3 -3
  139. package/dist/integrations/cart.esm.js +1 -1
  140. package/dist/integrations/cart.js +1 -1
  141. package/dist/integrations/index.d.ts +14 -12
  142. package/dist/integrations/index.esm.js +1 -1
  143. package/dist/integrations/index.js +1 -1
  144. package/dist/integrations/logs.d.ts +2 -2
  145. package/dist/integrations/logs.esm.js +1 -1
  146. package/dist/integrations/logs.js +1 -1
  147. package/dist/integrations/promoManager.d.ts +36 -0
  148. package/dist/integrations/promoManager.esm.js +2 -0
  149. package/dist/integrations/promoManager.esm.js.map +1 -0
  150. package/dist/integrations/promoManager.js +2 -0
  151. package/dist/integrations/promoManager.js.map +1 -0
  152. package/dist/integrations/session.esm.js +1 -1
  153. package/dist/integrations/session.js +1 -1
  154. package/dist/integrations/shopify.d.ts +6 -6
  155. package/dist/integrations/shopify.esm.js +1 -1
  156. package/dist/integrations/shopify.js +1 -1
  157. package/dist/integrations/statsig.d.ts +1 -1
  158. package/dist/integrations/statsig.esm.js +1 -1
  159. package/dist/integrations/statsig.js +1 -1
  160. package/dist/integrations/utils.d.ts +7 -5
  161. package/dist/integrations/utils.esm.js +1 -1
  162. package/dist/integrations/utils.js +1 -1
  163. package/dist/react/community-impact.d.ts +1 -1
  164. package/dist/react/community-impact.esm.js +1 -1
  165. package/dist/react/community-impact.js +1 -1
  166. package/dist/react/cumulative-impact.d.ts +1 -1
  167. package/dist/react/cumulative-impact.esm.js +1 -1
  168. package/dist/react/cumulative-impact.js +1 -1
  169. package/dist/react/impact-overview.d.ts +1 -1
  170. package/dist/react/impact-overview.esm.js +1 -1
  171. package/dist/react/impact-overview.js +1 -1
  172. package/dist/react/index.d.ts +6 -5
  173. package/dist/react/index.esm.js +1 -1
  174. package/dist/react/index.js +1 -1
  175. package/dist/react/post-purchase.d.ts +3 -3
  176. package/dist/react/post-purchase.esm.js +1 -1
  177. package/dist/react/post-purchase.esm.js.map +1 -1
  178. package/dist/react/post-purchase.js +1 -1
  179. package/dist/react/post-purchase.js.map +1 -1
  180. package/dist/react/product-details-page.d.ts +1 -1
  181. package/dist/react/product-details-page.esm.js +1 -1
  182. package/dist/react/product-details-page.esm.js.map +1 -1
  183. package/dist/react/product-details-page.js +1 -1
  184. package/dist/react/product-details-page.js.map +1 -1
  185. package/dist/react/redeem-transaction.d.ts +5 -4
  186. package/dist/react/redeem-transaction.esm.js +1 -1
  187. package/dist/react/redeem-transaction.js +1 -1
  188. package/dist/react/select-nonprofit.d.ts +5 -4
  189. package/dist/react/select-nonprofit.esm.js +1 -1
  190. package/dist/react/select-nonprofit.esm.js.map +1 -1
  191. package/dist/react/select-nonprofit.js +1 -1
  192. package/dist/react/select-nonprofit.js.map +1 -1
  193. package/dist/react/select-subscription-nonprofit.d.ts +5 -4
  194. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  195. package/dist/react/select-subscription-nonprofit.js +1 -1
  196. package/dist/react/social-share.d.ts +1 -1
  197. package/dist/react/social-share.esm.js +1 -1
  198. package/dist/react/social-share.js +1 -1
  199. package/dist/react/subscription-impact.d.ts +1 -1
  200. package/dist/react/subscription-impact.esm.js +1 -1
  201. package/dist/react/subscription-impact.js +1 -1
  202. package/dist/react/subscription-management.d.ts +4 -4
  203. package/dist/react/subscription-management.esm.js +1 -1
  204. package/dist/react/subscription-management.js +1 -1
  205. package/dist/utils/beam-errors.d.ts +1 -1
  206. package/dist/utils/beam-errors.esm.js +1 -1
  207. package/dist/utils/beam-errors.js +1 -1
  208. package/dist/utils/cart.esm.js +1 -1
  209. package/dist/utils/cart.js +1 -1
  210. package/dist/utils/cookies.esm.js +1 -1
  211. package/dist/utils/cookies.esm.js.map +1 -1
  212. package/dist/utils/cookies.js +1 -1
  213. package/dist/utils/cookies.js.map +1 -1
  214. package/dist/utils/events.d.ts +5 -4
  215. package/dist/utils/events.esm.js +1 -1
  216. package/dist/utils/events.js +1 -1
  217. package/dist/utils/index.d.ts +7 -5
  218. package/dist/utils/index.esm.js +1 -1
  219. package/dist/utils/index.js +1 -1
  220. package/dist/utils/local-storage.esm.js +1 -1
  221. package/dist/utils/local-storage.js +1 -1
  222. package/dist/utils/network-listeners.esm.js +1 -1
  223. package/dist/utils/network-listeners.esm.js.map +1 -1
  224. package/dist/utils/network-listeners.js +1 -1
  225. package/dist/utils/network-listeners.js.map +1 -1
  226. package/dist/utils/promoManager.d.ts +123 -0
  227. package/dist/utils/promoManager.esm.js +2 -0
  228. package/dist/utils/promoManager.esm.js.map +1 -0
  229. package/dist/utils/promoManager.js +2 -0
  230. package/dist/utils/promoManager.js.map +1 -0
  231. package/dist/utils/remote-session.esm.js +1 -1
  232. package/dist/utils/remote-session.js +1 -1
  233. package/dist/utils/wait-for-element.esm.js +1 -1
  234. package/dist/utils/wait-for-element.js +1 -1
  235. package/package.json +2 -2
  236. package/dist/chunks/_share-dialog-dependencies-2jzbs44g.esm.js +0 -2
  237. package/dist/chunks/_share-dialog-dependencies-2jzbs44g.esm.js.map +0 -1
  238. package/dist/chunks/_share-dialog-dependencies-C8uChjuF.esm.js +0 -2
  239. package/dist/chunks/_share-dialog-dependencies-C8uChjuF.esm.js.map +0 -1
  240. package/dist/chunks/beam-errors-P-Lu07Ce.esm.js +0 -2
  241. package/dist/chunks/beam-errors-P-Lu07Ce.esm.js.map +0 -1
  242. package/dist/chunks/cart-contents-CMm57qu0.esm.d.ts +0 -11
  243. package/dist/chunks/enforce-config-ZAI7WYAd.esm.js +0 -3
  244. package/dist/chunks/enforce-config-ZAI7WYAd.esm.js.map +0 -1
  245. package/dist/chunks/enforce-config-ZyPq_4CF.esm.js +0 -3
  246. package/dist/chunks/enforce-config-ZyPq_4CF.esm.js.map +0 -1
  247. package/dist/chunks/events-6Z5MkCRr.esm.js +0 -2
  248. package/dist/chunks/events-6Z5MkCRr.esm.js.map +0 -1
  249. package/dist/chunks/index-2bLOkP4H.esm.d.ts +0 -32
  250. package/dist/chunks/index-CsWTfuok.esm.js +0 -2
  251. package/dist/chunks/index-CsWTfuok.esm.js.map +0 -1
  252. package/dist/chunks/index-GynYZRPI.esm.d.ts +0 -32
  253. package/dist/chunks/index-M7Ut5U3j.esm.js.map +0 -1
  254. package/dist/chunks/index-MIp7LlXH.esm.js +0 -2
  255. package/dist/chunks/index-MIp7LlXH.esm.js.map +0 -1
  256. package/dist/chunks/index-WvOCqhxv.esm.js.map +0 -1
  257. package/dist/chunks/index-YJNgLCif.esm.js +0 -2
  258. package/dist/chunks/index-YJNgLCif.esm.js.map +0 -1
  259. package/dist/chunks/index-a6oXV2ro.esm.js +0 -2
  260. package/dist/chunks/index-a6oXV2ro.esm.js.map +0 -1
  261. package/dist/chunks/index-dkwGkvOu.esm.js +0 -2
  262. package/dist/chunks/index-dkwGkvOu.esm.js.map +0 -1
  263. package/dist/chunks/index-iK195-B9.esm.js +0 -2
  264. package/dist/chunks/index-iK195-B9.esm.js.map +0 -1
  265. package/dist/chunks/index-nstmHC95.esm.js +0 -2
  266. package/dist/chunks/index-nstmHC95.esm.js.map +0 -1
  267. package/dist/chunks/index-vq14EaW4.esm.js +0 -2
  268. package/dist/chunks/index-vq14EaW4.esm.js.map +0 -1
  269. package/dist/chunks/order-page-Z3WcYluU.esm.js +0 -2
  270. package/dist/chunks/order-page-rrfJ4w9F.esm.js +0 -2
  271. package/dist/chunks/routes-Dmf2ZNnZ.esm.js +0 -2
  272. package/dist/chunks/routes-Dmf2ZNnZ.esm.js.map +0 -1
  273. package/dist/chunks/routes-o1QpF40R.esm.js +0 -2
  274. package/dist/chunks/routes-o1QpF40R.esm.js.map +0 -1
  275. package/dist/chunks/update-cart-EGTcbNRX.esm.js +0 -2
  276. package/dist/chunks/update-cart-EGTcbNRX.esm.js.map +0 -1
  277. package/dist/chunks/update-cart-FwtFnnGe.esm.js +0 -2
  278. package/dist/chunks/update-cart-FwtFnnGe.esm.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{y as m,m as I,f as D,g as p,t as L,h as M,q as F,u as x,k as P}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as W}from"../chunks/lodash-P8OIs-at.esm.js";import{D as A,f as U,u as R,W as _,S as z}from"../chunks/routes-o1QpF40R.esm.js";import{u as d,A as C,d as u,a as E,_ as N,i as l}from"../chunks/localize-m-_ESmpk.esm.js";import{p as H}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as j,d as K,e as v}from"../chunks/enforce-config-ZyPq_4CF.esm.js";import{_ as O}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as k}from"../utils/makeApiKeyHeader.js";import{B as G}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{createScopedLocalStorage as Y}from"../utils/local-storage.js";import{c as q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import{b as V}from"../chunks/events-6Z5MkCRr.esm.js";import"./beam-partner-logos.js";import"../utils/logger.js";const J=({height:r="1em",width:o="1em"}={})=>m`
1
+ import{y as m,m as I,f as D,g as p,t as L,h as M,q as F,u as x,k as P}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as W}from"../chunks/lodash-P8OIs-at.esm.js";import{D as A,f as U,u as R,W as _,S as z}from"../chunks/routes-YPOoVIR2.esm.js";import{u as d,A as C,d as u,a as E,_ as N,i as l}from"../chunks/localize-OiRewTgu.esm.js";import{p as H}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as j,d as K,e as v}from"../chunks/enforce-config-S8EGgEnO.esm.js";import{_ as O}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as k}from"../utils/makeApiKeyHeader.js";import{B as G}from"../chunks/beam-errors-AMvTvR1C.esm.js";import{createScopedLocalStorage as Y}from"../utils/local-storage.js";import{c as q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import{c as V}from"../chunks/events-T3hYV1LF.esm.js";import"./beam-partner-logos.js";import"../utils/logger.js";const J=({height:r="1em",width:o="1em"}={})=>m`
2
2
  <svg
3
3
  style="${I({height:r,width:o,position:"relative",bottom:"0"})}"
4
4
  xmlns="http://www.w3.org/2000/svg"
@@ -1,12 +1,13 @@
1
1
  import { waitForElement } from '../utils/wait-for-element.js';
2
2
  export { initNetworkListeners } from '../utils/network-listeners.js';
3
- export { e as events } from '../chunks/events-ZCTR9JGZ.esm.js';
4
- export { B as BeamShopifyCartIntegrationConfig, T as TBeamOrderPageParams, a as addBeamAttributesToCart, c as appendBeamAttributesToCart, b as appendStatsigToShopifyCartAttributes, g as getCurrentCart, d as getShopifyCart, r as registerCartIntegration, s as showBeamOrderPageWidgets, t as trackCart } from '../chunks/order-page-9clVUPaS.esm.js';
5
- import '../chunks/cart-contents-CMm57qu0.esm.js';
6
- import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
7
- import '../chunks/types-zbTZ8-KP.esm.js';
3
+ export { e as events } from '../chunks/events-u_8n2LIU.esm.js';
4
+ export { B as BeamShopifyCartIntegrationConfig, T as TBeamOrderPageParams, a as addBeamAttributesToCart, c as appendBeamAttributesToCart, b as appendStatsigToShopifyCartAttributes, g as getCurrentCart, d as getShopifyCart, r as registerCartIntegration, s as showBeamOrderPageWidgets, t as trackCart } from '../chunks/order-page-dlXIs0gJ.esm.js';
5
+ import '../chunks/cart-contents-6_ztOjrx.esm.js';
6
+ import '../chunks/openapi-spec-bxGNhNMa.esm.js';
7
+ import '../chunks/promo-types-aQ_hre6t.esm.js';
8
+ import '../chunks/types-IbMT3Nwn.esm.js';
8
9
  import 'lodash';
9
- import '../chunks/update-cart-l86bU5uS.esm.js';
10
+ import '../chunks/update-cart-JO4fuiim.esm.js';
10
11
  import '../chunks/types-aju0qrRe.esm.js';
11
12
  import './post-purchase.js';
12
13
  import 'lit';
@@ -17,7 +18,7 @@ import '../chunks/promo-pill-label-3bA1z-la.esm.js';
17
18
  import './beam-partner-logos.js';
18
19
  import './impact-overview.js';
19
20
  import '../chunks/share-button-hDn8fnBI.esm.js';
20
- import '../chunks/routes-iurI6dvR.esm.js';
21
+ import '../chunks/routes-lGXt7ttd.esm.js';
21
22
 
22
23
  /**
23
24
  * @deprecated
@@ -1,2 +1,2 @@
1
- import{waitForElement as t}from"../utils/wait-for-element.esm.js";import{getCookieMap as r,getCookieValue as o}from"../utils/cookies.esm.js";import{initNetworkListeners as L}from"../utils/network-listeners.esm.js";import{e as O}from"../chunks/events-6Z5MkCRr.esm.js";import{H as W,g as _,S as j,_ as q,v as z,F as D,s as J,G as K}from"../chunks/order-page-rrfJ4w9F.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/logger.esm.js";import"../utils/local-storage.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-FwtFnnGe.esm.js";import"../chunks/routes-Dmf2ZNnZ.esm.js";import"../utils/remote-session.esm.js";import"../utils/cart.esm.js";import"./post-purchase.esm.js";import"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"./redeem-transaction.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"./impact-overview.esm.js";import"../chunks/shoelace-components-xrhk189_.esm.js";import"../chunks/share-button-k_Xn5956.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{W as addBeamAttributesToCart,_ as appendBeamAttributesToCart,j as appendStatsigToShopifyCartAttributes,O as events,q as getCurrentCart,z as getShopifyCart,L as initNetworkListeners,D as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart,i as utils};
1
+ import{waitForElement as t}from"../utils/wait-for-element.esm.js";import{getCookieMap as r,getCookieValue as o}from"../utils/cookies.esm.js";import{initNetworkListeners as N}from"../utils/network-listeners.esm.js";import{e as P}from"../chunks/events-T3hYV1LF.esm.js";import{H as _,g as j,S as q,_ as z,v as D,F as J,s as K,G as Q}from"../chunks/order-page-WPxvCNLM.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/logger.esm.js";import"../utils/local-storage.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/promoManager-YUzbMtwY.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-UuMHYehB.esm.js";import"../chunks/routes-o-phF_L1.esm.js";import"../utils/remote-session.esm.js";import"../utils/cart.esm.js";import"./post-purchase.esm.js";import"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/enforce-config-l-tNb_z7.esm.js";import"../chunks/localize-7sMSg1W9.esm.js";import"./redeem-transaction.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"./impact-overview.esm.js";import"../chunks/shoelace-components-PB22pjfM.esm.js";import"../chunks/share-button-r0y-bbwR.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{_ as addBeamAttributesToCart,j as appendBeamAttributesToCart,q as appendStatsigToShopifyCartAttributes,P as events,z as getCurrentCart,D as getShopifyCart,N as initNetworkListeners,J as registerCartIntegration,K as showBeamOrderPageWidgets,Q as trackCart,i as utils};
2
2
  //# sourceMappingURL=shopify.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shopify.esm.js","sources":["../../src/components/shopify/index.ts"],"sourcesContent":["/**\n * @deprecated\n * This file is preserved for backwards compatability, but future users should import from:\n * - integrations/shopify\n * - integration/utils\n * */\n\nimport { waitForElement } from \"../../utils/wait-for-element\";\nimport { getCookieMap, getCookieValue } from \"../../utils/cookies\";\n\nconst utils = {\n waitForElement,\n getCookieMap,\n getCookieValue,\n};\n\nexport { utils };\nexport { initNetworkListeners } from \"../../utils/network-listeners\";\nexport * as events from \"../../utils/events\";\n\nexport * from \"../../integrations/shopify\";\n"],"names":["utils","waitForElement","getCookieMap","getCookieValue"],"mappings":"i/CAUA,MAAMA,EAAQ,CACZ,eAAAC,EACA,aAAAC,EACA,eAAAC,CACF"}
1
+ {"version":3,"file":"shopify.esm.js","sources":["../../src/components/shopify/index.ts"],"sourcesContent":["/**\n * @deprecated\n * This file is preserved for backwards compatability, but future users should import from:\n * - integrations/shopify\n * - integration/utils\n * */\n\nimport { waitForElement } from \"../../utils/wait-for-element\";\nimport { getCookieMap, getCookieValue } from \"../../utils/cookies\";\n\nconst utils = {\n waitForElement,\n getCookieMap,\n getCookieValue,\n};\n\nexport { utils };\nexport { initNetworkListeners } from \"../../utils/network-listeners\";\nexport * as events from \"../../utils/events\";\n\nexport * from \"../../integrations/shopify\";\n"],"names":["utils","waitForElement","getCookieMap","getCookieValue"],"mappings":"giDAUA,MAAMA,EAAQ,CACZ,eAAAC,EACA,aAAAC,EACA,eAAAC,CACF"}
@@ -1,2 +1,2 @@
1
- import{waitForElement as t}from"../utils/wait-for-element.js";import{getCookieMap as r,getCookieValue as o}from"../utils/cookies.js";import{initNetworkListeners as L}from"../utils/network-listeners.js";import{e as O}from"../chunks/events-6Z5MkCRr.esm.js";import{H as W,g as _,S as j,_ as q,v as z,F as D,s as J,G as K}from"../chunks/order-page-Z3WcYluU.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/logger.js";import"../utils/local-storage.js";import"../utils/memoize-last.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-EGTcbNRX.esm.js";import"../chunks/routes-o1QpF40R.esm.js";import"../utils/remote-session.js";import"../utils/cart.js";import"./post-purchase.js";import"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/localize-m-_ESmpk.esm.js";import"./redeem-transaction.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"./beam-partner-logos.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"./impact-overview.js";import"../chunks/shoelace-components-wBxNHnyr.esm.js";import"../chunks/share-button-diP8wKOc.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{W as addBeamAttributesToCart,_ as appendBeamAttributesToCart,j as appendStatsigToShopifyCartAttributes,O as events,q as getCurrentCart,z as getShopifyCart,L as initNetworkListeners,D as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart,i as utils};
1
+ import{waitForElement as t}from"../utils/wait-for-element.js";import{getCookieMap as r,getCookieValue as o}from"../utils/cookies.js";import{initNetworkListeners as N}from"../utils/network-listeners.js";import{e as P}from"../chunks/events-T3hYV1LF.esm.js";import{H as _,g as j,S as q,_ as z,v as D,F as J,s as K,G as Q}from"../chunks/order-page-ZpOf35sP.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/logger.js";import"../utils/local-storage.js";import"../utils/memoize-last.js";import"../chunks/promoManager--3WXq4at.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-mNsQ9K-k.esm.js";import"../chunks/routes-YPOoVIR2.esm.js";import"../utils/remote-session.js";import"../utils/cart.js";import"./post-purchase.js";import"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/enforce-config-S8EGgEnO.esm.js";import"../chunks/localize-OiRewTgu.esm.js";import"./redeem-transaction.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"./beam-partner-logos.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"./impact-overview.js";import"../chunks/shoelace-components-lr4iB8kL.esm.js";import"../chunks/share-button-EsUPw38-.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{_ as addBeamAttributesToCart,j as appendBeamAttributesToCart,q as appendStatsigToShopifyCartAttributes,P as events,z as getCurrentCart,D as getShopifyCart,N as initNetworkListeners,J as registerCartIntegration,K as showBeamOrderPageWidgets,Q as trackCart,i as utils};
2
2
  //# sourceMappingURL=shopify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shopify.js","sources":["../../src/components/shopify/index.ts"],"sourcesContent":["/**\n * @deprecated\n * This file is preserved for backwards compatability, but future users should import from:\n * - integrations/shopify\n * - integration/utils\n * */\n\nimport { waitForElement } from \"../../utils/wait-for-element\";\nimport { getCookieMap, getCookieValue } from \"../../utils/cookies\";\n\nconst utils = {\n waitForElement,\n getCookieMap,\n getCookieValue,\n};\n\nexport { utils };\nexport { initNetworkListeners } from \"../../utils/network-listeners\";\nexport * as events from \"../../utils/events\";\n\nexport * from \"../../integrations/shopify\";\n"],"names":["utils","waitForElement","getCookieMap","getCookieValue"],"mappings":"i8CAUA,MAAMA,EAAQ,CACZ,eAAAC,EACA,aAAAC,EACA,eAAAC,CACF"}
1
+ {"version":3,"file":"shopify.js","sources":["../../src/components/shopify/index.ts"],"sourcesContent":["/**\n * @deprecated\n * This file is preserved for backwards compatability, but future users should import from:\n * - integrations/shopify\n * - integration/utils\n * */\n\nimport { waitForElement } from \"../../utils/wait-for-element\";\nimport { getCookieMap, getCookieValue } from \"../../utils/cookies\";\n\nconst utils = {\n waitForElement,\n getCookieMap,\n getCookieValue,\n};\n\nexport { utils };\nexport { initNetworkListeners } from \"../../utils/network-listeners\";\nexport * as events from \"../../utils/events\";\n\nexport * from \"../../integrations/shopify\";\n"],"names":["utils","waitForElement","getCookieMap","getCookieValue"],"mappings":"g/CAUA,MAAMA,EAAQ,CACZ,eAAAC,EACA,aAAAC,EACA,eAAAC,CACF"}
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
3
3
  import * as lit_html from 'lit-html';
4
4
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
5
5
  import './beam-partner-logos.js';
6
- import { T as TNumericId } from '../chunks/types-zbTZ8-KP.esm.js';
6
+ import { T as TNumericId } from '../chunks/types-IbMT3Nwn.esm.js';
7
7
  import { L as LANGUAGES } from '../chunks/types-aju0qrRe.esm.js';
8
8
 
9
9
  type RequiredConfig = {
@@ -1,4 +1,4 @@
1
- import{f as m,g as s,t as n,h as g,y as b}from"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-xrhk189_.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"./beam-partner-logos.esm.js";import{c as f,d as y,e as u}from"../chunks/enforce-config-ZAI7WYAd.esm.js";import{D as w,S as x,W as I,g as U}from"../chunks/routes-Dmf2ZNnZ.esm.js";import{_ as S}from"../chunks/loading-template-t4fFsYtr.esm.js";import{u as p,s as r}from"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";var v=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(c,t,a,l)=>{for(var o=l>1?void 0:l?k(t,a):t,h=c.length-1,d;h>=0;h--)(d=c[h])&&(o=(l?d(t,a,o):d(o))||o);return l&&o&&v(t,a,o),o};class e extends g{constructor(){super(...arguments),this.baseUrl=w,this.lang="en",this.debug=!1,this.brandName=null,this.shareImageUrl=null,this.isMobile=!1,this.windowResized=!1,this.checkViewport=()=>{this.windowResized=window.innerWidth<=768}}get configLang(){return x[this.lang]||"en"}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.checkViewport),this.checkViewport()}disconnectedCallback(){window.removeEventListener("resize",this.checkViewport),super.disconnectedCallback()}async fetchImpactData(){u(["apiKey","storeId","nonprofitId"],this);try{return await U({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{storeId:this.storeId,personalImpactLimit:0,nonprofitId:this.nonprofitId,widgetName:I.community_impact,version:"1.0.0",lang:this.configLang,transactionId:this.transactionId??void 0}})}catch(t){throw this.debug&&console.error("Failed to fetch impact data",t),t}}async updateImpactData(){try{const t=await this.fetchImpactData();if(t&&(this.brandName=t.chain.name,this.shareImageUrl=t.promoAssetUrl||t.personalImpactAssetUrl||t.community[0].share.imageUrl,this.shareImageUrl)){const a=await p(this.shareImageUrl);this.file=a,this.dataUrl=URL.createObjectURL(a)}}catch(t){this.debug&&console.error("Error updating impact data:",t)}}async firstUpdated(){await this.updateImpactData(),this.isMobile=/Mobi|Android/i.test(navigator.userAgent)||"ontouchstart"in window||navigator.maxTouchPoints>0}async openSystemShareSheet(t){if(t)try{const a=await p(t);navigator.share&&this.brandName&&await navigator.share({files:[a],title:r[this.lang].impactShareTitle(),text:r[this.lang].impactShareText({brandName:this.brandName})})}catch(a){this.debug&&console.error("Failed to open share sheet",a)}}async handleClickCopy(){if(this.file)try{await navigator.clipboard.write([new ClipboardItem({"image/png":this.file})])}catch(t){this.debug&&console.error("Failed to copy image to clipboard:",t)}}handleClickDownload(t){const a=t.currentTarget;this.isMobile&&this.shareImageUrl?(t.preventDefault(),this.openSystemShareSheet(this.shareImageUrl)):this.dataUrl&&(a.href=this.dataUrl,a.download=r[this.lang].impactShareTitle())}render(){return!this.brandName||!this.shareImageUrl||!this.dataUrl?S():b`
1
+ import{f as m,g as s,t as n,h as g,y as b}from"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-PB22pjfM.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"./beam-partner-logos.esm.js";import{c as f,d as y,e as u}from"../chunks/enforce-config-l-tNb_z7.esm.js";import{D as w,S as x,W as I,g as U}from"../chunks/routes-o-phF_L1.esm.js";import{_ as S}from"../chunks/loading-template-t4fFsYtr.esm.js";import{u as p,s as r}from"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";var v=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(c,t,a,l)=>{for(var o=l>1?void 0:l?k(t,a):t,h=c.length-1,d;h>=0;h--)(d=c[h])&&(o=(l?d(t,a,o):d(o))||o);return l&&o&&v(t,a,o),o};class e extends g{constructor(){super(...arguments),this.baseUrl=w,this.lang="en",this.debug=!1,this.brandName=null,this.shareImageUrl=null,this.isMobile=!1,this.windowResized=!1,this.checkViewport=()=>{this.windowResized=window.innerWidth<=768}}get configLang(){return x[this.lang]||"en"}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.checkViewport),this.checkViewport()}disconnectedCallback(){window.removeEventListener("resize",this.checkViewport),super.disconnectedCallback()}async fetchImpactData(){u(["apiKey","storeId","nonprofitId"],this);try{return await U({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{storeId:this.storeId,personalImpactLimit:0,nonprofitId:this.nonprofitId,widgetName:I.community_impact,version:"1.0.0",lang:this.configLang,transactionId:this.transactionId??void 0}})}catch(t){throw this.debug&&console.error("Failed to fetch impact data",t),t}}async updateImpactData(){try{const t=await this.fetchImpactData();if(t&&(this.brandName=t.chain.name,this.shareImageUrl=t.promoAssetUrl||t.personalImpactAssetUrl||t.community[0].share.imageUrl,this.shareImageUrl)){const a=await p(this.shareImageUrl);this.file=a,this.dataUrl=URL.createObjectURL(a)}}catch(t){this.debug&&console.error("Error updating impact data:",t)}}async firstUpdated(){await this.updateImpactData(),this.isMobile=/Mobi|Android/i.test(navigator.userAgent)||"ontouchstart"in window||navigator.maxTouchPoints>0}async openSystemShareSheet(t){if(t)try{const a=await p(t);navigator.share&&this.brandName&&await navigator.share({files:[a],title:r[this.lang].impactShareTitle(),text:r[this.lang].impactShareText({brandName:this.brandName})})}catch(a){this.debug&&console.error("Failed to open share sheet",a)}}async handleClickCopy(){if(this.file)try{await navigator.clipboard.write([new ClipboardItem({"image/png":this.file})])}catch(t){this.debug&&console.error("Failed to copy image to clipboard:",t)}}handleClickDownload(t){const a=t.currentTarget;this.isMobile&&this.shareImageUrl?(t.preventDefault(),this.openSystemShareSheet(this.shareImageUrl)):this.dataUrl&&(a.href=this.dataUrl,a.download=r[this.lang].impactShareTitle())}render(){return!this.brandName||!this.shareImageUrl||!this.dataUrl?S():b`
2
2
  <div class="share-container ${this.windowResized||this.isMobile?"mobile":"desktop"}">
3
3
  <h2 class="share-title">${r[this.lang].impactShareTitle()}</h2>
4
4
  <p class="share-text">${r[this.lang].impactShareText({brandName:this.brandName})}</p>
@@ -1,4 +1,4 @@
1
- import{f as m,g as s,t as n,h as g,y as b}from"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-wBxNHnyr.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"./beam-partner-logos.js";import{c as f,d as y,e as u}from"../chunks/enforce-config-ZyPq_4CF.esm.js";import{D as w,S as x,W as I,g as U}from"../chunks/routes-o1QpF40R.esm.js";import{_ as S}from"../chunks/loading-template-t4fFsYtr.esm.js";import{u as p,s as r}from"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";var v=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(c,t,a,l)=>{for(var o=l>1?void 0:l?k(t,a):t,h=c.length-1,d;h>=0;h--)(d=c[h])&&(o=(l?d(t,a,o):d(o))||o);return l&&o&&v(t,a,o),o};class e extends g{constructor(){super(...arguments),this.baseUrl=w,this.lang="en",this.debug=!1,this.brandName=null,this.shareImageUrl=null,this.isMobile=!1,this.windowResized=!1,this.checkViewport=()=>{this.windowResized=window.innerWidth<=768}}get configLang(){return x[this.lang]||"en"}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.checkViewport),this.checkViewport()}disconnectedCallback(){window.removeEventListener("resize",this.checkViewport),super.disconnectedCallback()}async fetchImpactData(){u(["apiKey","storeId","nonprofitId"],this);try{return await U({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{storeId:this.storeId,personalImpactLimit:0,nonprofitId:this.nonprofitId,widgetName:I.community_impact,version:"1.0.0",lang:this.configLang,transactionId:this.transactionId??void 0}})}catch(t){throw this.debug&&console.error("Failed to fetch impact data",t),t}}async updateImpactData(){try{const t=await this.fetchImpactData();if(t&&(this.brandName=t.chain.name,this.shareImageUrl=t.promoAssetUrl||t.personalImpactAssetUrl||t.community[0].share.imageUrl,this.shareImageUrl)){const a=await p(this.shareImageUrl);this.file=a,this.dataUrl=URL.createObjectURL(a)}}catch(t){this.debug&&console.error("Error updating impact data:",t)}}async firstUpdated(){await this.updateImpactData(),this.isMobile=/Mobi|Android/i.test(navigator.userAgent)||"ontouchstart"in window||navigator.maxTouchPoints>0}async openSystemShareSheet(t){if(t)try{const a=await p(t);navigator.share&&this.brandName&&await navigator.share({files:[a],title:r[this.lang].impactShareTitle(),text:r[this.lang].impactShareText({brandName:this.brandName})})}catch(a){this.debug&&console.error("Failed to open share sheet",a)}}async handleClickCopy(){if(this.file)try{await navigator.clipboard.write([new ClipboardItem({"image/png":this.file})])}catch(t){this.debug&&console.error("Failed to copy image to clipboard:",t)}}handleClickDownload(t){const a=t.currentTarget;this.isMobile&&this.shareImageUrl?(t.preventDefault(),this.openSystemShareSheet(this.shareImageUrl)):this.dataUrl&&(a.href=this.dataUrl,a.download=r[this.lang].impactShareTitle())}render(){return!this.brandName||!this.shareImageUrl||!this.dataUrl?S():b`
1
+ import{f as m,g as s,t as n,h as g,y as b}from"../chunks/lit-iNN5L_Qk.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-lr4iB8kL.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"./beam-partner-logos.js";import{c as f,d as y,e as u}from"../chunks/enforce-config-S8EGgEnO.esm.js";import{D as w,S as x,W as I,g as U}from"../chunks/routes-YPOoVIR2.esm.js";import{_ as S}from"../chunks/loading-template-t4fFsYtr.esm.js";import{u as p,s as r}from"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";var v=Object.defineProperty,k=Object.getOwnPropertyDescriptor,i=(c,t,a,l)=>{for(var o=l>1?void 0:l?k(t,a):t,h=c.length-1,d;h>=0;h--)(d=c[h])&&(o=(l?d(t,a,o):d(o))||o);return l&&o&&v(t,a,o),o};class e extends g{constructor(){super(...arguments),this.baseUrl=w,this.lang="en",this.debug=!1,this.brandName=null,this.shareImageUrl=null,this.isMobile=!1,this.windowResized=!1,this.checkViewport=()=>{this.windowResized=window.innerWidth<=768}}get configLang(){return x[this.lang]||"en"}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.checkViewport),this.checkViewport()}disconnectedCallback(){window.removeEventListener("resize",this.checkViewport),super.disconnectedCallback()}async fetchImpactData(){u(["apiKey","storeId","nonprofitId"],this);try{return await U({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{storeId:this.storeId,personalImpactLimit:0,nonprofitId:this.nonprofitId,widgetName:I.community_impact,version:"1.0.0",lang:this.configLang,transactionId:this.transactionId??void 0}})}catch(t){throw this.debug&&console.error("Failed to fetch impact data",t),t}}async updateImpactData(){try{const t=await this.fetchImpactData();if(t&&(this.brandName=t.chain.name,this.shareImageUrl=t.promoAssetUrl||t.personalImpactAssetUrl||t.community[0].share.imageUrl,this.shareImageUrl)){const a=await p(this.shareImageUrl);this.file=a,this.dataUrl=URL.createObjectURL(a)}}catch(t){this.debug&&console.error("Error updating impact data:",t)}}async firstUpdated(){await this.updateImpactData(),this.isMobile=/Mobi|Android/i.test(navigator.userAgent)||"ontouchstart"in window||navigator.maxTouchPoints>0}async openSystemShareSheet(t){if(t)try{const a=await p(t);navigator.share&&this.brandName&&await navigator.share({files:[a],title:r[this.lang].impactShareTitle(),text:r[this.lang].impactShareText({brandName:this.brandName})})}catch(a){this.debug&&console.error("Failed to open share sheet",a)}}async handleClickCopy(){if(this.file)try{await navigator.clipboard.write([new ClipboardItem({"image/png":this.file})])}catch(t){this.debug&&console.error("Failed to copy image to clipboard:",t)}}handleClickDownload(t){const a=t.currentTarget;this.isMobile&&this.shareImageUrl?(t.preventDefault(),this.openSystemShareSheet(this.shareImageUrl)):this.dataUrl&&(a.href=this.dataUrl,a.download=r[this.lang].impactShareTitle())}render(){return!this.brandName||!this.shareImageUrl||!this.dataUrl?S():b`
2
2
  <div class="share-container ${this.windowResized||this.isMobile?"mobile":"desktop"}">
3
3
  <h2 class="share-title">${r[this.lang].impactShareTitle()}</h2>
4
4
  <p class="share-text">${r[this.lang].impactShareText({brandName:this.brandName})}</p>
@@ -2,7 +2,7 @@ import * as lit from 'lit';
2
2
  import { LitElement, PropertyValues } from 'lit';
3
3
  import * as lit_html from 'lit-html';
4
4
  import * as lodash from 'lodash';
5
- import { c as TUrl, T as TNumericId, a as TId } from '../chunks/types-zbTZ8-KP.esm.js';
5
+ import { c as TUrl, T as TNumericId, a as TId } from '../chunks/types-IbMT3Nwn.esm.js';
6
6
  import { L as LANGUAGES } from '../chunks/types-aju0qrRe.esm.js';
7
7
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
8
8
  import '../chunks/share-button-hDn8fnBI.esm.js';
@@ -151,6 +151,7 @@ declare class BeamSubscriptionImpact extends LitElement {
151
151
  filters?: string[] | undefined;
152
152
  }[];
153
153
  promo: {
154
+ type?: string | undefined;
154
155
  isActive: boolean;
155
156
  multiplier: number | null;
156
157
  } | null;
@@ -1,4 +1,4 @@
1
- import{h as v,f as T,y as m,g as d,t as O,p as L}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as k}from"../chunks/lodash-P8OIs-at.esm.js";import{p as M}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{s as $,a as G}from"../chunks/share-button-k_Xn5956.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import{D as V,g as _,S as j}from"../chunks/routes-Dmf2ZNnZ.esm.js";import{u as b,A as H,d as g,a as K,_ as q,i as r}from"../chunks/localize-o-cYvHQf.esm.js";import{c as J,d as Q,e as X}from"../chunks/enforce-config-ZAI7WYAd.esm.js";import{_ as Z}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as ee}from"../utils/makeApiKeyHeader.esm.js";import{c as ie}from"../chunks/responsive-2lC2Wrtg.esm.js";import{logger as te}from"../utils/logger.esm.js";import{c as ae}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(e,i,a,n)=>{for(var t=n>1?void 0:n?ne(i,a):i,p=e.length-1,l;p>=0;p--)(l=e[p])&&(t=(n?l(i,a,t):l(t))||t);return n&&t&&re(i,a,t),t};class w extends v{constructor(){super(...arguments),this.infoText=""}static get styles(){return T`
1
+ import{h as v,f as T,y as m,g as d,t as O,p as L}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as k}from"../chunks/lodash-P8OIs-at.esm.js";import{p as M}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{s as $,a as G}from"../chunks/share-button-r0y-bbwR.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import{D as V,g as _,S as j}from"../chunks/routes-o-phF_L1.esm.js";import{u as b,A as H,d as g,a as K,_ as q,i as r}from"../chunks/localize-7sMSg1W9.esm.js";import{c as J,d as Q,e as X}from"../chunks/enforce-config-l-tNb_z7.esm.js";import{_ as Z}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as ee}from"../utils/makeApiKeyHeader.esm.js";import{c as ie}from"../chunks/responsive-2lC2Wrtg.esm.js";import{logger as te}from"../utils/logger.esm.js";import{c as ae}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(e,i,a,n)=>{for(var t=n>1?void 0:n?ne(i,a):i,p=e.length-1,l;p>=0;p--)(l=e[p])&&(t=(n?l(i,a,t):l(t))||t);return n&&t&&re(i,a,t),t};class w extends v{constructor(){super(...arguments),this.infoText=""}static get styles(){return T`
2
2
  sl-badge::part(base) {
3
3
  background-color: var(--beam-pillLabel-color-background, #000);
4
4
  color: var(--beam-pillLabel-color, #fff);
@@ -1,4 +1,4 @@
1
- import{h as v,f as T,y as m,g as d,t as O,p as L}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as k}from"../chunks/lodash-P8OIs-at.esm.js";import{p as M}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{s as $,a as G}from"../chunks/share-button-diP8wKOc.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import{D as V,g as _,S as j}from"../chunks/routes-o1QpF40R.esm.js";import{u as b,A as H,d as g,a as K,_ as q,i as r}from"../chunks/localize-m-_ESmpk.esm.js";import{c as J,d as Q,e as X}from"../chunks/enforce-config-ZyPq_4CF.esm.js";import{_ as Z}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as ee}from"../utils/makeApiKeyHeader.js";import{c as ie}from"../chunks/responsive-2lC2Wrtg.esm.js";import{logger as te}from"../utils/logger.js";import{c as ae}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(e,i,a,n)=>{for(var t=n>1?void 0:n?ne(i,a):i,p=e.length-1,l;p>=0;p--)(l=e[p])&&(t=(n?l(i,a,t):l(t))||t);return n&&t&&re(i,a,t),t};class w extends v{constructor(){super(...arguments),this.infoText=""}static get styles(){return T`
1
+ import{h as v,f as T,y as m,g as d,t as O,p as L}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as k}from"../chunks/lodash-P8OIs-at.esm.js";import{p as M}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{s as $,a as G}from"../chunks/share-button-EsUPw38-.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import{D as V,g as _,S as j}from"../chunks/routes-YPOoVIR2.esm.js";import{u as b,A as H,d as g,a as K,_ as q,i as r}from"../chunks/localize-OiRewTgu.esm.js";import{c as J,d as Q,e as X}from"../chunks/enforce-config-S8EGgEnO.esm.js";import{_ as Z}from"../chunks/loading-template-t4fFsYtr.esm.js";import{makeApiKeyHeader as ee}from"../utils/makeApiKeyHeader.js";import{c as ie}from"../chunks/responsive-2lC2Wrtg.esm.js";import{logger as te}from"../utils/logger.js";import{c as ae}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(e,i,a,n)=>{for(var t=n>1?void 0:n?ne(i,a):i,p=e.length-1,l;p>=0;p--)(l=e[p])&&(t=(n?l(i,a,t):l(t))||t);return n&&t&&re(i,a,t),t};class w extends v{constructor(){super(...arguments),this.infoText=""}static get styles(){return T`
2
2
  sl-badge::part(base) {
3
3
  background-color: var(--beam-pillLabel-color-background, #000);
4
4
  color: var(--beam-pillLabel-color, #fff);
@@ -1,15 +1,15 @@
1
1
  import * as lit_html from 'lit-html';
2
2
  import * as lit from 'lit';
3
3
  import { LitElement } from 'lit';
4
- import { g as getImpact, a as getChainNonprofits } from '../chunks/routes-iurI6dvR.esm.js';
5
- import { T as TCart } from '../chunks/cart-contents-CMm57qu0.esm.js';
4
+ import { g as getImpact, a as getChainNonprofits } from '../chunks/routes-lGXt7ttd.esm.js';
5
+ import { T as TCart } from '../chunks/cart-contents-6_ztOjrx.esm.js';
6
6
  import './select-subscription-nonprofit.js';
7
7
  import './subscription-impact.js';
8
8
  import './beam-partner-logos.js';
9
9
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
10
10
  import { L as LANGUAGES } from '../chunks/types-aju0qrRe.esm.js';
11
- import { T as TNumericId } from '../chunks/types-zbTZ8-KP.esm.js';
12
- import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
11
+ import { T as TNumericId } from '../chunks/types-IbMT3Nwn.esm.js';
12
+ import '../chunks/openapi-spec-bxGNhNMa.esm.js';
13
13
  import 'lodash';
14
14
  import '../chunks/share-button-hDn8fnBI.esm.js';
15
15
 
@@ -142,6 +142,7 @@ declare class BeamSubscriptionManagement extends LitElement {
142
142
  goalProgressPercentage: number;
143
143
  };
144
144
  promo?: {
145
+ type?: string | undefined;
145
146
  isActive: boolean;
146
147
  multiplier: number | null;
147
148
  } | null | undefined;
@@ -152,6 +153,15 @@ declare class BeamSubscriptionManagement extends LitElement {
152
153
  region: {
153
154
  id: string | null;
154
155
  };
156
+ promos?: {
157
+ validatedPromoCodes: {
158
+ promoCodeId: string | null;
159
+ promoCodeGroupId?: string | null | undefined;
160
+ promoId?: number | undefined;
161
+ validatedAt: string;
162
+ apply: boolean;
163
+ }[];
164
+ } | undefined;
155
165
  }>;
156
166
  fetchSubscription(): Promise<{
157
167
  beamUserId: string;
@@ -277,6 +287,7 @@ declare class BeamSubscriptionManagement extends LitElement {
277
287
  filters?: string[] | undefined;
278
288
  }[];
279
289
  promo: {
290
+ type?: string | undefined;
280
291
  isActive: boolean;
281
292
  multiplier: number | null;
282
293
  } | null;
@@ -1,4 +1,4 @@
1
- import{f as z,g as s,t as g,h as H,y as o,k as E}from"../chunks/lit-iNN5L_Qk.esm.js";import{D as R,S as j,f as _,W as B,h as K,g as O}from"../chunks/routes-Dmf2ZNnZ.esm.js";import{p as F}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as V,d as Y,e as S}from"../chunks/enforce-config-ZAI7WYAd.esm.js";import{u as l,A as y,d as c,a as G,i as p,_ as v}from"../chunks/localize-o-cYvHQf.esm.js";import{b as N}from"../chunks/events-6Z5MkCRr.esm.js";import{M as q}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import"./select-subscription-nonprofit.esm.js";import"./subscription-impact.esm.js";import{partnerLogosConfigDefaults as J}from"./beam-partner-logos.esm.js";import{makeApiKeyHeader as x}from"../utils/makeApiKeyHeader.esm.js";import{_ as $}from"../chunks/loading-template-t4fFsYtr.esm.js";import{c as Q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../utils/logger.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/local-storage.esm.js";import"../chunks/share-button-k_Xn5956.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m={en:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},fr:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},de:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},es:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},it:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},pl:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"}};var X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,i=(M,t,n,a)=>{for(var r=a>1?void 0:a?Z(t,n):t,b=M.length-1,d;b>=0;b--)(d=M[b])&&(r=(a?d(t,n,r):d(r))||r);return a&&r&&X(t,n,r),r};const D=3,tt=0,et=1,it=98;class e extends H{constructor(){super(...arguments),this.baseUrl=R,this.lang="en",this.debug=!1,this.draftConfig=!1,this.activeWidget=null,this.nonprofitId=null,this.beamUserId=null,this.eligibleNonprofits=[],this.showAllTiles=!1,this.isMobile=window.innerWidth<720,this.dropdownVisible=!1,this.emojis=["\u{1F44F}","\u{1F4AA}","\u{1F64C}","\u2728","\u{1F947}"],this.subscriptionDataController=new y(this,this.fetchSubscription),this.eligibleNonprofitsDataController=new y(this,this.fetchEligibleNonprofits),this.personalImpactDataController=new y(this,this.fetchImpact)}get configLang(){return j[this.lang]||"en"}async firstUpdated(){if(!this.email&&!this.partnerUserId)throw new q(["email","partnerUserId"],"One of the following properties needs to be specified: email, partnerUserId ");S(["apiKey","subscriptionId"],this),await this.loadWidget()}async loadWidget(){await Promise.all([this.fetchEligibleNonprofits(),this.fetchSubscription()]),await this.fetchImpact(),this.activeWidget=this.nonprofitId?"subscription-impact":"select-subscription-nonprofit"}async fetchEligibleNonprofits(){S(["apiKey","subscriptionId"],this);const t=await _({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{storeId:this.storeId||void 0,postalCode:this.postalCode||void 0,countryCode:this.countryCode||void 0,widgetName:B.subscription_management,version:"1.0.0"}});return this.storeId=t.store.id,this.eligibleNonprofits=t.nonprofits,this.eligibleNonprofitsDataController.data=t,t}async fetchSubscription(){S(["apiKey","subscriptionId"],this);const t=await K({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{remoteSubscriptionId:this.subscriptionId,email:this.email,partnerUserId:this.partnerUserId}});return this.beamUserId=t.beamUserId,this.nonprofitId=t.nonprofit?.id||null,t}async fetchImpact(){S(["apiKey"],this);const t=await O({baseUrl:this.baseUrl,headers:x(this.apiKey),queryParams:{beamUserId:this.beamUserId?this.beamUserId:void 0,widgetName:"subscription-management",version:"1.0.0",lang:this.configLang}});return this.personalImpactDataController.data=t,t}handleSwapNonprofitButtonClick(){this.activeWidget="select-subscription-nonprofit"}handleBackToSubscriptionImpactButtonClick(){this.activeWidget="subscription-impact"}handleSupportAgainButtonClick(t,n){this.activeWidget="select-subscription-nonprofit",this.selectedNonprofitId=t;const a=new N({selectedNonprofitId:t,nonprofitName:n,source:B.subscription_management});this.dispatchEvent(a)}handleNonprofitSelect(t){if(!(t instanceof N))return;const{selectedNonprofitId:n}=t.detail;this.nonprofitId=n??null,this.activeWidget="subscription-impact"}isNonprofitEligible(t){return this.eligibleNonprofits.some(n=>n.nonprofit.id===t)}shouldDisplayProgressBar(t){return t>et&&t<it}get cssVariables(){const t={...J,...F,"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-borderColor":"#d5d5d5","--beam-SubscriptionManagement-widgetContainer-borderRadius":"4px","--beam-SubscriptionManagement-widgetContainer-padding":"8px 20px","--beam-SubscriptionManagement-widgetContainer-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-maxWidth":"820px","--beam-SubscriptionManagement-logo-align-desktop":"left","--beam-SubscriptionManagement-logo-align-mobile":"center","--beam-SubscriptionManagement-previousImpact-cardStyle":"'selected_icon'","--beam-SubscriptionManagement-header-padding":"10px 20px 10px 0px","--beam-SubscriptionManagement-header-borderRadius":"0px","--beam-SubscriptionManagement-header-backgroundColor":"#fff","--beam-SubscriptionManagement-header-meatballsMenu-fontSize":"24px","--beam-SubscriptionManagement-header-meatballsMenu-color":"24px","--beam-SubscriptionManagement-lineBreak-color":"#ddd","--beam-SubscriptionManagement-lineBreak-width":"1px","--beam-SubscriptionManagement-lineBreak-margin":"10px 0 20px 0","--beam-SubscriptionManagement-tile-marginBottom":"20px","--beam-SubscriptionManagement-tile-border-width":"0px","--beam-SubscriptionManagement-tile-border-color":"#ddd","--beam-SubscriptionManagement-tile-padding":"12.5px","--beam-SubscriptionManagement-tile-borderRadius":"8px","--beam-SubscriptionManagement-tile-background":"#f8fbfb","--beam-SubscriptionManagement-tileContent-gap":" 15px","--beam-SubscriptionManagement-tileContent-padding":"5px 0px","--beam-SubscriptionManagement-tile-icon-borderRadius":"4px","--beam-SubscriptionManagement-tile-icon-height":"28px","--beam-SubscriptionManagement-tile-icon-background-borderRadius":"50%","--beam-SubscriptionManagement-tile-icon-background-width":"50px","--beam-SubscriptionManagement-tile-icon-background-height":"50px","--beam-SubscriptionManagement-tile-icon-background-backgroundColor":"#0a323c","--beam-SubscriptionManagement-tile-icon-background-padding":"10px","--beam-SubscriptionManagement-blockTileDescription-gap":"5px","--beam-SubscriptionManagement-blockTileDescription-padding":"0px","--beam-SubscriptionManagement-blockTileDescription-lineHeight":"130%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop":"60%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile":"100%","--beam-SubscriptionManagement-subWidgetContainer-padding":"0px 0px 10px","--beam-SubscriptionManagement-previousImpactContainer-padding-desktop":"10px 24px 10px 0px","--beam-SubscriptionManagement-previousImpactContainer-padding-mobile":"0px","--beam-SubscriptionManagement-dropDown-padding":"15px 8px","--beam-SubscriptionManagement-dropDown-borderRadius":"8px","--beam-SubscriptionManagement-dropDown-backgroundColor":"#f8fbfb","--beam-SubscriptionManagement-dropDown-boxShadow":"0px 4px 28px 0px rgba(0, 0, 0, 0.04)","--beam-SubscriptionManagement-dropDown-width":"128px","--beam-SubscriptionManagement-dropDown-hover-backgroundColor":"#E1F1EE","--beam-SubscriptionManagement-dropDownOptions-textDecoration":"underline",...c("--beam-SubscriptionManagement-dropDownOptions",{fontSize:"12px",fontWeight:"400",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom":"15px",...c("--beam-SubscriptionManagement-yourPreviousImpactTitle",{fontSize:"18px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-yourPreviousImpact-showAllButton",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-title-letterSpacing":"0.36px",...c("--beam-SubscriptionManagement-tile-title",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"uppercase",fontStyle:"normal",color:"#0a323c"}),...c("--beam-SubscriptionManagement-tile-description",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),...c("--beam-SubscriptionManagement-tile-via",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-nonprofitLink",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-supportAgainButton",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft":"8px",...c("--beam-SubscriptionManagement-tile-progressBarLabel",{fontSize:"10px",fontWeight:"bold",fontStyle:"normal",color:"#878a92"}),"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight":"16px",...c("--beam-SubscriptionManagement-tile-fundedAmount",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",fontStyle:"italic",color:"#0a323c"})},n=this.eligibleNonprofitsDataController?.data?.config?.web?.theme||{},a={...t,...n};return Object.assign(Object.create({toCSS(){return G(this)}}),a)}renderPreviousImpactTiles({personalImpact:t,cardStyle:n,eligibleNonprofitConfig:a}){if(!t)return o``;if(!a)return o``;const r=this.showAllTiles?t:t.slice(0,D);let b=0;return o`
1
+ import{f as z,g as s,t as g,h as H,y as o,k as E}from"../chunks/lit-iNN5L_Qk.esm.js";import{D as R,S as j,f as _,W as B,h as K,g as O}from"../chunks/routes-o-phF_L1.esm.js";import{p as F}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as V,d as Y,e as S}from"../chunks/enforce-config-l-tNb_z7.esm.js";import{u as l,A as y,d as c,a as G,i as p,_ as v}from"../chunks/localize-7sMSg1W9.esm.js";import{c as N}from"../chunks/events-T3hYV1LF.esm.js";import{M as q}from"../chunks/beam-errors-AMvTvR1C.esm.js";import"./select-subscription-nonprofit.esm.js";import"./subscription-impact.esm.js";import{partnerLogosConfigDefaults as J}from"./beam-partner-logos.esm.js";import{makeApiKeyHeader as x}from"../utils/makeApiKeyHeader.esm.js";import{_ as $}from"../chunks/loading-template-t4fFsYtr.esm.js";import{c as Q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../utils/logger.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/local-storage.esm.js";import"../chunks/share-button-r0y-bbwR.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m={en:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},fr:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},de:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},es:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},it:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},pl:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"}};var X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,i=(M,t,n,a)=>{for(var r=a>1?void 0:a?Z(t,n):t,b=M.length-1,d;b>=0;b--)(d=M[b])&&(r=(a?d(t,n,r):d(r))||r);return a&&r&&X(t,n,r),r};const D=3,tt=0,et=1,it=98;class e extends H{constructor(){super(...arguments),this.baseUrl=R,this.lang="en",this.debug=!1,this.draftConfig=!1,this.activeWidget=null,this.nonprofitId=null,this.beamUserId=null,this.eligibleNonprofits=[],this.showAllTiles=!1,this.isMobile=window.innerWidth<720,this.dropdownVisible=!1,this.emojis=["\u{1F44F}","\u{1F4AA}","\u{1F64C}","\u2728","\u{1F947}"],this.subscriptionDataController=new y(this,this.fetchSubscription),this.eligibleNonprofitsDataController=new y(this,this.fetchEligibleNonprofits),this.personalImpactDataController=new y(this,this.fetchImpact)}get configLang(){return j[this.lang]||"en"}async firstUpdated(){if(!this.email&&!this.partnerUserId)throw new q(["email","partnerUserId"],"One of the following properties needs to be specified: email, partnerUserId ");S(["apiKey","subscriptionId"],this),await this.loadWidget()}async loadWidget(){await Promise.all([this.fetchEligibleNonprofits(),this.fetchSubscription()]),await this.fetchImpact(),this.activeWidget=this.nonprofitId?"subscription-impact":"select-subscription-nonprofit"}async fetchEligibleNonprofits(){S(["apiKey","subscriptionId"],this);const t=await _({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{storeId:this.storeId||void 0,postalCode:this.postalCode||void 0,countryCode:this.countryCode||void 0,widgetName:B.subscription_management,version:"1.0.0"}});return this.storeId=t.store.id,this.eligibleNonprofits=t.nonprofits,this.eligibleNonprofitsDataController.data=t,t}async fetchSubscription(){S(["apiKey","subscriptionId"],this);const t=await K({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{remoteSubscriptionId:this.subscriptionId,email:this.email,partnerUserId:this.partnerUserId}});return this.beamUserId=t.beamUserId,this.nonprofitId=t.nonprofit?.id||null,t}async fetchImpact(){S(["apiKey"],this);const t=await O({baseUrl:this.baseUrl,headers:x(this.apiKey),queryParams:{beamUserId:this.beamUserId?this.beamUserId:void 0,widgetName:"subscription-management",version:"1.0.0",lang:this.configLang}});return this.personalImpactDataController.data=t,t}handleSwapNonprofitButtonClick(){this.activeWidget="select-subscription-nonprofit"}handleBackToSubscriptionImpactButtonClick(){this.activeWidget="subscription-impact"}handleSupportAgainButtonClick(t,n){this.activeWidget="select-subscription-nonprofit",this.selectedNonprofitId=t;const a=new N({selectedNonprofitId:t,nonprofitName:n,source:B.subscription_management});this.dispatchEvent(a)}handleNonprofitSelect(t){if(!(t instanceof N))return;const{selectedNonprofitId:n}=t.detail;this.nonprofitId=n??null,this.activeWidget="subscription-impact"}isNonprofitEligible(t){return this.eligibleNonprofits.some(n=>n.nonprofit.id===t)}shouldDisplayProgressBar(t){return t>et&&t<it}get cssVariables(){const t={...J,...F,"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-borderColor":"#d5d5d5","--beam-SubscriptionManagement-widgetContainer-borderRadius":"4px","--beam-SubscriptionManagement-widgetContainer-padding":"8px 20px","--beam-SubscriptionManagement-widgetContainer-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-maxWidth":"820px","--beam-SubscriptionManagement-logo-align-desktop":"left","--beam-SubscriptionManagement-logo-align-mobile":"center","--beam-SubscriptionManagement-previousImpact-cardStyle":"'selected_icon'","--beam-SubscriptionManagement-header-padding":"10px 20px 10px 0px","--beam-SubscriptionManagement-header-borderRadius":"0px","--beam-SubscriptionManagement-header-backgroundColor":"#fff","--beam-SubscriptionManagement-header-meatballsMenu-fontSize":"24px","--beam-SubscriptionManagement-header-meatballsMenu-color":"24px","--beam-SubscriptionManagement-lineBreak-color":"#ddd","--beam-SubscriptionManagement-lineBreak-width":"1px","--beam-SubscriptionManagement-lineBreak-margin":"10px 0 20px 0","--beam-SubscriptionManagement-tile-marginBottom":"20px","--beam-SubscriptionManagement-tile-border-width":"0px","--beam-SubscriptionManagement-tile-border-color":"#ddd","--beam-SubscriptionManagement-tile-padding":"12.5px","--beam-SubscriptionManagement-tile-borderRadius":"8px","--beam-SubscriptionManagement-tile-background":"#f8fbfb","--beam-SubscriptionManagement-tileContent-gap":" 15px","--beam-SubscriptionManagement-tileContent-padding":"5px 0px","--beam-SubscriptionManagement-tile-icon-borderRadius":"4px","--beam-SubscriptionManagement-tile-icon-height":"28px","--beam-SubscriptionManagement-tile-icon-background-borderRadius":"50%","--beam-SubscriptionManagement-tile-icon-background-width":"50px","--beam-SubscriptionManagement-tile-icon-background-height":"50px","--beam-SubscriptionManagement-tile-icon-background-backgroundColor":"#0a323c","--beam-SubscriptionManagement-tile-icon-background-padding":"10px","--beam-SubscriptionManagement-blockTileDescription-gap":"5px","--beam-SubscriptionManagement-blockTileDescription-padding":"0px","--beam-SubscriptionManagement-blockTileDescription-lineHeight":"130%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop":"60%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile":"100%","--beam-SubscriptionManagement-subWidgetContainer-padding":"0px 0px 10px","--beam-SubscriptionManagement-previousImpactContainer-padding-desktop":"10px 24px 10px 0px","--beam-SubscriptionManagement-previousImpactContainer-padding-mobile":"0px","--beam-SubscriptionManagement-dropDown-padding":"15px 8px","--beam-SubscriptionManagement-dropDown-borderRadius":"8px","--beam-SubscriptionManagement-dropDown-backgroundColor":"#f8fbfb","--beam-SubscriptionManagement-dropDown-boxShadow":"0px 4px 28px 0px rgba(0, 0, 0, 0.04)","--beam-SubscriptionManagement-dropDown-width":"128px","--beam-SubscriptionManagement-dropDown-hover-backgroundColor":"#E1F1EE","--beam-SubscriptionManagement-dropDownOptions-textDecoration":"underline",...c("--beam-SubscriptionManagement-dropDownOptions",{fontSize:"12px",fontWeight:"400",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom":"15px",...c("--beam-SubscriptionManagement-yourPreviousImpactTitle",{fontSize:"18px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-yourPreviousImpact-showAllButton",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-title-letterSpacing":"0.36px",...c("--beam-SubscriptionManagement-tile-title",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"uppercase",fontStyle:"normal",color:"#0a323c"}),...c("--beam-SubscriptionManagement-tile-description",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),...c("--beam-SubscriptionManagement-tile-via",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-nonprofitLink",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-supportAgainButton",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft":"8px",...c("--beam-SubscriptionManagement-tile-progressBarLabel",{fontSize:"10px",fontWeight:"bold",fontStyle:"normal",color:"#878a92"}),"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight":"16px",...c("--beam-SubscriptionManagement-tile-fundedAmount",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",fontStyle:"italic",color:"#0a323c"})},n=this.eligibleNonprofitsDataController?.data?.config?.web?.theme||{},a={...t,...n};return Object.assign(Object.create({toCSS(){return G(this)}}),a)}renderPreviousImpactTiles({personalImpact:t,cardStyle:n,eligibleNonprofitConfig:a}){if(!t)return o``;if(!a)return o``;const r=this.showAllTiles?t:t.slice(0,D);let b=0;return o`
2
2
  ${r.filter(d=>d.nonprofit.includeInPersonalImpact===!0).map(d=>{const{impact:{goalCompletionText:u,description:h,goalProgressPercentage:f,goalProgressText:A},nonprofit:{cause:C,causeIconSelectedUrl:L,causeIconUrl:T,website:U,name:I,id:w}}=d,k=this.nonprofitId!==w&&this.isNonprofitEligible(w),P=k&&this.shouldDisplayProgressBar(f),W=u?`${this.emojis[b]} `:"";return b=(b+1)%this.emojis.length,o`
3
3
  <div class="tile">
4
4
  <div class="tile-header">
@@ -1,4 +1,4 @@
1
- import{f as z,g as s,t as g,h as H,y as o,k as E}from"../chunks/lit-iNN5L_Qk.esm.js";import{D as R,S as j,f as _,W as B,h as K,g as O}from"../chunks/routes-o1QpF40R.esm.js";import{p as F}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as V,d as Y,e as S}from"../chunks/enforce-config-ZyPq_4CF.esm.js";import{u as l,A as y,d as c,a as G,i as p,_ as v}from"../chunks/localize-m-_ESmpk.esm.js";import{b as N}from"../chunks/events-6Z5MkCRr.esm.js";import{M as q}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import"./select-subscription-nonprofit.js";import"./subscription-impact.js";import{partnerLogosConfigDefaults as J}from"./beam-partner-logos.js";import{makeApiKeyHeader as x}from"../utils/makeApiKeyHeader.js";import{_ as $}from"../chunks/loading-template-t4fFsYtr.esm.js";import{c as Q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../utils/logger.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/local-storage.js";import"../chunks/share-button-diP8wKOc.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m={en:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},fr:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},de:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},es:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},it:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},pl:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"}};var X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,i=(M,t,n,a)=>{for(var r=a>1?void 0:a?Z(t,n):t,b=M.length-1,d;b>=0;b--)(d=M[b])&&(r=(a?d(t,n,r):d(r))||r);return a&&r&&X(t,n,r),r};const D=3,tt=0,et=1,it=98;class e extends H{constructor(){super(...arguments),this.baseUrl=R,this.lang="en",this.debug=!1,this.draftConfig=!1,this.activeWidget=null,this.nonprofitId=null,this.beamUserId=null,this.eligibleNonprofits=[],this.showAllTiles=!1,this.isMobile=window.innerWidth<720,this.dropdownVisible=!1,this.emojis=["\u{1F44F}","\u{1F4AA}","\u{1F64C}","\u2728","\u{1F947}"],this.subscriptionDataController=new y(this,this.fetchSubscription),this.eligibleNonprofitsDataController=new y(this,this.fetchEligibleNonprofits),this.personalImpactDataController=new y(this,this.fetchImpact)}get configLang(){return j[this.lang]||"en"}async firstUpdated(){if(!this.email&&!this.partnerUserId)throw new q(["email","partnerUserId"],"One of the following properties needs to be specified: email, partnerUserId ");S(["apiKey","subscriptionId"],this),await this.loadWidget()}async loadWidget(){await Promise.all([this.fetchEligibleNonprofits(),this.fetchSubscription()]),await this.fetchImpact(),this.activeWidget=this.nonprofitId?"subscription-impact":"select-subscription-nonprofit"}async fetchEligibleNonprofits(){S(["apiKey","subscriptionId"],this);const t=await _({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{storeId:this.storeId||void 0,postalCode:this.postalCode||void 0,countryCode:this.countryCode||void 0,widgetName:B.subscription_management,version:"1.0.0"}});return this.storeId=t.store.id,this.eligibleNonprofits=t.nonprofits,this.eligibleNonprofitsDataController.data=t,t}async fetchSubscription(){S(["apiKey","subscriptionId"],this);const t=await K({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{remoteSubscriptionId:this.subscriptionId,email:this.email,partnerUserId:this.partnerUserId}});return this.beamUserId=t.beamUserId,this.nonprofitId=t.nonprofit?.id||null,t}async fetchImpact(){S(["apiKey"],this);const t=await O({baseUrl:this.baseUrl,headers:x(this.apiKey),queryParams:{beamUserId:this.beamUserId?this.beamUserId:void 0,widgetName:"subscription-management",version:"1.0.0",lang:this.configLang}});return this.personalImpactDataController.data=t,t}handleSwapNonprofitButtonClick(){this.activeWidget="select-subscription-nonprofit"}handleBackToSubscriptionImpactButtonClick(){this.activeWidget="subscription-impact"}handleSupportAgainButtonClick(t,n){this.activeWidget="select-subscription-nonprofit",this.selectedNonprofitId=t;const a=new N({selectedNonprofitId:t,nonprofitName:n,source:B.subscription_management});this.dispatchEvent(a)}handleNonprofitSelect(t){if(!(t instanceof N))return;const{selectedNonprofitId:n}=t.detail;this.nonprofitId=n??null,this.activeWidget="subscription-impact"}isNonprofitEligible(t){return this.eligibleNonprofits.some(n=>n.nonprofit.id===t)}shouldDisplayProgressBar(t){return t>et&&t<it}get cssVariables(){const t={...J,...F,"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-borderColor":"#d5d5d5","--beam-SubscriptionManagement-widgetContainer-borderRadius":"4px","--beam-SubscriptionManagement-widgetContainer-padding":"8px 20px","--beam-SubscriptionManagement-widgetContainer-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-maxWidth":"820px","--beam-SubscriptionManagement-logo-align-desktop":"left","--beam-SubscriptionManagement-logo-align-mobile":"center","--beam-SubscriptionManagement-previousImpact-cardStyle":"'selected_icon'","--beam-SubscriptionManagement-header-padding":"10px 20px 10px 0px","--beam-SubscriptionManagement-header-borderRadius":"0px","--beam-SubscriptionManagement-header-backgroundColor":"#fff","--beam-SubscriptionManagement-header-meatballsMenu-fontSize":"24px","--beam-SubscriptionManagement-header-meatballsMenu-color":"24px","--beam-SubscriptionManagement-lineBreak-color":"#ddd","--beam-SubscriptionManagement-lineBreak-width":"1px","--beam-SubscriptionManagement-lineBreak-margin":"10px 0 20px 0","--beam-SubscriptionManagement-tile-marginBottom":"20px","--beam-SubscriptionManagement-tile-border-width":"0px","--beam-SubscriptionManagement-tile-border-color":"#ddd","--beam-SubscriptionManagement-tile-padding":"12.5px","--beam-SubscriptionManagement-tile-borderRadius":"8px","--beam-SubscriptionManagement-tile-background":"#f8fbfb","--beam-SubscriptionManagement-tileContent-gap":" 15px","--beam-SubscriptionManagement-tileContent-padding":"5px 0px","--beam-SubscriptionManagement-tile-icon-borderRadius":"4px","--beam-SubscriptionManagement-tile-icon-height":"28px","--beam-SubscriptionManagement-tile-icon-background-borderRadius":"50%","--beam-SubscriptionManagement-tile-icon-background-width":"50px","--beam-SubscriptionManagement-tile-icon-background-height":"50px","--beam-SubscriptionManagement-tile-icon-background-backgroundColor":"#0a323c","--beam-SubscriptionManagement-tile-icon-background-padding":"10px","--beam-SubscriptionManagement-blockTileDescription-gap":"5px","--beam-SubscriptionManagement-blockTileDescription-padding":"0px","--beam-SubscriptionManagement-blockTileDescription-lineHeight":"130%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop":"60%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile":"100%","--beam-SubscriptionManagement-subWidgetContainer-padding":"0px 0px 10px","--beam-SubscriptionManagement-previousImpactContainer-padding-desktop":"10px 24px 10px 0px","--beam-SubscriptionManagement-previousImpactContainer-padding-mobile":"0px","--beam-SubscriptionManagement-dropDown-padding":"15px 8px","--beam-SubscriptionManagement-dropDown-borderRadius":"8px","--beam-SubscriptionManagement-dropDown-backgroundColor":"#f8fbfb","--beam-SubscriptionManagement-dropDown-boxShadow":"0px 4px 28px 0px rgba(0, 0, 0, 0.04)","--beam-SubscriptionManagement-dropDown-width":"128px","--beam-SubscriptionManagement-dropDown-hover-backgroundColor":"#E1F1EE","--beam-SubscriptionManagement-dropDownOptions-textDecoration":"underline",...c("--beam-SubscriptionManagement-dropDownOptions",{fontSize:"12px",fontWeight:"400",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom":"15px",...c("--beam-SubscriptionManagement-yourPreviousImpactTitle",{fontSize:"18px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-yourPreviousImpact-showAllButton",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-title-letterSpacing":"0.36px",...c("--beam-SubscriptionManagement-tile-title",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"uppercase",fontStyle:"normal",color:"#0a323c"}),...c("--beam-SubscriptionManagement-tile-description",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),...c("--beam-SubscriptionManagement-tile-via",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-nonprofitLink",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-supportAgainButton",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft":"8px",...c("--beam-SubscriptionManagement-tile-progressBarLabel",{fontSize:"10px",fontWeight:"bold",fontStyle:"normal",color:"#878a92"}),"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight":"16px",...c("--beam-SubscriptionManagement-tile-fundedAmount",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",fontStyle:"italic",color:"#0a323c"})},n=this.eligibleNonprofitsDataController?.data?.config?.web?.theme||{},a={...t,...n};return Object.assign(Object.create({toCSS(){return G(this)}}),a)}renderPreviousImpactTiles({personalImpact:t,cardStyle:n,eligibleNonprofitConfig:a}){if(!t)return o``;if(!a)return o``;const r=this.showAllTiles?t:t.slice(0,D);let b=0;return o`
1
+ import{f as z,g as s,t as g,h as H,y as o,k as E}from"../chunks/lit-iNN5L_Qk.esm.js";import{D as R,S as j,f as _,W as B,h as K,g as O}from"../chunks/routes-YPOoVIR2.esm.js";import{p as F}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{c as V,d as Y,e as S}from"../chunks/enforce-config-S8EGgEnO.esm.js";import{u as l,A as y,d as c,a as G,i as p,_ as v}from"../chunks/localize-OiRewTgu.esm.js";import{c as N}from"../chunks/events-T3hYV1LF.esm.js";import{M as q}from"../chunks/beam-errors-AMvTvR1C.esm.js";import"./select-subscription-nonprofit.js";import"./subscription-impact.js";import{partnerLogosConfigDefaults as J}from"./beam-partner-logos.js";import{makeApiKeyHeader as x}from"../utils/makeApiKeyHeader.js";import{_ as $}from"../chunks/loading-template-t4fFsYtr.esm.js";import{c as Q}from"../chunks/css-card-grid-nEc--M5M.esm.js";import"../utils/logger.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../utils/local-storage.js";import"../chunks/share-button-EsUPw38-.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m={en:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},fr:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},de:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},es:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},it:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"},pl:{changeNonprofitButton:()=>"Change Nonprofit",previousImpactHeader:()=>"Your Previous Impact",previousNonprofitButton:()=>"Back to Previous Nonprofit",supportAgainButton:()=>"Support Again",via:()=>"via",showAllButton:()=>"Show All",showLessButton:()=>"Show Less"}};var X=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,i=(M,t,n,a)=>{for(var r=a>1?void 0:a?Z(t,n):t,b=M.length-1,d;b>=0;b--)(d=M[b])&&(r=(a?d(t,n,r):d(r))||r);return a&&r&&X(t,n,r),r};const D=3,tt=0,et=1,it=98;class e extends H{constructor(){super(...arguments),this.baseUrl=R,this.lang="en",this.debug=!1,this.draftConfig=!1,this.activeWidget=null,this.nonprofitId=null,this.beamUserId=null,this.eligibleNonprofits=[],this.showAllTiles=!1,this.isMobile=window.innerWidth<720,this.dropdownVisible=!1,this.emojis=["\u{1F44F}","\u{1F4AA}","\u{1F64C}","\u2728","\u{1F947}"],this.subscriptionDataController=new y(this,this.fetchSubscription),this.eligibleNonprofitsDataController=new y(this,this.fetchEligibleNonprofits),this.personalImpactDataController=new y(this,this.fetchImpact)}get configLang(){return j[this.lang]||"en"}async firstUpdated(){if(!this.email&&!this.partnerUserId)throw new q(["email","partnerUserId"],"One of the following properties needs to be specified: email, partnerUserId ");S(["apiKey","subscriptionId"],this),await this.loadWidget()}async loadWidget(){await Promise.all([this.fetchEligibleNonprofits(),this.fetchSubscription()]),await this.fetchImpact(),this.activeWidget=this.nonprofitId?"subscription-impact":"select-subscription-nonprofit"}async fetchEligibleNonprofits(){S(["apiKey","subscriptionId"],this);const t=await _({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{storeId:this.storeId||void 0,postalCode:this.postalCode||void 0,countryCode:this.countryCode||void 0,widgetName:B.subscription_management,version:"1.0.0"}});return this.storeId=t.store.id,this.eligibleNonprofits=t.nonprofits,this.eligibleNonprofitsDataController.data=t,t}async fetchSubscription(){S(["apiKey","subscriptionId"],this);const t=await K({baseUrl:this.baseUrl,headers:x(this.apiKey),requestBody:{remoteSubscriptionId:this.subscriptionId,email:this.email,partnerUserId:this.partnerUserId}});return this.beamUserId=t.beamUserId,this.nonprofitId=t.nonprofit?.id||null,t}async fetchImpact(){S(["apiKey"],this);const t=await O({baseUrl:this.baseUrl,headers:x(this.apiKey),queryParams:{beamUserId:this.beamUserId?this.beamUserId:void 0,widgetName:"subscription-management",version:"1.0.0",lang:this.configLang}});return this.personalImpactDataController.data=t,t}handleSwapNonprofitButtonClick(){this.activeWidget="select-subscription-nonprofit"}handleBackToSubscriptionImpactButtonClick(){this.activeWidget="subscription-impact"}handleSupportAgainButtonClick(t,n){this.activeWidget="select-subscription-nonprofit",this.selectedNonprofitId=t;const a=new N({selectedNonprofitId:t,nonprofitName:n,source:B.subscription_management});this.dispatchEvent(a)}handleNonprofitSelect(t){if(!(t instanceof N))return;const{selectedNonprofitId:n}=t.detail;this.nonprofitId=n??null,this.activeWidget="subscription-impact"}isNonprofitEligible(t){return this.eligibleNonprofits.some(n=>n.nonprofit.id===t)}shouldDisplayProgressBar(t){return t>et&&t<it}get cssVariables(){const t={...J,...F,"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-borderColor":"#d5d5d5","--beam-SubscriptionManagement-widgetContainer-borderRadius":"4px","--beam-SubscriptionManagement-widgetContainer-padding":"8px 20px","--beam-SubscriptionManagement-widgetContainer-backgroundColor":"inherit","--beam-SubscriptionManagement-widgetContainer-maxWidth":"820px","--beam-SubscriptionManagement-logo-align-desktop":"left","--beam-SubscriptionManagement-logo-align-mobile":"center","--beam-SubscriptionManagement-previousImpact-cardStyle":"'selected_icon'","--beam-SubscriptionManagement-header-padding":"10px 20px 10px 0px","--beam-SubscriptionManagement-header-borderRadius":"0px","--beam-SubscriptionManagement-header-backgroundColor":"#fff","--beam-SubscriptionManagement-header-meatballsMenu-fontSize":"24px","--beam-SubscriptionManagement-header-meatballsMenu-color":"24px","--beam-SubscriptionManagement-lineBreak-color":"#ddd","--beam-SubscriptionManagement-lineBreak-width":"1px","--beam-SubscriptionManagement-lineBreak-margin":"10px 0 20px 0","--beam-SubscriptionManagement-tile-marginBottom":"20px","--beam-SubscriptionManagement-tile-border-width":"0px","--beam-SubscriptionManagement-tile-border-color":"#ddd","--beam-SubscriptionManagement-tile-padding":"12.5px","--beam-SubscriptionManagement-tile-borderRadius":"8px","--beam-SubscriptionManagement-tile-background":"#f8fbfb","--beam-SubscriptionManagement-tileContent-gap":" 15px","--beam-SubscriptionManagement-tileContent-padding":"5px 0px","--beam-SubscriptionManagement-tile-icon-borderRadius":"4px","--beam-SubscriptionManagement-tile-icon-height":"28px","--beam-SubscriptionManagement-tile-icon-background-borderRadius":"50%","--beam-SubscriptionManagement-tile-icon-background-width":"50px","--beam-SubscriptionManagement-tile-icon-background-height":"50px","--beam-SubscriptionManagement-tile-icon-background-backgroundColor":"#0a323c","--beam-SubscriptionManagement-tile-icon-background-padding":"10px","--beam-SubscriptionManagement-blockTileDescription-gap":"5px","--beam-SubscriptionManagement-blockTileDescription-padding":"0px","--beam-SubscriptionManagement-blockTileDescription-lineHeight":"130%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop":"60%","--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile":"100%","--beam-SubscriptionManagement-subWidgetContainer-padding":"0px 0px 10px","--beam-SubscriptionManagement-previousImpactContainer-padding-desktop":"10px 24px 10px 0px","--beam-SubscriptionManagement-previousImpactContainer-padding-mobile":"0px","--beam-SubscriptionManagement-dropDown-padding":"15px 8px","--beam-SubscriptionManagement-dropDown-borderRadius":"8px","--beam-SubscriptionManagement-dropDown-backgroundColor":"#f8fbfb","--beam-SubscriptionManagement-dropDown-boxShadow":"0px 4px 28px 0px rgba(0, 0, 0, 0.04)","--beam-SubscriptionManagement-dropDown-width":"128px","--beam-SubscriptionManagement-dropDown-hover-backgroundColor":"#E1F1EE","--beam-SubscriptionManagement-dropDownOptions-textDecoration":"underline",...c("--beam-SubscriptionManagement-dropDownOptions",{fontSize:"12px",fontWeight:"400",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom":"15px",...c("--beam-SubscriptionManagement-yourPreviousImpactTitle",{fontSize:"18px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-yourPreviousImpact-showAllButton",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-title-letterSpacing":"0.36px",...c("--beam-SubscriptionManagement-tile-title",{fontSize:"12px",fontWeight:"bold",lineHeight:"120%",textTransform:"uppercase",fontStyle:"normal",color:"#0a323c"}),...c("--beam-SubscriptionManagement-tile-description",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),...c("--beam-SubscriptionManagement-tile-via",{fontSize:"14px",lineHeight:"120%",fontStyle:"normal",color:"#454a47"}),"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-nonprofitLink",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration":"underline",...c("--beam-SubscriptionManagement-tile-supportAgainButton",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",textTransform:"capitalize",fontStyle:"normal",color:"#0a323c"}),"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft":"8px",...c("--beam-SubscriptionManagement-tile-progressBarLabel",{fontSize:"10px",fontWeight:"bold",fontStyle:"normal",color:"#878a92"}),"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight":"16px",...c("--beam-SubscriptionManagement-tile-fundedAmount",{fontSize:"14px",fontWeight:"400",lineHeight:"120%",fontStyle:"italic",color:"#0a323c"})},n=this.eligibleNonprofitsDataController?.data?.config?.web?.theme||{},a={...t,...n};return Object.assign(Object.create({toCSS(){return G(this)}}),a)}renderPreviousImpactTiles({personalImpact:t,cardStyle:n,eligibleNonprofitConfig:a}){if(!t)return o``;if(!a)return o``;const r=this.showAllTiles?t:t.slice(0,D);let b=0;return o`
2
2
  ${r.filter(d=>d.nonprofit.includeInPersonalImpact===!0).map(d=>{const{impact:{goalCompletionText:u,description:h,goalProgressPercentage:f,goalProgressText:A},nonprofit:{cause:C,causeIconSelectedUrl:L,causeIconUrl:T,website:U,name:I,id:w}}=d,k=this.nonprofitId!==w&&this.isNonprofitEligible(w),P=k&&this.shouldDisplayProgressBar(f),W=u?`${this.emojis[b]} `:"";return b=(b+1)%this.emojis.length,o`
3
3
  <div class="tile">
4
4
  <div class="tile-header">
package/dist/index.d.ts CHANGED
@@ -1,33 +1,34 @@
1
1
  export { i as WebComponents } from './chunks/index-hn6JhG_w.esm.js';
2
- export { i as Integrations } from './chunks/index-XH3OS_sy.esm.js';
2
+ export { i as Integrations } from './chunks/index-2qmtuEV_.esm.js';
3
3
  export { i as ReactComponents } from './chunks/index-mTXm0DPh.esm.js';
4
- export { i as Utils } from './chunks/index-2bLOkP4H.esm.js';
4
+ export { i as Utils } from './chunks/index-q2vZ79t1.esm.js';
5
5
  import './components/community-impact.js';
6
6
  import 'lit';
7
7
  import 'lit-html';
8
8
  import './chunks/progress-bar-0VS_AmEf.esm.js';
9
9
  import './components/beam-partner-logos.js';
10
10
  import './chunks/types-aju0qrRe.esm.js';
11
- import './chunks/types-zbTZ8-KP.esm.js';
11
+ import './chunks/types-IbMT3Nwn.esm.js';
12
12
  import './components/cumulative-impact.js';
13
13
  import 'lodash';
14
14
  import './components/impact-overview.js';
15
15
  import './chunks/share-button-hDn8fnBI.esm.js';
16
16
  import './components/select-nonprofit.js';
17
17
  import './chunks/promo-pill-label-3bA1z-la.esm.js';
18
- import './chunks/cart-contents-CMm57qu0.esm.js';
19
- import './chunks/openapi-spec-hjdK2L9Q.esm.js';
18
+ import './chunks/cart-contents-6_ztOjrx.esm.js';
19
+ import './chunks/openapi-spec-bxGNhNMa.esm.js';
20
20
  import './components/redeem-transaction.js';
21
21
  import './components/post-purchase.js';
22
22
  import './components/subscription-management.js';
23
- import './chunks/routes-iurI6dvR.esm.js';
23
+ import './chunks/routes-lGXt7ttd.esm.js';
24
24
  import './components/select-subscription-nonprofit.js';
25
25
  import './components/subscription-impact.js';
26
26
  import './components/product-details-page.js';
27
27
  import './components/social-share.js';
28
- import './chunks/index-GynYZRPI.esm.js';
29
- import './chunks/beam-errors-fXDkG1zo.esm.js';
30
- import './chunks/events-ZCTR9JGZ.esm.js';
28
+ import './chunks/index-puZGYsUA.esm.js';
29
+ import './chunks/beam-errors-bKCZlkvr.esm.js';
30
+ import './chunks/events-u_8n2LIU.esm.js';
31
+ import './chunks/promo-types-aQ_hre6t.esm.js';
31
32
  import './utils/logger.js';
32
33
  import './utils/network-listeners.js';
33
34
  import './utils/local-storage.js';
@@ -37,12 +38,13 @@ import './utils/remote-session.js';
37
38
  import './utils/memoize-last.js';
38
39
  import 'lodash-es/debounce';
39
40
  import 'lodash-es/isEqual';
40
- import './chunks/index--z5MSe4-.esm.js';
41
- import './chunks/order-page-9clVUPaS.esm.js';
42
- import './chunks/update-cart-l86bU5uS.esm.js';
41
+ import './utils/promoManager.js';
42
+ import './chunks/index-cznI-EZa.esm.js';
43
+ import './chunks/order-page-dlXIs0gJ.esm.js';
44
+ import './chunks/update-cart-JO4fuiim.esm.js';
43
45
  import './chunks/index-EGiUuWe-.esm.js';
44
- import './chunks/index-v6fG3D6u.esm.js';
45
- import './chunks/index-PA0NAKHV.esm.js';
46
+ import './chunks/index-bhqIqVQJ.esm.js';
47
+ import './chunks/index-0X3JKFYs.esm.js';
46
48
  import './react/community-impact.js';
47
49
  import '@lit/react';
48
50
  import './react/cumulative-impact.js';
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as eo}from"./chunks/index-PiMq5a49.esm.js";import{i as ao}from"./chunks/index-vq14EaW4.esm.js";import{i as fo}from"./chunks/index-E8H5A7Qq.esm.js";import{i as Co}from"./chunks/index-iK195-B9.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-iNN5L_Qk.esm.js";import"./chunks/progress-bar-PMU_xI3L.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/enforce-config-ZAI7WYAd.esm.js";import"./chunks/beam-errors-P-Lu07Ce.esm.js";import"./utils/logger.esm.js";import"./chunks/localize-o-cYvHQf.esm.js";import"./chunks/routes-Dmf2ZNnZ.esm.js";import"./chunks/loading-template-t4fFsYtr.esm.js";import"./chunks/css-card-grid-nEc--M5M.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-P8OIs-at.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.esm.js";import"./chunks/shoelace-components-xrhk189_.esm.js";import"./chunks/vendor-GKiOHg2N.esm.js";import"./chunks/share-button-k_Xn5956.esm.js";import"./chunks/share-button-SNvuFDC9.esm.js";import"./chunks/responsive-2lC2Wrtg.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/promo-pill-label-P1X4xeAx.esm.js";import"./chunks/events-6Z5MkCRr.esm.js";import"./utils/local-storage.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./utils/cart.esm.js";import"./utils/cookies.esm.js";import"./components/redeem-transaction.esm.js";import"./components/post-purchase.esm.js";import"./components/subscription-management.esm.js";import"./components/select-subscription-nonprofit.esm.js";import"./utils/makeApiKeyHeader.esm.js";import"./components/subscription-impact.esm.js";import"./components/product-details-page.esm.js";import"./components/social-share.esm.js";import"./chunks/index-CsWTfuok.esm.js";import"./utils/network-listeners.esm.js";import"./utils/wait-for-element.esm.js";import"./utils/remote-session.esm.js";import"./utils/memoize-last.esm.js";import"./chunks/index-M7Ut5U3j.esm.js";import"./chunks/order-page-rrfJ4w9F.esm.js";import"./chunks/update-cart-FwtFnnGe.esm.js";import"./chunks/index-eXilYHHK.esm.js";import"./chunks/index-nstmHC95.esm.js";import"./chunks/index-JJjxnRZK.esm.js";import"./react/community-impact.esm.js";import"react";import"./react/cumulative-impact.esm.js";import"./react/impact-overview.esm.js";import"./react/select-nonprofit.esm.js";import"./react/redeem-transaction.esm.js";import"./react/post-purchase.esm.js";import"./react/subscription-management.esm.js";import"./react/select-subscription-nonprofit.esm.js";import"./react/subscription-impact.esm.js";import"./react/product-details-page.esm.js";import"./react/social-share.esm.js";export{ao as Integrations,fo as ReactComponents,Co as Utils,eo as WebComponents};
1
+ import{i as so}from"./chunks/index-PiMq5a49.esm.js";import{i as no}from"./chunks/index-smGc5rsi.esm.js";import{i as xo}from"./chunks/index-E8H5A7Qq.esm.js";import{i as bo}from"./chunks/index-m1LRybiJ.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-iNN5L_Qk.esm.js";import"./chunks/progress-bar-PMU_xI3L.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/enforce-config-l-tNb_z7.esm.js";import"./chunks/beam-errors-AMvTvR1C.esm.js";import"./utils/logger.esm.js";import"./chunks/localize-7sMSg1W9.esm.js";import"./chunks/routes-o-phF_L1.esm.js";import"./chunks/loading-template-t4fFsYtr.esm.js";import"./chunks/css-card-grid-nEc--M5M.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-P8OIs-at.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.esm.js";import"./chunks/shoelace-components-PB22pjfM.esm.js";import"./chunks/vendor-GKiOHg2N.esm.js";import"./chunks/share-button-r0y-bbwR.esm.js";import"./chunks/share-button-SNvuFDC9.esm.js";import"./chunks/responsive-2lC2Wrtg.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/promo-pill-label-P1X4xeAx.esm.js";import"./chunks/events-T3hYV1LF.esm.js";import"./utils/local-storage.esm.js";import"./chunks/promoManager-YUzbMtwY.esm.js";import"./utils/cookies.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./utils/cart.esm.js";import"./components/redeem-transaction.esm.js";import"./components/post-purchase.esm.js";import"./components/subscription-management.esm.js";import"./components/select-subscription-nonprofit.esm.js";import"./utils/makeApiKeyHeader.esm.js";import"./components/subscription-impact.esm.js";import"./components/product-details-page.esm.js";import"./components/social-share.esm.js";import"./chunks/index-kFulvjM4.esm.js";import"./utils/network-listeners.esm.js";import"./utils/wait-for-element.esm.js";import"./utils/remote-session.esm.js";import"./utils/memoize-last.esm.js";import"./chunks/index-UHchr4H_.esm.js";import"./chunks/order-page-WPxvCNLM.esm.js";import"./chunks/update-cart-UuMHYehB.esm.js";import"./chunks/index-eXilYHHK.esm.js";import"./chunks/index-44clOvXJ.esm.js";import"./chunks/index-XPlAZw7t.esm.js";import"./react/community-impact.esm.js";import"react";import"./react/cumulative-impact.esm.js";import"./react/impact-overview.esm.js";import"./react/select-nonprofit.esm.js";import"./react/redeem-transaction.esm.js";import"./react/post-purchase.esm.js";import"./react/subscription-management.esm.js";import"./react/select-subscription-nonprofit.esm.js";import"./react/subscription-impact.esm.js";import"./react/product-details-page.esm.js";import"./react/social-share.esm.js";export{no as Integrations,xo as ReactComponents,bo as Utils,so as WebComponents};
2
2
  //# sourceMappingURL=index.esm.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as eo}from"./chunks/index-FQExZDX9.esm.js";import{i as ao}from"./chunks/index-dkwGkvOu.esm.js";import{i as fo}from"./chunks/index-XCMf22lv.esm.js";import{i as Co}from"./chunks/index-MIp7LlXH.esm.js";import"./components/community-impact.js";import"./chunks/lit-iNN5L_Qk.esm.js";import"./chunks/progress-bar-PMU_xI3L.esm.js";import"./components/beam-partner-logos.js";import"./chunks/enforce-config-ZyPq_4CF.esm.js";import"./chunks/beam-errors-P-Lu07Ce.esm.js";import"./utils/logger.js";import"./chunks/localize-m-_ESmpk.esm.js";import"./chunks/routes-o1QpF40R.esm.js";import"./chunks/loading-template-t4fFsYtr.esm.js";import"./chunks/css-card-grid-nEc--M5M.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-P8OIs-at.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.js";import"./chunks/shoelace-components-wBxNHnyr.esm.js";import"./chunks/vendor-GKiOHg2N.esm.js";import"./chunks/share-button-diP8wKOc.esm.js";import"./chunks/share-button-SNvuFDC9.esm.js";import"./chunks/responsive-2lC2Wrtg.esm.js";import"./components/select-nonprofit.js";import"./chunks/promo-pill-label-P1X4xeAx.esm.js";import"./chunks/events-6Z5MkCRr.esm.js";import"./utils/local-storage.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./utils/cart.js";import"./utils/cookies.js";import"./components/redeem-transaction.js";import"./components/post-purchase.js";import"./components/subscription-management.js";import"./components/select-subscription-nonprofit.js";import"./utils/makeApiKeyHeader.js";import"./components/subscription-impact.js";import"./components/product-details-page.js";import"./components/social-share.js";import"./chunks/index-YJNgLCif.esm.js";import"./utils/network-listeners.js";import"./utils/wait-for-element.js";import"./utils/remote-session.js";import"./utils/memoize-last.js";import"./chunks/index-WvOCqhxv.esm.js";import"./chunks/order-page-Z3WcYluU.esm.js";import"./chunks/update-cart-EGTcbNRX.esm.js";import"./chunks/index-JDZQClkA.esm.js";import"./chunks/index-a6oXV2ro.esm.js";import"./chunks/index-XHm2EBaD.esm.js";import"./react/community-impact.js";import"react";import"./react/cumulative-impact.js";import"./react/impact-overview.js";import"./react/select-nonprofit.js";import"./react/redeem-transaction.js";import"./react/post-purchase.js";import"./react/subscription-management.js";import"./react/select-subscription-nonprofit.js";import"./react/subscription-impact.js";import"./react/product-details-page.js";import"./react/social-share.js";export{ao as Integrations,fo as ReactComponents,Co as Utils,eo as WebComponents};
1
+ import{i as so}from"./chunks/index-FQExZDX9.esm.js";import{i as no}from"./chunks/index-B-9JPaCH.esm.js";import{i as xo}from"./chunks/index-XCMf22lv.esm.js";import{i as bo}from"./chunks/index-f7fp9odj.esm.js";import"./components/community-impact.js";import"./chunks/lit-iNN5L_Qk.esm.js";import"./chunks/progress-bar-PMU_xI3L.esm.js";import"./components/beam-partner-logos.js";import"./chunks/enforce-config-S8EGgEnO.esm.js";import"./chunks/beam-errors-AMvTvR1C.esm.js";import"./utils/logger.js";import"./chunks/localize-OiRewTgu.esm.js";import"./chunks/routes-YPOoVIR2.esm.js";import"./chunks/loading-template-t4fFsYtr.esm.js";import"./chunks/css-card-grid-nEc--M5M.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-P8OIs-at.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.js";import"./chunks/shoelace-components-lr4iB8kL.esm.js";import"./chunks/vendor-GKiOHg2N.esm.js";import"./chunks/share-button-EsUPw38-.esm.js";import"./chunks/share-button-SNvuFDC9.esm.js";import"./chunks/responsive-2lC2Wrtg.esm.js";import"./components/select-nonprofit.js";import"./chunks/promo-pill-label-P1X4xeAx.esm.js";import"./chunks/events-T3hYV1LF.esm.js";import"./utils/local-storage.js";import"./chunks/promoManager--3WXq4at.esm.js";import"./utils/cookies.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./utils/cart.js";import"./components/redeem-transaction.js";import"./components/post-purchase.js";import"./components/subscription-management.js";import"./components/select-subscription-nonprofit.js";import"./utils/makeApiKeyHeader.js";import"./components/subscription-impact.js";import"./components/product-details-page.js";import"./components/social-share.js";import"./chunks/index-dLnZQZlT.esm.js";import"./utils/network-listeners.js";import"./utils/wait-for-element.js";import"./utils/remote-session.js";import"./utils/memoize-last.js";import"./chunks/index-CNVMNDM4.esm.js";import"./chunks/order-page-ZpOf35sP.esm.js";import"./chunks/update-cart-mNsQ9K-k.esm.js";import"./chunks/index-JDZQClkA.esm.js";import"./chunks/index-wz6Yfo37.esm.js";import"./chunks/index-HVGMpZIV.esm.js";import"./react/community-impact.js";import"react";import"./react/cumulative-impact.js";import"./react/impact-overview.js";import"./react/select-nonprofit.js";import"./react/redeem-transaction.js";import"./react/post-purchase.js";import"./react/subscription-management.js";import"./react/select-subscription-nonprofit.js";import"./react/subscription-impact.js";import"./react/product-details-page.js";import"./react/social-share.js";export{no as Integrations,xo as ReactComponents,bo as Utils,so as WebComponents};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { b as TApiKey, c as TUrl, T as TNumericId } from '../chunks/types-zbTZ8-KP.esm.js';
1
+ import { b as TApiKey, c as TUrl, T as TNumericId } from '../chunks/types-IbMT3Nwn.esm.js';
2
2
 
3
3
  type BeamConfigOptions = {
4
4
  apiKey: TApiKey;
@@ -1,2 +1,2 @@
1
- import{D as u,a as g}from"../chunks/routes-Dmf2ZNnZ.esm.js";import{S as y}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{B as h}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as w}from"../utils/logger.esm.js";import{s as f}from"../chunks/index-JJjxnRZK.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
1
+ import{D as u,a as g}from"../chunks/routes-o-phF_L1.esm.js";import{S as y}from"../chunks/beam-errors-AMvTvR1C.esm.js";import{B as h}from"../chunks/events-T3hYV1LF.esm.js";import{logger as w}from"../utils/logger.esm.js";import{s as f}from"../chunks/index-XPlAZw7t.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
2
2
  //# sourceMappingURL=beam.esm.js.map
@@ -1,2 +1,2 @@
1
- import{D as u,a as g}from"../chunks/routes-o1QpF40R.esm.js";import{S as y}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{B as h}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as w}from"../utils/logger.js";import{s as f}from"../chunks/index-XHm2EBaD.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
1
+ import{D as u,a as g}from"../chunks/routes-YPOoVIR2.esm.js";import{S as y}from"../chunks/beam-errors-AMvTvR1C.esm.js";import{B as h}from"../chunks/events-T3hYV1LF.esm.js";import{logger as w}from"../utils/logger.js";import{s as f}from"../chunks/index-HVGMpZIV.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
2
2
  //# sourceMappingURL=beam.js.map
@@ -1,5 +1,5 @@
1
- export { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from '../chunks/update-cart-l86bU5uS.esm.js';
1
+ export { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from '../chunks/update-cart-JO4fuiim.esm.js';
2
2
  import 'lodash';
3
3
  import '../chunks/types-aju0qrRe.esm.js';
4
- import '../chunks/cart-contents-CMm57qu0.esm.js';
5
- import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
4
+ import '../chunks/cart-contents-6_ztOjrx.esm.js';
5
+ import '../chunks/openapi-spec-bxGNhNMa.esm.js';
@@ -1,2 +1,2 @@
1
- import{J as C}from"../chunks/update-cart-FwtFnnGe.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-Dmf2ZNnZ.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.esm.js";export{C as updateCart};
1
+ import{O}from"../chunks/update-cart-UuMHYehB.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-o-phF_L1.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"../chunks/events-T3hYV1LF.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/promoManager-YUzbMtwY.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.esm.js";export{O as updateCart};
2
2
  //# sourceMappingURL=cart.esm.js.map
@@ -1,2 +1,2 @@
1
- import{J as C}from"../chunks/update-cart-EGTcbNRX.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-o1QpF40R.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.js";export{C as updateCart};
1
+ import{O}from"../chunks/update-cart-mNsQ9K-k.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-YPOoVIR2.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"../chunks/events-T3hYV1LF.esm.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/promoManager--3WXq4at.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.js";export{O as updateCart};
2
2
  //# sourceMappingURL=cart.js.map