@beamimpact/web-sdk 1.36.7 → 1.36.8

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 (172) hide show
  1. package/dist/chunks/_share-dialog-dependencies-FglfQ7YP.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-FglfQ7YP.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-YbNiVx56.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-YbNiVx56.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/enforce-config-fo8kIfoY.esm.js +22 -0
  9. package/dist/chunks/{enforce-config-MqLZWolV.esm.js.map → enforce-config-fo8kIfoY.esm.js.map} +1 -1
  10. package/dist/chunks/enforce-config-qna7hEL6.esm.js +22 -0
  11. package/dist/chunks/{enforce-config-n0D_zfMC.esm.js.map → enforce-config-qna7hEL6.esm.js.map} +1 -1
  12. package/dist/chunks/index-1qXot92e.esm.js +2 -0
  13. package/dist/chunks/index-1qXot92e.esm.js.map +1 -0
  14. package/dist/chunks/{index-FAF7tYU6.esm.js → index-9gijHGwh.esm.js} +2 -2
  15. package/dist/chunks/index-9gijHGwh.esm.js.map +1 -0
  16. package/dist/chunks/{index-3ThDVYOT.esm.d.ts → index-EZ_Bg1n7.esm.d.ts} +1 -1
  17. package/dist/chunks/index-EpanGShY.esm.js +2 -0
  18. package/dist/chunks/index-EpanGShY.esm.js.map +1 -0
  19. package/dist/chunks/{index-kuEhVQcF.esm.d.ts → index-GkPHba-I.esm.d.ts} +1 -1
  20. package/dist/chunks/{index-uqEAgdEf.esm.js → index-OnjTwvAw.esm.js} +2 -2
  21. package/dist/chunks/index-OnjTwvAw.esm.js.map +1 -0
  22. package/dist/chunks/{index-rrdYIcOi.esm.js → index-U8Oy2aur.esm.js} +2 -2
  23. package/dist/chunks/index-U8Oy2aur.esm.js.map +1 -0
  24. package/dist/chunks/index-XMD0b6ql.esm.js +2 -0
  25. package/dist/chunks/index-XMD0b6ql.esm.js.map +1 -0
  26. package/dist/chunks/{index-hC71uT32.esm.js → index-fqDBrscF.esm.js} +2 -2
  27. package/dist/chunks/{index-hC71uT32.esm.js.map → index-fqDBrscF.esm.js.map} +1 -1
  28. package/dist/chunks/{index-MAsTKsZm.esm.js → index-gULINFkH.esm.js} +2 -2
  29. package/dist/chunks/{index-MAsTKsZm.esm.js.map → index-gULINFkH.esm.js.map} +1 -1
  30. package/dist/chunks/index-ll8zLjbu.esm.js +2 -0
  31. package/dist/chunks/index-ll8zLjbu.esm.js.map +1 -0
  32. package/dist/chunks/{index-tfP1RBZU.esm.d.ts → index-pDraUd1x.esm.d.ts} +1 -1
  33. package/dist/chunks/index-r9Yb1UY4.esm.js +2 -0
  34. package/dist/chunks/index-r9Yb1UY4.esm.js.map +1 -0
  35. package/dist/chunks/index-t4uX5Dg1.esm.js +2 -0
  36. package/dist/chunks/index-t4uX5Dg1.esm.js.map +1 -0
  37. package/dist/chunks/{index-w9_XpjIg.esm.js → index-wsdeaTHd.esm.js} +2 -2
  38. package/dist/chunks/index-wsdeaTHd.esm.js.map +1 -0
  39. package/dist/chunks/{localize-eZMViIud.esm.js → localize-GCkVUD8S.esm.js} +2 -2
  40. package/dist/chunks/{localize-eZMViIud.esm.js.map → localize-GCkVUD8S.esm.js.map} +1 -1
  41. package/dist/chunks/{localize-0rA0DbzI.esm.js → localize-pzAAkBvG.esm.js} +2 -2
  42. package/dist/chunks/{localize-0rA0DbzI.esm.js.map → localize-pzAAkBvG.esm.js.map} +1 -1
  43. package/dist/chunks/{order-page-PGTQXoSr.esm.js → order-page-JdaAppB7.esm.js} +2 -2
  44. package/dist/chunks/{order-page-PGTQXoSr.esm.js.map → order-page-JdaAppB7.esm.js.map} +1 -1
  45. package/dist/chunks/{order-page-MyFrJe1o.esm.js → order-page-W1jR35W9.esm.js} +2 -2
  46. package/dist/chunks/{order-page-MyFrJe1o.esm.js.map → order-page-W1jR35W9.esm.js.map} +1 -1
  47. package/dist/chunks/routes-CqjzL4oL.esm.js +2 -0
  48. package/dist/chunks/{routes-USQ3n64Y.esm.js.map → routes-CqjzL4oL.esm.js.map} +1 -1
  49. package/dist/chunks/routes-lsOWIDmE.esm.js +2 -0
  50. package/dist/chunks/{routes-wPiw5U5n.esm.js.map → routes-lsOWIDmE.esm.js.map} +1 -1
  51. package/dist/chunks/{update-cart-OkpQAdyP.esm.js → update-cart-T32-282v.esm.js} +2 -2
  52. package/dist/chunks/{update-cart-OkpQAdyP.esm.js.map → update-cart-T32-282v.esm.js.map} +1 -1
  53. package/dist/chunks/{update-cart-8xlajjFj.esm.js → update-cart-yneR8zk1.esm.js} +2 -2
  54. package/dist/chunks/{update-cart-8xlajjFj.esm.js.map → update-cart-yneR8zk1.esm.js.map} +1 -1
  55. package/dist/components/community-impact.esm.js +2 -1
  56. package/dist/components/community-impact.esm.js.map +1 -1
  57. package/dist/components/community-impact.js +2 -1
  58. package/dist/components/community-impact.js.map +1 -1
  59. package/dist/components/cumulative-impact.esm.js +2 -1
  60. package/dist/components/cumulative-impact.esm.js.map +1 -1
  61. package/dist/components/cumulative-impact.js +2 -1
  62. package/dist/components/cumulative-impact.js.map +1 -1
  63. package/dist/components/impact-overview.esm.js +2 -1
  64. package/dist/components/impact-overview.esm.js.map +1 -1
  65. package/dist/components/impact-overview.js +2 -1
  66. package/dist/components/impact-overview.js.map +1 -1
  67. package/dist/components/index.esm.js +1 -1
  68. package/dist/components/index.js +1 -1
  69. package/dist/components/post-purchase.d.ts +1 -1
  70. package/dist/components/post-purchase.esm.js +1 -1
  71. package/dist/components/post-purchase.js +1 -1
  72. package/dist/components/redeem-transaction.d.ts +14 -4
  73. package/dist/components/redeem-transaction.esm.js +12 -11
  74. package/dist/components/redeem-transaction.esm.js.map +1 -1
  75. package/dist/components/redeem-transaction.js +12 -11
  76. package/dist/components/redeem-transaction.js.map +1 -1
  77. package/dist/components/select-nonprofit.d.ts +1 -1
  78. package/dist/components/select-nonprofit.esm.js +2 -1
  79. package/dist/components/select-nonprofit.esm.js.map +1 -1
  80. package/dist/components/select-nonprofit.js +2 -1
  81. package/dist/components/select-nonprofit.js.map +1 -1
  82. package/dist/components/shopify.d.ts +1 -1
  83. package/dist/components/shopify.esm.js +1 -1
  84. package/dist/components/shopify.js +1 -1
  85. package/dist/components/subscription-management.d.ts +1 -1
  86. package/dist/components/subscription-management.esm.js +13 -3
  87. package/dist/components/subscription-management.esm.js.map +1 -1
  88. package/dist/components/subscription-management.js +13 -3
  89. package/dist/components/subscription-management.js.map +1 -1
  90. package/dist/index.d.ts +4 -4
  91. package/dist/index.esm.js +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/integrations/beam.esm.js +1 -1
  94. package/dist/integrations/beam.js +1 -1
  95. package/dist/integrations/cart.esm.js +1 -1
  96. package/dist/integrations/cart.js +1 -1
  97. package/dist/integrations/index.d.ts +2 -2
  98. package/dist/integrations/index.esm.js +1 -1
  99. package/dist/integrations/index.js +1 -1
  100. package/dist/integrations/logs.esm.js +1 -1
  101. package/dist/integrations/logs.js +1 -1
  102. package/dist/integrations/session.esm.js +1 -1
  103. package/dist/integrations/session.js +1 -1
  104. package/dist/integrations/shopify.esm.js +1 -1
  105. package/dist/integrations/shopify.js +1 -1
  106. package/dist/integrations/statsig.esm.js +1 -1
  107. package/dist/integrations/statsig.js +1 -1
  108. package/dist/integrations/utils.d.ts +1 -1
  109. package/dist/integrations/utils.esm.js +1 -1
  110. package/dist/integrations/utils.js +1 -1
  111. package/dist/react/community-impact.esm.js +1 -1
  112. package/dist/react/community-impact.js +1 -1
  113. package/dist/react/cumulative-impact.esm.js +1 -1
  114. package/dist/react/cumulative-impact.js +1 -1
  115. package/dist/react/impact-overview.esm.js +1 -1
  116. package/dist/react/impact-overview.js +1 -1
  117. package/dist/react/index.esm.js +1 -1
  118. package/dist/react/index.js +1 -1
  119. package/dist/react/post-purchase.esm.js +1 -1
  120. package/dist/react/post-purchase.js +1 -1
  121. package/dist/react/redeem-transaction.esm.js +1 -1
  122. package/dist/react/redeem-transaction.js +1 -1
  123. package/dist/react/select-nonprofit.esm.js +1 -1
  124. package/dist/react/select-nonprofit.js +1 -1
  125. package/dist/react/subscription-management.esm.js +1 -1
  126. package/dist/react/subscription-management.esm.js.map +1 -1
  127. package/dist/react/subscription-management.js +1 -1
  128. package/dist/react/subscription-management.js.map +1 -1
  129. package/dist/utils/beam-errors.d.ts +1 -1
  130. package/dist/utils/beam-errors.esm.js +1 -1
  131. package/dist/utils/beam-errors.js +1 -1
  132. package/dist/utils/cookies.d.ts +1 -1
  133. package/dist/utils/cookies.esm.js +1 -1
  134. package/dist/utils/cookies.esm.js.map +1 -1
  135. package/dist/utils/cookies.js +1 -1
  136. package/dist/utils/cookies.js.map +1 -1
  137. package/dist/utils/index.d.ts +1 -1
  138. package/dist/utils/index.esm.js +1 -1
  139. package/dist/utils/index.js +1 -1
  140. package/dist/utils/local-storage.esm.js +1 -1
  141. package/dist/utils/local-storage.js +1 -1
  142. package/dist/utils/remote-session.esm.js +1 -1
  143. package/dist/utils/remote-session.js +1 -1
  144. package/dist/utils/wait-for-element.esm.js +1 -1
  145. package/dist/utils/wait-for-element.js +1 -1
  146. package/package.json +1 -1
  147. package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js +0 -2
  148. package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js.map +0 -1
  149. package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js +0 -2
  150. package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js.map +0 -1
  151. package/dist/chunks/beam-errors-AMvTvR1C.esm.js +0 -2
  152. package/dist/chunks/beam-errors-AMvTvR1C.esm.js.map +0 -1
  153. package/dist/chunks/enforce-config-MqLZWolV.esm.js +0 -22
  154. package/dist/chunks/enforce-config-n0D_zfMC.esm.js +0 -22
  155. package/dist/chunks/index-0CUzV2-m.esm.js +0 -2
  156. package/dist/chunks/index-0CUzV2-m.esm.js.map +0 -1
  157. package/dist/chunks/index-0JdRzhqA.esm.js +0 -2
  158. package/dist/chunks/index-0JdRzhqA.esm.js.map +0 -1
  159. package/dist/chunks/index-6hf6jo8u.esm.js +0 -2
  160. package/dist/chunks/index-6hf6jo8u.esm.js.map +0 -1
  161. package/dist/chunks/index-8G1d1I0a.esm.js +0 -2
  162. package/dist/chunks/index-8G1d1I0a.esm.js.map +0 -1
  163. package/dist/chunks/index-FAF7tYU6.esm.js.map +0 -1
  164. package/dist/chunks/index-L6UcfXYR.esm.js +0 -2
  165. package/dist/chunks/index-L6UcfXYR.esm.js.map +0 -1
  166. package/dist/chunks/index-m6tLtpwd.esm.js +0 -2
  167. package/dist/chunks/index-m6tLtpwd.esm.js.map +0 -1
  168. package/dist/chunks/index-rrdYIcOi.esm.js.map +0 -1
  169. package/dist/chunks/index-uqEAgdEf.esm.js.map +0 -1
  170. package/dist/chunks/index-w9_XpjIg.esm.js.map +0 -1
  171. package/dist/chunks/routes-USQ3n64Y.esm.js +0 -2
  172. package/dist/chunks/routes-wPiw5U5n.esm.js +0 -2
@@ -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