@justifi/webcomponents 6.12.4 → 6.12.5
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.
- package/dist/cjs/{Analytics-BERGweGK.js → Analytics-CITnMj7H.js} +3 -3
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +4 -3
- package/dist/cjs/additional-questions_5.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +5 -5
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business-identity-schema-DI9XFbaD.js → business-identity-schema-DuFGX6_i.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-ByKpJklZ.js → check-pkg-version-CZMgXZID.js} +1 -1
- package/dist/cjs/{country-config-D7fss2oF.js → country-config-aJp8ScEs.js} +1 -0
- package/dist/cjs/dispute-notification_2.cjs.entry.js +3 -3
- package/dist/cjs/form-address-fields_3.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_2.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +3 -3
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/{package-B6L3zyfG.js → package-DOiqjXmm.js} +1 -1
- package/dist/cjs/{schema-validations-_yWWnnaG.js → schema-validations-DNPcvDh5.js} +13 -2
- package/dist/collection/api/Analytics.js +2 -2
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-full.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/utils/checkout-billing-state-options.js +12 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-B1bQP71R.js → Analytics-Cg17Xhj_.js} +3 -3
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/additional-questions-form-step_14.entry.js +5 -4
- package/dist/esm/additional-questions_5.entry.js +1 -1
- package/dist/esm/additional-statement_8.entry.js +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +6 -6
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business-identity-schema-D-Nk9aGV.js → business-identity-schema-0Q3kck3C.js} +3 -3
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-CNwUC4SV.js → check-pkg-version-D-rHqtUI.js} +1 -1
- package/dist/esm/{country-config-B_fuF6JU.js → country-config-CdvhLcnT.js} +1 -1
- package/dist/esm/dispute-notification_2.entry.js +3 -3
- package/dist/esm/form-address-fields_3.entry.js +1 -1
- package/dist/esm/form-control-number_2.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/{index.esm-CgNcFueq.js → index.esm-BHdVU4hV.js} +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +3 -3
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +7 -7
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +3 -3
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/{package-OGt0dCJl.js → package-B6YPrwyC.js} +1 -1
- package/dist/esm/{schema-validations-u9_XnlUL.js → schema-validations-A1o1biOB.js} +14 -4
- package/dist/module/Analytics.js +2 -2
- package/dist/module/billing-form-full2.js +2 -2
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step2.js +1 -0
- package/dist/module/country-config.js +1 -1
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/schema-validations.js +13 -3
- package/dist/types/utils/checkout-billing-state-options.d.ts +9 -0
- package/dist/webcomponents/{p-8aa53ef2.entry.js → p-0ce6c1b1.entry.js} +1 -1
- package/dist/webcomponents/{p-215c6b6b.entry.js → p-137a36a4.entry.js} +1 -1
- package/dist/webcomponents/{p-07236291.entry.js → p-1d294e34.entry.js} +1 -1
- package/dist/webcomponents/{p-383b8317.entry.js → p-1f34b2f7.entry.js} +1 -1
- package/dist/webcomponents/{p-35dd1fc0.entry.js → p-1f7f2436.entry.js} +1 -1
- package/dist/webcomponents/{p-b341efd6.entry.js → p-2aac2ab6.entry.js} +1 -1
- package/dist/webcomponents/{p-a1dcdc8b.entry.js → p-397b28ba.entry.js} +4 -4
- package/dist/webcomponents/{p-a80f69a9.entry.js → p-3cefb032.entry.js} +1 -1
- package/dist/webcomponents/{p-45c0fb53.entry.js → p-45668f01.entry.js} +1 -1
- package/dist/webcomponents/{p-3d6b9434.entry.js → p-5ec9634c.entry.js} +1 -1
- package/dist/webcomponents/{p-ae91fc9b.entry.js → p-60c65da4.entry.js} +1 -1
- package/dist/webcomponents/{p-b272a29d.entry.js → p-63e88b48.entry.js} +1 -1
- package/dist/webcomponents/{p-91aef5bf.entry.js → p-65281b33.entry.js} +1 -1
- package/dist/webcomponents/{p-f3ff7e00.entry.js → p-7ff9ce05.entry.js} +1 -1
- package/dist/webcomponents/{p-c8f3656f.entry.js → p-89844a98.entry.js} +1 -1
- package/dist/webcomponents/{p-69fdd137.entry.js → p-8d6856e7.entry.js} +1 -1
- package/dist/webcomponents/{p-7119fddd.entry.js → p-8e821593.entry.js} +1 -1
- package/dist/webcomponents/{p-9d021e10.entry.js → p-90f2f71d.entry.js} +1 -1
- package/dist/webcomponents/p-91940d05.entry.js +1 -0
- package/dist/webcomponents/{p-8d173a7c.entry.js → p-95317547.entry.js} +1 -1
- package/dist/webcomponents/p-B6YPrwyC.js +1 -0
- package/dist/webcomponents/{p-DwoT0UoX.js → p-CKiAlBsU.js} +1 -1
- package/dist/webcomponents/p-D8ytux5N.js +1 -0
- package/dist/webcomponents/p-DO9lqnbB.js +1 -0
- package/dist/webcomponents/{p-mF5zKtkx.js → p-DjjAx7PF.js} +1 -1
- package/dist/webcomponents/p-DrMJliVY.js +1 -0
- package/dist/webcomponents/p-XIWgia4J.js +1 -0
- package/dist/webcomponents/{p-ea0d7a98.entry.js → p-afe714cb.entry.js} +1 -1
- package/dist/webcomponents/p-b192f251.entry.js +1 -0
- package/dist/webcomponents/{p-daaa2a99.entry.js → p-b436a7d2.entry.js} +1 -1
- package/dist/webcomponents/{p-c9fe4f33.entry.js → p-bde7fe69.entry.js} +1 -1
- package/dist/webcomponents/{p-6220a384.entry.js → p-c108cd71.entry.js} +1 -1
- package/dist/webcomponents/{p-d24240a5.entry.js → p-c4415366.entry.js} +1 -1
- package/dist/webcomponents/{p-f30069ea.entry.js → p-c8bc235f.entry.js} +1 -1
- package/dist/webcomponents/{p-4ec433f4.entry.js → p-d1eabad2.entry.js} +1 -1
- package/dist/webcomponents/{p-49a4123c.entry.js → p-d5e7291a.entry.js} +1 -1
- package/dist/webcomponents/p-e17b92ec.entry.js +1 -0
- package/dist/webcomponents/{p-cde76bf8.entry.js → p-e322dcba.entry.js} +1 -1
- package/dist/webcomponents/p-e6ec9e6d.entry.js +1 -0
- package/dist/webcomponents/{p-9fc7714d.entry.js → p-ff8cf16c.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/readme.md +7 -14
- package/dist/webcomponents/p-31452258.entry.js +0 -1
- package/dist/webcomponents/p-3f5e9afb.entry.js +0 -1
- package/dist/webcomponents/p-6RTf1SXX.js +0 -1
- package/dist/webcomponents/p-Cz_7BuGW.js +0 -1
- package/dist/webcomponents/p-DyucNSA4.js +0 -1
- package/dist/webcomponents/p-KXLYEe1D.js +0 -1
- package/dist/webcomponents/p-OGt0dCJl.js +0 -1
- package/dist/webcomponents/p-e4cb7c21.entry.js +0 -1
- package/dist/webcomponents/p-ef85717f.entry.js +0 -1
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { a as create$6 } from './form.js';
|
|
2
|
+
import { P as ProvinceOptions, b as countryValidation } from './country-config.js';
|
|
2
3
|
import { S as StateOptions, a as CountryCode } from './Business.js';
|
|
3
|
-
import { b as countryValidation } from './country-config.js';
|
|
4
4
|
import { b as businessServiceReceivedOptions, a as bankAccountTypeOptions } from './business-form-options.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* US states/territories + Canadian provinces/territories for checkout billing only.
|
|
8
|
+
* Do not use for USA-only business forms (see country-config).
|
|
9
|
+
*/
|
|
10
|
+
const checkoutBillingStateOptions = [
|
|
11
|
+
{ label: 'Choose state / province', value: '' },
|
|
12
|
+
...StateOptions.filter((option) => option.value !== ''),
|
|
13
|
+
...ProvinceOptions.filter((option) => option.value !== ''),
|
|
14
|
+
];
|
|
15
|
+
|
|
6
16
|
const transformEmptyString = (value) => {
|
|
7
17
|
return value === '' ? null : value;
|
|
8
18
|
};
|
|
@@ -178,7 +188,7 @@ const cityValidation = create$6()
|
|
|
178
188
|
.max(50, 'City must be less than 50 characters')
|
|
179
189
|
.transform(transformEmptyString);
|
|
180
190
|
const stateValidation = create$6()
|
|
181
|
-
.oneOf(
|
|
191
|
+
.oneOf(checkoutBillingStateOptions.map((option) => option.value), 'Select a valid state or province')
|
|
182
192
|
.transform(transformEmptyString);
|
|
183
193
|
const postalValidation = create$6()
|
|
184
194
|
.matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/, 'Enter valid postal code')
|
|
@@ -225,4 +235,4 @@ const routingNumberValidation = create$6()
|
|
|
225
235
|
})
|
|
226
236
|
.transform(transformEmptyString);
|
|
227
237
|
|
|
228
|
-
export {
|
|
238
|
+
export { makePostalValidation as A, accountNumberValidation as B, accountTypeValidation as C, nicknameValidation as D, bankNameValidation as E, numbersOnlyRegex as F, routingNumberValidation as G, postalValidation as a, lineOneValidation as b, cityValidation as c, checkoutBillingStateOptions as d, dateOfIncorporationValidation as e, industryValidation as f, businessClassificationValidation as g, doingBusinessAsValidation as h, identityNameValidation as i, phoneValidation as j, emailValidation as k, lineTwoValidation as l, makeTaxIdValidation as m, websiteUrlValidation as n, otherPaymentDetailsValidation as o, paymentVolumeValidation as p, businessNameValidation as q, revenueValidation as r, stateValidation as s, taxIdValidation as t, ownershipPercentageValidation as u, makeIdentityNumberValidation as v, whenServiceReceivedValidation as w, dobValidation as x, identityTitleValidation as y, ssnValidation as z };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* US states/territories + Canadian provinces/territories for checkout billing only.
|
|
3
|
+
* Do not use for USA-only business forms (see country-config).
|
|
4
|
+
*/
|
|
5
|
+
declare const checkoutBillingStateOptions: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
export default checkoutBillingStateOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as s}from"./p-CV0Pyo1O.js";import{P as i}from"./p-Dk26hk5T.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{i as a,C as d,e as c}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as o,a as r}from"./p-Cm9f5fyh.js";import{h,b as f,d as l}from"./p-BRnBHsdq.js";import{a as b,b as n,D as p,c as u,C as v,E as y}from"./p-Cu7hgXL1.js";import{J as m}from"./p-
|
|
1
|
+
import{h as e,r as t,c as s}from"./p-CV0Pyo1O.js";import{P as i}from"./p-Dk26hk5T.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{i as a,C as d,e as c}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as o,a as r}from"./p-Cm9f5fyh.js";import{h,b as f,d as l}from"./p-BRnBHsdq.js";import{a as b,b as n,D as p,c as u,C as v,E as y}from"./p-Cu7hgXL1.js";import{J as m}from"./p-DO9lqnbB.js";import{m as k,M as C}from"./p-BXyADlAH.js";import{c as j}from"./p-DjjAx7PF.js";import{B as g}from"./p-CHo7TfsM.js";import{S as w}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as x}from"./p-uZ5KAseb.js";import{a as D,B as T}from"./p-CHw7tICr.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";import"./p-B6YPrwyC.js";const A=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(x,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(x,{width:"70%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"100%"})),e("div",{class:"col-12"},e(x,{width:"80%"}))),S=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.recordClickEvent=s(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:s})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:s})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){j(),this.analytics=new m(this),this.initializeServices(),this.getPayout&&this.fetchData()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeServices()}getPayoutWatcher(){this.fetchData()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:e,authToken:t,service:s})=>async({onSuccess:i,onError:c})=>{var h;try{const f=await s.fetchPayout(e,t);f.error?c({error:r(f.error),code:o(null===(h=f.error)||void 0===h?void 0:h.code),severity:d.ERROR}):i(new a(f.data))}catch(e){c({error:r(e),code:o(null==e?void 0:e.code),severity:d.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new i}),this.getPayoutCSV=k({authToken:this.authToken,service:new i})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:s})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:s}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":h(e)}render(){var t;return e(w,{key:"78db4dcf016d394a4233ee35dd5722ad69512499"},this.loading&&e(A,{key:"1d58cc82472d7c0791335fa63730bff5ebcc9631"}),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"b53aab8af8b8be07f11634c0982c825f760d5a7c",errorMessage:this.errorMessage},e(b,{key:"c948bf4014d36ec5b2309c6c0e0923b1df071c1f",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},C(null===(t=this.payout)||void 0===t?void 0:t.status),e(D,"expedited"===this.payout.settlement_priority?{variant:T.WARNING,title:"Expedited",text:"Expedited"}:{variant:T.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(n,{key:"713295338c4727ef175e5fa1d69fc04b1bc52997",classes:"border-1 border-end",title:"Updated At",value:`${f(this.payout.updated_at)} ${l(this.payout.updated_at)}`}),e(n,{key:"896552a6c52d0e34fa9cc3bce746c7ce15b17d19",classes:"border-1 border-end",title:"Created At",value:`${f(this.payout.created_at)} ${l(this.payout.created_at)}`}),e(n,{key:"1c7c6f0d68c6d79e8d90f832a0706f5021a4fec4",title:"ID",value:this.payout.id}),e("div",{key:"e9bd1145f2b1fa3a15f70f3c512ee5688c20ab75",class:"m-4"},e(g,{key:"d16c22b1663823a367501ee87f00d91a71f4bac3",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"cbe424bac249bf237b3e88f743584efb29feb327",slot:"detail-sections"},e(p,{key:"d49a48f2d9585798e98908974903121da88dc7c7",sectionTitle:"Details"}),e("div",{key:"d8b252055e73371e207b57d490b383b82a31f8d5",class:"d-flex flex-column gap-2 w-100"},e(u,{key:"f7927f5b806737099e4cc183df745acee917873a",title:"Date paid",value:f(this.payout.deposits_at)}),e(u,{key:"025b54550135be71ff478ef5d364a0e09b752d65",title:"Statement Description",value:this.payout.description}),e(u,{key:"d6c855b3bf3abefb58d2e42725cc18c023502c28",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(u,{key:"66339c62f4798d78fc311b685c679cb2b6d8e5ab",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(u,{key:"834ee2666c057cd26abf121ff3509753f0dfe6dc",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(p,{key:"288998bdd428b55915e87b6d997fa6ca72bbc9ef",sectionTitle:"Account"}),e("div",{key:"8179ccd1df02f4789ed23160229467efec9c5661",class:"d-flex flex-column gap-2 w-100"},e(u,{key:"60496ee62d3d36a874ae0f7fdb8e510e9eeaf263",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(u,{key:"c0f9bf43b9dd79640979fba0109e7e3861badae2",title:"Account Type",value:this.payout.bank_account.account_type}),e(u,{key:"3473874ae44ca2e9a57f5d113f694596e54aaddb",title:"Institution",value:this.payout.bank_account.account_type}),e(u,{key:"e409d45df2bca00884f8fda2f2ab980065860d02",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(u,{key:"56c4d45303e8329e53ff3fdaacaafcde3def4f12",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(p,{key:"3c4aa0bd3b6921b4383c16b081f363715002cb52",sectionTitle:"Metadata"}),e("div",{key:"63baeb1d2d0f856fadea847369189135d129bcb2",class:"d-table gap-2 w-100"},e(v,{key:"31cdae9f97ac6683c92200f3b4270d324ef490b5",metadata:this.payout.metadata}))])))}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"],getPayout:["getPayoutWatcher"]}}};export{S as justifi_payout_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-CV0Pyo1O.js";import{J as
|
|
1
|
+
import{r as t,h as o}from"./p-CV0Pyo1O.js";import{J as r}from"./p-DO9lqnbB.js";import{c as s}from"./p-DjjAx7PF.js";import{w as a}from"./p-DVJaoI_m.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-B6YPrwyC.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await a(),s(),this.analytics=new r(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.cardFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:r}){return this.cardFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:r})}render(){return o(p,{key:"c571f41c79f46143bbee7063a05f8b973b7732d0"},o("card-form",{key:"a70c853efeddcedd71343208ab29d89231b6c8fa",ref:t=>this.cardFormElement=t}))}};export{i as justifi_card_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-BqNNwq6C.js";import{T as r,a as i,b as o,c as d,d as h,e as n,f as c,g as p,h as l,i as m,j as f,k as u,l as b}from"./p-BICxxa69.js";import{T as y}from"./p-CZfYo5-1.js";import{c as g}from"./p-
|
|
1
|
+
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-BqNNwq6C.js";import{T as r,a as i,b as o,c as d,d as h,e as n,f as c,g as p,h as l,i as m,j as f,k as u,l as b}from"./p-BICxxa69.js";import{T as y}from"./p-CZfYo5-1.js";import{c as g}from"./p-DjjAx7PF.js";import{a6 as v,a7 as C}from"./p-CPKMvyV_.js";import{a as j}from"./p-BRnBHsdq.js";import"./p-DVJaoI_m.js";import{c as w,n as T,C as k,e as _}from"./p-NZS8uCtH.js";import{p as O}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{B as D,a as S}from"./p-CHw7tICr.js";import"./p-HXpYMWUU.js";import{g as B,a as P}from"./p-Cm9f5fyh.js";import{A as x}from"./p-CYQvLgSs.js";import{J as I}from"./p-DO9lqnbB.js";import{o as q,g as A}from"./p-BPTtWj7E.js";import"./p-CqiVXthx.js";import"./p-B6YPrwyC.js";import"./p-D8GTwl9v.js";const E={created_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:v,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:v,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:v,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:v,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:v,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:v,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},H={created_at:(e,s)=>t("td",{part:C(s)},t("div",{class:"fw-bold"},j(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},j(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:C(s)},t("div",{class:"fw-bold"},j(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},j(e.updated_at,{showTime:!0}))),order_status:(e,s)=>t("td",{part:C(s)},t(S,Object.assign({},{submitted:{variant:D.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:D.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:D.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:D.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:D.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:D.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,s)=>t("td",{part:C(s)},e.business_id),company_name:(e,s)=>t("td",{part:C(s)},e.company_name),provider:(e,s)=>t("td",{part:C(s)},e.provider),order_type:(e,s)=>{let a;return e.order_type===w.boardingOnly?a="Boarding Only":e.order_type===w.boardingShipping&&(a="Boarding & Shipping"),t("td",{part:C(s)},a)},quantity:(e,s)=>t("td",{part:C(s)},e.terminals.length)},N=x();class V{async fetchTerminalOrders(t,e,s){return N.get({endpoint:"terminals/orders",params:s,headers:{account:t},authToken:e})}}const L=class{constructor(t){e(this,t),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.columns="created_at,updated_at,order_status,quantity",this.terminalOrders=[],this.loading=!0,this.paging=O,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.terminalOrders.find((t=>t.id===e));this.clickEvent.emit({name:y.row,data:s})}}componentWillLoad(){g(),this.analytics=new I(this),this.terminalOrdersTable=new r(this.terminalOrders,this.columns,E,H),this.initializeGetData(),this.getTerminalOrders&&this.fetchData(),q("set",(()=>{this.pagingParams={}})),q("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getTerminalOrders&&this.fetchData()}pagingOrColumnsChanged(){this.getTerminalOrders&&this.fetchData()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:t,authToken:e,service:s})=>async({params:a,onSuccess:r,onError:i,final:o})=>{var d,h;try{const o=await s.fetchTerminalOrders(t,e,a);if(o.error)return i({error:P(o.error),code:B(null===(h=o.error)||void 0===h?void 0:h.code),severity:k.ERROR});{const t=Object.assign({},o.page_info);r({terminalOrders:(null===(d=o.data)||void 0===d?void 0:d.map((t=>new T(t))))||[],pagingInfo:t})}}catch(t){const e=B(null==t?void 0:t.code);return i({error:t.message||t,code:e,severity:k.ERROR})}finally{return o()}})({id:this.accountId,authToken:this.authToken,service:new V}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:_.MISSING_PROPS,message:this.errorMessage,severity:k.ERROR}))}fetchData(){this.getTerminalOrders&&(this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:e})=>{this.terminalOrders=t,this.paging=e,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s})},final:()=>{this.loading=!1}}))}get terminalOrderParams(){const t=A();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(a,{key:"e544fa99091ff8e0601388c4663f536304caef7c"},t(i,{key:"df2a311d1052b284d458f29a87ea5a78db145406"},t(o,{key:"9d3d6997f5fa8581fafa34e13a9981e75075ccc3"},t(d,{key:"30ee9315492e30913de3ef73db7c4e13e6a0d5bc"},t(h,{key:"f8fd993e7f19e3ac6b41e8eaff849a7ab66b2d41"},this.terminalOrdersTable.columnData.map((t=>t)))),t(n,{key:"75ddd58ba3a713b8f38a6e40de06d26ed06d63a7"},t(c,{key:"4509782ba93ff9d5d9057a23daa9720da4ec0f0e",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),t(p,{key:"8aed10b38ac78e9ce3e5c8f96c2eb143412f3661",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),t(l,{key:"94f11381660568de3181fe7c70335e7c264c9e44",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((e,s)=>t(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(f,{key:"c980e0fc6b236973e6bdf4ab0a5beece872ed4e6"},t(u,{key:"c6431bfb8e38839d48b2d7fb8d85a8c64981f057"},t(b,{key:"6c7fc01e316acfcee6e33b583b97b040ce88efaf",colSpan:this.terminalOrdersTable.columnData.length},t("pagination-menu",{key:"2ac492d001dc88663b575258a8828964b20d6d68",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{L as justifi_terminal_orders_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{a as t,c as i,F as c}from"./p-DwoT0UoX.js";import{a9 as d}from"./p-CPKMvyV_.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6981b81dee8ead47d8e86c501b82d61aa4c337b9"},a("div",{key:"0bf8ad743eaf5fe2e8c68d79947a4c2303e782f1",class:"row gy-3"},a("div",{key:"bdd3e46477ed7667a73a81d98c62e1121660b820",class:"col-12"},a("h2",{key:"b0b8e093b3c7204526b19fc54f80ea8c681ff22e",class:"h5",part:d},"Additional Evidence")),a("div",{key:"15570a6b33fab873a7fc9faa544c8fb234515f38",class:"col-12"},a("form-control-textarea",{key:"68e08b8e96dbb74c35f1fabbb769aa95a3e0ada9",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"f684ffc7e55aac7d0667326c99480b796f2a9cfc",class:"col-12"},a("form-control-file-v2",{key:"8ea248120f9f2ed5fb689a1a25855266dbe561a0",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"debb9fe05382d0806038547b61fe3201845db2a1"},a("div",{key:"030d5be9a41dff1954049c6ac33a79024741c43c",class:"row gy-3"},a("div",{key:"d5da527af347d6c29c30f5ed5b5295b9ef693e7f",class:"col-12"},a("h2",{key:"3f8d2da0485bd28220ae9f66db87fab49e86a734",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"d7fa3aacd80ad375ba58d1c86d8cf9d00c4cce6e",class:"col-12"},a("form-control-textarea",{key:"ca14e78ef0dcbad3b2a76cb230c2eb4a7c56f877",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e8f10ab0e5e3e9c7a0f90aa13e8680607bb64a3e",class:"col-12"},a("form-control-textarea",{key:"5ca2d11d67301b512756cbc4355939b9433be033",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"36b8ef8f62721f220a05b1571bb347641b433b56",class:"col-12"},a("form-control-file-v2",{key:"c04f383cf55abd36b753718c2170d64f97935e7f",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"91e26b2e75fdd29814c58122e5aeae0d4d696032"},a("div",{key:"029a3828b8682fdd10af400dccceff109f866509",class:"row gy-3"},a("div",{key:"71fa3ded5566c5c18c682b8cfdfdcc5ebba2db44",class:"col-12"},a("h2",{key:"95eb1ed9da9cd955fa9c4c7a83368ac3c3378d5b",class:"h5",part:d},"Customer Details")),a("div",{key:"9450f8bd033efc7d48d62ce343b8b43833887f63",class:"col-12"},a("form-control-text",{key:"5690f7d9a46e2d58bdc24af0aab3798664f21745",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a12aa4cb464e5df7f045302b08801adca70005f6",class:"col-12"},a("form-control-text",{key:"39cdb0b558b87a7eae0528ea40b9ca4175b4cf7c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"13604ae63374c6fa1805d8c4be0ba55fc166a924",class:"col-12"},a("form-control-textarea",{key:"60a110f277175418c2ec0938600ad4b04f885ee3",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"abaa8888fff9952b3433c49e82a7150d6cd971dd",class:"col-12"},a("form-control-file-v2",{key:"e2e79edd8eaafd93cfdb91fd6a3b77645c1d28f2",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"04bfc4bf3e735cccf70fb83d2e0882662b389727",class:"col-12"},a("form-control-file-v2",{key:"476d3df1f072afdf95a6ad83e8b94b5946d66186",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"4bd4aad3fbdaac994ee97aa1421a6f380657cfee"},a("div",{key:"53548ff2b4bb09c2b1d078b2657127802422558a",class:"row gy-3"},a("div",{key:"25658729932e2eb1d0706bd83106a92976e09b91",class:"col-12"},a("h2",{key:"885bf37ba0a013397d4fef68683b24e9e8e1bed6",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"2f38e6451c2d982900729639994977b8ef8f8c04",class:"col-12"},a("form-control-text",{key:"8cf20ffcd748bee860c1c8a52326a265bbe32696",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"e61d85188051830d2e674cfc39dab73ada597c66",class:"col-12"},a("form-control-textarea",{key:"762f300d71a99a31030ed052299129ae8457ad4c",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"c5a1d7368132ba063d080ec7d071bd9131381ad2",class:"col-12"},a("form-control-file-v2",{key:"3bd9928e8a212e1665d446cb31ae9e02d6645437",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"00fa5deacbf19befd07d7d8764db8e3474377d5a"},a("div",{key:"be3d0b6775e78352bdaf4d0e739da61444fae572",class:"row gy-3"},a("div",{key:"e55a58628d1baad34be38d5d21598c6a372dd3c3",class:"col-12"},a("h2",{key:"463ec945a9cc0e46350b13c774b634ef25bde2e9",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"5576a4d1b32a0c2d2d4341bf591721aed6fcf6a4",class:"col-12"},a("form-control-text",{key:"9f64b68724ba8b2bdf435b02077fd362f8fe1ab1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"e5b2635ede15e41e9e686ab338448d3c2fdf8166",class:"col-12"},a("form-control-file-v2",{key:"5137a992c79a1ccfcb8f3a114d1a12823b597dd2",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"d0b168de486d51cd6141f2d80441b7e5f4fac5cc"},a("div",{key:"bea13ed13614f43b801be60c46673fb98ff09cc8",class:"row gy-3"},a("div",{key:"1163ad6cff89e6fb29b16622e1aed6e55a5ee435",class:"col-12"},a("h2",{key:"6f4fc9439e0a95d6e5992d7655f1c6e8f1b2b7bd",class:"h5",part:d},"Product & Service Details")),a("div",{key:"3111413dc874eaa80e21ec6838d8c0896f38ce2e",class:"col-12"},a("form-control-text",{key:"3a18e08d653c67912f904337e37d786588e50217",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"ea2202cf65741022ff7363cc325948944a18afb2",class:"col-12"},a("form-control-date",{key:"c8ceda1e61e9dbf7496173ec30e0c8f6d1b48f91",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"fb3e555b7781977e80541d1b2d6e7bd10b4ec087",class:"col-12"},a("form-control-file-v2",{key:"2b459a198427db073a6d5e2a1ed5141cc6fc2d20",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"f04cacfa7617a6430a0e4d264248dfa1606ef988"},a("div",{key:"aa3b2d3fcd2263e6d5033b68b9524250bb51d7fa",class:"row gy-3"},a("div",{key:"e2154a203be02f1f6ed60666799db30f6b2e10fe",class:"col-12"},a("h2",{key:"2856f16f60d6310c7dd64c86de1ebf7e01fac1fc",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"94187589fdeb685fcc99e5ea2c6868ceedfd5ed2",class:"col-12"},a("form-control-textarea",{key:"fbaa1a08ab910c4ac31a53bd1385a05abcff0bb5",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"45e893fa517222ac88333b306ae28fc1eb09daa0",class:"col-12"},a("form-control-textarea",{key:"646a2b77b2e896523a5e3ec3da07e020c5a72c32",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"3f4369cb2f2aac9ede8f386b338c9637ab4f5b8f",class:"col-12"},a("form-control-file-v2",{key:"867c6f97af1710b6119984bd1f87f3a5eb358dc6",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"066f2d66a0dd5be5c47d44620c295b952a4755cd",class:"col-12"},a("form-control-file-v2",{key:"2036cbddd0ebf663401154120b5c1627fdc93df3",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"3b414c89e4d310b598685ef4e0595361edbe4783"},a("div",{key:"8f630c3bff6432da2184524865d8f322c53c3685",class:"row gy-3"},a("div",{key:"116988f4f62d30c4b5312604b3cc3d1df831a5bd",class:"col-12"},a("h2",{key:"f79794380f6b9ff7e964bea19a1898f9f190f0ff",class:"h5",part:d},"Shipping Details")),a("div",{key:"b7448564e27dd9237f61df0e7c690c5705f97941",class:"col-12"},a("form-control-text",{key:"d03af28966dec1ba0ba16f8adf34ee4aae7a077e",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5632f97cacae9d17864e14a41789ead3b39f2ca0",class:"col-12"},a("form-control-text",{key:"9f6ff174dfcedb7a7f74a9e75a46164fcebe6095",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"e7fb2b0187e8e4ea8fb30fd316291465b41f4a9d",class:"col-12"},a("form-control-date",{key:"06f39b93c95cbe6b4897585dd9ab06ad636dd933",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"1d0a48b701a12129ebfa39b7482145b32006d854",class:"col-12"},a("form-control-textarea",{key:"f98b3cc3ef9423c31e3dc195a4b9896fbc3da1c9",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"82379a765e791a5b373a3c01b8fec6fe05ffa2d5",class:"col-12"},a("form-control-file-v2",{key:"cff1198af3f29e837b48b46eed5f385da9994a66",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as i,F as c}from"./p-CKiAlBsU.js";import{a9 as d}from"./p-CPKMvyV_.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6981b81dee8ead47d8e86c501b82d61aa4c337b9"},a("div",{key:"0bf8ad743eaf5fe2e8c68d79947a4c2303e782f1",class:"row gy-3"},a("div",{key:"bdd3e46477ed7667a73a81d98c62e1121660b820",class:"col-12"},a("h2",{key:"b0b8e093b3c7204526b19fc54f80ea8c681ff22e",class:"h5",part:d},"Additional Evidence")),a("div",{key:"15570a6b33fab873a7fc9faa544c8fb234515f38",class:"col-12"},a("form-control-textarea",{key:"68e08b8e96dbb74c35f1fabbb769aa95a3e0ada9",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"f684ffc7e55aac7d0667326c99480b796f2a9cfc",class:"col-12"},a("form-control-file-v2",{key:"8ea248120f9f2ed5fb689a1a25855266dbe561a0",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"debb9fe05382d0806038547b61fe3201845db2a1"},a("div",{key:"030d5be9a41dff1954049c6ac33a79024741c43c",class:"row gy-3"},a("div",{key:"d5da527af347d6c29c30f5ed5b5295b9ef693e7f",class:"col-12"},a("h2",{key:"3f8d2da0485bd28220ae9f66db87fab49e86a734",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"d7fa3aacd80ad375ba58d1c86d8cf9d00c4cce6e",class:"col-12"},a("form-control-textarea",{key:"ca14e78ef0dcbad3b2a76cb230c2eb4a7c56f877",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e8f10ab0e5e3e9c7a0f90aa13e8680607bb64a3e",class:"col-12"},a("form-control-textarea",{key:"5ca2d11d67301b512756cbc4355939b9433be033",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"36b8ef8f62721f220a05b1571bb347641b433b56",class:"col-12"},a("form-control-file-v2",{key:"c04f383cf55abd36b753718c2170d64f97935e7f",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"91e26b2e75fdd29814c58122e5aeae0d4d696032"},a("div",{key:"029a3828b8682fdd10af400dccceff109f866509",class:"row gy-3"},a("div",{key:"71fa3ded5566c5c18c682b8cfdfdcc5ebba2db44",class:"col-12"},a("h2",{key:"95eb1ed9da9cd955fa9c4c7a83368ac3c3378d5b",class:"h5",part:d},"Customer Details")),a("div",{key:"9450f8bd033efc7d48d62ce343b8b43833887f63",class:"col-12"},a("form-control-text",{key:"5690f7d9a46e2d58bdc24af0aab3798664f21745",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a12aa4cb464e5df7f045302b08801adca70005f6",class:"col-12"},a("form-control-text",{key:"39cdb0b558b87a7eae0528ea40b9ca4175b4cf7c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"13604ae63374c6fa1805d8c4be0ba55fc166a924",class:"col-12"},a("form-control-textarea",{key:"60a110f277175418c2ec0938600ad4b04f885ee3",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"abaa8888fff9952b3433c49e82a7150d6cd971dd",class:"col-12"},a("form-control-file-v2",{key:"e2e79edd8eaafd93cfdb91fd6a3b77645c1d28f2",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"04bfc4bf3e735cccf70fb83d2e0882662b389727",class:"col-12"},a("form-control-file-v2",{key:"476d3df1f072afdf95a6ad83e8b94b5946d66186",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"4bd4aad3fbdaac994ee97aa1421a6f380657cfee"},a("div",{key:"53548ff2b4bb09c2b1d078b2657127802422558a",class:"row gy-3"},a("div",{key:"25658729932e2eb1d0706bd83106a92976e09b91",class:"col-12"},a("h2",{key:"885bf37ba0a013397d4fef68683b24e9e8e1bed6",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"2f38e6451c2d982900729639994977b8ef8f8c04",class:"col-12"},a("form-control-text",{key:"8cf20ffcd748bee860c1c8a52326a265bbe32696",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"e61d85188051830d2e674cfc39dab73ada597c66",class:"col-12"},a("form-control-textarea",{key:"762f300d71a99a31030ed052299129ae8457ad4c",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"c5a1d7368132ba063d080ec7d071bd9131381ad2",class:"col-12"},a("form-control-file-v2",{key:"3bd9928e8a212e1665d446cb31ae9e02d6645437",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"00fa5deacbf19befd07d7d8764db8e3474377d5a"},a("div",{key:"be3d0b6775e78352bdaf4d0e739da61444fae572",class:"row gy-3"},a("div",{key:"e55a58628d1baad34be38d5d21598c6a372dd3c3",class:"col-12"},a("h2",{key:"463ec945a9cc0e46350b13c774b634ef25bde2e9",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"5576a4d1b32a0c2d2d4341bf591721aed6fcf6a4",class:"col-12"},a("form-control-text",{key:"9f64b68724ba8b2bdf435b02077fd362f8fe1ab1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"e5b2635ede15e41e9e686ab338448d3c2fdf8166",class:"col-12"},a("form-control-file-v2",{key:"5137a992c79a1ccfcb8f3a114d1a12823b597dd2",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"d0b168de486d51cd6141f2d80441b7e5f4fac5cc"},a("div",{key:"bea13ed13614f43b801be60c46673fb98ff09cc8",class:"row gy-3"},a("div",{key:"1163ad6cff89e6fb29b16622e1aed6e55a5ee435",class:"col-12"},a("h2",{key:"6f4fc9439e0a95d6e5992d7655f1c6e8f1b2b7bd",class:"h5",part:d},"Product & Service Details")),a("div",{key:"3111413dc874eaa80e21ec6838d8c0896f38ce2e",class:"col-12"},a("form-control-text",{key:"3a18e08d653c67912f904337e37d786588e50217",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"ea2202cf65741022ff7363cc325948944a18afb2",class:"col-12"},a("form-control-date",{key:"c8ceda1e61e9dbf7496173ec30e0c8f6d1b48f91",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"fb3e555b7781977e80541d1b2d6e7bd10b4ec087",class:"col-12"},a("form-control-file-v2",{key:"2b459a198427db073a6d5e2a1ed5141cc6fc2d20",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"f04cacfa7617a6430a0e4d264248dfa1606ef988"},a("div",{key:"aa3b2d3fcd2263e6d5033b68b9524250bb51d7fa",class:"row gy-3"},a("div",{key:"e2154a203be02f1f6ed60666799db30f6b2e10fe",class:"col-12"},a("h2",{key:"2856f16f60d6310c7dd64c86de1ebf7e01fac1fc",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"94187589fdeb685fcc99e5ea2c6868ceedfd5ed2",class:"col-12"},a("form-control-textarea",{key:"fbaa1a08ab910c4ac31a53bd1385a05abcff0bb5",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"45e893fa517222ac88333b306ae28fc1eb09daa0",class:"col-12"},a("form-control-textarea",{key:"646a2b77b2e896523a5e3ec3da07e020c5a72c32",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"3f4369cb2f2aac9ede8f386b338c9637ab4f5b8f",class:"col-12"},a("form-control-file-v2",{key:"867c6f97af1710b6119984bd1f87f3a5eb358dc6",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"066f2d66a0dd5be5c47d44620c295b952a4755cd",class:"col-12"},a("form-control-file-v2",{key:"2036cbddd0ebf663401154120b5c1627fdc93df3",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"3b414c89e4d310b598685ef4e0595361edbe4783"},a("div",{key:"8f630c3bff6432da2184524865d8f322c53c3685",class:"row gy-3"},a("div",{key:"116988f4f62d30c4b5312604b3cc3d1df831a5bd",class:"col-12"},a("h2",{key:"f79794380f6b9ff7e964bea19a1898f9f190f0ff",class:"h5",part:d},"Shipping Details")),a("div",{key:"b7448564e27dd9237f61df0e7c690c5705f97941",class:"col-12"},a("form-control-text",{key:"d03af28966dec1ba0ba16f8adf34ee4aae7a077e",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5632f97cacae9d17864e14a41789ead3b39f2ca0",class:"col-12"},a("form-control-text",{key:"9f6ff174dfcedb7a7f74a9e75a46164fcebe6095",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"e7fb2b0187e8e4ea8fb30fd316291465b41f4a9d",class:"col-12"},a("form-control-date",{key:"06f39b93c95cbe6b4897585dd9ab06ad636dd933",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"1d0a48b701a12129ebfa39b7482145b32006d854",class:"col-12"},a("form-control-textarea",{key:"f98b3cc3ef9423c31e3dc195a4b9896fbc3da1c9",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"82379a765e791a5b373a3c01b8fec6fe05ffa2d5",class:"col-12"},a("form-control-file-v2",{key:"cff1198af3f29e837b48b46eed5f385da9994a66",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as shipping_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{
|
|
1
|
+
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{c as e,F as r}from"./p-CKiAlBsU.js";import{b as o,i as a,a as h,c as n,d as p,e as l,f as m}from"./p-DrMJliVY.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as c,e as d}from"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import{C as u,B as j,b as f}from"./p-BcNb9bVO.js";import{J as v}from"./p-DO9lqnbB.js";import{B as b}from"./p-CHo7TfsM.js";import{S as C}from"./p-BqNNwq6C.js";import{H as w}from"./p-jIDKmNHy.js";import"./p-CZfYo5-1.js";import{c as g}from"./p-DjjAx7PF.js";import{S as y}from"./p-uZ5KAseb.js";import{B}from"./p-XYgDHrVL.js";import{m as O,a as x}from"./p-APOabprT.js";import{B as S}from"./p-BJu1-9kE.js";import"./p-BFTU3MAI.js";import"./p-XIWgia4J.js";import"./p-D8ytux5N.js";import"./p-Bt4GjEWL.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-B6YPrwyC.js";import"./p-CYQvLgSs.js";import"./p-CPKMvyV_.js";import"./p-Cm9f5fyh.js";const q=e(Object.assign(Object.assign({},o().fields),{legal_address:n(),additional_questions:h(),representative:a("representative")}));e(Object.assign(Object.assign({},p().fields),{legal_address:m(),additional_questions:h(),representative:l("representative")}));const D=q,H=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),_=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(H,null),s(H,null),s(H,null)),k=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!1,this.isSaving=!1,this.country=u.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new j(s);this.country=t.country_of_establishment,this.formController.setInitialValues(Object.assign({},t))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),t=this.formController.getInitialValues(),i=new j(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){g(),this.analytics=new v(this),this.formController=new r(D),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=O({authToken:this.authToken,businessId:this.businessId,service:new S}),this.patchBusiness=x({authToken:this.authToken,businessId:this.businessId,service:new S}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(C,null,this.isLoading?s(_,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(w,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(b,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{k as justifi_business_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{a3 as r,v as l,q as o,w as d,x as c,u as f,a0 as n}from"./p-CPKMvyV_.js";import{F as h}from"./p-B5gBiARs.js";import{F as b}from"./p-Ce_W43gc.js";import"./p-CZfYo5-1.js";import{I as u,P as m}from"./p-CVaOFfrI.js";import{u as p,a as y,b as k}from"./p-C6o0liMT.js";import{
|
|
1
|
+
import{r as e,c as t,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{a3 as r,v as l,q as o,w as d,x as c,u as f,a0 as n}from"./p-CPKMvyV_.js";import{F as h}from"./p-B5gBiARs.js";import{F as b}from"./p-Ce_W43gc.js";import"./p-CZfYo5-1.js";import{I as u,P as m}from"./p-CVaOFfrI.js";import{u as p,a as y,b as k}from"./p-C6o0liMT.js";import{c as v}from"./p-D8ytux5N.js";import"./p-BcNb9bVO.js";const x=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,s=t.getAttribute("name");this.inputHandler(s,t.value),this.formControlInput.emit({name:s,value:t.value})},this.updateInput=e=>{const t=this.el.querySelector("input");t&&(t.value=e||"")}}handleDefaultValueChange(e){this.updateInput(e)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?l:this.errorText?o:d}render(){return s(a,{key:"07b767b8c9091079f121d1df2b552c7d406f47b1"},s("div",{key:"1c6c234435bb5571d3bbf5123f6f47cf51b095d6",class:"form-group d-flex flex-column"},s("label",{key:"883c05703351e32c7e12dbf7d984f888825606e3",part:c,class:"form-label",htmlFor:this.name},this.label),s("input",{key:"9b841736efd2971cf93c1167ec1fd1c1d5045ec9",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),s(h,{key:"26133a236b3c8b2cc14dce1c1244f3b1a9163605",helpText:this.helpText,name:this.name}),s(b,{key:"e69f03f593e1632fada2d1f6dd56aaf5612a2da7",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},T=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{y(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,t,a;return s("div",{key:"d2cd6a317c81991b6108751d7fafe6eb0f785572",class:"row gy-3"},s("div",{key:"58b5f28247b266fb5928a4cc54992978a0382389",class:"col-12 col-md-8"},s("form-control-text",{key:"8755d9f2c3e4f1753f33f06e96b060e3f1bfb7b8",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c5930506a02c94b2752a50b1db5d375fe8e73791",class:"col-12 col-md-4"},s("form-control-text",{key:"f93c736bd2315bcc33971286303e0eb2c995b83d",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"421d8dce34b3f45dc859aa37de740f1578817ba0",class:"col-12 col-md-6"},s("form-control-text",{key:"183dcf682886be6c07a6e0f5ff6f3e8ebd5193bc",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"678bc220f7415da8cb83edf303919688cef75c29",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"f763d5b0596926c4044de25f181a8d562ef67d0f",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"958af034510d699ef84d7f22ff755ec088dbe4bc",class:"col-12 col-md-3"},s("form-control-date",{key:"7a2d6f7dce48e5343296256eb407c638f3505bf6",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>k(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"12c82f41a9d60ff5a52e64ea34d69fd24d3102bb",class:"col-12 col-md-3"},s("form-control-number",{key:"035d4d0d2e036b1a86c2f179f39330b48de26005",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),s("div",{key:"108cbb8692dc71b7d038315bf8be3b35efee0fa3",class:"col-12 col-md-6"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:v[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:u[this.country],helpText:v[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:c},v[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:f,value:`****${null===(a=this.ownerDefaultValue)||void 0===a?void 0:a.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:n,onClick:()=>{this.isEditingIdentification=!0,p(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"834b3ffaaec1e2dfec16b278b39e505782c0d785",class:"col-12"},s("identity-address-form",{key:"7f6f356e116ce4bc1d9014dc7823b86b00af40b6",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{x as form_control_number,T as owner_form_inputs}
|