@beamimpact/web-sdk 1.30.1 → 1.31.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 (186) hide show
  1. package/README.md +41 -0
  2. package/dist/chunks/_share-dialog-dependencies-5RgEFOlW.esm.js +2 -0
  3. package/dist/chunks/_share-dialog-dependencies-5RgEFOlW.esm.js.map +1 -0
  4. package/dist/chunks/_share-dialog-dependencies-BT0yKW4B.esm.js +2 -0
  5. package/dist/chunks/_share-dialog-dependencies-BT0yKW4B.esm.js.map +1 -0
  6. package/dist/chunks/beam-errors-AMvTvR1C.esm.js +2 -0
  7. package/dist/chunks/{beam-errors-l02WBee5.esm.js.map → beam-errors-AMvTvR1C.esm.js.map} +1 -1
  8. package/dist/chunks/cart-contents-P2GzTrNn.esm.d.ts +10 -0
  9. package/dist/chunks/events-60jQoHQi.esm.d.ts +108 -0
  10. package/dist/chunks/events-wNy5BoJV.esm.js +2 -0
  11. package/dist/chunks/events-wNy5BoJV.esm.js.map +1 -0
  12. package/dist/chunks/index-6oIIgcqD.esm.js +2 -0
  13. package/dist/chunks/index-6oIIgcqD.esm.js.map +1 -0
  14. package/dist/chunks/index-7kgWheoz.esm.js +2 -0
  15. package/dist/chunks/index-7kgWheoz.esm.js.map +1 -0
  16. package/dist/chunks/index-9tq13gvt.esm.js +2 -0
  17. package/dist/chunks/index-9tq13gvt.esm.js.map +1 -0
  18. package/dist/chunks/{index-Iupghntz.esm.d.ts → index-CItwC8WO.esm.d.ts} +1 -1
  19. package/dist/chunks/index-HQ1GjsKL.esm.js +2 -0
  20. package/dist/chunks/index-HQ1GjsKL.esm.js.map +1 -0
  21. package/dist/chunks/index-IfM4KUG0.esm.js +2 -0
  22. package/dist/chunks/index-IfM4KUG0.esm.js.map +1 -0
  23. package/dist/chunks/{index-h39_A7fk.esm.d.ts → index-L59voCOg.esm.d.ts} +1 -1
  24. package/dist/chunks/index-UzQdmWpi.esm.js +2 -0
  25. package/dist/chunks/index-UzQdmWpi.esm.js.map +1 -0
  26. package/dist/chunks/{index-4o5tH5RA.esm.d.ts → index-Zzs4grqC.esm.d.ts} +17 -7
  27. package/dist/chunks/index-aYzgWMfi.esm.js +2 -0
  28. package/dist/chunks/index-aYzgWMfi.esm.js.map +1 -0
  29. package/dist/chunks/index-iTqsULiK.esm.d.ts +15 -0
  30. package/dist/chunks/{index-IXwIgGSV.esm.js → index-jFZJm9-Y.esm.js} +2 -2
  31. package/dist/chunks/{index-IXwIgGSV.esm.js.map → index-jFZJm9-Y.esm.js.map} +1 -1
  32. package/dist/chunks/index-l_MORcbP.esm.d.ts +15 -0
  33. package/dist/chunks/index-oWDZabqS.esm.js +2 -0
  34. package/dist/chunks/index-oWDZabqS.esm.js.map +1 -0
  35. package/dist/chunks/{local-storage-Rrnk_Dg-.esm.js → local-storage-GYvYzZ_j.esm.js} +2 -2
  36. package/dist/chunks/{local-storage-Rrnk_Dg-.esm.js.map → local-storage-GYvYzZ_j.esm.js.map} +1 -1
  37. package/dist/chunks/{localize-nH-zlK_j.esm.js → localize-906erPHj.esm.js} +2 -2
  38. package/dist/chunks/{localize-nH-zlK_j.esm.js.map → localize-906erPHj.esm.js.map} +1 -1
  39. package/dist/chunks/{network-listeners-CEOxhlYW.esm.js → network-listeners-O5LKv8Yy.esm.js} +2 -2
  40. package/dist/chunks/{network-listeners-CEOxhlYW.esm.js.map → network-listeners-O5LKv8Yy.esm.js.map} +1 -1
  41. package/dist/chunks/{cart-contents-iOS70Cw8.esm.d.ts → openapi-spec-scRfHArN.esm.d.ts} +51 -23
  42. package/dist/chunks/{order-page-R2OPVBti.esm.js → order-page-2DakMDcU.esm.js} +2 -2
  43. package/dist/chunks/{order-page-R2OPVBti.esm.js.map → order-page-2DakMDcU.esm.js.map} +1 -1
  44. package/dist/chunks/{order-page-gj5qxIFJ.esm.d.ts → order-page-40SzBc--.esm.d.ts} +3 -2
  45. package/dist/chunks/{order-page-zS1d11nZ.esm.js → order-page-_fm5M_jh.esm.js} +2 -2
  46. package/dist/chunks/{order-page-zS1d11nZ.esm.js.map → order-page-_fm5M_jh.esm.js.map} +1 -1
  47. package/dist/chunks/{remote-session-mmQFfNd6.esm.js → remote-session-V4YG-mcS.esm.js} +2 -2
  48. package/dist/chunks/{remote-session-mmQFfNd6.esm.js.map → remote-session-V4YG-mcS.esm.js.map} +1 -1
  49. package/dist/chunks/routes-FWCAWzPK.esm.js +2 -0
  50. package/dist/chunks/routes-FWCAWzPK.esm.js.map +1 -0
  51. package/dist/chunks/types-7kSi85Gv.esm.d.ts +10 -0
  52. package/dist/chunks/{update-cart-SgZzL7m7.esm.d.ts → update-cart-3nc7XKMm.esm.d.ts} +1 -1
  53. package/dist/chunks/update-cart-UStRzSUy.esm.js +2 -0
  54. package/dist/chunks/update-cart-UStRzSUy.esm.js.map +1 -0
  55. package/dist/components/community-impact.d.ts +1 -1
  56. package/dist/components/community-impact.esm.js +1 -1
  57. package/dist/components/community-impact.esm.js.map +1 -1
  58. package/dist/components/community-impact.js +1 -1
  59. package/dist/components/community-impact.js.map +1 -1
  60. package/dist/components/cumulative-impact.d.ts +1 -1
  61. package/dist/components/cumulative-impact.esm.js +1 -1
  62. package/dist/components/cumulative-impact.esm.js.map +1 -1
  63. package/dist/components/cumulative-impact.js +1 -1
  64. package/dist/components/cumulative-impact.js.map +1 -1
  65. package/dist/components/impact-overview.d.ts +1 -1
  66. package/dist/components/impact-overview.esm.js +2 -2
  67. package/dist/components/impact-overview.esm.js.map +1 -1
  68. package/dist/components/impact-overview.js +2 -2
  69. package/dist/components/impact-overview.js.map +1 -1
  70. package/dist/components/index.d.ts +3 -2
  71. package/dist/components/index.esm.js +1 -1
  72. package/dist/components/index.js +1 -1
  73. package/dist/components/post-purchase.d.ts +5 -3
  74. package/dist/components/post-purchase.esm.js +3 -3
  75. package/dist/components/post-purchase.esm.js.map +1 -1
  76. package/dist/components/post-purchase.js +3 -3
  77. package/dist/components/post-purchase.js.map +1 -1
  78. package/dist/components/redeem-transaction.d.ts +4 -3
  79. package/dist/components/redeem-transaction.esm.js +1 -1
  80. package/dist/components/redeem-transaction.esm.js.map +1 -1
  81. package/dist/components/redeem-transaction.js +1 -1
  82. package/dist/components/redeem-transaction.js.map +1 -1
  83. package/dist/components/select-nonprofit.d.ts +4 -3
  84. package/dist/components/select-nonprofit.esm.js +1 -1
  85. package/dist/components/select-nonprofit.esm.js.map +1 -1
  86. package/dist/components/select-nonprofit.js +1 -1
  87. package/dist/components/select-nonprofit.js.map +1 -1
  88. package/dist/components/shopify.d.ts +6 -5
  89. package/dist/components/shopify.esm.js +1 -1
  90. package/dist/components/shopify.esm.js.map +1 -1
  91. package/dist/components/shopify.js +1 -1
  92. package/dist/components/shopify.js.map +1 -1
  93. package/dist/index.d.ts +12 -9
  94. package/dist/index.esm.js +1 -1
  95. package/dist/index.js +1 -1
  96. package/dist/integrations/beam.d.ts +90 -0
  97. package/dist/integrations/beam.esm.js +2 -0
  98. package/dist/integrations/beam.esm.js.map +1 -0
  99. package/dist/integrations/beam.js +2 -0
  100. package/dist/integrations/beam.js.map +1 -0
  101. package/dist/integrations/cart.d.ts +3 -2
  102. package/dist/integrations/cart.esm.js +1 -1
  103. package/dist/integrations/cart.js +1 -1
  104. package/dist/integrations/index.d.ts +11 -8
  105. package/dist/integrations/index.esm.js +1 -1
  106. package/dist/integrations/index.js +1 -1
  107. package/dist/integrations/logs.d.ts +2 -0
  108. package/dist/integrations/logs.esm.js +2 -0
  109. package/dist/integrations/logs.esm.js.map +1 -0
  110. package/dist/integrations/logs.js +2 -0
  111. package/dist/integrations/logs.js.map +1 -0
  112. package/dist/integrations/session.esm.js +1 -1
  113. package/dist/integrations/session.js +1 -1
  114. package/dist/integrations/shopify.d.ts +5 -4
  115. package/dist/integrations/shopify.esm.js +1 -1
  116. package/dist/integrations/shopify.js +1 -1
  117. package/dist/integrations/statsig.d.ts +53 -0
  118. package/dist/integrations/statsig.esm.js +12 -0
  119. package/dist/integrations/statsig.esm.js.map +1 -0
  120. package/dist/integrations/statsig.js +12 -0
  121. package/dist/integrations/statsig.js.map +1 -0
  122. package/dist/integrations/utils.d.ts +6 -3
  123. package/dist/integrations/utils.esm.js +1 -1
  124. package/dist/integrations/utils.js +1 -1
  125. package/dist/react/community-impact.d.ts +1 -1
  126. package/dist/react/community-impact.esm.js +1 -1
  127. package/dist/react/community-impact.esm.js.map +1 -1
  128. package/dist/react/community-impact.js +1 -1
  129. package/dist/react/community-impact.js.map +1 -1
  130. package/dist/react/cumulative-impact.d.ts +1 -1
  131. package/dist/react/cumulative-impact.esm.js +1 -1
  132. package/dist/react/cumulative-impact.esm.js.map +1 -1
  133. package/dist/react/cumulative-impact.js +1 -1
  134. package/dist/react/cumulative-impact.js.map +1 -1
  135. package/dist/react/impact-overview.d.ts +1 -1
  136. package/dist/react/impact-overview.esm.js +1 -1
  137. package/dist/react/impact-overview.esm.js.map +1 -1
  138. package/dist/react/impact-overview.js +1 -1
  139. package/dist/react/impact-overview.js.map +1 -1
  140. package/dist/react/index.d.ts +4 -3
  141. package/dist/react/index.esm.js +1 -1
  142. package/dist/react/index.js +1 -1
  143. package/dist/react/post-purchase.d.ts +3 -2
  144. package/dist/react/post-purchase.esm.js +1 -1
  145. package/dist/react/post-purchase.esm.js.map +1 -1
  146. package/dist/react/post-purchase.js +1 -1
  147. package/dist/react/post-purchase.js.map +1 -1
  148. package/dist/react/redeem-transaction.d.ts +4 -3
  149. package/dist/react/redeem-transaction.esm.js +1 -1
  150. package/dist/react/redeem-transaction.esm.js.map +1 -1
  151. package/dist/react/redeem-transaction.js +1 -1
  152. package/dist/react/redeem-transaction.js.map +1 -1
  153. package/dist/react/select-nonprofit.d.ts +4 -3
  154. package/dist/react/select-nonprofit.esm.js +1 -1
  155. package/dist/react/select-nonprofit.esm.js.map +1 -1
  156. package/dist/react/select-nonprofit.js +1 -1
  157. package/dist/react/select-nonprofit.js.map +1 -1
  158. package/package.json +2 -2
  159. package/dist/chunks/_share-dialog-dependencies--e9Yfdxt.esm.js +0 -2
  160. package/dist/chunks/_share-dialog-dependencies--e9Yfdxt.esm.js.map +0 -1
  161. package/dist/chunks/_share-dialog-dependencies-UDSD9RFy.esm.js +0 -2
  162. package/dist/chunks/_share-dialog-dependencies-UDSD9RFy.esm.js.map +0 -1
  163. package/dist/chunks/beam-errors-l02WBee5.esm.js +0 -2
  164. package/dist/chunks/events-6sWBONuH.esm.d.ts +0 -43
  165. package/dist/chunks/events-rRSQYdP1.esm.js +0 -2
  166. package/dist/chunks/events-rRSQYdP1.esm.js.map +0 -1
  167. package/dist/chunks/index--XzN0d8d.esm.js +0 -2
  168. package/dist/chunks/index--XzN0d8d.esm.js.map +0 -1
  169. package/dist/chunks/index-FNXmLkmP.esm.js +0 -2
  170. package/dist/chunks/index-FNXmLkmP.esm.js.map +0 -1
  171. package/dist/chunks/index-FmuWTWCO.esm.js +0 -2
  172. package/dist/chunks/index-FmuWTWCO.esm.js.map +0 -1
  173. package/dist/chunks/index-MAzMDqhV.esm.js +0 -2
  174. package/dist/chunks/index-MAzMDqhV.esm.js.map +0 -1
  175. package/dist/chunks/index-NYK2Edpr.esm.js +0 -2
  176. package/dist/chunks/index-NYK2Edpr.esm.js.map +0 -1
  177. package/dist/chunks/index-qKG37btQ.esm.js +0 -2
  178. package/dist/chunks/index-qKG37btQ.esm.js.map +0 -1
  179. package/dist/chunks/index-wuUhCB0N.esm.d.ts +0 -14
  180. package/dist/chunks/logger-ad87ovol.esm.js +0 -2
  181. package/dist/chunks/logger-ad87ovol.esm.js.map +0 -1
  182. package/dist/chunks/routes-g2iqYrq1.esm.js +0 -2
  183. package/dist/chunks/routes-g2iqYrq1.esm.js.map +0 -1
  184. package/dist/chunks/types-4zLXwf8o.esm.d.ts +0 -4
  185. package/dist/chunks/update-cart--iw762bF.esm.js +0 -2
  186. package/dist/chunks/update-cart--iw762bF.esm.js.map +0 -1
