@beamimpact/web-sdk 1.55.2 → 1.55.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/chunks/{_share-dialog-dependencies-oPfou2yz.esm.js → _share-dialog-dependencies-BVseSHLF.esm.js} +2 -2
  2. package/dist/chunks/{_share-dialog-dependencies-oPfou2yz.esm.js.map → _share-dialog-dependencies-BVseSHLF.esm.js.map} +1 -1
  3. package/dist/chunks/{_share-dialog-dependencies-CrXoTXJn.esm.js → _share-dialog-dependencies-o8GVV6gC.esm.js} +2 -2
  4. package/dist/chunks/{_share-dialog-dependencies-CrXoTXJn.esm.js.map → _share-dialog-dependencies-o8GVV6gC.esm.js.map} +1 -1
  5. package/dist/chunks/{index-ddFvDm5F.esm.js → index-BNHAn1OG.esm.js} +2 -2
  6. package/dist/chunks/{index-ddFvDm5F.esm.js.map → index-BNHAn1OG.esm.js.map} +1 -1
  7. package/dist/chunks/{index-Cb7UHLgc.esm.js → index-BWtaQiQa.esm.js} +16 -16
  8. package/dist/chunks/index-BWtaQiQa.esm.js.map +1 -0
  9. package/dist/chunks/{index-C0iBcnhO.esm.js → index-CIQxph2z.esm.js} +2 -2
  10. package/dist/chunks/index-CIQxph2z.esm.js.map +1 -0
  11. package/dist/chunks/index-CM59QOJP.esm.js +2 -0
  12. package/dist/chunks/index-CM59QOJP.esm.js.map +1 -0
  13. package/dist/chunks/{index-CXu50lhe.esm.js → index-CVNcspb0.esm.js} +2 -2
  14. package/dist/chunks/index-CVNcspb0.esm.js.map +1 -0
  15. package/dist/chunks/index-CYxuuwlv.esm.js +2 -0
  16. package/dist/chunks/index-CYxuuwlv.esm.js.map +1 -0
  17. package/dist/chunks/{index-BRwtueB0.esm.js → index-D1Pso4Mx.esm.js} +2 -2
  18. package/dist/chunks/{index-BRwtueB0.esm.js.map → index-D1Pso4Mx.esm.js.map} +1 -1
  19. package/dist/chunks/{index-BfJw1nDH.esm.js → index-DiNDMv3P.esm.js} +2 -2
  20. package/dist/chunks/index-DiNDMv3P.esm.js.map +1 -0
  21. package/dist/chunks/index-Dji1l8sT.esm.js +2 -0
  22. package/dist/chunks/index-Dji1l8sT.esm.js.map +1 -0
  23. package/dist/chunks/index-DsvbqqAd.esm.js +2 -0
  24. package/dist/chunks/index-DsvbqqAd.esm.js.map +1 -0
  25. package/dist/chunks/{index-CJLX6Cat.esm.js → index-IAa5EO-6.esm.js} +16 -16
  26. package/dist/chunks/index-IAa5EO-6.esm.js.map +1 -0
  27. package/dist/chunks/{index-DTnVjvy8.esm.js → index-MoK57RXU.esm.js} +2 -2
  28. package/dist/chunks/index-MoK57RXU.esm.js.map +1 -0
  29. package/dist/chunks/{order-page-qV21CdRx.esm.js → order-page-Brrq-LAx.esm.js} +2 -2
  30. package/dist/chunks/{order-page-qV21CdRx.esm.js.map → order-page-Brrq-LAx.esm.js.map} +1 -1
  31. package/dist/chunks/{order-page-BL4PDyMz.esm.js → order-page-C41TBLoV.esm.js} +2 -2
  32. package/dist/chunks/{order-page-BL4PDyMz.esm.js.map → order-page-C41TBLoV.esm.js.map} +1 -1
  33. package/dist/chunks/{promo-pill-label-CbW_Vcru.esm.js → promo-pill-label-BESRGLn7.esm.js} +3 -3
  34. package/dist/chunks/promo-pill-label-BESRGLn7.esm.js.map +1 -0
  35. package/dist/chunks/promo-pill-label-YOC47M3t.esm.js +16 -0
  36. package/dist/chunks/promo-pill-label-YOC47M3t.esm.js.map +1 -0
  37. package/dist/chunks/{routes-BAqFeD8S.esm.js → routes-BGx3ADhY.esm.js} +2 -2
  38. package/dist/chunks/{routes-BAqFeD8S.esm.js.map → routes-BGx3ADhY.esm.js.map} +1 -1
  39. package/dist/chunks/{routes-C75nl1NS.esm.js → routes-D0_9umO_.esm.js} +2 -2
  40. package/dist/chunks/{routes-C75nl1NS.esm.js.map → routes-D0_9umO_.esm.js.map} +1 -1
  41. package/dist/chunks/{share-button-BxWziSBl.esm.js → share-button-BmoEHT-C.esm.js} +2 -2
  42. package/dist/chunks/{share-button-BxWziSBl.esm.js.map → share-button-BmoEHT-C.esm.js.map} +1 -1
  43. package/dist/chunks/{share-button-BNp67BPn.esm.js → share-button-CV5FZFS9.esm.js} +2 -2
  44. package/dist/chunks/{share-button-BNp67BPn.esm.js.map → share-button-CV5FZFS9.esm.js.map} +1 -1
  45. package/dist/chunks/{share-button-BSHKEfJo.esm.js → share-button-D-c9M84d.esm.js} +2 -2
  46. package/dist/chunks/{share-button-BSHKEfJo.esm.js.map → share-button-D-c9M84d.esm.js.map} +1 -1
  47. package/dist/chunks/{share-button-DCMaVhyw.esm.js → share-button-DcaL0AYo.esm.js} +2 -2
  48. package/dist/chunks/{share-button-DCMaVhyw.esm.js.map → share-button-DcaL0AYo.esm.js.map} +1 -1
  49. package/dist/chunks/{update-cart-FKTMMTl5.esm.js → update-cart-CFB8JVgq.esm.js} +2 -2
  50. package/dist/chunks/{update-cart-FKTMMTl5.esm.js.map → update-cart-CFB8JVgq.esm.js.map} +1 -1
  51. package/dist/chunks/{update-cart-DPxyDjY9.esm.js → update-cart-Dsu0mPtW.esm.js} +2 -2
  52. package/dist/chunks/{update-cart-DPxyDjY9.esm.js.map → update-cart-Dsu0mPtW.esm.js.map} +1 -1
  53. package/dist/components/community-impact.esm.js +9 -9
  54. package/dist/components/community-impact.esm.js.map +1 -1
  55. package/dist/components/community-impact.js +9 -9
  56. package/dist/components/community-impact.js.map +1 -1
  57. package/dist/components/cumulative-impact.esm.js +1 -1
  58. package/dist/components/cumulative-impact.js +1 -1
  59. package/dist/components/impact-overview.esm.js +7 -7
  60. package/dist/components/impact-overview.esm.js.map +1 -1
  61. package/dist/components/impact-overview.js +7 -7
  62. package/dist/components/impact-overview.js.map +1 -1
  63. package/dist/components/index.esm.js +1 -1
  64. package/dist/components/index.js +1 -1
  65. package/dist/components/post-purchase.d.ts +1 -1
  66. package/dist/components/post-purchase.esm.js +1 -1
  67. package/dist/components/post-purchase.js +1 -1
  68. package/dist/components/product-details-page.d.ts +1 -1
  69. package/dist/components/product-details-page.esm.js +11 -11
  70. package/dist/components/product-details-page.esm.js.map +1 -1
  71. package/dist/components/product-details-page.js +11 -11
  72. package/dist/components/product-details-page.js.map +1 -1
  73. package/dist/components/redeem-transaction.d.ts +1 -1
  74. package/dist/components/redeem-transaction.esm.js +1 -1
  75. package/dist/components/redeem-transaction.js +1 -1
  76. package/dist/components/select-nonprofit.d.ts +1 -1
  77. package/dist/components/select-nonprofit.esm.js +9 -9
  78. package/dist/components/select-nonprofit.esm.js.map +1 -1
  79. package/dist/components/select-nonprofit.js +9 -9
  80. package/dist/components/select-nonprofit.js.map +1 -1
  81. package/dist/components/select-subscription-nonprofit.d.ts +1 -1
  82. package/dist/components/select-subscription-nonprofit.esm.js +7 -7
  83. package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
  84. package/dist/components/select-subscription-nonprofit.js +7 -7
  85. package/dist/components/select-subscription-nonprofit.js.map +1 -1
  86. package/dist/components/shopify.esm.js +1 -1
  87. package/dist/components/shopify.js +1 -1
  88. package/dist/components/social-share.esm.js +1 -1
  89. package/dist/components/social-share.js +1 -1
  90. package/dist/components/subscription-impact.d.ts +1 -1
  91. package/dist/components/subscription-impact.esm.js +3 -3
  92. package/dist/components/subscription-impact.esm.js.map +1 -1
  93. package/dist/components/subscription-impact.js +3 -3
  94. package/dist/components/subscription-impact.js.map +1 -1
  95. package/dist/components/subscription-management.d.ts +1 -1
  96. package/dist/components/subscription-management.esm.js +1 -1
  97. package/dist/components/subscription-management.esm.js.map +1 -1
  98. package/dist/components/subscription-management.js +1 -1
  99. package/dist/components/subscription-management.js.map +1 -1
  100. package/dist/index.esm.js +1 -1
  101. package/dist/index.js +1 -1
  102. package/dist/integrations/beam.esm.js +1 -1
  103. package/dist/integrations/beam.js +1 -1
  104. package/dist/integrations/cart.esm.js +1 -1
  105. package/dist/integrations/cart.js +1 -1
  106. package/dist/integrations/index.esm.js +1 -1
  107. package/dist/integrations/index.js +1 -1
  108. package/dist/integrations/logs.esm.js +1 -1
  109. package/dist/integrations/logs.js +1 -1
  110. package/dist/integrations/shopify.esm.js +1 -1
  111. package/dist/integrations/shopify.js +1 -1
  112. package/dist/integrations/statsig.esm.js +1 -1
  113. package/dist/integrations/statsig.js +1 -1
  114. package/dist/react/community-impact.esm.js +1 -1
  115. package/dist/react/community-impact.js +1 -1
  116. package/dist/react/cumulative-impact.esm.js +1 -1
  117. package/dist/react/cumulative-impact.js +1 -1
  118. package/dist/react/impact-overview.esm.js +1 -1
  119. package/dist/react/impact-overview.js +1 -1
  120. package/dist/react/index.esm.js +1 -1
  121. package/dist/react/index.js +1 -1
  122. package/dist/react/post-purchase.esm.js +1 -1
  123. package/dist/react/post-purchase.js +1 -1
  124. package/dist/react/product-details-page.esm.js +1 -1
  125. package/dist/react/product-details-page.esm.js.map +1 -1
  126. package/dist/react/product-details-page.js +1 -1
  127. package/dist/react/product-details-page.js.map +1 -1
  128. package/dist/react/redeem-transaction.esm.js +1 -1
  129. package/dist/react/redeem-transaction.esm.js.map +1 -1
  130. package/dist/react/redeem-transaction.js +1 -1
  131. package/dist/react/redeem-transaction.js.map +1 -1
  132. package/dist/react/select-nonprofit.esm.js +1 -1
  133. package/dist/react/select-nonprofit.esm.js.map +1 -1
  134. package/dist/react/select-nonprofit.js +1 -1
  135. package/dist/react/select-nonprofit.js.map +1 -1
  136. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  137. package/dist/react/select-subscription-nonprofit.js +1 -1
  138. package/dist/react/social-share.esm.js +1 -1
  139. package/dist/react/social-share.js +1 -1
  140. package/dist/react/subscription-impact.esm.js +1 -1
  141. package/dist/react/subscription-impact.esm.js.map +1 -1
  142. package/dist/react/subscription-impact.js +1 -1
  143. package/dist/react/subscription-impact.js.map +1 -1
  144. package/dist/react/subscription-management.esm.js +1 -1
  145. package/dist/react/subscription-management.esm.js.map +1 -1
  146. package/dist/react/subscription-management.js +1 -1
  147. package/dist/react/subscription-management.js.map +1 -1
  148. package/package.json +1 -1
  149. package/dist/chunks/index-BfJw1nDH.esm.js.map +0 -1
  150. package/dist/chunks/index-C0iBcnhO.esm.js.map +0 -1
  151. package/dist/chunks/index-CB2FlO76.esm.js +0 -2
  152. package/dist/chunks/index-CB2FlO76.esm.js.map +0 -1
  153. package/dist/chunks/index-CFuuHEma.esm.js +0 -2
  154. package/dist/chunks/index-CFuuHEma.esm.js.map +0 -1
  155. package/dist/chunks/index-CJLX6Cat.esm.js.map +0 -1
  156. package/dist/chunks/index-CXu50lhe.esm.js.map +0 -1
  157. package/dist/chunks/index-Cb7UHLgc.esm.js.map +0 -1
  158. package/dist/chunks/index-DQU56kcv.esm.js +0 -2
  159. package/dist/chunks/index-DQU56kcv.esm.js.map +0 -1
  160. package/dist/chunks/index-DTnVjvy8.esm.js.map +0 -1
  161. package/dist/chunks/index-O-hdOxQR.esm.js +0 -2
  162. package/dist/chunks/index-O-hdOxQR.esm.js.map +0 -1
  163. package/dist/chunks/promo-pill-label-CbW_Vcru.esm.js.map +0 -1
  164. package/dist/utils/uuid.d.ts +0 -8
  165. package/dist/utils/uuid.esm.js +0 -2
  166. package/dist/utils/uuid.esm.js.map +0 -1
  167. package/dist/utils/uuid.js +0 -2
  168. package/dist/utils/uuid.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/strings.ts","../../src/components/subscription-management/index.ts"],"sourcesContent":["export const strings = {\n en: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n fr: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n de: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n es: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n it: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n pl: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n ja: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n};\n","import { css, html, LitElement } from \"lit\";\nimport { property } from \"lit/decorators/property.js\";\nimport { state } from \"lit/decorators/state.js\";\nimport { unsafeHTML } from \"lit/directives/unsafe-html.js\";\nimport { DEFAULT_BASE_URL, SUPPORTED_LANGUAGES, WIDGET_NAMES } from \"../../api-sdk/constants\";\nimport { TCart } from \"../../shared/cart-contents\";\nimport { progressBarConfigDefaults } from \"../../shared/components/progress-bar\";\nimport { enforceConfig } from \"../../shared/enforce-config\";\nimport { postFindOrCreateSubscription, postChainEligibleNonprofitsForCart, getImpact } from \"../../api-sdk/v3/routes\";\nimport { AsyncController } from \"../../shared/controllers/async-controller\";\nimport { cssReset } from \"../../shared/css-reset\";\nimport { defineCustomText, useCustomText } from \"../../shared/fragments/custom-text\";\nimport { defineCustomElement } from \"../../shared/defineCustomElement\";\nimport { _errorMessage } from \"../../shared/fragments/error-message-template\";\nimport { _cssVariableMap } from \"../../shared/fragments/css-variable-map\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { MissingConfig } from \"../../utils/beam-errors\";\nimport \"../select-subscription-nonprofit\";\nimport \"../subscription-impact\";\nimport \"../beam-partner-logos\";\nimport \"../../shared/components/progress-bar\";\nimport { LANGUAGES } from \"../../api-sdk/types\";\nimport { partnerLogosConfigDefaults } from \"../beam-partner-logos\";\nimport { makeApiKeyHeader } from \"../../utils/makeApiKeyHeader\";\nimport { _loading } from \"../../shared/fragments/loading-template\";\nimport { localizeUserString } from \"../../shared/localize\";\nimport { TNumericId } from \"../../shared/types\";\nimport { cssCardGrid } from \"../../shared/fragments/css-card-grid\";\nimport { strings } from \"./strings\";\n\ninterface RequiredDataPropsWithEmail {\n email: string;\n apiKey: string;\n subscriptionId: string;\n}\n\ninterface RequiredDataPropsWithPartnerUserId {\n partnerUserId: string;\n apiKey: string;\n subscriptionId: string;\n}\n\ntype TRequiredDataProps = RequiredDataPropsWithEmail | RequiredDataPropsWithPartnerUserId;\nexport type TIAPIV3PersonalImpact = Awaited<ReturnType<typeof import(\"../../api-sdk/v3/routes\").getImpact>>[\"personal\"];\nexport type TIAPIV3EligibleNonprofits = Awaited<\n ReturnType<typeof import(\"../../api-sdk/v3/routes\").getChainNonprofits>\n>[\"nonprofits\"];\nexport type TIAPIV3EligibleNonprofitConfig = Awaited<\n ReturnType<typeof import(\"../../api-sdk/v3/routes\").getChainNonprofits>\n>[\"config\"];\n\nconst INITIAL_TILE_COUNT = 3;\nconst MIN_PREVIOUS_IMPACT = 0;\nconst MIN_PROGRESS_THRESHOLD = 1;\nconst MAX_PROGRESS_THRESHOLD = 98;\n\nexport class BeamSubscriptionManagement extends LitElement {\n static tagName = \"beam-subscription-management\";\n\n @property({ type: String })\n public baseUrl: string = DEFAULT_BASE_URL;\n\n @property({ type: String })\n public apiKey!: TRequiredDataProps[\"apiKey\"];\n\n @property({ type: String })\n public subscriptionId!: TRequiredDataProps[\"subscriptionId\"];\n\n @property({ type: Number, reflect: true })\n public storeId?: number; // Either storeId or postalCode, countryCode must be provided\n\n @property({ type: String })\n public email?: RequiredDataPropsWithEmail[\"email\"]; // Either email or partnerUserId must be provided\n\n @property({ type: String })\n public partnerUserId?: RequiredDataPropsWithPartnerUserId[\"partnerUserId\"]; // Either email or partnerUserId must be provided\n\n @property({ type: String })\n public postalCode?: string;\n\n @property({ type: String })\n public countryCode?: string;\n\n @property({ type: Number, reflect: true })\n public selectedNonprofitId?: TNumericId;\n\n @property({ type: String })\n public lang: LANGUAGES = \"en\";\n\n @property({ type: Object })\n public cart?: TCart;\n\n @property({ type: Boolean })\n public debug = false;\n\n @property({ type: Boolean })\n public draftConfig = false;\n\n get configLang() {\n return SUPPORTED_LANGUAGES[this.lang] || \"en\";\n }\n\n @state() private activeWidget: \"select-subscription-nonprofit\" | \"subscription-impact\" | null = null; // Based on /findSubscriptionByRemoteId\n @state() private nonprofitId: number | null = null; // From /findSubscriptionByRemoteId response\n @state() private beamUserId: string | null = null; // From findSubscriptionByRemoteId\n @state() private eligibleNonprofits: TIAPIV3EligibleNonprofits = [];\n @state() private showAllTiles = false;\n @state() private isMobile = window.innerWidth < 720;\n @state() private dropdownVisible = false;\n @state() private emojis = [\"👏\", \"💪\", \"🙌\", \"✨\", \"🥇\"];\n\n private subscriptionDataController = new AsyncController<typeof this.fetchSubscription>(this, this.fetchSubscription);\n private eligibleNonprofitsDataController = new AsyncController<typeof this.fetchEligibleNonprofits>(\n this,\n this.fetchEligibleNonprofits\n );\n private personalImpactDataController = new AsyncController<typeof this.fetchImpact>(this, this.fetchImpact);\n\n async firstUpdated() {\n if (!this.email && !this.partnerUserId) {\n throw new MissingConfig(\n [\"email\", \"partnerUserId\"],\n \"One of the following properties needs to be specified: email, partnerUserId \"\n );\n }\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n await this.loadWidget();\n }\n\n async loadWidget() {\n // In parallel:\n // (1). Fetch eligible nonprofits [storeId and chainName]\n // (2). Fetch subscription [userId and nonprofitId]\n await Promise.all([this.fetchEligibleNonprofits(), this.fetchSubscription()]);\n await this.fetchImpact();\n this.activeWidget = this.nonprofitId ? \"subscription-impact\" : \"select-subscription-nonprofit\";\n }\n\n async fetchEligibleNonprofits() {\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n const eligibleNonprofitResult = await postChainEligibleNonprofitsForCart({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n requestBody: {\n storeId: this.storeId || undefined,\n postalCode: this.postalCode || undefined,\n countryCode: this.countryCode || undefined,\n widgetName: WIDGET_NAMES.subscription_management,\n version: \"1.0.0\",\n },\n });\n this.storeId = eligibleNonprofitResult.store.id;\n this.eligibleNonprofits = eligibleNonprofitResult.nonprofits;\n this.eligibleNonprofitsDataController.data = eligibleNonprofitResult;\n return eligibleNonprofitResult;\n }\n\n async fetchSubscription() {\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n const subscriptionResult = await postFindOrCreateSubscription({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n requestBody: {\n remoteSubscriptionId: this.subscriptionId,\n email: this.email,\n partnerUserId: this.partnerUserId,\n },\n });\n\n this.beamUserId = subscriptionResult.beamUserId; // Returned in response regardless of subscription redemption\n this.nonprofitId = subscriptionResult.nonprofit?.id || null;\n return subscriptionResult;\n }\n\n async fetchImpact() {\n enforceConfig<TRequiredDataProps>([\"apiKey\"], this);\n\n const impactResult = await getImpact({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n queryParams: {\n beamUserId: this.beamUserId ? this.beamUserId : undefined,\n widgetName: \"subscription-management\",\n version: \"1.0.0\",\n lang: this.configLang,\n },\n });\n\n this.personalImpactDataController.data = impactResult;\n return impactResult;\n }\n\n // Used to filter the full personal impact results to\n // just ones that are displayable\n // 1. Checks \"includeInPersonalImpact\" for each nonprofit\n // 2. Checks if it's the currently supported nonprofit, and if it's been funded at least once\n getDisplayablePreviousImpacts() {\n const personalImpacts = this.personalImpactDataController.data?.personal;\n if (!personalImpacts || personalImpacts?.length < 1) {\n return [];\n }\n\n return personalImpacts.filter((impact) => {\n if (!impact.nonprofit.includeInPersonalImpact) {\n return false;\n }\n if (\n impact.nonprofit.id === this.nonprofitId &&\n (!impact.impact.goalCompletionText || impact.impact.goalCompletionText?.length < 1)\n ) {\n return false;\n }\n return true;\n });\n }\n\n handleSwapNonprofitButtonClick() {\n this.activeWidget = \"select-subscription-nonprofit\";\n }\n\n handleBackToSubscriptionImpactButtonClick() {\n this.activeWidget = \"subscription-impact\";\n }\n\n handleSupportAgainButtonClick(nonprofitId: TNumericId, nonprofitName: string) {\n this.activeWidget = \"select-subscription-nonprofit\";\n this.selectedNonprofitId = nonprofitId;\n\n const event = new BeamNonprofitSelectEvent({\n selectedNonprofitId: nonprofitId,\n nonprofitName: nonprofitName,\n source: WIDGET_NAMES.subscription_management,\n });\n this.dispatchEvent(event);\n }\n\n handleNonprofitSelect(event: Event) {\n if (!(event instanceof BeamNonprofitSelectEvent)) return; // TypeScript guard\n const { selectedNonprofitId } = event.detail;\n this.nonprofitId = selectedNonprofitId ?? null;\n this.activeWidget = \"subscription-impact\";\n }\n\n isNonprofitEligible(nonprofitId: TNumericId) {\n return this.eligibleNonprofits.some((np: TIAPIV3EligibleNonprofits[0]) => np.nonprofit.id === nonprofitId);\n }\n\n shouldDisplayProgressBar(progressValue: number) {\n return progressValue > MIN_PROGRESS_THRESHOLD && progressValue < MAX_PROGRESS_THRESHOLD;\n }\n\n public get cssVariables() {\n const defaults = {\n ...partnerLogosConfigDefaults,\n ...progressBarConfigDefaults,\n \"--beam-fontFamily\": \"inherit\",\n \"--beam-fontStyle\": \"inherit\",\n \"--beam-fontSize\": \"inherit\",\n \"--beam-textColor\": \"inherit\",\n \"--beam-backgroundColor\": \"inherit\",\n \"--beam-SubscriptionManagement-widgetContainer-borderColor\": \"#d5d5d5\",\n \"--beam-SubscriptionManagement-widgetContainer-borderRadius\": \"4px\",\n \"--beam-SubscriptionManagement-widgetContainer-padding\": \"8px 20px\",\n \"--beam-SubscriptionManagement-widgetContainer-backgroundColor\": \"inherit\",\n \"--beam-SubscriptionManagement-widgetContainer-maxWidth\": \"820px\",\n \"--beam-SubscriptionManagement-logo-align-desktop\": \"left\",\n \"--beam-SubscriptionManagement-logo-align-mobile\": \"center\",\n \"--beam-SubscriptionManagement-previousImpact-cardStyle\": \"'selected_icon'\",\n \"--beam-SubscriptionManagement-header-padding\": \"10px 20px 10px 0px\",\n \"--beam-SubscriptionManagement-header-borderRadius\": \"0px\",\n \"--beam-SubscriptionManagement-header-backgroundColor\": \"#fff\",\n \"--beam-SubscriptionManagement-header-meatballsMenu-fontSize\": \"24px\",\n \"--beam-SubscriptionManagement-header-meatballsMenu-color\": \"24px\",\n \"--beam-SubscriptionManagement-lineBreak-color\": \"#ddd\",\n \"--beam-SubscriptionManagement-lineBreak-width\": \"1px\",\n \"--beam-SubscriptionManagement-lineBreak-margin\": \"10px 0 20px 0\",\n \"--beam-SubscriptionManagement-tile-marginBottom\": \"20px\",\n \"--beam-SubscriptionManagement-tile-border-width\": \"0px\",\n \"--beam-SubscriptionManagement-tile-border-color\": \"#ddd\",\n \"--beam-SubscriptionManagement-tile-padding\": \"12.5px\",\n \"--beam-SubscriptionManagement-tile-borderRadius\": \"8px\",\n \"--beam-SubscriptionManagement-tile-background\": \"#f8fbfb\",\n \"--beam-SubscriptionManagement-tileContent-gap\": \" 15px\",\n \"--beam-SubscriptionManagement-tileContent-padding\": \"5px 0px\",\n \"--beam-SubscriptionManagement-tile-icon-borderRadius\": \"4px\",\n \"--beam-SubscriptionManagement-tile-icon-height\": \"28px\",\n \"--beam-SubscriptionManagement-tile-icon-background-borderRadius\": \"50%\",\n \"--beam-SubscriptionManagement-tile-icon-background-width\": \"50px\",\n \"--beam-SubscriptionManagement-tile-icon-background-height\": \"50px\",\n \"--beam-SubscriptionManagement-tile-icon-background-backgroundColor\": \"#0a323c\",\n \"--beam-SubscriptionManagement-tile-icon-background-padding\": \"10px\",\n \"--beam-SubscriptionManagement-blockTileDescription-gap\": \"5px\",\n \"--beam-SubscriptionManagement-blockTileDescription-padding\": \"0px\",\n \"--beam-SubscriptionManagement-blockTileDescription-lineHeight\": \"130%\",\n \"--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop\": \"60%\",\n \"--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile\": \"100%\",\n \"--beam-SubscriptionManagement-subWidgetContainer-padding\": \"0px 0px 10px\",\n \"--beam-SubscriptionManagement-previousImpactContainer-padding-desktop\": \"10px 24px 10px 0px\",\n \"--beam-SubscriptionManagement-previousImpactContainer-padding-mobile\": \"0px\",\n \"--beam-SubscriptionManagement-dropDown-padding\": \"15px 8px\",\n \"--beam-SubscriptionManagement-dropDown-borderRadius\": \"8px\",\n \"--beam-SubscriptionManagement-dropDown-backgroundColor\": \"#f8fbfb\",\n \"--beam-SubscriptionManagement-dropDown-boxShadow\": \"0px 4px 28px 0px rgba(0, 0, 0, 0.04)\",\n \"--beam-SubscriptionManagement-dropDown-width\": \"128px\",\n \"--beam-SubscriptionManagement-dropDown-hover-backgroundColor\": \"#E1F1EE\",\n \"--beam-SubscriptionManagement-dropDownOptions-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-dropDownOptions\", {\n fontSize: \"12px\",\n fontWeight: \"400\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom\": \"15px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-yourPreviousImpactTitle\", {\n fontSize: \"18px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton\", {\n fontSize: \"12px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-title-letterSpacing\": \"0.36px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-title\", {\n fontSize: \"12px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"uppercase\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-description\", {\n fontSize: \"14px\",\n lineHeight: \"120%\",\n fontStyle: \"normal\",\n color: \"#454a47\",\n }),\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-via\", {\n fontSize: \"14px\",\n lineHeight: \"120%\",\n fontStyle: \"normal\",\n color: \"#454a47\",\n }),\n \"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-nonprofitLink\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-supportAgainButton\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft\": \"8px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-progressBarLabel\", {\n fontSize: \"10px\",\n fontWeight: \"bold\",\n fontStyle: \"normal\",\n color: \"#878a92\",\n }),\n \"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight\": \"16px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-fundedAmount\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n fontStyle: \"italic\",\n color: \"#0a323c\",\n }),\n };\n\n const remoteConfig = this.eligibleNonprofitsDataController?.data?.config?.web?.theme || {};\n\n const config = { ...defaults, ...remoteConfig };\n\n const serializable = Object.create({\n toCSS() {\n return _cssVariableMap(this as Record<string, string>);\n },\n });\n return Object.assign(serializable, config);\n }\n\n static styles = [\n cssReset,\n css`\n :host {\n display: block;\n font-family: var(--beam-fontFamily);\n font-style: var(--beam-fontStyle);\n font-size: var(--beam-fontSize);\n background-color: var(--beam-backgroundColor);\n color: var(--beam-textColor);\n word-break: normal;\n }\n .drop-down-options {\n text-decoration: var(--beam-SubscriptionManagement-dropDownOptions-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-dropDownOptions\")};\n }\n .widget-container {\n background-color: var(--beam-SubscriptionManagement-widgetContainer-backgroundColor);\n border: 1px solid var(--beam-SubscriptionManagement-widgetContainer-borderColor);\n border-radius: var(--beam-SubscriptionManagement-widgetContainer-borderRadius);\n padding: var(--beam-SubscriptionManagement-widgetContainer-padding);\n max-width: var(--beam-SubscriptionManagement-widgetContainer-maxWidth);\n }\n .header {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n padding: var(--beam-SubscriptionManagement-header-padding);\n border-radius: var(--beam-SubscriptionManagement-header-borderRadius);\n background-color: var(--beam-SubscriptionManagement-header-backgroundColor);\n }\n .header-content {\n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n .button {\n cursor: pointer;\n background: none;\n border: none;\n }\n .header .meatballsMenu {\n position: relative;\n cursor: pointer;\n }\n .header .meatballsMenu span {\n font-size: var(--beam-SubscriptionManagement-header-meatballsMenu-fontSize);\n color: var(--beam-SubscriptionManagement-header-meatballsMenu-color);\n }\n .dropdown-container {\n display: none;\n position: absolute;\n right: 0;\n z-index: 1;\n padding: var(--beam-SubscriptionManagement-dropDown-padding);\n border-radius: var(--beam-SubscriptionManagement-dropDown-borderRadius);\n background: var(--beam-SubscriptionManagement-dropDown-backgroundColor);\n box-shadow: var(--beam-SubscriptionManagement-dropDown-boxShadow);\n width: var(--beam-SubscriptionManagement-dropDown-width);\n }\n .dropdown-container.visible {\n display: block;\n }\n .dropdown-container:hover {\n background-color: var(--beam-SubscriptionManagement-dropDown-hover-backgroundColor);\n }\n .line-break {\n border-top: var(--beam-SubscriptionManagement-lineBreak-width) solid\n var(--beam-SubscriptionManagement-lineBreak-color);\n margin: var(--beam-SubscriptionManagement-lineBreak-margin);\n }\n .tile {\n border: var(--beam-SubscriptionManagement-tile-border-width) solid\n var(--beam-SubscriptionManagement-tile-border-color);\n padding: var(--beam-SubscriptionManagement-tile-padding);\n border-radius: var(--beam-SubscriptionManagement-tile-borderRadius);\n background: var(--beam-SubscriptionManagement-tile-background);\n }\n .tile-title {\n letter-spacing: var(--beam-SubscriptionManagement-tile-title-letterSpacing);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-title\")};\n }\n .tile-content {\n display: flex;\n flex-direction: row;\n gap: var(--beam-SubscriptionManagement-tileContent-gap);\n padding: var(--beam-SubscriptionManagement-tileContent-padding);\n }\n .tile-description-block-container {\n flex: 1 1 67%;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: var(--beam-SubscriptionManagement-blockTileDescription-gap);\n padding: var(--beam-SubscriptionManagement-blockTileDescription-padding);\n line-height: var(--beam-SubscriptionManagement-blockTileDescription-lineHeight);\n }\n .sub-widget-container {\n padding: var(--beam-SubscriptionManagement-subWidgetContainer-padding);\n }\n .previous-impact-title {\n margin-bottom: var(--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom);\n ${useCustomText(\"--beam-SubscriptionManagement-yourPreviousImpactTitle\")};\n }\n .tile-description {\n ${useCustomText(\"--beam-SubscriptionManagement-tile-description\")};\n }\n .via {\n ${useCustomText(\"--beam-SubscriptionManagement-tile-via\")};\n }\n .center-align-logo {\n margin-left: auto;\n margin-right: auto;\n }\n .left-align-logo {\n margin-left: 0;\n margin-right: auto;\n }\n .previous-impact-link-container {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .previous-impact-link {\n text-decoration-line: var(--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton\")};\n }\n .icon-background {\n width: var(--beam-SubscriptionManagement-tile-icon-background-width);\n height: var(--beam-SubscriptionManagement-tile-icon-background-height);\n border-radius: var(--beam-SubscriptionManagement-tile-icon-background-borderRadius);\n padding: var(--beam-SubscriptionManagement-tile-icon-background-padding);\n overflow: hidden;\n background: var(--beam-SubscriptionManagement-tile-icon-background-backgroundColor);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .icon {\n display: block;\n margin: auto;\n border-radius: var(--beam-SubscriptionManagement-tile-icon-borderRadius);\n height: var(--beam-SubscriptionManagement-tile-icon-height);\n }\n .tile-progress-bar-container-desktop {\n display: flex;\n align-items: center;\n width: var(--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop);\n }\n .tile-progress-bar-container-mobile {\n display: flex;\n align-items: center;\n width: var(--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile);\n }\n .previous-impact-nonprofit-link {\n text-decoration-line: var(--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-nonprofitLink\")};\n }\n .details-funding-progress-label {\n white-space: nowrap;\n flex: 0 1;\n margin-left: var(--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-progressBarLabel\")};\n }\n .funded-times {\n line-height: var(--beam-SubscriptionManagement-tile-fundedAmount-lineHeight);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-fundedAmount\")};\n }\n .tile-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .tile-support-again {\n text-decoration-line: var(--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-supportAgainButton\")};\n }\n `,\n cssCardGrid({\n gap: \"var(--beam-SubscriptionManagement-tile-marginBottom)\",\n itemMinWidth: \"250px\",\n columnCount: \"1\",\n }),\n ];\n\n private renderPreviousImpactTiles({\n personalImpact,\n cardStyle,\n eligibleNonprofitConfig,\n }: {\n personalImpact?: TIAPIV3PersonalImpact;\n cardStyle: string;\n eligibleNonprofitConfig?: TIAPIV3EligibleNonprofitConfig;\n }) {\n if (!personalImpact) {\n return html``;\n }\n if (!eligibleNonprofitConfig) {\n return html``;\n }\n\n const tilesToShow = this.showAllTiles ? personalImpact : personalImpact.slice(0, INITIAL_TILE_COUNT);\n let emojiIndex = 0;\n return html`\n ${tilesToShow.map((previousImpact) => {\n const {\n impact: { goalCompletionText, description, goalProgressPercentage, goalProgressText },\n nonprofit: { cause, causeIconSelectedUrl, causeIconUrl, website, name, id },\n } = previousImpact;\n\n const isEligibleToSupportAgain = this.nonprofitId !== id && this.isNonprofitEligible(id);\n const showProgressBar = isEligibleToSupportAgain && this.shouldDisplayProgressBar(goalProgressPercentage);\n const emoji = goalCompletionText ? `${this.emojis[emojiIndex]} ` : \"\";\n emojiIndex = (emojiIndex + 1) % this.emojis.length;\n\n return html`\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-title\">${localizeUserString(this.configLang, cause || \"\")}</div>\n ${isEligibleToSupportAgain\n ? html` <button\n class=\"tile-support-again button\"\n @click=\"${() => this.handleSupportAgainButtonClick(id, name)}\"\n >\n ${localizeUserString(\n this.configLang,\n eligibleNonprofitConfig?.web?.additionalStrings?.[\"supportAgainButton\"] || \"\"\n ) || strings[this.configLang].supportAgainButton()}\n </button>`\n : html``}\n </div>\n <div class=\"tile-content\">\n <div class=\"icon-background\">\n <img\n src=\"${cardStyle === \"'selected_icon'\" ? causeIconSelectedUrl : causeIconUrl}\"\n alt=\"${cause}\"\n class=\"icon\"\n />\n </div>\n <div class=\"tile-description-block-container\">\n <div class=\"tile-description-container\">\n <span class=\"tile-description\">${localizeUserString(this.configLang, description || \"\")}</span>\n <span class=\"via\"\n >${localizeUserString(\n this.configLang,\n eligibleNonprofitConfig?.web?.additionalStrings?.[\"via\"] || \"\"\n ) || strings[this.configLang].via()}</span\n >\n <a href=\"${website}\" target=\"_blank\" class=\"previous-impact-nonprofit-link\">\n ${localizeUserString(this.configLang, name || \"\")}\n </a>\n </div>\n ${showProgressBar\n ? html` <div\n class=\"${this.isMobile\n ? \"tile-progress-bar-container-mobile\"\n : \"tile-progress-bar-container-desktop\"}\"\n >\n <beam-progress-bar value=\"${goalProgressPercentage}\" style=\"flex: 1 0;\"></beam-progress-bar>\n <span class=\"details-funding-progress-label\">${goalProgressText}</span>\n </div>`\n : html``}\n <div class=\"funded-times\">\n ${emoji}${unsafeHTML(localizeUserString(this.configLang, goalCompletionText))}\n </div>\n </div>\n </div>\n </div>\n `;\n })}\n `;\n }\n\n render() {\n const { data, loading, error } = this.eligibleNonprofitsDataController;\n if (loading) {\n return _loading();\n }\n const excludeDonationsForRecurringTransactions = data?.settings?.excludeDonationsForRecurringTransactions;\n if (excludeDonationsForRecurringTransactions) {\n return html``;\n }\n if (error || data == null) {\n return this.debug ? _errorMessage({ error: error || new Error(\"No data\") }) : \"\";\n }\n let content;\n const cardStyle = this.cssVariables[\"--beam-SubscriptionManagement-previousImpact-cardStyle\"];\n const logoAlignDesktop = this.cssVariables[\"--beam-SubscriptionManagement-logo-align-desktop\"];\n const logoAlignMobile = this.cssVariables[\"--beam-SubscriptionManagement-logo-align-mobile\"];\n const previousImpactCount = this.getDisplayablePreviousImpacts().length ?? 0;\n if (\n this.subscriptionDataController.loading ||\n this.eligibleNonprofitsDataController.loading ||\n this.personalImpactDataController.loading\n ) {\n _loading();\n }\n\n if (\n (this.subscriptionDataController.error ||\n this.eligibleNonprofitsDataController.error ||\n this.personalImpactDataController.error) &&\n this.debug\n ) {\n if (this.subscriptionDataController.error !== null) {\n return _errorMessage({ error: this.subscriptionDataController.error });\n } else if (this.eligibleNonprofitsDataController.error !== null) {\n return _errorMessage({ error: this.eligibleNonprofitsDataController.error });\n } else if (this.personalImpactDataController.error !== null) {\n return _errorMessage({ error: this.personalImpactDataController.error });\n }\n } else {\n content = \"\";\n }\n\n if (this.activeWidget === \"select-subscription-nonprofit\") {\n content = html` <beam-select-subscription-nonprofit\n part=\"subscription-nonprofit\"\n storeId=\"${this.storeId}\"\n subscriptionId=\"${this.subscriptionId}\"\n nonprofitId=${this.nonprofitId}\n selectedNonprofitId=${this.selectedNonprofitId}\n baseUrl=\"${this.baseUrl}\"\n apiKey=\"${this.apiKey}\"\n postalCode=\"${this.postalCode}\"\n countryCode=\"${this.countryCode}\"\n lang=\"${this.lang}\"\n ?draftConfig=\"${this.draftConfig}\"\n ?debug=\"${this.debug}\"\n @beamnonprofitselect=\"${(event: Event) => this.handleNonprofitSelect(event)}\"\n ></beam-select-subscription-nonprofit>`;\n } else if (this.activeWidget === \"subscription-impact\") {\n content = html`\n <beam-subscription-impact\n part=\"subscription-impact\"\n baseUrl=\"${this.baseUrl}\"\n apiKey=\"${this.apiKey}\"\n storeId=\"${this.storeId}\"\n beamUserId=\"${this.beamUserId}\"\n nonprofitId=\"${this.nonprofitId}\"\n lang=\"${this.lang}\"\n ?draftConfig=\"${this.draftConfig}\"\n ?debug=\"${this.debug}\"\n ></beam-subscription-impact>\n `;\n }\n return html`\n <style>\n :host {\n ${this.cssVariables.toCSS()}\n }\n </style>\n <div class=\"widget-container\">\n <div class=\"header\">\n <div class=\"header-content\">\n <div\n class=\"logo ${this.isMobile\n ? logoAlignMobile === \"center\"\n ? \"center-align-logo\"\n : \"left-align-logo\"\n : logoAlignDesktop === \"center\"\n ? \"center-align-logo\"\n : \"left-align-logo\"}\"\n >\n <beam-partner-logos\n partnerName=\"${this.eligibleNonprofitsDataController.data?.chain.name}\"\n partnerLogoUrl=\"${this.eligibleNonprofitsDataController.data?.chain.logoUrl}\"\n ></beam-partner-logos>\n </div>\n ${this.nonprofitId\n ? html` <div class=\"meatballsMenu\" @click=\"${() => (this.dropdownVisible = !this.dropdownVisible)}\">\n <span>&#8230;</span>\n <div class=\"dropdown-container ${this.dropdownVisible ? \"visible\" : \"\"}\">\n ${this.activeWidget === \"select-subscription-nonprofit\"\n ? html`<button\n @click=\"${this.handleBackToSubscriptionImpactButtonClick}\"\n class=\"drop-down-options button\"\n >\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"previousNonprofitButtonText\"] || \"\"\n ) || strings[this.configLang].previousNonprofitButton()}\n </button>`\n : this.activeWidget === \"subscription-impact\"\n ? html`<button @click=\"${this.handleSwapNonprofitButtonClick}\" class=\"drop-down-options button\">\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"changeNonprofitButtonText\"] || \"\"\n ) || strings[this.configLang].changeNonprofitButton()}\n </button>`\n : \"\"}\n </div>\n </div>`\n : html``}\n </div>\n </div>\n <div class=\"sub-widget-container\" part=\"previous-impact\">${content}</div>\n ${previousImpactCount > MIN_PREVIOUS_IMPACT\n ? html` <div class=\"line-break\"></div>\n\n <div\n class=\"previous-impact-container ${this.isMobile\n ? \"--beam-SubscriptionManagement-previousImpactContainer-padding-mobile\"\n : \"--beam-SubscriptionManagement-previousImpactContainer-padding-desktop\"}\"\n >\n <h2 class=\"previous-impact-title\">\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"previousImpactHeader\"] || \"\"\n ) || strings[this.configLang].previousImpactHeader()}\n </h2>\n <div class=\"cardGrid\">\n ${this.renderPreviousImpactTiles({\n personalImpact: this.getDisplayablePreviousImpacts(),\n cardStyle,\n eligibleNonprofitConfig: this.eligibleNonprofitsDataController.data?.config,\n })}\n </div>\n ${previousImpactCount > INITIAL_TILE_COUNT\n ? html`\n <div class=\"previous-impact-link-container\">\n <button\n @click=\"${() => (this.showAllTiles = !this.showAllTiles)}\"\n class=\"previous-impact-link button\"\n >\n ${this.showAllTiles\n ? localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"showLessButton\"] || \"\"\n ) || strings[this.configLang].showLessButton()\n : localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"showAllButton\"] || \"\"\n ) || strings[this.configLang].showAllButton()}\n </button>\n </div>\n `\n : html``}\n </div>`\n : html``}\n </div>\n `;\n }\n}\n\ndefineCustomElement(BeamSubscriptionManagement);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"beam-subscription-management\": BeamSubscriptionManagement;\n }\n}\n"],"names":["strings","INITIAL_TILE_COUNT","MIN_PREVIOUS_IMPACT","MIN_PROGRESS_THRESHOLD","MAX_PROGRESS_THRESHOLD","BeamSubscriptionManagement","LitElement","DEFAULT_BASE_URL","AsyncController","SUPPORTED_LANGUAGES","MissingConfig","enforceConfig","eligibleNonprofitResult","postChainEligibleNonprofitsForCart","makeApiKeyHeader","WIDGET_NAMES","subscriptionResult","postFindOrCreateSubscription","impactResult","getImpact","personalImpacts","impact","nonprofitId","nonprofitName","event","BeamNonprofitSelectEvent","selectedNonprofitId","np","progressValue","defaults","partnerLogosConfigDefaults","progressBarConfigDefaults","defineCustomText","remoteConfig","config","_cssVariableMap","personalImpact","cardStyle","eligibleNonprofitConfig","html","tilesToShow","emojiIndex","previousImpact","goalCompletionText","description","goalProgressPercentage","goalProgressText","cause","causeIconSelectedUrl","causeIconUrl","website","name","id","isEligibleToSupportAgain","showProgressBar","emoji","localizeUserString","unsafeHTML","data","loading","error","_loading","_errorMessage","content","logoAlignDesktop","logoAlignMobile","previousImpactCount","cssReset","css","useCustomText","cssCardGrid","__decorateClass","property","state","defineCustomElement"],"mappings":"usCAAO,MAAMA,EAAU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EAAAA,EAAA,CAAhBE,EAAM,CAAA,EA9CIpE,EA8CM,UACAkE,cAAAA,EAAAA,EAAA,CAAhBE,GAAM,EA/CIpE,EA+CM,UACAkE,aAAAA,EAAAA,EAAA,CAAhBE,EAAM,CAAA,EAhDIpE,EAgDM,UACAkE,YAAAA,EAAAA,EAAA,CAAhBE,GAAM,EAjDIpE,EAiDM,UAAA,oBAAA,EACAkE,EAAA,CAAhBE,EAlDU,CAAA,EAAApE,EAkDM,0BACAkE,EAAA,CAAhBE,GAnDU,EAAApE,EAmDM,sBACAkE,EAAA,CAAhBE,GApDU,EAAApE,EAoDM,6BACAkE,EAAA,CAAhBE,EArDU,CAAA,EAAApE,EAqDM,UAguBnBqE,QAAAA,EAAAA,EAAoBrE,CAA0B"}
