@justifi/webcomponents 4.19.1-rc-6 → 4.19.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 (244) hide show
  1. package/dist/cjs/{Analytics-54b8e890.js → Analytics-f870b3ee.js} +3 -2
  2. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
  3. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
  4. package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
  5. package/dist/cjs/config-ff2dda66.js +15 -0
  6. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  7. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
  8. package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
  9. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  10. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
  11. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
  13. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  14. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
  15. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
  17. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
  18. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
  19. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  24. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
  25. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
  26. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
  27. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  28. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
  29. package/dist/cjs/{package-b75f8267.js → package-1321b070.js} +4 -2
  30. package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
  31. package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
  32. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
  33. package/dist/collection/api/services/analytics.service.js +2 -1
  34. package/dist/collection/api/services/business.service.js +6 -5
  35. package/dist/collection/api/services/checkout.service.js +3 -2
  36. package/dist/collection/api/services/insurance.service.js +3 -2
  37. package/dist/collection/api/services/payment.service.js +3 -2
  38. package/dist/collection/api/services/payout.service.js +4 -3
  39. package/dist/collection/api/services/provision.service.js +4 -2
  40. package/dist/collection/api/services/reports.service.js +2 -1
  41. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  42. package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
  43. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
  44. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
  45. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
  46. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  47. package/dist/collection/components/card-form/card-form.js +4 -3
  48. package/dist/collection/components/checkout/checkout-core.js +4 -4
  49. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  50. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  51. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  52. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  53. package/dist/collection/components/payment-form/payment-form.js +4 -3
  54. package/dist/collection/components/refund-form/refund-form.js +3 -2
  55. package/dist/config.js +11 -0
  56. package/dist/docs.json +8 -8
  57. package/dist/esm/{Analytics-25ef1b60.js → Analytics-262cdde5.js} +3 -2
  58. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
  59. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
  60. package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
  61. package/dist/esm/config-476c7241.js +13 -0
  62. package/dist/esm/form-alert_5.entry.js +1 -1
  63. package/dist/esm/form-control-checkbox_9.entry.js +4 -4
  64. package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
  65. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  66. package/dist/esm/justifi-bank-account-form.entry.js +5 -4
  67. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  68. package/dist/esm/justifi-business-details.entry.js +4 -3
  69. package/dist/esm/justifi-business-form.entry.js +9 -8
  70. package/dist/esm/justifi-card-form.entry.js +5 -4
  71. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  72. package/dist/esm/justifi-checkout.entry.js +5 -4
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
  75. package/dist/esm/justifi-owner-form_3.entry.js +5 -4
  76. package/dist/esm/justifi-payment-details.entry.js +4 -3
  77. package/dist/esm/justifi-payment-form.entry.js +6 -5
  78. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  79. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  80. package/dist/esm/justifi-payments-list.entry.js +4 -3
  81. package/dist/esm/justifi-payout-details.entry.js +4 -3
  82. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  83. package/dist/esm/justifi-refund-form.entry.js +3 -2
  84. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
  85. package/dist/esm/{package-478b028a.js → package-d88677e9.js} +4 -2
  86. package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
  87. package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
  88. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
  89. package/dist/module/Analytics.js +2 -1
  90. package/dist/module/business-bank-account-form-step.js +3 -2
  91. package/dist/module/business-document-upload-form-step.js +3 -2
  92. package/dist/module/business-form-options.js +1 -1
  93. package/dist/module/business-terms-conditions-form-step.js +3 -2
  94. package/dist/module/business.service.js +6 -5
  95. package/dist/module/checkout-core.js +3 -3
  96. package/dist/module/config.js +13 -0
  97. package/dist/module/get-payout-csv.js +4 -3
  98. package/dist/module/justifi-bank-account-form.js +3 -2
  99. package/dist/module/justifi-business-form.js +3 -2
  100. package/dist/module/justifi-card-form.js +3 -2
  101. package/dist/module/justifi-checkout.js +3 -2
  102. package/dist/module/justifi-gross-payment-chart.js +2 -1
  103. package/dist/module/justifi-payment-form.js +4 -3
  104. package/dist/module/justifi-payment-provisioning.js +3 -2
  105. package/dist/module/justifi-refund-form.js +3 -2
  106. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  107. package/dist/module/new-payment-method.js +3 -5
  108. package/dist/module/package.js +4 -2
  109. package/dist/module/payment-method-options.js +3 -2
  110. package/dist/module/payment.service.js +3 -2
  111. package/dist/module/saved-payment-method.js +3 -2
  112. package/dist/module/sezzle-payment-method.js +3 -2
  113. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  114. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  115. package/dist/webcomponents/index.esm.js +0 -1
  116. package/dist/webcomponents/p-04a0dbb6.js +1 -0
  117. package/dist/webcomponents/p-061dcb79.entry.js +1 -0
  118. package/dist/webcomponents/p-07109641.entry.js +1 -0
  119. package/dist/webcomponents/p-08b0fb31.js +1 -41
  120. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  121. package/dist/webcomponents/p-14c91ffd.js +1 -20
  122. package/dist/webcomponents/p-198994c0.entry.js +1 -0
  123. package/dist/webcomponents/p-1a43e355.entry.js +19 -0
  124. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  125. package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
  126. package/dist/webcomponents/p-1ff8810b.js +1 -29
  127. package/dist/webcomponents/p-2338affa.js +1 -213
  128. package/dist/webcomponents/p-241b0ed9.js +1 -0
  129. package/dist/webcomponents/p-2799383d.entry.js +1 -0
  130. package/dist/webcomponents/p-29c0b182.js +1 -114
  131. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  132. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  133. package/dist/webcomponents/p-3affadfc.entry.js +1 -0
  134. package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
  135. package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
  136. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  137. package/dist/webcomponents/p-46f679a9.js +1 -0
  138. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  139. package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
  140. package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
  141. package/dist/webcomponents/p-4bac636e.entry.js +1 -0
  142. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  143. package/dist/webcomponents/p-525db3e8.js +1 -22
  144. package/dist/webcomponents/p-53948ff8.entry.js +1 -0
  145. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  146. package/dist/webcomponents/p-554a3c18.js +1 -0
  147. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  148. package/dist/webcomponents/p-5968ff8a.js +1 -178
  149. package/dist/webcomponents/p-6078a370.js +1 -244
  150. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  151. package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
  152. package/dist/webcomponents/p-65b561da.entry.js +1 -0
  153. package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
  154. package/dist/webcomponents/p-75b4daef.js +1 -0
  155. package/dist/webcomponents/p-7d85af5c.js +1 -16
  156. package/dist/webcomponents/p-8115b2f4.js +1 -28
  157. package/dist/webcomponents/p-83125497.js +1 -4027
  158. package/dist/webcomponents/p-8603348a.js +1 -0
  159. package/dist/webcomponents/p-890b3254.entry.js +1 -0
  160. package/dist/webcomponents/p-8df7bde8.js +1 -27
  161. package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
  162. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  163. package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
  164. package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
  165. package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
  166. package/dist/webcomponents/p-ae263544.js +1 -0
  167. package/dist/webcomponents/p-af244664.js +1 -126
  168. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  169. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  170. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  171. package/dist/webcomponents/p-bc92235c.entry.js +1 -0
  172. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  173. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  174. package/dist/webcomponents/p-d101c5db.js +1 -0
  175. package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
  176. package/dist/webcomponents/p-d25c2f12.js +1 -0
  177. package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
  178. package/dist/webcomponents/p-d765d638.js +1 -0
  179. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  180. package/dist/webcomponents/p-d89bad72.js +1 -39
  181. package/dist/webcomponents/p-dce846bf.js +1 -27
  182. package/dist/webcomponents/p-df21aaad.js +1 -120
  183. package/dist/webcomponents/p-e1255160.js +1 -3
  184. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  185. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  186. package/dist/webcomponents/p-e333620e.js +1 -34
  187. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  188. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  189. package/dist/webcomponents/p-fad19d75.js +2 -1638
  190. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  191. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  192. package/dist/webcomponents/webcomponents.css +4 -362
  193. package/dist/webcomponents/webcomponents.esm.js +1 -20
  194. package/package.json +4 -2
  195. package/dist/globals.d.ts +0 -2
  196. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  197. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  198. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  199. package/dist/webcomponents/p-0e2384b5.entry.js +0 -1684
  200. package/dist/webcomponents/p-1bbbf15d.js +0 -79
  201. package/dist/webcomponents/p-20abace7.js +0 -77
  202. package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
  203. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  204. package/dist/webcomponents/p-3b5948ea.entry.js +0 -133
  205. package/dist/webcomponents/p-3c50942c.entry.js +0 -94
  206. package/dist/webcomponents/p-3e9ef4a8.js +0 -28
  207. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  208. package/dist/webcomponents/p-40236338.entry.js +0 -80
  209. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  210. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  211. package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
  212. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  213. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  214. package/dist/webcomponents/p-73210c03.entry.js +0 -75
  215. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  216. package/dist/webcomponents/p-79646550.entry.js +0 -61
  217. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  218. package/dist/webcomponents/p-8371f61c.entry.js +0 -94
  219. package/dist/webcomponents/p-85fc69e5.js +0 -90
  220. package/dist/webcomponents/p-890088fc.entry.js +0 -298
  221. package/dist/webcomponents/p-89887332.js +0 -301
  222. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  223. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  224. package/dist/webcomponents/p-a096bc5b.entry.js +0 -145
  225. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  226. package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
  227. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  228. package/dist/webcomponents/p-a64f0ebe.entry.js +0 -117
  229. package/dist/webcomponents/p-a6d04afc.js +0 -44
  230. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  231. package/dist/webcomponents/p-b233d1e2.entry.js +0 -74
  232. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  233. package/dist/webcomponents/p-ba5fae28.js +0 -90
  234. package/dist/webcomponents/p-ba6661f2.entry.js +0 -73
  235. package/dist/webcomponents/p-c636f563.entry.js +0 -791
  236. package/dist/webcomponents/p-cb26f708.js +0 -18
  237. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  238. package/dist/webcomponents/p-e26541b9.entry.js +0 -98
  239. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  240. package/dist/webcomponents/p-e78af6d3.entry.js +0 -97
  241. package/dist/webcomponents/p-e7b8199d.entry.js +0 -131
  242. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  243. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  244. package/dist/webcomponents/p-fd7918c2.entry.js +0 -99