@@ -3,7 +3,7 @@ import { BeamCumulativeImpact as BeamCumulativeImpact$1 } from '../components/cu
3
3
  import 'lit';
4
4
  import 'lit-html';
5
5
  import 'lodash';
6
- import '../chunks/types-4zLXwf8o.esm.js';
6
+ import '../chunks/types-7kSi85Gv.esm.js';
7
7
  import '../chunks/types-aju0qrRe.esm.js';
8
8
 
9
9
  declare const BeamCumulativeImpact: _lit_react.ReactWebComponent<BeamCumulativeImpact$1, {}>;
@@ -1,2 +1,2 @@
1
- import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
2
2
  //# sourceMappingURL=cumulative-impact.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cumulative-impact.esm.js","sources":["../../src/components/cumulative-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamCumulativeImpact as _BeamCumulativeImpact } from \"./index\";\n\nexport const BeamCumulativeImpact = createComponent({\n tagName: _BeamCumulativeImpact.tagName,\n elementClass: _BeamCumulativeImpact,\n react: React,\n events: {},\n});\n\nexport default BeamCumulativeImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamCumulativeImpact","createComponent","_BeamCumulativeImpact","React"],"mappings":"gaAIO,MAAMA,EAAuBC,EAAgB,CAClD,QAASC,EAAsB,QAC/B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"cumulative-impact.esm.js","sources":["../../src/components/cumulative-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamCumulativeImpact as _BeamCumulativeImpact } from \"./index\";\n\nexport const BeamCumulativeImpact = createComponent({\n tagName: _BeamCumulativeImpact.tagName,\n elementClass: _BeamCumulativeImpact,\n react: React,\n events: {},\n});\n\nexport default BeamCumulativeImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamCumulativeImpact","createComponent","_BeamCumulativeImpact","React"],"mappings":"uXAIO,MAAMA,EAAuBC,EAAgB,CAClD,QAASC,EAAsB,QAC/B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
