@beamimpact/web-sdk 1.36.7 → 1.36.9

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 (190) hide show
  1. package/dist/chunks/_share-dialog-dependencies-KMjpyJhT.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-KMjpyJhT.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-MLhW3eyp.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-MLhW3eyp.esm.js.map +1 -0
  5. package/dist/chunks/beam-errors-P-Lu07Ce.esm.js +2 -0
  6. package/dist/chunks/beam-errors-P-Lu07Ce.esm.js.map +1 -0
  7. package/dist/chunks/{beam-errors-bKCZlkvr.esm.d.ts → beam-errors-fXDkG1zo.esm.d.ts} +7 -2
  8. package/dist/chunks/{cart-contents-Shc27L1J.esm.d.ts → cart-contents-Z-r5GpWA.esm.d.ts} +1 -1
  9. package/dist/chunks/enforce-config-fo8kIfoY.esm.js +22 -0
  10. package/dist/chunks/{enforce-config-MqLZWolV.esm.js.map → enforce-config-fo8kIfoY.esm.js.map} +1 -1
  11. package/dist/chunks/enforce-config-qna7hEL6.esm.js +22 -0
  12. package/dist/chunks/{enforce-config-n0D_zfMC.esm.js.map → enforce-config-qna7hEL6.esm.js.map} +1 -1
  13. package/dist/chunks/{events-qTu4iIOo.esm.d.ts → events-q1pdogmn.esm.d.ts} +1 -1
  14. package/dist/chunks/index-0XoQisEb.esm.js +2 -0
  15. package/dist/chunks/index-0XoQisEb.esm.js.map +1 -0
  16. package/dist/chunks/{index-I8DBdgx0.esm.d.ts → index-1yMQlmZQ.esm.d.ts} +1 -1
  17. package/dist/chunks/index-44M_qqUx.esm.js +2 -0
  18. package/dist/chunks/index-44M_qqUx.esm.js.map +1 -0
  19. package/dist/chunks/{index-hC71uT32.esm.js → index-58VYn82f.esm.js} +2 -2
  20. package/dist/chunks/{index-hC71uT32.esm.js.map → index-58VYn82f.esm.js.map} +1 -1
  21. package/dist/chunks/index-8Rkw987L.esm.js +2 -0
  22. package/dist/chunks/index-8Rkw987L.esm.js.map +1 -0
  23. package/dist/chunks/{index-FAF7tYU6.esm.js → index-9gijHGwh.esm.js} +2 -2
  24. package/dist/chunks/index-9gijHGwh.esm.js.map +1 -0
  25. package/dist/chunks/{index-kuEhVQcF.esm.d.ts → index-DU9Zy88b.esm.d.ts} +2 -2
  26. package/dist/chunks/{index-MAsTKsZm.esm.js → index-KbG1GoVy.esm.js} +2 -2
  27. package/dist/chunks/{index-MAsTKsZm.esm.js.map → index-KbG1GoVy.esm.js.map} +1 -1
  28. package/dist/chunks/{index-uqEAgdEf.esm.js → index-OnjTwvAw.esm.js} +2 -2
  29. package/dist/chunks/index-OnjTwvAw.esm.js.map +1 -0
  30. package/dist/chunks/{index-rrdYIcOi.esm.js → index-U8Oy2aur.esm.js} +2 -2
  31. package/dist/chunks/index-U8Oy2aur.esm.js.map +1 -0
  32. package/dist/chunks/index-YN68B9ro.esm.js +2 -0
  33. package/dist/chunks/index-YN68B9ro.esm.js.map +1 -0
  34. package/dist/chunks/{index-tfP1RBZU.esm.d.ts → index-_XbXZetF.esm.d.ts} +2 -2
  35. package/dist/chunks/{index-3Xf6QzNV.esm.d.ts → index-mrZj61ji.esm.d.ts} +1 -1
  36. package/dist/chunks/index-nb5G3fNW.esm.js +2 -0
  37. package/dist/chunks/index-nb5G3fNW.esm.js.map +1 -0
  38. package/dist/chunks/index-oCRI089I.esm.js +2 -0
  39. package/dist/chunks/index-oCRI089I.esm.js.map +1 -0
  40. package/dist/chunks/{index-3ThDVYOT.esm.d.ts → index-vziJysPD.esm.d.ts} +4 -4
  41. package/dist/chunks/{index-w9_XpjIg.esm.js → index-wsdeaTHd.esm.js} +2 -2
  42. package/dist/chunks/index-wsdeaTHd.esm.js.map +1 -0
  43. package/dist/chunks/{index-wbrSi6cp.esm.d.ts → index-xRdmiNwx.esm.d.ts} +1 -1
  44. package/dist/chunks/{localize-eZMViIud.esm.js → localize-GCkVUD8S.esm.js} +2 -2
  45. package/dist/chunks/{localize-eZMViIud.esm.js.map → localize-GCkVUD8S.esm.js.map} +1 -1
  46. package/dist/chunks/{localize-0rA0DbzI.esm.js → localize-pzAAkBvG.esm.js} +2 -2
  47. package/dist/chunks/{localize-0rA0DbzI.esm.js.map → localize-pzAAkBvG.esm.js.map} +1 -1
  48. package/dist/chunks/{openapi-spec-D_Zzbl2J.esm.d.ts → openapi-spec-S9cYW1SA.esm.d.ts} +80 -2
  49. package/dist/chunks/{order-page-MyFrJe1o.esm.js → order-page-OFWAlLqS.esm.js} +2 -2
  50. package/dist/chunks/{order-page-MyFrJe1o.esm.js.map → order-page-OFWAlLqS.esm.js.map} +1 -1
  51. package/dist/chunks/{order-page-ydw5uXTI.esm.d.ts → order-page-lfbHIKul.esm.d.ts} +3 -2
  52. package/dist/chunks/{order-page-PGTQXoSr.esm.js → order-page-zZ0JffzK.esm.js} +2 -2
  53. package/dist/chunks/{order-page-PGTQXoSr.esm.js.map → order-page-zZ0JffzK.esm.js.map} +1 -1
  54. package/dist/chunks/routes-1-1FXngS.esm.js +2 -0
  55. package/dist/chunks/{routes-USQ3n64Y.esm.js.map → routes-1-1FXngS.esm.js.map} +1 -1
  56. package/dist/chunks/routes-RgILh2Qy.esm.js +2 -0
  57. package/dist/chunks/{routes-wPiw5U5n.esm.js.map → routes-RgILh2Qy.esm.js.map} +1 -1
  58. package/dist/chunks/{update-cart-yCIzgmve.esm.d.ts → update-cart-9-QjPC1E.esm.d.ts} +1 -1
  59. package/dist/chunks/{update-cart-OkpQAdyP.esm.js → update-cart-EVuB41Qg.esm.js} +2 -2
  60. package/dist/chunks/{update-cart-OkpQAdyP.esm.js.map → update-cart-EVuB41Qg.esm.js.map} +1 -1
  61. package/dist/chunks/{update-cart-8xlajjFj.esm.js → update-cart-V2ysW2LO.esm.js} +2 -2
  62. package/dist/chunks/{update-cart-8xlajjFj.esm.js.map → update-cart-V2ysW2LO.esm.js.map} +1 -1
  63. package/dist/components/community-impact.esm.js +2 -1
  64. package/dist/components/community-impact.esm.js.map +1 -1
  65. package/dist/components/community-impact.js +2 -1
  66. package/dist/components/community-impact.js.map +1 -1
  67. package/dist/components/cumulative-impact.esm.js +2 -1
  68. package/dist/components/cumulative-impact.esm.js.map +1 -1
  69. package/dist/components/cumulative-impact.js +2 -1
  70. package/dist/components/cumulative-impact.js.map +1 -1
  71. package/dist/components/impact-overview.esm.js +2 -1
  72. package/dist/components/impact-overview.esm.js.map +1 -1
  73. package/dist/components/impact-overview.js +2 -1
  74. package/dist/components/impact-overview.js.map +1 -1
  75. package/dist/components/index.d.ts +2 -2
  76. package/dist/components/index.esm.js +1 -1
  77. package/dist/components/index.js +1 -1
  78. package/dist/components/post-purchase.d.ts +2 -2
  79. package/dist/components/post-purchase.esm.js +1 -1
  80. package/dist/components/post-purchase.js +1 -1
  81. package/dist/components/redeem-transaction.d.ts +15 -5
  82. package/dist/components/redeem-transaction.esm.js +12 -11
  83. package/dist/components/redeem-transaction.esm.js.map +1 -1
  84. package/dist/components/redeem-transaction.js +12 -11
  85. package/dist/components/redeem-transaction.js.map +1 -1
  86. package/dist/components/select-nonprofit.d.ts +2 -2
  87. package/dist/components/select-nonprofit.esm.js +2 -1
  88. package/dist/components/select-nonprofit.esm.js.map +1 -1
  89. package/dist/components/select-nonprofit.js +2 -1
  90. package/dist/components/select-nonprofit.js.map +1 -1
  91. package/dist/components/shopify.d.ts +6 -6
  92. package/dist/components/shopify.esm.js +1 -1
  93. package/dist/components/shopify.js +1 -1
  94. package/dist/components/subscription-management.d.ts +18 -5
  95. package/dist/components/subscription-management.esm.js +15 -5
  96. package/dist/components/subscription-management.esm.js.map +1 -1
  97. package/dist/components/subscription-management.js +15 -5
  98. package/dist/components/subscription-management.js.map +1 -1
  99. package/dist/index.d.ts +12 -12
  100. package/dist/index.esm.js +1 -1
  101. package/dist/index.js +1 -1
  102. package/dist/integrations/beam.esm.js +1 -1
  103. package/dist/integrations/beam.js +1 -1
  104. package/dist/integrations/cart.d.ts +3 -3
  105. package/dist/integrations/cart.esm.js +1 -1
  106. package/dist/integrations/cart.js +1 -1
  107. package/dist/integrations/index.d.ts +10 -10
  108. package/dist/integrations/index.esm.js +1 -1
  109. package/dist/integrations/index.js +1 -1
  110. package/dist/integrations/logs.d.ts +2 -2
  111. package/dist/integrations/logs.esm.js +1 -1
  112. package/dist/integrations/logs.js +1 -1
  113. package/dist/integrations/session.esm.js +1 -1
  114. package/dist/integrations/session.js +1 -1
  115. package/dist/integrations/shopify.d.ts +4 -4
  116. package/dist/integrations/shopify.esm.js +1 -1
  117. package/dist/integrations/shopify.js +1 -1
  118. package/dist/integrations/statsig.esm.js +1 -1
  119. package/dist/integrations/statsig.js +1 -1
  120. package/dist/integrations/utils.d.ts +4 -4
  121. package/dist/integrations/utils.esm.js +1 -1
  122. package/dist/integrations/utils.js +1 -1
  123. package/dist/react/community-impact.esm.js +1 -1
  124. package/dist/react/community-impact.js +1 -1
  125. package/dist/react/cumulative-impact.esm.js +1 -1
  126. package/dist/react/cumulative-impact.js +1 -1
  127. package/dist/react/impact-overview.esm.js +1 -1
  128. package/dist/react/impact-overview.js +1 -1
  129. package/dist/react/index.d.ts +3 -3
  130. package/dist/react/index.esm.js +1 -1
  131. package/dist/react/index.js +1 -1
  132. package/dist/react/post-purchase.d.ts +2 -2
  133. package/dist/react/post-purchase.esm.js +1 -1
  134. package/dist/react/post-purchase.js +1 -1
  135. package/dist/react/redeem-transaction.d.ts +3 -3
  136. package/dist/react/redeem-transaction.esm.js +1 -1
  137. package/dist/react/redeem-transaction.js +1 -1
  138. package/dist/react/select-nonprofit.d.ts +3 -3
  139. package/dist/react/select-nonprofit.esm.js +1 -1
  140. package/dist/react/select-nonprofit.js +1 -1
  141. package/dist/react/subscription-management.d.ts +2 -2
  142. package/dist/react/subscription-management.esm.js +1 -1
  143. package/dist/react/subscription-management.esm.js.map +1 -1
  144. package/dist/react/subscription-management.js +1 -1
  145. package/dist/react/subscription-management.js.map +1 -1
  146. package/dist/utils/beam-errors.d.ts +1 -1
  147. package/dist/utils/beam-errors.esm.js +1 -1
  148. package/dist/utils/beam-errors.js +1 -1
  149. package/dist/utils/cookies.d.ts +1 -1
  150. package/dist/utils/cookies.esm.js +1 -1
  151. package/dist/utils/cookies.esm.js.map +1 -1
  152. package/dist/utils/cookies.js +1 -1
  153. package/dist/utils/cookies.js.map +1 -1
  154. package/dist/utils/events.d.ts +3 -3
  155. package/dist/utils/index.d.ts +4 -4
  156. package/dist/utils/index.esm.js +1 -1
  157. package/dist/utils/index.js +1 -1
  158. package/dist/utils/local-storage.esm.js +1 -1
  159. package/dist/utils/local-storage.js +1 -1
  160. package/dist/utils/remote-session.esm.js +1 -1
  161. package/dist/utils/remote-session.js +1 -1
  162. package/dist/utils/wait-for-element.esm.js +1 -1
  163. package/dist/utils/wait-for-element.js +1 -1
  164. package/package.json +1 -1
  165. package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js +0 -2
  166. package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js.map +0 -1
  167. package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js +0 -2
  168. package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js.map +0 -1
  169. package/dist/chunks/beam-errors-AMvTvR1C.esm.js +0 -2
  170. package/dist/chunks/beam-errors-AMvTvR1C.esm.js.map +0 -1
  171. package/dist/chunks/enforce-config-MqLZWolV.esm.js +0 -22
  172. package/dist/chunks/enforce-config-n0D_zfMC.esm.js +0 -22
  173. package/dist/chunks/index-0CUzV2-m.esm.js +0 -2
  174. package/dist/chunks/index-0CUzV2-m.esm.js.map +0 -1
  175. package/dist/chunks/index-0JdRzhqA.esm.js +0 -2
  176. package/dist/chunks/index-0JdRzhqA.esm.js.map +0 -1
  177. package/dist/chunks/index-6hf6jo8u.esm.js +0 -2
  178. package/dist/chunks/index-6hf6jo8u.esm.js.map +0 -1
  179. package/dist/chunks/index-8G1d1I0a.esm.js +0 -2
  180. package/dist/chunks/index-8G1d1I0a.esm.js.map +0 -1
  181. package/dist/chunks/index-FAF7tYU6.esm.js.map +0 -1
  182. package/dist/chunks/index-L6UcfXYR.esm.js +0 -2
  183. package/dist/chunks/index-L6UcfXYR.esm.js.map +0 -1
  184. package/dist/chunks/index-m6tLtpwd.esm.js +0 -2
  185. package/dist/chunks/index-m6tLtpwd.esm.js.map +0 -1
  186. package/dist/chunks/index-rrdYIcOi.esm.js.map +0 -1
  187. package/dist/chunks/index-uqEAgdEf.esm.js.map +0 -1
  188. package/dist/chunks/index-w9_XpjIg.esm.js.map +0 -1
  189. package/dist/chunks/routes-USQ3n64Y.esm.js +0 -2
  190. package/dist/chunks/routes-wPiw5U5n.esm.js +0 -2
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-MqLZWolV.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-USQ3n64Y.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-eZMViIud.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-RgILh2Qy.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
2
2
  //# sourceMappingURL=redeem-transaction.esm.js.map
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-n0D_zfMC.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"../chunks/routes-wPiw5U5n.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-0rA0DbzI.esm.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-1-1FXngS.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
2
2
  //# sourceMappingURL=redeem-transaction.js.map
