@beamimpact/web-sdk 1.29.0-beta.5 → 1.29.0-beta.6

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 (77) hide show
  1. package/README.md +24 -23
  2. package/dist/chunks/{_share-dialog-dependencies-qFTxK4S6.esm.js → _share-dialog-dependencies-6rpTDMSM.esm.js} +2 -2
  3. package/dist/chunks/_share-dialog-dependencies-6rpTDMSM.esm.js.map +1 -0
  4. package/dist/chunks/{_share-dialog-dependencies-zVUKbmbA.esm.js → _share-dialog-dependencies-hd9fP3Yj.esm.js} +2 -2
  5. package/dist/chunks/_share-dialog-dependencies-hd9fP3Yj.esm.js.map +1 -0
  6. package/dist/chunks/index-Hm4mQjnj.esm.js +2 -0
  7. package/dist/chunks/index-Hm4mQjnj.esm.js.map +1 -0
  8. package/dist/chunks/index-P56wvflO.esm.js +2 -0
  9. package/dist/chunks/index-P56wvflO.esm.js.map +1 -0
  10. package/dist/chunks/index-PIFZakQ8.esm.js +2 -0
  11. package/dist/chunks/index-PIFZakQ8.esm.js.map +1 -0
  12. package/dist/chunks/index-PYdJGNef.esm.js +2 -0
  13. package/dist/chunks/index-PYdJGNef.esm.js.map +1 -0
  14. package/dist/chunks/index-gxb1Rhtv.esm.js +2 -0
  15. package/dist/chunks/index-gxb1Rhtv.esm.js.map +1 -0
  16. package/dist/chunks/{order-page-jJ7Fju-n.esm.js → order-page-94iMCraa.esm.js} +2 -2
  17. package/dist/chunks/{order-page-jJ7Fju-n.esm.js.map → order-page-94iMCraa.esm.js.map} +1 -1
  18. package/dist/chunks/{order-page-e3rXwf0K.esm.js → order-page-STAG2OhW.esm.js} +2 -2
  19. package/dist/chunks/{order-page-e3rXwf0K.esm.js.map → order-page-STAG2OhW.esm.js.map} +1 -1
  20. package/dist/chunks/{routes-4-ftNnBE.esm.js → routes-Xnsh4jsO.esm.js} +2 -2
  21. package/dist/chunks/{routes-4-ftNnBE.esm.js.map → routes-Xnsh4jsO.esm.js.map} +1 -1
  22. package/dist/chunks/{update-cart-OBbkS9J5.esm.js → update-cart-K-xxdX-s.esm.js} +2 -2
  23. package/dist/chunks/{update-cart-OBbkS9J5.esm.js.map → update-cart-K-xxdX-s.esm.js.map} +1 -1
  24. package/dist/components/community-impact.esm.js +1 -1
  25. package/dist/components/community-impact.js +1 -1
  26. package/dist/components/cumulative-impact.esm.js +1 -1
  27. package/dist/components/cumulative-impact.js +1 -1
  28. package/dist/components/impact-overview.esm.js +1 -1
  29. package/dist/components/impact-overview.js +1 -1
  30. package/dist/components/index.esm.js +1 -1
  31. package/dist/components/index.js +1 -1
  32. package/dist/components/post-purchase.d.ts +1 -1
  33. package/dist/components/post-purchase.esm.js +1 -1
  34. package/dist/components/post-purchase.js +1 -1
  35. package/dist/components/redeem-transaction.d.ts +1 -1
  36. package/dist/components/redeem-transaction.esm.js +1 -1
  37. package/dist/components/redeem-transaction.js +1 -1
  38. package/dist/components/select-nonprofit.d.ts +1 -1
  39. package/dist/components/select-nonprofit.esm.js +1 -1
  40. package/dist/components/select-nonprofit.js +1 -1
  41. package/dist/components/shopify.esm.js +1 -1
  42. package/dist/components/shopify.js +1 -1
  43. package/dist/index.esm.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/integrations/cart.esm.js +1 -1
  46. package/dist/integrations/cart.js +1 -1
  47. package/dist/integrations/index.esm.js +1 -1
  48. package/dist/integrations/index.js +1 -1
  49. package/dist/integrations/shopify.esm.js +1 -1
  50. package/dist/integrations/shopify.js +1 -1
  51. package/dist/react/community-impact.esm.js +1 -1
  52. package/dist/react/community-impact.js +1 -1
  53. package/dist/react/cumulative-impact.esm.js +1 -1
  54. package/dist/react/cumulative-impact.js +1 -1
  55. package/dist/react/impact-overview.esm.js +1 -1
  56. package/dist/react/impact-overview.js +1 -1
  57. package/dist/react/index.esm.js +1 -1
  58. package/dist/react/index.js +1 -1
  59. package/dist/react/post-purchase.esm.js +1 -1
  60. package/dist/react/post-purchase.js +1 -1
  61. package/dist/react/redeem-transaction.esm.js +1 -1
  62. package/dist/react/redeem-transaction.js +1 -1
  63. package/dist/react/select-nonprofit.esm.js +1 -1
  64. package/dist/react/select-nonprofit.js +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/_share-dialog-dependencies-qFTxK4S6.esm.js.map +0 -1
  67. package/dist/chunks/_share-dialog-dependencies-zVUKbmbA.esm.js.map +0 -1
  68. package/dist/chunks/index--GRqoHRE.esm.js +0 -2
  69. package/dist/chunks/index--GRqoHRE.esm.js.map +0 -1
  70. package/dist/chunks/index-7Of_Yhna.esm.js +0 -2
  71. package/dist/chunks/index-7Of_Yhna.esm.js.map +0 -1
  72. package/dist/chunks/index-AkTBw-Qc.esm.js +0 -2
  73. package/dist/chunks/index-AkTBw-Qc.esm.js.map +0 -1
  74. package/dist/chunks/index-ewBF3ULP.esm.js +0 -2
  75. package/dist/chunks/index-ewBF3ULP.esm.js.map +0 -1
  76. package/dist/chunks/index-nT4s8BNX.esm.js +0 -2
  77. package/dist/chunks/index-nT4s8BNX.esm.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{h as v,f as d,u as g,g as T,Z as k,y as f,k as z}from"../chunks/lit-h1W25hjN.esm.js";import{d as L}from"../chunks/lodash-ZxBiuGue.esm.js";import{h as x,D as N,b as D,S as E}from"../chunks/routes-4-ftNnBE.esm.js";import{B as R}from"../chunks/beam-errors-l02WBee5.esm.js";import{p as B}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as j,u as s,d as U,e as A,A as F,a as W,_ as y,i as u,b as p,f as P}from"../chunks/localize-e-mss8ya.esm.js";import{l as I}from"../chunks/logger-ad87ovol.esm.js";import{r as M,s as q}from"../chunks/vendor-IGhQoYCM.esm.js";import{i as H}from"../chunks/is-all-html-elements-SdSkxirh.esm.js";import{partnerLogosConfigDefaults as V}from"./beam-partner-logos.js";import{c as _}from"../chunks/responsive-Rehmv-eo.esm.js";function K(){return/Android|iPhone/i.test(navigator.userAgent)}const C=async e=>fetch(e).then(async a=>{const t=new URL(e),i=await a.blob();return new File([i],t.pathname,{type:i.type})}),O="https://production-beam-widgets.beamimpact.com",S=`${O}/lib/shoelace/v${x["@shoelace-style/shoelace"]}`,G=`${O}/lib/lucide-static/v${x["lucide-static"]}`;if(M("lucide",{resolver:e=>`${G}/icons/${e}.svg`}),q(S),document&&!document.querySelector("link[data-beam-impact]")){const e=document.createElement("link");e.href=`${S}/themes/light.css`,e.rel="stylesheet",e.setAttribute("data-beam-impact","true"),document.head.appendChild(e)}const w=(e,{source:a="contentLength"}={})=>{const t=e instanceof NodeList?Array.from(e):e;if(t.length===0||!H(t))return;const i=(a==="contentLength"?t.sort((r,c)=>c.innerText.length-r.innerText.length)[0]:t.sort((r,c)=>c.clientHeight-r.clientHeight)[0])?.clientHeight||0;for(const r of t)r.clientHeight!==i&&(r.style.height=i+"px")},o={en:{descriptionTitle:({nonprofitName:e="a nonprofit"})=>`You just made an impact for ${e}`,descriptionSubtitle:({brandName:e=""})=>`Check out the impact your ${e} purchase made below`,learnMore:({name:e=""})=>`Learn more about ${e}`,seeAllImpact:({brandName:e=""})=>`See all of the impact by the ${e} community`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Your Impact",communityImpactTitle:({brandName:e=""})=>`The ${e} Community's Impact`,impactShareButton:()=>"Share to Grow Our Impact",impactShareText:({brandName:e=""})=>`Help ${e} reach their giving goal by sharing this cause on social media`,impactShareTitle:()=>"Share on Social Media",impactShareCopy:()=>"Copy",impactShareDownload:()=>"Download",impactShareClose:()=>"Close"},fr:{descriptionTitle:({nonprofitName:e=""})=>`Vous avez eu un impact positif sur ${e}`,descriptionSubtitle:({brandName:e=""})=>`D\xE9couvrez quel est l'impact de votre achat chez ${e} ci-dessous.`,learnMore:({name:e=""})=>`En savoir plus sur ${e}`,seeAllImpact:({brandName:e=""})=>`Voir toutes les contributions de la communaut\xE9 de ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Votre contribution personnelle",communityImpactTitle:({brandName:e=""})=>`La contribution de la communaut\xE9 de ${e}`,impactShareButton:()=>"Partagez pour augmentez notre cause",impactShareText:({brandName:e=""})=>`Aidez ${e} a atteindre leur objectif en partageant cette cause sur votre r\xE9seaux sociaux`,impactShareTitle:()=>"Partager sur votre r\xE9seaux sociaux",impactShareCopy:()=>"Copier",impactShareDownload:()=>"T\xE9l\xE9charger",impactShareClose:()=>"Fermer"},de:{descriptionTitle:({nonprofitName:e=""})=>`Du hast soeben einen Beitrag geleistet f\xFCr ${e}`,descriptionSubtitle:({brandName:e=""})=>`Erfahre mehr \xFCber den Beitrag, den du mit deinem ${e} Kauf geleistet hast`,learnMore:({name:e=""})=>`Mehr \xFCber ${e} erfahren`,seeAllImpact:({brandName:e=""})=>`Informiere dich \xFCber den bisher geleisteten Beitrag der ${e} community`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Dein Beitrag",communityImpactTitle:({brandName:e=""})=>`Der Beitrag der ${e} community`,impactShareButton:()=>"Teil, um unserem Beitrag zu erh\xF6hen",impactShareText:({brandName:e=""})=>`Hilf ${e} ihre Spendenziel zu erreichen`,impactShareTitle:()=>"In den sozialen Medien teilen",impactShareCopy:()=>"Kopieren",impactShareDownload:()=>"Herunterladen",impactShareClose:()=>"Schlie\xDFen"},es:{descriptionTitle:({nonprofitName:e=""})=>`Acabas de contribuir con ${e}`,descriptionSubtitle:({brandName:e=""})=>`Comprueba la contribuci\xF3n que has hecho con tu compra ${e} a continuaci\xF3n`,learnMore:({name:e=""})=>`Saber m\xE1s de ${e}`,seeAllImpact:({brandName:e=""})=>`Mira lo que ha conseguido la comunidad ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Tu contribuci\xF3n",communityImpactTitle:({brandName:e=""})=>`Tu contribuci\xF3n con la comunidad ${e}`,impactShareButton:()=>"Comparte para aumentar nuestro impacto",impactShareText:({brandName:e=""})=>`Comparte en las redes sociales para ayudar a ${e} a alcanzar su objetivo.`,impactShareTitle:()=>"Compartir en redes sociales",impactShareCopy:()=>"Copiar",impactShareDownload:()=>"Descargar",impactShareClose:()=>"Cerrar"},it:{descriptionTitle:({nonprofitName:e=""})=>`Hai appena fatto la differenza per ${e}`,descriptionSubtitle:({brandName:e=""})=>`Guarda qui sotto l'impatto del tuo acquisto ${e}`,learnMore:({name:e=""})=>`Scopri di pi\xF9 su ${e}`,seeAllImpact:({brandName:e=""})=>`Guarda come la comunit\xE0 di ${e} fa la differenza`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Il tuo impatto",communityImpactTitle:({brandName:e=""})=>`L\u2019impatto della comunit\xE0 di ${e} `,impactShareButton:()=>"Condividi, aiutaci a fare la differenza",impactShareText:({brandName:e=""})=>`Aiuta ${e} a raggiungere il suo obiettivo di donazione condividendo questa causa sui social media.`,impactShareTitle:()=>"Condividi, aiutaci a fare la differenza",impactShareCopy:()=>"Copia",impactShareDownload:()=>"Scarica",impactShareClose:()=>"Chiudi"},pl:{descriptionTitle:({nonprofitName:e=""})=>`W\u0142a\u015Bnie wspar\u0142a\u015B_e\u015B ${e}!`,descriptionSubtitle:({brandName:e=""})=>`Sprawd\u017A ni\u017Cej, jakiego wsparcia udzieli\u0142a\u015B_e\u015B kupuj\u0105c w ${e} `,learnMore:({name:e=""})=>`Dowiedz si\u0119 wi\u0119cej o ${e}`,seeAllImpact:({brandName:e=""})=>`Zobacz, ile dobrego zrobi\u0142a do tej pory spo\u0142eczno\u015B\u0107 ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Twoje wsparcie",communityImpactTitle:({brandName:e=""})=>`Wsparcie udzielone przez spo\u0142eczno\u015B\u0107 ${e}`,impactShareButton:()=>"Udost\u0119pnij, by szerzy\u0107 nasz\u0105 misj\u0119",impactShareText:({brandName:e=""})=>`Pom\xF3\u017C ${e} osi\u0105gn\u0105\u0107 cel i podziel si\u0119 t\u0105 inicjatyw\u0105 na swoim profilu`,impactShareTitle:()=>"Udost\u0119pnij na swoim profilu",impactShareCopy:()=>"Kopiuj",impactShareDownload:()=>"Pobierz",impactShareClose:()=>"Zamknij"}};var J=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,m=(e,a,t,i)=>{for(var r=i>1?void 0:i?Z(a,t):a,c=e.length-1,l;c>=0;c--)(l=e[c])&&(r=(i?l(a,t,r):l(r))||r);return i&&r&&J(a,t,r),r};class n extends T{constructor(){super(...arguments),this.baseUrl=N,this.lang="en",this.debug=!1,this.getImpactData=async()=>(A(["apiKey","chainId","userId","nonprofitId"],this),await D({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{nonprofitId:this.nonprofitId,chainId:this.chainId,beamUserId:this.userId,personalImpactLimit:1,communityImpactLimit:1,widgetName:"impact-overview",version:"1.0.0",lang:this.configLang}})),this.impactDataController=new F(this,this.getImpactData),this.resizeElements=L(()=>{w(this.impactTitleRefs),w(this.impactDescriptionRefs),w(this.impactLinkRefs)},50,{maxWait:50,leading:!0}),this.handleShareClick=async()=>{try{K()?await this.openSystemShareSheet():await this.openShareDialog()}catch(a){I.error(new R("Error sharing impact")),I.error(a)}},this.openSystemShareSheet=async()=>{const a=this.impactDataController.data?.personal[0]?.share?.imageUrl;if(!a)return;const t=await C(a);navigator.share&&await navigator.share({files:[t]})},this.openShareDialog=async()=>{const a=this.impactDataController.data?.chain.name,t=this.impactDataController.data?.personal[0]?.share?.imageUrl;if(!t)return;const i=this.renderRoot.querySelector("sl-dialog");if(i){i.show();return}await import("../chunks/_share-dialog-dependencies-zVUKbmbA.esm.js");const r=this.renderRoot.querySelector("#modal-root"),c=await C(t),l=URL.createObjectURL(c),h=()=>{this.renderRoot.querySelector("sl-dialog")?.hide()},b=()=>{navigator.clipboard.write([new ClipboardItem({"image/png":c})]).then(()=>{setTimeout(h,250)})},$=()=>{setTimeout(h,250)};k(f`
1
+ import{h as v,f as d,u as g,g as T,Z as k,y as f,k as z}from"../chunks/lit-h1W25hjN.esm.js";import{d as L}from"../chunks/lodash-ZxBiuGue.esm.js";import{h as x,D as N,b as D,S as E}from"../chunks/routes-Xnsh4jsO.esm.js";import{B as R}from"../chunks/beam-errors-l02WBee5.esm.js";import{p as B}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as j,u as s,d as U,e as A,A as F,a as W,_ as y,i as u,b as p,f as P}from"../chunks/localize-e-mss8ya.esm.js";import{l as I}from"../chunks/logger-ad87ovol.esm.js";import{r as M,s as q}from"../chunks/vendor-IGhQoYCM.esm.js";import{i as H}from"../chunks/is-all-html-elements-SdSkxirh.esm.js";import{partnerLogosConfigDefaults as V}from"./beam-partner-logos.js";import{c as _}from"../chunks/responsive-Rehmv-eo.esm.js";function K(){return/Android|iPhone/i.test(navigator.userAgent)}const C=async e=>fetch(e).then(async a=>{const t=new URL(e),i=await a.blob();return new File([i],t.pathname,{type:i.type})}),O="https://production-beam-widgets.beamimpact.com",S=`${O}/lib/shoelace/v${x["@shoelace-style/shoelace"]}`,G=`${O}/lib/lucide-static/v${x["lucide-static"]}`;if(M("lucide",{resolver:e=>`${G}/icons/${e}.svg`}),q(S),document&&!document.querySelector("link[data-beam-impact]")){const e=document.createElement("link");e.href=`${S}/themes/light.css`,e.rel="stylesheet",e.setAttribute("data-beam-impact","true"),document.head.appendChild(e)}const w=(e,{source:a="contentLength"}={})=>{const t=e instanceof NodeList?Array.from(e):e;if(t.length===0||!H(t))return;const i=(a==="contentLength"?t.sort((r,c)=>c.innerText.length-r.innerText.length)[0]:t.sort((r,c)=>c.clientHeight-r.clientHeight)[0])?.clientHeight||0;for(const r of t)r.clientHeight!==i&&(r.style.height=i+"px")},o={en:{descriptionTitle:({nonprofitName:e="a nonprofit"})=>`You just made an impact for ${e}`,descriptionSubtitle:({brandName:e=""})=>`Check out the impact your ${e} purchase made below`,learnMore:({name:e=""})=>`Learn more about ${e}`,seeAllImpact:({brandName:e=""})=>`See all of the impact by the ${e} community`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Your Impact",communityImpactTitle:({brandName:e=""})=>`The ${e} Community's Impact`,impactShareButton:()=>"Share to Grow Our Impact",impactShareText:({brandName:e=""})=>`Help ${e} reach their giving goal by sharing this cause on social media`,impactShareTitle:()=>"Share on Social Media",impactShareCopy:()=>"Copy",impactShareDownload:()=>"Download",impactShareClose:()=>"Close"},fr:{descriptionTitle:({nonprofitName:e=""})=>`Vous avez eu un impact positif sur ${e}`,descriptionSubtitle:({brandName:e=""})=>`D\xE9couvrez quel est l'impact de votre achat chez ${e} ci-dessous.`,learnMore:({name:e=""})=>`En savoir plus sur ${e}`,seeAllImpact:({brandName:e=""})=>`Voir toutes les contributions de la communaut\xE9 de ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Votre contribution personnelle",communityImpactTitle:({brandName:e=""})=>`La contribution de la communaut\xE9 de ${e}`,impactShareButton:()=>"Partagez pour augmentez notre cause",impactShareText:({brandName:e=""})=>`Aidez ${e} a atteindre leur objectif en partageant cette cause sur votre r\xE9seaux sociaux`,impactShareTitle:()=>"Partager sur votre r\xE9seaux sociaux",impactShareCopy:()=>"Copier",impactShareDownload:()=>"T\xE9l\xE9charger",impactShareClose:()=>"Fermer"},de:{descriptionTitle:({nonprofitName:e=""})=>`Du hast soeben einen Beitrag geleistet f\xFCr ${e}`,descriptionSubtitle:({brandName:e=""})=>`Erfahre mehr \xFCber den Beitrag, den du mit deinem ${e} Kauf geleistet hast`,learnMore:({name:e=""})=>`Mehr \xFCber ${e} erfahren`,seeAllImpact:({brandName:e=""})=>`Informiere dich \xFCber den bisher geleisteten Beitrag der ${e} community`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Dein Beitrag",communityImpactTitle:({brandName:e=""})=>`Der Beitrag der ${e} community`,impactShareButton:()=>"Teil, um unserem Beitrag zu erh\xF6hen",impactShareText:({brandName:e=""})=>`Hilf ${e} ihre Spendenziel zu erreichen`,impactShareTitle:()=>"In den sozialen Medien teilen",impactShareCopy:()=>"Kopieren",impactShareDownload:()=>"Herunterladen",impactShareClose:()=>"Schlie\xDFen"},es:{descriptionTitle:({nonprofitName:e=""})=>`Acabas de contribuir con ${e}`,descriptionSubtitle:({brandName:e=""})=>`Comprueba la contribuci\xF3n que has hecho con tu compra ${e} a continuaci\xF3n`,learnMore:({name:e=""})=>`Saber m\xE1s de ${e}`,seeAllImpact:({brandName:e=""})=>`Mira lo que ha conseguido la comunidad ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Tu contribuci\xF3n",communityImpactTitle:({brandName:e=""})=>`Tu contribuci\xF3n con la comunidad ${e}`,impactShareButton:()=>"Comparte para aumentar nuestro impacto",impactShareText:({brandName:e=""})=>`Comparte en las redes sociales para ayudar a ${e} a alcanzar su objetivo.`,impactShareTitle:()=>"Compartir en redes sociales",impactShareCopy:()=>"Copiar",impactShareDownload:()=>"Descargar",impactShareClose:()=>"Cerrar"},it:{descriptionTitle:({nonprofitName:e=""})=>`Hai appena fatto la differenza per ${e}`,descriptionSubtitle:({brandName:e=""})=>`Guarda qui sotto l'impatto del tuo acquisto ${e}`,learnMore:({name:e=""})=>`Scopri di pi\xF9 su ${e}`,seeAllImpact:({brandName:e=""})=>`Guarda come la comunit\xE0 di ${e} fa la differenza`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Il tuo impatto",communityImpactTitle:({brandName:e=""})=>`L\u2019impatto della comunit\xE0 di ${e} `,impactShareButton:()=>"Condividi, aiutaci a fare la differenza",impactShareText:({brandName:e=""})=>`Aiuta ${e} a raggiungere il suo obiettivo di donazione condividendo questa causa sui social media.`,impactShareTitle:()=>"Condividi, aiutaci a fare la differenza",impactShareCopy:()=>"Copia",impactShareDownload:()=>"Scarica",impactShareClose:()=>"Chiudi"},pl:{descriptionTitle:({nonprofitName:e=""})=>`W\u0142a\u015Bnie wspar\u0142a\u015B_e\u015B ${e}!`,descriptionSubtitle:({brandName:e=""})=>`Sprawd\u017A ni\u017Cej, jakiego wsparcia udzieli\u0142a\u015B_e\u015B kupuj\u0105c w ${e} `,learnMore:({name:e=""})=>`Dowiedz si\u0119 wi\u0119cej o ${e}`,seeAllImpact:({brandName:e=""})=>`Zobacz, ile dobrego zrobi\u0142a do tej pory spo\u0142eczno\u015B\u0107 ${e}`,percentRaised:({percent:e=0})=>`${e}%`,yourImpactTitle:()=>"Twoje wsparcie",communityImpactTitle:({brandName:e=""})=>`Wsparcie udzielone przez spo\u0142eczno\u015B\u0107 ${e}`,impactShareButton:()=>"Udost\u0119pnij, by szerzy\u0107 nasz\u0105 misj\u0119",impactShareText:({brandName:e=""})=>`Pom\xF3\u017C ${e} osi\u0105gn\u0105\u0107 cel i podziel si\u0119 t\u0105 inicjatyw\u0105 na swoim profilu`,impactShareTitle:()=>"Udost\u0119pnij na swoim profilu",impactShareCopy:()=>"Kopiuj",impactShareDownload:()=>"Pobierz",impactShareClose:()=>"Zamknij"}};var J=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,m=(e,a,t,i)=>{for(var r=i>1?void 0:i?Z(a,t):a,c=e.length-1,l;c>=0;c--)(l=e[c])&&(r=(i?l(a,t,r):l(r))||r);return i&&r&&J(a,t,r),r};class n extends T{constructor(){super(...arguments),this.baseUrl=N,this.lang="en",this.debug=!1,this.getImpactData=async()=>(A(["apiKey","chainId","userId","nonprofitId"],this),await D({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{nonprofitId:this.nonprofitId,chainId:this.chainId,beamUserId:this.userId,personalImpactLimit:1,communityImpactLimit:1,widgetName:"impact-overview",version:"1.0.0",lang:this.configLang}})),this.impactDataController=new F(this,this.getImpactData),this.resizeElements=L(()=>{w(this.impactTitleRefs),w(this.impactDescriptionRefs),w(this.impactLinkRefs)},50,{maxWait:50,leading:!0}),this.handleShareClick=async()=>{try{K()?await this.openSystemShareSheet():await this.openShareDialog()}catch(a){I.error(new R("Error sharing impact")),I.error(a)}},this.openSystemShareSheet=async()=>{const a=this.impactDataController.data?.personal[0]?.share?.imageUrl;if(!a)return;const t=await C(a);navigator.share&&await navigator.share({files:[t]})},this.openShareDialog=async()=>{const a=this.impactDataController.data?.chain.name,t=this.impactDataController.data?.personal[0]?.share?.imageUrl;if(!t)return;const i=this.renderRoot.querySelector("sl-dialog");if(i){i.show();return}await import("../chunks/_share-dialog-dependencies-hd9fP3Yj.esm.js");const r=this.renderRoot.querySelector("#modal-root"),c=await C(t),l=URL.createObjectURL(c),h=()=>{this.renderRoot.querySelector("sl-dialog")?.hide()},b=()=>{navigator.clipboard.write([new ClipboardItem({"image/png":c})]).then(()=>{setTimeout(h,250)})},$=()=>{setTimeout(h,250)};k(f`
2
2
  <sl-dialog open label="${o[this.configLang].impactShareTitle()}" no-header class="share-dialog">
3
3
  <h2 class="share-title">${o[this.configLang].impactShareTitle()}</h2>
4
4
  <p class="share-text">${o[this.configLang].impactShareText({brandName:a})}</p>
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as C}from"./community-impact.esm.js";import{BeamCumulativeImpact as d}from"./cumulative-impact.esm.js";import{BeamImpactOverview as w}from"./impact-overview.esm.js";import{BeamSelectNonprofit as N}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as R}from"./redeem-transaction.esm.js";import{BeamPostPurchase as T}from"./post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as BeamCommunityImpact,d as BeamCumulativeImpact,w as BeamImpactOverview,T as BeamPostPurchase,R as BeamRedeemTransaction,N as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as C}from"./community-impact.esm.js";import{BeamCumulativeImpact as d}from"./cumulative-impact.esm.js";import{BeamImpactOverview as w}from"./impact-overview.esm.js";import{BeamSelectNonprofit as N}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as R}from"./redeem-transaction.esm.js";import{BeamPostPurchase as T}from"./post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as BeamCommunityImpact,d as BeamCumulativeImpact,w as BeamImpactOverview,T as BeamPostPurchase,R as BeamRedeemTransaction,N as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as C}from"./community-impact.js";import{BeamCumulativeImpact as d}from"./cumulative-impact.js";import{BeamImpactOverview as w}from"./impact-overview.js";import{BeamSelectNonprofit as N}from"./select-nonprofit.js";import{BeamRedeemTransaction as R}from"./redeem-transaction.js";import{BeamPostPurchase as T}from"./post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as BeamCommunityImpact,d as BeamCumulativeImpact,w as BeamImpactOverview,T as BeamPostPurchase,R as BeamRedeemTransaction,N as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as C}from"./community-impact.js";import{BeamCumulativeImpact as d}from"./cumulative-impact.js";import{BeamImpactOverview as w}from"./impact-overview.js";import{BeamSelectNonprofit as N}from"./select-nonprofit.js";import{BeamRedeemTransaction as R}from"./redeem-transaction.js";import{BeamPostPurchase as T}from"./post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";export{C as BeamCommunityImpact,d as BeamCumulativeImpact,w as BeamImpactOverview,T as BeamPostPurchase,R as BeamRedeemTransaction,N as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.js.map
@@ -116,7 +116,7 @@ declare class BeamPostPurchase extends LitElement {
116
116
  } | undefined;
117
117
  }>;