1
+ {"version":3,"file":"subscription-management.js","sources":["../../src/components/subscription-management/strings.ts","../../src/components/subscription-management/index.ts"],"sourcesContent":["export const strings = {\n en: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n fr: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n de: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n es: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n it: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n pl: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n ja: {\n changeNonprofitButton: () => `Change Nonprofit`,\n previousImpactHeader: () => `Your Previous Impact`,\n previousNonprofitButton: () => `Back to Previous Nonprofit`,\n supportAgainButton: () => `Support Again`,\n via: () => `via`,\n showAllButton: () => `Show All`,\n showLessButton: () => `Show Less`,\n },\n};\n","import { css, html, LitElement } from \"lit\";\nimport { property } from \"lit/decorators/property.js\";\nimport { state } from \"lit/decorators/state.js\";\nimport { unsafeHTML } from \"lit/directives/unsafe-html.js\";\nimport { DEFAULT_BASE_URL, SUPPORTED_LANGUAGES, WIDGET_NAMES } from \"../../api-sdk/constants\";\nimport { TCart } from \"../../shared/cart-contents\";\nimport { progressBarConfigDefaults } from \"../../shared/components/progress-bar\";\nimport { enforceConfig } from \"../../shared/enforce-config\";\nimport { postFindOrCreateSubscription, postChainEligibleNonprofitsForCart, getImpact } from \"../../api-sdk/v3/routes\";\nimport { AsyncController } from \"../../shared/controllers/async-controller\";\nimport { cssReset } from \"../../shared/css-reset\";\nimport { defineCustomText, useCustomText } from \"../../shared/fragments/custom-text\";\nimport { defineCustomElement } from \"../../shared/defineCustomElement\";\nimport { _errorMessage } from \"../../shared/fragments/error-message-template\";\nimport { _cssVariableMap } from \"../../shared/fragments/css-variable-map\";\nimport { BeamNonprofitSelectEvent } from \"../../utils/events\";\nimport { MissingConfig } from \"../../utils/beam-errors\";\nimport \"../select-subscription-nonprofit\";\nimport \"../subscription-impact\";\nimport \"../beam-partner-logos\";\nimport \"../../shared/components/progress-bar\";\nimport { LANGUAGES } from \"../../api-sdk/types\";\nimport { partnerLogosConfigDefaults } from \"../beam-partner-logos\";\nimport { makeApiKeyHeader } from \"../../utils/makeApiKeyHeader\";\nimport { _loading } from \"../../shared/fragments/loading-template\";\nimport { localizeUserString } from \"../../shared/localize\";\nimport { TNumericId } from \"../../shared/types\";\nimport { cssCardGrid } from \"../../shared/fragments/css-card-grid\";\nimport { strings } from \"./strings\";\n\ninterface RequiredDataPropsWithEmail {\n email: string;\n apiKey: string;\n subscriptionId: string;\n}\n\ninterface RequiredDataPropsWithPartnerUserId {\n partnerUserId: string;\n apiKey: string;\n subscriptionId: string;\n}\n\ntype TRequiredDataProps = RequiredDataPropsWithEmail | RequiredDataPropsWithPartnerUserId;\nexport type TIAPIV3PersonalImpact = Awaited<ReturnType<typeof import(\"../../api-sdk/v3/routes\").getImpact>>[\"personal\"];\nexport type TIAPIV3EligibleNonprofits = Awaited<\n ReturnType<typeof import(\"../../api-sdk/v3/routes\").getChainNonprofits>\n>[\"nonprofits\"];\nexport type TIAPIV3EligibleNonprofitConfig = Awaited<\n ReturnType<typeof import(\"../../api-sdk/v3/routes\").getChainNonprofits>\n>[\"config\"];\n\nconst INITIAL_TILE_COUNT = 3;\nconst MIN_PREVIOUS_IMPACT = 0;\nconst MIN_PROGRESS_THRESHOLD = 1;\nconst MAX_PROGRESS_THRESHOLD = 98;\n\nexport class BeamSubscriptionManagement extends LitElement {\n static tagName = \"beam-subscription-management\";\n\n @property({ type: String })\n public baseUrl: string = DEFAULT_BASE_URL;\n\n @property({ type: String })\n public apiKey!: TRequiredDataProps[\"apiKey\"];\n\n @property({ type: String })\n public subscriptionId!: TRequiredDataProps[\"subscriptionId\"];\n\n @property({ type: Number, reflect: true })\n public storeId?: number; // Either storeId or postalCode, countryCode must be provided\n\n @property({ type: String })\n public email?: RequiredDataPropsWithEmail[\"email\"]; // Either email or partnerUserId must be provided\n\n @property({ type: String })\n public partnerUserId?: RequiredDataPropsWithPartnerUserId[\"partnerUserId\"]; // Either email or partnerUserId must be provided\n\n @property({ type: String })\n public postalCode?: string;\n\n @property({ type: String })\n public countryCode?: string;\n\n @property({ type: Number, reflect: true })\n public selectedNonprofitId?: TNumericId;\n\n @property({ type: String })\n public lang: LANGUAGES = \"en\";\n\n @property({ type: Object })\n public cart?: TCart;\n\n @property({ type: Boolean })\n public debug = false;\n\n @property({ type: Boolean })\n public draftConfig = false;\n\n get configLang() {\n return SUPPORTED_LANGUAGES[this.lang] || \"en\";\n }\n\n @state() private activeWidget: \"select-subscription-nonprofit\" | \"subscription-impact\" | null = null; // Based on /findSubscriptionByRemoteId\n @state() private nonprofitId: number | null = null; // From /findSubscriptionByRemoteId response\n @state() private beamUserId: string | null = null; // From findSubscriptionByRemoteId\n @state() private eligibleNonprofits: TIAPIV3EligibleNonprofits = [];\n @state() private showAllTiles = false;\n @state() private isMobile = window.innerWidth < 720;\n @state() private dropdownVisible = false;\n @state() private emojis = [\"👏\", \"💪\", \"🙌\", \"✨\", \"🥇\"];\n\n private subscriptionDataController = new AsyncController<typeof this.fetchSubscription>(this, this.fetchSubscription);\n private eligibleNonprofitsDataController = new AsyncController<typeof this.fetchEligibleNonprofits>(\n this,\n this.fetchEligibleNonprofits\n );\n private personalImpactDataController = new AsyncController<typeof this.fetchImpact>(this, this.fetchImpact);\n\n async firstUpdated() {\n if (!this.email && !this.partnerUserId) {\n throw new MissingConfig(\n [\"email\", \"partnerUserId\"],\n \"One of the following properties needs to be specified: email, partnerUserId \"\n );\n }\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n await this.loadWidget();\n }\n\n async loadWidget() {\n // In parallel:\n // (1). Fetch eligible nonprofits [storeId and chainName]\n // (2). Fetch subscription [userId and nonprofitId]\n await Promise.all([this.fetchEligibleNonprofits(), this.fetchSubscription()]);\n await this.fetchImpact();\n this.activeWidget = this.nonprofitId ? \"subscription-impact\" : \"select-subscription-nonprofit\";\n }\n\n async fetchEligibleNonprofits() {\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n const eligibleNonprofitResult = await postChainEligibleNonprofitsForCart({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n requestBody: {\n storeId: this.storeId || undefined,\n postalCode: this.postalCode || undefined,\n countryCode: this.countryCode || undefined,\n widgetName: WIDGET_NAMES.subscription_management,\n version: \"1.0.0\",\n },\n });\n this.storeId = eligibleNonprofitResult.store.id;\n this.eligibleNonprofits = eligibleNonprofitResult.nonprofits;\n this.eligibleNonprofitsDataController.data = eligibleNonprofitResult;\n return eligibleNonprofitResult;\n }\n\n async fetchSubscription() {\n enforceConfig<TRequiredDataProps>([\"apiKey\", \"subscriptionId\"], this);\n const subscriptionResult = await postFindOrCreateSubscription({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n requestBody: {\n remoteSubscriptionId: this.subscriptionId,\n email: this.email,\n partnerUserId: this.partnerUserId,\n },\n });\n\n this.beamUserId = subscriptionResult.beamUserId; // Returned in response regardless of subscription redemption\n this.nonprofitId = subscriptionResult.nonprofit?.id || null;\n return subscriptionResult;\n }\n\n async fetchImpact() {\n enforceConfig<TRequiredDataProps>([\"apiKey\"], this);\n\n const impactResult = await getImpact({\n baseUrl: this.baseUrl,\n headers: makeApiKeyHeader(this.apiKey),\n queryParams: {\n beamUserId: this.beamUserId ? this.beamUserId : undefined,\n widgetName: \"subscription-management\",\n version: \"1.0.0\",\n lang: this.configLang,\n },\n });\n\n this.personalImpactDataController.data = impactResult;\n return impactResult;\n }\n\n // Used to filter the full personal impact results to\n // just ones that are displayable\n // 1. Checks \"includeInPersonalImpact\" for each nonprofit\n // 2. Checks if it's the currently supported nonprofit, and if it's been funded at least once\n getDisplayablePreviousImpacts() {\n const personalImpacts = this.personalImpactDataController.data?.personal;\n if (!personalImpacts || personalImpacts?.length < 1) {\n return [];\n }\n\n return personalImpacts.filter((impact) => {\n if (!impact.nonprofit.includeInPersonalImpact) {\n return false;\n }\n if (\n impact.nonprofit.id === this.nonprofitId &&\n (!impact.impact.goalCompletionText || impact.impact.goalCompletionText?.length < 1)\n ) {\n return false;\n }\n return true;\n });\n }\n\n handleSwapNonprofitButtonClick() {\n this.activeWidget = \"select-subscription-nonprofit\";\n }\n\n handleBackToSubscriptionImpactButtonClick() {\n this.activeWidget = \"subscription-impact\";\n }\n\n handleSupportAgainButtonClick(nonprofitId: TNumericId, nonprofitName: string) {\n this.activeWidget = \"select-subscription-nonprofit\";\n this.selectedNonprofitId = nonprofitId;\n\n const event = new BeamNonprofitSelectEvent({\n selectedNonprofitId: nonprofitId,\n nonprofitName: nonprofitName,\n source: WIDGET_NAMES.subscription_management,\n });\n this.dispatchEvent(event);\n }\n\n handleNonprofitSelect(event: Event) {\n if (!(event instanceof BeamNonprofitSelectEvent)) return; // TypeScript guard\n const { selectedNonprofitId } = event.detail;\n this.nonprofitId = selectedNonprofitId ?? null;\n this.activeWidget = \"subscription-impact\";\n }\n\n isNonprofitEligible(nonprofitId: TNumericId) {\n return this.eligibleNonprofits.some((np: TIAPIV3EligibleNonprofits[0]) => np.nonprofit.id === nonprofitId);\n }\n\n shouldDisplayProgressBar(progressValue: number) {\n return progressValue > MIN_PROGRESS_THRESHOLD && progressValue < MAX_PROGRESS_THRESHOLD;\n }\n\n public get cssVariables() {\n const defaults = {\n ...partnerLogosConfigDefaults,\n ...progressBarConfigDefaults,\n \"--beam-fontFamily\": \"inherit\",\n \"--beam-fontStyle\": \"inherit\",\n \"--beam-fontSize\": \"inherit\",\n \"--beam-textColor\": \"inherit\",\n \"--beam-backgroundColor\": \"inherit\",\n \"--beam-SubscriptionManagement-widgetContainer-borderColor\": \"#d5d5d5\",\n \"--beam-SubscriptionManagement-widgetContainer-borderRadius\": \"4px\",\n \"--beam-SubscriptionManagement-widgetContainer-padding\": \"8px 20px\",\n \"--beam-SubscriptionManagement-widgetContainer-backgroundColor\": \"inherit\",\n \"--beam-SubscriptionManagement-widgetContainer-maxWidth\": \"820px\",\n \"--beam-SubscriptionManagement-logo-align-desktop\": \"left\",\n \"--beam-SubscriptionManagement-logo-align-mobile\": \"center\",\n \"--beam-SubscriptionManagement-previousImpact-cardStyle\": \"'selected_icon'\",\n \"--beam-SubscriptionManagement-header-padding\": \"10px 20px 10px 0px\",\n \"--beam-SubscriptionManagement-header-borderRadius\": \"0px\",\n \"--beam-SubscriptionManagement-header-backgroundColor\": \"#fff\",\n \"--beam-SubscriptionManagement-header-meatballsMenu-fontSize\": \"24px\",\n \"--beam-SubscriptionManagement-header-meatballsMenu-color\": \"24px\",\n \"--beam-SubscriptionManagement-lineBreak-color\": \"#ddd\",\n \"--beam-SubscriptionManagement-lineBreak-width\": \"1px\",\n \"--beam-SubscriptionManagement-lineBreak-margin\": \"10px 0 20px 0\",\n \"--beam-SubscriptionManagement-tile-marginBottom\": \"20px\",\n \"--beam-SubscriptionManagement-tile-border-width\": \"0px\",\n \"--beam-SubscriptionManagement-tile-border-color\": \"#ddd\",\n \"--beam-SubscriptionManagement-tile-padding\": \"12.5px\",\n \"--beam-SubscriptionManagement-tile-borderRadius\": \"8px\",\n \"--beam-SubscriptionManagement-tile-background\": \"#f8fbfb\",\n \"--beam-SubscriptionManagement-tileContent-gap\": \" 15px\",\n \"--beam-SubscriptionManagement-tileContent-padding\": \"5px 0px\",\n \"--beam-SubscriptionManagement-tile-icon-borderRadius\": \"4px\",\n \"--beam-SubscriptionManagement-tile-icon-height\": \"28px\",\n \"--beam-SubscriptionManagement-tile-icon-background-borderRadius\": \"50%\",\n \"--beam-SubscriptionManagement-tile-icon-background-width\": \"50px\",\n \"--beam-SubscriptionManagement-tile-icon-background-height\": \"50px\",\n \"--beam-SubscriptionManagement-tile-icon-background-backgroundColor\": \"#0a323c\",\n \"--beam-SubscriptionManagement-tile-icon-background-padding\": \"10px\",\n \"--beam-SubscriptionManagement-blockTileDescription-gap\": \"5px\",\n \"--beam-SubscriptionManagement-blockTileDescription-padding\": \"0px\",\n \"--beam-SubscriptionManagement-blockTileDescription-lineHeight\": \"130%\",\n \"--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop\": \"60%\",\n \"--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile\": \"100%\",\n \"--beam-SubscriptionManagement-subWidgetContainer-padding\": \"0px 0px 10px\",\n \"--beam-SubscriptionManagement-previousImpactContainer-padding-desktop\": \"10px 24px 10px 0px\",\n \"--beam-SubscriptionManagement-previousImpactContainer-padding-mobile\": \"0px\",\n \"--beam-SubscriptionManagement-dropDown-padding\": \"15px 8px\",\n \"--beam-SubscriptionManagement-dropDown-borderRadius\": \"8px\",\n \"--beam-SubscriptionManagement-dropDown-backgroundColor\": \"#f8fbfb\",\n \"--beam-SubscriptionManagement-dropDown-boxShadow\": \"0px 4px 28px 0px rgba(0, 0, 0, 0.04)\",\n \"--beam-SubscriptionManagement-dropDown-width\": \"128px\",\n \"--beam-SubscriptionManagement-dropDown-hover-backgroundColor\": \"#E1F1EE\",\n \"--beam-SubscriptionManagement-dropDownOptions-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-dropDownOptions\", {\n fontSize: \"12px\",\n fontWeight: \"400\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom\": \"15px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-yourPreviousImpactTitle\", {\n fontSize: \"18px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton\", {\n fontSize: \"12px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-title-letterSpacing\": \"0.36px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-title\", {\n fontSize: \"12px\",\n fontWeight: \"bold\",\n lineHeight: \"120%\",\n textTransform: \"uppercase\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-description\", {\n fontSize: \"14px\",\n lineHeight: \"120%\",\n fontStyle: \"normal\",\n color: \"#454a47\",\n }),\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-via\", {\n fontSize: \"14px\",\n lineHeight: \"120%\",\n fontStyle: \"normal\",\n color: \"#454a47\",\n }),\n \"--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-nonprofitLink\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration\": \"underline\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-supportAgainButton\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n textTransform: \"capitalize\",\n fontStyle: \"normal\",\n color: \"#0a323c\",\n }),\n \"--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft\": \"8px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-progressBarLabel\", {\n fontSize: \"10px\",\n fontWeight: \"bold\",\n fontStyle: \"normal\",\n color: \"#878a92\",\n }),\n \"--beam-SubscriptionManagement-tile-fundedAmount-lineHeight\": \"16px\",\n ...defineCustomText(\"--beam-SubscriptionManagement-tile-fundedAmount\", {\n fontSize: \"14px\",\n fontWeight: \"400\",\n lineHeight: \"120%\",\n fontStyle: \"italic\",\n color: \"#0a323c\",\n }),\n };\n\n const remoteConfig = this.eligibleNonprofitsDataController?.data?.config?.web?.theme || {};\n\n const config = { ...defaults, ...remoteConfig };\n\n const serializable = Object.create({\n toCSS() {\n return _cssVariableMap(this as Record<string, string>);\n },\n });\n return Object.assign(serializable, config);\n }\n\n static styles = [\n cssReset,\n css`\n :host {\n display: block;\n font-family: var(--beam-fontFamily);\n font-style: var(--beam-fontStyle);\n font-size: var(--beam-fontSize);\n background-color: var(--beam-backgroundColor);\n color: var(--beam-textColor);\n word-break: normal;\n }\n .drop-down-options {\n text-decoration: var(--beam-SubscriptionManagement-dropDownOptions-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-dropDownOptions\")};\n }\n .widget-container {\n background-color: var(--beam-SubscriptionManagement-widgetContainer-backgroundColor);\n border: 1px solid var(--beam-SubscriptionManagement-widgetContainer-borderColor);\n border-radius: var(--beam-SubscriptionManagement-widgetContainer-borderRadius);\n padding: var(--beam-SubscriptionManagement-widgetContainer-padding);\n max-width: var(--beam-SubscriptionManagement-widgetContainer-maxWidth);\n }\n .header {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n padding: var(--beam-SubscriptionManagement-header-padding);\n border-radius: var(--beam-SubscriptionManagement-header-borderRadius);\n background-color: var(--beam-SubscriptionManagement-header-backgroundColor);\n }\n .header-content {\n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n .button {\n cursor: pointer;\n background: none;\n border: none;\n }\n .header .meatballsMenu {\n position: relative;\n cursor: pointer;\n }\n .header .meatballsMenu span {\n font-size: var(--beam-SubscriptionManagement-header-meatballsMenu-fontSize);\n color: var(--beam-SubscriptionManagement-header-meatballsMenu-color);\n }\n .dropdown-container {\n display: none;\n position: absolute;\n right: 0;\n z-index: 1;\n padding: var(--beam-SubscriptionManagement-dropDown-padding);\n border-radius: var(--beam-SubscriptionManagement-dropDown-borderRadius);\n background: var(--beam-SubscriptionManagement-dropDown-backgroundColor);\n box-shadow: var(--beam-SubscriptionManagement-dropDown-boxShadow);\n width: var(--beam-SubscriptionManagement-dropDown-width);\n }\n .dropdown-container.visible {\n display: block;\n }\n .dropdown-container:hover {\n background-color: var(--beam-SubscriptionManagement-dropDown-hover-backgroundColor);\n }\n .line-break {\n border-top: var(--beam-SubscriptionManagement-lineBreak-width) solid\n var(--beam-SubscriptionManagement-lineBreak-color);\n margin: var(--beam-SubscriptionManagement-lineBreak-margin);\n }\n .tile {\n border: var(--beam-SubscriptionManagement-tile-border-width) solid\n var(--beam-SubscriptionManagement-tile-border-color);\n padding: var(--beam-SubscriptionManagement-tile-padding);\n border-radius: var(--beam-SubscriptionManagement-tile-borderRadius);\n background: var(--beam-SubscriptionManagement-tile-background);\n }\n .tile-title {\n letter-spacing: var(--beam-SubscriptionManagement-tile-title-letterSpacing);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-title\")};\n }\n .tile-content {\n display: flex;\n flex-direction: row;\n gap: var(--beam-SubscriptionManagement-tileContent-gap);\n padding: var(--beam-SubscriptionManagement-tileContent-padding);\n }\n .tile-description-block-container {\n flex: 1 1 67%;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: var(--beam-SubscriptionManagement-blockTileDescription-gap);\n padding: var(--beam-SubscriptionManagement-blockTileDescription-padding);\n line-height: var(--beam-SubscriptionManagement-blockTileDescription-lineHeight);\n }\n .sub-widget-container {\n padding: var(--beam-SubscriptionManagement-subWidgetContainer-padding);\n }\n .previous-impact-title {\n margin-bottom: var(--beam-SubscriptionManagement-yourPreviousImpactTitle-marginBottom);\n ${useCustomText(\"--beam-SubscriptionManagement-yourPreviousImpactTitle\")};\n }\n .tile-description {\n ${useCustomText(\"--beam-SubscriptionManagement-tile-description\")};\n }\n .via {\n ${useCustomText(\"--beam-SubscriptionManagement-tile-via\")};\n }\n .center-align-logo {\n margin-left: auto;\n margin-right: auto;\n }\n .left-align-logo {\n margin-left: 0;\n margin-right: auto;\n }\n .previous-impact-link-container {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .previous-impact-link {\n text-decoration-line: var(--beam-SubscriptionManagement-yourPreviousImpact-showAllButton-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-yourPreviousImpact-showAllButton\")};\n }\n .icon-background {\n width: var(--beam-SubscriptionManagement-tile-icon-background-width);\n height: var(--beam-SubscriptionManagement-tile-icon-background-height);\n border-radius: var(--beam-SubscriptionManagement-tile-icon-background-borderRadius);\n padding: var(--beam-SubscriptionManagement-tile-icon-background-padding);\n overflow: hidden;\n background: var(--beam-SubscriptionManagement-tile-icon-background-backgroundColor);\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .icon {\n display: block;\n margin: auto;\n border-radius: var(--beam-SubscriptionManagement-tile-icon-borderRadius);\n height: var(--beam-SubscriptionManagement-tile-icon-height);\n }\n .tile-progress-bar-container-desktop {\n display: flex;\n align-items: center;\n width: var(--beam-SubscriptionManagement-blockTileDescription-progressBar-width-desktop);\n }\n .tile-progress-bar-container-mobile {\n display: flex;\n align-items: center;\n width: var(--beam-SubscriptionManagement-blockTileDescription-progressBar-width-mobile);\n }\n .previous-impact-nonprofit-link {\n text-decoration-line: var(--beam-SubscriptionManagement-tile-nonprofitLink-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-nonprofitLink\")};\n }\n .details-funding-progress-label {\n white-space: nowrap;\n flex: 0 1;\n margin-left: var(--beam-SubscriptionManagement-tile-progressBarLabel-marginLeft);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-progressBarLabel\")};\n }\n .funded-times {\n line-height: var(--beam-SubscriptionManagement-tile-fundedAmount-lineHeight);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-fundedAmount\")};\n }\n .tile-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .tile-support-again {\n text-decoration-line: var(--beam-SubscriptionManagement-tile-supportAgainButton-textDecoration);\n ${useCustomText(\"--beam-SubscriptionManagement-tile-supportAgainButton\")};\n }\n `,\n cssCardGrid({\n gap: \"var(--beam-SubscriptionManagement-tile-marginBottom)\",\n itemMinWidth: \"250px\",\n columnCount: \"1\",\n }),\n ];\n\n private renderPreviousImpactTiles({\n personalImpact,\n cardStyle,\n eligibleNonprofitConfig,\n }: {\n personalImpact?: TIAPIV3PersonalImpact;\n cardStyle: string;\n eligibleNonprofitConfig?: TIAPIV3EligibleNonprofitConfig;\n }) {\n if (!personalImpact) {\n return html``;\n }\n if (!eligibleNonprofitConfig) {\n return html``;\n }\n\n const tilesToShow = this.showAllTiles ? personalImpact : personalImpact.slice(0, INITIAL_TILE_COUNT);\n let emojiIndex = 0;\n return html`\n ${tilesToShow.map((previousImpact) => {\n const {\n impact: { goalCompletionText, description, goalProgressPercentage, goalProgressText },\n nonprofit: { cause, causeIconSelectedUrl, causeIconUrl, website, name, id },\n } = previousImpact;\n\n const isEligibleToSupportAgain = this.nonprofitId !== id && this.isNonprofitEligible(id);\n const showProgressBar = isEligibleToSupportAgain && this.shouldDisplayProgressBar(goalProgressPercentage);\n const emoji = goalCompletionText ? `${this.emojis[emojiIndex]} ` : \"\";\n emojiIndex = (emojiIndex + 1) % this.emojis.length;\n\n return html`\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-title\">${localizeUserString(this.configLang, cause || \"\")}</div>\n ${isEligibleToSupportAgain\n ? html` <button\n class=\"tile-support-again button\"\n @click=\"${() => this.handleSupportAgainButtonClick(id, name)}\"\n >\n ${localizeUserString(\n this.configLang,\n eligibleNonprofitConfig?.web?.additionalStrings?.[\"supportAgainButton\"] || \"\"\n ) || strings[this.configLang].supportAgainButton()}\n </button>`\n : html``}\n </div>\n <div class=\"tile-content\">\n <div class=\"icon-background\">\n <img\n src=\"${cardStyle === \"'selected_icon'\" ? causeIconSelectedUrl : causeIconUrl}\"\n alt=\"${cause}\"\n class=\"icon\"\n />\n </div>\n <div class=\"tile-description-block-container\">\n <div class=\"tile-description-container\">\n <span class=\"tile-description\">${localizeUserString(this.configLang, description || \"\")}</span>\n <span class=\"via\"\n >${localizeUserString(\n this.configLang,\n eligibleNonprofitConfig?.web?.additionalStrings?.[\"via\"] || \"\"\n ) || strings[this.configLang].via()}</span\n >\n <a href=\"${website}\" target=\"_blank\" class=\"previous-impact-nonprofit-link\">\n ${localizeUserString(this.configLang, name || \"\")}\n </a>\n </div>\n ${showProgressBar\n ? html` <div\n class=\"${this.isMobile\n ? \"tile-progress-bar-container-mobile\"\n : \"tile-progress-bar-container-desktop\"}\"\n >\n <beam-progress-bar value=\"${goalProgressPercentage}\" style=\"flex: 1 0;\"></beam-progress-bar>\n <span class=\"details-funding-progress-label\">${goalProgressText}</span>\n </div>`\n : html``}\n <div class=\"funded-times\">\n ${emoji}${unsafeHTML(localizeUserString(this.configLang, goalCompletionText))}\n </div>\n </div>\n </div>\n </div>\n `;\n })}\n `;\n }\n\n render() {\n const { data, loading, error } = this.eligibleNonprofitsDataController;\n if (loading) {\n return _loading();\n }\n const excludeDonationsForRecurringTransactions = data?.settings?.excludeDonationsForRecurringTransactions;\n if (excludeDonationsForRecurringTransactions) {\n return html``;\n }\n if (error || data == null) {\n return this.debug ? _errorMessage({ error: error || new Error(\"No data\") }) : \"\";\n }\n let content;\n const cardStyle = this.cssVariables[\"--beam-SubscriptionManagement-previousImpact-cardStyle\"];\n const logoAlignDesktop = this.cssVariables[\"--beam-SubscriptionManagement-logo-align-desktop\"];\n const logoAlignMobile = this.cssVariables[\"--beam-SubscriptionManagement-logo-align-mobile\"];\n const previousImpactCount = this.getDisplayablePreviousImpacts().length ?? 0;\n if (\n this.subscriptionDataController.loading ||\n this.eligibleNonprofitsDataController.loading ||\n this.personalImpactDataController.loading\n ) {\n _loading();\n }\n\n if (\n (this.subscriptionDataController.error ||\n this.eligibleNonprofitsDataController.error ||\n this.personalImpactDataController.error) &&\n this.debug\n ) {\n if (this.subscriptionDataController.error !== null) {\n return _errorMessage({ error: this.subscriptionDataController.error });\n } else if (this.eligibleNonprofitsDataController.error !== null) {\n return _errorMessage({ error: this.eligibleNonprofitsDataController.error });\n } else if (this.personalImpactDataController.error !== null) {\n return _errorMessage({ error: this.personalImpactDataController.error });\n }\n } else {\n content = \"\";\n }\n\n if (this.activeWidget === \"select-subscription-nonprofit\") {\n content = html` <beam-select-subscription-nonprofit\n part=\"subscription-nonprofit\"\n storeId=\"${this.storeId}\"\n subscriptionId=\"${this.subscriptionId}\"\n nonprofitId=${this.nonprofitId}\n selectedNonprofitId=${this.selectedNonprofitId}\n baseUrl=\"${this.baseUrl}\"\n apiKey=\"${this.apiKey}\"\n postalCode=\"${this.postalCode}\"\n countryCode=\"${this.countryCode}\"\n lang=\"${this.lang}\"\n ?draftConfig=\"${this.draftConfig}\"\n ?debug=\"${this.debug}\"\n @beamnonprofitselect=\"${(event: Event) => this.handleNonprofitSelect(event)}\"\n ></beam-select-subscription-nonprofit>`;\n } else if (this.activeWidget === \"subscription-impact\") {\n content = html`\n <beam-subscription-impact\n part=\"subscription-impact\"\n baseUrl=\"${this.baseUrl}\"\n apiKey=\"${this.apiKey}\"\n storeId=\"${this.storeId}\"\n beamUserId=\"${this.beamUserId}\"\n nonprofitId=\"${this.nonprofitId}\"\n lang=\"${this.lang}\"\n ?draftConfig=\"${this.draftConfig}\"\n ?debug=\"${this.debug}\"\n ></beam-subscription-impact>\n `;\n }\n return html`\n <style>\n :host {\n ${this.cssVariables.toCSS()}\n }\n </style>\n <div class=\"widget-container\">\n <div class=\"header\">\n <div class=\"header-content\">\n <div\n class=\"logo ${this.isMobile\n ? logoAlignMobile === \"center\"\n ? \"center-align-logo\"\n : \"left-align-logo\"\n : logoAlignDesktop === \"center\"\n ? \"center-align-logo\"\n : \"left-align-logo\"}\"\n >\n <beam-partner-logos\n partnerName=\"${this.eligibleNonprofitsDataController.data?.chain.name}\"\n partnerLogoUrl=\"${this.eligibleNonprofitsDataController.data?.chain.logoUrl}\"\n ></beam-partner-logos>\n </div>\n ${this.nonprofitId\n ? html` <div class=\"meatballsMenu\" @click=\"${() => (this.dropdownVisible = !this.dropdownVisible)}\">\n <span>&#8230;</span>\n <div class=\"dropdown-container ${this.dropdownVisible ? \"visible\" : \"\"}\">\n ${this.activeWidget === \"select-subscription-nonprofit\"\n ? html`<button\n @click=\"${this.handleBackToSubscriptionImpactButtonClick}\"\n class=\"drop-down-options button\"\n >\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"previousNonprofitButtonText\"] || \"\"\n ) || strings[this.configLang].previousNonprofitButton()}\n </button>`\n : this.activeWidget === \"subscription-impact\"\n ? html`<button @click=\"${this.handleSwapNonprofitButtonClick}\" class=\"drop-down-options button\">\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"changeNonprofitButtonText\"] || \"\"\n ) || strings[this.configLang].changeNonprofitButton()}\n </button>`\n : \"\"}\n </div>\n </div>`\n : html``}\n </div>\n </div>\n <div class=\"sub-widget-container\" part=\"previous-impact\">${content}</div>\n ${previousImpactCount > MIN_PREVIOUS_IMPACT\n ? html` <div class=\"line-break\"></div>\n\n <div\n class=\"previous-impact-container ${this.isMobile\n ? \"--beam-SubscriptionManagement-previousImpactContainer-padding-mobile\"\n : \"--beam-SubscriptionManagement-previousImpactContainer-padding-desktop\"}\"\n >\n <h2 class=\"previous-impact-title\">\n ${localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"previousImpactHeader\"] || \"\"\n ) || strings[this.configLang].previousImpactHeader()}\n </h2>\n <div class=\"cardGrid\">\n ${this.renderPreviousImpactTiles({\n personalImpact: this.getDisplayablePreviousImpacts(),\n cardStyle,\n eligibleNonprofitConfig: this.eligibleNonprofitsDataController.data?.config,\n })}\n </div>\n ${previousImpactCount > INITIAL_TILE_COUNT\n ? html`\n <div class=\"previous-impact-link-container\">\n <button\n @click=\"${() => (this.showAllTiles = !this.showAllTiles)}\"\n class=\"previous-impact-link button\"\n >\n ${this.showAllTiles\n ? localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"showLessButton\"] || \"\"\n ) || strings[this.configLang].showLessButton()\n : localizeUserString(\n this.configLang,\n data?.config?.web?.additionalStrings?.[\"showAllButton\"] || \"\"\n ) || strings[this.configLang].showAllButton()}\n </button>\n </div>\n `\n : html``}\n </div>`\n : html``}\n </div>\n `;\n }\n}\n\ndefineCustomElement(BeamSubscriptionManagement);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"beam-subscription-management\": BeamSubscriptionManagement;\n }\n}\n"],"names":["strings","INITIAL_TILE_COUNT","MIN_PREVIOUS_IMPACT","MIN_PROGRESS_THRESHOLD","MAX_PROGRESS_THRESHOLD","BeamSubscriptionManagement","LitElement","DEFAULT_BASE_URL","AsyncController","SUPPORTED_LANGUAGES","MissingConfig","enforceConfig","eligibleNonprofitResult","postChainEligibleNonprofitsForCart","makeApiKeyHeader","WIDGET_NAMES","subscriptionResult","postFindOrCreateSubscription","impactResult","getImpact","personalImpacts","impact","nonprofitId","nonprofitName","event","BeamNonprofitSelectEvent","selectedNonprofitId","np","progressValue","defaults","partnerLogosConfigDefaults","progressBarConfigDefaults","defineCustomText","remoteConfig","config","_cssVariableMap","personalImpact","cardStyle","eligibleNonprofitConfig","html","tilesToShow","emojiIndex","previousImpact","goalCompletionText","description","goalProgressPercentage","goalProgressText","cause","causeIconSelectedUrl","causeIconUrl","website","name","id","isEligibleToSupportAgain","showProgressBar","emoji","localizeUserString","unsafeHTML","data","loading","error","_loading","_errorMessage","content","logoAlignDesktop","logoAlignMobile","previousImpactCount","cssReset","css","useCustomText","cssCardGrid","__decorateClass","property","state","defineCustomElement"],"mappings":"owCAAO,MAAMA,EAAU,CACrB,GAAI,CACF,sBAAuB,IAAM,mBAC7B,qBAAsB,IAAM,uBAC5B,wBAAyB,IAAM,6BAC/B,mBAAoB,IAAM,gBAC1B,IAAK,IAAM,MACX,cAAe,IAAM,WACrB,eAAgB,IAAM,WACxB,EACA,GAAI,CACF,sBAAuB,IAAM,mBAC7B,qBAAsB,IAAM,uBAC5B,wBAAyB,IAAM,6BAC/B,mBAAoB,IAAM,gBAC1B,IAAK,IAAM,MACX,cAAe,IAAM,WACrB,eAAgB,IAAM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,GAnDU,EAAApE,EAmDM,sBACAkE,EAAA,CAAhBE,GApDU,EAAApE,EAoDM,6BACAkE,EAAA,CAAhBE,EArDU,CAAA,EAAApE,EAqDM,UAguBnBqE,QAAAA,EAAAA,EAAoBrE,CAA0B"}
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as ao}from"./chunks/index-C0iBcnhO.esm.js";import{i as fo}from"./chunks/index-CFuuHEma.esm.js";import{i as Co}from"./chunks/index-C3hpHWh1.esm.js";import{i as co}from"./chunks/index-Ct1m4IjM.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-WqMxC_PA.esm.js";import"./chunks/progress-bar-DF7UuuHb.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/enforce-config-CZ3ToOgr.esm.js";import"./chunks/beam-errors-Ci0d3926.esm.js";import"./utils/logger.esm.js";import"./chunks/localize-Btu9xYcE.esm.js";import"./chunks/routes-C75nl1NS.esm.js";import"./chunks/promo-types-DKAOFHJr.esm.js";import"./chunks/loading-template-DG4lkIIc.esm.js";import"./chunks/css-card-grid-CvoGpsJH.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-D3TLHRR_.esm.js";import"./chunks/is-all-html-elements-fcB7UUA1.esm.js";import"./components/impact-overview.esm.js";import"./chunks/_share-dialog-dependencies-CrXoTXJn.esm.js";import"./chunks/vendor-KKSARHWL.esm.js";import"./chunks/share-button-BSHKEfJo.esm.js";import"./chunks/share-button-BxWziSBl.esm.js";import"./chunks/responsive-BR8qUfBa.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/promo-pill-label-CbW_Vcru.esm.js";import"./chunks/events-Dki0ka4F.esm.js";import"./utils/local-storage.esm.js";import"./utils/promoManager.esm.js";import"./utils/cookies.esm.js";import"./chunks/cart-contents-DkoytiZh.esm.js";import"./utils/cart.esm.js";import"./chunks/index-CJLX6Cat.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";import"./chunks/index-CGKJagBi.esm.js";import"./utils/network-listeners.esm.js";import"./utils/wait-for-element.esm.js";import"./utils/remote-session.esm.js";import"./utils/memoize-last.esm.js";import"./chunks/index-DTnVjvy8.esm.js";import"./chunks/order-page-BL4PDyMz.esm.js";import"./chunks/update-cart-DPxyDjY9.esm.js";import"./chunks/index-IKiJwo5v.esm.js";import"./chunks/index-O-hdOxQR.esm.js";import"./chunks/index-BRwtueB0.esm.js";import"./react/community-impact.esm.js";import"react";import"./react/cumulative-impact.esm.js";import"./react/impact-overview.esm.js";import"./react/select-nonprofit.esm.js";import"./react/redeem-transaction.esm.js";import"./react/post-purchase.esm.js";import"./react/subscription-management.esm.js";import"./react/select-subscription-nonprofit.esm.js";import"./react/subscription-impact.esm.js";import"./react/product-details-page.esm.js";import"./react/social-share.esm.js";export{fo as Integrations,Co as ReactComponents,co as Utils,ao as WebComponents};
1
+ import{i as ao}from"./chunks/index-CIQxph2z.esm.js";import{i as fo}from"./chunks/index-CM59QOJP.esm.js";import{i as Co}from"./chunks/index-C3hpHWh1.esm.js";import{i as co}from"./chunks/index-Ct1m4IjM.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-WqMxC_PA.esm.js";import"./chunks/progress-bar-DF7UuuHb.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/enforce-config-CZ3ToOgr.esm.js";import"./chunks/beam-errors-Ci0d3926.esm.js";import"./utils/logger.esm.js";import"./chunks/localize-Btu9xYcE.esm.js";import"./chunks/routes-D0_9umO_.esm.js";import"./chunks/promo-types-DKAOFHJr.esm.js";import"./chunks/loading-template-DG4lkIIc.esm.js";import"./chunks/css-card-grid-CvoGpsJH.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-D3TLHRR_.esm.js";import"./chunks/is-all-html-elements-fcB7UUA1.esm.js";import"./components/impact-overview.esm.js";import"./chunks/_share-dialog-dependencies-o8GVV6gC.esm.js";import"./chunks/vendor-KKSARHWL.esm.js";import"./chunks/share-button-CV5FZFS9.esm.js";import"./chunks/share-button-DcaL0AYo.esm.js";import"./chunks/responsive-BR8qUfBa.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/promo-pill-label-YOC47M3t.esm.js";import"./chunks/events-Dki0ka4F.esm.js";import"./utils/local-storage.esm.js";import"./utils/promoManager.esm.js";import"./utils/cookies.esm.js";import"./chunks/cart-contents-DkoytiZh.esm.js";import"./utils/cart.esm.js";import"./chunks/index-IAa5EO-6.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";import"./chunks/index-CGKJagBi.esm.js";import"./utils/network-listeners.esm.js";import"./utils/wait-for-element.esm.js";import"./utils/remote-session.esm.js";import"./utils/memoize-last.esm.js";import"./chunks/index-DiNDMv3P.esm.js";import"./chunks/order-page-C41TBLoV.esm.js";import"./chunks/update-cart-Dsu0mPtW.esm.js";import"./chunks/index-IKiJwo5v.esm.js";import"./chunks/index-CYxuuwlv.esm.js";import"./chunks/index-D1Pso4Mx.esm.js";import"./react/community-impact.esm.js";import"react";import"./react/cumulative-impact.esm.js";import"./react/impact-overview.esm.js";import"./react/select-nonprofit.esm.js";import"./react/redeem-transaction.esm.js";import"./react/post-purchase.esm.js";import"./react/subscription-management.esm.js";import"./react/select-subscription-nonprofit.esm.js";import"./react/subscription-impact.esm.js";import"./react/product-details-page.esm.js";import"./react/social-share.esm.js";export{fo as Integrations,Co as ReactComponents,co as Utils,ao as WebComponents};
2
2
  //# sourceMappingURL=index.esm.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as ao}from"./chunks/index-CXu50lhe.esm.js";import{i as fo}from"./chunks/index-CB2FlO76.esm.js";import{i as Co}from"./chunks/index-D6qJfs7_.esm.js";import{i as co}from"./chunks/index-tbwbkOdj.esm.js";import"./components/community-impact.js";import"./chunks/lit-WqMxC_PA.esm.js";import"./chunks/progress-bar-DF7UuuHb.esm.js";import"./components/beam-partner-logos.js";import"./chunks/enforce-config-Ba1JkOHs.esm.js";import"./chunks/beam-errors-Ci0d3926.esm.js";import"./utils/logger.js";import"./chunks/localize-C25pEGnx.esm.js";import"./chunks/routes-BAqFeD8S.esm.js";import"./chunks/promo-types-DKAOFHJr.esm.js";import"./chunks/loading-template-DG4lkIIc.esm.js";import"./chunks/css-card-grid-CvoGpsJH.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-D3TLHRR_.esm.js";import"./chunks/is-all-html-elements-fcB7UUA1.esm.js";import"./components/impact-overview.js";import"./chunks/_share-dialog-dependencies-oPfou2yz.esm.js";import"./chunks/vendor-KKSARHWL.esm.js";import"./chunks/share-button-BNp67BPn.esm.js";import"./chunks/share-button-DCMaVhyw.esm.js";import"./chunks/responsive-BR8qUfBa.esm.js";import"./components/select-nonprofit.js";import"./chunks/promo-pill-label-CbW_Vcru.esm.js";import"./chunks/events-Dki0ka4F.esm.js";import"./utils/local-storage.js";import"./utils/promoManager.js";import"./utils/cookies.js";import"./chunks/cart-contents-DkoytiZh.esm.js";import"./utils/cart.js";import"./chunks/index-Cb7UHLgc.esm.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";import"./chunks/index-DBb5HSkR.esm.js";import"./utils/network-listeners.js";import"./utils/wait-for-element.js";import"./utils/remote-session.js";import"./utils/memoize-last.js";import"./chunks/index-BfJw1nDH.esm.js";import"./chunks/order-page-qV21CdRx.esm.js";import"./chunks/update-cart-FKTMMTl5.esm.js";import"./chunks/index-BNjsFEGn.esm.js";import"./chunks/index-DQU56kcv.esm.js";import"./chunks/index-ddFvDm5F.esm.js";import"./react/community-impact.js";import"react";import"./react/cumulative-impact.js";import"./react/impact-overview.js";import"./react/select-nonprofit.js";import"./react/redeem-transaction.js";import"./react/post-purchase.js";import"./react/subscription-management.js";import"./react/select-subscription-nonprofit.js";import"./react/subscription-impact.js";import"./react/product-details-page.js";import"./react/social-share.js";export{fo as Integrations,Co as ReactComponents,co as Utils,ao as WebComponents};