@@ -3,6 +3,7 @@ import { A as Api } from './Api.js';
3
3
  import './Pagination.js';
4
4
  import './Payment.js';
5
5
  import './Payout.js';
6
+ import { c as config } from './config.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
7
8
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
8
9
  import { J as JustifiAnalytics } from './Analytics.js';
@@ -11,11 +12,11 @@ import { d as defineCustomElement$2 } from './season-interruption-insurance-core
11
12
  class InsuranceService {
12
13
  async fetchQuote(authToken, payload) {
13
14
  const endpoint = 'insurance/quotes';
14
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
15
16
  }
16
17
  async toggleCoverage(authToken, quoteId, payload) {
17
18
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
18
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
19
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
19
20
  }
20
21
  }
21
22
 
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { d as defineCustomElement$7 } from './form-control-error-text2.js';
3
4
  import { d as defineCustomElement$6 } from './form-control-help-text2.js';
4
5
  import { d as defineCustomElement$5 } from './form-control-select2.js';
@@ -19,7 +20,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
19
20
  this.onPaymentMethodOptionClick = () => {
20
21
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
21
22
  };
22
- this.iframeOrigin = undefined;
23
+ this.iframeOrigin = config.iframeOrigin;
23
24
  this.authToken = undefined;
24
25
  this.accountId = undefined;
