@beamimpact/web-sdk 1.46.1 → 1.47.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-0ivyNKvC.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-0ivyNKvC.esm.js.map +1 -0
- package/dist/chunks/_share-dialog-dependencies-tTzjG045.esm.js +2 -0
- package/dist/chunks/_share-dialog-dependencies-tTzjG045.esm.js.map +1 -0
- package/dist/chunks/{cart-contents-MrYQNVDx.esm.d.ts → cart-contents-CMm57qu0.esm.d.ts} +1 -1
- package/dist/chunks/{events-_4nImo3u.esm.js → events-6Z5MkCRr.esm.js} +2 -2
- package/dist/chunks/{events-_4nImo3u.esm.js.map → events-6Z5MkCRr.esm.js.map} +1 -1
- package/dist/chunks/{events--Qgk7Mel.esm.d.ts → events-ZCTR9JGZ.esm.d.ts} +1 -1
- package/dist/chunks/index--z5MSe4-.esm.d.ts +17 -0
- package/dist/chunks/{index-8gDNc2to.esm.d.ts → index-2bLOkP4H.esm.d.ts} +3 -5
- package/dist/chunks/{index-dvBJt1Qq.esm.js → index-59K_SAPn.esm.js} +2 -2
- package/dist/chunks/{index-dvBJt1Qq.esm.js.map → index-59K_SAPn.esm.js.map} +1 -1
- package/dist/chunks/index-B6jnCB4o.esm.js +2 -0
- package/dist/chunks/index-B6jnCB4o.esm.js.map +1 -0
- package/dist/chunks/index-BPg2EdL3.esm.js +2 -0
- package/dist/chunks/index-BPg2EdL3.esm.js.map +1 -0
- package/dist/chunks/index-CsWTfuok.esm.js +2 -0
- package/dist/chunks/index-CsWTfuok.esm.js.map +1 -0
- package/dist/chunks/{index-S_lCvtkH.esm.d.ts → index-GynYZRPI.esm.d.ts} +3 -5
- package/dist/chunks/{index-1W93aRCe.esm.js → index-KOSC2Z9-.esm.js} +2 -2
- package/dist/chunks/{index-1W93aRCe.esm.js.map → index-KOSC2Z9-.esm.js.map} +1 -1
- package/dist/chunks/index-MIp7LlXH.esm.js +2 -0
- package/dist/chunks/index-MIp7LlXH.esm.js.map +1 -0
- package/dist/chunks/{index-gQHtJWVP.esm.d.ts → index-PA0NAKHV.esm.d.ts} +1 -1
- package/dist/chunks/{index-ikzViFqS.esm.d.ts → index-XH3OS_sy.esm.d.ts} +4 -4
- package/dist/chunks/index-YJNgLCif.esm.js +2 -0
- package/dist/chunks/index-YJNgLCif.esm.js.map +1 -0
- package/dist/chunks/index-YcyQB-6f.esm.js +2 -0
- package/dist/chunks/index-YcyQB-6f.esm.js.map +1 -0
- package/dist/chunks/index-ZZthq-Fl.esm.js +2 -0
- package/dist/chunks/index-ZZthq-Fl.esm.js.map +1 -0
- package/dist/chunks/index-b3WjW4PD.esm.js +2 -0
- package/dist/chunks/index-b3WjW4PD.esm.js.map +1 -0
- package/dist/chunks/index-cuCnejll.esm.js +2 -0
- package/dist/chunks/index-cuCnejll.esm.js.map +1 -0
- package/dist/chunks/index-iK195-B9.esm.js +2 -0
- package/dist/chunks/index-iK195-B9.esm.js.map +1 -0
- package/dist/chunks/{index-wqLh9Pnq.esm.d.ts → index-v6fG3D6u.esm.d.ts} +1 -1
- package/dist/chunks/{openapi-spec--os_utEo.esm.d.ts → openapi-spec-hjdK2L9Q.esm.d.ts} +2 -0
- package/dist/chunks/order-page-84vnjksY.esm.js +2 -0
- package/dist/chunks/order-page-84vnjksY.esm.js.map +1 -0
- package/dist/chunks/{order-page-GwRa273v.esm.d.ts → order-page-9clVUPaS.esm.d.ts} +28 -4
- package/dist/chunks/order-page-dERTuQ8T.esm.js +2 -0
- package/dist/chunks/order-page-dERTuQ8T.esm.js.map +1 -0
- package/dist/chunks/{routes-o0OWqrXe.esm.js → routes-Jhhqcsg7.esm.js} +2 -2
- package/dist/chunks/{routes-o0OWqrXe.esm.js.map → routes-Jhhqcsg7.esm.js.map} +1 -1
- package/dist/chunks/{routes-DWNnzqXL.esm.js → routes-tB5fHy2T.esm.js} +2 -2
- package/dist/chunks/{routes-DWNnzqXL.esm.js.map → routes-tB5fHy2T.esm.js.map} +1 -1
- package/dist/chunks/{share-button-18T-n7FU.esm.js → share-button-DeVQh1aE.esm.js} +2 -2
- package/dist/chunks/{share-button-18T-n7FU.esm.js.map → share-button-DeVQh1aE.esm.js.map} +1 -1
- package/dist/chunks/{share-button-W7QRecW0.esm.js → share-button-bUM2WBaV.esm.js} +2 -2
- package/dist/chunks/{share-button-W7QRecW0.esm.js.map → share-button-bUM2WBaV.esm.js.map} +1 -1
- package/dist/chunks/{shoelace-components-H1SnT4Dq.esm.js → shoelace-components-JZANE20x.esm.js} +2 -2
- package/dist/chunks/{shoelace-components-H1SnT4Dq.esm.js.map → shoelace-components-JZANE20x.esm.js.map} +1 -1
- package/dist/chunks/{shoelace-components-scmUU5La.esm.js → shoelace-components-Jghvahj3.esm.js} +2 -2
- package/dist/chunks/{shoelace-components-scmUU5La.esm.js.map → shoelace-components-Jghvahj3.esm.js.map} +1 -1
- package/dist/chunks/update-cart-i5yZ2fyd.esm.js +2 -0
- package/dist/chunks/update-cart-i5yZ2fyd.esm.js.map +1 -0
- package/dist/chunks/{update-cart-KjKc8Cls.esm.d.ts → update-cart-l86bU5uS.esm.d.ts} +2 -2
- package/dist/chunks/update-cart-v61CI4O9.esm.js +2 -0
- package/dist/chunks/update-cart-v61CI4O9.esm.js.map +1 -0
- package/dist/components/community-impact.esm.js +1 -1
- package/dist/components/community-impact.js +1 -1
- package/dist/components/cumulative-impact.esm.js +1 -1
- package/dist/components/cumulative-impact.js +1 -1
- package/dist/components/impact-overview.esm.js +8 -8
- package/dist/components/impact-overview.esm.js.map +1 -1
- package/dist/components/impact-overview.js +8 -8
- package/dist/components/impact-overview.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/post-purchase.d.ts +3 -3
- package/dist/components/post-purchase.esm.js +1 -1
- package/dist/components/post-purchase.js +1 -1
- package/dist/components/product-details-page.d.ts +1 -1
- package/dist/components/product-details-page.esm.js +1 -1
- package/dist/components/product-details-page.js +1 -1
- package/dist/components/redeem-transaction.d.ts +3 -3
- package/dist/components/redeem-transaction.esm.js +1 -1
- package/dist/components/redeem-transaction.js +1 -1
- package/dist/components/select-nonprofit.d.ts +6 -6
- package/dist/components/select-nonprofit.esm.js +3 -3
- package/dist/components/select-nonprofit.esm.js.map +1 -1
- package/dist/components/select-nonprofit.js +3 -3
- package/dist/components/select-nonprofit.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.d.ts +1 -1
- package/dist/components/select-subscription-nonprofit.esm.js +1 -1
- package/dist/components/select-subscription-nonprofit.js +1 -1
- package/dist/components/shopify.d.ts +5 -5
- 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 +1 -1
- package/dist/components/subscription-impact.esm.js +1 -1
- package/dist/components/subscription-impact.js +1 -1
- package/dist/components/subscription-management.d.ts +3 -3
- package/dist/components/subscription-management.esm.js +1 -1
- package/dist/components/subscription-management.js +1 -1
- package/dist/index.d.ts +11 -11
- 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 +9 -9
- 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/shopify.d.ts +4 -4
- package/dist/integrations/shopify.esm.js +1 -1
- package/dist/integrations/shopify.js +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 +4 -4
- package/dist/integrations/utils.esm.js +1 -1
- package/dist/integrations/utils.js +1 -1
- package/dist/react/community-impact.esm.js +1 -1
- package/dist/react/community-impact.js +1 -1
- package/dist/react/cumulative-impact.esm.js +1 -1
- package/dist/react/cumulative-impact.js +1 -1
- package/dist/react/impact-overview.esm.js +1 -1
- package/dist/react/impact-overview.js +1 -1
- package/dist/react/index.d.ts +3 -3
- 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.js +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.js +1 -1
- package/dist/react/select-nonprofit.d.ts +3 -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.js +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 +2 -2
- package/dist/react/subscription-management.esm.js +1 -1
- package/dist/react/subscription-management.js +1 -1
- package/dist/utils/events.d.ts +3 -3
- package/dist/utils/events.esm.js +1 -1
- package/dist/utils/events.js +1 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/network-listeners.d.ts +1 -3
- 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/package.json +1 -1
- package/dist/chunks/_share-dialog-dependencies-PFFpDNAX.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-PFFpDNAX.esm.js.map +0 -1
- package/dist/chunks/_share-dialog-dependencies-ctThmFDw.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-ctThmFDw.esm.js.map +0 -1
- package/dist/chunks/index-Hb6pipkL.esm.js +0 -2
- package/dist/chunks/index-Hb6pipkL.esm.js.map +0 -1
- package/dist/chunks/index-Ie9en2n6.esm.d.ts +0 -14
- package/dist/chunks/index-NOF_HeFP.esm.js +0 -2
- package/dist/chunks/index-NOF_HeFP.esm.js.map +0 -1
- package/dist/chunks/index-cGU2h6FW.esm.js +0 -2
- package/dist/chunks/index-cGU2h6FW.esm.js.map +0 -1
- package/dist/chunks/index-hGumnpwj.esm.js +0 -2
- package/dist/chunks/index-hGumnpwj.esm.js.map +0 -1
- package/dist/chunks/index-hOkyesad.esm.js +0 -2
- package/dist/chunks/index-hOkyesad.esm.js.map +0 -1
- package/dist/chunks/index-n6QNFLXV.esm.js +0 -2
- package/dist/chunks/index-n6QNFLXV.esm.js.map +0 -1
- package/dist/chunks/index-pLSxG_UY.esm.js +0 -2
- package/dist/chunks/index-pLSxG_UY.esm.js.map +0 -1
- package/dist/chunks/index-rmlKdwmx.esm.js +0 -2
- package/dist/chunks/index-rmlKdwmx.esm.js.map +0 -1
- package/dist/chunks/index-x2kxA_Xo.esm.js +0 -2
- package/dist/chunks/index-x2kxA_Xo.esm.js.map +0 -1
- package/dist/chunks/index-z8c9I9IQ.esm.js +0 -2
- package/dist/chunks/index-z8c9I9IQ.esm.js.map +0 -1
- package/dist/chunks/order-page-CqyWx-7V.esm.js +0 -2
- package/dist/chunks/order-page-CqyWx-7V.esm.js.map +0 -1
- package/dist/chunks/order-page-PE7XPoJe.esm.js +0 -2
- package/dist/chunks/order-page-PE7XPoJe.esm.js.map +0 -1
- package/dist/chunks/update-cart-Tv_fewXm.esm.js +0 -2
- package/dist/chunks/update-cart-Tv_fewXm.esm.js.map +0 -1
- package/dist/chunks/update-cart-YDnJT-2Q.esm.js +0 -2
- package/dist/chunks/update-cart-YDnJT-2Q.esm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsig.js","sources":["../../src/integrations/statsig/plugin.ts"],"sourcesContent":["import { postExperimentSession } from \"../../api-sdk/v3/routes\";\nimport { BEAM_CART_COOKIE_NAME } from \"../../shared/cart-contents\";\nimport { BeamCartCreatedEvent, BeamNonprofitSelectEvent, BeamOrderCreatedEvent } from \"../../utils/events\";\nimport { BeamPlugin, BeamConfigOptions } from \"../beam\";\nimport { BeamError } from \"../../utils/beam-errors\";\nimport { getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { logger } from \"../../utils/logger\";\nimport { saveRemoteSession } from \"../../utils/remote-session\";\n\ntype beforeLogEventFn = (eventName: string, eventValue: any, metadata: Record<string, any>) => Record<string, any>;\n\n/**\n * StatSig Docs: https://docs.statsig.com/client/jsClientSDK\n */\ntype StatsigPluginOptions = {\n statsigApiKey: string;\n beforeLogEvent?: beforeLogEventFn;\n};\n\ndeclare global {\n interface Window {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n statsig?: any; // attached by Statsig CDN script\n }\n}\n\nconst STATSIG_VERSION = 4;\n\nconst STATSIG_SCRIPT_URL = `https://cdn.jsdelivr.net/npm/statsig-js@${STATSIG_VERSION}/build/statsig-prod-web-sdk.min.js`;\n\nconst STATSIG_STABLE_ID_COOKIE = \"beam_statsig_session_id\";\n\nconst BEAM_VISIBILITY_DATA_ATTRIBUTE = \"data-beam-visibility\";\n\n// Add class to elements that should only show when Beam shows\nconst BEAM_VISIBILITY_SYNCED_CLASS = \"beam-sync-visibility\";\n\nconst BEAM_AB_TEST_EVENTS = {\n STATSIG_INIT: \"statsig_init\",\n CART_CREATED: \"cart_created\",\n ORDER_CREATED: \"order_created\",\n BEAM_SELECTION: \"beam_selection\",\n};\n\ntype Experiments = {\n /** Whether Beam widgets should be shown to users */\n shouldShowBeam: boolean;\n /** Whether events should be logged to Statsig */\n isLoggingEnabled: boolean;\n};\n\n/**\n * Sets up Statsig for A/B testing and shows/hides Beam based on default experiment rules.\n * @example\n * import { StatsigPlugin } from '@beamimpact/web-sdk/dist/integrations/statsig'\n * import { init } from '@beamimpact/web-sdk/dist/integrations/beam'\n *\n * const beam = await init({\n * apiKey: '',\n * chainId: 1,\n * storeId: 1,\n * domain: 'my-store.com' // in case site uses subdomains for different pages\n * plugins: [\n * new StatsigPlugin({ statsigApiKey: '' })\n * ]\n * })\n *\n * // Once initialized, all Beam widgets have display: none unless user is assigned to A/B test group that shows Beam\n * // To hide additional elements, add the CSS className \"beam-sync-visibility\" to them\n * // To programmatically access the experiment state: getConfig().plugins.statsig.experiments.shouldShowBeam\n */\nexport class StatsigPlugin implements BeamPlugin {\n name = \"statsig\";\n\n statsig: any; // Statsig SDK instance\n\n statsigApiKey: string;\n\n experiments: Experiments = {\n shouldShowBeam: false,\n isLoggingEnabled: true,\n };\n\n stableId?: string;\n\n beforeLogEvent?: beforeLogEventFn;\n\n #beamConfig?: BeamConfigOptions;\n\n // Checked at initialization so that we can tell if post-purchase events came from a session with a cart or not\n #beamCartCookie?: string;\n\n constructor(options: StatsigPluginOptions) {\n this.statsigApiKey = options.statsigApiKey;\n this.beforeLogEvent = options.beforeLogEvent;\n }\n\n async init(config: BeamConfigOptions) {\n this.#beamConfig = config;\n\n // Add event listeners for cart/order lifecycle events\n // This should happen as soon as possible to avoid missing events\n this.#attachEventListeners();\n\n // Attach beam-visibility data attribute to body\n this.#setBeamVisibilityValue(\"hide\");\n\n // Create beam a/b test stylesheet\n const beamVisibilityStylesheet = document.createElement(\"style\");\n beamVisibilityStylesheet.innerHTML = `\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-select-nonprofit,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-post-purchase,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-redeem-transaction,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-impact-overview,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-community-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-cumulative-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-product-details-page,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-subscription-management,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-subscription-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-select-subscription-nonprofit,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-social-share,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] .${BEAM_VISIBILITY_SYNCED_CLASS} {\n display: none;\n }\n `;\n document.head.append(beamVisibilityStylesheet);\n\n // Create statsig script\n await this.#initializeStatsig();\n this.stableId = this.statsig.getStableID();\n if (!this.stableId) {\n throw new BeamError(\"Statsig failed to assign stableId\", { name: \"StatsigInitError\" });\n }\n\n // Send events that happened before Statsig was ready\n this.#flushEventQueue();\n\n // Save Statsig ID in localStorage for linking to carts later\n saveRemoteSession({ remoteSessionId: this.stableId, apiKey: config.apiKey });\n\n // Save initial value of cart cookie so that post-purchase events can be filtered by if they had a cart or not\n this.#beamCartCookie = getCookieValue(BEAM_CART_COOKIE_NAME);\n\n // Cache ID in cookie to preserve ID across subdomains\n setCookieValue({\n name: STATSIG_STABLE_ID_COOKIE,\n value: this.stableId,\n path: \"/\",\n domain: config.domain,\n });\n\n // Evaluate Statsig experiment assignments\n this.experiments = {\n // Whether Beam widgets should be shown to users\n shouldShowBeam: this.statsig\n .getLayer(\"beam_trial_layer\")\n .get(\"show_beam\", false /* default to hide */) as boolean,\n // Whether events should be logged to Statsig\n isLoggingEnabled: this.statsig.getLayer(\"beam_trial_layer\").get(\"enable_logging\", true) as boolean,\n };\n\n // In parallel:\n // A) Make test call to Statsig\n // B) Save stable ID in Beam for attribution to carts/transactions\n await Promise.all([this.#testStatsigConnection(), this.#registerExperimentWithBeam()]);\n\n // Update beam visibility data attribute, which shows Beam to users in the experiment\n this.#setBeamVisibilityValue(this.experiments.shouldShowBeam ? \"show\" : \"hide\");\n\n // Log result\n logger.debug(\"Statsig Experiment Assignments\", this.experiments);\n }\n\n #attachEventListeners() {\n // Cart Created\n window.addEventListener(BeamCartCreatedEvent.eventName, (_event: Event) => {\n const event = _event as BeamCartCreatedEvent;\n const { itemCount, cartId, subtotal, currencyCode } = event.detail;\n this.logEvent(BEAM_AB_TEST_EVENTS.CART_CREATED, true, { itemCount, cartId, subtotal, currencyCode });\n });\n\n // Order Created\n window.addEventListener(BeamOrderCreatedEvent.eventName, (_event: Event) => {\n const event = _event as BeamOrderCreatedEvent;\n const { orderId, cartTotal, currencyCode } = event.detail;\n this.logEvent(BEAM_AB_TEST_EVENTS.ORDER_CREATED, cartTotal, {\n orderId,\n cartTotal,\n currencyCode,\n hasCart: !!this.#beamCartCookie,\n });\n });\n\n // Beam Selection\n // Store previous value in case widget is recreated and emits event again:\n let lastSelectedNonprofitId: number | null | undefined;\n window.addEventListener(BeamNonprofitSelectEvent.eventName, (_event: Event) => {\n const event = _event as BeamNonprofitSelectEvent;\n const { selectedNonprofitId, selectionId, source } = event.detail;\n if (selectedNonprofitId !== lastSelectedNonprofitId) {\n this.logEvent(BEAM_AB_TEST_EVENTS.BEAM_SELECTION, true, {\n nonprofitId: selectedNonprofitId,\n widget: source,\n selectionId,\n });\n lastSelectedNonprofitId = selectedNonprofitId;\n }\n });\n }\n\n // https://docs.statsig.com/client/jsClientSDK#statsig-options\n async #initializeStatsig() {\n const statsigScript = document.createElement(\"script\");\n statsigScript.src = STATSIG_SCRIPT_URL;\n statsigScript.async = false;\n const statsigReadyPromise = new Promise((res, rej) => {\n statsigScript.addEventListener(\"load\", res);\n statsigScript.addEventListener(\"error\", rej);\n });\n document.head.append(statsigScript);\n try {\n await statsigReadyPromise;\n } catch (err) {\n throw new BeamError(\"Failed to load Statsig script\", { name: \"StatsigInitError\" });\n }\n this.statsig = window.statsig;\n if (!this.statsig) {\n throw new BeamError(\"Failed to detect Statsig\", { name: \"StatsigInitError\" });\n }\n // https://docs.statsig.com/client/jsClientSDK#statsig-options\n const statsigOptions = {\n disableErrorLogging: true,\n disableAutoMetricsLogging: true,\n disableCurrentPageLogging: true,\n loggingIntervalMillis: 1000,\n loggingBufferMaxSize: 2,\n overrideStableID: getCookieValue(STATSIG_STABLE_ID_COOKIE) ?? null,\n };\n await this.statsig.initialize(this.statsigApiKey, {}, statsigOptions);\n }\n\n #eventQueue: Parameters<typeof StatsigPlugin.prototype.logEvent>[] = [];\n\n #flushEventQueue() {\n while (this.#eventQueue.length > 0) {\n const eventParams = this.#eventQueue.shift();\n if (eventParams) {\n this.logEvent(...eventParams);\n }\n }\n }\n\n logEvent(name: string, value: string | number | boolean, metadata: Record<string, any> = {}) {\n if (!this.statsig) {\n this.#eventQueue.push([name, value, metadata]);\n return;\n }\n const withBeam = this.experiments.shouldShowBeam;\n const domain = window.location.hostname;\n const path = window.location.pathname;\n const page = window.location.href;\n if (this.experiments.isLoggingEnabled) {\n const metadataWithOverrides = this.beforeLogEvent ? this.beforeLogEvent(name, value, metadata) : metadata;\n this.statsig.logEvent(name, value, { ...metadataWithOverrides, withBeam, domain, path, page });\n }\n logger.debug(name, value, { ...metadata, withBeam, domain, path, page });\n }\n\n #setBeamVisibilityValue(value: \"show\" | \"hide\") {\n document.body.setAttribute(BEAM_VISIBILITY_DATA_ATTRIBUTE, value);\n }\n\n async #testStatsigConnection() {\n // Use the HTTP API so we can synchronously detect if Statsig is reachable,\n // rather than pushing an event to the SDK's retryable queue.\n // https://docs.statsig.com/http-api\n const url = \"https://events.statsigapi.net/v1/log_event\";\n try {\n await fetch(url, {\n method: \"POST\",\n headers: {\n \"content-type\": \"application/json\",\n \"statsig-api-key\": this.statsigApiKey,\n },\n body: JSON.stringify({\n eventName: BEAM_AB_TEST_EVENTS.STATSIG_INIT,\n value: \"true\",\n time: new Date().getTime() / 1000, // unix timestamp (seconds not milliseconds)\n metadata: {\n show_beam: this.experiments.shouldShowBeam.toString(),\n domain: window.location.hostname,\n path: window.location.pathname,\n page: window.location.href,\n },\n user: {\n userID: this.stableId,\n },\n }),\n });\n } catch (err) {\n // TODO SDK-2390: this will log failures to Beam's error tracking API in the future\n throw new BeamError(\"Could not call Statsig API\", { name: \"StatsigInitError\", cause: err });\n }\n }\n\n async #registerExperimentWithBeam() {\n return postExperimentSession({\n baseUrl: this.#beamConfig?.baseUrl,\n headers: {\n authorization: `Api-Key ${this.#beamConfig?.apiKey}`,\n },\n requestBody: {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n remoteSessionId: this.stableId!,\n experiments: {\n showBeam: this.experiments.shouldShowBeam,\n },\n },\n });\n }\n}\n"],"names":["f","i","e","t","m","r","_","s","g","_beamConfig","_beamCartCookie","_attachEventListeners","attachEventListeners_fn","_initializeStatsig","initializeStatsig_fn","_eventQueue","_flushEventQueue","flushEventQueue_fn","_setBeamVisibilityValue","setBeamVisibilityValue_fn","_testStatsigConnection","testStatsigConnection_fn","_registerExperimentWithBeam","registerExperimentWithBeam_fn","STATSIG_VERSION","STATSIG_SCRIPT_URL","STATSIG_STABLE_ID_COOKIE","BEAM_VISIBILITY_DATA_ATTRIBUTE","BEAM_VISIBILITY_SYNCED_CLASS","BEAM_AB_TEST_EVENTS","StatsigPlugin","options","__privateAdd","config","__privateSet","__privateMethod","beamVisibilityStylesheet","BeamError","saveRemoteSession","getCookieValue","BEAM_CART_COOKIE_NAME","setCookieValue","logger","name","value","metadata","__privateGet","withBeam","domain","path","page","metadataWithOverrides","BeamCartCreatedEvent","_event","event","itemCount","cartId","subtotal","currencyCode","BeamOrderCreatedEvent","orderId","cartTotal","lastSelectedNonprofitId","BeamNonprofitSelectEvent","selectedNonprofitId","selectionId","source","statsigScript","statsigReadyPromise","res","rej","statsigOptions","eventParams","url","err","postExperimentSession"],"mappings":"ocAAA,IAAAA,EAAA,CAAAC,EAAAC,EAAAC,IAAA,CAAA,GAAA,CAAAD,EAAA,IAAAD,CAAA,EAAA,MAAA,UAAA,UAAAE,CAAA,CAAA,EAAAC,EAAA,CAAAH,EAAAC,EAAAC,KAAAH,EAAAC,EAAAC,EAAA,yBAAA,EAAAC,EAAAA,EAAA,KAAAF,CAAA,EAAAC,EAAA,IAAAD,CAAA,GAAAI,EAAA,CAAAJ,EAAAC,EAAAC,IAAA,CAAA,GAAAD,EAAA,IAAAD,CAAA,EAAA,MAAA,UAAA,mDAAA,EAAAC,aAAA,QAAAA,EAAA,IAAAD,CAAA,EAAAC,EAAA,IAAAD,EAAAE,CAAA,CAAA,EAAAG,EAAA,CAAAL,EAAAC,EAAAC,EAAAI,KAAAP,EAAAC,EAAAC,EAAA,wBAAA,EAAAK,EAAAA,EAAA,KAAAN,EAAAE,CAAA,EAAAD,EAAA,IAAAD,EAAAE,CAAA,EAAAA,GAAAK,EAAA,CAAAP,EAAAC,EAAAC,KAAAH,EAAAC,EAAAC,EAAA,uBAAA,EAAAC,GAAAM,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EA0BA,MAAMC,EAAkB,EAElBC,EAAqB,2CAA2CD,CAAe,qCAE/EE,EAA2B,0BAE3BC,EAAiC,uBAGjCC,EAA+B,uBAE/BC,EAAsB,CAC1B,aAAc,eACd,aAAc,eACd,cAAe,gBACf,eAAgB,gBAClB,EA6BO,MAAMC,CAAoC,CAqB/C,YAAYC,EAA+B,CAiF3CC,EAAA,KAAArB,C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B,gBAAG,CAClC,OAAOoD,EAAsB,CAC3B,QAAS7B,EAAA,KAAKrC,IAAa,QAC3B,QAAS,CACP,cAAe,WAAWqC,EAAA,KAAKrC,CAAa,GAAA,MAAM,EACpD,EACA,YAAa,CAEX,gBAAiB,KAAK,SACtB,YAAa,CACX,SAAU,KAAK,YAAY,cAC7B,CACF,CACF,CAAC,CACH"}
|
|
1
|
+
{"version":3,"file":"statsig.js","sources":["../../src/integrations/statsig/plugin.ts"],"sourcesContent":["import { postExperimentSession } from \"../../api-sdk/v3/routes\";\nimport { BEAM_CART_COOKIE_NAME } from \"../../shared/cart-contents\";\nimport { BeamCartCreatedEvent, BeamNonprofitSelectEvent, BeamOrderCreatedEvent } from \"../../utils/events\";\nimport { BeamPlugin, BeamConfigOptions } from \"../beam\";\nimport { BeamError } from \"../../utils/beam-errors\";\nimport { getCookieValue, setCookieValue } from \"../../utils/cookies\";\nimport { logger } from \"../../utils/logger\";\nimport { saveRemoteSession } from \"../../utils/remote-session\";\n\ntype beforeLogEventFn = (eventName: string, eventValue: any, metadata: Record<string, any>) => Record<string, any>;\n\n/**\n * StatSig Docs: https://docs.statsig.com/client/jsClientSDK\n */\ntype StatsigPluginOptions = {\n statsigApiKey: string;\n beforeLogEvent?: beforeLogEventFn;\n};\n\ndeclare global {\n interface Window {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n statsig?: any; // attached by Statsig CDN script\n }\n}\n\nconst STATSIG_VERSION = 4;\n\nconst STATSIG_SCRIPT_URL = `https://cdn.jsdelivr.net/npm/statsig-js@${STATSIG_VERSION}/build/statsig-prod-web-sdk.min.js`;\n\nconst STATSIG_STABLE_ID_COOKIE = \"beam_statsig_session_id\";\n\nconst BEAM_VISIBILITY_DATA_ATTRIBUTE = \"data-beam-visibility\";\n\n// Add class to elements that should only show when Beam shows\nconst BEAM_VISIBILITY_SYNCED_CLASS = \"beam-sync-visibility\";\n\nconst BEAM_AB_TEST_EVENTS = {\n STATSIG_INIT: \"statsig_init\",\n CART_CREATED: \"cart_created\",\n ORDER_CREATED: \"order_created\",\n BEAM_SELECTION: \"beam_selection\",\n};\n\ntype Experiments = {\n /** Whether Beam widgets should be shown to users */\n shouldShowBeam: boolean;\n /** Whether events should be logged to Statsig */\n isLoggingEnabled: boolean;\n};\n\n/**\n * Sets up Statsig for A/B testing and shows/hides Beam based on default experiment rules.\n * @example\n * import { StatsigPlugin } from '@beamimpact/web-sdk/dist/integrations/statsig'\n * import { init } from '@beamimpact/web-sdk/dist/integrations/beam'\n *\n * const beam = await init({\n * apiKey: '',\n * chainId: 1,\n * storeId: 1,\n * domain: 'my-store.com' // in case site uses subdomains for different pages\n * plugins: [\n * new StatsigPlugin({ statsigApiKey: '' })\n * ]\n * })\n *\n * // Once initialized, all Beam widgets have display: none unless user is assigned to A/B test group that shows Beam\n * // To hide additional elements, add the CSS className \"beam-sync-visibility\" to them\n * // To programmatically access the experiment state: getConfig().plugins.statsig.experiments.shouldShowBeam\n */\nexport class StatsigPlugin implements BeamPlugin {\n name = \"statsig\";\n\n statsig: any; // Statsig SDK instance\n\n statsigApiKey: string;\n\n experiments: Experiments = {\n shouldShowBeam: false,\n isLoggingEnabled: true,\n };\n\n stableId?: string;\n\n beforeLogEvent?: beforeLogEventFn;\n\n #beamConfig?: BeamConfigOptions;\n\n // Checked at initialization so that we can tell if post-purchase events came from a session with a cart or not\n #beamCartCookie?: string;\n\n constructor(options: StatsigPluginOptions) {\n this.statsigApiKey = options.statsigApiKey;\n this.beforeLogEvent = options.beforeLogEvent;\n }\n\n async init(config: BeamConfigOptions) {\n this.#beamConfig = config;\n\n // Add event listeners for cart/order lifecycle events\n // This should happen as soon as possible to avoid missing events\n this.#attachEventListeners();\n\n // Attach beam-visibility data attribute to body\n this.#setBeamVisibilityValue(\"hide\");\n\n // Create beam a/b test stylesheet\n const beamVisibilityStylesheet = document.createElement(\"style\");\n beamVisibilityStylesheet.innerHTML = `\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-select-nonprofit,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-post-purchase,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-redeem-transaction,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-impact-overview,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-community-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-cumulative-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-product-details-page,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-subscription-management,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-subscription-impact,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-select-subscription-nonprofit,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] beam-social-share,\n [${BEAM_VISIBILITY_DATA_ATTRIBUTE}=\"hide\"] .${BEAM_VISIBILITY_SYNCED_CLASS} {\n display: none;\n }\n `;\n document.head.append(beamVisibilityStylesheet);\n\n // Create statsig script\n await this.#initializeStatsig();\n this.stableId = this.statsig.getStableID();\n if (!this.stableId) {\n throw new BeamError(\"Statsig failed to assign stableId\", { name: \"StatsigInitError\" });\n }\n\n // Send events that happened before Statsig was ready\n this.#flushEventQueue();\n\n // Save Statsig ID in localStorage for linking to carts later\n saveRemoteSession({ remoteSessionId: this.stableId, apiKey: config.apiKey });\n\n // Save initial value of cart cookie so that post-purchase events can be filtered by if they had a cart or not\n this.#beamCartCookie = getCookieValue(BEAM_CART_COOKIE_NAME);\n\n // Cache ID in cookie to preserve ID across subdomains\n setCookieValue({\n name: STATSIG_STABLE_ID_COOKIE,\n value: this.stableId,\n path: \"/\",\n domain: config.domain,\n });\n\n // Evaluate Statsig experiment assignments\n this.experiments = {\n // Whether Beam widgets should be shown to users\n shouldShowBeam: this.statsig\n .getLayer(\"beam_trial_layer\")\n .get(\"show_beam\", false /* default to hide */) as boolean,\n // Whether events should be logged to Statsig\n isLoggingEnabled: this.statsig.getLayer(\"beam_trial_layer\").get(\"enable_logging\", true) as boolean,\n };\n\n // In parallel:\n // A) Make test call to Statsig\n // B) Save stable ID in Beam for attribution to carts/transactions\n await Promise.all([this.#testStatsigConnection(), this.#registerExperimentWithBeam()]);\n\n // Update beam visibility data attribute, which shows Beam to users in the experiment\n this.#setBeamVisibilityValue(this.experiments.shouldShowBeam ? \"show\" : \"hide\");\n\n // Log result\n logger.debug(\"Statsig Experiment Assignments\", this.experiments);\n }\n\n #attachEventListeners() {\n // Cart Created\n window.addEventListener(BeamCartCreatedEvent.eventName, (_event: Event) => {\n const event = _event as BeamCartCreatedEvent;\n const { itemCount, cartId, subtotal, currencyCode } = event.detail;\n this.logEvent(BEAM_AB_TEST_EVENTS.CART_CREATED, true, { itemCount, cartId, subtotal, currencyCode });\n });\n\n // Order Created\n window.addEventListener(BeamOrderCreatedEvent.eventName, (_event: Event) => {\n const event = _event as BeamOrderCreatedEvent;\n const { orderId, cartTotal, currencyCode } = event.detail;\n this.logEvent(BEAM_AB_TEST_EVENTS.ORDER_CREATED, cartTotal, {\n orderId,\n cartTotal,\n currencyCode,\n hasCart: !!this.#beamCartCookie,\n });\n });\n\n // Beam Selection\n // Store previous value in case widget is recreated and emits event again:\n let lastSelectedNonprofitId: number | null | undefined;\n window.addEventListener(BeamNonprofitSelectEvent.eventName, (_event: Event) => {\n const event = _event as BeamNonprofitSelectEvent;\n const { selectedNonprofitId, selectionId, source } = event.detail;\n if (selectedNonprofitId !== lastSelectedNonprofitId) {\n this.logEvent(BEAM_AB_TEST_EVENTS.BEAM_SELECTION, true, {\n nonprofitId: selectedNonprofitId,\n widget: source,\n selectionId,\n });\n lastSelectedNonprofitId = selectedNonprofitId;\n }\n });\n }\n\n // https://docs.statsig.com/client/jsClientSDK#statsig-options\n async #initializeStatsig() {\n const statsigScript = document.createElement(\"script\");\n statsigScript.src = STATSIG_SCRIPT_URL;\n statsigScript.async = false;\n const statsigReadyPromise = new Promise((res, rej) => {\n statsigScript.addEventListener(\"load\", res);\n statsigScript.addEventListener(\"error\", rej);\n });\n document.head.append(statsigScript);\n try {\n await statsigReadyPromise;\n } catch (err) {\n throw new BeamError(\"Failed to load Statsig script\", { name: \"StatsigInitError\" });\n }\n this.statsig = window.statsig;\n if (!this.statsig) {\n throw new BeamError(\"Failed to detect Statsig\", { name: \"StatsigInitError\" });\n }\n // https://docs.statsig.com/client/jsClientSDK#statsig-options\n const statsigOptions = {\n disableErrorLogging: true,\n disableAutoMetricsLogging: true,\n disableCurrentPageLogging: true,\n loggingIntervalMillis: 1000,\n loggingBufferMaxSize: 2,\n overrideStableID: getCookieValue(STATSIG_STABLE_ID_COOKIE) ?? null,\n };\n await this.statsig.initialize(this.statsigApiKey, {}, statsigOptions);\n }\n\n #eventQueue: Parameters<typeof StatsigPlugin.prototype.logEvent>[] = [];\n\n #flushEventQueue() {\n while (this.#eventQueue.length > 0) {\n const eventParams = this.#eventQueue.shift();\n if (eventParams) {\n this.logEvent(...eventParams);\n }\n }\n }\n\n logEvent(name: string, value: string | number | boolean, metadata: Record<string, any> = {}) {\n if (!this.statsig) {\n this.#eventQueue.push([name, value, metadata]);\n return;\n }\n const withBeam = this.experiments.shouldShowBeam;\n const domain = window.location.hostname;\n const path = window.location.pathname;\n const page = window.location.href;\n if (this.experiments.isLoggingEnabled) {\n const metadataWithOverrides = this.beforeLogEvent ? this.beforeLogEvent(name, value, metadata) : metadata;\n this.statsig.logEvent(name, value, { ...metadataWithOverrides, withBeam, domain, path, page });\n }\n logger.debug(name, value, { ...metadata, withBeam, domain, path, page });\n }\n\n #setBeamVisibilityValue(value: \"show\" | \"hide\") {\n document.body.setAttribute(BEAM_VISIBILITY_DATA_ATTRIBUTE, value);\n }\n\n async #testStatsigConnection() {\n // Use the HTTP API so we can synchronously detect if Statsig is reachable,\n // rather than pushing an event to the SDK's retryable queue.\n // https://docs.statsig.com/http-api\n const url = \"https://events.statsigapi.net/v1/log_event\";\n try {\n await fetch(url, {\n method: \"POST\",\n headers: {\n \"content-type\": \"application/json\",\n \"statsig-api-key\": this.statsigApiKey,\n },\n body: JSON.stringify({\n eventName: BEAM_AB_TEST_EVENTS.STATSIG_INIT,\n value: \"true\",\n time: new Date().getTime() / 1000, // unix timestamp (seconds not milliseconds)\n metadata: {\n show_beam: this.experiments.shouldShowBeam.toString(),\n domain: window.location.hostname,\n path: window.location.pathname,\n page: window.location.href,\n },\n user: {\n userID: this.stableId,\n },\n }),\n });\n } catch (err) {\n // TODO SDK-2390: this will log failures to Beam's error tracking API in the future\n throw new BeamError(\"Could not call Statsig API\", { name: \"StatsigInitError\", cause: err });\n }\n }\n\n async #registerExperimentWithBeam() {\n return postExperimentSession({\n baseUrl: this.#beamConfig?.baseUrl,\n headers: {\n authorization: `Api-Key ${this.#beamConfig?.apiKey}`,\n },\n requestBody: {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n remoteSessionId: this.stableId!,\n storeId: this.#beamConfig?.storeId,\n experiments: {\n showBeam: this.experiments.shouldShowBeam,\n },\n },\n });\n }\n}\n"],"names":["f","i","e","t","g","r","_","s","m","_beamConfig","_beamCartCookie","_attachEventListeners","attachEventListeners_fn","_initializeStatsig","initializeStatsig_fn","_eventQueue","_flushEventQueue","flushEventQueue_fn","_setBeamVisibilityValue","setBeamVisibilityValue_fn","_testStatsigConnection","testStatsigConnection_fn","_registerExperimentWithBeam","registerExperimentWithBeam_fn","STATSIG_VERSION","STATSIG_SCRIPT_URL","STATSIG_STABLE_ID_COOKIE","BEAM_VISIBILITY_DATA_ATTRIBUTE","BEAM_VISIBILITY_SYNCED_CLASS","BEAM_AB_TEST_EVENTS","StatsigPlugin","options","__privateAdd","config","__privateSet","__privateMethod","beamVisibilityStylesheet","BeamError","saveRemoteSession","getCookieValue","BEAM_CART_COOKIE_NAME","setCookieValue","logger","name","value","metadata","__privateGet","withBeam","domain","path","page","metadataWithOverrides","BeamCartCreatedEvent","_event","event","itemCount","cartId","subtotal","currencyCode","BeamOrderCreatedEvent","orderId","cartTotal","lastSelectedNonprofitId","BeamNonprofitSelectEvent","selectedNonprofitId","selectionId","source","statsigScript","statsigReadyPromise","res","rej","statsigOptions","eventParams","url","err","postExperimentSession"],"mappings":"ocAAA,IAAAA,EAAA,CAAAC,EAAAC,EAAAC,IAAA,CAAA,GAAA,CAAAD,EAAA,IAAAD,CAAA,EAAA,MAAA,UAAA,UAAAE,CAAA,CAAA,EAAAC,EAAA,CAAAH,EAAAC,EAAAC,KAAAH,EAAAC,EAAAC,EAAA,yBAAA,EAAAC,EAAAA,EAAA,KAAAF,CAAA,EAAAC,EAAA,IAAAD,CAAA,GAAAI,EAAA,CAAAJ,EAAAC,EAAAC,IAAA,CAAA,GAAAD,EAAA,IAAAD,CAAA,EAAA,MAAA,UAAA,mDAAA,EAAAC,aAAA,QAAAA,EAAA,IAAAD,CAAA,EAAAC,EAAA,IAAAD,EAAAE,CAAA,CAAA,EAAAG,EAAA,CAAAL,EAAAC,EAAAC,EAAAI,KAAAP,EAAAC,EAAAC,EAAA,wBAAA,EAAAK,EAAAA,EAAA,KAAAN,EAAAE,CAAA,EAAAD,EAAA,IAAAD,EAAAE,CAAA,EAAAA,GAAAK,EAAA,CAAAP,EAAAC,EAAAC,KAAAH,EAAAC,EAAAC,EAAA,uBAAA,EAAAC,GAAAM,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EA0BA,MAAMC,EAAkB,EAElBC,EAAqB,2CAA2CD,CAAe,qCAE/EE,EAA2B,0BAE3BC,EAAiC,uBAGjCC,EAA+B,uBAE/BC,EAAsB,CAC1B,aAAc,eACd,aAAc,eACd,cAAe,gBACf,eAAgB,gBAClB,EA6BO,MAAMC,CAAoC,CAqB/C,YAAYC,EAA+B,CAiF3CC,EAAA,KAAArB,C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EAEMpD,EAAA,YAAAC,EAA2B,gBAAG,CAClC,OAAOoD,EAAsB,CAC3B,QAAS7B,EAAA,KAAKrC,IAAa,QAC3B,QAAS,CACP,cAAe,WAAWqC,EAAA,KAAKrC,CAAa,GAAA,MAAM,EACpD,EACA,YAAa,CAEX,gBAAiB,KAAK,SACtB,QAASqC,EAAA,KAAKrC,IAAa,QAC3B,YAAa,CACX,SAAU,KAAK,YAAY,cAC7B,CACF,CACF,CAAC,CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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-ZCTR9JGZ.esm.js';
|
|
3
3
|
export { logger } from '../utils/logger.js';
|
|
4
|
-
export {
|
|
4
|
+
export { initNetworkListeners } from '../utils/network-listeners.js';
|
|
5
5
|
export { createScopedLocalStorage } from '../utils/local-storage.js';
|
|
6
6
|
export { waitForElement } from '../utils/wait-for-element.js';
|
|
7
7
|
export { CookieChangeEvent, deleteCookieValue, getCookieMap, getCookieValue, setCookieValue } from '../utils/cookies.js';
|
|
@@ -9,6 +9,6 @@ export { getRemoteSession, saveRemoteSession } from '../utils/remote-session.js'
|
|
|
9
9
|
export { memoizeLast } from '../utils/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-CMm57qu0.esm.js';
|
|
13
|
+
import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
|
|
14
14
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as m}from"../utils/logger.esm.js";import{initNetworkListeners as p}from"../utils/network-listeners.esm.js";import{createScopedLocalStorage as x}from"../utils/local-storage.esm.js";import{waitForElement as n}from"../utils/wait-for-element.esm.js";import{deleteCookieValue as k,getCookieMap as u,getCookieValue as c,setCookieValue as d}from"../utils/cookies.esm.js";import{getRemoteSession as S,saveRemoteSession as L}from"../utils/remote-session.esm.js";import{memoizeLast as b}from"../utils/memoize-last.esm.js";import{d as w,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{x as createScopedLocalStorage,w as debounce,k as deleteCookieValue,r as errors,s as events,u as getCookieMap,c as getCookieValue,S as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,b as memoizeLast,L as saveRemoteSession,d as setCookieValue,n as waitForElement};
|
|
2
2
|
//# sourceMappingURL=utils.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as m}from"../utils/logger.js";import{initNetworkListeners as p}from"../utils/network-listeners.js";import{createScopedLocalStorage as x}from"../utils/local-storage.js";import{waitForElement as n}from"../utils/wait-for-element.js";import{deleteCookieValue as k,getCookieMap as u,getCookieValue as c,setCookieValue as d}from"../utils/cookies.js";import{getRemoteSession as S,saveRemoteSession as L}from"../utils/remote-session.js";import{memoizeLast as b}from"../utils/memoize-last.js";import{d as w,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{x as createScopedLocalStorage,w as debounce,k as deleteCookieValue,r as errors,s as events,u as getCookieMap,c as getCookieValue,S as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,b as memoizeLast,L as saveRemoteSession,d as setCookieValue,n as waitForElement};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-Jhhqcsg7.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=community-impact.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=community-impact.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-
|
|
1
|
+
import a from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-Jhhqcsg7.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=cumulative-impact.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import a from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-
|
|
1
|
+
import a from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
|
|
2
2
|
//# sourceMappingURL=cumulative-impact.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-
|
|
1
|
+
import r from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-Jhhqcsg7.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/localize-o-cYvHQf.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/shoelace-components-Jghvahj3.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-DeVQh1aE.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
|
|
2
2
|
//# sourceMappingURL=impact-overview.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-
|
|
1
|
+
import r from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/shoelace-components-JZANE20x.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-bUM2WBaV.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-2lC2Wrtg.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
|
|
2
2
|
//# sourceMappingURL=impact-overview.js.map
|
package/dist/react/index.d.ts
CHANGED
|
@@ -21,9 +21,9 @@ import '../components/cumulative-impact.js';
|
|
|
21
21
|
import 'lodash';
|
|
22
22
|
import '../components/impact-overview.js';
|
|
23
23
|
import '../chunks/share-button-hDn8fnBI.esm.js';
|
|
24
|
-
import '../chunks/events
|
|
25
|
-
import '../chunks/cart-contents-
|
|
26
|
-
import '../chunks/openapi-spec
|
|
24
|
+
import '../chunks/events-ZCTR9JGZ.esm.js';
|
|
25
|
+
import '../chunks/cart-contents-CMm57qu0.esm.js';
|
|
26
|
+
import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
|
|
27
27
|
import '../components/select-nonprofit.js';
|
|
28
28
|
import '../chunks/promo-pill-label-3bA1z-la.esm.js';
|
|
29
29
|
import '../components/redeem-transaction.js';
|
package/dist/react/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{BeamCommunityImpact as
|
|
1
|
+
import{BeamCommunityImpact as E}from"./community-impact.esm.js";import{BeamCumulativeImpact as G}from"./cumulative-impact.esm.js";import{BeamImpactOverview as J}from"./impact-overview.esm.js";import{BeamSelectNonprofit as L}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as U}from"./redeem-transaction.esm.js";import{BeamPostPurchase as W}from"./post-purchase.esm.js";import{BeamSubscriptionManagement as Y}from"./subscription-management.esm.js";import{BeamSelectSubscriptionNonprofit as _}from"./select-subscription-nonprofit.esm.js";import{BeamSubscriptionImpact as oo}from"./subscription-impact.esm.js";import{BeamProductDetailsPage as mo}from"./product-details-page.esm.js";import{BeamSocialShare as po}from"./social-share.esm.js";import"react";import"../chunks/lit-iNN5L_Qk.esm.js";import"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-Jhhqcsg7.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/shoelace-components-Jghvahj3.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-DeVQh1aE.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../utils/local-storage.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.esm.js";import"../utils/cookies.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";import"../components/subscription-management.esm.js";import"../components/select-subscription-nonprofit.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../components/subscription-impact.esm.js";import"../components/product-details-page.esm.js";import"../components/social-share.esm.js";export{E as BeamCommunityImpact,G as BeamCumulativeImpact,J as BeamImpactOverview,W as BeamPostPurchase,mo as BeamProductDetailsPage,U as BeamRedeemTransaction,L as BeamSelectNonprofit,_ as BeamSelectSubscriptionNonprofit,po as BeamSocialShare,oo as BeamSubscriptionImpact,Y as BeamSubscriptionManagement};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/react/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{BeamCommunityImpact as
|
|
1
|
+
import{BeamCommunityImpact as E}from"./community-impact.js";import{BeamCumulativeImpact as G}from"./cumulative-impact.js";import{BeamImpactOverview as J}from"./impact-overview.js";import{BeamSelectNonprofit as L}from"./select-nonprofit.js";import{BeamRedeemTransaction as U}from"./redeem-transaction.js";import{BeamPostPurchase as W}from"./post-purchase.js";import{BeamSubscriptionManagement as Y}from"./subscription-management.js";import{BeamSelectSubscriptionNonprofit as _}from"./select-subscription-nonprofit.js";import{BeamSubscriptionImpact as oo}from"./subscription-impact.js";import{BeamProductDetailsPage as mo}from"./product-details-page.js";import{BeamSocialShare as po}from"./social-share.js";import"react";import"../chunks/lit-iNN5L_Qk.esm.js";import"../components/community-impact.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/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/shoelace-components-JZANE20x.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/share-button-bUM2WBaV.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../components/select-nonprofit.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../utils/local-storage.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../utils/cart.js";import"../utils/cookies.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";import"../components/subscription-management.js";import"../components/select-subscription-nonprofit.js";import"../utils/makeApiKeyHeader.js";import"../components/subscription-impact.js";import"../components/product-details-page.js";import"../components/social-share.js";export{E as BeamCommunityImpact,G as BeamCumulativeImpact,J as BeamImpactOverview,W as BeamPostPurchase,mo as BeamProductDetailsPage,U as BeamRedeemTransaction,L as BeamSelectNonprofit,_ as BeamSelectSubscriptionNonprofit,po as BeamSocialShare,oo as BeamSubscriptionImpact,Y as BeamSubscriptionManagement};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,8 +9,8 @@ import '../chunks/progress-bar-0VS_AmEf.esm.js';
|
|
|
9
9
|
import '../chunks/promo-pill-label-3bA1z-la.esm.js';
|
|
10
10
|
import '../components/beam-partner-logos.js';
|
|
11
11
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
|
12
|
-
import '../chunks/cart-contents-
|
|
13
|
-
import '../chunks/openapi-spec
|
|
12
|
+
import '../chunks/cart-contents-CMm57qu0.esm.js';
|
|
13
|
+
import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
|
|
14
14
|
import '../components/impact-overview.js';
|
|
15
15
|
import '../chunks/share-button-hDn8fnBI.esm.js';
|
|
16
16
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../utils/logger.esm.js";import"../utils/local-storage.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../utils/logger.esm.js";import"../utils/local-storage.esm.js";import"../chunks/localize-o-cYvHQf.esm.js";import"../chunks/routes-Jhhqcsg7.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../components/impact-overview.esm.js";import"../chunks/shoelace-components-Jghvahj3.esm.js";import"../chunks/share-button-DeVQh1aE.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
|
|
2
2
|
//# sourceMappingURL=post-purchase.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../utils/logger.js";import"../utils/local-storage.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/cookies.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../utils/logger.js";import"../utils/local-storage.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../components/beam-partner-logos.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../chunks/css-card-grid-nEc--M5M.esm.js";import"../chunks/events-6Z5MkCRr.esm.js";import"../components/impact-overview.js";import"../chunks/shoelace-components-JZANE20x.esm.js";import"../chunks/share-button-bUM2WBaV.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/share-button-SNvuFDC9.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
|
|
2
2
|
//# sourceMappingURL=post-purchase.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamProductDetailsPage as t}from"../components/product-details-page.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-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamProductDetailsPage as t}from"../components/product-details-page.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-Jhhqcsg7.esm.js";import"../utils/makeApiKeyHeader.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamProductDetailsPage,m as default};
|
|
2
2
|
//# sourceMappingURL=product-details-page.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamProductDetailsPage as t}from"../components/product-details-page.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-
|
|
1
|
+
import o from"react";import{l as r}from"../chunks/lit-iNN5L_Qk.esm.js";import{BeamProductDetailsPage as t}from"../components/product-details-page.js";import"../chunks/localize-m-_ESmpk.esm.js";import"../chunks/beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";import"../chunks/routes-tB5fHy2T.esm.js";import"../utils/makeApiKeyHeader.js";import"../chunks/enforce-config-ZyPq_4CF.esm.js";import"../chunks/responsive-2lC2Wrtg.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamProductDetailsPage,m as default};
|
|
2
2
|
//# sourceMappingURL=product-details-page.js.map
|
|
@@ -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-ZCTR9JGZ.esm.js';
|
|
4
4
|
import { BeamRedeemTransaction as BeamRedeemTransaction$1 } from '../components/redeem-transaction.js';
|
|
5
|
-
import '../chunks/cart-contents-
|
|
6
|
-
import '../chunks/openapi-spec
|
|
5
|
+
import '../chunks/cart-contents-CMm57qu0.esm.js';
|
|
6
|
+
import '../chunks/openapi-spec-hjdK2L9Q.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 e from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import e from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as r}from"../chunks/events-6Z5MkCRr.esm.js";import{BeamRedeemTransaction as t}from"../components/redeem-transaction.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-Jhhqcsg7.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.esm.js";import"../utils/local-storage.esm.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.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import e from"react";import{l as o}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as r}from"../chunks/events-6Z5MkCRr.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-tB5fHy2T.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.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,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-ZCTR9JGZ.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-CMm57qu0.esm.js';
|
|
6
|
+
import '../chunks/openapi-spec-hjdK2L9Q.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 o from"react";import{l as m}from"../chunks/lit-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import o from"react";import{l as m}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as r}from"../chunks/events-6Z5MkCRr.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-Jhhqcsg7.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/enforce-config-ZAI7WYAd.esm.js";import"../chunks/loading-template-t4fFsYtr.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":"i0BAKa,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-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import o from"react";import{l as m}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as r}from"../chunks/events-6Z5MkCRr.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-tB5fHy2T.esm.js";import"../chunks/progress-bar-PMU_xI3L.esm.js";import"../chunks/promo-pill-label-P1X4xeAx.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/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":"6yBAKa,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-ZCTR9JGZ.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-CMm57qu0.esm.js';
|
|
6
|
+
import '../chunks/openapi-spec-hjdK2L9Q.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 e}from"../chunks/lit-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as m}from"../chunks/events-6Z5MkCRr.esm.js";import{BeamSelectSubscriptionNonprofit as t}from"../components/select-subscription-nonprofit.esm.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-Jhhqcsg7.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,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{
|
|
1
|
+
import r from"react";import{l as e}from"../chunks/lit-iNN5L_Qk.esm.js";import{b as m}from"../chunks/events-6Z5MkCRr.esm.js";import{BeamSelectSubscriptionNonprofit as t}from"../components/select-subscription-nonprofit.js";import"../chunks/lodash-P8OIs-at.esm.js";import"../chunks/routes-tB5fHy2T.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,2 +1,2 @@
|
|
|
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-
|
|
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-Jghvahj3.esm.js";import"../chunks/routes-Jhhqcsg7.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-iNN5L_Qk.esm.js";import{BeamSocialShare as m}from"../components/social-share.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../chunks/shoelace-components-
|
|
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-JZANE20x.esm.js";import"../chunks/routes-tB5fHy2T.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-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-
|
|
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-DeVQh1aE.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-Jhhqcsg7.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-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-
|
|
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-bUM2WBaV.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-tB5fHy2T.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
|
|
@@ -3,8 +3,8 @@ import { BeamSubscriptionManagement as BeamSubscriptionManagement$1 } from '../c
|
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'lit';
|
|
5
5
|
import '../chunks/routes-iurI6dvR.esm.js';
|
|
6
|
-
import '../chunks/cart-contents-
|
|
7
|
-
import '../chunks/openapi-spec
|
|
6
|
+
import '../chunks/cart-contents-CMm57qu0.esm.js';
|
|
7
|
+
import '../chunks/openapi-spec-hjdK2L9Q.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-iNN5L_Qk.esm.js";import{BeamSubscriptionManagement as t}from"../components/subscription-management.esm.js";import"../chunks/routes-
|
|
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-Jhhqcsg7.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-6Z5MkCRr.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-DeVQh1aE.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,2 +1,2 @@
|
|
|
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-
|
|
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-tB5fHy2T.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-6Z5MkCRr.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-bUM2WBaV.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
|
package/dist/utils/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../chunks/cart-contents-
|
|
1
|
+
import '../chunks/cart-contents-CMm57qu0.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-ZCTR9JGZ.esm.js';
|
|
4
|
+
import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
|
package/dist/utils/events.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t,f as n,
|
|
1
|
+
import{d as t,f as n,c as r,b as m,g as o,a as s,B as v}from"../chunks/events-6Z5MkCRr.esm.js";export{t as BeamCartChangeEvent,n as BeamCartCreatedEvent,r as BeamNetworkCallEvent,m as BeamNonprofitSelectEvent,o as BeamNonprofitSelectionRemovedEvent,s as BeamOrderCreatedEvent,v as BeamStatusChangeEvent};
|
|
2
2
|
//# sourceMappingURL=events.esm.js.map
|
package/dist/utils/events.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t,f as n,
|
|
1
|
+
import{d as t,f as n,c as r,b as m,g as o,a as s,B as v}from"../chunks/events-6Z5MkCRr.esm.js";export{t as BeamCartChangeEvent,n as BeamCartCreatedEvent,r as BeamNetworkCallEvent,m as BeamNonprofitSelectEvent,o as BeamNonprofitSelectionRemovedEvent,s as BeamOrderCreatedEvent,v as BeamStatusChangeEvent};
|
|
2
2
|
//# sourceMappingURL=events.js.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-ZCTR9JGZ.esm.js';
|
|
3
3
|
export { logger } from './logger.js';
|
|
4
|
-
export {
|
|
4
|
+
export { initNetworkListeners } from './network-listeners.js';
|
|
5
5
|
export { createScopedLocalStorage } from './local-storage.js';
|
|
6
6
|
export { waitForElement } from './wait-for-element.js';
|
|
7
7
|
export { CookieChangeEvent, deleteCookieValue, getCookieMap, getCookieValue, setCookieValue } from './cookies.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-CMm57qu0.esm.js';
|
|
13
|
+
import '../chunks/openapi-spec-hjdK2L9Q.esm.js';
|
|
14
14
|
import '../chunks/types-zbTZ8-KP.esm.js';
|
package/dist/utils/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as m}from"./logger.esm.js";import{initNetworkListeners as p}from"./network-listeners.esm.js";import{createScopedLocalStorage as x}from"./local-storage.esm.js";import{waitForElement as n}from"./wait-for-element.esm.js";import{deleteCookieValue as k,getCookieMap as u,getCookieValue as c,setCookieValue as d}from"./cookies.esm.js";import{getRemoteSession as S,saveRemoteSession as L}from"./remote-session.esm.js";import{memoizeLast as b}from"./memoize-last.esm.js";import{d as w,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{x as createScopedLocalStorage,w as debounce,k as deleteCookieValue,r as errors,s as events,u as getCookieMap,c as getCookieValue,S as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,b as memoizeLast,L as saveRemoteSession,d as setCookieValue,n as waitForElement};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-
|
|
1
|
+
import{b as r}from"../chunks/beam-errors-P-Lu07Ce.esm.js";import{e as s}from"../chunks/events-6Z5MkCRr.esm.js";import{logger as m}from"./logger.js";import{initNetworkListeners as p}from"./network-listeners.js";import{createScopedLocalStorage as x}from"./local-storage.js";import{waitForElement as n}from"./wait-for-element.js";import{deleteCookieValue as k,getCookieMap as u,getCookieValue as c,setCookieValue as d}from"./cookies.js";import{getRemoteSession as S,saveRemoteSession as L}from"./remote-session.js";import{memoizeLast as b}from"./memoize-last.js";import{d as w,i as E}from"../chunks/lodash-P8OIs-at.esm.js";export{x as createScopedLocalStorage,w as debounce,k as deleteCookieValue,r as errors,s as events,u as getCookieMap,c as getCookieValue,S as getRemoteSession,p as initNetworkListeners,E as isEqual,m as logger,b as memoizeLast,L as saveRemoteSession,d as setCookieValue,n as waitForElement};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|