@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.
- package/dist/chunks/_share-dialog-dependencies-FglfQ7YP.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-FglfQ7YP.esm.js.map +1 -0
- package/dist/chunks/_share-dialog-dependencies-YbNiVx56.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-YbNiVx56.esm.js.map +1 -0
- package/dist/chunks/beam-errors-P-Lu07Ce.esm.js +2 -0
- package/dist/chunks/beam-errors-P-Lu07Ce.esm.js.map +1 -0
- package/dist/chunks/{beam-errors-bKCZlkvr.esm.d.ts → beam-errors-fXDkG1zo.esm.d.ts} +7 -2
- package/dist/chunks/enforce-config-fo8kIfoY.esm.js +22 -0
- package/dist/chunks/{enforce-config-MqLZWolV.esm.js.map → enforce-config-fo8kIfoY.esm.js.map} +1 -1
- package/dist/chunks/enforce-config-qna7hEL6.esm.js +22 -0
- package/dist/chunks/{enforce-config-n0D_zfMC.esm.js.map → enforce-config-qna7hEL6.esm.js.map} +1 -1
- package/dist/chunks/index-1qXot92e.esm.js +2 -0
- package/dist/chunks/index-1qXot92e.esm.js.map +1 -0
- package/dist/chunks/{index-FAF7tYU6.esm.js → index-9gijHGwh.esm.js} +2 -2
- package/dist/chunks/index-9gijHGwh.esm.js.map +1 -0
- package/dist/chunks/{index-3ThDVYOT.esm.d.ts → index-EZ_Bg1n7.esm.d.ts} +1 -1
- package/dist/chunks/index-EpanGShY.esm.js +2 -0
- package/dist/chunks/index-EpanGShY.esm.js.map +1 -0
- package/dist/chunks/{index-kuEhVQcF.esm.d.ts → index-GkPHba-I.esm.d.ts} +1 -1
- package/dist/chunks/{index-uqEAgdEf.esm.js → index-OnjTwvAw.esm.js} +2 -2
- package/dist/chunks/index-OnjTwvAw.esm.js.map +1 -0
- package/dist/chunks/{index-rrdYIcOi.esm.js → index-U8Oy2aur.esm.js} +2 -2
- package/dist/chunks/index-U8Oy2aur.esm.js.map +1 -0
- package/dist/chunks/index-XMD0b6ql.esm.js +2 -0
- package/dist/chunks/index-XMD0b6ql.esm.js.map +1 -0
- package/dist/chunks/{index-hC71uT32.esm.js → index-fqDBrscF.esm.js} +2 -2
- package/dist/chunks/{index-hC71uT32.esm.js.map → index-fqDBrscF.esm.js.map} +1 -1
- package/dist/chunks/{index-MAsTKsZm.esm.js → index-gULINFkH.esm.js} +2 -2
- package/dist/chunks/{index-MAsTKsZm.esm.js.map → index-gULINFkH.esm.js.map} +1 -1
- package/dist/chunks/index-ll8zLjbu.esm.js +2 -0
- package/dist/chunks/index-ll8zLjbu.esm.js.map +1 -0
- package/dist/chunks/{index-tfP1RBZU.esm.d.ts → index-pDraUd1x.esm.d.ts} +1 -1
- package/dist/chunks/index-r9Yb1UY4.esm.js +2 -0
- package/dist/chunks/index-r9Yb1UY4.esm.js.map +1 -0
- package/dist/chunks/index-t4uX5Dg1.esm.js +2 -0
- package/dist/chunks/index-t4uX5Dg1.esm.js.map +1 -0
- package/dist/chunks/{index-w9_XpjIg.esm.js → index-wsdeaTHd.esm.js} +2 -2
- package/dist/chunks/index-wsdeaTHd.esm.js.map +1 -0
- package/dist/chunks/{localize-eZMViIud.esm.js → localize-GCkVUD8S.esm.js} +2 -2
- package/dist/chunks/{localize-eZMViIud.esm.js.map → localize-GCkVUD8S.esm.js.map} +1 -1
- package/dist/chunks/{localize-0rA0DbzI.esm.js → localize-pzAAkBvG.esm.js} +2 -2
- package/dist/chunks/{localize-0rA0DbzI.esm.js.map → localize-pzAAkBvG.esm.js.map} +1 -1
- package/dist/chunks/{order-page-PGTQXoSr.esm.js → order-page-JdaAppB7.esm.js} +2 -2
- package/dist/chunks/{order-page-PGTQXoSr.esm.js.map → order-page-JdaAppB7.esm.js.map} +1 -1
- package/dist/chunks/{order-page-MyFrJe1o.esm.js → order-page-W1jR35W9.esm.js} +2 -2
- package/dist/chunks/{order-page-MyFrJe1o.esm.js.map → order-page-W1jR35W9.esm.js.map} +1 -1
- package/dist/chunks/routes-CqjzL4oL.esm.js +2 -0
- package/dist/chunks/{routes-USQ3n64Y.esm.js.map → routes-CqjzL4oL.esm.js.map} +1 -1
- package/dist/chunks/routes-lsOWIDmE.esm.js +2 -0
- package/dist/chunks/{routes-wPiw5U5n.esm.js.map → routes-lsOWIDmE.esm.js.map} +1 -1
- package/dist/chunks/{update-cart-OkpQAdyP.esm.js → update-cart-T32-282v.esm.js} +2 -2
- package/dist/chunks/{update-cart-OkpQAdyP.esm.js.map → update-cart-T32-282v.esm.js.map} +1 -1
- package/dist/chunks/{update-cart-8xlajjFj.esm.js → update-cart-yneR8zk1.esm.js} +2 -2
- package/dist/chunks/{update-cart-8xlajjFj.esm.js.map → update-cart-yneR8zk1.esm.js.map} +1 -1
- package/dist/components/community-impact.esm.js +2 -1
- package/dist/components/community-impact.esm.js.map +1 -1
- package/dist/components/community-impact.js +2 -1
- package/dist/components/community-impact.js.map +1 -1
- package/dist/components/cumulative-impact.esm.js +2 -1
- package/dist/components/cumulative-impact.esm.js.map +1 -1
- package/dist/components/cumulative-impact.js +2 -1
- package/dist/components/cumulative-impact.js.map +1 -1
- package/dist/components/impact-overview.esm.js +2 -1
- package/dist/components/impact-overview.esm.js.map +1 -1
- package/dist/components/impact-overview.js +2 -1
- package/dist/components/impact-overview.js.map +1 -1
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/post-purchase.d.ts +1 -1
- package/dist/components/post-purchase.esm.js +1 -1
- package/dist/components/post-purchase.js +1 -1
- package/dist/components/redeem-transaction.d.ts +14 -4
- package/dist/components/redeem-transaction.esm.js +12 -11
- package/dist/components/redeem-transaction.esm.js.map +1 -1
- package/dist/components/redeem-transaction.js +12 -11
- package/dist/components/redeem-transaction.js.map +1 -1
- package/dist/components/select-nonprofit.d.ts +1 -1
- package/dist/components/select-nonprofit.esm.js +2 -1
- package/dist/components/select-nonprofit.esm.js.map +1 -1
- package/dist/components/select-nonprofit.js +2 -1
- package/dist/components/select-nonprofit.js.map +1 -1
- package/dist/components/shopify.d.ts +1 -1
- package/dist/components/shopify.esm.js +1 -1
- package/dist/components/shopify.js +1 -1
- package/dist/components/subscription-management.d.ts +1 -1
- package/dist/components/subscription-management.esm.js +13 -3
- package/dist/components/subscription-management.esm.js.map +1 -1
- package/dist/components/subscription-management.js +13 -3
- package/dist/components/subscription-management.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/beam.esm.js +1 -1
- package/dist/integrations/beam.js +1 -1
- package/dist/integrations/cart.esm.js +1 -1
- package/dist/integrations/cart.js +1 -1
- package/dist/integrations/index.d.ts +2 -2
- package/dist/integrations/index.esm.js +1 -1
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/logs.esm.js +1 -1
- package/dist/integrations/logs.js +1 -1
- package/dist/integrations/session.esm.js +1 -1
- package/dist/integrations/session.js +1 -1
- package/dist/integrations/shopify.esm.js +1 -1
- package/dist/integrations/shopify.js +1 -1
- package/dist/integrations/statsig.esm.js +1 -1
- package/dist/integrations/statsig.js +1 -1
- package/dist/integrations/utils.d.ts +1 -1
- package/dist/integrations/utils.esm.js +1 -1
- package/dist/integrations/utils.js +1 -1
- package/dist/react/community-impact.esm.js +1 -1
- package/dist/react/community-impact.js +1 -1
- package/dist/react/cumulative-impact.esm.js +1 -1
- package/dist/react/cumulative-impact.js +1 -1
- package/dist/react/impact-overview.esm.js +1 -1
- package/dist/react/impact-overview.js +1 -1
- package/dist/react/index.esm.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/post-purchase.esm.js +1 -1
- package/dist/react/post-purchase.js +1 -1
- package/dist/react/redeem-transaction.esm.js +1 -1
- package/dist/react/redeem-transaction.js +1 -1
- package/dist/react/select-nonprofit.esm.js +1 -1
- package/dist/react/select-nonprofit.js +1 -1
- package/dist/react/subscription-management.esm.js +1 -1
- package/dist/react/subscription-management.esm.js.map +1 -1
- package/dist/react/subscription-management.js +1 -1
- package/dist/react/subscription-management.js.map +1 -1
- package/dist/utils/beam-errors.d.ts +1 -1
- package/dist/utils/beam-errors.esm.js +1 -1
- package/dist/utils/beam-errors.js +1 -1
- package/dist/utils/cookies.d.ts +1 -1
- package/dist/utils/cookies.esm.js +1 -1
- package/dist/utils/cookies.esm.js.map +1 -1
- package/dist/utils/cookies.js +1 -1
- package/dist/utils/cookies.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/local-storage.esm.js +1 -1
- package/dist/utils/local-storage.js +1 -1
- package/dist/utils/remote-session.esm.js +1 -1
- package/dist/utils/remote-session.js +1 -1
- package/dist/utils/wait-for-element.esm.js +1 -1
- package/dist/utils/wait-for-element.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-BGBxD2DS.esm.js.map +0 -1
- package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-l3E6m-4b.esm.js.map +0 -1
- package/dist/chunks/beam-errors-AMvTvR1C.esm.js +0 -2
- package/dist/chunks/beam-errors-AMvTvR1C.esm.js.map +0 -1
- package/dist/chunks/enforce-config-MqLZWolV.esm.js +0 -22
- package/dist/chunks/enforce-config-n0D_zfMC.esm.js +0 -22
- package/dist/chunks/index-0CUzV2-m.esm.js +0 -2
- package/dist/chunks/index-0CUzV2-m.esm.js.map +0 -1
- package/dist/chunks/index-0JdRzhqA.esm.js +0 -2
- package/dist/chunks/index-0JdRzhqA.esm.js.map +0 -1
- package/dist/chunks/index-6hf6jo8u.esm.js +0 -2
- package/dist/chunks/index-6hf6jo8u.esm.js.map +0 -1
- package/dist/chunks/index-8G1d1I0a.esm.js +0 -2
- package/dist/chunks/index-8G1d1I0a.esm.js.map +0 -1
- package/dist/chunks/index-FAF7tYU6.esm.js.map +0 -1
- package/dist/chunks/index-L6UcfXYR.esm.js +0 -2
- package/dist/chunks/index-L6UcfXYR.esm.js.map +0 -1
- package/dist/chunks/index-m6tLtpwd.esm.js +0 -2
- package/dist/chunks/index-m6tLtpwd.esm.js.map +0 -1
- package/dist/chunks/index-rrdYIcOi.esm.js.map +0 -1
- package/dist/chunks/index-uqEAgdEf.esm.js.map +0 -1
- package/dist/chunks/index-w9_XpjIg.esm.js.map +0 -1
- package/dist/chunks/routes-USQ3n64Y.esm.js +0 -2
- package/dist/chunks/routes-wPiw5U5n.esm.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{D as u,a as g}from"../chunks/routes-
|
|
1
|
+
import{D as u,a as g}from"../chunks/routes-lsOWIDmE.esm.js";import{S as y}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{B as h}from"../chunks/events-5IECSF-x.esm.js";import{logger as w}from"../utils/logger.esm.js";import{s as f}from"../chunks/index-gULINFkH.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
|
|
2
2
|
//# sourceMappingURL=beam.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{D as u,a as g}from"../chunks/routes-
|
|
1
|
+
import{D as u,a as g}from"../chunks/routes-CqjzL4oL.esm.js";import{S as y}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{B as h}from"../chunks/events-5IECSF-x.esm.js";import{logger as w}from"../utils/logger.js";import{s as f}from"../chunks/index-fqDBrscF.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
|
|
2
2
|
//# sourceMappingURL=beam.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{x as C}from"../chunks/update-cart-
|
|
1
|
+
import{x as C}from"../chunks/update-cart-yneR8zk1.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as updateCart};
|
|
2
2
|
//# sourceMappingURL=cart.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{x as C}from"../chunks/update-cart-
|
|
1
|
+
import{x as C}from"../chunks/update-cart-T32-282v.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as updateCart};
|
|
2
2
|
//# sourceMappingURL=cart.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { i as Utils } from '../chunks/index-
|
|
1
|
+
export { i as Utils } from '../chunks/index-pDraUd1x.esm.js';
|
|
2
2
|
export { i as Shopify } from '../chunks/index-I8DBdgx0.esm.js';
|
|
3
3
|
export { i as Session } from '../chunks/index-EGiUuWe-.esm.js';
|
|
4
4
|
export { i as Cart } from '../chunks/index-3Xf6QzNV.esm.js';
|
|
5
5
|
export { i as Logs } from '../chunks/index-wbrSi6cp.esm.js';
|
|
6
|
-
import '../chunks/beam-errors-
|
|
6
|
+
import '../chunks/beam-errors-fXDkG1zo.esm.js';
|
|
7
7
|
import '../chunks/events-qTu4iIOo.esm.js';
|
|
8
8
|
import '../chunks/cart-contents-Shc27L1J.esm.js';
|
|
9
9
|
import '../chunks/openapi-spec-D_Zzbl2J.esm.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as w}from"../chunks/index-
|
|
1
|
+
import{i as w}from"../chunks/index-9gijHGwh.esm.js";import{i as A}from"../chunks/index-t4uX5Dg1.esm.js";import{i as D}from"../chunks/index-9YcaEQju.esm.js";import{i as F}from"../chunks/index-ll8zLjbu.esm.js";import{i as H}from"../chunks/index-gULINFkH.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/logger.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/wait-for-element.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/order-page-JdaAppB7.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-yneR8zk1.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";export{F as Cart,H as Logs,D as Session,A as Shopify,w as Utils};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as w}from"../chunks/index-
|
|
1
|
+
import{i as w}from"../chunks/index-U8Oy2aur.esm.js";import{i as A}from"../chunks/index-1qXot92e.esm.js";import{i as D}from"../chunks/index-Z1UUeVXR.esm.js";import{i as F}from"../chunks/index-EpanGShY.esm.js";import{i as H}from"../chunks/index-fqDBrscF.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/logger.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/wait-for-element.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/order-page-W1jR35W9.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-T32-282v.esm.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../components/post-purchase.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";export{F as Cart,H as Logs,D as Session,A as Shopify,w as Utils};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/routes-
|
|
1
|
+
import"../chunks/routes-lsOWIDmE.esm.js";import"../utils/logger.esm.js";import{s as i}from"../chunks/index-gULINFkH.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";export{i as sendLog};
|
|
2
2
|
//# sourceMappingURL=logs.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/routes-
|
|
1
|
+
import"../chunks/routes-CqjzL4oL.esm.js";import"../utils/logger.js";import{s as i}from"../chunks/index-fqDBrscF.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";export{i as sendLog};
|
|
2
2
|
//# sourceMappingURL=logs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/vendor-eeJfrOkP.esm.js";import"../utils/cookies.esm.js";import"../utils/local-storage.esm.js";import{c as s,e as a}from"../chunks/index-9YcaEQju.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/beam-errors-
|
|
1
|
+
import"../chunks/vendor-eeJfrOkP.esm.js";import"../utils/cookies.esm.js";import"../utils/local-storage.esm.js";import{c as s,e as a}from"../chunks/index-9YcaEQju.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";export{s as createSession,a as endSession};
|
|
2
2
|
//# sourceMappingURL=session.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunks/vendor-eeJfrOkP.esm.js";import"../utils/cookies.js";import"../utils/local-storage.js";import{c as s,e as a}from"../chunks/index-Z1UUeVXR.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/beam-errors-
|
|
1
|
+
import"../chunks/vendor-eeJfrOkP.esm.js";import"../utils/cookies.js";import"../utils/local-storage.js";import{c as s,e as a}from"../chunks/index-Z1UUeVXR.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";export{s as createSession,a as endSession};
|
|
2
2
|
//# sourceMappingURL=session.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as T,C as W,O as j,s as l,L as q}from"../chunks/order-page-
|
|
1
|
+
import{h as T,C as W,O as j,s as l,L as q}from"../chunks/order-page-JdaAppB7.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-yneR8zk1.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../utils/logger.esm.js";import"../utils/remote-session.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../utils/wait-for-element.esm.js";export{T as addBeamAttributesToCart,W as getCurrentCart,j as registerCartIntegration,l as showBeamOrderPageWidgets,q as trackCart};
|
|
2
2
|
//# sourceMappingURL=shopify.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as T,C as W,O as j,s as l,L as q}from"../chunks/order-page-
|
|
1
|
+
import{h as T,C as W,O as j,s as l,L as q}from"../chunks/order-page-W1jR35W9.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.js";import"../utils/memoize-last.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-T32-282v.esm.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../utils/logger.js";import"../utils/remote-session.js";import"../components/post-purchase.js";import"../chunks/lit-yVXn5Cbs.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../utils/wait-for-element.js";export{T as addBeamAttributesToCart,W as getCurrentCart,j as registerCartIntegration,l as showBeamOrderPageWidgets,q as trackCart};
|
|
2
2
|
//# sourceMappingURL=shopify.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as R}from"../chunks/routes-
|
|
1
|
+
import{p as R}from"../chunks/routes-lsOWIDmE.esm.js";import{B as M}from"../chunks/cart-contents-h60geKWa.esm.js";import{a as D,b as O,c as W}from"../chunks/events-5IECSF-x.esm.js";import{B as m}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{getCookieValue as f,setCookieValue as $}from"../utils/cookies.esm.js";import{logger as C}from"../utils/logger.esm.js";import{saveRemoteSession as K}from"../utils/remote-session.esm.js";import"../utils/local-storage.esm.js";var w=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(w(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},_=(e,t,i,s)=>(w(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i),r=(e,t,i)=>(w(e,t,"access private method"),i),h,c,E,T,b,A,l,v,B,g,S,y,L,I,k;const P=4,j=`https://cdn.jsdelivr.net/npm/statsig-js@${P}/build/statsig-prod-web-sdk.min.js`,x="beam_statsig_session_id",o="data-beam-visibility",z="beam-sync-visibility",p={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class G{constructor(t){n(this,E),n(this,b),n(this,v),n(this,g),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,h,void 0),n(this,c,void 0),n(this,l,[]),this.statsigApiKey=t.statsigApiKey}async init(t){_(this,h,t),r(this,E,T).call(this),r(this,g,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
|
|
2
2
|
[${o}="hide"] beam-select-nonprofit,
|
|
3
3
|
[${o}="hide"] beam-post-purchase,
|
|
4
4
|
[${o}="hide"] beam-redeem-transaction,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as R}from"../chunks/routes-
|
|
1
|
+
import{p as R}from"../chunks/routes-CqjzL4oL.esm.js";import{B as M}from"../chunks/cart-contents-h60geKWa.esm.js";import{a as D,b as O,c as W}from"../chunks/events-5IECSF-x.esm.js";import{B as m}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{getCookieValue as f,setCookieValue as $}from"../utils/cookies.js";import{logger as C}from"../utils/logger.js";import{saveRemoteSession as K}from"../utils/remote-session.js";import"../utils/local-storage.js";var w=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(w(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},_=(e,t,i,s)=>(w(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i),r=(e,t,i)=>(w(e,t,"access private method"),i),h,c,E,T,b,A,l,v,B,g,S,y,L,I,k;const P=4,j=`https://cdn.jsdelivr.net/npm/statsig-js@${P}/build/statsig-prod-web-sdk.min.js`,x="beam_statsig_session_id",o="data-beam-visibility",z="beam-sync-visibility",p={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class G{constructor(t){n(this,E),n(this,b),n(this,v),n(this,g),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,h,void 0),n(this,c,void 0),n(this,l,[]),this.statsigApiKey=t.statsigApiKey}async init(t){_(this,h,t),r(this,E,T).call(this),r(this,g,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
|
|
2
2
|
[${o}="hide"] beam-select-nonprofit,
|
|
3
3
|
[${o}="hide"] beam-post-purchase,
|
|
4
4
|
[${o}="hide"] beam-redeem-transaction,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as errors } from '../chunks/beam-errors-
|
|
1
|
+
export { b as errors } from '../chunks/beam-errors-fXDkG1zo.esm.js';
|
|
2
2
|
export { e as events } from '../chunks/events-qTu4iIOo.esm.js';
|
|
3
3
|
export { logger } from '../utils/logger.js';
|
|
4
4
|
export { fetchProxy, initNetworkListeners, xhrProxy } from '../utils/network-listeners.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"../utils/logger.esm.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"../utils/network-listeners.esm.js";import{createScopedLocalStorage as n}from"../utils/local-storage.esm.js";import{waitForElement as c}from"../utils/wait-for-element.esm.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"../utils/cookies.esm.js";import{getRemoteSession as V,saveRemoteSession as b}from"../utils/remote-session.esm.js";import{memoizeLast as v}from"../utils/memoize-last.esm.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
|
|
2
2
|
//# sourceMappingURL=utils.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"../utils/logger.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"../utils/network-listeners.js";import{createScopedLocalStorage as n}from"../utils/local-storage.js";import{waitForElement as c}from"../utils/wait-for-element.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"../utils/cookies.js";import{getRemoteSession as V,saveRemoteSession as b}from"../utils/remote-session.js";import{memoizeLast as v}from"../utils/memoize-last.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=community-impact.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=community-impact.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import a from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/localize-GCkVUD8S.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,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import a from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/localize-pzAAkBvG.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,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-LYEag6TI.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,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-LYEag6TI.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
|
package/dist/react/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{BeamCommunityImpact as N}from"./community-impact.esm.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.esm.js";import{BeamImpactOverview as j}from"./impact-overview.esm.js";import{BeamSelectNonprofit as q}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as A}from"./redeem-transaction.esm.js";import{BeamPostPurchase as E}from"./post-purchase.esm.js";import{BeamSubscriptionManagement as G}from"./subscription-management.esm.js";import"react";import"../chunks/lit-yVXn5Cbs.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import{BeamCommunityImpact as N}from"./community-impact.esm.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.esm.js";import{BeamImpactOverview as j}from"./impact-overview.esm.js";import{BeamSelectNonprofit as q}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as A}from"./redeem-transaction.esm.js";import{BeamPostPurchase as E}from"./post-purchase.esm.js";import{BeamSubscriptionManagement as G}from"./subscription-management.esm.js";import"react";import"../chunks/lit-yVXn5Cbs.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../components/select-nonprofit.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";import"../components/subscription-management.esm.js";export{N as BeamCommunityImpact,R as BeamCumulativeImpact,j as BeamImpactOverview,E as BeamPostPurchase,A as BeamRedeemTransaction,q as BeamSelectNonprofit,G as BeamSubscriptionManagement};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/react/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{BeamCommunityImpact as N}from"./community-impact.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.js";import{BeamImpactOverview as j}from"./impact-overview.js";import{BeamSelectNonprofit as q}from"./select-nonprofit.js";import{BeamRedeemTransaction as A}from"./redeem-transaction.js";import{BeamPostPurchase as E}from"./post-purchase.js";import{BeamSubscriptionManagement as G}from"./subscription-management.js";import"react";import"../chunks/lit-yVXn5Cbs.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-
|
|
1
|
+
import{BeamCommunityImpact as N}from"./community-impact.js";import{BeamCumulativeImpact as R}from"./cumulative-impact.js";import{BeamImpactOverview as j}from"./impact-overview.js";import{BeamSelectNonprofit as q}from"./select-nonprofit.js";import{BeamRedeemTransaction as A}from"./redeem-transaction.js";import{BeamPostPurchase as E}from"./post-purchase.js";import{BeamSubscriptionManagement as G}from"./subscription-management.js";import"react";import"../chunks/lit-yVXn5Cbs.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../components/select-nonprofit.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";import"../components/subscription-management.js";export{N as BeamCommunityImpact,R as BeamCumulativeImpact,j as BeamImpactOverview,E as BeamPostPurchase,A as BeamRedeemTransaction,q as BeamSelectNonprofit,G as BeamSubscriptionManagement};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../utils/cookies.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../utils/cookies.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../utils/local-storage.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.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,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../utils/cookies.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../utils/cookies.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../utils/local-storage.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";import"../chunks/events-5IECSF-x.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-eeJfrOkP.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-LYEag6TI.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,2 +1,2 @@
|
|
|
1
|
-
import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
|
|
2
2
|
//# sourceMappingURL=redeem-transaction.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import m from"react";import{l as o}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as r}from"../chunks/events-5IECSF-x.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-3b56QBzq.esm.js";const e=o({tagName:t.tagName,elementClass:t,react:m,events:{onNonprofitSelect:r.eventName}});export{e as BeamRedeemTransaction,e as default};
|
|
2
2
|
//# sourceMappingURL=redeem-transaction.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-GCkVUD8S.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
|
|
2
2
|
//# sourceMappingURL=select-nonprofit.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/enforce-config-
|
|
1
|
+
import o from"react";import{l as e}from"../chunks/lit-yVXn5Cbs.esm.js";import{c as m}from"../chunks/events-5IECSF-x.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/progress-bar-7gWYaGlq.esm.js";import"../chunks/localize-pzAAkBvG.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/responsive-LYEag6TI.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
|
|
2
2
|
//# sourceMappingURL=select-nonprofit.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-lsOWIDmE.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/enforce-config-qna7hEL6.esm.js";import"../chunks/events-5IECSF-x.esm.js";const m=a({tagName:t.tagName,elementClass:t,react:e,events:{}});export{m as BeamSubscriptionManagement,m as default};
|
|
2
2
|
//# sourceMappingURL=subscription-management.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-management.esm.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription-management.esm.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"iXAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{l as a}from"../chunks/lit-yVXn5Cbs.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/routes-CqjzL4oL.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/enforce-config-fo8kIfoY.esm.js";import"../chunks/events-5IECSF-x.esm.js";const m=a({tagName:t.tagName,elementClass:t,react:e,events:{}});export{m as BeamSubscriptionManagement,m as default};
|
|
2
2
|
//# sourceMappingURL=subscription-management.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport { BeamSubscriptionManagement as _BeamSubscriptionManagement } from \"./index\";\n\nexport const BeamSubscriptionManagement = createComponent({\n tagName: _BeamSubscriptionManagement.tagName,\n elementClass: _BeamSubscriptionManagement,\n react: React,\n events: {},\n});\n\nexport default BeamSubscriptionManagement; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSubscriptionManagement","createComponent","_BeamSubscriptionManagement","React"],"mappings":"yWAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BeamError, L as LocalStorageError, M as MissingConfig, N as NetworkError, S as SetupError } from '../chunks/beam-errors-
|
|
1
|
+
export { B as BeamError, I as InvalidAttributeCombinationError, L as LocalStorageError, M as MissingConfig, N as NetworkError, S as SetupError } from '../chunks/beam-errors-fXDkG1zo.esm.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as a,
|
|
1
|
+
import{B as a,I as s,L as t,M as i,N as e,S as n}from"../chunks/beam-errors-P-Lu07Ce.esm.js";export{a as BeamError,s as InvalidAttributeCombinationError,t as LocalStorageError,i as MissingConfig,e as NetworkError,n as SetupError};
|
|
2
2
|
//# sourceMappingURL=beam-errors.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as a,
|
|
1
|
+
import{B as a,I as s,L as t,M as i,N as e,S as n}from"../chunks/beam-errors-P-Lu07Ce.esm.js";export{a as BeamError,s as InvalidAttributeCombinationError,t as LocalStorageError,i as MissingConfig,e as NetworkError,n as SetupError};
|
|
2
2
|
//# sourceMappingURL=beam-errors.js.map
|
package/dist/utils/cookies.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const getCookieMap: () => Map<string, string>;
|
|
1
|
+
declare const getCookieMap: (cookieString?: string) => Map<string, string>;
|
|
2
2
|
declare const getCookieValue: (name: string) => string | undefined;
|
|
3
3
|
declare const setCookieValue: (options: CookieInit) => undefined;
|
|
4
4
|
declare const deleteCookieValue: (options: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c=(e=document.cookie)=>e.split(";").reduce((t,n)=>{const o=n.trim(),[i,...s]=o.split("="),l=decodeURIComponent(s.join("="));return t.set(i,l)},new Map),m=e=>c().get(e),p=e=>{const{name:t,value:n,expires:o,...i}=e,s=encodeURIComponent(n),l=`${t}=${s}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",a=Object.entries(i).map(([d,r])=>r!=null?` ;${d}=${r}`:"").join("");document.cookie=l+a+u},C=e=>p({...e,value:"",expires:-1});export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p as setCookieValue};
|
|
2
2
|
//# sourceMappingURL=cookies.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookies.esm.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = () => {\n
|
|
1
|
+
{"version":3,"file":"cookies.esm.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = (cookieString = document.cookie) => {\n // document.cookie has the format: \"key1=value1; key2=value2; key3=value3\"\n return cookieString.split(\";\").reduce((result: Map<string, string>, next: string) => {\n const cookieKeyValuePair = next.trim(); // \" key=value \" => \"key=value\"\n const [key, ...restOfString] = cookieKeyValuePair.split(\"=\"); // [\"key\", [\"value\"]]\n const value = decodeURIComponent(restOfString.join(\"=\")); // .join() handles if value contained \"=\"\n return result.set(key, value);\n }, new Map<string, string>());\n};\n\nexport const getCookieValue = (name: string): string | undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // return (await window.cookieStore.get(name))?.value;\n // }\n return getCookieMap().get(name);\n};\n\nexport const setCookieValue = (options: CookieInit): undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // const { domain, ...rest } = options;\n // const validatedDomain = domain === \"localhost\" ? undefined : domain;\n // return await window.cookieStore.set({ ...rest, domain: validatedDomain });\n // }\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie#write_a_new_cookie\n const { name, value, expires, ...rest } = options;\n const encodedValue = encodeURIComponent(value);\n const base = `${name}=${encodedValue}`;\n const expiration = expires != null ? ` ;expires=${new Date(expires).toUTCString()}` : \"\";\n const modifiers = Object.entries(rest)\n .map(([key, val]) => (val != null ? ` ;${key}=${val}` : \"\"))\n .join(\"\");\n document.cookie = base + modifiers + expiration;\n return;\n};\n\nexport const deleteCookieValue = (options: { name: string; domain?: string; path?: string }): undefined => {\n return setCookieValue({ ...options, value: \"\", expires: -1 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\n}\n\ninterface CookieInit {\n name: string;\n value: string;\n path?: string;\n domain?: string;\n expires?: number; // timestamp, unix time in ms\n sameSite?: \"strict\" | \"lax\" | \"none\";\n}\n\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"mappings":"AAIO,MAAMA,EAAe,CAACC,EAAe,SAAS,SAE5CA,EAAa,MAAM,GAAG,EAAE,OAAO,CAACC,EAA6BC,IAAiB,CACnF,MAAMC,EAAqBD,EAAK,KAAA,EAC1B,CAACE,EAAK,GAAGC,CAAY,EAAIF,EAAmB,MAAM,GAAG,EACrDG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOJ,EAAO,IAAIG,EAAKE,CAAK,CAC9B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBT,EAAa,EAAE,IAAIS,CAAI,EAGnBC,EAAkBC,GAAmC,CAQhE,KAAM,CAAE,KAAAF,EAAM,MAAAF,EAAO,QAAAK,EAAS,GAAGC,CAAK,EAAIF,EACpCG,EAAe,mBAAmBP,CAAK,EACvCQ,EAAO,GAAGN,CAAI,IAAIK,CAAY,GAC9BE,EAAaJ,GAAW,KAAO,aAAa,IAAI,KAAKA,CAAO,EAAE,aAAa,GAAK,GAChFK,EAAY,OAAO,QAAQJ,CAAI,EAClC,IAAI,CAAC,CAACR,EAAKa,CAAG,IAAOA,GAAO,KAAO,KAAKb,CAAG,IAAIa,CAAG,GAAK,EAAG,EAC1D,KAAK,EAAE,EACV,SAAS,OAASH,EAAOE,EAAYD,CAEvC,EAEaG,EAAqBR,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,EAAG,CAAC"}
|
package/dist/utils/cookies.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c=(e=document.cookie)=>e.split(";").reduce((t,n)=>{const o=n.trim(),[i,...s]=o.split("="),l=decodeURIComponent(s.join("="));return t.set(i,l)},new Map),m=e=>c().get(e),p=e=>{const{name:t,value:n,expires:o,...i}=e,s=encodeURIComponent(n),l=`${t}=${s}`,u=o!=null?` ;expires=${new Date(o).toUTCString()}`:"",a=Object.entries(i).map(([d,r])=>r!=null?` ;${d}=${r}`:"").join("");document.cookie=l+a+u},C=e=>p({...e,value:"",expires:-1});export{C as deleteCookieValue,c as getCookieMap,m as getCookieValue,p as setCookieValue};
|
|
2
2
|
//# sourceMappingURL=cookies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookies.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = () => {\n
|
|
1
|
+
{"version":3,"file":"cookies.js","sources":["../../src/utils/cookies.ts"],"sourcesContent":["/*\n * Wrapper functions for CookieStore using document.cookie as a fallback if not supported\n */\n\nexport const getCookieMap = (cookieString = document.cookie) => {\n // document.cookie has the format: \"key1=value1; key2=value2; key3=value3\"\n return cookieString.split(\";\").reduce((result: Map<string, string>, next: string) => {\n const cookieKeyValuePair = next.trim(); // \" key=value \" => \"key=value\"\n const [key, ...restOfString] = cookieKeyValuePair.split(\"=\"); // [\"key\", [\"value\"]]\n const value = decodeURIComponent(restOfString.join(\"=\")); // .join() handles if value contained \"=\"\n return result.set(key, value);\n }, new Map<string, string>());\n};\n\nexport const getCookieValue = (name: string): string | undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // return (await window.cookieStore.get(name))?.value;\n // }\n return getCookieMap().get(name);\n};\n\nexport const setCookieValue = (options: CookieInit): undefined => {\n // New Async API, not supported in FF/Safari:\n // if (window.cookieStore) {\n // const { domain, ...rest } = options;\n // const validatedDomain = domain === \"localhost\" ? undefined : domain;\n // return await window.cookieStore.set({ ...rest, domain: validatedDomain });\n // }\n // https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie#write_a_new_cookie\n const { name, value, expires, ...rest } = options;\n const encodedValue = encodeURIComponent(value);\n const base = `${name}=${encodedValue}`;\n const expiration = expires != null ? ` ;expires=${new Date(expires).toUTCString()}` : \"\";\n const modifiers = Object.entries(rest)\n .map(([key, val]) => (val != null ? ` ;${key}=${val}` : \"\"))\n .join(\"\");\n document.cookie = base + modifiers + expiration;\n return;\n};\n\nexport const deleteCookieValue = (options: { name: string; domain?: string; path?: string }): undefined => {\n return setCookieValue({ ...options, value: \"\", expires: -1 });\n};\n\n/*\n * CookieStore API Types\n * https://developer.mozilla.org/en-US/docs/Web/API/CookieStore#browser_compatibility\n */\n\ninterface CookieListItem {\n name: string;\n value: string;\n path: string;\n domain: string | null;\n expires: number | null; // timestamp, unix time in ms\n secure: boolean;\n sameSite: \"strict\" | \"lax\" | \"none\";\n}\n\ninterface CookieInit {\n name: string;\n value: string;\n path?: string;\n domain?: string;\n expires?: number; // timestamp, unix time in ms\n sameSite?: \"strict\" | \"lax\" | \"none\";\n}\n\n// https://wicg.github.io/cookie-store/#CookieChangeEvent\nexport interface CookieChangeEvent extends Event {\n readonly changed: CookieListItem[];\n readonly deleted: CookieListItem[];\n type: \"deleted\" | \"changed\";\n}\n\ntype SetCookie = {\n (options: CookieInit): Promise<undefined>;\n (name: string, value: string): Promise<undefined>;\n};\n\n// https://wicg.github.io/cookie-store/#CookieStore\ninterface CookieStore extends EventTarget {\n get: (name: string | { name: string; url: string }) => Promise<CookieListItem | undefined>;\n getAll: (name: string | { name: string; url: string }) => Promise<CookieListItem[]>;\n set: SetCookie; // function overload for multiple signatures\n delete: (name: string | { name: string; domain?: string | null; path?: string }) => Promise<undefined>;\n onchange: (event: CookieChangeEvent) => boolean | void | Promise<boolean | void>;\n}\n\ndeclare global {\n interface Window {\n cookieStore: CookieStore;\n }\n}\n"],"names":["getCookieMap","cookieString","result","next","cookieKeyValuePair","key","restOfString","value","getCookieValue","name","setCookieValue","options","expires","rest","encodedValue","base","expiration","modifiers","val","deleteCookieValue"],"mappings":"AAIO,MAAMA,EAAe,CAACC,EAAe,SAAS,SAE5CA,EAAa,MAAM,GAAG,EAAE,OAAO,CAACC,EAA6BC,IAAiB,CACnF,MAAMC,EAAqBD,EAAK,KAAA,EAC1B,CAACE,EAAK,GAAGC,CAAY,EAAIF,EAAmB,MAAM,GAAG,EACrDG,EAAQ,mBAAmBD,EAAa,KAAK,GAAG,CAAC,EACvD,OAAOJ,EAAO,IAAIG,EAAKE,CAAK,CAC9B,EAAG,IAAI,GAAqB,EAGjBC,EAAkBC,GAKtBT,EAAa,EAAE,IAAIS,CAAI,EAGnBC,EAAkBC,GAAmC,CAQhE,KAAM,CAAE,KAAAF,EAAM,MAAAF,EAAO,QAAAK,EAAS,GAAGC,CAAK,EAAIF,EACpCG,EAAe,mBAAmBP,CAAK,EACvCQ,EAAO,GAAGN,CAAI,IAAIK,CAAY,GAC9BE,EAAaJ,GAAW,KAAO,aAAa,IAAI,KAAKA,CAAO,EAAE,aAAa,GAAK,GAChFK,EAAY,OAAO,QAAQJ,CAAI,EAClC,IAAI,CAAC,CAACR,EAAKa,CAAG,IAAOA,GAAO,KAAO,KAAKb,CAAG,IAAIa,CAAG,GAAK,EAAG,EAC1D,KAAK,EAAE,EACV,SAAS,OAASH,EAAOE,EAAYD,CAEvC,EAEaG,EAAqBR,GACzBD,EAAe,CAAE,GAAGC,EAAS,MAAO,GAAI,QAAS,EAAG,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as errors } from '../chunks/beam-errors-
|
|
1
|
+
export { b as errors } from '../chunks/beam-errors-fXDkG1zo.esm.js';
|
|
2
2
|
export { e as events } from '../chunks/events-qTu4iIOo.esm.js';
|
|
3
3
|
export { logger } from './logger.js';
|
|
4
4
|
export { fetchProxy, initNetworkListeners, xhrProxy } from './network-listeners.js';
|
package/dist/utils/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.esm.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.esm.js";import{createScopedLocalStorage as n}from"./local-storage.esm.js";import{waitForElement as c}from"./wait-for-element.esm.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.esm.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.esm.js";import{memoizeLast as v}from"./memoize-last.esm.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-5IECSF-x.esm.js";import{logger as m}from"./logger.js";import{fetchProxy as x,initNetworkListeners as p,xhrProxy as f}from"./network-listeners.js";import{createScopedLocalStorage as n}from"./local-storage.js";import{waitForElement as c}from"./wait-for-element.js";import{deleteCookieValue as u,getCookieMap as d,getCookieValue as C,setCookieValue as S}from"./cookies.js";import{getRemoteSession as V,saveRemoteSession as b}from"./remote-session.js";import{memoizeLast as v}from"./memoize-last.js";import{d as y,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{n as createScopedLocalStorage,y as debounce,u as deleteCookieValue,r as errors,s as events,x as fetchProxy,d as getCookieMap,C as getCookieValue,V as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,v as memoizeLast,b as saveRemoteSession,S as setCookieValue,c as waitForElement,f as xhrProxy};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as o}from"../chunks/beam-errors-
|
|
1
|
+
import{L as o}from"../chunks/beam-errors-P-Lu07Ce.esm.js";const s=r=>({get prefix(){return"beam_"},get postfix(){return`_key_${r.apiKey}`},getItem(e){return localStorage.getItem(this.prefix+e+this.postfix)},setItem(e,t){return localStorage.setItem(this.prefix+e+this.postfix,`${t}`)},removeItem(e){return localStorage.removeItem(this.prefix+e+this.postfix)},getItemJson(e){try{const t=this.getItem(e);if(t)return JSON.parse(t)}catch{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
|
|
2
2
|
//# sourceMappingURL=local-storage.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as o}from"../chunks/beam-errors-
|
|
1
|
+
import{L as o}from"../chunks/beam-errors-P-Lu07Ce.esm.js";const s=r=>({get prefix(){return"beam_"},get postfix(){return`_key_${r.apiKey}`},getItem(e){return localStorage.getItem(this.prefix+e+this.postfix)},setItem(e,t){return localStorage.setItem(this.prefix+e+this.postfix,`${t}`)},removeItem(e){return localStorage.removeItem(this.prefix+e+this.postfix)},getItemJson(e){try{const t=this.getItem(e);if(t)return JSON.parse(t)}catch{console.error(new o(`Could not parse JSON: ${e}`))}return null},setItemJson(e,t){return this.setItem(e,JSON.stringify(t))}});export{s as createScopedLocalStorage};
|
|
2
2
|
//# sourceMappingURL=local-storage.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-
|
|
1
|
+
import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
|
|
2
2
|
//# sourceMappingURL=remote-session.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-
|
|
1
|
+
import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";const t="remote_session_id";function s({remoteSessionId:e,apiKey:i=""}){o({apiKey:i}).setItem(t,e)}function n({apiKey:e=""}){return o({apiKey:e}).getItem(t)}export{n as getRemoteSession,s as saveRemoteSession};
|
|
2
2
|
//# sourceMappingURL=remote-session.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as s}from"../chunks/beam-errors-
|
|
1
|
+
import{B as s}from"../chunks/beam-errors-P-Lu07Ce.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
|
|
2
2
|
//# sourceMappingURL=wait-for-element.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as s}from"../chunks/beam-errors-
|
|
1
|
+
import{B as s}from"../chunks/beam-errors-P-Lu07Ce.esm.js";function l(t,{timeout:i=1e4}={}){return new Promise((r,m)=>{let e=document.querySelector(t);if(e){r(e);return}let o;const u=setTimeout(()=>{e||(o?.disconnect(),m(new s(`Timed out waiting for '${t}'`)))},i);new MutationObserver((a,n)=>{o=n,Array.from(document.querySelectorAll(t)).forEach(c=>{e=c,r(c),n.disconnect(),clearTimeout(u)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}export{l as waitForElement};
|
|
2
2
|
//# sourceMappingURL=wait-for-element.js.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./vendor-eeJfrOkP.esm.js";import"../components/impact-overview.js";import"./lit-yVXn5Cbs.esm.js";import"./lodash-P8OIs-at.esm.js";import"./routes-wPiw5U5n.esm.js";import"./beam-errors-AMvTvR1C.esm.js";import"../utils/logger.js";import"./progress-bar-7gWYaGlq.esm.js";import"./enforce-config-n0D_zfMC.esm.js";import"./localize-0rA0DbzI.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"./responsive-LYEag6TI.esm.js";
|
|
2
|
-
//# sourceMappingURL=_share-dialog-dependencies-BGBxD2DS.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_share-dialog-dependencies-BGBxD2DS.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./vendor-eeJfrOkP.esm.js";import"../components/impact-overview.esm.js";import"./lit-yVXn5Cbs.esm.js";import"./lodash-P8OIs-at.esm.js";import"./routes-USQ3n64Y.esm.js";import"./beam-errors-AMvTvR1C.esm.js";import"../utils/logger.esm.js";import"./progress-bar-7gWYaGlq.esm.js";import"./enforce-config-MqLZWolV.esm.js";import"./localize-eZMViIud.esm.js";import"./is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"./responsive-LYEag6TI.esm.js";
|
|
2
|
-
//# sourceMappingURL=_share-dialog-dependencies-l3E6m-4b.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_share-dialog-dependencies-l3E6m-4b.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|