1
+ import{i as ao}from"./chunks/index-CVNcspb0.esm.js";import{i as fo}from"./chunks/index-DsvbqqAd.esm.js";import{i as Co}from"./chunks/index-D6qJfs7_.esm.js";import{i as co}from"./chunks/index-tbwbkOdj.esm.js";import"./components/community-impact.js";import"./chunks/lit-WqMxC_PA.esm.js";import"./chunks/progress-bar-DF7UuuHb.esm.js";import"./components/beam-partner-logos.js";import"./chunks/enforce-config-Ba1JkOHs.esm.js";import"./chunks/beam-errors-Ci0d3926.esm.js";import"./utils/logger.js";import"./chunks/localize-C25pEGnx.esm.js";import"./chunks/routes-BGx3ADhY.esm.js";import"./chunks/promo-types-DKAOFHJr.esm.js";import"./chunks/loading-template-DG4lkIIc.esm.js";import"./chunks/css-card-grid-CvoGpsJH.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-D3TLHRR_.esm.js";import"./chunks/is-all-html-elements-fcB7UUA1.esm.js";import"./components/impact-overview.js";import"./chunks/_share-dialog-dependencies-BVseSHLF.esm.js";import"./chunks/vendor-KKSARHWL.esm.js";import"./chunks/share-button-D-c9M84d.esm.js";import"./chunks/share-button-BmoEHT-C.esm.js";import"./chunks/responsive-BR8qUfBa.esm.js";import"./components/select-nonprofit.js";import"./chunks/promo-pill-label-BESRGLn7.esm.js";import"./chunks/events-Dki0ka4F.esm.js";import"./utils/local-storage.js";import"./utils/promoManager.js";import"./utils/cookies.js";import"./chunks/cart-contents-DkoytiZh.esm.js";import"./utils/cart.js";import"./chunks/index-BWtaQiQa.esm.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";import"./chunks/index-DBb5HSkR.esm.js";import"./utils/network-listeners.js";import"./utils/wait-for-element.js";import"./utils/remote-session.js";import"./utils/memoize-last.js";import"./chunks/index-MoK57RXU.esm.js";import"./chunks/order-page-Brrq-LAx.esm.js";import"./chunks/update-cart-CFB8JVgq.esm.js";import"./chunks/index-BNjsFEGn.esm.js";import"./chunks/index-Dji1l8sT.esm.js";import"./chunks/index-BNHAn1OG.esm.js";import"./react/community-impact.js";import"react";import"./react/cumulative-impact.js";import"./react/impact-overview.js";import"./react/select-nonprofit.js";import"./react/redeem-transaction.js";import"./react/post-purchase.js";import"./react/subscription-management.js";import"./react/select-subscription-nonprofit.js";import"./react/subscription-impact.js";import"./react/product-details-page.js";import"./react/social-share.js";export{fo as Integrations,Co as ReactComponents,co as Utils,ao as WebComponents};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{D as u,a as g}from"../chunks/routes-C75nl1NS.esm.js";import{S as y}from"../chunks/beam-errors-Ci0d3926.esm.js";import{B as h}from"../chunks/events-Dki0ka4F.esm.js";import{logger as w}from"../utils/logger.esm.js";import{s as f}from"../chunks/index-BRwtueB0.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
1
+ import{D as u,a as g}from"../chunks/routes-D0_9umO_.esm.js";import{S as y}from"../chunks/beam-errors-Ci0d3926.esm.js";import{B as h}from"../chunks/events-Dki0ka4F.esm.js";import{logger as w}from"../utils/logger.esm.js";import{s as f}from"../chunks/index-D1Pso4Mx.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
2
2
  //# sourceMappingURL=beam.esm.js.map