@@ -1,9 +1,9 @@
1
1
  import * as _lit_react from '@lit/react';
2
2
  import { EventName } from '@lit/react';
3
- import { B as BeamNonprofitSelectEvent } from '../chunks/events-qTu4iIOo.esm.js';
3
+ import { B as BeamNonprofitSelectEvent } from '../chunks/events-q1pdogmn.esm.js';
4
4
  import { BeamSelectNonprofit as BeamSelectNonprofit$1 } from '../components/select-nonprofit.js';
5
- import '../chunks/cart-contents-Shc27L1J.esm.js';
6
- import '../chunks/openapi-spec-D_Zzbl2J.esm.js';
5
+ import '../chunks/cart-contents-Z-r5GpWA.esm.js';
6
+ import '../chunks/openapi-spec-S9cYW1SA.esm.js';
7
7
  import '../chunks/types-7kSi85Gv.esm.js';
8
8
  import 'lit-html';
9
9
  import 'lit';
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/enforce-config-MqLZWolV.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-USQ3n64Y.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-eZMViIud.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
1
+ import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-RgILh2Qy.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
2
2
  //# sourceMappingURL=select-nonprofit.esm.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/enforce-config-n0D_zfMC.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"../chunks/routes-wPiw5U5n.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-0rA0DbzI.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