118
118
  private transactionDataController;
119
- render(): "" | lit_html.TemplateResult<1>;
119
+ render(): lit_html.TemplateResult<1> | "";
120
120
  static styles: lit.CSSResult[];
121
121
  }
122
122
  declare global {
@@ -1,4 +1,4 @@
1
- import{f as r,t as a,g as I,y as l}from"../chunks/lit-h1W25hjN.esm.js";import{a as y}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as u,d as g,e as m,A as C,_ as b}from"../chunks/localize-e-mss8ya.esm.js";import{c as f}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{D as v,g as $,a as S}from"../chunks/routes-4-ftNnBE.esm.js";import"./redeem-transaction.esm.js";import"./impact-overview.esm.js";import{B as U}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";var w=Object.defineProperty,K=Object.getOwnPropertyDescriptor,e=(d,o,i,n)=>{for(var s=n>1?void 0:n?K(o,i):o,p=d.length-1,c;p>=0;p--)(c=d[p])&&(s=(n?c(o,i,s):c(s))||s);return n&&s&&w(o,i,s),s};const h=["baseUrl","apiKey","orderId","email","cartTotal","currencyCode","lang"],A=["storeId","postalCode","countryCode","cart","discountCodes"];class t extends I{constructor(){super(...arguments),this.baseUrl=v,this.currencyCode="USD",this.lang="en",this.debug=!1,this.activeWidget="redeem-transaction",this.nonprofitId=null,this.selectionId=null,this.cartId=null,this.beamCartId=null,this.userId=null,this.transactionId=null,this.chainId=null,this.localStorage=f(this),this.handlePostTransaction=async()=>{if(m(h,this),!this.storeId&&this.postalCode&&this.countryCode){const i=await $({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{postalCode:this.postalCode,countryCode:this.countryCode,widgetName:"redeem-transaction",version:"1.0.0"}});this.storeId=i.store?.id}const o=await S({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:this.nonprofitId??void 0,selectionId:this.selectionId??void 0,cartId:this.cartId??void 0,beamCartId:this.beamCartId??void 0,storeId:this.storeId,orderId:this.orderId,cartTotal:this.cartTotal,email:this.email,currencyCode:this.currencyCode,postalCode:this.postalCode,countryCode:this.countryCode,cart:this.cart,discountCodes:this.discountCodes}});return this.transactionId=o.transactionId,this.chainId=o.chainId,this.userId=o.beamUserId,this.nonprofitId=o.nonprofitId,this.nonprofitId&&(this.activeWidget="impact-overview"),this.localStorage.removeItem("transaction"),this.localStorage.removeItem("cart"),o},this.transactionDataController=new C(this,this.handlePostTransaction)}firstUpdated(o){m(h,this),this.nonprofitId=Number(this.localStorage.getItem("nonprofit"))||null,this.selectionId=this.localStorage.getItem("transaction")||null,this.cartId=this.localStorage.getItemJson("cart")?.cartId||null,this.beamCartId=y(U)||null,this.selectionId&&this.nonprofitId&&(this.activeWidget="impact-overview")}async updated(o){[...h,...A].some(i=>o.has(i))&&await this.transactionDataController.exec()}render(){return this.transactionDataController.loading?"":this.transactionDataController.error?this.debug?b({error:this.transactionDataController.error}):"":this.activeWidget==="redeem-transaction"?l`
1
+ import{f as r,t as a,g as I,y as l}from"../chunks/lit-h1W25hjN.esm.js";import{a as y}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as u,d as g,e as m,A as C,_ as b}from"../chunks/localize-e-mss8ya.esm.js";import{c as f}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{D as v,g as $,a as S}from"../chunks/routes-Xnsh4jsO.esm.js";import"./redeem-transaction.esm.js";import"./impact-overview.esm.js";import{B as U}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";var w=Object.defineProperty,K=Object.getOwnPropertyDescriptor,e=(d,o,i,n)=>{for(var s=n>1?void 0:n?K(o,i):o,p=d.length-1,c;p>=0;p--)(c=d[p])&&(s=(n?c(o,i,s):c(s))||s);return n&&s&&w(o,i,s),s};const h=["baseUrl","apiKey","orderId","email","cartTotal","currencyCode","lang"],A=["storeId","postalCode","countryCode","cart","discountCodes"];class t extends I{constructor(){super(...arguments),this.baseUrl=v,this.currencyCode="USD",this.lang="en",this.debug=!1,this.activeWidget="redeem-transaction",this.nonprofitId=null,this.selectionId=null,this.cartId=null,this.beamCartId=null,this.userId=null,this.transactionId=null,this.chainId=null,this.localStorage=f(this),this.handlePostTransaction=async()=>{if(m(h,this),!this.storeId&&this.postalCode&&this.countryCode){const i=await $({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{postalCode:this.postalCode,countryCode:this.countryCode,widgetName:"redeem-transaction",version:"1.0.0"}});this.storeId=i.store?.id}const o=await S({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:this.nonprofitId??void 0,selectionId:this.selectionId??void 0,cartId:this.cartId??void 0,beamCartId:this.beamCartId??void 0,storeId:this.storeId,orderId:this.orderId,cartTotal:this.cartTotal,email:this.email,currencyCode:this.currencyCode,postalCode:this.postalCode,countryCode:this.countryCode,cart:this.cart,discountCodes:this.discountCodes}});return this.transactionId=o.transactionId,this.chainId=o.chainId,this.userId=o.beamUserId,this.nonprofitId=o.nonprofitId,this.nonprofitId&&(this.activeWidget="impact-overview"),this.localStorage.removeItem("transaction"),this.localStorage.removeItem("cart"),o},this.transactionDataController=new C(this,this.handlePostTransaction)}firstUpdated(o){m(h,this),this.nonprofitId=Number(this.localStorage.getItem("nonprofit"))||null,this.selectionId=this.localStorage.getItem("transaction")||null,this.cartId=this.localStorage.getItemJson("cart")?.cartId||null,this.beamCartId=y(U)||null,this.selectionId&&this.nonprofitId&&(this.activeWidget="impact-overview")}async updated(o){[...h,...A].some(i=>o.has(i))&&await this.transactionDataController.exec()}render(){return this.transactionDataController.loading?"":this.transactionDataController.error?this.debug?b({error:this.transactionDataController.error}):"":this.activeWidget==="redeem-transaction"?l`
2
2
  <beam-redeem-transaction
