@beamimpact/web-sdk 1.50.1 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/chunks/_share-dialog-dependencies-BwdvNwrJ.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-BwdvNwrJ.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-QaTONkKb.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-QaTONkKb.esm.js.map +1 -0
  5. package/dist/chunks/{beam-errors-AMvTvR1C.esm.js → beam-errors-Ci0d3926.esm.js} +1 -1
  6. package/dist/chunks/{beam-errors-AMvTvR1C.esm.js.map → beam-errors-Ci0d3926.esm.js.map} +1 -1
  7. package/dist/chunks/{cart-contents-6_ztOjrx.esm.d.ts → cart-contents-CUgc4y1N.esm.d.ts} +1 -1
  8. package/dist/chunks/cart-contents-DkoytiZh.esm.js +2 -0
  9. package/dist/chunks/{cart-contents-h60geKWa.esm.js.map → cart-contents-DkoytiZh.esm.js.map} +1 -1
  10. package/dist/chunks/{css-card-grid-nEc--M5M.esm.js → css-card-grid-CvoGpsJH.esm.js} +2 -2
  11. package/dist/chunks/{css-card-grid-nEc--M5M.esm.js.map → css-card-grid-CvoGpsJH.esm.js.map} +1 -1
  12. package/dist/chunks/enforce-config-Ba1JkOHs.esm.js +3 -0
  13. package/dist/chunks/{enforce-config-S8EGgEnO.esm.js.map → enforce-config-Ba1JkOHs.esm.js.map} +1 -1
  14. package/dist/chunks/enforce-config-CZ3ToOgr.esm.js +3 -0
  15. package/dist/chunks/{enforce-config-l-tNb_z7.esm.js.map → enforce-config-CZ3ToOgr.esm.js.map} +1 -1
  16. package/dist/chunks/{events-u_8n2LIU.esm.d.ts → events-BKkf9u9l.esm.d.ts} +3 -3
  17. package/dist/chunks/{events-T3hYV1LF.esm.js → events-BohmT6Lp.esm.js} +2 -2
  18. package/dist/chunks/{events-T3hYV1LF.esm.js.map → events-BohmT6Lp.esm.js.map} +1 -1
  19. package/dist/chunks/index-B5vRxWI3.esm.js +2 -0
  20. package/dist/chunks/index-B5vRxWI3.esm.js.map +1 -0
  21. package/dist/chunks/{index-JDZQClkA.esm.js → index-BNjsFEGn.esm.js} +2 -2
  22. package/dist/chunks/{index-JDZQClkA.esm.js.map → index-BNjsFEGn.esm.js.map} +1 -1
  23. package/dist/chunks/{index-bhqIqVQJ.esm.d.ts → index-BqBEii8E.esm.d.ts} +1 -1
  24. package/dist/chunks/index-BsuCVFh-.esm.js +2 -0
  25. package/dist/chunks/index-BsuCVFh-.esm.js.map +1 -0
  26. package/dist/chunks/{index-dLnZQZlT.esm.js → index-C-beNpP0.esm.js} +2 -2
  27. package/dist/chunks/index-C-beNpP0.esm.js.map +1 -0
  28. package/dist/chunks/{index-E8H5A7Qq.esm.js → index-C3hpHWh1.esm.js} +1 -1
  29. package/dist/chunks/index-C3hpHWh1.esm.js.map +1 -0
  30. package/dist/chunks/index-C9SnlT_2.esm.js +2 -0
  31. package/dist/chunks/index-C9SnlT_2.esm.js.map +1 -0
  32. package/dist/chunks/index-CFZqe2Wn.esm.js +2 -0
  33. package/dist/chunks/index-CFZqe2Wn.esm.js.map +1 -0
  34. package/dist/chunks/{index-FQExZDX9.esm.js → index-CFtmDAHb.esm.js} +1 -1
  35. package/dist/chunks/index-CFtmDAHb.esm.js.map +1 -0
  36. package/dist/chunks/index-CTt5RnKY.esm.js +2 -0
  37. package/dist/chunks/index-CTt5RnKY.esm.js.map +1 -0
  38. package/dist/chunks/{index-0X3JKFYs.esm.d.ts → index-CbKkAM6h.esm.d.ts} +1 -1
  39. package/dist/chunks/{index-f7fp9odj.esm.js → index-CbWdmBet.esm.js} +2 -2
  40. package/dist/chunks/index-CbWdmBet.esm.js.map +1 -0
  41. package/dist/chunks/{index-XCMf22lv.esm.js → index-D6qJfs7_.esm.js} +1 -1
  42. package/dist/chunks/index-D6qJfs7_.esm.js.map +1 -0
  43. package/dist/chunks/{index-XPlAZw7t.esm.js → index-DElVAjg2.esm.js} +2 -2
  44. package/dist/chunks/{index-XPlAZw7t.esm.js.map → index-DElVAjg2.esm.js.map} +1 -1
  45. package/dist/chunks/{index-HVGMpZIV.esm.js → index-DTGB86pM.esm.js} +2 -2
  46. package/dist/chunks/{index-HVGMpZIV.esm.js.map → index-DTGB86pM.esm.js.map} +1 -1
  47. package/dist/chunks/index-DZt3Lbb4.esm.js +2 -0
  48. package/dist/chunks/index-DZt3Lbb4.esm.js.map +1 -0
  49. package/dist/chunks/{index-kFulvjM4.esm.js → index-DhtZDPvk.esm.js} +2 -2
  50. package/dist/chunks/index-DhtZDPvk.esm.js.map +1 -0
  51. package/dist/chunks/{index-q2vZ79t1.esm.d.ts → index-Dnm34FcO.esm.d.ts} +2 -2
  52. package/dist/chunks/{index-puZGYsUA.esm.d.ts → index-DvbUE31b.esm.d.ts} +2 -2
  53. package/dist/chunks/{index-m1LRybiJ.esm.js → index-GcpuX_TZ.esm.js} +2 -2
  54. package/dist/chunks/index-GcpuX_TZ.esm.js.map +1 -0
  55. package/dist/chunks/{index-eXilYHHK.esm.js → index-IKiJwo5v.esm.js} +2 -2
  56. package/dist/chunks/{index-eXilYHHK.esm.js.map → index-IKiJwo5v.esm.js.map} +1 -1
  57. package/dist/chunks/{index-cznI-EZa.esm.d.ts → index-TAxKoTC1.esm.d.ts} +4 -2
  58. package/dist/chunks/index-ki8pLX6n.esm.d.ts +15 -0
  59. package/dist/chunks/{index-PiMq5a49.esm.js → index-oGObXjk6.esm.js} +1 -1
  60. package/dist/chunks/index-oGObXjk6.esm.js.map +1 -0
  61. package/dist/chunks/{is-all-html-elements-SdSkxirh.esm.js → is-all-html-elements-fcB7UUA1.esm.js} +1 -1
  62. package/dist/chunks/{is-all-html-elements-SdSkxirh.esm.js.map → is-all-html-elements-fcB7UUA1.esm.js.map} +1 -1
  63. package/dist/chunks/lit-WqMxC_PA.esm.js +34 -0
  64. package/dist/chunks/lit-WqMxC_PA.esm.js.map +1 -0
  65. package/dist/chunks/loading-template-DG4lkIIc.esm.js +2 -0
  66. package/dist/chunks/{loading-template-t4fFsYtr.esm.js.map → loading-template-DG4lkIIc.esm.js.map} +1 -1
  67. package/dist/chunks/{localize-7sMSg1W9.esm.js → localize-Btu9xYcE.esm.js} +6 -6
  68. package/dist/chunks/{localize-7sMSg1W9.esm.js.map → localize-Btu9xYcE.esm.js.map} +1 -1
  69. package/dist/chunks/{localize-OiRewTgu.esm.js → localize-C25pEGnx.esm.js} +6 -6
  70. package/dist/chunks/{localize-OiRewTgu.esm.js.map → localize-C25pEGnx.esm.js.map} +1 -1
  71. package/dist/chunks/lodash-7H4x2457.esm.js +2 -0
  72. package/dist/chunks/lodash-7H4x2457.esm.js.map +1 -0
  73. package/dist/chunks/order-page-BbrDKYmJ.esm.js +2 -0
  74. package/dist/chunks/order-page-BbrDKYmJ.esm.js.map +1 -0
  75. package/dist/chunks/{order-page-dlXIs0gJ.esm.d.ts → order-page-Cerye00Q.esm.d.ts} +19 -7
  76. package/dist/chunks/order-page-stMlaqKK.esm.js +2 -0
  77. package/dist/chunks/order-page-stMlaqKK.esm.js.map +1 -0
  78. package/dist/chunks/{progress-bar-PMU_xI3L.esm.js → progress-bar-DF7UuuHb.esm.js} +4 -4
  79. package/dist/chunks/{progress-bar-PMU_xI3L.esm.js.map → progress-bar-DF7UuuHb.esm.js.map} +1 -1
  80. package/dist/chunks/promo-pill-label-CbW_Vcru.esm.js +16 -0
  81. package/dist/chunks/{promo-pill-label-P1X4xeAx.esm.js.map → promo-pill-label-CbW_Vcru.esm.js.map} +1 -1
  82. package/dist/chunks/{promo-types-aQ_hre6t.esm.d.ts → promo-types-C1unMpo2.esm.d.ts} +1 -1
  83. package/dist/chunks/{promoManager--3WXq4at.esm.js → promoManager-B9cTR1R3.esm.js} +2 -2
  84. package/dist/chunks/{promoManager--3WXq4at.esm.js.map → promoManager-B9cTR1R3.esm.js.map} +1 -1
  85. package/dist/chunks/{promoManager-YUzbMtwY.esm.js → promoManager-fl54hq13.esm.js} +2 -2
  86. package/dist/chunks/{promoManager-YUzbMtwY.esm.js.map → promoManager-fl54hq13.esm.js.map} +1 -1
  87. package/dist/chunks/{responsive-2lC2Wrtg.esm.js → responsive-BR8qUfBa.esm.js} +2 -2
  88. package/dist/chunks/{responsive-2lC2Wrtg.esm.js.map → responsive-BR8qUfBa.esm.js.map} +1 -1
  89. package/dist/chunks/routes-CAhDCFDX.esm.js +2 -0
  90. package/dist/chunks/{routes-o-phF_L1.esm.js.map → routes-CAhDCFDX.esm.js.map} +1 -1
  91. package/dist/chunks/routes-pcL-CUiQ.esm.js +2 -0
  92. package/dist/chunks/{routes-YPOoVIR2.esm.js.map → routes-pcL-CUiQ.esm.js.map} +1 -1
  93. package/dist/chunks/{share-button-hDn8fnBI.esm.d.ts → share-button-B9hpxBVr.esm.d.ts} +6 -1
  94. package/dist/chunks/share-button-BYVId0-U.esm.js +2 -0
  95. package/dist/chunks/share-button-BYVId0-U.esm.js.map +1 -0
  96. package/dist/chunks/share-button-BvUcpOcx.esm.js +167 -0
  97. package/dist/chunks/share-button-BvUcpOcx.esm.js.map +1 -0
  98. package/dist/chunks/share-button-C-DXj68Z.esm.js +2 -0
  99. package/dist/chunks/share-button-C-DXj68Z.esm.js.map +1 -0
  100. package/dist/chunks/share-button-CtklpZOO.esm.js +167 -0
  101. package/dist/chunks/share-button-CtklpZOO.esm.js.map +1 -0
  102. package/dist/chunks/{update-cart-UuMHYehB.esm.js → update-cart-BLsw_Faz.esm.js} +2 -2
  103. package/dist/chunks/{update-cart-UuMHYehB.esm.js.map → update-cart-BLsw_Faz.esm.js.map} +1 -1
  104. package/dist/chunks/{update-cart-JO4fuiim.esm.d.ts → update-cart-NiToHHJH.esm.d.ts} +2 -2
  105. package/dist/chunks/{update-cart-mNsQ9K-k.esm.js → update-cart-ciJaz8li.esm.js} +2 -2
  106. package/dist/chunks/{update-cart-mNsQ9K-k.esm.js.map → update-cart-ciJaz8li.esm.js.map} +1 -1
  107. package/dist/chunks/{vendor-GKiOHg2N.esm.js → vendor-KKSARHWL.esm.js} +2 -2
  108. package/dist/chunks/{vendor-GKiOHg2N.esm.js.map → vendor-KKSARHWL.esm.js.map} +1 -1
  109. package/dist/components/beam-partner-logos.d.ts +1 -1
  110. package/dist/components/beam-partner-logos.esm.js +4 -4
  111. package/dist/components/beam-partner-logos.esm.js.map +1 -1
  112. package/dist/components/beam-partner-logos.js +4 -4
  113. package/dist/components/beam-partner-logos.js.map +1 -1
  114. package/dist/components/community-impact.d.ts +3 -3
  115. package/dist/components/community-impact.esm.js +15 -15
  116. package/dist/components/community-impact.esm.js.map +1 -1
  117. package/dist/components/community-impact.js +15 -15
  118. package/dist/components/community-impact.js.map +1 -1
  119. package/dist/components/cumulative-impact.d.ts +2 -2
  120. package/dist/components/cumulative-impact.esm.js +8 -8
  121. package/dist/components/cumulative-impact.esm.js.map +1 -1
  122. package/dist/components/cumulative-impact.js +8 -8
  123. package/dist/components/cumulative-impact.js.map +1 -1
  124. package/dist/components/impact-overview.d.ts +4 -4
  125. package/dist/components/impact-overview.esm.js +26 -21
  126. package/dist/components/impact-overview.esm.js.map +1 -1
  127. package/dist/components/impact-overview.js +26 -21
  128. package/dist/components/impact-overview.js.map +1 -1
  129. package/dist/components/index.d.ts +8 -8
  130. package/dist/components/index.esm.js +1 -1
  131. package/dist/components/index.js +1 -1
  132. package/dist/components/post-purchase.d.ts +7 -7
  133. package/dist/components/post-purchase.esm.js +2 -2
  134. package/dist/components/post-purchase.esm.js.map +1 -1
  135. package/dist/components/post-purchase.js +2 -2
  136. package/dist/components/post-purchase.js.map +1 -1
  137. package/dist/components/product-details-page.d.ts +3 -4
  138. package/dist/components/product-details-page.esm.js +22 -11
  139. package/dist/components/product-details-page.esm.js.map +1 -1
  140. package/dist/components/product-details-page.js +22 -11
  141. package/dist/components/product-details-page.js.map +1 -1
  142. package/dist/components/redeem-transaction.d.ts +6 -6
  143. package/dist/components/redeem-transaction.esm.js +3 -3
  144. package/dist/components/redeem-transaction.esm.js.map +1 -1
  145. package/dist/components/redeem-transaction.js +3 -3
  146. package/dist/components/redeem-transaction.js.map +1 -1
  147. package/dist/components/select-nonprofit.d.ts +6 -6
  148. package/dist/components/select-nonprofit.esm.js +89 -89
  149. package/dist/components/select-nonprofit.esm.js.map +1 -1
  150. package/dist/components/select-nonprofit.js +89 -89
  151. package/dist/components/select-nonprofit.js.map +1 -1
  152. package/dist/components/select-subscription-nonprofit.d.ts +3 -3
  153. package/dist/components/select-subscription-nonprofit.esm.js +13 -13
  154. package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
  155. package/dist/components/select-subscription-nonprofit.js +13 -13
  156. package/dist/components/select-subscription-nonprofit.js.map +1 -1
  157. package/dist/components/shopify.d.ts +12 -12
  158. package/dist/components/shopify.esm.js +1 -1
  159. package/dist/components/shopify.esm.js.map +1 -1
  160. package/dist/components/shopify.js +1 -1
  161. package/dist/components/shopify.js.map +1 -1
  162. package/dist/components/social-share.d.ts +3 -3
  163. package/dist/components/social-share.esm.js +3 -3
  164. package/dist/components/social-share.esm.js.map +1 -1
  165. package/dist/components/social-share.js +3 -3
  166. package/dist/components/social-share.js.map +1 -1
  167. package/dist/components/subscription-impact.d.ts +4 -4
  168. package/dist/components/subscription-impact.esm.js +27 -25
  169. package/dist/components/subscription-impact.esm.js.map +1 -1
  170. package/dist/components/subscription-impact.js +27 -25
  171. package/dist/components/subscription-impact.js.map +1 -1
  172. package/dist/components/subscription-management.d.ts +7 -7
  173. package/dist/components/subscription-management.esm.js +9 -9
  174. package/dist/components/subscription-management.esm.js.map +1 -1
  175. package/dist/components/subscription-management.js +9 -9
  176. package/dist/components/subscription-management.js.map +1 -1
  177. package/dist/index.d.ts +22 -22
  178. package/dist/index.esm.js +1 -1
  179. package/dist/index.js +1 -1
  180. package/dist/integrations/beam.d.ts +1 -1
  181. package/dist/integrations/beam.esm.js +1 -1
  182. package/dist/integrations/beam.esm.js.map +1 -1
  183. package/dist/integrations/beam.js +1 -1
  184. package/dist/integrations/beam.js.map +1 -1
  185. package/dist/integrations/cart.d.ts +4 -4
  186. package/dist/integrations/cart.esm.js +1 -1
  187. package/dist/integrations/cart.js +1 -1
  188. package/dist/integrations/index.d.ts +18 -18
  189. package/dist/integrations/index.esm.js +1 -1
  190. package/dist/integrations/index.js +1 -1
  191. package/dist/integrations/logs.d.ts +2 -2
  192. package/dist/integrations/logs.esm.js +1 -1
  193. package/dist/integrations/logs.js +1 -1
  194. package/dist/integrations/promoManager.d.ts +1 -1
  195. package/dist/integrations/promoManager.esm.js +1 -1
  196. package/dist/integrations/promoManager.js +1 -1
  197. package/dist/integrations/session.d.ts +1 -1
  198. package/dist/integrations/session.esm.js +1 -1
  199. package/dist/integrations/session.js +1 -1
  200. package/dist/integrations/shopify.d.ts +10 -10
  201. package/dist/integrations/shopify.esm.js +1 -1
  202. package/dist/integrations/shopify.js +1 -1
  203. package/dist/integrations/statsig.d.ts +1 -1
  204. package/dist/integrations/statsig.esm.js +2 -2
  205. package/dist/integrations/statsig.esm.js.map +1 -1
  206. package/dist/integrations/statsig.js +2 -2
  207. package/dist/integrations/statsig.js.map +1 -1
  208. package/dist/integrations/utils.d.ts +6 -6
  209. package/dist/integrations/utils.esm.js +1 -1
  210. package/dist/integrations/utils.js +1 -1
  211. package/dist/react/beam-partner-logos.d.ts +1 -1
  212. package/dist/react/beam-partner-logos.esm.js +1 -1
  213. package/dist/react/beam-partner-logos.js +1 -1
  214. package/dist/react/community-impact.d.ts +3 -3
  215. package/dist/react/community-impact.esm.js +1 -1
  216. package/dist/react/community-impact.js +1 -1
  217. package/dist/react/cumulative-impact.d.ts +2 -2
  218. package/dist/react/cumulative-impact.esm.js +1 -1
  219. package/dist/react/cumulative-impact.js +1 -1
  220. package/dist/react/impact-overview.d.ts +4 -4
  221. package/dist/react/impact-overview.esm.js +1 -1
  222. package/dist/react/impact-overview.esm.js.map +1 -1
  223. package/dist/react/impact-overview.js +1 -1
  224. package/dist/react/impact-overview.js.map +1 -1
  225. package/dist/react/index.d.ts +10 -10
  226. package/dist/react/index.esm.js +1 -1
  227. package/dist/react/index.js +1 -1
  228. package/dist/react/post-purchase.d.ts +7 -7
  229. package/dist/react/post-purchase.esm.js +1 -1
  230. package/dist/react/post-purchase.esm.js.map +1 -1
  231. package/dist/react/post-purchase.js +1 -1
  232. package/dist/react/post-purchase.js.map +1 -1
  233. package/dist/react/product-details-page.d.ts +3 -3
  234. package/dist/react/product-details-page.esm.js +1 -1
  235. package/dist/react/product-details-page.js +1 -1
  236. package/dist/react/redeem-transaction.d.ts +8 -8
  237. package/dist/react/redeem-transaction.esm.js +1 -1
  238. package/dist/react/redeem-transaction.js +1 -1
  239. package/dist/react/select-nonprofit.d.ts +8 -8
  240. package/dist/react/select-nonprofit.esm.js +1 -1
  241. package/dist/react/select-nonprofit.js +1 -1
  242. package/dist/react/select-subscription-nonprofit.d.ts +7 -7
  243. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  244. package/dist/react/select-subscription-nonprofit.js +1 -1
  245. package/dist/react/social-share.d.ts +3 -3
  246. package/dist/react/social-share.esm.js +1 -1
  247. package/dist/react/social-share.esm.js.map +1 -1
  248. package/dist/react/social-share.js +1 -1
  249. package/dist/react/social-share.js.map +1 -1
  250. package/dist/react/subscription-impact.d.ts +4 -4
  251. package/dist/react/subscription-impact.esm.js +1 -1
  252. package/dist/react/subscription-impact.js +1 -1
  253. package/dist/react/subscription-management.d.ts +7 -7
  254. package/dist/react/subscription-management.esm.js +1 -1
  255. package/dist/react/subscription-management.js +1 -1
  256. package/dist/utils/beam-errors.d.ts +1 -1
  257. package/dist/utils/beam-errors.esm.js +1 -1
  258. package/dist/utils/beam-errors.js +1 -1
  259. package/dist/utils/cart.esm.js +1 -1
  260. package/dist/utils/cart.js +1 -1
  261. package/dist/utils/cookies.esm.js +1 -1
  262. package/dist/utils/cookies.esm.js.map +1 -1
  263. package/dist/utils/cookies.js +1 -1
  264. package/dist/utils/cookies.js.map +1 -1
  265. package/dist/utils/debounce.esm.js +1 -1
  266. package/dist/utils/debounce.js +1 -1
  267. package/dist/utils/events.d.ts +5 -5
  268. package/dist/utils/events.esm.js +1 -1
  269. package/dist/utils/events.js +1 -1
  270. package/dist/utils/index.d.ts +6 -6
  271. package/dist/utils/index.esm.js +1 -1
  272. package/dist/utils/index.js +1 -1
  273. package/dist/utils/is-equal.esm.js +1 -1
  274. package/dist/utils/is-equal.js +1 -1
  275. package/dist/utils/local-storage.esm.js +1 -1
  276. package/dist/utils/local-storage.js +1 -1
  277. package/dist/utils/memoize-last.esm.js +1 -1
  278. package/dist/utils/memoize-last.esm.js.map +1 -1
  279. package/dist/utils/memoize-last.js +1 -1
  280. package/dist/utils/memoize-last.js.map +1 -1
  281. package/dist/utils/network-listeners.esm.js +1 -1
  282. package/dist/utils/network-listeners.esm.js.map +1 -1
  283. package/dist/utils/network-listeners.js +1 -1
  284. package/dist/utils/network-listeners.js.map +1 -1
  285. package/dist/utils/promoManager.d.ts +3 -3
  286. package/dist/utils/promoManager.esm.js +1 -1
  287. package/dist/utils/promoManager.js +1 -1
  288. package/dist/utils/remote-session.esm.js +1 -1
  289. package/dist/utils/remote-session.js +1 -1
  290. package/dist/utils/wait-for-element.esm.js +1 -1
  291. package/dist/utils/wait-for-element.js +1 -1
  292. package/package.json +4 -4
  293. package/dist/chunks/_share-dialog-dependencies-RmYWlyJ0.esm.js +0 -2
  294. package/dist/chunks/_share-dialog-dependencies-RmYWlyJ0.esm.js.map +0 -1
  295. package/dist/chunks/_share-dialog-dependencies-yCBFjXxQ.esm.js +0 -2
  296. package/dist/chunks/_share-dialog-dependencies-yCBFjXxQ.esm.js.map +0 -1
  297. package/dist/chunks/cart-contents-h60geKWa.esm.js +0 -2
  298. package/dist/chunks/enforce-config-S8EGgEnO.esm.js +0 -3
  299. package/dist/chunks/enforce-config-l-tNb_z7.esm.js +0 -3
  300. package/dist/chunks/index-2qmtuEV_.esm.d.ts +0 -15
  301. package/dist/chunks/index-44clOvXJ.esm.js +0 -2
  302. package/dist/chunks/index-44clOvXJ.esm.js.map +0 -1
  303. package/dist/chunks/index-B-9JPaCH.esm.js +0 -2
  304. package/dist/chunks/index-B-9JPaCH.esm.js.map +0 -1
  305. package/dist/chunks/index-CNVMNDM4.esm.js +0 -2
  306. package/dist/chunks/index-CNVMNDM4.esm.js.map +0 -1
  307. package/dist/chunks/index-E8H5A7Qq.esm.js.map +0 -1
  308. package/dist/chunks/index-FQExZDX9.esm.js.map +0 -1
  309. package/dist/chunks/index-PiMq5a49.esm.js.map +0 -1
  310. package/dist/chunks/index-UHchr4H_.esm.js +0 -2
  311. package/dist/chunks/index-UHchr4H_.esm.js.map +0 -1
  312. package/dist/chunks/index-XCMf22lv.esm.js.map +0 -1
  313. package/dist/chunks/index-dLnZQZlT.esm.js.map +0 -1
  314. package/dist/chunks/index-f7fp9odj.esm.js.map +0 -1
  315. package/dist/chunks/index-kFulvjM4.esm.js.map +0 -1
  316. package/dist/chunks/index-m1LRybiJ.esm.js.map +0 -1
  317. package/dist/chunks/index-smGc5rsi.esm.js +0 -2
  318. package/dist/chunks/index-smGc5rsi.esm.js.map +0 -1
  319. package/dist/chunks/index-wz6Yfo37.esm.js +0 -2
  320. package/dist/chunks/index-wz6Yfo37.esm.js.map +0 -1
  321. package/dist/chunks/lit-iNN5L_Qk.esm.js +0 -34
  322. package/dist/chunks/lit-iNN5L_Qk.esm.js.map +0 -1
  323. package/dist/chunks/loading-template-t4fFsYtr.esm.js +0 -2
  324. package/dist/chunks/lodash-P8OIs-at.esm.js +0 -2
  325. package/dist/chunks/lodash-P8OIs-at.esm.js.map +0 -1
  326. package/dist/chunks/order-page-WPxvCNLM.esm.js +0 -2
  327. package/dist/chunks/order-page-WPxvCNLM.esm.js.map +0 -1
  328. package/dist/chunks/order-page-ZpOf35sP.esm.js +0 -2
  329. package/dist/chunks/order-page-ZpOf35sP.esm.js.map +0 -1
  330. package/dist/chunks/promo-pill-label-P1X4xeAx.esm.js +0 -16
  331. package/dist/chunks/routes-YPOoVIR2.esm.js +0 -2
  332. package/dist/chunks/routes-o-phF_L1.esm.js +0 -2
  333. package/dist/chunks/share-button-EsUPw38-.esm.js +0 -163
  334. package/dist/chunks/share-button-EsUPw38-.esm.js.map +0 -1
  335. package/dist/chunks/share-button-SNvuFDC9.esm.js +0 -2
  336. package/dist/chunks/share-button-SNvuFDC9.esm.js.map +0 -1
  337. package/dist/chunks/share-button-r0y-bbwR.esm.js +0 -163
  338. package/dist/chunks/share-button-r0y-bbwR.esm.js.map +0 -1
  339. package/dist/chunks/shoelace-components-PB22pjfM.esm.js +0 -2
  340. package/dist/chunks/shoelace-components-PB22pjfM.esm.js.map +0 -1
  341. package/dist/chunks/shoelace-components-lr4iB8kL.esm.js +0 -2
  342. package/dist/chunks/shoelace-components-lr4iB8kL.esm.js.map +0 -1
  343. /package/dist/chunks/{beam-errors-bKCZlkvr.esm.d.ts → beam-errors-CCe004HS.esm.d.ts} +0 -0
  344. /package/dist/chunks/{index-EGiUuWe-.esm.d.ts → index-C-hPf29c.esm.d.ts} +0 -0
  345. /package/dist/chunks/{index-hn6JhG_w.esm.d.ts → index-DXj15KHe.esm.d.ts} +0 -0
  346. /package/dist/chunks/{index-mTXm0DPh.esm.d.ts → index-DbaDUPup.esm.d.ts} +0 -0
  347. /package/dist/chunks/{openapi-spec-bxGNhNMa.esm.d.ts → openapi-spec-VAt3phhg.esm.d.ts} +0 -0
  348. /package/dist/chunks/{progress-bar-0VS_AmEf.esm.d.ts → progress-bar-CveZ8E6Q.esm.d.ts} +0 -0
  349. /package/dist/chunks/{promo-pill-label-3bA1z-la.esm.d.ts → promo-pill-label-BXRqZHET.esm.d.ts} +0 -0
  350. /package/dist/chunks/{routes-lGXt7ttd.esm.d.ts → routes-DDRd747e.esm.d.ts} +0 -0
  351. /package/dist/chunks/{types-aju0qrRe.esm.d.ts → types-C7gqAyyH.esm.d.ts} +0 -0
  352. /package/dist/chunks/{types-IbMT3Nwn.esm.d.ts → types-CPxMwnoR.esm.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/lit-iNN5L_Qk.esm.js";import{d as R,i as j}from"../chunks/lodash-P8OIs-at.esm.js";import{u as b,A as k,d as h,a as H,_ as $,i as m}from"../chunks/localize-OiRewTgu.esm.js";import{D as V,W as N,f as q,i as J,S as G}from"../chunks/routes-YPOoVIR2.esm.js";import{p as Q}from"../chunks/progress-bar-PMU_xI3L.esm.js";import{p as X}from"../chunks/promo-pill-label-P1X4xeAx.esm.js";import{c as Y,d as Z,e as v}from"../chunks/enforce-config-S8EGgEnO.esm.js";import{_ as ee}from"../chunks/loading-template-t4fFsYtr.esm.js";import{f as L,c as D,i as te,g as E,a as z}from"../chunks/events-T3hYV1LF.esm.js";import{logger as oe}from"../utils/logger.js";import{createScopedLocalStorage as ie}from"../utils/local-storage.js";import{f as ne,i as re,e as ae,h as se,k as le,s as ce}from"../chunks/promoManager--3WXq4at.esm.js";import{c as pe}from"../chunks/responsive-2lC2Wrtg.esm.js";import{B as A}from"../chunks/cart-contents-h60geKWa.esm.js";import{getBeamCartId as M,getExternalCartId as T}from"../utils/cart.js";import"../chunks/beam-errors-AMvTvR1C.esm.js";import"../chunks/vendor-GKiOHg2N.esm.js";import"../utils/cookies.js";class de extends w{static get styles(){return I`
1
+ import{h as k,f as $,y as d,g as f,t as L,q as v,u as H,m as D,k as q}from"../chunks/lit-WqMxC_PA.esm.js";import{i as V,d as J}from"../chunks/lodash-7H4x2457.esm.js";import{u as S,A as E,d as h,a as G,_ as z,i as m}from"../chunks/localize-C25pEGnx.esm.js";import{D as Q,W as C,e as X,i as Y,S as Z}from"../chunks/routes-CAhDCFDX.esm.js";import{p as ee}from"../chunks/progress-bar-DF7UuuHb.esm.js";import{p as te}from"../chunks/promo-pill-label-CbW_Vcru.esm.js";import{c as oe,d as ie,e as P}from"../chunks/enforce-config-Ba1JkOHs.esm.js";import{_ as ne}from"../chunks/loading-template-DG4lkIIc.esm.js";import{f as A,c as M,i as re,g as T,a as B}from"../chunks/events-BohmT6Lp.esm.js";import{logger as ae}from"../utils/logger.js";import{createScopedLocalStorage as se}from"../utils/local-storage.js";import{f as le,i as ce,e as pe,h as de,k as fe,s as me}from"../chunks/promoManager-B9cTR1R3.esm.js";import{c as ge}from"../chunks/responsive-BR8qUfBa.esm.js";import{B as F}from"../chunks/cart-contents-DkoytiZh.esm.js";import{getBeamCartId as K,getExternalCartId as _}from"../utils/cart.js";import"../chunks/beam-errors-Ci0d3926.esm.js";import"../chunks/vendor-KKSARHWL.esm.js";import"../utils/cookies.js";class he extends k{static get styles(){return $`
2
2
  :host {
3
3
  }
4
4
 
@@ -18,49 +18,51 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
18
18
  aria-label="Notification Blip"
19
19
  >
20
20
  <span class="notification-blip" part="notification-blip" role="button" tabindex="0" aria-hidden="true"></span>
21
- </div>`}}customElements.get("beam-notification-blip")||customElements.define("beam-notification-blip",de);const fe={"--beam-notificationBlip-color-background":"#000"},g={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaPromoPrefixMessage:()=>"At no extra cost,",ctaPromoMessage:({donationPercentage:r="1"}={})=>`select a nonprofit and ${r}% of your purchase will be donated.`,ctaMessage:({donationPercentage:r="1"}={})=>`At no extra cost, select a nonprofit and ${r}% of your purchase will be donated.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Sans frais suppl\xE9mentaires, choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Ohne zus\xE4tzliche Kosten, w\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Sin coste adicional, elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Senza costi aggiuntivi, seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Bez \u017Cadnych dodatkowych koszt\xF3w wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w!`,inlineSeparator:()=>": "}};var me=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,p=(r,e,t,i)=>{for(var o=i>1?void 0:i?ge(e,t):e,n=r.length-1,a;n>=0;n--)(a=r[n])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&me(e,t,o),o};class s extends w{constructor(){super(...arguments),this.baseUrl=V,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.draftConfig=!1,this.isMobile=window.innerWidth<768,this.enableNonprofitDeselection=!1,this.didTryToCreateNewSelectionFromCache=!1,this.pluginPromoCodes=[],this.handlePromoCodesStored=e=>{const t=(e.detail.promoCodes?.unvalidatedPromoCodes??[]).map(i=>i.attributes?.value??i.attributes?.url??"").sort();this.pluginPromoCodes=t},this.getChainNonprofits=async()=>{v(["apiKey"],this);const e=M(A,{apiKey:this.apiKey}),t=T("cart",{apiKey:this.apiKey}),i=this.cart?.content?{schema:this.cart?.schema,content:this.cart?.content}:void 0,o=this.getManualPromoCodes(),n=ne(o.map(u=>({value:u})),this.apiKey),a=n&&!re(n);a&&this.dispatchEvent(new L({source:N.select_nonprofit}));const l=await q({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{storeId:this.storeId,widgetName:N.select_nonprofit,postalCode:this.postalCode,countryCode:this.countryCode,beamCartId:e||void 0,cartId:t||void 0,version:"1.0.0",lang:this.configLang,...a&&{promos:n},options:{config:{draftConfig:this.draftConfig}},cart:i}});return this.enableNonprofitDeselection=!!l.config.enableNonprofitDeselection,this.selectedNonprofitId!==null&&this.selectedNonprofitId&&!l.nonprofits.map(u=>u.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,await this.postSelectNonprofit({selectedNonprofitId:null}),this.localStorage.setItem("nonprofit",null)),l.store?.id&&l.store.id!==this.storeId&&(this.storeId=l.store.id),await this.createNewSelectionForCachedNonprofit(),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:l}),this.handleValidatedPromoCodes(l),l},this.postSelectNonprofit=async({selectedNonprofitId:e})=>{v(["apiKey","storeId"],this);const t=T("cart",{apiKey:this.apiKey}),i=M(A,{apiKey:this.apiKey}),o=await J({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:e,selectionId:this.selectionId,storeId:this.storeId,cartId:t||void 0,beamCartId:i||void 0,postalCode:this.postalCode,countryCode:this.countryCode}});this.selectionId=o?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",e),this.localStorage.setItem("nonprofit_selected_at",new Date().toISOString()),await this.updateComplete;const n=this.getNonprofitById(e);e!==null&&this.dispatchEvent(new D({selectedNonprofitId:e,selectionId:this.selectionId,nonprofitName:n?.nonprofit?.name??null,source:N.select_nonprofit})),e===null&&this.dispatchEvent(new te({newNonprofitId:null,selectionId:this.selectionId}))},this.nonprofitListDataController=new k(this,this.getChainNonprofits),this.selectionDataController=new k(this,this.postSelectNonprofit),this.localStorage=ie(this),this.handleCartChange=e=>{this.cart=e.detail},this.makeHandleSelect=(e,t,i)=>async o=>{const n=this.selectedNonprofitId;if(o instanceof KeyboardEvent){let a=null;switch(o.key){case"ArrowUp":case"ArrowLeft":t===0?a=i[i.length-1]:a=i[t-1],o.preventDefault();break;case"ArrowRight":case"ArrowDown":t===i.length-1?a=i[0]:a=i[t+1],o.preventDefault();break;case"Enter":case" ":o.preventDefault();break;default:return}if(a){n!=null&&(this.selectedNonprofitId=a.nonprofit.id);const l=this.renderRoot.querySelector(`[data-value="${a.nonprofit.id}"]`);l!==null&&(l.tabIndex=0,l.focus());return}}if(o.currentTarget instanceof HTMLElement)if(n===e)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null,this.localStorage.setItem("nonprofit",null);else return;else this.selectedNonprofitId=e;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})},this.evaluateBreakPoints=R(()=>{this.isMobile=window.innerWidth<768},50,{maxWait:50,leading:!0})}get configLang(){return G[this.lang]||"en"}get parsedPromoCodes(){return ae(this.promoCodes)}getManualPromoCodes(){if(this.parsedPromoCodes&&this.parsedPromoCodes.length>0)return this.parsedPromoCodes;const e=this.localStorage.getItemJson("cart");return e?se(e):[]}async handleValidatedPromoCodes(e){e.promos?.validatedPromoCodes&&(await Promise.all([le({apiKey:this.apiKey,promoCodes:{validatedPromoCodes:e.promos.validatedPromoCodes,unvalidatedPromoCodes:[]}}),ce({validatedPromoCodes:e.promos.validatedPromoCodes,domain:this.domain})]),this.dispatchEvent(new L({source:N.select_nonprofit})))}getNonprofitById(e){return e?this.nonprofitListDataController?.data?.nonprofits.find(t=>t.nonprofit.id===e):null}async connectedCallback(){super.connectedCallback(),this.nonprofitListDataController.loading=!0,window.addEventListener(E.eventName,this.handleCartChange),window.addEventListener("resize",this.evaluateBreakPoints)}async firstUpdated(){await this.restoreStateFromCache(),window.addEventListener(z.eventName,this.handlePromoCodesStored)}async updated(e){const t=["baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang","pluginPromoCodes"];this.pluginPromoCodes;for(const i of t)if(e.has(i)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(E.eventName,this.handleCartChange),window.removeEventListener("resize",this.evaluateBreakPoints),window.removeEventListener(z.eventName,this.handlePromoCodesStored),super.disconnectedCallback()}async restoreStateFromCache(){try{const e=new Date().valueOf();this.cart=this.localStorage.getItemJson("cart")??void 0;const t=30*24*60*60*1e3,i=this.localStorage.getItem("nonprofit_selected_at")??0,o=e>new Date(i).valueOf()+t;o?o&&this.selectedNonprofitId!==null&&(await this.postSelectNonprofit({selectedNonprofitId:null}),this.localStorage.setItem("nonprofit",null)):(this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0);const{createdAt:n=0,data:a}=this.localStorage.getItemJson("chainNonprofits")||{},l=2*60*60*1e3;!(e>new Date(n).valueOf()+l)&&this.nonprofitListDataController.loading&&(this.nonprofitListDataController.data=a,this.nonprofitListDataController.loading=!1)}catch(e){oe.error(e)}}async createNewSelectionForCachedNonprofit(){if(v(["apiKey"],this),!(!this.storeId||this.didTryToCreateNewSelectionFromCache))try{if(this.didTryToCreateNewSelectionFromCache=!0,this.selectedNonprofitId){this.selectionId||await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId});const e=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new D({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:e?.nonprofit?.name,source:N.select_nonprofit}))}}catch{}}get cssVariables(){const e={"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...Q,"--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","--beam-SelectNonprofit-details-padding":"10px",...h("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),"--beam-SelectNonprofit-header-inline-lineHeight":"inherit",...h("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none","--beam-SelectNonprofit-title-block-margin-right":"8px",...h("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...h("--beam-SelectNonprofit-description-inline"),...h("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...h("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...h("--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",...h("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"}),...fe,...X,"--beam-SelectNonprofit-promo-block-header-justifyContent":"initial","--beam-SelectNonprofit-notification-blip-top":"4px","--beam-SelectNonprofit-notification-blip-left":"50%","--beam-SelectNonprofit-display-notification-blip":"true"},t=this.nonprofitListDataController?.data?.config?.web?.theme||{},i={...e,...t};return Object.assign(Object.create({toCSS(){return H(this)}}),i)}render(){const{selectedNonprofitId:e}=this,{data:t,loading:i}=this.nonprofitListDataController;if(i&&!t)return ee();if(this.nonprofitListDataController.error)return this.debug?$({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return $({error:this.selectionDataController.error});const o=t?.nonprofits||[],n=o.find(c=>c.nonprofit.id===e)||null,a=!!t?.config?.web?.promo,l=o.some(c=>!c.promo||!c.promo.isActive),u=this.cssVariables["--beam-SelectNonprofit-display-notification-blip"]==="true",y=this.cssVariables["--beam-SelectNonprofit-title-textAlign"]==="center",x=d`<h3 class="title-block d-none d-lg-block" part="title" id="beam-SelectNonprofit-title">
21
+ </div>`}}customElements.get("beam-notification-blip")||customElements.define("beam-notification-blip",he);const be={"--beam-notificationBlip-color-background":"#000"},g={en:{beamAttribution:()=>"Powered by Beam",ctaTitle:()=>"Choose your impact",ctaPromoPrefixMessage:()=>"At no extra cost,",ctaPromoMessage:({donationPercentage:r="1"}={})=>`select a nonprofit and ${r}% of your purchase will be donated.`,ctaMessage:({donationPercentage:r="1"}={})=>`At no extra cost, select a nonprofit and ${r}% of your purchase will be donated.`,inlineSeparator:()=>": "},fr:{beamAttribution:()=>"Optimis\xE9 par Beam",ctaTitle:()=>"Choisissez votre cause",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Sans frais suppl\xE9mentaires, choisissez un organisme \xE0 but non lucratif et ${r} % lui sera vers\xE9 en votre nom.`,inlineSeparator:()=>" : "},de:{beamAttribution:()=>"Unterst\xFCtzt von Beam",ctaTitle:()=>"W\xE4hle deinen Impact",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Ohne zus\xE4tzliche Kosten, w\xE4hle eine der gemeinn\xFCtzigen Organisationen und spende ${r}% deines Einkaufs`,inlineSeparator:()=>": "},es:{beamAttribution:()=>"Ofrecido por Beam",ctaTitle:()=>"Elige tu contribuci\xF3n",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Sin coste adicional, elige una organizaci\xF3n sin fines de lucro y donaremos ${r}% de tu compra.`,inlineSeparator:()=>": "},it:{beamAttribution:()=>"Gestito da Beam",ctaTitle:()=>"Scegli dove fare la differenza",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Senza costi aggiuntivi, seleziona un'organizzazione no-profit a cui devolvere l\u2019${r}% del tuo acquisto`,inlineSeparator:()=>": "},pl:{beamAttribution:()=>"Wspierany przez Beam",ctaTitle:()=>"Wybierz inicjatyw\u0119, kt\xF3r\u0105 chcesz wesprze\u0107",ctaPromoPrefixMessage:()=>"",ctaPromoMessage:()=>"",ctaMessage:({donationPercentage:r="1"}={})=>`Bez \u017Cadnych dodatkowych koszt\xF3w wybierz organizacj\u0119, kt\xF3rej przeka\u017Cesz ${r}% warto\u015Bci Twoich zakup\xF3w!`,inlineSeparator:()=>": "}};var ue=Object.defineProperty,p=(r,e,t,n)=>{for(var o=void 0,i=r.length-1,s;i>=0;i--)(s=r[i])&&(o=s(e,t,o)||o);return o&&ue(e,t,o),o};class l extends k{constructor(){super(...arguments),this.baseUrl=Q,this.selectedNonprofitId=null,this.lang="en",this.debug=!1,this.draftConfig=!1,this.isMobile=window.innerWidth<768,this.enableNonprofitDeselection=!1,this.didTryToCreateNewSelectionFromCache=!1,this.pluginPromoCodes=[],this.handlePromoCodesStored=e=>{const t=(e.detail.promoCodes?.unvalidatedPromoCodes??[]).map(n=>n.attributes?.value??n.attributes?.url??"").sort();this.pluginPromoCodes=t},this.getChainNonprofits=async()=>{P(["apiKey"],this);const e=K(F,{apiKey:this.apiKey}),t=_("cart",{apiKey:this.apiKey}),n=this.cart?.content?{schema:this.cart?.schema,content:this.cart?.content}:void 0,o=this.getManualPromoCodes(),i=le(o.map(b=>({value:b})),this.apiKey),s=i&&!ce(i);s&&this.dispatchEvent(new A({source:C.select_nonprofit}));const c=await X({baseUrl:this.baseUrl,apiRoot:"/api/v3",headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{storeId:this.storeId,widgetName:C.select_nonprofit,postalCode:this.postalCode,countryCode:this.countryCode,beamCartId:e||void 0,cartId:t||void 0,version:"1.0.0",lang:this.configLang,...s&&{promos:i},options:{config:{draftConfig:this.draftConfig}},cart:n}});return this.enableNonprofitDeselection=!!c.config.enableNonprofitDeselection,this.selectedNonprofitId!==null&&this.selectedNonprofitId&&!c.nonprofits.map(b=>b.nonprofit.id).includes(this.selectedNonprofitId)&&(this.selectedNonprofitId=null,await this.postSelectNonprofit({selectedNonprofitId:null}),this.localStorage.setItem("nonprofit",null)),c.store?.id&&c.store.id!==this.storeId&&(this.storeId=c.store.id),await this.createNewSelectionForCachedNonprofit(),this.localStorage.setItemJson("chainNonprofits",{createdAt:new Date,data:c}),this.handleValidatedPromoCodes(c),c},this.postSelectNonprofit=async({selectedNonprofitId:e})=>{P(["apiKey","storeId"],this);const t=_("cart",{apiKey:this.apiKey}),n=K(F,{apiKey:this.apiKey}),o=await Y({baseUrl:this.baseUrl,headers:{authorization:`Api-Key ${this.apiKey}`},requestBody:{nonprofitId:e,selectionId:this.selectionId,storeId:this.storeId,cartId:t||void 0,beamCartId:n||void 0,postalCode:this.postalCode,countryCode:this.countryCode}});this.selectionId=o?.selectionId,this.localStorage.setItem("transaction",this.selectionId),this.localStorage.setItem("nonprofit",e),this.localStorage.setItem("nonprofit_selected_at",new Date().toISOString()),await this.updateComplete;const i=this.getNonprofitById(e);e!==null&&this.dispatchEvent(new M({selectedNonprofitId:e,selectionId:this.selectionId,nonprofitName:i?.nonprofit?.name??null,source:C.select_nonprofit})),e===null&&this.dispatchEvent(new re({newNonprofitId:null,selectionId:this.selectionId}))},this.nonprofitListDataController=new E(this,this.getChainNonprofits),this.selectionDataController=new E(this,this.postSelectNonprofit),this.localStorage=se(this),this.handleCartChange=e=>{this.cart=e.detail},this.makeHandleSelect=(e,t,n)=>async o=>{const i=this.selectedNonprofitId;if(o instanceof KeyboardEvent){let s=null;switch(o.key){case"ArrowUp":case"ArrowLeft":t===0?s=n[n.length-1]:s=n[t-1],o.preventDefault();break;case"ArrowRight":case"ArrowDown":t===n.length-1?s=n[0]:s=n[t+1],o.preventDefault();break;case"Enter":case" ":o.preventDefault();break;default:return}if(s){i!=null&&(this.selectedNonprofitId=s.nonprofit.id);const c=this.renderRoot.querySelector(`[data-value="${s.nonprofit.id}"]`);c!==null&&(c.tabIndex=0,c.focus());return}}if(o.currentTarget instanceof HTMLElement)if(i===e)if(this.enableNonprofitDeselection)this.selectedNonprofitId=null,this.localStorage.setItem("nonprofit",null);else return;else this.selectedNonprofitId=e;await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId})},this.evaluateBreakPoints=J(()=>{this.isMobile=window.innerWidth<768},50,{maxWait:50,leading:!0})}get configLang(){return Z[this.lang]||"en"}get parsedPromoCodes(){return pe(this.promoCodes)}getManualPromoCodes(){if(this.parsedPromoCodes&&this.parsedPromoCodes.length>0)return this.parsedPromoCodes;const e=this.localStorage.getItemJson("cart");return e?de(e):[]}async handleValidatedPromoCodes(e){e.promos?.validatedPromoCodes&&(await Promise.all([fe({apiKey:this.apiKey,promoCodes:{validatedPromoCodes:e.promos.validatedPromoCodes,unvalidatedPromoCodes:[]}}),me({validatedPromoCodes:e.promos.validatedPromoCodes,domain:this.domain})]),this.dispatchEvent(new A({source:C.select_nonprofit})))}getNonprofitById(e){return e?this.nonprofitListDataController?.data?.nonprofits.find(t=>t.nonprofit.id===e):null}async connectedCallback(){super.connectedCallback(),this.nonprofitListDataController.loading=!0,window.addEventListener(T.eventName,this.handleCartChange),window.addEventListener("resize",this.evaluateBreakPoints)}async firstUpdated(){await this.restoreStateFromCache(),window.addEventListener(B.eventName,this.handlePromoCodesStored)}async updated(e){const t=["baseUrl","storeId","apiKey","countryCode","postalCode","cart","lang","pluginPromoCodes"];this.pluginPromoCodes;for(const n of t)if(e.has(n)){await this.nonprofitListDataController.exec();break}}disconnectedCallback(){window.removeEventListener(T.eventName,this.handleCartChange),window.removeEventListener("resize",this.evaluateBreakPoints),window.removeEventListener(B.eventName,this.handlePromoCodesStored),super.disconnectedCallback()}async restoreStateFromCache(){try{const e=new Date().valueOf();this.cart=this.localStorage.getItemJson("cart")??void 0;const t=30*24*60*60*1e3,n=this.localStorage.getItem("nonprofit_selected_at")??0,o=e>new Date(n).valueOf()+t;o?o&&this.selectedNonprofitId!==null&&(await this.postSelectNonprofit({selectedNonprofitId:null}),this.localStorage.setItem("nonprofit",null)):(this.selectedNonprofitId=parseInt(this.localStorage.getItem("nonprofit")||"")||null,this.selectionId=this.localStorage.getItem("transaction")??void 0);const{createdAt:i=0,data:s}=this.localStorage.getItemJson("chainNonprofits")||{},c=2*60*60*1e3;!(e>new Date(i).valueOf()+c)&&this.nonprofitListDataController.loading&&(this.nonprofitListDataController.data=s,this.nonprofitListDataController.loading=!1)}catch(e){ae.error(e)}}async createNewSelectionForCachedNonprofit(){if(P(["apiKey"],this),!(!this.storeId||this.didTryToCreateNewSelectionFromCache))try{if(this.didTryToCreateNewSelectionFromCache=!0,this.selectedNonprofitId){this.selectionId||await this.selectionDataController.exec({selectedNonprofitId:this.selectedNonprofitId});const e=this.getNonprofitById(this.selectedNonprofitId);this.dispatchEvent(new M({selectedNonprofitId:this.selectedNonprofitId,selectionId:this.selectionId,nonprofitName:e?.nonprofit?.name,source:C.select_nonprofit}))}}catch{}}get cssVariables(){const e={"--beam-fontFamily":"inherit","--beam-fontStyle":"inherit","--beam-fontSize":"inherit","--beam-textColor":"inherit","--beam-backgroundColor":"inherit",...ee,"--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","--beam-SelectNonprofit-details-padding":"10px",...h("--beam-SelectNonprofit-title",{fontSize:"1.25em",fontWeight:"bold"}),"--beam-SelectNonprofit-header-inline-lineHeight":"inherit",...h("--beam-SelectNonprofit-title-inline",{fontWeight:"bold"}),"--beam-SelectNonprofit-title-inline-textTransform":"none","--beam-SelectNonprofit-title-block-margin-right":"8px",...h("--beam-SelectNonprofit-description",{marginTop:"0.5em"}),...h("--beam-SelectNonprofit-description-inline"),...h("--beam-SelectNonprofit-details-cause",{fontSize:"0.85em",fontWeight:"bold"}),...h("--beam-SelectNonprofit-details-beamAttribution",{fontSize:"0.85em"}),...h("--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",...h("--beam-SelectNonprofit-details-fundingProgressLabel",{fontSize:"0.85em"}),...be,...te,"--beam-SelectNonprofit-promo-block-header-justifyContent":"initial","--beam-SelectNonprofit-notification-blip-top":"4px","--beam-SelectNonprofit-notification-blip-left":"50%","--beam-SelectNonprofit-display-notification-blip":"true","--beam-SelectNonprofit-enable-inline-header":"false"},t=this.nonprofitListDataController?.data?.config?.web?.theme||{},n={...e,...t};return Object.assign(Object.create({toCSS(){return G(this)}}),n)}render(){const{selectedNonprofitId:e}=this,{data:t,loading:n}=this.nonprofitListDataController;if(n&&!t)return ne();if(this.nonprofitListDataController.error)return this.debug?z({error:this.nonprofitListDataController.error}):"";if(this.selectionDataController.error&&this.debug)return z({error:this.selectionDataController.error});const o=t?.nonprofits||[],i=o.find(a=>a.nonprofit.id===e)||null,s=!!t?.config?.web?.promo,c=o.some(a=>!a.promo||!a.promo.isActive),b=a=>this.cssVariables[a],W=b("--beam-SelectNonprofit-display-notification-blip")==="true",y=b("--beam-SelectNonprofit-title-textAlign")==="center",u=b("--beam-SelectNonprofit-enable-inline-header")==="true"||this.isMobile,I=d`<h3
22
+ class=${v({"title-block":!0,"d-none":!0,"d-block":!u})}
23
+ part="title"
24
+ id="beam-SelectNonprofit-title"
25
+ >
22
26
  ${m(this.configLang,t?.config?.web?.title||"")||g[this.configLang].ctaTitle()}
23
- </h3>`,B=()=>a?d`<div
24
- class="${this.isMobile?y?"block-header-promo-pill-center-block-container-responsive":"block-header-promo-pill-container-responsive":y?"block-header-promo-pill-center-block-container-responsive":"block-header-promo-pill-container"}"
25
- style="${this.isMobile?"display: flex":""}"
26
- >
27
- ${x}
27
+ </h3>`,U=()=>{const a=v({"block-header-promo-pill-container":!u&&!y,"block-header-promo-pill-container-responsive":u&&!y,"block-header-promo-pill-center-block-container-responsive":!u&&y}),x=D({display:u?"flex":void 0});return s?d`<div class=${a} style=${x}>
28
+ ${I}
28
29
  <beam-promo-info-pill .promo=${t?.config?.web?.promo}></beam-promo-info-pill>
29
- </div>`:x;return d`
30
- <style>
31
- :host {
32
- ${this.cssVariables.toCSS()}
33
- }
34
- </style>
30
+ </div>`:I},R=()=>d`
35
31
  <div part="heading">
36
- ${B()}
37
- <p class="description" part="description">
38
- <span class="d-none d-lg-inline">
39
- ${a?d`<span style="font-weight:bold">
40
- ${m(this.configLang,t?.config?.web?.promoDescriptionPrefix||"")||g[this.configLang].ctaPromoPrefixMessage()}
41
- </span>
42
- <span>
43
- ${m(this.configLang,t?.config?.web?.promoDescription||"")||g[this.configLang].ctaPromoMessage()}
44
- </span>`:d`<span>
45
- ${m(this.configLang,t?.config?.web?.description||"")||g[this.configLang].ctaMessage()}
46
- </span>`}
47
- </span>
48
- <div class="d-lg-none header-inline">
49
- <span class="title-inline" part="title">
50
- ${(m(this.configLang,t?.config?.web?.title||"")||g[this.configLang].ctaTitle())+g[this.configLang].inlineSeparator()}
51
- </span>
52
- <span class="description-inline" part="description">
53
- ${a?d`<span style="font-weight:bold">
32
+ ${U()}
33
+ <p class="description" part="description">
34
+ <span class=${v({"d-none":!0,"d-inline":!u})}>
35
+ ${s?d`<span style="font-weight:bold">
54
36
  ${m(this.configLang,t?.config?.web?.promoDescriptionPrefix||"")||g[this.configLang].ctaPromoPrefixMessage()}
55
37
  </span>
56
38
  <span>
57
39
  ${m(this.configLang,t?.config?.web?.promoDescription||"")||g[this.configLang].ctaPromoMessage()}
58
- </span>`:d`<span
59
- >${m(this.configLang,t?.config?.web?.description||"")||g[this.configLang].ctaMessage()}
40
+ </span>`:d`<span>
41
+ ${m(this.configLang,t?.config?.web?.description||"")||g[this.configLang].ctaMessage()}
60
42
  </span>`}
61
- </div>
62
- </p>
63
- </div>
43
+ </span>
44
+ <div class=${v({"d-none":!u,"header-inline":!0})}>
45
+ <span class="title-inline" part="title">
46
+ ${(m(this.configLang,t?.config?.web?.title||"")||g[this.configLang].ctaTitle())+g[this.configLang].inlineSeparator()}
47
+ </span>
48
+ <span class="description-inline" part="description">
49
+ ${s?d`<span style="font-weight:bold">
50
+ ${m(this.configLang,t?.config?.web?.promoDescriptionPrefix||"")||g[this.configLang].ctaPromoPrefixMessage()}
51
+ </span>
52
+ <span>
53
+ ${m(this.configLang,t?.config?.web?.promoDescription||"")||g[this.configLang].ctaPromoMessage()}
54
+ </span>`:d`<span
55
+ >${m(this.configLang,t?.config?.web?.description||"")||g[this.configLang].ctaMessage()}
56
+ </span>`}
57
+ </div>
58
+ </p>
59
+ </div>`;return d`
60
+ <style>
61
+ :host {
62
+ ${this.cssVariables.toCSS()}
63
+ }
64
+ </style>
65
+ ${R()}
64
66
  <div
65
67
  class="options"
66
68
  part="options"
@@ -68,21 +70,21 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
68
70
  aria-labelledby="beam-SelectNonprofit-title"
69
71
  style="display: flex; gap: var(--beam-SelectNonprofit-options-gap); margin: 10px 0 0 0;"
70
72
  >
71
- ${W(o,c=>c.nonprofit.id,({nonprofit:c,promo:F},C)=>{const S=e===c.id,K=S||n==null&&C===0,_=F?.isActive&&t?.config.web.promo&&l&&u;return d`
73
+ ${H(o,a=>a.nonprofit.id,({nonprofit:a,promo:x},w)=>{const N=e===a.id,O=N||i==null&&w===0,j=x?.isActive&&t?.config.web.promo&&c&&W;return d`
72
74
  <div
73
75
  class="option"
74
76
  part="option"
75
77
  role="radio"
76
- tabindex="${K?0:-1}"
77
- data-value=${c.id}
78
- aria-checked=${S}
79
- @click=${this.makeHandleSelect(c.id,C,o)}
80
- @keydown=${this.makeHandleSelect(c.id,C,o)}
81
- aria-label="${m(this.configLang,c.cause||"")}"
82
- style="${U({cursor:"pointer",flex:"1",textAlign:"center",lineHeight:"1",marginTop:"var(--beam-SelectNonprofit-options-marginTop, 0px)",padding:"var(--beam-SelectNonprofit-options-padding, 10px)",borderWidth:"var(--beam-SelectNonprofit-options-borderWidth, 1px)",borderStyle:"solid",position:"relative",borderRadius:"var(--beam-SelectNonprofit-options-borderRadius, 0)",borderColor:S?c.causeColor||"var(--beam-SelectNonprofit-options--selected-borderColor, currentColor)":"var(--beam-SelectNonprofit-options-borderColor, currentColor)",backgroundColor:S?c.causeColor||"var(--beam-SelectNonprofit-options--selected-backgroundColor, currentColor)":"var(--beam-SelectNonprofit-options-backgroundColor, transparent)"})}"
78
+ tabindex="${O?0:-1}"
79
+ data-value=${a.id}
80
+ aria-checked=${N}
81
+ @click=${this.makeHandleSelect(a.id,w,o)}
82
+ @keydown=${this.makeHandleSelect(a.id,w,o)}
83
+ aria-label="${m(this.configLang,a.cause||"")}"
84
+ style="${D({cursor:"pointer",flex:"1",textAlign:"center",lineHeight:"1",marginTop:"var(--beam-SelectNonprofit-options-marginTop, 0px)",padding:"var(--beam-SelectNonprofit-options-padding, 10px)",borderWidth:"var(--beam-SelectNonprofit-options-borderWidth, 1px)",borderStyle:"solid",position:"relative",borderRadius:"var(--beam-SelectNonprofit-options-borderRadius, 0)",borderColor:N?a.causeColor||"var(--beam-SelectNonprofit-options--selected-borderColor, currentColor)":"var(--beam-SelectNonprofit-options-borderColor, currentColor)",backgroundColor:N?a.causeColor||"var(--beam-SelectNonprofit-options--selected-backgroundColor, currentColor)":"var(--beam-SelectNonprofit-options-backgroundColor, transparent)"})}"
83
85
  >
84
86
  <img
85
- src="${S?c.causeIconSelectedUrl:c.causeIconUrl}"
87
+ src="${N?a.causeIconSelectedUrl:a.causeIconUrl}"
86
88
  alt=""
87
89
  role="presentation"
88
90
  style="
@@ -91,62 +93,60 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
91
93
  vertical-align: -webkit-baseline-middle;
92
94
  "
93
95
  />
94
- ${_?d`<beam-notification-blip></beam-notification-blip>`:d``}
96
+ ${j?d`<beam-notification-blip></beam-notification-blip>`:d``}
95
97
  </div>
96
98
  `})}
97
99
  </div>
98
- ${n!=null?d`
99
- <div
100
- class="details"
101
- part="details"
102
- style="
100
+ ${i!=null?d`
101
+ <div
102
+ class="details"
103
+ part="details"
104
+ style="
103
105
  border: 1px solid var(--beam-SelectNonprofit-details-borderColor);
104
106
  border-radius: var(--beam-SelectNonprofit-details-borderRadius);
105
107
  background-color: var(--beam-SelectNonprofit-details-backgroundColor);
106
108
  padding: var(--beam-SelectNonprofit-details-padding);
107
109
  margin-top: var(--beam-SelectNonprofit-details-marginTop);
108
110
  "
109
- aria-label="Funding information for selected nonprofit ${n.nonprofit?.name}. Powered by Beam"
110
- >
111
- <div
112
- style="display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap-reverse"
111
+ aria-label="Funding information for selected nonprofit ${i.nonprofit?.name}. Powered by Beam"
112
+ >
113
+ <div style="display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap-reverse">
114
+ <span
115
+ class="details-cause"
116
+ style="flex: 0 1; white-space: nowrap; ${S("--beam-SelectNonprofit-details-cause")}"
113
117
  >
118
+ ${i?.promo?.isActive&&c?t?.config.web.promo?.["promo-cause-alt-text"]||i.nonprofit.cause:m(this.configLang,i.nonprofit.cause||"")}
119
+ </span>
120
+ <div aria-hidden="true">
114
121
  <span
115
- class="details-cause"
116
- style="flex: 0 1; white-space: nowrap; ${b("--beam-SelectNonprofit-details-cause")}"
122
+ class="details-beamAttribution"
123
+ aria-hidden="true"
124
+ style="flex: 0 1; white-space: nowrap; ${S("--beam-SelectNonprofit-details-beamAttribution")}"
117
125
  >
118
- ${n?.promo?.isActive&&l?t?.config.web.promo?.["promo-cause-alt-text"]||n.nonprofit.cause:m(this.configLang,n.nonprofit.cause||"")}
126
+ ${g[this.configLang].beamAttribution()}
119
127
  </span>
120
- <div aria-hidden="true">
121
- <span
122
- class="details-beamAttribution"
123
- aria-hidden="true"
124
- style="flex: 0 1; white-space: nowrap; ${b("--beam-SelectNonprofit-details-beamAttribution")}"
125
- >
126
- ${g[this.configLang].beamAttribution()}
127
- </span>
128
- </div>
129
128
  </div>
130
- <p class="details-impactDescription">
131
- ${O(m(this.configLang,n.impact.description||""))}
132
- </p>
133
- <div
134
- style="display: flex; margin-top: var(--beam-SelectNonprofit-details-fundingProgress-marginTop); align-items: center;"
129
+ </div>
130
+ <p class="details-impactDescription">
131
+ ${q(m(this.configLang,i.impact.description||""))}
132
+ </p>
133
+ <div
134
+ style="display: flex; margin-top: var(--beam-SelectNonprofit-details-fundingProgress-marginTop); align-items: center;"
135
+ >
136
+ <beam-progress-bar
137
+ value="${i.impact.goalProgressPercentage}"
138
+ style="flex: 1 0;"
139
+ ></beam-progress-bar>
140
+ <span
141
+ class="details-fundingProgressLabel"
142
+ style="${S("--beam-SelectNonprofit-details-fundingProgressLabel")} white-space: nowrap; text-align: right; flex: 0 1; margin-left: 15px;"
135
143
  >
136
- <beam-progress-bar
137
- value="${n.impact.goalProgressPercentage}"
138
- style="flex: 1 0;"
139
- ></beam-progress-bar>
140
- <span
141
- class="details-fundingProgressLabel"
142
- style="${b("--beam-SelectNonprofit-details-fundingProgressLabel")} white-space: nowrap; text-align: right; flex: 0 1; margin-left: 15px;"
143
- >
144
- ${m(this.configLang,n.impact.goalProgressText)}
145
- </span>
146
- </div>
144
+ ${m(this.configLang,i.impact.goalProgressText)}
145
+ </span>
147
146
  </div>
148
- `:""}
149
- `}}s.tagName="beam-select-nonprofit",s.styles=[Y,pe,I`
147
+ </div>
148
+ `:""}
149
+ `}}l.tagName="beam-select-nonprofit",l.styles=[oe,ge,$`
150
150
  :host {
151
151
  display: block;
152
152
  max-width: var(--beam-SelectNonprofit-maxWidth, 800px);
@@ -159,7 +159,7 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
159
159
  }
160
160
 
161
161
  .details-impactDescription {
162
- ${b("--beam-SelectNonprofit-details-impactDescription")}
162
+ ${S("--beam-SelectNonprofit-details-impactDescription")}
163
163
  }
164
164
 
165
165
  .details-impactDescription .nonprofitName {
@@ -171,7 +171,7 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
171
171
 
172
172
  .title-block {
173
173
  margin-right: var(--beam-SelectNonprofit-title-block-margin-right);
174
- ${b("--beam-SelectNonprofit-title")}
174
+ ${S("--beam-SelectNonprofit-title")}
175
175
  text-align: var(--beam-SelectNonprofit-title-textAlign);
176
176
  }
177
177
 
@@ -196,7 +196,7 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
196
196
  }
197
197
 
198
198
  .description {
199
- ${b("--beam-SelectNonprofit-description")}
199
+ ${S("--beam-SelectNonprofit-description")}
200
200
  text-align: var(--beam-SelectNonprofit-description-textAlign);
201
201
  }
202
202
 
@@ -232,5 +232,5 @@ import{h as w,f as I,y as d,g as f,t as P,q as W,m as U,k as O}from"../chunks/li
232
232
  top: var(--beam-SelectNonprofit-notification-blip-top);
233
233
  left: var(--beam-SelectNonprofit-notification-blip-left);
234
234
  }
235
- `],p([f({type:String})],s.prototype,"baseUrl",2),p([f({type:String})],s.prototype,"apiKey",2),p([f({type:Number,reflect:!0})],s.prototype,"storeId",2),p([f({type:String})],s.prototype,"countryCode",2),p([f({type:String})],s.prototype,"postalCode",2),p([f({attribute:!1,hasChanged:(r,e)=>!j(r,e)})],s.prototype,"cart",2),p([f({type:Number,reflect:!0})],s.prototype,"selectedNonprofitId",2),p([f({type:String})],s.prototype,"lang",2),p([f({type:Boolean})],s.prototype,"debug",2),p([f({type:Boolean})],s.prototype,"draftConfig",2),p([f({type:String})],s.prototype,"promoCodes",2),p([f({type:String})],s.prototype,"domain",2),p([P()],s.prototype,"isMobile",2),p([P()],s.prototype,"pluginPromoCodes",2),Z(s);export{s as BeamSelectNonprofit};
235
+ `],p([f({type:String})],l.prototype,"baseUrl"),p([f({type:String})],l.prototype,"apiKey"),p([f({type:Number,reflect:!0})],l.prototype,"storeId"),p([f({type:String})],l.prototype,"countryCode"),p([f({type:String})],l.prototype,"postalCode"),p([f({attribute:!1,hasChanged:(r,e)=>!V(r,e)})],l.prototype,"cart"),p([f({type:Number,reflect:!0})],l.prototype,"selectedNonprofitId"),p([f({type:String})],l.prototype,"lang"),p([f({type:Boolean})],l.prototype,"debug"),p([f({type:Boolean})],l.prototype,"draftConfig"),p([f({type:String})],l.prototype,"promoCodes"),p([f({type:String})],l.prototype,"domain"),p([L()],l.prototype,"isMobile"),p([L()],l.prototype,"pluginPromoCodes"),ie(l);export{l as BeamSelectNonprofit};
236
236
  //# sourceMappingURL=select-nonprofit.js.map