@beamimpact/web-sdk 1.56.3 → 1.57.0

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 (389) hide show
  1. package/dist/chunks/_share-dialog-dependencies-U9953n3E.esm.js +2 -0
  2. package/dist/chunks/{_share-dialog-dependencies-Bk60ibnw.esm.js.map → _share-dialog-dependencies-U9953n3E.esm.js.map} +1 -1
  3. package/dist/chunks/{order-page-CSEjG6ma.esm.d.ts → cart-ChovPXmM.esm.d.ts} +5 -28
  4. package/dist/chunks/css-card-grid-BUidQqf0.esm.js +21 -0
  5. package/dist/chunks/css-card-grid-BUidQqf0.esm.js.map +1 -0
  6. package/dist/chunks/handlebars-B_i-to-h.esm.js +23 -0
  7. package/dist/chunks/handlebars-B_i-to-h.esm.js.map +1 -0
  8. package/dist/chunks/index--PfL-_nX.esm.js +2 -0
  9. package/dist/chunks/index--PfL-_nX.esm.js.map +1 -0
  10. package/dist/chunks/index-B4xKTDaF.esm.js +2 -0
  11. package/dist/chunks/index-B4xKTDaF.esm.js.map +1 -0
  12. package/dist/chunks/{index-DDCtGN21.esm.d.ts → index-BG4XJXUa.esm.d.ts} +1 -5
  13. package/dist/chunks/index-BHglsF5j.esm.js +2 -0
  14. package/dist/chunks/index-BHglsF5j.esm.js.map +1 -0
  15. package/dist/chunks/{index-hghrT7Z_.esm.d.ts → index-BoIHE1tC.esm.d.ts} +3 -0
  16. package/dist/chunks/index-CTsxQr7R.esm.js +32 -0
  17. package/dist/chunks/index-CTsxQr7R.esm.js.map +1 -0
  18. package/dist/chunks/{index-UMeAzKTG.esm.js → index-CVmIOuEY.esm.js} +6 -6
  19. package/dist/chunks/{index-BEEmYYxP.esm.js.map → index-CVmIOuEY.esm.js.map} +1 -1
  20. package/dist/chunks/{index-BLlSL37B.esm.d.ts → index-CdinWvYu.esm.d.ts} +1 -1
  21. package/dist/chunks/index-DBKUxzAl.esm.js +32 -0
  22. package/dist/chunks/index-DBKUxzAl.esm.js.map +1 -0
  23. package/dist/chunks/{index-BEEmYYxP.esm.js → index-DTw-q6W4.esm.js} +6 -6
  24. package/dist/chunks/{index-UMeAzKTG.esm.js.map → index-DTw-q6W4.esm.js.map} +1 -1
  25. package/dist/chunks/index-DhHhFTBE.esm.js +31 -0
  26. package/dist/chunks/index-DhHhFTBE.esm.js.map +1 -0
  27. package/dist/chunks/{index-C_u1FXtO.esm.d.ts → index-IQOpw0qx.esm.d.ts} +1 -10
  28. package/dist/chunks/{index-DyUuvdr3.esm.d.ts → index-_0XeyyF9.esm.d.ts} +1 -1
  29. package/dist/chunks/index-cb5vYQx0.esm.js +2 -0
  30. package/dist/chunks/index-cb5vYQx0.esm.js.map +1 -0
  31. package/dist/chunks/{lit-JRlupCB5.esm.js → lit-BEag9MFp.esm.js} +2 -2
  32. package/dist/chunks/{lit-JRlupCB5.esm.js.map → lit-BEag9MFp.esm.js.map} +1 -1
  33. package/dist/chunks/{lodash-BSs6Il-c.esm.js → lodash-CrMU6wKg.esm.js} +2 -2
  34. package/dist/chunks/{lodash-BSs6Il-c.esm.js.map → lodash-CrMU6wKg.esm.js.map} +1 -1
  35. package/dist/chunks/{promo-pill-label-D_4zJ7uy.esm.js → promo-pill-label-BdTmmg_U.esm.js} +2 -2
  36. package/dist/chunks/{promo-pill-label-D_4zJ7uy.esm.js.map → promo-pill-label-BdTmmg_U.esm.js.map} +1 -1
  37. package/dist/chunks/{responsive-CIV4sFdH.esm.js → responsive-aN8P5PqD.esm.js} +2 -2
  38. package/dist/chunks/{responsive-CIV4sFdH.esm.js.map → responsive-aN8P5PqD.esm.js.map} +1 -1
  39. package/dist/chunks/{routes-OxC3Ah30.esm.d.ts → routes-D6Gtw6kZ.esm.d.ts} +1 -1
  40. package/dist/chunks/share-button-7sI6zg-x.esm.js +54 -0
  41. package/dist/chunks/share-button-7sI6zg-x.esm.js.map +1 -0
  42. package/dist/chunks/{share-button-Dzc7loia.esm.js → share-button-BaIbuJOl.esm.js} +3 -3
  43. package/dist/chunks/{share-button-DkTpGZk1.esm.js.map → share-button-BaIbuJOl.esm.js.map} +1 -1
  44. package/dist/chunks/{update-cart-DWgFuC7U.esm.d.ts → update-cart-CcgzHTEm.esm.d.ts} +1 -2
  45. package/dist/chunks/utils-BjhsDvuU.esm.js +2 -0
  46. package/dist/chunks/utils-BjhsDvuU.esm.js.map +1 -0
  47. package/dist/chunks/{openapi-spec-B4z4_CMq.esm.d.ts → utils-D8HO_RIu.esm.d.ts} +597 -11
  48. package/dist/chunks/{vendor-ckSdd6aH.esm.js → vendor-DUOg5fL-.esm.js} +2 -2
  49. package/dist/chunks/{vendor-ckSdd6aH.esm.js.map → vendor-DUOg5fL-.esm.js.map} +1 -1
  50. package/dist/components/beam-partner-logos.d.ts +3 -1
  51. package/dist/components/beam-partner-logos.esm.js +1 -1
  52. package/dist/components/beam-partner-logos.js +1 -1
  53. package/dist/components/community-impact.d.ts +3 -2
  54. package/dist/components/community-impact.esm.js +6 -6
  55. package/dist/components/community-impact.esm.js.map +1 -1
  56. package/dist/components/community-impact.js +6 -6
  57. package/dist/components/community-impact.js.map +1 -1
  58. package/dist/components/cumulative-impact.d.ts +3 -2
  59. package/dist/components/cumulative-impact.esm.js +11 -11
  60. package/dist/components/cumulative-impact.esm.js.map +1 -1
  61. package/dist/components/cumulative-impact.js +11 -11
  62. package/dist/components/cumulative-impact.js.map +1 -1
  63. package/dist/components/impact-overview.d.ts +3 -2
  64. package/dist/components/impact-overview.esm.js +5 -5
  65. package/dist/components/impact-overview.esm.js.map +1 -1
  66. package/dist/components/impact-overview.js +5 -5
  67. package/dist/components/impact-overview.js.map +1 -1
  68. package/dist/components/index.d.ts +5 -5
  69. package/dist/components/index.esm.js +1 -1
  70. package/dist/components/index.js +1 -1
  71. package/dist/components/post-purchase.d.ts +3 -4
  72. package/dist/components/post-purchase.esm.js +1 -31
  73. package/dist/components/post-purchase.esm.js.map +1 -1
  74. package/dist/components/post-purchase.js +1 -31
  75. package/dist/components/post-purchase.js.map +1 -1
  76. package/dist/components/product-details-page.d.ts +4 -2
  77. package/dist/components/product-details-page.esm.js +4 -4
  78. package/dist/components/product-details-page.esm.js.map +1 -1
  79. package/dist/components/product-details-page.js +4 -4
  80. package/dist/components/product-details-page.js.map +1 -1
  81. package/dist/components/redeem-transaction.d.ts +3 -4
  82. package/dist/components/redeem-transaction.esm.js +1 -1
  83. package/dist/components/redeem-transaction.js +1 -1
  84. package/dist/components/select-nonprofit.d.ts +3 -4
  85. package/dist/components/select-nonprofit.esm.js +6 -6
  86. package/dist/components/select-nonprofit.esm.js.map +1 -1
  87. package/dist/components/select-nonprofit.js +6 -6
  88. package/dist/components/select-nonprofit.js.map +1 -1
  89. package/dist/components/select-subscription-nonprofit.d.ts +3 -2
  90. package/dist/components/select-subscription-nonprofit.esm.js +5 -5
  91. package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
  92. package/dist/components/select-subscription-nonprofit.js +5 -5
  93. package/dist/components/select-subscription-nonprofit.js.map +1 -1
  94. package/dist/components/shopify.d.ts +9 -12
  95. package/dist/components/shopify.esm.js +1 -1
  96. package/dist/components/shopify.esm.js.map +1 -1
  97. package/dist/components/shopify.js +1 -1
  98. package/dist/components/shopify.js.map +1 -1
  99. package/dist/components/social-share.d.ts +3 -2
  100. package/dist/components/social-share.esm.js +2 -2
  101. package/dist/components/social-share.esm.js.map +1 -1
  102. package/dist/components/social-share.js +2 -2
  103. package/dist/components/social-share.js.map +1 -1
  104. package/dist/components/subscriber-select-nonprofit.d.ts +59 -0
  105. package/dist/components/subscriber-select-nonprofit.esm.js +137 -0
  106. package/dist/components/subscriber-select-nonprofit.esm.js.map +1 -0
  107. package/dist/components/subscriber-select-nonprofit.js +137 -0
  108. package/dist/components/subscriber-select-nonprofit.js.map +1 -0
  109. package/dist/components/subscription-impact.d.ts +3 -2
  110. package/dist/components/subscription-impact.esm.js +6 -6
  111. package/dist/components/subscription-impact.esm.js.map +1 -1
  112. package/dist/components/subscription-impact.js +6 -6
  113. package/dist/components/subscription-impact.js.map +1 -1
  114. package/dist/components/subscription-management.d.ts +4 -5
  115. package/dist/components/subscription-management.esm.js +4 -4
  116. package/dist/components/subscription-management.esm.js.map +1 -1
  117. package/dist/components/subscription-management.js +4 -4
  118. package/dist/components/subscription-management.js.map +1 -1
  119. package/dist/index.d.ts +39 -38
  120. package/dist/index.esm.js +1 -1
  121. package/dist/index.js +1 -1
  122. package/dist/integrations/beam.d.ts +3 -1
  123. package/dist/integrations/beam.esm.js +1 -1
  124. package/dist/integrations/beam.esm.js.map +1 -1
  125. package/dist/integrations/beam.js +1 -1
  126. package/dist/integrations/beam.js.map +1 -1
  127. package/dist/integrations/cart.d.ts +4 -4
  128. package/dist/integrations/cart.esm.js +1 -1
  129. package/dist/integrations/cart.js +1 -1
  130. package/dist/integrations/logs.d.ts +4 -2
  131. package/dist/integrations/logs.esm.js +1 -1
  132. package/dist/integrations/logs.js +1 -1
  133. package/dist/integrations/promoManager.d.ts +3 -1
  134. package/dist/integrations/promoManager.esm.js +1 -1
  135. package/dist/integrations/promoManager.esm.js.map +1 -1
  136. package/dist/integrations/promoManager.js +1 -1
  137. package/dist/integrations/promoManager.js.map +1 -1
  138. package/dist/integrations/session.esm.js +1 -1
  139. package/dist/integrations/session.js +1 -1
  140. package/dist/integrations/shopify-order.d.ts +38 -0
  141. package/dist/integrations/shopify-order.esm.js +2 -0
  142. package/dist/integrations/shopify-order.esm.js.map +1 -0
  143. package/dist/integrations/shopify-order.js +2 -0
  144. package/dist/integrations/shopify-order.js.map +1 -0
  145. package/dist/integrations/shopify.d.ts +5 -12
  146. package/dist/integrations/shopify.esm.js +1 -1
  147. package/dist/integrations/shopify.js +1 -1
  148. package/dist/integrations/statsig.d.ts +3 -1
  149. package/dist/integrations/statsig.esm.js +2 -2
  150. package/dist/integrations/statsig.esm.js.map +1 -1
  151. package/dist/integrations/statsig.js +2 -2
  152. package/dist/integrations/statsig.js.map +1 -1
  153. package/dist/integrations/utils.d.ts +1 -14
  154. package/dist/integrations/utils.esm.js +1 -1
  155. package/dist/integrations/utils.js +1 -1
  156. package/dist/react/beam-partner-logos.d.ts +3 -1
  157. package/dist/react/beam-partner-logos.esm.js +1 -1
  158. package/dist/react/beam-partner-logos.js +1 -1
  159. package/dist/react/community-impact.d.ts +3 -2
  160. package/dist/react/community-impact.esm.js +1 -1
  161. package/dist/react/community-impact.esm.js.map +1 -1
  162. package/dist/react/community-impact.js +1 -1
  163. package/dist/react/community-impact.js.map +1 -1
  164. package/dist/react/cumulative-impact.d.ts +3 -2
  165. package/dist/react/cumulative-impact.esm.js +1 -1
  166. package/dist/react/cumulative-impact.esm.js.map +1 -1
  167. package/dist/react/cumulative-impact.js +1 -1
  168. package/dist/react/cumulative-impact.js.map +1 -1
  169. package/dist/react/impact-overview.d.ts +3 -2
  170. package/dist/react/impact-overview.esm.js +1 -1
  171. package/dist/react/impact-overview.esm.js.map +1 -1
  172. package/dist/react/impact-overview.js +1 -1
  173. package/dist/react/impact-overview.js.map +1 -1
  174. package/dist/react/index.d.ts +6 -7
  175. package/dist/react/index.esm.js +1 -1
  176. package/dist/react/index.js +1 -1
  177. package/dist/react/post-purchase.d.ts +3 -4
  178. package/dist/react/post-purchase.esm.js +1 -1
  179. package/dist/react/post-purchase.esm.js.map +1 -1
  180. package/dist/react/post-purchase.js +1 -1
  181. package/dist/react/post-purchase.js.map +1 -1
  182. package/dist/react/product-details-page.d.ts +4 -2
  183. package/dist/react/product-details-page.esm.js +1 -1
  184. package/dist/react/product-details-page.esm.js.map +1 -1
  185. package/dist/react/product-details-page.js +1 -1
  186. package/dist/react/product-details-page.js.map +1 -1
  187. package/dist/react/redeem-transaction.d.ts +3 -6
  188. package/dist/react/redeem-transaction.esm.js +1 -1
  189. package/dist/react/redeem-transaction.esm.js.map +1 -1
  190. package/dist/react/redeem-transaction.js +1 -1
  191. package/dist/react/redeem-transaction.js.map +1 -1
  192. package/dist/react/select-nonprofit.d.ts +3 -6
  193. package/dist/react/select-nonprofit.esm.js +1 -1
  194. package/dist/react/select-nonprofit.esm.js.map +1 -1
  195. package/dist/react/select-nonprofit.js +1 -1
  196. package/dist/react/select-nonprofit.js.map +1 -1
  197. package/dist/react/select-subscription-nonprofit.d.ts +3 -6
  198. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  199. package/dist/react/select-subscription-nonprofit.esm.js.map +1 -1
  200. package/dist/react/select-subscription-nonprofit.js +1 -1
  201. package/dist/react/select-subscription-nonprofit.js.map +1 -1
  202. package/dist/react/shopify.d.ts +2 -2
  203. package/dist/react/shopify.esm.js +1 -1
  204. package/dist/react/shopify.esm.js.map +1 -1
  205. package/dist/react/shopify.js +1 -1
  206. package/dist/react/shopify.js.map +1 -1
  207. package/dist/react/social-share.d.ts +3 -2
  208. package/dist/react/social-share.esm.js +1 -1
  209. package/dist/react/social-share.esm.js.map +1 -1
  210. package/dist/react/social-share.js +1 -1
  211. package/dist/react/social-share.js.map +1 -1
  212. package/dist/react/subscriber-select-nonprofit.d.ts +14 -0
  213. package/dist/react/subscriber-select-nonprofit.esm.js +2 -0
  214. package/dist/react/subscriber-select-nonprofit.esm.js.map +1 -0
  215. package/dist/react/subscriber-select-nonprofit.js +2 -0
  216. package/dist/react/subscriber-select-nonprofit.js.map +1 -0
  217. package/dist/react/subscription-impact.d.ts +3 -2
  218. package/dist/react/subscription-impact.esm.js +1 -1
  219. package/dist/react/subscription-impact.esm.js.map +1 -1
  220. package/dist/react/subscription-impact.js +1 -1
  221. package/dist/react/subscription-impact.js.map +1 -1
  222. package/dist/react/subscription-management.d.ts +4 -5
  223. package/dist/react/subscription-management.esm.js +1 -1
  224. package/dist/react/subscription-management.esm.js.map +1 -1
  225. package/dist/react/subscription-management.js +1 -1
  226. package/dist/react/subscription-management.js.map +1 -1
  227. package/dist/utils/beam-errors.d.ts +3 -1
  228. package/dist/utils/beam-errors.esm.js +1 -1
  229. package/dist/utils/beam-errors.js +1 -1
  230. package/dist/utils/cart.d.ts +3 -18
  231. package/dist/utils/cart.esm.js +1 -1
  232. package/dist/utils/cart.esm.js.map +1 -1
  233. package/dist/utils/cart.js +1 -1
  234. package/dist/utils/cart.js.map +1 -1
  235. package/dist/utils/cookies.d.ts +3 -18
  236. package/dist/utils/cookies.esm.js +1 -1
  237. package/dist/utils/cookies.esm.js.map +1 -1
  238. package/dist/utils/cookies.js +1 -1
  239. package/dist/utils/cookies.js.map +1 -1
  240. package/dist/utils/debounce.esm.js +1 -1
  241. package/dist/utils/debounce.js +1 -1
  242. package/dist/utils/events.d.ts +3 -5
  243. package/dist/utils/events.esm.js +1 -1
  244. package/dist/utils/events.js +1 -1
  245. package/dist/utils/is-equal.esm.js +1 -1
  246. package/dist/utils/is-equal.js +1 -1
  247. package/dist/utils/local-storage.d.ts +3 -19
  248. package/dist/utils/local-storage.esm.js +1 -1
  249. package/dist/utils/local-storage.esm.js.map +1 -1
  250. package/dist/utils/local-storage.js +1 -1
  251. package/dist/utils/local-storage.js.map +1 -1
  252. package/dist/utils/logger.d.ts +3 -8
  253. package/dist/utils/logger.esm.js +1 -1
  254. package/dist/utils/logger.esm.js.map +1 -1
  255. package/dist/utils/logger.js +1 -1
  256. package/dist/utils/logger.js.map +1 -1
  257. package/dist/utils/makeApiKeyHeader.d.ts +3 -5
  258. package/dist/utils/makeApiKeyHeader.esm.js +1 -1
  259. package/dist/utils/makeApiKeyHeader.esm.js.map +1 -1
  260. package/dist/utils/makeApiKeyHeader.js +1 -1
  261. package/dist/utils/makeApiKeyHeader.js.map +1 -1
  262. package/dist/utils/memoize-last.d.ts +3 -17
  263. package/dist/utils/memoize-last.esm.js +1 -1
  264. package/dist/utils/memoize-last.esm.js.map +1 -1
  265. package/dist/utils/memoize-last.js +1 -1
  266. package/dist/utils/memoize-last.js.map +1 -1
  267. package/dist/utils/network-listeners.d.ts +3 -3
  268. package/dist/utils/network-listeners.esm.js +1 -1
  269. package/dist/utils/network-listeners.esm.js.map +1 -1
  270. package/dist/utils/network-listeners.js +1 -1
  271. package/dist/utils/network-listeners.js.map +1 -1
  272. package/dist/utils/promoManager.d.ts +3 -111
  273. package/dist/utils/promoManager.esm.js +1 -1
  274. package/dist/utils/promoManager.esm.js.map +1 -1
  275. package/dist/utils/promoManager.js +1 -1
  276. package/dist/utils/promoManager.js.map +1 -1
  277. package/dist/utils/remote-session.d.ts +3 -9
  278. package/dist/utils/remote-session.esm.js +1 -1
  279. package/dist/utils/remote-session.esm.js.map +1 -1
  280. package/dist/utils/remote-session.js +1 -1
  281. package/dist/utils/remote-session.js.map +1 -1
  282. package/dist/utils/wait-for-element.d.ts +3 -5
  283. package/dist/utils/wait-for-element.esm.js +1 -1
  284. package/dist/utils/wait-for-element.esm.js.map +1 -1
  285. package/dist/utils/wait-for-element.js +1 -1
  286. package/dist/utils/wait-for-element.js.map +1 -1
  287. package/package.json +9 -6
  288. package/dist/chunks/_share-dialog-dependencies-Bk60ibnw.esm.js +0 -2
  289. package/dist/chunks/_share-dialog-dependencies-D6vA_2f6.esm.js +0 -2
  290. package/dist/chunks/_share-dialog-dependencies-D6vA_2f6.esm.js.map +0 -1
  291. package/dist/chunks/beam-errors-Ci0d3926.esm.js +0 -2
  292. package/dist/chunks/beam-errors-Ci0d3926.esm.js.map +0 -1
  293. package/dist/chunks/beam-errors-DUQ9pK2V.esm.d.ts +0 -46
  294. package/dist/chunks/cart-contents-CEoSx3y4.esm.d.ts +0 -18
  295. package/dist/chunks/cart-contents-DkoytiZh.esm.js +0 -2
  296. package/dist/chunks/cart-contents-DkoytiZh.esm.js.map +0 -1
  297. package/dist/chunks/css-card-grid-DixMt6ek.esm.js +0 -20
  298. package/dist/chunks/css-card-grid-DixMt6ek.esm.js.map +0 -1
  299. package/dist/chunks/enforce-config-DHnpgqSK.esm.js +0 -3
  300. package/dist/chunks/enforce-config-DHnpgqSK.esm.js.map +0 -1
  301. package/dist/chunks/enforce-config-DUbQnaLO.esm.js +0 -3
  302. package/dist/chunks/enforce-config-DUbQnaLO.esm.js.map +0 -1
  303. package/dist/chunks/events-COWOQoLW.esm.js +0 -2
  304. package/dist/chunks/events-COWOQoLW.esm.js.map +0 -1
  305. package/dist/chunks/events-Dwqfqbij.esm.d.ts +0 -214
  306. package/dist/chunks/index-8rOpG9kf.esm.js +0 -2
  307. package/dist/chunks/index-8rOpG9kf.esm.js.map +0 -1
  308. package/dist/chunks/index-B1GmdVT3.esm.js +0 -2
  309. package/dist/chunks/index-B1GmdVT3.esm.js.map +0 -1
  310. package/dist/chunks/index-B2dxbh1d.esm.js +0 -2
  311. package/dist/chunks/index-B2dxbh1d.esm.js.map +0 -1
  312. package/dist/chunks/index-BIEV1MH0.esm.js +0 -2
  313. package/dist/chunks/index-BIEV1MH0.esm.js.map +0 -1
  314. package/dist/chunks/index-BaWMWAyt.esm.js +0 -2
  315. package/dist/chunks/index-BaWMWAyt.esm.js.map +0 -1
  316. package/dist/chunks/index-BeX4QeUu.esm.js +0 -2
  317. package/dist/chunks/index-BeX4QeUu.esm.js.map +0 -1
  318. package/dist/chunks/index-C3hpHWh1.esm.js +0 -2
  319. package/dist/chunks/index-C3hpHWh1.esm.js.map +0 -1
  320. package/dist/chunks/index-C3v-y56g.esm.js +0 -2
  321. package/dist/chunks/index-C3v-y56g.esm.js.map +0 -1
  322. package/dist/chunks/index-CqqF1sQo.esm.js +0 -2
  323. package/dist/chunks/index-CqqF1sQo.esm.js.map +0 -1
  324. package/dist/chunks/index-Cs4Kp9X4.esm.js +0 -2
  325. package/dist/chunks/index-Cs4Kp9X4.esm.js.map +0 -1
  326. package/dist/chunks/index-D20ifskY.esm.d.ts +0 -21
  327. package/dist/chunks/index-D3hxLDQF.esm.js +0 -2
  328. package/dist/chunks/index-D3hxLDQF.esm.js.map +0 -1
  329. package/dist/chunks/index-D5TZB-zM.esm.js +0 -2
  330. package/dist/chunks/index-D5TZB-zM.esm.js.map +0 -1
  331. package/dist/chunks/index-D6qJfs7_.esm.js +0 -2
  332. package/dist/chunks/index-D6qJfs7_.esm.js.map +0 -1
  333. package/dist/chunks/index-DSJACB_p.esm.js +0 -2
  334. package/dist/chunks/index-DSJACB_p.esm.js.map +0 -1
  335. package/dist/chunks/index-DmjZnpod.esm.js +0 -2
  336. package/dist/chunks/index-DmjZnpod.esm.js.map +0 -1
  337. package/dist/chunks/index-EJRmgmQu.esm.d.ts +0 -74
  338. package/dist/chunks/index-mppXVWCH.esm.js +0 -2
  339. package/dist/chunks/index-mppXVWCH.esm.js.map +0 -1
  340. package/dist/chunks/index-n62IxH5D.esm.js +0 -2
  341. package/dist/chunks/index-n62IxH5D.esm.js.map +0 -1
  342. package/dist/chunks/index-nAPzvUWE.esm.js +0 -2
  343. package/dist/chunks/index-nAPzvUWE.esm.js.map +0 -1
  344. package/dist/chunks/index-xcGPhpiO.esm.d.ts +0 -44
  345. package/dist/chunks/is-all-html-elements-fcB7UUA1.esm.js +0 -2
  346. package/dist/chunks/is-all-html-elements-fcB7UUA1.esm.js.map +0 -1
  347. package/dist/chunks/loading-template-BFvXaTlD.esm.js +0 -2
  348. package/dist/chunks/loading-template-BFvXaTlD.esm.js.map +0 -1
  349. package/dist/chunks/localize-Dg7NgKIP.esm.js +0 -31
  350. package/dist/chunks/localize-Dg7NgKIP.esm.js.map +0 -1
  351. package/dist/chunks/localize-DkAbsh05.esm.js +0 -31
  352. package/dist/chunks/localize-DkAbsh05.esm.js.map +0 -1
  353. package/dist/chunks/order-page-B0WbVrvh.esm.js +0 -2
  354. package/dist/chunks/order-page-B0WbVrvh.esm.js.map +0 -1
  355. package/dist/chunks/order-page-CT3hnhzf.esm.js +0 -2
  356. package/dist/chunks/order-page-CT3hnhzf.esm.js.map +0 -1
  357. package/dist/chunks/progress-bar-B82FOT8n.esm.js +0 -54
  358. package/dist/chunks/progress-bar-B82FOT8n.esm.js.map +0 -1
  359. package/dist/chunks/promo-pill-label-DcsiJS_N.esm.js +0 -16
  360. package/dist/chunks/promo-pill-label-DcsiJS_N.esm.js.map +0 -1
  361. package/dist/chunks/promo-types-CmZzhkpN.esm.d.ts +0 -15
  362. package/dist/chunks/promo-types-DKAOFHJr.esm.js +0 -2
  363. package/dist/chunks/promo-types-DKAOFHJr.esm.js.map +0 -1
  364. package/dist/chunks/routes-BIMwJ8u9.esm.js +0 -2
  365. package/dist/chunks/routes-BIMwJ8u9.esm.js.map +0 -1
  366. package/dist/chunks/routes-DSu5s3K7.esm.js +0 -2
  367. package/dist/chunks/routes-DSu5s3K7.esm.js.map +0 -1
  368. package/dist/chunks/share-button-CLMw49f5.esm.js +0 -2
  369. package/dist/chunks/share-button-CLMw49f5.esm.js.map +0 -1
  370. package/dist/chunks/share-button-DXS3zbJz.esm.js +0 -2
  371. package/dist/chunks/share-button-DXS3zbJz.esm.js.map +0 -1
  372. package/dist/chunks/share-button-DkTpGZk1.esm.js +0 -172
  373. package/dist/chunks/share-button-Dzc7loia.esm.js.map +0 -1
  374. package/dist/chunks/types-D_PLq1pj.esm.d.ts +0 -28
  375. package/dist/chunks/types-DfRc36jU.esm.d.ts +0 -15
  376. package/dist/chunks/update-cart-ByUvNLyZ.esm.js +0 -2
  377. package/dist/chunks/update-cart-ByUvNLyZ.esm.js.map +0 -1
  378. package/dist/chunks/update-cart-yj_9VGHp.esm.js +0 -2
  379. package/dist/chunks/update-cart-yj_9VGHp.esm.js.map +0 -1
  380. package/dist/integrations/index.d.ts +0 -31
  381. package/dist/integrations/index.esm.js +0 -2
  382. package/dist/integrations/index.esm.js.map +0 -1
  383. package/dist/integrations/index.js +0 -2
  384. package/dist/integrations/index.js.map +0 -1
  385. package/dist/utils/index.d.ts +0 -16
  386. package/dist/utils/index.esm.js +0 -2
  387. package/dist/utils/index.esm.js.map +0 -1
  388. package/dist/utils/index.js +0 -2
  389. package/dist/utils/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"shopify.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"shopify.esm.js","sources":["../../src/integrations/session/index.ts"],"sourcesContent":["/**\n If checkout and order page are on different subdomains, we can't access localStorage for nonprofitId/selectionId\n We can make post-transaction work by copying a \"cartID\"-style cookie to the expected localStorage key on the current\n domain, which will allow the post-transaction widgets to send that to the backend which can restore the selection\n from the cart.\n\n This will also work if we don't have a cart cookie for some other reason, although it is not directly integrated\n with the host site's concept of a cart (e.g., line items and expiration dates).\n\n Note: Use a module import rather than a self-executing script so that we can set cookies on the host domain\n rather than our 3rd party CDN domain, and customize the options via arguments.\n\n Usage:\n <script type=\"module\">\n import { createSession } from 'https://...';\n createSession({domain: 'mystore.com'})\n </script>\n */\n\nimport { v4 as uuid } from \"@lukeed/uuid/secure\";\nimport { deleteCookieValue, getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { createScopedLocalStorage } from \"../../utils/local-storage\";\n\nconst DEFAULT_COOKIE_NAME = \"beam_session\";\n\nexport async function createSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain or subdomain to set cookie on\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const existingValue = await getCookieValue(cookieName);\n\n if (existingValue) {\n return; // do nothing\n }\n\n const cookieValue = uuid();\n\n const expires = Date.now() + 30 * 24 * 60 * 60 * 1000; // 30 days\n\n await setCookieValue({ name: cookieName, value: cookieValue, domain, path: \"/\", expires });\n\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n}\n\nexport async function endSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain to remove cookie from\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const cookieValue = await getCookieValue(cookieName);\n\n if (!cookieValue) {\n return; // do nothing\n }\n\n // copy cookie value into localStorage for widgets to use\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n\n // delete cookie to end session (will generate new one on next visit)\n await deleteCookieValue({ name: cookieName, domain });\n}\n"],"names":["DEFAULT_COOKIE_NAME","createSession","cookieName","domain","apiKey","getCookieValue","cookieValue","uuid","expires","setCookieValue","createScopedLocalStorage","endSession","deleteCookieValue"],"mappings":"89BAuBA,MAAMA,EAAsB,eAE5B,eAAsBC,EAAc,CAClC,WAAAC,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,CAAA,EAAI,CAGN,GAFsB,MAAMC,EAAeH,CAAU,EAGnD,OAGF,MAAMI,EAAcC,EAAAA,EAEdC,EAAU,KAAK,MAAQ,IAAU,GAAK,GAAK,IAEjD,MAAMC,EAAe,CAAE,KAAMP,EAAY,MAAOI,EAAa,OAAAH,EAAQ,KAAM,IAAK,QAAAK,CAAQ,CAAC,EAEhEE,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,CAC9D,CAEA,eAAsBK,EAAW,CAC/B,WAAAT,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,GAAI,CACN,MAAME,EAAc,MAAMD,EAAeH,CAAU,EAE9CI,IAKoBI,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,EAG5D,MAAMM,EAAkB,CAAE,KAAMV,EAAY,OAAAC,CAAO,CAAC,EACtD"}
