@beamimpact/web-sdk 1.43.2 → 1.45.2
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-R9RsuSGx.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-R9RsuSGx.esm.js.map +1 -0
- package/dist/chunks/_share-dialog-dependencies-o5GBtNTA.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-o5GBtNTA.esm.js.map +1 -0
- package/dist/chunks/{cart-contents-WB1BF6hG.esm.d.ts → cart-contents-HAPzwbeL.esm.d.ts} +1 -1
- package/dist/chunks/{css-card-grid-r6wxRbPV.esm.js → css-card-grid-nEc--M5M.esm.js} +2 -2
- package/dist/chunks/{css-card-grid-r6wxRbPV.esm.js.map → css-card-grid-nEc--M5M.esm.js.map} +1 -1
- package/dist/chunks/{enforce-config-HksNiOMu.esm.js → enforce-config-ZAI7WYAd.esm.js} +2 -2
- package/dist/chunks/{enforce-config-HksNiOMu.esm.js.map → enforce-config-ZAI7WYAd.esm.js.map} +1 -1
- package/dist/chunks/{enforce-config-er6B5Gkj.esm.js → enforce-config-ZyPq_4CF.esm.js} +2 -2
- package/dist/chunks/{enforce-config-er6B5Gkj.esm.js.map → enforce-config-ZyPq_4CF.esm.js.map} +1 -1
- package/dist/chunks/{events-MfRTtTVm.esm.d.ts → events-fqRWfo7p.esm.d.ts} +1 -1
- package/dist/chunks/{index-keYXyTGw.esm.js → index--JacA4R2.esm.js} +2 -2
- package/dist/chunks/{index-keYXyTGw.esm.js.map → index--JacA4R2.esm.js.map} +1 -1
- package/dist/chunks/index-1WxwWfcp.esm.js +2 -0
- package/dist/chunks/index-1WxwWfcp.esm.js.map +1 -0
- package/dist/chunks/index-4fdLArZg.esm.js +2 -0
- package/dist/chunks/index-4fdLArZg.esm.js.map +1 -0
- package/dist/chunks/{index-UggwPn9Q.esm.d.ts → index-7mukhxz_.esm.d.ts} +1 -1
- package/dist/chunks/index-Hd_2hpsA.esm.js +2 -0
- package/dist/chunks/index-Hd_2hpsA.esm.js.map +1 -0
- package/dist/chunks/{index-1nI7l5vj.esm.js → index-JDZQClkA.esm.js} +2 -2
- package/dist/chunks/{index-1nI7l5vj.esm.js.map → index-JDZQClkA.esm.js.map} +1 -1
- package/dist/chunks/{index-OaRsZJh7.esm.d.ts → index-JG4nmG9U.esm.d.ts} +1 -1
- package/dist/chunks/index-MJNFm2RK.esm.js +2 -0
- package/dist/chunks/index-MJNFm2RK.esm.js.map +1 -0
- package/dist/chunks/{index-B9w02q6y.esm.d.ts → index-MSoONvC5.esm.d.ts} +1 -1
- package/dist/chunks/{index-uqNCQVUx.esm.d.ts → index-SExnliMs.esm.d.ts} +1 -1
- package/dist/chunks/{index-mw70Caof.esm.js → index-eXilYHHK.esm.js} +2 -2
- package/dist/chunks/{index-mw70Caof.esm.js.map → index-eXilYHHK.esm.js.map} +1 -1
- package/dist/chunks/index-gBAASIWa.esm.js +2 -0
- package/dist/chunks/index-gBAASIWa.esm.js.map +1 -0
- package/dist/chunks/index-lyf1T2wZ.esm.js +2 -0
- package/dist/chunks/index-lyf1T2wZ.esm.js.map +1 -0
- package/dist/chunks/{index-U3VWulKA.esm.js → index-qs-xQCeM.esm.js} +2 -2
- package/dist/chunks/{index-U3VWulKA.esm.js.map → index-qs-xQCeM.esm.js.map} +1 -1
- package/dist/chunks/index-qt5iD9Ok.esm.d.ts +14 -0
- package/dist/chunks/{index-ozcDdIom.esm.d.ts → index-tdUx2WLc.esm.d.ts} +4 -4
- package/dist/chunks/{lit-3QHn3fwl.esm.js → lit-iNN5L_Qk.esm.js} +2 -2
- package/dist/chunks/{lit-3QHn3fwl.esm.js.map → lit-iNN5L_Qk.esm.js.map} +1 -1
- package/dist/chunks/loading-template-t4fFsYtr.esm.js +2 -0
- package/dist/chunks/{loading-template-mLjOGXMj.esm.js.map → loading-template-t4fFsYtr.esm.js.map} +1 -1
- package/dist/chunks/localize-m-_ESmpk.esm.js +31 -0
- package/dist/chunks/localize-m-_ESmpk.esm.js.map +1 -0
- package/dist/chunks/localize-o-cYvHQf.esm.js +31 -0
- package/dist/chunks/localize-o-cYvHQf.esm.js.map +1 -0
- package/dist/chunks/{openapi-spec-GGEBbqAJ.esm.d.ts → openapi-spec-RlP2IT1i.esm.d.ts} +87 -33
- package/dist/chunks/{order-page-LvE0Otsn.esm.d.ts → order-page-FLhpaZg2.esm.d.ts} +4 -4
- package/dist/chunks/order-page-KZ7xLkRW.esm.js +2 -0
- package/dist/chunks/order-page-KZ7xLkRW.esm.js.map +1 -0
- package/dist/chunks/order-page-mlWRT5YL.esm.js +2 -0
- package/dist/chunks/order-page-mlWRT5YL.esm.js.map +1 -0
- package/dist/chunks/{progress-bar-HVG_n8_6.esm.js → progress-bar-PMU_xI3L.esm.js} +2 -2
- package/dist/chunks/{progress-bar-HVG_n8_6.esm.js.map → progress-bar-PMU_xI3L.esm.js.map} +1 -1
- package/dist/chunks/promo-pill-label-58PJRvSl.esm.js +15 -0
- package/dist/chunks/promo-pill-label-58PJRvSl.esm.js.map +1 -0
- package/dist/chunks/{responsive-KbDsZM6S.esm.js → responsive-2lC2Wrtg.esm.js} +2 -2
- package/dist/chunks/{responsive-KbDsZM6S.esm.js.map → responsive-2lC2Wrtg.esm.js.map} +1 -1
- package/dist/chunks/{routes-L-CN-xXC.esm.js → routes-FBB1GA4-.esm.js} +2 -2
- package/dist/chunks/{routes-L-CN-xXC.esm.js.map → routes-FBB1GA4-.esm.js.map} +1 -1
- package/dist/chunks/{routes-wCCYf_uA.esm.d.ts → routes-NIuAzAOC.esm.d.ts} +3 -1
- package/dist/chunks/{routes-t6bR6BdS.esm.js → routes-jmFlXAbv.esm.js} +2 -2
- package/dist/chunks/{routes-t6bR6BdS.esm.js.map → routes-jmFlXAbv.esm.js.map} +1 -1
- package/dist/chunks/share-button-SNvuFDC9.esm.js +2 -0
- package/dist/chunks/share-button-SNvuFDC9.esm.js.map +1 -0
- package/dist/chunks/{share-button-0N1lvlZT.esm.js → share-button-bQ8brpBZ.esm.js} +4 -3
- package/dist/chunks/{share-button-0N1lvlZT.esm.js.map → share-button-bQ8brpBZ.esm.js.map} +1 -1
- package/dist/chunks/{share-button-7wbogZGx.esm.js → share-button-hLOsYlSA.esm.js} +4 -3
- package/dist/chunks/{share-button-7wbogZGx.esm.js.map → share-button-hLOsYlSA.esm.js.map} +1 -1
- package/dist/chunks/{shoelace-components-BpI14CrA.esm.js → shoelace-components-leDI-Yop.esm.js} +2 -2
- package/dist/chunks/{shoelace-components-BpI14CrA.esm.js.map → shoelace-components-leDI-Yop.esm.js.map} +1 -1
- package/dist/chunks/{shoelace-components-VlhAe0ME.esm.js → shoelace-components-qjNlvvPx.esm.js} +2 -2
- package/dist/chunks/{shoelace-components-VlhAe0ME.esm.js.map → shoelace-components-qjNlvvPx.esm.js.map} +1 -1
- package/dist/chunks/{update-cart-tjLR7pMx.esm.d.ts → update-cart-Hebtxhto.esm.d.ts} +1 -1
- package/dist/chunks/update-cart-aKQ3Cjc8.esm.js +2 -0
- package/dist/chunks/update-cart-aKQ3Cjc8.esm.js.map +1 -0
- package/dist/chunks/update-cart-j9LPS5By.esm.js +2 -0
- package/dist/chunks/update-cart-j9LPS5By.esm.js.map +1 -0
- package/dist/chunks/{vendor--f7lkyBk.esm.js → vendor-GKiOHg2N.esm.js} +2 -2
- package/dist/chunks/{vendor--f7lkyBk.esm.js.map → vendor-GKiOHg2N.esm.js.map} +1 -1
- package/dist/components/beam-partner-logos.esm.js +1 -1
- package/dist/components/beam-partner-logos.js +1 -1
- package/dist/components/community-impact.d.ts +1 -0
- 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 +1 -0
- package/dist/components/cumulative-impact.esm.js +3 -3
- package/dist/components/cumulative-impact.esm.js.map +1 -1
- package/dist/components/cumulative-impact.js +3 -3
- package/dist/components/cumulative-impact.js.map +1 -1
- package/dist/components/impact-overview.d.ts +7 -1
- package/dist/components/impact-overview.esm.js +87 -73
- package/dist/components/impact-overview.esm.js.map +1 -1
- package/dist/components/impact-overview.js +87 -73
- package/dist/components/impact-overview.js.map +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/post-purchase.d.ts +4 -3
- package/dist/components/post-purchase.esm.js +4 -2
- package/dist/components/post-purchase.esm.js.map +1 -1
- package/dist/components/post-purchase.js +4 -2
- package/dist/components/post-purchase.js.map +1 -1
- package/dist/components/product-details-page.d.ts +2 -1
- package/dist/components/product-details-page.esm.js +3 -3
- package/dist/components/product-details-page.esm.js.map +1 -1
- package/dist/components/product-details-page.js +3 -3
- package/dist/components/product-details-page.js.map +1 -1
- package/dist/components/redeem-transaction.d.ts +11 -4
- package/dist/components/redeem-transaction.esm.js +256 -185
- package/dist/components/redeem-transaction.esm.js.map +1 -1
- package/dist/components/redeem-transaction.js +256 -185
- package/dist/components/redeem-transaction.js.map +1 -1
- package/dist/components/select-nonprofit.d.ts +7 -5
- package/dist/components/select-nonprofit.esm.js +55 -30
- package/dist/components/select-nonprofit.esm.js.map +1 -1
- package/dist/components/select-nonprofit.js +55 -30
- package/dist/components/select-nonprofit.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.d.ts +2 -1
- package/dist/components/select-subscription-nonprofit.esm.js +34 -19
- package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.js +34 -19
- package/dist/components/select-subscription-nonprofit.js.map +1 -1
- package/dist/components/shopify.d.ts +6 -6
- 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.esm.js +1 -1
- package/dist/components/social-share.js +1 -1
- package/dist/components/subscription-impact.d.ts +2 -1
- package/dist/components/subscription-impact.esm.js +6 -6
- package/dist/components/subscription-impact.esm.js.map +1 -1
- package/dist/components/subscription-impact.js +6 -6
- package/dist/components/subscription-impact.js.map +1 -1
- package/dist/components/subscription-management.d.ts +5 -4
- package/dist/components/subscription-management.esm.js +4 -2
- package/dist/components/subscription-management.esm.js.map +1 -1
- package/dist/components/subscription-management.js +4 -2
- package/dist/components/subscription-management.js.map +1 -1
- package/dist/index.d.ts +12 -12
- 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.d.ts +3 -3
- package/dist/integrations/cart.esm.js +1 -1
- package/dist/integrations/cart.js +1 -1
- package/dist/integrations/index.d.ts +10 -10
- 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/session.esm.js +1 -1
- package/dist/integrations/session.js +1 -1
- package/dist/integrations/shopify.d.ts +5 -5
- package/dist/integrations/shopify.esm.js +1 -1
- package/dist/integrations/shopify.js +1 -1
- package/dist/integrations/statsig.esm.js +14 -14
- package/dist/integrations/statsig.esm.js.map +1 -1
- package/dist/integrations/statsig.js +14 -14
- package/dist/integrations/statsig.js.map +1 -1
- package/dist/integrations/utils.d.ts +3 -3
- package/dist/react/beam-partner-logos.esm.js +1 -1
- package/dist/react/beam-partner-logos.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.d.ts +4 -4
- package/dist/react/index.esm.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/post-purchase.d.ts +2 -2
- 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.esm.js +1 -1
- package/dist/react/product-details-page.js +1 -1
- package/dist/react/redeem-transaction.d.ts +3 -3
- package/dist/react/redeem-transaction.esm.js +1 -1
- package/dist/react/redeem-transaction.esm.js.map +1 -1
- package/dist/react/redeem-transaction.js +1 -1
- package/dist/react/redeem-transaction.js.map +1 -1
- package/dist/react/select-nonprofit.d.ts +4 -3
- 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 +3 -3
- package/dist/react/select-subscription-nonprofit.esm.js +1 -1
- package/dist/react/select-subscription-nonprofit.esm.js.map +1 -1
- package/dist/react/select-subscription-nonprofit.js +1 -1
- package/dist/react/select-subscription-nonprofit.js.map +1 -1
- package/dist/react/social-share.esm.js +1 -1
- package/dist/react/social-share.js +1 -1
- package/dist/react/subscription-impact.esm.js +1 -1
- package/dist/react/subscription-impact.js +1 -1
- package/dist/react/subscription-management.d.ts +3 -3
- 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/cart.d.ts +18 -0
- package/dist/utils/cart.esm.js +2 -0
- package/dist/utils/cart.esm.js.map +1 -0
- package/dist/utils/cart.js +2 -0
- package/dist/utils/cart.js.map +1 -0
- package/dist/utils/events.d.ts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunks/_share-dialog-dependencies-H1_GULvN.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-H1_GULvN.esm.js.map +0 -1
- package/dist/chunks/_share-dialog-dependencies-ww3ylfIF.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-ww3ylfIF.esm.js.map +0 -1
- package/dist/chunks/checkbox-P2JYPqxl.esm.js +0 -17
- package/dist/chunks/checkbox-P2JYPqxl.esm.js.map +0 -1
- package/dist/chunks/index-Gf_Ee-cU.esm.js +0 -2
- package/dist/chunks/index-Gf_Ee-cU.esm.js.map +0 -1
- package/dist/chunks/index-Mt-ELD4q.esm.js +0 -2
- package/dist/chunks/index-Mt-ELD4q.esm.js.map +0 -1
- package/dist/chunks/index-X9fTuRmg.esm.js +0 -2
- package/dist/chunks/index-X9fTuRmg.esm.js.map +0 -1
- package/dist/chunks/index-ixzz4bX7.esm.js +0 -2
- package/dist/chunks/index-ixzz4bX7.esm.js.map +0 -1
- package/dist/chunks/index-q7eo0lf1.esm.js +0 -2
- package/dist/chunks/index-q7eo0lf1.esm.js.map +0 -1
- package/dist/chunks/index-uKlidExq.esm.js +0 -2
- package/dist/chunks/index-uKlidExq.esm.js.map +0 -1
- package/dist/chunks/index-yeW2w5bb.esm.d.ts +0 -13
- package/dist/chunks/loading-template-mLjOGXMj.esm.js +0 -2
- package/dist/chunks/localize-IRs8JglT.esm.js +0 -29
- package/dist/chunks/localize-IRs8JglT.esm.js.map +0 -1
- package/dist/chunks/localize-SsJbTmMj.esm.js +0 -29
- package/dist/chunks/localize-SsJbTmMj.esm.js.map +0 -1
- package/dist/chunks/order-page-4Tj7yLdv.esm.js +0 -2
- package/dist/chunks/order-page-4Tj7yLdv.esm.js.map +0 -1
- package/dist/chunks/order-page-9qKR3-ys.esm.js +0 -2
- package/dist/chunks/order-page-9qKR3-ys.esm.js.map +0 -1
- package/dist/chunks/promo-pill-label-3Xtr5ALT.esm.js +0 -14
- package/dist/chunks/promo-pill-label-3Xtr5ALT.esm.js.map +0 -1
- package/dist/chunks/share-button-CqTd80g8.esm.js +0 -2
- package/dist/chunks/share-button-CqTd80g8.esm.js.map +0 -1
- package/dist/chunks/update-cart-Djv-AjNu.esm.js +0 -2
- package/dist/chunks/update-cart-Djv-AjNu.esm.js.map +0 -1
- package/dist/chunks/update-cart-G7FRM8DW.esm.js +0 -2
- package/dist/chunks/update-cart-G7FRM8DW.esm.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{c as r}from"../chunks/events-_4nImo3u.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-58PJRvSl.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";const m=o({tagName:t.tagName,elementClass:t,react:e,events:{onNonprofitSelect:r.eventName}});export{m as BeamRedeemTransaction,m as default};
|
|
2
2
|
//# sourceMappingURL=redeem-transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redeem-transaction.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"redeem-transaction.js","sources":["../../src/components/redeem-transaction/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamRedeemTransaction as _BeamRedeemTransaction } from \"./index\";\n\nexport const BeamRedeemTransaction = createComponent({\n tagName: _BeamRedeemTransaction.tagName,\n elementClass: _BeamRedeemTransaction,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamRedeemTransaction; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamRedeemTransaction","createComponent","_BeamRedeemTransaction","React","BeamNonprofitSelectEvent"],"mappings":"2vBAKa,MAAAA,EAAwBC,EAAgB,CACnD,QAASC,EAAuB,QAChC,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _lit_react from '@lit/react';
|
|
2
2
|
import { EventName } from '@lit/react';
|
|
3
|
-
import { B as BeamNonprofitSelectEvent } from '../chunks/events-
|
|
3
|
+
import { B as BeamNonprofitSelectEvent } from '../chunks/events-fqRWfo7p.esm.js';
|
|
4
4
|
import { BeamSelectNonprofit as BeamSelectNonprofit$1 } from '../components/select-nonprofit.js';
|
|
5
|
-
import '../chunks/cart-contents-
|
|
6
|
-
import '../chunks/openapi-spec-
|
|
5
|
+
import '../chunks/cart-contents-HAPzwbeL.esm.js';
|
|
6
|
+
import '../chunks/openapi-spec-RlP2IT1i.esm.js';
|
|
7
7
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
8
8
|
import 'lit-html';
|
|
9
9
|
import 'lit';
|
|
10
|
+
import 'lodash';
|
|
10
11
|
import '../chunks/progress-bar-0VS_AmEf.esm.js';
|
|
11
12
|
import '../chunks/promo-pill-label-3bA1z-la.esm.js';
|
|
12
13
|
import '../chunks/types-aju0qrRe.esm.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as m}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as m}from"../chunks/lit-iNN5L_Qk.esm.js";import{c as r}from"../chunks/events-_4nImo3u.esm.js";import{BeamSelectNonprofit as e}from"../components/select-nonprofit.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/routes-jmFlXAbv.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-58PJRvSl.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.esm.js";import"../utils/cookies.esm.js";const t=m({tagName:"beam-select-nonprofit",elementClass:e,react:o,events:{onNonprofitSelect:r.eventName}});export{t as BeamSelectNonprofit,t as default};
|
|
2
2
|
//# sourceMappingURL=select-nonprofit.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-nonprofit.esm.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-nonprofit.esm.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"22BAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as m}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as m}from"../chunks/lit-iNN5L_Qk.esm.js";import{c as r}from"../chunks/events-_4nImo3u.esm.js";import{BeamSelectNonprofit as e}from"../components/select-nonprofit.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-58PJRvSl.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.js";import"../utils/cookies.js";const t=m({tagName:"beam-select-nonprofit",elementClass:e,react:o,events:{onNonprofitSelect:r.eventName}});export{t as BeamSelectNonprofit,t as default};
|
|
2
2
|
//# sourceMappingURL=select-nonprofit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-nonprofit.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-nonprofit.js","sources":["../../src/components/select-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectNonprofit as _BeamSelectNonprofit } from \"./index\";\n\nexport const BeamSelectNonprofit = createComponent({\n tagName: \"beam-select-nonprofit\",\n elementClass: _BeamSelectNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectNonprofit","createComponent","_BeamSelectNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"m1BAKa,MAAAA,EAAsBC,EAAgB,CACjD,QAAS,wBACT,aAAcC,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _lit_react from '@lit/react';
|
|
2
2
|
import { EventName } from '@lit/react';
|
|
3
|
-
import { B as BeamNonprofitSelectEvent } from '../chunks/events-
|
|
3
|
+
import { B as BeamNonprofitSelectEvent } from '../chunks/events-fqRWfo7p.esm.js';
|
|
4
4
|
import { BeamSelectSubscriptionNonprofit as BeamSelectSubscriptionNonprofit$1 } from '../components/select-subscription-nonprofit.js';
|
|
5
|
-
import '../chunks/cart-contents-
|
|
6
|
-
import '../chunks/openapi-spec-
|
|
5
|
+
import '../chunks/cart-contents-HAPzwbeL.esm.js';
|
|
6
|
+
import '../chunks/openapi-spec-RlP2IT1i.esm.js';
|
|
7
7
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
8
8
|
import 'lit-html';
|
|
9
9
|
import 'lit';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{c as m}from"../chunks/events-_4nImo3u.esm.js";import{BeamSelectSubscriptionNonprofit as t}from"../components/select-subscription-nonprofit.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-jmFlXAbv.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/beam-partner-logos.esm.js";const o=e({tagName:t.tagName,elementClass:t,react:r,events:{onNonprofitSelect:m.eventName}});export{o as BeamSelectSubscriptionNonprofit,o as default};
|
|
2
2
|
//# sourceMappingURL=select-subscription-nonprofit.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-subscription-nonprofit.esm.js","sources":["../../src/components/select-subscription-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectSubscriptionNonprofit as _BeamSelectSubscriptionNonprofit } from \"./index\";\n\nexport const BeamSelectSubscriptionNonprofit = createComponent({\n tagName: _BeamSelectSubscriptionNonprofit.tagName,\n elementClass: _BeamSelectSubscriptionNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectSubscriptionNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectSubscriptionNonprofit","createComponent","_BeamSelectSubscriptionNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-subscription-nonprofit.esm.js","sources":["../../src/components/select-subscription-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectSubscriptionNonprofit as _BeamSelectSubscriptionNonprofit } from \"./index\";\n\nexport const BeamSelectSubscriptionNonprofit = createComponent({\n tagName: _BeamSelectSubscriptionNonprofit.tagName,\n elementClass: _BeamSelectSubscriptionNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectSubscriptionNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectSubscriptionNonprofit","createComponent","_BeamSelectSubscriptionNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"6uBAKa,MAAAA,EAAkCC,EAAgB,CAC7D,QAASC,EAAiC,QAC1C,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{c as m}from"../chunks/events-_4nImo3u.esm.js";import{BeamSelectSubscriptionNonprofit as t}from"../components/select-subscription-nonprofit.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/beam-partner-logos.js";const o=e({tagName:t.tagName,elementClass:t,react:r,events:{onNonprofitSelect:m.eventName}});export{o as BeamSelectSubscriptionNonprofit,o as default};
|
|
2
2
|
//# sourceMappingURL=select-subscription-nonprofit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-subscription-nonprofit.js","sources":["../../src/components/select-subscription-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectSubscriptionNonprofit as _BeamSelectSubscriptionNonprofit } from \"./index\";\n\nexport const BeamSelectSubscriptionNonprofit = createComponent({\n tagName: _BeamSelectSubscriptionNonprofit.tagName,\n elementClass: _BeamSelectSubscriptionNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectSubscriptionNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectSubscriptionNonprofit","createComponent","_BeamSelectSubscriptionNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-subscription-nonprofit.js","sources":["../../src/components/select-subscription-nonprofit/react.ts"],"sourcesContent":["import React from \"react\";\nimport { createComponent, EventName } from \"@lit/react\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { BeamSelectSubscriptionNonprofit as _BeamSelectSubscriptionNonprofit } from \"./index\";\n\nexport const BeamSelectSubscriptionNonprofit = createComponent({\n tagName: _BeamSelectSubscriptionNonprofit.tagName,\n elementClass: _BeamSelectSubscriptionNonprofit,\n react: React,\n events: {\n onNonprofitSelect: BeamNonprofitSelectEvent.eventName as EventName<BeamNonprofitSelectEvent>,\n },\n});\n\nexport default BeamSelectSubscriptionNonprofit; // default alias for use with async import utils like next/dynamic and react.lazy\n"],"names":["BeamSelectSubscriptionNonprofit","createComponent","_BeamSelectSubscriptionNonprofit","React","BeamNonprofitSelectEvent"],"mappings":"ytBAKa,MAAAA,EAAkCC,EAAgB,CAC7D,QAASC,EAAiC,QAC1C,aAAcA,EACd,MAAOC,EACP,OAAQ,CACN,kBAAmBC,EAAyB,SAC9C,CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as t}from"../chunks/lit-
|
|
1
|
+
import r from"react";import{l as t}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSocialShare as m}from"../components/social-share.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-qjNlvvPx.esm.js";import"../chunks/routes-jmFlXAbv.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";const o=t({tagName:m.tagName,elementClass:m,react:r});export{o as BeamSocialShare,o as default};
|
|
2
2
|
//# sourceMappingURL=social-share.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as t}from"../chunks/lit-
|
|
1
|
+
import r from"react";import{l as t}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSocialShare as m}from"../components/social-share.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-leDI-Yop.esm.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";const o=t({tagName:m.tagName,elementClass:m,react:r});export{o as BeamSocialShare,o as default};
|
|
2
2
|
//# sourceMappingURL=social-share.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/share-button-hLOsYlSA.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/routes-jmFlXAbv.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
|
|
2
2
|
//# sourceMappingURL=subscription-impact.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSubscriptionImpact as t}from"../components/subscription-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/share-button-bQ8brpBZ.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamSubscriptionImpact,m as default};
|
|
2
2
|
//# sourceMappingURL=subscription-impact.js.map
|
|
@@ -2,9 +2,9 @@ import * as _lit_react from '@lit/react';
|
|
|
2
2
|
import { BeamSubscriptionManagement as BeamSubscriptionManagement$1 } from '../components/subscription-management.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'lit';
|
|
5
|
-
import '../chunks/routes-
|
|
6
|
-
import '../chunks/cart-contents-
|
|
7
|
-
import '../chunks/openapi-spec-
|
|
5
|
+
import '../chunks/routes-NIuAzAOC.esm.js';
|
|
6
|
+
import '../chunks/cart-contents-HAPzwbeL.esm.js';
|
|
7
|
+
import '../chunks/openapi-spec-RlP2IT1i.esm.js';
|
|
8
8
|
import '../components/select-subscription-nonprofit.js';
|
|
9
9
|
import 'lodash';
|
|
10
10
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-jmFlXAbv.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/events-_4nImo3u.esm.js";import"../components/select-subscription-nonprofit.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../utils/local-storage.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/beam-partner-logos.esm.js";import"../components/subscription-impact.esm.js";import"../chunks/share-button-hLOsYlSA.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,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":"6iCAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.js";import"../chunks/routes-FBB1GA4-.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/events-_4nImo3u.esm.js";import"../components/select-subscription-nonprofit.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/makeApiKeyHeader.js";import"../utils/local-storage.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/beam-partner-logos.js";import"../components/subscription-impact.js";import"../chunks/share-button-bQ8brpBZ.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,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":"ihCAIO,MAAMA,EAA6BC,EAAgB,CACxD,QAASC,EAA4B,QACrC,aAAcA,EACd,MAAOC,EACP,OAAQ,CAAA,CACV,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the Beam cart ID from cookies
|
|
3
|
+
* @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID
|
|
4
|
+
* @returns The Beam cart ID if present in cookies or local storage, otherwise null
|
|
5
|
+
*/
|
|
6
|
+
declare const getBeamCartId: (CART_COOKIE_NAME: string, config: {
|
|
7
|
+
apiKey: string;
|
|
8
|
+
}) => string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the external cart ID
|
|
11
|
+
* @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID
|
|
12
|
+
* @returns The external cart ID if available or null if neither is available
|
|
13
|
+
*/
|
|
14
|
+
declare const getExternalCartId: (CART_COOKIE_NAME: string, config: {
|
|
15
|
+
apiKey: string;
|
|
16
|
+
}) => string | null;
|
|
17
|
+
|
|
18
|
+
export { getBeamCartId, getExternalCartId };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getCookieValue as r}from"./cookies.esm.js";import{createScopedLocalStorage as o}from"./local-storage.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"./logger.esm.js";const a=(t,e)=>o(e).getItemJson("cart")?.beamCartId??r(t)??null,m=(t,e)=>o(e).getItemJson("cart")?.cartId??r(t)??null;export{a as getBeamCartId,m as getExternalCartId};
|
|
2
|
+
//# sourceMappingURL=cart.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.esm.js","sources":["../../src/utils/cart.ts"],"sourcesContent":["import { TBeamCartLocalStorage } from \"../shared/cart-contents\";\nimport { getCookieValue } from \"./cookies\";\nimport { createScopedLocalStorage } from \"./local-storage\";\n\n/**\n * Retrieves the Beam cart ID from cookies\n * @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID\n * @returns The Beam cart ID if present in cookies or local storage, otherwise null\n */\nexport const getBeamCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get the Beam cart cookie\n const beamCartId: string | null = cachedCart?.beamCartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return beamCartId;\n};\n\n/**\n * Retrieves the external cart ID\n * @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID\n * @returns The external cart ID if available or null if neither is available\n */\nexport const getExternalCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get external cart cookie\n const externalCartId: string | null = cachedCart?.cartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return externalCartId;\n};\n"],"names":["getBeamCartId","CART_COOKIE_NAME","config","createScopedLocalStorage","getCookieValue","getExternalCartId"],"mappings":"0LASO,MAAMA,EAAgB,CAACC,EAA0BC,IACjCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAGlC,YAAcE,EAAeH,CAAgB,GAAK,KASrFI,EAAoB,CAACJ,EAA0BC,IACrCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAG9B,QAAUE,EAAeH,CAAgB,GAAK"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getCookieValue as r}from"./cookies.js";import{createScopedLocalStorage as o}from"./local-storage.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"./logger.js";const a=(t,e)=>o(e).getItemJson("cart")?.beamCartId??r(t)??null,m=(t,e)=>o(e).getItemJson("cart")?.cartId??r(t)??null;export{a as getBeamCartId,m as getExternalCartId};
|
|
2
|
+
//# sourceMappingURL=cart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.js","sources":["../../src/utils/cart.ts"],"sourcesContent":["import { TBeamCartLocalStorage } from \"../shared/cart-contents\";\nimport { getCookieValue } from \"./cookies\";\nimport { createScopedLocalStorage } from \"./local-storage\";\n\n/**\n * Retrieves the Beam cart ID from cookies\n * @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID\n * @returns The Beam cart ID if present in cookies or local storage, otherwise null\n */\nexport const getBeamCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get the Beam cart cookie\n const beamCartId: string | null = cachedCart?.beamCartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return beamCartId;\n};\n\n/**\n * Retrieves the external cart ID\n * @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID\n * @returns The external cart ID if available or null if neither is available\n */\nexport const getExternalCartId = (CART_COOKIE_NAME: string, config: { apiKey: string }): string | null => {\n const localStorage = createScopedLocalStorage(config);\n\n // The cart cache is used to detect changes after page refreshes / across tabs\n const cachedCart: TBeamCartLocalStorage | null = localStorage.getItemJson(\"cart\");\n\n // Get external cart cookie\n const externalCartId: string | null = cachedCart?.cartId ?? getCookieValue(CART_COOKIE_NAME) ?? null;\n return externalCartId;\n};\n"],"names":["getBeamCartId","CART_COOKIE_NAME","config","createScopedLocalStorage","getCookieValue","getExternalCartId"],"mappings":"8KASO,MAAMA,EAAgB,CAACC,EAA0BC,IACjCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAGlC,YAAcE,EAAeH,CAAgB,GAAK,KASrFI,EAAoB,CAACJ,EAA0BC,IACrCC,EAAyBD,CAAM,EAGU,YAAY,MAAM,GAG9B,QAAUE,EAAeH,CAAgB,GAAK"}
|
package/dist/utils/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../chunks/cart-contents-
|
|
1
|
+
import '../chunks/cart-contents-HAPzwbeL.esm.js';
|
|
2
2
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
3
|
-
export { b as BeamCartChangeEvent, c as BeamCartCreatedEvent, a as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, g as BeamNonprofitSelectionRemovedEvent, d as BeamOrderCreatedEvent, f as BeamStatusChangeEvent } from '../chunks/events-
|
|
4
|
-
import '../chunks/openapi-spec-
|
|
3
|
+
export { b as BeamCartChangeEvent, c as BeamCartCreatedEvent, a as BeamNetworkCallEvent, B as BeamNonprofitSelectEvent, g as BeamNonprofitSelectionRemovedEvent, d as BeamOrderCreatedEvent, f as BeamStatusChangeEvent } from '../chunks/events-fqRWfo7p.esm.js';
|
|
4
|
+
import '../chunks/openapi-spec-RlP2IT1i.esm.js';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { b as errors } from '../chunks/beam-errors-fXDkG1zo.esm.js';
|
|
2
|
-
export { e as events } from '../chunks/events-
|
|
2
|
+
export { e as events } from '../chunks/events-fqRWfo7p.esm.js';
|
|
3
3
|
export { logger } from './logger.js';
|
|
4
4
|
export { fetchProxy, initNetworkListeners, xhrProxy } from './network-listeners.js';
|
|
5
5
|
export { createScopedLocalStorage } from './local-storage.js';
|
|
@@ -9,6 +9,6 @@ export { getRemoteSession, saveRemoteSession } from './remote-session.js';
|
|
|
9
9
|
export { memoizeLast } from './memoize-last.js';
|
|
10
10
|
export { default as debounce } from 'lodash-es/debounce';
|
|
11
11
|
export { default as isEqual } from 'lodash-es/isEqual';
|
|
12
|
-
import '../chunks/cart-contents-
|
|
13
|
-
import '../chunks/openapi-spec-
|
|
12
|
+
import '../chunks/cart-contents-HAPzwbeL.esm.js';
|
|
13
|
+
import '../chunks/openapi-spec-RlP2IT1i.esm.js';
|
|
14
14
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_share-dialog-dependencies-H1_GULvN.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./vendor--f7lkyBk.esm.js";import"./shoelace-components-VlhAe0ME.esm.js";import"./lit-3QHn3fwl.esm.js";import"./routes-t6bR6BdS.esm.js";import"./beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";
|
|
2
|
-
//# sourceMappingURL=_share-dialog-dependencies-ww3ylfIF.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_share-dialog-dependencies-ww3ylfIF.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{y as e,k as i}from"./lit-3QHn3fwl.esm.js";const l=({height:t="1em",width:o="1em"}={})=>e`
|
|
2
|
-
<svg
|
|
3
|
-
style="${i({height:t,width:o,position:"relative",bottom:"0"})}"
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
viewBox="0 0 78.369 78.369"
|
|
6
|
-
>
|
|
7
|
-
<g>
|
|
8
|
-
<path
|
|
9
|
-
d="M78.049,19.015L29.458,67.606c-0.428,0.428-1.121,0.428-1.548,0L0.32,40.015c-0.427-0.426-0.427-1.119,0-1.547l6.704-6.704
|
|
10
|
-
c0.428-0.427,1.121-0.427,1.548,0l20.113,20.112l41.113-41.113c0.429-0.427,1.12-0.427,1.548,0l6.703,6.704
|
|
11
|
-
C78.477,17.894,78.477,18.586,78.049,19.015z"
|
|
12
|
-
style="fill: currentColor"
|
|
13
|
-
/>
|
|
14
|
-
</g>
|
|
15
|
-
</svg>
|
|
16
|
-
`;export{l as _};
|
|
17
|
-
//# sourceMappingURL=checkbox-P2JYPqxl.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-P2JYPqxl.esm.js","sources":["../../src/shared/fragments/checkbox.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\n\nexport const _checkbox = ({ height = \"1em\", width = \"1em\" } = {}) =>\n html`\n <svg\n style=\"${styleMap({ height, width, position: \"relative\", bottom: \"0\" })}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 78.369 78.369\"\n >\n <g>\n <path\n d=\"M78.049,19.015L29.458,67.606c-0.428,0.428-1.121,0.428-1.548,0L0.32,40.015c-0.427-0.426-0.427-1.119,0-1.547l6.704-6.704\n c0.428-0.427,1.121-0.427,1.548,0l20.113,20.112l41.113-41.113c0.429-0.427,1.12-0.427,1.548,0l6.703,6.704\n C78.477,17.894,78.477,18.586,78.049,19.015z\"\n style=\"fill: currentColor\"\n />\n </g>\n </svg>\n `;\n"],"names":["_checkbox","height","width","html","styleMap"],"mappings":"iDAGa,MAAAA,EAAY,CAAC,CAAE,OAAAC,EAAS,MAAO,MAAAC,EAAQ,KAAM,EAAI,CAC5DC,IAAAA;AAAAA;AAAAA,eAEaC,EAAS,CAAE,OAAAH,EAAQ,MAAAC,EAAO,SAAU,WAAY,OAAQ,GAAI,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as e,h as r,M as t,s as a,U as o}from"./order-page-9qKR3-ys.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
|
|
2
|
-
//# sourceMappingURL=index-Gf_Ee-cU.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-Gf_Ee-cU.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i}from"./index-z8c9I9IQ.esm.js";import{i as o}from"./index-q7eo0lf1.esm.js";import{i as r}from"./index-mw70Caof.esm.js";import{i as e}from"./index-uKlidExq.esm.js";import{i as m}from"./index-U3VWulKA.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-Mt-ELD4q.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-Mt-ELD4q.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i}from"./index-x2kxA_Xo.esm.js";import{i as o}from"./index-Gf_Ee-cU.esm.js";import{i as r}from"./index-1nI7l5vj.esm.js";import{i as e}from"./index-ixzz4bX7.esm.js";import{i as m}from"./index-keYXyTGw.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-X9fTuRmg.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-X9fTuRmg.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-ixzz4bX7.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as e,h as r,M as t,s as a,U as o}from"./order-page-4Tj7yLdv.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
|
|
2
|
-
//# sourceMappingURL=index-q7eo0lf1.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-q7eo0lf1.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-uKlidExq.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { T as TBeamOrderPageParams, a as addBeamAttributesToCart, g as getCurrentCart, r as registerCartIntegration, s as showBeamOrderPageWidgets, t as trackCart } from './order-page-LvE0Otsn.esm.js';
|
|
2
|
-
|
|
3
|
-
declare const index_TBeamOrderPageParams: typeof TBeamOrderPageParams;
|
|
4
|
-
declare const index_addBeamAttributesToCart: typeof addBeamAttributesToCart;
|
|
5
|
-
declare const index_getCurrentCart: typeof getCurrentCart;
|
|
6
|
-
declare const index_registerCartIntegration: typeof registerCartIntegration;
|
|
7
|
-
declare const index_showBeamOrderPageWidgets: typeof showBeamOrderPageWidgets;
|
|
8
|
-
declare const index_trackCart: typeof trackCart;
|
|
9
|
-
declare namespace index {
|
|
10
|
-
export { index_TBeamOrderPageParams as TBeamOrderPageParams, index_addBeamAttributesToCart as addBeamAttributesToCart, index_getCurrentCart as getCurrentCart, index_registerCartIntegration as registerCartIntegration, index_showBeamOrderPageWidgets as showBeamOrderPageWidgets, index_trackCart as trackCart };
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { index as i };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{y as i,j as p}from"./lit-3QHn3fwl.esm.js";import{N as m,M as $,B as g}from"./beam-errors-P-Lu07Ce.esm.js";import{logger as y}from"../utils/logger.esm.js";const u=t=>Object.entries(t).map(([e,r])=>`${e}: ${r};`).join(`
|
|
2
|
-
`);class d{constructor(e,r){this.data=null,this.loading=!1,this.error=null,(this.host=e).addController(this),this.asyncFn=r}async exec(...e){this.lastArgs=e,this.loading=!0,this.host.requestUpdate();try{this.data=await this.asyncFn(...e),this.error=null}catch(r){r instanceof Error&&(this.error=r,this.data=null)}return this.loading=!1,this.host.requestUpdate(),this.data}async retry(){return this.exec(...this.lastArgs||[])}hostDisconnected(){}}const f={errorTitle:"Beam encountered an error. Please try again.",retry:"Retry"},b=({error:t,retry:e})=>{let r=i``;if(t instanceof m){const s=JSON.stringify({status:t.response.status,statusText:t.response.statusText,url:t.response.url,body:t.body},null,4);r=i`
|
|
3
|
-
<p><b>Network Response:</b></p>
|
|
4
|
-
<p>${s}</p>
|
|
5
|
-
`}return t instanceof $&&(r=i`
|
|
6
|
-
<p><b>Missing Required Config Options:</b></p>
|
|
7
|
-
<p>${t.missingConfigKeyNames.join(", ")}</p>
|
|
8
|
-
`),i`<div class="beam-error" style="text-align: left">
|
|
9
|
-
<p>${f.errorTitle} ${e?i` <button type="reset" @click="${e}">${f.retry}</button>`:""}</p>
|
|
10
|
-
<br />
|
|
11
|
-
<details>
|
|
12
|
-
<div style="white-space: pre-wrap; font-family: monospace; line-height: 1;">
|
|
13
|
-
${r}
|
|
14
|
-
<p><b>Message:</b> ${t.message||i`<i>None</i>`}</p>
|
|
15
|
-
<p><b>Stack:</b> ${t.stack}</p>
|
|
16
|
-
</div>
|
|
17
|
-
</details>
|
|
18
|
-
<br />
|
|
19
|
-
<p>Help: <a href="https://www.beamimpact.com">www.beamimpact.com</a></p>
|
|
20
|
-
</div>`},x=(t="",{fontFamily:e="inherit",fontStyle:r="inherit",fontSize:s="inherit",fontWeight:o="inherit",textTransform:a="none",marginTop:l="0",lineHeight:h="inherit",color:c="inherit"}={})=>{const n=t.startsWith("--beam-")?t:`--beam-${t}`;return{[`${n}-fontFamily`]:e,[`${n}-fontStyle`]:r,[`${n}-fontSize`]:s,[`${n}-fontWeight`]:o,[`${n}-textTransform`]:a,[`${n}-marginTop`]:l,[`${n}-lineHeight`]:h,[`${n}-color`]:c}},T=(t="",{fontFamily:e="inherit",fontStyle:r="inherit",fontSize:s="inherit",fontWeight:o="inherit",textTransform:a="none",marginTop:l="0",lineHeight:h="inherit",color:c="inherit"}={})=>{const n=t.startsWith("--beam-")?t:`--beam-${t}`;return p(` font-family: var(${n}-fontFamily, ${e});
|
|
21
|
-
font-style: var(${n}-fontStyle, ${r});
|
|
22
|
-
font-size: var(${n}-fontSize, ${s});
|
|
23
|
-
font-weight: var(${n}-fontWeight, ${o});
|
|
24
|
-
text-transform: var(${n}-textTransform, ${a});
|
|
25
|
-
margin-top: var(${n}-marginTop, ${l});
|
|
26
|
-
line-height: var(${n}-lineHeight, ${h});
|
|
27
|
-
color: var(${n}-color, ${c});
|
|
28
|
-
`)},w=(t,e)=>{if(e.startsWith("{"))try{const r=JSON.parse(e);return r[t]??r.en??e}catch{return y.error(new g("Failed to extract JSON translation from string"),e),e}return e};export{d as A,b as _,u as a,x as d,w as i,T as u};
|
|
29
|
-
//# sourceMappingURL=localize-IRs8JglT.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localize-IRs8JglT.esm.js","sources":["../../src/shared/fragments/css-variable-map.ts","../../src/shared/controllers/async-controller.ts","../../src/shared/fragments/error-message-template.ts","../../src/shared/fragments/custom-text.ts","../../src/shared/localize.ts"],"sourcesContent":["export const _cssVariableMap = (variables: Record<string, string>) => {\n return Object.entries(variables)\n .map(([k, v]) => `${k}: ${v};`)\n .join(\"\\n\");\n};\n","import { ReactiveController, ReactiveControllerHost } from \"lit\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AsyncFunction = (...args: any[]) => Promise<any>;\n\n/**\n * Creates a declarative wrapper around async operations\n * @example\n * class MyElement extends LitElement {\n * private user = new AsyncController(\n * this,\n * async ({ id }) => get(url, { id }));\n *\n * async updated(changedProperties) {\n * if (changedProperties.has(\"userId\")) {\n * await this.user.exec({ id: this.userId })\n * }\n * }\n *\n * render() {\n * const { data, loading, error } = this.user;\n * if (loading) return html`Please wait...`\n * if (error) return html`Error! <button @click=${this.user.retry}>Reload</button>`;\n * return html`My name is: ${data.name}`\n * }\n * }\n */\nexport class AsyncController<TFn extends AsyncFunction> implements ReactiveController {\n public data: Awaited<ReturnType<TFn>> | null = null;\n public loading = false;\n public error: Error | null = null;\n\n private readonly host: ReactiveControllerHost;\n private readonly asyncFn: TFn;\n private lastArgs?: Parameters<TFn>;\n\n constructor(host: ReactiveControllerHost, asyncFn: TFn) {\n (this.host = host).addController(this);\n this.asyncFn = asyncFn;\n }\n\n public async exec(...args: Parameters<TFn>): Promise<ReturnType<TFn> | null> {\n this.lastArgs = args;\n this.loading = true;\n this.host.requestUpdate();\n try {\n // TODO: prevent race condition if later invocation returns before earlier\n this.data = await this.asyncFn(...args);\n this.error = null;\n } catch (err) {\n if (err instanceof Error) {\n this.error = err;\n this.data = null;\n }\n }\n this.loading = false;\n this.host.requestUpdate();\n return this.data;\n }\n\n public async retry() {\n return this.exec(...((this.lastArgs || []) as Parameters<TFn>));\n }\n\n hostDisconnected() {\n // TODO: cancel API calls\n }\n}\n","import { html } from \"lit\";\nimport { MissingConfig, NetworkError } from \"../../utils/beam-errors\";\n\nconst strings = {\n errorTitle: `Beam encountered an error. Please try again.`,\n retry: `Retry`,\n};\n\nexport const _errorMessage = ({ error, retry }: { error: Error; retry?: (...args: never) => void }) => {\n let details = html``;\n if (error instanceof NetworkError) {\n const response = JSON.stringify(\n {\n status: error.response.status,\n statusText: error.response.statusText,\n url: error.response.url,\n body: error.body,\n },\n null,\n 4\n );\n details = html`\n <p><b>Network Response:</b></p>\n <p>${response}</p>\n `;\n }\n if (error instanceof MissingConfig) {\n details = html`\n <p><b>Missing Required Config Options:</b></p>\n <p>${error.missingConfigKeyNames.join(\", \")}</p>\n `;\n }\n return html`<div class=\"beam-error\" style=\"text-align: left\">\n <p>${strings.errorTitle} ${retry ? html` <button type=\"reset\" @click=\"${retry}\">${strings.retry}</button>` : \"\"}</p>\n <br />\n <details>\n <div style=\"white-space: pre-wrap; font-family: monospace; line-height: 1;\">\n ${details}\n <p><b>Message:</b> ${error.message || html`<i>None</i>`}</p>\n <p><b>Stack:</b> ${error.stack}</p>\n </div>\n </details>\n <br />\n <p>Help: <a href=\"https://www.beamimpact.com\">www.beamimpact.com</a></p>\n </div>`;\n};\n","import { CSSResult, unsafeCSS } from \"lit\";\n\n/**\n * Create an object that can be passed to cssVariableMap\n * to define CSS variables in a style tag. The default properties\n * are the ones exposed for customization in the remote config interface.\n * @example\n * const variables = {\n * ...customizableTextJs(\"widget-header\",\n * \"widget-border-color\": \"red\"\n * };\n *\n * html`<style>:host { ${_cssVariableMap(variables)} }</style>`;\n * @returns {{[p: string]: string}}\n */\nexport const defineCustomText = (\n namespace = \"\",\n {\n fontFamily = \"inherit\",\n fontStyle = \"inherit\",\n fontSize = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n color = \"inherit\",\n } = {}\n): Record<string, string> => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return {\n [`${prefix}-fontFamily`]: fontFamily,\n [`${prefix}-fontStyle`]: fontStyle,\n [`${prefix}-fontSize`]: fontSize,\n [`${prefix}-fontWeight`]: fontWeight,\n [`${prefix}-textTransform`]: textTransform,\n [`${prefix}-marginTop`]: marginTop,\n [`${prefix}-lineHeight`]: lineHeight,\n [`${prefix}-color`]: color,\n };\n};\n\n/**\n * Returns a string that defines css properties based on variables,\n * which can be used in a css`` template. The default properties are the\n * ones exposed for customization in the remote config interface.\n * @example\n * css`.widget-header { ${customizableTextCss(\"widget-header\")} border: none; }`\n * @returns {CSSResult}\n */\nexport const useCustomText = (\n namespace = \"\",\n {\n fontFamily = \"inherit\",\n fontStyle = \"inherit\",\n fontSize = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n color = \"inherit\",\n } = {}\n): CSSResult => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return unsafeCSS(`\\\n font-family: var(${prefix}-fontFamily, ${fontFamily});\n font-style: var(${prefix}-fontStyle, ${fontStyle});\n font-size: var(${prefix}-fontSize, ${fontSize});\n font-weight: var(${prefix}-fontWeight, ${fontWeight});\n text-transform: var(${prefix}-textTransform, ${textTransform});\n margin-top: var(${prefix}-marginTop, ${marginTop});\n line-height: var(${prefix}-lineHeight, ${lineHeight});\n color: var(${prefix}-color, ${color});\n `);\n};\n\n/**\n * Same as useCustomText except returns an object that can be passed to styleMap\n */\nexport const useCustomTextMap = (\n namespace = \"\",\n {\n fontSize = \"inherit\",\n fontStyle = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n } = {}\n): Record<string, string> => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return {\n fontSize: `var(${prefix}-fontSize, ${fontSize})`,\n fontStyle: `var(${prefix}-fontStyle, ${fontStyle})`,\n fontWeight: `var(${prefix}-fontWeight, ${fontWeight})`,\n textTransform: `var(${prefix}-textTransform, ${textTransform})`,\n marginTop: `var(${prefix}-marginTop, ${marginTop})`,\n lineHeight: `var(${prefix}-lineHeight, ${lineHeight})`,\n };\n};\n","import { LANGUAGES } from \"../api-sdk/types\";\nimport { logger } from \"../utils/logger\";\nimport { BeamError } from \"../utils/beam-errors\";\n\n/**\n * User-provided strings may include embedded translations in JSON form\n * This function extracts the string for the provided language\n * If it fails to parse, or the string is not json-like, it returns the whole string\n * TODO: consider returning unsafeHtml() or adding an option for it\n */\nconst localizeUserString = (lang: LANGUAGES, str: string): string => {\n const isJson = str.startsWith(\"{\");\n if (isJson) {\n try {\n const json = JSON.parse(str);\n return json[lang] ?? json[\"en\"] ?? str;\n } catch (err) {\n logger.error(new BeamError(\"Failed to extract JSON translation from string\"), str);\n return str;\n }\n }\n return str;\n};\n\nexport { localizeUserString };\n"],"names":["_cssVariableMap","variables","k","v","AsyncController","host","asyncFn","args","err","strings","_errorMessage","error","retry","details","html","NetworkError","response","MissingConfig","defineCustomText","namespace","fontFamily","fontStyle","fontSize","fontWeight","textTransform","marginTop","lineHeight","color","prefix","useCustomText","unsafeCSS","localizeUserString","lang","str","json","logger","BeamError"],"mappings":"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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{y as i,j as p}from"./lit-3QHn3fwl.esm.js";import{N as m,M as $,B as g}from"./beam-errors-P-Lu07Ce.esm.js";import{logger as y}from"../utils/logger.js";const u=t=>Object.entries(t).map(([e,r])=>`${e}: ${r};`).join(`
|
|
2
|
-
`);class d{constructor(e,r){this.data=null,this.loading=!1,this.error=null,(this.host=e).addController(this),this.asyncFn=r}async exec(...e){this.lastArgs=e,this.loading=!0,this.host.requestUpdate();try{this.data=await this.asyncFn(...e),this.error=null}catch(r){r instanceof Error&&(this.error=r,this.data=null)}return this.loading=!1,this.host.requestUpdate(),this.data}async retry(){return this.exec(...this.lastArgs||[])}hostDisconnected(){}}const f={errorTitle:"Beam encountered an error. Please try again.",retry:"Retry"},b=({error:t,retry:e})=>{let r=i``;if(t instanceof m){const s=JSON.stringify({status:t.response.status,statusText:t.response.statusText,url:t.response.url,body:t.body},null,4);r=i`
|
|
3
|
-
<p><b>Network Response:</b></p>
|
|
4
|
-
<p>${s}</p>
|
|
5
|
-
`}return t instanceof $&&(r=i`
|
|
6
|
-
<p><b>Missing Required Config Options:</b></p>
|
|
7
|
-
<p>${t.missingConfigKeyNames.join(", ")}</p>
|
|
8
|
-
`),i`<div class="beam-error" style="text-align: left">
|
|
9
|
-
<p>${f.errorTitle} ${e?i` <button type="reset" @click="${e}">${f.retry}</button>`:""}</p>
|
|
10
|
-
<br />
|
|
11
|
-
<details>
|
|
12
|
-
<div style="white-space: pre-wrap; font-family: monospace; line-height: 1;">
|
|
13
|
-
${r}
|
|
14
|
-
<p><b>Message:</b> ${t.message||i`<i>None</i>`}</p>
|
|
15
|
-
<p><b>Stack:</b> ${t.stack}</p>
|
|
16
|
-
</div>
|
|
17
|
-
</details>
|
|
18
|
-
<br />
|
|
19
|
-
<p>Help: <a href="https://www.beamimpact.com">www.beamimpact.com</a></p>
|
|
20
|
-
</div>`},x=(t="",{fontFamily:e="inherit",fontStyle:r="inherit",fontSize:s="inherit",fontWeight:o="inherit",textTransform:a="none",marginTop:l="0",lineHeight:h="inherit",color:c="inherit"}={})=>{const n=t.startsWith("--beam-")?t:`--beam-${t}`;return{[`${n}-fontFamily`]:e,[`${n}-fontStyle`]:r,[`${n}-fontSize`]:s,[`${n}-fontWeight`]:o,[`${n}-textTransform`]:a,[`${n}-marginTop`]:l,[`${n}-lineHeight`]:h,[`${n}-color`]:c}},T=(t="",{fontFamily:e="inherit",fontStyle:r="inherit",fontSize:s="inherit",fontWeight:o="inherit",textTransform:a="none",marginTop:l="0",lineHeight:h="inherit",color:c="inherit"}={})=>{const n=t.startsWith("--beam-")?t:`--beam-${t}`;return p(` font-family: var(${n}-fontFamily, ${e});
|
|
21
|
-
font-style: var(${n}-fontStyle, ${r});
|
|
22
|
-
font-size: var(${n}-fontSize, ${s});
|
|
23
|
-
font-weight: var(${n}-fontWeight, ${o});
|
|
24
|
-
text-transform: var(${n}-textTransform, ${a});
|
|
25
|
-
margin-top: var(${n}-marginTop, ${l});
|
|
26
|
-
line-height: var(${n}-lineHeight, ${h});
|
|
27
|
-
color: var(${n}-color, ${c});
|
|
28
|
-
`)},w=(t,e)=>{if(e.startsWith("{"))try{const r=JSON.parse(e);return r[t]??r.en??e}catch{return y.error(new g("Failed to extract JSON translation from string"),e),e}return e};export{d as A,b as _,u as a,x as d,w as i,T as u};
|
|
29
|
-
//# sourceMappingURL=localize-SsJbTmMj.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localize-SsJbTmMj.esm.js","sources":["../../src/shared/fragments/css-variable-map.ts","../../src/shared/controllers/async-controller.ts","../../src/shared/fragments/error-message-template.ts","../../src/shared/fragments/custom-text.ts","../../src/shared/localize.ts"],"sourcesContent":["export const _cssVariableMap = (variables: Record<string, string>) => {\n return Object.entries(variables)\n .map(([k, v]) => `${k}: ${v};`)\n .join(\"\\n\");\n};\n","import { ReactiveController, ReactiveControllerHost } from \"lit\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AsyncFunction = (...args: any[]) => Promise<any>;\n\n/**\n * Creates a declarative wrapper around async operations\n * @example\n * class MyElement extends LitElement {\n * private user = new AsyncController(\n * this,\n * async ({ id }) => get(url, { id }));\n *\n * async updated(changedProperties) {\n * if (changedProperties.has(\"userId\")) {\n * await this.user.exec({ id: this.userId })\n * }\n * }\n *\n * render() {\n * const { data, loading, error } = this.user;\n * if (loading) return html`Please wait...`\n * if (error) return html`Error! <button @click=${this.user.retry}>Reload</button>`;\n * return html`My name is: ${data.name}`\n * }\n * }\n */\nexport class AsyncController<TFn extends AsyncFunction> implements ReactiveController {\n public data: Awaited<ReturnType<TFn>> | null = null;\n public loading = false;\n public error: Error | null = null;\n\n private readonly host: ReactiveControllerHost;\n private readonly asyncFn: TFn;\n private lastArgs?: Parameters<TFn>;\n\n constructor(host: ReactiveControllerHost, asyncFn: TFn) {\n (this.host = host).addController(this);\n this.asyncFn = asyncFn;\n }\n\n public async exec(...args: Parameters<TFn>): Promise<ReturnType<TFn> | null> {\n this.lastArgs = args;\n this.loading = true;\n this.host.requestUpdate();\n try {\n // TODO: prevent race condition if later invocation returns before earlier\n this.data = await this.asyncFn(...args);\n this.error = null;\n } catch (err) {\n if (err instanceof Error) {\n this.error = err;\n this.data = null;\n }\n }\n this.loading = false;\n this.host.requestUpdate();\n return this.data;\n }\n\n public async retry() {\n return this.exec(...((this.lastArgs || []) as Parameters<TFn>));\n }\n\n hostDisconnected() {\n // TODO: cancel API calls\n }\n}\n","import { html } from \"lit\";\nimport { MissingConfig, NetworkError } from \"../../utils/beam-errors\";\n\nconst strings = {\n errorTitle: `Beam encountered an error. Please try again.`,\n retry: `Retry`,\n};\n\nexport const _errorMessage = ({ error, retry }: { error: Error; retry?: (...args: never) => void }) => {\n let details = html``;\n if (error instanceof NetworkError) {\n const response = JSON.stringify(\n {\n status: error.response.status,\n statusText: error.response.statusText,\n url: error.response.url,\n body: error.body,\n },\n null,\n 4\n );\n details = html`\n <p><b>Network Response:</b></p>\n <p>${response}</p>\n `;\n }\n if (error instanceof MissingConfig) {\n details = html`\n <p><b>Missing Required Config Options:</b></p>\n <p>${error.missingConfigKeyNames.join(\", \")}</p>\n `;\n }\n return html`<div class=\"beam-error\" style=\"text-align: left\">\n <p>${strings.errorTitle} ${retry ? html` <button type=\"reset\" @click=\"${retry}\">${strings.retry}</button>` : \"\"}</p>\n <br />\n <details>\n <div style=\"white-space: pre-wrap; font-family: monospace; line-height: 1;\">\n ${details}\n <p><b>Message:</b> ${error.message || html`<i>None</i>`}</p>\n <p><b>Stack:</b> ${error.stack}</p>\n </div>\n </details>\n <br />\n <p>Help: <a href=\"https://www.beamimpact.com\">www.beamimpact.com</a></p>\n </div>`;\n};\n","import { CSSResult, unsafeCSS } from \"lit\";\n\n/**\n * Create an object that can be passed to cssVariableMap\n * to define CSS variables in a style tag. The default properties\n * are the ones exposed for customization in the remote config interface.\n * @example\n * const variables = {\n * ...customizableTextJs(\"widget-header\",\n * \"widget-border-color\": \"red\"\n * };\n *\n * html`<style>:host { ${_cssVariableMap(variables)} }</style>`;\n * @returns {{[p: string]: string}}\n */\nexport const defineCustomText = (\n namespace = \"\",\n {\n fontFamily = \"inherit\",\n fontStyle = \"inherit\",\n fontSize = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n color = \"inherit\",\n } = {}\n): Record<string, string> => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return {\n [`${prefix}-fontFamily`]: fontFamily,\n [`${prefix}-fontStyle`]: fontStyle,\n [`${prefix}-fontSize`]: fontSize,\n [`${prefix}-fontWeight`]: fontWeight,\n [`${prefix}-textTransform`]: textTransform,\n [`${prefix}-marginTop`]: marginTop,\n [`${prefix}-lineHeight`]: lineHeight,\n [`${prefix}-color`]: color,\n };\n};\n\n/**\n * Returns a string that defines css properties based on variables,\n * which can be used in a css`` template. The default properties are the\n * ones exposed for customization in the remote config interface.\n * @example\n * css`.widget-header { ${customizableTextCss(\"widget-header\")} border: none; }`\n * @returns {CSSResult}\n */\nexport const useCustomText = (\n namespace = \"\",\n {\n fontFamily = \"inherit\",\n fontStyle = \"inherit\",\n fontSize = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n color = \"inherit\",\n } = {}\n): CSSResult => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return unsafeCSS(`\\\n font-family: var(${prefix}-fontFamily, ${fontFamily});\n font-style: var(${prefix}-fontStyle, ${fontStyle});\n font-size: var(${prefix}-fontSize, ${fontSize});\n font-weight: var(${prefix}-fontWeight, ${fontWeight});\n text-transform: var(${prefix}-textTransform, ${textTransform});\n margin-top: var(${prefix}-marginTop, ${marginTop});\n line-height: var(${prefix}-lineHeight, ${lineHeight});\n color: var(${prefix}-color, ${color});\n `);\n};\n\n/**\n * Same as useCustomText except returns an object that can be passed to styleMap\n */\nexport const useCustomTextMap = (\n namespace = \"\",\n {\n fontSize = \"inherit\",\n fontStyle = \"inherit\",\n fontWeight = \"inherit\",\n textTransform = \"none\",\n marginTop = \"0\",\n lineHeight = \"inherit\",\n } = {}\n): Record<string, string> => {\n const prefix = namespace.startsWith(\"--beam-\") ? namespace : `--beam-${namespace}`;\n return {\n fontSize: `var(${prefix}-fontSize, ${fontSize})`,\n fontStyle: `var(${prefix}-fontStyle, ${fontStyle})`,\n fontWeight: `var(${prefix}-fontWeight, ${fontWeight})`,\n textTransform: `var(${prefix}-textTransform, ${textTransform})`,\n marginTop: `var(${prefix}-marginTop, ${marginTop})`,\n lineHeight: `var(${prefix}-lineHeight, ${lineHeight})`,\n };\n};\n","import { LANGUAGES } from \"../api-sdk/types\";\nimport { logger } from \"../utils/logger\";\nimport { BeamError } from \"../utils/beam-errors\";\n\n/**\n * User-provided strings may include embedded translations in JSON form\n * This function extracts the string for the provided language\n * If it fails to parse, or the string is not json-like, it returns the whole string\n * TODO: consider returning unsafeHtml() or adding an option for it\n */\nconst localizeUserString = (lang: LANGUAGES, str: string): string => {\n const isJson = str.startsWith(\"{\");\n if (isJson) {\n try {\n const json = JSON.parse(str);\n return json[lang] ?? json[\"en\"] ?? str;\n } catch (err) {\n logger.error(new BeamError(\"Failed to extract JSON translation from string\"), str);\n return str;\n }\n }\n return str;\n};\n\nexport { localizeUserString };\n"],"names":["_cssVariableMap","variables","k","v","AsyncController","host","asyncFn","args","err","strings","_errorMessage","error","retry","details","html","NetworkError","response","MissingConfig","defineCustomText","namespace","fontFamily","fontStyle","fontSize","fontWeight","textTransform","marginTop","lineHeight","color","prefix","useCustomText","unsafeCSS","localizeUserString","lang","str","json","logger","BeamError"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as T}from"./lodash-P8OIs-at.esm.js";import{b as U,d as A,c as O,g as j}from"./events-_4nImo3u.esm.js";import{logger as k}from"../utils/logger.esm.js";import{initNetworkListeners as D}from"../utils/network-listeners.esm.js";import{createScopedLocalStorage as S}from"../utils/local-storage.esm.js";import{getCookieValue as w}from"../utils/cookies.esm.js";import{memoizeLast as J}from"../utils/memoize-last.esm.js";import{B as N}from"./cart-contents-h60geKWa.esm.js";import{K as y}from"./update-cart-Djv-AjNu.esm.js";import{W as K,D as R}from"./routes-t6bR6BdS.esm.js";import"../components/post-purchase.esm.js";import{waitForElement as M}from"../utils/wait-for-element.esm.js";import{B as x}from"./beam-errors-P-Lu07Ce.esm.js";const v=window.Shopify?.routes?.root||"/";let B=!1;const C="cart";async function P(r){if(B)return!1;const m=await b(r),p=w(C);m.cart.cartId!==p&&await y(r,m.cart),await h({}),D(),window.addEventListener(U.eventName,async c=>{const i=c,n=/cart\/(add|change|update|clear)/,o=i.detail.type==="xhr"?i.detail.xhr.responseURL:i.detail.response.url,a=new URL(o);if(!n.test(a.pathname))return;const t=await b(r);if(!t.changed)return;const l={schema:t.cart.schema,content:{items:t.cart.content.items,discounts:t.cart.content.discounts}};window.dispatchEvent(new A(l)),await y(r,t.cart)});let s,d;return window.addEventListener(O.eventName,async c=>{const i=c,{source:n,selectedNonprofitId:o,selectionId:a}=i.detail;if(n===K.select_nonprofit){const t=await w(C),l=await w(N),{chainId:u,storeId:f}=r;if(s===o&&d===a)return;await h({selectedNonprofitId:o,selectionId:a,beamCartId:l,cartId:t,chainId:u,storeId:f}),d=a,s=o}}),window.addEventListener(j.eventName,async c=>{const i=c,{newNonprofitId:n,selectionId:o}=i.detail,a=await w(C),t=await w(N),{chainId:l,storeId:u}=r;s===n&&d===o||(await h({selectedNonprofitId:n,beamCartId:t,selectionId:o,cartId:a,chainId:l,storeId:u}),d=o,s=n)}),B=!0,!0}async function b(r){const{token:m,total_price:p,item_count:s,currency:d,items:c,cart_level_discount_applications:i}=await window.fetch(v+"cart.js",{method:"GET",headers:{"Content-Type":"application/json"}}).then(t=>t.json()),n={cartId:m,subtotal:p/100,itemCount:s,currencyCode:d,schema:{source:"generic"},content:{items:c.map(({sku:t,final_line_price:l,product_id:u,line_level_discount_allocations:f})=>{const g=t||String(u),I=l/100,_=f?.map(({discount_application:e})=>({code:e?.title,applicable:!0}));return{remoteProductIdentifier:g,localAmount:I,discounts:_}}),discounts:i.map(({title:t})=>({code:t,applicable:!0}))}};let o=!1;const a=S(r).getItemJson("cart");return T(n,a)||(o=!0),{changed:o,cart:n}}const W=y,h=J(async function({selectedNonprofitId:r,selectionId:m,beamCartId:p,cartId:s,chainId:d,storeId:c}){let i,n;if(window.statsig){const a=window.statsig;i=a.getLayer("beam_trial_layer").get("show_beam",!1),n=a.getStableID()}const o={beam:JSON.stringify({nonprofit_id:r,selection_id:m,beam_cart_id:p,shopify_cart_id:s,chain_id:d,store_id:c,show_beam:i,remote_session_id:n})};try{await window.fetch(v+"cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:o})})}catch(a){k.error(a)}});async function q({parentSelector:r=".step__sections",apiKey:m,baseUrl:p=R,storeId:s,postalCode:d,countryCode:c,orderId:i,email:n,cartTotal:o,cart:a,discountCodes:t,currencyCode:l="USD",domain:u,lang:f="en",debug:g=!1}){const I=document.querySelector(r)||await M(r);if(!I)throw new x(`Timed out waiting for selector '${r}'. Could not render Beam post-purchase widget.`);const _=await w("cart");if(_){const E=S({apiKey:m}),L=E.getItemJson("cart")||{};E.setItemJson("cart",{...L,cartId:_})}const e=document.createElement("beam-post-purchase");e.apiKey=m,e.baseUrl=p,e.storeId=s,e.postalCode=d,e.countryCode=c,e.orderId=String(i),e.email=n,e.cartTotal=o,e.cart=a,e.discountCodes=t,e.currencyCode=l,e.domain=u,e.lang=f,e.debug=g,I.appendChild(e)}export{P as M,W as U,h as f,b as h,q as s};
|
|
2
|
-
//# sourceMappingURL=order-page-4Tj7yLdv.esm.js.map
|