2
2
  //# sourceMappingURL=cumulative-impact.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cumulative-impact.js","sources":["../../src/components/cumulative-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamCumulativeImpact as _BeamCumulativeImpact } from \"./index\";\n\nexport const BeamCumulativeImpact = createComponent({\n tagName: _BeamCumulativeImpact.tagName,\n elementClass: _BeamCumulativeImpact,\n react: React,\n events: {},\n});\n\nexport default BeamCumulativeImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamCumulativeImpact","createComponent","_BeamCumulativeImpact","React"],"mappings":"4ZAIO,MAAMA,EAAuBC,EAAgB,CAClD,QAASC,EAAsB,QAC/B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"cumulative-impact.js","sources":["../../src/components/cumulative-impact/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamCumulativeImpact as _BeamCumulativeImpact } from \"./index\";\n\nexport const BeamCumulativeImpact = createComponent({\n tagName: _BeamCumulativeImpact.tagName,\n elementClass: _BeamCumulativeImpact,\n react: React,\n events: {},\n});\n\nexport default BeamCumulativeImpact; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamCumulativeImpact","createComponent","_BeamCumulativeImpact","React"],"mappings":"mXAIO,MAAMA,EAAuBC,EAAgB,CAClD,QAASC,EAAsB,QAC/B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -5,7 +5,7 @@ import 'lit-html';
5
5
  import 'lodash';
6
6
  import '../chunks/types-aju0qrRe.esm.js';
7
7
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
8
- import '../chunks/types-4zLXwf8o.esm.js';
8
+ import '../chunks/types-7kSi85Gv.esm.js';
9
9
  import '../components/beam-partner-logos.js';
10
10
 
11
11
  declare const BeamImpactOverview: _lit_react.ReactWebComponent<BeamImpactOverview$1, {}>;
@@ -1,2 +1,2 @@
1
- import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
2
2
  //# sourceMappingURL=impact-overview.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"impact-overview.esm.js","sources":["../../src/components/impact-overview/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamImpactOverview as _BeamImpactOverview } from \"./index\";\n\nexport const BeamImpactOverview = createComponent({\n tagName: _BeamImpactOverview.tagName,\n elementClass: _BeamImpactOverview,\n react: React,\n events: {},\n});\n\nexport default BeamImpactOverview; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamImpactOverview","createComponent","_BeamImpactOverview","React"],"mappings":"ilBAIO,MAAMA,EAAqBC,EAAgB,CAChD,QAASC,EAAoB,QAC7B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"impact-overview.esm.js","sources":["../../src/components/impact-overview/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamImpactOverview as _BeamImpactOverview } from \"./index\";\n\nexport const BeamImpactOverview = createComponent({\n tagName: _BeamImpactOverview.tagName,\n elementClass: _BeamImpactOverview,\n react: React,\n events: {},\n});\n\nexport default BeamImpactOverview; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamImpactOverview","createComponent","_BeamImpactOverview","React"],"mappings":"wiBAIO,MAAMA,EAAqBC,EAAgB,CAChD,QAASC,EAAoB,QAC7B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
2
2
  //# sourceMappingURL=impact-overview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"impact-overview.js","sources":["../../src/components/impact-overview/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamImpactOverview as _BeamImpactOverview } from \"./index\";\n\nexport const BeamImpactOverview = createComponent({\n tagName: _BeamImpactOverview.tagName,\n elementClass: _BeamImpactOverview,\n react: React,\n events: {},\n});\n\nexport default BeamImpactOverview; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamImpactOverview","createComponent","_BeamImpactOverview","React"],"mappings":"ykBAIO,MAAMA,EAAqBC,EAAgB,CAChD,QAASC,EAAoB,QAC7B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"impact-overview.js","sources":["../../src/components/impact-overview/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamImpactOverview as _BeamImpactOverview } from \"./index\";\n\nexport const BeamImpactOverview = createComponent({\n tagName: _BeamImpactOverview.tagName,\n elementClass: _BeamImpactOverview,\n react: React,\n events: {},\n});\n\nexport default BeamImpactOverview; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamImpactOverview","createComponent","_BeamImpactOverview","React"],"mappings":"giBAIO,MAAMA,EAAqBC,EAAgB,CAChD,QAASC,EAAoB,QAC7B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -11,12 +11,13 @@ import 'lit-html';
11
11
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
12
12
  import '../components/beam-partner-logos.js';
13
13
  import '../chunks/types-aju0qrRe.esm.js';
14
- import '../chunks/types-4zLXwf8o.esm.js';
14
+ import '../chunks/types-7kSi85Gv.esm.js';
15
15
  import '../components/cumulative-impact.js';
16
16
  import 'lodash';
17
17
  import '../components/impact-overview.js';
18
- import '../chunks/events-6sWBONuH.esm.js';
19
- import '../chunks/cart-contents-iOS70Cw8.esm.js';
18
+ import '../chunks/events-60jQoHQi.esm.js';
19
+ import '../chunks/cart-contents-P2GzTrNn.esm.js';
20
+ import '../chunks/openapi-spec-scRfHArN.esm.js';
20
21
  import '../components/select-nonprofit.js';
21
22
  import '../components/redeem-transaction.js';
