@justifi/webcomponents 4.13.0 → 4.14.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 (131) hide show
  1. package/dist/cjs/{Api-ab34a402.js → Api-3bc6e43f.js} +7 -2
  2. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +6 -6
  3. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
  4. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
  8. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-owner-form.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-payment-form.cjs.entry.js +36 -2
  13. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{payment.service-336189d3.js → payment.service-019157e9.js} +3 -3
  22. package/dist/cjs/{payout.service-6012d576.js → payout.service-7203762f.js} +3 -3
  23. package/dist/cjs/webcomponents.cjs.js +1 -1
  24. package/dist/collection/api/Api.js +7 -2
  25. package/dist/collection/api/services/business.service.js +1 -1
  26. package/dist/collection/api/services/checkout.service.js +5 -3
  27. package/dist/collection/api/services/payment.service.js +2 -2
  28. package/dist/collection/api/services/payout.service.js +2 -2
  29. package/dist/collection/api/services/reports.service.js +1 -1
  30. package/dist/collection/components/business-forms/business-form/business-form.js +1 -1
  31. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  32. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  33. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  34. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  35. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  36. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  37. package/dist/collection/components/business-list/business-list.js +1 -1
  38. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
  39. package/dist/collection/components/payment-form/payment-form.js +54 -3
  40. package/dist/collection/components/payment-form/test/payment-form.spec.js +17 -34
  41. package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
  42. package/dist/collection/components/refund-form/refund-form.js +1 -1
  43. package/dist/collection/components/subaccount-details/subaccount-details.js +2 -2
  44. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  45. package/dist/docs.json +23 -2
  46. package/dist/esm/{Api-e9d568c7.js → Api-b09a2f6a.js} +7 -2
  47. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +6 -6
  48. package/dist/esm/justifi-billing-form_4.entry.js +1 -1
  49. package/dist/esm/justifi-business-details.entry.js +2 -2
  50. package/dist/esm/justifi-business-form.entry.js +2 -2
  51. package/dist/esm/justifi-business-list.entry.js +2 -2
  52. package/dist/esm/justifi-checkout.entry.js +6 -4
  53. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  54. package/dist/esm/justifi-owner-form.entry.js +2 -2
  55. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  56. package/dist/esm/justifi-payment-details.entry.js +2 -2
  57. package/dist/esm/justifi-payment-form.entry.js +36 -2
  58. package/dist/esm/justifi-payments-list.entry.js +2 -2
  59. package/dist/esm/justifi-payout-details.entry.js +2 -2
  60. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  61. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  62. package/dist/esm/justifi-refund-form.entry.js +2 -2
  63. package/dist/esm/justifi-subaccount-details.entry.js +3 -3
  64. package/dist/esm/justifi-subaccounts-list.entry.js +2 -2
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/{payment.service-2fdc5018.js → payment.service-03e274d7.js} +3 -3
  67. package/dist/esm/{payout.service-15064bcc.js → payout.service-9823d66d.js} +3 -3
  68. package/dist/esm/webcomponents.js +1 -1
  69. package/dist/module/Api.js +7 -2
  70. package/dist/module/business-additional-questions-form-step.js +1 -1
  71. package/dist/module/business-core-info-form-step.js +1 -1
  72. package/dist/module/business-owners-form-step.js +1 -1
  73. package/dist/module/business-representative-form-step.js +1 -1
  74. package/dist/module/justifi-business-details.js +1 -1
  75. package/dist/module/justifi-business-form.js +1 -1
  76. package/dist/module/justifi-business-list.js +1 -1
  77. package/dist/module/justifi-checkout.js +5 -3
  78. package/dist/module/justifi-gross-payment-chart.js +1 -1
  79. package/dist/module/justifi-payment-balance-transactions.js +1 -1
  80. package/dist/module/justifi-payment-form.js +37 -2
  81. package/dist/module/justifi-proceeds-list.js +1 -1
  82. package/dist/module/justifi-refund-form.js +1 -1
  83. package/dist/module/justifi-subaccount-details.js +2 -2
  84. package/dist/module/justifi-subaccounts-list.js +1 -1
  85. package/dist/module/legal-address-form-step.js +1 -1
  86. package/dist/module/owner-form.js +1 -1
  87. package/dist/module/payment-method-form.js +1 -1
  88. package/dist/module/payment.service.js +2 -2
  89. package/dist/module/payout.service.js +2 -2
  90. package/dist/types/api/Api.d.ts +5 -1
  91. package/dist/types/components/payment-form/payment-form.d.ts +7 -1
  92. package/dist/types/components.d.ts +3 -1
  93. package/dist/webcomponents/p-02993072.entry.js +1 -0
  94. package/dist/webcomponents/{p-02b18979.entry.js → p-0b8c1ffc.entry.js} +1 -1
  95. package/dist/webcomponents/p-1b959678.entry.js +1 -0
  96. package/dist/webcomponents/p-28181471.entry.js +1 -0
  97. package/dist/webcomponents/{p-13e2f667.js → p-29c0b182.js} +1 -1
  98. package/dist/webcomponents/{p-d7d40d26.entry.js → p-3d2f2937.entry.js} +1 -1
  99. package/dist/webcomponents/p-3d70b0f1.entry.js +1 -0
  100. package/dist/webcomponents/p-4824018b.entry.js +1 -0
  101. package/dist/webcomponents/p-598bb67c.entry.js +1 -0
  102. package/dist/webcomponents/{p-78b32fb9.entry.js → p-5dac370e.entry.js} +1 -1
  103. package/dist/webcomponents/p-617caf03.entry.js +1 -0
  104. package/dist/webcomponents/p-70d43109.entry.js +1 -0
  105. package/dist/webcomponents/{p-9ba31a6a.entry.js → p-7c5f15f8.entry.js} +1 -1
  106. package/dist/webcomponents/p-96a86f04.entry.js +1 -0
  107. package/dist/webcomponents/p-c211d068.js +1 -0
  108. package/dist/webcomponents/p-c3d5f7de.entry.js +1 -0
  109. package/dist/webcomponents/p-c48a99b9.entry.js +1 -0
  110. package/dist/webcomponents/p-d2fcc58b.entry.js +1 -0
  111. package/dist/webcomponents/p-d57f5f01.entry.js +1 -0
  112. package/dist/webcomponents/p-edb66ae0.js +1 -0
  113. package/dist/webcomponents/p-f5ae07c4.entry.js +1 -0
  114. package/dist/webcomponents/webcomponents.esm.js +1 -1
  115. package/package.json +1 -1
  116. package/dist/webcomponents/p-101b2648.entry.js +0 -1
  117. package/dist/webcomponents/p-1885c478.entry.js +0 -1
  118. package/dist/webcomponents/p-23099f1f.entry.js +0 -1
  119. package/dist/webcomponents/p-41bdee27.entry.js +0 -1
  120. package/dist/webcomponents/p-4c84952f.entry.js +0 -1
  121. package/dist/webcomponents/p-731085e3.js +0 -1
  122. package/dist/webcomponents/p-7e334dce.entry.js +0 -1
  123. package/dist/webcomponents/p-7faacb1e.entry.js +0 -1
  124. package/dist/webcomponents/p-a9af8f40.entry.js +0 -1
  125. package/dist/webcomponents/p-b81afd51.entry.js +0 -1
  126. package/dist/webcomponents/p-bb58e656.entry.js +0 -1
  127. package/dist/webcomponents/p-bc12b8b9.js +0 -1
  128. package/dist/webcomponents/p-bfe7c55c.entry.js +0 -1
  129. package/dist/webcomponents/p-cb31488b.entry.js +0 -1
  130. package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
  131. package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