1
+ import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-1-1FXngS.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
2
2
  //# sourceMappingURL=select-nonprofit.js.map
@@ -3,8 +3,8 @@ import { BeamSubscriptionManagement as BeamSubscriptionManagement$1 } from '../c
3
3
  import 'lit';
4
4
  import 'lit-html';
5
5
  import '../chunks/types-aju0qrRe.esm.js';
6
- import '../chunks/cart-contents-Shc27L1J.esm.js';
7
- import '../chunks/openapi-spec-D_Zzbl2J.esm.js';
6
+ import '../chunks/cart-contents-Z-r5GpWA.esm.js';
7
+ import '../chunks/openapi-spec-S9cYW1SA.esm.js';
8
8
 
9
9
  declare const BeamSubscriptionManagement: _lit_react.ReactWebComponent<BeamSubscriptionManagement$1, {}>;
10
10
 
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-USQ3n64Y.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"../chunks/enforce-config-MqLZWolV.esm.js";const e=a({tagName:t.tagName,elementClass:t,react:m,events:{}});export{e as BeamSubscriptionManagement,e as default};
1
+ import e from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-RgILh2Qy.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/events-5IECSF-x.esm.js";const m=a({tagName:t.tagName,elementClass:t,react:e,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":"wUAIO,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":"iXAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/routes-wPiw5U5n.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"../chunks/enforce-config-n0D_zfMC.esm.js";const e=a({tagName:t.tagName,elementClass:t,react:m,events:{}});export{e as BeamSubscriptionManagement,e as default};
1
+ import e from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/routes-1-1FXngS.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/events-5IECSF-x.esm.js";const m=a({tagName:t.tagName,elementClass:t,react:e,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":"gUAIO,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":"yWAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1 +1 @@
1
- export { B as BeamError, L as LocalStorageError, M as MissingConfig, N as NetworkError, S as SetupError } from '../chunks/beam-errors-bKCZlkvr.esm.js';
1
+ export { B as BeamError, I as InvalidAttributeCombinationError, L as LocalStorageError, M as MissingConfig, N as NetworkError, S as SetupError } from '../chunks/beam-errors-fXDkG1zo.esm.js';
@@ -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-AMvTvR1C.esm.js";export{a as BeamError,s as LocalStorageError,e as MissingConfig,t as NetworkError,E as SetupError};
1
+ import{B as a,I as s,L as t,M as i,N as e,S as n}from"../chunks/beam-errors-P-Lu07Ce.esm.js";export{a as BeamError,s as InvalidAttributeCombinationError,t as LocalStorageError,i as MissingConfig,e as NetworkError,n 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-AMvTvR1C.esm.js";export{a as BeamError,s as LocalStorageError,e as MissingConfig,t as NetworkError,E as SetupError};
1
+ import{B as a,I as s,L as t,M as i,N as e,S as n}from"../chunks/beam-errors-P-Lu07Ce.esm.js";export{a as BeamError,s as InvalidAttributeCombinationError,t as LocalStorageError,i as MissingConfig,e as NetworkError,n as SetupError};
2
2
  //# sourceMappingURL=beam-errors.js.map
@@ -1,4 +1,4 @@
1
- declare const getCookieMap: () => Map<string, string>;
1
+ declare const getCookieMap: (cookieString?: string) => Map<string, string>;
2
2
  declare const getCookieValue: (name: string) => string | undefined;
3
3
  declare const setCookieValue: (options: CookieInit) => undefined;
4
4
  declare const deleteCookieValue: (options: {
@@ -1,2 +1,2 @@
1
- const s=()=>document.cookie.split("; ").reduce((e,t)=>{const[n,...o]=t.split("="),i=decodeURIComponent(o.join("="));return e.set(n,i)},new Map),C=e=>s().get(e),a=e=>{const{name:t,value:n,expires:o,...i}=e,c=encodeURIComponent(n),p=`${t}=${c}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",d=Object.entries(i).map(([r,l])=>l!=null?` ;${r}=${l}`:"").join("");document.cookie=p+d+u},k=e=>a({...e,value:"",expires:0});export{k as deleteCookieValue,s as getCookieMap,C as getCookieValue,a as setCookieValue};
1
+ const c=(e=document.cookie)=>e.split(";").reduce((t,n)=>{const o=n.trim(),[i,...s]=o.split("="),l=decodeURIComponent(s.join("="));return t.set(i,l)},new Map),m=e=>c().get(e),p=e=>{const{name:t,value:n,expires:o,...i}=e,s=encodeURIComponent(n),l=`${t}=${s}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",a=Object.entries(i).map(([d,r])=>r!=null?` ;${d}=${r}`:"").join("");document.cookie=l+a+u},C=e=>p({...e,value:"",expires:-1});export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p 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 = () => {\n return document.cookie.split(\"; \").reduce((res, x) => {\n const [key, ...restOfString] = x.split(\"=\");\n const value = decodeURIComponent(restOfString.join(\"=\"));\n return res.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 return setCookieValue({ ...options, value: \"\", expires: 0 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\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\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","res","x","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"mappings":"AAIa,MAAAA,EAAe,IACnB,SAAS,OAAO,MAAM,IAAI,EAAE,OAAO,CAACC,EAAKC,IAAM,CACpD,KAAM,CAACC,EAAK,GAAGC,CAAY,EAAIF,EAAE,MAAM,GAAG,EACpCG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOH,EAAI,IAAIE,EAAKE,CAAK,CAC3B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBP,IAAe,IAAIO,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,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,CAAE,CAAC"}
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 return setCookieValue({ ...options, value: \"\", expires: -1 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\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\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"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,aAAa,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,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,EAAG,CAAC"}
@@ -1,2 +1,2 @@
1
- const s=()=>document.cookie.split("; ").reduce((e,t)=>{const[n,...o]=t.split("="),i=decodeURIComponent(o.join("="));return e.set(n,i)},new Map),C=e=>s().get(e),a=e=>{const{name:t,value:n,expires:o,...i}=e,c=encodeURIComponent(n),p=`${t}=${c}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",d=Object.entries(i).map(([r,l])=>l!=null?` ;${r}=${l}`:"").join("");document.cookie=p+d+u},k=e=>a({...e,value:"",expires:0});export{k as deleteCookieValue,s as getCookieMap,C as getCookieValue,a as setCookieValue};
1
+ const c=(e=document.cookie)=>e.split(";").reduce((t,n)=>{const o=n.trim(),[i,...s]=o.split("="),l=decodeURIComponent(s.join("="));return t.set(i,l)},new Map),m=e=>c().get(e),p=e=>{const{name:t,value:n,expires:o,...i}=e,s=encodeURIComponent(n),l=`${t}=${s}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",a=Object.entries(i).map(([d,r])=>r!=null?` ;${d}=${r}`:"").join("");document.cookie=l+a+u},C=e=>p({...e,value:"",expires:-1});export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p 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 = () => {\n return document.cookie.split(\"; \").reduce((res, x) => {\n const [key, ...restOfString] = x.split(\"=\");\n const value = decodeURIComponent(restOfString.join(\"=\"));\n return res.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 return setCookieValue({ ...options, value: \"\", expires: 0 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\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\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","res","x","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"mappings":"AAIa,MAAAA,EAAe,IACnB,SAAS,OAAO,MAAM,IAAI,EAAE,OAAO,CAACC,EAAKC,IAAM,CACpD,KAAM,CAACC,EAAK,GAAGC,CAAY,EAAIF,EAAE,MAAM,GAAG,EACpCG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOH,EAAI,IAAIE,EAAKE,CAAK,CAC3B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBP,IAAe,IAAIO,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,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,CAAE,CAAC"}
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 return setCookieValue({ ...options, value: \"\", expires: -1 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\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\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"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,aAAa,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,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,EAAG,CAAC"}
@@ -1,4 +1,4 @@
1
- import '../chunks/cart-contents-Shc27L1J.esm.js';
1
+ import '../chunks/cart-contents-Z-r5GpWA.esm.js';
2
2
  import '../chunks/types-7kSi85Gv.esm.js';
3
- export { b as BeamCartChangeEvent, c as BeamCartCreatedEvent, a as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, d as BeamOrderCreatedEvent, f as BeamStatusChangeEvent } from '../chunks/events-qTu4iIOo.esm.js';
4
- import '../chunks/openapi-spec-D_Zzbl2J.esm.js';
3
+ export { b as BeamCartChangeEvent, c as BeamCartCreatedEvent, a as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, d as BeamOrderCreatedEvent, f as BeamStatusChangeEvent } from '../chunks/events-q1pdogmn.esm.js';
4
+ import '../chunks/openapi-spec-S9cYW1SA.esm.js';
@@ -1,5 +1,5 @@
1
- export { b as errors } from '../chunks/beam-errors-bKCZlkvr.esm.js';
2
- export { e as events } from '../chunks/events-qTu4iIOo.esm.js';
1
+ export { b as errors } from '../chunks/beam-errors-fXDkG1zo.esm.js';
2
+ export { e as events } from '../chunks/events-q1pdogmn.esm.js';
3
3
  export { logger } from './logger.js';
4
4
  export { fetchProxy, initNetworkListeners, xhrProxy } from './network-listeners.js';
5
5
  export { createScopedLocalStorage } from './local-storage.js';
@@ -9,6 +9,6 @@ export { getRemoteSession, saveRemoteSession } from './remote-session.js';
9
9
  export { memoizeLast } from './memoize-last.js';
10
10
  export { default as debounce } from 'lodash-es/debounce';
11
11
  export { default as isEqual } from 'lodash-es/isEqual';
12
- import '../chunks/cart-contents-Shc27L1J.esm.js';
13
- import '../chunks/openapi-spec-D_Zzbl2J.esm.js';
12
+ import '../chunks/cart-contents-Z-r5GpWA.esm.js';
13
+ import '../chunks/openapi-spec-S9cYW1SA.esm.js';
14
14
  import '../chunks/types-7kSi85Gv.esm.js';
@@ -1,2 +1,2 @@
1
- import{b as r}from"../chunks/beam-errors-AMvTvR1C.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.esm.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.esm.js";import{createScopedLocalStorage as n}from"./local-storage.esm.js";import{waitForElement as c}from"./wait-for-element.esm.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.esm.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.esm.js";import{memoizeLast as v}from"./memoize-last.esm.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
1
+ import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.esm.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.esm.js";import{createScopedLocalStorage as n}from"./local-storage.esm.js";import{waitForElement as c}from"./wait-for-element.esm.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.esm.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.esm.js";import{memoizeLast as v}from"./memoize-last.esm.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{b as r}from"../chunks/beam-errors-AMvTvR1C.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.js";import{createScopedLocalStorage as n}from"./local-storage.js";import{waitForElement as c}from"./wait-for-element.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.js";import{memoizeLast as v}from"./memoize-last.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
1
+ import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.js";import{createScopedLocalStorage as n}from"./local-storage.js";import{waitForElement as c}from"./wait-for-element.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.js";import{memoizeLast as v}from"./memoize-last.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{L as o}from"../chunks/beam-errors-AMvTvR1C.esm.js";const s=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{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
1
+ import{L as o}from"../chunks/beam-errors-P-Lu07Ce.esm.js";const s=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{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
2
2
  //# sourceMappingURL=local-storage.esm.js.map
@@ -1,2 +1,2 @@
1
- import{L as o}from"../chunks/beam-errors-AMvTvR1C.esm.js";const s=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{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
1
+ import{L as o}from"../chunks/beam-errors-P-Lu07Ce.esm.js";const s=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{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
2
2
  //# sourceMappingURL=local-storage.js.map
@@ -1,2 +1,2 @@
1
- import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
1
+ import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
2
2
  //# sourceMappingURL=remote-session.esm.js.map
@@ -1,2 +1,2 @@
1
- import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
1
+ import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
2
2
  //# sourceMappingURL=remote-session.js.map
@@ -1,2 +1,2 @@
1
- import{B as s}from"../chunks/beam-errors-AMvTvR1C.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
1
+ import{B as s}from"../chunks/beam-errors-P-Lu07Ce.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
2
2
  //# sourceMappingURL=wait-for-element.esm.js.map
@@ -1,2 +1,2 @@
1
- import{B as s}from"../chunks/beam-errors-AMvTvR1C.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
1
+ import{B as s}from"../chunks/beam-errors-P-Lu07Ce.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
2
2
  //# sourceMappingURL=wait-for-element.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beamimpact/web-sdk",
3
3
  "private": false,
4
- "version": "1.36.7",
4
+ "version": "1.36.9",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "engines": {
@@ -1,2 +0,0 @@
1
- import"./vendor-eeJfrOkP.esm.js";import"../components/impact-overview.js";import"./lit-yVXn5Cbs.esm.js";import"./lodash-P8OIs-at.esm.js";import"./routes-wPiw5U5n.esm.js";import"./beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"./progress-bar-7gWYaGlq.esm.js";import"./enforce-config-n0D_zfMC.esm.js";import"./localize-0rA0DbzI.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"./responsive-LYEag6TI.esm.js";
2
- //# sourceMappingURL=_share-dialog-dependencies-BGBxD2DS.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies-BGBxD2DS.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"./vendor-eeJfrOkP.esm.js";import"../components/impact-overview.esm.js";import"./lit-yVXn5Cbs.esm.js";import"./lodash-P8OIs-at.esm.js";import"./routes-USQ3n64Y.esm.js";import"./beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"./progress-bar-7gWYaGlq.esm.js";import"./enforce-config-MqLZWolV.esm.js";import"./localize-eZMViIud.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"./responsive-LYEag6TI.esm.js";
2
- //# sourceMappingURL=_share-dialog-dependencies-l3E6m-4b.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies-l3E6m-4b.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- class s extends Error{constructor(r,{cause:e,name:a="BeamError"}={}){super(r,{cause:e}),this.name=a,this.supportUrl="https://beamimpact.com"}}class t extends s{constructor(r,e,a){super(a,{name:"BeamNetworkError"}),this.response=r,this.body=e}}class n extends s{constructor(r=[],e){super(e,{name:"BeamMissingConfig"}),this.missingConfigKeyNames=r}}class c extends s{constructor(r){super(r,{name:"BeamLocalStorageError"})}}class m extends s{constructor(r){super(r,{name:"BeamSetupError"})}}var i=Object.freeze({__proto__:null,BeamError:s,LocalStorageError:c,MissingConfig:n,NetworkError:t,SetupError:m});export{s as B,c as L,n as M,t as N,m as S,i as b};
2
- //# sourceMappingURL=beam-errors-AMvTvR1C.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beam-errors-AMvTvR1C.esm.js","sources":["../../src/utils/beam-errors.ts"],"sourcesContent":["export class BeamError extends Error {\n supportUrl: string;\n constructor(msg?: string, { cause, name = \"BeamError\" }: { cause?: any; name?: string } = {}) {\n super(msg, { cause });\n this.name = name;\n this.supportUrl = \"https://beamimpact.com\";\n }\n}\n\nexport class NetworkError extends BeamError {\n /** Fetch Response object with .ok, .status, etc.*/\n response: Response;\n /** If network response included JSON payload, it is parsed and available here */\n body?: Record<string, string>;\n constructor(response: Response, body?: Record<string, string>, msg?: string) {\n super(msg, { name: \"BeamNetworkError\" });\n this.response = response;\n this.body = body;\n }\n}\n\nexport class MissingConfig extends BeamError {\n missingConfigKeyNames: string[];\n constructor(missingConfigKeyNames: string[] = [], msg?: string) {\n super(msg, { name: \"BeamMissingConfig\" });\n this.missingConfigKeyNames = missingConfigKeyNames;\n }\n}\n\nexport class LocalStorageError extends BeamError {\n constructor(msg?: string) {\n super(msg, { name: \"BeamLocalStorageError\" });\n }\n}\n\nexport class SetupError extends BeamError {\n constructor(msg?: string) {\n super(msg, { name: \"BeamSetupError\" });\n }\n}\n"],"names":["BeamError","msg","cause","name","NetworkError","response","body","MissingConfig","missingConfigKeyNames","LocalStorageError","SetupError"],"mappings":"AAAa,MAAAA,UAAkB,KAAM,CAEnC,YAAYC,EAAc,CAAE,MAAAC,EAAO,KAAAC,EAAO,WAAY,EAAoC,GAAI,CAC5F,MAAMF,EAAK,CAAE,MAAAC,CAAM,CAAC,EACpB,KAAK,KAAOC,EACZ,KAAK,WAAa,wBACpB,CACF,CAEa,MAAAC,UAAqBJ,CAAU,CAK1C,YAAYK,EAAoBC,EAA+BL,EAAc,CAC3E,MAAMA,EAAK,CAAE,KAAM,kBAAmB,CAAC,EACvC,KAAK,SAAWI,EAChB,KAAK,KAAOC,CACd,CACF,CAEa,MAAAC,UAAsBP,CAAU,CAE3C,YAAYQ,EAAkC,CAAC,EAAGP,EAAc,CAC9D,MAAMA,EAAK,CAAE,KAAM,mBAAoB,CAAC,EACxC,KAAK,sBAAwBO,CAC/B,CACF,CAEa,MAAAC,UAA0BT,CAAU,CAC/C,YAAYC,EAAc,CACxB,MAAMA,EAAK,CAAE,KAAM,uBAAwB,CAAC,CAC9C,CACF,CAEa,MAAAS,UAAmBV,CAAU,CACxC,YAAYC,EAAc,CACxB,MAAMA,EAAK,CAAE,KAAM,gBAAiB,CAAC,CACvC,CACF"}
@@ -1,22 +0,0 @@
1
- import{f as l,y as r}from"./lit-yVXn5Cbs.esm.js";import{N as h,M as n}from"./beam-errors-AMvTvR1C.esm.js";import{logger as c}from"../utils/logger.esm.js";const p=l`html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{/*height:auto;*/max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}`;function d(t,e=t.tagName){customElements.get(e)||customElements.define(e,t)}const g=t=>Object.entries(t).map(([e,s])=>`${e}: ${s};`).join(`
2
- `);class m{constructor(e,s){this.data=null,this.loading=!1,this.error=null,(this.host=e).addController(this),this.asyncFn=s}async exec(...e){this.lastArgs=e,this.loading=!0,this.host.requestUpdate();try{this.data=await this.asyncFn(...e),this.error=null}catch(s){s instanceof Error&&(this.error=s,this.data=null)}return this.loading=!1,this.host.requestUpdate(),this.data}async retry(){return this.exec(...this.lastArgs||[])}hostDisconnected(){}}const a={errorTitle:"Beam encountered an error. Please try again.",retry:"Retry"},u=({error:t,retry:e})=>{let s=r``;if(t instanceof h){const i=JSON.stringify({status:t.response.status,statusText:t.response.statusText,url:t.response.url,body:t.body},null,4);s=r`
3
- <p><b>Network Response:</b></p>
4
- <p>${i}</p>
5
- `}return t instanceof n&&(s=r`
6
- <p><b>Missing Required Config Options:</b></p>
7
- <p>${t.missingConfigKeyNames.join(", ")}</p>
8
- `),r`<div class="beam-error" style="text-align: left">
9
- <p>${a.errorTitle} ${e?r` <button type="reset" @click="${e}">${a.retry}</button>`:""}</p>
10
- <br />
11
- <details>
12
- <div style="white-space: pre-wrap; font-family: monospace; line-height: 1;">
13
- ${s}
14
- <p><b>Message:</b> ${t.message||r`<i>None</i>`}</p>
15
- <p><b>Stack:</b> ${t.stack}</p>
16
- </div>
17
- </details>
18
- <br />
19
- <p>Help: <a href="https://www.beamimpact.com">www.beamimpact.com</a></p>
20
- </div>`};function f(t,e){const s=[],i=e;for(const o of t)i[o]==null&&s.push(o);if(s.length>0)throw c.error(`Beam Impact - Missing Required Config Values:
21
- `,s.join(", "),e),new n(s);return!0}export{m as A,u as _,g as a,p as c,d,f as e};
22
- //# sourceMappingURL=enforce-config-MqLZWolV.esm.js.map
@@ -1,22 +0,0 @@
1
- import{f as l,y as r}from"./lit-yVXn5Cbs.esm.js";import{N as h,M as n}from"./beam-errors-AMvTvR1C.esm.js";import{logger as c}from"../utils/logger.js";const p=l`html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{/*height:auto;*/max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}`;function d(t,e=t.tagName){customElements.get(e)||customElements.define(e,t)}const g=t=>Object.entries(t).map(([e,s])=>`${e}: ${s};`).join(`
2
- `);class m{constructor(e,s){this.data=null,this.loading=!1,this.error=null,(this.host=e).addController(this),this.asyncFn=s}async exec(...e){this.lastArgs=e,this.loading=!0,this.host.requestUpdate();try{this.data=await this.asyncFn(...e),this.error=null}catch(s){s instanceof Error&&(this.error=s,this.data=null)}return this.loading=!1,this.host.requestUpdate(),this.data}async retry(){return this.exec(...this.lastArgs||[])}hostDisconnected(){}}const a={errorTitle:"Beam encountered an error. Please try again.",retry:"Retry"},u=({error:t,retry:e})=>{let s=r``;if(t instanceof h){const i=JSON.stringify({status:t.response.status,statusText:t.response.statusText,url:t.response.url,body:t.body},null,4);s=r`
3
- <p><b>Network Response:</b></p>
4
- <p>${i}</p>
5
- `}return t instanceof n&&(s=r`
6
- <p><b>Missing Required Config Options:</b></p>
7
- <p>${t.missingConfigKeyNames.join(", ")}</p>
8
- `),r`<div class="beam-error" style="text-align: left">
9
- <p>${a.errorTitle} ${e?r` <button type="reset" @click="${e}">${a.retry}</button>`:""}</p>
10
- <br />
11
- <details>
12
- <div style="white-space: pre-wrap; font-family: monospace; line-height: 1;">
13
- ${s}
14
- <p><b>Message:</b> ${t.message||r`<i>None</i>`}</p>
15
- <p><b>Stack:</b> ${t.stack}</p>
16
- </div>
17
- </details>
18
- <br />
19
- <p>Help: <a href="https://www.beamimpact.com">www.beamimpact.com</a></p>
20
- </div>`};function f(t,e){const s=[],i=e;for(const o of t)i[o]==null&&s.push(o);if(s.length>0)throw c.error(`Beam Impact - Missing Required Config Values:
21
- `,s.join(", "),e),new n(s);return!0}export{m as A,u as _,g as a,p as c,d,f as e};
22
- //# sourceMappingURL=enforce-config-n0D_zfMC.esm.js.map
@@ -1,2 +0,0 @@
1
- import{i}from"./index-w9_XpjIg.esm.js";import{i as o}from"./index-6hf6jo8u.esm.js";import{i as r}from"./index-Z1UUeVXR.esm.js";import{i as e}from"./index-m6tLtpwd.esm.js";import{i as m}from"./index-hC71uT32.esm.js";var s=Object.freeze({__proto__:null,Cart:e,Logs:m,Session:r,Shopify:o,Utils:i});export{s as i};
2
- //# sourceMappingURL=index-0CUzV2-m.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-0CUzV2-m.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{i}from"./index-uqEAgdEf.esm.js";import{i as o}from"./index-8G1d1I0a.esm.js";import{i as r}from"./index-9YcaEQju.esm.js";import{i as e}from"./index-L6UcfXYR.esm.js";import{i as m}from"./index-MAsTKsZm.esm.js";var s=Object.freeze({__proto__:null,Cart:e,Logs:m,Session:r,Shopify:o,Utils:i});export{s as i};
2
- //# sourceMappingURL=index-0JdRzhqA.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-0JdRzhqA.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{h as e,C as r,O as t,s as a,L as o}from"./order-page-MyFrJe1o.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
2
- //# sourceMappingURL=index-6hf6jo8u.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-6hf6jo8u.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{h as e,C as r,O as t,s as a,L as o}from"./order-page-PGTQXoSr.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
2
- //# sourceMappingURL=index-8G1d1I0a.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-8G1d1I0a.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-FAF7tYU6.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{x as e}from"./update-cart-8xlajjFj.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
- //# sourceMappingURL=index-L6UcfXYR.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-L6UcfXYR.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{x as e}from"./update-cart-OkpQAdyP.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
- //# sourceMappingURL=index-m6tLtpwd.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-m6tLtpwd.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-rrdYIcOi.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-uqEAgdEf.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-w9_XpjIg.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{B as N,N as l}from"./beam-errors-AMvTvR1C.esm.js";import{logger as p}from"../utils/logger.esm.js";var w="1.36.7",C={"@lit/react":"1.0.0","@lukeed/uuid":"2.0.0","@shoelace-style/shoelace":"2.11.2",lit:"2.6.1","lodash-es":"4.17.21","lucide-static":"0.292.0"};async function O(a,s){const c={method:"GET",...s,headers:{"Content-Type":"application/json",Accept:"application/json","X-Beam-Client":"WebSDK","X-Beam-Client-Version":w,...s?.headers},preflightContinue:!0,mode:s?.mode||"cors",body:s?.body!=null?s.body:void 0};let r;try{r=await fetch(a,c)}catch(t){const e=new N(`Network call failed (${c?.method.toUpperCase()} ${a})`);throw e.cause=t,p.error(e,a),e}let n,i;try{i=await r.text(),i&&(n=JSON.parse(i))}catch(t){let e=t;throw t instanceof SyntaxError&&(e=new l(r,n,`Response invalid. Expected JSON. Received: "${i}"`),e.cause=t),p.error(e),e}if(!r.ok){const t=new l(r,n,"Response was not OK");throw p.error(t),t}return n}const m="https://production-central-backend-ne.beamimpact.com",v="https://production.beamimpactlogs.com",R={en:"en",fr:"fr",de:"de",es:"es",it:"it",pl:"pl"},o=(a,s,c)=>({[a]:async function({headers:r={},baseUrl:n=m,apiRoot:i="/api/v3",pathParams:t={},queryParams:e={},requestBody:h}){const u=Object.entries(t).reduce((b,[g,E])=>b.replace(`{${g}}`,E),a),f=JSON.parse(JSON.stringify(e)),d=new URLSearchParams(f).toString(),S=n+i+u+(d&&`?${d}`),y={headers:r,method:s,body:JSON.stringify(h)};return O(S,y)}})[a],U=o("/impact","get"),L=o("/chain/{chainId}/cumulativeImpact","get"),T=o("/selectNonprofit","post"),k=o("/transaction","post"),A=o("/transaction/{transactionId}","put"),B=o("/cart","post"),x=o("/chain/findEligibleNonprofitsForCart","post"),I=o("/logs","post"),J=o("/experimentSession","post"),D=o("/subscriptions/findSubscriptionByRemoteId","post");export{m as D,R as S,v as a,x as b,k as c,B as d,I as e,T as f,U as g,D as h,A as i,L as j,C as k,J as p};
2
- //# sourceMappingURL=routes-USQ3n64Y.esm.js.map
@@ -1,2 +0,0 @@
1
- import{B as N,N as l}from"./beam-errors-AMvTvR1C.esm.js";import{logger as p}from"../utils/logger.js";var w="1.36.7",C={"@lit/react":"1.0.0","@lukeed/uuid":"2.0.0","@shoelace-style/shoelace":"2.11.2",lit:"2.6.1","lodash-es":"4.17.21","lucide-static":"0.292.0"};async function O(a,s){const c={method:"GET",...s,headers:{"Content-Type":"application/json",Accept:"application/json","X-Beam-Client":"WebSDK","X-Beam-Client-Version":w,...s?.headers},preflightContinue:!0,mode:s?.mode||"cors",body:s?.body!=null?s.body:void 0};let r;try{r=await fetch(a,c)}catch(t){const e=new N(`Network call failed (${c?.method.toUpperCase()} ${a})`);throw e.cause=t,p.error(e,a),e}let n,i;try{i=await r.text(),i&&(n=JSON.parse(i))}catch(t){let e=t;throw t instanceof SyntaxError&&(e=new l(r,n,`Response invalid. Expected JSON. Received: "${i}"`),e.cause=t),p.error(e),e}if(!r.ok){const t=new l(r,n,"Response was not OK");throw p.error(t),t}return n}const m="https://production-central-backend-ne.beamimpact.com",v="https://production.beamimpactlogs.com",R={en:"en",fr:"fr",de:"de",es:"es",it:"it",pl:"pl"},o=(a,s,c)=>({[a]:async function({headers:r={},baseUrl:n=m,apiRoot:i="/api/v3",pathParams:t={},queryParams:e={},requestBody:h}){const u=Object.entries(t).reduce((b,[g,E])=>b.replace(`{${g}}`,E),a),f=JSON.parse(JSON.stringify(e)),d=new URLSearchParams(f).toString(),S=n+i+u+(d&&`?${d}`),y={headers:r,method:s,body:JSON.stringify(h)};return O(S,y)}})[a],U=o("/impact","get"),L=o("/chain/{chainId}/cumulativeImpact","get"),T=o("/selectNonprofit","post"),k=o("/transaction","post"),A=o("/transaction/{transactionId}","put"),B=o("/cart","post"),x=o("/chain/findEligibleNonprofitsForCart","post"),I=o("/logs","post"),J=o("/experimentSession","post"),D=o("/subscriptions/findSubscriptionByRemoteId","post");export{m as D,R as S,v as a,x as b,k as c,B as d,I as e,T as f,U as g,D as h,A as i,L as j,C as k,J as p};
2
- //# sourceMappingURL=routes-wPiw5U5n.esm.js.map