@justifi/webcomponents 6.15.0 → 6.16.0-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 (438) hide show
  1. package/dist/cjs/{Analytics-BjZHa0wt.js → Analytics-jQsZxClw.js} +2 -2
  2. package/dist/cjs/{Api-us3AxMRC.js → Api-DqXlEWR1.js} +1 -1
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +8 -8
  4. package/dist/cjs/additional-questions_4.cjs.entry.js +1 -1
  5. package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +13 -7
  7. package/dist/cjs/bank-account-form.cjs.entry.js +66 -12
  8. package/dist/cjs/{business-identity-schema-XiCLzxWM.js → business-identity-schema-DuOIMFjG.js} +2 -2
  9. package/dist/cjs/{business.service-_Sl3vWmu.js → business.service-Ca-olopC.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +14 -10
  11. package/dist/cjs/{checkout.service-B_qymeqJ.js → checkout.service-DBHPH2ji.js} +1 -1
  12. package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
  13. package/dist/cjs/{country-config-DQQujh5h.js → country-config-CFC3KuVD.js} +24 -2
  14. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  15. package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +9 -9
  17. package/dist/cjs/{event-types-DmY59QXs.js → event-types-luy3xnYR.js} +1 -1
  18. package/dist/cjs/form-address-fields_3.cjs.entry.js +5 -5
  19. package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
  20. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-number_2.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
  28. package/dist/cjs/{get-subaccounts-BMY2bOFj.js → get-subaccounts-D11aTYj1.js} +1 -1
  29. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +41 -25
  31. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -7
  33. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
  35. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
  36. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-card-form.cjs.entry.js +9 -6
  38. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -8
  40. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  41. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  44. package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -8
  54. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  56. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  57. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  58. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
  60. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
  62. package/dist/cjs/loader.cjs.js +1 -1
  63. package/dist/cjs/{package-30T__1wH.js → package-B414Jbra.js} +1 -3
  64. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  65. package/dist/cjs/{payment.service-DRXVT-uB.js → payment.service-CNTe8vrp.js} +1 -1
  66. package/dist/cjs/{payout.service-CuQ-mXKB.js → payout.service-BmU3q9jO.js} +1 -1
  67. package/dist/cjs/{plaid.service-B58nzlUE.js → plaid.service-d9LAwbnX.js} +1 -1
  68. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  69. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  70. package/dist/cjs/{schema-validations-sjRvL4KO.js → schema-validations-BDFa_oIq.js} +8 -2
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  73. package/dist/cjs/{terminal.service-CmtSEgTc.js → terminal.service-BkQWZv9b.js} +1 -1
  74. package/dist/cjs/utils-Ct_X5q0U.js +62 -0
  75. package/dist/cjs/webcomponents.cjs.js +1 -1
  76. package/dist/collection/collection-manifest.json +1 -1
  77. package/dist/collection/components/business-details/justifi-business-details.js +3 -3
  78. package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
  79. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
  80. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
  81. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
  82. package/dist/collection/components/business-forms/utils/country-config.js +3 -2
  83. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
  84. package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
  85. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
  86. package/dist/collection/components/checkout/card-form/card-form.js +39 -11
  87. package/dist/collection/components/checkout/justifi-checkout.js +26 -4
  88. package/dist/collection/components/checkout/message-event-types.js +2 -0
  89. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  90. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  91. package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
  92. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  93. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +4 -4
  94. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  95. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  96. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  97. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  98. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -3
  99. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  101. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  104. package/dist/collection/components/dispute-management/justifi-dispute-management.js +3 -3
  105. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  106. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
  107. package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
  108. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
  109. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
  110. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
  111. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  112. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  113. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
  114. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  115. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  116. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
  117. package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
  118. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  119. package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
  120. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
  121. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  122. package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
  123. package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
  124. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
  125. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  126. package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
  127. package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
  128. package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
  129. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  130. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
  131. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  132. package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
  133. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
  134. package/dist/collection/store/checkout.store.js +1 -0
  135. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  136. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  139. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  141. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  142. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  143. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  144. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  145. package/dist/collection/ui-components/form/form-control-text.js +37 -4
  146. package/dist/collection/ui-components/form/iframe-input.js +136 -14
  147. package/dist/collection/ui-components/form/utils.js +32 -0
  148. package/dist/collection/ui-components/internal-button.js +1 -1
  149. package/dist/collection/ui-components/radio-list-item.js +1 -1
  150. package/dist/collection/utils/detect-duplicate-version.js +24 -0
  151. package/dist/collection/utils/postal-code.js +19 -0
  152. package/dist/docs.json +286 -17
  153. package/dist/esm/{Analytics-BtMYbHD0.js → Analytics-DihSSvAP.js} +2 -2
  154. package/dist/esm/{Api-nVK-rgbk.js → Api-INJHjnya.js} +1 -1
  155. package/dist/esm/additional-questions-form-step_15.entry.js +8 -8
  156. package/dist/esm/additional-questions_4.entry.js +1 -1
  157. package/dist/esm/additional-statement_8.entry.js +8 -8
  158. package/dist/esm/bank-account-billing-form-simple_4.entry.js +13 -7
  159. package/dist/esm/bank-account-form.entry.js +66 -12
  160. package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js} +2 -2
  161. package/dist/esm/{business.service-Cq7H5w1T.js → business.service-C8f7OSEu.js} +1 -1
  162. package/dist/esm/card-form.entry.js +14 -10
  163. package/dist/esm/{checkout.service-JA7oTq5d.js → checkout.service-BYDkC7uy.js} +1 -1
  164. package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
  165. package/dist/esm/{country-config-F5YwgHgR.js → country-config-DJFj1v-Q.js} +23 -3
  166. package/dist/esm/custom-popper_2.entry.js +2 -2
  167. package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
  168. package/dist/esm/dispute-notification_2.entry.js +9 -9
  169. package/dist/esm/{event-types-Dsf8IwD6.js → event-types-S8CgMbPg.js} +1 -1
  170. package/dist/esm/form-address-fields_3.entry.js +5 -5
  171. package/dist/esm/form-alert_3.entry.js +116 -15
  172. package/dist/esm/form-control-checkbox.entry.js +2 -2
  173. package/dist/esm/form-control-date.entry.js +2 -2
  174. package/dist/esm/form-control-file-v2_2.entry.js +1 -1
  175. package/dist/esm/form-control-file.entry.js +2 -2
  176. package/dist/esm/form-control-monetary.entry.js +2 -2
  177. package/dist/esm/form-control-number_2.entry.js +3 -3
  178. package/dist/esm/form-control-radio.entry.js +2 -2
  179. package/dist/esm/form-control-select_2.entry.js +22 -6
  180. package/dist/esm/{get-subaccounts-B-S2TGRa.js → get-subaccounts-BHWiH8q9.js} +1 -1
  181. package/dist/esm/internal-button.entry.js +1 -1
  182. package/dist/esm/justifi-apple-pay_12.entry.js +41 -25
  183. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  184. package/dist/esm/justifi-bank-account-form.entry.js +8 -7
  185. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  186. package/dist/esm/justifi-business-details.entry.js +7 -7
  187. package/dist/esm/justifi-business-form.entry.js +9 -9
  188. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  189. package/dist/esm/justifi-card-form.entry.js +9 -6
  190. package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
  191. package/dist/esm/justifi-checkout.entry.js +10 -8
  192. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  193. package/dist/esm/justifi-checkouts-list.entry.js +9 -9
  194. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  195. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  196. package/dist/esm/justifi-order-terminals.entry.js +8 -8
  197. package/dist/esm/justifi-payment-details.entry.js +14 -14
  198. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  199. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  200. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  201. package/dist/esm/justifi-payments-list.entry.js +7 -7
  202. package/dist/esm/justifi-payout-details.entry.js +9 -9
  203. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  204. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  205. package/dist/esm/justifi-payouts-list.entry.js +8 -8
  206. package/dist/esm/justifi-qr-terminal.entry.js +6 -6
  207. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  208. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  209. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  210. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
  211. package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
  212. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  213. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  214. package/dist/esm/loader.js +1 -1
  215. package/dist/esm/package-BQpbTebi.js +5 -0
  216. package/dist/esm/payment-method-option.entry.js +1 -1
  217. package/dist/esm/{payment.service-B42sKlQE.js → payment.service-CQXRsu6Y.js} +1 -1
  218. package/dist/esm/{payout.service-BIoAgNJJ.js → payout.service-RRyWfpEK.js} +1 -1
  219. package/dist/esm/{plaid.service-C6Ltk2ef.js → plaid.service-Cg3E3Plo.js} +1 -1
  220. package/dist/esm/radio-list-item.entry.js +1 -1
  221. package/dist/esm/save-new-payment-method.entry.js +2 -2
  222. package/dist/esm/{schema-validations-De7Qe0VU.js → schema-validations-8GJ34Do1.js} +8 -2
  223. package/dist/esm/table-filters-menu.entry.js +1 -1
  224. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  225. package/dist/esm/{terminal.service-DV3qIwBy.js → terminal.service-Dy6D8bnl.js} +1 -1
  226. package/dist/esm/utils-Cpck08K0.js +59 -0
  227. package/dist/esm/webcomponents.js +1 -1
  228. package/dist/module/additional-statement2.js +1 -1
  229. package/dist/module/bank-account-form2.js +65 -10
  230. package/dist/module/billing-form-full2.js +6 -2
  231. package/dist/module/cancellation-policy2.js +1 -1
  232. package/dist/module/card-billing-form-simple2.js +6 -2
  233. package/dist/module/card-form2.js +14 -9
  234. package/dist/module/checkout.store.js +1 -0
  235. package/dist/module/country-config.js +23 -3
  236. package/dist/module/custom-popper2.js +2 -2
  237. package/dist/module/customer-details2.js +1 -1
  238. package/dist/module/detect-duplicate-version.js +27 -0
  239. package/dist/module/dispute-notification2.js +2 -2
  240. package/dist/module/dispute-response2.js +3 -3
  241. package/dist/module/duplicate-charge2.js +1 -1
  242. package/dist/module/electronic-evidence2.js +1 -1
  243. package/dist/module/form-address-fields2.js +3 -3
  244. package/dist/module/form-control-checkbox2.js +2 -2
  245. package/dist/module/form-control-date2.js +2 -2
  246. package/dist/module/form-control-file-v22.js +1 -1
  247. package/dist/module/form-control-file2.js +2 -2
  248. package/dist/module/form-control-monetary2.js +2 -2
  249. package/dist/module/form-control-number-masked2.js +2 -2
  250. package/dist/module/form-control-number2.js +2 -2
  251. package/dist/module/form-control-radio2.js +2 -2
  252. package/dist/module/form-control-select2.js +2 -2
  253. package/dist/module/form-control-text2.js +21 -4
  254. package/dist/module/iframe-input2.js +119 -15
  255. package/dist/module/internal-button2.js +1 -1
  256. package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
  257. package/dist/module/justifi-bank-account-form.js +6 -4
  258. package/dist/module/justifi-billing-form-full.js +1 -1
  259. package/dist/module/justifi-business-details.js +3 -3
  260. package/dist/module/justifi-business-form.js +2 -2
  261. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  262. package/dist/module/justifi-card-form.js +6 -3
  263. package/dist/module/justifi-checkout-qr-code2.js +2 -2
  264. package/dist/module/justifi-checkout-summary2.js +1 -1
  265. package/dist/module/justifi-checkout.js +7 -4
  266. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  267. package/dist/module/justifi-checkouts-list.js +4 -4
  268. package/dist/module/justifi-dispute-management.js +3 -3
  269. package/dist/module/justifi-gross-payment-chart.js +2 -2
  270. package/dist/module/justifi-modular-checkout2.js +30 -12
  271. package/dist/module/justifi-order-terminals.js +3 -3
  272. package/dist/module/justifi-payment-details.js +10 -10
  273. package/dist/module/justifi-payment-provisioning.js +2 -2
  274. package/dist/module/justifi-payment-transactions-list.js +3 -3
  275. package/dist/module/justifi-payments-list-filters.js +2 -2
  276. package/dist/module/justifi-payments-list.js +3 -3
  277. package/dist/module/justifi-payout-details.js +5 -5
  278. package/dist/module/justifi-payout-transactions-list.js +3 -3
  279. package/dist/module/justifi-payouts-list-filters.js +2 -2
  280. package/dist/module/justifi-payouts-list.js +3 -3
  281. package/dist/module/justifi-paypal2.js +1 -1
  282. package/dist/module/justifi-qr-terminal.js +2 -2
  283. package/dist/module/justifi-refund-payment.js +2 -2
  284. package/dist/module/justifi-save-new-payment-method.js +1 -1
  285. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  286. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  287. package/dist/module/justifi-terminal-orders-list.js +4 -4
  288. package/dist/module/justifi-terminals-list-filters.js +1 -1
  289. package/dist/module/justifi-terminals-list.js +3 -3
  290. package/dist/module/justifi-tokenize-payment-method2.js +9 -6
  291. package/dist/module/package.js +1 -3
  292. package/dist/module/payment-method-option.js +1 -1
  293. package/dist/module/product-or-service2.js +1 -1
  294. package/dist/module/radio-list-item2.js +1 -1
  295. package/dist/module/refund-policy2.js +1 -1
  296. package/dist/module/save-new-payment-method2.js +1 -1
  297. package/dist/module/schema-validations.js +8 -2
  298. package/dist/module/shipping-details2.js +1 -1
  299. package/dist/module/table-filters-menu2.js +1 -1
  300. package/dist/module/terminal-quantity-selector2.js +1 -1
  301. package/dist/module/utils4.js +33 -1
  302. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
  303. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  304. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  305. package/dist/types/components/checkout/message-event-types.d.ts +2 -0
  306. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
  307. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
  308. package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
  309. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
  310. package/dist/types/components.d.ts +85 -3
  311. package/dist/types/store/checkout.store.d.ts +1 -0
  312. package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
  313. package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
  314. package/dist/types/ui-components/form/utils.d.ts +1 -0
  315. package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
  316. package/dist/types/utils/postal-code.d.ts +3 -0
  317. package/dist/webcomponents/p-12daf522.entry.js +1 -0
  318. package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
  319. package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
  320. package/dist/webcomponents/{p-0f7e3515.entry.js → p-1ff1dcc5.entry.js} +4 -4
  321. package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
  322. package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
  323. package/dist/webcomponents/{p-f2b3c7d5.entry.js → p-30ec1cd6.entry.js} +1 -1
  324. package/dist/webcomponents/p-357d14ee.entry.js +1 -0
  325. package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
  326. package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
  327. package/dist/webcomponents/{p-6c7fca1a.entry.js → p-4d85dd63.entry.js} +1 -1
  328. package/dist/webcomponents/p-521c534c.entry.js +1 -0
  329. package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
  330. package/dist/webcomponents/{p-88a44a02.entry.js → p-5e8f26ec.entry.js} +1 -1
  331. package/dist/webcomponents/p-622c2af4.entry.js +1 -0
  332. package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
  333. package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
  334. package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
  335. package/dist/webcomponents/p-73af269e.entry.js +1 -0
  336. package/dist/webcomponents/{p-a7c594d1.entry.js → p-7ff788f8.entry.js} +1 -1
  337. package/dist/webcomponents/{p-a10beb26.entry.js → p-846ae5d5.entry.js} +1 -1
  338. package/dist/webcomponents/p-8758aec4.entry.js +1 -0
  339. package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
  340. package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
  341. package/dist/webcomponents/p-91358854.entry.js +1 -0
  342. package/dist/webcomponents/{p-13814028.entry.js → p-956707a2.entry.js} +1 -1
  343. package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
  344. package/dist/webcomponents/{p-B_2zgnvM.js → p-BG8NxEUn.js} +1 -1
  345. package/dist/webcomponents/{p-DC2djVls.js → p-BKtKrQzN.js} +1 -1
  346. package/dist/webcomponents/p-BQpbTebi.js +1 -0
  347. package/dist/webcomponents/{p-BjjKkMO1.js → p-Bh5BNj74.js} +1 -1
  348. package/dist/webcomponents/{p-C6Jq8YDT.js → p-BtiJJJwv.js} +1 -1
  349. package/dist/webcomponents/p-BzESNgd8.js +1 -0
  350. package/dist/webcomponents/p-CkrzG0pB.js +1 -0
  351. package/dist/webcomponents/{p-D694H6co.js → p-Cl6irPVE.js} +1 -1
  352. package/dist/webcomponents/p-Cpck08K0.js +1 -0
  353. package/dist/webcomponents/{p-D7fNBSlC.js → p-Cy_sz0Tx.js} +1 -1
  354. package/dist/webcomponents/{p-pueOrhXO.js → p-D42DvqTW.js} +1 -1
  355. package/dist/webcomponents/{p-C60AkJ6a.js → p-DBudSN_h.js} +1 -1
  356. package/dist/webcomponents/p-DMzYgqml.js +1 -0
  357. package/dist/webcomponents/p-FsWkrvEF.js +1 -0
  358. package/dist/webcomponents/{p-BmaQUnqv.js → p-MLQyjvrV.js} +1 -1
  359. package/dist/webcomponents/p-a095b86d.entry.js +1 -0
  360. package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
  361. package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
  362. package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
  363. package/dist/webcomponents/{p-f5cb6a26.entry.js → p-b665841f.entry.js} +1 -1
  364. package/dist/webcomponents/p-b925d666.entry.js +1 -0
  365. package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
  366. package/dist/webcomponents/p-c172decb.entry.js +1 -0
  367. package/dist/webcomponents/p-c9871158.entry.js +1 -0
  368. package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
  369. package/dist/webcomponents/{p-f40fa614.entry.js → p-d35cde99.entry.js} +1 -1
  370. package/dist/webcomponents/{p-1cfa634a.entry.js → p-d48f80d1.entry.js} +1 -1
  371. package/dist/webcomponents/{p-cec7164e.entry.js → p-dae31a59.entry.js} +1 -1
  372. package/dist/webcomponents/p-deff4422.entry.js +1 -0
  373. package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
  374. package/dist/webcomponents/p-e6d1e3e2.entry.js +1 -0
  375. package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
  376. package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
  377. package/dist/webcomponents/{p-16261d8a.entry.js → p-f0084d20.entry.js} +1 -1
  378. package/dist/webcomponents/{p-065b854f.entry.js → p-f0da2ca5.entry.js} +1 -1
  379. package/dist/webcomponents/{p-9b43b90d.entry.js → p-f23d7d13.entry.js} +1 -1
  380. package/dist/webcomponents/p-f2c99647.entry.js +1 -0
  381. package/dist/webcomponents/p-f458928d.entry.js +1 -0
  382. package/dist/webcomponents/{p-429046e1.entry.js → p-f5686720.entry.js} +1 -1
  383. package/dist/webcomponents/p-f681f747.entry.js +1 -0
  384. package/dist/webcomponents/{p-0e9351c4.entry.js → p-f6efd9e0.entry.js} +1 -1
  385. package/dist/webcomponents/{p-a71cc8e2.entry.js → p-fa0427d5.entry.js} +1 -1
  386. package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
  387. package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
  388. package/dist/webcomponents/{p-iA-Amt2z.js → p-hdPjEOdB.js} +1 -1
  389. package/dist/webcomponents/{p-rFpPIJgu.js → p-l3JhjHLW.js} +1 -1
  390. package/dist/webcomponents/webcomponents.esm.js +1 -1
  391. package/package.json +14 -14
  392. package/LICENSE +0 -21
  393. package/dist/cjs/check-pkg-version-CjJab8fX.js +0 -47
  394. package/dist/cjs/utils-DAyWinG2.js +0 -29
  395. package/dist/collection/utils/check-pkg-version.js +0 -42
  396. package/dist/esm/check-pkg-version-BW9zgceK.js +0 -45
  397. package/dist/esm/package-BC9n8nB2.js +0 -7
  398. package/dist/esm/utils-BnjCmwMr.js +0 -27
  399. package/dist/module/check-pkg-version.js +0 -45
  400. package/dist/types/utils/check-pkg-version.d.ts +0 -1
  401. package/dist/webcomponents/p-082f912c.entry.js +0 -1
  402. package/dist/webcomponents/p-0cd689f4.entry.js +0 -1
  403. package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
  404. package/dist/webcomponents/p-10787684.entry.js +0 -1
  405. package/dist/webcomponents/p-19cabdaf.entry.js +0 -1
  406. package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
  407. package/dist/webcomponents/p-2ef913b8.entry.js +0 -1
  408. package/dist/webcomponents/p-36340e63.entry.js +0 -1
  409. package/dist/webcomponents/p-388082cd.entry.js +0 -1
  410. package/dist/webcomponents/p-3a1f8c5b.entry.js +0 -1
  411. package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
  412. package/dist/webcomponents/p-44ff4f2c.entry.js +0 -1
  413. package/dist/webcomponents/p-4740601b.entry.js +0 -1
  414. package/dist/webcomponents/p-59b95eae.entry.js +0 -1
  415. package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
  416. package/dist/webcomponents/p-735d397e.entry.js +0 -1
  417. package/dist/webcomponents/p-8432cb42.entry.js +0 -1
  418. package/dist/webcomponents/p-89f0c2aa.entry.js +0 -1
  419. package/dist/webcomponents/p-9db15fac.entry.js +0 -1
  420. package/dist/webcomponents/p-9eb00966.entry.js +0 -1
  421. package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
  422. package/dist/webcomponents/p-BAvoKtN2.js +0 -1
  423. package/dist/webcomponents/p-BC9n8nB2.js +0 -1
  424. package/dist/webcomponents/p-BnjCmwMr.js +0 -1
  425. package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
  426. package/dist/webcomponents/p-_MjmE9YT.js +0 -1
  427. package/dist/webcomponents/p-a8d25057.entry.js +0 -1
  428. package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
  429. package/dist/webcomponents/p-b9ba7c95.entry.js +0 -1
  430. package/dist/webcomponents/p-c385f10d.entry.js +0 -1
  431. package/dist/webcomponents/p-c55fdbbf.entry.js +0 -1
  432. package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
  433. package/dist/webcomponents/p-d3544e86.entry.js +0 -1
  434. package/dist/webcomponents/p-de047614.entry.js +0 -1
  435. package/dist/webcomponents/p-f0434a13.entry.js +0 -1
  436. package/dist/webcomponents/p-f9f310dc.entry.js +0 -1
  437. package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
  438. package/dist/webcomponents/p-riZDHN5-.js +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var _package = require('./package-30T__1wH.js');