3
3
  part="redeem-transaction"
4
4
  baseUrl="${this.baseUrl}"
@@ -1,4 +1,4 @@
1
- import{f as r,t as a,g as I,y as l}from"../chunks/lit-h1W25hjN.esm.js";import{a as y}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as u,d as g,e as m,A as C,_ as b}from"../chunks/localize-e-mss8ya.esm.js";import{c as f}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{D as v,g as $,a as S}from"../chunks/routes-4-ftNnBE.esm.js";import"./redeem-transaction.js";import"./impact-overview.js";import{B as U}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";var w=Object.defineProperty,K=Object.getOwnPropertyDescriptor,e=(d,o,i,n)=>{for(var s=n>1?void 0:n?K(o,i):o,p=d.length-1,c;p>=0;p--)(c=d[p])&&(s=(n?c(o,i,s):c(s))||s);return n&&s&&w(o,i,s),s};const h=["baseUrl","apiKey","orderId","email","cartTotal","currencyCode","lang"],A=["storeId","postalCode","countryCode","cart","discountCodes"];class t extends I{constructor(){super(...arguments),this.baseUrl=v,this.currencyCode="USD",this.lang="en",this.debug=!1,this.activeWidget="redeem-transaction",this.nonprofitId=null,this.selectionId=null,this.cartId=null,this.beamCartId=null,this.userId=null,this.transactionId=null,this.chainId=null,this.localStorage=f(this),this.handlePostTransaction=async()=>{if(m(h,this),!this.storeId&&this.postalCode&&this.countryCode){const i=await $({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{postalCode:this.postalCode,countryCode:this.countryCode,widgetName:"redeem-transaction",version:"1.0.0"}});this.storeId=i.store?.id}const o=await S({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:this.nonprofitId??void 0,selectionId:this.selectionId??void 0,cartId:this.cartId??void 0,beamCartId:this.beamCartId??void 0,storeId:this.storeId,orderId:this.orderId,cartTotal:this.cartTotal,email:this.email,currencyCode:this.currencyCode,postalCode:this.postalCode,countryCode:this.countryCode,cart:this.cart,discountCodes:this.discountCodes}});return this.transactionId=o.transactionId,this.chainId=o.chainId,this.userId=o.beamUserId,this.nonprofitId=o.nonprofitId,this.nonprofitId&&(this.activeWidget="impact-overview"),this.localStorage.removeItem("transaction"),this.localStorage.removeItem("cart"),o},this.transactionDataController=new C(this,this.handlePostTransaction)}firstUpdated(o){m(h,this),this.nonprofitId=Number(this.localStorage.getItem("nonprofit"))||null,this.selectionId=this.localStorage.getItem("transaction")||null,this.cartId=this.localStorage.getItemJson("cart")?.cartId||null,this.beamCartId=y(U)||null,this.selectionId&&this.nonprofitId&&(this.activeWidget="impact-overview")}async updated(o){[...h,...A].some(i=>o.has(i))&&await this.transactionDataController.exec()}render(){return this.transactionDataController.loading?"":this.transactionDataController.error?this.debug?b({error:this.transactionDataController.error}):"":this.activeWidget==="redeem-transaction"?l`
1
+ import{f as r,t as a,g as I,y as l}from"../chunks/lit-h1W25hjN.esm.js";import{a as y}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as u,d as g,e as m,A as C,_ as b}from"../chunks/localize-e-mss8ya.esm.js";import{c as f}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{D as v,g as $,a as S}from"../chunks/routes-Xnsh4jsO.esm.js";import"./redeem-transaction.js";import"./impact-overview.js";import{B as U}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";var w=Object.defineProperty,K=Object.getOwnPropertyDescriptor,e=(d,o,i,n)=>{for(var s=n>1?void 0:n?K(o,i):o,p=d.length-1,c;p>=0;p--)(c=d[p])&&(s=(n?c(o,i,s):c(s))||s);return n&&s&&w(o,i,s),s};const h=["baseUrl","apiKey","orderId","email","cartTotal","currencyCode","lang"],A=["storeId","postalCode","countryCode","cart","discountCodes"];class t extends I{constructor(){super(...arguments),this.baseUrl=v,this.currencyCode="USD",this.lang="en",this.debug=!1,this.activeWidget="redeem-transaction",this.nonprofitId=null,this.selectionId=null,this.cartId=null,this.beamCartId=null,this.userId=null,this.transactionId=null,this.chainId=null,this.localStorage=f(this),this.handlePostTransaction=async()=>{if(m(h,this),!this.storeId&&this.postalCode&&this.countryCode){const i=await $({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},queryParams:{postalCode:this.postalCode,countryCode:this.countryCode,widgetName:"redeem-transaction",version:"1.0.0"}});this.storeId=i.store?.id}const o=await S({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:this.nonprofitId??void 0,selectionId:this.selectionId??void 0,cartId:this.cartId??void 0,beamCartId:this.beamCartId??void 0,storeId:this.storeId,orderId:this.orderId,cartTotal:this.cartTotal,email:this.email,currencyCode:this.currencyCode,postalCode:this.postalCode,countryCode:this.countryCode,cart:this.cart,discountCodes:this.discountCodes}});return this.transactionId=o.transactionId,this.chainId=o.chainId,this.userId=o.beamUserId,this.nonprofitId=o.nonprofitId,this.nonprofitId&&(this.activeWidget="impact-overview"),this.localStorage.removeItem("transaction"),this.localStorage.removeItem("cart"),o},this.transactionDataController=new C(this,this.handlePostTransaction)}firstUpdated(o){m(h,this),this.nonprofitId=Number(this.localStorage.getItem("nonprofit"))||null,this.selectionId=this.localStorage.getItem("transaction")||null,this.cartId=this.localStorage.getItemJson("cart")?.cartId||null,this.beamCartId=y(U)||null,this.selectionId&&this.nonprofitId&&(this.activeWidget="impact-overview")}async updated(o){[...h,...A].some(i=>o.has(i))&&await this.transactionDataController.exec()}render(){return this.transactionDataController.loading?"":this.transactionDataController.error?this.debug?b({error:this.transactionDataController.error}):"":this.activeWidget==="redeem-transaction"?l`
2
2
  <beam-redeem-transaction