20
+ return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form.cjs\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout.cjs\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"authToken\":[1,\"auth-token\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details.cjs\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions.cjs\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form.cjs\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list.cjs\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form.cjs\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form.cjs\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form.cjs\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2.cjs\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4.cjs\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4.cjs\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary.cjs\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5.cjs\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2.cjs\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4.cjs\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4.cjs\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2.cjs\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -1,8 +1,13 @@
1
1
  import { v4 as uuidv4 } from "uuid";
2
- const Api = (authToken, apiOrigin) => {
2
+ const Api = ({ authToken, apiOrigin }) => {
3
3
  async function getAuthorizationHeader() {
4
+ if (!authToken) {
5
+ return {
6
+ 'Content-Type': 'application/json',
7
+ };
8
+ }
4
9
  return {
5
- 'Authorization': `Bearer ${authToken}`,
10
+ Authorization: `Bearer ${authToken}`,
6
11
  'Idempotency-Key': uuidv4(),
7
12
  'Content-Type': 'application/json',
8
13
  };
@@ -3,6 +3,6 @@ import Api from "../Api";
3
3
  export class BusinessService {
4
4
  async fetchBusiness(businessId, authToken) {
5
5
  const endpoint = `entities/business/${businessId}`;
6
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
6
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
7
7
  }
8
8
  }
@@ -3,14 +3,16 @@ import { config } from "../../../config";
3
3
  export class CheckoutService {
4
4
  async fetchCheckout(authToken, checkoutId) {
5
5
  const endpoint = `checkouts/${checkoutId}`;
6
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
6
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
7
7
  }
8
8
  async complete(authToken, checkoutId, payment) {
9
9
  const endpoint = `checkouts/${checkoutId}/complete`;
10
- const payload = { payment_mode: payment.payment_mode };
10
+ const payload = {
11
+ payment_mode: payment.payment_mode,
12
+ };
11
13
  if (payment.payment_token) {
12
14
  payload.payment_token = payment.payment_token;
13
15
  }
14
- return Api(authToken, config.proxyApiOrigin).post(endpoint, JSON.stringify(payload));
16
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
15
17
  }
16
18
  }
@@ -2,12 +2,12 @@ import { Api } from "..";
2
2
  import { config } from "../../../config";
3
3
  export class PaymentService {
4
4
  async fetchPayments(accountId, authToken, params) {
5
- const api = Api(authToken, config.proxyApiOrigin);
5
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
6
6
  const endpoint = `account/${accountId}/payments`;
7
7
  return api.get(endpoint, params);
8
8
  }
9
9
  async fetchPayment(paymentId, authToken) {
10
10
  const endpoint = `payments/${paymentId}`;
11
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
11
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
12
12
  }
13
13
  }
@@ -2,12 +2,12 @@ import { Api } from "..";
2
2
  import { config } from "../../../config";
3
3
  export class PayoutService {
4
4
  async fetchPayouts(accountId, authToken, params) {
5
- const api = Api(authToken, config.proxyApiOrigin);
5
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
6
6
  const endpoint = `account/${accountId}/payouts`;
7
7
  return api.get(endpoint, params);
8
8
  }
9
9
  async fetchPayout(payoutId, authToken) {
10
- const api = Api(authToken, config.proxyApiOrigin);
10
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
11
11
  const endpoint = `payouts/${payoutId}`;
12
12
  return api.get(endpoint);
13
13
  }
@@ -2,7 +2,7 @@ import { config } from "../../../config";
2
2
  import Api from "../Api";
3
3
  export class ReportsService {
4
4
  async fetchGrossVolumeChartData(accountId, authToken) {
5
- const api = Api(authToken, config.proxyApiOrigin);
5
+ const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
6
6
  const endpoint = `account/${accountId}/reports/gross_volume`;
7
7
  return api.get(endpoint);
8
8
  }
@@ -84,7 +84,7 @@ export class BusinessForm {
84
84
  if (!this.businessId)
85
85
  console.error(missingBusinessIdMessage);
86
86
  this.formController = new FormController(businessFormSchema);
87
- this.api = Api(this.authToken, config.proxyApiOrigin);
87
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
88
88
  this.fetchData();
89
89
  }
90
90
  handleReponse(response) {
@@ -139,7 +139,7 @@ export class BusinessOwnerForm {
139
139
  if (!this.authToken)
140
140
  console.error(missingAuthTokenMessage);
141
141
  this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
142
- this.api = Api(this.authToken, config.proxyApiOrigin);
142
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
143
143
  this.fetchData();
144
144
  }
145
145
  componentDidLoad() {
@@ -76,7 +76,7 @@ export class AdditionalQuestionsFormStep {
76
76
  if (!this.businessId)
77
77
  console.error(missingBusinessIdMessage);
78
78
  this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
79
- this.api = Api(this.authToken, config.proxyApiOrigin);
79
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
80
80
  this.fetchData();
81
81
  }
82
82
  componentDidLoad() {
@@ -83,7 +83,7 @@ export class BusinessCoreInfoFormStep {
83
83
  if (!this.businessId)
84
84
  console.error(missingBusinessIdMessage);
85
85
  this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
86
- this.api = Api(this.authToken, config.proxyApiOrigin);
86
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
87
87
  this.fetchData();
88
88
  }
89
89
  componentDidLoad() {
@@ -124,7 +124,7 @@ export class BusinessOwnersFormStep {
124
124
  console.error(missingAuthTokenMessage);
125
125
  if (!this.businessId)
126
126
  console.error(missingBusinessIdMessage);
127
- this.api = Api(this.authToken, config.proxyApiOrigin);
127
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
128
128
  this.fetchData();
129
129
  }
130
130
  onOwnersUpdated() {
@@ -84,7 +84,7 @@ export class BusinessRepresentativeFormStep {
84
84
  if (!this.businessId)
85
85
  console.error(missingBusinessIdMessage);
86
86
  this.formController = new FormController(identitySchema('representative', this.allowOptionalFields));
87
- this.api = Api(this.authToken, config.proxyApiOrigin);
87
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
88
88
  this.fetchData();
89
89
  }
90
90
  componentDidLoad() {
@@ -77,7 +77,7 @@ export class LegalAddressFormStep {
77
77
  if (!this.businessId)
78
78
  console.error(missingBusinessIdMessage);
79
79
  this.formController = new FormController(addressSchema(this.allowOptionalFields));
80
- this.api = Api(this.authToken, config.proxyApiOrigin);
80
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
81
81
  this.fetchData();
82
82
  }
83
83
  componentDidLoad() {
@@ -60,7 +60,7 @@ export class BusinessList {
60
60
  this.loading = true;
61
61
  const endpoint = `entities/business`;
62
62
  let accountIDParam = { account_id: this.accountId };
63
- const response = await Api(this.authToken, config.proxyApiOrigin)
63
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin })
64
64
  .get(endpoint, Object.assign(Object.assign({}, accountIDParam), this.params));
65
65
  if (!response.error) {
66
66
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -37,7 +37,7 @@ export class PaymentBalanceTransactions {
37
37
  return;
38
38
  }
39
39
  const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
40
- const response = await Api(this.authToken, config.proxyApiOrigin).get(endpoint, this.params);
40
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint, this.params);
41
41
  if (!response.error) {
42
42
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
43
43
  this.balanceTransactions = response.data.map(dataItem => new PaymentBalanceTransaction(dataItem));
@@ -10,12 +10,23 @@ export class PaymentForm {
10
10
  this.card = true;
11
11
  this.email = undefined;
12
12
  this.clientId = undefined;
13
+ this.authToken = undefined;
13
14
  this.accountId = undefined;
14
15
  this.submitButtonText = undefined;
15
16
  this.submitButtonEnabled = true;
16
17
  this.isLoading = false;
17
18
  this.selectedPaymentMethodType = PaymentMethodTypes.card;
18
19
  }
20
+ componentWillLoad() {
21
+ if (!this.validateProps()) {
22
+ this.errorEvent.emit({
23
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
24
+ message: 'clientId or authToken is required',
25
+ severity: ComponentErrorSeverity.ERROR
26
+ });
27
+ this.submitButtonEnabled = false;
28
+ }
29
+ }
19
30
  connectedCallback() {
20
31
  loadFontsOnParent();
21
32
  }
@@ -28,10 +39,33 @@ export class PaymentForm {
28
39
  async disableSubmitButton() {
29
40
  this.submitButtonEnabled = false;
30
41
  }
42
+ showPaymentMethodTypeSelector() {
43
+ return this.card && this.bankAccount;
44
+ }
45
+ getSelectedPaymentMethodType() {
46
+ if (this.showPaymentMethodTypeSelector()) {
47
+ return this.selectedPaymentMethodType;
48
+ }
49
+ else if (this.card) {
50
+ return PaymentMethodTypes.card;
51
+ }
52
+ else if (this.bankAccount) {
53
+ return PaymentMethodTypes.bankAccount;
54
+ }
55
+ else {
56
+ return PaymentMethodTypes.card;
57
+ }
58
+ }
31
59
  paymentMethodSelectedHandler(event) {
32
60
  const paymentMethodType = event.detail;
33
61
  this.selectedPaymentMethodType = paymentMethodType;
34
62
  }
63
+ validateProps() {
64
+ return !!(this.clientId || this.authToken);
65
+ }
66
+ getToken() {
67
+ return this.authToken || this.clientId;
68
+ }
35
69
  async submit(event) {
36
70
  event.preventDefault();
37
71
  if (!this.paymentMethodFormRef || !this.billingFormRef)
@@ -44,7 +78,7 @@ export class PaymentForm {
44
78
  try {
45
79
  const billingFormFieldValues = await this.billingFormRef.getValues();
46
80
  const paymentMethodData = Object.assign({ email: this.email }, billingFormFieldValues);
47
- const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.clientId, paymentMethodData, this.accountId);
81
+ const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.getToken(), paymentMethodData, this.accountId);
48
82
  if (tokenizeResponse.error) {
49
83
  this.errorEvent.emit({
50
84
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
@@ -66,7 +100,7 @@ export class PaymentForm {
66
100
  }
67
101
  }
68
102
  render() {
69
- return (h(Host, null, h("form", { class: "row gy-3" }, this.card && this.bankAccount && (h("div", { class: "col-12" }, h("justifi-payment-method-selector", { selectedPaymentMethodType: this.selectedPaymentMethodType, onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { class: "col-12" }, h("justifi-payment-method-form", { "payment-method-form-type": this.selectedPaymentMethodType, iframeOrigin: config.iframeOrigin, ref: el => {
103
+ return (h(Host, null, h("form", { class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { class: "col-12" }, h("justifi-payment-method-selector", { selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { class: "col-12" }, h("justifi-payment-method-form", { "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
70
104
  if (el) {
71
105
  this.paymentMethodFormRef = el;
72
106
  }
@@ -153,7 +187,7 @@ export class PaymentForm {
153
187
  "references": {}
154
188
  },
155
189
  "required": false,
156
- "optional": false,
190
+ "optional": true,
157
191
  "docs": {
158
192
  "tags": [],
159
193
  "text": ""
@@ -161,6 +195,23 @@ export class PaymentForm {
161
195
  "attribute": "client-id",
162
196
  "reflect": false
163
197
  },
198
+ "authToken": {
199
+ "type": "string",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "string",
203
+ "resolved": "string",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": true,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "auth-token",
213
+ "reflect": false
214
+ },
164
215
  "accountId": {
165
216
  "type": "string",
166
217
  "mutable": false,
@@ -2,11 +2,25 @@ import { h } from "@stencil/core";
2
2
  import { newSpecPage } from "@stencil/core/testing";
3
3
  import { PaymentForm } from "../payment-form";
4
4
  import { PaymentMethodTypes } from "../../../api";
5
- import { config } from "../../../../config";
6
5
  import { PaymentMethodSelector } from "../payment-method-selector";
7
6
  import { PaymentMethodForm } from "../../payment-method-form/payment-method-form";
8
7
  import { BillingForm } from "../../billing-form/billing-form";
9
8
  describe('justifi-payment-form', () => {
9
+ it('should throw error if both clientId and authToken are not provided', async () => {
10
+ const errorSpy = jest.fn();
11
+ const page = await newSpecPage({
12
+ components: [PaymentForm],
13
+ template: () => h("justifi-payment-form", { "onError-event": errorSpy }),
14
+ });
15
+ await page.waitForChanges();
16
+ expect(errorSpy).toHaveBeenCalledWith(expect.objectContaining({
17
+ detail: {
18
+ errorCode: 'missing-props',
19
+ message: 'clientId or authToken is required',
20
+ severity: 'error',
21
+ }
22
+ }));
23
+ });
10
24
  it('should update submitButtonEnabled state when enableSubmitButton method is called', async () => {
11
25
  // Mock component
12
26
  const mockComponent = new PaymentForm();
@@ -131,44 +145,13 @@ describe('justifi-payment-form', () => {
131
145
  });
132
146
  // Render Testing
133
147
  it('should correctly render the child components based on the given props and state', async () => {
134
- // Set up new PaymentForm with specific props and state
135
- const component = new PaymentForm();
136
- component.bankAccount = true;
137
- component.card = true;
138
- component.email = 'test@test.com';
139
- component.clientId = 'abc123';
140
- component.accountId = 'def456';
141
- component.submitButtonText = 'Submit';
142
- // Cast to any to bypass type checker and directly set private properties
143
- component.submitButtonEnabled = true;
144
- component.selectedPaymentMethodType = PaymentMethodTypes.card;
145
- component.allowedPaymentMethodTypes = [PaymentMethodTypes.card, PaymentMethodTypes.bankAccount];
146
148
  // Render the component
147
149
  const { root } = await newSpecPage({
148
150
  components: [PaymentForm],
149
- html: `<justifi-payment-form payment-method-form-type="card"></justifi-payment-form>`,
151
+ template: () => (h("justifi-payment-form", { bankAccount: true, card: true, email: "test@test.com", clientId: "abc123", accountId: "def456", "submit-button-text": "Submit", "payment-method-form-type": "card" })),
150
152
  });
151
153
  // Assert that the rendered output is correct
152
- expect(root).toEqualHtml(`
153
- <justifi-payment-form payment-method-form-type="card">
154
- <mock:shadow-root>
155
- <form class="gy-3 row">
156
- <div class="col-12">
157
- <justifi-payment-method-form payment-method-form-type="card" iframeorigin="${config.iframeOrigin}"></justifi-payment-method-form>
158
- </div>
159
- <div class="col-12">
160
- <justifi-billing-form legend="Billing Info"></justifi-billing-form>
161
- </div>
162
- <slot name="insurance"></slot>
163
- <div class="col-12">
164
- <button class="btn btn-primary jfi-submit-button" data-testid="submit-button" type="submit">
165
- Submit
166
- </button>
167
- </div>
168
- </form>
169
- </mock:shadow-root>
170
- </justifi-payment-form>
171
- `);
154
+ expect(root).toMatchSnapshot();
172
155
  });
173
156
  it('emits error event when submit fails', async () => {
174
157
  const clientId = 'some-client';
@@ -73,7 +73,7 @@ export class ProceedsList {
73
73
  }
74
74
  this.loading = true;
75
75
  const endpoint = `account/${this.accountId}/proceeds`;
76
- const response = await Api(this.authToken, config.privateApiOrigin)
76
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin })
77
77
  .get(endpoint, this.params);
78
78
  if (!response.error) {
79
79
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -70,7 +70,7 @@ export class RefundForm {
70
70
  if (!this.authToken) {
71
71
  console.warn('Warning: Missing auth-token.');
72
72
  }
73
- this.api = Api(this.authToken, config.proxyApiOrigin);
73
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
74
74
  }
75
75
  render() {
76
76
  var _a;
@@ -21,7 +21,7 @@ export class SubaccountDetails {
21
21
  this.fetchData();
22
22
  }
23
23
  async fetchOnboardingData() {
24
- const api = Api(this.authToken, '');
24
+ const api = Api({ authToken: this.authToken, apiOrigin: '' });
25
25
  const endpoint = `onboarding/${this.subaccountId}`;
26
26
  const response = await api.get(endpoint);
27
27
  if (!response.error) {
@@ -32,7 +32,7 @@ export class SubaccountDetails {
32
32
  }
33
33
  }
34
34
  async fetchSubAccountData() {
35
- const api = Api(this.authToken, config.privateApiOrigin);
35
+ const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
36
36
  const endpoint = `account/${this.accountId}/seller_accounts/${this.subaccountId}`;
37
37
  const response = await api.get(endpoint);
38
38
  if (!response.error) {
@@ -36,7 +36,7 @@ export class SubaccountsList {
36
36
  return;
37
37
  }
38
38
  this.loading = true;
39
- const api = Api(this.authToken, config.privateApiOrigin);
39
+ const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
40
40
  const endpoint = `account/${this.accountId}/seller_accounts`;
41
41
  const response = await api.get(endpoint, this.params);
42
42
  if (!response.error) {
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-05-23T19:32:09",
2
+ "timestamp": "2024-05-29T18:38:41",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.10.0",
@@ -6014,6 +6014,27 @@
6014
6014
  "optional": true,
6015
6015
  "required": false
6016
6016
  },
6017
+ {
6018
+ "name": "authToken",
6019
+ "type": "string",
6020
+ "complexType": {
6021
+ "original": "string",
6022
+ "resolved": "string",
6023
+ "references": {}
6024
+ },
6025
+ "mutable": false,
6026
+ "attr": "auth-token",
6027
+ "reflectToAttr": false,
6028
+ "docs": "",
6029
+ "docsTags": [],
6030
+ "values": [
6031
+ {
6032
+ "type": "string"
6033
+ }
6034
+ ],
6035
+ "optional": true,
6036
+ "required": false
6037
+ },
6017
6038
  {
6018
6039
  "name": "bankAccount",
6019
6040
  "type": "boolean",
@@ -6075,7 +6096,7 @@
6075
6096
  "type": "string"
6076
6097
  }
6077
6098
  ],
6078
- "optional": false,
6099
+ "optional": true,
6079
6100
  "required": false
6080
6101
  },
6081
6102
  {
@@ -63,10 +63,15 @@ function v4(options, buf, offset) {
63
63
  return unsafeStringify(rnds);
64
64
  }
65
65
 
66
- const Api = (authToken, apiOrigin) => {
66
+ const Api = ({ authToken, apiOrigin }) => {
67
67
  async function getAuthorizationHeader() {
68
+ if (!authToken) {
69
+ return {
70
+ 'Content-Type': 'application/json',
71
+ };
72
+ }
68
73
  return {
69
- 'Authorization': `Bearer ${authToken}`,
74
+ Authorization: `Bearer ${authToken}`,
70
75
  'Idempotency-Key': v4(),
71
76
  'Content-Type': 'application/json',
72
77
  };