22
23
  import '../components/post-purchase.js';
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as O}from"./community-impact.esm.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.esm.js";import{BeamImpactOverview as b}from"./impact-overview.esm.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.esm.js";import{BeamPostPurchase as A}from"./post-purchase.esm.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as N}from"./community-impact.esm.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.esm.js";import{BeamImpactOverview as T}from"./impact-overview.esm.js";import{BeamSelectNonprofit as g}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as k}from"./redeem-transaction.esm.js";import{BeamPostPurchase as z}from"./post-purchase.esm.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-wNy5BoJV.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";export{N as BeamCommunityImpact,R as BeamCumulativeImpact,T as BeamImpactOverview,z as BeamPostPurchase,k as BeamRedeemTransaction,g as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as O}from"./community-impact.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.js";import{BeamImpactOverview as b}from"./impact-overview.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.js";import{BeamPostPurchase as A}from"./post-purchase.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as N}from"./community-impact.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.js";import{BeamImpactOverview as T}from"./impact-overview.js";import{BeamSelectNonprofit as g}from"./select-nonprofit.js";import{BeamRedeemTransaction as k}from"./redeem-transaction.js";import{BeamPostPurchase as z}from"./post-purchase.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-wNy5BoJV.esm.js";import"../components/select-nonprofit.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";export{N as BeamCommunityImpact,R as BeamCumulativeImpact,T as BeamImpactOverview,z as BeamPostPurchase,k as BeamRedeemTransaction,g as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.js.map
@@ -7,8 +7,9 @@ import '../components/redeem-transaction.js';
7
7
  import 'lodash';
8
8
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
9
9
  import '../components/beam-partner-logos.js';
10
- import '../chunks/types-4zLXwf8o.esm.js';
11
- import '../chunks/cart-contents-iOS70Cw8.esm.js';
10
+ import '../chunks/types-7kSi85Gv.esm.js';
11
+ import '../chunks/cart-contents-P2GzTrNn.esm.js';
12
+ import '../chunks/openapi-spec-scRfHArN.esm.js';
12
13
  import '../components/impact-overview.js';
13
14
 
14
15
  declare const BeamPostPurchase: _lit_react.ReactWebComponent<BeamPostPurchase$1, {}>;
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-wNy5BoJV.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
2
2
  //# sourceMappingURL=post-purchase.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-purchase.esm.js","sources":["../../src/components/post-purchase/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamPostPurchase as _BeamPostPurchase } from \"./index\";\n\nexport const BeamPostPurchase = createComponent({\n tagName: _BeamPostPurchase.tagName,\n elementClass: _BeamPostPurchase,\n react: React,\n events: {},\n});\n\nexport default BeamPostPurchase; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamPostPurchase","createComponent","_BeamPostPurchase","React"],"mappings":"64BAIO,MAAMA,EAAmBC,EAAgB,CAC9C,QAASC,EAAkB,QAC3B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"post-purchase.esm.js","sources":["../../src/components/post-purchase/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamPostPurchase as _BeamPostPurchase } from \"./index\";\n\nexport const BeamPostPurchase = createComponent({\n tagName: _BeamPostPurchase.tagName,\n elementClass: _BeamPostPurchase,\n react: React,\n events: {},\n});\n\nexport default BeamPostPurchase; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamPostPurchase","createComponent","_BeamPostPurchase","React"],"mappings":"o2BAIO,MAAMA,EAAmBC,EAAgB,CAC9C,QAASC,EAAkB,QAC3B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-wNy5BoJV.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
2
2
  //# sourceMappingURL=post-purchase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-purchase.js","sources":["../../src/components/post-purchase/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamPostPurchase as _BeamPostPurchase } from \"./index\";\n\nexport const BeamPostPurchase = createComponent({\n tagName: _BeamPostPurchase.tagName,\n elementClass: _BeamPostPurchase,\n react: React,\n events: {},\n});\n\nexport default BeamPostPurchase; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamPostPurchase","createComponent","_BeamPostPurchase","React"],"mappings":"63BAIO,MAAMA,EAAmBC,EAAgB,CAC9C,QAASC,EAAkB,QAC3B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
1
+ {"version":3,"file":"post-purchase.js","sources":["../../src/components/post-purchase/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamPostPurchase as _BeamPostPurchase } from \"./index\";\n\nexport const BeamPostPurchase = createComponent({\n tagName: _BeamPostPurchase.tagName,\n elementClass: _BeamPostPurchase,\n react: React,\n events: {},\n});\n\nexport default BeamPostPurchase; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamPostPurchase","createComponent","_BeamPostPurchase","React"],"mappings":"o1BAIO,MAAMA,EAAmBC,EAAgB,CAC9C,QAASC,EAAkB,QAC3B,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
@@ -1,15 +1,16 @@
1
1
  import * as _lit_react from '@lit/react';
2
2
  import { EventName } from '@lit/react';
3
- import { B as BeamNonprofitSelectEvent } from '../chunks/events-6sWBONuH.esm.js';
3
+ import { B as BeamNonprofitSelectEvent } from '../chunks/events-60jQoHQi.esm.js';
4
4
  import { BeamRedeemTransaction as BeamRedeemTransaction$1 } from '../components/redeem-transaction.js';
5
- import '../chunks/cart-contents-iOS70Cw8.esm.js';
5
+ import '../chunks/cart-contents-P2GzTrNn.esm.js';
6
+ import '../chunks/openapi-spec-scRfHArN.esm.js';
7
+ import '../chunks/types-7kSi85Gv.esm.js';
6
8
  import 'lit-html';
7
9
  import 'lit';
8
10
  import 'lodash';
9
11
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
10
12
  import '../components/beam-partner-logos.js';
11
13
  import '../chunks/types-aju0qrRe.esm.js';
12
- import '../chunks/types-4zLXwf8o.esm.js';
13
14
 
14
15
  declare const BeamRedeemTransaction: _lit_react.ReactWebComponent<BeamRedeemTransaction$1, {
15
16
  onNonprofitSelect: EventName<BeamNonprofitSelectEvent>;
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{b as r}from"../chunks/events-wNy5BoJV.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
2
2
  //# sourceMappingURL=redeem-transaction.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redeem-transaction.esm.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"+lBAKa,MAAAA,EAAwBC,EAAgB,CACnD,QAASC,EAAuB,QAChC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
1
+ {"version":3,"file":"redeem-transaction.esm.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"sjBAKa,MAAAA,EAAwBC,EAAgB,CACnD,QAASC,EAAuB,QAChC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{b as r}from"../chunks/events-wNy5BoJV.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
2
2
  //# sourceMappingURL=redeem-transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redeem-transaction.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"ulBAKa,MAAAA,EAAwBC,EAAgB,CACnD,QAASC,EAAuB,QAChC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
1
+ {"version":3,"file":"redeem-transaction.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"8iBAKa,MAAAA,EAAwBC,EAAgB,CACnD,QAASC,EAAuB,QAChC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import * as _lit_react from '@lit/react';
2
2
  import { EventName } from '@lit/react';
3
- import { B as BeamNonprofitSelectEvent } from '../chunks/events-6sWBONuH.esm.js';
3
+ import { B as BeamNonprofitSelectEvent } from '../chunks/events-60jQoHQi.esm.js';
4
4
  import { BeamSelectNonprofit as BeamSelectNonprofit$1 } from '../components/select-nonprofit.js';
5
- import '../chunks/cart-contents-iOS70Cw8.esm.js';
5
+ import '../chunks/cart-contents-P2GzTrNn.esm.js';
6
+ import '../chunks/openapi-spec-scRfHArN.esm.js';
7
+ import '../chunks/types-7kSi85Gv.esm.js';
6
8
  import 'lit-html';
7
9
  import 'lit';
8
10
  import '../chunks/progress-bar-0VS_AmEf.esm.js';
9
- import '../chunks/types-4zLXwf8o.esm.js';
10
11
  import '../chunks/types-aju0qrRe.esm.js';
11
12
 
12
13
  declare const BeamSelectNonprofit: _lit_react.ReactWebComponent<BeamSelectNonprofit$1, {
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.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-h1W25hjN.esm.js";import{b as m}from"../chunks/events-wNy5BoJV.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.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 +1 @@
1
- {"version":3,"file":"select-nonprofit.esm.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"ylBAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
1
+ {"version":3,"file":"select-nonprofit.esm.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"gjBAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/localize-nH-zlK_j.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-g2iqYrq1.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.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-h1W25hjN.esm.js";import{b as m}from"../chunks/events-wNy5BoJV.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/localize-906erPHj.esm.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/routes-FWCAWzPK.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-GYvYzZ_j.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.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
@@ -1 +1 @@
1
- {"version":3,"file":"select-nonprofit.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"qlBAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
1
+ {"version":3,"file":"select-nonprofit.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../shared/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"4iBAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beamimpact/web-sdk",
3
3
  "private": false,
4
- "version": "1.30.1",
4
+ "version": "1.31.0",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "engines": {
@@ -95,6 +95,6 @@
95
95
  "rollup-plugin-esbuild": "6.1.0",
96
96
  "typescript": "4.9.5",
97
97
  "vite": "4.1.5",
98
- "wait-on": "7.0.1"
98
+ "wait-on": "7.2.0"
99
99
  }
100
100
  }
@@ -1,2 +0,0 @@
1
- import"./vendor-IGhQoYCM.esm.js";import"../components/impact-overview.esm.js";import"./lit-h1W25hjN.esm.js";import"./lodash-ZxBiuGue.esm.js";import"./routes-g2iqYrq1.esm.js";import"./beam-errors-l02WBee5.esm.js";import"./logger-ad87ovol.esm.js";import"./progress-bar-w3yfrrxD.esm.js";import"./localize-nH-zlK_j.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"./responsive-Rehmv-eo.esm.js";
2
- //# sourceMappingURL=_share-dialog-dependencies--e9Yfdxt.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies--e9Yfdxt.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"./vendor-IGhQoYCM.esm.js";import"../components/impact-overview.js";import"./lit-h1W25hjN.esm.js";import"./lodash-ZxBiuGue.esm.js";import"./routes-g2iqYrq1.esm.js";import"./beam-errors-l02WBee5.esm.js";import"./logger-ad87ovol.esm.js";import"./progress-bar-w3yfrrxD.esm.js";import"./localize-nH-zlK_j.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"./responsive-Rehmv-eo.esm.js";
2
- //# sourceMappingURL=_share-dialog-dependencies-UDSD9RFy.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies-UDSD9RFy.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- class e extends Error{constructor(r,{cause:s,name:a="BeamError"}={}){super(r,{cause:s}),this.name=a,this.supportUrl="https://beamimpact.com"}}class t extends e{constructor(r,s,a){super(a,{name:"BeamNetworkError"}),this.response=r,this.body=s}}class n extends e{constructor(r=[],s){super(s,{name:"BeamMissingConfig"}),this.missingConfigKeyNames=r}}class c extends e{constructor(r){super(r,{name:"BeamLocalStorageError"})}}var i=Object.freeze({__proto__:null,BeamError:e,LocalStorageError:c,MissingConfig:n,NetworkError:t});export{e as B,c as L,n as M,t as N,i as b};
2
- //# sourceMappingURL=beam-errors-l02WBee5.esm.js.map
@@ -1,43 +0,0 @@
1
- import { T as TCartApi } from './cart-contents-iOS70Cw8.esm.js';
2
-
3
- type NetworkEventDetail = {
4
- url: string;
5
- method: string;
6
- type: "fetch";
7
- response: Response;
8
- } | {
9
- url: string;
10
- method: string;
11
- type: "xhr";
12
- xhr: XMLHttpRequest;
13
- };
14
- declare class BeamNetworkCallEvent extends CustomEvent<NetworkEventDetail> {
15
- static eventName: "beamnetworkcall";
16
- constructor(detail: NetworkEventDetail);
17
- }
18
- type NonprofitSelectDetail = {
19
- selectionId?: string;
20
- selectedNonprofitId?: number | null;
21
- nonprofitName?: string | null;
22
- };
23
- declare class BeamNonprofitSelectEvent extends CustomEvent<NonprofitSelectDetail> {
24
- static eventName: "beamnonprofitselect";
25
- constructor(detail: NonprofitSelectDetail);
26
- }
27
- type CartChangeDetail = TCartApi;
28
- declare class BeamCartChangeEvent extends CustomEvent<CartChangeDetail> {
29
- static eventName: "beamcartchange";
30
- constructor(detail: CartChangeDetail);
31
- }
32
-
33
- type events_BeamCartChangeEvent = BeamCartChangeEvent;
34
- declare const events_BeamCartChangeEvent: typeof BeamCartChangeEvent;
35
- type events_BeamNetworkCallEvent = BeamNetworkCallEvent;
36
- declare const events_BeamNetworkCallEvent: typeof BeamNetworkCallEvent;
37
- type events_BeamNonprofitSelectEvent = BeamNonprofitSelectEvent;
38
- declare const events_BeamNonprofitSelectEvent: typeof BeamNonprofitSelectEvent;
39
- declare namespace events {
40
- export { events_BeamCartChangeEvent as BeamCartChangeEvent, events_BeamNetworkCallEvent as BeamNetworkCallEvent, events_BeamNonprofitSelectEvent as BeamNonprofitSelectEvent };
41
- }
42
-
43
- export { BeamNonprofitSelectEvent as B, events as e };
@@ -1,2 +0,0 @@
1
- const t=class l extends CustomEvent{constructor(e){super(l.eventName,{detail:e,bubbles:!0,composed:!0})}};t.eventName="beamnetworkcall";let a=t;const s=class c extends CustomEvent{constructor(e){super(c.eventName,{detail:e,bubbles:!0,composed:!0})}};s.eventName="beamnonprofitselect";let n=s;const o=class m extends CustomEvent{constructor(e){super(m.eventName,{detail:e,bubbles:!0,composed:!0})}};o.eventName="beamcartchange";let r=o;var v=Object.freeze({__proto__:null,BeamCartChangeEvent:r,BeamNetworkCallEvent:a,BeamNonprofitSelectEvent:n});export{r as B,n as a,a as b,v as e};
2
- //# sourceMappingURL=events-rRSQYdP1.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events-rRSQYdP1.esm.js","sources":["../../src/shared/events.ts"],"sourcesContent":["import { TCartApi } from \"./cart-contents\";\n\ntype NetworkEventDetail =\n | { url: string; method: string; type: \"fetch\"; response: Response }\n | { url: string; method: string; type: \"xhr\"; xhr: XMLHttpRequest };\nexport class BeamNetworkCallEvent extends CustomEvent<NetworkEventDetail> {\n static eventName = \"beamnetworkcall\" as const;\n constructor(detail: NetworkEventDetail) {\n super(BeamNetworkCallEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\ntype NonprofitSelectDetail = {\n selectionId?: string;\n selectedNonprofitId?: number | null;\n nonprofitName?: string | null;\n};\nexport class BeamNonprofitSelectEvent extends CustomEvent<NonprofitSelectDetail> {\n static eventName = \"beamnonprofitselect\" as const;\n constructor(detail: NonprofitSelectDetail) {\n super(BeamNonprofitSelectEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\ntype CartChangeDetail = TCartApi;\nexport class BeamCartChangeEvent extends CustomEvent<CartChangeDetail> {\n static eventName = \"beamcartchange\" as const;\n constructor(detail: CartChangeDetail) {\n super(BeamCartChangeEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n"],"names":["_BeamNetworkCallEvent","detail","BeamNetworkCallEvent","_BeamNonprofitSelectEvent","BeamNonprofitSelectEvent","_BeamCartChangeEvent","BeamCartChangeEvent"],"mappings":"AAKO,MAAMA,EAAN,MAAMA,UAA6B,WAAgC,CAExE,YAAYC,EAA4B,CACtC,MAAMD,EAAqB,UAAW,CAAE,OAAAC,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACjF,CACF,EALaD,EACJ,UAAY,sBADRE,EAANF,EAYA,MAAMG,EAAN,MAAMA,UAAiC,WAAmC,CAE/E,YAAYF,EAA+B,CACzC,MAAME,EAAyB,UAAW,CAAE,OAAAF,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACrF,CACF,EALaE,EACJ,UAAY,sBADd,IAAMC,EAAND,EAQA,MAAME,EAAN,MAAMA,UAA4B,WAA8B,CAErE,YAAYJ,EAA0B,CACpC,MAAMI,EAAoB,UAAW,CAAE,OAAAJ,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAChF,CACF,EALaI,EACJ,UAAY,qBADRC,EAAND"}
@@ -1,2 +0,0 @@
1
- import{b as e}from"./beam-errors-l02WBee5.esm.js";import{e as o}from"./events-rRSQYdP1.esm.js";import{l as r}from"./logger-ad87ovol.esm.js";import{f as t,i as s,w as a,x as i}from"./network-listeners-CEOxhlYW.esm.js";import{c as m}from"./local-storage-Rrnk_Dg-.esm.js";import{d as l,g,a as n,s as p}from"./cookies-BnIoXWd0.esm.js";import{g as f,s as c}from"./remote-session-mmQFfNd6.esm.js";var k=Object.freeze({__proto__:null,createScopedLocalStorage:m,deleteCookieValue:l,errors:e,events:o,fetchProxy:t,getCookieMap:g,getCookieValue:n,getRemoteSession:f,initNetworkListeners:s,logger:r,saveRemoteSession:c,setCookieValue:p,waitForElement:a,xhrProxy:i});export{k as i};
2
- //# sourceMappingURL=index--XzN0d8d.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index--XzN0d8d.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{i}from"./index--XzN0d8d.esm.js";import{i as o}from"./index-FmuWTWCO.esm.js";import{i as r}from"./index-IXwIgGSV.esm.js";import{i as e}from"./index-qKG37btQ.esm.js";var t=Object.freeze({__proto__:null,Cart:e,Session:r,Shopify:o,Utils:i});export{t as i};
2
- //# sourceMappingURL=index-FNXmLkmP.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-FNXmLkmP.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{h as e,C as r,B as t,s as a,N as o}from"./order-page-zS1d11nZ.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-FmuWTWCO.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-FmuWTWCO.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{i}from"./index--XzN0d8d.esm.js";import{i as o}from"./index-NYK2Edpr.esm.js";import{i as r}from"./index-IXwIgGSV.esm.js";import{i as e}from"./index-qKG37btQ.esm.js";var t=Object.freeze({__proto__:null,Cart:e,Session:r,Shopify:o,Utils:i});export{t as i};
2
- //# sourceMappingURL=index-MAzMDqhV.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-MAzMDqhV.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{h as e,C as r,B as t,s as a,N as o}from"./order-page-R2OPVBti.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-NYK2Edpr.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-NYK2Edpr.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{K as e}from"./update-cart--iw762bF.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
- //# sourceMappingURL=index-qKG37btQ.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-qKG37btQ.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import { i as index$4 } from './index-4o5tH5RA.esm.js';
2
- import { i as index$3 } from './index-h39_A7fk.esm.js';
3
- import { i as index$2 } from './index-EGiUuWe-.esm.js';
4
- import { i as index$1 } from './index-Iupghntz.esm.js';
5
-
6
- /**
7
- * This file is used to provide type definitions
8
- */
9
-
10
- declare namespace index {
11
- export { index$1 as Cart, index$2 as Session, index$3 as Shopify, index$4 as Utils };
12
- }
13
-
14
- export { index as i };
@@ -1,2 +0,0 @@
1
- const o={error:console.error,log:console.log,warn:console.warn,debug:console.debug};export{o as l};
2
- //# sourceMappingURL=logger-ad87ovol.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger-ad87ovol.esm.js","sources":["../../src/shared/logger.ts"],"sourcesContent":["// 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: console.error,\n log: console.log,\n warn: console.warn,\n debug: console.debug,\n};\n"],"names":["logger"],"mappings":"AAEO,MAAMA,EAAS,CACpB,MAAO,QAAQ,MACf,IAAK,QAAQ,IACb,KAAM,QAAQ,KACd,MAAO,QAAQ,KACjB"}
@@ -1,2 +0,0 @@
1
- import{B as w,N as d}from"./beam-errors-l02WBee5.esm.js";import{l as p}from"./logger-ad87ovol.esm.js";var C="1.30.1",E={"@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 v(o,r){const c={method:"GET",...r,headers:{"Content-Type":"application/json",Accept:"application/json","X-Beam-Client":"WebSDK","X-Beam-Client-Version":C,...r?.headers},preflightContinue:!0,mode:r?.mode||"cors",body:r?.body!=null?r.body:void 0};let n;try{n=await fetch(o,c)}catch(e){const t=new w(`Network call failed (${c?.method.toUpperCase()} ${o})`);throw t.cause=e,p.error(t,o),t}let s,i;try{i=await n.text(),i&&(s=JSON.parse(i))}catch(e){let t=e;throw e instanceof SyntaxError&&(t=new d(n,s,`Response invalid. Expected JSON. Received: "${i}"`),t.cause=e),p.error(t),t}if(!n.ok){const e=new d(n,s,"Response was not OK");throw p.error(e),e}return s}const h="https://production-central-backend-ne.beamimpact.com",O={en:"en",fr:"fr",de:"de",es:"es",it:"it",pl:"pl"},a=(o,r,c)=>({[o]:async function({headers:n={},baseUrl:s=h,apiRoot:i="/api/v3",pathParams:e={},queryParams:t={},requestBody:m}){const f=Object.entries(e).reduce((N,[S,b])=>N.replace(`{${S}}`,b),o),u=JSON.parse(JSON.stringify(t)),l=new URLSearchParams(u).toString(),y=s+i+f+(l&&`?${l}`),g={headers:n,method:r,body:JSON.stringify(m)};return v(y,g)}})[o],R=a("/chain/{chainId}/nonprofits","get"),T=a("/impact","get"),U=a("/chain/{chainId}/cumulativeImpact","get"),k=a("/selectNonprofit","post"),A=a("/transaction","post"),B=a("/transaction/{transactionId}","put"),I=a("/cart","post"),J=a("/chain/findEligibleNonprofitsForCart","post");export{h as D,O as S,A as a,T as b,J as c,k as d,B as e,U as f,R as g,E as h,I as p};
2
- //# sourceMappingURL=routes-g2iqYrq1.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes-g2iqYrq1.esm.js","sources":["../../src/api-sdk/fetch-json.ts","../../src/api-sdk/constants.ts","../../src/api-sdk/v3/make-openapi-method.ts","../../src/api-sdk/v3/routes.ts"],"sourcesContent":["/**\n * Wrapper over window.fetch that expects/returns JSON\n */\nimport { BeamError, NetworkError } from \"../shared/beam-errors\";\nimport { logger } from \"../shared/logger\";\nimport { version as pkgVersion } from \"../../package.json\";\n\nexport async function fetchJson<T = unknown>(url: RequestInfo, options?: RequestInit): Promise<T> {\n const fetchOptions = {\n method: \"GET\",\n ...options,\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n \"X-Beam-Client\": \"WebSDK\",\n \"X-Beam-Client-Version\": pkgVersion,\n ...options?.headers,\n },\n preflightContinue: true,\n mode: options?.mode || \"cors\",\n body: options?.body != null ? options.body : undefined,\n };\n\n let response;\n try {\n response = await fetch(url, fetchOptions);\n // fetch can throw a TypeError if the server can't be reached, catch and log below\n } catch (err) {\n const error = new BeamError(`Network call failed (${fetchOptions?.method.toUpperCase()} ${url})`);\n error.cause = err;\n logger.error(error, url);\n throw error;\n }\n let body;\n let text;\n // This can throw a SyntaxError if response payload is malformed JSON\n try {\n text = await response.text();\n if (text) {\n // (response can be empty)\n body = JSON.parse(text);\n }\n } catch (err) {\n let error = err as Error;\n if (err instanceof SyntaxError) {\n error = new NetworkError(response, body, `Response invalid. Expected JSON. Received: \"${text}\"`);\n error.cause = err;\n }\n logger.error(error);\n throw error;\n }\n // Translate 4xx, 5xx status to runtime error\n if (!response.ok) {\n const error = new NetworkError(response, body, \"Response was not OK\");\n logger.error(error);\n throw error;\n }\n\n return body;\n}\n","import { LANGUAGES, TUrl } from \"./types\";\n\nexport const DEFAULT_BASE_URL: TUrl = \"https://production-central-backend-ne.beamimpact.com\";\n\nexport const SUPPORTED_LANGUAGES: Record<string, LANGUAGES> = {\n en: \"en\",\n fr: \"fr\",\n de: \"de\",\n es: \"es\",\n it: \"it\",\n pl: \"pl\",\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { fetchJson } from \"../fetch-json\";\nimport { DEFAULT_BASE_URL } from \"../constants\";\nimport { THttpMethod } from \"../types\";\nimport { paths } from \"./openapi-spec\";\n\nexport const makeOpenApiMethod = <\n TPathName extends keyof paths,\n TMethod extends keyof paths[TPathName],\n TStatusCode extends paths[TPathName][TMethod] extends { responses: any }\n ? keyof paths[TPathName][TMethod][\"responses\"]\n : never\n>(\n pathName: TPathName,\n method: TMethod,\n okHttpStatus: TStatusCode\n) => {\n type TRouteSpec = paths[typeof pathName];\n type TRouteMethod = TRouteSpec[typeof method];\n type TParams = \"parameters\" extends keyof TRouteMethod ? TRouteMethod[\"parameters\"] : never;\n type TPathParams = TParams extends { path: any } ? TParams[\"path\"] : Record<string, never>;\n type TQueryParams = TParams extends { query: any } ? TParams[\"query\"] : Record<string, never>;\n type TRequestBody = TRouteMethod extends { requestBody: { content: { \"application/json\": any } } }\n ? TRouteMethod[\"requestBody\"][\"content\"][\"application/json\"]\n : never;\n type TAllResponses = TRouteMethod extends { responses: any } ? TRouteMethod[\"responses\"] : never;\n type TOkResponse = TAllResponses[typeof okHttpStatus] extends { content: { \"application/json\": any } }\n ? TAllResponses[typeof okHttpStatus][\"content\"][\"application/json\"]\n : never;\n const openApi = {\n [pathName]: async function ({\n headers = {},\n baseUrl = DEFAULT_BASE_URL,\n apiRoot = \"/api/v3\",\n pathParams = {},\n queryParams = {},\n requestBody,\n }: {\n baseUrl?: string;\n apiRoot?: string;\n pathParams?: TPathParams;\n queryParams?: TQueryParams;\n requestBody?: TRequestBody;\n headers?: Record<string, string>;\n }) {\n const pathWithParams: string = Object.entries(pathParams).reduce((newPath: string, [k, v]) => {\n return newPath.replace(`{${k}}`, v as string);\n }, pathName as string);\n const cleanQueryParams = JSON.parse(JSON.stringify(queryParams));\n const search = new URLSearchParams(cleanQueryParams as unknown as Record<string, string>).toString();\n const url = baseUrl + apiRoot + pathWithParams + (search && `?${search}`);\n const options = { headers, method: method as THttpMethod, body: JSON.stringify(requestBody) };\n\n return fetchJson<TOkResponse>(url, options);\n },\n };\n\n // Use object to create function with dynamic name, for better stacktraces\n return openApi[pathName];\n};\n","import { makeOpenApiMethod } from \"./make-openapi-method\";\n\nexport const getChainNonprofits = makeOpenApiMethod(\"/chain/{chainId}/nonprofits\", \"get\", 200);\n\nexport const getImpact = makeOpenApiMethod(\"/impact\", \"get\", 200);\n\nexport const getCumulativeImpact = makeOpenApiMethod(\"/chain/{chainId}/cumulativeImpact\", \"get\", 200);\n\nexport const postSelectNonprofit = makeOpenApiMethod(\"/selectNonprofit\", \"post\", 201);\n\nexport const postTransaction = makeOpenApiMethod(\"/transaction\", \"post\", 201);\n\nexport const putTransaction = makeOpenApiMethod(\"/transaction/{transactionId}\", \"put\", 204);\n\nexport const postCart = makeOpenApiMethod(\"/cart\", \"post\", 200);\n\nexport const postChainEligibleNonprofitsForCart = makeOpenApiMethod(\n \"/chain/findEligibleNonprofitsForCart\",\n \"post\",\n 200\n);\n"],"names":["fetchJson","url","options","fetchOptions","pkgVersion","response","err","error","BeamError","logger","body","text","NetworkError","DEFAULT_BASE_URL","SUPPORTED_LANGUAGES","makeOpenApiMethod","pathName","method","okHttpStatus","headers","baseUrl","apiRoot","pathParams","queryParams","requestBody","pathWithParams","newPath","k","v","cleanQueryParams","search","getChainNonprofits","getImpact","getCumulativeImpact","postSelectNonprofit","postTransaction","putTransaction","postCart","postChainEligibleNonprofitsForCart"],"mappings":"qQAOA,eAAsBA,EAAuBC,EAAkBC,EAAmC,CAChG,MAAMC,EAAe,CACnB,OAAQ,MACR,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,OAAQ,mBACR,gBAAiB,SACjB,wBAAyBE,EACzB,GAAGF,GAAS,OACd,EACA,kBAAmB,GACnB,KAAMA,GAAS,MAAQ,OACvB,KAAMA,GAAS,MAAQ,KAAOA,EAAQ,KAAO,MAC/C,EAEA,IAAIG,EACJ,GAAI,CACFA,EAAW,MAAM,MAAMJ,EAAKE,CAAY,CAE1C,OAASG,EAAK,CACZ,MAAMC,EAAQ,IAAIC,EAAU,wBAAwBL,GAAc,OAAO,YAAa,CAAA,IAAIF,CAAG,GAAG,EAChG,MAAAM,EAAM,MAAQD,EACdG,EAAO,MAAMF,EAAON,CAAG,EACjBM,CACR,CACA,IAAIG,EACAC,EAEJ,GAAI,CACFA,EAAO,MAAMN,EAAS,OAClBM,IAEFD,EAAO,KAAK,MAAMC,CAAI,EAE1B,OAASL,EAAK,CACZ,IAAIC,EAAQD,EACZ,MAAIA,aAAe,cACjBC,EAAQ,IAAIK,EAAaP,EAAUK,EAAM,+CAA+CC,CAAI,GAAG,EAC/FJ,EAAM,MAAQD,GAEhBG,EAAO,MAAMF,CAAK,EACZA,CACR,CAEA,GAAI,CAACF,EAAS,GAAI,CAChB,MAAME,EAAQ,IAAIK,EAAaP,EAAUK,EAAM,qBAAqB,EACpE,MAAAD,EAAO,MAAMF,CAAK,EACZA,CACR,CAEA,OAAOG,CACT,CCzDO,MAAMG,EAAyB,uDAEzBC,EAAiD,CAC5D,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,ECJaC,EAAoB,CAO/BC,EACAC,EACAC,KAcgB,CACd,CAACF,CAAQ,EAAG,eAAgB,CAC1B,QAAAG,EAAU,CAAA,EACV,QAAAC,EAAUP,EACV,QAAAQ,EAAU,UACV,WAAAC,EAAa,CACb,EAAA,YAAAC,EAAc,CAAA,EACd,YAAAC,CACF,EAOG,CACD,MAAMC,EAAyB,OAAO,QAAQH,CAAU,EAAE,OAAO,CAACI,EAAiB,CAACC,EAAGC,CAAC,IAC/EF,EAAQ,QAAQ,IAAIC,CAAC,IAAKC,CAAW,EAC3CZ,CAAkB,EACfa,EAAmB,KAAK,MAAM,KAAK,UAAUN,CAAW,CAAC,EACzDO,EAAS,IAAI,gBAAgBD,CAAqD,EAAE,SACpF5B,EAAAA,EAAMmB,EAAUC,EAAUI,GAAkBK,GAAU,IAAIA,CAAM,IAChE5B,EAAU,CAAE,QAAAiB,EAAS,OAAQF,EAAuB,KAAM,KAAK,UAAUO,CAAW,CAAE,EAE5F,OAAOxB,EAAuBC,EAAKC,CAAO,CAC5C,CACF,GAGec,CAAQ,ECzDZe,EAAqBhB,EAAkB,8BAA+B,KAAU,EAEhFiB,EAAYjB,EAAkB,UAAW,KAAU,EAEnDkB,EAAsBlB,EAAkB,oCAAqC,KAAU,EAEvFmB,EAAsBnB,EAAkB,mBAAoB,MAAW,EAEvEoB,EAAkBpB,EAAkB,eAAgB,MAAW,EAE/DqB,EAAiBrB,EAAkB,+BAAgC,KAAU,EAE7EsB,EAAWtB,EAAkB,QAAS,MAAW,EAEjDuB,EAAqCvB,EAChD,uCACA,MAEF"}
@@ -1,4 +0,0 @@
1
- type TNumericId = number;
2
- type TId = string;
3
-
4
- export type { TNumericId as T, TId as a };
@@ -1,2 +0,0 @@
1
- import{i as b}from"./lodash-ZxBiuGue.esm.js";import{D as g,p as h}from"./routes-g2iqYrq1.esm.js";import{B as w}from"./beam-errors-l02WBee5.esm.js";import{B as p}from"./cart-contents-h60geKWa.esm.js";import{a as E,s as A}from"./cookies-BnIoXWd0.esm.js";import{B as K}from"./events-rRSQYdP1.esm.js";import{c as S}from"./local-storage-Rrnk_Dg-.esm.js";import{g as _}from"./remote-session-mmQFfNd6.esm.js";async function v(e,r){try{const t=S({apiKey:e.apiKey}),I=e.baseUrl??g,a=t.getItemJson("cart"),o=await E(p)??null,l=_(e)??void 0,{cartId:s,subtotal:i,itemCount:m,currencyCode:n,content:{items:c=[]}={},schema:d={source:"generic"}}=r,u={cartId:s,subtotal:i,itemCount:m,currencyCode:n,content:{items:c},schema:d,beamCartId:o};if(b(u,{...a,cartId:a?.cartId})||r.itemCount===0&&(!o||a?.itemCount===0))return;const f=await h({baseUrl:I,headers:{authorization:`Api-Key ${e.apiKey}`},requestBody:{beamCartId:o,storeId:e.storeId,remoteSessionId:l,cartId:s,subtotal:i,itemCount:m,currencyCode:n}}),{beamCartId:C,expiresAt:y}=f;await A({name:p,domain:e.domain,value:C,expires:new Date(y).getTime()}),t.setItemJson("cart",{...u,beamCartId:C});const B={schema:d,content:{items:c}};window.dispatchEvent(new K(B))}catch(t){throw new w("Could not update cart in Beam",{cause:t})}}export{v as K};
2
- //# sourceMappingURL=update-cart--iw762bF.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-cart--iw762bF.esm.js","sources":["../../src/integrations/cart/update-cart.ts"],"sourcesContent":["import isEqual from \"lodash-es/isEqual\";\nimport { DEFAULT_BASE_URL } from \"../../api-sdk/constants\";\nimport { BeamBaseAPIConfig } from \"../../api-sdk/types\";\nimport { postCart } from \"../../api-sdk/v3/routes\";\nimport { BeamError } from \"../../shared/beam-errors\";\nimport { BEAM_CART_COOKIE_NAME, TBeamCartLocalStorage, TCartApi } from \"../../shared/cart-contents\";\nimport { getCookieValue, setCookieValue } from \"../../shared/cookies\";\nimport { BeamCartChangeEvent } from \"../../shared/events\";\nimport { createScopedLocalStorage } from \"../../shared/local-storage\";\nimport { getRemoteSession } from \"../../shared/remote-session\";\n\nexport type BeamCartAPIConfig = BeamBaseAPIConfig & {\n storeId: number;\n domain?: string; // Domain to set cookies on\n};\n\nexport type BeamCartValues = {\n cartId?: string; // External (partner) cart ID\n itemCount?: number;\n subtotal?: number;\n currencyCode?: string;\n} & Partial<TCartApi>;\n\n/**\n * Sends cart information to Beam\n * @side-effects Sets beam_cart cookie, set cart data in localstorage\n * @example\n * const BeamConfig = { apiKey: 'abc-123' }\n * const { beamCartId } = await updateCart(BeamConfig, { beamCartId, itemCount, subtotal, currencyCode })\n * */\nasync function updateCart(config: BeamCartAPIConfig, cartValues: BeamCartValues) {\n try {\n const localStorage = createScopedLocalStorage({ apiKey: config.apiKey });\n const baseUrl = config.baseUrl ?? DEFAULT_BASE_URL;\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n // The Beam cart cookie is used to identify the cart across subdomains\n // Use explicit null if empty because API requires it\n const beamCartId: string | null = (await getCookieValue(BEAM_CART_COOKIE_NAME)) ?? null;\n // Remote session ID (ie, device ID from an A/B testing tool) will be linked to the cart\n const remoteSessionId: string | undefined = getRemoteSession(config) ?? undefined;\n\n const {\n cartId,\n subtotal,\n itemCount,\n currencyCode,\n content: { items = [] } = {},\n schema = { source: \"generic\" },\n } = cartValues;\n\n const cartWithDefaults = {\n cartId,\n subtotal,\n itemCount,\n currencyCode,\n content: { items },\n schema,\n beamCartId,\n };\n\n // Early return conditions. Skip sending cart to Beam if any apply:\n // 1. The cart has not changed\n // 2. Cart is empty, unless the cart was not empty before\n if (\n isEqual(cartWithDefaults, {\n ...cachedCart,\n cartId: cachedCart?.cartId /* make sure optional key is defined even if empty */,\n }) || // cart has not\n // changed, OR\n (cartValues.itemCount === 0 && // nothing in current cart, AND\n (!beamCartId || cachedCart?.itemCount === 0)) // no/expired prev cart or prev cart was empty\n ) {\n return;\n }\n\n const response = await postCart({\n baseUrl,\n headers: {\n authorization: `Api-Key ${config.apiKey}`,\n },\n requestBody: {\n beamCartId, // backwards compat: explicitly sending null here is required to get initial beamCartId\n storeId: config.storeId,\n remoteSessionId,\n cartId,\n subtotal,\n itemCount,\n currencyCode,\n },\n });\n\n // Response will contain a new beamCartId if one was not provided, or old one expired\n const { beamCartId: newBeamCartId, expiresAt } = response;\n\n await setCookieValue({\n name: BEAM_CART_COOKIE_NAME,\n domain: config.domain,\n value: newBeamCartId,\n // If we don't set an expiration, the cookie will be cleared when the tab is closed\n expires: new Date(expiresAt).getTime(),\n });\n\n localStorage.setItemJson(\"cart\", {\n ...cartWithDefaults,\n beamCartId: newBeamCartId,\n });\n\n const eventDetail: TCartApi = {\n schema: schema as any, // TS union type can't figure out what variant applies here\n content: {\n items: items as any,\n },\n };\n window.dispatchEvent(new BeamCartChangeEvent(eventDetail));\n } catch (err) {\n throw new BeamError(\"Could not update cart in Beam\", { cause: err });\n }\n}\n\nexport { updateCart };\n"],"names":["updateCart","config","cartValues","localStorage","createScopedLocalStorage","baseUrl","DEFAULT_BASE_URL","cachedCart","beamCartId","getCookieValue","BEAM_CART_COOKIE_NAME","remoteSessionId","getRemoteSession","cartId","subtotal","itemCount","currencyCode","items","schema","cartWithDefaults","isEqual","response","postCart","newBeamCartId","expiresAt","setCookieValue","eventDetail","BeamCartChangeEvent","err","BeamError"],"mappings":"kZA8BA,eAAeA,EAAWC,EAA2BC,EAA4B,CAC/E,GAAI,CACF,MAAMC,EAAeC,EAAyB,CAAE,OAAQH,EAAO,MAAO,CAAC,EACjEI,EAAUJ,EAAO,SAAWK,EAG5BC,EAA2CJ,EAAa,YAAY,MAAM,EAG1EK,EAA6B,MAAMC,EAAeC,CAAqB,GAAM,KAE7EC,EAAsCC,EAAiBX,CAAM,GAAK,OAElE,CACJ,OAAAY,EACA,SAAAC,EACA,UAAAC,EACA,aAAAC,EACA,QAAS,CAAE,MAAAC,EAAQ,CAAA,CAAG,EAAI,CAAA,EAC1B,OAAAC,EAAS,CAAE,OAAQ,SAAU,CAC/B,EAAIhB,EAEEiB,EAAmB,CACvB,OAAAN,EACA,SAAAC,EACA,UAAAC,EACA,aAAAC,EACA,QAAS,CAAE,MAAAC,CAAM,EACjB,OAAAC,EACA,WAAAV,CACF,EAKA,GACEY,EAAQD,EAAkB,CACxB,GAAGZ,EACH,OAAQA,GAAY,MACtB,CAAC,GAEAL,EAAW,YAAc,IACvB,CAACM,GAAcD,GAAY,YAAc,GAE5C,OAGF,MAAMc,EAAW,MAAMC,EAAS,CAC9B,QAAAjB,EACA,QAAS,CACP,cAAe,WAAWJ,EAAO,MAAM,EACzC,EACA,YAAa,CACX,WAAAO,EACA,QAASP,EAAO,QAChB,gBAAAU,EACA,OAAAE,EACA,SAAAC,EACA,UAAAC,EACA,aAAAC,CACF,CACF,CAAC,EAGK,CAAE,WAAYO,EAAe,UAAAC,CAAU,EAAIH,EAEjD,MAAMI,EAAe,CACnB,KAAMf,EACN,OAAQT,EAAO,OACf,MAAOsB,EAEP,QAAS,IAAI,KAAKC,CAAS,EAAE,QAAQ,CACvC,CAAC,EAEDrB,EAAa,YAAY,OAAQ,CAC/B,GAAGgB,EACH,WAAYI,CACd,CAAC,EAED,MAAMG,EAAwB,CAC5B,OAAQR,EACR,QAAS,CACP,MAAOD,CACT,CACF,EACA,OAAO,cAAc,IAAIU,EAAoBD,CAAW,CAAC,CAC3D,OAASE,EAAK,CACZ,MAAM,IAAIC,EAAU,gCAAiC,CAAE,MAAOD,CAAI,CAAC,CACrE,CACF"}