@justifi/webcomponents 6.0.0-rc.15 → 6.0.0-rc.16

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 (252) hide show
  1. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +2 -2
  2. package/dist/cjs/{check-pkg-version-CVOffMTi.js → check-pkg-version-DfzaKEDg.js} +1 -1
  3. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  4. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  5. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  6. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  8. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  9. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  10. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  11. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  12. package/dist/cjs/justifi-apple-pay.cjs.entry.js +36 -369
  13. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +7 -7
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +7 -6
  17. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  28. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
  30. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  32. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
  37. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{package-MU7zz6nI.js → package-CHNXn8wx.js} +1 -1
  41. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  42. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  43. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  44. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  45. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  46. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
  47. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  48. package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
  49. package/dist/cjs/webcomponents.cjs.js +1 -1
  50. package/dist/collection/components/modular-checkout/modular-checkout.js +2 -1
  51. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +37 -46
  52. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  53. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  54. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  55. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  56. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  57. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  58. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  59. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  60. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  61. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  62. package/dist/collection/components/payments-list/payments-list.js +1 -1
  63. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  64. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  65. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  66. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  67. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  68. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  69. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  70. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  71. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  72. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  73. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  74. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  75. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  76. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  77. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  78. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  79. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  80. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  81. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  82. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  83. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  84. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  85. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  86. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  87. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  88. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  89. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  90. package/dist/docs.json +1 -1
  91. package/dist/esm/bank-account-document-form-inputs_4.entry.js +2 -2
  92. package/dist/esm/{check-pkg-version-BLDmtrcB.js → check-pkg-version-Cz8T6Ux8.js} +1 -1
  93. package/dist/esm/{checkout.store-DNDbZO3M.js → checkout.store-OD-OX5On.js} +1 -1
  94. package/dist/esm/custom-popper_2.entry.js +2 -2
  95. package/dist/esm/form-control-date.entry.js +2 -2
  96. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  97. package/dist/esm/form-control-monetary.entry.js +2 -2
  98. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  99. package/dist/esm/form-control-number.entry.js +2 -2
  100. package/dist/esm/form-control-radio.entry.js +2 -2
  101. package/dist/esm/form-control-select_2.entry.js +2 -2
  102. package/dist/esm/hidden-input_2.entry.js +5 -5
  103. package/dist/esm/justifi-apple-pay.entry.js +37 -370
  104. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +8 -8
  105. package/dist/esm/justifi-business-details.entry.js +2 -2
  106. package/dist/esm/justifi-business-form.entry.js +2 -2
  107. package/dist/esm/justifi-checkout-summary_7.entry.js +8 -7
  108. package/dist/esm/justifi-checkout.entry.js +3 -3
  109. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  110. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  111. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  112. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  113. package/dist/esm/justifi-order-terminals.entry.js +3 -3
  114. package/dist/esm/justifi-payment-details.entry.js +2 -2
  115. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  116. package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
  117. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  118. package/dist/esm/justifi-payments-list.entry.js +3 -3
  119. package/dist/esm/justifi-payout-details.entry.js +2 -2
  120. package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
  121. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  122. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  123. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  124. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  125. package/dist/esm/justifi-skeleton.entry.js +1 -1
  126. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  127. package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
  128. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  129. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  130. package/dist/esm/loader.js +1 -1
  131. package/dist/esm/{package-BFz8vLec.js → package-BiTF1__F.js} +1 -1
  132. package/dist/esm/payment-details-core.entry.js +8 -8
  133. package/dist/esm/payment-method-option.entry.js +1 -1
  134. package/dist/esm/payments-list-core.entry.js +1 -1
  135. package/dist/esm/payout-details-core.entry.js +3 -3
  136. package/dist/esm/payouts-list-core.entry.js +1 -1
  137. package/dist/esm/terminal-orders-list-core.entry.js +1 -1
  138. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  139. package/dist/esm/terminals-list-core.entry.js +1 -1
  140. package/dist/esm/webcomponents.js +1 -1
  141. package/dist/module/bank-account.js +2 -2
  142. package/dist/module/card-form2.js +2 -2
  143. package/dist/module/custom-popper2.js +2 -2
  144. package/dist/module/form-control-date2.js +2 -2
  145. package/dist/module/form-control-file-v22.js +1 -1
  146. package/dist/module/form-control-file2.js +2 -2
  147. package/dist/module/form-control-monetary2.js +2 -2
  148. package/dist/module/form-control-number-masked2.js +2 -2
  149. package/dist/module/form-control-number.js +2 -2
  150. package/dist/module/form-control-radio2.js +2 -2
  151. package/dist/module/form-control-text2.js +2 -2
  152. package/dist/module/form-control-textarea2.js +2 -2
  153. package/dist/module/hidden-input2.js +1 -1
  154. package/dist/module/iframe-input2.js +3 -3
  155. package/dist/module/justifi-apple-pay.js +34 -372
  156. package/dist/module/justifi-button2.js +1 -1
  157. package/dist/module/justifi-header2.js +1 -1
  158. package/dist/module/justifi-order-terminals.js +1 -1
  159. package/dist/module/justifi-payment-transactions-list.js +1 -1
  160. package/dist/module/justifi-payments-list-filters.js +2 -2
  161. package/dist/module/justifi-payments-list.js +1 -1
  162. package/dist/module/justifi-payout-transactions-list.js +1 -1
  163. package/dist/module/justifi-payouts-list-filters.js +2 -2
  164. package/dist/module/justifi-payouts-list.js +1 -1
  165. package/dist/module/justifi-skeleton.js +1 -1
  166. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  167. package/dist/module/justifi-terminal-orders-list.js +1 -1
  168. package/dist/module/justifi-terminals-list-filters.js +1 -1
  169. package/dist/module/justifi-terminals-list.js +1 -1
  170. package/dist/module/modular-checkout.js +2 -1
  171. package/dist/module/package.js +1 -1
  172. package/dist/module/payment-details-core2.js +8 -8
  173. package/dist/module/payment-method-option.js +1 -1
  174. package/dist/module/payments-list-core2.js +1 -1
  175. package/dist/module/payout-details-core2.js +3 -3
  176. package/dist/module/payouts-list-core2.js +1 -1
  177. package/dist/module/summary.js +1 -1
  178. package/dist/module/terminal-orders-list-core2.js +1 -1
  179. package/dist/module/terminal-quantity-selector2.js +1 -1
  180. package/dist/module/terminals-list-core2.js +1 -1
  181. package/dist/module/tokenize-payment-method.js +1 -1
  182. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -4
  183. package/dist/webcomponents/p-054193e4.entry.js +1 -0
  184. package/dist/webcomponents/p-07c3c25e.entry.js +1 -0
  185. package/dist/webcomponents/p-0913a57b.entry.js +1 -0
  186. package/dist/webcomponents/p-099e96ba.entry.js +1 -0
  187. package/dist/webcomponents/{p-50f6a37b.entry.js → p-0bba0dd0.entry.js} +1 -1
  188. package/dist/webcomponents/p-0e80830f.entry.js +1 -0
  189. package/dist/webcomponents/{p-a6748a1d.entry.js → p-13c21c47.entry.js} +1 -1
  190. package/dist/webcomponents/{p-5961ab23.entry.js → p-225da0b5.entry.js} +1 -1
  191. package/dist/webcomponents/{p-2d14f144.entry.js → p-225ed545.entry.js} +1 -1
  192. package/dist/webcomponents/{p-71f9c48a.entry.js → p-2550e845.entry.js} +1 -1
  193. package/dist/webcomponents/p-2ae3613e.entry.js +1 -0
  194. package/dist/webcomponents/{p-286221ee.entry.js → p-2b47ddd8.entry.js} +1 -1
  195. package/dist/webcomponents/{p-12136157.entry.js → p-3a34e4f9.entry.js} +1 -1
  196. package/dist/webcomponents/p-3caee9d2.entry.js +1 -0
  197. package/dist/webcomponents/p-3d94c845.entry.js +1 -0
  198. package/dist/webcomponents/{p-9c997d0b.entry.js → p-45e8185c.entry.js} +1 -1
  199. package/dist/webcomponents/{p-65c958b1.entry.js → p-4abf0877.entry.js} +1 -1
  200. package/dist/webcomponents/{p-33311d41.entry.js → p-559be51b.entry.js} +1 -1
  201. package/dist/webcomponents/p-5a3fc339.entry.js +1 -0
  202. package/dist/webcomponents/p-654d85ca.entry.js +1 -0
  203. package/dist/webcomponents/{p-1c157c8e.entry.js → p-69bf5e32.entry.js} +1 -1
  204. package/dist/webcomponents/{p-81c2edfb.entry.js → p-73dd0306.entry.js} +1 -1
  205. package/dist/webcomponents/p-7c463a59.entry.js +1 -0
  206. package/dist/webcomponents/p-7fcbccc7.entry.js +1 -0
  207. package/dist/webcomponents/p-87acb5ec.entry.js +1 -0
  208. package/dist/webcomponents/{p-9fc567d8.entry.js → p-8c95827f.entry.js} +1 -1
  209. package/dist/webcomponents/{p-8d743490.entry.js → p-93ed5490.entry.js} +1 -1
  210. package/dist/webcomponents/{p-949cecf8.entry.js → p-995c2cbf.entry.js} +1 -1
  211. package/dist/webcomponents/p-9c621697.entry.js +1 -0
  212. package/dist/webcomponents/{p-DjB0cvKF.js → p-BcAsEqa5.js} +1 -1
  213. package/dist/webcomponents/p-BiTF1__F.js +1 -0
  214. package/dist/webcomponents/{p-Cb3h46bV.js → p-CItulios.js} +1 -1
  215. package/dist/webcomponents/{p-0ff04742.entry.js → p-a5114207.entry.js} +1 -1
  216. package/dist/webcomponents/{p-c340830a.entry.js → p-a53710c4.entry.js} +1 -1
  217. package/dist/webcomponents/p-a65d751d.entry.js +1 -0
  218. package/dist/webcomponents/p-a7712cea.entry.js +1 -0
  219. package/dist/webcomponents/{p-98ef7e25.entry.js → p-b9ab3803.entry.js} +1 -1
  220. package/dist/webcomponents/{p-522e7b24.entry.js → p-bf2df971.entry.js} +1 -1
  221. package/dist/webcomponents/{p-cbd65ba9.entry.js → p-c3cfcd4b.entry.js} +1 -1
  222. package/dist/webcomponents/{p-f887ae7c.entry.js → p-ce272d8a.entry.js} +1 -1
  223. package/dist/webcomponents/p-cff8ae71.entry.js +1 -0
  224. package/dist/webcomponents/{p-ed901f9d.entry.js → p-d031ad31.entry.js} +1 -1
  225. package/dist/webcomponents/p-d5d271d3.entry.js +1 -0
  226. package/dist/webcomponents/{p-52cbd667.entry.js → p-dba55699.entry.js} +1 -1
  227. package/dist/webcomponents/p-e5282f6c.entry.js +1 -0
  228. package/dist/webcomponents/{p-2dec38c9.entry.js → p-e7921c1f.entry.js} +1 -1
  229. package/dist/webcomponents/{p-7f422774.entry.js → p-eabaeaf6.entry.js} +1 -1
  230. package/dist/webcomponents/{p-0e2010f1.entry.js → p-f6e3f1ca.entry.js} +1 -1
  231. package/dist/webcomponents/webcomponents.esm.js +1 -1
  232. package/package.json +1 -1
  233. package/dist/webcomponents/p-1f7a796e.entry.js +0 -1
  234. package/dist/webcomponents/p-2abcad8b.entry.js +0 -1
  235. package/dist/webcomponents/p-2b39ab97.entry.js +0 -1
  236. package/dist/webcomponents/p-402caa84.entry.js +0 -1
  237. package/dist/webcomponents/p-42d4ea58.entry.js +0 -1
  238. package/dist/webcomponents/p-50ef7446.entry.js +0 -1
  239. package/dist/webcomponents/p-537aa971.entry.js +0 -1
  240. package/dist/webcomponents/p-7186f4a7.entry.js +0 -1
  241. package/dist/webcomponents/p-75fff382.entry.js +0 -1
  242. package/dist/webcomponents/p-77948b46.entry.js +0 -1
  243. package/dist/webcomponents/p-852febb1.entry.js +0 -1
  244. package/dist/webcomponents/p-8b2eff55.entry.js +0 -1
  245. package/dist/webcomponents/p-BFz8vLec.js +0 -1
  246. package/dist/webcomponents/p-aa6194ef.entry.js +0 -1
  247. package/dist/webcomponents/p-bc45aa92.entry.js +0 -1
  248. package/dist/webcomponents/p-e45bd6ec.entry.js +0 -1
  249. package/dist/webcomponents/p-e6d1ed81.entry.js +0 -1
  250. package/dist/webcomponents/p-e7fc542c.entry.js +0 -1
  251. package/dist/webcomponents/p-f849a34e.entry.js +0 -1
  252. package/dist/webcomponents/p-fa1884b4.entry.js +0 -1
