@justifi/webcomponents 6.0.0-rc.9 → 6.0.1-rc.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 (673) hide show
  1. package/dist/cjs/{Api-y2G49jOh.js → Api-CwTLkFY4.js} +2 -2
  2. package/dist/cjs/{Refund-BVZHsa6Z.js → Refund-BPSBtjQC.js} +3 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  4. package/dist/cjs/{badge-CcJ9H85-.js → badge-BmOSt4gS.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -11
  6. package/dist/cjs/bank-account-form.cjs.entry.js +10 -15
  7. package/dist/cjs/business-details-core.cjs.entry.js +6 -21
  8. package/dist/cjs/{business.service-D5IhSyRJ.js → business.service-Dkhqyggm.js} +2 -2
  9. package/dist/cjs/{button-DsHDMHaa.js → button-7c2RN2yp.js} +2 -3
  10. package/dist/cjs/card-form.cjs.entry.js +10 -19
  11. package/dist/cjs/{check-pkg-version-VnhfIX0p.js → check-pkg-version-B48ZmuJS.js} +3 -3
  12. package/dist/cjs/{checkout.service-4aS641tN.js → checkout.service-LwZVVgP5.js} +2 -2
  13. package/dist/cjs/checkout.store-C3f3E24L.js +84 -0
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -11
  15. package/dist/cjs/{checkouts-list-params-state-Cewmin_p.js → checkouts-list-params-state-C4c8UZtP.js} +1 -1
  16. package/dist/cjs/{checkouts-table-B_gpjGhs.js → checkouts-table-BQUhZZd_.js} +4 -6
  17. package/dist/cjs/{config-state-BBOZIS8x.js → config-state-B_gyIchD.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
  19. package/dist/cjs/{dispute.service-64ciJH0r.js → dispute.service-927Gzb0N.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  23. package/dist/cjs/{form-control-error-text-B-P5UDhm.js → form-control-error-text-DD0dHGu8.js} +1 -1
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  25. package/dist/cjs/{form-control-help-text-JoZjhb9m.js → form-control-help-text-2QwKi78M.js} +1 -1
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +6 -6
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
  33. package/dist/cjs/{get-payment-details-DE5xUUpt.js → get-payment-details-BSxp1HX0.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-CH477rHs.js → get-subaccounts-B31f95PR.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  36. package/dist/cjs/{header-1-DRA3f4Jh.js → header-1-DMsp0XM7.js} +1 -1
  37. package/dist/cjs/{header-3-sOdOpfx3.js → header-3-BSvFq_IF.js} +1 -1
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  39. package/dist/cjs/{checkout.store-MSwLBCby.js → index-C2ITzalN.js} +29 -41
  40. package/dist/cjs/{index-B32W0A3m.js → index-D1Ba20gi.js} +1 -1
  41. package/dist/cjs/{index-C9hBD-32.js → index-Dyzl8Hn6.js} +8 -2
  42. package/dist/cjs/index.cjs.js +8 -0
  43. package/dist/cjs/{insurance-state-d2thhXUX.js → insurance-state-uWOl6jJN.js} +2 -2
  44. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -24
  45. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -17
  46. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  47. package/dist/cjs/justifi-apple-pay.cjs.entry.js +177 -86
  48. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +26 -44
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -30
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +200 -164
  53. package/dist/cjs/justifi-checkout.cjs.entry.js +19 -11
  54. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -8
  55. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  56. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  58. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  59. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -15
  61. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
  62. package/dist/cjs/justifi-order-terminals.cjs.entry.js +16 -44
  63. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
  64. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
  65. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  67. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -16
  68. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  69. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  70. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  71. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -22
  72. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  73. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  74. package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -21
  75. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  76. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +14 -25
  77. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  78. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -9
  79. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
  80. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
  81. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  82. package/dist/cjs/loader.cjs.js +2 -2
  83. package/dist/cjs/{package-BS0_inF6.js → package-C3FMDKcV.js} +1 -1
  84. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  85. package/dist/cjs/payment-details-core.cjs.entry.js +16 -28
  86. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  87. package/dist/cjs/{payment.service--kzMop3L.js → payment.service-DUq-W7tS.js} +2 -2
  88. package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
  89. package/dist/cjs/{payments-list-params-state-Cewmin_p.js → payments-list-params-state-C4c8UZtP.js} +1 -1
  90. package/dist/cjs/{payments-status-DXRh_ekP.js → payments-status-3iIQkoov.js} +2 -2
  91. package/dist/cjs/{payments-table-DFRtk-T9.js → payments-table-BSHUQhM-.js} +4 -6
  92. package/dist/cjs/payout-details-core.cjs.entry.js +12 -24
  93. package/dist/cjs/{payout.service-D3omzNG_.js → payout.service-DoKMr8Xw.js} +2 -2
  94. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
  95. package/dist/cjs/{payouts-list-params-state-Cewmin_p.js → payouts-list-params-state-C4c8UZtP.js} +1 -1
  96. package/dist/cjs/{payouts-status-DxTQZv3i.js → payouts-status-DoQbxIms.js} +2 -2
  97. package/dist/cjs/{payouts-table-DE3t0x93.js → payouts-table-BD_Fhz_j.js} +5 -7
  98. package/dist/cjs/{skeleton-C7DQRD6r.js → skeleton-CuIMC98G.js} +1 -1
  99. package/dist/cjs/spinner-CMZXdrPe.js +10 -0
  100. package/dist/cjs/{styled-host-BfVJlAsJ.js → styled-host-2KXbjOFw.js} +2 -4
  101. package/dist/cjs/{table-Ccdrt0v_.js → table-DlQCUVag.js} +5 -11
  102. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  103. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
  104. package/dist/cjs/{terminal-orders-list-params-state-Cewmin_p.js → terminal-orders-list-params-state-C4c8UZtP.js} +1 -1
  105. package/dist/cjs/{terminal-orders-table-B1LJitwE.js → terminal-orders-table-t6XxNy_K.js} +7 -11
  106. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  107. package/dist/cjs/{terminal.service-BOvYfpQW.js → terminal.service-Iyje71vN.js} +2 -2
  108. package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
  109. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +22 -0
  110. package/dist/cjs/{terminals-table-DYt7exFQ.js → terminals-table-BTdKRiBN.js} +3 -3
  111. package/dist/cjs/{utils-BaGF9XIe.js → utils-ChCUZgUy.js} +6 -0
  112. package/dist/cjs/utils-FFP5ZHyE.js +18 -0
  113. package/dist/cjs/webcomponents.cjs.js +3 -3
  114. package/dist/collection/api/Payment.js +2 -0
  115. package/dist/collection/api/index.js +1 -2
  116. package/dist/collection/api/services/apple-pay.service.js +95 -8
  117. package/dist/collection/collection-manifest.json +3 -3
  118. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -6
  119. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  120. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +6 -6
  121. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -6
  122. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  123. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  124. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -6
  125. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  133. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  135. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  138. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  139. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  140. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  141. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +6 -3
  142. package/dist/collection/components/checkout/card-form/card-form.js +6 -3
  143. package/dist/collection/components/checkout/checkout.js +16 -1
  144. package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
  145. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  146. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  147. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  148. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  160. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  161. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  162. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  163. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  164. package/dist/collection/components/modular-checkout/ModularCheckout.js +27 -0
  165. package/dist/collection/components/modular-checkout/modular-checkout.js +113 -72
  166. package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +2 -2
  167. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +72 -70
  168. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  169. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  170. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  171. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  172. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  173. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +57 -65
  174. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +8 -6
  175. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +8 -10
  176. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +22 -7
  177. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  178. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  179. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  180. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  181. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  182. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  183. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  184. package/dist/collection/components/payments-list/payments-list.js +1 -1
  185. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  186. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  187. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  188. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  189. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  190. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  191. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  192. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  193. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  194. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  195. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  196. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +31 -13
  197. package/dist/collection/index.js +1 -0
  198. package/dist/collection/store/checkout.store.js +46 -3
  199. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  200. package/dist/collection/ui-components/details/details.js +1 -1
  201. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  203. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  204. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  206. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  207. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  208. package/dist/collection/ui-components/form/form-control-radio.js +5 -5
  209. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  210. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  211. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  212. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  213. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  214. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  215. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  216. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  217. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +4 -4
  218. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  219. package/dist/collection/utils/utils.js +5 -0
  220. package/dist/docs.json +167 -190
  221. package/dist/esm/{Api-C1I68Tfr.js → Api-D4tj-h4P.js} +2 -2
  222. package/dist/esm/{Refund-kKW8S1h6.js → Refund-Bc5By0lb.js} +3 -1
  223. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  224. package/dist/esm/{badge-DSYSJcRy.js → badge-ChwzCNAF.js} +1 -1
  225. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  226. package/dist/esm/bank-account-form.entry.js +10 -15
  227. package/dist/esm/business-details-core.entry.js +6 -21
  228. package/dist/esm/{business.service-B3wlBl1x.js → business.service-CsbtEDNi.js} +2 -2
  229. package/dist/esm/{button-CpllL0At.js → button-SAIS_5os.js} +2 -3
  230. package/dist/esm/card-form.entry.js +10 -19
  231. package/dist/esm/{check-pkg-version-CGQdCjwh.js → check-pkg-version-DSO4z-Vx.js} +3 -3
  232. package/dist/esm/{checkout.service-KDp7tISm.js → checkout.service-BCkQ9pOA.js} +2 -2
  233. package/dist/esm/checkout.store-DBvS7cVB.js +79 -0
  234. package/dist/esm/checkouts-list-core.entry.js +11 -11
  235. package/dist/esm/{checkouts-list-params-state-D8tzsGR_.js → checkouts-list-params-state-C2_GlMKR.js} +1 -1
  236. package/dist/esm/{checkouts-table-QOdiLpak.js → checkouts-table-CItEo0DU.js} +4 -6
  237. package/dist/esm/{config-state-DZeVYerv.js → config-state-Blo0ywwc.js} +1 -1
  238. package/dist/esm/custom-popper_2.entry.js +3 -3
  239. package/dist/esm/{dispute.service-DEZEPwn-.js → dispute.service-CyLtJREK.js} +2 -2
  240. package/dist/esm/form-alert_5.entry.js +5 -5
  241. package/dist/esm/form-control-checkbox.entry.js +5 -5
  242. package/dist/esm/form-control-date.entry.js +4 -4
  243. package/dist/esm/{form-control-error-text-R7U07nTg.js → form-control-error-text-IXJJ4JpV.js} +1 -1
  244. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  245. package/dist/esm/{form-control-help-text-CRLH-2f7.js → form-control-help-text-CuhIsM3v.js} +1 -1
  246. package/dist/esm/form-control-help-text.entry.js +1 -1
  247. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  248. package/dist/esm/form-control-monetary.entry.js +6 -6
  249. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  250. package/dist/esm/form-control-number.entry.js +5 -5
  251. package/dist/esm/form-control-radio.entry.js +3 -3
  252. package/dist/esm/form-control-select_2.entry.js +6 -6
  253. package/dist/esm/{get-payment-details-CYASKLT7.js → get-payment-details-BuT0QNOo.js} +2 -2
  254. package/dist/esm/{get-subaccounts-E0PYy_pc.js → get-subaccounts-VjY6-x_9.js} +3 -3
  255. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  256. package/dist/esm/{header-1-3M9If0gM.js → header-1-zXsamUS3.js} +1 -1
  257. package/dist/esm/{header-3-CWa41YWq.js → header-3-DVtaUAlf.js} +1 -1
  258. package/dist/esm/hidden-input_2.entry.js +8 -8
  259. package/dist/esm/{checkout.store-UMe84fjY.js → index-DCIW8z1f.js} +27 -38
  260. package/dist/esm/{index-B_KxSZIF.js → index-ZfXl6Xrm.js} +1 -1
  261. package/dist/esm/{index-Bn7inNWG.js → index-qipqIMyC.js} +8 -2
  262. package/dist/esm/index.js +1 -1
  263. package/dist/esm/{insurance-state-CTalqbNa.js → insurance-state-Dh9f36Qh.js} +2 -2
  264. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -24
  265. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +17 -17
  266. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  267. package/dist/esm/justifi-apple-pay.entry.js +177 -86
  268. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +26 -44
  269. package/dist/esm/justifi-business-details.entry.js +10 -10
  270. package/dist/esm/justifi-business-form.entry.js +15 -30
  271. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  272. package/dist/esm/justifi-checkout-summary_7.entry.js +193 -157
  273. package/dist/esm/justifi-checkout.entry.js +19 -11
  274. package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
  275. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  276. package/dist/esm/justifi-config-provider.entry.js +3 -3
  277. package/dist/esm/justifi-details.entry.js +3 -3
  278. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  279. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  280. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
  281. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  282. package/dist/esm/justifi-order-terminals.entry.js +16 -44
  283. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  284. package/dist/esm/justifi-payment-details.entry.js +11 -11
  285. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  286. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  287. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -16
  288. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  289. package/dist/esm/justifi-payments-list.entry.js +14 -14
  290. package/dist/esm/justifi-payout-details.entry.js +10 -10
  291. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -22
  292. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  293. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  294. package/dist/esm/justifi-refund-payment.entry.js +15 -21
  295. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  296. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -25
  297. package/dist/esm/justifi-skeleton.entry.js +4 -4
  298. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +9 -9
  299. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
  300. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
  301. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  302. package/dist/esm/loader.js +3 -3
  303. package/dist/esm/{package-BiWRKUx3.js → package-tyhA5jkt.js} +1 -1
  304. package/dist/esm/pagination-menu.entry.js +4 -4
  305. package/dist/esm/payment-details-core.entry.js +16 -28
  306. package/dist/esm/payment-method-option.entry.js +3 -3
  307. package/dist/esm/{payment.service-uJpJaX2Z.js → payment.service-QJEmd6Nl.js} +2 -2
  308. package/dist/esm/payments-list-core.entry.js +12 -12
  309. package/dist/esm/{payments-list-params-state-D8tzsGR_.js → payments-list-params-state-C2_GlMKR.js} +1 -1
  310. package/dist/esm/{payments-status-5orNU2Rd.js → payments-status-DDafc8Yr.js} +2 -2
  311. package/dist/esm/{payments-table-B0uyodyJ.js → payments-table-De3Jb6rY.js} +4 -6
  312. package/dist/esm/payout-details-core.entry.js +12 -24
  313. package/dist/esm/{payout.service-ClUgtbbb.js → payout.service-XxyEr0rj.js} +2 -2
  314. package/dist/esm/payouts-list-core.entry.js +12 -12
  315. package/dist/esm/{payouts-list-params-state-D8tzsGR_.js → payouts-list-params-state-C2_GlMKR.js} +1 -1
  316. package/dist/esm/{payouts-status-CZPwa2AE.js → payouts-status-u1eSRz3Q.js} +2 -2
  317. package/dist/esm/{payouts-table-CaCSX_0q.js → payouts-table-BO-MCzXj.js} +5 -7
  318. package/dist/esm/{skeleton-qMb0_Cjy.js → skeleton-DtpkgjZ6.js} +1 -1
  319. package/dist/esm/spinner-CIXUVK4F.js +8 -0
  320. package/dist/esm/{styled-host-CTAGIN84.js → styled-host-CbizlfAU.js} +2 -4
  321. package/dist/esm/{table-Br3n9Xu-.js → table-DcRHK_sm.js} +5 -11
  322. package/dist/esm/table-filters-menu.entry.js +3 -3
  323. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  324. package/dist/esm/{terminal-orders-list-params-state-D8tzsGR_.js → terminal-orders-list-params-state-C2_GlMKR.js} +1 -1
  325. package/dist/esm/{terminal-orders-table-DPtof5Zb.js → terminal-orders-table-9nsnrAq8.js} +7 -11
  326. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  327. package/dist/esm/{terminal.service-ClNtE3e-.js → terminal.service-D2oETGnk.js} +2 -2
  328. package/dist/esm/terminals-list-core.entry.js +11 -11
  329. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +16 -0
  330. package/dist/esm/{terminals-table-ClkR_jrC.js → terminals-table-C6NO2m-t.js} +3 -3
  331. package/dist/esm/{utils-lb8p1Exq.js → utils-BscIVFn8.js} +6 -1
  332. package/dist/esm/utils-_ckvHjSW.js +11 -0
  333. package/dist/esm/webcomponents.js +4 -4
  334. package/dist/module/ModularCheckout.js +57 -0
  335. package/dist/module/Refund.js +2 -0
  336. package/dist/module/additional-questions-details2.js +4 -2
  337. package/dist/module/additional-questions.js +6 -4
  338. package/dist/module/additional-statement.js +5 -3
  339. package/dist/module/bank-account-billing-form-simple.js +5 -3
  340. package/dist/module/bank-account-document-inputs.js +5 -3
  341. package/dist/module/bank-account-form-inputs2.js +5 -3
  342. package/dist/module/bank-account-form.js +10 -13
  343. package/dist/module/bank-account.js +7 -13
  344. package/dist/module/billing-form-full.js +4 -2
  345. package/dist/module/billing-form.js +4 -2
  346. package/dist/module/business-additional-questions-form-step-core.js +4 -2
  347. package/dist/module/business-additional-questions-form-step.js +5 -3
  348. package/dist/module/business-bank-account-form-step-core.js +4 -2
  349. package/dist/module/business-bank-account-form-step.js +5 -3
  350. package/dist/module/business-core-info-form-step-core.js +4 -2
  351. package/dist/module/business-core-info-form-step.js +5 -3
  352. package/dist/module/business-core-info.js +5 -3
  353. package/dist/module/business-details-core2.js +6 -19
  354. package/dist/module/business-documents-on-file2.js +4 -2
  355. package/dist/module/business-owners-form-step-core.js +4 -2
  356. package/dist/module/business-owners-form-step.js +5 -3
  357. package/dist/module/business-representative-form-inputs.js +5 -3
  358. package/dist/module/business-representative-form-step-core.js +4 -2
  359. package/dist/module/business-representative-form-step.js +5 -3
  360. package/dist/module/business-representative.js +6 -4
  361. package/dist/module/business-terms-conditions-form-step.js +5 -3
  362. package/dist/module/button.js +1 -2
  363. package/dist/module/cancellation-policy.js +5 -3
  364. package/dist/module/card-billing-form-simple.js +5 -3
  365. package/dist/module/card-form.js +10 -17
  366. package/dist/module/card-form2.js +7 -17
  367. package/dist/module/checkout.store.js +42 -31
  368. package/dist/module/checkouts-list-core2.js +6 -6
  369. package/dist/module/core-info-details2.js +4 -2
  370. package/dist/module/custom-popper2.js +6 -4
  371. package/dist/module/customer-details.js +5 -3
  372. package/dist/module/details.js +5 -3
  373. package/dist/module/dispute-management-core.js +5 -3
  374. package/dist/module/dispute-notification.js +5 -3
  375. package/dist/module/dispute-response-core.js +5 -3
  376. package/dist/module/dispute-response.js +5 -3
  377. package/dist/module/duplicate-charge.js +5 -3
  378. package/dist/module/electronic-evidence.js +5 -3
  379. package/dist/module/form-alert2.js +4 -2
  380. package/dist/module/form-control-checkbox2.js +6 -4
  381. package/dist/module/form-control-date2.js +6 -4
  382. package/dist/module/form-control-file-v22.js +5 -3
  383. package/dist/module/form-control-file2.js +6 -4
  384. package/dist/module/form-control-help-text2.js +4 -2
  385. package/dist/module/form-control-monetary-provisioning2.js +6 -4
  386. package/dist/module/form-control-monetary2.js +6 -4
  387. package/dist/module/form-control-number-masked2.js +6 -4
  388. package/dist/module/form-control-number.js +6 -4
  389. package/dist/module/form-control-radio2.js +7 -5
  390. package/dist/module/form-control-select2.js +6 -4
  391. package/dist/module/form-control-text2.js +6 -4
  392. package/dist/module/form-control-textarea2.js +6 -4
  393. package/dist/module/form-control-tooltip2.js +4 -2
  394. package/dist/module/gross-payment-chart-core2.js +6 -4
  395. package/dist/module/hidden-input2.js +5 -3
  396. package/dist/module/identity-address-form.js +5 -3
  397. package/dist/module/iframe-input2.js +7 -5
  398. package/dist/module/index.js +1 -0
  399. package/dist/module/justifi-apple-pay.js +174 -86
  400. package/dist/module/justifi-business-details.js +4 -2
  401. package/dist/module/justifi-business-form.js +6 -19
  402. package/dist/module/justifi-button2.js +5 -3
  403. package/dist/module/justifi-checkout.js +15 -4
  404. package/dist/module/justifi-checkouts-list-filters.js +5 -3
  405. package/dist/module/justifi-checkouts-list.js +5 -3
  406. package/dist/module/justifi-config-provider.js +4 -2
  407. package/dist/module/justifi-dispute-management.js +5 -3
  408. package/dist/module/justifi-gross-payment-chart.js +4 -2
  409. package/dist/module/justifi-header2.js +5 -3
  410. package/dist/module/justifi-order-terminals.js +9 -35
  411. package/dist/module/justifi-payment-details.js +4 -2
  412. package/dist/module/justifi-payment-provisioning.js +5 -3
  413. package/dist/module/justifi-payment-transactions-list.js +6 -6
  414. package/dist/module/justifi-payments-list-filters.js +6 -4
  415. package/dist/module/justifi-payments-list.js +5 -3
  416. package/dist/module/justifi-payout-details.js +4 -2
  417. package/dist/module/justifi-payout-transactions-list.js +8 -12
  418. package/dist/module/justifi-payouts-list-filters.js +6 -4
  419. package/dist/module/justifi-payouts-list.js +5 -3
  420. package/dist/module/justifi-radio-list-item2.js +6 -4
  421. package/dist/module/justifi-refund-payment.js +6 -10
  422. package/dist/module/justifi-saved-payment-method.js +5 -3
  423. package/dist/module/justifi-season-interruption-insurance.js +6 -16
  424. package/dist/module/justifi-skeleton.js +5 -3
  425. package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
  426. package/dist/module/justifi-terminal-orders-list.js +5 -3
  427. package/dist/module/justifi-terminals-list-filters.js +5 -3
  428. package/dist/module/justifi-terminals-list.js +5 -3
  429. package/dist/module/legal-address-details2.js +4 -2
  430. package/dist/module/legal-address-form-step-core.js +4 -2
  431. package/dist/module/legal-address-form-step.js +5 -3
  432. package/dist/module/legal-address-form.js +6 -4
  433. package/dist/module/modular-checkout.js +102 -39
  434. package/dist/module/owner-details2.js +4 -2
  435. package/dist/module/owner-form-core2.js +5 -3
  436. package/dist/module/owner-form-inputs2.js +6 -4
  437. package/dist/module/owner-form.js +5 -3
  438. package/dist/module/package.js +1 -1
  439. package/dist/module/pagination-menu2.js +7 -5
  440. package/dist/module/payment-details-core2.js +13 -23
  441. package/dist/module/payment-method-option.js +5 -3
  442. package/dist/module/payment-provisioning-core.js +5 -3
  443. package/dist/module/payment-provisioning-form-buttons.js +5 -3
  444. package/dist/module/payment-provisioning-form-steps.js +5 -3
  445. package/dist/module/payment-provisioning-loading.js +2 -17
  446. package/dist/module/payments-list-core2.js +6 -6
  447. package/dist/module/payout-details-core2.js +8 -18
  448. package/dist/module/payouts-list-core2.js +7 -7
  449. package/dist/module/plaid-payment-method.js +49 -104
  450. package/dist/module/plaid.service.js +26 -0
  451. package/dist/module/product-or-service.js +5 -3
  452. package/dist/module/refund-policy.js +5 -3
  453. package/dist/module/representative-details2.js +4 -2
  454. package/dist/module/save-new-payment-method.js +7 -3
  455. package/dist/module/saved-payment-methods.js +13 -12
  456. package/dist/module/sezzle-payment-method.js +14 -24
  457. package/dist/module/shipping-details.js +5 -3
  458. package/dist/module/spinner.js +1 -3
  459. package/dist/module/styled-host.js +1 -3
  460. package/dist/module/summary.js +5 -3
  461. package/dist/module/table-filters-menu2.js +5 -3
  462. package/dist/module/table.js +3 -9
  463. package/dist/module/terminal-orders-list-core2.js +7 -9
  464. package/dist/module/terminal-quantity-selector2.js +5 -3
  465. package/dist/module/terminals-list-core2.js +6 -4
  466. package/dist/module/tokenize-payment-method.js +16 -12
  467. package/dist/module/utils.js +5 -16
  468. package/dist/module/utils2.js +6 -1
  469. package/dist/types/api/Checkout.d.ts +7 -15
  470. package/dist/types/api/Payment.d.ts +3 -1
  471. package/dist/types/api/index.d.ts +2 -2
  472. package/dist/types/api/services/apple-pay.service.d.ts +7 -0
  473. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  474. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +1 -0
  475. package/dist/types/components/checkout/card-form/card-form.d.ts +1 -0
  476. package/dist/types/components/checkout/checkout.d.ts +5 -0
  477. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
  478. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +41 -0
  479. package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -5
  480. package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +1 -1
  481. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +9 -3
  482. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -2
  483. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +3 -3
  484. package/dist/types/components/modular-checkout/sub-components/sezzle-payment-method.d.ts +1 -1
  485. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -1
  486. package/dist/types/components.d.ts +31 -29
  487. package/dist/types/index.d.ts +4 -0
  488. package/dist/types/stencil-public-runtime.d.ts +21 -0
  489. package/dist/types/store/checkout.store.d.ts +12 -5
  490. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  491. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +1 -1
  492. package/dist/types/utils/utils.d.ts +1 -0
  493. package/dist/webcomponents/index.esm.js +1 -0
  494. package/dist/webcomponents/{p-497632ad.entry.js → p-037d7061.entry.js} +1 -1
  495. package/dist/webcomponents/{p-4e3bf98f.entry.js → p-070c29ce.entry.js} +1 -1
  496. package/dist/webcomponents/{p-54ca3070.entry.js → p-0801324e.entry.js} +1 -1
  497. package/dist/webcomponents/{p-6255c685.entry.js → p-10278c48.entry.js} +1 -1
  498. package/dist/webcomponents/p-19ccbeee.entry.js +1 -0
  499. package/dist/webcomponents/{p-15705e8a.entry.js → p-1b3b6956.entry.js} +1 -1
  500. package/dist/webcomponents/{p-9846b23d.entry.js → p-1b7926f6.entry.js} +1 -1
  501. package/dist/webcomponents/p-1c433962.entry.js +1 -0
  502. package/dist/webcomponents/{p-2f01dfd2.entry.js → p-1d7139d3.entry.js} +1 -1
  503. package/dist/webcomponents/p-214fa6e0.entry.js +1 -0
  504. package/dist/webcomponents/{p-f13ae573.entry.js → p-2246aa69.entry.js} +1 -1
  505. package/dist/webcomponents/p-246ef4ff.entry.js +1 -0
  506. package/dist/webcomponents/{p-4213d10e.entry.js → p-27fc3ef0.entry.js} +3 -3
  507. package/dist/webcomponents/p-2d818d44.entry.js +1 -0
  508. package/dist/webcomponents/p-30147031.entry.js +1 -0
  509. package/dist/webcomponents/p-3546a5aa.entry.js +1 -0
  510. package/dist/webcomponents/p-3621a429.entry.js +1 -0
  511. package/dist/webcomponents/{p-f1cba43c.entry.js → p-3d37045d.entry.js} +1 -1
  512. package/dist/webcomponents/p-406ba650.entry.js +1 -0
  513. package/dist/webcomponents/{p-36a71a36.entry.js → p-4215ea76.entry.js} +1 -1
  514. package/dist/webcomponents/p-44d1341c.entry.js +1 -0
  515. package/dist/webcomponents/{p-36d9d95a.entry.js → p-4b1abc3b.entry.js} +1 -1
  516. package/dist/webcomponents/p-4d5c71c4.entry.js +1 -0
  517. package/dist/webcomponents/p-4ea83bfd.entry.js +1 -0
  518. package/dist/webcomponents/p-558f7967.entry.js +1 -0
  519. package/dist/webcomponents/p-5c477f08.entry.js +1 -0
  520. package/dist/webcomponents/p-62a16ef9.entry.js +1 -0
  521. package/dist/webcomponents/p-65286b2b.entry.js +1 -0
  522. package/dist/webcomponents/p-68329f16.entry.js +1 -0
  523. package/dist/webcomponents/p-6af851c5.entry.js +1 -0
  524. package/dist/webcomponents/{p-aeeb0f68.entry.js → p-6d4ae6c7.entry.js} +1 -1
  525. package/dist/webcomponents/p-6fe79f16.entry.js +1 -0
  526. package/dist/webcomponents/p-7494c1b6.entry.js +1 -0
  527. package/dist/webcomponents/p-7aeb20d2.entry.js +1 -0
  528. package/dist/webcomponents/{p-28618e6f.entry.js → p-7c5cd118.entry.js} +1 -1
  529. package/dist/webcomponents/p-8018523d.entry.js +1 -0
  530. package/dist/webcomponents/{p-4178bdbe.entry.js → p-83fa6da1.entry.js} +1 -1
  531. package/dist/webcomponents/p-84043580.entry.js +1 -0
  532. package/dist/webcomponents/{p-48e87a26.entry.js → p-84ccc7bb.entry.js} +1 -1
  533. package/dist/webcomponents/p-8975bf93.entry.js +1 -0
  534. package/dist/webcomponents/{p-bc2da364.entry.js → p-9046afd6.entry.js} +1 -1
  535. package/dist/webcomponents/p-906fdf0c.entry.js +1 -0
  536. package/dist/webcomponents/{p-9a2c044f.entry.js → p-90e43440.entry.js} +1 -1
  537. package/dist/webcomponents/{p-70f51444.entry.js → p-914e168d.entry.js} +1 -1
  538. package/dist/webcomponents/p-91c1e2ac.entry.js +1 -0
  539. package/dist/webcomponents/p-95348ff6.entry.js +1 -0
  540. package/dist/webcomponents/p-9f04cac4.entry.js +1 -0
  541. package/dist/webcomponents/{p-0mMX1Zv4.js → p-B4idKqyn.js} +1 -1
  542. package/dist/webcomponents/{p-zdIeCUeh.js → p-BHf9IqGw.js} +1 -1
  543. package/dist/webcomponents/{p-DNo0OPOP.js → p-BIPdn2VU.js} +1 -1
  544. package/dist/webcomponents/{p-BPtcGAzB.js → p-BUa0YOaw.js} +1 -1
  545. package/dist/webcomponents/{p-B8iBcmNu.js → p-BY2p6Sxk.js} +1 -1
  546. package/dist/webcomponents/{p-CB0mCq1M.js → p-BZ7C9duj.js} +1 -1
  547. package/dist/webcomponents/{p-DGmp4ErD.js → p-BdLLGV9t.js} +1 -1
  548. package/dist/webcomponents/p-BguBT6Hn.js +1 -0
  549. package/dist/webcomponents/{p-DhGNCW2f.js → p-Bp_QFeog.js} +1 -1
  550. package/dist/webcomponents/{p-B71k50jz.js → p-Bvp7uul3.js} +1 -1
  551. package/dist/webcomponents/{p-CvG-itHC.js → p-C1xGBPma.js} +1 -1
  552. package/dist/webcomponents/p-C3n7-tlg.js +1 -0
  553. package/dist/webcomponents/{p-DxqCFDtF.js → p-CLQx9p9q.js} +1 -1
  554. package/dist/webcomponents/{p-b21ncS7l.js → p-CPVN4dXS.js} +1 -1
  555. package/dist/webcomponents/p-CQeex56P.js +1 -0
  556. package/dist/webcomponents/p-CU4XQ3fO.js +1 -0
  557. package/dist/webcomponents/{p-Bb-6bNcq.js → p-C_3N7nqh.js} +1 -1
  558. package/dist/webcomponents/{p-BRLwUSZk.js → p-CaxjN6Uo.js} +1 -1
  559. package/dist/webcomponents/p-CpKvg1ok.js +1 -0
  560. package/dist/webcomponents/p-CrQgyTRz.js +1 -0
  561. package/dist/webcomponents/{p-B_6n1dAh.js → p-CtA2NMVz.js} +1 -1
  562. package/dist/webcomponents/{p-Bu1jU017.js → p-CxzFvTgf.js} +1 -1
  563. package/dist/webcomponents/{p-DVBbk00Z.js → p-CzPUMw00.js} +1 -1
  564. package/dist/webcomponents/{p-DDUmOl3v.js → p-D--yCspA.js} +1 -1
  565. package/dist/webcomponents/{p-qWQmu-fb.js → p-D-JYHdJ7.js} +1 -1
  566. package/dist/webcomponents/p-D6XirF21.js +1 -0
  567. package/dist/webcomponents/p-DCIW8z1f.js +1 -0
  568. package/dist/webcomponents/{p-BfM6X7lF.js → p-DCMrHeJI.js} +1 -1
  569. package/dist/webcomponents/p-DbX0g1WF.js +1 -0
  570. package/dist/webcomponents/p-De8UloOS.js +1 -0
  571. package/dist/webcomponents/p-DsAwPf2y.js +1 -0
  572. package/dist/webcomponents/p-DvZcI6pC.js +1 -0
  573. package/dist/webcomponents/p-DyDHaG6n.js +1 -0
  574. package/dist/webcomponents/{p-D2_iJUrZ.js → p-DyOgQlh2.js} +1 -1
  575. package/dist/webcomponents/p-IG_KR8zP.js +1 -0
  576. package/dist/webcomponents/p-Xv8DuU3Y.js +1 -0
  577. package/dist/webcomponents/p-a0909318.entry.js +1 -0
  578. package/dist/webcomponents/p-a57c1400.entry.js +1 -0
  579. package/dist/webcomponents/{p-d46dbb83.entry.js → p-a71a5e64.entry.js} +1 -1
  580. package/dist/webcomponents/p-a85cf3e0.entry.js +1 -0
  581. package/dist/webcomponents/{p-72dda22b.entry.js → p-a90b8b93.entry.js} +1 -1
  582. package/dist/webcomponents/p-bb03a95a.entry.js +1 -0
  583. package/dist/webcomponents/p-c16c0cbc.entry.js +1 -0
  584. package/dist/webcomponents/p-c4Mh3ZZ_.js +1 -0
  585. package/dist/webcomponents/p-d2259dfd.entry.js +1 -0
  586. package/dist/webcomponents/p-d8e5d7b7.entry.js +1 -0
  587. package/dist/webcomponents/p-df385efe.entry.js +1 -0
  588. package/dist/webcomponents/{p-14ff3155.entry.js → p-df7f36aa.entry.js} +1 -1
  589. package/dist/webcomponents/p-e035a92e.entry.js +1 -0
  590. package/dist/webcomponents/{p-3e667b07.entry.js → p-e2a38ad0.entry.js} +1 -1
  591. package/dist/webcomponents/p-e628a0c8.entry.js +1 -0
  592. package/dist/webcomponents/p-e6516014.entry.js +1 -0
  593. package/dist/webcomponents/{p-97c0dde4.entry.js → p-e6e96be2.entry.js} +1 -1
  594. package/dist/webcomponents/p-e79338f9.entry.js +1 -0
  595. package/dist/webcomponents/p-e7edf4f4.entry.js +1 -0
  596. package/dist/webcomponents/p-eafd179b.entry.js +1 -0
  597. package/dist/webcomponents/p-f5c3f489.entry.js +1 -0
  598. package/dist/webcomponents/{p-C5id7s_l.js → p-fUtq2xDs.js} +1 -1
  599. package/dist/webcomponents/{p-7cf87637.entry.js → p-ffe01f1b.entry.js} +1 -1
  600. package/dist/webcomponents/{p-Dgflaz6J.js → p-oGKW57R8.js} +1 -1
  601. package/dist/webcomponents/p-qipqIMyC.js +2 -0
  602. package/dist/webcomponents/p-tyhA5jkt.js +1 -0
  603. package/dist/webcomponents/p-xY5RkFuA.js +1 -0
  604. package/dist/webcomponents/webcomponents.esm.js +1 -1
  605. package/package.json +14 -14
  606. package/LICENSE +0 -21
  607. package/dist/cjs/spinner-jmeA44Ee.js +0 -12
  608. package/dist/cjs/terminals-list-params-state-Cewmin_p.js +0 -22
  609. package/dist/cjs/utils-Bzyj4qWe.js +0 -29
  610. package/dist/esm/spinner-DUzyWLhj.js +0 -10
  611. package/dist/esm/terminals-list-params-state-D8tzsGR_.js +0 -16
  612. package/dist/esm/utils-Dg6gMUTv.js +0 -22
  613. package/dist/webcomponents/p-040e8524.entry.js +0 -1
  614. package/dist/webcomponents/p-0db9943e.entry.js +0 -1
  615. package/dist/webcomponents/p-1288fda5.entry.js +0 -1
  616. package/dist/webcomponents/p-3aecd2cd.entry.js +0 -1
  617. package/dist/webcomponents/p-3bf63d1e.entry.js +0 -1
  618. package/dist/webcomponents/p-41e17edd.entry.js +0 -1
  619. package/dist/webcomponents/p-43c5f490.entry.js +0 -1
  620. package/dist/webcomponents/p-44450a94.entry.js +0 -1
  621. package/dist/webcomponents/p-5580e6ca.entry.js +0 -1
  622. package/dist/webcomponents/p-57dde36e.entry.js +0 -1
  623. package/dist/webcomponents/p-5bc6f5ca.entry.js +0 -1
  624. package/dist/webcomponents/p-5f87add5.entry.js +0 -1
  625. package/dist/webcomponents/p-60206d9c.entry.js +0 -1
  626. package/dist/webcomponents/p-613421d4.entry.js +0 -1
  627. package/dist/webcomponents/p-6c9732b6.entry.js +0 -1
  628. package/dist/webcomponents/p-7089fb85.entry.js +0 -1
  629. package/dist/webcomponents/p-7500c5b7.entry.js +0 -1
  630. package/dist/webcomponents/p-79da5350.entry.js +0 -1
  631. package/dist/webcomponents/p-87884ca5.entry.js +0 -1
  632. package/dist/webcomponents/p-88905a54.entry.js +0 -1
  633. package/dist/webcomponents/p-8990707a.entry.js +0 -1
  634. package/dist/webcomponents/p-8b7cbdbf.entry.js +0 -1
  635. package/dist/webcomponents/p-8cca8903.entry.js +0 -1
  636. package/dist/webcomponents/p-8dc4eb6a.entry.js +0 -1
  637. package/dist/webcomponents/p-8ff839a4.entry.js +0 -1
  638. package/dist/webcomponents/p-95cbb655.entry.js +0 -1
  639. package/dist/webcomponents/p-98cffba9.entry.js +0 -1
  640. package/dist/webcomponents/p-9df86b97.entry.js +0 -1
  641. package/dist/webcomponents/p-9edfd38c.entry.js +0 -1
  642. package/dist/webcomponents/p-9f5c9e41.entry.js +0 -1
  643. package/dist/webcomponents/p-B5Rc83j1.js +0 -1
  644. package/dist/webcomponents/p-BEPUC3Po.js +0 -1
  645. package/dist/webcomponents/p-BP7op0vq.js +0 -1
  646. package/dist/webcomponents/p-BQ2TIFoY.js +0 -1
  647. package/dist/webcomponents/p-BSt6p1oq.js +0 -1
  648. package/dist/webcomponents/p-BY1mRAvj.js +0 -1
  649. package/dist/webcomponents/p-BbZwa5UI.js +0 -1
  650. package/dist/webcomponents/p-BiWRKUx3.js +0 -1
  651. package/dist/webcomponents/p-Bn7inNWG.js +0 -2
  652. package/dist/webcomponents/p-C6c6Q0E7.js +0 -1
  653. package/dist/webcomponents/p-CaAVuW6B.js +0 -1
  654. package/dist/webcomponents/p-CpaS1Lex.js +0 -1
  655. package/dist/webcomponents/p-DD0Mvpeu.js +0 -1
  656. package/dist/webcomponents/p-DIDloHpm.js +0 -1
  657. package/dist/webcomponents/p-Dc1CS9Mi.js +0 -1
  658. package/dist/webcomponents/p-DsZZxRXY.js +0 -1
  659. package/dist/webcomponents/p-a1d3bb81.entry.js +0 -1
  660. package/dist/webcomponents/p-a9957ca5.entry.js +0 -1
  661. package/dist/webcomponents/p-abbf14b5.entry.js +0 -1
  662. package/dist/webcomponents/p-b2dcef65.entry.js +0 -1
  663. package/dist/webcomponents/p-c44325f8.entry.js +0 -1
  664. package/dist/webcomponents/p-c874ca2b.entry.js +0 -1
  665. package/dist/webcomponents/p-caac63bf.entry.js +0 -1
  666. package/dist/webcomponents/p-d72e8541.entry.js +0 -1
  667. package/dist/webcomponents/p-da44dc6e.entry.js +0 -1
  668. package/dist/webcomponents/p-e0cb5de5.entry.js +0 -1
  669. package/dist/webcomponents/p-eP3fmhta.js +0 -1
  670. package/dist/webcomponents/p-ecce97b3.entry.js +0 -1
  671. package/dist/webcomponents/p-f680e617.entry.js +0 -1
  672. package/dist/webcomponents/p-fd4ffaa2.entry.js +0 -1
  673. package/dist/webcomponents/p-sw5RO19U.js +0 -1
@@ -7,9 +7,11 @@ import { d as defineCustomElement$2 } from './form-control-text2.js';
7
7
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
8
8
 
9
9
  const IdentityAddressForm = /*@__PURE__*/ proxyCustomElement(class IdentityAddressForm extends HTMLElement {
10
- constructor() {
10
+ constructor(registerHost) {
11
11
  super();
12
- this.__registerHost();
12
+ if (registerHost !== false) {
13
+ this.__registerHost();
14
+ }
13
15
  this.address = {};
14
16
  this.inputHandler = (name, value) => {
15
17
  this.address[name] = value;
@@ -21,7 +23,7 @@ const IdentityAddressForm = /*@__PURE__*/ proxyCustomElement(class IdentityAddre
21
23
  }
22
24
  render() {
23
25
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
24
- return (h(Host, { key: '136f90a2d2e8634c003a5f47af20d422b7cc59be' }, h("div", { key: 'e7441c2a0410381be43f8d0735fdf4e390f664f2', class: "row gy-3" }, h("div", { key: '93f23a3ba51716a88bf90628f395dbb3bc456cdc', class: "col-12 col-md-8" }, h("form-control-text", { key: 'f4801f6eb05d3a169142daa6b0d123ef84864de8', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: 'e8ce49dcd4d3c6df3327d2c011ec1c0a080fb4f2', class: "col-12 col-md-4" }, h("form-control-text", { key: '8cbe92c156c4d410b712b2fc95c7bfe55be4e337', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '4cfcfc24268fd92ccaac110a8293e95bc9998af8', class: "col-12" }, h("form-control-text", { key: 'b2739b7fd7838ee73c9127fd8e9b0dd6dcd12210', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'ce9e4974dcdab596dfcefef362d045ee2fea3648', class: "col-12 col-md-6" }, h("form-control-select", { key: 'c001d0a3d3b402768ec428c0e5760cf0e88c318d', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '7b73598a2b207db9ec2480ed37d163aa45128e6d', class: "col-12 col-md-6" }, h("form-control-text", { key: 'a070edca32110dc4ec238c486ae96852733ae924', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '57b01955142ed533a65058b63cfd20598e8387c2', class: "col-12" }, h("form-control-select", { key: '8f07809025c039b4c39a452ddf2948f973a82d9a', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
26
+ return (h(Host, { key: '63db91625abddc3e615b031e04366a5823d516cf' }, h("div", { key: 'e07f0e511b178471343594fe0c88ae286325a5e5', class: "row gy-3" }, h("div", { key: 'a22674f05f19378994eceb7386c29f579c285a26', class: "col-12 col-md-8" }, h("form-control-text", { key: 'c6cfe95a8ce577a162e4eae61ff7d61902b36e73', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: 'de08102a8f4948a929f4fd9194ba7eb2f075d507', class: "col-12 col-md-4" }, h("form-control-text", { key: '8dd269cbd72719ff4ad7b85693ed67e1fdd88225', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: 'a1081a9a0016dc5fe06106ffdb0063374389f5de', class: "col-12" }, h("form-control-text", { key: '94b340156ae354a87a93a8cb44bbc0a2f6507489', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: '66732609b564a08b4b907e9a50aab38a782b0cbc', class: "col-12 col-md-6" }, h("form-control-select", { key: '8f91fd2a2ae886044b105f21177c0ccd893c3993', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: 'ebec4b6351ccb7741e195806f1897436e10404cc', class: "col-12 col-md-6" }, h("form-control-text", { key: '2d0884fb5acd8e2557fb5ece1b735e6d5945f2a1', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '8051b9545fd8a93fec6f1c00623c2e2876912db7', class: "col-12" }, h("form-control-select", { key: 'c68c63ce249f139f4d1df8820f0e1dd56763a67f', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
25
27
  // just for now so we skip handling country specificities
26
28
  disabled: true })))));
27
29
  }
@@ -1544,9 +1544,11 @@ const MessageEventType = {
1544
1544
  };
1545
1545
 
1546
1546
  const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends HTMLElement {
1547
- constructor() {
1547
+ constructor(registerHost) {
1548
1548
  super();
1549
- this.__registerHost();
1549
+ if (registerHost !== false) {
1550
+ this.__registerHost();
1551
+ }
1550
1552
  this.iframeLoaded = createEvent(this, "iframeLoaded", 7);
1551
1553
  this.isFocused = false;
1552
1554
  this.isValid = true;
@@ -1617,10 +1619,10 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
1617
1619
  return params;
1618
1620
  }
1619
1621
  render() {
1620
- return (h(Host, { key: 'd77a2d0b61928a0194ee7662fd6a16d47666c304', class: "form-group d-flex flex-column" }, h("div", { key: 'a34d32b6497924fadef2dba7beec4e99233645ed', style: {
1622
+ return (h(Host, { key: 'c8a36a456afdfd883ae2ad8e05de98d307615b4c', class: "form-group d-flex flex-column" }, h("div", { key: '580cdd90dd76289f78b688fcdb1486ecb7fe6c5a', style: {
1621
1623
  visibility: this.iframeLoaded ? 'visible' : 'hidden',
1622
1624
  height: this.iframeLoaded ? 'auto' : '0',
1623
- } }, h("label", { key: 'fe606e175435571ba5a5617abe36468e4627dcc0', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: 'e3355a4ad2960fc6b3fc9ad46092e570ed7b4397', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '83d0ab3c20019a33dc7d72b0378ccf95eb77e95f', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
1625
+ } }, h("label", { key: '7df8c29c720b5edf85553e5667c14eeb0ad6e2b6', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: '3caeb47ddf3940e1b1a7fe08d8bd50b8123eb2c5', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '2fdff0682753d32292431a8d62d30a1647fa62ef', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
1624
1626
  this.iframeElement = el;
1625
1627
  this.initializeFrameCommunicationService();
1626
1628
  }, width: "100%", onLoad: () => {
@@ -1630,7 +1632,7 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
1630
1632
  this.iframeLoaded.emit();
1631
1633
  }
1632
1634
  }, this.iframeElement);
1633
- } })), h(FormControlErrorText, { key: 'e8bf25dfe4ad6296e3a64132559c7ccce632b12a', errorText: this.errorText, name: this.inputId }))));
1635
+ } })), h(FormControlErrorText, { key: '075ca2ca25623703280fda84ff119e4820f9a5cb', errorText: this.errorText, name: this.inputId }))));
1634
1636
  }
1635
1637
  get el() { return this; }
1636
1638
  }, [256, "iframe-input", {
@@ -1 +1,2 @@
1
1
  export { getAssetPath, render, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { P as PAYMENT_METHODS } from './ModularCheckout.js';
@@ -5,7 +5,7 @@ import './details.js';
5
5
  import './event-types.js';
6
6
  import './justifi-radio-list-item2.js';
7
7
  import { S as Skeleton } from './skeleton.js';
8
- import { c as checkoutStore, o as onChange } from './checkout.store.js';
8
+ import { c as checkoutStore } from './checkout.store.js';
9
9
 
10
10
  var ApplePaySessionStatus;
11
11
  (function (ApplePaySessionStatus) {
@@ -127,6 +127,15 @@ class ApplePayHelpers {
127
127
  }
128
128
  }
129
129
 
130
+ // Centralized error codes for Apple Pay service
131
+ var ApplePayServiceErrorCode;
132
+ (function (ApplePayServiceErrorCode) {
133
+ ApplePayServiceErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
134
+ ApplePayServiceErrorCode["SESSION_ERROR"] = "SESSION_ERROR";
135
+ ApplePayServiceErrorCode["MERCHANT_VALIDATION_ERROR"] = "MERCHANT_VALIDATION_ERROR";
136
+ ApplePayServiceErrorCode["PAYMENT_PROCESSING_ERROR"] = "PAYMENT_PROCESSING_ERROR";
137
+ ApplePayServiceErrorCode["USER_CANCELLED"] = "USER_CANCELLED";
138
+ })(ApplePayServiceErrorCode || (ApplePayServiceErrorCode = {}));
130
139
  class ApplePayService {
131
140
  constructor() {
132
141
  this.api = Api();
@@ -197,28 +206,70 @@ class ApplePayService {
197
206
  * Start Apple Pay session
198
207
  */
199
208
  async startPaymentSession(paymentRequest, authToken, accountId) {
209
+ // Begin verbose diagnostics for easier debugging in the field
210
+ console.groupCollapsed('[ApplePayService] startPaymentSession called');
211
+ console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
212
+ console.log('[ApplePayService] has authToken:', Boolean(authToken));
213
+ console.log('[ApplePayService] accountId:', accountId);
214
+ console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
200
215
  if (!this.applePayConfig) {
216
+ console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
217
+ console.groupEnd();
201
218
  throw new Error('Apple Pay not initialized. Call initialize() first.');
202
219
  }
203
220
  // if (!this.isAvailable()) {
204
221
  // throw new Error('Apple Pay is not available on this device/browser');
205
222
  // }
206
223
  const request = new ApplePayPaymentRequest(paymentRequest);
224
+ console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
207
225
  if (!request.isValid) {
226
+ const missingFields = [];
227
+ if (!request.countryCode)
228
+ missingFields.push('countryCode');
229
+ if (!request.currencyCode)
230
+ missingFields.push('currencyCode');
231
+ if (!request.merchantCapabilities ||
232
+ request.merchantCapabilities.length === 0)
233
+ missingFields.push('merchantCapabilities');
234
+ if (!request.supportedNetworks || request.supportedNetworks.length === 0)
235
+ missingFields.push('supportedNetworks');
236
+ if (!request.total || !request.total.label || !request.total.amount)
237
+ missingFields.push('total');
238
+ console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
239
+ console.groupEnd();
208
240
  throw new Error('Invalid payment request provided');
209
241
  }
210
242
  this.currentPaymentRequest = request;
211
243
  return new Promise((resolve, reject) => {
212
244
  try {
245
+ console.log('[ApplePayService] About to instantiate ApplePaySession');
246
+ // Defensive checks for Apple Pay environment
247
+ if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
248
+ console.error('[ApplePayService] ApplePaySession not available on window');
249
+ console.groupEnd();
250
+ return reject({
251
+ success: false,
252
+ error: {
253
+ code: ApplePayServiceErrorCode.UNAVAILABLE,
254
+ message: 'ApplePaySession API is not available in this environment',
255
+ },
256
+ });
257
+ }
213
258
  this.currentSession = new window.ApplePaySession(3, request);
259
+ console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
214
260
  this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
261
+ console.log('[ApplePayService] Event handlers set. Beginning session...');
215
262
  this.currentSession.begin();
263
+ console.log('[ApplePayService] Session.begin() called');
264
+ console.groupEnd();
216
265
  }
217
266
  catch (error) {
267
+ console.error('[ApplePayService] Exception while starting session:', error);
268
+ console.groupEnd();
218
269
  reject({
219
270
  success: false,
220
271
  error: {
221
- code: 'SESSION_ERROR',
272
+ code: ApplePayServiceErrorCode.SESSION_ERROR,
222
273
  message: error instanceof Error
223
274
  ? error.message
224
275
  : 'Failed to start Apple Pay session',
@@ -244,16 +295,26 @@ class ApplePayService {
244
295
  if (!this.currentSession ||
245
296
  !this.applePayConfig ||
246
297
  !this.currentPaymentRequest) {
298
+ console.error('[ApplePayService] setupSessionEventHandlers called without required state', {
299
+ hasSession: Boolean(this.currentSession),
300
+ hasConfig: Boolean(this.applePayConfig),
301
+ hasPaymentRequest: Boolean(this.currentPaymentRequest),
302
+ });
247
303
  return;
248
304
  }
249
305
  this.currentSession.onvalidatemerchant = async () => {
306
+ console.groupCollapsed('[ApplePayService] onvalidatemerchant');
250
307
  try {
308
+ console.log('[ApplePayService] accountId:', accountId);
251
309
  if (!authToken) {
310
+ console.error('[ApplePayService] Missing authToken for merchant validation');
252
311
  throw new Error('Authentication token not provided.');
253
312
  }
254
313
  const merchantSession = await this.validateMerchant(authToken, accountId);
314
+ console.log('[ApplePayService] merchantSession received');
255
315
  try {
256
316
  this.currentSession.completeMerchantValidation(merchantSession);
317
+ console.log('[ApplePayService] completeMerchantValidation called');
257
318
  }
258
319
  catch (completionError) {
259
320
  console.error('Error calling completeMerchantValidation:', completionError);
@@ -263,32 +324,44 @@ class ApplePayService {
263
324
  catch (error) {
264
325
  console.error('=== MERCHANT VALIDATION ERROR ===');
265
326
  console.error('Error during merchant validation:', error);
266
- console.error('Error stack:', error.stack);
327
+ if (error && error.stack) {
328
+ console.error('Error stack:', error.stack);
329
+ }
267
330
  this.currentSession.abort();
268
331
  reject({
269
332
  success: false,
270
333
  error: {
271
- code: 'MERCHANT_VALIDATION_ERROR',
334
+ code: ApplePayServiceErrorCode.MERCHANT_VALIDATION_ERROR,
272
335
  message: error instanceof Error
273
336
  ? error.message
274
337
  : 'Merchant validation failed',
275
338
  },
276
339
  });
277
340
  }
341
+ console.groupEnd();
278
342
  };
279
343
  this.currentSession.onpaymentauthorized = async (event) => {
344
+ var _a;
345
+ console.groupCollapsed('[ApplePayService] onpaymentauthorized');
280
346
  try {
281
347
  const payment = event.payment;
348
+ console.log('[ApplePayService] payment payload snapshot:', {
349
+ hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
350
+ tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
351
+ });
282
352
  const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
283
353
  name: this.currentPaymentRequest.total.label,
284
354
  price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
285
355
  description: this.currentPaymentRequest.total.label,
286
356
  } });
357
+ console.log('[ApplePayService] paymentPayload prepared');
287
358
  const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
359
+ console.log('[ApplePayService] processPayment result:', paymentResult);
288
360
  if (paymentResult.success) {
289
361
  this.currentSession.completePayment({
290
362
  status: ApplePaySessionStatus.STATUS_SUCCESS,
291
363
  });
364
+ console.log('[ApplePayService] Payment success; resolving');
292
365
  resolve({
293
366
  success: true,
294
367
  token: payment.token,
@@ -303,7 +376,7 @@ class ApplePayService {
303
376
  reject({
304
377
  success: false,
305
378
  error: {
306
- code: 'PAYMENT_PROCESSING_ERROR',
379
+ code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
307
380
  message: 'Payment processing failed',
308
381
  },
309
382
  });
@@ -312,14 +385,16 @@ class ApplePayService {
312
385
  catch (error) {
313
386
  console.error('=== PAYMENT PROCESSING ERROR ===');
314
387
  console.error('Error processing payment:', error);
315
- console.error('Error stack:', error.stack);
388
+ if (error && error.stack) {
389
+ console.error('Error stack:', error.stack);
390
+ }
316
391
  this.currentSession.completePayment({
317
392
  status: ApplePaySessionStatus.STATUS_FAILURE,
318
393
  });
319
394
  reject({
320
395
  success: false,
321
396
  error: {
322
- code: 'PAYMENT_PROCESSING_ERROR',
397
+ code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
323
398
  message: error instanceof Error
324
399
  ? error.message
325
400
  : 'Payment processing failed',
@@ -327,31 +402,40 @@ class ApplePayService {
327
402
  });
328
403
  }
329
404
  finally {
405
+ console.log('[ApplePayService] Cleaning up session state');
330
406
  this.currentSession = undefined;
331
407
  this.currentPaymentRequest = undefined;
332
408
  }
409
+ console.groupEnd();
333
410
  };
334
411
  this.currentSession.onpaymentmethodselected = () => {
412
+ console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
335
413
  const paymentUpdate = {
336
414
  newTotal: this.currentPaymentRequest.total,
337
415
  newLineItems: this.currentPaymentRequest.lineItems || [],
338
416
  };
339
417
  try {
340
418
  this.currentSession.completePaymentMethodSelection(paymentUpdate);
419
+ console.log('[ApplePayService] completePaymentMethodSelection called');
341
420
  }
342
421
  catch (error) {
343
422
  console.error('Error completing payment method selection:', error);
344
423
  this.currentSession.abort();
345
424
  }
425
+ console.groupEnd();
346
426
  };
347
427
  this.currentSession.onshippingmethodselected = () => {
428
+ console.groupCollapsed('[ApplePayService] onshippingmethodselected');
348
429
  this.currentSession.completeShippingMethodSelection({
349
430
  status: ApplePaySessionStatus.STATUS_SUCCESS,
350
431
  newTotal: this.currentPaymentRequest.total,
351
432
  newLineItems: this.currentPaymentRequest.lineItems || [],
352
433
  });
434
+ console.log('[ApplePayService] completeShippingMethodSelection called');
435
+ console.groupEnd();
353
436
  };
354
437
  this.currentSession.oncancel = (event) => {
438
+ console.groupCollapsed('[ApplePayService] oncancel');
355
439
  if (event.sessionError) {
356
440
  console.error(event.sessionError);
357
441
  switch (event.sessionError.code) {
@@ -378,13 +462,15 @@ class ApplePayService {
378
462
  reject({
379
463
  success: false,
380
464
  error: {
381
- code: 'USER_CANCELLED',
465
+ code: ApplePayServiceErrorCode.USER_CANCELLED,
382
466
  message: 'User cancelled the Apple Pay session',
383
467
  },
384
468
  });
469
+ console.groupEnd();
385
470
  };
386
471
  if ('onerror' in this.currentSession) {
387
472
  this.currentSession.onerror = (error) => {
473
+ console.groupCollapsed('[ApplePayService] onerror');
388
474
  console.error('=== APPLE PAY SESSION ERROR ===');
389
475
  console.error('Session error:', error);
390
476
  this.currentSession = undefined;
@@ -392,10 +478,11 @@ class ApplePayService {
392
478
  reject({
393
479
  success: false,
394
480
  error: {
395
- code: 'SESSION_ERROR',
481
+ code: ApplePayServiceErrorCode.SESSION_ERROR,
396
482
  message: 'Apple Pay session error occurred',
397
483
  },
398
484
  });
485
+ console.groupEnd();
399
486
  };
400
487
  }
401
488
  }
@@ -420,19 +507,14 @@ class ApplePayService {
420
507
  }
421
508
 
422
509
  const ApplePaySkeleton = (props) => {
423
- const { isReady } = props;
424
- if (isReady) {
510
+ const { isLoading } = props;
511
+ if (!isLoading) {
425
512
  return null;
426
513
  }
427
- return (h("div", { class: 'container-fluid p-0' },
428
- h("div", { class: 'row mb-3' },
429
- h("div", { class: 'col-12 align-content-center' },
430
- h(Skeleton, { height: '44px', width: '100%', styles: { borderRadius: "8px" } })))));
514
+ return (h("div", { class: 'container-fluid p-0' }, h("div", { class: 'row mb-3' }, h("div", { class: 'col-12 align-content-center' }, h(Skeleton, { height: '44px', width: '100%', styles: { borderRadius: "8px" } })))));
431
515
  };
432
516
 
433
- const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' },
434
- h("div", { class: 'spinner' }),
435
- h("span", null, "Processing...")));
517
+ const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' }, h("div", { class: 'spinner' }), h("span", null, "Processing...")));
436
518
  const ApplePayButton = (props) => {
437
519
  const getApplePayButtonClass = () => {
438
520
  let classes = "apple-pay-button";
@@ -479,9 +561,7 @@ const ApplePayButton = (props) => {
479
561
  props.clickHandler();
480
562
  }
481
563
  };
482
- return (h("div", { class: 'apple-pay-button-container' },
483
- h("button", Object.assign({ class: getApplePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()),
484
- h("style", null, `
564
+ return (h("div", { class: 'apple-pay-button-container' }, h("button", Object.assign({ class: getApplePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()), h("style", null, `
485
565
  .apple-pay-button-container {
486
566
  display: inline-block;
487
567
  position: relative;
@@ -580,9 +660,11 @@ const ApplePayButton = (props) => {
580
660
  };
581
661
 
582
662
  const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLElement {
583
- constructor() {
663
+ constructor(registerHost) {
584
664
  super();
585
- this.__registerHost();
665
+ if (registerHost !== false) {
666
+ this.__registerHost();
667
+ }
586
668
  this.__attachShadow();
587
669
  this.applePayStarted = createEvent(this, "applePayStarted", 7);
588
670
  this.applePayCompleted = createEvent(this, "applePayCompleted", 7);
@@ -600,9 +682,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
600
682
  this.isProcessing = false;
601
683
  this.isAvailable = false;
602
684
  this.canMakePayments = false;
685
+ this.isConfigValid = true;
603
686
  this.error = null;
604
687
  this.handleApplePayClick = async () => {
605
- var _a;
688
+ var _a, _b;
606
689
  if (this.isProcessing || this.disabled || !this.isAvailable) {
607
690
  return;
608
691
  }
@@ -610,6 +693,14 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
610
693
  this.isProcessing = true;
611
694
  this.error = null;
612
695
  this.applePayStarted.emit();
696
+ console.groupCollapsed('[ApplePay Component] handleApplePayClick');
697
+ console.log('[ApplePay Component] click context:', {
698
+ isProcessing: this.isProcessing,
699
+ disabled: this.disabled,
700
+ isAvailable: this.isAvailable,
701
+ canMakePayments: this.canMakePayments,
702
+ hasService: Boolean(this.applePayService),
703
+ });
613
704
  const paymentRequest = {
614
705
  countryCode: this.countryCode,
615
706
  currencyCode: checkoutStore.paymentCurrency,
@@ -617,7 +708,13 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
617
708
  supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
618
709
  total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
619
710
  };
711
+ console.log("[ApplePay Component] paymentRequest", paymentRequest);
712
+ console.log('[ApplePay Component] identifiers snapshot:', {
713
+ authTokenLength: checkoutStore.authToken ? String(checkoutStore.authToken).length : 0,
714
+ accountId: checkoutStore.accountId,
715
+ });
620
716
  const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
717
+ console.log("[ApplePay Component] startPaymentSession result", result);
621
718
  if (result.success) {
622
719
  this.applePayCompleted.emit({
623
720
  success: true,
@@ -632,14 +729,14 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
632
729
  });
633
730
  this.applePayError.emit({
634
731
  error: ((_a = result.error) === null || _a === void 0 ? void 0 : _a.message) || "Payment failed",
732
+ code: ((_b = result.error) === null || _b === void 0 ? void 0 : _b.code) || ApplePay.ErrorCode.PAYMENT_FAILED,
635
733
  });
636
734
  }
637
735
  }
638
736
  catch (error) {
639
- console.error("Apple Pay payment error:", error);
640
737
  const errorMessage = error instanceof Error ? error.message : "Payment failed";
641
738
  this.error = errorMessage;
642
- this.applePayError.emit({ error: errorMessage });
739
+ this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
643
740
  this.applePayCompleted.emit({
644
741
  success: false,
645
742
  error: errorMessage,
@@ -647,43 +744,60 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
647
744
  }
648
745
  finally {
649
746
  this.isProcessing = false;
747
+ console.groupEnd();
650
748
  }
651
749
  };
652
750
  }
653
- componentWillLoad() {
654
- this.applePayService = new ApplePayService();
655
- this.initializeApplePay();
656
- }
657
- componentDidLoad() {
658
- onChange("paymentAmount", () => {
659
- this.initializeApplePay();
660
- });
661
- onChange("authToken", () => {
662
- this.initializeApplePay();
663
- });
664
- }
665
- watchPropsChange() {
666
- this.initializeApplePay();
667
- }
668
751
  async initializeApplePay() {
669
752
  try {
670
753
  this.isLoading = true;
671
754
  this.error = null;
672
- if (!checkoutStore.paymentAmount) {
755
+ this.isConfigValid = true;
756
+ console.groupCollapsed('[ApplePay Component] initializeApplePay');
757
+ console.log('[ApplePay Component] checkout state snapshot:', {
758
+ paymentAmount: checkoutStore.paymentAmount,
759
+ paymentCurrency: checkoutStore.paymentCurrency,
760
+ hasAuthToken: Boolean(checkoutStore.authToken),
761
+ accountId: checkoutStore.accountId,
762
+ });
763
+ const hasRequiredConfig = Boolean(checkoutStore.paymentAmount) &&
764
+ Boolean(checkoutStore.paymentCurrency) &&
765
+ Boolean(checkoutStore.authToken);
766
+ if (!hasRequiredConfig) {
673
767
  this.error = "Missing required Apple Pay configuration";
768
+ this.isConfigValid = false;
769
+ console.error("Apple Pay config error: missing required values", {
770
+ paymentAmount: checkoutStore.paymentAmount,
771
+ paymentCurrency: checkoutStore.paymentCurrency,
772
+ hasAuthToken: Boolean(checkoutStore.authToken),
773
+ accountId: checkoutStore.accountId,
774
+ });
775
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
674
776
  this.isLoading = false;
777
+ console.groupEnd();
675
778
  return;
676
779
  }
677
780
  this.isAvailable = ApplePayHelpers.isApplePaySupported();
678
781
  this.canMakePayments = ApplePayHelpers.canMakePayments();
782
+ console.log('[ApplePay Component] support check:', {
783
+ isAvailable: this.isAvailable,
784
+ canMakePayments: this.canMakePayments,
785
+ hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
786
+ });
679
787
  if (!this.isAvailable) {
680
788
  this.error = "Apple Pay is not supported on this device";
789
+ console.error(this.error);
790
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
681
791
  this.isLoading = false;
792
+ console.groupEnd();
682
793
  return;
683
794
  }
684
795
  if (!this.canMakePayments) {
685
796
  this.error = "Apple Pay is not available";
797
+ console.error(this.error);
798
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
686
799
  this.isLoading = false;
800
+ console.groupEnd();
687
801
  return;
688
802
  }
689
803
  const applePayConfig = {
@@ -694,6 +808,8 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
694
808
  buttonType: this.buttonType,
695
809
  buttonStyle: this.buttonStyle,
696
810
  };
811
+ console.log('[ApplePay Component] initializing service with config:', applePayConfig);
812
+ this.applePayService = new ApplePayService();
697
813
  this.applePayService.initialize(applePayConfig);
698
814
  const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
699
815
  if (!hasActiveCard) {
@@ -706,9 +822,11 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
706
822
  error instanceof Error
707
823
  ? error.message
708
824
  : "Failed to initialize Apple Pay";
825
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.INITIALIZATION_ERROR });
709
826
  }
710
827
  finally {
711
828
  this.isLoading = false;
829
+ console.groupEnd();
712
830
  }
713
831
  }
714
832
  async isSupported() {
@@ -729,50 +847,16 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
729
847
  const isReady = !this.isLoading &&
730
848
  this.isAvailable &&
731
849
  this.canMakePayments &&
732
- !this.error;
733
- return (h(StyledHost, { key: 'd07bd5b228a761fe021830823b410805b44c6829' }, h("script", { key: '59ca72df49c6210c3122df6328e3b9798ff3440f', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js' }), h("div", { key: '69010db6e3e59ffb1ad9d7cc5af0680934c61207', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'f25d2ae58d6730c9dbf9a02ac14cf5800e3ca6ed', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '0460b10f967df69f04984c17b6b1641db3dfd582', class: 'apple-pay-error', role: 'alert' }, h("span", { key: 'a194317367175498c098c522cc2ee77ae0848e25', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '8eb5cb96fb00f2deb9b76796d09979d488f5d922', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '97fd0863a893a98b01b9886dc94a088cb87419e4', class: 'apple-pay-unavailable' }, h("span", { key: 'fde1d32be78fc35024bea1c4f81b02a9d792b41e', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
734
- !this.error &&
735
- this.isAvailable &&
736
- this.canMakePayments && (h(ApplePayButton, { key: '1e445d7b72f378f7bac6f62e069a526f1d9ae9ba', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'd552fd4b0726a63ed9a242b3b2204dc6339ef590' }, `
850
+ this.isConfigValid;
851
+ return (h(StyledHost, { key: '0610b810bc458f7382bb78ebe155e38cd39d7023' }, checkoutStore.checkoutLoaded && (h("script", { key: '036ba823079bb6daa62e72a8ee76cdc32dab60f0', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
852
+ console.log('[ApplePay Component] Apple Pay SDK script loaded');
853
+ this.initializeApplePay();
854
+ } })), h("div", { key: 'f5211ca2212306b7ee99dc1f6f06f56a9aa08643', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'bb4680ed4760d378237d36dd60e76d2db9cf0dd4', isLoading: this.isLoading }), isReady && (h(ApplePayButton, { key: '6c984f15b8ef2e629325253428c8243935328050', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '670fcfa28ea2405f772238add126525ecb14841b' }, `
737
855
  .apple-pay-container {
738
856
  width: 100%;
739
857
  }
740
-
741
- .apple-pay-error {
742
- display: flex;
743
- align-items: center;
744
- gap: 8px;
745
- padding: 12px;
746
- background: #fef2f2;
747
- border: 1px solid #fecaca;
748
- border-radius: 8px;
749
- color: #dc2626;
750
- font-size: 14px;
751
- }
752
-
753
- .apple-pay-unavailable {
754
- display: flex;
755
- align-items: center;
756
- justify-content: center;
757
- padding: 12px;
758
- background: #f9fafb;
759
- border: 1px solid #e5e7eb;
760
- border-radius: 8px;
761
- color: #6b7280;
762
- font-size: 14px;
763
- }
764
-
765
- .error-icon {
766
- font-size: 16px;
767
- }
768
858
  `)));
769
859
  }
770
- static get watchers() { return {
771
- "merchantIdentifier": ["watchPropsChange"],
772
- "buttonType": ["watchPropsChange"],
773
- "buttonStyle": ["watchPropsChange"],
774
- "disabled": ["watchPropsChange"]
775
- }; }
776
860
  }, [257, "justifi-apple-pay", {
777
861
  "countryCode": [1, "country-code"],
778
862
  "merchantIdentifier": [1, "merchant-identifier"],
@@ -786,16 +870,20 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
786
870
  "isProcessing": [32],
787
871
  "isAvailable": [32],
788
872
  "canMakePayments": [32],
873
+ "isConfigValid": [32],
789
874
  "error": [32],
790
875
  "isSupported": [64],
791
876
  "getPaymentMethods": [64],
792
877
  "abort": [64]
793
- }, undefined, {
794
- "merchantIdentifier": ["watchPropsChange"],
795
- "buttonType": ["watchPropsChange"],
796
- "buttonStyle": ["watchPropsChange"],
797
- "disabled": ["watchPropsChange"]
798
878
  }]);
879
+ // Centralized error codes for the Apple Pay component layer
880
+ ApplePay.ErrorCode = {
881
+ CONFIG_ERROR: 'CONFIG_ERROR',
882
+ NOT_SUPPORTED: 'NOT_SUPPORTED',
883
+ NOT_AVAILABLE: 'NOT_AVAILABLE',
884
+ INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
885
+ PAYMENT_FAILED: 'PAYMENT_FAILED',
886
+ };
799
887
  function defineCustomElement$1() {
800
888
  if (typeof customElements === "undefined") {
801
889
  return;
@@ -13,9 +13,11 @@ import { d as defineCustomElement$3 } from './owner-details2.js';
13
13
  import { d as defineCustomElement$2 } from './representative-details2.js';
14
14
 
15
15
  const BusinessDetails = /*@__PURE__*/ proxyCustomElement(class BusinessDetails extends HTMLElement {
16
- constructor() {
16
+ constructor(registerHost) {
17
17
  super();
18
- this.__registerHost();
18
+ if (registerHost !== false) {
19
+ this.__registerHost();
20
+ }
19
21
  this.__attachShadow();
20
22
  this.errorEvent = createEvent(this, "error-event", 7);
21
23
  this.errorMessage = null;