@@ -1,2 +1,2 @@
1
- import{D as u,a as g}from"../chunks/routes-BAqFeD8S.esm.js";import{S as y}from"../chunks/beam-errors-Ci0d3926.esm.js";import{B as h}from"../chunks/events-Dki0ka4F.esm.js";import{logger as w}from"../utils/logger.js";import{s as f}from"../chunks/index-ddFvDm5F.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
1
+ import{D as u,a as g}from"../chunks/routes-BGx3ADhY.esm.js";import{S as y}from"../chunks/beam-errors-Ci0d3926.esm.js";import{B as h}from"../chunks/events-Dki0ka4F.esm.js";import{logger as w}from"../utils/logger.js";import{s as f}from"../chunks/index-BNHAn1OG.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";var v=(t,s,a)=>{if(!s.has(t))throw TypeError("Cannot "+a)},c=(t,s,a)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,a)},i=(t,s,a)=>(v(t,s,"access private method"),a),r,n,o,m;let p,l;const E=new Promise((t,s)=>{p=t,l=s});class U extends EventTarget{constructor(s){super(),c(this,r),c(this,o),this.readyPromise=E,this.plugins={},this.status="pending",i(this,r,n).call(this,s)}async init(s){i(this,r,n).call(this,s);try{await i(this,o,m).call(this,s)}catch(a){const e=new y;throw e.cause=a,this.status="error",this.dispatchEvent(new h({status:"error",error:e})),l(e),w.error(e),this.apiKey&&await f({apiKey:this.apiKey,baseUrl:this.logUrl},{type:"error",code:e.name,metadata:{message:e.message,cause:a?.message}}),a}return this.status="ready",this.dispatchEvent(new h({status:"ready"})),p(!0),this}}r=new WeakSet,n=function(t){this.apiKey=t.apiKey,this.chainId=t.chainId,this.storeId=t.storeId,this.domain=t.domain,this.baseUrl=t.baseUrl||u,this.logUrl=t.logUrl||g},o=new WeakSet,m=async function(t){const s=(t.plugins||[]).map(async a=>(await a.init(t),this.plugins[a.name]=a,a));return Promise.all(s)};const d=new U({}),S=t=>d.init(t),L=()=>d;export{L as getConfig,S as init};
2
2
  //# sourceMappingURL=beam.js.map
