@justifi/webcomponents 6.0.4 → 6.0.6-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/dist/cjs/{Api-DHhR05W5.js → Api-CjtvTD2_.js} +2 -2
  2. package/dist/cjs/{Refund-CFOz9QoU.js → Refund-BnhHNKLz.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
  4. package/dist/cjs/{badge-C1lVkjn6.js → badge-CE3ss_OU.js} +2 -2
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
  6. package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
  7. package/dist/cjs/business-details-core.cjs.entry.js +5 -5
  8. package/dist/cjs/{business.service-Dx2FS4K-.js → business.service-Cj_NUZsr.js} +2 -2
  9. package/dist/cjs/{button-C8gOSOdZ.js → button-gPNZ9XRn.js} +2 -2
  10. package/dist/cjs/card-form.cjs.entry.js +8 -8
  11. package/dist/cjs/{check-pkg-version-DBsrbl8J.js → check-pkg-version-BqQyunnf.js} +3 -3
  12. package/dist/cjs/{checkout.service-DRV9oDxT.js → checkout.service-Bc8L9ixO.js} +2 -2
  13. package/dist/cjs/{checkout.store-WVXAN_mi.js → checkout.store-Bswr7kNY.js} +5 -1
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -12
  15. package/dist/cjs/{checkouts-list-params-state-B3dEHKgs.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
  16. package/dist/cjs/{checkouts-table-A2cMCczU.js → checkouts-table-C5AHeIr0.js} +4 -4
  17. package/dist/cjs/{config-state-B5-AuTAI.js → config-state-C7babhLh.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
  19. package/dist/cjs/{dispute.service-DaPbzqUr.js → dispute.service-DhO_tuDc.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
  22. package/dist/cjs/form-control-date.cjs.entry.js +5 -5
  23. package/dist/cjs/{form-control-error-text-Bm5PuYuo.js → form-control-error-text-BnMWn8U_.js} +2 -2
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +6 -6
  25. package/dist/cjs/{form-control-help-text-DH-ddiz4.js → form-control-help-text-DEi5vSjN.js} +2 -2
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +6 -6
  30. package/dist/cjs/form-control-number.cjs.entry.js +6 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +7 -7
  33. package/dist/cjs/{get-payment-details-DbxyqeB1.js → get-payment-details-BinT-ZEP.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-B8O_HimP.js → get-subaccounts-BoTVdl7v.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
  36. package/dist/cjs/{header-1-8mY0uvLp.js → header-1-D3r87SC6.js} +2 -2
  37. package/dist/cjs/{header-3-BkMrxDLW.js → header-3-BFQJJgBb.js} +2 -2
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
  39. package/dist/cjs/{index-CoKhq0yT.js → index-Bhtk1qkX.js} +1 -1
  40. package/dist/cjs/{index-B8q7TYrk.js → index-CWM5ions.js} +1 -1
  41. package/dist/cjs/{insurance-state-CN0jLsMn.js → insurance-state-JbqYvJN3.js} +3 -3
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +8 -8
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  45. package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +892 -24
  46. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +23 -23
  47. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  48. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  49. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -3
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +13 -13
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -15
  53. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  55. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  57. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +16 -16
  58. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -14
  60. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
  61. package/dist/cjs/justifi-payment-details.cjs.entry.js +20 -13
  62. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
  63. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -14
  65. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
  66. package/dist/cjs/justifi-payments-list.cjs.entry.js +15 -15
  67. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -12
  68. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -14
  69. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
  70. package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -16
  71. package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  73. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -13
  74. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  75. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  76. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -13
  77. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -9
  78. package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -15
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/{package-Cuc8l3LN.js → package-CeJ5geYu.js} +1 -1
  81. package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
  82. package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
  83. package/dist/cjs/payment-details-core.cjs.entry.js +19 -19
  84. package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
  85. package/dist/cjs/{payment.service-CYAqnKsH.js → payment.service-C9thkR4g.js} +2 -2
  86. package/dist/cjs/payments-list-core.cjs.entry.js +13 -13
  87. package/dist/cjs/{payments-list-params-state-B3dEHKgs.js → payments-list-params-state-BYpq-c6X.js} +1 -1
  88. package/dist/cjs/{payments-status-Cwp_sPLb.js → payments-status-CnNXcRLO.js} +2 -2
  89. package/dist/cjs/{payments-table-D9ZL7KEZ.js → payments-table-BGuCOPTJ.js} +4 -4
  90. package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
  91. package/dist/cjs/{payout.service-B5WqvvSO.js → payout.service-CGZxpQMq.js} +2 -2
  92. package/dist/cjs/payouts-list-core.cjs.entry.js +13 -13
  93. package/dist/cjs/{payouts-list-params-state-B3dEHKgs.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
  94. package/dist/cjs/{payouts-status-gUEqx_45.js → payouts-status-2na6MMgV.js} +2 -2
  95. package/dist/cjs/{payouts-table-CxUxBIEg.js → payouts-table-DXekpbYc.js} +4 -4
  96. package/dist/cjs/{skeleton-WNwMpTOZ.js → skeleton-BvdAh448.js} +2 -2
  97. package/dist/cjs/{spinner-DP-6z8gb.js → spinner-Rt52JMa2.js} +2 -2
  98. package/dist/cjs/{styled-host-BeBLN_42.js → styled-host-BSooSIhA.js} +1 -1
  99. package/dist/cjs/{table-POSNlW0c.js → table-Ccg4k90C.js} +3 -3
  100. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  101. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -12
  102. package/dist/cjs/{terminal-orders-list-params-state-B3dEHKgs.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
  103. package/dist/cjs/{terminal-orders-table-OBx67Idp.js → terminal-orders-table-7ew1vCKk.js} +6 -6
  104. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
  105. package/dist/cjs/{terminal.service-DxxgZygg.js → terminal.service-BkKxH-k4.js} +2 -2
  106. package/dist/cjs/terminals-list-core.cjs.entry.js +12 -12
  107. package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
  108. package/dist/cjs/{terminals-table-ByPkFcIa.js → terminals-table-ByYs-pH7.js} +4 -4
  109. package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
  110. package/dist/cjs/{utils-BE2CEPRZ.js → utils-CUcA4G_O.js} +5 -5
  111. package/dist/cjs/webcomponents.cjs.js +3 -3
  112. package/dist/collection/collection-manifest.json +2 -2
  113. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  114. package/dist/collection/components/business-details/owner-details/owner-details.js +9 -8
  115. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  116. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  117. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  118. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -6
  119. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
  120. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  121. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  122. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -6
  123. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  133. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  135. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  138. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  139. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  140. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  141. package/dist/collection/components/checkout/checkout.js +2 -2
  142. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  143. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  146. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  160. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  161. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  162. package/dist/collection/components/modular-checkout/modular-checkout.js +9 -9
  163. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +7 -2
  164. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  165. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  166. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  167. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  168. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  169. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  170. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  171. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  172. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  173. package/dist/collection/components/payment-details/payment-details.js +28 -1
  174. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  175. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  176. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  177. package/dist/collection/components/payments-list/payments-list.js +1 -1
  178. package/dist/collection/components/payout-details/payout-details-core.js +57 -4
  179. package/dist/collection/components/payout-details/payout-details.js +22 -1
  180. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  181. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  182. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  183. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  184. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  185. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  186. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  187. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  188. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  189. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  190. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
  191. package/dist/collection/store/checkout.store.js +4 -0
  192. package/dist/collection/styles/parts.js +1 -1
  193. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  194. package/dist/collection/ui-components/details/details.js +1 -1
  195. package/dist/collection/ui-components/details/utils.js +4 -4
  196. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  199. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  203. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  206. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  207. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  208. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  209. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  210. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  211. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  212. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  213. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  214. package/dist/collection/utils/utils.js +4 -0
  215. package/dist/docs.json +136 -100
  216. package/dist/esm/{Api-GDDXjRV1.js → Api-DhiA2e_P.js} +2 -2
  217. package/dist/esm/{Refund-C3Rj8ucO.js → Refund-B-iOTRxz.js} +1 -1
  218. package/dist/esm/additional-questions-details_5.entry.js +14 -13
  219. package/dist/esm/{badge-DrV8suYS.js → badge-CtdO-tEY.js} +2 -2
  220. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
  221. package/dist/esm/bank-account-form.entry.js +8 -8
  222. package/dist/esm/business-details-core.entry.js +5 -5
  223. package/dist/esm/{business.service-BZPNzxOH.js → business.service-D55OVyco.js} +2 -2
  224. package/dist/esm/{button-Dz7L1sRR.js → button-DtTaQHMK.js} +2 -2
  225. package/dist/esm/card-form.entry.js +8 -8
  226. package/dist/esm/{check-pkg-version-Dzqkjq08.js → check-pkg-version-DW45blqY.js} +3 -3
  227. package/dist/esm/{checkout.service-_dbCJ4H4.js → checkout.service-fwbqSq8g.js} +2 -2
  228. package/dist/esm/{checkout.store-CpBg1CFX.js → checkout.store-4nUf2OuT.js} +5 -1
  229. package/dist/esm/checkouts-list-core.entry.js +12 -12
  230. package/dist/esm/{checkouts-list-params-state-DKBoAgAJ.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
  231. package/dist/esm/{checkouts-table-BIuJBjFX.js → checkouts-table-B6gGDtOr.js} +4 -4
  232. package/dist/esm/{config-state-BJ800oYx.js → config-state-DiHV-4QK.js} +1 -1
  233. package/dist/esm/custom-popper_2.entry.js +4 -4
  234. package/dist/esm/{dispute.service-DX3dxl7L.js → dispute.service-Cdq3_yRo.js} +2 -2
  235. package/dist/esm/form-alert_5.entry.js +6 -6
  236. package/dist/esm/form-control-checkbox.entry.js +6 -6
  237. package/dist/esm/form-control-date.entry.js +5 -5
  238. package/dist/esm/{form-control-error-text-BybKqTXI.js → form-control-error-text-bprS-t9d.js} +2 -2
  239. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  240. package/dist/esm/{form-control-help-text-zXEGK2O9.js → form-control-help-text-Bvnp-IAG.js} +2 -2
  241. package/dist/esm/form-control-help-text.entry.js +1 -1
  242. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  243. package/dist/esm/form-control-monetary.entry.js +7 -7
  244. package/dist/esm/form-control-number-masked_2.entry.js +6 -6
  245. package/dist/esm/form-control-number.entry.js +6 -6
  246. package/dist/esm/form-control-radio.entry.js +4 -4
  247. package/dist/esm/form-control-select_2.entry.js +7 -7
  248. package/dist/esm/{get-payment-details-KXwiFeJs.js → get-payment-details-sGoWyAat.js} +2 -2
  249. package/dist/esm/{get-subaccounts-DGclXJlZ.js → get-subaccounts-BsJSlShO.js} +3 -3
  250. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  251. package/dist/esm/{header-1-oPO-WOI8.js → header-1-C1Hnxki8.js} +2 -2
  252. package/dist/esm/{header-3-DWKhJ_Et.js → header-3-Bq8fpjm-.js} +2 -2
  253. package/dist/esm/hidden-input_2.entry.js +9 -9
  254. package/dist/esm/{index-Cuq3wBDS.js → index-DJ9G-4S-.js} +1 -1
  255. package/dist/esm/{index-DyGx8Avl.js → index-DOjVAAtq.js} +1 -1
  256. package/dist/esm/{insurance-state-DVxPVMxW.js → insurance-state-CVme82j7.js} +3 -3
  257. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
  258. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
  259. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  260. package/dist/esm/{justifi-checkout-summary_7.entry.js → justifi-apple-pay_8.entry.js} +892 -25
  261. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +23 -23
  262. package/dist/esm/justifi-business-details.entry.js +11 -11
  263. package/dist/esm/justifi-business-form.entry.js +14 -14
  264. package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
  265. package/dist/esm/justifi-checkout.entry.js +13 -13
  266. package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
  267. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  268. package/dist/esm/justifi-config-provider.entry.js +3 -3
  269. package/dist/esm/justifi-details.entry.js +4 -4
  270. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  271. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  272. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  273. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
  274. package/dist/esm/justifi-order-terminals.entry.js +14 -14
  275. package/dist/esm/justifi-owner-form_3.entry.js +12 -12
  276. package/dist/esm/justifi-payment-details.entry.js +20 -13
  277. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  278. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  279. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  280. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  281. package/dist/esm/justifi-payments-list.entry.js +15 -15
  282. package/dist/esm/justifi-payout-details.entry.js +13 -12
  283. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  284. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  285. package/dist/esm/justifi-payouts-list.entry.js +16 -16
  286. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  287. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  288. package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
  289. package/dist/esm/justifi-skeleton.entry.js +5 -5
  290. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
  291. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  292. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
  293. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  294. package/dist/esm/loader.js +3 -3
  295. package/dist/esm/{package-CyVecSBV.js → package-BXUY63ga.js} +1 -1
  296. package/dist/esm/pagination-menu.entry.js +5 -5
  297. package/dist/esm/{parts-RvUQ__Pq.js → parts-xDbRW9xn.js} +2 -1
  298. package/dist/esm/payment-details-core.entry.js +19 -19
  299. package/dist/esm/payment-method-option.entry.js +4 -4
  300. package/dist/esm/{payment.service-oJkZDCjF.js → payment.service-BoQ1MW1k.js} +2 -2
  301. package/dist/esm/payments-list-core.entry.js +13 -13
  302. package/dist/esm/{payments-list-params-state-DKBoAgAJ.js → payments-list-params-state-C_fug9R3.js} +1 -1
  303. package/dist/esm/{payments-status-BMCeFxof.js → payments-status-cvtVmtY5.js} +2 -2
  304. package/dist/esm/{payments-table-2pRUlnGQ.js → payments-table-D_BlyU1F.js} +4 -4
  305. package/dist/esm/payout-details-core.entry.js +25 -12
  306. package/dist/esm/{payout.service-DY-EKu-S.js → payout.service-xcBdom3q.js} +2 -2
  307. package/dist/esm/payouts-list-core.entry.js +13 -13
  308. package/dist/esm/{payouts-list-params-state-DKBoAgAJ.js → payouts-list-params-state-C_fug9R3.js} +1 -1
  309. package/dist/esm/{payouts-status-DBkurhQF.js → payouts-status-D-vjrqBb.js} +2 -2
  310. package/dist/esm/{payouts-table-DXyLrcja.js → payouts-table-Clj8YGLV.js} +4 -4
  311. package/dist/esm/{skeleton-BagMauL8.js → skeleton-B8EUwt4b.js} +2 -2
  312. package/dist/esm/{spinner-DOyR5em0.js → spinner-CYXkn1fh.js} +2 -2
  313. package/dist/esm/{styled-host-BQjsup-P.js → styled-host-OalOsPBp.js} +1 -1
  314. package/dist/esm/{table-D-zEX8E8.js → table-Bj20uWfu.js} +3 -3
  315. package/dist/esm/table-filters-menu.entry.js +4 -4
  316. package/dist/esm/terminal-orders-list-core.entry.js +12 -12
  317. package/dist/esm/{terminal-orders-list-params-state-DKBoAgAJ.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
  318. package/dist/esm/{terminal-orders-table-COcJMPaL.js → terminal-orders-table-DzBpIW8i.js} +6 -6
  319. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  320. package/dist/esm/{terminal.service-fDtEdpf-.js → terminal.service-l6zTIPZ3.js} +2 -2
  321. package/dist/esm/terminals-list-core.entry.js +12 -12
  322. package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
  323. package/dist/esm/{terminals-table-CyL85b_g.js → terminals-table-BMS5tazC.js} +4 -4
  324. package/dist/esm/{utils-BscIVFn8.js → utils-BOijEGPV.js} +4 -1
  325. package/dist/esm/{utils-i_eMGns9.js → utils-DRwofES0.js} +5 -5
  326. package/dist/esm/webcomponents.js +4 -4
  327. package/dist/module/additional-questions-details2.js +1 -1
  328. package/dist/module/additional-questions.js +2 -2
  329. package/dist/module/additional-statement.js +2 -2
  330. package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +60 -23
  331. package/dist/module/badge.js +1 -1
  332. package/dist/module/bank-account-billing-form-simple.js +2 -2
  333. package/dist/module/bank-account-document-inputs.js +1 -1
  334. package/dist/module/bank-account-form-inputs2.js +1 -1
  335. package/dist/module/bank-account-form.js +3 -3
  336. package/dist/module/bank-account.js +2 -2
  337. package/dist/module/billing-form-full.js +1 -1
  338. package/dist/module/business-additional-questions-form-step.js +1 -1
  339. package/dist/module/business-bank-account-form-step.js +1 -1
  340. package/dist/module/business-core-info-form-step.js +1 -1
  341. package/dist/module/business-core-info.js +1 -1
  342. package/dist/module/business-documents-on-file2.js +1 -1
  343. package/dist/module/business-owners-form-step.js +1 -1
  344. package/dist/module/business-representative-form-inputs.js +1 -1
  345. package/dist/module/business-representative-form-step.js +1 -1
  346. package/dist/module/business-representative.js +2 -2
  347. package/dist/module/business-terms-conditions-form-step.js +1 -1
  348. package/dist/module/button.js +1 -1
  349. package/dist/module/cancellation-policy.js +2 -2
  350. package/dist/module/card-billing-form-simple.js +2 -2
  351. package/dist/module/card-form.js +3 -3
  352. package/dist/module/card-form2.js +2 -2
  353. package/dist/module/checkout.store.js +4 -0
  354. package/dist/module/checkouts-list-core2.js +2 -2
  355. package/dist/module/custom-popper2.js +2 -2
  356. package/dist/module/customer-details.js +2 -2
  357. package/dist/module/details.js +1 -1
  358. package/dist/module/dispute-management-core.js +1 -1
  359. package/dist/module/dispute-notification.js +2 -2
  360. package/dist/module/dispute-response-core.js +2 -2
  361. package/dist/module/dispute-response.js +1 -1
  362. package/dist/module/duplicate-charge.js +2 -2
  363. package/dist/module/electronic-evidence.js +2 -2
  364. package/dist/module/form-alert2.js +1 -1
  365. package/dist/module/form-control-checkbox2.js +3 -3
  366. package/dist/module/form-control-date2.js +3 -3
  367. package/dist/module/form-control-error-text.js +1 -1
  368. package/dist/module/form-control-file-v22.js +1 -1
  369. package/dist/module/form-control-file2.js +3 -3
  370. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  371. package/dist/module/form-control-monetary2.js +3 -3
  372. package/dist/module/form-control-number-masked2.js +3 -3
  373. package/dist/module/form-control-number.js +3 -3
  374. package/dist/module/form-control-radio2.js +3 -3
  375. package/dist/module/form-control-select2.js +3 -3
  376. package/dist/module/form-control-text2.js +3 -3
  377. package/dist/module/form-control-textarea2.js +3 -3
  378. package/dist/module/form-control-tooltip2.js +1 -1
  379. package/dist/module/gross-payment-chart-core2.js +2 -2
  380. package/dist/module/header-3.js +1 -1
  381. package/dist/module/hidden-input2.js +2 -2
  382. package/dist/module/identity-address-form.js +1 -1
  383. package/dist/module/iframe-input2.js +4 -4
  384. package/dist/module/justifi-apple-pay.js +1 -904
  385. package/dist/module/justifi-button2.js +1 -1
  386. package/dist/module/justifi-checkout.js +27 -21
  387. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  388. package/dist/module/justifi-checkouts-list.js +1 -1
  389. package/dist/module/justifi-dispute-management.js +1 -1
  390. package/dist/module/justifi-header2.js +1 -1
  391. package/dist/module/justifi-order-terminals.js +3 -3
  392. package/dist/module/justifi-payment-details.js +8 -1
  393. package/dist/module/justifi-payment-provisioning.js +1 -1
  394. package/dist/module/justifi-payment-transactions-list.js +2 -2
  395. package/dist/module/justifi-payments-list-filters.js +3 -3
  396. package/dist/module/justifi-payments-list.js +1 -1
  397. package/dist/module/justifi-payout-details.js +3 -1
  398. package/dist/module/justifi-payout-transactions-list.js +2 -2
  399. package/dist/module/justifi-payouts-list-filters.js +3 -3
  400. package/dist/module/justifi-payouts-list.js +1 -1
  401. package/dist/module/justifi-radio-list-item2.js +1 -1
  402. package/dist/module/justifi-saved-payment-method.js +1 -1
  403. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  404. package/dist/module/justifi-skeleton.js +1 -1
  405. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  406. package/dist/module/justifi-terminal-orders-list.js +1 -1
  407. package/dist/module/justifi-terminals-list-filters.js +2 -2
  408. package/dist/module/justifi-terminals-list.js +1 -1
  409. package/dist/module/legal-address-form-step.js +1 -1
  410. package/dist/module/legal-address-form.js +2 -2
  411. package/dist/module/modular-checkout.js +7 -6
  412. package/dist/module/owner-details2.js +8 -7
  413. package/dist/module/owner-form-core2.js +2 -2
  414. package/dist/module/owner-form-inputs2.js +2 -2
  415. package/dist/module/owner-form.js +1 -1
  416. package/dist/module/package.js +1 -1
  417. package/dist/module/pagination-menu2.js +4 -4
  418. package/dist/module/parts.js +2 -1
  419. package/dist/module/payment-details-core2.js +8 -8
  420. package/dist/module/payment-method-option.js +1 -1
  421. package/dist/module/payment-provisioning-core.js +1 -1
  422. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  423. package/dist/module/payment-provisioning-form-steps.js +1 -1
  424. package/dist/module/payments-list-core2.js +2 -2
  425. package/dist/module/payout-details-core2.js +18 -4
  426. package/dist/module/payouts-list-core2.js +2 -2
  427. package/dist/module/product-or-service.js +2 -2
  428. package/dist/module/refund-policy.js +2 -2
  429. package/dist/module/representative-details2.js +1 -1
  430. package/dist/module/save-new-payment-method.js +1 -1
  431. package/dist/module/shipping-details.js +2 -2
  432. package/dist/module/spinner.js +1 -1
  433. package/dist/module/summary.js +1 -1
  434. package/dist/module/table-filters-menu2.js +2 -2
  435. package/dist/module/table.js +1 -1
  436. package/dist/module/terminal-orders-list-core2.js +2 -2
  437. package/dist/module/terminal-quantity-selector2.js +2 -2
  438. package/dist/module/terminals-list-core2.js +3 -3
  439. package/dist/module/tokenize-payment-method.js +1 -1
  440. package/dist/module/utils.js +4 -4
  441. package/dist/module/utils2.js +4 -1
  442. package/dist/types/api/Checkout.d.ts +2 -0
  443. package/dist/types/api/ComponentEvents.d.ts +4 -0
  444. package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
  445. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  446. package/dist/types/components/payment-details/payment-details.d.ts +3 -1
  447. package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
  448. package/dist/types/components/payout-details/payout-details.d.ts +1 -0
  449. package/dist/types/components.d.ts +30 -12
  450. package/dist/types/stencil-public-runtime.d.ts +19 -10
  451. package/dist/types/store/checkout.store.d.ts +1 -0
  452. package/dist/types/styles/parts.d.ts +1 -1
  453. package/dist/types/ui-components/details/utils.d.ts +3 -2
  454. package/dist/types/utils/utils.d.ts +1 -0
  455. package/dist/webcomponents/{p-13f08bdc.entry.js → p-0217783c.entry.js} +4 -4
  456. package/dist/webcomponents/p-02fdd7f5.entry.js +1 -0
  457. package/dist/webcomponents/p-0af5269e.entry.js +1 -0
  458. package/dist/webcomponents/p-0cac8468.entry.js +1 -0
  459. package/dist/webcomponents/{p-28725bf6.entry.js → p-0cf71cbd.entry.js} +1 -1
  460. package/dist/webcomponents/p-0d3904cb.entry.js +1 -0
  461. package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
  462. package/dist/webcomponents/p-0fgTPVV0.js +1 -0
  463. package/dist/webcomponents/p-1f82f0cc.entry.js +1 -0
  464. package/dist/webcomponents/p-220d8503.entry.js +1 -0
  465. package/dist/webcomponents/p-268a6e14.entry.js +1 -0
  466. package/dist/webcomponents/{p-8cb3af20.entry.js → p-28625e07.entry.js} +1 -1
  467. package/dist/webcomponents/p-2d300faa.entry.js +1 -0
  468. package/dist/webcomponents/{p-7b5bfe7c.entry.js → p-2f40f708.entry.js} +1 -1
  469. package/dist/webcomponents/p-328117e4.entry.js +1 -0
  470. package/dist/webcomponents/p-32978110.entry.js +1 -0
  471. package/dist/webcomponents/{p-07b3bfd0.entry.js → p-37a93597.entry.js} +1 -1
  472. package/dist/webcomponents/p-447b55c0.entry.js +1 -0
  473. package/dist/webcomponents/p-47997bc2.entry.js +1 -0
  474. package/dist/webcomponents/p-4b57765c.entry.js +1 -0
  475. package/dist/webcomponents/p-50701f16.entry.js +1 -0
  476. package/dist/webcomponents/p-526b7442.entry.js +1 -0
  477. package/dist/webcomponents/p-55903cde.entry.js +1 -0
  478. package/dist/webcomponents/p-569c7dcc.entry.js +1 -0
  479. package/dist/webcomponents/p-58f7c4bd.entry.js +1 -0
  480. package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
  481. package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
  482. package/dist/webcomponents/{p-24665376.entry.js → p-5cb22cfb.entry.js} +1 -1
  483. package/dist/webcomponents/{p-4f6732e7.entry.js → p-63ad8ebd.entry.js} +1 -1
  484. package/dist/webcomponents/p-6472b6db.entry.js +1 -0
  485. package/dist/webcomponents/p-67788df5.entry.js +1 -0
  486. package/dist/webcomponents/{p-8e59fd48.entry.js → p-705dba52.entry.js} +1 -1
  487. package/dist/webcomponents/{p-e77cc776.entry.js → p-78cb62a8.entry.js} +1 -1
  488. package/dist/webcomponents/p-80a4fba7.entry.js +1 -0
  489. package/dist/webcomponents/p-80b2cdec.entry.js +1 -0
  490. package/dist/webcomponents/p-8S_ROmnq.js +1 -0
  491. package/dist/webcomponents/p-8ca21fab.entry.js +1 -0
  492. package/dist/webcomponents/p-9773e1e9.entry.js +1 -0
  493. package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
  494. package/dist/webcomponents/{p-0674f9e2.entry.js → p-9c8fb92f.entry.js} +1 -1
  495. package/dist/webcomponents/{p-1db698bb.entry.js → p-9d611395.entry.js} +1 -1
  496. package/dist/webcomponents/{p-7ee67a7b.entry.js → p-9ed7b13f.entry.js} +1 -1
  497. package/dist/webcomponents/{p-DijYoVj9.js → p-B6IWa9Ph.js} +1 -1
  498. package/dist/webcomponents/{p-CoHTj6Zv.js → p-BBx_EQqR.js} +1 -1
  499. package/dist/webcomponents/p-BXUY63ga.js +1 -0
  500. package/dist/webcomponents/{p-BHf9IqGw.js → p-Bgnhf5c9.js} +1 -1
  501. package/dist/webcomponents/{p-BzUsLFRB.js → p-BhCH9S0e.js} +1 -1
  502. package/dist/webcomponents/{p-B2zYNTMd.js → p-BjNuRWXK.js} +1 -1
  503. package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
  504. package/dist/webcomponents/{p-YFacIs1k.js → p-C0wTyoTh.js} +1 -1
  505. package/dist/webcomponents/p-C2JJBtMc.js +1 -0
  506. package/dist/webcomponents/p-C8k7a6D-.js +1 -0
  507. package/dist/webcomponents/{p-BrUSZwNP.js → p-C98BC5W5.js} +1 -1
  508. package/dist/webcomponents/{p-wyo7gH76.js → p-C9EQ459H.js} +1 -1
  509. package/dist/webcomponents/{p-DEPTsxWg.js → p-CCLgieAN.js} +1 -1
  510. package/dist/webcomponents/{p-lmpjoGKk.js → p-CCmDcLao.js} +1 -1
  511. package/dist/webcomponents/p-CEk3bv0x.js +1 -0
  512. package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
  513. package/dist/webcomponents/{p-BXSa6F0A.js → p-ClvhB3WW.js} +1 -1
  514. package/dist/webcomponents/{p-Dlgl52fA.js → p-CmBCj61h.js} +1 -1
  515. package/dist/webcomponents/{p-Bao2wCms.js → p-CoBppUkq.js} +1 -1
  516. package/dist/webcomponents/p-D0Peuz-m.js +1 -0
  517. package/dist/webcomponents/p-D6BImiVi.js +1 -0
  518. package/dist/webcomponents/p-DGsXKF67.js +1 -0
  519. package/dist/webcomponents/{p-DqKxycem.js → p-DQZ5VHTZ.js} +1 -1
  520. package/dist/webcomponents/p-DWn9BiNn.js +1 -0
  521. package/dist/webcomponents/{p-CTqY6NgS.js → p-DdMxswn1.js} +1 -1
  522. package/dist/webcomponents/{p-B63vgBnY.js → p-DdZLLkQ5.js} +1 -1
  523. package/dist/webcomponents/p-DfV3dFDB.js +1 -0
  524. package/dist/webcomponents/p-Dieke6TH.js +1 -0
  525. package/dist/webcomponents/p-NAjz1Xfo.js +1 -0
  526. package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
  527. package/dist/webcomponents/p-RQzxYnz_.js +1 -0
  528. package/dist/webcomponents/p-T2yENPvU.js +1 -0
  529. package/dist/webcomponents/p-a09695c4.entry.js +1 -0
  530. package/dist/webcomponents/{p-fb4c5873.entry.js → p-a4846316.entry.js} +1 -1
  531. package/dist/webcomponents/{p-DMEQUc2C.js → p-a6tcNl_T.js} +1 -1
  532. package/dist/webcomponents/p-a8446044.entry.js +1 -0
  533. package/dist/webcomponents/{p-d8a01f34.entry.js → p-ae8ae5bb.entry.js} +1 -1
  534. package/dist/webcomponents/p-aeb22aa2.entry.js +1 -0
  535. package/dist/webcomponents/{p-Cs66SeCx.js → p-au49QgoI.js} +1 -1
  536. package/dist/webcomponents/{p-bcc66eb6.entry.js → p-b608add9.entry.js} +1 -1
  537. package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
  538. package/dist/webcomponents/p-bc099dd0.entry.js +1 -0
  539. package/dist/webcomponents/p-c12d0453.entry.js +1 -0
  540. package/dist/webcomponents/{p-59c13f19.entry.js → p-c44fcff6.entry.js} +1 -1
  541. package/dist/webcomponents/p-c644a9f1.entry.js +1 -0
  542. package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
  543. package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
  544. package/dist/webcomponents/{p-1315f0c6.entry.js → p-d403bdc0.entry.js} +1 -1
  545. package/dist/webcomponents/{p-4337111b.entry.js → p-d4476052.entry.js} +1 -1
  546. package/dist/webcomponents/{p-5c025a41.entry.js → p-de95bf57.entry.js} +1 -1
  547. package/dist/webcomponents/p-dfb2e55b.entry.js +1 -0
  548. package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
  549. package/dist/webcomponents/p-e9865d1d.entry.js +1 -0
  550. package/dist/webcomponents/p-e9b2591b.entry.js +1 -0
  551. package/dist/webcomponents/p-ea2cbf37.entry.js +1 -0
  552. package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
  553. package/dist/webcomponents/p-edfeb034.entry.js +1 -0
  554. package/dist/webcomponents/p-ee90bbd1.entry.js +1 -0
  555. package/dist/webcomponents/{p-42934a93.entry.js → p-f705fc49.entry.js} +1 -1
  556. package/dist/webcomponents/{p-ea7fc5b2.entry.js → p-fbc5fc6d.entry.js} +1 -1
  557. package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
  558. package/dist/webcomponents/p-h5pyZngT.js +1 -0
  559. package/dist/webcomponents/{p-BgUmsFt9.js → p-hbWSMN3O.js} +1 -1
  560. package/dist/webcomponents/p-lKnUT24T.js +1 -0
  561. package/dist/webcomponents/p-wQgEEOq_.js +1 -0
  562. package/dist/webcomponents/p-xDbRW9xn.js +1 -0
  563. package/dist/webcomponents/webcomponents.esm.js +1 -1
  564. package/package.json +13 -13
  565. package/LICENSE +0 -21
  566. package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
  567. package/dist/cjs/terminals-list-params-state-B3dEHKgs.js +0 -22
  568. package/dist/esm/terminals-list-params-state-DKBoAgAJ.js +0 -16
  569. package/dist/webcomponents/p-093b4cb3.entry.js +0 -1
  570. package/dist/webcomponents/p-0c1afe6a.entry.js +0 -1
  571. package/dist/webcomponents/p-0d0ecbec.entry.js +0 -1
  572. package/dist/webcomponents/p-0e598a4f.entry.js +0 -1
  573. package/dist/webcomponents/p-10dc6677.entry.js +0 -1
  574. package/dist/webcomponents/p-12e0f6d0.entry.js +0 -1
  575. package/dist/webcomponents/p-16332dad.entry.js +0 -1
  576. package/dist/webcomponents/p-175af33d.entry.js +0 -1
  577. package/dist/webcomponents/p-19549cf9.entry.js +0 -1
  578. package/dist/webcomponents/p-1cd888c2.entry.js +0 -1
  579. package/dist/webcomponents/p-1f241a23.entry.js +0 -1
  580. package/dist/webcomponents/p-2451aa52.entry.js +0 -1
  581. package/dist/webcomponents/p-24b38502.entry.js +0 -1
  582. package/dist/webcomponents/p-2aec0fec.entry.js +0 -1
  583. package/dist/webcomponents/p-2d3edc42.entry.js +0 -1
  584. package/dist/webcomponents/p-2e144d57.entry.js +0 -1
  585. package/dist/webcomponents/p-30241721.entry.js +0 -1
  586. package/dist/webcomponents/p-32770b86.entry.js +0 -1
  587. package/dist/webcomponents/p-3b42f47c.entry.js +0 -1
  588. package/dist/webcomponents/p-3b6ff2c7.entry.js +0 -1
  589. package/dist/webcomponents/p-3d626ed6.entry.js +0 -1
  590. package/dist/webcomponents/p-478388a5.entry.js +0 -1
  591. package/dist/webcomponents/p-4c151c69.entry.js +0 -1
  592. package/dist/webcomponents/p-5d49c795.entry.js +0 -1
  593. package/dist/webcomponents/p-66b642d8.entry.js +0 -1
  594. package/dist/webcomponents/p-68ff0209.entry.js +0 -1
  595. package/dist/webcomponents/p-6EvNOn3-.js +0 -1
  596. package/dist/webcomponents/p-6db4bf6d.entry.js +0 -1
  597. package/dist/webcomponents/p-6e7eda7b.entry.js +0 -1
  598. package/dist/webcomponents/p-731e895a.entry.js +0 -1
  599. package/dist/webcomponents/p-754fc289.entry.js +0 -1
  600. package/dist/webcomponents/p-838bc453.entry.js +0 -1
  601. package/dist/webcomponents/p-839b3217.entry.js +0 -1
  602. package/dist/webcomponents/p-89b69a99.entry.js +0 -1
  603. package/dist/webcomponents/p-8f1c9ea0.entry.js +0 -1
  604. package/dist/webcomponents/p-9aa60b89.entry.js +0 -1
  605. package/dist/webcomponents/p-9d656297.entry.js +0 -1
  606. package/dist/webcomponents/p-B7MgZiYt.js +0 -1
  607. package/dist/webcomponents/p-BAP2_n0C.js +0 -1
  608. package/dist/webcomponents/p-CFJORLxe.js +0 -1
  609. package/dist/webcomponents/p-CaCRHEeS.js +0 -1
  610. package/dist/webcomponents/p-CiGtDYf9.js +0 -1
  611. package/dist/webcomponents/p-CjiooCZL.js +0 -1
  612. package/dist/webcomponents/p-CpicmCYr.js +0 -1
  613. package/dist/webcomponents/p-CyVecSBV.js +0 -1
  614. package/dist/webcomponents/p-D5GwdE1-.js +0 -1
  615. package/dist/webcomponents/p-DMlQVSDm.js +0 -1
  616. package/dist/webcomponents/p-DO3DK7hp.js +0 -1
  617. package/dist/webcomponents/p-DPWdvb1b.js +0 -1
  618. package/dist/webcomponents/p-DVFJ02AX.js +0 -1
  619. package/dist/webcomponents/p-DgsBfaBV.js +0 -1
  620. package/dist/webcomponents/p-DmwN1pQC.js +0 -1
  621. package/dist/webcomponents/p-DqEiwSTX.js +0 -1
  622. package/dist/webcomponents/p-FS-_U_DC.js +0 -1
  623. package/dist/webcomponents/p-RvUQ__Pq.js +0 -1
  624. package/dist/webcomponents/p-TLJ8o8BU.js +0 -1
  625. package/dist/webcomponents/p-ba77f02e.entry.js +0 -1
  626. package/dist/webcomponents/p-bf73c13c.entry.js +0 -1
  627. package/dist/webcomponents/p-c3e3c368.entry.js +0 -1
  628. package/dist/webcomponents/p-c4b0da5d.entry.js +0 -1
  629. package/dist/webcomponents/p-c6636ce3.entry.js +0 -1
  630. package/dist/webcomponents/p-d182e0a4.entry.js +0 -1
  631. package/dist/webcomponents/p-e7686f74.entry.js +0 -1
  632. package/dist/webcomponents/p-e9527758.entry.js +0 -1
  633. package/dist/webcomponents/p-ef03a84f.entry.js +0 -1
  634. package/dist/webcomponents/p-f58866c6.entry.js +0 -1
  635. package/dist/webcomponents/p-f6be0e61.entry.js +0 -1
  636. package/dist/webcomponents/p-gpZ4wrS9.js +0 -1
  637. package/dist/webcomponents/p-xgpMjz3-.js +0 -1
  638. /package/dist/webcomponents/{p-DyGx8Avl.js → p-DOjVAAtq.js} +0 -0
@@ -1,36 +1,902 @@
1
- import { r as registerInstance, h, c as createEvent, H as Host, g as getElement } from './index-DyGx8Avl.js';
2
- import { z as text, r as radioListItem } from './parts-RvUQ__Pq.js';
3
- import { f as formatCurrency } from './utils-BscIVFn8.js';
4
- import { c as checkoutStore, o as onAnyChange, g as getAvailablePaymentMethodTypes, a as onChange } from './checkout.store-CpBg1CFX.js';
5
- import { S as StyledHost } from './styled-host-BQjsup-P.js';
1
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-DOjVAAtq.js';
2
+ import { A as Api } from './Api-DhiA2e_P.js';
3
+ import { S as StyledHost } from './styled-host-OalOsPBp.js';
6
4
  import './event-types-CZfYo5-1.js';
7
- import { H as Header1 } from './header-1-oPO-WOI8.js';
8
- import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-DVxPVMxW.js';
9
- import { H as Header3 } from './header-3-DWKhJ_Et.js';
10
- import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-Dzqkjq08.js';
11
- import './config-state-BJ800oYx.js';
5
+ import { S as Skeleton } from './skeleton-B8EUwt4b.js';
6
+ import { c as checkoutStore, o as onAnyChange, g as getAvailablePaymentMethodTypes, a as onChange } from './checkout.store-4nUf2OuT.js';
7
+ import { D as text, r as radioListItem } from './parts-xDbRW9xn.js';
8
+ import { f as formatCurrency } from './utils-BOijEGPV.js';
9
+ import { H as Header1 } from './header-1-C1Hnxki8.js';
10
+ import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-CVme82j7.js';
11
+ import { H as Header3 } from './header-3-Bq8fpjm-.js';
12
+ import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-DW45blqY.js';
13
+ import './config-state-DiHV-4QK.js';
12
14
  import './dinero-HXpYMWUU.js';
13
15
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
14
- import { I as ICheckoutStatus } from './Refund-C3Rj8ucO.js';
16
+ import { I as ICheckoutStatus } from './Refund-B-iOTRxz.js';
15
17
  import './Pagination-CLHwhyvu.js';
16
18
  import './Business-BCoP0TAV.js';
17
19
  import './Dispute-BH0Xfn-F.js';
18
20
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
19
- import { C as CheckoutService } from './checkout.service-_dbCJ4H4.js';
20
- import { A as Api } from './Api-GDDXjRV1.js';
21
+ import { C as CheckoutService } from './checkout.service-fwbqSq8g.js';
21
22
  import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DCIW8z1f.js';
22
23
  import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
23
- import './index-Cuq3wBDS.js';
24
- import './package-CyVecSBV.js';
24
+ import './index-DJ9G-4S-.js';
25
+ import './package-BXUY63ga.js';
25
26
  import './helpers-Mu7LQT-w.js';
26
27
  import './state-options-BX8GieXu.js';
27
28
 
29
+ var ApplePaySessionStatus;
30
+ (function (ApplePaySessionStatus) {
31
+ ApplePaySessionStatus["STATUS_SUCCESS"] = "STATUS_SUCCESS";
32
+ ApplePaySessionStatus["STATUS_FAILURE"] = "STATUS_FAILURE";
33
+ })(ApplePaySessionStatus || (ApplePaySessionStatus = {}));
34
+ var ApplePayButtonType;
35
+ (function (ApplePayButtonType) {
36
+ ApplePayButtonType["PLAIN"] = "plain";
37
+ ApplePayButtonType["BUY"] = "buy";
38
+ ApplePayButtonType["SET_UP"] = "set-up";
39
+ ApplePayButtonType["DONATE"] = "donate";
40
+ ApplePayButtonType["CHECK_OUT"] = "check-out";
41
+ ApplePayButtonType["BOOK"] = "book";
42
+ ApplePayButtonType["SUBSCRIBE"] = "subscribe";
43
+ })(ApplePayButtonType || (ApplePayButtonType = {}));
44
+ var ApplePayButtonStyle;
45
+ (function (ApplePayButtonStyle) {
46
+ ApplePayButtonStyle["BLACK"] = "black";
47
+ ApplePayButtonStyle["WHITE"] = "white";
48
+ ApplePayButtonStyle["WHITE_OUTLINE"] = "white-outline";
49
+ })(ApplePayButtonStyle || (ApplePayButtonStyle = {}));
50
+ var ApplePayMerchantCapability;
51
+ (function (ApplePayMerchantCapability) {
52
+ ApplePayMerchantCapability["SUPPORTS_3DS"] = "supports3DS";
53
+ ApplePayMerchantCapability["SUPPORTS_EMV"] = "supportsEMV";
54
+ ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
55
+ ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
56
+ })(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
57
+ class ApplePayConfig {
58
+ constructor(data) {
59
+ this.merchantIdentifier = data.merchantIdentifier;
60
+ this.displayName = data.displayName;
61
+ this.initiative = data.initiative;
62
+ this.initiativeContext = data.initiativeContext;
63
+ this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
64
+ this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
65
+ this.buttonLocale = data.buttonLocale || 'en-US';
66
+ }
67
+ get isValid() {
68
+ return !!(this.merchantIdentifier &&
69
+ this.displayName &&
70
+ this.initiative &&
71
+ this.initiativeContext);
72
+ }
73
+ }
74
+ class ApplePayPaymentRequest {
75
+ constructor(data) {
76
+ this.countryCode = data.countryCode;
77
+ this.currencyCode = data.currencyCode;
78
+ this.merchantCapabilities = data.merchantCapabilities;
79
+ this.supportedNetworks = data.supportedNetworks;
80
+ this.total = data.total;
81
+ this.lineItems = data.lineItems;
82
+ this.shippingMethods = data.shippingMethods;
83
+ this.applicationData = data.applicationData;
84
+ this.supportedCountries = data.supportedCountries;
85
+ }
86
+ get isValid() {
87
+ var _a, _b, _c, _d;
88
+ return !!(this.countryCode &&
89
+ this.currencyCode &&
90
+ ((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
91
+ ((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
92
+ ((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
93
+ ((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
94
+ }
95
+ }
96
+ class ApplePayHelpers {
97
+ static isApplePaySupported() {
98
+ var _a;
99
+ return (typeof window !== 'undefined' &&
100
+ 'ApplePaySession' in window &&
101
+ ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
102
+ }
103
+ static canMakePayments() {
104
+ var _a;
105
+ if (!this.isApplePaySupported()) {
106
+ return false;
107
+ }
108
+ return ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePayments()) || false;
109
+ }
110
+ static async canMakePaymentsWithActiveCard(merchantIdentifier) {
111
+ var _a;
112
+ if (!this.isApplePaySupported()) {
113
+ return false;
114
+ }
115
+ try {
116
+ return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
117
+ }
118
+ catch (error) {
119
+ console.error('Error checking Apple Pay active card:', error);
120
+ return false;
121
+ }
122
+ }
123
+ static formatAmount(amount) {
124
+ return (amount / 100).toFixed(2);
125
+ }
126
+ static parseAmount(amount) {
127
+ return Math.round(parseFloat(amount) * 100);
128
+ }
129
+ static createLineItem(label, amount, type = 'final') {
130
+ return {
131
+ label,
132
+ amount: this.formatAmount(amount),
133
+ type,
134
+ };
135
+ }
136
+ static getDefaultSupportedNetworks() {
137
+ return ['amex', 'discover', 'masterCard', 'visa'];
138
+ }
139
+ static getDefaultMerchantCapabilities() {
140
+ return [
141
+ ApplePayMerchantCapability.SUPPORTS_3DS,
142
+ ApplePayMerchantCapability.SUPPORTS_EMV,
143
+ ApplePayMerchantCapability.SUPPORTS_CREDIT,
144
+ ApplePayMerchantCapability.SUPPORTS_DEBIT,
145
+ ];
146
+ }
147
+ }
148
+
149
+ // Centralized error codes for Apple Pay service
150
+ var ApplePayServiceErrorCode;
151
+ (function (ApplePayServiceErrorCode) {
152
+ ApplePayServiceErrorCode["UNAVAILABLE"] = "UNAVAILABLE";
153
+ ApplePayServiceErrorCode["SESSION_ERROR"] = "SESSION_ERROR";
154
+ ApplePayServiceErrorCode["MERCHANT_VALIDATION_ERROR"] = "MERCHANT_VALIDATION_ERROR";
155
+ ApplePayServiceErrorCode["PAYMENT_PROCESSING_ERROR"] = "PAYMENT_PROCESSING_ERROR";
156
+ ApplePayServiceErrorCode["USER_CANCELLED"] = "USER_CANCELLED";
157
+ })(ApplePayServiceErrorCode || (ApplePayServiceErrorCode = {}));
158
+ class ApplePayService {
159
+ constructor() {
160
+ this.api = Api();
161
+ }
162
+ /**
163
+ * Initialize Apple Pay configuration
164
+ */
165
+ initialize(applePayConfig) {
166
+ this.applePayConfig = new ApplePayConfig(applePayConfig);
167
+ if (!this.applePayConfig.isValid) {
168
+ throw new Error('Invalid Apple Pay configuration provided');
169
+ }
170
+ }
171
+ /**
172
+ * Validate merchant with Apple Pay servers via API
173
+ */
174
+ async validateMerchant(authToken, accountId) {
175
+ const endpoint = 'apple_pay/merchant_session';
176
+ try {
177
+ const response = await this.api.post({
178
+ endpoint,
179
+ authToken,
180
+ headers: {
181
+ 'Sub-Account': accountId,
182
+ },
183
+ });
184
+ return response;
185
+ }
186
+ catch (error) {
187
+ console.error('Backend validation failed:', error);
188
+ throw new Error('Merchant validation failed');
189
+ }
190
+ }
191
+ /**
192
+ * Process Apple Pay payment via API (fixed to match original logic)
193
+ */
194
+ async processPayment(authToken, accountId, payload) {
195
+ const endpoint = 'apple_pay/process_token';
196
+ const result = await this.api.post({
197
+ endpoint,
198
+ authToken,
199
+ body: payload,
200
+ headers: {
201
+ 'Sub-Account': accountId,
202
+ },
203
+ });
204
+ return {
205
+ success: result.id && !!result.data.token,
206
+ data: result,
207
+ };
208
+ }
209
+ /**
210
+ * Check if Apple Pay is available on this device/browser
211
+ */
212
+ isAvailable() {
213
+ return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
214
+ }
215
+ /**
216
+ * Check if the user has an active card for the merchant
217
+ */
218
+ async canMakePaymentsWithActiveCard() {
219
+ if (!this.applePayConfig) {
220
+ throw new Error('Apple Pay not initialized. Call initialize() first.');
221
+ }
222
+ return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
223
+ }
224
+ /**
225
+ * Start Apple Pay session
226
+ */
227
+ async startPaymentSession(paymentRequest, authToken, accountId) {
228
+ // Begin verbose diagnostics for easier debugging in the field
229
+ console.groupCollapsed('[ApplePayService] startPaymentSession called');
230
+ console.log('[ApplePayService] raw paymentRequest:', JSON.stringify(paymentRequest, null, 2));
231
+ console.log('[ApplePayService] has authToken:', Boolean(authToken));
232
+ console.log('[ApplePayService] accountId:', accountId);
233
+ console.log('[ApplePayService] has config:', Boolean(this.applePayConfig));
234
+ if (!this.applePayConfig) {
235
+ console.error('[ApplePayService] Missing applePayConfig. Did you call initialize()?');
236
+ console.groupEnd();
237
+ throw new Error('Apple Pay not initialized. Call initialize() first.');
238
+ }
239
+ // if (!this.isAvailable()) {
240
+ // throw new Error('Apple Pay is not available on this device/browser');
241
+ // }
242
+ const request = new ApplePayPaymentRequest(paymentRequest);
243
+ console.log('[ApplePayService] created ApplePayPaymentRequest:', request);
244
+ if (!request.isValid) {
245
+ const missingFields = [];
246
+ if (!request.countryCode)
247
+ missingFields.push('countryCode');
248
+ if (!request.currencyCode)
249
+ missingFields.push('currencyCode');
250
+ if (!request.merchantCapabilities ||
251
+ request.merchantCapabilities.length === 0)
252
+ missingFields.push('merchantCapabilities');
253
+ if (!request.supportedNetworks || request.supportedNetworks.length === 0)
254
+ missingFields.push('supportedNetworks');
255
+ if (!request.total || !request.total.label || !request.total.amount)
256
+ missingFields.push('total');
257
+ console.error('[ApplePayService] Payment request is invalid. Missing/invalid:', missingFields);
258
+ console.groupEnd();
259
+ throw new Error('Invalid payment request provided');
260
+ }
261
+ this.currentPaymentRequest = request;
262
+ return new Promise((resolve, reject) => {
263
+ try {
264
+ console.log('[ApplePayService] About to instantiate ApplePaySession');
265
+ // Defensive checks for Apple Pay environment
266
+ if (typeof window === 'undefined' || !('ApplePaySession' in window)) {
267
+ console.error('[ApplePayService] ApplePaySession not available on window');
268
+ console.groupEnd();
269
+ return reject({
270
+ success: false,
271
+ error: {
272
+ code: ApplePayServiceErrorCode.UNAVAILABLE,
273
+ message: 'ApplePaySession API is not available in this environment',
274
+ },
275
+ });
276
+ }
277
+ this.currentSession = new window.ApplePaySession(3, request);
278
+ console.log('[ApplePayService] ApplePaySession instantiated:', this.currentSession);
279
+ this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
280
+ console.log('[ApplePayService] Event handlers set. Beginning session...');
281
+ this.currentSession.begin();
282
+ console.log('[ApplePayService] Session.begin() called');
283
+ console.groupEnd();
284
+ }
285
+ catch (error) {
286
+ console.error('[ApplePayService] Exception while starting session:', error);
287
+ console.groupEnd();
288
+ reject({
289
+ success: false,
290
+ error: {
291
+ code: ApplePayServiceErrorCode.SESSION_ERROR,
292
+ message: error instanceof Error
293
+ ? error.message
294
+ : 'Failed to start Apple Pay session',
295
+ },
296
+ });
297
+ }
298
+ });
299
+ }
300
+ /**
301
+ * Abort current Apple Pay session
302
+ */
303
+ abortPaymentSession() {
304
+ if (this.currentSession) {
305
+ this.currentSession.abort();
306
+ this.currentSession = undefined;
307
+ this.currentPaymentRequest = undefined;
308
+ }
309
+ }
310
+ /**
311
+ * Setup Apple Pay session event handlers
312
+ */
313
+ setupSessionEventHandlers(resolve, reject, authToken, accountId) {
314
+ if (!this.currentSession ||
315
+ !this.applePayConfig ||
316
+ !this.currentPaymentRequest) {
317
+ console.error('[ApplePayService] setupSessionEventHandlers called without required state', {
318
+ hasSession: Boolean(this.currentSession),
319
+ hasConfig: Boolean(this.applePayConfig),
320
+ hasPaymentRequest: Boolean(this.currentPaymentRequest),
321
+ });
322
+ return;
323
+ }
324
+ this.currentSession.onvalidatemerchant = async () => {
325
+ console.groupCollapsed('[ApplePayService] onvalidatemerchant');
326
+ try {
327
+ console.log('[ApplePayService] accountId:', accountId);
328
+ if (!authToken) {
329
+ console.error('[ApplePayService] Missing authToken for merchant validation');
330
+ throw new Error('Authentication token not provided.');
331
+ }
332
+ const merchantSession = await this.validateMerchant(authToken, accountId);
333
+ console.log('[ApplePayService] merchantSession received');
334
+ try {
335
+ this.currentSession.completeMerchantValidation(merchantSession);
336
+ console.log('[ApplePayService] completeMerchantValidation called');
337
+ }
338
+ catch (completionError) {
339
+ console.error('Error calling completeMerchantValidation:', completionError);
340
+ throw completionError;
341
+ }
342
+ }
343
+ catch (error) {
344
+ console.error('=== MERCHANT VALIDATION ERROR ===');
345
+ console.error('Error during merchant validation:', error);
346
+ if (error && error.stack) {
347
+ console.error('Error stack:', error.stack);
348
+ }
349
+ this.currentSession.abort();
350
+ reject({
351
+ success: false,
352
+ error: {
353
+ code: ApplePayServiceErrorCode.MERCHANT_VALIDATION_ERROR,
354
+ message: error instanceof Error
355
+ ? error.message
356
+ : 'Merchant validation failed',
357
+ },
358
+ });
359
+ }
360
+ console.groupEnd();
361
+ };
362
+ this.currentSession.onpaymentauthorized = async (event) => {
363
+ var _a;
364
+ console.groupCollapsed('[ApplePayService] onpaymentauthorized');
365
+ try {
366
+ const payment = event.payment;
367
+ console.log('[ApplePayService] payment payload snapshot:', {
368
+ hasToken: Boolean(payment === null || payment === void 0 ? void 0 : payment.token),
369
+ tokenType: ((_a = payment === null || payment === void 0 ? void 0 : payment.token) === null || _a === void 0 ? void 0 : _a.paymentData) ? 'paymentData' : 'raw',
370
+ });
371
+ const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
372
+ name: this.currentPaymentRequest.total.label,
373
+ price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
374
+ description: this.currentPaymentRequest.total.label,
375
+ } });
376
+ console.log('[ApplePayService] paymentPayload prepared');
377
+ const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
378
+ console.log('[ApplePayService] processPayment result:', paymentResult);
379
+ if (paymentResult.success) {
380
+ this.currentSession.completePayment({
381
+ status: ApplePaySessionStatus.STATUS_SUCCESS,
382
+ });
383
+ console.log('[ApplePayService] Payment success; resolving');
384
+ resolve({
385
+ success: true,
386
+ token: payment.token,
387
+ paymentMethodId: paymentResult.data.id,
388
+ });
389
+ }
390
+ else {
391
+ console.error('PSP reported payment failure:', paymentResult.data);
392
+ this.currentSession.completePayment({
393
+ status: ApplePaySessionStatus.STATUS_FAILURE,
394
+ });
395
+ reject({
396
+ success: false,
397
+ error: {
398
+ code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
399
+ message: 'Payment processing failed',
400
+ },
401
+ });
402
+ }
403
+ }
404
+ catch (error) {
405
+ console.error('=== PAYMENT PROCESSING ERROR ===');
406
+ console.error('Error processing payment:', error);
407
+ if (error && error.stack) {
408
+ console.error('Error stack:', error.stack);
409
+ }
410
+ this.currentSession.completePayment({
411
+ status: ApplePaySessionStatus.STATUS_FAILURE,
412
+ });
413
+ reject({
414
+ success: false,
415
+ error: {
416
+ code: ApplePayServiceErrorCode.PAYMENT_PROCESSING_ERROR,
417
+ message: error instanceof Error
418
+ ? error.message
419
+ : 'Payment processing failed',
420
+ },
421
+ });
422
+ }
423
+ finally {
424
+ console.log('[ApplePayService] Cleaning up session state');
425
+ this.currentSession = undefined;
426
+ this.currentPaymentRequest = undefined;
427
+ }
428
+ console.groupEnd();
429
+ };
430
+ this.currentSession.onpaymentmethodselected = () => {
431
+ console.groupCollapsed('[ApplePayService] onpaymentmethodselected');
432
+ const paymentUpdate = {
433
+ newTotal: this.currentPaymentRequest.total,
434
+ newLineItems: this.currentPaymentRequest.lineItems || [],
435
+ };
436
+ try {
437
+ this.currentSession.completePaymentMethodSelection(paymentUpdate);
438
+ console.log('[ApplePayService] completePaymentMethodSelection called');
439
+ }
440
+ catch (error) {
441
+ console.error('Error completing payment method selection:', error);
442
+ this.currentSession.abort();
443
+ }
444
+ console.groupEnd();
445
+ };
446
+ this.currentSession.onshippingmethodselected = () => {
447
+ console.groupCollapsed('[ApplePayService] onshippingmethodselected');
448
+ this.currentSession.completeShippingMethodSelection({
449
+ status: ApplePaySessionStatus.STATUS_SUCCESS,
450
+ newTotal: this.currentPaymentRequest.total,
451
+ newLineItems: this.currentPaymentRequest.lineItems || [],
452
+ });
453
+ console.log('[ApplePayService] completeShippingMethodSelection called');
454
+ console.groupEnd();
455
+ };
456
+ this.currentSession.oncancel = (event) => {
457
+ console.groupCollapsed('[ApplePayService] oncancel');
458
+ if (event.sessionError) {
459
+ console.error(event.sessionError);
460
+ switch (event.sessionError.code) {
461
+ case 'unknown':
462
+ console.error('Unknown error - likely merchant validation issue');
463
+ console.error('This usually means:');
464
+ console.error('1. Merchant certificate is invalid or expired');
465
+ console.error('2. Merchant identifier mismatch');
466
+ console.error('3. Backend validation endpoint issues');
467
+ break;
468
+ case 'invalidMerchantSession':
469
+ console.error('Invalid merchant session provided');
470
+ console.error('Check that the merchant session from backend is valid');
471
+ break;
472
+ case 'userCancel':
473
+ console.error('User cancelled the payment');
474
+ break;
475
+ default:
476
+ console.error('Other error code:', event.sessionError.code);
477
+ }
478
+ }
479
+ this.currentSession = undefined;
480
+ this.currentPaymentRequest = undefined;
481
+ reject({
482
+ success: false,
483
+ error: {
484
+ code: ApplePayServiceErrorCode.USER_CANCELLED,
485
+ message: 'User cancelled the Apple Pay session',
486
+ },
487
+ });
488
+ console.groupEnd();
489
+ };
490
+ if ('onerror' in this.currentSession) {
491
+ this.currentSession.onerror = (error) => {
492
+ console.groupCollapsed('[ApplePayService] onerror');
493
+ console.error('=== APPLE PAY SESSION ERROR ===');
494
+ console.error('Session error:', error);
495
+ this.currentSession = undefined;
496
+ this.currentPaymentRequest = undefined;
497
+ reject({
498
+ success: false,
499
+ error: {
500
+ code: ApplePayServiceErrorCode.SESSION_ERROR,
501
+ message: 'Apple Pay session error occurred',
502
+ },
503
+ });
504
+ console.groupEnd();
505
+ };
506
+ }
507
+ }
508
+ /**
509
+ * Create a basic payment request
510
+ */
511
+ static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
512
+ return {
513
+ countryCode,
514
+ currencyCode,
515
+ merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
516
+ supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
517
+ total: ApplePayHelpers.createLineItem(label, amount),
518
+ };
519
+ }
520
+ /**
521
+ * Get current configuration
522
+ */
523
+ getApplePayConfig() {
524
+ return this.applePayConfig;
525
+ }
526
+ }
527
+
528
+ const ApplePaySkeleton = (props) => {
529
+ const { isLoading } = props;
530
+ if (!isLoading) {
531
+ return null;
532
+ }
533
+ 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" } })))));
534
+ };
535
+
536
+ const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' }, h("div", { class: 'spinner' }), h("span", null, "Processing...")));
537
+ const ApplePayButton = (props) => {
538
+ const getApplePayButtonClass = () => {
539
+ let classes = "apple-pay-button";
540
+ switch (props.buttonStyle) {
541
+ case ApplePayButtonStyle.WHITE:
542
+ classes += " apple-pay-button-white";
543
+ break;
544
+ case ApplePayButtonStyle.WHITE_OUTLINE:
545
+ classes += " apple-pay-button-white-outline";
546
+ break;
547
+ case ApplePayButtonStyle.BLACK:
548
+ default:
549
+ classes += " apple-pay-button-black";
550
+ break;
551
+ }
552
+ switch (props.buttonType) {
553
+ case ApplePayButtonType.BUY:
554
+ classes += " apple-pay-button-type-buy";
555
+ break;
556
+ case ApplePayButtonType.DONATE:
557
+ classes += " apple-pay-button-type-donate";
558
+ break;
559
+ case ApplePayButtonType.PLAIN:
560
+ default:
561
+ classes += " apple-pay-button-type-plain";
562
+ break;
563
+ }
564
+ if (props.disabled || props.isProcessing || !props.isAvailable) {
565
+ classes += " disabled";
566
+ }
567
+ return classes;
568
+ };
569
+ const getButtonStyles = () => {
570
+ return {
571
+ width: props.width || "200px",
572
+ height: props.height || "48px",
573
+ };
574
+ };
575
+ const handleClick = () => {
576
+ if (!props.disabled &&
577
+ !props.isProcessing &&
578
+ props.isAvailable &&
579
+ props.clickHandler) {
580
+ props.clickHandler();
581
+ }
582
+ };
583
+ 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, `
584
+ .apple-pay-button-container {
585
+ display: inline-block;
586
+ position: relative;
587
+ }
588
+
589
+ /* Apple Pay CSS classes - these are the official Apple Pay button styles */
590
+ .apple-pay-button {
591
+ display: inline-block;
592
+ -webkit-appearance: -apple-pay-button;
593
+ -apple-pay-button-type: plain; /* default */
594
+ -apple-pay-button-style: black; /* default */
595
+ border-radius: 8px;
596
+ cursor: pointer;
597
+ border: none;
598
+ outline: none;
599
+ transition: opacity 0.2s ease;
600
+ position: relative;
601
+ }
602
+
603
+ /* Button styles */
604
+ .apple-pay-button.apple-pay-button-black {
605
+ -apple-pay-button-style: black;
606
+ }
607
+
608
+ .apple-pay-button.apple-pay-button-white {
609
+ -apple-pay-button-style: white;
610
+ }
611
+
612
+ .apple-pay-button.apple-pay-button-white-outline {
613
+ -apple-pay-button-style: white-outline;
614
+ }
615
+
616
+ /* Button types */
617
+ .apple-pay-button.apple-pay-button-type-plain {
618
+ -apple-pay-button-type: plain;
619
+ }
620
+
621
+ .apple-pay-button.apple-pay-button-type-buy {
622
+ -apple-pay-button-type: buy;
623
+ }
624
+
625
+ .apple-pay-button.apple-pay-button-type-donate {
626
+ -apple-pay-button-type: donate;
627
+ }
628
+
629
+ /* Hover and disabled states */
630
+ .apple-pay-button:hover:not(.disabled) {
631
+ opacity: 0.9;
632
+ }
633
+
634
+ .apple-pay-button.disabled {
635
+ opacity: 0.5;
636
+ cursor: not-allowed;
637
+ }
638
+
639
+ /* Processing overlay */
640
+ .processing-overlay {
641
+ position: absolute;
642
+ top: 0;
643
+ left: 0;
644
+ right: 0;
645
+ bottom: 0;
646
+ display: flex;
647
+ align-items: center;
648
+ justify-content: center;
649
+ gap: 8px;
650
+ background: rgba(0, 0, 0, 0.8);
651
+ color: white;
652
+ border-radius: 8px;
653
+ font-size: 14px;
654
+ font-weight: 500;
655
+ }
656
+
657
+ .spinner {
658
+ width: 16px;
659
+ height: 16px;
660
+ border: 2px solid rgba(255, 255, 255, 0.3);
661
+ border-top: 2px solid #fff;
662
+ border-radius: 50%;
663
+ animation: spin 1s linear infinite;
664
+ }
665
+
666
+ @keyframes spin {
667
+ 0% { transform: rotate(0deg); }
668
+ 100% { transform: rotate(360deg); }
669
+ }
670
+
671
+ /* Responsive design */
672
+ @media (max-width: 480px) {
673
+ .apple-pay-button {
674
+ width: 100% !important;
675
+ min-width: 200px;
676
+ }
677
+ }
678
+ `)));
679
+ };
680
+
681
+ const ApplePay = class {
682
+ constructor(hostRef) {
683
+ registerInstance(this, hostRef);
684
+ this.applePayStarted = createEvent(this, "applePayStarted");
685
+ this.applePayCompleted = createEvent(this, "applePayCompleted");
686
+ this.applePayCancelled = createEvent(this, "applePayCancelled");
687
+ this.applePayError = createEvent(this, "applePayError");
688
+ this.countryCode = "US";
689
+ this.merchantIdentifier = "merchant.com.staging-justifi.checkout-dev";
690
+ this.merchantDisplayName = "JustiFi Checkout";
691
+ this.initiativeContext = "dev-checkout.justifi-staging.com";
692
+ this.buttonType = ApplePayButtonType.PLAIN;
693
+ this.buttonStyle = ApplePayButtonStyle.BLACK;
694
+ this.disabled = false;
695
+ this.showSkeleton = true;
696
+ this.isLoading = true;
697
+ this.isProcessing = false;
698
+ this.isAvailable = false;
699
+ this.canMakePayments = false;
700
+ this.isConfigValid = true;
701
+ this.error = null;
702
+ this.handleApplePayClick = async () => {
703
+ var _a, _b;
704
+ if (this.isProcessing || this.disabled || !this.isAvailable) {
705
+ return;
706
+ }
707
+ try {
708
+ this.isProcessing = true;
709
+ this.error = null;
710
+ this.applePayStarted.emit();
711
+ console.groupCollapsed('[ApplePay Component] handleApplePayClick');
712
+ console.log('[ApplePay Component] click context:', {
713
+ isProcessing: this.isProcessing,
714
+ disabled: this.disabled,
715
+ isAvailable: this.isAvailable,
716
+ canMakePayments: this.canMakePayments,
717
+ hasService: Boolean(this.applePayService),
718
+ });
719
+ const paymentRequest = {
720
+ countryCode: this.countryCode,
721
+ currencyCode: checkoutStore.paymentCurrency,
722
+ merchantCapabilities: [
723
+ ApplePayMerchantCapability.SUPPORTS_3DS,
724
+ ApplePayMerchantCapability.SUPPORTS_CREDIT,
725
+ ApplePayMerchantCapability.SUPPORTS_DEBIT,
726
+ ],
727
+ supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
728
+ total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
729
+ };
730
+ console.log("[ApplePay Component] paymentRequest", paymentRequest);
731
+ console.log('[ApplePay Component] identifiers snapshot:', {
732
+ authTokenLength: checkoutStore.authToken ? String(checkoutStore.authToken).length : 0,
733
+ accountId: checkoutStore.accountId,
734
+ });
735
+ const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
736
+ console.log("[ApplePay Component] startPaymentSession result", result);
737
+ if (result.success) {
738
+ this.applePayCompleted.emit({
739
+ success: true,
740
+ token: result.token,
741
+ paymentMethodId: result.paymentMethodId,
742
+ });
743
+ }
744
+ else {
745
+ this.applePayCompleted.emit({
746
+ success: false,
747
+ error: result.error,
748
+ });
749
+ this.applePayError.emit({
750
+ error: ((_a = result.error) === null || _a === void 0 ? void 0 : _a.message) || "Payment failed",
751
+ code: ((_b = result.error) === null || _b === void 0 ? void 0 : _b.code) || ApplePay.ErrorCode.PAYMENT_FAILED,
752
+ });
753
+ }
754
+ }
755
+ catch (error) {
756
+ const errorMessage = error instanceof Error ? error.message : "Payment failed";
757
+ this.error = errorMessage;
758
+ this.applePayError.emit({ error: errorMessage, code: ApplePay.ErrorCode.PAYMENT_FAILED });
759
+ this.applePayCompleted.emit({
760
+ success: false,
761
+ error: errorMessage,
762
+ });
763
+ }
764
+ finally {
765
+ this.isProcessing = false;
766
+ console.groupEnd();
767
+ }
768
+ };
769
+ }
770
+ async initializeApplePay() {
771
+ try {
772
+ this.isLoading = true;
773
+ this.error = null;
774
+ this.isConfigValid = true;
775
+ console.groupCollapsed('[ApplePay Component] initializeApplePay');
776
+ console.log('[ApplePay Component] checkout state snapshot:', {
777
+ paymentAmount: checkoutStore.paymentAmount,
778
+ paymentCurrency: checkoutStore.paymentCurrency,
779
+ hasAuthToken: Boolean(checkoutStore.authToken),
780
+ accountId: checkoutStore.accountId,
781
+ });
782
+ const hasRequiredConfig = Boolean(checkoutStore.paymentAmount) &&
783
+ Boolean(checkoutStore.paymentCurrency) &&
784
+ Boolean(checkoutStore.authToken);
785
+ if (!hasRequiredConfig) {
786
+ this.error = "Missing required Apple Pay configuration";
787
+ this.isConfigValid = false;
788
+ console.error("Apple Pay config error: missing required values", {
789
+ paymentAmount: checkoutStore.paymentAmount,
790
+ paymentCurrency: checkoutStore.paymentCurrency,
791
+ hasAuthToken: Boolean(checkoutStore.authToken),
792
+ accountId: checkoutStore.accountId,
793
+ });
794
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.CONFIG_ERROR });
795
+ this.isLoading = false;
796
+ console.groupEnd();
797
+ return;
798
+ }
799
+ this.isAvailable = ApplePayHelpers.isApplePaySupported();
800
+ this.canMakePayments = ApplePayHelpers.canMakePayments();
801
+ console.log('[ApplePay Component] support check:', {
802
+ isAvailable: this.isAvailable,
803
+ canMakePayments: this.canMakePayments,
804
+ hasApplePaySessionOnWindow: typeof window !== 'undefined' && 'ApplePaySession' in window,
805
+ });
806
+ if (!this.isAvailable) {
807
+ this.error = "Apple Pay is not supported on this device";
808
+ console.error(this.error);
809
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_SUPPORTED });
810
+ this.isLoading = false;
811
+ console.groupEnd();
812
+ return;
813
+ }
814
+ if (!this.canMakePayments) {
815
+ this.error = "Apple Pay is not available";
816
+ console.error(this.error);
817
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.NOT_AVAILABLE });
818
+ this.isLoading = false;
819
+ console.groupEnd();
820
+ return;
821
+ }
822
+ const applePayConfig = {
823
+ merchantIdentifier: this.merchantIdentifier,
824
+ displayName: this.merchantDisplayName,
825
+ initiative: "web",
826
+ initiativeContext: this.initiativeContext,
827
+ buttonType: this.buttonType,
828
+ buttonStyle: this.buttonStyle,
829
+ };
830
+ console.log('[ApplePay Component] initializing service with config:', applePayConfig);
831
+ this.applePayService = new ApplePayService();
832
+ this.applePayService.initialize(applePayConfig);
833
+ const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
834
+ if (!hasActiveCard) {
835
+ console.warn("No Apple Pay cards available, but continuing...");
836
+ }
837
+ }
838
+ catch (error) {
839
+ console.error("Apple Pay initialization error:", error);
840
+ this.error =
841
+ error instanceof Error
842
+ ? error.message
843
+ : "Failed to initialize Apple Pay";
844
+ this.applePayError.emit({ error: this.error, code: ApplePay.ErrorCode.INITIALIZATION_ERROR });
845
+ }
846
+ finally {
847
+ this.isLoading = false;
848
+ console.groupEnd();
849
+ }
850
+ }
851
+ async isSupported() {
852
+ return this.isAvailable && this.canMakePayments;
853
+ }
854
+ async getPaymentMethods() {
855
+ if (!this.isAvailable) {
856
+ return [];
857
+ }
858
+ return ApplePayHelpers.getDefaultSupportedNetworks();
859
+ }
860
+ async abort() {
861
+ this.applePayService.abortPaymentSession();
862
+ this.isProcessing = false;
863
+ this.applePayCancelled.emit();
864
+ }
865
+ render() {
866
+ if (!checkoutStore.applePayEnabled) {
867
+ // Render nothing when Apple Pay is disabled at the checkout settings level
868
+ console.log('[ApplePay Component] Apple Pay disabled in checkout settings; not rendering');
869
+ return null;
870
+ }
871
+ const isReady = !this.isLoading &&
872
+ this.isAvailable &&
873
+ this.canMakePayments &&
874
+ this.isConfigValid;
875
+ return (h(StyledHost, null, checkoutStore.checkoutLoaded && (h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
876
+ console.log('[ApplePay Component] Apple Pay SDK script loaded');
877
+ this.initializeApplePay();
878
+ } })), h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isLoading: this.isLoading }), isReady && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", null, `
879
+ .apple-pay-container {
880
+ width: 100%;
881
+ }
882
+ `)));
883
+ }
884
+ };
885
+ // Centralized error codes for the Apple Pay component layer
886
+ ApplePay.ErrorCode = {
887
+ CONFIG_ERROR: 'CONFIG_ERROR',
888
+ NOT_SUPPORTED: 'NOT_SUPPORTED',
889
+ NOT_AVAILABLE: 'NOT_AVAILABLE',
890
+ INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
891
+ PAYMENT_FAILED: 'PAYMENT_FAILED',
892
+ };
893
+
28
894
  const Summary = class {
29
895
  constructor(hostRef) {
30
896
  registerInstance(this, hostRef);
31
897
  }
32
898
  render() {
33
- return (h(StyledHost, { key: '3161e6f6a196c79d684574cafbc90bcf741b2150' }, h("section", { key: '594b4485ed4fd9d7c1ee7f4556f071139f92ef0c' }, h("div", { key: '5c2d14677dda6fc7ddcb074d4887b839385dca3a' }, h("div", { key: 'fb850cd7e9c11741349710696dd4e6241c98e805', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: '959014d7fa2a9c97bae0c986313a604930c1e0f3' }, h("span", { key: '14ab0932a083568419b1c36c95f9072c73962b11', part: text }, "Total"), "\u00A0", h("span", { key: '08a9e00332253070ae984b77eb2a9bab88eb3472', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
899
+ return (h(StyledHost, { key: 'abd92b499208321582b08a490c78c9167be2ebd4' }, h("section", { key: '38e15cef5a19a43249d7ecf3d4eb4ea8e032f248' }, h("div", { key: '747f811012ed9707265369e59dbde8cd7ad3bca6' }, h("div", { key: '8575f50759664d5c64d235025699c81f055267ca', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'af77776bbe21bce77586447bbf445e4c5d8c1165' }, h("span", { key: '5cdaaec454118197b3e37a942d83907e72444342', part: text }, "Total"), "\u00A0", h("span", { key: 'ccc35217ac9740d5a00b7abbcec4133848afcc28', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
34
900
  }
35
901
  };
36
902
 
@@ -46,7 +912,7 @@ const Header = class {
46
912
  }
47
913
  render() {
48
914
  const HeaderComponent = this.levels[this.level];
49
- return (h(StyledHost, { key: 'eb3651b698897193d34a6c6456cd57dd0bd0bc43' }, h(HeaderComponent, { key: '39caee687f93d3d4d90e62d9fbcae318eaa8022e', text: this.text, class: this.class })));
915
+ return (h(StyledHost, { key: 'e1d39365c2ff2c291a42b53d6bcbe1d97d602778' }, h(HeaderComponent, { key: '0b8c8c3a42ff2151e3b293cafeeaeda72e94d767', text: this.text, class: this.class })));
50
916
  }
51
917
  };
52
918
 
@@ -248,7 +1114,7 @@ const ModularCheckout = class {
248
1114
  }
249
1115
  }
250
1116
  updateStore(checkout) {
251
- var _a, _b, _c, _d, _e;
1117
+ var _a, _b, _c, _d, _e, _f;
252
1118
  checkoutStore.accountId = checkout.account_id;
253
1119
  checkoutStore.checkoutLoaded = true;
254
1120
  checkoutStore.paymentMethods = checkout.payment_methods.map((paymentMethod) => new PaymentMethod(paymentMethod));
@@ -259,11 +1125,12 @@ const ModularCheckout = class {
259
1125
  checkoutStore.bnplEnabled = checkout.payment_settings.bnpl_payments;
260
1126
  checkoutStore.insuranceEnabled = checkout.payment_settings.insurance_payments;
261
1127
  checkoutStore.bankAccountVerification = (_a = checkout.payment_settings) === null || _a === void 0 ? void 0 : _a.bank_account_verification;
262
- checkoutStore.bnplProviderClientId = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_client_id;
263
- checkoutStore.bnplProviderMode = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_mode;
264
- checkoutStore.bnplProviderApiVersion = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_api_version;
1128
+ checkoutStore.applePayEnabled = Boolean((_b = checkout.payment_settings) === null || _b === void 0 ? void 0 : _b.apple_payments);
1129
+ checkoutStore.bnplProviderClientId = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_client_id;
1130
+ checkoutStore.bnplProviderMode = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_mode;
1131
+ checkoutStore.bnplProviderApiVersion = (_e = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _e === void 0 ? void 0 : _e.provider_api_version;
265
1132
  checkoutStore.bnplProviderCheckoutUrl =
266
- (_e = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _e === void 0 ? void 0 : _e.provider_checkout_url;
1133
+ (_f = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _f === void 0 ? void 0 : _f.provider_checkout_url;
267
1134
  }
268
1135
  emitCheckoutChanged() {
269
1136
  const detail = {
@@ -474,7 +1341,7 @@ const ModularCheckout = class {
474
1341
  });
475
1342
  }
476
1343
  render() {
477
- return h(Host, { key: 'dbe1fe78f8206fef2e3f4f51628d716786dea858' });
1344
+ return h(Host, { key: '63acafa8f4819ac63e564807779976e352ccbdfb' });
478
1345
  }
479
1346
  get hostEl() { return getElement(this); }
480
1347
  };
@@ -1415,7 +2282,7 @@ const TokenizePaymentMethod = class {
1415
2282
  return paymentMethodType === PAYMENT_METHODS.NEW_CARD ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
1416
2283
  }
1417
2284
  render() {
1418
- return (h(StyledHost, { key: '5fc5dad15215fe24b421f4d6c13355fb849b8a76' }, h("form", { key: '0e0330e5b11ee3ae0bef9e092fa2fb2a0a6af3e7' }, h("fieldset", { key: 'ee4c026ccda62a249e019a9e105e40ea465fc400' }, h("div", { key: '15a8a86fa5be8a545745260d76a8c3b2569d6a0e', class: "row gy-3" }, h("div", { key: 'bbbeed6ee96311394a876b4beb206e8e335184c2', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'da2a2009abe4348e25a5fc712557e81e9f6c4c1f', class: "col-12" }, h("justifi-button", { key: '050939c757999383226f281ee0eff1ec178be203', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
2285
+ return (h(StyledHost, { key: 'bf221d17739bf70c3f581f3b9791a725e76c3f35' }, h("form", { key: 'df117d42d4160f31df1fca5d6903967cc48ad573' }, h("fieldset", { key: '550e670feffb405c669d44c44eb9073f535c6cb6' }, h("div", { key: '8eff7d3ab19618da54161220b92641bf19bfa82d', class: "row gy-3" }, h("div", { key: 'bf9d19e92be74abf48ce65c97efb3f9df52d4c3c', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'eef1f4e1e03c2263efb51ae94085c5a3d73a9166', class: "col-12" }, h("justifi-button", { key: 'f0e5697e658236610da45c34e64a8cbb3f0f9d95', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
1419
2286
  }
1420
2287
  get host() { return getElement(this); }
1421
2288
  static get watchers() { return {
@@ -1424,4 +2291,4 @@ const TokenizePaymentMethod = class {
1424
2291
  }; }
1425
2292
  };
1426
2293
 
1427
- export { Summary as justifi_checkout_summary, Header as justifi_header, ModularCheckout as justifi_modular_checkout, PlaidPaymentMethod as justifi_plaid_payment_method, SavedPaymentMethods as justifi_saved_payment_methods, SezzlePaymentMethod as justifi_sezzle_payment_method, TokenizePaymentMethod as justifi_tokenize_payment_method };
2294
+ export { ApplePay as justifi_apple_pay, Summary as justifi_checkout_summary, Header as justifi_header, ModularCheckout as justifi_modular_checkout, PlaidPaymentMethod as justifi_plaid_payment_method, SavedPaymentMethods as justifi_saved_payment_methods, SezzlePaymentMethod as justifi_sezzle_payment_method, TokenizePaymentMethod as justifi_tokenize_payment_method };