@justifi/webcomponents 6.12.5 → 6.12.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 (320) hide show
  1. package/dist/cjs/{Analytics-CITnMj7H.js → Analytics-CexlbLRl.js} +2 -2
  2. package/dist/cjs/{Plaid-BRSyOOuw.js → Plaid-KasiL5mp.js} +14 -19
  3. package/dist/cjs/{additional-questions-form-step_14.cjs.entry.js → additional-questions-form-step_15.cjs.entry.js} +378 -169
  4. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  5. package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  7. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +21 -0
  8. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{business-form-options-D_nM7NDk.js → business-form-options-CnlrfbQ6.js} +51 -0
  10. package/dist/cjs/{business-identity-schema-DuFGX6_i.js → business-identity-schema-CC1wOwXd.js} +11 -7
  11. package/dist/cjs/{business.service-Z9OACEQL.js → business.service-BBovho58.js} +1 -1
  12. package/dist/cjs/card-form.cjs.entry.js +2 -2
  13. package/dist/cjs/{check-pkg-version-CZMgXZID.js → check-pkg-version-jeIQGJ8A.js} +1 -1
  14. package/dist/cjs/{checkout.service-BZOyqXgW.js → checkout.service-C0M9hmsL.js} +1 -1
  15. package/dist/cjs/{country-config-aJp8ScEs.js → country-config-Ck-eEeZZ.js} +2 -0
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
  17. package/dist/cjs/{event-types-AU1B76Vm.js → event-types-DDNVjmfR.js} +1 -1
  18. package/dist/cjs/form-address-fields_3.cjs.entry.js +1 -1
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +5 -4
  20. package/dist/cjs/{get-business-aR-C83KX.js → get-business-Ggw-UjXj.js} +2 -2
  21. package/dist/cjs/{get-payment-details-dwhA02Zl.js → get-payment-details-BVKRwME1.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-B1jmSa2d.js → get-subaccounts-RRmcS9xU.js} +2 -2
  23. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  24. package/dist/cjs/{index.esm-C1ZPG85l.js → index.esm-BNETBIV_.js} +0 -18
  25. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +8 -8
  26. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  29. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  31. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  32. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  34. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
  37. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
  41. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  50. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-DOiqjXmm.js → package-CDegPd7E.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BiSpysjW.js → payment-provisioning-actions-Cn8bgHKu.js} +2 -2
  61. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +3 -2
  62. package/dist/cjs/{payment.service-ByrgA_QZ.js → payment.service-CbIxt30x.js} +1 -1
  63. package/dist/cjs/{payout.service-CnQm_BpU.js → payout.service-DVMvsdAf.js} +1 -1
  64. package/dist/cjs/{payouts-status-AuS3Mp0V.js → payouts-status-CzS2CLGW.js} +2 -2
  65. package/dist/cjs/{plaid.service-Dlb8EUR8.js → plaid.service-DNT_DX6z.js} +1 -1
  66. package/dist/cjs/{schema-validations-DNPcvDh5.js → schema-validations-DackMxv7.js} +11 -8
  67. package/dist/cjs/styled-host-Ch0-dxF-.js +11 -0
  68. package/dist/cjs/{terminal.service-BdwHQ3Vv.js → terminal.service-BBHixg-d.js} +1 -1
  69. package/dist/cjs/{utils-FVGp6se3.js → utils-kDsk4nqH.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/api/Document.js +14 -7
  72. package/dist/collection/collection-manifest.json +2 -0
  73. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  74. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -3
  75. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -2
  76. package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
  77. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
  78. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -114
  79. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  80. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +8 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -2
  82. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +435 -0
  83. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +52 -0
  84. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +72 -0
  85. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  86. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +3 -2
  87. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +10 -38
  88. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  89. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +7 -3
  90. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -5
  91. package/dist/collection/components/business-forms/utils/business-form-options.js +50 -0
  92. package/dist/collection/components/business-forms/utils/country-config.js +2 -0
  93. package/dist/collection/ui-components/form/form-control-file.js +1 -1
  94. package/dist/docs.json +496 -64
  95. package/dist/esm/{Analytics-Cg17Xhj_.js → Analytics-5J6H0ALl.js} +2 -2
  96. package/dist/esm/{Plaid-l6nNIjab.js → Plaid-BM3JUIG5.js} +15 -19
  97. package/dist/esm/{additional-questions-form-step_14.entry.js → additional-questions-form-step_15.entry.js} +377 -169
  98. package/dist/esm/additional-questions_5.entry.js +8 -8
  99. package/dist/esm/additional-statement_8.entry.js +1 -1
  100. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  101. package/dist/esm/bank-account-document-form-inputs.entry.js +19 -0
  102. package/dist/esm/bank-account-form.entry.js +2 -2
  103. package/dist/esm/{business-form-options-DRalxlqN.js → business-form-options-DXjZp4Rl.js} +51 -1
  104. package/dist/esm/{business-identity-schema-0Q3kck3C.js → business-identity-schema-D8L_UfWl.js} +11 -7
  105. package/dist/esm/{business.service-C31wbMVs.js → business.service-C4BD3pf7.js} +1 -1
  106. package/dist/esm/card-form.entry.js +2 -2
  107. package/dist/esm/{check-pkg-version-D-rHqtUI.js → check-pkg-version-C7cHTIM0.js} +1 -1
  108. package/dist/esm/{checkout.service-cVdOGDuI.js → checkout.service-DmWeKNQs.js} +1 -1
  109. package/dist/esm/{country-config-CdvhLcnT.js → country-config-BW2dUoTJ.js} +2 -0
  110. package/dist/esm/dispute-notification_2.entry.js +6 -6
  111. package/dist/esm/{event-types-DalU_6SB.js → event-types-eIqsrwmW.js} +1 -1
  112. package/dist/esm/form-address-fields_3.entry.js +1 -1
  113. package/dist/esm/form-control-number_2.entry.js +5 -4
  114. package/dist/esm/{get-business-Gg6qn5on.js → get-business-DtFHdc37.js} +2 -2
  115. package/dist/esm/{get-payment-details-BiWgSJau.js → get-payment-details-26GxiYgv.js} +2 -2
  116. package/dist/esm/{get-subaccounts-CkjZeR9U.js → get-subaccounts-xkGMPstt.js} +2 -2
  117. package/dist/esm/hidden-input_2.entry.js +1 -1
  118. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-KCSohgHx.js} +1 -18
  119. package/dist/esm/justifi-apple-pay_11.entry.js +8 -8
  120. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  121. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  122. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  123. package/dist/esm/justifi-billing-form.entry.js +1 -1
  124. package/dist/esm/justifi-business-details.entry.js +8 -8
  125. package/dist/esm/justifi-business-form.entry.js +13 -13
  126. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  127. package/dist/esm/justifi-card-form.entry.js +5 -5
  128. package/dist/esm/justifi-checkout.entry.js +5 -5
  129. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  130. package/dist/esm/justifi-checkouts-list.entry.js +8 -8
  131. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  132. package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
  133. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  134. package/dist/esm/justifi-payment-details.entry.js +8 -8
  135. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  136. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  137. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  138. package/dist/esm/justifi-payments-list.entry.js +7 -7
  139. package/dist/esm/justifi-payout-details.entry.js +8 -8
  140. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  141. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  142. package/dist/esm/justifi-payouts-list.entry.js +9 -9
  143. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  144. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  145. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  146. package/dist/esm/justifi-skeleton.entry.js +1 -1
  147. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  148. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
  149. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
  150. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/{package-B6YPrwyC.js → package-8R9xLun-.js} +1 -1
  153. package/dist/esm/payment-method-option.entry.js +1 -1
  154. package/dist/esm/{payment-provisioning-actions-cl5xIYnF.js → payment-provisioning-actions-fWdNDUdq.js} +2 -2
  155. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -2
  156. package/dist/esm/{payment.service-5_u-UzTY.js → payment.service-CWR7jF-K.js} +1 -1
  157. package/dist/esm/{payout.service-D2zS5y8N.js → payout.service-CFU362cH.js} +1 -1
  158. package/dist/esm/{payouts-status-DCjCGTaa.js → payouts-status-D2G7FKu1.js} +2 -2
  159. package/dist/esm/{plaid.service-BiJ65YG8.js → plaid.service-0hd1i5Ga.js} +1 -1
  160. package/dist/esm/{schema-validations-A1o1biOB.js → schema-validations-CjqWFLKt.js} +11 -8
  161. package/dist/esm/styled-host-D84RBv1W.js +9 -0
  162. package/dist/esm/{terminal.service-CIxDfM7V.js → terminal.service-Dr6dERcJ.js} +1 -1
  163. package/dist/esm/{utils-C1B2hVAB.js → utils-q7KOrlSX.js} +1 -1
  164. package/dist/esm/webcomponents.js +1 -1
  165. package/dist/module/Plaid.js +15 -19
  166. package/dist/module/additional-questions-form-step2.js +11 -5
  167. package/dist/module/bank-account-document-form-inputs.js +55 -1
  168. package/dist/module/business-bank-account-form-step2.js +24 -177
  169. package/dist/module/business-core-info-form-step2.js +2 -2
  170. package/dist/module/business-core-info-schema.js +1 -1
  171. package/dist/module/business-core-info2.js +3 -3
  172. package/dist/module/business-documents-on-file2.js +1 -1
  173. package/dist/module/business-form-options.js +51 -1
  174. package/dist/module/business-identity-schema.js +7 -3
  175. package/dist/module/business-owners-form-step2.js +8 -0
  176. package/dist/module/business-representative-form-inputs2.js +5 -3
  177. package/dist/module/business-representative2.js +6 -5
  178. package/dist/module/button.js +1 -1
  179. package/dist/module/country-config.js +2 -0
  180. package/dist/module/document-upload-form-step.d.ts +11 -0
  181. package/dist/module/document-upload-form-step.js +6 -0
  182. package/dist/module/document-upload-form-step2.js +397 -0
  183. package/dist/module/document-upload-list.d.ts +11 -0
  184. package/dist/module/document-upload-list.js +6 -0
  185. package/dist/module/document-upload-list2.js +46 -0
  186. package/dist/module/form-control-number2.js +1 -1
  187. package/dist/module/form-control-textarea2.js +1 -1
  188. package/dist/module/form.js +1 -18
  189. package/dist/module/hidden-input2.js +1 -1
  190. package/dist/module/iframe-input2.js +1 -1
  191. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  192. package/dist/module/justifi-checkouts-list.js +2 -2
  193. package/dist/module/justifi-dispute-management.js +1 -1
  194. package/dist/module/justifi-modular-checkout2.js +1 -1
  195. package/dist/module/justifi-order-terminals.js +2 -2
  196. package/dist/module/justifi-payment-details.js +1 -1
  197. package/dist/module/justifi-payment-provisioning.js +33 -27
  198. package/dist/module/justifi-payment-transactions-list.js +2 -2
  199. package/dist/module/justifi-payments-list.js +1 -1
  200. package/dist/module/justifi-payout-details.js +1 -1
  201. package/dist/module/justifi-payout-transactions-list.js +2 -2
  202. package/dist/module/justifi-payouts-list-filters.js +1 -1
  203. package/dist/module/justifi-payouts-list.js +2 -2
  204. package/dist/module/justifi-refund-payment.js +1 -1
  205. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  206. package/dist/module/justifi-terminal-orders-list.js +2 -2
  207. package/dist/module/justifi-terminals-list-filters.js +1 -1
  208. package/dist/module/justifi-terminals-list.js +2 -2
  209. package/dist/module/owner-form-inputs2.js +5 -3
  210. package/dist/module/owner-form2.js +10 -1
  211. package/dist/module/package.js +1 -1
  212. package/dist/module/parts.js +1 -1
  213. package/dist/module/payment-provisioning-actions.js +1 -1
  214. package/dist/module/payment-provisioning-form-steps2.js +35 -28
  215. package/dist/module/plaid-verification2.js +1 -1
  216. package/dist/module/schema-validations.js +8 -5
  217. package/dist/module/skeleton.js +1 -1
  218. package/dist/module/styled-host.js +1 -1
  219. package/dist/module/table.js +1 -1
  220. package/dist/module/terminal-quantity-selector2.js +1 -1
  221. package/dist/types/api/Document.d.ts +15 -2
  222. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  223. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -12
  224. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +44 -0
  225. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +6 -0
  226. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +44 -0
  227. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +1 -0
  228. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  229. package/dist/types/components/business-forms/utils/business-form-options.d.ts +1 -0
  230. package/dist/types/components.d.ts +67 -0
  231. package/dist/webcomponents/{p-oTtn8xDw.js → p--RbNhyet.js} +1 -1
  232. package/dist/webcomponents/{p-d5e7291a.entry.js → p-04d6d725.entry.js} +1 -1
  233. package/dist/webcomponents/{p-8e821593.entry.js → p-086f7eea.entry.js} +1 -1
  234. package/dist/webcomponents/{p-ca87c609.entry.js → p-0a4fcb15.entry.js} +1 -1
  235. package/dist/webcomponents/{p-b0b6083f.entry.js → p-0b169fac.entry.js} +1 -1
  236. package/dist/webcomponents/{p-f1b9cbf0.entry.js → p-0e4cda77.entry.js} +1 -1
  237. package/dist/webcomponents/{p-b62ff001.entry.js → p-1e34c488.entry.js} +1 -1
  238. package/dist/webcomponents/{p-c4415366.entry.js → p-29b82954.entry.js} +1 -1
  239. package/dist/webcomponents/{p-89844a98.entry.js → p-2e063c5d.entry.js} +1 -1
  240. package/dist/webcomponents/p-37676092.entry.js +1 -0
  241. package/dist/webcomponents/p-3960e6b7.entry.js +1 -0
  242. package/dist/webcomponents/{p-e322dcba.entry.js → p-3bcac405.entry.js} +1 -1
  243. package/dist/webcomponents/{p-c4767c7b.entry.js → p-3e10a0de.entry.js} +1 -1
  244. package/dist/webcomponents/{p-8964f4ca.entry.js → p-48a866ae.entry.js} +1 -1
  245. package/dist/webcomponents/{p-3cefb032.entry.js → p-4b14b7e7.entry.js} +1 -1
  246. package/dist/webcomponents/p-54ee2a30.entry.js +1 -0
  247. package/dist/webcomponents/{p-397b28ba.entry.js → p-562447ad.entry.js} +4 -4
  248. package/dist/webcomponents/p-58adef16.entry.js +1 -0
  249. package/dist/webcomponents/{p-afe714cb.entry.js → p-5f071ee0.entry.js} +1 -1
  250. package/dist/webcomponents/{p-d1eabad2.entry.js → p-6b21947c.entry.js} +1 -1
  251. package/dist/webcomponents/{p-1f34b2f7.entry.js → p-80fdd013.entry.js} +1 -1
  252. package/dist/webcomponents/{p-7ff9ce05.entry.js → p-85c0abdb.entry.js} +1 -1
  253. package/dist/webcomponents/{p-0708cb76.entry.js → p-86eb32d8.entry.js} +1 -1
  254. package/dist/webcomponents/p-8R9xLun-.js +1 -0
  255. package/dist/webcomponents/{p-60c65da4.entry.js → p-8db8d7e7.entry.js} +1 -1
  256. package/dist/webcomponents/{p-65281b33.entry.js → p-8ed1bc07.entry.js} +1 -1
  257. package/dist/webcomponents/p-92d8a14b.entry.js +1 -0
  258. package/dist/webcomponents/{p-63e88b48.entry.js → p-92e7ce54.entry.js} +1 -1
  259. package/dist/webcomponents/{p-9153c121.entry.js → p-947950cc.entry.js} +1 -1
  260. package/dist/webcomponents/{p-c108cd71.entry.js → p-9ce2a98a.entry.js} +1 -1
  261. package/dist/webcomponents/p-B1yVkh15.js +1 -0
  262. package/dist/webcomponents/{p-Bt4GjEWL.js → p-BBSnDYJw.js} +1 -1
  263. package/dist/webcomponents/{p-av6jyzyC.js → p-BSyTbuZy.js} +1 -1
  264. package/dist/webcomponents/{p-APOabprT.js → p-BrFax4_P.js} +1 -1
  265. package/dist/webcomponents/p-BzXQDB0t.js +1 -0
  266. package/dist/webcomponents/{p-BxKbnILQ.js → p-C-zuQNNP.js} +1 -1
  267. package/dist/webcomponents/{p-Cm9f5fyh.js → p-CDu7TeCZ.js} +1 -1
  268. package/dist/webcomponents/{p-BJu1-9kE.js → p-CL8LyqRI.js} +1 -1
  269. package/dist/webcomponents/{p-DO9lqnbB.js → p-CeW0EPHy.js} +1 -1
  270. package/dist/webcomponents/{p-fE5A37L5.js → p-Cz0yhyYu.js} +1 -1
  271. package/dist/webcomponents/p-D9ZHVy-j.js +1 -0
  272. package/dist/webcomponents/{p-CKiAlBsU.js → p-D9sqTVmd.js} +1 -1
  273. package/dist/webcomponents/p-DV4n8kZd.js +1 -0
  274. package/dist/webcomponents/{p-Dk26hk5T.js → p-DdeBubpX.js} +1 -1
  275. package/dist/webcomponents/{p-DjjAx7PF.js → p-DvnFba1A.js} +1 -1
  276. package/dist/webcomponents/p-DzEdYT8R.js +1 -0
  277. package/dist/webcomponents/{p-NZS8uCtH.js → p-Dzv0P2Ly.js} +1 -1
  278. package/dist/webcomponents/p-a2ed63df.entry.js +1 -0
  279. package/dist/webcomponents/{p-a7a1b168.entry.js → p-a3b48ba3.entry.js} +1 -1
  280. package/dist/webcomponents/{p-1f7f2436.entry.js → p-a4520dba.entry.js} +1 -1
  281. package/dist/webcomponents/{p-7ebed752.entry.js → p-a5ad9183.entry.js} +1 -1
  282. package/dist/webcomponents/{p-95317547.entry.js → p-a7e0ab9b.entry.js} +1 -1
  283. package/dist/webcomponents/p-a9976353.entry.js +1 -0
  284. package/dist/webcomponents/{p-d79c5ee4.entry.js → p-b17ce21d.entry.js} +1 -1
  285. package/dist/webcomponents/{p-45668f01.entry.js → p-ba2ab989.entry.js} +1 -1
  286. package/dist/webcomponents/{p-bde7fe69.entry.js → p-c1b48216.entry.js} +1 -1
  287. package/dist/webcomponents/{p-1d294e34.entry.js → p-c2e09203.entry.js} +1 -1
  288. package/dist/webcomponents/{p-90f2f71d.entry.js → p-c3cc4ad6.entry.js} +1 -1
  289. package/dist/webcomponents/p-c9599fc7.entry.js +1 -0
  290. package/dist/webcomponents/{p-58b5e08e.entry.js → p-ca1c2048.entry.js} +1 -1
  291. package/dist/webcomponents/p-cab840bd.entry.js +1 -0
  292. package/dist/webcomponents/{p-e17b92ec.entry.js → p-cc558e25.entry.js} +1 -1
  293. package/dist/webcomponents/{p-BXyADlAH.js → p-czJ2qSU1.js} +1 -1
  294. package/dist/webcomponents/{p-91940d05.entry.js → p-de1ccbea.entry.js} +1 -1
  295. package/dist/webcomponents/{p-0ce6c1b1.entry.js → p-e0e6c2df.entry.js} +1 -1
  296. package/dist/webcomponents/p-n_pmf4AT.js +1 -0
  297. package/dist/webcomponents/p-vUN_uvAi.js +1 -0
  298. package/dist/webcomponents/{p-Ba8jdOkX.js → p-xWuaNtJy.js} +1 -1
  299. package/dist/webcomponents/webcomponents.esm.js +1 -1
  300. package/package.json +14 -14
  301. package/LICENSE +0 -21
  302. package/dist/cjs/styled-host-DAi5SuFa.js +0 -11
  303. package/dist/esm/styled-host-D6byRazK.js +0 -9
  304. package/dist/module/bank-account-document-form-inputs2.js +0 -57
  305. package/dist/webcomponents/p-137a36a4.entry.js +0 -1
  306. package/dist/webcomponents/p-2aac2ab6.entry.js +0 -1
  307. package/dist/webcomponents/p-5G1OMxZz.js +0 -1
  308. package/dist/webcomponents/p-8d6856e7.entry.js +0 -1
  309. package/dist/webcomponents/p-Aacb4jqT.js +0 -1
  310. package/dist/webcomponents/p-B6YPrwyC.js +0 -1
  311. package/dist/webcomponents/p-BqNNwq6C.js +0 -1
  312. package/dist/webcomponents/p-D8ytux5N.js +0 -1
  313. package/dist/webcomponents/p-DrMJliVY.js +0 -1
  314. package/dist/webcomponents/p-XIWgia4J.js +0 -1
  315. package/dist/webcomponents/p-b192f251.entry.js +0 -1
  316. package/dist/webcomponents/p-b436a7d2.entry.js +0 -1
  317. package/dist/webcomponents/p-c8bc235f.entry.js +0 -1
  318. package/dist/webcomponents/p-e6ec9e6d.entry.js +0 -1
  319. package/dist/webcomponents/p-ff8cf16c.entry.js +0 -1
  320. package/dist/webcomponents/p-nb_LhbJq.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