@@ -1,11 +1,10 @@
1
1
  import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
2
- import { A as Api } from './Api.js';
3
2
  import { S as StyledHost } from './styled-host.js';
4
3
  import './details.js';
5
4
  import './event-types.js';
6
5
  import './justifi-radio-list-item2.js';
7
6
  import { S as Skeleton } from './skeleton.js';
8
- import { c as checkoutStore, a as onChange } from './checkout.store.js';
7
+ import { c as checkoutStore } from './checkout.store.js';
9
8
 
10
9
  var ApplePaySessionStatus;
11
10
  (function (ApplePaySessionStatus) {
@@ -35,45 +34,6 @@ var ApplePayMerchantCapability;
35
34
  ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
36
35
  ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
37
36
  })(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
38
- class ApplePayConfig {
39
- constructor(data) {
40
- this.merchantIdentifier = data.merchantIdentifier;
41
- this.displayName = data.displayName;
42
- this.initiative = data.initiative;
43
- this.initiativeContext = data.initiativeContext;
44
- this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
45
- this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
46
- this.buttonLocale = data.buttonLocale || 'en-US';
47
- }
48
- get isValid() {
49
- return !!(this.merchantIdentifier &&
50
- this.displayName &&
51
- this.initiative &&
52
- this.initiativeContext);
53
- }
54
- }
55
- class ApplePayPaymentRequest {
56
- constructor(data) {
57
- this.countryCode = data.countryCode;
58
- this.currencyCode = data.currencyCode;
59
- this.merchantCapabilities = data.merchantCapabilities;
60
- this.supportedNetworks = data.supportedNetworks;
61
- this.total = data.total;
62
- this.lineItems = data.lineItems;
63
- this.shippingMethods = data.shippingMethods;
64
- this.applicationData = data.applicationData;
65
- this.supportedCountries = data.supportedCountries;
66
- }
67
- get isValid() {
68
- var _a, _b, _c, _d;
69
- return !!(this.countryCode &&
70
- this.currencyCode &&
71
- ((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
72
- ((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
73
- ((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
74
- ((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
75
- }
76
- }
77
37
  class ApplePayHelpers {
78
38
  static isApplePaySupported() {
79
39
  var _a;
@@ -127,298 +87,6 @@ class ApplePayHelpers {
127
87
  }
128
88
  }
129
89
 
130
- class ApplePayService {
131
- constructor() {
132
- this.api = Api();
133
- }
134
- /**
135
- * Initialize Apple Pay configuration
136
- */
137
- initialize(applePayConfig) {
138
- this.applePayConfig = new ApplePayConfig(applePayConfig);
139
- if (!this.applePayConfig.isValid) {
140
- throw new Error('Invalid Apple Pay configuration provided');
141
- }
142
- }
143
- /**
144
- * Validate merchant with Apple Pay servers via API
145
- */
146
- async validateMerchant(authToken, accountId) {
147
- const endpoint = 'apple_pay/merchant_session';
148
- try {
149
- const response = await this.api.post({
150
- endpoint,
151
- authToken,
152
- headers: {
153
- 'Sub-Account': accountId,
154
- },
155
- });
156
- return response;
157
- }
158
- catch (error) {
159
- console.error('Backend validation failed:', error);
160
- throw new Error('Merchant validation failed');
161
- }
162
- }
163
- /**
164
- * Process Apple Pay payment via API (fixed to match original logic)
165
- */
166
- async processPayment(authToken, accountId, payload) {
167
- const endpoint = 'apple_pay/process_token';
168
- const result = await this.api.post({
169
- endpoint,
170
- authToken,
171
- body: payload,
172
- headers: {
173
- 'Sub-Account': accountId,
174
- },
175
- });
176
- return {
177
- success: result.id && !!result.data.token,
178
- data: result,
179
- };
180
- }
181
- /**
182
- * Check if Apple Pay is available on this device/browser
183
- */
184
- isAvailable() {
185
- return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
186
- }
187
- /**
188
- * Check if the user has an active card for the merchant
189
- */
190
- async canMakePaymentsWithActiveCard() {
191
- if (!this.applePayConfig) {
192
- throw new Error('Apple Pay not initialized. Call initialize() first.');
193
- }
194
- return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
195
- }
196
- /**
197
- * Start Apple Pay session
198
- */
199
- async startPaymentSession(paymentRequest, authToken, accountId) {
200
- if (!this.applePayConfig) {
201
- throw new Error('Apple Pay not initialized. Call initialize() first.');
202
- }
203
- // if (!this.isAvailable()) {
204
- // throw new Error('Apple Pay is not available on this device/browser');
205
- // }
206
- const request = new ApplePayPaymentRequest(paymentRequest);
207
- if (!request.isValid) {
208
- throw new Error('Invalid payment request provided');
209
- }
210
- this.currentPaymentRequest = request;
211
- return new Promise((resolve, reject) => {
212
- try {
213
- this.currentSession = new window.ApplePaySession(3, request);
214
- this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
215
- this.currentSession.begin();
216
- }
217
- catch (error) {
218
- reject({
219
- success: false,
220
- error: {
221
- code: 'SESSION_ERROR',
222
- message: error instanceof Error
223
- ? error.message
224
- : 'Failed to start Apple Pay session',
225
- },
226
- });
227
- }
228
- });
229
- }
230
- /**
231
- * Abort current Apple Pay session
232
- */
233
- abortPaymentSession() {
234
- if (this.currentSession) {
235
- this.currentSession.abort();
236
- this.currentSession = undefined;
237
- this.currentPaymentRequest = undefined;
238
- }
239
- }
240
- /**
241
- * Setup Apple Pay session event handlers
242
- */
243
- setupSessionEventHandlers(resolve, reject, authToken, accountId) {
244
- if (!this.currentSession ||
245
- !this.applePayConfig ||
246
- !this.currentPaymentRequest) {
247
- return;
248
- }
249
- this.currentSession.onvalidatemerchant = async () => {
250
- try {
251
- if (!authToken) {
252
- throw new Error('Authentication token not provided.');
253
- }
254
- const merchantSession = await this.validateMerchant(authToken, accountId);
255
- try {
256
- this.currentSession.completeMerchantValidation(merchantSession);
257
- }
258
- catch (completionError) {
259
- console.error('Error calling completeMerchantValidation:', completionError);
260
- throw completionError;
261
- }
262
- }
263
- catch (error) {
264
- console.error('=== MERCHANT VALIDATION ERROR ===');
265
- console.error('Error during merchant validation:', error);
266
- console.error('Error stack:', error.stack);
267
- this.currentSession.abort();
268
- reject({
269
- success: false,
270
- error: {
271
- code: 'MERCHANT_VALIDATION_ERROR',
272
- message: error instanceof Error
273
- ? error.message
274
- : 'Merchant validation failed',
275
- },
276
- });
277
- }
278
- };
279
- this.currentSession.onpaymentauthorized = async (event) => {
280
- try {
281
- const payment = event.payment;
282
- const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
283
- name: this.currentPaymentRequest.total.label,
284
- price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
285
- description: this.currentPaymentRequest.total.label,
286
- } });
287
- const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
288
- if (paymentResult.success) {
289
- this.currentSession.completePayment({
290
- status: ApplePaySessionStatus.STATUS_SUCCESS,
291
- });
292
- resolve({
293
- success: true,
294
- token: payment.token,
295
- paymentMethodId: paymentResult.data.id,
296
- });
297
- }
298
- else {
299
- console.error('PSP reported payment failure:', paymentResult.data);
300
- this.currentSession.completePayment({
301
- status: ApplePaySessionStatus.STATUS_FAILURE,
302
- });
303
- reject({
304
- success: false,
305
- error: {
306
- code: 'PAYMENT_PROCESSING_ERROR',
307
- message: 'Payment processing failed',
308
- },
309
- });
310
- }
311
- }
312
- catch (error) {
313
- console.error('=== PAYMENT PROCESSING ERROR ===');
314
- console.error('Error processing payment:', error);
315
- console.error('Error stack:', error.stack);
316
- this.currentSession.completePayment({
317
- status: ApplePaySessionStatus.STATUS_FAILURE,
318
- });
319
- reject({
320
- success: false,
321
- error: {
322
- code: 'PAYMENT_PROCESSING_ERROR',
323
- message: error instanceof Error
324
- ? error.message
325
- : 'Payment processing failed',
326
- },
327
- });
328
- }
329
- finally {
330
- this.currentSession = undefined;
331
- this.currentPaymentRequest = undefined;
332
- }
333
- };
334
- this.currentSession.onpaymentmethodselected = () => {
335
- const paymentUpdate = {
336
- newTotal: this.currentPaymentRequest.total,
337
- newLineItems: this.currentPaymentRequest.lineItems || [],
338
- };
339
- try {
340
- this.currentSession.completePaymentMethodSelection(paymentUpdate);
341
- }
342
- catch (error) {
343
- console.error('Error completing payment method selection:', error);
344
- this.currentSession.abort();
345
- }
346
- };
347
- this.currentSession.onshippingmethodselected = () => {
348
- this.currentSession.completeShippingMethodSelection({
349
- status: ApplePaySessionStatus.STATUS_SUCCESS,
350
- newTotal: this.currentPaymentRequest.total,
351
- newLineItems: this.currentPaymentRequest.lineItems || [],
352
- });
353
- };
354
- this.currentSession.oncancel = (event) => {
355
- if (event.sessionError) {
356
- console.error(event.sessionError);
357
- switch (event.sessionError.code) {
358
- case 'unknown':
359
- console.error('Unknown error - likely merchant validation issue');
360
- console.error('This usually means:');
361
- console.error('1. Merchant certificate is invalid or expired');
362
- console.error('2. Merchant identifier mismatch');
363
- console.error('3. Backend validation endpoint issues');
364
- break;
365
- case 'invalidMerchantSession':
366
- console.error('Invalid merchant session provided');
367
- console.error('Check that the merchant session from backend is valid');
368
- break;
369
- case 'userCancel':
370
- console.error('User cancelled the payment');
371
- break;
372
- default:
373
- console.error('Other error code:', event.sessionError.code);
374
- }
375
- }
376
- this.currentSession = undefined;
377
- this.currentPaymentRequest = undefined;
378
- reject({
379
- success: false,
380
- error: {
381
- code: 'USER_CANCELLED',
382
- message: 'User cancelled the Apple Pay session',
383
- },
384
- });
385
- };
386
- if ('onerror' in this.currentSession) {
387
- this.currentSession.onerror = (error) => {
388
- console.error('=== APPLE PAY SESSION ERROR ===');
389
- console.error('Session error:', error);
390
- this.currentSession = undefined;
391
- this.currentPaymentRequest = undefined;
392
- reject({
393
- success: false,
394
- error: {
395
- code: 'SESSION_ERROR',
396
- message: 'Apple Pay session error occurred',
397
- },
398
- });
399
- };
400
- }
401
- }
402
- /**
403
- * Create a basic payment request
404
- */
405
- static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
406
- return {
407
- countryCode,
408
- currencyCode,
409
- merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
410
- supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
411
- total: ApplePayHelpers.createLineItem(label, amount),
412
- };
413
- }
414
- /**
415
- * Get current configuration
416
- */
417
- getApplePayConfig() {
418
- return this.applePayConfig;
419
- }
420
- }
421
-
422
90
  const ApplePaySkeleton = (props) => {
423
91
  const { isReady } = props;
424
92
  if (isReady) {
@@ -651,25 +319,29 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
651
319
  }
652
320
  };
653
321
  }
654
- componentWillLoad() {
655
- this.applePayService = new ApplePayService();
656
- this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
657
- console.log("checkoutLoaded", loaded);
658
- if (loaded) {
659
- this.initializeApplePay();
660
- }
661
- });
662
- this.initializeApplePay();
663
- }
664
- disconnectedCallback() {
665
- var _a;
666
- (_a = this.unsubscribeCheckoutLoaded) === null || _a === void 0 ? void 0 : _a.call(this);
667
- this.unsubscribeCheckoutLoaded = undefined;
668
- }
669
- watchPropsChange() {
670
- this.initializeApplePay();
671
- }
322
+ // private unsubscribeCheckoutLoaded?: () => void;
323
+ // componentWillLoad() {
324
+ // this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
325
+ // this.applePayService = new ApplePayService();
326
+ // console.log("checkoutLoaded", loaded);
327
+ // if (loaded) {
328
+ // this.initializeApplePay();
329
+ // }
330
+ // });
331
+ // }
332
+ // disconnectedCallback() {
333
+ // this.unsubscribeCheckoutLoaded?.();
334
+ // this.unsubscribeCheckoutLoaded = undefined;
335
+ // }
336
+ // @Watch("merchantIdentifier")
337
+ // @Watch("buttonType")
338
+ // @Watch("buttonStyle")
339
+ // @Watch("disabled")
340
+ // watchPropsChange() {
341
+ // this.initializeApplePay();
342
+ // }
672
343
  async initializeApplePay() {
344
+ console.log("initializeApplePay", checkoutStore.checkoutLoaded);
673
345
  try {
674
346
  this.isLoading = true;
675
347
  this.error = null;
@@ -678,9 +350,9 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
678
350
  Boolean(checkoutStore.paymentCurrency) &&
679
351
  Boolean(checkoutStore.authToken);
680
352
  if (!hasRequiredConfig) {
681
- this.error = "Missing required Apple Pay configuration";
353
+ this.error = "Missing required Apple Pay configuration blabla blabla 2";
682
354
  this.isConfigValid = false;
683
- console.error("Apple Pay config error: missing required values", {
355
+ console.error("Apple Pay config error: missing required values blabla blabla 2", {
684
356
  paymentAmount: checkoutStore.paymentAmount,
685
357
  paymentCurrency: checkoutStore.paymentCurrency,
686
358
  hasAuthToken: Boolean(checkoutStore.authToken),
@@ -746,29 +418,24 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
746
418
  this.applePayCancelled.emit();
747
419
  }
748
420
  render() {
749
- const shouldHide = !this.isLoading &&
750
- (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
751
- if (shouldHide) {
752
- return null;
753
- }
421
+ // const shouldHide =
422
+ // !this.isLoading &&
423
+ // (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
424
+ // if (shouldHide) {
425
+ // return null;
426
+ // }
754
427
  const isReady = !this.isLoading &&
755
428
  this.isAvailable &&
756
429
  this.canMakePayments &&
757
430
  this.isConfigValid;
758
- return (h(StyledHost, null, h("script", { async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js' }), h("div", { class: 'apple-pay-container' }, h(ApplePaySkeleton, { isReady: isReady }), !this.isLoading &&
759
- this.isAvailable &&
760
- this.canMakePayments && (h(ApplePayButton, { buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", null, `
431
+ return (h(StyledHost, { key: 'ea33bc759d2849cf013cb6f98367c8d78c799acb' }, checkoutStore.checkoutLoaded && (h("script", { key: '9ed6140223a8788ca194a8978a9ca8e1e30eb10e', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
432
+ this.initializeApplePay();
433
+ } })), h("div", { key: '6501d8cb4c4119eadf9112db4fca876437138bcc', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '1aee83e3deac0d0f68d2788f65401a1d7c48047f', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'eb05dde5789f5f1bb83e75127c222996a38c8fef', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '8060bf6771c12f47d482f0a774e4fd6547e50a2e' }, `
761
434
  .apple-pay-container {
762
435
  width: 100%;
763
436
  }
764
437
  `)));
765
438
  }
766
- static get watchers() { return {
767
- "merchantIdentifier": ["watchPropsChange"],
768
- "buttonType": ["watchPropsChange"],
769
- "buttonStyle": ["watchPropsChange"],
770
- "disabled": ["watchPropsChange"]
771
- }; }
772
439
  }, [257, "justifi-apple-pay", {
773
440
  "countryCode": [1, "country-code"],
774
441
  "merchantIdentifier": [1, "merchant-identifier"],
@@ -787,11 +454,6 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
787
454
  "isSupported": [64],
788
455
  "getPaymentMethods": [64],
789
456
  "abort": [64]
790
- }, undefined, {
791
- "merchantIdentifier": ["watchPropsChange"],
792
- "buttonType": ["watchPropsChange"],
793
- "buttonStyle": ["watchPropsChange"],
794
- "disabled": ["watchPropsChange"]
795
457
  }]);
796
458
  function defineCustomElement$1() {
797
459
  if (typeof customElements === "undefined") {
@@ -11,7 +11,7 @@ const JustifiButton = /*@__PURE__*/ proxyCustomElement(class JustifiButton exten
11
11
  this.type = 'button';
12
12
  }
13
13
  render() {
14
- return (h(StyledHost, { key: 'fae177edc7a7a898f1782a01c26b65fb11c50c65' }, h(Button, { key: 'c097e63cce36a5b4e2cb522bf17ba2519c354c6e', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
14
+ return (h(StyledHost, { key: '48098276e0808052803f0d16df68ba23d529c4ab' }, h(Button, { key: 'c62e8d2d9208dc180180b4283edea991c5a93c57', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
15
15
  }
16
16
  }, [257, "justifi-button", {
17
17
  "text": [1],
@@ -18,7 +18,7 @@ const Header = /*@__PURE__*/ proxyCustomElement(class Header extends HTMLElement
18
18
  }
19
19
  render() {
20
20
  const HeaderComponent = this.levels[this.level];
21
- return (h(StyledHost, { key: 'ae04a67a1eaf95d6d093fef23911ac4eb1523cfe' }, h(HeaderComponent, { key: '51b27dd180d113ebe9ac52f7ff10c494926f7cdf', text: this.text, class: this.class })));
21
+ return (h(StyledHost, { key: 'eb3651b698897193d34a6c6456cd57dd0bd0bc43' }, h(HeaderComponent, { key: '39caee687f93d3d4d90e62d9fbcae318eaa8022e', text: this.text, class: this.class })));
22
22
  }
23
23
  }, [257, "justifi-header", {
24
24
  "text": [1],
@@ -231,7 +231,7 @@ const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals ext
231
231
  return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
232
232
  }
233
233
  render() {
234
- return (h(StyledHost, { key: 'd30fa51dfc5de12c0c70b642a8ad43093717b6e3' }, h("div", { key: '022332e39a80c3cc276ad8e0f56e98a592f14f0a', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
234
+ return (h(StyledHost, { key: '3ea6cebd4ab6bc47090056581482dab8502175c1' }, h("div", { key: '383dc710920b5119841d5cf6f1b596ebc349fd5a', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
235
235
  }
236
236
  }, [257, "justifi-order-terminals", {
237
237
  "businessId": [1, "business-id"],
@@ -181,7 +181,7 @@ const PaymentTransactionsList = /*@__PURE__*/ proxyCustomElement(class PaymentTr
181
181
  return !this.showEmptyState && !this.showErrorState && !this.isLoading;
182
182
  }
183
183
  render() {
184
- return (h(StyledHost, { key: '94919675808cd7b7df82403b7fa40e72c763f676' }, h(TableWrapper, { key: 'e405a069813214b692d7efb39b1a2b8313291088' }, h(TableComponent, { key: '27c7d5a96075d6e1e3b25d18272b4f4f57e374f0' }, h(TableHead, { key: 'e80e58ed2c38902adc86b7088cf9094b1e4f2540' }, h(TableHeadRow, { key: '641c6bc3d69a20bbd4624043cca1178f6e7257ba' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: 'b1a029e801f1f87f35201ba8725bff6e9cc5eb28' }, h(TableLoadingState, { key: '8af52c5f9a0072502e64539900aeae2d08dce1ce', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'df0d89fd7fee252611ea45052373b59974d86c81', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '1ae2c61e4eaa643ed47cd37ec2a7fa192b99ec11', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'c3b9d5df20e37e8325ce8b99360ed5547078b9a6' }, h(TableFootRow, { key: '8ae2ddda61552ff945b075287654d0bfc64a8dae' }, h(TableFootCell, { key: 'ee9fe2a43b9ea6e6916d196fbfcf67f87b46821c', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '79f03d48df9fde25ee3ceb9b5a369b1d8296caa8', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
184
+ return (h(StyledHost, { key: 'c73dfcd1d3038dbca6800b9bd0f4e6c5fba2b8bf' }, h(TableWrapper, { key: '66d8f92a96f2ace82c05d10a9f538d6ad22b588f' }, h(TableComponent, { key: 'cff0e6344efd035f264326ecc79615bddfe8d0ac' }, h(TableHead, { key: '702e53ae1d59ab674425f4753c1cf0b6415feacd' }, h(TableHeadRow, { key: '7773de2d113af30b3a0d64405dce5d5e09a0bb8c' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '7b86d982f52037349b5cc2f7ec5fa800e38ed519' }, h(TableLoadingState, { key: '040c3dfb101c1ea127cfcf982e4415ae94661b2a', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '6d25f8a886cf9b15ea9c17c44dfe0bce6125c557', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '60bb435ecf7a595cdb028df4cd95c1361ce06c8d', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'accb2e3cb9dc8521c50db6a8ed306f91e5aa44c7' }, h(TableFootRow, { key: 'a4408276ce552fe4c43c60f79e7a2a3602566b2c' }, h(TableFootCell, { key: '20b13cc71f8b62166e8b6e9fce5dea2d1b4c5ac0', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '90657ed6a805af46446bc8fb316a52252a9a2bf4', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
185
185
  }
186
186
  static get watchers() { return {
187
187
  "pagingParams": ["propChanged"],
@@ -56,8 +56,8 @@ const PaymentsListFilters = /*@__PURE__*/ proxyCustomElement(class PaymentsListF
56
56
  }
57
57
  render() {
58
58
  const filterMenuParams = Object.assign({}, filterParams);
59
- return (h(StyledHost, { key: 'b5002714bcb9cc1e61fa95500a591c2810fdc33a' }, h("table-filters-menu", { key: '44a5340b38f0b8cbe0d6f0d008491367b9c9f282', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '44720a808b1d5745088d06e23e63772baf385932', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3eb2c21ffbfb14bef3689068f7f3d6b424d2c942', class: "p-2" }, h("form-control-text", { key: '12b5b93d5139e0385c42de82bfaf967ddd0f6725', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '9ca6b70ffce0a39ae9f04302d6ce176a0b37cff0', class: "p-2" }, h("form-control-text", { key: '38f41d65e26e8cd2018ae1154dbf1a44a35ba1bb', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '4d4676911e45812980b058e3f9b110eda7adbee2', class: "p-2" }, h("form-control-select", { key: '1bb9ac03025ef1cca4415224520bf1e37d08e212', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: 'a1b72c587590cb39afbb09314f53e1109f6a1a3e', class: "p-2" }, h("form-control-date", { key: '939164307d2eae2b18d2ec660d5bb255288f33a1', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
60
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '879cb627b5913c8b43f76202d7c743eda194fb0c', class: "p-2" }, h("form-control-date", { key: 'c9d9dfdb534f940d7d4510f30bf613687cfdb841', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
59
+ return (h(StyledHost, { key: 'ef06ca5d0df145fd2c7f82fb164a4098b1654e7c' }, h("table-filters-menu", { key: '32739ded26b3a11092e5237d363b5b280c859f0c', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '2e123d80c45a92944811b9124e13f6cfc2e11cc0', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'd9e5facfe21e0896a4f0542a12592f11c54c0bc8', class: "p-2" }, h("form-control-text", { key: '084cec1084b8be08a5520891479aa4b4ab168ab7', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: 'c86027af0c49931a34e31e185cfc3c0d1093caf9', class: "p-2" }, h("form-control-text", { key: '694b5ddd5f90af1d73320cb6e29ce2e3aafce0b8', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '4d2e5e1a0e76a58be68255e08a2a4f09dbbbc481', class: "p-2" }, h("form-control-select", { key: 'd4fa79604b6f9a390a63601001bc2ba8f8af425a', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '54cc9fb98d5c0f6d96abb592d5e22c037634089c', class: "p-2" }, h("form-control-date", { key: '95001198266f09607e34d0c1fa5c1d0693b67b0a', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
60
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3510ccb63020969b2777c65ed82cfab9027dccd8', class: "p-2" }, h("form-control-date", { key: '428a3195efb976842c186aa0b4ec76ebfb1b7836', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
61
61
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
62
62
  }
63
63
  }, [257, "justifi-payments-list-filters", {
@@ -90,7 +90,7 @@ const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends
90
90
  }
91
91
  }
92
92
  render() {
93
- return (h(StyledHost, { key: 'dc98dc21eec289a19e15963d492b999429d4d605' }, h("payments-list-core", { key: 'd0f6d59769de1fc3ac20d228d4059ac5b9951a93', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
93
+ return (h(StyledHost, { key: '4cdd2e9a318226408d47198bf2de40a750a71d01' }, h("payments-list-core", { key: '87964c5dd33fd3b716964227cd990539d5d13fc4', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
94
94
  }
95
95
  static get watchers() { return {
96
96
  "accountId": ["propChanged"],
@@ -190,7 +190,7 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
190
190
  return Object.assign({ payout_id: this.payoutId, limit: '15' }, this.pagingParams);
191
191
  }
192
192
  render() {
193
- return (h(StyledHost, { key: 'fab19f2659fa5297abcae562adeaebded41eac70' }, h(TableWrapper, { key: '78c5f9820a23a91210340cc02cb43c57022ebcd2' }, h(TableComponent, { key: 'a6133e4790a58d0f758a3e8f47438bf338e0e89c' }, h(TableHead, { key: '21cc8b9db76e0fd3693974672133c34d0b426946' }, h(TableHeadRow, { key: 'e279da66e4318220bfbf24abc47e68e223c96c9a' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '0c5d0a5e90aa1074f27a223b9cb24f82c2e06744' }, h(TableLoadingState, { key: '9a73e7b326c56b0e71c8f0d418560581687f80f7', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'ae235f7049467b252ec2c6423dc03c27774f1af7', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '2ada40b042e00356971e98068a92a1d0dce13088', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '7360357eab024ac7ba4d207eb24f5ab8ffcfce11' }, h(TableFootRow, { key: '556919733baf7b61e9db840eeef074dd9cec6765' }, h(TableFootCell, { key: 'a18ea36eadf8d38cf98ed70258ef8f7c3f564bcd', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '4910c7a49d08f6c2db8ce4db34e7055111916fea', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
193
+ return (h(StyledHost, { key: 'f795f89fe39f8cded7f0d9c671df8e3e86de6f03' }, h(TableWrapper, { key: '5bb5f805a78965068f675012a1a491e5dd3d4416' }, h(TableComponent, { key: 'c75e72fb5bde6b3f8f127be4d76ef1fa66ce6781' }, h(TableHead, { key: '3dfb03ed0205f6fff21953e0a4c85e8b151680a1' }, h(TableHeadRow, { key: '169156e61bdf1ce6e10b89c660526a7ec9efb860' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '1e59e340e98ace8291acfbe26836e5b2b7b7dd29' }, h(TableLoadingState, { key: '3c1a420d293d24ac9434f034c7e6de7a83698b63', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '2038ebb6ff5480d74b0bb6a6ecf31a9531f606ef', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '48582c83e384b4e5ba81c4d0055dc9e727a81cdd', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '0bb2c1f4085278db7b114c8b9c5a11702a1840d1' }, h(TableFootRow, { key: '2cc9fe5d66b433b392da1e0a1ae265db6404002d' }, h(TableFootCell, { key: 'cb21e30d68c92758efa03fbd16509ff28ab5e316', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'e5ac8aa63ddb08d7f70976cfceccbadab3b8efa9', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
194
194
  }
195
195
  static get watchers() { return {
196
196
  "pagingParams": ["propChanged"],
@@ -37,8 +37,8 @@ const PayoutsListFilters = /*@__PURE__*/ proxyCustomElement(class PayoutsListFil
37
37
  }
38
38
  render() {
39
39
  const filterMenuParams = Object.assign({}, filterParams);
40
- return (h(StyledHost, { key: '527a9fe5ee51ca33480e25dfeccb19e5d8d01119' }, h("table-filters-menu", { key: '23333b0ff3d5bc75fe54bdf02682e71ec96b18a4', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '550b8d065a34d6ea7dd6d6d88cdd2e8251bda0ff', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '1ad60bfbe0cbae190707a424c8a41e42f5aaedc8', class: "p-2" }, h("form-control-date", { key: '05e7871138c213d3d96c17b7af477fbbe59252a0', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
41
- convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '7839226398149bc15261f6b258ebbd4b08a6322c', class: "p-2" }, h("form-control-date", { key: '7e3a9c9ef1c5ffbb68bf6d7044336e1b9cc28a76', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
40
+ return (h(StyledHost, { key: '83debaafb73e9143b6e2e7804f69c4124845d01e' }, h("table-filters-menu", { key: '162c3af697cef40e2a93c7e0245ec4d7d385f361', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '7e118d535a6bed14a1ea6e7ed920fd682bbd3705', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'dfd557f8d5a3f834bbaa5164ef2c1e7d3c19adcc', class: "p-2" }, h("form-control-date", { key: '01d9e16489abce36d4f770c4c06912923026860f', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
41
+ convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '9e7167618cc737911056c9217dc6a1ca77c1f41b', class: "p-2" }, h("form-control-date", { key: 'd80e6e2ebda1cd8f290daff21908f7dba1af2d7a', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
42
42
  convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
43
43
  }
44
44
  }, [257, "justifi-payouts-list-filters", {
@@ -104,7 +104,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
104
104
  }
105
105
  }
106
106
  render() {
107
- return (h(StyledHost, { key: 'd18659f462fa7e34d2cec6c5bc99a25208bfe2d5' }, h("payouts-list-core", { key: 'fb0d8aade040e7b9fe6273a457ee5f9f5ee0eadb', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
107
+ return (h(StyledHost, { key: '73ac65b309e80186e0f7799385d012e91ceb1b8b' }, h("payouts-list-core", { key: 'f7767376f3155521445cb2ee48b9a20c362c8137', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
108
108
  }
109
109
  static get watchers() { return {
110
110
  "accountId": ["propChanged"],
@@ -9,7 +9,7 @@ const JustifiSkeleton$1 = /*@__PURE__*/ proxyCustomElement(class JustifiSkeleton
9
9
  this.__attachShadow();
10
10
  }
11
11
  render() {
12
- return (h(StyledHost, { key: 'c54376afe1b0cebb0394ede10307bcdb32d68bb5' }, h(Skeleton, { key: '681e9e9d33bd7c2385e7b527f9093a93fbf884bb', component: this.component, height: this.height, width: this.width, className: this.class, styles: this.customStyle })));
12
+ return (h(StyledHost, { key: 'c995981caeae785829f1ef75454b2759243e8adb' }, h(Skeleton, { key: '9c63cf385499820bb1acd3503e126363485684f6', component: this.component, height: this.height, width: this.width, className: this.class, styles: this.customStyle })));
13
13
  }
14
14
  }, [257, "justifi-skeleton", {
15
15
  "component": [1],
@@ -62,8 +62,8 @@ const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class Termina
62
62
  }
63
63
  render() {
64
64
  const filterMenuParams = Object.assign({}, filterParams);
65
- return (h(StyledHost, { key: '1260582328ade12685fc82194b9494660ae3c920' }, h("table-filters-menu", { key: '63cb3736337d0de6aea184d077ea21151f06cc30', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '34f9a90dc1ce7ea6ce83d05766bdd98f0f1cb5a9', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'f64f80aa91221e129a6a15a42e7625c9a3a3761f', class: "p-2" }, h("form-control-select", { key: 'dd840170915b7c584e74e1e32f27934c41f89f8a', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '7a90a376f7cfa09c3c03f55673f17abab8f6de19', class: "p-2" }, h("form-control-select", { key: 'd3d648ad27ec7a64cc339230134a0e86a3b81a80', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'f88bc7868f89f8d352bd3625925303cf7f41dd36', class: "p-2" }, h("form-control-date", { key: 'e39cb7f23ab8b4c6984f22c1765831a641a60b82', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: 'bb82b0d8c53aa19b5490b05e3030113a4dc72487', class: "p-2" }, h("form-control-date", { key: '0f2a808035f2f9c8fb9158bb69831e3b5ad723f8', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
65
+ return (h(StyledHost, { key: '3042752f6f3bf4eb4f379aa256ff2a17d7fe8627' }, h("table-filters-menu", { key: '9a2a446701c17e3aa1ecbc89fa383c3a3c16b3d1', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '8c5533b280615974883fba9da4b87c066f7af5be', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'bbe71c8c5f2b49da9a38638ac4bda646cc4f7770', class: "p-2" }, h("form-control-select", { key: '235922673a4ef8e7392b3e46b3c0bd326f7abe79', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: 'd66c4305848a6f85867307d0448bfb2d7a80b698', class: "p-2" }, h("form-control-select", { key: '480bd03e3ba6ea595c1602bbdf657f369f133adb', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'ffdbbbac93a6498fe52f21c91a70998ad1094596', class: "p-2" }, h("form-control-date", { key: '60c95da005a50430e5a81d3b14f0b7a627480534', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '7e30fed8bbf9ba6db03d70d7b70a5f669d761ce9', class: "p-2" }, h("form-control-date", { key: 'ce490f4c346a3e455ae6f44e781b126ca46391d5', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
67
67
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
68
68
  }
69
69
  }, [257, "justifi-terminal-orders-list-filters", {
@@ -96,7 +96,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
96
96
  }
97
97
  }
98
98
  render() {
99
- return (h(StyledHost, { key: '9c393138daa19db378cbecd35d78d7b85d6388d9' }, h("terminal-orders-list-core", { key: '5757dd9496f72ab9e9933cae2e13726173cf75f4', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
99
+ return (h(StyledHost, { key: '55f0bf858787e00c304972c941a477815712df9d' }, h("terminal-orders-list-core", { key: '2d47e23bc2157d79254f34dfe0551fb32a9d88cc', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
100
100
  }
101
101
  }, [257, "justifi-terminal-orders-list", {
102
102
  "accountId": [1, "account-id"],