@justifi/webcomponents 4.19.3-rc → 4.19.3-rc-2

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 (164) hide show
  1. package/dist/cjs/{Analytics-57e3b5a8.js → Analytics-adc90fc6.js} +1 -1
  2. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  3. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -1
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +4 -1
  10. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-payment-form.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  18. package/dist/cjs/{package-97b9c902.js → package-22d30c5d.js} +1 -1
  19. package/dist/collection/components/checkout/checkout-core.js +2 -1
  20. package/dist/collection/components/checkout/new-payment-method.js +4 -1
  21. package/dist/docs.json +1 -1
  22. package/dist/esm/{Analytics-7cb9826b.js → Analytics-a8eb7344.js} +1 -1
  23. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  24. package/dist/esm/justifi-business-details.entry.js +2 -2
  25. package/dist/esm/justifi-business-form.entry.js +2 -2
  26. package/dist/esm/justifi-card-form.entry.js +2 -2
  27. package/dist/esm/justifi-checkout-core.entry.js +2 -1
  28. package/dist/esm/justifi-checkout.entry.js +2 -2
  29. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  30. package/dist/esm/justifi-new-payment-method_4.entry.js +4 -1
  31. package/dist/esm/justifi-payment-details.entry.js +2 -2
  32. package/dist/esm/justifi-payment-form.entry.js +2 -2
  33. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  34. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  35. package/dist/esm/justifi-payments-list.entry.js +2 -2
  36. package/dist/esm/justifi-payout-details.entry.js +2 -2
  37. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  38. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  39. package/dist/esm/{package-93884871.js → package-ccb774a9.js} +1 -1
  40. package/dist/module/checkout-core.js +2 -1
  41. package/dist/module/new-payment-method.js +4 -1
  42. package/dist/module/package.js +1 -1
  43. package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
  44. package/dist/webcomponents/index.esm.js +1 -0
  45. package/dist/webcomponents/p-01a404ca.entry.js +44 -0
  46. package/dist/webcomponents/p-03d35880.entry.js +130 -0
  47. package/dist/webcomponents/p-06ff0429.entry.js +65 -0
  48. package/dist/webcomponents/p-08b0fb31.js +41 -1
  49. package/dist/webcomponents/p-0e1bc91e.js +28 -1
  50. package/dist/webcomponents/p-10875f3d.entry.js +97 -0
  51. package/dist/webcomponents/p-14c91ffd.js +20 -1
  52. package/dist/webcomponents/p-157acba8.entry.js +98 -0
  53. package/dist/webcomponents/p-15eafa87.js +77 -0
  54. package/dist/webcomponents/p-18fa0479.entry.js +131 -0
  55. package/dist/webcomponents/p-1a5120f4.entry.js +145 -0
  56. package/dist/webcomponents/p-1ad5995e.js +3599 -1
  57. package/dist/webcomponents/p-1ff8810b.js +29 -1
  58. package/dist/webcomponents/p-2338affa.js +213 -1
  59. package/dist/webcomponents/p-24dc023a.entry.js +791 -0
  60. package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
  61. package/dist/webcomponents/p-27d87fe2.entry.js +133 -0
  62. package/dist/webcomponents/p-29c0b182.js +114 -1
  63. package/dist/webcomponents/p-2b6c9c4f.js +7 -1
  64. package/dist/webcomponents/p-2e8f4937.js +79 -0
  65. package/dist/webcomponents/p-2eab3c90.js +3052 -1
  66. package/dist/webcomponents/p-3395e896.entry.js +74 -0
  67. package/dist/webcomponents/p-3fd13ca3.js +52 -1
  68. package/dist/webcomponents/p-47d79529.js +18 -1
  69. package/dist/webcomponents/p-525db3e8.js +22 -1
  70. package/dist/webcomponents/p-53ecc8b9.entry.js +261 -0
  71. package/dist/webcomponents/p-5482d030.entry.js +21 -0
  72. package/dist/webcomponents/p-56f6ce4c.js +10 -1
  73. package/dist/webcomponents/p-576826b1.entry.js +43 -0
  74. package/dist/webcomponents/p-5968ff8a.js +178 -1
  75. package/dist/webcomponents/p-5f835b89.entry.js +606 -0
  76. package/dist/webcomponents/p-6078a370.js +244 -1
  77. package/dist/webcomponents/p-6124b1b3.entry.js +80 -0
  78. package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
  79. package/dist/webcomponents/p-7582b554.entry.js +18 -0
  80. package/dist/webcomponents/p-75fd6367.entry.js +149 -0
  81. package/dist/webcomponents/p-79646550.entry.js +61 -0
  82. package/dist/webcomponents/p-7d85af5c.js +16 -1
  83. package/dist/webcomponents/p-800d31fe.entry.js +162 -0
  84. package/dist/webcomponents/p-8115b2f4.js +28 -1
  85. package/dist/webcomponents/p-83125497.js +4027 -1
  86. package/dist/webcomponents/p-85fc69e5.js +90 -1
  87. package/dist/webcomponents/p-89887332.js +301 -1
  88. package/dist/webcomponents/p-8df7bde8.js +27 -1
  89. package/dist/webcomponents/p-8eb774df.entry.js +54 -0
  90. package/dist/webcomponents/p-9c9c7dac.js +24 -1
  91. package/dist/webcomponents/p-9e17630d.entry.js +1684 -0
  92. package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
  93. package/dist/webcomponents/p-a4e8573e.entry.js +94 -0
  94. package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
  95. package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
  96. package/dist/webcomponents/p-ab4816e1.entry.js +117 -0
  97. package/dist/webcomponents/p-ac086069.entry.js +58 -0
  98. package/dist/webcomponents/p-af244664.js +126 -1
  99. package/dist/webcomponents/p-b4b8b531.js +44 -1
  100. package/dist/webcomponents/p-b82c146f.entry.js +111 -0
  101. package/dist/webcomponents/p-ba4bae6f.js +12 -1
  102. package/dist/webcomponents/p-ba5fae28.js +90 -1
  103. package/dist/webcomponents/p-bd66f9d2.entry.js +101 -0
  104. package/dist/webcomponents/p-cc39384f.entry.js +99 -0
  105. package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
  106. package/dist/webcomponents/p-d89bad72.js +39 -1
  107. package/dist/webcomponents/p-dad3e069.entry.js +298 -0
  108. package/dist/webcomponents/p-dce846bf.js +27 -1
  109. package/dist/webcomponents/p-df21aaad.js +120 -1
  110. package/dist/webcomponents/p-e1255160.js +3 -1
  111. package/dist/webcomponents/p-e1e7525b.entry.js +73 -0
  112. package/dist/webcomponents/p-e333620e.js +34 -1
  113. package/dist/webcomponents/p-e356f280.entry.js +29 -0
  114. package/dist/webcomponents/p-e3fab0e2.js +43 -1
  115. package/dist/webcomponents/p-e9a5cb95.entry.js +94 -0
  116. package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
  117. package/dist/webcomponents/p-edc37d1f.entry.js +75 -0
  118. package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
  119. package/dist/webcomponents/p-fad19d75.js +1638 -2
  120. package/dist/webcomponents/webcomponents.css +362 -4
  121. package/dist/webcomponents/webcomponents.esm.js +20 -1
  122. package/package.json +1 -1
  123. package/dist/webcomponents/p-03419b17.js +0 -1
  124. package/dist/webcomponents/p-07109641.entry.js +0 -1
  125. package/dist/webcomponents/p-0bbe1f1c.entry.js +0 -1
  126. package/dist/webcomponents/p-0cd89142.entry.js +0 -1
  127. package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
  128. package/dist/webcomponents/p-16887e04.entry.js +0 -1
  129. package/dist/webcomponents/p-17baca7d.entry.js +0 -1
  130. package/dist/webcomponents/p-17e4246f.entry.js +0 -1
  131. package/dist/webcomponents/p-1a43e355.entry.js +0 -19
  132. package/dist/webcomponents/p-1f761d16.entry.js +0 -1
  133. package/dist/webcomponents/p-276cc368.entry.js +0 -1
  134. package/dist/webcomponents/p-30a493cd.entry.js +0 -1
  135. package/dist/webcomponents/p-32211b2f.entry.js +0 -1
  136. package/dist/webcomponents/p-3352353a.entry.js +0 -1
  137. package/dist/webcomponents/p-462dc522.entry.js +0 -1
  138. package/dist/webcomponents/p-487b72a8.entry.js +0 -1
  139. package/dist/webcomponents/p-4a485cce.js +0 -1
  140. package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
  141. package/dist/webcomponents/p-4c849993.entry.js +0 -1
  142. package/dist/webcomponents/p-52021fa1.entry.js +0 -1
  143. package/dist/webcomponents/p-53e64f15.entry.js +0 -1
  144. package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
  145. package/dist/webcomponents/p-83876625.entry.js +0 -1
  146. package/dist/webcomponents/p-8e541a32.entry.js +0 -1
  147. package/dist/webcomponents/p-97272668.entry.js +0 -1
  148. package/dist/webcomponents/p-b1257354.entry.js +0 -1
  149. package/dist/webcomponents/p-b29f5084.entry.js +0 -1
  150. package/dist/webcomponents/p-babd56c3.entry.js +0 -1
  151. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  152. package/dist/webcomponents/p-be39c802.entry.js +0 -1
  153. package/dist/webcomponents/p-c607f049.entry.js +0 -1
  154. package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
  155. package/dist/webcomponents/p-cd37a87e.entry.js +0 -1
  156. package/dist/webcomponents/p-cff82e78.entry.js +0 -1
  157. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  158. package/dist/webcomponents/p-e2c88817.entry.js +0 -1
  159. package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
  160. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  161. package/dist/webcomponents/p-f117d1d1.entry.js +0 -1
  162. package/dist/webcomponents/p-f883bf32.entry.js +0 -1
  163. package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
  164. package/dist/webcomponents/p-fe33151d.entry.js +0 -1