@@ -1,2 +1,2 @@
1
- import{O as b}from"../chunks/update-cart-DPxyDjY9.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../utils/promoManager.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.esm.js";export{b as updateCart};
1
+ import{O as b}from"../chunks/update-cart-Dsu0mPtW.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/local-storage.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../utils/promoManager.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.esm.js";export{b as updateCart};
2
2
  //# sourceMappingURL=cart.esm.js.map
@@ -1,2 +1,2 @@
1
- import{O as b}from"../chunks/update-cart-FKTMMTl5.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../utils/promoManager.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.js";export{b as updateCart};
1
+ import{O as b}from"../chunks/update-cart-CFB8JVgq.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/local-storage.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../utils/promoManager.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.js";export{b as updateCart};
2
2
  //# sourceMappingURL=cart.js.map
@@ -1,2 +1,2 @@
1
- import{i as H}from"../chunks/index-CGKJagBi.esm.js";import{i as J}from"../chunks/index-DTnVjvy8.esm.js";import{i as M}from"../chunks/index-IKiJwo5v.esm.js";import{i as O}from"../chunks/index-O-hdOxQR.esm.js";import{i as Q}from"../chunks/index-BRwtueB0.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/wait-for-element.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../utils/promoManager.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/order-page-BL4PDyMz.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-DPxyDjY9.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../utils/cart.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/index-CJLX6Cat.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.esm.js";import"../chunks/_share-dialog-dependencies-CrXoTXJn.esm.js";import"../chunks/share-button-BSHKEfJo.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BxWziSBl.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";export{O as Cart,Q as Logs,M as Session,J as Shopify,H as Utils};
1
+ import{i as H}from"../chunks/index-CGKJagBi.esm.js";import{i as J}from"../chunks/index-DiNDMv3P.esm.js";import{i as M}from"../chunks/index-IKiJwo5v.esm.js";import{i as O}from"../chunks/index-CYxuuwlv.esm.js";import{i as Q}from"../chunks/index-D1Pso4Mx.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../utils/wait-for-element.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../utils/promoManager.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/order-page-C41TBLoV.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-Dsu0mPtW.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../utils/cart.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/index-IAa5EO-6.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-YOC47M3t.esm.js";import"../chunks/_share-dialog-dependencies-o8GVV6gC.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.esm.js";import"../chunks/share-button-CV5FZFS9.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DcaL0AYo.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";export{O as Cart,Q as Logs,M as Session,J as Shopify,H as Utils};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{i as H}from"../chunks/index-DBb5HSkR.esm.js";import{i as J}from"../chunks/index-BfJw1nDH.esm.js";import{i as M}from"../chunks/index-BNjsFEGn.esm.js";import{i as O}from"../chunks/index-DQU56kcv.esm.js";import{i as Q}from"../chunks/index-ddFvDm5F.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/wait-for-element.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../utils/promoManager.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/order-page-qV21CdRx.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-FKTMMTl5.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../utils/cart.js";import"../components/post-purchase.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/index-Cb7UHLgc.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.js";import"../chunks/_share-dialog-dependencies-oPfou2yz.esm.js";import"../chunks/share-button-BNp67BPn.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DCMaVhyw.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";export{O as Cart,Q as Logs,M as Session,J as Shopify,H as Utils};
1
+ import{i as H}from"../chunks/index-DBb5HSkR.esm.js";import{i as J}from"../chunks/index-MoK57RXU.esm.js";import{i as M}from"../chunks/index-BNjsFEGn.esm.js";import{i as O}from"../chunks/index-Dji1l8sT.esm.js";import{i as Q}from"../chunks/index-BNHAn1OG.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../utils/wait-for-element.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/memoize-last.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../utils/promoManager.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/order-page-Brrq-LAx.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-CFB8JVgq.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../utils/cart.js";import"../components/post-purchase.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/index-BWtaQiQa.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-BESRGLn7.esm.js";import"../chunks/_share-dialog-dependencies-BVseSHLF.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.js";import"../chunks/share-button-D-c9M84d.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BmoEHT-C.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";export{O as Cart,Q as Logs,M as Session,J as Shopify,H as Utils};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import"../chunks/routes-C75nl1NS.esm.js";import"../utils/logger.esm.js";import{s}from"../chunks/index-BRwtueB0.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";export{s as sendLog};
1
+ import"../chunks/routes-D0_9umO_.esm.js";import"../utils/logger.esm.js";import{s}from"../chunks/index-D1Pso4Mx.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";export{s as sendLog};
2
2
  //# sourceMappingURL=logs.esm.js.map
