@internetarchive/elements 1.1.7-webdev-9054.0 → 1.1.7-webdev-9540.0

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 (310) hide show
  1. package/README.md +19 -0
  2. package/dist/src/elements/ia-combo-box/ia-combo-box.d.ts.map +1 -1
  3. package/dist/src/elements/ia-combo-box/ia-combo-box.js +24 -21
  4. package/dist/src/elements/ia-combo-box/ia-combo-box.js.map +1 -1
  5. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.d.ts.map +1 -1
  6. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.js +3 -4
  7. package/dist/src/elements/ia-donation-form/braintree/payment-providers/paypal/paypal.js.map +1 -1
  8. package/dist/src/elements/ia-dropdown-search-bar/ia-dropdown-search-bar.d.ts.map +1 -1
  9. package/dist/src/elements/ia-dropdown-search-bar/ia-dropdown-search-bar.js +4 -3
  10. package/dist/src/elements/ia-dropdown-search-bar/ia-dropdown-search-bar.js.map +1 -1
  11. package/dist/src/elements/ia-item-navigator/ia-item-navigator.d.ts.map +1 -1
  12. package/dist/src/elements/ia-item-navigator/ia-item-navigator.js +25 -7
  13. package/dist/src/elements/ia-item-navigator/ia-item-navigator.js.map +1 -1
  14. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-button.d.ts.map +1 -1
  15. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-button.js +7 -6
  16. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-button.js.map +1 -1
  17. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-slider.d.ts.map +1 -1
  18. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-slider.js +8 -7
  19. package/dist/src/elements/ia-item-navigator/ia-itemnav-menu-slider.js.map +1 -1
  20. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-share-panel.d.ts +2 -2
  21. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-share-panel.d.ts.map +1 -1
  22. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-share-panel.js +32 -13
  23. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-share-panel.js.map +1 -1
  24. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-sort-files-button.js +10 -10
  25. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-sort-files-button.js.map +1 -1
  26. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-viewable-files-panel.d.ts.map +1 -1
  27. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-viewable-files-panel.js +3 -3
  28. package/dist/src/elements/ia-item-navigator/menus/ia-itemnav-viewable-files-panel.js.map +1 -1
  29. package/dist/src/elements/ia-scrubber-bar/ia-section-marker.d.ts.map +1 -1
  30. package/dist/src/elements/ia-scrubber-bar/ia-section-marker.js +7 -2
  31. package/dist/src/elements/ia-scrubber-bar/ia-section-marker.js.map +1 -1
  32. package/dist/src/elements/ia-status-indicator/ia-status-indicator.d.ts +5 -5
  33. package/dist/src/elements/ia-status-indicator/ia-status-indicator.d.ts.map +1 -1
  34. package/dist/src/elements/ia-status-indicator/ia-status-indicator.js +25 -25
  35. package/dist/src/elements/ia-status-indicator/ia-status-indicator.js.map +1 -1
  36. package/dist/src/elements/ia-topnav/ia-topnav-primary-nav.d.ts.map +1 -1
  37. package/dist/src/elements/ia-topnav/ia-topnav-primary-nav.js +8 -2
  38. package/dist/src/elements/ia-topnav/ia-topnav-primary-nav.js.map +1 -1
  39. package/dist/src/elements/ia-topnav/ia-topnav.d.ts +1 -0
  40. package/dist/src/elements/ia-topnav/ia-topnav.d.ts.map +1 -1
  41. package/dist/src/elements/ia-topnav/ia-topnav.js +6 -2
  42. package/dist/src/elements/ia-topnav/ia-topnav.js.map +1 -1
  43. package/dist/src/{elements/ia-scrubber-bar/assets/next-section-marker.d.ts → icons/caret-closed.d.ts} +1 -1
  44. package/dist/src/icons/caret-closed.d.ts.map +1 -0
  45. package/dist/src/icons/caret-closed.js +6 -0
  46. package/dist/src/icons/caret-closed.js.map +1 -0
  47. package/dist/src/{elements/ia-scrubber-bar/assets/previous-section-marker.d.ts → icons/caret-open.d.ts} +1 -1
  48. package/dist/src/icons/caret-open.d.ts.map +1 -0
  49. package/dist/src/icons/caret-open.js +6 -0
  50. package/dist/src/icons/caret-open.js.map +1 -0
  51. package/dist/src/icons/clear.d.ts +3 -0
  52. package/dist/src/icons/clear.d.ts.map +1 -0
  53. package/dist/src/icons/clear.js +7 -0
  54. package/dist/src/icons/clear.js.map +1 -0
  55. package/dist/src/icons/collapse-sidebar.d.ts +3 -0
  56. package/dist/src/icons/collapse-sidebar.d.ts.map +1 -0
  57. package/dist/src/icons/collapse-sidebar.js +8 -0
  58. package/dist/src/icons/collapse-sidebar.js.map +1 -0
  59. package/dist/src/{elements/ia-item-navigator/icons → icons}/collapse-sidebar.svg +1 -1
  60. package/dist/src/icons/ellipses.d.ts +3 -0
  61. package/dist/src/icons/ellipses.d.ts.map +1 -0
  62. package/dist/src/icons/ellipses.js +8 -0
  63. package/dist/src/icons/ellipses.js.map +1 -0
  64. package/dist/src/{elements/ia-item-navigator/icons → icons}/ellipses.svg +1 -1
  65. package/dist/src/icons/email.d.ts +3 -0
  66. package/dist/src/icons/email.d.ts.map +1 -0
  67. package/dist/src/icons/email.js +7 -0
  68. package/dist/src/icons/email.js.map +1 -0
  69. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/email.svg +1 -1
  70. package/dist/src/icons/facebook.d.ts +3 -0
  71. package/dist/src/icons/facebook.d.ts.map +1 -0
  72. package/dist/src/icons/facebook.js +7 -0
  73. package/dist/src/icons/facebook.js.map +1 -0
  74. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/facebook.svg +1 -1
  75. package/dist/src/icons/link.d.ts +3 -0
  76. package/dist/src/icons/link.d.ts.map +1 -0
  77. package/dist/src/icons/link.js +7 -0
  78. package/dist/src/icons/link.js.map +1 -0
  79. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/link.svg +1 -1
  80. package/dist/src/icons/list.d.ts +3 -0
  81. package/dist/src/icons/list.d.ts.map +1 -0
  82. package/dist/src/icons/list.js +4 -0
  83. package/dist/src/icons/list.js.map +1 -0
  84. package/dist/src/icons/list.svg +3 -0
  85. package/dist/src/icons/mediatype-audio.d.ts +3 -0
  86. package/dist/src/icons/mediatype-audio.d.ts.map +1 -0
  87. package/dist/src/icons/mediatype-audio.js +4 -0
  88. package/dist/src/icons/mediatype-audio.js.map +1 -0
  89. package/dist/src/{elements/ia-status-indicator/icons/audio.svg → icons/mediatype-audio.svg} +1 -1
  90. package/dist/src/icons/mediatype-collection.d.ts +3 -0
  91. package/dist/src/icons/mediatype-collection.d.ts.map +1 -0
  92. package/dist/src/icons/mediatype-collection.js +4 -0
  93. package/dist/src/icons/mediatype-collection.js.map +1 -0
  94. package/dist/src/{elements/ia-status-indicator/icons/collection.svg → icons/mediatype-collection.svg} +1 -1
  95. package/dist/src/icons/mediatype-etree.d.ts +3 -0
  96. package/dist/src/icons/mediatype-etree.d.ts.map +1 -0
  97. package/dist/src/icons/mediatype-etree.js +4 -0
  98. package/dist/src/icons/mediatype-etree.js.map +1 -0
  99. package/dist/src/{elements/ia-status-indicator/icons/etree.svg → icons/mediatype-etree.svg} +1 -1
  100. package/dist/src/icons/mediatype-images.d.ts +3 -0
  101. package/dist/src/icons/mediatype-images.d.ts.map +1 -0
  102. package/dist/src/icons/mediatype-images.js +4 -0
  103. package/dist/src/icons/mediatype-images.js.map +1 -0
  104. package/dist/src/{elements/ia-status-indicator/icons/images.svg → icons/mediatype-images.svg} +1 -1
  105. package/dist/src/icons/mediatype-software.d.ts +3 -0
  106. package/dist/src/icons/mediatype-software.d.ts.map +1 -0
  107. package/dist/src/icons/mediatype-software.js +4 -0
  108. package/dist/src/icons/mediatype-software.js.map +1 -0
  109. package/dist/src/{elements/ia-status-indicator/icons/software.svg → icons/mediatype-software.svg} +1 -1
  110. package/dist/src/icons/mediatype-texts.d.ts +3 -0
  111. package/dist/src/icons/mediatype-texts.d.ts.map +1 -0
  112. package/dist/src/icons/mediatype-texts.js +4 -0
  113. package/dist/src/icons/mediatype-texts.js.map +1 -0
  114. package/dist/src/{elements/ia-status-indicator/icons/texts.svg → icons/mediatype-texts.svg} +1 -1
  115. package/dist/src/icons/mediatype-tv.d.ts +3 -0
  116. package/dist/src/icons/mediatype-tv.d.ts.map +1 -0
  117. package/dist/src/icons/mediatype-tv.js +4 -0
  118. package/dist/src/icons/mediatype-tv.js.map +1 -0
  119. package/dist/src/{elements/ia-status-indicator/icons/tv.svg → icons/mediatype-tv.svg} +1 -1
  120. package/dist/src/icons/mediatype-video.d.ts +3 -0
  121. package/dist/src/icons/mediatype-video.d.ts.map +1 -0
  122. package/dist/src/icons/mediatype-video.js +4 -0
  123. package/dist/src/icons/mediatype-video.js.map +1 -0
  124. package/dist/src/{elements/ia-status-indicator/icons/video.svg → icons/mediatype-video.svg} +1 -1
  125. package/dist/src/icons/mediatype-web.d.ts +3 -0
  126. package/dist/src/icons/mediatype-web.d.ts.map +1 -0
  127. package/dist/src/icons/mediatype-web.js +4 -0
  128. package/dist/src/icons/mediatype-web.js.map +1 -0
  129. package/dist/src/{elements/ia-status-indicator/icons/web.svg → icons/mediatype-web.svg} +1 -1
  130. package/dist/src/icons/pinterest.d.ts +3 -0
  131. package/dist/src/icons/pinterest.d.ts.map +1 -0
  132. package/dist/src/icons/pinterest.js +7 -0
  133. package/dist/src/icons/pinterest.js.map +1 -0
  134. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/pinterest.svg +1 -1
  135. package/dist/src/icons/scrubber-next-section.d.ts +3 -0
  136. package/dist/src/icons/scrubber-next-section.d.ts.map +1 -0
  137. package/dist/src/icons/scrubber-next-section.js +8 -0
  138. package/dist/src/icons/scrubber-next-section.js.map +1 -0
  139. package/dist/src/icons/scrubber-next-section.svg +7 -0
  140. package/dist/src/icons/scrubber-previous-section.d.ts +3 -0
  141. package/dist/src/icons/scrubber-previous-section.d.ts.map +1 -0
  142. package/dist/src/icons/scrubber-previous-section.js +8 -0
  143. package/dist/src/icons/scrubber-previous-section.js.map +1 -0
  144. package/dist/src/icons/scrubber-previous-section.svg +7 -0
  145. package/dist/src/icons/search.d.ts +3 -0
  146. package/dist/src/icons/search.d.ts.map +1 -0
  147. package/dist/src/{elements/ia-status-indicator/icons/search.svg → icons/search.js} +6 -7
  148. package/dist/src/icons/search.js.map +1 -0
  149. package/dist/src/{elements/ia-dropdown-search-bar → icons}/search.svg +1 -1
  150. package/dist/src/icons/share.d.ts +3 -0
  151. package/dist/src/icons/share.d.ts.map +1 -0
  152. package/dist/src/icons/share.js +7 -0
  153. package/dist/src/icons/share.js.map +1 -0
  154. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/share.svg +1 -1
  155. package/dist/src/icons/sort-asc.d.ts +3 -0
  156. package/dist/src/icons/sort-asc.d.ts.map +1 -0
  157. package/dist/src/icons/sort-asc.js +23 -0
  158. package/dist/src/icons/sort-asc.js.map +1 -0
  159. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/sort-asc.svg +3 -3
  160. package/dist/src/icons/sort-desc.d.ts +3 -0
  161. package/dist/src/icons/sort-desc.d.ts.map +1 -0
  162. package/dist/src/icons/sort-desc.js +22 -0
  163. package/dist/src/icons/sort-desc.js.map +1 -0
  164. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/sort-desc.svg +3 -3
  165. package/dist/src/icons/sort-neutral.d.ts +3 -0
  166. package/dist/src/icons/sort-neutral.d.ts.map +1 -0
  167. package/dist/src/icons/sort-neutral.js +14 -0
  168. package/dist/src/icons/sort-neutral.js.map +1 -0
  169. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/sort-neutral.svg +1 -1
  170. package/dist/src/icons/tumblr.d.ts +3 -0
  171. package/dist/src/icons/tumblr.d.ts.map +1 -0
  172. package/dist/src/icons/tumblr.js +7 -0
  173. package/dist/src/icons/tumblr.js.map +1 -0
  174. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/tumblr.svg +1 -1
  175. package/dist/src/icons/twitter.d.ts +3 -0
  176. package/dist/src/icons/twitter.d.ts.map +1 -0
  177. package/dist/src/icons/twitter.js +7 -0
  178. package/dist/src/icons/twitter.js.map +1 -0
  179. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/twitter.svg +1 -1
  180. package/dist/src/icons/viewable-files.d.ts +3 -0
  181. package/dist/src/icons/viewable-files.d.ts.map +1 -0
  182. package/dist/src/icons/viewable-files.js +7 -0
  183. package/dist/src/icons/viewable-files.js.map +1 -0
  184. package/dist/src/{elements/ia-item-navigator/menus/icons → icons}/viewable-files.svg +1 -1
  185. package/dist/src/util/icon-box.d.ts +17 -0
  186. package/dist/src/util/icon-box.d.ts.map +1 -0
  187. package/dist/src/util/icon-box.js +27 -0
  188. package/dist/src/util/icon-box.js.map +1 -0
  189. package/package.json +39 -8
  190. package/dist/src/elements/ia-donation-form/analytics.d.ts +0 -12
  191. package/dist/src/elements/ia-donation-form/analytics.d.ts.map +0 -1
  192. package/dist/src/elements/ia-donation-form/analytics.js +0 -2
  193. package/dist/src/elements/ia-donation-form/analytics.js.map +0 -1
  194. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.d.ts +0 -118
  195. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.d.ts.map +0 -1
  196. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.js +0 -194
  197. package/dist/src/elements/ia-donation-form/flow-handlers/donation-flow-modal-manager.js.map +0 -1
  198. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.d.ts +0 -24
  199. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.d.ts.map +0 -1
  200. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.js +0 -70
  201. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/apple-pay-flow-handler.js.map +0 -1
  202. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.d.ts +0 -44
  203. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.d.ts.map +0 -1
  204. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.js +0 -116
  205. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/credit-card-flow-handler.js.map +0 -1
  206. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.d.ts +0 -24
  207. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.d.ts.map +0 -1
  208. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.js +0 -74
  209. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/google-pay-flow-handler.js.map +0 -1
  210. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.d.ts +0 -47
  211. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.d.ts.map +0 -1
  212. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.js +0 -204
  213. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/paypal-flow-handler.js.map +0 -1
  214. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.d.ts +0 -30
  215. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.d.ts.map +0 -1
  216. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.js +0 -77
  217. package/dist/src/elements/ia-donation-form/flow-handlers/handlers/venmo-flow-handler.js.map +0 -1
  218. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.d.ts +0 -80
  219. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.d.ts.map +0 -1
  220. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.js +0 -72
  221. package/dist/src/elements/ia-donation-form/flow-handlers/payment-flow-handlers.js.map +0 -1
  222. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.d.ts +0 -2
  223. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.d.ts.map +0 -1
  224. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.js +0 -2
  225. package/dist/src/elements/ia-donation-form/form-elements/contact-form/autocomplete-field-options.js.map +0 -1
  226. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.d.ts +0 -3
  227. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.d.ts.map +0 -1
  228. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.js +0 -254
  229. package/dist/src/elements/ia-donation-form/form-elements/contact-form/countries.js.map +0 -1
  230. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.d.ts +0 -68
  231. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.d.ts.map +0 -1
  232. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.js +0 -483
  233. package/dist/src/elements/ia-donation-form/form-elements/contact-form/ia-donation-contact-form.js.map +0 -1
  234. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.d.ts +0 -26
  235. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.d.ts.map +0 -1
  236. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.js +0 -163
  237. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-badged-input.js.map +0 -1
  238. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.d.ts +0 -39
  239. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.d.ts.map +0 -1
  240. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.js +0 -212
  241. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-credit-card-fields.js.map +0 -1
  242. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.d.ts +0 -31
  243. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.d.ts.map +0 -1
  244. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.js +0 -93
  245. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-header.js.map +0 -1
  246. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.d.ts +0 -33
  247. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.d.ts.map +0 -1
  248. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.js +0 -380
  249. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-payment-selector.js.map +0 -1
  250. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.d.ts +0 -11
  251. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.d.ts.map +0 -1
  252. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.js +0 -59
  253. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-summary.js.map +0 -1
  254. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.d.ts +0 -10
  255. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.d.ts.map +0 -1
  256. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.js +0 -75
  257. package/dist/src/elements/ia-donation-form/form-elements/ia-donation-total-amount.js.map +0 -1
  258. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.d.ts +0 -111
  259. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.d.ts.map +0 -1
  260. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.js +0 -522
  261. package/dist/src/elements/ia-donation-form/ia-donation-form-controller.js.map +0 -1
  262. package/dist/src/elements/ia-donation-form/ia-donation-form.d.ts +0 -95
  263. package/dist/src/elements/ia-donation-form/ia-donation-form.d.ts.map +0 -1
  264. package/dist/src/elements/ia-donation-form/ia-donation-form.js +0 -522
  265. package/dist/src/elements/ia-donation-form/ia-donation-form.js.map +0 -1
  266. package/dist/src/elements/ia-donation-form/icons/apple-pay.svg +0 -22
  267. package/dist/src/elements/ia-donation-form/icons/calendar.svg +0 -15
  268. package/dist/src/elements/ia-donation-form/icons/credit-card.svg +0 -15
  269. package/dist/src/elements/ia-donation-form/icons/google-pay.svg +0 -38
  270. package/dist/src/elements/ia-donation-form/icons/lock.svg +0 -6
  271. package/dist/src/elements/ia-donation-form/icons/paypal.svg +0 -39
  272. package/dist/src/elements/ia-donation-form/icons/venmo.svg +0 -9
  273. package/dist/src/elements/ia-donation-form/icons.d.ts +0 -9
  274. package/dist/src/elements/ia-donation-form/icons.d.ts.map +0 -1
  275. package/dist/src/elements/ia-donation-form/icons.js +0 -27
  276. package/dist/src/elements/ia-donation-form/icons.js.map +0 -1
  277. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.d.ts +0 -27
  278. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.d.ts.map +0 -1
  279. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.js +0 -195
  280. package/dist/src/elements/ia-donation-form/modals/ia-donation-confirm-modal.js.map +0 -1
  281. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.d.ts +0 -7
  282. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.d.ts.map +0 -1
  283. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.js +0 -63
  284. package/dist/src/elements/ia-donation-form/modals/ia-donation-error-modal-content.js.map +0 -1
  285. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.d.ts +0 -28
  286. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.d.ts.map +0 -1
  287. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.js +0 -313
  288. package/dist/src/elements/ia-donation-form/modals/ia-donation-upsell-modal-content.js.map +0 -1
  289. package/dist/src/elements/ia-item-navigator/icons.d.ts +0 -13
  290. package/dist/src/elements/ia-item-navigator/icons.d.ts.map +0 -1
  291. package/dist/src/elements/ia-item-navigator/icons.js +0 -16
  292. package/dist/src/elements/ia-item-navigator/icons.js.map +0 -1
  293. package/dist/src/elements/ia-item-navigator/menus/icons/list.svg +0 -3
  294. package/dist/src/elements/ia-item-navigator/menus/share-icons.d.ts +0 -16
  295. package/dist/src/elements/ia-item-navigator/menus/share-icons.d.ts.map +0 -1
  296. package/dist/src/elements/ia-item-navigator/menus/share-icons.js +0 -23
  297. package/dist/src/elements/ia-item-navigator/menus/share-icons.js.map +0 -1
  298. package/dist/src/elements/ia-scrubber-bar/assets/next-section-marker.d.ts.map +0 -1
  299. package/dist/src/elements/ia-scrubber-bar/assets/next-section-marker.js +0 -18
  300. package/dist/src/elements/ia-scrubber-bar/assets/next-section-marker.js.map +0 -1
  301. package/dist/src/elements/ia-scrubber-bar/assets/previous-section-marker.d.ts.map +0 -1
  302. package/dist/src/elements/ia-scrubber-bar/assets/previous-section-marker.js +0 -18
  303. package/dist/src/elements/ia-scrubber-bar/assets/previous-section-marker.js.map +0 -1
  304. package/dist/src/util/masked-icon.d.ts +0 -24
  305. package/dist/src/util/masked-icon.d.ts.map +0 -1
  306. package/dist/src/util/masked-icon.js +0 -30
  307. package/dist/src/util/masked-icon.js.map +0 -1
  308. /package/dist/src/{elements/ia-combo-box → icons}/caret-closed.svg +0 -0
  309. /package/dist/src/{elements/ia-combo-box → icons}/caret-open.svg +0 -0
  310. /package/dist/src/{elements/ia-combo-box → icons}/clear.svg +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"ia-donation-form-controller.js","sourceRoot":"","sources":["../../../../src/elements/ia-donation-form/ia-donation-form-controller.ts"],"names":[],"mappings":";AACA,OAAO,EACL,IAAI,EACJ,UAAU,GAGX,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EACL,iBAAiB,GAElB,MAAM,sCAAsC,CAAC;AAO9C,OAAO,EAAE,g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C,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iEACyB;AAExB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAA8C;AAE7C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAAsC;AAGrC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAAgC;AAE/B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAA8C;AAE7C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAA8C;AAGzE;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qEACwB;AAEvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gEAA0C;AAMrE;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAC6C;AAErC;IAAlC,KAAK,CAAC,kBAAkB,CAAC;8DAAuC;AAGzD;IADP,KAAK,CAAC,gCAAgC,CAAC;yEACqB;AAGrD;IADP,KAAK,CAAC,0BAA0B,CAAC;6DACU;AAjEjC,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CA+jBpC","sourcesContent":["import type * as braintree from 'braintree-web';\nimport {\n html,\n LitElement,\n type PropertyValues,\n type TemplateResult,\n} from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { customElement } from '@src/util/custom-element';\nimport currency from 'currency.js';\nimport {\n LazyLoaderService,\n type LazyLoaderServiceInterface,\n} from '@internetarchive/lazy-loader-service';\nimport type { ModalManagerInterface } from '@internetarchive/modal-manager';\nimport type {\n AnalyticsEvent,\n AnalyticsManagerInterface,\n} from '@internetarchive/analytics-manager';\n\nimport { BraintreeManager } from './braintree/braintree-manager';\nimport type {\n BraintreeEndpointManagerInterface,\n BraintreeManagerInterface,\n} from './braintree/braintree-manager-interface';\nimport type { HostingEnvironment } from './braintree/hosting-environment';\nimport {\n PaymentClients,\n type PaymentClientsInterface,\n} from './braintree/payment-clients';\nimport { HostedFieldConfiguration } from './braintree/payment-providers/credit-card/hosted-field-configuration';\nimport {\n PaymentFlowHandlers,\n type PaymentFlowHandlersInterface,\n} from './flow-handlers/payment-flow-handlers';\nimport type { IADonationContactForm } from './form-elements/contact-form/ia-donation-contact-form';\nimport {\n EditDonationAmountSelectionLayout,\n EditDonationFrequencySelectionMode,\n} from './form-elements/ia-donation-edit-donation';\nimport type { IADonationCreditCardFields } from './form-elements/ia-donation-credit-card-fields';\nimport type { IADonationForm } from './ia-donation-form';\nimport {\n DonationPaymentInfo,\n defaultDonationAmounts,\n defaultSelectedDonationInfo,\n} from './models/donation-payment-info';\nimport { DonationType } from './models/donation-type';\nimport type { PaymentProvider } from './models/payment-provider';\nimport type { UpsellModalCTAMode } from './modals/ia-donation-upsell-modal-content';\nimport {\n RecaptchaManager,\n type RecaptchaManagerInterface,\n} from './recaptcha-manager';\nimport './form-elements/contact-form/ia-donation-contact-form';\nimport './form-elements/ia-donation-credit-card-fields';\nimport './ia-donation-form';\n\n/**\n * Wires the donation form to everything around it: Braintree and the payment\n * libraries, the modal manager, recaptcha, and analytics. Give it the\n * environment, tokens and an endpoint manager and it builds the rest.\n *\n * It renders into the light DOM, because Braintree's hosted fields, the\n * PayPal button and recaptcha all refuse to work inside a shadow root. Those\n * are rendered here and slotted into `<ia-donation-form>`.\n */\n@customElement('ia-donation-form-controller')\nexport class IADonationFormController extends LitElement {\n @property({ type: String }) environment?: HostingEnvironment;\n\n @property({ type: String }) braintreeAuthToken?: string;\n\n @property({ type: String }) recaptchaSiteKey?: string;\n\n @property({ type: String }) venmoProfileId?: string;\n\n @property({ type: String }) googlePayMerchantId?: string;\n\n @property({ type: String }) analyticsCategory = 'DonationForm';\n\n @property({ type: Array }) amountOptions: number[] = defaultDonationAmounts;\n\n @property({ type: Object }) donationInfo: DonationPaymentInfo =\n defaultSelectedDonationInfo;\n\n @property({ type: String })\n amountSelectionLayout: EditDonationAmountSelectionLayout =\n EditDonationAmountSelectionLayout.MultiLine;\n\n @property({ type: String })\n frequencySelectionMode: EditDonationFrequencySelectionMode =\n EditDonationFrequencySelectionMode.Button;\n\n @property({ type: String }) referrer?: string;\n\n @property({ type: String }) loggedInUser?: string;\n\n @property({ type: String }) origin?: string;\n\n @property({ type: String }) donorEmail: string = '';\n\n @property({ type: Object })\n endpointManager?: BraintreeEndpointManagerInterface;\n\n @property({ type: Object }) analyticsHandler?: AnalyticsManagerInterface;\n\n @property({ type: Object }) modalManager?: ModalManagerInterface;\n\n /** The element recaptcha renders its (invisible) widget into. Must be in the light DOM. */\n @property({ type: Object }) recaptchaElement?: HTMLElement;\n\n @property({ type: Object }) braintreeManager?: BraintreeManagerInterface;\n\n @property({ type: Object }) recaptchaManager?: RecaptchaManagerInterface;\n\n @property({ type: Object })\n paymentFlowHandlers?: PaymentFlowHandlersInterface;\n\n @property({ type: Object }) paymentClients?: PaymentClientsInterface;\n\n /** The clients this element built itself, so it knows when it may rebuild them */\n private defaultPaymentClients?: PaymentClientsInterface;\n\n @property({ type: Object })\n lazyLoaderService: LazyLoaderServiceInterface = new LazyLoaderService();\n\n @query('ia-donation-form') private donationForm!: IADonationForm;\n\n @query('ia-donation-credit-card-fields')\n private creditCardFieldsElement!: IADonationCreditCardFields;\n\n @query('ia-donation-contact-form')\n private contactForm?: IADonationContactForm;\n\n updated(changedProperties: PropertyValues): void {\n if (changedProperties.has('referrer') && this.referrer) {\n this.braintreeManager?.setReferrer(this.referrer);\n this.logDonationFlowEvent('referrer', this.referrer);\n }\n\n if (changedProperties.has('loggedInUser') && this.loggedInUser) {\n this.braintreeManager?.setLoggedInUser(this.loggedInUser);\n }\n\n if (changedProperties.has('origin') && this.origin) {\n this.braintreeManager?.setOrigin(this.origin);\n this.logDonationFlowEvent('origin', this.origin);\n }\n\n if (\n changedProperties.has('paymentClients') ||\n changedProperties.has('braintreeAuthToken') ||\n changedProperties.has('endpointManager') ||\n changedProperties.has('environment')\n ) {\n this.setupBraintreeManager();\n this.setupRecaptchaManager();\n }\n\n if (changedProperties.has('recaptchaSiteKey')) {\n this.setupRecaptchaManager();\n }\n\n if (\n changedProperties.has('braintreeManager') ||\n changedProperties.has('recaptchaManager') ||\n changedProperties.has('modalManager') ||\n changedProperties.has('recaptchaElement')\n ) {\n this.setupPaymentFlowHandlers();\n }\n\n // Build the default clients for the environment, unless the consumer\n // supplied their own\n if (\n (changedProperties.has('environment') ||\n changedProperties.has('lazyLoaderService')) &&\n this.environment &&\n (this.paymentClients === undefined ||\n this.paymentClients === this.defaultPaymentClients)\n ) {\n this.defaultPaymentClients = new PaymentClients(\n this.lazyLoaderService,\n this.environment,\n );\n this.paymentClients = this.defaultPaymentClients;\n }\n }\n\n /** Developer convenience: show the confirmation step without a payment. */\n async showConfirmationStepDev(options: {\n donationType: DonationType;\n amount: number;\n currencyType: string;\n cancelDonationCB: () => void;\n confirmDonationCB: () => void;\n }): Promise<void> {\n this.donationForm.showConfirmationModalDev(options);\n }\n\n /** Developer convenience: show the upsell modal without a payment. */\n async showUpsellModalDev(options: {\n oneTimeAmount: number;\n ctaMode?: UpsellModalCTAMode;\n yesSelected?: (amount: number) => void;\n noSelected?: () => void;\n amountChanged?: (amount: number) => void;\n userClosedModalCallback?: () => void;\n }): Promise<void> {\n this.donationForm.showUpsellModalDev(options);\n }\n\n private setupBraintreeManager(): void {\n if (\n this.braintreeManager === undefined &&\n this.braintreeAuthToken &&\n this.endpointManager &&\n this.paymentClients &&\n this.environment\n ) {\n this.braintreeManager = new BraintreeManager({\n paymentClients: this.paymentClients,\n endpointManager: this.endpointManager,\n authorizationToken: this.braintreeAuthToken,\n venmoProfileId: this.venmoProfileId,\n googlePayMerchantId: this.googlePayMerchantId,\n hostedFieldConfig: this.hostedFieldConfig,\n hostingEnvironment: this.environment,\n referrer: this.referrer,\n loggedInUser: this.loggedInUser,\n origin: this.origin,\n });\n\n this.braintreeManager.on(\n 'paymentProvidersHostedFieldsRetry',\n (retryNumber: number) => {\n this.dispatchEvent(\n new CustomEvent('paymentProvidersHostedFieldsRetry', {\n detail: { retryNumber },\n }),\n );\n },\n );\n\n this.braintreeManager.on(\n 'paymentProvidersHostedFieldsFailed',\n (error: unknown) => {\n this.dispatchEvent(\n new CustomEvent('paymentProvidersHostedFieldsFailed', {\n detail: { error },\n }),\n );\n },\n );\n }\n }\n\n private recaptchaManagerSetup = false;\n\n private async setupRecaptchaManager(): Promise<void> {\n if (\n !this.recaptchaSiteKey ||\n !this.paymentClients ||\n this.recaptchaManagerSetup\n ) {\n return;\n }\n this.recaptchaManagerSetup = true;\n const grecaptchaLibrary = await this.paymentClients.recaptchaLibrary.get();\n this.recaptchaManager = new RecaptchaManager({\n grecaptchaLibrary,\n siteKey: this.recaptchaSiteKey,\n });\n }\n\n firstUpdated(): void {\n this.configureFromQueryParams();\n this.trackViewedEvent();\n }\n\n /**\n * The donate page links carry the starting configuration in the query\n * string: `amt`, `contrib_type`, `coverFees`, `dollarAmounts`,\n * `amountLayout` and `frequencyMode`.\n */\n private configureFromQueryParams(): void {\n const urlParams = new URLSearchParams(window.location.search);\n\n let amountOptions = this.amountOptions;\n const amountOptionsParam = urlParams.get('dollarAmounts');\n if (amountOptionsParam) {\n // e.g. `[5,10,25]`\n const stripBrackets = amountOptionsParam.slice(1, -1);\n amountOptions = stripBrackets\n .split(',')\n .map((value) => parseFloat(value))\n .filter((value) => !isNaN(value));\n }\n\n let coverFees = this.donationInfo.coverFees;\n const coverFeesParam = urlParams.get('coverFees');\n if (coverFeesParam) {\n coverFees = coverFeesParam === 'true';\n }\n\n let frequency = this.donationInfo.donationType;\n const frequencyParam = urlParams.get('contrib_type');\n if (frequencyParam === 'monthly') {\n frequency = DonationType.Monthly;\n }\n\n let amount = this.donationInfo.amount;\n const amountParam = urlParams.get('amt');\n if (amountParam) {\n const parsedAmount = currency(amountParam).value;\n if (parsedAmount > 0) {\n amount = parsedAmount;\n }\n }\n\n const amountLayoutParam = urlParams.get('amountLayout');\n if (amountLayoutParam) {\n const amountLayout =\n amountLayoutParam as EditDonationAmountSelectionLayout;\n if (\n Object.values(EditDonationAmountSelectionLayout).includes(amountLayout)\n ) {\n this.amountSelectionLayout = amountLayout;\n }\n }\n\n const frequencyModeParam = urlParams.get('frequencyMode');\n if (frequencyModeParam) {\n const frequencyMode =\n frequencyModeParam as EditDonationFrequencySelectionMode;\n if (\n Object.values(EditDonationFrequencySelectionMode).includes(\n frequencyMode,\n )\n ) {\n this.frequencySelectionMode = frequencyMode;\n }\n }\n\n this.amountOptions = amountOptions;\n this.donationInfo = new DonationPaymentInfo({\n donationType: frequency,\n amount,\n coverFees,\n });\n }\n\n private setupPaymentFlowHandlers(): void {\n if (this.paymentFlowHandlers) {\n return;\n }\n\n if (\n !this.braintreeManager ||\n !this.recaptchaManager ||\n !this.modalManager ||\n !this.recaptchaElement\n ) {\n return;\n }\n\n this.paymentFlowHandlers = new PaymentFlowHandlers({\n braintreeManager: this.braintreeManager,\n modalManager: this.modalManager,\n recaptchaManager: this.recaptchaManager,\n analytics: {\n logEvent: this.logEvent.bind(this),\n logDonationFlowEvent: this.logDonationFlowEvent.bind(this),\n },\n });\n\n this.donationForm.braintreeManager = this.braintreeManager;\n this.donationForm.paymentFlowHandlers = this.paymentFlowHandlers;\n\n this.braintreeManager.startup();\n this.paymentFlowHandlers.startup();\n this.recaptchaManager.setup(this.recaptchaElement, 1, 'light', 'image');\n }\n\n private get hostedFieldConfig(): HostedFieldConfiguration {\n const hostedFieldStyle: Record<string, Record<string, string>> = {\n input: {\n 'font-size': '16px',\n 'font-family': '\"Helvetica Neue\", Helvetica, Arial, sans-serif',\n 'font-weight': '700',\n color: '#333',\n },\n ':focus': {\n color: '#333',\n },\n // The text color stays the same when valid or invalid. The badged\n // input's red border and the error message already show the error\n // state, and red text on top of them is confusing.\n '.valid': {\n color: '#333',\n },\n '.invalid': {\n color: '#333',\n },\n };\n\n // No placeholders. The visible labels above each field are the only text.\n const hostedFieldFieldOptions: braintree.HostedFieldFieldOptions = {\n number: {\n selector: '#braintree-creditcard',\n },\n cvv: {\n selector: '#braintree-cvv',\n },\n expirationDate: {\n selector: '#braintree-expiration',\n },\n };\n\n const hostedFieldContainer =\n this.creditCardFieldsElement.hostedFieldContainer;\n\n return new HostedFieldConfiguration({\n hostedFieldStyle,\n hostedFieldFieldOptions,\n hostedFieldContainer,\n });\n }\n\n render(): TemplateResult {\n return html`\n <div class=\"ia-donation-form-controller-container\">\n <ia-donation-form\n .braintreeManager=${this.braintreeManager}\n .contactForm=${this.contactForm}\n .amountOptions=${this.amountOptions}\n .donationInfo=${this.donationInfo}\n .amountSelectionLayout=${this.amountSelectionLayout}\n .frequencySelectionMode=${this.frequencySelectionMode}\n @donationInfoChanged=${this.donationInfoChanged}\n @paymentProviderSelected=${this.paymentProviderSelected}\n @paymentFlowStarted=${this.paymentFlowStarted}\n @paymentFlowConfirmed=${this.paymentFlowConfirmed}\n @paymentFlowCancelled=${this.paymentFlowCancelled}\n @paymentFlowError=${this.paymentFlowError}\n >\n <!--\n Braintree's hosted fields, the PayPal button and recaptcha can't\n live in a shadow root, so they render here in the light DOM and\n are slotted into the form. See\n https://github.com/braintree/braintree-web-drop-in/issues/614\n and https://github.com/paypal/paypal-checkout-components/issues/353\n -->\n <div slot=\"braintree-hosted-fields\">\n <ia-donation-credit-card-fields></ia-donation-credit-card-fields>\n </div>\n\n <!-- Autofill doesn't reach into shadow DOM, so the contact form is light DOM too -->\n <div slot=\"contact-form\">\n <ia-donation-contact-form\n .donorEmail=${this.donorEmail}\n ></ia-donation-contact-form>\n </div>\n\n <div slot=\"paypal-button\">\n <div id=\"paypal-button\"></div>\n </div>\n\n <slot name=\"recaptcha\" slot=\"recaptcha\"></slot>\n </ia-donation-form>\n </div>\n\n ${this.getStyles}\n `;\n }\n\n /** Light DOM, for the payment libraries that can't render into a shadow root */\n createRenderRoot(): this {\n return this;\n }\n\n private donationInfoChanged(e: CustomEvent): void {\n this.logEvent('DonationInfoChanged');\n this.donationInfo = e.detail.donationInfo;\n }\n\n private trackViewedEvent(): void {\n this.logEvent('Viewed');\n }\n\n private paymentProviderSelected(e: CustomEvent): void {\n const paymentProvider = e.detail.paymentProvider as\n | PaymentProvider\n | undefined;\n const previousPaymentProvider = e.detail.previousPaymentProvider as\n | PaymentProvider\n | undefined;\n const providerNoSpaces = this.removeSpaces(paymentProvider ?? 'unset');\n let eventName = `ProviderFirstSelected-${providerNoSpaces}`;\n let previousProviderInfo: string | undefined;\n if (previousPaymentProvider !== undefined) {\n eventName = `ProviderChangedTo-${providerNoSpaces}`;\n previousProviderInfo = `ProviderChangedFrom-${this.removeSpaces(\n previousPaymentProvider,\n )}`;\n }\n\n this.logEvent(eventName, previousProviderInfo);\n }\n\n private paymentFlowConfirmed(e: CustomEvent): void {\n this.logEvent(\n 'PaymentFlowConfirmed',\n this.removeSpaces(e.detail.paymentProvider),\n );\n }\n\n private paymentFlowStarted(e: CustomEvent): void {\n this.logEvent(\n 'PaymentFlowStarted',\n this.removeSpaces(e.detail.paymentProvider),\n );\n }\n\n private paymentFlowCancelled(e: CustomEvent): void {\n this.logEvent(\n 'PaymentFlowCancelled',\n this.removeSpaces(e.detail.paymentProvider),\n );\n }\n\n private paymentFlowError(e: CustomEvent): void {\n const providerNoSpaces = this.removeSpaces(e.detail.paymentProvider);\n this.logEvent('PaymentFlowError', `${providerNoSpaces}-${e.detail.error}`);\n }\n\n private removeSpaces(original: string): string {\n return original.replace(/\\s+/g, '');\n }\n\n /** A sampled event in this form's category */\n private logEvent(action: string, label?: string): void {\n const analyticEvent: AnalyticsEvent = {\n action,\n label,\n category: this.analyticsCategory,\n };\n this.analyticsHandler?.sendEvent(analyticEvent);\n }\n\n /** An unsampled event in the `DonationFlow` category */\n private logDonationFlowEvent(action: string, label?: string): void {\n const analyticEvent: AnalyticsEvent = {\n action,\n label,\n category: 'DonationFlow',\n };\n this.analyticsHandler?.sendEventNoSampling(analyticEvent);\n }\n\n /**\n * The element renders into the light DOM, so instead of a `styles` block\n * it writes its own `<style>` tag, scoped to its container class.\n *\n * The `--ia-donation-form-*` variables set here are the consumer-facing\n * theming for the whole form; they fan out to the sections, the amount\n * picker and the payment buttons.\n */\n private get getStyles(): TemplateResult {\n return html`\n <style>\n .ia-donation-form-controller-container {\n --donation-form-controller-base-font-size--: var(\n --ia-donation-form-base-font-size,\n 10px\n );\n color: var(--ia-donation-form-text-color, #333);\n background-color: var(\n --ia-donation-form-background-color,\n transparent\n );\n\n --ia-donation-section-background-color: var(\n --ia-donation-form-background-color,\n transparent\n );\n --ia-donation-edit-background-color: var(\n --ia-donation-form-background-color,\n transparent\n );\n\n --ia-donation-section-badge-background-color: var(\n --ia-donation-form-badge-background-color,\n #333\n );\n --ia-donation-edit-badge-background-color: var(\n --ia-donation-form-badge-background-color,\n #333\n );\n\n --ia-donation-section-badge-font-color: var(\n --ia-donation-form-badge-text-color,\n #fff\n );\n --ia-donation-edit-badge-font-color: var(\n --ia-donation-form-badge-text-color,\n #fff\n );\n\n --ia-donation-edit-button-font-color: var(\n --ia-donation-form-payment-option-text-color\n );\n --ia-donation-edit-button-color: var(\n --ia-donation-form-payment-option-background-color\n );\n --ia-donation-edit-button-selected-color: var(\n --ia-donation-form-selected-option-background-color\n );\n --ia-donation-edit-button-selected-font-color: var(\n --ia-donation-form-selected-option-text-color\n );\n }\n\n .ia-donation-form-controller-container ia-donation-form:focus {\n outline: none;\n }\n\n /* The real PayPal button, kept but nearly invisible under the local one */\n .ia-donation-form-controller-container #paypal-button {\n opacity: 0.001;\n width: calc(var(--donation-form-controller-base-font-size--) * 5);\n height: calc(var(--donation-form-controller-base-font-size--) * 3);\n overflow: hidden;\n }\n\n .ia-donation-form-controller-container\n div[slot='braintree-hosted-fields'] {\n background-color: white;\n }\n </style>\n `;\n }\n}\n"]}