@@ -27,6 +27,9 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
27
27
  this.isSelected = undefined;
28
28
  this.saveNewPaymentMethodChecked = false;
29
29
  }
30
+ componentWillLoad() {
31
+ console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
32
+ }
30
33
  handleCheckboxChanged(event) {
31
34
  this.saveNewPaymentMethodChecked = event.detail;
32
35
  }
@@ -79,7 +82,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
79
82
  }
80
83
  render() {
81
84
  var _a, _b, _c, _d;
82
- return (h("div", { key: '55a43467070e4981a6fda7b529f329122f33dda8', class: "payment-method" }, h("div", { key: 'b86a20d2e51883dab9f2c46e6787417d498af17e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '900b836be24e83816d1e6c915855b11ba3b605ee', 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: 'b1976293de17845cba7671606c50698b90878bcb', 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));
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
86
  }
84
87
  }, [0, "justifi-new-payment-method", {
85
88
  "iframeOrigin": [1025, "iframe-origin"],
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.3-rc";
2
+ const version = "4.19.3-rc-2";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -13,6 +13,7 @@ export declare class NewPaymentMethod {
13
13
  paymentMethodOptionSelected: EventEmitter;
14
14
  private billingFormRef?;
15
15
  private paymentMethodFormRef?;
16
+ componentWillLoad(): void;
16
17
  handleCheckboxChanged(event: CustomEvent<boolean>): void;
17
18
  fillBillingForm(fields: BillingFormFields): Promise<void>;
18
19
  resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,44 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './p-fad19d75.js';
2
+
3
+ const FileInput = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.formControlInput = createEvent(this, "formControlInput", 7);
7
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
8
+ this.fileSelected = createEvent(this, "fileSelected", 7);
9
+ this.handleFormControlInput = (event) => {
10
+ const target = event.target;
11
+ const name = target.getAttribute('name');
12
+ this.inputHandler(name, target.value);
13
+ this.formControlInput.emit({ name, value: target.value });
14
+ };
15
+ this.changeHandler = () => {
16
+ const inputFileList = this.fileInput.files;
17
+ if (inputFileList) {
18
+ this.fileSelected.emit({
19
+ fileList: inputFileList,
20
+ document_type: this.documentType
21
+ });
22
+ }
23
+ };
24
+ this.files = undefined;
25
+ this.fileString = undefined;
26
+ this.label = undefined;
27
+ this.name = undefined;
28
+ this.helpText = undefined;
29
+ this.errorText = undefined;
30
+ this.multiple = undefined;
31
+ this.documentType = undefined;
32
+ this.inputHandler = undefined;
33
+ this.disabled = undefined;
34
+ }
35
+ componentDidLoad() {
36
+ this.fileInput = this.el.querySelector('input');
37
+ }
38
+ render() {
39
+ return (h(Host, { key: 'ed29128c1c4c811aa030697347adb88e0143b031', exportparts: "label,input,input-invalid" }, h("div", { key: '6c924bdbbccae8e98a382a92e54c5b9c288de8d4', class: "form-group d-flex flex-column" }, h("label", { key: 'dbacccea94e39815737683495e3df83b514b79af', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'a7eef53c9fff54eace8c6960b8c62a833d30bfa3', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: 'a5abacb92bdb3fb59d0a2265114e858540f2c4b7', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '6eeeef347237d363d3bc6616d58f19a7f0be7e3c', errorText: this.errorText, name: this.name }))));
40
+ }
41
+ get el() { return getElement(this); }
42
+ };
43
+
44
+ export { FileInput as form_control_file };
@@ -0,0 +1,130 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
+ import { I as IMask } from './p-1ad5995e.js';
3
+ import { S as StateOptions } from './p-6078a370.js';
4
+ import { n as numberOnlyHandler } from './p-8df7bde8.js';
5
+
6
+ const DateInput = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.formControlInput = createEvent(this, "formControlInput", 7);
10
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
11
+ this.handleFormControlInput = (event) => {
12
+ const target = event.target;
13
+ const name = target.getAttribute('name');
14
+ this.inputHandler(name, target.value);
15
+ this.formControlInput.emit({ name, value: target.value });
16
+ };
17
+ this.label = undefined;
18
+ this.name = undefined;
19
+ this.helpText = undefined;
20
+ this.errorText = undefined;
21
+ this.defaultValue = undefined;
22
+ this.inputHandler = undefined;
23
+ this.disabled = undefined;
24
+ }
25
+ handleDefaultValueChange(newValue) {
26
+ this.updateInput(newValue);
27
+ }
28
+ componentDidLoad() {
29
+ this.updateInput(this.defaultValue);
30
+ }
31
+ updateInput(value) {
32
+ this.dateInput.value = value;
33
+ }
34
+ render() {
35
+ return (h(Host, { key: 'fa61a426a5a070d951fa425ae42a59add69a9d96', exportparts: "label,input,input-invalid" }, h("label", { key: 'e7679e6a66277a130414b59421b01d1f8e328cf2', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'dbc9ac76d75521a7d1ee5cc34393471521ffa1c2', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0f9731278250bde69dd7dee9a7b44e339d919774', errorText: this.errorText, name: this.name })));
36
+ }
37
+ static get watchers() { return {
38
+ "defaultValue": ["handleDefaultValueChange"]
39
+ }; }
40
+ };
41
+
42
+ const NumberInputMasked = class {
43
+ constructor(hostRef) {
44
+ registerInstance(this, hostRef);
45
+ this.formControlInput = createEvent(this, "formControlInput", 7);
46
+ this.formControlBlur = createEvent(this, "formControlBlur", 7);
47
+ this.imask = null;
48
+ this.initializeIMask = () => {
49
+ if (!this.textInput)
50
+ return;
51
+ this.imask = IMask(this.textInput, {
52
+ mask: this.mask,
53
+ });
54
+ this.imask.on('accept', () => {
55
+ var _a;
56
+ const rawValue = (_a = this.imask) === null || _a === void 0 ? void 0 : _a.unmaskedValue;
57
+ if (rawValue !== undefined) {
58
+ this.inputHandler(this.name, rawValue);
59
+ }
60
+ });
61
+ this.textInput.addEventListener('blur', () => this.formControlBlur.emit());
62
+ };
63
+ this.handleFormControlInput = (event) => {
64
+ const target = event.target;
65
+ const name = target.getAttribute('name');
66
+ this.formControlInput.emit({ name: name, value: target.value });
67
+ };
68
+ this.updateInput = (newValue) => {
69
+ if (this.imask && newValue) {
70
+ this.imask.value = String(newValue);
71
+ }
72
+ };
73
+ this.label = undefined;
74
+ this.name = undefined;
75
+ this.helpText = undefined;
76
+ this.errorText = undefined;
77
+ this.defaultValue = undefined;
78
+ this.inputHandler = undefined;
79
+ this.mask = undefined;
80
+ this.disabled = undefined;
81
+ }
82
+ handleDefaultValueChange(newValue) {
83
+ this.initializeIMask();
84
+ this.updateInput(newValue);
85
+ }
86
+ disconnectedCallback() {
87
+ var _a;
88
+ (_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
89
+ }
90
+ componentDidLoad() {
91
+ if (this.textInput) {
92
+ this.initializeIMask();
93
+ this.updateInput(this.defaultValue);
94
+ }
95
+ }
96
+ render() {
97
+ return (h(Host, { key: 'e0a59308376055c019233f3d4649c9a37af963d2', exportparts: "label,input,input-invalid" }, h("div", { key: '52d9440421342fed6a4f97b57586a43d517ded7d', class: "form-group d-flex flex-column" }, h("label", { key: '8302a9fa1111d3b72600304cd0b1fb2c6239d895', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '86653c7b7f4efb9609bae2ecf69bd5e396bd342b', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '71d4d44ff91d06229ccc22e70bc92e0a2050da90', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'b7d42462ae9165acbde68cf59da07eb956a91fd6', errorText: this.errorText, name: this.name }))));
98
+ }
99
+ static get watchers() { return {
100
+ "defaultValue": ["handleDefaultValueChange"]
101
+ }; }
102
+ };
103
+
104
+ const IdentityAddressForm = class {
105
+ constructor(hostRef) {
106
+ registerInstance(this, hostRef);
107
+ this.inputHandler = (name, value) => {
108
+ this.address[name] = value;
109
+ this.address = Object.assign({}, this.address);
110
+ };
111
+ this.handleFormUpdate = undefined;
112
+ this.errors = undefined;
113
+ this.defaultValues = undefined;
114
+ this.address = {};
115
+ }
116
+ handleAddressChange(newValues) {
117
+ this.handleFormUpdate(newValues);
118
+ }
119
+ render() {
120
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
121
+ return (h(Host, { key: 'd090676d3bb1d9de9ae947ff25d94b5985ace914', exportparts: "label,input,input-invalid" }, h("div", { key: '64ddec6db508d27b709ad551f60fe58494631fe3', class: "row gy-3" }, h("div", { key: '7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea', class: "col-12 col-md-8" }, h("form-control-text", { key: 'ea6055fb3457e28666b11b72173ad70b83a87659', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler })), h("div", { key: '5f6f456c573fb9318e58976decb67274b209fa23', class: "col-12 col-md-4" }, h("form-control-text", { key: '86fffd4641953d0445a7c24d332cda513121b65e', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: 'e06339cefebe37ae0629631fbc5101c9dbc040a6', class: "col-12" }, h("form-control-text", { key: 'd2af696b33092247b6741c8034aaf12ab51aa878', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'b655a66fb68f059fa91ae5f9f60fdebe0ae04fad', class: "col-12 col-md-6" }, h("form-control-select", { key: '50a65861a5a39daac199571c5a0273340556e476', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '30255517e0fa1ede35d7b2525625ebc389c44525', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '804e9aa1ca7b4ae167ae64969107ad6352559ed7', class: "col-12" }, h("form-control-select", { key: '1aa3734e10502bc8f1732f386b60135b8a7d94a6', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
122
+ // just for now so we skip handling country specificities
123
+ disabled: true })))));
124
+ }
125
+ static get watchers() { return {
126
+ "address": ["handleAddressChange"]
127
+ }; }
128
+ };
129
+
130
+ export { DateInput as form_control_date, NumberInputMasked as form_control_number_masked, IdentityAddressForm as justifi_identity_address_form };
@@ -0,0 +1,65 @@
1
+ import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
+ import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './p-83125497.js';
3
+ import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './p-dce846bf.js';
4
+ import { S as StyledHost } from './p-ba4bae6f.js';
5
+
6
+ const PayoutDetailsCore = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.errorEvent = createEvent(this, "error-event", 7);
10
+ this.downloadCSV = () => {
11
+ this.getPayoutCSV({
12
+ payoutId: this.payout.id,
13
+ onError: ({ error, code, severity }) => {
14
+ this.errorMessage = error;
15
+ this.errorEvent.emit({
16
+ message: error,
17
+ errorCode: code,
18
+ severity,
19
+ });
20
+ },
21
+ });
22
+ };
23
+ this.getPayout = undefined;
24
+ this.getPayoutCSV = undefined;
25
+ this.payout = undefined;
26
+ this.loading = true;
27
+ this.errorMessage = null;
28
+ }
29
+ componentWillLoad() {
30
+ if (this.getPayout) {
31
+ this.fetchData();
32
+ }
33
+ }
34
+ getPayoutWatcher() {
35
+ this.fetchData();
36
+ }
37
+ fetchData() {
38
+ this.loading = true;
39
+ this.getPayout({
40
+ onSuccess: (payout) => {
41
+ this.errorMessage = null;
42
+ this.payout = payout;
43
+ this.loading = false;
44
+ },
45
+ onError: ({ error, code, severity }) => {
46
+ this.errorMessage = error;
47
+ this.errorEvent.emit({
48
+ message: error,
49
+ errorCode: code,
50
+ severity,
51
+ });
52
+ this.loading = false;
53
+ },
54
+ });
55
+ }
56
+ render() {
57
+ var _a;
58
+ return (h(StyledHost, { key: 'fdf7905cdc7696414b765d61d0f78c7193cbbc76' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'f79827c287d68484a87232ae956a1c15e3d7044d', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'dfa9c228f2cd1b0b2d14dc6ce44478ee8fc35d00', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '6b5907e3f7753d4e2f6ba59bfe509d97e2a4c1c0', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '63b7497217a00268190eaea1475639fc5e0b43ca', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'e26e56abbac3e12584c187f6f1b560b0f4b33a6f', title: "ID", value: this.payout.id }), h("div", { key: 'e84dd653fb1adc566b0afbfdfc87cce40ed47280', class: "m-4" }, h("button", { key: 'fac0022786dc03349a65dc54729dc2f508c9441f', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '9cf642b803c59146895b762eaff40f5026c9f94b', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '90ed8aafabf9eebb47da15c6c8b8d1f527d23557', sectionTitle: "Details" }), h("div", { key: '592b8489fa30441bbf11a52d3daf6a2debcc121f', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '0885f3ece509936d1e1bad64d4a998fbc487ee3a', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'b8a7da2bfeada94c8c7c080b516c1bc7fc26f414', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'd8928341e89161d4bafc2940f1aa738b345779dd', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '570bd2a2d44f094870e61debca61c2b5aa772679', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '2882865db185d1668103d819e62cf61edc711697', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'f9735ff73c650ad318d771df5c22c7d8834a09f6', sectionTitle: "Account" }), h("div", { key: 'd7d53fd77e704035a19dc15bc04ee06dfaa0c51a', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '486ae1c4ae990928bf24cc687cb4456bbc6e18ea', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '528d7d6a299aa1019125f34fc903ea622d09de53', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'eafb132e84de81d41bd154aec55974d8496995dd', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '7f565f8dfacab4cf8edc7025d839dff1d8de2719', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '61338f5ed539d70b4caa08ffa200d8e47f52ebde', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'cea128826f004ece9e6c29c97c07e98a3d45706c', sectionTitle: 'Metadata' }), h("div", { key: 'bf884c3dafa50cd1b8e0d98711f0fe5fc9d60391', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '2d92e2f8d6f032cbaff741da43ca97424b8decaf', metadata: this.payout.metadata })))))));
59
+ }
60
+ static get watchers() { return {
61
+ "getPayout": ["getPayoutWatcher"]
62
+ }; }
63
+ };
64
+
65
+ export { PayoutDetailsCore as payout_details_core };
@@ -1 +1,41 @@
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}
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 +1,28 @@
1
- import{A as t}from"./p-29c0b182.js";class i{async fetchBusiness(i,n){const s=`entities/business/${i}`;return t({authToken:n,apiOrigin:""}).get(s)}async patchBusiness(i,n,s){const e=`entities/business/${n}`;return t({authToken:i,apiOrigin:""}).patch(e,s)}}class n{async fetchIdentity(i,n){const s=`entities/identity/${i}`;return t({authToken:n,apiOrigin:""}).get(s)}async patchIdentity(i,n,s){const e=`entities/identity/${n}`;return t({authToken:i,apiOrigin:""}).patch(e,s)}async postIdentity(i,n){return t({authToken:i,apiOrigin:""}).post("entities/identity",n)}}export{i as B,n as I}
1
+ import { A as Api } from './p-29c0b182.js';
2
+
3
+ class BusinessService {
4
+ async fetchBusiness(businessId, authToken) {
5
+ const endpoint = `entities/business/${businessId}`;
6
+ return Api({ authToken, apiOrigin: "" }).get(endpoint);
7
+ }
8
+ async patchBusiness(authToken, businessId, payload) {
9
+ const endpoint = `entities/business/${businessId}`;
10
+ return Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
11
+ }
12
+ }
13
+ class IdentityService {
14
+ async fetchIdentity(identityId, authToken) {
15
+ const endpoint = `entities/identity/${identityId}`;
16
+ return Api({ authToken, apiOrigin: "" }).get(endpoint);
17
+ }
18
+ async patchIdentity(authToken, identityId, payload) {
19
+ const endpoint = `entities/identity/${identityId}`;
20
+ return Api({ authToken, apiOrigin: "" }).patch(endpoint, payload);
21
+ }
22
+ async postIdentity(authToken, payload) {
23
+ const endpoint = `entities/identity`;
24
+ return Api({ authToken, apiOrigin: "" }).post(endpoint, payload);
25
+ }
26
+ }
27
+
28
+ export { BusinessService as B, IdentityService as I };
@@ -0,0 +1,97 @@
1
+ import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
+ import { A as Api } from './p-29c0b182.js';
3
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
4
+ import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
5
+ import { E as ErrorState } from './p-dce846bf.js';
6
+ import { J as JustifiAnalytics } from './p-15eafa87.js';
7
+ import './p-2e8f4937.js';
8
+
9
+ class ReportsService {
10
+ async fetchGrossVolumeChartData(accountId, authToken) {
11
+ const api = Api({ authToken: authToken, apiOrigin: "" });
12
+ const endpoint = `account/${accountId}/reports/gross_volume`;
13
+ return api.get(endpoint);
14
+ }
15
+ }
16
+
17
+ const makeGetGrossPaymentChartData = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
18
+ var _a;
19
+ try {
20
+ const response = await service.fetchGrossVolumeChartData(id, authToken);
21
+ if (!response.error) {
22
+ onSuccess(response.data);
23
+ }
24
+ else {
25
+ const errorMessage = getErrorMessage(response.error);
26
+ const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
27
+ onError({
28
+ error: errorMessage,
29
+ code,
30
+ severity: ComponentErrorSeverity.ERROR,
31
+ });
32
+ }
33
+ }
34
+ catch (error) {
35
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
36
+ const errorMessage = getErrorMessage(error);
37
+ onError({
38
+ error: errorMessage,
39
+ code,
40
+ severity: ComponentErrorSeverity.ERROR,
41
+ });
42
+ }
43
+ };
44
+
45
+ const GrossPaymentChart = class {
46
+ constructor(hostRef) {
47
+ registerInstance(this, hostRef);
48
+ this.errorEvent = createEvent(this, "error-event", 7);
49
+ this.handleErrorEvent = (event) => {
50
+ this.errorMessage = event.detail.message;
51
+ this.errorEvent.emit(event.detail);
52
+ };
53
+ this.accountId = undefined;
54
+ this.authToken = undefined;
55
+ this.getGrossPayment = undefined;
56
+ this.errorMessage = null;
57
+ }
58
+ componentWillLoad() {
59
+ this.analytics = new JustifiAnalytics(this);
60
+ this.initializeGetGrossPayment();
61
+ }
62
+ disconnectedCallback() {
63
+ this.analytics.cleanup();
64
+ }
65
+ propChanged() {
66
+ this.initializeGetGrossPayment();
67
+ }
68
+ initializeGetGrossPayment() {
69
+ if (this.accountId && this.authToken) {
70
+ this.getGrossPayment = makeGetGrossPaymentChartData({
71
+ id: this.accountId,
72
+ authToken: this.authToken,
73
+ service: new ReportsService(),
74
+ });
75
+ }
76
+ else {
77
+ this.errorMessage = 'Account ID and Auth Token are required';
78
+ this.errorEvent.emit({
79
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
80
+ message: this.errorMessage,
81
+ severity: ComponentErrorSeverity.ERROR,
82
+ });
83
+ }
84
+ }
85
+ render() {
86
+ if (this.errorMessage) {
87
+ return ErrorState(this.errorMessage);
88
+ }
89
+ return (h("gross-payment-chart-core", { getGrossPayment: this.getGrossPayment, "onError-event": this.handleErrorEvent }));
90
+ }
91
+ static get watchers() { return {
92
+ "accountId": ["propChanged"],
93
+ "authToken": ["propChanged"]
94
+ }; }
95
+ };
96
+
97
+ export { GrossPaymentChart as justifi_gross_payment_chart };
@@ -1 +1,20 @@
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}
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 };
@@ -0,0 +1,98 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
+ import { t as tableExportedParts } from './p-2b6c9c4f.js';
3
+ import { m as makeGetPayoutCSV, P as PayoutService } from './p-b4b8b531.js';
4
+ import './p-56f6ce4c.js';
5
+ import './p-df21aaad.js';
6
+ import { P as Payout } from './p-e3fab0e2.js';
7
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
8
+ import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
9
+ import { E as ErrorState } from './p-dce846bf.js';
10
+ import { J as JustifiAnalytics } from './p-15eafa87.js';
11
+ import './p-29c0b182.js';
12
+ import './p-2e8f4937.js';
13
+
14
+ const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
+ var _a, _b;
16
+ try {
17
+ const response = await service.fetchPayouts(id, authToken, params);
18
+ if (!response.error) {
19
+ const pagingInfo = Object.assign({}, response.page_info);
20
+ const payouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payout(dataItem))) || [];
21
+ onSuccess({ payouts, pagingInfo });
22
+ }
23
+ else {
24
+ const error = getErrorMessage(response.error);
25
+ const code = getErrorCode((_b = response.error) === null || _b === void 0 ? void 0 : _b.code);
26
+ return onError({
27
+ error,
28
+ code,
29
+ severity: ComponentErrorSeverity.ERROR,
30
+ });
31
+ }
32
+ }
33
+ catch (error) {
34
+ const message = getErrorMessage(error);
35
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
36
+ return onError({
37
+ error: message,
38
+ code,
39
+ severity: ComponentErrorSeverity.ERROR,
40
+ });
41
+ }
42
+ };
43
+
44
+ const PayoutsList = class {
45
+ constructor(hostRef) {
46
+ registerInstance(this, hostRef);
47
+ this.errorEvent = createEvent(this, "error-event", 7);
48
+ this.handleOnError = (event) => {
49
+ this.errorMessage = event.detail.message;
50
+ this.errorEvent.emit(event.detail);
51
+ };
52
+ this.accountId = undefined;
53
+ this.authToken = undefined;
54
+ this.getPayouts = undefined;
55
+ this.getPayoutCSV = undefined;
56
+ this.errorMessage = null;
57
+ }
58
+ componentWillLoad() {
59
+ this.analytics = new JustifiAnalytics(this);
60
+ this.initializeServices();
61
+ }
62
+ disconnectedCallback() {
63
+ this.analytics.cleanup();
64
+ }
65
+ propChanged() {
66
+ this.initializeServices();
67
+ }
68
+ initializeServices() {
69
+ if (this.accountId && this.authToken) {
70
+ const serviceParams = {
71
+ id: this.accountId,
72
+ authToken: this.authToken,
73
+ service: new PayoutService(),
74
+ };
75
+ this.getPayouts = makeGetPayouts(serviceParams);
76
+ this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
77
+ }
78
+ else {
79
+ this.errorMessage = 'Account ID and Auth Token are required';
80
+ this.errorEvent.emit({
81
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
82
+ message: 'Account ID and Auth Token are required',
83
+ });
84
+ }
85
+ }
86
+ render() {
87
+ if (this.errorMessage) {
88
+ return ErrorState(this.errorMessage);
89
+ }
90
+ return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
91
+ }
92
+ static get watchers() { return {
93
+ "accountId": ["propChanged"],
94
+ "authToken": ["propChanged"]
95
+ }; }
96
+ };
97
+
98
+ export { PayoutsList as justifi_payouts_list };