@@ -1,2 +1,2 @@
1
- import"../chunks/routes-BAqFeD8S.esm.js";import"../utils/logger.js";import{s}from"../chunks/index-ddFvDm5F.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";export{s as sendLog};
1
+ import"../chunks/routes-BGx3ADhY.esm.js";import"../utils/logger.js";import{s}from"../chunks/index-BNHAn1OG.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";export{s as sendLog};
2
2
  //# sourceMappingURL=logs.js.map
@@ -1,2 +1,2 @@
1
- import{t as $,b as j,Z as l,x as q,C as z,v as D,E as G,X as H,s as J,$ as K}from"../chunks/order-page-BL4PDyMz.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-DPxyDjY9.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/promoManager.esm.js";import"../utils/cart.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/index-CJLX6Cat.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.esm.js";import"../chunks/_share-dialog-dependencies-CrXoTXJn.esm.js";import"../chunks/share-button-BSHKEfJo.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BxWziSBl.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../utils/wait-for-element.esm.js";export{$ as addBeamAttributesToCart,j as appendBeamAttributesToCart,l as appendStatsigToShopifyCartAttributes,q as appendToShopifyCartBeamAttribute,z as getBeamAttributesForCart,D as getCurrentCart,G as getShopifyCart,H as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart};
1
+ import{t as $,b as j,Z as l,x as q,C as z,v as D,E as G,X as H,s as J,$ as K}from"../chunks/order-page-C41TBLoV.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.esm.js";import"../utils/network-listeners.esm.js";import"../utils/local-storage.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/memoize-last.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-Dsu0mPtW.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../utils/cookies.esm.js";import"../utils/remote-session.esm.js";import"../utils/promoManager.esm.js";import"../utils/cart.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/index-IAa5EO-6.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-YOC47M3t.esm.js";import"../chunks/_share-dialog-dependencies-o8GVV6gC.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.esm.js";import"../chunks/share-button-CV5FZFS9.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DcaL0AYo.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../utils/wait-for-element.esm.js";export{$ as addBeamAttributesToCart,j as appendBeamAttributesToCart,l as appendStatsigToShopifyCartAttributes,q as appendToShopifyCartBeamAttribute,z as getBeamAttributesForCart,D as getCurrentCart,G as getShopifyCart,H as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart};
2
2
  //# sourceMappingURL=shopify.esm.js.map