@@ -1,2 +1,2 @@
1
-
1
+ import{u as s,N as i,O as c,e as g,f as p,P as S,a as u,g as r,j as P,A as k,d as f,K as w,h as y,b as v,x as A,l as F,Q as L,J as E,R,z as _,p as I,s as b,n,D as z,C as h,w as V}from"../chunks/utils-BjhsDvuU.esm.js";import{d as x,i as J}from"../chunks/lodash-CrMU6wKg.esm.js";import{v as K}from"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/lit-BEag9MFp.esm.js";var N=Object.freeze({__proto__:null,createScopedLocalStorage:s,debounce:x,deleteCookieValue:i,errors:c,events:g,formatStoreAndReturnPromoCodes:p,getAllPromoCodesFromCookie:S,getCookieMap:u,getCookieValue:r,getPromoCodeFromShopifyCookie:P,getPromoCodesFromCart:k,getPromoCodesLocalStorage:f,getRemoteSession:w,getSanitizedUrlForStorage:y,initNetworkListeners:v,isEmptyPromoData:A,isEqual:J,logger:F,mapToUnvalidatedPromoCodes:L,memoizeLast:E,mergeStoreAndReturnPromos:R,parseJsonStringArray:_,promoCodesAreEqual:I,saveRemoteSession:b,setCookieValue:n,setPromoCodeInCookie:z,setPromoCodesInLocalStorage:h,waitForElement:V});const m="beam_session";async function d({cookieName:o=m,domain:a=window.location.hostname,apiKey:t=""}={}){if(await r(o))return;const e=K(),C=Date.now()+720*60*60*1e3;await n({name:o,value:e,domain:a,path:"/",expires:C}),s({apiKey:t}).setItemJson("cart",{cartId:e})}async function l({cookieName:o=m,domain:a=window.location.hostname,apiKey:t=""}={}){const e=await r(o);e&&(s({apiKey:t}).setItemJson("cart",{cartId:e}),await i({name:o,domain:a}))}var q=Object.freeze({__proto__:null,createSession:d,endSession:l});export{N as a,d as c,l as e,q as i};
2
2
  //# sourceMappingURL=shopify.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shopify.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"shopify.js","sources":["../../src/integrations/session/index.ts"],"sourcesContent":["/**\n If checkout and order page are on different subdomains, we can't access localStorage for nonprofitId/selectionId\n We can make post-transaction work by copying a \"cartID\"-style cookie to the expected localStorage key on the current\n domain, which will allow the post-transaction widgets to send that to the backend which can restore the selection\n from the cart.\n\n This will also work if we don't have a cart cookie for some other reason, although it is not directly integrated\n with the host site's concept of a cart (e.g., line items and expiration dates).\n\n Note: Use a module import rather than a self-executing script so that we can set cookies on the host domain\n rather than our 3rd party CDN domain, and customize the options via arguments.\n\n Usage:\n <script type=\"module\">\n import { createSession } from 'https://...';\n createSession({domain: 'mystore.com'})\n </script>\n */\n\nimport { v4 as uuid } from \"@lukeed/uuid/secure\";\nimport { deleteCookieValue, getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { createScopedLocalStorage } from \"../../utils/local-storage\";\n\nconst DEFAULT_COOKIE_NAME = \"beam_session\";\n\nexport async function createSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain or subdomain to set cookie on\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const existingValue = await getCookieValue(cookieName);\n\n if (existingValue) {\n return; // do nothing\n }\n\n const cookieValue = uuid();\n\n const expires = Date.now() + 30 * 24 * 60 * 60 * 1000; // 30 days\n\n await setCookieValue({ name: cookieName, value: cookieValue, domain, path: \"/\", expires });\n\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n}\n\nexport async function endSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain to remove cookie from\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const cookieValue = await getCookieValue(cookieName);\n\n if (!cookieValue) {\n return; // do nothing\n }\n\n // copy cookie value into localStorage for widgets to use\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n\n // delete cookie to end session (will generate new one on next visit)\n await deleteCookieValue({ name: cookieName, domain });\n}\n"],"names":["DEFAULT_COOKIE_NAME","createSession","cookieName","domain","apiKey","getCookieValue","cookieValue","uuid","expires","setCookieValue","createScopedLocalStorage","endSession","deleteCookieValue"],"mappings":"89BAuBA,MAAMA,EAAsB,eAE5B,eAAsBC,EAAc,CAClC,WAAAC,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,CAAA,EAAI,CAGN,GAFsB,MAAMC,EAAeH,CAAU,EAGnD,OAGF,MAAMI,EAAcC,EAAAA,EAEdC,EAAU,KAAK,MAAQ,IAAU,GAAK,GAAK,IAEjD,MAAMC,EAAe,CAAE,KAAMP,EAAY,MAAOI,EAAa,OAAAH,EAAQ,KAAM,IAAK,QAAAK,CAAQ,CAAC,EAEhEE,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,CAC9D,CAEA,eAAsBK,EAAW,CAC/B,WAAAT,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,GAAI,CACN,MAAME,EAAc,MAAMD,EAAeH,CAAU,EAE9CI,IAKoBI,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,EAG5D,MAAMM,EAAkB,CAAE,KAAMV,EAAY,OAAAC,CAAO,CAAC,EACtD"}