3
3
  part="redeem-transaction"
4
4
  baseUrl="${this.baseUrl}"
@@ -62,7 +62,7 @@ declare class BeamRedeemTransaction extends LitElement {
62
62
  static styles: lit.CSSResult[];
63
63
  private handleChooseClick;
64
64
  get shouldCollapse(): boolean;
65
- protected render(): "" | lit_html.TemplateResult<1>;
65
+ protected render(): lit_html.TemplateResult<1> | "";
66
66
  }
67
67
  declare global {
68
68
  interface HTMLElementTagNameMap {
@@ -1,4 +1,4 @@
1
- import{y as m,m as y,h as S,f as c,t as k,g as $,q as v,p as z,k as D}from"../chunks/lit-h1W25hjN.esm.js";import{d as N}from"../chunks/lodash-ZxBiuGue.esm.js";import{c as I,u,d as L,e as x,A as B,b as h,f as E,a as W,_ as R,i as p}from"../chunks/localize-e-mss8ya.esm.js";import{D as U,c as P,e as A,S as M}from"../chunks/routes-4-ftNnBE.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{partnerLogosConfigDefaults as j}from"./beam-partner-logos.esm.js";import{B as O}from"../chunks/beam-errors-l02WBee5.esm.js";import{c as K}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{c as _}from"../chunks/css-card-grid-RRkoiUTl.esm.js";import{a as V}from"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";const H=({height:i="1em",width:e="1em"}={})=>m`
1
+ import{y as m,m as y,h as S,f as c,t as k,g as $,q as v,p as z,k as D}from"../chunks/lit-h1W25hjN.esm.js";import{d as N}from"../chunks/lodash-ZxBiuGue.esm.js";import{c as I,u,d as L,e as x,A as B,b as h,f as E,a as W,_ as R,i as p}from"../chunks/localize-e-mss8ya.esm.js";import{D as U,c as P,e as A,S as M}from"../chunks/routes-Xnsh4jsO.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{partnerLogosConfigDefaults as j}from"./beam-partner-logos.esm.js";import{B as O}from"../chunks/beam-errors-l02WBee5.esm.js";import{c as K}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{c as _}from"../chunks/css-card-grid-RRkoiUTl.esm.js";import{a as V}from"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";const H=({height:i="1em",width:e="1em"}={})=>m`
2
2
  <svg
3
3
  style="${y({height:i,width:e,position:"relative",bottom:"0"})}"
4
4
  xmlns="http://www.w3.org/2000/svg"
@@ -1,4 +1,4 @@
1
- import{y as m,m as y,h as S,f as c,t as k,g as $,q as v,p as z,k as D}from"../chunks/lit-h1W25hjN.esm.js";import{d as N}from"../chunks/lodash-ZxBiuGue.esm.js";import{c as I,u,d as L,e as x,A as B,b as h,f as E,a as W,_ as R,i as p}from"../chunks/localize-e-mss8ya.esm.js";import{D as U,c as P,e as A,S as M}from"../chunks/routes-4-ftNnBE.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{partnerLogosConfigDefaults as j}from"./beam-partner-logos.js";import{B as O}from"../chunks/beam-errors-l02WBee5.esm.js";import{c as K}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{c as _}from"../chunks/css-card-grid-RRkoiUTl.esm.js";import{a as V}from"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";const H=({height:i="1em",width:e="1em"}={})=>m`
1
+ import{y as m,m as y,h as S,f as c,t as k,g as $,q as v,p as z,k as D}from"../chunks/lit-h1W25hjN.esm.js";import{d as N}from"../chunks/lodash-ZxBiuGue.esm.js";import{c as I,u,d as L,e as x,A as B,b as h,f as E,a as W,_ as R,i as p}from"../chunks/localize-e-mss8ya.esm.js";import{D as U,c as P,e as A,S as M}from"../chunks/routes-Xnsh4jsO.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{partnerLogosConfigDefaults as j}from"./beam-partner-logos.js";import{B as O}from"../chunks/beam-errors-l02WBee5.esm.js";import{c as K}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{c as _}from"../chunks/css-card-grid-RRkoiUTl.esm.js";import{a as V}from"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";const H=({height:i="1em",width:e="1em"}={})=>m`
2
2
  <svg
3
3
  style="${y({height:i,width:e,position:"relative",bottom:"0"})}"
4
4
  xmlns="http://www.w3.org/2000/svg"
@@ -57,7 +57,7 @@ declare class BeamSelectNonprofit extends LitElement {
57
57
  private makeHandleSelect;
58
58
  get cssVariables(): any;
59
59
  static styles: lit.CSSResult[];
60
- protected render(): "" | lit_html.TemplateResult<1>;
60
+ protected render(): lit_html.TemplateResult<1> | "";
61
61
  }
62
62
  declare global {
63
63
  interface HTMLElementTagNameMap {
@@ -1,4 +1,4 @@
1
- import{h as x,f as l,g as w,y as b,p as k,m as z,k as $}from"../chunks/lit-h1W25hjN.esm.js";import{c as L,u as m,d as D,e as u,A as S,b as p,f as A,a as E,_ as y,i as d}from"../chunks/localize-e-mss8ya.esm.js";import{D as T,c as B,d as P,S as U}from"../chunks/routes-4-ftNnBE.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as W}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{a as N,B as C}from"../chunks/events-rRSQYdP1.esm.js";import{a as v}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as M}from"../chunks/responsive-Rehmv-eo.esm.js";import{B as O}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";const h={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaMessage:({donationPercentage:r="1"}={})=>`Select a nonprofit and ${r}% of your purchase will be donated, at no extra cost.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaMessage:({donationPercentage:r="1"}={})=>`Choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom, sans frais suppl\xE9mentaires.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaMessage:({donationPercentage:r="1"}={})=>`W\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs ohne zus\xE4tzliche Kosten`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaMessage:({donationPercentage:r="1"}={})=>`Elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra sin coste adicional.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaMessage:({donationPercentage:r="1"}={})=>`Seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto, senza costi aggiuntivi`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaMessage:({donationPercentage:r="1"}={})=>`Wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w \u2013 bez \u017Cadnych dodatkowych koszt\xF3w!`,inlineSeparator:()=>": "}};var R=Object.defineProperty,K=Object.getOwnPropertyDescriptor,c=(r,t,e,i)=>{for(var n=i>1?void 0:i?K(t,e):t,a=r.length-1,o;a>=0;a--)(o=r[a])&&(n=(i?o(t,e,n):o(n))||n);return i&&n&&R(t,e,n),n};class s extends w{constructor(){super(...arguments),this.baseUrl=T,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.enableNonprofitDeselection=!1,this.getChainNonprofits=async()=>{u(["apiKey","chainId"],this);const t=this.cart?.schema?{schema:this.cart?.schema,content:this.cart?.content}:void 0,e=await B({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{chainId:this.chainId,storeId:this.storeId,widgetName:"select-nonprofit",postalCode:this.postalCode,countryCode:this.countryCode,version:"1.0.0",lang:this.configLang,cart:t}});return this.enableNonprofitDeselection=!!e.config.enableNonprofitDeselection,this.selectedNonprofitId&&!e.nonprofits.map(i=>i.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:null}))),e.store?.id&&e.store.id!==this.storeId&&(this.storeId=e.store.id),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:e}),e},this.postSelectNonprofit=async({selectedNonprofitId:t})=>{u(["apiKey","chainId","storeId"],this);const e=this.getExternalCartId(),i=this.getBeamCartId(),n=await P({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:t,selectionId:this.selectionId,storeId:this.storeId,cartId:e,beamCartId:i}});this.selectionId=n?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",t),await this.updateComplete;const a=this.getNonprofitById(t);this.dispatchEvent(new N({selectedNonprofitId:t,selectionId:this.selectionId,nonprofitName:a?.nonprofit?.name}))},this.nonprofitListDataController=new S(this,this.getChainNonprofits),this.selectionDataController=new S(this,this.postSelectNonprofit),this.localStorage=W(this),this.handleCartChange=t=>{this.cart=t.detail},this.makeHandleSelect=(t,e,i)=>async n=>{const a=this.selectedNonprofitId;if(n instanceof KeyboardEvent){let o=null;switch(n.key){case"ArrowUp":case"ArrowLeft":e===0?o=i[i.length-1]:o=i[e-1],n.preventDefault();break;case"ArrowRight":case"ArrowDown":e===i.length-1?o=i[0]:o=i[e+1],n.preventDefault();break;case"Enter":case" ":n.preventDefault();break;default:return}if(o){a!=null&&(this.selectedNonprofitId=o.nonprofit.id);const f=this.renderRoot.querySelector(`[data-value="${o.nonprofit.id}"]`);f!==null&&(f.tabIndex=0,f.focus());return}}if(n.currentTarget instanceof HTMLElement)if(a===t)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null;else return;else this.selectedNonprofitId=t;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})}}get configLang(){return U[this.lang]||"en"}getNonprofitById(t){return t?this.nonprofitListDataController?.data?.nonprofits.find(e=>e.nonprofit.id===t):null}connectedCallback(){super.connectedCallback(),window.addEventListener(C.eventName,this.handleCartChange)}async firstUpdated(t){await this.restoreStateFromCache()}async updated(t){const e=["chainId","baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang"];for(const i of e)if(t.has(i)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(C.eventName,this.handleCartChange),super.disconnectedCallback()}getExternalCartId(){return this.localStorage.getItemJson("cart")?.cartId??v("cart")}getBeamCartId(){return v(O)}async restoreStateFromCache(){u(["apiKey","chainId","storeId"],this);try{this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0,this.cart=this.localStorage.getItemJson("cart")??void 0;const{createdAt:t=0,data:e}=this.localStorage.getItemJson("chainNonprofits")||{},i=2*60*60*1e3;if(new Date(t).valueOf()+i>new Date().valueOf()&&(this.nonprofitListDataController.data=e,this.nonprofitListDataController.loading=!1),this.selectedNonprofitId&&!this.selectionId&&await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId}),this.selectedNonprofitId){const n=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:n?.nonprofit?.name}))}}catch{}}get cssVariables(){const t={"--beam-fontFamily":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...F,"--beam-SelectNonprofit-title-textAlign":"inherit","--beam-SelectNonprofit-description-textAlign":"inherit","--beam-SelectNonprofit-maxWidth":"800px","--beam-SelectNonprofit-options-marginTop":"0px","--beam-SelectNonprofit-options-iconHeight":"24px","--beam-SelectNonprofit-options-padding":"10px","--beam-SelectNonprofit-options-borderRadius":"0px","--beam-SelectNonprofit-options-borderColor":"currentColor","--beam-SelectNonprofit-options--selected-borderColor":"currentColor","--beam-SelectNonprofit-options-backgroundColor":"transparent","--beam-SelectNonprofit-options-gap":"8px","--beam-SelectNonprofit-options--selected-backgroundColor":"currentColor","--beam-SelectNonprofit-details-marginTop":"10px","--beam-SelectNonprofit-details-borderRadius":"0px","--beam-SelectNonprofit-details-borderColor":"currentColor","--beam-SelectNonprofit-details-backgroundColor":"inherit",...p("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none",...p("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...p("--beam-SelectNonprofit-description-inline"),...p("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...p("--beam-SelectNonprofit-details-impactDescription",{fontSize:"1em",marginTop:"10px"}),"--beam-SelectNonprofit-details-nonprofitName-fontWeight":"bold","--beam-SelectNonprofit-details-nonprofitName-fontStyle":"inherit","--beam-SelectNonprofit-details-fundingProgress-marginTop":"10px",...p("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"})},e=this.nonprofitListDataController?.data?.config?.web?.theme||{},i={...t,...e};return Object.assign(Object.create({toCSS(){return A(this)}}),i)}render(){const{selectedNonprofitId:t}=this,{data:e,loading:i}=this.nonprofitListDataController;if(i&&!e)return E();if(this.nonprofitListDataController.error)return this.debug?y({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return y({error:this.selectionDataController.error});const n=e?.nonprofits||[],a=n.find(o=>o.nonprofit.id===t)||null;return b`
1
+ import{h as x,f as l,g as w,y as b,p as k,m as z,k as $}from"../chunks/lit-h1W25hjN.esm.js";import{c as L,u as m,d as D,e as u,A as S,b as p,f as A,a as E,_ as y,i as d}from"../chunks/localize-e-mss8ya.esm.js";import{D as T,c as B,d as P,S as U}from"../chunks/routes-Xnsh4jsO.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as W}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{a as N,B as C}from"../chunks/events-rRSQYdP1.esm.js";import{a as v}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as M}from"../chunks/responsive-Rehmv-eo.esm.js";import{B as O}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";const h={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaMessage:({donationPercentage:r="1"}={})=>`Select a nonprofit and ${r}% of your purchase will be donated, at no extra cost.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaMessage:({donationPercentage:r="1"}={})=>`Choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom, sans frais suppl\xE9mentaires.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaMessage:({donationPercentage:r="1"}={})=>`W\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs ohne zus\xE4tzliche Kosten`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaMessage:({donationPercentage:r="1"}={})=>`Elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra sin coste adicional.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaMessage:({donationPercentage:r="1"}={})=>`Seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto, senza costi aggiuntivi`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaMessage:({donationPercentage:r="1"}={})=>`Wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w \u2013 bez \u017Cadnych dodatkowych koszt\xF3w!`,inlineSeparator:()=>": "}};var R=Object.defineProperty,K=Object.getOwnPropertyDescriptor,c=(r,t,e,i)=>{for(var n=i>1?void 0:i?K(t,e):t,a=r.length-1,o;a>=0;a--)(o=r[a])&&(n=(i?o(t,e,n):o(n))||n);return i&&n&&R(t,e,n),n};class s extends w{constructor(){super(...arguments),this.baseUrl=T,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.enableNonprofitDeselection=!1,this.getChainNonprofits=async()=>{u(["apiKey","chainId"],this);const t=this.cart?.schema?{schema:this.cart?.schema,content:this.cart?.content}:void 0,e=await B({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{chainId:this.chainId,storeId:this.storeId,widgetName:"select-nonprofit",postalCode:this.postalCode,countryCode:this.countryCode,version:"1.0.0",lang:this.configLang,cart:t}});return this.enableNonprofitDeselection=!!e.config.enableNonprofitDeselection,this.selectedNonprofitId&&!e.nonprofits.map(i=>i.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:null}))),e.store?.id&&e.store.id!==this.storeId&&(this.storeId=e.store.id),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:e}),e},this.postSelectNonprofit=async({selectedNonprofitId:t})=>{u(["apiKey","chainId","storeId"],this);const e=this.getExternalCartId(),i=this.getBeamCartId(),n=await P({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:t,selectionId:this.selectionId,storeId:this.storeId,cartId:e,beamCartId:i}});this.selectionId=n?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",t),await this.updateComplete;const a=this.getNonprofitById(t);this.dispatchEvent(new N({selectedNonprofitId:t,selectionId:this.selectionId,nonprofitName:a?.nonprofit?.name}))},this.nonprofitListDataController=new S(this,this.getChainNonprofits),this.selectionDataController=new S(this,this.postSelectNonprofit),this.localStorage=W(this),this.handleCartChange=t=>{this.cart=t.detail},this.makeHandleSelect=(t,e,i)=>async n=>{const a=this.selectedNonprofitId;if(n instanceof KeyboardEvent){let o=null;switch(n.key){case"ArrowUp":case"ArrowLeft":e===0?o=i[i.length-1]:o=i[e-1],n.preventDefault();break;case"ArrowRight":case"ArrowDown":e===i.length-1?o=i[0]:o=i[e+1],n.preventDefault();break;case"Enter":case" ":n.preventDefault();break;default:return}if(o){a!=null&&(this.selectedNonprofitId=o.nonprofit.id);const f=this.renderRoot.querySelector(`[data-value="${o.nonprofit.id}"]`);f!==null&&(f.tabIndex=0,f.focus());return}}if(n.currentTarget instanceof HTMLElement)if(a===t)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null;else return;else this.selectedNonprofitId=t;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})}}get configLang(){return U[this.lang]||"en"}getNonprofitById(t){return t?this.nonprofitListDataController?.data?.nonprofits.find(e=>e.nonprofit.id===t):null}connectedCallback(){super.connectedCallback(),window.addEventListener(C.eventName,this.handleCartChange)}async firstUpdated(t){await this.restoreStateFromCache()}async updated(t){const e=["chainId","baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang"];for(const i of e)if(t.has(i)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(C.eventName,this.handleCartChange),super.disconnectedCallback()}getExternalCartId(){return this.localStorage.getItemJson("cart")?.cartId??v("cart")}getBeamCartId(){return v(O)}async restoreStateFromCache(){u(["apiKey","chainId","storeId"],this);try{this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0,this.cart=this.localStorage.getItemJson("cart")??void 0;const{createdAt:t=0,data:e}=this.localStorage.getItemJson("chainNonprofits")||{},i=2*60*60*1e3;if(new Date(t).valueOf()+i>new Date().valueOf()&&(this.nonprofitListDataController.data=e,this.nonprofitListDataController.loading=!1),this.selectedNonprofitId&&!this.selectionId&&await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId}),this.selectedNonprofitId){const n=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:n?.nonprofit?.name}))}}catch{}}get cssVariables(){const t={"--beam-fontFamily":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...F,"--beam-SelectNonprofit-title-textAlign":"inherit","--beam-SelectNonprofit-description-textAlign":"inherit","--beam-SelectNonprofit-maxWidth":"800px","--beam-SelectNonprofit-options-marginTop":"0px","--beam-SelectNonprofit-options-iconHeight":"24px","--beam-SelectNonprofit-options-padding":"10px","--beam-SelectNonprofit-options-borderRadius":"0px","--beam-SelectNonprofit-options-borderColor":"currentColor","--beam-SelectNonprofit-options--selected-borderColor":"currentColor","--beam-SelectNonprofit-options-backgroundColor":"transparent","--beam-SelectNonprofit-options-gap":"8px","--beam-SelectNonprofit-options--selected-backgroundColor":"currentColor","--beam-SelectNonprofit-details-marginTop":"10px","--beam-SelectNonprofit-details-borderRadius":"0px","--beam-SelectNonprofit-details-borderColor":"currentColor","--beam-SelectNonprofit-details-backgroundColor":"inherit",...p("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none",...p("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...p("--beam-SelectNonprofit-description-inline"),...p("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...p("--beam-SelectNonprofit-details-impactDescription",{fontSize:"1em",marginTop:"10px"}),"--beam-SelectNonprofit-details-nonprofitName-fontWeight":"bold","--beam-SelectNonprofit-details-nonprofitName-fontStyle":"inherit","--beam-SelectNonprofit-details-fundingProgress-marginTop":"10px",...p("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"})},e=this.nonprofitListDataController?.data?.config?.web?.theme||{},i={...t,...e};return Object.assign(Object.create({toCSS(){return A(this)}}),i)}render(){const{selectedNonprofitId:t}=this,{data:e,loading:i}=this.nonprofitListDataController;if(i&&!e)return E();if(this.nonprofitListDataController.error)return this.debug?y({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return y({error:this.selectionDataController.error});const n=e?.nonprofits||[],a=n.find(o=>o.nonprofit.id===t)||null;return b`
2
2
  <style>
3
3
  :host {
4
4
  ${this.cssVariables.toCSS()}
@@ -1,4 +1,4 @@
1
- import{h as x,f as l,g as w,y as b,p as k,m as z,k as $}from"../chunks/lit-h1W25hjN.esm.js";import{c as L,u as m,d as D,e as u,A as S,b as p,f as A,a as E,_ as y,i as d}from"../chunks/localize-e-mss8ya.esm.js";import{D as T,c as B,d as P,S as U}from"../chunks/routes-4-ftNnBE.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as W}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{a as N,B as C}from"../chunks/events-rRSQYdP1.esm.js";import{a as v}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as M}from"../chunks/responsive-Rehmv-eo.esm.js";import{B as O}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";const h={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaMessage:({donationPercentage:r="1"}={})=>`Select a nonprofit and ${r}% of your purchase will be donated, at no extra cost.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaMessage:({donationPercentage:r="1"}={})=>`Choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom, sans frais suppl\xE9mentaires.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaMessage:({donationPercentage:r="1"}={})=>`W\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs ohne zus\xE4tzliche Kosten`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaMessage:({donationPercentage:r="1"}={})=>`Elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra sin coste adicional.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaMessage:({donationPercentage:r="1"}={})=>`Seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto, senza costi aggiuntivi`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaMessage:({donationPercentage:r="1"}={})=>`Wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w \u2013 bez \u017Cadnych dodatkowych koszt\xF3w!`,inlineSeparator:()=>": "}};var R=Object.defineProperty,K=Object.getOwnPropertyDescriptor,c=(r,t,e,i)=>{for(var n=i>1?void 0:i?K(t,e):t,a=r.length-1,o;a>=0;a--)(o=r[a])&&(n=(i?o(t,e,n):o(n))||n);return i&&n&&R(t,e,n),n};class s extends w{constructor(){super(...arguments),this.baseUrl=T,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.enableNonprofitDeselection=!1,this.getChainNonprofits=async()=>{u(["apiKey","chainId"],this);const t=this.cart?.schema?{schema:this.cart?.schema,content:this.cart?.content}:void 0,e=await B({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{chainId:this.chainId,storeId:this.storeId,widgetName:"select-nonprofit",postalCode:this.postalCode,countryCode:this.countryCode,version:"1.0.0",lang:this.configLang,cart:t}});return this.enableNonprofitDeselection=!!e.config.enableNonprofitDeselection,this.selectedNonprofitId&&!e.nonprofits.map(i=>i.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:null}))),e.store?.id&&e.store.id!==this.storeId&&(this.storeId=e.store.id),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:e}),e},this.postSelectNonprofit=async({selectedNonprofitId:t})=>{u(["apiKey","chainId","storeId"],this);const e=this.getExternalCartId(),i=this.getBeamCartId(),n=await P({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:t,selectionId:this.selectionId,storeId:this.storeId,cartId:e,beamCartId:i}});this.selectionId=n?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",t),await this.updateComplete;const a=this.getNonprofitById(t);this.dispatchEvent(new N({selectedNonprofitId:t,selectionId:this.selectionId,nonprofitName:a?.nonprofit?.name}))},this.nonprofitListDataController=new S(this,this.getChainNonprofits),this.selectionDataController=new S(this,this.postSelectNonprofit),this.localStorage=W(this),this.handleCartChange=t=>{this.cart=t.detail},this.makeHandleSelect=(t,e,i)=>async n=>{const a=this.selectedNonprofitId;if(n instanceof KeyboardEvent){let o=null;switch(n.key){case"ArrowUp":case"ArrowLeft":e===0?o=i[i.length-1]:o=i[e-1],n.preventDefault();break;case"ArrowRight":case"ArrowDown":e===i.length-1?o=i[0]:o=i[e+1],n.preventDefault();break;case"Enter":case" ":n.preventDefault();break;default:return}if(o){a!=null&&(this.selectedNonprofitId=o.nonprofit.id);const f=this.renderRoot.querySelector(`[data-value="${o.nonprofit.id}"]`);f!==null&&(f.tabIndex=0,f.focus());return}}if(n.currentTarget instanceof HTMLElement)if(a===t)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null;else return;else this.selectedNonprofitId=t;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})}}get configLang(){return U[this.lang]||"en"}getNonprofitById(t){return t?this.nonprofitListDataController?.data?.nonprofits.find(e=>e.nonprofit.id===t):null}connectedCallback(){super.connectedCallback(),window.addEventListener(C.eventName,this.handleCartChange)}async firstUpdated(t){await this.restoreStateFromCache()}async updated(t){const e=["chainId","baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang"];for(const i of e)if(t.has(i)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(C.eventName,this.handleCartChange),super.disconnectedCallback()}getExternalCartId(){return this.localStorage.getItemJson("cart")?.cartId??v("cart")}getBeamCartId(){return v(O)}async restoreStateFromCache(){u(["apiKey","chainId","storeId"],this);try{this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0,this.cart=this.localStorage.getItemJson("cart")??void 0;const{createdAt:t=0,data:e}=this.localStorage.getItemJson("chainNonprofits")||{},i=2*60*60*1e3;if(new Date(t).valueOf()+i>new Date().valueOf()&&(this.nonprofitListDataController.data=e,this.nonprofitListDataController.loading=!1),this.selectedNonprofitId&&!this.selectionId&&await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId}),this.selectedNonprofitId){const n=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:n?.nonprofit?.name}))}}catch{}}get cssVariables(){const t={"--beam-fontFamily":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...F,"--beam-SelectNonprofit-title-textAlign":"inherit","--beam-SelectNonprofit-description-textAlign":"inherit","--beam-SelectNonprofit-maxWidth":"800px","--beam-SelectNonprofit-options-marginTop":"0px","--beam-SelectNonprofit-options-iconHeight":"24px","--beam-SelectNonprofit-options-padding":"10px","--beam-SelectNonprofit-options-borderRadius":"0px","--beam-SelectNonprofit-options-borderColor":"currentColor","--beam-SelectNonprofit-options--selected-borderColor":"currentColor","--beam-SelectNonprofit-options-backgroundColor":"transparent","--beam-SelectNonprofit-options-gap":"8px","--beam-SelectNonprofit-options--selected-backgroundColor":"currentColor","--beam-SelectNonprofit-details-marginTop":"10px","--beam-SelectNonprofit-details-borderRadius":"0px","--beam-SelectNonprofit-details-borderColor":"currentColor","--beam-SelectNonprofit-details-backgroundColor":"inherit",...p("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none",...p("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...p("--beam-SelectNonprofit-description-inline"),...p("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...p("--beam-SelectNonprofit-details-impactDescription",{fontSize:"1em",marginTop:"10px"}),"--beam-SelectNonprofit-details-nonprofitName-fontWeight":"bold","--beam-SelectNonprofit-details-nonprofitName-fontStyle":"inherit","--beam-SelectNonprofit-details-fundingProgress-marginTop":"10px",...p("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"})},e=this.nonprofitListDataController?.data?.config?.web?.theme||{},i={...t,...e};return Object.assign(Object.create({toCSS(){return A(this)}}),i)}render(){const{selectedNonprofitId:t}=this,{data:e,loading:i}=this.nonprofitListDataController;if(i&&!e)return E();if(this.nonprofitListDataController.error)return this.debug?y({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return y({error:this.selectionDataController.error});const n=e?.nonprofits||[],a=n.find(o=>o.nonprofit.id===t)||null;return b`
1
+ import{h as x,f as l,g as w,y as b,p as k,m as z,k as $}from"../chunks/lit-h1W25hjN.esm.js";import{c as L,u as m,d as D,e as u,A as S,b as p,f as A,a as E,_ as y,i as d}from"../chunks/localize-e-mss8ya.esm.js";import{D as T,c as B,d as P,S as U}from"../chunks/routes-Xnsh4jsO.esm.js";import{p as F}from"../chunks/progress-bar-w3yfrrxD.esm.js";import{c as W}from"../chunks/local-storage-Rrnk_Dg-.esm.js";import{a as N,B as C}from"../chunks/events-rRSQYdP1.esm.js";import{a as v}from"../chunks/cookies-BnIoXWd0.esm.js";import{c as M}from"../chunks/responsive-Rehmv-eo.esm.js";import{B as O}from"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";const h={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaMessage:({donationPercentage:r="1"}={})=>`Select a nonprofit and ${r}% of your purchase will be donated, at no extra cost.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaMessage:({donationPercentage:r="1"}={})=>`Choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom, sans frais suppl\xE9mentaires.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaMessage:({donationPercentage:r="1"}={})=>`W\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs ohne zus\xE4tzliche Kosten`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaMessage:({donationPercentage:r="1"}={})=>`Elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra sin coste adicional.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaMessage:({donationPercentage:r="1"}={})=>`Seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto, senza costi aggiuntivi`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaMessage:({donationPercentage:r="1"}={})=>`Wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w \u2013 bez \u017Cadnych dodatkowych koszt\xF3w!`,inlineSeparator:()=>": "}};var R=Object.defineProperty,K=Object.getOwnPropertyDescriptor,c=(r,t,e,i)=>{for(var n=i>1?void 0:i?K(t,e):t,a=r.length-1,o;a>=0;a--)(o=r[a])&&(n=(i?o(t,e,n):o(n))||n);return i&&n&&R(t,e,n),n};class s extends w{constructor(){super(...arguments),this.baseUrl=T,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.enableNonprofitDeselection=!1,this.getChainNonprofits=async()=>{u(["apiKey","chainId"],this);const t=this.cart?.schema?{schema:this.cart?.schema,content:this.cart?.content}:void 0,e=await B({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{chainId:this.chainId,storeId:this.storeId,widgetName:"select-nonprofit",postalCode:this.postalCode,countryCode:this.countryCode,version:"1.0.0",lang:this.configLang,cart:t}});return this.enableNonprofitDeselection=!!e.config.enableNonprofitDeselection,this.selectedNonprofitId&&!e.nonprofits.map(i=>i.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:null}))),e.store?.id&&e.store.id!==this.storeId&&(this.storeId=e.store.id),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:e}),e},this.postSelectNonprofit=async({selectedNonprofitId:t})=>{u(["apiKey","chainId","storeId"],this);const e=this.getExternalCartId(),i=this.getBeamCartId(),n=await P({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:t,selectionId:this.selectionId,storeId:this.storeId,cartId:e,beamCartId:i}});this.selectionId=n?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",t),await this.updateComplete;const a=this.getNonprofitById(t);this.dispatchEvent(new N({selectedNonprofitId:t,selectionId:this.selectionId,nonprofitName:a?.nonprofit?.name}))},this.nonprofitListDataController=new S(this,this.getChainNonprofits),this.selectionDataController=new S(this,this.postSelectNonprofit),this.localStorage=W(this),this.handleCartChange=t=>{this.cart=t.detail},this.makeHandleSelect=(t,e,i)=>async n=>{const a=this.selectedNonprofitId;if(n instanceof KeyboardEvent){let o=null;switch(n.key){case"ArrowUp":case"ArrowLeft":e===0?o=i[i.length-1]:o=i[e-1],n.preventDefault();break;case"ArrowRight":case"ArrowDown":e===i.length-1?o=i[0]:o=i[e+1],n.preventDefault();break;case"Enter":case" ":n.preventDefault();break;default:return}if(o){a!=null&&(this.selectedNonprofitId=o.nonprofit.id);const f=this.renderRoot.querySelector(`[data-value="${o.nonprofit.id}"]`);f!==null&&(f.tabIndex=0,f.focus());return}}if(n.currentTarget instanceof HTMLElement)if(a===t)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null;else return;else this.selectedNonprofitId=t;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})}}get configLang(){return U[this.lang]||"en"}getNonprofitById(t){return t?this.nonprofitListDataController?.data?.nonprofits.find(e=>e.nonprofit.id===t):null}connectedCallback(){super.connectedCallback(),window.addEventListener(C.eventName,this.handleCartChange)}async firstUpdated(t){await this.restoreStateFromCache()}async updated(t){const e=["chainId","baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang"];for(const i of e)if(t.has(i)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(C.eventName,this.handleCartChange),super.disconnectedCallback()}getExternalCartId(){return this.localStorage.getItemJson("cart")?.cartId??v("cart")}getBeamCartId(){return v(O)}async restoreStateFromCache(){u(["apiKey","chainId","storeId"],this);try{this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0,this.cart=this.localStorage.getItemJson("cart")??void 0;const{createdAt:t=0,data:e}=this.localStorage.getItemJson("chainNonprofits")||{},i=2*60*60*1e3;if(new Date(t).valueOf()+i>new Date().valueOf()&&(this.nonprofitListDataController.data=e,this.nonprofitListDataController.loading=!1),this.selectedNonprofitId&&!this.selectionId&&await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId}),this.selectedNonprofitId){const n=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new N({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:n?.nonprofit?.name}))}}catch{}}get cssVariables(){const t={"--beam-fontFamily":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...F,"--beam-SelectNonprofit-title-textAlign":"inherit","--beam-SelectNonprofit-description-textAlign":"inherit","--beam-SelectNonprofit-maxWidth":"800px","--beam-SelectNonprofit-options-marginTop":"0px","--beam-SelectNonprofit-options-iconHeight":"24px","--beam-SelectNonprofit-options-padding":"10px","--beam-SelectNonprofit-options-borderRadius":"0px","--beam-SelectNonprofit-options-borderColor":"currentColor","--beam-SelectNonprofit-options--selected-borderColor":"currentColor","--beam-SelectNonprofit-options-backgroundColor":"transparent","--beam-SelectNonprofit-options-gap":"8px","--beam-SelectNonprofit-options--selected-backgroundColor":"currentColor","--beam-SelectNonprofit-details-marginTop":"10px","--beam-SelectNonprofit-details-borderRadius":"0px","--beam-SelectNonprofit-details-borderColor":"currentColor","--beam-SelectNonprofit-details-backgroundColor":"inherit",...p("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none",...p("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...p("--beam-SelectNonprofit-description-inline"),...p("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...p("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...p("--beam-SelectNonprofit-details-impactDescription",{fontSize:"1em",marginTop:"10px"}),"--beam-SelectNonprofit-details-nonprofitName-fontWeight":"bold","--beam-SelectNonprofit-details-nonprofitName-fontStyle":"inherit","--beam-SelectNonprofit-details-fundingProgress-marginTop":"10px",...p("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"})},e=this.nonprofitListDataController?.data?.config?.web?.theme||{},i={...t,...e};return Object.assign(Object.create({toCSS(){return A(this)}}),i)}render(){const{selectedNonprofitId:t}=this,{data:e,loading:i}=this.nonprofitListDataController;if(i&&!e)return E();if(this.nonprofitListDataController.error)return this.debug?y({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return y({error:this.selectionDataController.error});const n=e?.nonprofits||[],a=n.find(o=>o.nonprofit.id===t)||null;return b`
2
2
  <style>
3
3
  :host {
4
4
  ${this.cssVariables.toCSS()}
@@ -1,2 +1,2 @@
1
- import{w as t}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{i as b}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{g as r,a as o}from"../chunks/cookies-BnIoXWd0.esm.js";import{e as A}from"../chunks/events-rRSQYdP1.esm.js";import{h as L,C as O,B as P,s as T,N as W}from"../chunks/order-page-e3rXwf0K.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"./post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"./redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"./impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{L as addBeamAttributesToCart,A as events,O as getCurrentCart,b as initNetworkListeners,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart,i as utils};
1
+ import{w as t}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{i as b}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{g as r,a as o}from"../chunks/cookies-BnIoXWd0.esm.js";import{e as A}from"../chunks/events-rRSQYdP1.esm.js";import{h as L,C as O,B as P,s as T,N as W}from"../chunks/order-page-STAG2OhW.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"./post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"./redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"./impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{L as addBeamAttributesToCart,A as events,O as getCurrentCart,b as initNetworkListeners,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart,i as utils};
2
2
  //# sourceMappingURL=shopify.esm.js.map
@@ -1,2 +1,2 @@
1
- import{w as t}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{i as b}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{g as r,a as o}from"../chunks/cookies-BnIoXWd0.esm.js";import{e as A}from"../chunks/events-rRSQYdP1.esm.js";import{h as L,C as O,B as P,s as T,N as W}from"../chunks/order-page-jJ7Fju-n.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"./post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"./redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"./impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{L as addBeamAttributesToCart,A as events,O as getCurrentCart,b as initNetworkListeners,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart,i as utils};
1
+ import{w as t}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{i as b}from"../chunks/network-listeners-CEOxhlYW.esm.js";import{g as r,a as o}from"../chunks/cookies-BnIoXWd0.esm.js";import{e as A}from"../chunks/events-rRSQYdP1.esm.js";import{h as L,C as O,B as P,s as T,N as W}from"../chunks/order-page-94iMCraa.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"./post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"./redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"./beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"./impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const i={waitForElement:t,getCookieMap:r,getCookieValue:o};export{L as addBeamAttributesToCart,A as events,O as getCurrentCart,b as initNetworkListeners,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart,i as utils};
2
2
  //# sourceMappingURL=shopify.js.map
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as L}from"./chunks/index-aGYbEHXq.esm.js";import{i as N}from"./chunks/index-7Of_Yhna.esm.js";import{i as P}from"./chunks/index-K9rDxqim.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-h1W25hjN.esm.js";import"./chunks/progress-bar-w3yfrrxD.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/localize-e-mss8ya.esm.js";import"./chunks/beam-errors-l02WBee5.esm.js";import"./chunks/logger-ad87ovol.esm.js";import"./chunks/routes-4-ftNnBE.esm.js";import"./chunks/css-card-grid-RRkoiUTl.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-ZxBiuGue.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.esm.js";import"./chunks/vendor-IGhQoYCM.esm.js";import"./chunks/responsive-Rehmv-eo.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/local-storage-Rrnk_Dg-.esm.js";import"./chunks/events-rRSQYdP1.esm.js";import"./chunks/cookies-BnIoXWd0.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./components/redeem-transaction.esm.js";import"./components/post-purchase.esm.js";import"./chunks/index--XzN0d8d.esm.js";import"./chunks/network-listeners-CEOxhlYW.esm.js";import"./chunks/remote-session-mmQFfNd6.esm.js";import"./chunks/index-nT4s8BNX.esm.js";import"./chunks/order-page-e3rXwf0K.esm.js";import"./chunks/update-cart-OBbkS9J5.esm.js";import"./chunks/index-IXwIgGSV.esm.js";import"./chunks/index--GRqoHRE.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";export{N as Integrations,P as ReactComponents,L as WebComponents};
1
+ import{i as L}from"./chunks/index-aGYbEHXq.esm.js";import{i as N}from"./chunks/index-Hm4mQjnj.esm.js";import{i as P}from"./chunks/index-K9rDxqim.esm.js";import"./components/community-impact.esm.js";import"./chunks/lit-h1W25hjN.esm.js";import"./chunks/progress-bar-w3yfrrxD.esm.js";import"./components/beam-partner-logos.esm.js";import"./chunks/localize-e-mss8ya.esm.js";import"./chunks/beam-errors-l02WBee5.esm.js";import"./chunks/logger-ad87ovol.esm.js";import"./chunks/routes-Xnsh4jsO.esm.js";import"./chunks/css-card-grid-RRkoiUTl.esm.js";import"./components/cumulative-impact.esm.js";import"./chunks/lodash-ZxBiuGue.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.esm.js";import"./chunks/vendor-IGhQoYCM.esm.js";import"./chunks/responsive-Rehmv-eo.esm.js";import"./components/select-nonprofit.esm.js";import"./chunks/local-storage-Rrnk_Dg-.esm.js";import"./chunks/events-rRSQYdP1.esm.js";import"./chunks/cookies-BnIoXWd0.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./components/redeem-transaction.esm.js";import"./components/post-purchase.esm.js";import"./chunks/index--XzN0d8d.esm.js";import"./chunks/network-listeners-CEOxhlYW.esm.js";import"./chunks/remote-session-mmQFfNd6.esm.js";import"./chunks/index-PYdJGNef.esm.js";import"./chunks/order-page-STAG2OhW.esm.js";import"./chunks/update-cart-K-xxdX-s.esm.js";import"./chunks/index-IXwIgGSV.esm.js";import"./chunks/index-PIFZakQ8.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";export{N as Integrations,P as ReactComponents,L as WebComponents};
2
2
  //# sourceMappingURL=index.esm.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{i as L}from"./chunks/index-bo9Yq4jd.esm.js";import{i as N}from"./chunks/index-AkTBw-Qc.esm.js";import{i as P}from"./chunks/index-JL12lEnO.esm.js";import"./components/community-impact.js";import"./chunks/lit-h1W25hjN.esm.js";import"./chunks/progress-bar-w3yfrrxD.esm.js";import"./components/beam-partner-logos.js";import"./chunks/localize-e-mss8ya.esm.js";import"./chunks/beam-errors-l02WBee5.esm.js";import"./chunks/logger-ad87ovol.esm.js";import"./chunks/routes-4-ftNnBE.esm.js";import"./chunks/css-card-grid-RRkoiUTl.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-ZxBiuGue.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.js";import"./chunks/vendor-IGhQoYCM.esm.js";import"./chunks/responsive-Rehmv-eo.esm.js";import"./components/select-nonprofit.js";import"./chunks/local-storage-Rrnk_Dg-.esm.js";import"./chunks/events-rRSQYdP1.esm.js";import"./chunks/cookies-BnIoXWd0.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./components/redeem-transaction.js";import"./components/post-purchase.js";import"./chunks/index--XzN0d8d.esm.js";import"./chunks/network-listeners-CEOxhlYW.esm.js";import"./chunks/remote-session-mmQFfNd6.esm.js";import"./chunks/index-ewBF3ULP.esm.js";import"./chunks/order-page-jJ7Fju-n.esm.js";import"./chunks/update-cart-OBbkS9J5.esm.js";import"./chunks/index-IXwIgGSV.esm.js";import"./chunks/index--GRqoHRE.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";export{N as Integrations,P as ReactComponents,L as WebComponents};
1
+ import{i as L}from"./chunks/index-bo9Yq4jd.esm.js";import{i as N}from"./chunks/index-P56wvflO.esm.js";import{i as P}from"./chunks/index-JL12lEnO.esm.js";import"./components/community-impact.js";import"./chunks/lit-h1W25hjN.esm.js";import"./chunks/progress-bar-w3yfrrxD.esm.js";import"./components/beam-partner-logos.js";import"./chunks/localize-e-mss8ya.esm.js";import"./chunks/beam-errors-l02WBee5.esm.js";import"./chunks/logger-ad87ovol.esm.js";import"./chunks/routes-Xnsh4jsO.esm.js";import"./chunks/css-card-grid-RRkoiUTl.esm.js";import"./components/cumulative-impact.js";import"./chunks/lodash-ZxBiuGue.esm.js";import"./chunks/is-all-html-elements-SdSkxirh.esm.js";import"./components/impact-overview.js";import"./chunks/vendor-IGhQoYCM.esm.js";import"./chunks/responsive-Rehmv-eo.esm.js";import"./components/select-nonprofit.js";import"./chunks/local-storage-Rrnk_Dg-.esm.js";import"./chunks/events-rRSQYdP1.esm.js";import"./chunks/cookies-BnIoXWd0.esm.js";import"./chunks/cart-contents-h60geKWa.esm.js";import"./components/redeem-transaction.js";import"./components/post-purchase.js";import"./chunks/index--XzN0d8d.esm.js";import"./chunks/network-listeners-CEOxhlYW.esm.js";import"./chunks/remote-session-mmQFfNd6.esm.js";import"./chunks/index-gxb1Rhtv.esm.js";import"./chunks/order-page-94iMCraa.esm.js";import"./chunks/update-cart-K-xxdX-s.esm.js";import"./chunks/index-IXwIgGSV.esm.js";import"./chunks/index-PIFZakQ8.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";export{N as Integrations,P as ReactComponents,L as WebComponents};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{x as s}from"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";export{s as updateCart};
1
+ import{x as s}from"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";export{s as updateCart};
2
2
  //# sourceMappingURL=cart.esm.js.map
@@ -1,2 +1,2 @@
1
- import{x as s}from"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";export{s as updateCart};
1
+ import{x as s}from"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";export{s as updateCart};
2
2
  //# sourceMappingURL=cart.js.map
@@ -1,2 +1,2 @@
1
- import{i as u}from"../chunks/index--XzN0d8d.esm.js";import{i as w}from"../chunks/index-nT4s8BNX.esm.js";import{i as A}from"../chunks/index-IXwIgGSV.esm.js";import{i as D}from"../chunks/index--GRqoHRE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../chunks/order-page-e3rXwf0K.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{D as Cart,A as Session,w as Shopify,u as Utils};
1
+ import{i as u}from"../chunks/index--XzN0d8d.esm.js";import{i as w}from"../chunks/index-PYdJGNef.esm.js";import{i as A}from"../chunks/index-IXwIgGSV.esm.js";import{i as D}from"../chunks/index-PIFZakQ8.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../chunks/order-page-STAG2OhW.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{D as Cart,A as Session,w as Shopify,u as Utils};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{i as u}from"../chunks/index--XzN0d8d.esm.js";import{i as w}from"../chunks/index-ewBF3ULP.esm.js";import{i as A}from"../chunks/index-IXwIgGSV.esm.js";import{i as D}from"../chunks/index--GRqoHRE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../chunks/order-page-jJ7Fju-n.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../components/post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{D as Cart,A as Session,w as Shopify,u as Utils};
1
+ import{i as u}from"../chunks/index--XzN0d8d.esm.js";import{i as w}from"../chunks/index-gxb1Rhtv.esm.js";import{i as A}from"../chunks/index-IXwIgGSV.esm.js";import{i as D}from"../chunks/index-PIFZakQ8.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../chunks/order-page-94iMCraa.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../components/post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{D as Cart,A as Session,w as Shopify,u as Utils};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{h as N,C as O,B as P,s as T,N as W}from"../chunks/order-page-e3rXwf0K.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{N as addBeamAttributesToCart,O as getCurrentCart,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart};
1
+ import{h as N,C as O,B as P,s as T,N as W}from"../chunks/order-page-STAG2OhW.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../components/post-purchase.esm.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{N as addBeamAttributesToCart,O as getCurrentCart,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart};
2
2
  //# sourceMappingURL=shopify.esm.js.map
@@ -1,2 +1,2 @@
1
- import{h as N,C as O,B as P,s as T,N as W}from"../chunks/order-page-jJ7Fju-n.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-OBbkS9J5.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../components/post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{N as addBeamAttributesToCart,O as getCurrentCart,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart};
1
+ import{h as N,C as O,B as P,s as T,N as W}from"../chunks/order-page-94iMCraa.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/network-listeners-CEOxhlYW.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../chunks/update-cart-K-xxdX-s.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/remote-session-mmQFfNd6.esm.js";import"../components/post-purchase.js";import"../chunks/lit-h1W25hjN.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../components/redeem-transaction.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";export{N as addBeamAttributesToCart,O as getCurrentCart,P as registerCartIntegration,T as showBeamOrderPageWidgets,W as trackCart};
2
2
  //# sourceMappingURL=shopify.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as a}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=a({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
1
+ import o from"react";import{l as a}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=a({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 a}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=a({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
1
+ import o from"react";import{l as a}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCommunityImpact as m}from"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=a({tagName:m.tagName,elementClass:m,react:o,events:{}});export{t as BeamCommunityImpact,t as default};
2
2
  //# sourceMappingURL=community-impact.js.map
@@ -1,2 +1,2 @@
1
- import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
2
2
  //# sourceMappingURL=cumulative-impact.esm.js.map
@@ -1,2 +1,2 @@
1
- import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
1
+ import a from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamCumulativeImpact as m}from"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:a,events:{}});export{t as BeamCumulativeImpact,t as default};
2
2
  //# sourceMappingURL=cumulative-impact.js.map
@@ -1,2 +1,2 @@
1
- import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
2
2
  //# sourceMappingURL=impact-overview.esm.js.map
@@ -1,2 +1,2 @@
1
- import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
1
+ import r from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{BeamImpactOverview as m}from"../components/impact-overview.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/beam-partner-logos.js";import"../chunks/responsive-Rehmv-eo.esm.js";const t=e({tagName:m.tagName,elementClass:m,react:r,events:{}});export{t as BeamImpactOverview,t as default};
2
2
  //# sourceMappingURL=impact-overview.js.map
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as O}from"./community-impact.esm.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.esm.js";import{BeamImpactOverview as b}from"./impact-overview.esm.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.esm.js";import{BeamPostPurchase as A}from"./post-purchase.esm.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as O}from"./community-impact.esm.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.esm.js";import{BeamImpactOverview as b}from"./impact-overview.esm.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.esm.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.esm.js";import{BeamPostPurchase as A}from"./post-purchase.esm.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.esm.js";import"../components/post-purchase.esm.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{BeamCommunityImpact as O}from"./community-impact.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.js";import{BeamImpactOverview as b}from"./impact-overview.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.js";import{BeamPostPurchase as A}from"./post-purchase.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
1
+ import{BeamCommunityImpact as O}from"./community-impact.js";import{BeamCumulativeImpact as S}from"./cumulative-impact.js";import{BeamImpactOverview as b}from"./impact-overview.js";import{BeamSelectNonprofit as j}from"./select-nonprofit.js";import{BeamRedeemTransaction as q}from"./redeem-transaction.js";import{BeamPostPurchase as A}from"./post-purchase.js";import"react";import"../chunks/lit-h1W25hjN.esm.js";import"../components/community-impact.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../components/cumulative-impact.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/select-nonprofit.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";import"../components/redeem-transaction.js";import"../components/post-purchase.js";export{O as BeamCommunityImpact,S as BeamCumulativeImpact,b as BeamImpactOverview,A as BeamPostPurchase,q as BeamRedeemTransaction,j as BeamSelectNonprofit};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.esm.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
2
2
  //# sourceMappingURL=post-purchase.esm.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
1
+ import o from"react";import{l as r}from"../chunks/lit-h1W25hjN.esm.js";import{BeamPostPurchase as t}from"../components/post-purchase.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";import"../chunks/events-rRSQYdP1.esm.js";import"../components/impact-overview.js";import"../chunks/vendor-IGhQoYCM.esm.js";import"../chunks/is-all-html-elements-SdSkxirh.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const m=r({tagName:t.tagName,elementClass:t,react:o,events:{}});export{m as BeamPostPurchase,m as default};
2
2
  //# sourceMappingURL=post-purchase.js.map
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.esm.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
2
2
  //# sourceMappingURL=redeem-transaction.esm.js.map
@@ -1,2 +1,2 @@
1
- import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
1
+ import m from"react";import{l as o}from"../chunks/lit-h1W25hjN.esm.js";import{a as r}from"../chunks/events-rRSQYdP1.esm.js";import{BeamRedeemTransaction as e}from"../components/redeem-transaction.js";import"../chunks/lodash-ZxBiuGue.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../components/beam-partner-logos.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/css-card-grid-RRkoiUTl.esm.js";const t=o({tagName:e.tagName,elementClass:e,react:m,events:{onNonprofitSelect:r.eventName}});export{t as BeamRedeemTransaction,t as default};
2
2
  //# sourceMappingURL=redeem-transaction.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
1
+ import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.esm.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
2
2
  //# sourceMappingURL=select-nonprofit.esm.js.map
@@ -1,2 +1,2 @@
1
- import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-4-ftNnBE.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
1
+ import o from"react";import{l as e}from"../chunks/lit-h1W25hjN.esm.js";import{a as m}from"../chunks/events-rRSQYdP1.esm.js";import{BeamSelectNonprofit as r}from"../components/select-nonprofit.js";import"../chunks/localize-e-mss8ya.esm.js";import"../chunks/beam-errors-l02WBee5.esm.js";import"../chunks/logger-ad87ovol.esm.js";import"../chunks/routes-Xnsh4jsO.esm.js";import"../chunks/progress-bar-w3yfrrxD.esm.js";import"../chunks/local-storage-Rrnk_Dg-.esm.js";import"../chunks/cookies-BnIoXWd0.esm.js";import"../chunks/responsive-Rehmv-eo.esm.js";import"../chunks/cart-contents-h60geKWa.esm.js";const t=e({tagName:"beam-select-nonprofit",elementClass:r,react:o,events:{onNonprofitSelect:m.eventName}});export{t as BeamSelectNonprofit,t as default};
2
2
  //# sourceMappingURL=select-nonprofit.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beamimpact/web-sdk",
3
3
  "private": false,
4
- "version": "1.29.0-beta.5",
4
+ "version": "1.29.0-beta.6",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "engines": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies-qFTxK4S6.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_share-dialog-dependencies-zVUKbmbA.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{x as e}from"./update-cart-OBbkS9J5.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
- //# sourceMappingURL=index--GRqoHRE.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index--GRqoHRE.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}