@@ -1,2 +1,2 @@
1
- import{t as $,b as j,Z as l,x as q,C as z,v as D,E as G,X as H,s as J,$ as K}from"../chunks/order-page-qV21CdRx.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/memoize-last.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-FKTMMTl5.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/promoManager.js";import"../utils/cart.js";import"../components/post-purchase.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/index-Cb7UHLgc.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.js";import"../chunks/_share-dialog-dependencies-oPfou2yz.esm.js";import"../chunks/share-button-BNp67BPn.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DCMaVhyw.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../utils/wait-for-element.js";export{$ as addBeamAttributesToCart,j as appendBeamAttributesToCart,l as appendStatsigToShopifyCartAttributes,q as appendToShopifyCartBeamAttribute,z as getBeamAttributesForCart,D as getCurrentCart,G as getShopifyCart,H as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart};
1
+ import{t as $,b as j,Z as l,x as q,C as z,v as D,E as G,X as H,s as J,$ as K}from"../chunks/order-page-Brrq-LAx.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../utils/logger.js";import"../utils/network-listeners.js";import"../utils/local-storage.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/memoize-last.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../chunks/update-cart-CFB8JVgq.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../utils/cookies.js";import"../utils/remote-session.js";import"../utils/promoManager.js";import"../utils/cart.js";import"../components/post-purchase.js";import"../chunks/lit-WqMxC_PA.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/index-BWtaQiQa.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/promo-pill-label-BESRGLn7.esm.js";import"../chunks/_share-dialog-dependencies-BVseSHLF.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../components/beam-partner-logos.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/impact-overview.js";import"../chunks/share-button-D-c9M84d.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BmoEHT-C.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../utils/wait-for-element.js";export{$ as addBeamAttributesToCart,j as appendBeamAttributesToCart,l as appendStatsigToShopifyCartAttributes,q as appendToShopifyCartBeamAttribute,z as getBeamAttributesForCart,D as getCurrentCart,G as getShopifyCart,H as registerCartIntegration,J as showBeamOrderPageWidgets,K as trackCart};
2
2
  //# sourceMappingURL=shopify.js.map