@@ -3,8 +3,9 @@ import { BeamSocialShare as BeamSocialShare$1 } from '../components/social-share
3
3
  import 'lit';
4
4
  import 'lit-html';
5
5
  import '../components/beam-partner-logos.js';
6
- import '../chunks/types-DfRc36jU.esm.js';
7
- import '../chunks/types-D_PLq1pj.esm.js';
6
+ import '../chunks/utils-D8HO_RIu.esm.js';
7
+ import 'lodash-es/debounce';
8
+ import 'lodash-es/isEqual';
8
9
 
9
10
  declare const BeamSocialShare: _lit_react.ReactWebComponent<BeamSocialShare$1, {}>;
10
11
 
@@ -1,2 +1,2 @@
1
- import r from"react";import{f as t}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSocialShare as m}from"../components/social-share.esm.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-Bk60ibnw.esm.js";import"../chunks/routes-DSu5s3K7.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-DHnpgqSK.esm.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../chunks/share-button-DXS3zbJz.esm.js";const o=t({tagName:m.tagName,elementClass:m,react:r});export{o as BeamSocialShare,o as default};
1
+ import a from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSocialShare as m}from"../components/social-share.esm.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";const o=r({tagName:m.tagName,elementClass:m,react:a});export{o as BeamSocialShare,o as default};
2
2
  //# sourceMappingURL=social-share.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social-share.esm.js","sources":["../../src/components/social-share/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSocialShare as _BeamSocialShare } from \"./index\";\n\nexport const BeamSocialShare = createComponent({\n tagName: _BeamSocialShare.tagName,\n elementClass: _BeamSocialShare,\n react: React,\n});\n\nexport default BeamSocialShare; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSocialShare","createComponent","_BeamSocialShare","React"],"mappings":"8vBAIO,MAAMA,EAAkBC,EAAgB,CAC7C,QAASC,EAAiB,QAC1B,aAAcA,EACd,MAAOC,CACT,CAAC"}
