@beamimpact/web-sdk 1.48.0 → 1.51.1
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-B3N69ml2.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-B3N69ml2.esm.js.map +1 -0
- package/dist/chunks/_share-dialog-dependencies-CHbTSPha.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-CHbTSPha.esm.js.map +1 -0
- package/dist/chunks/{beam-errors-fXDkG1zo.esm.d.ts → beam-errors-CCe004HS.esm.d.ts} +2 -7
- package/dist/chunks/beam-errors-Ci0d3926.esm.js +2 -0
- package/dist/chunks/beam-errors-Ci0d3926.esm.js.map +1 -0
- package/dist/chunks/cart-contents-CUgc4y1N.esm.d.ts +18 -0
- package/dist/chunks/cart-contents-DkoytiZh.esm.js +2 -0
- package/dist/chunks/{cart-contents-h60geKWa.esm.js.map → cart-contents-DkoytiZh.esm.js.map} +1 -1
- package/dist/chunks/{css-card-grid-nEc--M5M.esm.js → css-card-grid-B6IEaTiP.esm.js} +2 -2
- package/dist/chunks/{css-card-grid-nEc--M5M.esm.js.map → css-card-grid-B6IEaTiP.esm.js.map} +1 -1
- package/dist/chunks/enforce-config-CQb5MiAV.esm.js +3 -0
- package/dist/chunks/enforce-config-CQb5MiAV.esm.js.map +1 -0
- package/dist/chunks/enforce-config-Cw52SuAc.esm.js +3 -0
- package/dist/chunks/enforce-config-Cw52SuAc.esm.js.map +1 -0
- package/dist/chunks/{events-ZCTR9JGZ.esm.d.ts → events-BKkf9u9l.esm.d.ts} +33 -4
- package/dist/chunks/events-BohmT6Lp.esm.js +2 -0
- package/dist/chunks/events-BohmT6Lp.esm.js.map +1 -0
- package/dist/chunks/{index-JDZQClkA.esm.js → index-BQ4Nr7Ux.esm.js} +2 -2
- package/dist/chunks/{index-JDZQClkA.esm.js.map → index-BQ4Nr7Ux.esm.js.map} +1 -1
- package/dist/chunks/index-B_8DexDX.esm.js +2 -0
- package/dist/chunks/index-B_8DexDX.esm.js.map +1 -0
- package/dist/chunks/{index-v6fG3D6u.esm.d.ts → index-BqBEii8E.esm.d.ts} +1 -1
- package/dist/chunks/index-C-beNpP0.esm.js +2 -0
- package/dist/chunks/index-C-beNpP0.esm.js.map +1 -0
- package/dist/chunks/{index-E8H5A7Qq.esm.js → index-C3hpHWh1.esm.js} +1 -1
- package/dist/chunks/index-C3hpHWh1.esm.js.map +1 -0
- package/dist/chunks/{index-XHm2EBaD.esm.js → index-CFYWEffm.esm.js} +2 -2
- package/dist/chunks/{index-XHm2EBaD.esm.js.map → index-CFYWEffm.esm.js.map} +1 -1
- package/dist/chunks/{index-FQExZDX9.esm.js → index-CFtmDAHb.esm.js} +1 -1
- package/dist/chunks/index-CFtmDAHb.esm.js.map +1 -0
- package/dist/chunks/{index-eXilYHHK.esm.js → index-C_ZNnJIS.esm.js} +2 -2
- package/dist/chunks/{index-eXilYHHK.esm.js.map → index-C_ZNnJIS.esm.js.map} +1 -1
- package/dist/chunks/{index-PA0NAKHV.esm.d.ts → index-CbKkAM6h.esm.d.ts} +1 -1
- package/dist/chunks/index-CbWdmBet.esm.js +2 -0
- package/dist/chunks/index-CbWdmBet.esm.js.map +1 -0
- package/dist/chunks/index-CpPbNdWA.esm.js +2 -0
- package/dist/chunks/index-CpPbNdWA.esm.js.map +1 -0
- package/dist/chunks/index-CyiXyHi8.esm.js +2 -0
- package/dist/chunks/index-CyiXyHi8.esm.js.map +1 -0
- package/dist/chunks/{index-XCMf22lv.esm.js → index-D6qJfs7_.esm.js} +1 -1
- package/dist/chunks/index-D6qJfs7_.esm.js.map +1 -0
- package/dist/chunks/index-DhtZDPvk.esm.js +2 -0
- package/dist/chunks/index-DhtZDPvk.esm.js.map +1 -0
- package/dist/chunks/index-Dnm34FcO.esm.d.ts +46 -0
- package/dist/chunks/index-DvbUE31b.esm.d.ts +46 -0
- package/dist/chunks/index-GcpuX_TZ.esm.js +2 -0
- package/dist/chunks/index-GcpuX_TZ.esm.js.map +1 -0
- package/dist/chunks/index-JSoHc6g1.esm.js +2 -0
- package/dist/chunks/index-JSoHc6g1.esm.js.map +1 -0
- package/dist/chunks/index-MS8_Vije.esm.d.ts +15 -0
- package/dist/chunks/index-XZRQN4Rs.esm.js +2 -0
- package/dist/chunks/index-XZRQN4Rs.esm.js.map +1 -0
- package/dist/chunks/{index-JJjxnRZK.esm.js → index-kDoWfjd5.esm.js} +2 -2
- package/dist/chunks/{index-JJjxnRZK.esm.js.map → index-kDoWfjd5.esm.js.map} +1 -1
- package/dist/chunks/index-n7pxZENA.esm.js +2 -0
- package/dist/chunks/index-n7pxZENA.esm.js.map +1 -0
- package/dist/chunks/{index-PiMq5a49.esm.js → index-oGObXjk6.esm.js} +1 -1
- package/dist/chunks/index-oGObXjk6.esm.js.map +1 -0
- package/dist/chunks/{index--z5MSe4-.esm.d.ts → index-v0tUXySN.esm.d.ts} +3 -2
- package/dist/chunks/{is-all-html-elements-SdSkxirh.esm.js → is-all-html-elements-fcB7UUA1.esm.js} +1 -1
- package/dist/chunks/{is-all-html-elements-SdSkxirh.esm.js.map → is-all-html-elements-fcB7UUA1.esm.js.map} +1 -1
- package/dist/chunks/lit-5uUWs2aX.esm.js +34 -0
- package/dist/chunks/{lit-iNN5L_Qk.esm.js.map → lit-5uUWs2aX.esm.js.map} +1 -1
- package/dist/chunks/loading-template-DXNS89Th.esm.js +2 -0
- package/dist/chunks/{loading-template-t4fFsYtr.esm.js.map → loading-template-DXNS89Th.esm.js.map} +1 -1
- package/dist/chunks/{localize-m-_ESmpk.esm.js → localize-CQCRjY9s.esm.js} +6 -6
- package/dist/chunks/{localize-m-_ESmpk.esm.js.map → localize-CQCRjY9s.esm.js.map} +1 -1
- package/dist/chunks/{localize-o-cYvHQf.esm.js → localize-cDQFOecn.esm.js} +6 -6
- package/dist/chunks/{localize-o-cYvHQf.esm.js.map → localize-cDQFOecn.esm.js.map} +1 -1
- package/dist/chunks/lodash-7H4x2457.esm.js +2 -0
- package/dist/chunks/lodash-7H4x2457.esm.js.map +1 -0
- package/dist/chunks/{openapi-spec-hjdK2L9Q.esm.d.ts → openapi-spec-VAt3phhg.esm.d.ts} +332 -0
- package/dist/chunks/order-page-CMGPM57D.esm.js +2 -0
- package/dist/chunks/order-page-CMGPM57D.esm.js.map +1 -0
- package/dist/chunks/order-page-FzVtMkga.esm.js +2 -0
- package/dist/chunks/order-page-FzVtMkga.esm.js.map +1 -0
- package/dist/chunks/{order-page-9clVUPaS.esm.d.ts → order-page-tSPKLQ24.esm.d.ts} +11 -8
- package/dist/chunks/{progress-bar-PMU_xI3L.esm.js → progress-bar-oJB_t7od.esm.js} +4 -4
- package/dist/chunks/{progress-bar-PMU_xI3L.esm.js.map → progress-bar-oJB_t7od.esm.js.map} +1 -1
- package/dist/chunks/promo-pill-label-D9ptiGak.esm.js +16 -0
- package/dist/chunks/{promo-pill-label-P1X4xeAx.esm.js.map → promo-pill-label-D9ptiGak.esm.js.map} +1 -1
- package/dist/chunks/promo-types-C1unMpo2.esm.d.ts +14 -0
- package/dist/chunks/promoManager-B9cTR1R3.esm.js +2 -0
- package/dist/chunks/promoManager-B9cTR1R3.esm.js.map +1 -0
- package/dist/chunks/promoManager-fl54hq13.esm.js +2 -0
- package/dist/chunks/promoManager-fl54hq13.esm.js.map +1 -0
- package/dist/chunks/{responsive-2lC2Wrtg.esm.js → responsive-9jAzOYoE.esm.js} +2 -2
- package/dist/chunks/{responsive-2lC2Wrtg.esm.js.map → responsive-9jAzOYoE.esm.js.map} +1 -1
- package/dist/chunks/routes-CaSRr919.esm.js +2 -0
- package/dist/chunks/routes-CaSRr919.esm.js.map +1 -0
- package/dist/chunks/{routes-iurI6dvR.esm.d.ts → routes-DDRd747e.esm.d.ts} +76 -3
- package/dist/chunks/routes-KHEaM_40.esm.js +2 -0
- package/dist/chunks/routes-KHEaM_40.esm.js.map +1 -0
- package/dist/chunks/{share-button-k_Xn5956.esm.js → share-button-BbG-gnwj.esm.js} +4 -4
- package/dist/chunks/{share-button-diP8wKOc.esm.js.map → share-button-BbG-gnwj.esm.js.map} +1 -1
- package/dist/chunks/{share-button-diP8wKOc.esm.js → share-button-CvTUluNq.esm.js} +4 -4
- package/dist/chunks/{share-button-k_Xn5956.esm.js.map → share-button-CvTUluNq.esm.js.map} +1 -1
- package/dist/chunks/{share-button-hDn8fnBI.esm.d.ts → share-button-DBVhw4qa.esm.d.ts} +1 -1
- package/dist/chunks/{share-button-SNvuFDC9.esm.js → share-button-R7jgVCPv.esm.js} +1 -1
- package/dist/chunks/{share-button-SNvuFDC9.esm.js.map → share-button-R7jgVCPv.esm.js.map} +1 -1
- package/dist/chunks/{types-zbTZ8-KP.esm.d.ts → types-CPxMwnoR.esm.d.ts} +5 -1
- package/dist/chunks/update-cart-3JFUCJLD.esm.js +2 -0
- package/dist/chunks/update-cart-3JFUCJLD.esm.js.map +1 -0
- package/dist/chunks/update-cart-DNfl9QP2.esm.js +2 -0
- package/dist/chunks/update-cart-DNfl9QP2.esm.js.map +1 -0
- package/dist/chunks/{update-cart-l86bU5uS.esm.d.ts → update-cart-NiToHHJH.esm.d.ts} +2 -2
- package/dist/chunks/{vendor-GKiOHg2N.esm.js → vendor-DRA8u-S7.esm.js} +2 -2
- package/dist/chunks/{vendor-GKiOHg2N.esm.js.map → vendor-DRA8u-S7.esm.js.map} +1 -1
- package/dist/components/beam-partner-logos.d.ts +1 -1
- package/dist/components/beam-partner-logos.esm.js +4 -4
- package/dist/components/beam-partner-logos.esm.js.map +1 -1
- package/dist/components/beam-partner-logos.js +4 -4
- package/dist/components/beam-partner-logos.js.map +1 -1
- package/dist/components/community-impact.d.ts +3 -3
- package/dist/components/community-impact.esm.js +13 -13
- package/dist/components/community-impact.esm.js.map +1 -1
- package/dist/components/community-impact.js +13 -13
- package/dist/components/community-impact.js.map +1 -1
- package/dist/components/cumulative-impact.d.ts +2 -2
- package/dist/components/cumulative-impact.esm.js +8 -8
- package/dist/components/cumulative-impact.esm.js.map +1 -1
- package/dist/components/cumulative-impact.js +8 -8
- package/dist/components/cumulative-impact.js.map +1 -1
- package/dist/components/impact-overview.d.ts +9 -5
- package/dist/components/impact-overview.esm.js +19 -19
- package/dist/components/impact-overview.esm.js.map +1 -1
- package/dist/components/impact-overview.js +19 -19
- package/dist/components/impact-overview.js.map +1 -1
- package/dist/components/index.d.ts +8 -8
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/post-purchase.d.ts +15 -7
- package/dist/components/post-purchase.esm.js +4 -4
- package/dist/components/post-purchase.esm.js.map +1 -1
- package/dist/components/post-purchase.js +4 -4
- package/dist/components/post-purchase.js.map +1 -1
- package/dist/components/product-details-page.d.ts +25 -7
- package/dist/components/product-details-page.esm.js +39 -28
- package/dist/components/product-details-page.esm.js.map +1 -1
- package/dist/components/product-details-page.js +39 -28
- package/dist/components/product-details-page.js.map +1 -1
- package/dist/components/redeem-transaction.d.ts +8 -17
- package/dist/components/redeem-transaction.esm.js +27 -27
- package/dist/components/redeem-transaction.esm.js.map +1 -1
- package/dist/components/redeem-transaction.js +27 -27
- package/dist/components/redeem-transaction.js.map +1 -1
- package/dist/components/select-nonprofit.d.ts +13 -6
- package/dist/components/select-nonprofit.esm.js +50 -45
- package/dist/components/select-nonprofit.esm.js.map +1 -1
- package/dist/components/select-nonprofit.js +50 -45
- package/dist/components/select-nonprofit.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.d.ts +3 -3
- package/dist/components/select-subscription-nonprofit.esm.js +13 -13
- package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.js +13 -13
- package/dist/components/select-subscription-nonprofit.js.map +1 -1
- package/dist/components/shopify.d.ts +12 -11
- package/dist/components/shopify.esm.js +1 -1
- package/dist/components/shopify.esm.js.map +1 -1
- package/dist/components/shopify.js +1 -1
- package/dist/components/shopify.js.map +1 -1
- package/dist/components/social-share.d.ts +3 -3
- package/dist/components/social-share.esm.js +3 -3
- package/dist/components/social-share.esm.js.map +1 -1
- package/dist/components/social-share.js +3 -3
- package/dist/components/social-share.js.map +1 -1
- package/dist/components/subscription-impact.d.ts +5 -4
- package/dist/components/subscription-impact.esm.js +16 -16
- package/dist/components/subscription-impact.esm.js.map +1 -1
- package/dist/components/subscription-impact.js +16 -16
- package/dist/components/subscription-impact.js.map +1 -1
- package/dist/components/subscription-management.d.ts +18 -7
- package/dist/components/subscription-management.esm.js +9 -9
- package/dist/components/subscription-management.esm.js.map +1 -1
- package/dist/components/subscription-management.js +9 -9
- package/dist/components/subscription-management.js.map +1 -1
- package/dist/index.d.ts +23 -21
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/beam.d.ts +1 -1
- package/dist/integrations/beam.esm.js +1 -1
- package/dist/integrations/beam.esm.js.map +1 -1
- package/dist/integrations/beam.js +1 -1
- package/dist/integrations/beam.js.map +1 -1
- package/dist/integrations/cart.d.ts +4 -4
- package/dist/integrations/cart.esm.js +1 -1
- package/dist/integrations/cart.js +1 -1
- package/dist/integrations/index.d.ts +19 -17
- package/dist/integrations/index.esm.js +1 -1
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/logs.d.ts +2 -2
- package/dist/integrations/logs.esm.js +1 -1
- package/dist/integrations/logs.js +1 -1
- package/dist/integrations/promoManager.d.ts +36 -0
- package/dist/integrations/promoManager.esm.js +2 -0
- package/dist/integrations/promoManager.esm.js.map +1 -0
- package/dist/integrations/promoManager.js +2 -0
- package/dist/integrations/promoManager.js.map +1 -0
- package/dist/integrations/session.d.ts +1 -1
- package/dist/integrations/session.esm.js +1 -1
- package/dist/integrations/session.js +1 -1
- package/dist/integrations/shopify.d.ts +10 -10
- package/dist/integrations/shopify.esm.js +1 -1
- package/dist/integrations/shopify.js +1 -1
- package/dist/integrations/statsig.d.ts +1 -1
- package/dist/integrations/statsig.esm.js +2 -2
- package/dist/integrations/statsig.esm.js.map +1 -1
- package/dist/integrations/statsig.js +2 -2
- package/dist/integrations/statsig.js.map +1 -1
- package/dist/integrations/utils.d.ts +7 -5
- package/dist/integrations/utils.esm.js +1 -1
- package/dist/integrations/utils.js +1 -1
- package/dist/react/beam-partner-logos.d.ts +1 -1
- package/dist/react/beam-partner-logos.esm.js +1 -1
- package/dist/react/beam-partner-logos.js +1 -1
- package/dist/react/community-impact.d.ts +3 -3
- package/dist/react/community-impact.esm.js +1 -1
- package/dist/react/community-impact.js +1 -1
- package/dist/react/cumulative-impact.d.ts +2 -2
- package/dist/react/cumulative-impact.esm.js +1 -1
- package/dist/react/cumulative-impact.js +1 -1
- package/dist/react/impact-overview.d.ts +4 -4
- package/dist/react/impact-overview.esm.js +1 -1
- package/dist/react/impact-overview.esm.js.map +1 -1
- package/dist/react/impact-overview.js +1 -1
- package/dist/react/impact-overview.js.map +1 -1
- package/dist/react/index.d.ts +10 -9
- package/dist/react/index.esm.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/post-purchase.d.ts +7 -7
- package/dist/react/post-purchase.esm.js +1 -1
- package/dist/react/post-purchase.esm.js.map +1 -1
- package/dist/react/post-purchase.js +1 -1
- package/dist/react/post-purchase.js.map +1 -1
- package/dist/react/product-details-page.d.ts +3 -3
- package/dist/react/product-details-page.esm.js +1 -1
- package/dist/react/product-details-page.esm.js.map +1 -1
- package/dist/react/product-details-page.js +1 -1
- package/dist/react/product-details-page.js.map +1 -1
- package/dist/react/redeem-transaction.d.ts +8 -7
- package/dist/react/redeem-transaction.esm.js +1 -1
- package/dist/react/redeem-transaction.js +1 -1
- package/dist/react/select-nonprofit.d.ts +8 -7
- package/dist/react/select-nonprofit.esm.js +1 -1
- package/dist/react/select-nonprofit.esm.js.map +1 -1
- package/dist/react/select-nonprofit.js +1 -1
- package/dist/react/select-nonprofit.js.map +1 -1
- package/dist/react/select-subscription-nonprofit.d.ts +7 -6
- package/dist/react/select-subscription-nonprofit.esm.js +1 -1
- package/dist/react/select-subscription-nonprofit.js +1 -1
- package/dist/react/social-share.d.ts +3 -3
- package/dist/react/social-share.esm.js +1 -1
- package/dist/react/social-share.esm.js.map +1 -1
- package/dist/react/social-share.js +1 -1
- package/dist/react/social-share.js.map +1 -1
- package/dist/react/subscription-impact.d.ts +4 -4
- package/dist/react/subscription-impact.esm.js +1 -1
- package/dist/react/subscription-impact.js +1 -1
- package/dist/react/subscription-management.d.ts +7 -7
- package/dist/react/subscription-management.esm.js +1 -1
- package/dist/react/subscription-management.js +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/cart.esm.js +1 -1
- package/dist/utils/cart.js +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/debounce.esm.js +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/events.d.ts +5 -4
- package/dist/utils/events.esm.js +1 -1
- package/dist/utils/events.js +1 -1
- package/dist/utils/index.d.ts +7 -5
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/is-equal.esm.js +1 -1
- package/dist/utils/is-equal.js +1 -1
- package/dist/utils/local-storage.esm.js +1 -1
- package/dist/utils/local-storage.js +1 -1
- package/dist/utils/memoize-last.esm.js +1 -1
- package/dist/utils/memoize-last.esm.js.map +1 -1
- package/dist/utils/memoize-last.js +1 -1
- package/dist/utils/memoize-last.js.map +1 -1
- package/dist/utils/network-listeners.esm.js +1 -1
- package/dist/utils/network-listeners.esm.js.map +1 -1
- package/dist/utils/network-listeners.js +1 -1
- package/dist/utils/network-listeners.js.map +1 -1
- package/dist/utils/promoManager.d.ts +123 -0
- package/dist/utils/promoManager.esm.js +2 -0
- package/dist/utils/promoManager.esm.js.map +1 -0
- package/dist/utils/promoManager.js +2 -0
- package/dist/utils/promoManager.js.map +1 -0
- 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 +4 -4
- package/dist/chunks/_share-dialog-dependencies-2jzbs44g.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-2jzbs44g.esm.js.map +0 -1
- package/dist/chunks/_share-dialog-dependencies-C8uChjuF.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-C8uChjuF.esm.js.map +0 -1
- package/dist/chunks/beam-errors-P-Lu07Ce.esm.js +0 -2
- package/dist/chunks/beam-errors-P-Lu07Ce.esm.js.map +0 -1
- package/dist/chunks/cart-contents-CMm57qu0.esm.d.ts +0 -11
- package/dist/chunks/cart-contents-h60geKWa.esm.js +0 -2
- package/dist/chunks/enforce-config-ZAI7WYAd.esm.js +0 -3
- package/dist/chunks/enforce-config-ZAI7WYAd.esm.js.map +0 -1
- package/dist/chunks/enforce-config-ZyPq_4CF.esm.js +0 -3
- package/dist/chunks/enforce-config-ZyPq_4CF.esm.js.map +0 -1
- package/dist/chunks/events-6Z5MkCRr.esm.js +0 -2
- package/dist/chunks/events-6Z5MkCRr.esm.js.map +0 -1
- package/dist/chunks/index-2bLOkP4H.esm.d.ts +0 -32
- package/dist/chunks/index-CsWTfuok.esm.js +0 -2
- package/dist/chunks/index-CsWTfuok.esm.js.map +0 -1
- package/dist/chunks/index-E8H5A7Qq.esm.js.map +0 -1
- package/dist/chunks/index-FQExZDX9.esm.js.map +0 -1
- package/dist/chunks/index-GynYZRPI.esm.d.ts +0 -32
- package/dist/chunks/index-M7Ut5U3j.esm.js +0 -2
- package/dist/chunks/index-M7Ut5U3j.esm.js.map +0 -1
- package/dist/chunks/index-MIp7LlXH.esm.js +0 -2
- package/dist/chunks/index-MIp7LlXH.esm.js.map +0 -1
- package/dist/chunks/index-PiMq5a49.esm.js.map +0 -1
- package/dist/chunks/index-WvOCqhxv.esm.js +0 -2
- package/dist/chunks/index-WvOCqhxv.esm.js.map +0 -1
- package/dist/chunks/index-XCMf22lv.esm.js.map +0 -1
- package/dist/chunks/index-XH3OS_sy.esm.d.ts +0 -15
- package/dist/chunks/index-YJNgLCif.esm.js +0 -2
- package/dist/chunks/index-YJNgLCif.esm.js.map +0 -1
- package/dist/chunks/index-a6oXV2ro.esm.js +0 -2
- package/dist/chunks/index-a6oXV2ro.esm.js.map +0 -1
- package/dist/chunks/index-dkwGkvOu.esm.js +0 -2
- package/dist/chunks/index-dkwGkvOu.esm.js.map +0 -1
- package/dist/chunks/index-iK195-B9.esm.js +0 -2
- package/dist/chunks/index-iK195-B9.esm.js.map +0 -1
- package/dist/chunks/index-nstmHC95.esm.js +0 -2
- package/dist/chunks/index-nstmHC95.esm.js.map +0 -1
- package/dist/chunks/index-vq14EaW4.esm.js +0 -2
- package/dist/chunks/index-vq14EaW4.esm.js.map +0 -1
- package/dist/chunks/lit-iNN5L_Qk.esm.js +0 -34
- package/dist/chunks/loading-template-t4fFsYtr.esm.js +0 -2
- package/dist/chunks/lodash-P8OIs-at.esm.js +0 -2
- package/dist/chunks/lodash-P8OIs-at.esm.js.map +0 -1
- package/dist/chunks/order-page-Z3WcYluU.esm.js +0 -2
- package/dist/chunks/order-page-Z3WcYluU.esm.js.map +0 -1
- package/dist/chunks/order-page-rrfJ4w9F.esm.js +0 -2
- package/dist/chunks/order-page-rrfJ4w9F.esm.js.map +0 -1
- package/dist/chunks/promo-pill-label-P1X4xeAx.esm.js +0 -16
- package/dist/chunks/routes-Dmf2ZNnZ.esm.js +0 -2
- package/dist/chunks/routes-Dmf2ZNnZ.esm.js.map +0 -1
- package/dist/chunks/routes-o1QpF40R.esm.js +0 -2
- package/dist/chunks/routes-o1QpF40R.esm.js.map +0 -1
- package/dist/chunks/shoelace-components-wBxNHnyr.esm.js +0 -2
- package/dist/chunks/shoelace-components-wBxNHnyr.esm.js.map +0 -1
- package/dist/chunks/shoelace-components-xrhk189_.esm.js +0 -2
- package/dist/chunks/shoelace-components-xrhk189_.esm.js.map +0 -1
- package/dist/chunks/update-cart-EGTcbNRX.esm.js +0 -2
- package/dist/chunks/update-cart-EGTcbNRX.esm.js.map +0 -1
- package/dist/chunks/update-cart-FwtFnnGe.esm.js +0 -2
- package/dist/chunks/update-cart-FwtFnnGe.esm.js.map +0 -1
- /package/dist/chunks/{index-EGiUuWe-.esm.d.ts → index-C-hPf29c.esm.d.ts} +0 -0
- /package/dist/chunks/{index-hn6JhG_w.esm.d.ts → index-DXj15KHe.esm.d.ts} +0 -0
- /package/dist/chunks/{index-mTXm0DPh.esm.d.ts → index-DbaDUPup.esm.d.ts} +0 -0
- /package/dist/chunks/{progress-bar-0VS_AmEf.esm.d.ts → progress-bar-CveZ8E6Q.esm.d.ts} +0 -0
- /package/dist/chunks/{promo-pill-label-3bA1z-la.esm.d.ts → promo-pill-label-BXRqZHET.esm.d.ts} +0 -0
- /package/dist/chunks/{types-aju0qrRe.esm.d.ts → types-C7gqAyyH.esm.d.ts} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as c,s as i}from"./vendor-DRA8u-S7.esm.js";import{l as t}from"./routes-KHEaM_40.esm.js";import"./lit-5uUWs2aX.esm.js";import"./beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";const s="https://sdk.beamimpact.com",a=`${s}/lib/shoelace/v${t["@shoelace-style/shoelace"]}`,o=`${s}/lib/lucide-static/v${t["lucide-static"]}`;if(c("lucide",{resolver:e=>`${o}/icons/${e}.svg`}),i(a),document&&!document.querySelector("link[data-beam-impact]")){const e=document.createElement("link");e.href=`${a}/themes/light.css`,e.rel="stylesheet",e.setAttribute("data-beam-impact","true"),document.head.appendChild(e)}
|
|
2
|
+
//# sourceMappingURL=_share-dialog-dependencies-B3N69ml2.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_share-dialog-dependencies-B3N69ml2.esm.js","sources":["../../src/shared/shoelace-components.ts"],"sourcesContent":["/**\n * Shoelace is a utility library for web components like icons, dialogs, buttons, etc.\n * https://shoelace.style/\n */\n\nimport { setBasePath } from \"@shoelace-style/shoelace/dist/utilities/base-path.js\";\nimport { registerIconLibrary } from \"@shoelace-style/shoelace/dist/utilities/icon-library.js\";\nimport { dependencies } from \"../../package.json\";\n\nconst CDN_BASE = \"https://sdk.beamimpact.com\";\nconst SHOELACE_BASE = `${CDN_BASE}/lib/shoelace/v${dependencies[\"@shoelace-style/shoelace\"]}`;\nconst ICON_BASE = `${CDN_BASE}/lib/lucide-static/v${dependencies[\"lucide-static\"]}`;\n\nregisterIconLibrary(\"lucide\", {\n resolver: (name: string) => `${ICON_BASE}/icons/${name}.svg`,\n});\n\nsetBasePath(SHOELACE_BASE);\n\nif (document && !document.querySelector(\"link[data-beam-impact]\")) {\n const stylesheet = document.createElement(\"link\");\n stylesheet.href = `${SHOELACE_BASE}/themes/light.css`;\n stylesheet.rel = \"stylesheet\";\n stylesheet.setAttribute(\"data-beam-impact\", \"true\");\n document.head.appendChild(stylesheet);\n}\n"],"names":["CDN_BASE","SHOELACE_BASE","dependencies","ICON_BASE","registerIconLibrary","name","setBasePath","stylesheet"],"mappings":"gMASA,MAAMA,EAAW,6BACXC,EAAgB,GAAGD,CAAQ,kBAAkBE,EAAa,0BAA0B,CAAC,GACrFC,EAAY,GAAGH,CAAQ,uBAAuBE,EAAa,eAAe,CAAC,GAQjF,GANAE,EAAoB,SAAU,CAC5B,SAAWC,GAAiB,GAAGF,CAAS,UAAUE,CAAI,MACxD,CAAC,EAEDC,EAAYL,CAAa,EAErB,UAAY,CAAC,SAAS,cAAc,wBAAwB,EAAG,CACjE,MAAMM,EAAa,SAAS,cAAc,MAAM,EAChDA,EAAW,KAAO,GAAGN,CAAa,oBAClCM,EAAW,IAAM,aACjBA,EAAW,aAAa,mBAAoB,MAAM,EAClD,SAAS,KAAK,YAAYA,CAAU,CACtC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as c,s as i}from"./vendor-DRA8u-S7.esm.js";import{l as t}from"./routes-CaSRr919.esm.js";import"./lit-5uUWs2aX.esm.js";import"./beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";const s="https://sdk.beamimpact.com",a=`${s}/lib/shoelace/v${t["@shoelace-style/shoelace"]}`,o=`${s}/lib/lucide-static/v${t["lucide-static"]}`;if(c("lucide",{resolver:e=>`${o}/icons/${e}.svg`}),i(a),document&&!document.querySelector("link[data-beam-impact]")){const e=document.createElement("link");e.href=`${a}/themes/light.css`,e.rel="stylesheet",e.setAttribute("data-beam-impact","true"),document.head.appendChild(e)}
|
|
2
|
+
//# sourceMappingURL=_share-dialog-dependencies-CHbTSPha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_share-dialog-dependencies-CHbTSPha.esm.js","sources":["../../src/shared/shoelace-components.ts"],"sourcesContent":["/**\n * Shoelace is a utility library for web components like icons, dialogs, buttons, etc.\n * https://shoelace.style/\n */\n\nimport { setBasePath } from \"@shoelace-style/shoelace/dist/utilities/base-path.js\";\nimport { registerIconLibrary } from \"@shoelace-style/shoelace/dist/utilities/icon-library.js\";\nimport { dependencies } from \"../../package.json\";\n\nconst CDN_BASE = \"https://sdk.beamimpact.com\";\nconst SHOELACE_BASE = `${CDN_BASE}/lib/shoelace/v${dependencies[\"@shoelace-style/shoelace\"]}`;\nconst ICON_BASE = `${CDN_BASE}/lib/lucide-static/v${dependencies[\"lucide-static\"]}`;\n\nregisterIconLibrary(\"lucide\", {\n resolver: (name: string) => `${ICON_BASE}/icons/${name}.svg`,\n});\n\nsetBasePath(SHOELACE_BASE);\n\nif (document && !document.querySelector(\"link[data-beam-impact]\")) {\n const stylesheet = document.createElement(\"link\");\n stylesheet.href = `${SHOELACE_BASE}/themes/light.css`;\n stylesheet.rel = \"stylesheet\";\n stylesheet.setAttribute(\"data-beam-impact\", \"true\");\n document.head.appendChild(stylesheet);\n}\n"],"names":["CDN_BASE","SHOELACE_BASE","dependencies","ICON_BASE","registerIconLibrary","name","setBasePath","stylesheet"],"mappings":"oMASA,MAAMA,EAAW,6BACXC,EAAgB,GAAGD,CAAQ,kBAAkBE,EAAa,0BAA0B,CAAC,GACrFC,EAAY,GAAGH,CAAQ,uBAAuBE,EAAa,eAAe,CAAC,GAQjF,GANAE,EAAoB,SAAU,CAC5B,SAAWC,GAAiB,GAAGF,CAAS,UAAUE,CAAI,MACxD,CAAC,EAEDC,EAAYL,CAAa,EAErB,UAAY,CAAC,SAAS,cAAc,wBAAwB,EAAG,CACjE,MAAMM,EAAa,SAAS,cAAc,MAAM,EAChDA,EAAW,KAAO,GAAGN,CAAa,oBAClCM,EAAW,IAAM,aACjBA,EAAW,aAAa,mBAAoB,MAAM,EAClD,SAAS,KAAK,YAAYA,CAAU,CACtC"}
|
|
@@ -16,9 +16,6 @@ declare class MissingConfig extends BeamError {
|
|
|
16
16
|
missingConfigKeyNames: string[];
|
|
17
17
|
constructor(missingConfigKeyNames?: string[], msg?: string);
|
|
18
18
|
}
|
|
19
|
-
declare class InvalidAttributeCombinationError extends BeamError {
|
|
20
|
-
constructor(msg?: string);
|
|
21
|
-
}
|
|
22
19
|
declare class LocalStorageError extends BeamError {
|
|
23
20
|
constructor(msg?: string);
|
|
24
21
|
}
|
|
@@ -28,8 +25,6 @@ declare class SetupError extends BeamError {
|
|
|
28
25
|
|
|
29
26
|
type beamErrors_BeamError = BeamError;
|
|
30
27
|
declare const beamErrors_BeamError: typeof BeamError;
|
|
31
|
-
type beamErrors_InvalidAttributeCombinationError = InvalidAttributeCombinationError;
|
|
32
|
-
declare const beamErrors_InvalidAttributeCombinationError: typeof InvalidAttributeCombinationError;
|
|
33
28
|
type beamErrors_LocalStorageError = LocalStorageError;
|
|
34
29
|
declare const beamErrors_LocalStorageError: typeof LocalStorageError;
|
|
35
30
|
type beamErrors_MissingConfig = MissingConfig;
|
|
@@ -39,7 +34,7 @@ declare const beamErrors_NetworkError: typeof NetworkError;
|
|
|
39
34
|
type beamErrors_SetupError = SetupError;
|
|
40
35
|
declare const beamErrors_SetupError: typeof SetupError;
|
|
41
36
|
declare namespace beamErrors {
|
|
42
|
-
export { beamErrors_BeamError as BeamError,
|
|
37
|
+
export { beamErrors_BeamError as BeamError, beamErrors_LocalStorageError as LocalStorageError, beamErrors_MissingConfig as MissingConfig, beamErrors_NetworkError as NetworkError, beamErrors_SetupError as SetupError };
|
|
43
38
|
}
|
|
44
39
|
|
|
45
|
-
export { BeamError as B,
|
|
40
|
+
export { BeamError as B, LocalStorageError as L, MissingConfig as M, NetworkError as N, SetupError as S, beamErrors as b };
|
|
@@ -0,0 +1,2 @@
|
|
|
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-Ci0d3926.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beam-errors-Ci0d3926.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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { p as paths } from './openapi-spec-VAt3phhg.esm.js';
|
|
2
|
+
|
|
3
|
+
type TCartApi = paths["/chain/findEligibleNonprofitsForCart"]["post"]["requestBody"]["content"]["application/json"]["cart"];
|
|
4
|
+
type TCart = TCartApi & {
|
|
5
|
+
content: {
|
|
6
|
+
items: Record<string, any>[];
|
|
7
|
+
discounts?: Record<string, any>[] | undefined | null;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type TBeamCartLocalStorage = {
|
|
11
|
+
cartId: string;
|
|
12
|
+
beamCartId?: string;
|
|
13
|
+
subtotal: number;
|
|
14
|
+
itemCount: number;
|
|
15
|
+
currencyCode: string;
|
|
16
|
+
} & TCart;
|
|
17
|
+
|
|
18
|
+
export type { TCart as T, TCartApi as a, TBeamCartLocalStorage as b };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-contents-
|
|
1
|
+
{"version":3,"file":"cart-contents-DkoytiZh.esm.js","sources":["../../src/shared/cart-contents.ts"],"sourcesContent":["import { paths } from \"../api-sdk/v3/openapi-spec\";\n\nexport type TCartApi =\n paths[\"/chain/findEligibleNonprofitsForCart\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"][\"cart\"];\n\n// Same as type from API but with non-optional fields, so we can use where Shopify guarantees values\nexport type TCart = TCartApi & {\n content: {\n items: Record<string, any>[];\n discounts?: Record<string, any>[] | undefined | null;\n };\n};\n\nexport type TCartItems = TCart[\"content\"][\"items\"];\n\nexport type TCartDiscounts = TCart[\"content\"][\"discounts\"];\n\nexport type TBeamCartLocalStorage = {\n cartId: string;\n beamCartId?: string;\n subtotal: number;\n itemCount: number;\n currencyCode: string;\n} & TCart;\n\nexport const BEAM_CART_COOKIE_NAME = \"beam_cart\";\n\nexport type Discount = {\n code: string;\n applicable: boolean;\n};\n"],"names":["BEAM_CART_COOKIE_NAME"],"mappings":"AAyBO,MAAMA,EAAwB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as a,f as g}from"./lit-5uUWs2aX.esm.js";const o=({className:i="cardGrid",gap:t="30px",columnCount:r=2,itemMinWidth:d="300px"}={})=>g`
|
|
2
2
|
.${a(i)} {
|
|
3
3
|
--grid-layout-gap: ${a(t)};
|
|
4
4
|
--grid-column-count: ${a(r)};
|
|
@@ -17,4 +17,4 @@ import{f as g,j as a}from"./lit-iNN5L_Qk.esm.js";const o=({className:i="cardGrid
|
|
|
17
17
|
grid-auto-rows: 1fr; /* make all the rows the same height */
|
|
18
18
|
}
|
|
19
19
|
`;export{o as c};
|
|
20
|
-
//# sourceMappingURL=css-card-grid-
|
|
20
|
+
//# sourceMappingURL=css-card-grid-B6IEaTiP.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-card-grid-
|
|
1
|
+
{"version":3,"file":"css-card-grid-B6IEaTiP.esm.js","sources":["../../src/shared/fragments/css-card-grid.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\n\nexport const cssCardGrid = ({\n className = \"cardGrid\",\n gap = \"30px\",\n columnCount = 2,\n itemMinWidth = \"300px\",\n}: { className?: string; gap?: string; columnCount?: number | string; itemMinWidth?: string } = {}) => css`\n .${unsafeCSS(className)} {\n --grid-layout-gap: ${unsafeCSS(gap)};\n --grid-column-count: ${unsafeCSS(columnCount)};\n --grid-item--min-width: ${unsafeCSS(itemMinWidth)};\n\n --gap-count: calc(var(--grid-column-count) - 1);\n --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));\n --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));\n\n display: grid;\n grid-template-columns: repeat(\n auto-fill,\n minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr)\n );\n grid-gap: var(--grid-layout-gap);\n grid-auto-rows: 1fr; /* make all the rows the same height */\n }\n`;\n"],"names":["cssCardGrid","className","gap","columnCount","itemMinWidth","css","unsafeCSS"],"mappings":"iDAEa,MAAAA,EAAc,CAAC,CAC1B,UAAAC,EAAY,WACZ,IAAAC,EAAM,OACN,YAAAC,EAAc,EACd,aAAAC,EAAe,OACjB,EAAgG,CAAA,IAAOC;AAAAA,KAClGC,EAAUL,CAAS,CAAC;AAAA,yBACAK,EAAUJ,CAAG,CAAC;AAAA,2BACZI,EAAUH,CAAW,CAAC;AAAA,8BACnBG,EAAUF,CAAY,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{f as n}from"./lit-5uUWs2aX.esm.js";import{M as s}from"./beam-errors-Ci0d3926.esm.js";import{logger as a}from"../utils/logger.js";const l=n`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 f(i,e=i.tagName){customElements.get(e)||customElements.define(e,i)}function d(i,e){const t=[],r=e;for(const o of i)r[o]==null&&t.push(o);if(t.length>0)throw a.error(`Beam Impact - Missing Required Config Values:
|
|
2
|
+
`,t.join(", "),e),new s(t);return!0}function h(i,e){return i.every(t=>t in e&&e[t]!=null)}export{h as a,l as c,f as d,d as e};
|
|
3
|
+
//# sourceMappingURL=enforce-config-CQb5MiAV.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-config-CQb5MiAV.esm.js","sources":["../../src/shared/css-reset.ts","../../src/shared/defineCustomElement.ts","../../src/shared/enforce-config.ts"],"sourcesContent":["import { css } from \"lit\";\n\n// minireset.css v0.0.7 | MIT License | github.com/jgthms/minireset.css\n// prettier-ignore\nexport const cssReset = css`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}`;\n","/**\n * Defines a custom element based on its static tagName property\n */\nexport function defineCustomElement(\n CustomElementClass: CustomElementConstructor & { tagName: string },\n tagName = CustomElementClass[\"tagName\"]\n) {\n customElements.get(tagName) || customElements.define(tagName, CustomElementClass);\n}\n","import { MissingConfig } from \"../utils/beam-errors\";\nimport { logger } from \"../utils/logger\";\n\nexport function enforceConfig<T>(keys: (keyof T)[], input: unknown): input is Required<T> {\n const missingKeys: string[] = [];\n const check = input as Record<string | number | symbol, unknown>;\n for (const key of keys) {\n if (check[key] == null) {\n missingKeys.push(key as string);\n }\n }\n if (missingKeys.length > 0) {\n logger.error(\"Beam Impact - Missing Required Config Values:\\n\", missingKeys.join(\", \"), input);\n throw new MissingConfig(missingKeys);\n }\n return true;\n}\n\nexport function areRequiredKeysDefined<T extends object>(requiredKeys: (keyof T)[], config: T): boolean {\n return requiredKeys.every((key) => key in config && config[key] != null);\n}\n"],"names":["cssReset","css","defineCustomElement","CustomElementClass","tagName","enforceConfig","keys","input","missingKeys","check","key","logger","MissingConfig","areRequiredKeysDefined","requiredKeys","config"],"mappings":"wIAIO,MAAMA,EAAWC,gaCDjB,SAASC,EACdC,EACAC,EAAUD,EAAmB,QAC7B,CACA,eAAe,IAAIC,CAAO,GAAK,eAAe,OAAOA,EAASD,CAAkB,CAClF,CCLgB,SAAAE,EAAiBC,EAAmBC,EAAsC,CACxF,MAAMC,EAAwB,CAAA,EACxBC,EAAQF,EACd,UAAWG,KAAOJ,EACZG,EAAMC,CAAG,GAAK,MAChBF,EAAY,KAAKE,CAAa,EAGlC,GAAIF,EAAY,OAAS,EACvB,MAAAG,EAAO,MAAM;AAAA,EAAmDH,EAAY,KAAK,IAAI,EAAGD,CAAK,EACvF,IAAIK,EAAcJ,CAAW,EAErC,MAAO,EACT,CAEO,SAASK,EAAyCC,EAA2BC,EAAoB,CACtG,OAAOD,EAAa,MAAOJ,GAAQA,KAAOK,GAAUA,EAAOL,CAAG,GAAK,IAAI,CACzE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{f as n}from"./lit-5uUWs2aX.esm.js";import{M as s}from"./beam-errors-Ci0d3926.esm.js";import{logger as a}from"../utils/logger.esm.js";const l=n`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 f(i,e=i.tagName){customElements.get(e)||customElements.define(e,i)}function d(i,e){const t=[],r=e;for(const o of i)r[o]==null&&t.push(o);if(t.length>0)throw a.error(`Beam Impact - Missing Required Config Values:
|
|
2
|
+
`,t.join(", "),e),new s(t);return!0}function h(i,e){return i.every(t=>t in e&&e[t]!=null)}export{h as a,l as c,f as d,d as e};
|
|
3
|
+
//# sourceMappingURL=enforce-config-Cw52SuAc.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforce-config-Cw52SuAc.esm.js","sources":["../../src/shared/css-reset.ts","../../src/shared/defineCustomElement.ts","../../src/shared/enforce-config.ts"],"sourcesContent":["import { css } from \"lit\";\n\n// minireset.css v0.0.7 | MIT License | github.com/jgthms/minireset.css\n// prettier-ignore\nexport const cssReset = css`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}`;\n","/**\n * Defines a custom element based on its static tagName property\n */\nexport function defineCustomElement(\n CustomElementClass: CustomElementConstructor & { tagName: string },\n tagName = CustomElementClass[\"tagName\"]\n) {\n customElements.get(tagName) || customElements.define(tagName, CustomElementClass);\n}\n","import { MissingConfig } from \"../utils/beam-errors\";\nimport { logger } from \"../utils/logger\";\n\nexport function enforceConfig<T>(keys: (keyof T)[], input: unknown): input is Required<T> {\n const missingKeys: string[] = [];\n const check = input as Record<string | number | symbol, unknown>;\n for (const key of keys) {\n if (check[key] == null) {\n missingKeys.push(key as string);\n }\n }\n if (missingKeys.length > 0) {\n logger.error(\"Beam Impact - Missing Required Config Values:\\n\", missingKeys.join(\", \"), input);\n throw new MissingConfig(missingKeys);\n }\n return true;\n}\n\nexport function areRequiredKeysDefined<T extends object>(requiredKeys: (keyof T)[], config: T): boolean {\n return requiredKeys.every((key) => key in config && config[key] != null);\n}\n"],"names":["cssReset","css","defineCustomElement","CustomElementClass","tagName","enforceConfig","keys","input","missingKeys","check","key","logger","MissingConfig","areRequiredKeysDefined","requiredKeys","config"],"mappings":"4IAIO,MAAMA,EAAWC,gaCDjB,SAASC,EACdC,EACAC,EAAUD,EAAmB,QAC7B,CACA,eAAe,IAAIC,CAAO,GAAK,eAAe,OAAOA,EAASD,CAAkB,CAClF,CCLgB,SAAAE,EAAiBC,EAAmBC,EAAsC,CACxF,MAAMC,EAAwB,CAAA,EACxBC,EAAQF,EACd,UAAWG,KAAOJ,EACZG,EAAMC,CAAG,GAAK,MAChBF,EAAY,KAAKE,CAAa,EAGlC,GAAIF,EAAY,OAAS,EACvB,MAAAG,EAAO,MAAM;AAAA,EAAmDH,EAAY,KAAK,IAAI,EAAGD,CAAK,EACvF,IAAIK,EAAcJ,CAAW,EAErC,MAAO,EACT,CAEO,SAASK,EAAyCC,EAA2BC,EAAoB,CACtG,OAAOD,EAAa,MAAOJ,GAAQA,KAAOK,GAAUA,EAAOL,CAAG,GAAK,IAAI,CACzE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as TCartApi } from './cart-contents-
|
|
2
|
-
import {
|
|
1
|
+
import { a as TCartApi } from './cart-contents-CUgc4y1N.esm.js';
|
|
2
|
+
import { T as TPromoCodeRequest } from './promo-types-C1unMpo2.esm.js';
|
|
3
|
+
import { W as WidgetName, a as TId, H as HelperName } from './types-CPxMwnoR.esm.js';
|
|
3
4
|
|
|
4
5
|
type NetworkEventDetail = {
|
|
5
6
|
url: string;
|
|
@@ -102,6 +103,30 @@ declare class BeamNonprofitSelectionRemovedEvent extends CustomEvent<NonprofitSe
|
|
|
102
103
|
static eventName: "beamnonprofitselectionremoved";
|
|
103
104
|
constructor(detail: NonprofitSelectionRemovedDetail);
|
|
104
105
|
}
|
|
106
|
+
type PromoStoredDetail = {
|
|
107
|
+
promoCodes: TPromoCodeRequest;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Emitted when a URL with query parameters is sanitized and stored in localStorage
|
|
111
|
+
*
|
|
112
|
+
* @event beampromocodesstored
|
|
113
|
+
*/
|
|
114
|
+
declare class BeamPromoCodesStoredEvent extends CustomEvent<PromoStoredDetail> {
|
|
115
|
+
static eventName: string;
|
|
116
|
+
constructor(detail: PromoStoredDetail);
|
|
117
|
+
}
|
|
118
|
+
type WidgetStoredPromosDetail = {
|
|
119
|
+
source?: WidgetName | HelperName | null;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when a widget stores the url or manual promoCodes in local storage
|
|
123
|
+
*
|
|
124
|
+
* @event beamwidgetstoredpromocodes
|
|
125
|
+
*/
|
|
126
|
+
declare class BeamWidgetStoredPromoCodesEvent extends CustomEvent<WidgetStoredPromosDetail> {
|
|
127
|
+
static eventName: "beamwidgetstoredpromocodes";
|
|
128
|
+
constructor(detail: WidgetStoredPromosDetail);
|
|
129
|
+
}
|
|
105
130
|
|
|
106
131
|
type events_BeamCartChangeEvent = BeamCartChangeEvent;
|
|
107
132
|
declare const events_BeamCartChangeEvent: typeof BeamCartChangeEvent;
|
|
@@ -115,10 +140,14 @@ type events_BeamNonprofitSelectionRemovedEvent = BeamNonprofitSelectionRemovedEv
|
|
|
115
140
|
declare const events_BeamNonprofitSelectionRemovedEvent: typeof BeamNonprofitSelectionRemovedEvent;
|
|
116
141
|
type events_BeamOrderCreatedEvent = BeamOrderCreatedEvent;
|
|
117
142
|
declare const events_BeamOrderCreatedEvent: typeof BeamOrderCreatedEvent;
|
|
143
|
+
type events_BeamPromoCodesStoredEvent = BeamPromoCodesStoredEvent;
|
|
144
|
+
declare const events_BeamPromoCodesStoredEvent: typeof BeamPromoCodesStoredEvent;
|
|
118
145
|
type events_BeamStatusChangeEvent = BeamStatusChangeEvent;
|
|
119
146
|
declare const events_BeamStatusChangeEvent: typeof BeamStatusChangeEvent;
|
|
147
|
+
type events_BeamWidgetStoredPromoCodesEvent = BeamWidgetStoredPromoCodesEvent;
|
|
148
|
+
declare const events_BeamWidgetStoredPromoCodesEvent: typeof BeamWidgetStoredPromoCodesEvent;
|
|
120
149
|
declare namespace events {
|
|
121
|
-
export { events_BeamCartChangeEvent as BeamCartChangeEvent, events_BeamCartCreatedEvent as BeamCartCreatedEvent, events_BeamNetworkCallEvent as BeamNetworkCallEvent, events_BeamNonprofitSelectEvent as BeamNonprofitSelectEvent, events_BeamNonprofitSelectionRemovedEvent as BeamNonprofitSelectionRemovedEvent, events_BeamOrderCreatedEvent as BeamOrderCreatedEvent, events_BeamStatusChangeEvent as BeamStatusChangeEvent };
|
|
150
|
+
export { events_BeamCartChangeEvent as BeamCartChangeEvent, events_BeamCartCreatedEvent as BeamCartCreatedEvent, events_BeamNetworkCallEvent as BeamNetworkCallEvent, events_BeamNonprofitSelectEvent as BeamNonprofitSelectEvent, events_BeamNonprofitSelectionRemovedEvent as BeamNonprofitSelectionRemovedEvent, events_BeamOrderCreatedEvent as BeamOrderCreatedEvent, events_BeamPromoCodesStoredEvent as BeamPromoCodesStoredEvent, events_BeamStatusChangeEvent as BeamStatusChangeEvent, events_BeamWidgetStoredPromoCodesEvent as BeamWidgetStoredPromoCodesEvent };
|
|
122
151
|
}
|
|
123
152
|
|
|
124
|
-
export { BeamNonprofitSelectEvent as B, BeamNetworkCallEvent as a, BeamCartChangeEvent as b, BeamCartCreatedEvent as c, BeamOrderCreatedEvent as d, events as e, BeamStatusChangeEvent as f, BeamNonprofitSelectionRemovedEvent as g };
|
|
153
|
+
export { BeamNonprofitSelectEvent as B, BeamNetworkCallEvent as a, BeamCartChangeEvent as b, BeamCartCreatedEvent as c, BeamOrderCreatedEvent as d, events as e, BeamStatusChangeEvent as f, BeamNonprofitSelectionRemovedEvent as g, BeamPromoCodesStoredEvent as h, BeamWidgetStoredPromoCodesEvent as i };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t=class B extends CustomEvent{constructor(e){super(B.eventName,{detail:e,bubbles:!0,composed:!0})}};t.eventName="beamnetworkcall";let s=t;const o=class g extends CustomEvent{constructor(e){super(g.eventName,{detail:e,bubbles:!0,composed:!0})}};o.eventName="beamnonprofitselect";let a=o;const n=class x extends CustomEvent{constructor(e){super(x.eventName,{detail:e,bubbles:!0,composed:!0})}};n.eventName="beamcartchange";let r=n;const m=class S extends CustomEvent{constructor(e){super(S.eventName,{detail:e,bubbles:!0,composed:!0})}};m.eventName="beamcartcreated";let c=m;const u=class f extends CustomEvent{constructor(e){super(f.eventName,{detail:e,bubbles:!0,composed:!0})}};u.eventName="beamordercreated";let d=u;const l=class h extends CustomEvent{constructor(e){super(h.eventName,{detail:e,bubbles:!0,composed:!0})}};l.eventName="beamstatuschange";let v=l;const b=class w extends CustomEvent{constructor(e){super(w.eventName,{detail:e,bubbles:!0,composed:!0})}};b.eventName="beamnonprofitselectionremoved";let p=b;const C=class P extends CustomEvent{constructor(e){super(P.eventName,{detail:e,bubbles:!0,composed:!0})}};C.eventName="beampromocodesstored";let E=C;const i=class k extends CustomEvent{constructor(e){super(k.eventName,{detail:e,bubbles:!0,composed:!0})}};i.eventName="beamwidgetstoredpromocodes";let N=i;var O=Object.freeze({__proto__:null,BeamCartChangeEvent:r,BeamCartCreatedEvent:c,BeamNetworkCallEvent:s,BeamNonprofitSelectEvent:a,BeamNonprofitSelectionRemovedEvent:p,BeamOrderCreatedEvent:d,BeamPromoCodesStoredEvent:E,BeamStatusChangeEvent:v,BeamWidgetStoredPromoCodesEvent:N});export{v as B,E as a,d as b,a as c,s as d,O as e,N as f,r as g,c as h,p as i};
|
|
2
|
+
//# sourceMappingURL=events-BohmT6Lp.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-BohmT6Lp.esm.js","sources":["../../src/utils/events.ts"],"sourcesContent":["import { TCartApi } from \"../shared/cart-contents\";\nimport { TPromoCodeRequest } from \"../shared/promo-types\";\nimport { HelperName, TId, WidgetName } from \"../shared/types\";\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype NetworkEventDetail =\n | { url: string; method: string; type: \"fetch\"; response: Response }\n | { url: string; method: string; type: \"xhr\"; xhr: XMLHttpRequest };\n\n/**\n * beamnetworkcall\n * Emitted by the Beam network listener whenever any API calls are made on the page\n */\nexport class BeamNetworkCallEvent extends CustomEvent<NetworkEventDetail> {\n static eventName = \"beamnetworkcall\" as const;\n constructor(detail: NetworkEventDetail) {\n super(BeamNetworkCallEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype NonprofitSelectDetail = {\n selectionId?: string;\n selectedNonprofitId?: number | null;\n nonprofitName?: string | null;\n source?: WidgetName | null;\n};\n\n/**\n * beamnonprofitselect\n * Emitted when the end user selects a nonprofit in the Beam widget, and when the previous selection was restored\n * automatically\n */\nexport class BeamNonprofitSelectEvent extends CustomEvent<NonprofitSelectDetail> {\n static eventName = \"beamnonprofitselect\" as const;\n constructor(detail: NonprofitSelectDetail) {\n super(BeamNonprofitSelectEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype CartChangeDetail = TCartApi & {\n cartId?: string;\n subtotal?: number;\n itemCount?: number;\n currencyCode?: string;\n};\n\n/**\n * beamcartchange\n * Emitted when Beam detects that cart contents have changed, and when items are added to the cart for the first time\n */\nexport class BeamCartChangeEvent extends CustomEvent<CartChangeDetail> {\n static eventName = \"beamcartchange\" as const;\n constructor(detail: CartChangeDetail) {\n super(BeamCartChangeEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype CartCreatedDetail = CartChangeDetail;\n\n/**\n * beamcartcreated\n * Emitted when a cart is created in Beam for the first time, but NOT when the cart is updated\n * Beam's cart expiration rules are used to determine when a returning visit counts as the same cart\n */\nexport class BeamCartCreatedEvent extends CustomEvent<CartCreatedDetail> {\n static eventName = \"beamcartcreated\" as const;\n constructor(detail: CartCreatedDetail) {\n super(BeamCartCreatedEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype OrderCreatedDetail = {\n orderId: TId;\n transactionId: TId;\n cartTotal: number;\n currencyCode: string;\n};\n\n/**\n * beamordercreated\n * Emitted when an order is registered with Beam for the first time, but NOT on repeat visits, page refreshes, etc.\n */\nexport class BeamOrderCreatedEvent extends CustomEvent<OrderCreatedDetail> {\n static eventName = \"beamordercreated\" as const;\n\n constructor(detail: OrderCreatedDetail) {\n super(BeamOrderCreatedEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\n/**\n * beamstatuschange\n * Emitted when the Beam config object has finished initializing along with all plugins\n */\ntype BeamStatusChangeEventDetail = { status: \"pending\" } | { status: \"error\"; error: Error } | { status: \"ready\" };\nexport class BeamStatusChangeEvent extends CustomEvent<BeamStatusChangeEventDetail> {\n static eventName = \"beamstatuschange\" as const;\n\n constructor(detail: BeamStatusChangeEventDetail) {\n super(BeamStatusChangeEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\ntype NonprofitSelectionRemovedDetail = {\n previousNonprofitId?: number | null;\n newNonprofitId?: number | null;\n selectionId?: string;\n};\n\n/**\n * beamnonprofitselectionremoved\n * Emitted when the nonprofit selection is removed from deselection or due to nonprofit cohort change\n */\nexport class BeamNonprofitSelectionRemovedEvent extends CustomEvent<NonprofitSelectionRemovedDetail> {\n static eventName = \"beamnonprofitselectionremoved\" as const;\n constructor(detail: NonprofitSelectionRemovedDetail) {\n super(BeamNonprofitSelectionRemovedEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\ntype PromoStoredDetail = {\n promoCodes: TPromoCodeRequest;\n};\n/**\n * Emitted when a URL with query parameters is sanitized and stored in localStorage\n *\n * @event beampromocodesstored\n */\nexport class BeamPromoCodesStoredEvent extends CustomEvent<PromoStoredDetail> {\n static eventName = \"beampromocodesstored\";\n\n constructor(detail: PromoStoredDetail) {\n super(BeamPromoCodesStoredEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n\n/* ------------------------------------------------------------------------------------------------------------------ */\n\ntype WidgetStoredPromosDetail = {\n source?: WidgetName | HelperName | null;\n};\n/**\n * Emitted when a widget stores the url or manual promoCodes in local storage\n *\n * @event beamwidgetstoredpromocodes\n */\nexport class BeamWidgetStoredPromoCodesEvent extends CustomEvent<WidgetStoredPromosDetail> {\n static eventName = \"beamwidgetstoredpromocodes\" as const;\n\n constructor(detail: WidgetStoredPromosDetail) {\n super(BeamWidgetStoredPromoCodesEvent.eventName, { detail, bubbles: true, composed: true });\n }\n}\n"],"names":["_BeamNetworkCallEvent","detail","BeamNetworkCallEvent","_BeamNonprofitSelectEvent","BeamNonprofitSelectEvent","_BeamCartChangeEvent","BeamCartChangeEvent","_BeamCartCreatedEvent","BeamCartCreatedEvent","_BeamOrderCreatedEvent","BeamOrderCreatedEvent","_BeamStatusChangeEvent","BeamStatusChangeEvent","_BeamNonprofitSelectionRemovedEvent","BeamNonprofitSelectionRemovedEvent","_BeamPromoCodesStoredEvent","BeamPromoCodesStoredEvent","_BeamWidgetStoredPromoCodesEvent","BeamWidgetStoredPromoCodesEvent"],"mappings":"AAcO,MAAMA,EAAN,MAAMA,UAA6B,WAAgC,CAExE,YAAYC,EAA4B,CACtC,MAAMD,EAAqB,UAAW,CAAE,OAAAC,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACjF,CACF,EALaD,EACJ,UAAY,kBADd,IAAME,EAANF,EAqBA,MAAMG,EAAN,MAAMA,UAAiC,WAAmC,CAE/E,YAAYF,EAA+B,CACzC,MAAME,EAAyB,UAAW,CAAE,OAAAF,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACrF,CACF,EALaE,EACJ,UAAY,sBADR,IAAAC,EAAND,EAoBA,MAAME,EAAN,MAAMA,UAA4B,WAA8B,CAErE,YAAYJ,EAA0B,CACpC,MAAMI,EAAoB,UAAW,CAAE,OAAAJ,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAChF,CACF,EALaI,EACJ,UAAY,iBADR,IAAAC,EAAND,EAgBA,MAAME,EAAN,MAAMA,UAA6B,WAA+B,CAEvE,YAAYN,EAA2B,CACrC,MAAMM,EAAqB,UAAW,CAAE,OAAAN,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACjF,CACF,EALaM,EACJ,UAAY,kBADR,IAAAC,EAAND,EAoBA,MAAME,EAAN,MAAMA,UAA8B,WAAgC,CAGzE,YAAYR,EAA4B,CACtC,MAAMQ,EAAsB,UAAW,CAAE,OAAAR,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAClF,CACF,EANaQ,EACJ,UAAY,mBADR,IAAAC,EAAND,EAeA,MAAME,EAAN,MAAMA,UAA8B,WAAyC,CAGlF,YAAYV,EAAqC,CAC/C,MAAMU,EAAsB,UAAW,CAAE,OAAAV,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAClF,CACF,EANaU,EACJ,UAAY,mBADd,IAAMC,EAAND,EAmBA,MAAME,EAAN,MAAMA,UAA2C,WAA6C,CAEnG,YAAYZ,EAAyC,CACnD,MAAMY,EAAmC,UAAW,CAAE,OAAAZ,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAC/F,CACF,EALaY,EACJ,UAAY,gCADd,IAAMC,EAAND,EAgBA,MAAME,EAAN,MAAMA,UAAkC,WAA+B,CAG5E,YAAYd,EAA2B,CACrC,MAAMc,EAA0B,UAAW,CAAE,OAAAd,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CACtF,CACF,EANac,EACJ,UAAY,uBADd,IAAMC,EAAND,EAkBA,MAAME,EAAN,MAAMA,UAAwC,WAAsC,CAGzF,YAAYhB,EAAkC,CAC5C,MAAMgB,EAAgC,UAAW,CAAE,OAAAhB,EAAQ,QAAS,GAAM,SAAU,EAAK,CAAC,CAC5F,CACF,EANagB,EACJ,UAAY,iCADRC,EAAND"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as d}from"./vendor-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{v as d}from"./vendor-DRA8u-S7.esm.js";import{getCookieValue as i,setCookieValue as p,deleteCookieValue as l}from"../utils/cookies.js";import{createScopedLocalStorage as n}from"../utils/local-storage.js";const s="beam_session";async function r({cookieName:e=s,domain:o=window.location.hostname,apiKey:t=""}={}){if(await i(e))return;const a=d(),m=Date.now()+30*24*60*60*1e3;await p({name:e,value:a,domain:o,path:"/",expires:m}),n({apiKey:t}).setItemJson("cart",{cartId:a})}async function c({cookieName:e=s,domain:o=window.location.hostname,apiKey:t=""}={}){const a=await i(e);a&&(n({apiKey:t}).setItemJson("cart",{cartId:a}),await l({name:e,domain:o}))}var u=Object.freeze({__proto__:null,createSession:r,endSession:c});export{r as c,c as e,u as i};
|
|
2
|
+
//# sourceMappingURL=index-BQ4Nr7Ux.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BQ4Nr7Ux.esm.js","sources":["../../src/integrations/session/index.ts"],"sourcesContent":["/**\n If checkout and order page are on different subdomains, we can't access localStorage for nonprofitId/selectionId\n We can make post-transaction work by copying a \"cartID\"-style cookie to the expected localStorage key on the current\n domain, which will allow the post-transaction widgets to send that to the backend which can restore the selection\n from the cart.\n\n This will also work if we don't have a cart cookie for some other reason, although it is not directly integrated\n with the host site's concept of a cart (e.g., line items and expiration dates).\n\n Note: Use a module import rather than a self-executing script so that we can set cookies on the host domain\n rather than our 3rd party CDN domain, and customize the options via arguments.\n\n Usage:\n <script type=\"module\">\n import { createSession } from 'https://...';\n createSession({domain: 'mystore.com'})\n </script>\n */\n\nimport { v4 as uuid } from \"@lukeed/uuid/secure\";\nimport { deleteCookieValue, getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { createScopedLocalStorage } from \"../../utils/local-storage\";\n\nconst DEFAULT_COOKIE_NAME = \"beam_session\";\n\nexport async function createSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain or subdomain to set cookie on\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const existingValue = await getCookieValue(cookieName);\n\n if (existingValue) {\n return; // do nothing\n }\n\n const cookieValue = uuid();\n\n const expires = Date.now() + 30 * 24 * 60 * 60 * 1000; // 30 days\n\n await setCookieValue({ name: cookieName, value: cookieValue, domain, path: \"/\", expires });\n\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n}\n\nexport async function endSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain to remove cookie from\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const cookieValue = await getCookieValue(cookieName);\n\n if (!cookieValue) {\n return; // do nothing\n }\n\n // copy cookie value into localStorage for widgets to use\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n\n // delete cookie to end session (will generate new one on next visit)\n await deleteCookieValue({ name: cookieName, domain });\n}\n"],"names":["DEFAULT_COOKIE_NAME","createSession","cookieName","domain","apiKey","getCookieValue","cookieValue","uuid","expires","setCookieValue","createScopedLocalStorage","endSession","deleteCookieValue"],"mappings":"kNAuBA,MAAMA,EAAsB,eAE5B,eAAsBC,EAAc,CAClC,WAAAC,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,CAAI,EAAA,CAGN,GAFsB,MAAMC,EAAeH,CAAU,EAGnD,OAGF,MAAMI,EAAcC,EAAK,EAEnBC,EAAU,KAAK,IAAA,EAAQ,GAAK,GAAK,GAAK,GAAK,IAEjD,MAAMC,EAAe,CAAE,KAAMP,EAAY,MAAOI,EAAa,OAAAH,EAAQ,KAAM,IAAK,QAAAK,CAAQ,CAAC,EAEhEE,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,CAC9D,CAEA,eAAsBK,EAAW,CAC/B,WAAAT,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,GAAI,CACN,MAAME,EAAc,MAAMD,EAAeH,CAAU,EAE9CI,IAKoBI,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,EAG5D,MAAMM,EAAkB,CAAE,KAAMV,EAAY,OAAAC,CAAO,CAAC,EACtD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i}from"./index-GcpuX_TZ.esm.js";import{i as o}from"./index-CyiXyHi8.esm.js";import{i as r}from"./index-C_ZNnJIS.esm.js";import{i as e}from"./index-XZRQN4Rs.esm.js";import{i as m}from"./index-kDoWfjd5.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-B_8DexDX.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B_8DexDX.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from './update-cart-
|
|
1
|
+
import { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from './update-cart-NiToHHJH.esm.js';
|
|
2
2
|
|
|
3
3
|
declare const index_BeamCartAPIConfig: typeof BeamCartAPIConfig;
|
|
4
4
|
declare const index_BeamCartValues: typeof BeamCartValues;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as o}from"./beam-errors-Ci0d3926.esm.js";import{e}from"./events-BohmT6Lp.esm.js";import{logger as r}from"../utils/logger.js";import{initNetworkListeners as t}from"../utils/network-listeners.js";import{createScopedLocalStorage as a}from"../utils/local-storage.js";import{waitForElement as m}from"../utils/wait-for-element.js";import{deleteCookieValue as s,getCookieMap as i,getCookieValue as d,setCookieValue as n}from"../utils/cookies.js";import{getRemoteSession as C,saveRemoteSession as g}from"../utils/remote-session.js";import{memoizeLast as l}from"../utils/memoize-last.js";import{d as p,i as S}from"./lodash-7H4x2457.esm.js";import{f as P,c as f,b as k,h as u,g as c,a as A,i as F,m as L,j as E,e as R,p as v,s as b,k as y}from"./promoManager-B9cTR1R3.esm.js";var V=Object.freeze({__proto__:null,createScopedLocalStorage:a,debounce:p,deleteCookieValue:s,errors:o,events:e,formatStoreAndReturnPromoCodes:P,getAllPromoCodesFromCookie:f,getCookieMap:i,getCookieValue:d,getPromoCodeFromShopifyCookie:k,getPromoCodesFromCart:u,getPromoCodesLocalStorage:c,getRemoteSession:C,getSanitizedUrlForStorage:A,initNetworkListeners:t,isEmptyPromoData:F,isEqual:S,logger:r,mapToUnvalidatedPromoCodes:L,memoizeLast:l,mergeStoreAndReturnPromos:E,parseJsonStringArray:R,promoCodesAreEqual:v,saveRemoteSession:g,setCookieValue:n,setPromoCodeInCookie:b,setPromoCodesInLocalStorage:y,waitForElement:m});export{V as i};
|
|
2
|
+
//# sourceMappingURL=index-C-beNpP0.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-C-beNpP0.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{BeamCommunityImpact as m}from"../react/community-impact.esm.js";import{BeamCumulativeImpact as e}from"../react/cumulative-impact.esm.js";import{BeamImpactOverview as a}from"../react/impact-overview.esm.js";import{BeamSelectNonprofit as t}from"../react/select-nonprofit.esm.js";import{BeamRedeemTransaction as o}from"../react/redeem-transaction.esm.js";import{BeamPostPurchase as r}from"../react/post-purchase.esm.js";import{BeamSubscriptionManagement as i}from"../react/subscription-management.esm.js";import{BeamSelectSubscriptionNonprofit as p}from"../react/select-subscription-nonprofit.esm.js";import{BeamSubscriptionImpact as c}from"../react/subscription-impact.esm.js";import{BeamProductDetailsPage as n}from"../react/product-details-page.esm.js";import{BeamSocialShare as B}from"../react/social-share.esm.js";var u=Object.freeze({__proto__:null,BeamCommunityImpact:m,BeamCumulativeImpact:e,BeamImpactOverview:a,BeamPostPurchase:r,BeamProductDetailsPage:n,BeamRedeemTransaction:o,BeamSelectNonprofit:t,BeamSelectSubscriptionNonprofit:p,BeamSocialShare:B,BeamSubscriptionImpact:c,BeamSubscriptionManagement:i});export{u as i};
|
|
2
|
-
//# sourceMappingURL=index-
|
|
2
|
+
//# sourceMappingURL=index-C3hpHWh1.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-C3hpHWh1.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{c as i,a as n}from"./routes-KHEaM_40.esm.js";import{logger as c}from"../utils/logger.js";async function e(o,r){const{apiKey:a,baseUrl:s}=o;try{await i({baseUrl:s||n,headers:{authorization:`Api-Key ${a}`},requestBody:{...r}})}catch(t){c.error("Failed to send log",t)}}var d=Object.freeze({__proto__:null,sendLog:e});export{d as i,e as s};
|
|
2
|
+
//# sourceMappingURL=index-CFYWEffm.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CFYWEffm.esm.js","sources":["../../src/integrations/logs/index.ts"],"sourcesContent":["import { postLogs } from \"../../api-sdk/v3/routes\";\nimport { paths } from \"../../api-sdk/v3/openapi-spec\";\nimport { logger } from \"../../utils/logger\";\nimport { DEFAULT_LOG_URL } from \"../../api-sdk/constants\";\n\ntype PostLogsReq = paths[\"/logs\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"];\n\ninterface SendLogConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport async function sendLog(config: SendLogConfig, payload: PostLogsReq): Promise<void> {\n const { apiKey, baseUrl } = config;\n try {\n await postLogs({\n baseUrl: baseUrl || DEFAULT_LOG_URL,\n headers: {\n authorization: `Api-Key ${apiKey}`,\n },\n requestBody: {\n ...payload,\n },\n });\n } catch (err) {\n logger.error(\"Failed to send log\", err);\n }\n}\n"],"names":["sendLog","config","payload","apiKey","baseUrl","postLogs","DEFAULT_LOG_URL","err","logger"],"mappings":"gGAYA,eAAsBA,EAAQC,EAAuBC,EAAqC,CACxF,KAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIH,EAC5B,GAAI,CACF,MAAMI,EAAS,CACb,QAASD,GAAWE,EACpB,QAAS,CACP,cAAe,WAAWH,CAAM,EAClC,EACA,YAAa,CACX,GAAGD,CACL,CACF,CAAC,CACH,OAASK,EAAK,CACZC,EAAO,MAAM,qBAAsBD,CAAG,CACxC,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{BeamCommunityImpact as m}from"../components/community-impact.js";import{BeamCumulativeImpact as e}from"../components/cumulative-impact.js";import{BeamImpactOverview as a}from"../components/impact-overview.js";import{BeamSelectNonprofit as t}from"../components/select-nonprofit.js";import{BeamRedeemTransaction as o}from"../components/redeem-transaction.js";import{BeamPostPurchase as r}from"../components/post-purchase.js";import{BeamSubscriptionManagement as i}from"../components/subscription-management.js";import{BeamSubscriptionImpact as p}from"../components/subscription-impact.js";import{BeamProductDetailsPage as c}from"../components/product-details-page.js";import{BeamSelectSubscriptionNonprofit as n}from"../components/select-subscription-nonprofit.js";import{BeamSocialShare as B}from"../components/social-share.js";var u=Object.freeze({__proto__:null,BeamCommunityImpact:m,BeamCumulativeImpact:e,BeamImpactOverview:a,BeamPostPurchase:r,BeamProductDetailsPage:c,BeamRedeemTransaction:o,BeamSelectNonprofit:t,BeamSelectSubscriptionNonprofit:n,BeamSocialShare:B,BeamSubscriptionImpact:p,BeamSubscriptionManagement:i});export{u as i};
|
|
2
|
-
//# sourceMappingURL=index-
|
|
2
|
+
//# sourceMappingURL=index-CFtmDAHb.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CFtmDAHb.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as d}from"./vendor-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{v as d}from"./vendor-DRA8u-S7.esm.js";import{getCookieValue as i,setCookieValue as p,deleteCookieValue as l}from"../utils/cookies.esm.js";import{createScopedLocalStorage as n}from"../utils/local-storage.esm.js";const s="beam_session";async function r({cookieName:e=s,domain:o=window.location.hostname,apiKey:t=""}={}){if(await i(e))return;const a=d(),m=Date.now()+30*24*60*60*1e3;await p({name:e,value:a,domain:o,path:"/",expires:m}),n({apiKey:t}).setItemJson("cart",{cartId:a})}async function c({cookieName:e=s,domain:o=window.location.hostname,apiKey:t=""}={}){const a=await i(e);a&&(n({apiKey:t}).setItemJson("cart",{cartId:a}),await l({name:e,domain:o}))}var u=Object.freeze({__proto__:null,createSession:r,endSession:c});export{r as c,c as e,u as i};
|
|
2
|
+
//# sourceMappingURL=index-C_ZNnJIS.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C_ZNnJIS.esm.js","sources":["../../src/integrations/session/index.ts"],"sourcesContent":["/**\n If checkout and order page are on different subdomains, we can't access localStorage for nonprofitId/selectionId\n We can make post-transaction work by copying a \"cartID\"-style cookie to the expected localStorage key on the current\n domain, which will allow the post-transaction widgets to send that to the backend which can restore the selection\n from the cart.\n\n This will also work if we don't have a cart cookie for some other reason, although it is not directly integrated\n with the host site's concept of a cart (e.g., line items and expiration dates).\n\n Note: Use a module import rather than a self-executing script so that we can set cookies on the host domain\n rather than our 3rd party CDN domain, and customize the options via arguments.\n\n Usage:\n <script type=\"module\">\n import { createSession } from 'https://...';\n createSession({domain: 'mystore.com'})\n </script>\n */\n\nimport { v4 as uuid } from \"@lukeed/uuid/secure\";\nimport { deleteCookieValue, getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { createScopedLocalStorage } from \"../../utils/local-storage\";\n\nconst DEFAULT_COOKIE_NAME = \"beam_session\";\n\nexport async function createSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain or subdomain to set cookie on\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const existingValue = await getCookieValue(cookieName);\n\n if (existingValue) {\n return; // do nothing\n }\n\n const cookieValue = uuid();\n\n const expires = Date.now() + 30 * 24 * 60 * 60 * 1000; // 30 days\n\n await setCookieValue({ name: cookieName, value: cookieValue, domain, path: \"/\", expires });\n\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n}\n\nexport async function endSession({\n cookieName = DEFAULT_COOKIE_NAME,\n domain = window.location.hostname, // domain to remove cookie from\n apiKey = \"\", // optional unless scoping localStorage to api key\n} = {}) {\n const cookieValue = await getCookieValue(cookieName);\n\n if (!cookieValue) {\n return; // do nothing\n }\n\n // copy cookie value into localStorage for widgets to use\n const beamLocalStorage = createScopedLocalStorage({ apiKey });\n beamLocalStorage.setItemJson(\"cart\", { cartId: cookieValue });\n\n // delete cookie to end session (will generate new one on next visit)\n await deleteCookieValue({ name: cookieName, domain });\n}\n"],"names":["DEFAULT_COOKIE_NAME","createSession","cookieName","domain","apiKey","getCookieValue","cookieValue","uuid","expires","setCookieValue","createScopedLocalStorage","endSession","deleteCookieValue"],"mappings":"0NAuBA,MAAMA,EAAsB,eAE5B,eAAsBC,EAAc,CAClC,WAAAC,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,CAAI,EAAA,CAGN,GAFsB,MAAMC,EAAeH,CAAU,EAGnD,OAGF,MAAMI,EAAcC,EAAK,EAEnBC,EAAU,KAAK,IAAA,EAAQ,GAAK,GAAK,GAAK,GAAK,IAEjD,MAAMC,EAAe,CAAE,KAAMP,EAAY,MAAOI,EAAa,OAAAH,EAAQ,KAAM,IAAK,QAAAK,CAAQ,CAAC,EAEhEE,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,CAC9D,CAEA,eAAsBK,EAAW,CAC/B,WAAAT,EAAaF,EACb,OAAAG,EAAS,OAAO,SAAS,SACzB,OAAAC,EAAS,EACX,EAAI,GAAI,CACN,MAAME,EAAc,MAAMD,EAAeH,CAAU,EAE9CI,IAKoBI,EAAyB,CAAE,OAAAN,CAAO,CAAC,EAC3C,YAAY,OAAQ,CAAE,OAAQE,CAAY,CAAC,EAG5D,MAAMM,EAAkB,CAAE,KAAMV,EAAY,OAAAC,CAAO,CAAC,EACtD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as o}from"./beam-errors-Ci0d3926.esm.js";import{e}from"./events-BohmT6Lp.esm.js";import{logger as r}from"../utils/logger.js";import{initNetworkListeners as t}from"../utils/network-listeners.js";import{createScopedLocalStorage as a}from"../utils/local-storage.js";import{waitForElement as m}from"../utils/wait-for-element.js";import{deleteCookieValue as s,getCookieMap as i,getCookieValue as d,setCookieValue as n}from"../utils/cookies.js";import{getRemoteSession as C,saveRemoteSession as g}from"../utils/remote-session.js";import{memoizeLast as l}from"../utils/memoize-last.js";import{d as p,i as S}from"./lodash-7H4x2457.esm.js";import{f as P,c as f,b as k,h as u,g as c,a as A,i as F,m as L,j as E,e as R,p as v,s as b,k as y}from"./promoManager-B9cTR1R3.esm.js";var V=Object.freeze({__proto__:null,createScopedLocalStorage:a,debounce:p,deleteCookieValue:s,errors:o,events:e,formatStoreAndReturnPromoCodes:P,getAllPromoCodesFromCookie:f,getCookieMap:i,getCookieValue:d,getPromoCodeFromShopifyCookie:k,getPromoCodesFromCart:u,getPromoCodesLocalStorage:c,getRemoteSession:C,getSanitizedUrlForStorage:A,initNetworkListeners:t,isEmptyPromoData:F,isEqual:S,logger:r,mapToUnvalidatedPromoCodes:L,memoizeLast:l,mergeStoreAndReturnPromos:E,parseJsonStringArray:R,promoCodesAreEqual:v,saveRemoteSession:g,setCookieValue:n,setPromoCodeInCookie:b,setPromoCodesInLocalStorage:y,waitForElement:m});export{V as i};
|
|
2
|
+
//# sourceMappingURL=index-CbWdmBet.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CbWdmBet.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i}from"./index-C-beNpP0.esm.js";import{i as o}from"./index-JSoHc6g1.esm.js";import{i as r}from"./index-BQ4Nr7Ux.esm.js";import{i as e}from"./index-n7pxZENA.esm.js";import{i as m}from"./index-CFYWEffm.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-CpPbNdWA.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CpPbNdWA.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as t,p as e,W as r,L as a,_ as i,I as o,K as p,s,Y as d}from"./order-page-FzVtMkga.esm.js";var g=Object.freeze({__proto__:null,addBeamAttributesToCart:t,appendBeamAttributesToCart:e,appendStatsigToShopifyCartAttributes:r,appendToShopifyCartBeamAttribute:a,getCurrentCart:i,getShopifyCart:o,registerCartIntegration:p,showBeamOrderPageWidgets:s,trackCart:d});export{g as i};
|
|
2
|
+
//# sourceMappingURL=index-CyiXyHi8.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CyiXyHi8.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{BeamCommunityImpact as m}from"../react/community-impact.js";import{BeamCumulativeImpact as e}from"../react/cumulative-impact.js";import{BeamImpactOverview as a}from"../react/impact-overview.js";import{BeamSelectNonprofit as t}from"../react/select-nonprofit.js";import{BeamRedeemTransaction as o}from"../react/redeem-transaction.js";import{BeamPostPurchase as r}from"../react/post-purchase.js";import{BeamSubscriptionManagement as i}from"../react/subscription-management.js";import{BeamSelectSubscriptionNonprofit as p}from"../react/select-subscription-nonprofit.js";import{BeamSubscriptionImpact as c}from"../react/subscription-impact.js";import{BeamProductDetailsPage as n}from"../react/product-details-page.js";import{BeamSocialShare as B}from"../react/social-share.js";var u=Object.freeze({__proto__:null,BeamCommunityImpact:m,BeamCumulativeImpact:e,BeamImpactOverview:a,BeamPostPurchase:r,BeamProductDetailsPage:n,BeamRedeemTransaction:o,BeamSelectNonprofit:t,BeamSelectSubscriptionNonprofit:p,BeamSocialShare:B,BeamSubscriptionImpact:c,BeamSubscriptionManagement:i});export{u as i};
|
|
2
|
-
//# sourceMappingURL=index-
|
|
2
|
+
//# sourceMappingURL=index-D6qJfs7_.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D6qJfs7_.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as o}from"./beam-errors-Ci0d3926.esm.js";import{e}from"./events-BohmT6Lp.esm.js";import{logger as r}from"../utils/logger.esm.js";import{initNetworkListeners as t}from"../utils/network-listeners.esm.js";import{createScopedLocalStorage as a}from"../utils/local-storage.esm.js";import{waitForElement as m}from"../utils/wait-for-element.esm.js";import{deleteCookieValue as s,getCookieMap as i,getCookieValue as d,setCookieValue as n}from"../utils/cookies.esm.js";import{getRemoteSession as C,saveRemoteSession as g}from"../utils/remote-session.esm.js";import{memoizeLast as l}from"../utils/memoize-last.esm.js";import{d as p,i as S}from"./lodash-7H4x2457.esm.js";import{f as P,c as f,b as k,h as u,g as c,a as A,i as F,m as L,j as E,e as R,p as v,s as b,k as y}from"./promoManager-fl54hq13.esm.js";var V=Object.freeze({__proto__:null,createScopedLocalStorage:a,debounce:p,deleteCookieValue:s,errors:o,events:e,formatStoreAndReturnPromoCodes:P,getAllPromoCodesFromCookie:f,getCookieMap:i,getCookieValue:d,getPromoCodeFromShopifyCookie:k,getPromoCodesFromCart:u,getPromoCodesLocalStorage:c,getRemoteSession:C,getSanitizedUrlForStorage:A,initNetworkListeners:t,isEmptyPromoData:F,isEqual:S,logger:r,mapToUnvalidatedPromoCodes:L,memoizeLast:l,mergeStoreAndReturnPromos:E,parseJsonStringArray:R,promoCodesAreEqual:v,saveRemoteSession:g,setCookieValue:n,setPromoCodeInCookie:b,setPromoCodesInLocalStorage:y,waitForElement:m});export{V as i};
|
|
2
|
+
//# sourceMappingURL=index-DhtZDPvk.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DhtZDPvk.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { b as beamErrors } from './beam-errors-CCe004HS.esm.js';
|
|
2
|
+
import { e as events } from './events-BKkf9u9l.esm.js';
|
|
3
|
+
import { logger } from '../utils/logger.js';
|
|
4
|
+
import { initNetworkListeners } from '../utils/network-listeners.js';
|
|
5
|
+
import { createScopedLocalStorage } from '../utils/local-storage.js';
|
|
6
|
+
import { waitForElement } from '../utils/wait-for-element.js';
|
|
7
|
+
import { CookieChangeEvent, deleteCookieValue, getCookieMap, getCookieValue, setCookieValue } from '../utils/cookies.js';
|
|
8
|
+
import { getRemoteSession, saveRemoteSession } from '../utils/remote-session.js';
|
|
9
|
+
import { memoizeLast } from '../utils/memoize-last.js';
|
|
10
|
+
import debounce from 'lodash-es/debounce';
|
|
11
|
+
import isEqual from 'lodash-es/isEqual';
|
|
12
|
+
import { formatStoreAndReturnPromoCodes, getAllPromoCodesFromCookie, getPromoCodeFromShopifyCookie, getPromoCodesFromCart, getPromoCodesLocalStorage, getSanitizedUrlForStorage, isEmptyPromoData, mapToUnvalidatedPromoCodes, mergeStoreAndReturnPromos, parseJsonStringArray, promoCodesAreEqual, setPromoCodeInCookie, setPromoCodesInLocalStorage } from '../utils/promoManager.js';
|
|
13
|
+
|
|
14
|
+
declare const index_CookieChangeEvent: typeof CookieChangeEvent;
|
|
15
|
+
declare const index_createScopedLocalStorage: typeof createScopedLocalStorage;
|
|
16
|
+
declare const index_debounce: typeof debounce;
|
|
17
|
+
declare const index_deleteCookieValue: typeof deleteCookieValue;
|
|
18
|
+
declare const index_events: typeof events;
|
|
19
|
+
declare const index_formatStoreAndReturnPromoCodes: typeof formatStoreAndReturnPromoCodes;
|
|
20
|
+
declare const index_getAllPromoCodesFromCookie: typeof getAllPromoCodesFromCookie;
|
|
21
|
+
declare const index_getCookieMap: typeof getCookieMap;
|
|
22
|
+
declare const index_getCookieValue: typeof getCookieValue;
|
|
23
|
+
declare const index_getPromoCodeFromShopifyCookie: typeof getPromoCodeFromShopifyCookie;
|
|
24
|
+
declare const index_getPromoCodesFromCart: typeof getPromoCodesFromCart;
|
|
25
|
+
declare const index_getPromoCodesLocalStorage: typeof getPromoCodesLocalStorage;
|
|
26
|
+
declare const index_getRemoteSession: typeof getRemoteSession;
|
|
27
|
+
declare const index_getSanitizedUrlForStorage: typeof getSanitizedUrlForStorage;
|
|
28
|
+
declare const index_initNetworkListeners: typeof initNetworkListeners;
|
|
29
|
+
declare const index_isEmptyPromoData: typeof isEmptyPromoData;
|
|
30
|
+
declare const index_isEqual: typeof isEqual;
|
|
31
|
+
declare const index_logger: typeof logger;
|
|
32
|
+
declare const index_mapToUnvalidatedPromoCodes: typeof mapToUnvalidatedPromoCodes;
|
|
33
|
+
declare const index_memoizeLast: typeof memoizeLast;
|
|
34
|
+
declare const index_mergeStoreAndReturnPromos: typeof mergeStoreAndReturnPromos;
|
|
35
|
+
declare const index_parseJsonStringArray: typeof parseJsonStringArray;
|
|
36
|
+
declare const index_promoCodesAreEqual: typeof promoCodesAreEqual;
|
|
37
|
+
declare const index_saveRemoteSession: typeof saveRemoteSession;
|
|
38
|
+
declare const index_setCookieValue: typeof setCookieValue;
|
|
39
|
+
declare const index_setPromoCodeInCookie: typeof setPromoCodeInCookie;
|
|
40
|
+
declare const index_setPromoCodesInLocalStorage: typeof setPromoCodesInLocalStorage;
|
|
41
|
+
declare const index_waitForElement: typeof waitForElement;
|
|
42
|
+
declare namespace index {
|
|
43
|
+
export { index_CookieChangeEvent as CookieChangeEvent, index_createScopedLocalStorage as createScopedLocalStorage, index_debounce as debounce, index_deleteCookieValue as deleteCookieValue, beamErrors as errors, index_events as events, index_formatStoreAndReturnPromoCodes as formatStoreAndReturnPromoCodes, index_getAllPromoCodesFromCookie as getAllPromoCodesFromCookie, index_getCookieMap as getCookieMap, index_getCookieValue as getCookieValue, index_getPromoCodeFromShopifyCookie as getPromoCodeFromShopifyCookie, index_getPromoCodesFromCart as getPromoCodesFromCart, index_getPromoCodesLocalStorage as getPromoCodesLocalStorage, index_getRemoteSession as getRemoteSession, index_getSanitizedUrlForStorage as getSanitizedUrlForStorage, index_initNetworkListeners as initNetworkListeners, index_isEmptyPromoData as isEmptyPromoData, index_isEqual as isEqual, index_logger as logger, index_mapToUnvalidatedPromoCodes as mapToUnvalidatedPromoCodes, index_memoizeLast as memoizeLast, index_mergeStoreAndReturnPromos as mergeStoreAndReturnPromos, index_parseJsonStringArray as parseJsonStringArray, index_promoCodesAreEqual as promoCodesAreEqual, index_saveRemoteSession as saveRemoteSession, index_setCookieValue as setCookieValue, index_setPromoCodeInCookie as setPromoCodeInCookie, index_setPromoCodesInLocalStorage as setPromoCodesInLocalStorage, index_waitForElement as waitForElement };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { index as i };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { b as beamErrors } from './beam-errors-CCe004HS.esm.js';
|
|
2
|
+
import { e as events } from './events-BKkf9u9l.esm.js';
|
|
3
|
+
import { logger } from '../utils/logger.js';
|
|
4
|
+
import { initNetworkListeners } from '../utils/network-listeners.js';
|
|
5
|
+
import { createScopedLocalStorage } from '../utils/local-storage.js';
|
|
6
|
+
import { waitForElement } from '../utils/wait-for-element.js';
|
|
7
|
+
import { CookieChangeEvent, deleteCookieValue, getCookieMap, getCookieValue, setCookieValue } from '../utils/cookies.js';
|
|
8
|
+
import { getRemoteSession, saveRemoteSession } from '../utils/remote-session.js';
|
|
9
|
+
import { memoizeLast } from '../utils/memoize-last.js';
|
|
10
|
+
import debounce from 'lodash-es/debounce';
|
|
11
|
+
import isEqual from 'lodash-es/isEqual';
|
|
12
|
+
import { formatStoreAndReturnPromoCodes, getAllPromoCodesFromCookie, getPromoCodeFromShopifyCookie, getPromoCodesFromCart, getPromoCodesLocalStorage, getSanitizedUrlForStorage, isEmptyPromoData, mapToUnvalidatedPromoCodes, mergeStoreAndReturnPromos, parseJsonStringArray, promoCodesAreEqual, setPromoCodeInCookie, setPromoCodesInLocalStorage } from '../utils/promoManager.js';
|
|
13
|
+
|
|
14
|
+
declare const index_CookieChangeEvent: typeof CookieChangeEvent;
|
|
15
|
+
declare const index_createScopedLocalStorage: typeof createScopedLocalStorage;
|
|
16
|
+
declare const index_debounce: typeof debounce;
|
|
17
|
+
declare const index_deleteCookieValue: typeof deleteCookieValue;
|
|
18
|
+
declare const index_events: typeof events;
|
|
19
|
+
declare const index_formatStoreAndReturnPromoCodes: typeof formatStoreAndReturnPromoCodes;
|
|
20
|
+
declare const index_getAllPromoCodesFromCookie: typeof getAllPromoCodesFromCookie;
|
|
21
|
+
declare const index_getCookieMap: typeof getCookieMap;
|
|
22
|
+
declare const index_getCookieValue: typeof getCookieValue;
|
|
23
|
+
declare const index_getPromoCodeFromShopifyCookie: typeof getPromoCodeFromShopifyCookie;
|
|
24
|
+
declare const index_getPromoCodesFromCart: typeof getPromoCodesFromCart;
|
|
25
|
+
declare const index_getPromoCodesLocalStorage: typeof getPromoCodesLocalStorage;
|
|
26
|
+
declare const index_getRemoteSession: typeof getRemoteSession;
|
|
27
|
+
declare const index_getSanitizedUrlForStorage: typeof getSanitizedUrlForStorage;
|
|
28
|
+
declare const index_initNetworkListeners: typeof initNetworkListeners;
|
|
29
|
+
declare const index_isEmptyPromoData: typeof isEmptyPromoData;
|
|
30
|
+
declare const index_isEqual: typeof isEqual;
|
|
31
|
+
declare const index_logger: typeof logger;
|
|
32
|
+
declare const index_mapToUnvalidatedPromoCodes: typeof mapToUnvalidatedPromoCodes;
|
|
33
|
+
declare const index_memoizeLast: typeof memoizeLast;
|
|
34
|
+
declare const index_mergeStoreAndReturnPromos: typeof mergeStoreAndReturnPromos;
|
|
35
|
+
declare const index_parseJsonStringArray: typeof parseJsonStringArray;
|
|
36
|
+
declare const index_promoCodesAreEqual: typeof promoCodesAreEqual;
|
|
37
|
+
declare const index_saveRemoteSession: typeof saveRemoteSession;
|
|
38
|
+
declare const index_setCookieValue: typeof setCookieValue;
|
|
39
|
+
declare const index_setPromoCodeInCookie: typeof setPromoCodeInCookie;
|
|
40
|
+
declare const index_setPromoCodesInLocalStorage: typeof setPromoCodesInLocalStorage;
|
|
41
|
+
declare const index_waitForElement: typeof waitForElement;
|
|
42
|
+
declare namespace index {
|
|
43
|
+
export { index_CookieChangeEvent as CookieChangeEvent, index_createScopedLocalStorage as createScopedLocalStorage, index_debounce as debounce, index_deleteCookieValue as deleteCookieValue, beamErrors as errors, index_events as events, index_formatStoreAndReturnPromoCodes as formatStoreAndReturnPromoCodes, index_getAllPromoCodesFromCookie as getAllPromoCodesFromCookie, index_getCookieMap as getCookieMap, index_getCookieValue as getCookieValue, index_getPromoCodeFromShopifyCookie as getPromoCodeFromShopifyCookie, index_getPromoCodesFromCart as getPromoCodesFromCart, index_getPromoCodesLocalStorage as getPromoCodesLocalStorage, index_getRemoteSession as getRemoteSession, index_getSanitizedUrlForStorage as getSanitizedUrlForStorage, index_initNetworkListeners as initNetworkListeners, index_isEmptyPromoData as isEmptyPromoData, index_isEqual as isEqual, index_logger as logger, index_mapToUnvalidatedPromoCodes as mapToUnvalidatedPromoCodes, index_memoizeLast as memoizeLast, index_mergeStoreAndReturnPromos as mergeStoreAndReturnPromos, index_parseJsonStringArray as parseJsonStringArray, index_promoCodesAreEqual as promoCodesAreEqual, index_saveRemoteSession as saveRemoteSession, index_setCookieValue as setCookieValue, index_setPromoCodeInCookie as setPromoCodeInCookie, index_setPromoCodesInLocalStorage as setPromoCodesInLocalStorage, index_waitForElement as waitForElement };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { index as i };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as o}from"./beam-errors-Ci0d3926.esm.js";import{e}from"./events-BohmT6Lp.esm.js";import{logger as r}from"../utils/logger.esm.js";import{initNetworkListeners as t}from"../utils/network-listeners.esm.js";import{createScopedLocalStorage as a}from"../utils/local-storage.esm.js";import{waitForElement as m}from"../utils/wait-for-element.esm.js";import{deleteCookieValue as s,getCookieMap as i,getCookieValue as d,setCookieValue as n}from"../utils/cookies.esm.js";import{getRemoteSession as C,saveRemoteSession as g}from"../utils/remote-session.esm.js";import{memoizeLast as l}from"../utils/memoize-last.esm.js";import{d as p,i as S}from"./lodash-7H4x2457.esm.js";import{f as P,c as f,b as k,h as u,g as c,a as A,i as F,m as L,j as E,e as R,p as v,s as b,k as y}from"./promoManager-fl54hq13.esm.js";var V=Object.freeze({__proto__:null,createScopedLocalStorage:a,debounce:p,deleteCookieValue:s,errors:o,events:e,formatStoreAndReturnPromoCodes:P,getAllPromoCodesFromCookie:f,getCookieMap:i,getCookieValue:d,getPromoCodeFromShopifyCookie:k,getPromoCodesFromCart:u,getPromoCodesLocalStorage:c,getRemoteSession:C,getSanitizedUrlForStorage:A,initNetworkListeners:t,isEmptyPromoData:F,isEqual:S,logger:r,mapToUnvalidatedPromoCodes:L,memoizeLast:l,mergeStoreAndReturnPromos:E,parseJsonStringArray:R,promoCodesAreEqual:v,saveRemoteSession:g,setCookieValue:n,setPromoCodeInCookie:b,setPromoCodesInLocalStorage:y,waitForElement:m});export{V as i};
|
|
2
|
+
//# sourceMappingURL=index-GcpuX_TZ.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-GcpuX_TZ.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as t,p as e,W as r,L as a,_ as i,I as o,K as p,s,Y as d}from"./order-page-CMGPM57D.esm.js";var g=Object.freeze({__proto__:null,addBeamAttributesToCart:t,appendBeamAttributesToCart:e,appendStatsigToShopifyCartAttributes:r,appendToShopifyCartBeamAttribute:a,getCurrentCart:i,getShopifyCart:o,registerCartIntegration:p,showBeamOrderPageWidgets:s,trackCart:d});export{g as i};
|
|
2
|
+
//# sourceMappingURL=index-JSoHc6g1.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-JSoHc6g1.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { i as index$5 } from './index-DvbUE31b.esm.js';
|
|
2
|
+
import { i as index$4 } from './index-v0tUXySN.esm.js';
|
|
3
|
+
import { i as index$3 } from './index-C-hPf29c.esm.js';
|
|
4
|
+
import { i as index$1 } from './index-BqBEii8E.esm.js';
|
|
5
|
+
import { i as index$2 } from './index-CbKkAM6h.esm.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This file is used to provide type definitions
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare namespace index {
|
|
12
|
+
export { index$1 as Cart, index$2 as Logs, index$3 as Session, index$4 as Shopify, index$5 as Utils };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { index as i };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-XZRQN4Rs.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|