25
26
  this.paymentMethodOption = undefined;
@@ -27,9 +28,6 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
27
28
  this.isSelected = undefined;
28
29
  this.saveNewPaymentMethodChecked = false;
29
30
  }
30
- componentWillLoad() {
31
- console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
32
- }
33
31
  handleCheckboxChanged(event) {
34
32
  this.saveNewPaymentMethodChecked = event.detail;
35
33
  }
@@ -82,7 +80,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
82
80
  }
83
81
  render() {
84
82
  var _a, _b, _c, _d;
85
- return (h("div", { key: 'd597ba8b0ac2a650a14a79d002a91ef3edf604a4', class: "payment-method" }, h("div", { key: 'a287f7ffd480f17f0f1093d71b9d02fe3db39e0f', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f53d08d048cc242414fcf6794614ad2334db81bb', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '01712a80a30df19a7b540434532cffb4cb3b61e8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
83
+ return (h("div", { key: '93c3e6d38d1e18be54006bf82cd6c8148df3518d', class: "payment-method" }, h("div", { key: '6dbb687fbd3e33a6095be7c39ec0974bcc4809b8', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6c5be962cf5d357211c6716b53d0d8dd3fcf0bb0', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '796868afd192703a81d94897872dd9c0504cbc1e', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
86
84
  }
87
85
  }, [0, "justifi-new-payment-method", {
88
86
  "iframeOrigin": [1025, "iframe-origin"],
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.1-rc-6";
2
+ const version = "4.19.1";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -24,6 +24,7 @@ const scripts = {
24
24
  generate: "stencil generate",
25
25
  test: "TZ=utc stencil test --spec",
26
26
  "test:watch": "TZ=utc stencil test --spec --watchAll",
27
+ "test:e2e": "stencil test --e2e",
27
28
  "test:file": "stencil test --spec --watch --"
28
29
  };
29
30
  const dependencies = {
@@ -44,15 +45,16 @@ const devDependencies = {
44
45
  "@babel/preset-env": "^7.21.5",
45
46
  "@babel/preset-react": "^7.18.6",
46
47
  "@babel/preset-typescript": "^7.21.5",
47
- "@rollup/plugin-replace": "^5.0.7",
48
48
  "@stencil/sass": "^3.0.1",
49
49
  "@types/jest": "27.0.3",
50
+ "@types/node": "^20.1.4",
50
51
  "@types/react": "^18.0.37",
51
52
  "@types/react-dom": "^18.0.11",
52
53
  dotenv: "^16.3.1",
53
54
  jest: "^29.7.0",
54
55
  "jest-cli": "^29.7.0",
55
56
  "jest-environment-node": "^29.7.0",
57
+ puppeteer: "^21.0.0",
56
58
  "ts-jest": "^29.1.2"
57
59
  };
58
60
  const license = "MIT";
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { P as PaymentMethodTypes } from './Payment.js';
3
4
  import { d as defineCustomElement$2, P as PaymentMethodOption } from './saved-payment-method.js';
4
5
  import { d as defineCustomElement$a } from './form-control-error-text2.js';
@@ -31,7 +32,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
31
32
  this.insuranceToggled = undefined;
32
33
  this.authToken = undefined;
33
34
  this.accountId = undefined;
34
- this.iframeOrigin = undefined;
35
+ this.iframeOrigin = config.iframeOrigin;
35
36
  this.savedPaymentMethods = [];
36
37
  this.paymentAmount = undefined;
37
38
  this.selectedPaymentMethodId = undefined;
@@ -77,7 +78,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
77
78
  }
78
79
  render() {
79
80
  var _a;
80
- return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
81
+ return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
81
82
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
82
83
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
83
84
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -2,16 +2,17 @@ import { A as Api } from './Api.js';
2
2
  import './Pagination.js';
3
3
  import './Payment.js';
4
4
  import './Payout.js';
5
+ import { c as config } from './config.js';
5
6
 
6
7
  class PaymentService {
7
8
  async fetchPayments(accountId, authToken, params) {
8
- const api = Api({ authToken, apiOrigin: undefined });
9
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
9
10
  const endpoint = `account/${accountId}/payments`;
10
11
  return api.get(endpoint, params);
11
12
  }
12
13
  async fetchPayment(paymentId, authToken) {
13
14
  const endpoint = `payments/${paymentId}`;
14
- return Api({ authToken, apiOrigin: undefined }).get(endpoint);
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
15
16
  }
16
17
  }
17
18
 
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { j as snakeToCamel } from './utils2.js';
3
4
 
4
5
  class PaymentMethodOption {
@@ -29,7 +30,7 @@ const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMe
29
30
  this.onPaymentMethodOptionClick = () => {
30
31
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
31
32
  };
32
- this.iframeOrigin = undefined;
33
+ this.iframeOrigin = config.iframeOrigin;
33
34
  this.paymentMethodOption = undefined;
34
35
  this.isSelected = undefined;
35
36
  }
@@ -43,7 +44,7 @@ const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMe
43
44
  ;
44
45
  render() {
45
46
  var _a, _b, _c, _d, _e;
46
- return (h(Fragment, { key: '247dafc3fe4011c5f6a2202690310eedfa5422c8' }, h("div", { key: '9cfb0b6ca9c10e5cc6173832bb8211ddb1d0ae5b', class: "payment-method" }, h("div", { key: 'd247cc4cf9f7bf43d7153134c66a921b5bfc49bc', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '180c3aa6c4153bccf7cb620b6df49cc288754cd2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '6ec14d77e8171a1ddb37c686189878a7ebb4b4f4', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
47
+ return (h(Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
47
48
  _e.acct_last_four)))));
48
49
  }
49
50
  }, [0, "justifi-saved-payment-method", {
@@ -1,4 +1,5 @@
1
1
  import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { a as formatCurrency } from './utils2.js';
3
4
 
4
5
  const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
@@ -42,7 +43,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
42
43
  this.sezzleCheckout = checkout;
43
44
  this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
44
45
  };
45
- this.iframeOrigin = undefined;
46
+ this.iframeOrigin = config.iframeOrigin;
46
47
  this.bnpl = undefined;
47
48
  this.clientId = undefined;
48
49
  this.accountId = undefined;
@@ -68,7 +69,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
68
69
  }
69
70
  render() {
70
71
  var _a, _b, _c, _d, _e;
71
- return (h("div", { key: '1b4e4a142e1e59465e0db5515ee6b0a0b2aac146', class: "payment-method" }, h("script", { key: 'c835bc94836949e2362974eaeefca1f6a579a1a0', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '051a0392e6353116423f706be48eb266daf12b84', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6dd0d61f1b8788b45b008f5ac05f8a8b6a6591f2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'caf3429bae616a016f58e141ac5c4493174cf3ef', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e4ea85fc6fc32a1c35fe0dac86f21ab7f86eb0a' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '3740565f14b87aa2e4af44b7e2b12d93d6e454c2' }, h("span", { key: 'ca9b6dff0042c41d378b101067d060092234fa7c' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '14ab21fd2d9bd612f41d5cd3e175402593012619' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '25e08c1e711af0979e14bbb911aedb58f59bc180', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
72
+ return (h("div", { key: '4deca512311cd98d358c7099141b15538857a4e5', class: "payment-method" }, h("script", { key: '94b232291153bba85efebb101e7e6e816857da96', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '7cd9052ae6613fe7f187f3a51b7d6ac7087fdeb1', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '1e15e6c2ddced23b049e2559da27532f9be94fb5', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '0a3637002ef373c05424d6769b070d9db0e66ce8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '6398e2f00088edf8a1a3699e149760744dda4cb1' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: 'bfd33da875aa5e9f5b649ac8fc7aa5758393b6e8' }, h("span", { key: 'c07fd5d32fe897a45a67140e2cb81b1f4d537c4a' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '2b11e4aa6389a4b98cd003c031aed8f01ec8a4df' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '90cf3bfa1f0d36c8d4719f164d436407d7fc692b', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
72
73
  }
73
74
  }, [0, "justifi-sezzle-payment-method", {
74
75
  "iframeOrigin": [1025, "iframe-origin"],
@@ -13,7 +13,6 @@ export declare class NewPaymentMethod {
13
13
  paymentMethodOptionSelected: EventEmitter;
14
14
  private billingFormRef?;
15
15
  private paymentMethodFormRef?;
16
- componentWillLoad(): void;
17
16
  handleCheckboxChanged(event: CustomEvent<boolean>): void;
18
17
  fillBillingForm(fields: BillingFormFields): Promise<void>;
19
18
  resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
@@ -0,0 +1,11 @@
1
+ export declare const config: {
2
+ iframeOrigin: string;
3
+ proxyApiOrigin: string;
4
+ proxyAuthToken: string;
5
+ exampleAccountId: string;
6
+ exampleBusinessId: string;
7
+ examplePaymentId: string;
8
+ examplePayoutId: string;
9
+ privateApiOrigin: string;
10
+ privateAuthToken: string;
11
+ };
@@ -1 +0,0 @@
1
-
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-2eab3c90.js";import{h as s,w as n,e as a,d as i,j as r,k as t,m as u,t as _,n as o,r as b,o as c,q as l,u as m,v as p,x as d,y as g}from"./p-241b0ed9.js";const y=b=>{const c=e({legal_name:s.required("Enter legal name"),website_url:n.required("Enter business website url"),email:a.required("Enter business email"),phone:i.required("Enter phone number"),doing_business_as:r.required("Enter doing business as"),classification:t.required("Select business classification"),industry:u.required("Enter a business industry"),tax_id:_.required("Enter tax id, SSN, or EIN"),date_of_incorporation:o.required("Enter date of incorporation")}),l=e({legal_name:s.required("Enter legal name"),website_url:n.nullable(),email:a.nullable(),phone:i.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:u.nullable(),tax_id:_.nullable(),date_of_incorporation:o.nullable()});return b?l:c},v=s=>{const n=e({business_revenue:b.required("Enter business revenue"),business_payment_volume:c.required("Enter business payment volume"),business_when_service_received:l.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:d.required("Select business seasonal"),business_other_payment_details:g.nullable()}),a=e({business_revenue:b.nullable(),business_payment_volume:c.nullable(),business_when_service_received:l.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:p,business_seasonal:d.nullable(),business_other_payment_details:g.nullable()});return s?a:n};export{v as a,y as b}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-ae263544.js";import{J as i}from"./p-554a3c18.js";import"./p-d765d638.js";import"./p-29c0b182.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"58843b8a47f35d716845de11f6a66d8960bc0776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,c as s,H as e,g as o}from"./p-fad19d75.js";const a=class{constructor(i){t(this,i),this.errorText=void 0,this.name=void 0}render(){return this.errorText?i("small",{class:"form-text text-danger",id:`form-error-text-${this.name}`},this.errorText):null}},r=class{constructor(i){t(this,i),this.helpText=void 0,this.name=void 0}render(){return this.helpText?i("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}},h=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const i=t.target,s=i.getAttribute("name");this.inputHandler(s,i.value),this.formControlInput.emit(i.value)},this.updateInput=t=>{this.selectElement.value=t},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.options=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){var t;return i(e,{key:"99449e3724103b12af7f2a4573831961074a484a",exportparts:"label,input,input-invalid"},i("div",{key:"d73e89d43da9968b687afece24794d9472fec6b5",class:"form-group d-flex flex-column"},i("label",{key:"6964c55858fc3cf96a137e1061c7f66831105348",part:"label",class:"form-label",htmlFor:this.name},this.label),i("select",{key:"5b1a09a607ad9638915f5e70f2164f6010020438",ref:t=>this.selectElement=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:"input "+(this.errorText?"input-invalid":""),class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i("form-control-help-text",{key:"62d862921d463c98e56888293c878624f7311548",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"0b1c4d4752965fb058208c72c7f1c3872d1e0561",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},l=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const i=t.target,s=i.getAttribute("name");this.inputHandler(s,i.value),this.formControlInput.emit({name:s,value:i.value})},this.updateInput=t=>{const i=this.el.querySelector("input");i&&(i.value=t||"")},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(e,{key:"1194532f81831734543bad80860da14f8a5ad856",exportparts:"label,input,input-invalid"},i("div",{key:"296538cf90b62f8041e21620aa06b4074f68b71a",class:"form-group d-flex flex-column"},i("label",{key:"7c009ce96124e58f9657dba2565ef298225f10f7",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"4b33cb700aecf4d0a359366ba2e0d248c602d904",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"7a279d72bb262fcb044b5b0cc31703878ce9f444",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"00bea288a99f626806697a98b6dca3f3298dc0b3",errorText:this.errorText,name:this.name})))}get el(){return o(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{a as form_control_error_text,r as form_control_help_text,h as form_control_select,l as form_control_text}
@@ -1,41 +1 @@
1
- import { h } from './p-fad19d75.js';
2
-
3
- // This component relies on "src/styles/animations.css"
4
- // where it is defined the pulsation animation.
5
- // Because of shadow-dom, it's not possible to add it to the root.css.
6
- // Don't forget to include this file in the `styleUrls`
7
- // property of the web component that will render the Skeleton
8
- const Skeleton = ({ component = 'div', height, width, variant = 'text', componentClassName, styles = {}, }) => {
9
- const getVariantStyle = () => {
10
- if (variant === 'text') {
11
- return {
12
- marginTop: 0,
13
- marginBottom: 0,
14
- height: 'auto',
15
- transformOrigin: '0 55%',
16
- transform: 'scale(1, 0.60)',
17
- borderRadius: '4px/6.67px',
18
- '::before': {
19
- content: '"\\00a0"',
20
- },
21
- };
22
- }
23
- else if (variant === 'circular') {
24
- return {
25
- borderRadius: '50%',
26
- };
27
- }
28
- else if (variant === 'rounded') {
29
- return {
30
- borderRadius: '4px',
31
- };
32
- }
33
- return {};
34
- };
35
- const combinedStyle = Object.assign(Object.assign(Object.assign({}, styles), getVariantStyle()), { width,
36
- height });
37
- const TagType = component;
38
- return (h(TagType, { class: componentClassName, style: combinedStyle, part: "skeleton" }));
39
- };
40
-
41
- export { Skeleton as S };
1
+ import{h as t}from"./p-fad19d75.js";const e=({component:e="div",height:r,width:o,variant:a="text",componentClassName:s,styles:n={}})=>{const i=Object.assign(Object.assign(Object.assign({},n),"text"===a?{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"4px/6.67px","::before":{content:'"\\00a0"'}}:"circular"===a?{borderRadius:"50%"}:"rounded"===a?{borderRadius:"4px"}:{}),{width:o,height:r});return t(e,{class:s,style:i,part:"skeleton"})};export{e as S}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,H as t}from"./p-fad19d75.js";import{E as c}from"./p-56f6ce4c.js";const d=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(t,{key:"645df5028861aa714a814f908ccace8dcd0986f8",exportparts:"page-arrow,page-button,page-button-disabled,page-button-text"},e("nav",{key:"6cb86ce01c625db9c31204f63258570f8a5d0a0f","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"7ffb5771a1c51553d64735721b937e53c699949d",class:"pagination m-0"},e("li",{key:"b439c2f7fe81ccdfa29670a6fc04715681ed5ab3",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("a",{key:"dc59152e834a3076f09304f6fcd0195058ebefec",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:"page-button"+(this.paging.has_previous?"":" page-button-disabled")},e("span",{key:"fc640fb9ae2ca672bfed89d23c5641cb346c673d",class:"me-1",part:"page-arrow"},"«"),e("span",{key:"fb6fcd31ebd4d194b37f53a071537133b8c4d369",part:"page-button-text"},"Previous"))),e("li",{key:"b10e12ec7bc4a89cd897e868ec7b303c62599cd3",class:"page-item "+(this.paging.has_next?"":" disabled")},e("a",{key:"51f91eb7cfef91dcbcfd9f11522213308bf717b5",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:"page-button"+(this.paging.has_next?"":" page-button-disabled")},e("span",{key:"d89f50a44dead676d19b8862a92ba636947fe6b1",part:"page-button-text"},"Next"),e("span",{key:"f5dd2ddddef86931d935df56101f1fed8118e4f6",class:"ms-1",part:"page-arrow"},"»"))))))}};export{d as pagination_menu}
@@ -1,20 +1 @@
1
- var ComponentErrorCodes;
2
- (function (ComponentErrorCodes) {
3
- ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
4
- ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
5
- ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
6
- ComponentErrorCodes["POST_ERROR"] = "post-error";
7
- ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
8
- ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
9
- ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
10
- ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
11
- ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
12
- })(ComponentErrorCodes || (ComponentErrorCodes = {}));
13
- var ComponentErrorSeverity;
14
- (function (ComponentErrorSeverity) {
15
- ComponentErrorSeverity["INFO"] = "info";
16
- ComponentErrorSeverity["WARNING"] = "warning";
17
- ComponentErrorSeverity["ERROR"] = "error";
18
- })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
19
-
20
- export { ComponentErrorSeverity as C, ComponentErrorCodes as a };
1
+ var r,e;!function(r){r.MISSING_PROPS="missing-props",r.FETCH_ERROR="fetch-error",r.PATCH_ERROR="patch-error",r.POST_ERROR="post-error",r.UNKNOWN_ERROR="unknown-error",r.TOKENIZE_ERROR="tokenize-error",r.NOT_AUTHENTICATED="not-authenticated",r.INVALID_PARAMETER="invalid-parameter",r.PROVISIONING_REQUESTED="provisioning-already-requested"}(r||(r={})),function(r){r.INFO="info",r.WARNING="warning",r.ERROR="error"}(e||(e={}));export{e as C,r as a}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as r}from"./p-fad19d75.js";import{t as o}from"./p-2b6c9c4f.js";import{m as e,P as a}from"./p-8603348a.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as p,a as c}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-554a3c18.js";import"./p-29c0b182.js";import"./p-ae263544.js";import"./p-d765d638.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:o,onError:e})=>{var a,c;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:h(u.error),code:d(null===(c=u.error)||void 0===c?void 0:c.code),severity:p.ERROR});{const t=Object.assign({},u.page_info);o({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){return e({error:h(t),code:d(null==t?void 0:t.code),severity:p.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return this.errorMessage?u(this.errorMessage):i(r,{exportedparts:o},i("payouts-list-core",{getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}