1
+ {"version":3,"file":"social-share.esm.js","sources":["../../src/components/social-share/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSocialShare as _BeamSocialShare } from \"./index\";\n\nexport const BeamSocialShare = createComponent({\n tagName: _BeamSocialShare.tagName,\n elementClass: _BeamSocialShare,\n react: React,\n});\n\nexport default BeamSocialShare; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSocialShare","createComponent","_BeamSocialShare","React"],"mappings":"yfAIO,MAAMA,EAAkBC,EAAgB,CAC7C,QAASC,EAAiB,QAC1B,aAAcA,EACd,MAAOC,CACT,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"react";import{f as t}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSocialShare as m}from"../components/social-share.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-D6vA_2f6.esm.js";import"../chunks/routes-BIMwJ8u9.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-DUbQnaLO.esm.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../chunks/share-button-CLMw49f5.esm.js";const o=t({tagName:m.tagName,elementClass:m,react:r});export{o as BeamSocialShare,o as default};
1
+ import a from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSocialShare as m}from"../components/social-share.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";const o=r({tagName:m.tagName,elementClass:m,react:a});export{o as BeamSocialShare,o as default};
2
2
  //# sourceMappingURL=social-share.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social-share.js","sources":["../../src/components/social-share/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSocialShare as _BeamSocialShare } from \"./index\";\n\nexport const BeamSocialShare = createComponent({\n tagName: _BeamSocialShare.tagName,\n elementClass: _BeamSocialShare,\n react: React,\n});\n\nexport default BeamSocialShare; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSocialShare","createComponent","_BeamSocialShare","React"],"mappings":"8uBAIO,MAAMA,EAAkBC,EAAgB,CAC7C,QAASC,EAAiB,QAC1B,aAAcA,EACd,MAAOC,CACT,CAAC"}