@@ -1,4 +1,4 @@
1
- import{c as M}from"../chunks/routes-C75nl1NS.esm.js";import{B as D}from"../chunks/cart-contents-DkoytiZh.esm.js";import{h as O,b as W,c as K}from"../chunks/events-Dki0ka4F.esm.js";import{B as g}from"../chunks/beam-errors-Ci0d3926.esm.js";import{getCookieValue as _,setCookieValue as P}from"../utils/cookies.esm.js";import{logger as A}from"../utils/logger.esm.js";import{saveRemoteSession as j}from"../utils/remote-session.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../utils/local-storage.esm.js";var b=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(b(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},T=(e,t,i,a)=>(b(e,t,"write to private field"),t.set(e,i),i),h=(e,t,i)=>(b(e,t,"access private method"),i),l,p,E,L,v,B,m,f,$,u,S,y,k,I,x;const z=4,G=`https://cdn.jsdelivr.net/npm/statsig-js@${z}/build/statsig-prod-web-sdk.min.js`,N="beam_statsig_session_id",s="data-beam-visibility",F="beam-sync-visibility",w={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class U{constructor(t){n(this,E),n(this,v),n(this,f),n(this,u),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,l,void 0),n(this,p,void 0),n(this,m,[]),this.statsigApiKey=t.statsigApiKey,this.beforeLogEvent=t.beforeLogEvent}async init(t){T(this,l,t),h(this,E,L).call(this),h(this,u,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
1
+ import{c as M}from"../chunks/routes-D0_9umO_.esm.js";import{B as D}from"../chunks/cart-contents-DkoytiZh.esm.js";import{h as O,b as W,c as K}from"../chunks/events-Dki0ka4F.esm.js";import{B as g}from"../chunks/beam-errors-Ci0d3926.esm.js";import{getCookieValue as _,setCookieValue as P}from"../utils/cookies.esm.js";import{logger as A}from"../utils/logger.esm.js";import{saveRemoteSession as j}from"../utils/remote-session.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../utils/local-storage.esm.js";var b=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(b(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},T=(e,t,i,a)=>(b(e,t,"write to private field"),t.set(e,i),i),h=(e,t,i)=>(b(e,t,"access private method"),i),l,p,E,L,v,B,m,f,$,u,S,y,k,I,x;const z=4,G=`https://cdn.jsdelivr.net/npm/statsig-js@${z}/build/statsig-prod-web-sdk.min.js`,N="beam_statsig_session_id",s="data-beam-visibility",F="beam-sync-visibility",w={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class U{constructor(t){n(this,E),n(this,v),n(this,f),n(this,u),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,l,void 0),n(this,p,void 0),n(this,m,[]),this.statsigApiKey=t.statsigApiKey,this.beforeLogEvent=t.beforeLogEvent}async init(t){T(this,l,t),h(this,E,L).call(this),h(this,u,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
2
2
  [${s}="hide"] beam-select-nonprofit,
3
3
  [${s}="hide"] beam-post-purchase,
4
4
  [${s}="hide"] beam-redeem-transaction,
@@ -1,4 +1,4 @@
1
- import{c as M}from"../chunks/routes-BAqFeD8S.esm.js";import{B as D}from"../chunks/cart-contents-DkoytiZh.esm.js";import{h as O,b as W,c as K}from"../chunks/events-Dki0ka4F.esm.js";import{B as g}from"../chunks/beam-errors-Ci0d3926.esm.js";import{getCookieValue as _,setCookieValue as P}from"../utils/cookies.js";import{logger as A}from"../utils/logger.js";import{saveRemoteSession as j}from"../utils/remote-session.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../utils/local-storage.js";var b=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(b(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},T=(e,t,i,a)=>(b(e,t,"write to private field"),t.set(e,i),i),h=(e,t,i)=>(b(e,t,"access private method"),i),l,p,E,L,v,B,m,f,$,u,S,y,k,I,x;const z=4,G=`https://cdn.jsdelivr.net/npm/statsig-js@${z}/build/statsig-prod-web-sdk.min.js`,N="beam_statsig_session_id",s="data-beam-visibility",F="beam-sync-visibility",w={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class U{constructor(t){n(this,E),n(this,v),n(this,f),n(this,u),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,l,void 0),n(this,p,void 0),n(this,m,[]),this.statsigApiKey=t.statsigApiKey,this.beforeLogEvent=t.beforeLogEvent}async init(t){T(this,l,t),h(this,E,L).call(this),h(this,u,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
1
+ import{c as M}from"../chunks/routes-BGx3ADhY.esm.js";import{B as D}from"../chunks/cart-contents-DkoytiZh.esm.js";import{h as O,b as W,c as K}from"../chunks/events-Dki0ka4F.esm.js";import{B as g}from"../chunks/beam-errors-Ci0d3926.esm.js";import{getCookieValue as _,setCookieValue as P}from"../utils/cookies.js";import{logger as A}from"../utils/logger.js";import{saveRemoteSession as j}from"../utils/remote-session.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../utils/local-storage.js";var b=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},d=(e,t,i)=>(b(e,t,"read from private field"),i?i.call(e):t.get(e)),n=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},T=(e,t,i,a)=>(b(e,t,"write to private field"),t.set(e,i),i),h=(e,t,i)=>(b(e,t,"access private method"),i),l,p,E,L,v,B,m,f,$,u,S,y,k,I,x;const z=4,G=`https://cdn.jsdelivr.net/npm/statsig-js@${z}/build/statsig-prod-web-sdk.min.js`,N="beam_statsig_session_id",s="data-beam-visibility",F="beam-sync-visibility",w={STATSIG_INIT:"statsig_init",CART_CREATED:"cart_created",ORDER_CREATED:"order_created",BEAM_SELECTION:"beam_selection"};class U{constructor(t){n(this,E),n(this,v),n(this,f),n(this,u),n(this,y),n(this,I),this.name="statsig",this.experiments={shouldShowBeam:!1,isLoggingEnabled:!0},n(this,l,void 0),n(this,p,void 0),n(this,m,[]),this.statsigApiKey=t.statsigApiKey,this.beforeLogEvent=t.beforeLogEvent}async init(t){T(this,l,t),h(this,E,L).call(this),h(this,u,S).call(this,"hide");const i=document.createElement("style");if(i.innerHTML=`
2
2
  [${s}="hide"] beam-select-nonprofit,
3
3
  [${s}="hide"] beam-post-purchase,
4
4
  [${s}="hide"] beam-redeem-transaction,
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as r}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.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-WqMxC_PA.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";const t=r({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.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 o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";const t=o({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 o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";const t=o({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-WqMxC_PA.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/_share-dialog-dependencies-CrXoTXJn.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-BSHKEfJo.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BxWziSBl.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/_share-dialog-dependencies-o8GVV6gC.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-CV5FZFS9.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DcaL0AYo.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-BR8qUfBa.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-WqMxC_PA.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/_share-dialog-dependencies-oPfou2yz.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-BNp67BPn.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-DCMaVhyw.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-BR8qUfBa.esm.js";const t=o({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as o}from"../chunks/lit-WqMxC_PA.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/_share-dialog-dependencies-BVseSHLF.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-D-c9M84d.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../chunks/share-button-BmoEHT-C.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-BR8qUfBa.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
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as G}from"./community-impact.esm.js";import{BeamCumulativeImpact as J}from"./cumulative-impact.esm.js";import{BeamImpactOverview as L}from"./impact-overview.esm.js";import{BeamSelectNonprofit as U}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as W}from"./redeem-transaction.esm.js";import{BeamPostPurchase as Y}from"./post-purchase.esm.js";import{BeamSubscriptionManagement as _}from"./subscription-management.esm.js";import{BeamSelectSubscriptionNonprofit as oo}from"./select-subscription-nonprofit.esm.js";import{BeamSubscriptionImpact as mo}from"./subscription-impact.esm.js";import{BeamProductDetailsPage as po}from"./product-details-page.esm.js";import{BeamSocialShare as eo}from"./social-share.esm.js";import"react";import"../chunks/lit-WqMxC_PA.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-C75nl1NS.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../components/impact-overview.esm.js";import"../chunks/_share-dialog-dependencies-CrXoTXJn.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-BSHKEfJo.esm.js";import"../chunks/share-button-BxWziSBl.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../utils/local-storage.esm.js";import"../utils/promoManager.esm.js";import"../utils/cookies.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.esm.js";import"../chunks/index-CJLX6Cat.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{G as BeamCommunityImpact,J as BeamCumulativeImpact,L as BeamImpactOverview,Y as BeamPostPurchase,po as BeamProductDetailsPage,W as BeamRedeemTransaction,U as BeamSelectNonprofit,oo as BeamSelectSubscriptionNonprofit,eo as BeamSocialShare,mo as BeamSubscriptionImpact,_ as BeamSubscriptionManagement};
1
+ import{BeamCommunityImpact as G}from"./community-impact.esm.js";import{BeamCumulativeImpact as J}from"./cumulative-impact.esm.js";import{BeamImpactOverview as L}from"./impact-overview.esm.js";import{BeamSelectNonprofit as U}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as W}from"./redeem-transaction.esm.js";import{BeamPostPurchase as Y}from"./post-purchase.esm.js";import{BeamSubscriptionManagement as _}from"./subscription-management.esm.js";import{BeamSelectSubscriptionNonprofit as oo}from"./select-subscription-nonprofit.esm.js";import{BeamSubscriptionImpact as mo}from"./subscription-impact.esm.js";import{BeamProductDetailsPage as po}from"./product-details-page.esm.js";import{BeamSocialShare as eo}from"./social-share.esm.js";import"react";import"../chunks/lit-WqMxC_PA.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/enforce-config-CZ3ToOgr.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.esm.js";import"../chunks/localize-Btu9xYcE.esm.js";import"../chunks/routes-D0_9umO_.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../components/impact-overview.esm.js";import"../chunks/_share-dialog-dependencies-o8GVV6gC.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-CV5FZFS9.esm.js";import"../chunks/share-button-DcaL0AYo.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/promo-pill-label-YOC47M3t.esm.js";import"../utils/local-storage.esm.js";import"../utils/promoManager.esm.js";import"../utils/cookies.esm.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.esm.js";import"../chunks/index-IAa5EO-6.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{G as BeamCommunityImpact,J as BeamCumulativeImpact,L as BeamImpactOverview,Y as BeamPostPurchase,po as BeamProductDetailsPage,W as BeamRedeemTransaction,U as BeamSelectNonprofit,oo as BeamSelectSubscriptionNonprofit,eo as BeamSocialShare,mo as BeamSubscriptionImpact,_ as BeamSubscriptionManagement};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as G}from"./community-impact.js";import{BeamCumulativeImpact as J}from"./cumulative-impact.js";import{BeamImpactOverview as L}from"./impact-overview.js";import{BeamSelectNonprofit as U}from"./select-nonprofit.js";import{BeamRedeemTransaction as W}from"./redeem-transaction.js";import{BeamPostPurchase as Y}from"./post-purchase.js";import{BeamSubscriptionManagement as _}from"./subscription-management.js";import{BeamSelectSubscriptionNonprofit as oo}from"./select-subscription-nonprofit.js";import{BeamSubscriptionImpact as mo}from"./subscription-impact.js";import{BeamProductDetailsPage as po}from"./product-details-page.js";import{BeamSocialShare as eo}from"./social-share.js";import"react";import"../chunks/lit-WqMxC_PA.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BAqFeD8S.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../components/impact-overview.js";import"../chunks/_share-dialog-dependencies-oPfou2yz.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-BNp67BPn.esm.js";import"../chunks/share-button-DCMaVhyw.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../components/select-nonprofit.js";import"../chunks/promo-pill-label-CbW_Vcru.esm.js";import"../utils/local-storage.js";import"../utils/promoManager.js";import"../utils/cookies.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.js";import"../chunks/index-Cb7UHLgc.esm.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{G as BeamCommunityImpact,J as BeamCumulativeImpact,L as BeamImpactOverview,Y as BeamPostPurchase,po as BeamProductDetailsPage,W as BeamRedeemTransaction,U as BeamSelectNonprofit,oo as BeamSelectSubscriptionNonprofit,eo as BeamSocialShare,mo as BeamSubscriptionImpact,_ as BeamSubscriptionManagement};
1
+ import{BeamCommunityImpact as G}from"./community-impact.js";import{BeamCumulativeImpact as J}from"./cumulative-impact.js";import{BeamImpactOverview as L}from"./impact-overview.js";import{BeamSelectNonprofit as U}from"./select-nonprofit.js";import{BeamRedeemTransaction as W}from"./redeem-transaction.js";import{BeamPostPurchase as Y}from"./post-purchase.js";import{BeamSubscriptionManagement as _}from"./subscription-management.js";import{BeamSelectSubscriptionNonprofit as oo}from"./select-subscription-nonprofit.js";import{BeamSubscriptionImpact as mo}from"./subscription-impact.js";import{BeamProductDetailsPage as po}from"./product-details-page.js";import{BeamSocialShare as eo}from"./social-share.js";import"react";import"../chunks/lit-WqMxC_PA.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-DF7UuuHb.esm.js";import"../components/beam-partner-logos.js";import"../chunks/enforce-config-Ba1JkOHs.esm.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../utils/logger.js";import"../chunks/localize-C25pEGnx.esm.js";import"../chunks/routes-BGx3ADhY.esm.js";import"../chunks/promo-types-DKAOFHJr.esm.js";import"../chunks/loading-template-DG4lkIIc.esm.js";import"../chunks/css-card-grid-CvoGpsJH.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-D3TLHRR_.esm.js";import"../chunks/is-all-html-elements-fcB7UUA1.esm.js";import"../components/impact-overview.js";import"../chunks/_share-dialog-dependencies-BVseSHLF.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../chunks/share-button-D-c9M84d.esm.js";import"../chunks/share-button-BmoEHT-C.esm.js";import"../chunks/responsive-BR8qUfBa.esm.js";import"../chunks/events-Dki0ka4F.esm.js";import"../components/select-nonprofit.js";import"../chunks/promo-pill-label-BESRGLn7.esm.js";import"../utils/local-storage.js";import"../utils/promoManager.js";import"../utils/cookies.js";import"../chunks/cart-contents-DkoytiZh.esm.js";import"../utils/cart.js";import"../chunks/index-BWtaQiQa.esm.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{G as BeamCommunityImpact,J as BeamCumulativeImpact,L as BeamImpactOverview,Y as BeamPostPurchase,po as BeamProductDetailsPage,W as BeamRedeemTransaction,U as BeamSelectNonprofit,oo as BeamSelectSubscriptionNonprofit,eo as BeamSocialShare,mo as BeamSubscriptionImpact,_ as BeamSubscriptionManagement};
2
2
  //# sourceMappingURL=index.js.map