4
- var Api = require('./Api-us3AxMRC.js');
3
+ var _package = require('./package-B414Jbra.js');
4
+ var Api = require('./Api-DqXlEWR1.js');
5
5
  require('./Plaid-BcOAKDaU.js');
6
6
  require('./Pagination-Dediz133.js');
7
7
  require('./Business-CNaz-VLa.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  var configState = require('./config-state-C1YMiFpR.js');
4
4
  var utils = require('./utils-DB4XHlAU.js');
5
- var _package = require('./package-30T__1wH.js');
5
+ var _package = require('./package-B414Jbra.js');
6
6
 
7
7
  const Api = () => {
8
8
  async function getAuthorizationHeader(authToken) {
@@ -3,8 +3,8 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var Plaid = require('./Plaid-BcOAKDaU.js');
5
5
  var paymentProvisioningActions = require('./payment-provisioning-actions-SVp7B8pR.js');
6
- var business_service = require('./business.service-_Sl3vWmu.js');
7
- var businessIdentitySchema = require('./business-identity-schema-XiCLzxWM.js');
6
+ var business_service = require('./business.service-Ca-olopC.js');
7
+ var businessIdentitySchema = require('./business-identity-schema-DuOIMFjG.js');
8
8
  var index_esm = require('./index.esm-BNETBIV_.js');
9
9
  var Business = require('./Business-CNaz-VLa.js');
10
10
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
@@ -12,24 +12,24 @@ var parts = require('./parts-BXshb_S-.js');
12
12
  var paymentProvisioningLoading = require('./payment-provisioning-loading-tM9WWmxv.js');
13
13
  var businessFormOptions = require('./business-form-options-BHBs_yiK.js');
14
14
  var eventTypes = require('./event-types-DNOUef41.js');
15
- var utils = require('./utils-DAyWinG2.js');
15
+ var utils = require('./utils-Ct_X5q0U.js');
16
16
  require('./config-state-C1YMiFpR.js');
17
17
  require('./dinero-BwNN_k7x.js');
18
18
  require('./Pagination-Dediz133.js');
19
- var schemaValidations = require('./schema-validations-sjRvL4KO.js');
19
+ var schemaValidations = require('./schema-validations-BDFa_oIq.js');
20
20
  var button = require('./button-CR9Rl1-o.js');
21
21
  require('./event-types-YOY5TKUN.js');
22
- var countryConfig = require('./country-config-DQQujh5h.js');
22
+ var countryConfig = require('./country-config-CFC3KuVD.js');
23
23
  var utils$1 = require('./utils-DB4XHlAU.js');
24
24
  var skeleton = require('./skeleton-DvRCiQlA.js');
25
25
  var inputHandlers = require('./input-handlers-v9h_2Ysi.js');
26
- var Api = require('./Api-us3AxMRC.js');
26
+ var Api = require('./Api-DqXlEWR1.js');
27
27
  var styledHost = require('./styled-host-CW1WUnUq.js');
28
- var plaid_service = require('./plaid.service-B58nzlUE.js');
28
+ var plaid_service = require('./plaid.service-d9LAwbnX.js');
29
29
  require('./utils-BScgWJC5.js');
30
30
  require('./_commonjsHelpers-BJu3ubxk.js');
31
31
  require('./index-DDrfAj-j.js');
32
- require('./package-30T__1wH.js');
32
+ require('./package-B414Jbra.js');
33
33
 
34
34
  // Emits a MISSING_PROPS error naming each falsy prop. Returns true when all props are present.
35
35
  // `props` keys are the public attribute names, e.g. { 'auth-token': this.authToken }.
@@ -5,7 +5,7 @@ var businessFormOptions = require('./business-form-options-BHBs_yiK.js');
5
5
  var formInputMasks = require('./form-input-masks-BnNFJ3IJ.js');
6
6
  var parts = require('./parts-BXshb_S-.js');
7
7
  var Business = require('./Business-CNaz-VLa.js');
8
- var countryConfig = require('./country-config-DQQujh5h.js');
8
+ var countryConfig = require('./country-config-CFC3KuVD.js');
9
9
 
10
10
  const AdditionalQuestions = class {
11
11
  constructor(hostRef) {
@@ -100,7 +100,7 @@ const AdditionalStatement = class {
100
100
  }
101
101
  render() {
102
102
  var _a, _b;
103
- return (index.h("div", { key: 'd87892b31a560cf5089bb8b94403deda25c75132' }, index.h("div", { key: 'a083b417adafd62cd32827014eb8566c8d8e431e', class: "row gy-3" }, index.h("div", { key: '832973d1fd655582b7371dcb0906b5fed9d77727', class: "col-12" }, index.h("h2", { key: '339e84637eb3e2080bc08c06379b436ed66cdbf3', class: "h5", part: parts.heading5 }, "Additional Evidence")), index.h("div", { key: 'a8228b7e9d8fd51f491f279975ba380a0f6f6029', class: "col-12" }, index.h("form-control-textarea", { key: '966cd51de65c862e9371f2e013f9f666da5f049a', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), index.h("div", { key: '3c21b60e1da1d208c16b4e4003242660f28f42e5', class: "col-12" }, index.h("form-control-file-v2", { key: 'f767738c5ebf8a63d403d48e971042aabdf91224', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
103
+ return (index.h("div", { key: '8dff14b5f29b28a18901b1eff60b3855d9094013' }, index.h("div", { key: '405d549adeb5150fd7ec834b699f83588892390e', class: "row gy-3" }, index.h("div", { key: 'a13e743d61fe9329e74b3a09712921cec6e253c2', class: "col-12" }, index.h("h2", { key: 'fbe30e865b8dbece987480e3ac804c3eabbf0746', class: "h5", part: parts.heading5 }, "Additional Evidence")), index.h("div", { key: '921aa04960a0c30d9733bc0db71dee4fcd78af55', class: "col-12" }, index.h("form-control-textarea", { key: 'cc4a0136fa728cce0390e4d9dd456a7ad9095244', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), index.h("div", { key: '0b35f4914c18432ca326a01c002710690c15d685', class: "col-12" }, index.h("form-control-file-v2", { key: '8c6a32df62ea4c217fad64fa1283033a85885076', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
104
104
  }
105
105
  };
106
106
 
@@ -134,7 +134,7 @@ const CancellationPolicy = class {
134
134
  }
135
135
  render() {
136
136
  var _a, _b, _c;
137
- return (index.h("div", { key: 'b2b9de71bee44157e6f62cab9a759ca3a6fc7c91' }, index.h("div", { key: 'b54a10355e8b0dd0da69e9c07abaf4376f759f4b', class: "row gy-3" }, index.h("div", { key: 'ed43e475ed87fa9658060f403187a063bec1813c', class: "col-12" }, index.h("h2", { key: '48e9d7955c066771d8c47b55abf4fc2498bcc11a', class: "h5", part: parts.heading5 }, "Cancellation Policy")), index.h("div", { key: '783da1c2a786ee85f412303583a778dd81331e8a', class: "col-12" }, index.h("form-control-textarea", { key: '04267a5b01060f577eb88810c83013e6cb2bc437', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), index.h("div", { key: '340db58f52fa708a40a1548b84411174f1b7ca85', class: "col-12" }, index.h("form-control-textarea", { key: 'a8dafe6142a2ce7409d7d7dd60637e819bb99b9e', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), index.h("div", { key: '7ff48beda50edb31c80d0bbe5fe7948ce214a493', class: "col-12" }, index.h("form-control-file-v2", { key: '2f3780f2036026f49db380d5201fc6a46d4b15c6', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
137
+ return (index.h("div", { key: 'bd649d7bc48208dec588f5677f2c87897bc43b8b' }, index.h("div", { key: '63263cfe2db3bb2d6f53ddf3c01124a6f70e4994', class: "row gy-3" }, index.h("div", { key: '457bc4393385a88d9d815bd590425c65ebf63d7b', class: "col-12" }, index.h("h2", { key: '66eadc2605b0541fca47cb426c8cf5f373b003f8', class: "h5", part: parts.heading5 }, "Cancellation Policy")), index.h("div", { key: 'dcdf62ecc017a197714207372104a355a42561f2', class: "col-12" }, index.h("form-control-textarea", { key: '06e2d122d0cb677e86fdf697d48d11db72c3a360', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), index.h("div", { key: 'e4b7de1e1820f7c59c7465784868ce4823244285', class: "col-12" }, index.h("form-control-textarea", { key: 'f57c5bd832f5bdf946341efe3ec0c594ebc27108', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), index.h("div", { key: '61e019cea906e3cb93952cf75fb01a6b9fc9cc66', class: "col-12" }, index.h("form-control-file-v2", { key: '62e0f7432ae9445aa9b19b467323f9ed7d9161f6', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
138
138
  }
139
139
  };
140
140
 
@@ -169,7 +169,7 @@ const CustomerDetails = class {
169
169
  }
170
170
  render() {
171
171
  var _a, _b, _c, _d, _e;
172
- return (index.h("div", { key: '4217dd2605586a82ee34515e6c9b5a3ab6358b55' }, index.h("div", { key: '42eb8a48d1161d329bddf574c863c92376a4bbc9', class: "row gy-3" }, index.h("div", { key: '4d8d1267035ed1e81e6050d7e648ff80d369365d', class: "col-12" }, index.h("h2", { key: '923c89d2959dd09fdbb60cfbca0d0021697dc5b8', class: "h5", part: parts.heading5 }, "Customer Details")), index.h("div", { key: '5b3daa86ad6ce05babf3efd0c3c4f3a3264b4c6c', class: "col-12" }, index.h("form-control-text", { key: 'bd6eae36d75ec77e8d652686f2f070bbead4e385', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), index.h("div", { key: '3f8f8ff8fcb8a8e41053e3f9b55152296cb91d3e', class: "col-12" }, index.h("form-control-text", { key: 'ddf390a5e37e99b8f99b7673b6b07f3851a759f4', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), index.h("div", { key: 'eed293a2acc46219bd33974f93affb3ca977fc57', class: "col-12" }, index.h("form-control-textarea", { key: '4f5e5b9cfc9aefe48c2c85bba3a3a308215c36b9', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), index.h("div", { key: '0ccfa871557435a96350e8ace59179611c01dc2c', class: "col-12" }, index.h("form-control-file-v2", { key: 'e9d35062a5011f4e72d60e85855efb0d7ceed8c1', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), index.h("div", { key: 'cb184b84ccc36bd51242dcb57c96ba2d85567e4a', class: "col-12" }, index.h("form-control-file-v2", { key: 'b7d1d427468cd0744001102e2c704e8ad65577b6', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
172
+ return (index.h("div", { key: '66ed4497457aab5cd214c356b23067eb5ab977b9' }, index.h("div", { key: '00b2241580f26aed52fb8c0dca06ffb8e07c2303', class: "row gy-3" }, index.h("div", { key: '23fd971d66b3e753df7ec5e20b8155865307261f', class: "col-12" }, index.h("h2", { key: 'df3880ae4959e4fe6a5fa2e67287e4bb40b6fc75', class: "h5", part: parts.heading5 }, "Customer Details")), index.h("div", { key: '1bd1010ba8c9bbdb4390e3d953a8cfc798a6745c', class: "col-12" }, index.h("form-control-text", { key: '170576aa6fbda10dcb3c3928cd8894df1f201223', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), index.h("div", { key: '39a99685a01018afa466fa214fd9f217b5682200', class: "col-12" }, index.h("form-control-text", { key: '8c99018cf0fe0c900512874be0261fb32578c803', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), index.h("div", { key: '6db37be2d5b9bef95c7e5e00a879847cbc89a9db', class: "col-12" }, index.h("form-control-textarea", { key: '48de189acf3dad170e1727b950cee28278eeabc9', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), index.h("div", { key: '9a85ca65d2a80c54617034af5350e7301dd475f5', class: "col-12" }, index.h("form-control-file-v2", { key: '0f6f2859e79998071e079bbb69fdb1b12e5b8c5d', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), index.h("div", { key: '8067bc3d834825f309fc3ed994b683233e2e9e90', class: "col-12" }, index.h("form-control-file-v2", { key: '97105708f4f6e668a6e62cb2f516969c79bedef7', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
173
173
  }
174
174
  };
175
175
 
@@ -203,7 +203,7 @@ const DuplicateCharge = class {
203
203
  }
204
204
  render() {
205
205
  var _a, _b, _c;
206
- return (index.h("div", { key: '805b160927f30729b321ffbafc15fe78fed732c9' }, index.h("div", { key: 'fcc99471b08ea21905c1246849ec41e05194834f', class: "row gy-3" }, index.h("div", { key: 'f7259723ec39b5ae09aaa552a99f3a8a15b85fd8', class: "col-12" }, index.h("h2", { key: '5f0719c624bce5542364120568079fb6921c7d6f', class: "h5", part: parts.heading5 }, "Duplicate Charge")), index.h("div", { key: '718c50ebae8b6ca9c146d81f261dad5007945a33', class: "col-12" }, index.h("form-control-text", { key: '090a5f0e4ca359af300f655ad94296af1a28eef0', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), index.h("div", { key: '217b8e9b896412a1e74d138c20d6cc42760e7a54', class: "col-12" }, index.h("form-control-textarea", { key: 'd9ba9a25ccaa5848f17ec8f1dfde222c29624e06', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), index.h("div", { key: 'eb26362fb100e775339b4a64959521a1b7cad394', class: "col-12" }, index.h("form-control-file-v2", { key: '5753787dd59e736a7a2dea84268d93983cfdeae4', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
206
+ return (index.h("div", { key: '40c441cca0667d42a17b2d030cd11499b5fd0971' }, index.h("div", { key: '9187708d76c4a631c8741e1ec60684fdb3b7c65f', class: "row gy-3" }, index.h("div", { key: '9a388c46052814718253a4333da1a3e010316e14', class: "col-12" }, index.h("h2", { key: '677c93c72112ac96e41e43080fba1d2750bc71de', class: "h5", part: parts.heading5 }, "Duplicate Charge")), index.h("div", { key: '475e5bd708aed12d866560dd12ddde92b8643f82', class: "col-12" }, index.h("form-control-text", { key: 'a47b1642e9ca1475d6165403d5589f874908b1c0', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), index.h("div", { key: '75890d7ba8e0e0f4117477f0c52f3af0a867f3b3', class: "col-12" }, index.h("form-control-textarea", { key: 'c86ae32a39e1ed3be449eb91efa8039ec78b18eb', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), index.h("div", { key: '81d2eb27f4350e57cc3e89170839816166339731', class: "col-12" }, index.h("form-control-file-v2", { key: 'a7456a1a8f3363d05361667d5d9a8e99c6581bf1', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
207
207
  }
208
208
  };
209
209
 
@@ -236,7 +236,7 @@ const ElectronicEvidence = class {
236
236
  }
237
237
  render() {
238
238
  var _a, _b;
239
- return (index.h("div", { key: '1de8dc7fafbd3dba15344a817fd2c008929ab0bc' }, index.h("div", { key: 'dda3c4b88713e0e1b9fe25c2a4fe2d015889f2b3', class: "row gy-3" }, index.h("div", { key: '1638ff98ca047509306f9387e68ba83c9be5c885', class: "col-12" }, index.h("h2", { key: '9ee705b8558a88bd4eebe2448e2da655fbcf9bf3', class: "h5", part: parts.heading5 }, "Electronic Evidence")), index.h("div", { key: '71a392aa19784a1e25654791544fab6e9fd482a6', class: "col-12" }, index.h("form-control-text", { key: 'b2ef47161c0c73f010461f326f39f60efb140ae8', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), index.h("div", { key: '0341ecbd1404b29e223d508e937752ed67a5f9e2', class: "col-12" }, index.h("form-control-file-v2", { key: '00d8fd3c9bfded6f20ae8568aca1fd21564649df', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
239
+ return (index.h("div", { key: '592472282564a406e318b5639e1f8e3f1aeb55bd' }, index.h("div", { key: '0e49a34f48905ede20c17d4e2a8e529a3aaad2b9', class: "row gy-3" }, index.h("div", { key: '9f15e709a8a31b6c2cf3ca43d543090a8dd8ca5d', class: "col-12" }, index.h("h2", { key: '3223ed0c95dd5d08b5d8a481dfdc57d65ee3ea2f', class: "h5", part: parts.heading5 }, "Electronic Evidence")), index.h("div", { key: 'f82434ae90705238088c1e01625c1d674337f823', class: "col-12" }, index.h("form-control-text", { key: '81586970861191e628ba6d3d55d792081f868193', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), index.h("div", { key: '1ec47d1e437926e010e19f0352c6c237cb61aeaa', class: "col-12" }, index.h("form-control-file-v2", { key: '8ee1599fc2142dd269ccddd08ef60cb1a337122a', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
240
240
  }
241
241
  };
242
242
 
@@ -270,7 +270,7 @@ const ProductOrService = class {
270
270
  }
271
271
  render() {
272
272
  var _a, _b, _c;
273
- return (index.h("div", { key: '3f2d1c2f4b0595e922712f8754ae1022b2d19261' }, index.h("div", { key: '0ab14085510225a4d00b352014ea72f4dc0a059a', class: "row gy-3" }, index.h("div", { key: '12271b714bf3e6b6756274674e3413018124fa4c', class: "col-12" }, index.h("h2", { key: '9b6175bf1eb88788b909be3f7a46337a75856306', class: "h5", part: parts.heading5 }, "Product & Service Details")), index.h("div", { key: '912e647000393b9146329e7d4cca78ee15837621', class: "col-12" }, index.h("form-control-text", { key: '7b365315a58fdfa65fa7e1e6f009dc5c70c17d95', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), index.h("div", { key: '03d48b21fb83a4a4b07ed6f0f7b6f08a32c10ce5', class: "col-12" }, index.h("form-control-date", { key: 'fbd7c448acc69aa0012999f90d3b38f9374af933', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), index.h("div", { key: '74683fc2825cffa9403313b21d52a4ddb76db12e', class: "col-12" }, index.h("form-control-file-v2", { key: '7d3e5f2f96375d884a98e207c22d2b3115ed6e1b', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
273
+ return (index.h("div", { key: '466646e97a89d70914e592693918d5ea524504a8' }, index.h("div", { key: '78f02a847c7474733400f2d4e8a6712c9689402e', class: "row gy-3" }, index.h("div", { key: '0367c4de7453b26becfc2edfe7f5899e6b30f554', class: "col-12" }, index.h("h2", { key: '10490c7e30a1ec7c23cd47f80a905e21bb874b38', class: "h5", part: parts.heading5 }, "Product & Service Details")), index.h("div", { key: 'a18c64c22a5efe19c5b6603d0497a17a54ac6fa8', class: "col-12" }, index.h("form-control-text", { key: '7d35738871259b0b0bf83cbb6014062d09299a21', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), index.h("div", { key: '24a337727ad90599b1368c2c3fff6cea4c40d172', class: "col-12" }, index.h("form-control-date", { key: '5222da0eed927c2bc61baba87d8c004bfbf674e0', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), index.h("div", { key: '1f422eea9d59d4d01d333e25e2003ecb3954656d', class: "col-12" }, index.h("form-control-file-v2", { key: '8df9a14fc7311e1c47ca06c9a3a32ac09a291d4b', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
274
274
  }
275
275
  };
276
276
 
@@ -304,7 +304,7 @@ const RefundPolicy = class {
304
304
  }
305
305
  render() {
306
306
  var _a, _b, _c, _d;
307
- return (index.h("div", { key: '828ac1997382fa491920b9439099959ae5376c81' }, index.h("div", { key: '8d0453e4c2ec424a2010cfd01885cb4a03020d93', class: "row gy-3" }, index.h("div", { key: 'd15021ea6df4b3939d4564a84951ebadb50cc7cd', class: "col-12" }, index.h("h2", { key: '632eafab4924af0d433f28a3329877b98376ea27', class: "h5", part: parts.heading5 }, "Refund Policy and Receipt")), index.h("div", { key: 'cb55f0f106e68e9af4057a4496811db991f487d0', class: "col-12" }, index.h("form-control-textarea", { key: '1fdca1aea95757a0dac55b338355eeffd351c6cb', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), index.h("div", { key: '6f6c35c4626a764e4119dc253aded2985ac6ffbc', class: "col-12" }, index.h("form-control-textarea", { key: '6c0fcba48cad9f8c3cc9ed6c35d6b0e1301f9c35', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), index.h("div", { key: '1bf52c92c53313ab7542bfc1b2ed607e9d5db032', class: "col-12" }, index.h("form-control-file-v2", { key: '67b266e26d5568e3370b3f8aaad2c0d6450f67f6', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), index.h("div", { key: '8994ee85c8a31fc709a0fa396d97e4da576e57c3', class: "col-12" }, index.h("form-control-file-v2", { key: 'c468b92349b6a92f02b6eef0dc06c71dfc924c4e', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
307
+ return (index.h("div", { key: 'ec311e40104fb629ea148d4bd4e3b75b7384c271' }, index.h("div", { key: 'b520aca75b00bf6f698c551cd51efcd8ae8cddca', class: "row gy-3" }, index.h("div", { key: '98c7a3ae28e9b9d8de6e9f860b26224ff83e5752', class: "col-12" }, index.h("h2", { key: '334c7e259e7e8ba1202252e6135e1ff960ea34d4', class: "h5", part: parts.heading5 }, "Refund Policy and Receipt")), index.h("div", { key: 'bb6783c720ca99ae968580610a3af79a86bf6dc3', class: "col-12" }, index.h("form-control-textarea", { key: '63fbdface8c0339b9989ddb2f9f0af427845118c', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), index.h("div", { key: '0a138ff7a02788003437e0d7f07dbe59e4cb05a7', class: "col-12" }, index.h("form-control-textarea", { key: '9f2518ad7955096c93c74fd856514b68ef7d192a', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), index.h("div", { key: '18922e3843fa6b445b3aaa384b341aae5b2b2443', class: "col-12" }, index.h("form-control-file-v2", { key: '0f34e5dd3901eb74bfd20d93eb9fe6087d808b5c', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), index.h("div", { key: '42a5952ae76b7468bde8d2c3edd8bcb0bfde5cd6', class: "col-12" }, index.h("form-control-file-v2", { key: 'ad4297e944e1ac01f0f290595d70d12a9a05a93a', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
308
308
  }
309
309
  };
310
310
 
@@ -341,7 +341,7 @@ const ShippingDetails = class {
341
341
  }
342
342
  render() {
343
343
  var _a, _b, _c, _d, _e;
344
- return (index.h("div", { key: '0d7695711048ad14596ba44e364b45e3aa3d1e39' }, index.h("div", { key: 'e6911e35f66ef8aaa591f54e389d67c202af8172', class: "row gy-3" }, index.h("div", { key: 'd59ab2fe6318a27c4b38650e4e9d07b9c851041f', class: "col-12" }, index.h("h2", { key: 'b8a8634fe9dcf11c332dab0c1736732e579aeb59', class: "h5", part: parts.heading5 }, "Shipping Details")), index.h("div", { key: '5170b37a386805e194d8cf7c769ffdbac8db8fa2', class: "col-12" }, index.h("form-control-text", { key: '7bc3f59737fa075134e2bc476fa26d79ddc4e26b', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), index.h("div", { key: 'ef41052d0eec68b02d04638ce7cfdbc1477c16eb', class: "col-12" }, index.h("form-control-text", { key: 'b88d31bed47cdf09e04a29122c1adf955bdc4d25', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), index.h("div", { key: '743dea4d8f59e62103403fa58936ca86d7bbf216', class: "col-12" }, index.h("form-control-date", { key: '4be255a38f91f9bf758428d780649d2775d22153', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), index.h("div", { key: '7b274a743a9ca8f3cb7b86facbe12b723b8695e4', class: "col-12" }, index.h("form-control-textarea", { key: '833a03ac489cfa6fe6991e14a079b104b7b86ddc', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), index.h("div", { key: 'a1363e8014fe90442e1d0f6820bf2b9cf9966c90', class: "col-12" }, index.h("form-control-file-v2", { key: 'beb99c4b9e898265f8a904984172fb1a6a52cb49', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
344
+ return (index.h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, index.h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, index.h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, index.h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: parts.heading5 }, "Shipping Details")), index.h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, index.h("form-control-text", { key: '3b5c43c4b8baa62a756cc2dd7edb54fc0c118ede', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), index.h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, index.h("form-control-text", { key: '5367ef8b37625d6e3ca42eb68eda5e142ff5d783', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), index.h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, index.h("form-control-date", { key: '821d218825643775282742b0c63f8c803a6c47e5', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), index.h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, index.h("form-control-textarea", { key: 'f0130e6c0a7ca54e20f6406fbe6276fa8cffbf61', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), index.h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, index.h("form-control-file-v2", { key: '5d3f0d1a199b563c9ed433cb971f541a4cb54083', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
345
345
  }
346
346
  };
347
347
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  var index_esm = require('./index.esm-BNETBIV_.js');
5
- var schemaValidations = require('./schema-validations-sjRvL4KO.js');
5
+ var schemaValidations = require('./schema-validations-BDFa_oIq.js');
6
6
  var parts = require('./parts-BXshb_S-.js');
7
- var checkout_store = require('./checkout.store-DaV9lvEQ.js');
7
+ var checkout_store = require('./checkout.store-B5lTwvUV.js');
8
8
  var index$1 = require('./index-DDa1jd08.js');
9
9
  var header3 = require('./header-3-DCYJhPro.js');
10
10
  require('./event-types-YOY5TKUN.js');
11
+ var countryConfig = require('./country-config-CFC3KuVD.js');
11
12
  require('./_commonjsHelpers-BJu3ubxk.js');
12
- require('./country-config-DQQujh5h.js');
13
13
  require('./Business-CNaz-VLa.js');
14
14
  require('./business-form-options-BHBs_yiK.js');
15
15
  require('./index-DDrfAj-j.js');
@@ -139,7 +139,10 @@ const BillingFormFull = class {
139
139
  (_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
140
140
  }
141
141
  async getValues() {
142
- return this.formController.values.getValue();
142
+ const values = this.formController.values.getValue();
143
+ // checkoutStore values skip the input transform, so normalize on the way out.
144
+ return (values === null || values === void 0 ? void 0 : values.address_postal_code)
145
+ ? Object.assign(Object.assign({}, values), { address_postal_code: countryConfig.normalizePostalCode(values.address_postal_code) }) : values;
143
146
  }
144
147
  async validate() {
145
148
  const isValid = await this.formController.validate();
@@ -151,7 +154,7 @@ const BillingFormFull = class {
151
154
  return null;
152
155
  }
153
156
  const billingFormDefaultValue = this.formController.getInitialValues();
154
- return (index.h("div", { part: parts.billingForm, class: "mt-4" }, index.h(header3.Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", null, index.h("fieldset", null, this.legend && (index.h("legend", null, this.legend)), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: 'address_state', label: 'State / Province', options: schemaValidations.checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
157
+ return (index.h("div", { part: parts.billingForm, class: "mt-4" }, index.h(header3.Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), index.h("form", null, index.h("fieldset", null, this.legend && (index.h("legend", null, this.legend)), index.h("div", { class: "row gy-3" }, index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-select", { name: 'address_state', label: 'State / Province', options: schemaValidations.checkoutBillingStateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), index.h("div", { class: "col-12" }, index.h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, transformValue: countryConfig.normalizePostalCode, maxLength: 10 })))))));
155
158
  }
156
159
  };
157
160
 
@@ -184,7 +187,10 @@ const CardBillingFormSimple = class {
184
187
  (_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
185
188
  }
186
189
  async getValues() {
187
- return this.formController.values.getValue();
190
+ const values = this.formController.values.getValue();
191
+ // checkoutStore values skip the input transform, so normalize on the way out.
192
+ return (values === null || values === void 0 ? void 0 : values.address_postal_code)
193
+ ? Object.assign(Object.assign({}, values), { address_postal_code: countryConfig.normalizePostalCode(values.address_postal_code) }) : values;
188
194
  }
189
195
  async validate() {
190
196
  const isValid = await this.formController.validate();
@@ -193,7 +199,7 @@ const CardBillingFormSimple = class {
193
199
  }
194
200
  render() {
195
201
  const billingFormDefaultValue = this.formController.getInitialValues();
196
- return (index.h("div", { key: 'c2fa07fce39ab1b47c99539b312fdf84e782f4dc', part: parts.billingForm }, index.h("form", { key: '3bd9fdcd20ca3c014472c5ea2438214ece25abc5' }, index.h("fieldset", { key: 'c06cc32d36e56acfcc0a0925d8c9d45040654a63' }, this.legend && (index.h("legend", { key: 'ec087f9940930a9efa8c6b5e92767032ba9b8b5e' }, this.legend)), index.h("div", { key: '003ecc05fde14a1f1a6727f73f78ddbb81678680', class: "row gy-3" }, index.h("div", { key: '2de4de749a16b5fd478284a0eda93122ff67f0af', class: "col-12" }, index.h("form-control-text", { key: '26c2b72da72e11a3d1561ace457259521bb5d74d', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
202
+ return (index.h("div", { key: 'afc6ba1fc118b81d3fd2963a86db38236c0871ac', part: parts.billingForm }, index.h("form", { key: 'db49c3bdb2a243615704e42d9a2cedee6fbcc469' }, index.h("fieldset", { key: '9aa92c3a19f81f67e9be1a2a64b72975b96204d9' }, this.legend && (index.h("legend", { key: 'abdc6c1c28dc142ec7635871fa0b96f14de35c4e' }, this.legend)), index.h("div", { key: '19f69483b9fcd39d61cd8bdc20b8fa6ee80a5477', class: "row gy-3" }, index.h("div", { key: 'fff29f5a5920276125839cebeec10f8417b67805', class: "col-12" }, index.h("form-control-text", { key: 'd257c668d29a3c8f70ae125eff529a727cf7fcca', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, transformValue: countryConfig.normalizePostalCode, maxLength: 10 })))))));
197
203
  }
198
204
  };
199
205
 
@@ -4,8 +4,8 @@ var index = require('./index-p7cvUYAE.js');
4
4
  var skeleton = require('./skeleton-DvRCiQlA.js');
5
5
  var configState = require('./config-state-C1YMiFpR.js');
6
6
  var utils = require('./utils-DB4XHlAU.js');
7
- var checkPkgVersion = require('./check-pkg-version-CjJab8fX.js');
8
- var checkout_store = require('./checkout.store-DaV9lvEQ.js');
7
+ var detectDuplicateVersion = require('./detect-duplicate-version-D8ZajVUT.js');
8
+ var checkout_store = require('./checkout.store-B5lTwvUV.js');
9
9
  var Plaid = require('./Plaid-BcOAKDaU.js');
10
10
  require('./Pagination-Dediz133.js');
11
11
  require('./Business-CNaz-VLa.js');
@@ -14,7 +14,7 @@ require('./event-types-YOY5TKUN.js');
14
14
  require('./parts-BXshb_S-.js');
15
15
  require('./index-DDrfAj-j.js');
16
16
  require('./dinero-BwNN_k7x.js');
17
- require('./package-30T__1wH.js');
17
+ require('./package-B414Jbra.js');
18
18
  require('./index-DDa1jd08.js');
19
19
 
20
20
  const BankAccountFormSkeleton = () => {
@@ -26,9 +26,13 @@ const BankAccountForm = class {
26
26
  index.registerInstance(this, hostRef);
27
27
  this.errorEvent = index.createEvent(this, "error-event", 7);
28
28
  this.iframeState = 'loading';
29
+ this.showAccountNumberConfirmation = false;
29
30
  this.hasLoggedAchDisabledWarning = false;
31
+ this.loadedInputIds = new Set();
32
+ this.watchedInputIds = '';
30
33
  this.reloadIframes = () => {
31
34
  this.iframeState = 'loading';
35
+ this.loadedInputIds.clear();
32
36
  this.iframeElements.forEach((element) => element.reload());
33
37
  this.watchIframesLoad();
34
38
  };
@@ -37,12 +41,19 @@ const BankAccountForm = class {
37
41
  await configState.waitForConfig();
38
42
  this.iframeOrigin = configState.configState.iframeOrigin;
39
43
  this.tabId = utils.generateTabId();
40
- checkPkgVersion.checkPkgVersion();
44
+ detectDuplicateVersion.detectDuplicateVersion();
41
45
  }
42
46
  componentDidRender() {
43
- if (this.loadAbortController || !this.iframeElements.every(Boolean)) {
47
+ if (this.iframeElements.length < this.expectedIframeCount) {
44
48
  return;
45
49
  }
50
+ // Re-watch when the rendered field set changes -- showAccountNumberConfirmation
51
+ // can flip on after the first watch already finished.
52
+ const inputIds = this.iframeElements.map((element) => element.inputId).join(',');
53
+ if (inputIds === this.watchedInputIds) {
54
+ return;
55
+ }
56
+ this.watchedInputIds = inputIds;
46
57
  this.watchIframesLoad();
47
58
  }
48
59
  disconnectedCallback() {
@@ -54,13 +65,24 @@ const BankAccountForm = class {
54
65
  }
55
66
  async validate() {
56
67
  if (this.isAchDisabledForCheckout()) {
57
- return false;
68
+ return { isValid: false };
69
+ }
70
+ const elements = this.iframeElements;
71
+ // A field that has not rendered yet cannot be validated -- fail closed
72
+ // rather than report a pass for a form that is not all there.
73
+ if (elements.length < this.expectedIframeCount) {
74
+ return { isValid: false };
58
75
  }
59
- const accountNumberIsValid = await this.accountNumberIframeElement.validate();
60
- const routingNumberIsValid = await this.routingNumberIframeElement.validate();
61
- return accountNumberIsValid && routingNumberIsValid;
76
+ // Sequential on purpose: the parent correlates iframe replies by eventType
77
+ // alone, with no request id, so concurrent validates would cross replies.
78
+ const results = [];
79
+ for (const element of elements) {
80
+ results.push(await element.validate());
81
+ }
82
+ return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
62
83
  }
63
84
  async tokenize({ clientId, paymentMethodMetadata, account }) {
85
+ var _a, _b;
64
86
  if (this.isAchDisabledForCheckout()) {
65
87
  return {
66
88
  error: {
@@ -68,25 +90,54 @@ const BankAccountForm = class {
68
90
  },
69
91
  };
70
92
  }
93
+ // tokenize() is a public @Method: an integrator with their own submit button
94
+ // can reach it without validate(), so the mismatch check has to live here too.
95
+ if (this.showAccountNumberConfirmation) {
96
+ const confirmation = await ((_a = this.accountNumberConfirmationIframeElement) === null || _a === void 0 ? void 0 : _a.validate());
97
+ if ((confirmation === null || confirmation === void 0 ? void 0 : confirmation.isValid) !== true) {
98
+ return {
99
+ error: {
100
+ code: 'validation_error',
101
+ message: ((_b = confirmation === null || confirmation === void 0 ? void 0 : confirmation.error) === null || _b === void 0 ? void 0 : _b.message) ||
102
+ 'The entered value does not match the account number',
103
+ },
104
+ };
105
+ }
106
+ }
71
107
  const result = await this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
72
108
  return result;
73
109
  }
74
110
  get isReady() {
75
111
  return this.iframeState === 'ready';
76
112
  }
113
+ get expectedIframeCount() {
114
+ return this.showAccountNumberConfirmation ? 3 : 2;
115
+ }
77
116
  get iframeElements() {
78
117
  return [
79
118
  this.accountNumberIframeElement,
119
+ ...(this.showAccountNumberConfirmation
120
+ ? [this.accountNumberConfirmationIframeElement]
121
+ : []),
80
122
  this.routingNumberIframeElement,
81
- ];
123
+ ].filter(Boolean);
82
124
  }
83
125
  watchIframesLoad() {
84
126
  var _a;
85
127
  (_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
86
128
  const { signal } = (this.loadAbortController = new AbortController());
87
- const pending = new Set(this.iframeElements.map((element) => element.inputId));
129
+ const pending = new Set(this.iframeElements
130
+ .filter((element) => !this.loadedInputIds.has(element.inputId))
131
+ .map((element) => element.inputId));
88
132
  const loaded = Promise.all(this.iframeElements.map((element) => (new Promise((resolve) => {
133
+ // iframeLoaded is a once: true listener, so an element that already
134
+ // loaded will never fire again on a re-watch.
135
+ if (this.loadedInputIds.has(element.inputId)) {
136
+ resolve();
137
+ return;
138
+ }
89
139
  element.addEventListener('iframeLoaded', () => {
140
+ this.loadedInputIds.add(element.inputId);
90
141
  pending.delete(element.inputId);
91
142
  resolve();
92
143
  }, { once: true, signal });
@@ -110,6 +161,9 @@ const BankAccountForm = class {
110
161
  return;
111
162
  this.iframeState = 'error';
112
163
  (_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
164
+ if (pending.has('accountNumberConfirmation')) {
165
+ console.error('[bank-account-form] "Confirm Account Number" field failed to load.');
166
+ }
113
167
  this.errorEvent.emit({
114
168
  errorCode: Plaid.ComponentErrorCodes.IFRAME_LOAD_ERROR,
115
169
  message: Plaid.ComponentErrorMessages.IFRAME_LOAD_ERROR,
@@ -134,7 +188,7 @@ const BankAccountForm = class {
134
188
  return (index.h("div", null, this.iframeState === 'loading' && index.h(BankAccountFormSkeleton, null), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", null), index.h("div", { class: "container-fluid p-0", style: {
135
189
  opacity: this.isReady ? '1' : '0',
136
190
  height: this.isReady ? 'auto' : '0',
137
- } }, index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), index.h("div", { class: "row" }, index.h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
191
+ } }, index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), this.showAccountNumberConfirmation && (index.h("div", { class: "row mb-3" }, index.h("iframe-input", { inputId: "accountNumberConfirmation", ref: (el) => (this.accountNumberConfirmationIframeElement = el), label: "Confirm Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumberConfirmation?tabId=${this.tabId}` }))), index.h("div", { class: "row" }, index.h("iframe-input", { inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
138
192
  }
139
193
  };
140
194
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index_esm = require('./index.esm-BNETBIV_.js');
4
- var schemaValidations = require('./schema-validations-sjRvL4KO.js');
4
+ var schemaValidations = require('./schema-validations-BDFa_oIq.js');
5
5
  var Business = require('./Business-CNaz-VLa.js');
6
- var countryConfig = require('./country-config-DQQujh5h.js');
6
+ var countryConfig = require('./country-config-CFC3KuVD.js');
7
7
 
8
8
  // Base schema (no country-specific rules for classification/tax id)
9
9
  const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Api = require('./Api-us3AxMRC.js');
3
+ var Api = require('./Api-DqXlEWR1.js');
4
4
  require('./Plaid-BcOAKDaU.js');
5
5
  require('./Pagination-Dediz133.js');
6
6
  require('./Business-CNaz-VLa.js');
@@ -4,7 +4,7 @@ var index = require('./index-p7cvUYAE.js');
4
4
  var skeleton = require('./skeleton-DvRCiQlA.js');
5
5
  var configState = require('./config-state-C1YMiFpR.js');
6
6
  var utils = require('./utils-DB4XHlAU.js');
7
- var checkPkgVersion = require('./check-pkg-version-CjJab8fX.js');
7
+ var detectDuplicateVersion = require('./detect-duplicate-version-D8ZajVUT.js');
8
8
  var Plaid = require('./Plaid-BcOAKDaU.js');
9
9
  require('./Pagination-Dediz133.js');
10
10
  require('./Business-CNaz-VLa.js');
@@ -13,7 +13,7 @@ require('./event-types-YOY5TKUN.js');
13
13
  require('./parts-BXshb_S-.js');
14
14
  require('./index-DDrfAj-j.js');
15
15
  require('./dinero-BwNN_k7x.js');
16
- require('./package-30T__1wH.js');
16
+ require('./package-B414Jbra.js');
17
17
 
18
18
  const CardFormSkeleton = () => {
19
19
  return (index.h("div", { class: "container-fluid p-0" }, index.h("div", { class: "mb-3" }, index.h(skeleton.Skeleton, { height: "18px", width: "100px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "row" }, index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "80px" }), index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "36px" })), index.h("div", { class: "col-4 align-content-end" }, index.h(skeleton.Skeleton, { height: "18px", width: "30px" }), index.h(skeleton.Skeleton, { height: "36px" })))));
@@ -24,6 +24,8 @@ const CardForm = class {
24
24
  index.registerInstance(this, hostRef);
25
25
  this.errorEvent = index.createEvent(this, "error-event", 7);
26
26
  this.iframeState = 'loading';
27
+ /** Mask the card number to its last four digits when the field blurs. */
28
+ this.maskCardNumber = false;
27
29
  this.reloadIframes = () => {
28
30
  this.iframeState = 'loading';
29
31
  this.iframeElements.forEach((element) => element.reload());
@@ -34,7 +36,7 @@ const CardForm = class {
34
36
  await configState.waitForConfig();
35
37
  this.iframeOrigin = configState.configState.iframeOrigin;
36
38
  this.tabId = utils.generateTabId();
37
- checkPkgVersion.checkPkgVersion();
39
+ detectDuplicateVersion.detectDuplicateVersion();
38
40
  }
39
41
  componentDidLoad() {
40
42
  this.watchIframesLoad();
@@ -44,11 +46,13 @@ const CardForm = class {
44
46
  (_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
45
47
  }
46
48
  async validate() {
47
- const cardNumberIsValid = await this.cardNumberIframeElement.validate();
48
- const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
49
- const expirationYearIsValid = await this.expirationYearIframeElement.validate();
50
- const cvvIsValid = await this.cvvIframeElement.validate();
51
- return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
49
+ // Sequential on purpose: the parent correlates iframe replies by eventType
50
+ // alone, with no request id, so concurrent validates would cross replies.
51
+ const results = [];
52
+ for (const element of this.iframeElements) {
53
+ results.push(await element.validate());
54
+ }
55
+ return { isValid: results.every((result) => (result === null || result === void 0 ? void 0 : result.isValid) === true) };
52
56
  }
53
57
  async tokenize({ clientId, paymentMethodMetadata, account, }) {
54
58
  const result = await this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
@@ -109,10 +113,10 @@ const CardForm = class {
109
113
  return (index.h("div", null, index.h("form-alert", { text: Plaid.ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), index.h(button.Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
110
114
  }
111
115
  render() {
112
- return (index.h("div", { key: 'a6630edeb25e19b72a6ad2588a28003ee53bda91' }, this.iframeState === 'loading' && index.h(CardFormSkeleton, { key: '346df12a8dcfa70ff35381491c10550a44dee1c1' }), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", { key: 'e63dfbd08d05c929d7f25257a0832d68246aa037' }), index.h("div", { key: '3cffef99661c7fc1289581c3c43cf7f2c2ec4558', class: "container-fluid p-0", style: {
116
+ return (index.h("div", { key: '6f1adaa489228ab15ee8803f5e8d94b4f38df172' }, this.iframeState === 'loading' && index.h(CardFormSkeleton, { key: '01f38bf843e382d8fb34e59011a603e3a0955847' }), this.iframeState === 'error' && this.renderIframeError(), index.h("hidden-input", { key: 'd4fe8201e7df2ffd00cf76314da60dfa375d0c92' }), index.h("div", { key: 'be021b08ea0cb9bbd4e4dbb9258fb1e4cf0715b7', class: "container-fluid p-0", style: {
113
117
  opacity: this.isReady ? '1' : '0',
114
118
  height: this.isReady ? 'auto' : '0',
115
- } }, index.h("div", { key: '493e63b1e26542e502fb028192a2ed1479d85c8d', class: "mb-3" }, index.h("iframe-input", { key: '337b63edc91e78baa975bbfa067e17bd29a5b704', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), index.h("div", { key: '04628f41b2c78cbb68bcabfe7809c047dc394c50', class: "row" }, index.h("div", { key: '9ea7675dcab4ad6f6bce214b79527569ffc272b9', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'ab7f0c3e68848a048104a6644b2617e9b8b94e35', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), index.h("div", { key: 'a24a31ef92175734aa8d5a6be241ddb37f94e4d2', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '623fffa1cdc854b629314fc125b476d2541f2290', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), index.h("div", { key: 'ab7737e03a1d6ccad1e70e575cea100040de70fd', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'b755098bc225d91125a70bcb2cae933e4cd08f2d', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
119
+ } }, index.h("div", { key: '5771c79e70cc49c15d170d0f3f820e4d04ab203a', class: "mb-3" }, index.h("iframe-input", { key: 'f24efbd4677be8bd07c9cf3cd0bf77df7b98993e', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", maskCardNumber: this.maskCardNumber, iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), index.h("div", { key: '1d5923d02dbd23551cab1f8bb5d4ef3b5534f152', class: "row" }, index.h("div", { key: '1db376daa12621f2f17113a96ab693bfaae2fc38', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '5cb8c4796ea7f609fecd0919709f70c52ae9c55c', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), index.h("div", { key: '0cc0c04b35174c56097f687d2f843f874ed7fee0', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '79cb809ad28c53c276903ddc5ece50b07fabfd56', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), index.h("div", { key: 'e04d26f47245b1f4977e57e456b12f630b8c63cd', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '6e5e2dabbf28725e7e2499455bff1b34f6aefcf9', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
116
120
  }
117
121
  };
118
122
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Api = require('./Api-us3AxMRC.js');
3
+ var Api = require('./Api-DqXlEWR1.js');
4
4
  require('./Plaid-BcOAKDaU.js');
5
5
  require('./Pagination-Dediz133.js');
6
6
  require('./Business-CNaz-VLa.js');
@@ -29,6 +29,7 @@ const initialState = {
29
29
  disableBankAccount: false,
30
30
  disableCreditCard: false,
31
31
  disablePaymentMethodGroup: false,
32
+ maskCardNumber: false,
32
33
  paymentAmount: 0,
33
34
  paymentCurrency: 'USD',
34
35
  paymentDescription: '',
@@ -22,6 +22,26 @@ const ProvinceOptions = [
22
22
  { label: 'Yukon', value: 'YT' },
23
23
  ];
24
24
 
25
+ // Canada Post addressing guidelines: a postal code is six characters in the form
26
+ // "ANA NAN", with a single space between the Forward Sortation Area and the Local
27
+ // Delivery Unit. The first character of the FSA identifies one of 18 geographic
28
+ // areas, so D, F, I, O, Q, U, W and Z never appear there.
29
+ // https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/postal-codes.page
30
+ const US_ZIP_REGEX = /^\d{5}(-\d{4})?$/;
31
+ const CA_OR_US_POSTAL_REGEX = /^([ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d|\d{5}(-\d{4})?)$/i;
32
+ // Opening alpha-numeric-alpha is what distinguishes a Canadian code from a US ZIP.
33
+ const CA_SHAPE = /^[A-Z]\d[A-Z]/;
34
+ const normalizePostalCode = (value) => {
35
+ if (!value)
36
+ return value;
37
+ const upper = value.toUpperCase();
38
+ // A US ZIP (or a typo) keeps its characters — only the case is normalized.
39
+ if (!CA_SHAPE.test(upper))
40
+ return upper;
41
+ const compact = upper.replace(/[\s-]/g, '');
42
+ return compact.length > 3 ? `${compact.slice(0, 3)} ${compact.slice(3)}` : compact;
43
+ };
44
+
25
45
  const countryLabels = {
26
46
  USA: {
27
47
  stateLabel: 'State',
@@ -59,18 +79,20 @@ const countryOptions = {
59
79
  };
60
80
  const countryValidation = {
61
81
  USA: {
62
- postalRegex: /^[0-9]{5}(-[0-9]{4})?$/,
82
+ postalRegex: US_ZIP_REGEX,
63
83
  identityDigits: 9,
64
84
  taxIdDigits: 9,
65
85
  },
66
86
  CAN: {
67
- postalRegex: /^([A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d|[0-9]{5}(-[0-9]{4})?)$/,
87
+ postalRegex: CA_OR_US_POSTAL_REGEX,
68
88
  identityDigits: 9,
69
89
  taxIdDigits: 9,
70
90
  },
71
91
  };
72
92
 
93
+ exports.CA_OR_US_POSTAL_REGEX = CA_OR_US_POSTAL_REGEX;
73
94
  exports.ProvinceOptions = ProvinceOptions;
74
95
  exports.countryLabels = countryLabels;
75
96
  exports.countryOptions = countryOptions;
76
97
  exports.countryValidation = countryValidation;
98
+ exports.normalizePostalCode = normalizePostalCode;