1
+ {"version":3,"file":"social-share.js","sources":["../../src/components/social-share/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSocialShare as _BeamSocialShare } from \"./index\";\n\nexport const BeamSocialShare = createComponent({\n tagName: _BeamSocialShare.tagName,\n elementClass: _BeamSocialShare,\n react: React,\n});\n\nexport default BeamSocialShare; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSocialShare","createComponent","_BeamSocialShare","React"],"mappings":"ifAIO,MAAMA,EAAkBC,EAAgB,CAC7C,QAASC,EAAiB,QAC1B,aAAcA,EACd,MAAOC,CACT,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as _lit_react from '@lit/react';
2
+ import { EventName } from '@lit/react';
3
+ import { B as BeamNonprofitSelectEvent } from '../chunks/utils-D8HO_RIu.esm.js';
4
+ import { BeamSubscriberSelectNonprofit as BeamSubscriberSelectNonprofit$1 } from '../components/subscriber-select-nonprofit.js';
5
+ import 'lodash-es/debounce';
6
+ import 'lodash-es/isEqual';
7
+ import 'lit-html';
8
+ import 'lit';
9
+
10
+ declare const BeamSubscriberSelectNonprofit: _lit_react.ReactWebComponent<BeamSubscriberSelectNonprofit$1, {
11
+ onNonprofitSelect: EventName<BeamNonprofitSelectEvent>;
12
+ }>;
13
+
14
+ export { BeamSubscriberSelectNonprofit, BeamSubscriberSelectNonprofit as default };
@@ -0,0 +1,2 @@
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{B as m}from"../chunks/utils-BjhsDvuU.esm.js";import{BeamSubscriberSelectNonprofit as e}from"../components/subscriber-select-nonprofit.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";import"../chunks/handlebars-B_i-to-h.esm.js";const t=r({tagName:e.tagName,elementClass:e,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSubscriberSelectNonprofit,t as default};
2
+ //# sourceMappingURL=subscriber-select-nonprofit.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriber-select-nonprofit.esm.js","sources":["../../src/components/subscriber-select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSubscriberSelectNonprofit as _BeamSubscriberSelectNonprofit } from \"./index\";\n\nexport const BeamSubscriberSelectNonprofit = createComponent({\n tagName: _BeamSubscriberSelectNonprofit.tagName,\n elementClass: _BeamSubscriberSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSubscriberSelectNonprofit;\n"],"names":["BeamSubscriberSelectNonprofit","createComponent","_BeamSubscriberSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"seAKO,MAAMA,EAAgCC,EAAgB,CAC3D,QAASC,EAA+B,QACxC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{B as m}from"../chunks/utils-BjhsDvuU.esm.js";import{BeamSubscriberSelectNonprofit as e}from"../components/subscriber-select-nonprofit.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";import"../chunks/handlebars-B_i-to-h.esm.js";const t=r({tagName:e.tagName,elementClass:e,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSubscriberSelectNonprofit,t as default};
2
+ //# sourceMappingURL=subscriber-select-nonprofit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriber-select-nonprofit.js","sources":["../../src/components/subscriber-select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSubscriberSelectNonprofit as _BeamSubscriberSelectNonprofit } from \"./index\";\n\nexport const BeamSubscriberSelectNonprofit = createComponent({\n tagName: _BeamSubscriberSelectNonprofit.tagName,\n elementClass: _BeamSubscriberSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSubscriberSelectNonprofit;\n"],"names":["BeamSubscriberSelectNonprofit","createComponent","_BeamSubscriberSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"keAKO,MAAMA,EAAgCC,EAAgB,CAC3D,QAASC,EAA+B,QACxC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
@@ -3,8 +3,9 @@ import { BeamSubscriptionImpact as BeamSubscriptionImpact$1 } from '../component
3
3
  import 'lit';
4
4
  import 'lit-html';
5
5
  import 'lodash';
6
- import '../chunks/types-D_PLq1pj.esm.js';
7
- import '../chunks/types-DfRc36jU.esm.js';
6
+ import '../chunks/utils-D8HO_RIu.esm.js';
7
+ import 'lodash-es/debounce';
8
+ import 'lodash-es/isEqual';
8
9
 
9
10
  declare const BeamSubscriptionImpact: _lit_react.ReactWebComponent<BeamSubscriptionImpact$1, {}>;
10
11
 
@@ -1,2 +1,2 @@
1
- import o from"react";import{f as r}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.esm.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../chunks/share-button-Dzc7loia.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DXS3zbJz.esm.js";import"../chunks/routes-DSu5s3K7.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-Bk60ibnw.esm.js";import"../chunks/localize-Dg7NgKIP.esm.js";import"../chunks/enforce-config-DHnpgqSK.esm.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../chunks/responsive-CIV4sFdH.esm.js";import"../chunks/css-card-grid-DixMt6ek.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/share-button-BaIbuJOl.esm.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
2
2
  //# sourceMappingURL=subscription-impact.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-impact.esm.js","sources":["../../src/components/subscription-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionImpact as _BeamSubscriptionImpact } from \"./index\";\n\nexport const BeamSubscriptionImpact = createComponent({\n tagName: _BeamSubscriptionImpact.tagName,\n elementClass: _BeamSubscriptionImpact,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionImpact","createComponent","_BeamSubscriptionImpact","React"],"mappings":"m/BAIO,MAAMA,EAAyBC,EAAgB,CACpD,QAASC,EAAwB,QACjC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"subscription-impact.esm.js","sources":["../../src/components/subscription-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionImpact as _BeamSubscriptionImpact } from \"./index\";\n\nexport const BeamSubscriptionImpact = createComponent({\n tagName: _BeamSubscriptionImpact.tagName,\n elementClass: _BeamSubscriptionImpact,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionImpact","createComponent","_BeamSubscriptionImpact","React"],"mappings":"mjBAIO,MAAMA,EAAyBC,EAAgB,CACpD,QAASC,EAAwB,QACjC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"react";import{f as r}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../chunks/share-button-DkTpGZk1.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-CLMw49f5.esm.js";import"../chunks/routes-BIMwJ8u9.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-D6vA_2f6.esm.js";import"../chunks/localize-DkAbsh05.esm.js";import"../chunks/enforce-config-DUbQnaLO.esm.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../utils/makeApiKeyHeader.js";import"../chunks/responsive-CIV4sFdH.esm.js";import"../chunks/css-card-grid-DixMt6ek.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/share-button-BaIbuJOl.esm.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
2
2
  //# sourceMappingURL=subscription-impact.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-impact.js","sources":["../../src/components/subscription-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionImpact as _BeamSubscriptionImpact } from \"./index\";\n\nexport const BeamSubscriptionImpact = createComponent({\n tagName: _BeamSubscriptionImpact.tagName,\n elementClass: _BeamSubscriptionImpact,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionImpact","createComponent","_BeamSubscriptionImpact","React"],"mappings":"m+BAIO,MAAMA,EAAyBC,EAAgB,CACpD,QAASC,EAAwB,QACjC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"subscription-impact.js","sources":["../../src/components/subscription-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionImpact as _BeamSubscriptionImpact } from \"./index\";\n\nexport const BeamSubscriptionImpact = createComponent({\n tagName: _BeamSubscriptionImpact.tagName,\n elementClass: _BeamSubscriptionImpact,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionImpact","createComponent","_BeamSubscriptionImpact","React"],"mappings":"+iBAIO,MAAMA,EAAyBC,EAAgB,CACpD,QAASC,EAAwB,QACjC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -2,13 +2,12 @@ import * as _lit_react from '@lit/react';
2
2
  import { BeamSubscriptionManagement as BeamSubscriptionManagement$1 } from '../components/subscription-management.js';
3
3
  import 'lit-html';
4
4
  import 'lit';
5
- import '../chunks/routes-OxC3Ah30.esm.js';
6
- import '../chunks/cart-contents-CEoSx3y4.esm.js';
7
- import '../chunks/openapi-spec-B4z4_CMq.esm.js';
5
+ import '../chunks/routes-D6Gtw6kZ.esm.js';
6
+ import '../chunks/utils-D8HO_RIu.esm.js';
7
+ import 'lodash-es/debounce';
8
+ import 'lodash-es/isEqual';
8
9
  import '../components/select-subscription-nonprofit.js';
9
10
  import 'lodash';
10
- import '../chunks/types-D_PLq1pj.esm.js';
11
- import '../chunks/types-DfRc36jU.esm.js';
12
11
  import '../components/beam-partner-logos.js';
13
12
  import '../components/subscription-impact.js';
14
13
 
@@ -1,2 +1,2 @@
1
- import o from"react";import{f as r}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-DSu5s3K7.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../chunks/enforce-config-DHnpgqSK.esm.js";import"../chunks/localize-Dg7NgKIP.esm.js";import"../components/select-subscription-nonprofit.esm.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-DixMt6ek.esm.js";import"../components/beam-partner-logos.esm.js";import"../components/subscription-impact.esm.js";import"../chunks/share-button-Dzc7loia.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DXS3zbJz.esm.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-Bk60ibnw.esm.js";import"../chunks/responsive-CIV4sFdH.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionManagement,m as default};
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../components/select-subscription-nonprofit.esm.js";import"../components/beam-partner-logos.esm.js";import"../components/subscription-impact.esm.js";import"../chunks/share-button-BaIbuJOl.esm.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionManagement,m as default};
2
2
  //# sourceMappingURL=subscription-management.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-management.esm.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"6rCAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"subscription-management.esm.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"utBAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"react";import{f as r}from"../chunks/lit-JRlupCB5.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/routes-BIMwJ8u9.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/events-COWOQoLW.esm.js";import"../utils/memoize-last.js";import"../chunks/lodash-BSs6Il-c.esm.js";import"../chunks/progress-bar-B82FOT8n.esm.js";import"../chunks/enforce-config-DUbQnaLO.esm.js";import"../chunks/localize-DkAbsh05.esm.js";import"../components/select-subscription-nonprofit.js";import"../chunks/loading-template-BFvXaTlD.esm.js";import"../utils/makeApiKeyHeader.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-DixMt6ek.esm.js";import"../components/beam-partner-logos.js";import"../components/subscription-impact.js";import"../chunks/share-button-DkTpGZk1.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-CLMw49f5.esm.js";import"../chunks/vendor-ckSdd6aH.esm.js";import"../chunks/_share-dialog-dependencies-D6vA_2f6.esm.js";import"../chunks/responsive-CIV4sFdH.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionManagement,m as default};
1
+ import o from"react";import{f as r}from"../chunks/lit-BEag9MFp.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/index-DhHhFTBE.esm.js";import"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";import"../chunks/share-button-7sI6zg-x.esm.js";import"../chunks/css-card-grid-BUidQqf0.esm.js";import"../components/select-subscription-nonprofit.js";import"../components/beam-partner-logos.js";import"../components/subscription-impact.js";import"../chunks/share-button-BaIbuJOl.esm.js";import"../chunks/vendor-DUOg5fL-.esm.js";import"../chunks/_share-dialog-dependencies-U9953n3E.esm.js";import"../chunks/responsive-aN8P5PqD.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionManagement,m as default};
2
2
  //# sourceMappingURL=subscription-management.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"6pCAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"usBAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1 +1,3 @@