- import { A as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, C as tableCell } from './parts.js';
2
+ import { C as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, E as tableCell } from './parts.js';
3
3
  import { S as Spinner } from './spinner.js';
4
4
 
5
5
  const TableWrapper = (props, children) => {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { z as card, a0 as image, a1 as buttonLink } from './parts.js';
2
+ import { B as card, a0 as image, a1 as buttonLink } from './parts.js';
3
3
  import { d as defineCustomElement$2 } from './custom-popper2.js';
4
4
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
5
5
 
@@ -20,7 +20,19 @@ export declare enum EntityDocumentType {
20
20
  governmentId = "government_id",
21
21
  profitAndLossStatement = "profit_and_loss_statement",
22
22
  taxReturn = "tax_return",
23
- other = "other"
23
+ other = "other",
24
+ articlesOfIncorporation = "articles_of_incorporation",
25
+ businessRegistration = "business_registration",
26
+ passport = "passport",
27
+ driverLicense = "driver_license",
28
+ residentCard = "resident_card",
29
+ statusCard = "status_card",
30
+ nexusCard = "nexus_card",
31
+ citizenshipCard = "citizenship_card",
32
+ foreignPassport = "foreign_passport",
33
+ birthCertificate = "birth_certificate",
34
+ sinCard = "sin_card",
35
+ ssnCard = "ssn_card"
24
36
  }
25
37
  export declare enum EntityDocumentStatus {
26
38
  pending = "pending",
@@ -37,6 +49,7 @@ export interface DocumentRecordData {
37
49
  document_type: EntityDocumentType;
38
50
  file_name: string;
39
51
  file_type: string;
52
+ identity_id?: string;
40
53
  }
41
54
  export declare class EntityDocumentStorage {
42
55
  voided_check: EntityDocument[];
@@ -58,7 +71,7 @@ export declare class EntityDocument {
58
71
  document_type: EntityDocumentType;
59
72
  presigned_url: string | null;
60
73
  record_data: DocumentRecordData | null;
61
- constructor(fileData: EntityFileData, business_id: string);
74
+ constructor(fileData: EntityFileData, business_id: string, identity_id?: string);
62
75
  getFileData(): Promise<ArrayBuffer>;
63
76
  setPresignedUrl(url: string): void;
64
77
  }
@@ -26,6 +26,8 @@ export declare class OwnerForm {
26
26
  ownerSubmitted: EventEmitter<any>;
27
27
  constructor();
28
28
  returnOwnerData(): Promise<string>;
29
+ getOwnershipPercentage(): Promise<string | null>;
30
+ setOwnershipPercentageError(message: string): Promise<void>;
29
31
  validate(): Promise<boolean>;
30
32
  submit(): Promise<boolean>;
31
33
  validateAndSubmit(event: any): Promise<void>;
@@ -1,19 +1,15 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount, EntityDocument, EntityDocumentStorage, FileSelectEvent } from '../../../../api';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount } from '../../../../api';
3
3
  import { CountryCode } from '../../../../utils/country-codes';
4
4
  import { FormController } from '../../../../ui-components/form/form';
5
5
  export declare class BusinessBankAccountFormStep {
6
6
  formController: FormController;
7
7
  errors: any;
8
8
  bankAccount: IBankAccount;
9
- existingDocuments: any;
10
- documentData: EntityDocumentStorage;
11
9
  isLoading: boolean;
12
10
  viewMode: 'readonly' | 'plaid' | 'manual';
13
11
  getBusiness: Function;
14
12
  postBankAccount: Function;
15
- postDocumentRecord: Function;
16
- postDocument: Function;
17
13
  bankAccountVerification: boolean;
18
14
  platformAccountId: string | null;
19
15
  authToken: string;
@@ -34,7 +30,6 @@ export declare class BusinessBankAccountFormStep {
34
30
  private getSchema;
35
31
  initializeFormController: () => void;
36
32
  inputHandler: (name: string, value: string) => void;
37
- storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
38
33
  get postPayload(): {
39
34
  account_owner_name: string;
40
35
  account_type: string;
@@ -60,15 +55,9 @@ export declare class BusinessBankAccountFormStep {
60
55
  handleToggleToManualEntry: () => void;
61
56
  handleToggleToPlaidVerification: () => void;
62
57
  handleSaveBankAccount: () => Promise<void>;
63
- private postBusinessDocuments;
64
- private postDocumentRecordData;
65
- handleDocRecordResponse: (docData: EntityDocument, response: any) => boolean;
66
- uploadDocument: (docData: EntityDocument) => Promise<boolean>;
67
- handleUploadResponse: (response: any) => boolean;
68
58
  private renderBankAccountInputs;
69
59
  private renderReadonlyView;
70
60
  private renderPlaidView;
71
61
  private renderManualEntryView;
72
- private renderDocumentUploads;
73
62
  render(): any;
74
63
  }
@@ -0,0 +1,44 @@
1
+ import { EventEmitter } from '../../../../stencil-public-runtime';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, FileSelectEvent, IDocument, Identity } from '../../../../api';
3
+ import { CountryCode } from '../../../../utils/country-codes';
4
+ import { UploadedDocumentEntry } from './document-upload-options';
5
+ export declare class DocumentUploadFormStep {
6
+ authToken: string;
7
+ businessId: string;
8
+ allowOptionalFields?: boolean;
9
+ country: CountryCode;
10
+ owners: Identity[];
11
+ existingDocuments: IDocument[];
12
+ selectedCategory: string;
13
+ selectedDocType: string;
14
+ uploadQueue: UploadedDocumentEntry[];
15
+ isLoading: boolean;
16
+ errors: {
17
+ [key: string]: string;
18
+ };
19
+ fileInputKey: number;
20
+ getBusiness: Function;
21
+ postDocumentRecord: Function;
22
+ private categories;
23
+ propChanged(): void;
24
+ watchHandler(newValue: boolean): void;
25
+ errorEvent: EventEmitter<ComponentErrorEvent>;
26
+ stepCompleteEvent: EventEmitter<ComponentFormStepCompleteEvent>;
27
+ formLoading: EventEmitter<boolean>;
28
+ validateAndSubmit({ onSuccess }: {
29
+ onSuccess: any;
30
+ }): Promise<void>;
31
+ componentWillLoad(): void;
32
+ private initializeApi;
33
+ private getData;
34
+ private get categoryOptions();
35
+ private get docTypeOptions();
36
+ private validate;
37
+ handleCategoryChange: (_name: string, value: string) => void;
38
+ handleDocTypeChange: (_name: string, value: string) => void;
39
+ handleFileSelected: (e: CustomEvent<FileSelectEvent>) => Promise<void>;
40
+ private postDocumentRecordData;
41
+ private handleDocRecordResponse;
42
+ private uploadDocument;
43
+ render(): any;
44
+ }
@@ -0,0 +1,6 @@
1
+ import { UploadedDocumentEntry } from './document-upload-options';
2
+ export declare class DocumentUploadList {
3
+ documents: UploadedDocumentEntry[];
4
+ private renderStatus;
5
+ render(): any;
6
+ }
@@ -0,0 +1,44 @@
1
+ import { Identity } from '../../../../api';
2
+ import { CountryCode } from '../../../../utils/country-codes';
3
+ export declare const businessDocumentOptions: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const financialDocumentOptions: {
8
+ label: string;
9
+ value: string;
10
+ }[];
11
+ export declare const personalDocGroup1Options: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ export declare const personalDocGroup2Options: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ export interface DocumentCategory {
20
+ label: string;
21
+ value: string;
22
+ identityId?: string;
23
+ docTypeOptions: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ }
28
+ export type DocumentUploadStatus = 'uploading' | 'uploaded' | 'error';
29
+ export interface UploadedDocumentEntry {
30
+ categoryLabel: string;
31
+ categoryValue: string;
32
+ docTypeLabel: string;
33
+ docTypeValue: string;
34
+ fileName: string;
35
+ file: File;
36
+ identityId?: string;
37
+ status: DocumentUploadStatus;
38
+ }
39
+ export declare const staticCategories: DocumentCategory[];
40
+ export declare function buildOwnerCategories(owners: Identity[]): DocumentCategory[];
41
+ export declare const financialOnlyCategories: DocumentCategory[];
42
+ export declare function buildAllCategories(owners: Identity[], country?: CountryCode): DocumentCategory[];
43
+ export declare const personalDocGroup1Types: Set<string>;
44
+ export declare const personalDocGroup2Types: Set<string>;
@@ -16,6 +16,7 @@ export declare class PaymentProvisioningFormSteps {
16
16
  4: () => any;
17
17
  5: () => any;
18
18
  6: () => any;
19
+ 7: () => any;
19
20
  };
20
21
  render(): any;
21
22
  }
@@ -1,17 +1,17 @@
1
1
  import { CountryCode } from '../../../utils/country-codes';
2
- export declare const businessBankAccountSchemaUSA: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
2
+ export declare const businessBankAccountSchemaUSA: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
3
3
  [x: string]: any;
4
4
  }, import("yup").AnyObject, {
5
5
  [x: string]: any;
6
6
  }, "">;
7
- export declare const businessBankAccountSchemaCAN: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
7
+ export declare const businessBankAccountSchemaCAN: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
8
8
  [x: string]: any;
9
9
  }, import("yup").AnyObject, {
10
10
  [x: string]: any;
11
11
  }, "">;
12
- export declare const businessBankAccountSchema: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
12
+ export declare const businessBankAccountSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
13
13
  [x: string]: any;
14
14
  }, import("yup").AnyObject, {
15
15
  [x: string]: any;
16
16
  }, "">;