@@ -1,95 +0,0 @@
1
- import { LitElement, type CSSResultGroup, type PropertyValues, type TemplateResult } from 'lit';
2
- import type { BraintreeManagerInterface } from './braintree/braintree-manager-interface.js';
3
- import type { PaymentFlowHandlersInterface } from './flow-handlers/payment-flow-handlers.js';
4
- import type { IADonationContactForm } from './form-elements/contact-form/ia-donation-contact-form.js';
5
- import { EditDonationAmountSelectionLayout, EditDonationFrequencySelectionMode } from './form-elements/ia-donation-edit-donation.js';
6
- import type { IADonationHeader } from './form-elements/ia-donation-header.js';
7
- import type { IADonationPaymentSelector } from './form-elements/ia-donation-payment-selector.js';
8
- import { type IADonationSection } from './form-elements/ia-donation-section.js';
9
- import { DonationPaymentInfo } from './models/donation-payment-info.js';
10
- import type { DonationRequest } from './models/donation-request.js';
11
- import { DonationType } from './models/donation-type.js';
12
- import { UpsellModalCTAMode } from './modals/ia-donation-upsell-modal-content.js';
13
- import './form-elements/ia-donation-header.js';
14
- import './form-elements/ia-donation-payment-selector.js';
15
- import './form-elements/ia-donation-section.js';
16
- import './form-elements/ia-donation-total-amount.js';
17
- /**
18
- * The donation form: amount picker, total, payment method buttons, then the
19
- * contact form and Donate button for the methods that need them. The
20
- * controller wires it to Braintree, the modals and recaptcha; on its own it
21
- * renders and emits events.
22
- */
23
- export declare class IADonationForm extends LitElement {
24
- braintreeManager?: BraintreeManagerInterface;
25
- paymentFlowHandlers?: PaymentFlowHandlersInterface;
26
- donationRequest?: DonationRequest;
27
- donationInfo: DonationPaymentInfo;
28
- /** The contact form lives in the light DOM (for autofill) and is handed in here */
29
- contactForm?: IADonationContactForm;
30
- amountOptions: number[];
31
- amountSelectionLayout: EditDonationAmountSelectionLayout;
32
- frequencySelectionMode: EditDonationFrequencySelectionMode;
33
- private creditCardVisible;
34
- private contactFormVisible;
35
- private donationInfoValid;
36
- private selectedPaymentProvider?;
37
- contactFormSection?: IADonationSection;
38
- donationFormHeader: IADonationHeader;
39
- paymentSelector: IADonationPaymentSelector;
40
- private paypalButtonNeedsRender;
41
- render(): TemplateResult;
42
- /** Developer convenience: show the confirmation step without a payment. */
43
- showConfirmationModalDev(options: {
44
- donationType: DonationType;
45
- amount: number;
46
- currencyType: string;
47
- cancelDonationCB: () => void;
48
- confirmDonationCB: () => void;
49
- }): Promise<void>;
50
- /**
51
- * Developer convenience: show the upsell modal without going through a
52
- * payment. With the PayPal slot mode it also renders the PayPal button.
53
- */
54
- showUpsellModalDev(options: {
55
- oneTimeAmount: number;
56
- ctaMode?: UpsellModalCTAMode;
57
- yesSelected?: (amount: number) => void;
58
- noSelected?: () => void;
59
- amountChanged?: (amount: number) => void;
60
- userClosedModalCallback?: () => void;
61
- }): Promise<void>;
62
- get contactFormSectionTemplate(): TemplateResult;
63
- /**
64
- * The step number of the payment selector. With the frequency buttons
65
- * showing they're step 1 and the amount is 2, so payment is 3. In checkbox
66
- * mode the amount picker is step 1 and payment is 2.
67
- */
68
- private get paymentSelectorNumberingStart();
69
- private editDonationError;
70
- private paymentSelectorFirstUpdated;
71
- private applePaySelected;
72
- private googlePaySelected;
73
- private creditCardSelected;
74
- private venmoSelected;
75
- private paypalBlockerSelected;
76
- private focusContactForm;
77
- private focusCreditCardNumberField;
78
- private donateClicked;
79
- private handleCreditCardDonationFlow;
80
- private handleVenmoDonationFlow;
81
- private emitPaymentFlowEvent;
82
- private emitPaymentFlowStartedEvent;
83
- private emitPaymentFlowConfirmedEvent;
84
- private emitPaymentFlowCancelledEvent;
85
- private emitPaymentFlowErrorEvent;
86
- private showInvalidDonationInfoAlert;
87
- private renderPayPalButtonIfNeeded;
88
- updated(changedProperties: PropertyValues): void;
89
- private flowHandlersConfigured;
90
- private setupFlowHandlers;
91
- private bindFlowListenerEvents;
92
- private donationInfoChanged;
93
- static get styles(): CSSResultGroup;
94
- }
95
- //# sourceMappingURL=ia-donation-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ia-donation-form.d.ts","sourceRoot":"","sources":["../../../../src/elements/ia-donation-form/ia-donation-form.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EAC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