1
- export { B as BeamError, L as LocalStorageError, M as MissingConfig, N as NetworkError, S as SetupError } from '../chunks/beam-errors-DUQ9pK2V.esm.js';
1
+ export { X as BeamError, Y as LocalStorageError, Z as MissingConfig, _ as NetworkError, $ as SetupError } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- import{B as a,L as s,M as e,N as t,S as E}from"../chunks/beam-errors-Ci0d3926.esm.js";export{a as BeamError,s as LocalStorageError,e as MissingConfig,t as NetworkError,E as SetupError};
1
+ import{m as s,W as e,M as t,V as i,S as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{s as BeamError,e as LocalStorageError,t as MissingConfig,i as NetworkError,m as SetupError};
2
2
  //# sourceMappingURL=beam-errors.esm.js.map
@@ -1,2 +1,2 @@
1
- import{B as a,L as s,M as e,N as t,S as E}from"../chunks/beam-errors-Ci0d3926.esm.js";export{a as BeamError,s as LocalStorageError,e as MissingConfig,t as NetworkError,E as SetupError};
1
+ import{m as s,W as e,M as t,V as i,S as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{s as BeamError,e as LocalStorageError,t as MissingConfig,i as NetworkError,m as SetupError};
2
2
  //# sourceMappingURL=beam-errors.js.map
@@ -1,18 +1,3 @@
1
- /**
2
- * Retrieves the Beam cart ID from cookies
3
- * @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID
4
- * @returns The Beam cart ID if present in cookies or local storage, otherwise null
5
- */
6
- declare const getBeamCartId: (CART_COOKIE_NAME: string, config: {
7
- apiKey: string;
8
- }) => string | null;
9
- /**
10
- * Retrieves the external cart ID
11
- * @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID
12
- * @returns The external cart ID if available or null if neither is available
13
- */
14
- declare const getExternalCartId: (CART_COOKIE_NAME: string, config: {
15
- apiKey: string;
16
- }) => string | null;
17
-
18
- export { getBeamCartId, getExternalCartId };
1
+ export { a0 as getBeamCartId, a1 as getExternalCartId } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- import{getCookieValue as r}from"./cookies.esm.js";import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"./logger.esm.js";const a=(t,e)=>o(e).getItemJson("cart")?.beamCartId??r(t)??null,m=(t,e)=>o(e).getItemJson("cart")?.cartId??r(t)??null;export{a as getBeamCartId,m as getExternalCartId};
1
+ import{v as e,E as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{e as getBeamCartId,m as getExternalCartId};
2
2
  //# sourceMappingURL=cart.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.esm.js","sources":["../../src/utils/cart.ts"],"sourcesContent":["import { TBeamCartLocalStorage } from \"../shared/cart-contents\";\nimport { getCookieValue } from \"./cookies\";\nimport { createScopedLocalStorage } from \"./local-storage\";\n\n/**\n * Retrieves the Beam cart ID from cookies\n * @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID\n * @returns The Beam cart ID if present in cookies or local storage, otherwise null\n */\nexport const getBeamCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get the Beam cart cookie\n const beamCartId: string | null = cachedCart?.beamCartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return beamCartId;\n};\n\n/**\n * Retrieves the external cart ID\n * @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID\n * @returns The external cart ID if available or null if neither is available\n */\nexport const getExternalCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get external cart cookie\n const externalCartId: string | null = cachedCart?.cartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return externalCartId;\n};\n"],"names":["getBeamCartId","CART_COOKIE_NAME","config","createScopedLocalStorage","getCookieValue","getExternalCartId"],"mappings":"0LASO,MAAMA,EAAgB,CAACC,EAA0BC,IACjCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAGlC,YAAcE,EAAeH,CAAgB,GAAK,KASrFI,EAAoB,CAACJ,EAA0BC,IACrCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAG9B,QAAUE,EAAeH,CAAgB,GAAK"}
1
+ {"version":3,"file":"cart.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{getCookieValue as r}from"./cookies.js";import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"./logger.js";const a=(t,e)=>o(e).getItemJson("cart")?.beamCartId??r(t)??null,m=(t,e)=>o(e).getItemJson("cart")?.cartId??r(t)??null;export{a as getBeamCartId,m as getExternalCartId};
1
+ import{v as e,E as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{e as getBeamCartId,m as getExternalCartId};
2
2
  //# sourceMappingURL=cart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.js","sources":["../../src/utils/cart.ts"],"sourcesContent":["import { TBeamCartLocalStorage } from \"../shared/cart-contents\";\nimport { getCookieValue } from \"./cookies\";\nimport { createScopedLocalStorage } from \"./local-storage\";\n\n/**\n * Retrieves the Beam cart ID from cookies\n * @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID\n * @returns The Beam cart ID if present in cookies or local storage, otherwise null\n */\nexport const getBeamCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get the Beam cart cookie\n const beamCartId: string | null = cachedCart?.beamCartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return beamCartId;\n};\n\n/**\n * Retrieves the external cart ID\n * @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID\n * @returns The external cart ID if available or null if neither is available\n */\nexport const getExternalCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get external cart cookie\n const externalCartId: string | null = cachedCart?.cartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return externalCartId;\n};\n"],"names":["getBeamCartId","CART_COOKIE_NAME","config","createScopedLocalStorage","getCookieValue","getExternalCartId"],"mappings":"8KASO,MAAMA,EAAgB,CAACC,EAA0BC,IACjCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAGlC,YAAcE,EAAeH,CAAgB,GAAK,KASrFI,EAAoB,CAACJ,EAA0BC,IACrCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAG9B,QAAUE,EAAeH,CAAgB,GAAK"}
1
+ {"version":3,"file":"cart.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,18 +1,3 @@
1
- declare const getCookieMap: (cookieString?: string) => Map<string, string>;
2
- declare const getCookieValue: (name: string) => string | undefined;
3
- declare const setCookieValue: (options: CookieInit) => undefined;
4
- declare const deleteCookieValue: (options: {
5
- name: string;
6
- domain?: string;
7
- path?: string;
8
- }) => undefined;
9
- interface CookieInit {
10
- name: string;
11
- value: string;
12
- path?: string;
13
- domain?: string;
14
- expires?: number;
15
- sameSite?: "strict" | "lax" | "none";
16
- }
17
-
18
- export { deleteCookieValue, getCookieMap, getCookieValue, setCookieValue };
1
+ export { k as deleteCookieValue, o as getCookieMap, p as getCookieValue, F as setCookieValue } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- const c=(e=document.cookie)=>e.split(";").reduce((i,n)=>{const o=n.trim(),[t,...a]=o.split("="),r=decodeURIComponent(a.join("="));return i.set(t,r)},new Map),m=e=>c().get(e),p=e=>{const{name:i,value:n,expires:o,...t}=e,a=encodeURIComponent(n),r=`${i}=${a}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",l=Object.entries(t).map(([d,s])=>s!=null?` ;${d}=${s}`:"").join("");document.cookie=r+l+u},C=e=>{const{name:i,domain:n,path:o}=e,t={name:i,value:"",expires:0};return o!==void 0&&(t.path=o),n!==void 0&&(t.domain=n),p(t)};export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p as setCookieValue};
1
+ import{N as t,a as i,g as s,n as k}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{t as deleteCookieValue,i as getCookieMap,s as getCookieValue,k as setCookieValue};
2
2
  //# sourceMappingURL=cookies.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.esm.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = (cookieString = document.cookie) => {\n // document.cookie has the format: \"key1=value1; key2=value2; key3=value3\"\n return cookieString.split(\";\").reduce((result: Map<string, string>, next: string) => {\n const cookieKeyValuePair = next.trim(); // \" key=value \" => \"key=value\"\n const [key, ...restOfString] = cookieKeyValuePair.split(\"=\"); // [\"key\", [\"value\"]]\n const value = decodeURIComponent(restOfString.join(\"=\")); // .join() handles if value contained \"=\"\n return result.set(key, value);\n }, new Map<string, string>());\n};\n\nexport const getCookieValue = (name: string): string | undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // return (await window.cookieStore.get(name))?.value;\n // }\n return getCookieMap().get(name);\n};\n\nexport const setCookieValue = (options: CookieInit): undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // const { domain, ...rest } = options;\n // const validatedDomain = domain === \"localhost\" ? undefined : domain;\n // return await window.cookieStore.set({ ...rest, domain: validatedDomain });\n // }\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie#write_a_new_cookie\n const { name, value, expires, ...rest } = options;\n const encodedValue = encodeURIComponent(value);\n const base = `${name}=${encodedValue}`;\n const expiration = expires != null ? ` ;expires=${new Date(expires).toUTCString()}` : \"\";\n const modifiers = Object.entries(rest)\n .map(([key, val]) => (val != null ? ` ;${key}=${val}` : \"\"))\n .join(\"\");\n document.cookie = base + modifiers + expiration;\n return;\n};\n\nexport const deleteCookieValue = (options: { name: string; domain?: string; path?: string }): undefined => {\n const { name, domain, path } = options;\n const cookieOptions: any = {\n name: name,\n value: \"\",\n expires: 0,\n };\n if (path !== undefined) {\n cookieOptions.path = path;\n }\n if (domain !== undefined) {\n cookieOptions.domain = domain;\n }\n return setCookieValue(cookieOptions);\n};\n\ninterface CookieInit {\n name: string;\n value: string;\n path?: string;\n domain?: string;\n expires?: number; // timestamp, unix time in ms\n sameSite?: \"strict\" | \"lax\" | \"none\";\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue","domain","path","cookieOptions"],"mappings":"AAIO,MAAMA,EAAe,CAACC,EAAe,SAAS,SAE5CA,EAAa,MAAM,GAAG,EAAE,OAAO,CAACC,EAA6BC,IAAiB,CACnF,MAAMC,EAAqBD,EAAK,KAAA,EAC1B,CAACE,EAAK,GAAGC,CAAY,EAAIF,EAAmB,MAAM,GAAG,EACrDG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOJ,EAAO,IAAIG,EAAKE,CAAK,CAC9B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBT,EAAA,EAAe,IAAIS,CAAI,EAGnBC,EAAkBC,GAAmC,CAQhE,KAAM,CAAE,KAAAF,EAAM,MAAAF,EAAO,QAAAK,EAAS,GAAGC,CAAK,EAAIF,EACpCG,EAAe,mBAAmBP,CAAK,EACvCQ,EAAO,GAAGN,CAAI,IAAIK,CAAY,GAC9BE,EAAaJ,GAAW,KAAO,aAAa,IAAI,KAAKA,CAAO,EAAE,YAAA,CAAa,GAAK,GAChFK,EAAY,OAAO,QAAQJ,CAAI,EAClC,IAAI,CAAC,CAACR,EAAKa,CAAG,IAAOA,GAAO,KAAO,KAAKb,CAAG,IAAIa,CAAG,GAAK,EAAG,EAC1D,KAAK,EAAE,EACV,SAAS,OAASH,EAAOE,EAAYD,CAEvC,EAEaG,EAAqBR,GAAyE,CACzG,KAAM,CAAE,KAAAF,EAAM,OAAAW,EAAQ,KAAAC,CAAK,EAAIV,EACzBW,EAAqB,CACzB,KAAMb,EACN,MAAO,GACP,QAAS,CACX,EACA,OAAIY,IAAS,SACXC,EAAc,KAAOD,GAEnBD,IAAW,SACbE,EAAc,OAASF,GAElBV,EAAeY,CAAa,CACrC"}
1
+ {"version":3,"file":"cookies.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- const c=(e=document.cookie)=>e.split(";").reduce((i,n)=>{const o=n.trim(),[t,...a]=o.split("="),r=decodeURIComponent(a.join("="));return i.set(t,r)},new Map),m=e=>c().get(e),p=e=>{const{name:i,value:n,expires:o,...t}=e,a=encodeURIComponent(n),r=`${i}=${a}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",l=Object.entries(t).map(([d,s])=>s!=null?` ;${d}=${s}`:"").join("");document.cookie=r+l+u},C=e=>{const{name:i,domain:n,path:o}=e,t={name:i,value:"",expires:0};return o!==void 0&&(t.path=o),n!==void 0&&(t.domain=n),p(t)};export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p as setCookieValue};
1
+ import{N as t,a as i,g as s,n as k}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{t as deleteCookieValue,i as getCookieMap,s as getCookieValue,k as setCookieValue};
2
2
  //# sourceMappingURL=cookies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = (cookieString = document.cookie) => {\n // document.cookie has the format: \"key1=value1; key2=value2; key3=value3\"\n return cookieString.split(\";\").reduce((result: Map<string, string>, next: string) => {\n const cookieKeyValuePair = next.trim(); // \" key=value \" => \"key=value\"\n const [key, ...restOfString] = cookieKeyValuePair.split(\"=\"); // [\"key\", [\"value\"]]\n const value = decodeURIComponent(restOfString.join(\"=\")); // .join() handles if value contained \"=\"\n return result.set(key, value);\n }, new Map<string, string>());\n};\n\nexport const getCookieValue = (name: string): string | undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // return (await window.cookieStore.get(name))?.value;\n // }\n return getCookieMap().get(name);\n};\n\nexport const setCookieValue = (options: CookieInit): undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // const { domain, ...rest } = options;\n // const validatedDomain = domain === \"localhost\" ? undefined : domain;\n // return await window.cookieStore.set({ ...rest, domain: validatedDomain });\n // }\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie#write_a_new_cookie\n const { name, value, expires, ...rest } = options;\n const encodedValue = encodeURIComponent(value);\n const base = `${name}=${encodedValue}`;\n const expiration = expires != null ? ` ;expires=${new Date(expires).toUTCString()}` : \"\";\n const modifiers = Object.entries(rest)\n .map(([key, val]) => (val != null ? ` ;${key}=${val}` : \"\"))\n .join(\"\");\n document.cookie = base + modifiers + expiration;\n return;\n};\n\nexport const deleteCookieValue = (options: { name: string; domain?: string; path?: string }): undefined => {\n const { name, domain, path } = options;\n const cookieOptions: any = {\n name: name,\n value: \"\",\n expires: 0,\n };\n if (path !== undefined) {\n cookieOptions.path = path;\n }\n if (domain !== undefined) {\n cookieOptions.domain = domain;\n }\n return setCookieValue(cookieOptions);\n};\n\ninterface CookieInit {\n name: string;\n value: string;\n path?: string;\n domain?: string;\n expires?: number; // timestamp, unix time in ms\n sameSite?: \"strict\" | \"lax\" | \"none\";\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue","domain","path","cookieOptions"],"mappings":"AAIO,MAAMA,EAAe,CAACC,EAAe,SAAS,SAE5CA,EAAa,MAAM,GAAG,EAAE,OAAO,CAACC,EAA6BC,IAAiB,CACnF,MAAMC,EAAqBD,EAAK,KAAA,EAC1B,CAACE,EAAK,GAAGC,CAAY,EAAIF,EAAmB,MAAM,GAAG,EACrDG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOJ,EAAO,IAAIG,EAAKE,CAAK,CAC9B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBT,EAAA,EAAe,IAAIS,CAAI,EAGnBC,EAAkBC,GAAmC,CAQhE,KAAM,CAAE,KAAAF,EAAM,MAAAF,EAAO,QAAAK,EAAS,GAAGC,CAAK,EAAIF,EACpCG,EAAe,mBAAmBP,CAAK,EACvCQ,EAAO,GAAGN,CAAI,IAAIK,CAAY,GAC9BE,EAAaJ,GAAW,KAAO,aAAa,IAAI,KAAKA,CAAO,EAAE,YAAA,CAAa,GAAK,GAChFK,EAAY,OAAO,QAAQJ,CAAI,EAClC,IAAI,CAAC,CAACR,EAAKa,CAAG,IAAOA,GAAO,KAAO,KAAKb,CAAG,IAAIa,CAAG,GAAK,EAAG,EAC1D,KAAK,EAAE,EACV,SAAS,OAASH,EAAOE,EAAYD,CAEvC,EAEaG,EAAqBR,GAAyE,CACzG,KAAM,CAAE,KAAAF,EAAM,OAAAW,EAAQ,KAAAC,CAAK,EAAIV,EACzBW,EAAqB,CACzB,KAAMb,EACN,MAAO,GACP,QAAS,CACX,EACA,OAAIY,IAAS,SACXC,EAAc,KAAOD,GAEnBD,IAAW,SACbE,EAAc,OAASF,GAElBV,EAAeY,CAAa,CACrC"}
1
+ {"version":3,"file":"cookies.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{d}from"../chunks/lodash-BSs6Il-c.esm.js";export{d as debounce};
1
+ import{d}from"../chunks/lodash-CrMU6wKg.esm.js";export{d as debounce};
2
2
  //# sourceMappingURL=debounce.esm.js.map
@@ -1,2 +1,2 @@
1
- import{d}from"../chunks/lodash-BSs6Il-c.esm.js";export{d as debounce};
1
+ import{d}from"../chunks/lodash-CrMU6wKg.esm.js";export{d as debounce};
2
2
  //# sourceMappingURL=debounce.js.map
@@ -1,5 +1,3 @@
1
- import '../chunks/cart-contents-CEoSx3y4.esm.js';
2
- import '../chunks/promo-types-CmZzhkpN.esm.js';
3
- import '../chunks/types-D_PLq1pj.esm.js';
4
- export { a as BeamCartChangeEvent, b as BeamCartCreatedEvent, c as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, d as BeamNonprofitSelectionRemovedEvent, f as BeamOrderCreatedEvent, g as BeamPromoCodesStoredEvent, h as BeamStatsigInitializedEvent, i as BeamStatusChangeEvent, j as BeamWidgetInitialNonprofitSyncCancelEvent, k as BeamWidgetInitialNonprofitSyncEvent, l as BeamWidgetStoredPromoCodesEvent } from '../chunks/events-Dwqfqbij.esm.js';
5
- import '../chunks/openapi-spec-B4z4_CMq.esm.js';
1
+ export { K as BeamCartChangeEvent, M as BeamCartCreatedEvent, N as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, O as BeamNonprofitSelectionRemovedEvent, P as BeamOrderCreatedEvent, Q as BeamPromoCodesStoredEvent, R as BeamStatsigInitializedEvent, S as BeamStatusChangeEvent, U as BeamWidgetInitialNonprofitSyncCancelEvent, V as BeamWidgetInitialNonprofitSyncEvent, W as BeamWidgetStoredPromoCodesEvent } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- import{g as t,h as n,d as o,c as i,l as r,b as m,a as s,i as d,B as v,k as B,j as E,f as C}from"../chunks/events-COWOQoLW.esm.js";export{t as BeamCartChangeEvent,n as BeamCartCreatedEvent,o as BeamNetworkCallEvent,i as BeamNonprofitSelectEvent,r as BeamNonprofitSelectionRemovedEvent,m as BeamOrderCreatedEvent,s as BeamPromoCodesStoredEvent,d as BeamStatsigInitializedEvent,v as BeamStatusChangeEvent,B as BeamWidgetInitialNonprofitSyncCancelEvent,E as BeamWidgetInitialNonprofitSyncEvent,C as BeamWidgetStoredPromoCodesEvent};
1
+ import{I as n,q as o,L as r,B as i,F as m,r as s,k as v,o as B,c as d,H as E,G as C,y as l}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{n as BeamCartChangeEvent,o as BeamCartCreatedEvent,r as BeamNetworkCallEvent,i as BeamNonprofitSelectEvent,m as BeamNonprofitSelectionRemovedEvent,s as BeamOrderCreatedEvent,v as BeamPromoCodesStoredEvent,B as BeamStatsigInitializedEvent,d as BeamStatusChangeEvent,E as BeamWidgetInitialNonprofitSyncCancelEvent,C as BeamWidgetInitialNonprofitSyncEvent,l as BeamWidgetStoredPromoCodesEvent};
2
2
  //# sourceMappingURL=events.esm.js.map
@@ -1,2 +1,2 @@
1
- import{g as t,h as n,d as o,c as i,l as r,b as m,a as s,i as d,B as v,k as B,j as E,f as C}from"../chunks/events-COWOQoLW.esm.js";export{t as BeamCartChangeEvent,n as BeamCartCreatedEvent,o as BeamNetworkCallEvent,i as BeamNonprofitSelectEvent,r as BeamNonprofitSelectionRemovedEvent,m as BeamOrderCreatedEvent,s as BeamPromoCodesStoredEvent,d as BeamStatsigInitializedEvent,v as BeamStatusChangeEvent,B as BeamWidgetInitialNonprofitSyncCancelEvent,E as BeamWidgetInitialNonprofitSyncEvent,C as BeamWidgetStoredPromoCodesEvent};
1
+ import{I as n,q as o,L as r,B as i,F as m,r as s,k as v,o as B,c as d,H as E,G as C,y as l}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{n as BeamCartChangeEvent,o as BeamCartCreatedEvent,r as BeamNetworkCallEvent,i as BeamNonprofitSelectEvent,m as BeamNonprofitSelectionRemovedEvent,s as BeamOrderCreatedEvent,v as BeamPromoCodesStoredEvent,B as BeamStatsigInitializedEvent,d as BeamStatusChangeEvent,E as BeamWidgetInitialNonprofitSyncCancelEvent,C as BeamWidgetInitialNonprofitSyncEvent,l as BeamWidgetStoredPromoCodesEvent};
2
2
  //# sourceMappingURL=events.js.map
@@ -1,2 +1,2 @@
1
- import{i as o}from"../chunks/lodash-BSs6Il-c.esm.js";export{o as isEqual};
1
+ import{i as o}from"../chunks/lodash-CrMU6wKg.esm.js";export{o as isEqual};
2
2
  //# sourceMappingURL=is-equal.esm.js.map
@@ -1,2 +1,2 @@
1
- import{i as o}from"../chunks/lodash-BSs6Il-c.esm.js";export{o as isEqual};
1
+ import{i as o}from"../chunks/lodash-CrMU6wKg.esm.js";export{o as isEqual};
2
2
  //# sourceMappingURL=is-equal.js.map
@@ -1,19 +1,3 @@
1
- /**
2
- * Creates an object that has the same API as normal localStorage, but adds a beam_ prefix and apiKey postfix to keys
3
- * Also adds helper methods for JSON (de-)serialization
4
- */
5
- declare const createScopedLocalStorage: (config: {
6
- apiKey: string;
7
- }) => {
8
- readonly prefix: string;
9
- readonly postfix: string;
10
- getItem(key: string): string | null;
11
- setItem(key: string, value: unknown): void;
12
- removeItem(key: string): void;
13
- /** Safely parses value as JSON and return JS object */
14
- getItemJson<T = Record<string, unknown>>(key: string): T | null;
15
- /** Safely stringifies value as JSON */
16
- setItemJson(key: string, value: object): void;
17
- };
18
-
19
- export { createScopedLocalStorage };
1
+ export { j as createScopedLocalStorage } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- import{L as o}from"../chunks/beam-errors-Ci0d3926.esm.js";import{logger as s}from"./logger.esm.js";const i=r=>({get prefix(){return"beam_"},get postfix(){return`_key_${r.apiKey}`},getItem(e){return localStorage.getItem(this.prefix+e+this.postfix)},setItem(e,t){return localStorage.setItem(this.prefix+e+this.postfix,`${t}`)},removeItem(e){return localStorage.removeItem(this.prefix+e+this.postfix)},getItemJson(e){try{const t=this.getItem(e);if(t)return JSON.parse(t)}catch{s.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{i as createScopedLocalStorage};
1
+ import{u as a}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{a as createScopedLocalStorage};
2
2
  //# sourceMappingURL=local-storage.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.esm.js","sources":["../../src/utils/local-storage.ts"],"sourcesContent":["import { LocalStorageError } from \"./beam-errors\";\nimport { logger } from \"./logger\";\n\n/**\n * Creates an object that has the same API as normal localStorage, but adds a beam_ prefix and apiKey postfix to keys\n * Also adds helper methods for JSON (de-)serialization\n */\nexport const createScopedLocalStorage = (config: { apiKey: string }) => {\n return {\n get prefix() {\n return `beam_`;\n },\n get postfix() {\n return `_key_${config.apiKey}`;\n },\n getItem(key: string): string | null {\n return localStorage.getItem(this.prefix + key + this.postfix);\n },\n setItem(key: string, value: unknown) {\n return localStorage.setItem(this.prefix + key + this.postfix, `${value}`);\n },\n removeItem(key: string) {\n return localStorage.removeItem(this.prefix + key + this.postfix);\n },\n /** Safely parses value as JSON and return JS object */\n getItemJson<T = Record<string, unknown>>(key: string) {\n try {\n const json = this.getItem(key);\n if (json) {\n return JSON.parse(json) as T;\n }\n } catch (err) {\n logger.error(new LocalStorageError(`Could not parse JSON: ${key}`));\n }\n return null;\n },\n /** Safely stringifies value as JSON */\n setItemJson(key: string, value: object) {\n return this.setItem(key, JSON.stringify(value));\n },\n };\n};\n"],"names":["createScopedLocalStorage","config","key","value","json","logger","LocalStorageError"],"mappings":"mGAOO,MAAMA,EAA4BC,IAChC,CACL,IAAI,QAAS,CACX,MAAO,OACT,EACA,IAAI,SAAU,CACZ,MAAO,QAAQA,EAAO,MAAM,EAC9B,EACA,QAAQC,EAA4B,CAClC,OAAO,aAAa,QAAQ,KAAK,OAASA,EAAM,KAAK,OAAO,CAC9D,EACA,QAAQA,EAAaC,EAAgB,CACnC,OAAO,aAAa,QAAQ,KAAK,OAASD,EAAM,KAAK,QAAS,GAAGC,CAAK,EAAE,CAC1E,EACA,WAAWD,EAAa,CACtB,OAAO,aAAa,WAAW,KAAK,OAASA,EAAM,KAAK,OAAO,CACjE,EAEA,YAAyCA,EAAa,CACpD,GAAI,CACF,MAAME,EAAO,KAAK,QAAQF,CAAG,EAC7B,GAAIE,EACF,OAAO,KAAK,MAAMA,CAAI,CAE1B,MAAc,CACZC,EAAO,MAAM,IAAIC,EAAkB,yBAAyBJ,CAAG,EAAE,CAAC,CACpE,CACA,OAAO,IACT,EAEA,YAAYA,EAAaC,EAAe,CACtC,OAAO,KAAK,QAAQD,EAAK,KAAK,UAAUC,CAAK,CAAC,CAChD,CACF"}
1
+ {"version":3,"file":"local-storage.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{L as o}from"../chunks/beam-errors-Ci0d3926.esm.js";import{logger as s}from"./logger.js";const i=r=>({get prefix(){return"beam_"},get postfix(){return`_key_${r.apiKey}`},getItem(e){return localStorage.getItem(this.prefix+e+this.postfix)},setItem(e,t){return localStorage.setItem(this.prefix+e+this.postfix,`${t}`)},removeItem(e){return localStorage.removeItem(this.prefix+e+this.postfix)},getItemJson(e){try{const t=this.getItem(e);if(t)return JSON.parse(t)}catch{s.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{i as createScopedLocalStorage};
1
+ import{u as a}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{a as createScopedLocalStorage};
2
2
  //# sourceMappingURL=local-storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.js","sources":["../../src/utils/local-storage.ts"],"sourcesContent":["import { LocalStorageError } from \"./beam-errors\";\nimport { logger } from \"./logger\";\n\n/**\n * Creates an object that has the same API as normal localStorage, but adds a beam_ prefix and apiKey postfix to keys\n * Also adds helper methods for JSON (de-)serialization\n */\nexport const createScopedLocalStorage = (config: { apiKey: string }) => {\n return {\n get prefix() {\n return `beam_`;\n },\n get postfix() {\n return `_key_${config.apiKey}`;\n },\n getItem(key: string): string | null {\n return localStorage.getItem(this.prefix + key + this.postfix);\n },\n setItem(key: string, value: unknown) {\n return localStorage.setItem(this.prefix + key + this.postfix, `${value}`);\n },\n removeItem(key: string) {\n return localStorage.removeItem(this.prefix + key + this.postfix);\n },\n /** Safely parses value as JSON and return JS object */\n getItemJson<T = Record<string, unknown>>(key: string) {\n try {\n const json = this.getItem(key);\n if (json) {\n return JSON.parse(json) as T;\n }\n } catch (err) {\n logger.error(new LocalStorageError(`Could not parse JSON: ${key}`));\n }\n return null;\n },\n /** Safely stringifies value as JSON */\n setItemJson(key: string, value: object) {\n return this.setItem(key, JSON.stringify(value));\n },\n };\n};\n"],"names":["createScopedLocalStorage","config","key","value","json","logger","LocalStorageError"],"mappings":"+FAOO,MAAMA,EAA4BC,IAChC,CACL,IAAI,QAAS,CACX,MAAO,OACT,EACA,IAAI,SAAU,CACZ,MAAO,QAAQA,EAAO,MAAM,EAC9B,EACA,QAAQC,EAA4B,CAClC,OAAO,aAAa,QAAQ,KAAK,OAASA,EAAM,KAAK,OAAO,CAC9D,EACA,QAAQA,EAAaC,EAAgB,CACnC,OAAO,aAAa,QAAQ,KAAK,OAASD,EAAM,KAAK,QAAS,GAAGC,CAAK,EAAE,CAC1E,EACA,WAAWD,EAAa,CACtB,OAAO,aAAa,WAAW,KAAK,OAASA,EAAM,KAAK,OAAO,CACjE,EAEA,YAAyCA,EAAa,CACpD,GAAI,CACF,MAAME,EAAO,KAAK,QAAQF,CAAG,EAC7B,GAAIE,EACF,OAAO,KAAK,MAAMA,CAAI,CAE1B,MAAc,CACZC,EAAO,MAAM,IAAIC,EAAkB,yBAAyBJ,CAAG,EAAE,CAAC,CACpE,CACA,OAAO,IACT,EAEA,YAAYA,EAAaC,EAAe,CACtC,OAAO,KAAK,QAAQD,EAAK,KAAK,UAAUC,CAAK,CAAC,CAChD,CACF"}
1
+ {"version":3,"file":"local-storage.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,8 +1,3 @@
1
- declare const logger: {
2
- error: (...args: any[]) => void;
3
- log: (...args: any[]) => void;
4
- warn: (...args: any[]) => void;
5
- debug: (...args: any[]) => void;
6
- };
7
-
8
- export { logger };
1
+ export { x as logger } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- const e="\u{1F308} Beam:",r={error:(...o)=>console.error(e,...o),log:(...o)=>console.log(e,...o),warn:(...o)=>console.warn(e,...o),debug:(...o)=>console.debug(e,...o)};export{r as logger};
1
+ import{l as g}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{g as logger};
2
2
  //# sourceMappingURL=logger.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.esm.js","sources":["../../src/utils/logger.ts"],"sourcesContent":["const LOG_PREFIX = \"🌈 Beam:\";\n\n// This may eventually log output to Beam servers, control log verbosity, etc.\n// For now it is an alias of the default JS console\nexport const logger = {\n error: (...args: any[]) => console.error(LOG_PREFIX, ...args),\n log: (...args: any[]) => console.log(LOG_PREFIX, ...args),\n warn: (...args: any[]) => console.warn(LOG_PREFIX, ...args),\n debug: (...args: any[]) => console.debug(LOG_PREFIX, ...args),\n};\n"],"names":["LOG_PREFIX","logger","args"],"mappings":"AAAA,MAAMA,EAAa,kBAINC,EAAS,CACpB,MAAO,IAAIC,IAAgB,QAAQ,MAAMF,EAAY,GAAGE,CAAI,EAC5D,IAAK,IAAIA,IAAgB,QAAQ,IAAIF,EAAY,GAAGE,CAAI,EACxD,KAAM,IAAIA,IAAgB,QAAQ,KAAKF,EAAY,GAAGE,CAAI,EAC1D,MAAO,IAAIA,IAAgB,QAAQ,MAAMF,EAAY,GAAGE,CAAI,CAC9D"}
1
+ {"version":3,"file":"logger.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- const e="\u{1F308} Beam:",r={error:(...o)=>console.error(e,...o),log:(...o)=>console.log(e,...o),warn:(...o)=>console.warn(e,...o),debug:(...o)=>console.debug(e,...o)};export{r as logger};
1
+ import{l as g}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{g as logger};
2
2
  //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sources":["../../src/utils/logger.ts"],"sourcesContent":["const LOG_PREFIX = \"🌈 Beam:\";\n\n// This may eventually log output to Beam servers, control log verbosity, etc.\n// For now it is an alias of the default JS console\nexport const logger = {\n error: (...args: any[]) => console.error(LOG_PREFIX, ...args),\n log: (...args: any[]) => console.log(LOG_PREFIX, ...args),\n warn: (...args: any[]) => console.warn(LOG_PREFIX, ...args),\n debug: (...args: any[]) => console.debug(LOG_PREFIX, ...args),\n};\n"],"names":["LOG_PREFIX","logger","args"],"mappings":"AAAA,MAAMA,EAAa,kBAINC,EAAS,CACpB,MAAO,IAAIC,IAAgB,QAAQ,MAAMF,EAAY,GAAGE,CAAI,EAC5D,IAAK,IAAIA,IAAgB,QAAQ,IAAIF,EAAY,GAAGE,CAAI,EACxD,KAAM,IAAIA,IAAgB,QAAQ,KAAKF,EAAY,GAAGE,CAAI,EAC1D,MAAO,IAAIA,IAAgB,QAAQ,MAAMF,EAAY,GAAGE,CAAI,CAC9D"}
1
+ {"version":3,"file":"logger.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,5 +1,3 @@
1
- declare function makeApiKeyHeader(apiKey: string): {
2
- authorization: string;
3
- };
4
-
5
- export { makeApiKeyHeader };
1
+ export { a2 as makeApiKeyHeader } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';
@@ -1,2 +1,2 @@
1
- function i(e){return{authorization:`Api-Key ${e}`}}export{i as makeApiKeyHeader};
1
+ import{t as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{m as makeApiKeyHeader};
2
2
  //# sourceMappingURL=makeApiKeyHeader.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"makeApiKeyHeader.esm.js","sources":["../../src/utils/makeApiKeyHeader.ts"],"sourcesContent":["export function makeApiKeyHeader(apiKey: string) {\n return {\n authorization: `Api-Key ${apiKey}`,\n };\n}\n"],"names":["makeApiKeyHeader","apiKey"],"mappings":"AAAO,SAASA,EAAiBC,EAAgB,CAC/C,MAAO,CACL,cAAe,WAAWA,CAAM,EAClC,CACF"}
1
+ {"version":3,"file":"makeApiKeyHeader.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- function i(e){return{authorization:`Api-Key ${e}`}}export{i as makeApiKeyHeader};
1
+ import{t as m}from"../chunks/utils-BjhsDvuU.esm.js";import"../chunks/lodash-CrMU6wKg.esm.js";export{m as makeApiKeyHeader};
2
2
  //# sourceMappingURL=makeApiKeyHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"makeApiKeyHeader.js","sources":["../../src/utils/makeApiKeyHeader.ts"],"sourcesContent":["export function makeApiKeyHeader(apiKey: string) {\n return {\n authorization: `Api-Key ${apiKey}`,\n };\n}\n"],"names":["makeApiKeyHeader","apiKey"],"mappings":"AAAO,SAASA,EAAiBC,EAAgB,CAC/C,MAAO,CACL,cAAe,WAAWA,CAAM,EAClC,CACF"}
1
+ {"version":3,"file":"makeApiKeyHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,17 +1,3 @@
1
- type Func<T extends any[], R> = (...args: T) => R;
2
- /**
3
- * Takes a function and returns a new memoized function.
4
- * If the same arguments are passed to the memoized function, it will return the previously computed result.
5
- * This is a "memoize once" function meaning it only compares the previous and current arguments, not historic values.
6
- * Results that throw errors or return rejected Promises are not cached.
7
- *
8
- * @param {Function} fn - The function to be memoized.
9
- * @param {(value: any) => boolean} [isEqual]- The equality function used to compare arguments.
10
- * @returns {Function} - The memoized function.
11
- * @param func
12
- */
13
- declare function memoizeLast<T extends any[], R>(func: Func<T, R>, { isEqual }?: {
14
- isEqual?: ((value: any, other: any) => boolean) | undefined;
15
- }): Func<T, R>;
16
-
17
- export { memoizeLast };
1
+ export { z as memoizeLast } from '../chunks/utils-D8HO_RIu.esm.js';
2
+ import 'lodash-es/debounce';
3
+ import 'lodash-es/isEqual';