17
- export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean, documents?: any[]) => any>;
17
+ export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean) => any>;
@@ -6,5 +6,6 @@ export declare const businessClassificationOptions: BusinessFormOption[];
6
6
  export declare const businessServiceReceivedOptions: BusinessFormOption[];
7
7
  export declare const recurringPaymentsOptions: BusinessFormOption[];
8
8
  export declare const seasonalBusinessOptions: BusinessFormOption[];
9
+ export declare const businessTitleOptions: BusinessFormOption[];
9
10
  export declare const bankAccountTypeOptions: BusinessFormOption[];
10
11
  export {};
@@ -16,6 +16,7 @@ import { CountryCode } from "./utils/country-codes";
16
16
  import { FormController as FormController1 } from "./ui-components/form/form";
17
17
  import { Placement, PositioningStrategy } from "@popperjs/core";
18
18
  import { Dispute } from "./api/Dispute";
19
+ import { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
19
20
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
20
21
  import { IPaymentMethodMetadata } from "./api/PaymentMethod";
21
22
  import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -37,6 +38,7 @@ export { CountryCode } from "./utils/country-codes";
37
38
  export { FormController as FormController1 } from "./ui-components/form/form";
38
39
  export { Placement, PositioningStrategy } from "@popperjs/core";
39
40
  export { Dispute } from "./api/Dispute";
41
+ export { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
40
42
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
41
43
  export { IPaymentMethodMetadata } from "./api/PaymentMethod";
42
44
  export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -238,6 +240,19 @@ export namespace Components {
238
240
  */
239
241
  "disputeResponse": ApiDisputeResponse | any;
240
242
  }
243
+ interface DocumentUploadFormStep {
244
+ "allowOptionalFields"?: boolean;
245
+ "authToken": string;
246
+ "businessId": string;
247
+ "country": CountryCode;
248
+ "validateAndSubmit": ({ onSuccess }: { onSuccess: any; }) => Promise<void>;
249
+ }
250
+ interface DocumentUploadList {
251
+ /**
252
+ * @default []
253
+ */
254
+ "documents": UploadedDocumentEntry[];
255
+ }
241
256
  interface DuplicateCharge {
242
257
  "disputeResponse": any;
243
258
  /**
@@ -952,11 +967,13 @@ export namespace Components {
952
967
  "authToken": string;
953
968
  "businessId"?: string;
954
969
  "country": CountryCode;
970
+ "getOwnershipPercentage": () => Promise<string | null>;
955
971
  "newFormOpen"?: boolean;
956
972
  "ownerId"?: string;
957
973
  "ownersLength"?: number;
958
974
  "removeOwner": (id: string) => void;
959
975
  "returnOwnerData": () => Promise<string>;
976
+ "setOwnershipPercentageError": (message: string) => Promise<void>;
960
977
  "submit": () => Promise<boolean>;
961
978
  "validate": () => Promise<boolean>;
962
979
  "validateAndSubmit": (event: any) => Promise<void>;
@@ -1111,6 +1128,10 @@ export interface DisputeResponseCustomEvent<T> extends CustomEvent<T> {
1111
1128
  detail: T;
1112
1129
  target: HTMLDisputeResponseElement;
1113
1130
  }
1131
+ export interface DocumentUploadFormStepCustomEvent<T> extends CustomEvent<T> {
1132
+ detail: T;
1133
+ target: HTMLDocumentUploadFormStepElement;
1134
+ }
1114
1135
  export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
1115
1136
  detail: T;
1116
1137
  target: HTMLFormControlCheckboxElement;
@@ -1594,6 +1615,31 @@ declare global {
1594
1615
  prototype: HTMLDisputeResponseElement;
1595
1616
  new (): HTMLDisputeResponseElement;
1596
1617
  };
1618
+ interface HTMLDocumentUploadFormStepElementEventMap {
1619
+ "error-event": ComponentErrorEvent1;
1620
+ "complete-form-step-event": ComponentFormStepCompleteEvent1;
1621
+ "formLoading": boolean;
1622
+ }
1623
+ interface HTMLDocumentUploadFormStepElement extends Components.DocumentUploadFormStep, HTMLStencilElement {
1624
+ addEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1625
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1626
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1627
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1628
+ removeEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1629
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1630
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1631
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1632
+ }
1633
+ var HTMLDocumentUploadFormStepElement: {
1634
+ prototype: HTMLDocumentUploadFormStepElement;
1635
+ new (): HTMLDocumentUploadFormStepElement;
1636
+ };
1637
+ interface HTMLDocumentUploadListElement extends Components.DocumentUploadList, HTMLStencilElement {
1638
+ }
1639
+ var HTMLDocumentUploadListElement: {
1640
+ prototype: HTMLDocumentUploadListElement;
1641
+ new (): HTMLDocumentUploadListElement;
1642
+ };
1597
1643
  interface HTMLDuplicateChargeElement extends Components.DuplicateCharge, HTMLStencilElement {
1598
1644
  }
1599
1645
  var HTMLDuplicateChargeElement: {
@@ -2704,6 +2750,8 @@ declare global {
2704
2750
  "customer-details": HTMLCustomerDetailsElement;
2705
2751
  "dispute-notification": HTMLDisputeNotificationElement;
2706
2752
  "dispute-response": HTMLDisputeResponseElement;
2753
+ "document-upload-form-step": HTMLDocumentUploadFormStepElement;
2754
+ "document-upload-list": HTMLDocumentUploadListElement;
2707
2755
  "duplicate-charge": HTMLDuplicateChargeElement;
2708
2756
  "electronic-evidence": HTMLElectronicEvidenceElement;
2709
2757
  "form-address-fields": HTMLFormAddressFieldsElement;
@@ -2991,6 +3039,21 @@ declare namespace LocalJSX {
2991
3039
  "onError-event"?: (event: DisputeResponseCustomEvent<ComponentErrorEvent>) => void;
2992
3040
  "onSubmit-event"?: (event: DisputeResponseCustomEvent<ComponentSubmitEvent>) => void;
2993
3041
  }
3042
+ interface DocumentUploadFormStep {
3043
+ "allowOptionalFields"?: boolean;
3044
+ "authToken": string;
3045
+ "businessId": string;
3046
+ "country": CountryCode;
3047
+ "onComplete-form-step-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentFormStepCompleteEvent1>) => void;
3048
+ "onError-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentErrorEvent1>) => void;
3049
+ "onFormLoading"?: (event: DocumentUploadFormStepCustomEvent<boolean>) => void;
3050
+ }
3051
+ interface DocumentUploadList {
3052
+ /**
3053
+ * @default []
3054
+ */
3055
+ "documents"?: UploadedDocumentEntry[];
3056
+ }
2994
3057
  interface DuplicateCharge {
2995
3058
  "disputeResponse": any;
2996
3059
  /**
@@ -3908,6 +3971,8 @@ declare namespace LocalJSX {
3908
3971
  "customer-details": CustomerDetails;
3909
3972
  "dispute-notification": DisputeNotification;
3910
3973
  "dispute-response": DisputeResponse;
3974
+ "document-upload-form-step": DocumentUploadFormStep;
3975
+ "document-upload-list": DocumentUploadList;
3911
3976
  "duplicate-charge": DuplicateCharge;
3912
3977
  "electronic-evidence": ElectronicEvidence;
3913
3978
  "form-address-fields": FormAddressFields;
@@ -4034,6 +4099,8 @@ declare module "@stencil/core" {
4034
4099
  "customer-details": LocalJSX.CustomerDetails & JSXBase.HTMLAttributes<HTMLCustomerDetailsElement>;
4035
4100
  "dispute-notification": LocalJSX.DisputeNotification & JSXBase.HTMLAttributes<HTMLDisputeNotificationElement>;
4036
4101
  "dispute-response": LocalJSX.DisputeResponse & JSXBase.HTMLAttributes<HTMLDisputeResponseElement>;
4102
+ "document-upload-form-step": LocalJSX.DocumentUploadFormStep & JSXBase.HTMLAttributes<HTMLDocumentUploadFormStepElement>;
4103
+ "document-upload-list": LocalJSX.DocumentUploadList & JSXBase.HTMLAttributes<HTMLDocumentUploadListElement>;
4037
4104
  "duplicate-charge": LocalJSX.DuplicateCharge & JSXBase.HTMLAttributes<HTMLDuplicateChargeElement>;
4038
4105
  "electronic-evidence": LocalJSX.ElectronicEvidence & JSXBase.HTMLAttributes<HTMLElectronicEvidenceElement>;
4039
4106
  "form-address-fields": LocalJSX.FormAddressFields & JSXBase.HTMLAttributes<HTMLFormAddressFieldsElement>;
@@ -1 +1 @@
1
- import{A as e}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
1
+ import{A as e}from"./p-CYQvLgSs.js";import"./p-Dzv0P2Ly.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
@@ -1 +1 @@
1
- import{r as e,h as n,H as t,c as i,g as o}from"./p-CV0Pyo1O.js";import{c as r}from"./p-D8GTwl9v.js";import{a3 as a,q as s,v as c,w as d,x as u}from"./p-CPKMvyV_.js";import{g as f}from"./p-BFTU3MAI.js";import{F as l}from"./p-Ce_W43gc.js";import{p as h}from"./p-B6YPrwyC.js";const m=r({focused:{boxShadow:"",border:""},focusedAndInvalid:{boxShadow:"",border:""},fontStyles:{fontFamily:"",fontSize:"",fontWeight:"",lineHeight:"",margin:"",padding:""}}),{state:w,set:g}=m,b=class{constructor(n){e(this,n),this.isFocused=!1,this.errorText=""}focusWithoutPageScroll(e){if(e)try{e.focus({preventScroll:!0})}catch(n){const{scrollX:t,scrollY:i}=window;e.focus(),window.scrollTo(t,i)}}async componentDidLoad(){const e=await this.getBaseFontStyles();g("fontStyles",e);const n=await this.getFocusedStyles();g("focused",n);const t=await this.getFocusedAndInvalidStyles();g("focusedAndInvalid",t)}async getBaseFontStyles(){return new Promise((e=>{setTimeout((()=>{const n=getComputedStyle(this.hiddenInput);e({fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,margin:n.margin,padding:n.padding,color:n.color})}),500)}))}async getFocusedStyles(){return new Promise((e=>{this.focusWithoutPageScroll(this.hiddenInput),setTimeout((()=>{this.hiddenInput.blur();let n=getComputedStyle(this.hiddenInput);e({boxShadow:n.boxShadow,border:n.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((e=>{this.focusWithoutPageScroll(this.hiddenInput),this.errorText="Error",setTimeout((()=>{const n=getComputedStyle(this.hiddenInput),t={boxShadow:n.boxShadow,border:n.border};this.hiddenInput.blur(),e(t)}),500)}))}get part(){return this.isFocused&&this.errorText?a:this.errorText?s:this.isFocused?c:d}render(){return n(t,{key:"d3aa78cd75de1a781c8100c121933122c6db599b"},n("input",{key:"7ac01ecc01ca776cd6928a3a1d1e0b2baa4b8965",ref:e=>this.hiddenInput=e,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}};var p,y,v={exports:{}},k=f((p||(p=1,y=v,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,r=!1,a="[iFrameSizer]",s=null,c=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),u={},f=null,l=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),h={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){W(t,e)})).end()}):v("","Unable to bind to jQuery, it is not fully loaded.")),y.exports=L(),window.iFrameResize=window.iFrameResize||L()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function b(e){return u[e]?u[e].log:o}function p(e,n){x("log",e,n,b(e))}function v(e,n){x("info",e,n,b(e))}function k(e,n){x("warn",e,n,!0)}function x(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),C((function(){R(P),T(A),l("onResized",P)}),P,"init")}function t(e){var n=Number(u[A]["max"+e]),t=Number(u[A]["min"+e]),i=e.toLowerCase(),o=Number(P[i]);p(A,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,p(A,"Set "+i+" to min value")),o>n&&(o=n,p(A,"Set "+i+" to max value")),P[i]=""+o}function i(e){return W.slice(W.indexOf(":")+7+e)}function o(e,n){var t,i;t=function(){var t,i;E("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=P.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[i=n]||(h[i]=setTimeout((function(){h[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return M(A),{x:Math.floor(Number(n.left)+Number(s.x)),y:Math.floor(Number(n.top)+Number(s.y))}}function c(e){var n=e?r(P.iframe):{x:0,y:0},t={x:Number(P.width)+n.x,y:Number(P.height)+n.y};p(A,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=t,d(),p(A,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):k(A,"Unable to scroll to requested position, window.parentIFrame not found")}function d(){!1===l("onScroll",s)?j():T(A)}function f(e){var n={};if(0===Number(P.width)&&0===Number(P.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:P.width,y:P.height};l(e,{iframe:P.iframe,screenX:Number(n.x),screenY:Number(n.y),type:P.type})}function l(e,n){return S(A,e,n)}var m,b,y,x,I,z,W=e.data,P={},A=null;"[iFrameResizerChild]Ready"===W?function(){for(var e in u)E("iFrame requested init",N(e),u[e].iframe,e)}():a===(""+W).slice(0,13)&&W.slice(13).split(":")[0]in u?(x=(y=W.slice(13).split(":"))[1]?parseInt(y[1],10):0,I=u[y[0]]&&u[y[0]].iframe,z=getComputedStyle(I),P={iframe:I,id:y[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(z)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(z),width:y[2],type:y[3]},u[A=P.id]&&(u[A].loaded=!0),(b=P.type in{true:1,false:1,undefined:1})&&p(A,"Ignoring init message from meta parent page"),!b&&function(e){var n=!0;return u[e]||(n=!1,k(P.type+" No settings for "+e+". Message was: "+W)),n}(A)&&(p(A,"Received: "+W),m=!0,null===P.iframe&&(k(A,"IFrame ("+P.id+") not found"),m=!1),m&&function(){var n,t=e.origin,i=u[A]&&u[A].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(p(A,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(p(A,"Checking connection is from: "+(n=u[A]&&u[A].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+P.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(u[A]&&u[A].firstRun&&u[A]&&(u[A].firstRun=!1),P.type){case"close":F(P.iframe);break;case"message":m=i(6),p(A,"onMessage passed: {iframe: "+P.iframe.id+", message: "+m+"}"),l("onMessage",{iframe:P.iframe,message:JSON.parse(m)}),p(A,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":u[A].autoResize=JSON.parse(i(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(u[A]&&u[A].iframe,A),function(){function e(e,i){function r(){u[t]?o(u[t].iframe,t):n()}["scroll","resize"].forEach((function(n){p(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",g)}var t=A;e("Add ",w),u[t]&&(u[t].stopPageInfo=n)}();break;case"pageInfoStop":u[A]&&u[A].stopPageInfo&&(u[A].stopPageInfo(),delete u[A].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",a=decodeURIComponent(t),(h=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(h),p(A,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},d(),p(A,"--")):window.top===window.self?p(A,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(A,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":O(P);break;case"init":n(),l("onInit",P.iframe);break;default:0===Number(P.width)&&0===Number(P.height)?k("Unsupported message received ("+P.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,a,h,m}())):v(A,"Ignored: "+W)}function S(e,n,t){var i=null,o=null;if(u[e]){if("function"!=typeof(i=u[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){delete u[e.id]}function F(e){var t=e.id;if(!1!==S(t,"onClose",t)){p(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}S(t,"onClosed",t),p(t,"--"),z(e),n&&(n.disconnect(),n=null)}else p(t,"Close iframe cancelled by onClose event")}function M(n){null===s&&p(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function T(e){null!==s&&(window.scrollTo(s.x,s.y),p(e,"Set page position: "+s.x+","+s.y),j())}function j(){s=null}function O(e){p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),M(e.id),C((function(){R(e),E("reset","reset",e.iframe,e.id)}),e,"reset")}function R(e){function n(n){r||"0"!==e[n]||(r=!0,p(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(u).forEach((function(e){!function(e){function n(n){return"0px"===(u[e]&&u[e].iframe.style[n])}u[e]&&null!==u[e].iframe.offsetParent&&(n("height")||n("width"))&&E("Visibility change","resize",u[e].iframe,e)}(e)}))}function n(n){p("window","Mutation observed: "+n[0].target+" "+n[0].type),P(e,16)}var t,i=m();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",p(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):p("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;u[i]&&(u[i].sizeHeight&&t("height"),u[i].sizeWidth&&t("width"))}function C(e,n,t){t!==n.type&&c&&!window.jasmine?(p(n.id,"Requesting animation frame"),c(e)):e()}function E(e,n,t,i,o){var r,s=!1;u[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(p(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=u[i]&&u[i].targetOrigin)),t.contentWindow.postMessage(a+n,r)):k(i,"["+e+"] IFrame("+i+") not found"),o&&u[i]&&u[i].warningTimeout&&(u[i].msgTimeout=setTimeout((function(){!u[i]||u[i].loaded||s||(s=!0,k(i,"IFrame has not responded within "+u[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),u[i].warningTimeout)))}function N(e){return e+":"+u[e].bodyMarginV1+":"+u[e].sizeWidth+":"+u[e].log+":"+u[e].interval+":"+u[e].enablePublicMethods+":"+u[e].autoResize+":"+u[e].bodyMargin+":"+u[e].heightCalculationMethod+":"+u[e].bodyBackground+":"+u[e].bodyPadding+":"+u[e].tolerance+":"+u[e].inPageLinks+":"+u[e].resizeFrom+":"+u[e].widthCalculationMethod+":"+u[e].mouseEvents}function W(t,r){function a(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],k(f,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,c,f=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=r&&r.id||l.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(r||{}).log,p(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);f in u&&"iFrameResizer"in t?k(f,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},u[f]=Object.create(null),u[f].iframe=t,u[f].firstRun=!0,u[f].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(u[f][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:l[n])}(e),u[f]&&(u[f].targetOrigin=!0===u[f].checkOrigin?""===(n=u[f].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(p(f,"IFrame scrolling "+(u[f]&&u[f].scrolling?"enabled":"disabled")+" for "+f),t.style.overflow=!1===(u[f]&&u[f].scrolling)?"hidden":"auto",u[f]&&u[f].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=u[f]?u[f].scrolling:"no"}}(),function(){function e(e){var n=u[f][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,p(f,"Set "+e+" = "+t.style[e]))}function n(e){if(u[f]["min"+e]>u[f]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(u[f]&&u[f].bodyMargin)&&"0"!==(u[f]&&u[f].bodyMargin)||(u[f].bodyMarginV1=u[f].bodyMargin,u[f].bodyMargin=u[f].bodyMargin+"px"),s=N(f),(c=m())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&F(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(c)),w(t,"load",(function(){E("iFrame.onload",s,t,e,!0),(!u[f]||!u[f].firstRun)&&u[f]&&u[f].heightCalculationMethod in d&&O({iframe:t,height:0,width:0,type:"init"})})),E("init",s,t,e,!0),u[f]&&(u[f].iframe.iFrameResizer={close:F.bind(null,u[f].iframe),removeListeners:z.bind(null,u[f].iframe),resize:E.bind(null,"Window resize","resize",u[f].iframe),moveToAnchor:function(e){E("Move to anchor","moveToAnchor:"+e,u[f].iframe,f)},sendMessage:function(e){E("Send Message","message:"+(e=JSON.stringify(e)),u[f].iframe,f)}}))}function P(e,n){null===f&&(f=setTimeout((function(){f=null,e()}),n))}function A(){"hidden"!==document.visibilityState&&(p("document","Trigger event: Visibility change"),P((function(){H("Tab Visible","resize")}),16))}function H(e,n){Object.keys(u).forEach((function(t){(function(e){return u[e]&&"parent"===u[e].resizeFrom&&u[e].autoResize&&!u[e].firstRun})(t)&&E(e,n,u[t].iframe,t)}))}function L(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c?c=c.bind(window):p("setup","RequestAnimationFrame not supported")}(),w(window,"message",I),w(window,"resize",(function(){p("window","Trigger event: resize"),P((function(){H("Window resize","resize")}),16)})),w(document,"visibilitychange",A),w(document,"-webkit-visibilitychange",A),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()),v.exports));class x{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const I=class{constructor(n){e(this,n),this.iframeLoaded=i(this,"iframeLoaded",7),this.isFocused=!1,this.isValid=!0,this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))}}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:h.version})}initializeFrameCommunicationService(){var e;this.frameService=new x(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?a:this.isValid?this.isFocused?c:d:s}get style(){return this.isFocused?this.isValid?w.focused:w.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(w.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"a3039409160cb6fd7dd2e7bf189e241f34ddeca6",class:"form-group d-flex flex-column"},n("div",{key:"dab356c30fedca21f6092cfbaf576e23df36b318",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"0469fb973476f92cd5b275b62e4a462521448273",class:"form-label",htmlFor:"",part:u},this.label||""),n("div",{key:"d91253d593d700279c0d869b34d3d4f5d572759a",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"2a3676ad3d25daedccaa0cb2297f505641b47497",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{k({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),n(l,{key:"e54b9c1a7ef5da3bed2eb62e25a28c91865f1f40",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}};export{b as hidden_input,I as iframe_input}
1
+ import{r as e,h as n,H as t,c as i,g as o}from"./p-CV0Pyo1O.js";import{c as r}from"./p-D8GTwl9v.js";import{a3 as a,q as s,v as c,w as d,x as u}from"./p-CPKMvyV_.js";import{g as f}from"./p-BFTU3MAI.js";import{F as l}from"./p-Ce_W43gc.js";import{p as h}from"./p-8R9xLun-.js";const m=r({focused:{boxShadow:"",border:""},focusedAndInvalid:{boxShadow:"",border:""},fontStyles:{fontFamily:"",fontSize:"",fontWeight:"",lineHeight:"",margin:"",padding:""}}),{state:w,set:g}=m,b=class{constructor(n){e(this,n),this.isFocused=!1,this.errorText=""}focusWithoutPageScroll(e){if(e)try{e.focus({preventScroll:!0})}catch(n){const{scrollX:t,scrollY:i}=window;e.focus(),window.scrollTo(t,i)}}async componentDidLoad(){const e=await this.getBaseFontStyles();g("fontStyles",e);const n=await this.getFocusedStyles();g("focused",n);const t=await this.getFocusedAndInvalidStyles();g("focusedAndInvalid",t)}async getBaseFontStyles(){return new Promise((e=>{setTimeout((()=>{const n=getComputedStyle(this.hiddenInput);e({fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,margin:n.margin,padding:n.padding,color:n.color})}),500)}))}async getFocusedStyles(){return new Promise((e=>{this.focusWithoutPageScroll(this.hiddenInput),setTimeout((()=>{this.hiddenInput.blur();let n=getComputedStyle(this.hiddenInput);e({boxShadow:n.boxShadow,border:n.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((e=>{this.focusWithoutPageScroll(this.hiddenInput),this.errorText="Error",setTimeout((()=>{const n=getComputedStyle(this.hiddenInput),t={boxShadow:n.boxShadow,border:n.border};this.hiddenInput.blur(),e(t)}),500)}))}get part(){return this.isFocused&&this.errorText?a:this.errorText?s:this.isFocused?c:d}render(){return n(t,{key:"d3aa78cd75de1a781c8100c121933122c6db599b"},n("input",{key:"7ac01ecc01ca776cd6928a3a1d1e0b2baa4b8965",ref:e=>this.hiddenInput=e,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}};var p,y,v={exports:{}},k=f((p||(p=1,y=v,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,r=!1,a="[iFrameSizer]",s=null,c=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),u={},f=null,l=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),h={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){W(t,e)})).end()}):v("","Unable to bind to jQuery, it is not fully loaded.")),y.exports=H(),window.iFrameResize=window.iFrameResize||H()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function b(e){return u[e]?u[e].log:o}function p(e,n){x("log",e,n,b(e))}function v(e,n){x("info",e,n,b(e))}function k(e,n){x("warn",e,n,!0)}function x(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),C((function(){R(A),T(P),l("onResized",A)}),A,"init")}function t(e){var n=Number(u[P]["max"+e]),t=Number(u[P]["min"+e]),i=e.toLowerCase(),o=Number(A[i]);p(P,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,p(P,"Set "+i+" to min value")),o>n&&(o=n,p(P,"Set "+i+" to max value")),A[i]=""+o}function i(e){return W.slice(W.indexOf(":")+7+e)}function o(e,n){var t,i;t=function(){var t,i;E("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[i=n]||(h[i]=setTimeout((function(){h[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return M(P),{x:Math.floor(Number(n.left)+Number(s.x)),y:Math.floor(Number(n.top)+Number(s.y))}}function c(e){var n=e?r(A.iframe):{x:0,y:0},t={x:Number(A.width)+n.x,y:Number(A.height)+n.y};p(P,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=t,d(),p(P,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):k(P,"Unable to scroll to requested position, window.parentIFrame not found")}function d(){!1===l("onScroll",s)?j():T(P)}function f(e){var n={};if(0===Number(A.width)&&0===Number(A.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:A.width,y:A.height};l(e,{iframe:A.iframe,screenX:Number(n.x),screenY:Number(n.y),type:A.type})}function l(e,n){return S(P,e,n)}var m,b,y,x,I,z,W=e.data,A={},P=null;"[iFrameResizerChild]Ready"===W?function(){for(var e in u)E("iFrame requested init",N(e),u[e].iframe,e)}():a===(""+W).slice(0,13)&&W.slice(13).split(":")[0]in u?(x=(y=W.slice(13).split(":"))[1]?parseInt(y[1],10):0,I=u[y[0]]&&u[y[0]].iframe,z=getComputedStyle(I),A={iframe:I,id:y[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(z)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(z),width:y[2],type:y[3]},u[P=A.id]&&(u[P].loaded=!0),(b=A.type in{true:1,false:1,undefined:1})&&p(P,"Ignoring init message from meta parent page"),!b&&function(e){var n=!0;return u[e]||(n=!1,k(A.type+" No settings for "+e+". Message was: "+W)),n}(P)&&(p(P,"Received: "+W),m=!0,null===A.iframe&&(k(P,"IFrame ("+A.id+") not found"),m=!1),m&&function(){var n,t=e.origin,i=u[P]&&u[P].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(p(P,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(p(P,"Checking connection is from: "+(n=u[P]&&u[P].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(u[P]&&u[P].firstRun&&u[P]&&(u[P].firstRun=!1),A.type){case"close":F(A.iframe);break;case"message":m=i(6),p(P,"onMessage passed: {iframe: "+A.iframe.id+", message: "+m+"}"),l("onMessage",{iframe:A.iframe,message:JSON.parse(m)}),p(P,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":u[P].autoResize=JSON.parse(i(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(u[P]&&u[P].iframe,P),function(){function e(e,i){function r(){u[t]?o(u[t].iframe,t):n()}["scroll","resize"].forEach((function(n){p(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",g)}var t=P;e("Add ",w),u[t]&&(u[t].stopPageInfo=n)}();break;case"pageInfoStop":u[P]&&u[P].stopPageInfo&&(u[P].stopPageInfo(),delete u[P].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",a=decodeURIComponent(t),(h=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(h),p(P,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},d(),p(P,"--")):window.top===window.self?p(P,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(P,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":O(A);break;case"init":n(),l("onInit",A.iframe);break;default:0===Number(A.width)&&0===Number(A.height)?k("Unsupported message received ("+A.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,a,h,m}())):v(P,"Ignored: "+W)}function S(e,n,t){var i=null,o=null;if(u[e]){if("function"!=typeof(i=u[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){delete u[e.id]}function F(e){var t=e.id;if(!1!==S(t,"onClose",t)){p(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}S(t,"onClosed",t),p(t,"--"),z(e),n&&(n.disconnect(),n=null)}else p(t,"Close iframe cancelled by onClose event")}function M(n){null===s&&p(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function T(e){null!==s&&(window.scrollTo(s.x,s.y),p(e,"Set page position: "+s.x+","+s.y),j())}function j(){s=null}function O(e){p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),M(e.id),C((function(){R(e),E("reset","reset",e.iframe,e.id)}),e,"reset")}function R(e){function n(n){r||"0"!==e[n]||(r=!0,p(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(u).forEach((function(e){!function(e){function n(n){return"0px"===(u[e]&&u[e].iframe.style[n])}u[e]&&null!==u[e].iframe.offsetParent&&(n("height")||n("width"))&&E("Visibility change","resize",u[e].iframe,e)}(e)}))}function n(n){p("window","Mutation observed: "+n[0].target+" "+n[0].type),A(e,16)}var t,i=m();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",p(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):p("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;u[i]&&(u[i].sizeHeight&&t("height"),u[i].sizeWidth&&t("width"))}function C(e,n,t){t!==n.type&&c&&!window.jasmine?(p(n.id,"Requesting animation frame"),c(e)):e()}function E(e,n,t,i,o){var r,s=!1;u[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(p(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=u[i]&&u[i].targetOrigin)),t.contentWindow.postMessage(a+n,r)):k(i,"["+e+"] IFrame("+i+") not found"),o&&u[i]&&u[i].warningTimeout&&(u[i].msgTimeout=setTimeout((function(){!u[i]||u[i].loaded||s||(s=!0,k(i,"IFrame has not responded within "+u[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),u[i].warningTimeout)))}function N(e){return e+":"+u[e].bodyMarginV1+":"+u[e].sizeWidth+":"+u[e].log+":"+u[e].interval+":"+u[e].enablePublicMethods+":"+u[e].autoResize+":"+u[e].bodyMargin+":"+u[e].heightCalculationMethod+":"+u[e].bodyBackground+":"+u[e].bodyPadding+":"+u[e].tolerance+":"+u[e].inPageLinks+":"+u[e].resizeFrom+":"+u[e].widthCalculationMethod+":"+u[e].mouseEvents}function W(t,r){function a(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],k(f,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,c,f=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=r&&r.id||l.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(r||{}).log,p(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);f in u&&"iFrameResizer"in t?k(f,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},u[f]=Object.create(null),u[f].iframe=t,u[f].firstRun=!0,u[f].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(u[f][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:l[n])}(e),u[f]&&(u[f].targetOrigin=!0===u[f].checkOrigin?""===(n=u[f].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(p(f,"IFrame scrolling "+(u[f]&&u[f].scrolling?"enabled":"disabled")+" for "+f),t.style.overflow=!1===(u[f]&&u[f].scrolling)?"hidden":"auto",u[f]&&u[f].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=u[f]?u[f].scrolling:"no"}}(),function(){function e(e){var n=u[f][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,p(f,"Set "+e+" = "+t.style[e]))}function n(e){if(u[f]["min"+e]>u[f]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(u[f]&&u[f].bodyMargin)&&"0"!==(u[f]&&u[f].bodyMargin)||(u[f].bodyMarginV1=u[f].bodyMargin,u[f].bodyMargin=u[f].bodyMargin+"px"),s=N(f),(c=m())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&F(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(c)),w(t,"load",(function(){E("iFrame.onload",s,t,e,!0),(!u[f]||!u[f].firstRun)&&u[f]&&u[f].heightCalculationMethod in d&&O({iframe:t,height:0,width:0,type:"init"})})),E("init",s,t,e,!0),u[f]&&(u[f].iframe.iFrameResizer={close:F.bind(null,u[f].iframe),removeListeners:z.bind(null,u[f].iframe),resize:E.bind(null,"Window resize","resize",u[f].iframe),moveToAnchor:function(e){E("Move to anchor","moveToAnchor:"+e,u[f].iframe,f)},sendMessage:function(e){E("Send Message","message:"+(e=JSON.stringify(e)),u[f].iframe,f)}}))}function A(e,n){null===f&&(f=setTimeout((function(){f=null,e()}),n))}function P(){"hidden"!==document.visibilityState&&(p("document","Trigger event: Visibility change"),A((function(){L("Tab Visible","resize")}),16))}function L(e,n){Object.keys(u).forEach((function(t){(function(e){return u[e]&&"parent"===u[e].resizeFrom&&u[e].autoResize&&!u[e].firstRun})(t)&&E(e,n,u[t].iframe,t)}))}function H(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c?c=c.bind(window):p("setup","RequestAnimationFrame not supported")}(),w(window,"message",I),w(window,"resize",(function(){p("window","Trigger event: resize"),A((function(){L("Window resize","resize")}),16)})),w(document,"visibilitychange",P),w(document,"-webkit-visibilitychange",P),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()),v.exports));class x{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const I=class{constructor(n){e(this,n),this.iframeLoaded=i(this,"iframeLoaded",7),this.isFocused=!1,this.isValid=!0,this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))}}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:h.version})}initializeFrameCommunicationService(){var e;this.frameService=new x(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?a:this.isValid?this.isFocused?c:d:s}get style(){return this.isFocused?this.isValid?w.focused:w.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(w.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"a3039409160cb6fd7dd2e7bf189e241f34ddeca6",class:"form-group d-flex flex-column"},n("div",{key:"dab356c30fedca21f6092cfbaf576e23df36b318",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"0469fb973476f92cd5b275b62e4a462521448273",class:"form-label",htmlFor:"",part:u},this.label||""),n("div",{key:"d91253d593d700279c0d869b34d3d4f5d572759a",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"2a3676ad3d25daedccaa0cb2297f505641b47497",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{k({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),n(l,{key:"e54b9c1a7ef5da3bed2eb62e25a28c91865f1f40",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}};export{b as hidden_input,I as iframe_input}
@@ -1 +1 @@
1
- import{h as t,r as e,c as i}from"./p-CV0Pyo1O.js";import{l as s,C as a,e as r}from"./p-NZS8uCtH.js";import{J as n}from"./p-DO9lqnbB.js";import{c as o}from"./p-DjjAx7PF.js";import{T as c}from"./p-Ba8jdOkX.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as h}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as d,a as p}from"./p-Cm9f5fyh.js";import{m,S as l}from"./p-BxKbnILQ.js";import{S as u}from"./p-BqNNwq6C.js";import{T as b,a as f,b as v,c as g,d as y,e as k,f as j,g as C,h as w,i as _,j as T,k as S,l as O}from"./p-BICxxa69.js";import{T as D}from"./p-CZfYo5-1.js";import{B as P,a as I}from"./p-CHw7tICr.js";import{a6 as x,a7 as A}from"./p-CPKMvyV_.js";import{k as B}from"./p-BRnBHsdq.js";import{o as N,g as q}from"./p-Dw63wyhO.js";import"./p-B6YPrwyC.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const E={nickname:()=>t("th",{part:x,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:x,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:x,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:x,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:x,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:x,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:x,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:x,scope:"col",title:"The current status of each terminal"},"Status")},H={nickname:(e,i)=>t("td",{part:A(i)},e.nickname),model_name:(e,i)=>t("td",{part:A(i)},e.model_name),id:(e,i)=>t("td",{part:A(i)},e.id),provider:(e,i)=>t("td",{part:A(i)},B(e.provider)),provider_serial_number:(e,i)=>t("td",{part:A(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:A(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:A(i)},e.sub_account_name),status:(e,i)=>t("td",{part:A(i)},t(I,Object.assign({},{connected:{variant:P.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:P.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:P.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:P.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:P.SECONDARY,title:"This terminal is archived",text:"Archived"}}[e.status])))},L=class{constructor(t){e(this,t),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=h,this.pagingParams={},this.columns="nickname,provider_serial_number,status",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const i=this.terminals.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:i})}}componentWillLoad(){o(),this.analytics=new n(this),this.terminalsTable=new b(this.terminals,this.columns,E,H),this.initializeGetData(),this.getTerminals&&this.getSubAccounts&&this.fetchData(),N("set",(()=>{this.pagingParams={}})),N("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:e,service:i})=>async({params:r,onSuccess:n,onError:o})=>{var c,h;try{const m=await i.fetchTerminals(t,e,r);if(m.error)return o({error:p(m.error),code:d(null===(h=m.error)||void 0===h?void 0:h.code),severity:a.ERROR});{const t=Object.assign({},m.page_info);n({terminals:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new s(t))))||[],pagingInfo:t})}}catch(t){const e=d(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:a.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new c}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:a.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new l}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:e})=>{this.terminals=t,this.paging=e,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}get terminalParams(){const t=q();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(u,{key:"6388e9b0b7c6dcedc9f3db534d3a30d0a748929c"},t(f,{key:"e11b994e16e657aaaa7c6f29197865d0d6bfd1ba"},t(v,{key:"340980f75fef37841907835378d9c0ced1992b5c"},t(g,{key:"fdd3d1569b6a3df9d5d31fb2cc602ab054529fc6"},t(y,{key:"440d602ac5746635f92445c6216c807b9b13517e"},this.terminalsTable.columnData.map((t=>t)))),t(k,{key:"ccef66a47be1cfca09f10d450fb7eeaf241a17e0"},t(j,{key:"aea6e2f33e07c717f50065c12211f9f2d9266bec",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"7c92ba6cd398bae23587a2e1771bba7b75dc680c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),t(w,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(_,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(S,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(O,{key:"6761f623d70d13b13e92ec73c9b936d5bf85dd70",colSpan:this.terminalsTable.columnData.length},t("pagination-menu",{key:"4b490b5834be42664ebbc27b7c7a1b0c10bd433b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{L as justifi_terminals_list}
1
+ import{h as t,r as e,c as i}from"./p-CV0Pyo1O.js";import{l as s,C as a,e as r}from"./p-Dzv0P2Ly.js";import{J as n}from"./p-CeW0EPHy.js";import{c as o}from"./p-DvnFba1A.js";import{T as c}from"./p-xWuaNtJy.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as h}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as d,a as p}from"./p-CDu7TeCZ.js";import{m,S as u}from"./p-C-zuQNNP.js";import{S as l}from"./p-DzEdYT8R.js";import{T as b,a as f,b as v,c as g,d as y,e as k,f as j,g as C,h as T,i as w,j as _,k as S,l as D}from"./p-BICxxa69.js";import{T as P}from"./p-CZfYo5-1.js";import{B as O,a as I}from"./p-CHw7tICr.js";import{a6 as x,a7 as A}from"./p-CPKMvyV_.js";import{k as E}from"./p-BRnBHsdq.js";import{o as N,g as z}from"./p-Dw63wyhO.js";import"./p-8R9xLun-.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const L={nickname:()=>t("th",{part:x,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:x,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:x,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:x,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:x,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:x,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:x,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:x,scope:"col",title:"The current status of each terminal"},"Status")},B={nickname:(e,i)=>t("td",{part:A(i)},e.nickname),model_name:(e,i)=>t("td",{part:A(i)},e.model_name),id:(e,i)=>t("td",{part:A(i)},e.id),provider:(e,i)=>t("td",{part:A(i)},E(e.provider)),provider_serial_number:(e,i)=>t("td",{part:A(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:A(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:A(i)},e.sub_account_name),status:(e,i)=>t("td",{part:A(i)},t(I,Object.assign({},{connected:{variant:O.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:O.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:O.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:O.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:O.SECONDARY,title:"This terminal is archived",text:"Archived"}}[e.status])))},H=class{constructor(t){e(this,t),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=h,this.pagingParams={},this.columns="nickname,provider_serial_number,status",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const i=this.terminals.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:i})}}componentWillLoad(){o(),this.analytics=new n(this),this.terminalsTable=new b(this.terminals,this.columns,L,B),this.initializeGetData(),this.getTerminals&&this.getSubAccounts&&this.fetchData(),N("set",(()=>{this.pagingParams={}})),N("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:e,service:i})=>async({params:r,onSuccess:n,onError:o})=>{var c,h;try{const m=await i.fetchTerminals(t,e,r);if(m.error)return o({error:p(m.error),code:d(null===(h=m.error)||void 0===h?void 0:h.code),severity:a.ERROR});{const t=Object.assign({},m.page_info);n({terminals:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new s(t))))||[],pagingInfo:t})}}catch(t){const e=d(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:a.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new c}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:a.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new u}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:e})=>{this.terminals=t,this.paging=e,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}get terminalParams(){const t=z();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(l,{key:"6388e9b0b7c6dcedc9f3db534d3a30d0a748929c"},t(f,{key:"e11b994e16e657aaaa7c6f29197865d0d6bfd1ba"},t(v,{key:"340980f75fef37841907835378d9c0ced1992b5c"},t(g,{key:"fdd3d1569b6a3df9d5d31fb2cc602ab054529fc6"},t(y,{key:"440d602ac5746635f92445c6216c807b9b13517e"},this.terminalsTable.columnData.map((t=>t)))),t(k,{key:"ccef66a47be1cfca09f10d450fb7eeaf241a17e0"},t(j,{key:"aea6e2f33e07c717f50065c12211f9f2d9266bec",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"7c92ba6cd398bae23587a2e1771bba7b75dc680c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),t(T,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(w,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(_,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(S,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(D,{key:"6761f623d70d13b13e92ec73c9b936d5bf85dd70",colSpan:this.terminalsTable.columnData.length},t("pagination-menu",{key:"4b490b5834be42664ebbc27b7c7a1b0c10bd433b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{H as justifi_terminals_list}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-CV0Pyo1O.js";import{C as i}from"./p-BcNb9bVO.js";import{B as e}from"./p-XYgDHrVL.js";import{B as o}from"./p-CHo7TfsM.js";import"./p-CZfYo5-1.js";import"./p-CPKMvyV_.js";const n=class{constructor(t){s(this,t)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"6fac4d1e92b732da3e7e867c091f23e9e3b7d6ab",class:"d-flex gap-2"},t(o,{key:"a96025bed24ade707d7f28561a12a9bcf62401e8",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(o,{key:"c4bd0d4a7f79942b307a4587e77c73158d4b704d",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,e.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(o,{key:"5fa56e168646f4fa266fde124c78dc2564a6c311",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,e.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},r=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.country=i.USA,this.componentStepMapping={0:()=>t("business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>t("legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>t("additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>t("business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>t("business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>t("business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"6bd8ebe91fefb364dd29a741e2cdf8a90aa1351b",class:"col-12 mb-4"},this.currentStepComponent)}};export{n as payment_provisioning_form_buttons,r as payment_provisioning_form_steps}
1
+ import{r as s,h as t}from"./p-CV0Pyo1O.js";import{C as i}from"./p-BcNb9bVO.js";import{B as e}from"./p-XYgDHrVL.js";import{B as o}from"./p-CHo7TfsM.js";import"./p-CZfYo5-1.js";import"./p-CPKMvyV_.js";const n=class{constructor(t){s(this,t)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"6fac4d1e92b732da3e7e867c091f23e9e3b7d6ab",class:"d-flex gap-2"},t(o,{key:"a96025bed24ade707d7f28561a12a9bcf62401e8",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(o,{key:"c4bd0d4a7f79942b307a4587e77c73158d4b704d",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,e.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(o,{key:"5fa56e168646f4fa266fde124c78dc2564a6c311",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,e.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},r=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.country=i.USA,this.componentStepMapping={0:()=>t("business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>t("legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>t("additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>t("business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>t("business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>t("document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),7:()=>t("business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"a249d66ac8348900e21998c4cf89bd02cfeec7c1",class:"col-12 mb-4"},this.currentStepComponent)}};export{n as payment_provisioning_form_buttons,r as payment_provisioning_form_steps}
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as o}from"./p-CPKMvyV_.js";import{S as s}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const r=class{constructor(t){e(this,t)}render(){return t(s,{key:"84756b0f0fe1c8a9d6570e4f0e953760e527d51a",class:"payment-method"},t("div",{key:"3c0ef7c38bb3f4cc9281b01d8d359956e0f7a1c0",class:"radio-list-item p-3",part:o,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"412f63c09650893f360f82c0e3192b7357473e87",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{r as payment_method_option}
1
+ import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as o}from"./p-CPKMvyV_.js";import{S as s}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";const r=class{constructor(t){e(this,t)}render(){return t(s,{key:"84756b0f0fe1c8a9d6570e4f0e953760e527d51a",class:"payment-method"},t("div",{key:"3c0ef7c38bb3f4cc9281b01d8d359956e0f7a1c0",class:"radio-list-item p-3",part:o,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"412f63c09650893f360f82c0e3192b7357473e87",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{r as payment_method_option}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import{S as o}from"./p-uZ5KAseb.js";import"./p-CPKMvyV_.js";const r=class{constructor(t){s(this,t)}render(){return t(e,{key:"c995981caeae785829f1ef75454b2759243e8adb"},t(o,{key:"9c63cf385499820bb1acd3503e126363485684f6",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{r as justifi_skeleton}
1
+ import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as e}from"./p-DzEdYT8R.js";import{S as o}from"./p-uZ5KAseb.js";import"./p-CPKMvyV_.js";const r=class{constructor(t){s(this,t)}render(){return t(e,{key:"c995981caeae785829f1ef75454b2759243e8adb"},t(o,{key:"9c63cf385499820bb1acd3503e126363485684f6",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{r as justifi_skeleton}
@@ -1 +1 @@
1
- import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"1e25de93c795dd6c8ec2979918a5b10389a55354"},i("card-billing-form-simple",{key:"d9db1793b83e5fa216f72bfe7803d968ee499ac7",legend:this.legend,ref:r=>this.cardBillingFormSimpleRef=r}))}};export{s as justifi_card_billing_form_simple}
1
+ import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"1e25de93c795dd6c8ec2979918a5b10389a55354"},i("card-billing-form-simple",{key:"d9db1793b83e5fa216f72bfe7803d968ee499ac7",legend:this.legend,ref:r=>this.cardBillingFormSimpleRef=r}))}};export{s as justifi_card_billing_form_simple}
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-CV0Pyo1O.js";import{c as a}from"./p-DjjAx7PF.js";import{J as s}from"./p-DO9lqnbB.js";import{w as r}from"./p-DVJaoI_m.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-B6YPrwyC.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await r(),a(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:a}){return this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:a})}render(){return o(p,{key:"3a267a32b400d122cd124245979218ffc45453ee"},o("bank-account-form",{key:"72044965224da0d85455ad7688b3d1852a46126e",ref:t=>this.bankAccountFormElement=t}))}};export{i as justifi_bank_account_form}
1
+ import{r as t,h as o}from"./p-CV0Pyo1O.js";import{c as a}from"./p-DvnFba1A.js";import{J as s}from"./p-CeW0EPHy.js";import{w as r}from"./p-DVJaoI_m.js";import{S as p}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import"./p-8R9xLun-.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-Dzv0P2Ly.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await r(),a(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:a}){return this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:a})}render(){return o(p,{key:"3a267a32b400d122cd124245979218ffc45453ee"},o("bank-account-form",{key:"72044965224da0d85455ad7688b3d1852a46126e",ref:t=>this.bankAccountFormElement=t}))}};export{i as justifi_bank_account_form}