@adyen/kyc-components 3.36.1 → 3.37.0

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.
@@ -494,6 +494,7 @@ const defaultTrans = {
494
494
  errorMessage_1_3062: "The name and 4 digit SSN couldn't be verified.",
495
495
  errorMessage_1_3072: "We found the following issues:\n- The name and nationality couldn't be verified.\nReview the information below and correct any mistakes, or upload an id document then resubmit.",
496
496
  errorMessage_1_3073: "We found the following issues:\n- The ID document didn't show the nationality.\nReview the information below and correct any mistakes, or upload an id document then resubmit.",
497
+ errorMessage_1_3083: "Individual details didn't match the ID document",
497
498
  errorMessage_1_31: "ID document is needed",
498
499
  errorMessage_1_32: "ID document couldn't be processed",
499
500
  errorMessage_1_33: "ID document didn't meet requirements",
@@ -1095,7 +1096,7 @@ const defaultTrans = {
1095
1096
  proofOfNationalId: "Proof of national ID",
1096
1097
  proofOfNationality: "Proof of nationality",
1097
1098
  proofOfRelationship: "Proof of relationship",
1098
- proofOfResidence: "Proof of residency",
1099
+ proofOfResidency: "Proof of residency",
1099
1100
  proofOfResidenceDocumentTypeLabel: "Upload a document as proof of address for %{name}. We need to see this document so we can more accurately verify their identity.",
1100
1101
  protector: "Protector",
1101
1102
  protectorGuideDescription: "<strong>Protector</strong> is the natural person appointed to direct the trustees in relation to their administration of the trust.",
@@ -1165,6 +1166,8 @@ const defaultTrans = {
1165
1166
  remediationMessage_1_308: "Upload a different proof of national ID number",
1166
1167
  remediationMessage_1_309: "Upload a different image of the proof of national ID number",
1167
1168
  remediationMessage_1_316: "Provide complete 9-digits Social Security Number number or upload an ID document if you don't have SSN.",
1169
+ remediationMessage_1_319: "Update individual details",
1170
+ remediationMessage_1_320: "Upload proof of residency",
1168
1171
  remediationMessage_1_500: "Update organization details",
1169
1172
  remediationMessage_1_501: "Upload a registration document",
1170
1173
  remediationMessage_1_502: "Upload a different registration document",
@@ -2909,7 +2912,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
2909
2912
  ExperimentNames2["EnablePreferInstantVerificationFlow"] = "EnablePreferInstantVerificationFlow";
2910
2913
  ExperimentNames2["EnableFinancialInformationComponentV4"] = "EnableFinancialInformationComponentV4";
2911
2914
  ExperimentNames2["StrictNameAndAddressValidationV4"] = "StrictNameAndAddressValidationV4";
2912
- ExperimentNames2["EnableLemApiVersionV4"] = "EnableLemApiVersionV4";
2915
+ ExperimentNames2["EnableDoingBusinessAsNameV4"] = "EnableDoingBusinessAsNameV4";
2913
2916
  ExperimentNames2["EnablePhoneFieldScenario"] = "EnablePhoneFieldScenario";
2914
2917
  ExperimentNames2["EnableAUIncorporatedPartnershipSkipRegistrationNumber"] = "EnableAUIncorporatedPartnershipSkipRegistrationNumber";
2915
2918
  ExperimentNames2["EnableCompanyTrusteeSkipABN"] = "EnableCompanyTrusteeSkipABN";
@@ -8228,7 +8231,9 @@ function DBANameField({
8228
8231
  }) {
8229
8232
  const { i18n } = useI18nContext();
8230
8233
  const { isExperimentEnabled } = useExperimentsContext();
8231
- const isLemApiVersionV4Enabled = isExperimentEnabled(ExperimentNames.EnableLemApiVersionV4);
8234
+ const isDoingBusinessAsNameV4Enabled = isExperimentEnabled(
8235
+ ExperimentNames.EnableDoingBusinessAsNameV4
8236
+ );
8232
8237
  const selection = useMemo(() => {
8233
8238
  if (typeof data.hasDba === "undefined") return;
8234
8239
  if (!data.hasDba) setErrors == null ? void 0 : setErrors("dbaName", null);
@@ -8238,7 +8243,7 @@ function DBANameField({
8238
8243
  const isYes = selectedValue === "yes";
8239
8244
  const isNo = selectedValue === "no";
8240
8245
  handleChangeFor("hasDba")(isYes);
8241
- if (isLemApiVersionV4Enabled) {
8246
+ if (isDoingBusinessAsNameV4Enabled) {
8242
8247
  handleChangeFor("doingBusinessAbsent")(isNo);
8243
8248
  if (isNo) {
8244
8249
  handleChangeFor("dbaName")(legalCompanyName);
@@ -10064,7 +10069,9 @@ function CompanyRegistrationDetailsComponent(props) {
10064
10069
  const COMPANY_REGISTRATION_DETAILS = mergedProps.id ?? "companyRegistrationDetails";
10065
10070
  const { i18n } = useI18nContext();
10066
10071
  const { isExperimentEnabled } = useExperimentsContext();
10067
- const isLemApiVersionV4Enabled = isExperimentEnabled(ExperimentNames.EnableLemApiVersionV4);
10072
+ const isDoingBusinessAsNameV4Enabled = isExperimentEnabled(
10073
+ ExperimentNames.EnableDoingBusinessAsNameV4
10074
+ );
10068
10075
  const { companyNameAndCountry } = useGlobalData();
10069
10076
  const { updateStateSlice } = useGlobalDataSlice(COMPANY_REGISTRATION_DETAILS);
10070
10077
  const country = (companyNameAndCountry == null ? void 0 : companyNameAndCountry.country) ?? mergedProps.country;
@@ -10233,7 +10240,7 @@ function CompanyRegistrationDetailsComponent(props) {
10233
10240
  }
10234
10241
  ),
10235
10242
  /* @__PURE__ */ jsxs("fieldset", { form: COMPANY_REGISTRATION_DETAILS, children: [
10236
- !isLemApiVersionV4Enabled && formUtils.isRequiredField("tradingName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
10243
+ !isDoingBusinessAsNameV4Enabled && formUtils.isRequiredField("tradingName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
10237
10244
  TradingNameField,
10238
10245
  {
10239
10246
  data: formUtils.getFieldData(data, TRADING_NAME_FIELD),
@@ -10245,7 +10252,7 @@ function CompanyRegistrationDetailsComponent(props) {
10245
10252
  legalCompanyName
10246
10253
  }
10247
10254
  ) }),
10248
- isLemApiVersionV4Enabled && formUtils.isRequiredField("dbaName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
10255
+ isDoingBusinessAsNameV4Enabled && formUtils.isRequiredField("dbaName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
10249
10256
  DBANameField,
10250
10257
  {
10251
10258
  data: formUtils.getFieldData(data, DBA_NAME_FIELD),
@@ -10416,9 +10423,9 @@ const companyBase = {
10416
10423
  stockExchangeMIC: { rule: "ifPubliclyTradedCompany" },
10417
10424
  stockISIN: { rule: "ifPubliclyTradedCompany" },
10418
10425
  stockTickerSymbol: { rule: "ifPubliclyTradedCompany" },
10419
- tradingName: { rule: "isLemApiVersionV4Disabled" },
10420
- dbaName: { rule: "isLemApiVersionV4Enabled" },
10421
- hasDba: { rule: "isLemApiVersionV4Enabled" },
10426
+ tradingName: { rule: "isDoingBusinessAsNameV4Disabled" },
10427
+ dbaName: { rule: "isDoingBusinessAsNameV4Enabled" },
10428
+ hasDba: { rule: "isDoingBusinessAsNameV4Enabled" },
10422
10429
  dateOfIncorporation: { rule: "countryRequiresDateOfIncorporationForCompanies" },
10423
10430
  exemptedFromRegistrationNumber: { rule: "companyRegistrationNumberExemptionAllowed" },
10424
10431
  registrationNumber: { rule: "countryRequiresRegistrationNumberForCompanies" },
@@ -14434,13 +14441,13 @@ const rules$3 = ({
14434
14441
  return "REQUIRED";
14435
14442
  }
14436
14443
  },
14437
- isLemApiVersionV4Enabled: () => {
14438
- if (isExperimentEnabled("EnableLemApiVersionV4")) {
14444
+ isDoingBusinessAsNameV4Enabled: () => {
14445
+ if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
14439
14446
  return "REQUIRED";
14440
14447
  }
14441
14448
  },
14442
- isLemApiVersionV4Disabled: () => {
14443
- if (!isExperimentEnabled("EnableLemApiVersionV4")) {
14449
+ isDoingBusinessAsNameV4Disabled: () => {
14450
+ if (!isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
14444
14451
  return "REQUIRED";
14445
14452
  }
14446
14453
  }
@@ -14785,9 +14792,9 @@ const companyApiKeyMapping = {
14785
14792
  const payoutComponentKeyMapping = {
14786
14793
  ...payoutBaseMapping
14787
14794
  };
14788
- const payoutApiKeyMapping = {
14795
+ ({
14789
14796
  ...reverseObject(payoutBaseMapping)
14790
- };
14797
+ });
14791
14798
  const trustComponentsKeyMapping = {
14792
14799
  ...trustBaseMapping
14793
14800
  };
@@ -14829,13 +14836,13 @@ const remediationIndividualApiKeyMapping = {
14829
14836
  "individual.residentialAddress": "address.address",
14830
14837
  "document.attachment.attachment.content": "idDocument.idDocument",
14831
14838
  [DocumentType.PASSPORT]: "idDocument.idDocument",
14832
- [DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidence.proofOfResidence",
14839
+ [DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidency.proofOfResidency",
14833
14840
  [DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId",
14834
14841
  [DocumentType.PROOF_OF_RELATIONSHIP]: "proofOfRelationship.proofOfRelationship"
14835
14842
  };
14836
14843
  const remediationPayoutApiKeyMapping = {
14837
14844
  bankAccount: "payoutAccountDetails",
14838
- ...payoutApiKeyMapping,
14845
+ ...payoutComponentKeyMapping,
14839
14846
  [DocumentType.BANK_STATEMENT]: "payoutAccountDocuments.bankStatementDocument"
14840
14847
  };
14841
14848
  const remediationTrustKeyMapping = {
@@ -14849,7 +14856,7 @@ const remediationSolePropKeyMapping = {
14849
14856
  const legalEntityDocumentToFieldMapping = {
14850
14857
  [LegalEntityType.INDIVIDUAL]: {
14851
14858
  [DocumentType.PASSPORT]: "idDocument.idDocument",
14852
- [DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidence.proofOfResidence",
14859
+ [DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidency.proofOfResidency",
14853
14860
  [DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId"
14854
14861
  },
14855
14862
  [LegalEntityType.ORGANIZATION]: {
@@ -15265,7 +15272,7 @@ const getPageName = (document2, pageType) => getPage(document2, pageType).pageNa
15265
15272
  const mapIndividualDocumentToApiDocument = async (data, entityId) => {
15266
15273
  var _a, _b, _c, _d, _e;
15267
15274
  if (data) {
15268
- const { idDocument: idDocument2, proofOfNationalId, proofOfResidence, proofOfRelationship } = data;
15275
+ const { idDocument: idDocument2, proofOfNationalId, proofOfResidency, proofOfRelationship } = data;
15269
15276
  const entityType = "legalEntity";
15270
15277
  const documents = await Promise.all([
15271
15278
  createDocumentRequest({
@@ -15285,7 +15292,7 @@ const mapIndividualDocumentToApiDocument = async (data, entityId) => {
15285
15292
  entityId,
15286
15293
  entityType,
15287
15294
  documentType: DocumentType.PROOF_OF_RESIDENCY,
15288
- page1: (_d = proofOfResidence == null ? void 0 : proofOfResidence.proofOfResidence) == null ? void 0 : _d[0]
15295
+ page1: (_d = proofOfResidency == null ? void 0 : proofOfResidency.proofOfResidency) == null ? void 0 : _d[0]
15289
15296
  }),
15290
15297
  createDocumentRequest({
15291
15298
  entityId,
@@ -15320,12 +15327,12 @@ const mapApiIdDocumentToSchema = (idDocument2) => {
15320
15327
  };
15321
15328
  const mapApiDocumentToIndividualDocuments = (entityId) => {
15322
15329
  const idDocument2 = getIdDocument(entityId) || null;
15323
- const proofOfResidence = getDocument$1(entityId, DocumentType.PROOF_OF_RESIDENCY) || null;
15330
+ const proofOfResidency = getDocument$1(entityId, DocumentType.PROOF_OF_RESIDENCY) || null;
15324
15331
  const proofOfNationalId = getDocument$1(entityId, DocumentType.PROOF_OF_NATIONAL_ID_NUMBER) || null;
15325
15332
  const proofOfRelationship = getDocument$1(entityId, DocumentType.PROOF_OF_RELATIONSHIP) || null;
15326
15333
  return {
15327
15334
  idDocument: idDocument2 ? mapApiIdDocumentToSchema(idDocument2) : null,
15328
- proofOfResidence: proofOfResidence ? { proofOfResidence: [mapExistingFile(getPageName(proofOfResidence))] } : null,
15335
+ proofOfResidency: proofOfResidency ? { proofOfResidency: [mapExistingFile(getPageName(proofOfResidency))] } : null,
15329
15336
  proofOfNationalId: proofOfNationalId ? { proofOfNationalId: [mapExistingFile(getPageName(proofOfNationalId))] } : null,
15330
15337
  proofOfRelationship: proofOfRelationship ? { proofOfRelationship: [mapExistingFile(getPageName(proofOfRelationship))] } : null
15331
15338
  };
@@ -17157,8 +17164,8 @@ const trustBase = {
17157
17164
  legalName: {
17158
17165
  rule: "REQUIRED"
17159
17166
  },
17160
- dbaName: { rule: "isLemApiVersionV4Enabled" },
17161
- hasDba: { rule: "isLemApiVersionV4Enabled" },
17167
+ dbaName: { rule: "isDoingBusinessAsNameV4Enabled" },
17168
+ hasDba: { rule: "isDoingBusinessAsNameV4Enabled" },
17162
17169
  country: {
17163
17170
  rule: "REQUIRED"
17164
17171
  },
@@ -18801,9 +18808,9 @@ function ProofOfResidencyComponent({ id, ...props }) {
18801
18808
  DocumentUpload,
18802
18809
  {
18803
18810
  ...props,
18804
- documentField: "proofOfResidence",
18811
+ documentField: "proofOfResidency",
18805
18812
  documentType: DocumentType.PROOF_OF_RESIDENCY,
18806
- heading: i18n.get("proofOfResidence"),
18813
+ heading: i18n.get("proofOfResidency"),
18807
18814
  guidanceHeader: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16", children: i18n.get("proofOfResidenceDocumentTypeLabel", { values: { name: props.name } }) }),
18808
18815
  documentTypeSelect: {
18809
18816
  selectedType: proofOfResidenceDocumentType,
@@ -18840,10 +18847,10 @@ const individualForms = {
18840
18847
  formName: "idDocument",
18841
18848
  fields: [...idDocumentUploadFields]
18842
18849
  },
18843
- proofOfResidence: {
18844
- formId: "proofOfResidence",
18845
- formName: "proofOfResidence",
18846
- fields: ["proofOfResidence"]
18850
+ proofOfResidency: {
18851
+ formId: "proofOfResidency",
18852
+ formName: "proofOfResidency",
18853
+ fields: ["proofOfResidency"]
18847
18854
  },
18848
18855
  proofOfNationalId: {
18849
18856
  formId: "proofOfNationalId",
@@ -18860,7 +18867,7 @@ const personalDetailsFormID = individualForms.personalDetails.formId;
18860
18867
  const addressFormID = individualForms.address.formId;
18861
18868
  const idDocumentFormID = individualForms.idDocument.formId;
18862
18869
  const idVerificationMethodFormID = individualForms.idVerificationMethod.formId;
18863
- const proofOfResidencyFormID = individualForms.proofOfResidence.formId;
18870
+ const proofOfResidencyFormID = individualForms.proofOfResidency.formId;
18864
18871
  const proofOfNationalIdFormID = individualForms.proofOfNationalId.formId;
18865
18872
  const proofOfRelationshipFormID = individualForms.proofOfRelationship.formId;
18866
18873
  const individualDocumentForms = [
@@ -21604,7 +21611,6 @@ const PayoutAccount = memo(
21604
21611
  PayoutAccountComponent,
21605
21612
  (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.arePayoutAccountDetailsInvalid === nextProps.arePayoutAccountDetailsInvalid && prevProps.invalidFieldNames === nextProps.invalidFieldNames
21606
21613
  );
21607
- const toCapitalized = (s) => `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`;
21608
21614
  const eeaCountries = [
21609
21615
  CountryCodes.Austria,
21610
21616
  CountryCodes.Belgium,
@@ -21648,27 +21654,37 @@ const regions = {
21648
21654
  const getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [
21649
21655
  country
21650
21656
  ];
21651
- const makePayoutVerificationMethodsMetadata = (instantVerificationProvider) => {
21652
- const providerName = instantVerificationProvider == null ? void 0 : instantVerificationProvider.toLowerCase();
21653
- return {
21654
- instantVerification: {
21655
- name: "verifyViaMobileBankingAppOrWebsite",
21656
- subtitle: "instant",
21657
- description: "instantVerificationDescription",
21658
- svgName: "payout-verification-instant",
21659
- provider: providerName ? {
21660
- name: providerName,
21661
- svgName: `${providerName}-logo`
21662
- } : void 0
21663
- },
21664
- manualVerification: {
21665
- name: "uploadABankStatement",
21666
- subtitle: "mayTakeAFewDays",
21667
- description: "manualVerificationDescription",
21668
- svgName: "payout-verification-manual"
21669
- }
21670
- };
21657
+ const getProviderName = (providerName) => providerName === "PayWithMyBank" ? "Trustly" : providerName;
21658
+ const getProviderIconName = (providerName) => {
21659
+ switch (providerName == null ? void 0 : providerName.toLowerCase()) {
21660
+ case "tink":
21661
+ return "tink-logo";
21662
+ case "paywithmybank":
21663
+ return "trustly-logo";
21664
+ case "plaid":
21665
+ return "plaid-logo";
21666
+ default:
21667
+ return void 0;
21668
+ }
21671
21669
  };
21670
+ const makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
21671
+ instantVerification: {
21672
+ name: "verifyViaMobileBankingAppOrWebsite",
21673
+ subtitle: "instant",
21674
+ description: "instantVerificationDescription",
21675
+ svgName: "payout-verification-instant",
21676
+ provider: instantVerificationProviderName ? {
21677
+ name: instantVerificationProviderName,
21678
+ svgName: getProviderIconName(instantVerificationProviderName)
21679
+ } : void 0
21680
+ },
21681
+ manualVerification: {
21682
+ name: "uploadABankStatement",
21683
+ subtitle: "mayTakeAFewDays",
21684
+ description: "manualVerificationDescription",
21685
+ svgName: "payout-verification-manual"
21686
+ }
21687
+ });
21672
21688
  const payoutVerificationMethods = ["instantVerification", "manualVerification"];
21673
21689
  function Card({
21674
21690
  className,
@@ -21815,18 +21831,6 @@ const styles$4 = {
21815
21831
  "prefer-instant-verification-method-manual-button-darker": "adyen-kyc-prefer-instant-verification-method-manual-button-darker",
21816
21832
  preferInstantVerificationMethodManualButtonDarker
21817
21833
  };
21818
- const getProviderIconName = (providerName) => {
21819
- switch (providerName) {
21820
- case "tink":
21821
- return "tink-logo";
21822
- case "trustly":
21823
- return "trustly-logo";
21824
- case "plaid":
21825
- return "plaid-logo";
21826
- default:
21827
- return void 0;
21828
- }
21829
- };
21830
21834
  const PreferInstantVerificationMethod = ({
21831
21835
  loadingStatus,
21832
21836
  provider,
@@ -21841,9 +21845,8 @@ const PreferInstantVerificationMethod = ({
21841
21845
  handleChangeFor,
21842
21846
  triggerValidation
21843
21847
  }) => {
21844
- var _a;
21845
21848
  const { i18n } = useI18nContext();
21846
- const iconName = getProviderIconName((_a = provider == null ? void 0 : provider.name) == null ? void 0 : _a.toLocaleLowerCase());
21849
+ const iconName = getProviderIconName(provider == null ? void 0 : provider.name);
21847
21850
  const showVerificationWidget = isProviderPlaidEmbedded(provider == null ? void 0 : provider.redirectUrl);
21848
21851
  const [verificationComplete, setVerificationComplete] = useState(false);
21849
21852
  const retrieveBankAccountInfo = async ({
@@ -21928,14 +21931,14 @@ const PayoutVerificationMethodOptionFooter = ({
21928
21931
  const { provider } = methodsMetadata[method];
21929
21932
  return provider ? /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "adyen-kyc-field-verification-methods__footer", children: [
21930
21933
  i18n.get("poweredBy"),
21931
- /* @__PURE__ */ jsx(
21934
+ provider.svgName ? /* @__PURE__ */ jsx(
21932
21935
  Icon,
21933
21936
  {
21934
21937
  className: "adyen-kyc-field-verification-methods__logo",
21935
21938
  name: provider.svgName,
21936
21939
  alt: provider.name
21937
21940
  }
21938
- )
21941
+ ) : provider.name
21939
21942
  ] }) : null;
21940
21943
  };
21941
21944
  const payoutVerificationMethodFields = ["payoutVerificationMethod", "bankCountry", ...accountVerificationFields];
@@ -21988,6 +21991,7 @@ function PayoutVerificationMethod(props) {
21988
21991
  SettingNames.AllowIntraRegionCrossBorderPayout
21989
21992
  );
21990
21993
  const [hasSelectedMethod, setHasSelectedMethod] = useState(false);
21994
+ const providerName = getProviderName(provider == null ? void 0 : provider.name);
21991
21995
  const { handleChangeFor, data, valid, errors, fieldProblems, triggerValidation } = useForm({
21992
21996
  ...props,
21993
21997
  schema: payoutVerificationMethodFields,
@@ -22181,18 +22185,18 @@ function PayoutVerificationMethod(props) {
22181
22185
  id: "ariaErrorField"
22182
22186
  }
22183
22187
  ),
22184
- !enablePreferInstantVerificationMethodFlow && (provider == null ? void 0 : provider.name) && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(
22188
+ !enablePreferInstantVerificationMethodFlow && providerName && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(
22185
22189
  ContextGuidance,
22186
22190
  {
22187
22191
  page: "Instant verification with partner",
22188
22192
  titleId: "howDoesVerificationWithOurPartnerWorks",
22189
22193
  contentId: "bankVerificationWithPartnerSteps",
22190
22194
  title: i18n.get("howDoesVerificationWithOurPartnerWorks", {
22191
- values: { provider: toCapitalized(provider.name) }
22195
+ values: { provider: providerName }
22192
22196
  }),
22193
22197
  content: /* @__PURE__ */ jsxs(Fragment, { children: [
22194
22198
  /* @__PURE__ */ jsx(Typography, { children: i18n.get("isOurTrustedPartnerHelpingSpeedUpSetup", {
22195
- values: { provider: toCapitalized(provider.name) }
22199
+ values: { provider: providerName }
22196
22200
  }) }),
22197
22201
  /* @__PURE__ */ jsxs(List, { children: [
22198
22202
  /* @__PURE__ */ jsx(ListItem, { children: i18n.get("selectTheBankToReceivePayouts") }),
@@ -23326,7 +23330,9 @@ function TrustRegistrationDetailsComponent(props) {
23326
23330
  const isStrictNameAndAddressValidationEnabled = isExperimentEnabled(
23327
23331
  ExperimentNames.StrictNameAndAddressValidationV4
23328
23332
  );
23329
- const isLemApiVersionV4Enabled = isExperimentEnabled(ExperimentNames.EnableLemApiVersionV4);
23333
+ const isDoingBusinessAsNameV4Enabled = isExperimentEnabled(
23334
+ ExperimentNames.EnableDoingBusinessAsNameV4
23335
+ );
23330
23336
  const TRUST_REGISTRATION_DETAILS = props.id || trustForms.trustRegistrationDetails.formId;
23331
23337
  const stateRef = useRef({ setState: null });
23332
23338
  const requiredFieldsByTask = trustRegistrationDetailsFields;
@@ -23432,7 +23438,7 @@ function TrustRegistrationDetailsComponent(props) {
23432
23438
  )
23433
23439
  }
23434
23440
  ),
23435
- isLemApiVersionV4Enabled && formUtils.isRequiredField("dbaName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
23441
+ isDoingBusinessAsNameV4Enabled && formUtils.isRequiredField("dbaName") && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
23436
23442
  DBANameField,
23437
23443
  {
23438
23444
  data: formUtils.getFieldData(data, DBA_NAME_FIELD),
@@ -23634,6 +23640,8 @@ const invalidInputRemediationActionMappings = {
23634
23640
  "1_314": [{ key: "proofOfIndividualTaxId" }],
23635
23641
  "1_315": [{ key: "proofOfIndividualTaxId" }],
23636
23642
  "1_316": [{ key: "individual.identificationData.number" }],
23643
+ "1_319": [{ key: "individual.residentialAddress" }],
23644
+ "1_320": [{ key: DocumentType.PROOF_OF_RESIDENCY }],
23637
23645
  "1_500": [
23638
23646
  { key: "organization.legalName" },
23639
23647
  { key: "organization.registrationNumber" },
@@ -23666,7 +23674,8 @@ const invalidInputRemediationActionMappings = {
23666
23674
  "1_704": [{ key: DocumentType.BANK_STATEMENT }],
23667
23675
  "1_705": [{ key: DocumentType.BANK_STATEMENT }],
23668
23676
  "1_803": [{ key: DocumentType.PROOF_OF_DIRECTOR }],
23669
- "1_804": [{ key: DocumentType.PROOF_OF_DIRECTOR }]
23677
+ "1_804": [{ key: DocumentType.PROOF_OF_DIRECTOR }],
23678
+ "1_3083": [{ key: DocumentType.PROOF_OF_RESIDENCY }]
23670
23679
  };
23671
23680
  const dataMissingRemediationsToFieldsMap = {
23672
23681
  "1_501": [DocumentType.REGISTRATION_DOCUMENT],
@@ -23691,6 +23700,14 @@ const OVERRIDE_REMEDIATION_CODE = {
23691
23700
  "1_502": { code: "1_504", message: "Upload a different tax document" }
23692
23701
  };
23693
23702
  const OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS = {
23703
+ "1_3083": [
23704
+ { code: "1_319", message: "Update individual details" },
23705
+ { code: "1_320", message: "Upload proof of residency" }
23706
+ ],
23707
+ "1_3072": [
23708
+ { code: "1_300", message: "Update individual details" },
23709
+ { code: "1_302", message: "Upload a different ID document" }
23710
+ ],
23694
23711
  "1_5012": [
23695
23712
  ...[OVERRIDE_REMEDIATION_CODE["1_501"]],
23696
23713
  { code: "1_500", message: "Update organization details" }
@@ -23721,6 +23738,12 @@ const OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS = {
23721
23738
  };
23722
23739
  const OVERRIDE_SUB_ERROR = {
23723
23740
  // 1_5012: The submitted company type didn't match the one on the registry
23741
+ "1_3083": {
23742
+ code: "1_3083",
23743
+ message: "The name or residential address couldn't be verified.",
23744
+ type: VerificationErrorType.INVALID_INPUT,
23745
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_3083"]
23746
+ },
23724
23747
  "1_5012": {
23725
23748
  code: "1_5012",
23726
23749
  message: "The submitted company type didn't match the one on the registry",
@@ -23791,6 +23814,19 @@ const OVERRIDE_DATA_MISSING_ERROR = {
23791
23814
  message: "'proofOfOrganizationTaxInfo' was missing",
23792
23815
  type: VerificationErrorType.DATA_MISSING,
23793
23816
  remediatingActions: [OVERRIDE_REMEDIATION_CODE["1_501"]]
23817
+ },
23818
+ "1_3083": {
23819
+ code: "1_3083",
23820
+ message: "The name or residential address couldn't be verified.",
23821
+ type: VerificationErrorType.INVALID_INPUT,
23822
+ subErrors: [
23823
+ {
23824
+ code: "1_3083",
23825
+ message: "Individual details didn't match the ID document",
23826
+ type: VerificationErrorType.INVALID_INPUT,
23827
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_3083"]
23828
+ }
23829
+ ]
23794
23830
  }
23795
23831
  };
23796
23832
  const overrideError = (verificationError) => {
@@ -23800,6 +23836,11 @@ const overrideError = (verificationError) => {
23800
23836
  switch (verificationError.code) {
23801
23837
  case "2_8141":
23802
23838
  return OVERRIDE_DATA_MISSING_ERROR["2_8141"];
23839
+ case "1_3083":
23840
+ return {
23841
+ ...OVERRIDE_DATA_MISSING_ERROR["1_3083"],
23842
+ subErrors: [OVERRIDE_SUB_ERROR["1_3083"]]
23843
+ };
23803
23844
  default:
23804
23845
  return verificationError;
23805
23846
  }
@@ -24061,7 +24102,7 @@ const aggregateProblemsByEntity = (problems, entity) => problems.reduce(
24061
24102
  {}
24062
24103
  );
24063
24104
  const overrideVerificationErrors = (verificationErrors, country) => verificationErrors.map((verificationError) => {
24064
- if (country === "US") {
24105
+ if (country === "US" || verificationError.code === "1_3083") {
24065
24106
  return overrideError(verificationError);
24066
24107
  }
24067
24108
  return verificationError;
@@ -24087,7 +24128,7 @@ function getCapabilityProblems(entity, country, isExperimentEnabled) {
24087
24128
  const remediationHasFileUploadField = (remediation) => {
24088
24129
  var _a;
24089
24130
  return (_a = remediation == null ? void 0 : remediation.forms) == null ? void 0 : _a.some(
24090
- (form) => form === individualForms.idVerificationMethod.formId || form === individualForms.idDocument.formId || form === individualForms.proofOfResidence.formId || form === individualForms.proofOfNationalId.formId || form === companyForms.companyRegistrationDocument.formId || form === companyForms.companyTaxDocument.formId || form === payoutSteps.payoutAccountDocuments.formId || form === solePropForms.solePropConstitutionalDocument.formId || form === trustForms.trustConstitutionalDocument.formId
24131
+ (form) => form === individualForms.idVerificationMethod.formId || form === individualForms.idDocument.formId || form === individualForms.proofOfResidency.formId || form === individualForms.proofOfNationalId.formId || form === companyForms.companyRegistrationDocument.formId || form === companyForms.companyTaxDocument.formId || form === payoutSteps.payoutAccountDocuments.formId || form === solePropForms.solePropConstitutionalDocument.formId || form === trustForms.trustConstitutionalDocument.formId
24091
24132
  );
24092
24133
  };
24093
24134
  const getEntityType = (baseEntityType, legalEntity, legalEntityId) => {
@@ -24725,8 +24766,8 @@ const identityBase = {
24725
24766
  residencyCountry: {
24726
24767
  rule: "REQUIRED"
24727
24768
  },
24728
- proofOfResidence: {
24729
- rule: "isProofOfResidenceRequired"
24769
+ proofOfResidency: {
24770
+ rule: "isProofOfResidencyRequired"
24730
24771
  },
24731
24772
  proofOfNationalId: {
24732
24773
  rule: "isProofOfNationalIdRequired"
@@ -24816,9 +24857,9 @@ const solePropBase = {
24816
24857
  stockExchangeMIC: { rule: "ifPubliclyTradedCompany" },
24817
24858
  stockISIN: { rule: "ifPubliclyTradedCompany" },
24818
24859
  stockTickerSymbol: { rule: "ifPubliclyTradedCompany" },
24819
- tradingName: { rule: "isLemApiVersionV4Disabled" },
24820
- dbaName: { rule: "isLemApiVersionV4Enabled" },
24821
- hasDba: { rule: "isLemApiVersionV4Enabled" },
24860
+ tradingName: { rule: "isDoingBusinessAsNameV4Disabled" },
24861
+ dbaName: { rule: "isDoingBusinessAsNameV4Enabled" },
24862
+ hasDba: { rule: "isDoingBusinessAsNameV4Enabled" },
24822
24863
  dateOfIncorporation: { rule: "countryRequiresDateOfIncorporationForCompanies" },
24823
24864
  exemptedFromRegistrationNumber: { rule: "countryHasRegistrationExemptionsForSomeSoleProps" },
24824
24865
  registrationNumber: { rule: "countryRequiresRegistrationNumberForSoleProps" },
@@ -27358,9 +27399,9 @@ const rules$1 = ({
27358
27399
  return REQUIRED;
27359
27400
  }
27360
27401
  },
27361
- isProofOfResidenceRequired: () => {
27402
+ isProofOfResidencyRequired: () => {
27362
27403
  var _a, _b;
27363
- if ((_b = (_a = data.proofOfResidence) == null ? void 0 : _a.proofOfResidence) == null ? void 0 : _b.length) {
27404
+ if ((_b = (_a = data.proofOfResidency) == null ? void 0 : _a.proofOfResidency) == null ? void 0 : _b.length) {
27364
27405
  return REQUIRED;
27365
27406
  }
27366
27407
  },
@@ -28148,16 +28189,19 @@ const FormWrapper = ({
28148
28189
  }
28149
28190
  ),
28150
28191
  right: /* @__PURE__ */ jsxs(Fragment, { children: [
28151
- !hideBackButton && /* @__PURE__ */ jsx(
28152
- Button,
28153
- {
28154
- label: "Finish Later",
28155
- secondary: true,
28156
- icon: "save",
28157
- onClick: handleFinishLater,
28158
- loading: finishLaterLoading
28159
- }
28160
- ),
28192
+ !hideBackButton && /* @__PURE__ */ jsxs(Fragment, { children: [
28193
+ !asModal && handleBackClick && /* @__PURE__ */ jsx(Button, { label: i18n.get("back"), onClick: handleBackClick, secondary: true }),
28194
+ /* @__PURE__ */ jsx(
28195
+ Button,
28196
+ {
28197
+ label: "Finish Later",
28198
+ secondary: true,
28199
+ icon: "save",
28200
+ onClick: handleFinishLater,
28201
+ loading: finishLaterLoading
28202
+ }
28203
+ )
28204
+ ] }),
28161
28205
  !hideNextButton && /* @__PURE__ */ jsx(Button, { label: nextButtonLabel, onClick: handleNextClick })
28162
28206
  ] })
28163
28207
  }
@@ -31454,6 +31498,7 @@ const useIntroductionScreens = ({ legalEntity, tasks }) => {
31454
31498
  );
31455
31499
  return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
31456
31500
  };
31501
+ const toCapitalized = (s) => `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`;
31457
31502
  const toPascalCase = (s) => s.split(/[^A-Za-z]/).map((word) => toCapitalized(word)).join("");
31458
31503
  var IntroductionScreenTranslationKeyElements = /* @__PURE__ */ ((IntroductionScreenTranslationKeyElements2) => {
31459
31504
  IntroductionScreenTranslationKeyElements2["ListItem"] = "LI";
@@ -33335,11 +33380,11 @@ function IndividualDropinComponent({
33335
33380
  const formatFileSummaryData2 = ({
33336
33381
  idDocument: idDocument2,
33337
33382
  proofOfNationalId,
33338
- proofOfResidence
33383
+ proofOfResidency
33339
33384
  }) => {
33340
33385
  var _a2, _b2;
33341
33386
  const proofOfNationalIdFile = (_a2 = proofOfNationalId == null ? void 0 : proofOfNationalId.proofOfNationalId) == null ? void 0 : _a2[0];
33342
- const proofOfResidenceFile = (_b2 = proofOfResidence == null ? void 0 : proofOfResidence.proofOfResidence) == null ? void 0 : _b2[0];
33387
+ const proofOfResidencyFile = (_b2 = proofOfResidency == null ? void 0 : proofOfResidency.proofOfResidency) == null ? void 0 : _b2[0];
33343
33388
  return {
33344
33389
  ...((idDocument2 == null ? void 0 : idDocument2.idDocumentType) || (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData)) && {
33345
33390
  idDocument: formatIdDocument(idDocument2)
@@ -33349,9 +33394,9 @@ function IndividualDropinComponent({
33349
33394
  fileName: proofOfNationalIdFile.name
33350
33395
  }
33351
33396
  },
33352
- ...proofOfResidenceFile && {
33353
- proofOfResidence: {
33354
- fileName: proofOfResidenceFile.name
33397
+ ...proofOfResidencyFile && {
33398
+ proofOfResidency: {
33399
+ fileName: proofOfResidencyFile.name
33355
33400
  }
33356
33401
  }
33357
33402
  };
@@ -33601,7 +33646,7 @@ function PayoutDetailsDropinComponent({
33601
33646
  const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
33602
33647
  const existingPayoutDetails = transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument) : void 0;
33603
33648
  const [documents, setDocuments] = useState();
33604
- const [useFreshProviderRedirectUrl, setUseFreshProviderRedirectUrl] = useState(true);
33649
+ const [useFreshProviderRedirectUrl, setUseFreshProviderRedirectUrl] = useState(false);
33605
33650
  const fallbackCurrency = (_a = currencyByCountry[defaultPayoutCountry]) == null ? void 0 : _a[0];
33606
33651
  const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
33607
33652
  const instantVerificationEnabled = Boolean(
@@ -35462,8 +35507,15 @@ function ServiceAgreementDropinComponent({
35462
35507
  thick: true
35463
35508
  }
35464
35509
  ),
35465
- right: (
35466
- // The button is either forcing the user to Sign or going Next, never both
35510
+ right: /* @__PURE__ */ jsxs(Fragment, { children: [
35511
+ !asModal && /* @__PURE__ */ jsx(
35512
+ Button,
35513
+ {
35514
+ label: i18n.get("back"),
35515
+ onClick: () => gotoForm(activeFormIndex - 1),
35516
+ secondary: true
35517
+ }
35518
+ ),
35467
35519
  /* @__PURE__ */ jsx(
35468
35520
  Button,
35469
35521
  {
@@ -35472,7 +35524,7 @@ function ServiceAgreementDropinComponent({
35472
35524
  onClick: handleClick
35473
35525
  }
35474
35526
  )
35475
- )
35527
+ ] })
35476
35528
  }
35477
35529
  );
35478
35530
  const endScreen = hasFinished && /* @__PURE__ */ jsx(
@@ -35862,8 +35914,8 @@ const rules = ({
35862
35914
  return "REQUIRED";
35863
35915
  }
35864
35916
  },
35865
- isLemApiVersionV4Enabled: () => {
35866
- if (isExperimentEnabled("EnableLemApiVersionV4")) {
35917
+ isDoingBusinessAsNameV4Enabled: () => {
35918
+ if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
35867
35919
  return "REQUIRED";
35868
35920
  }
35869
35921
  }
@@ -38176,6 +38228,7 @@ function CreateIndividualComponent({
38176
38228
  idVerificationStartCheck,
38177
38229
  getProviderStatus: getProviderStatus2
38178
38230
  } = useComponentApi(legalEntityId ?? parentLegalEntityId);
38231
+ const [isLoading, setIsLoading] = useState(true);
38179
38232
  const [legalEntity, setLegalEntity] = useState();
38180
38233
  const [parentLegalEntity, setParentLegalEntity] = useState();
38181
38234
  const [isIdDocumentEnabled, setIsIdDocumentEnabled] = useState(true);
@@ -38202,7 +38255,9 @@ function CreateIndividualComponent({
38202
38255
  }
38203
38256
  }, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
38204
38257
  useEffect(() => {
38205
- fetchLegalEntity().catch(logger$i.error);
38258
+ fetchLegalEntity().catch(logger$i.error).finally(() => {
38259
+ setIsLoading(false);
38260
+ });
38206
38261
  }, [fetchLegalEntity]);
38207
38262
  const country = ((_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.residentialAddress.country) ?? contextCountry;
38208
38263
  const onSubmit = (d) => {
@@ -38222,7 +38277,7 @@ function CreateIndividualComponent({
38222
38277
  useEffect(() => {
38223
38278
  fetchProviderStatus().catch(logger$i.error);
38224
38279
  }, [fetchProviderStatus]);
38225
- return /* @__PURE__ */ jsx(
38280
+ return isLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsx(
38226
38281
  IndividualDropinComponent,
38227
38282
  {
38228
38283
  parentLegalEntity,
@@ -38290,6 +38345,10 @@ function CreateTransferInstrumentComponent({
38290
38345
  setLoadingStatus("success");
38291
38346
  });
38292
38347
  }, [transferInstrumentId, fetchLegalEntity, getTransferInstrument2]);
38348
+ const handleGetBankVerificationVendors = useCallback(
38349
+ (country) => getBankVerificationVendor2(country, openBankingPartnerConfigId, i18n.locale),
38350
+ [getBankVerificationVendor2, openBankingPartnerConfigId, i18n.locale]
38351
+ );
38293
38352
  return loadingStatus === "loading" || !legalEntity ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsx(
38294
38353
  PayoutDetailsDropinComponent,
38295
38354
  {
@@ -38297,7 +38356,7 @@ function CreateTransferInstrumentComponent({
38297
38356
  setTransferInstrument,
38298
38357
  legalEntityResponse: legalEntity,
38299
38358
  associatedLegalArrangement,
38300
- handleGetBankVerificationVendors: (country) => getBankVerificationVendor2(country, openBankingPartnerConfigId, i18n.locale),
38359
+ handleGetBankVerificationVendors,
38301
38360
  handleGetDocument: getDocument2,
38302
38361
  handleCreateDocument: createDocument2,
38303
38362
  handleUpdateDocument: updateDocument2,
@@ -39893,12 +39952,17 @@ function HighExposureFinancialInformation({
39893
39952
  country,
39894
39953
  sectionHeading
39895
39954
  }) {
39896
- var _a, _b;
39955
+ var _a;
39897
39956
  const { i18n } = useI18nContext();
39898
39957
  const financialData = data;
39899
39958
  const financialErrors = errors;
39900
39959
  const isFinancialDataValid = valid;
39901
- const defaultCurrency = ((_a = currencyByCountry[country]) == null ? void 0 : _a[0]) ?? "EUR";
39960
+ const currenciesForCurrCountry = currencyByCountry[country] ?? [];
39961
+ const [firstCurrency] = currenciesForCurrCountry;
39962
+ const defaultCurrency = firstCurrency ?? "EUR";
39963
+ if ((currenciesForCurrCountry == null ? void 0 : currenciesForCurrCountry.length) === 1) {
39964
+ financialData.currency = firstCurrency;
39965
+ }
39902
39966
  return /* @__PURE__ */ jsxs("section", { children: [
39903
39967
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "financialInformation") }),
39904
39968
  /* @__PURE__ */ jsx(
@@ -39955,7 +40019,7 @@ function HighExposureFinancialInformation({
39955
40019
  /* @__PURE__ */ jsx(
39956
40020
  Currency,
39957
40021
  {
39958
- country: ((_b = data == null ? void 0 : data.registrationAddress) == null ? void 0 : _b.country) ?? country,
40022
+ country: ((_a = data == null ? void 0 : data.registrationAddress) == null ? void 0 : _a.country) ?? country,
39959
40023
  data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
39960
40024
  errors: formUtils.getFieldErrors(financialErrors, fieldProblems, CURRENCY_FIELD),
39961
40025
  handleChangeFor,
@@ -41838,7 +41902,7 @@ const ConfigurationApiProvider = ({
41838
41902
  }) => {
41839
41903
  const authContext = useAuthContext();
41840
41904
  const { isEmbeddedDropin, loadingContext } = authContext;
41841
- const sdkVersion = "3.36.1";
41905
+ const sdkVersion = "3.37.0";
41842
41906
  useAnalytics({
41843
41907
  onUserEvent,
41844
41908
  legalEntityId: rootLegalEntityId,
@@ -42509,7 +42573,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
42509
42573
  };
42510
42574
  const copyToClipboard = async () => {
42511
42575
  const toCopy = {
42512
- sdkVersion: "3.36.1",
42576
+ sdkVersion: "3.37.0",
42513
42577
  experiments: Object.fromEntries(allExperimentsWithValues),
42514
42578
  settings: Object.fromEntries(allSettingsWithValues)
42515
42579
  };
@@ -42574,7 +42638,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
42574
42638
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
42575
42639
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
42576
42640
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
42577
- /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "3.36.1" })
42641
+ /* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "3.37.0" })
42578
42642
  ] }) }),
42579
42643
  /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
42580
42644
  /* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
package/dist/style.css CHANGED
@@ -285,6 +285,9 @@ button[disabled]:hover {
285
285
  display: inline-flex;
286
286
  vertical-align: baseline;
287
287
  }
288
+ .adyen-kyc-icon svg {
289
+ height: 100%;
290
+ }
288
291
  .adyen-kyc-icon svg path {
289
292
  fill: currentColor;
290
293
  }
@@ -3883,7 +3886,7 @@ fieldset {
3883
3886
  place-items: center;
3884
3887
  }
3885
3888
  .adyen-kyc-high-exposure-financials .adyen-kyc-helper-text__above {
3886
- height: 36px;
3889
+ height: var(--adyen-sdk-spacer-120, 48px);
3887
3890
  }/* #region Borders */
3888
3891
  /* #endregion */
3889
3892
  /* #region Z-index */
@@ -22,7 +22,7 @@ export interface IndividualSchema {
22
22
  address?: AddressSchema;
23
23
  contactDetails?: ContactDetailsSchema;
24
24
  idDocument?: IdDocumentUploadSchema;
25
- proofOfResidence?: DocumentUploadSchema;
25
+ proofOfResidency?: DocumentUploadSchema;
26
26
  proofOfNationalId?: DocumentUploadSchema;
27
27
  proofOfRelationship?: DocumentUploadSchema;
28
28
  idVerificationMethod?: IdVerificationMethodSchema;
@@ -8,7 +8,9 @@ export interface PayoutVerificationMethodMetadata {
8
8
  svgName: SvgName;
9
9
  provider?: {
10
10
  name: string;
11
- svgName: SvgName | string;
11
+ svgName?: SvgName;
12
12
  };
13
13
  }
14
- export declare const makePayoutVerificationMethodsMetadata: (instantVerificationProvider: string | undefined) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
14
+ export declare const getProviderName: (providerName?: string) => string;
15
+ export declare const getProviderIconName: (providerName?: string) => SvgName | undefined;
16
+ export declare const makePayoutVerificationMethodsMetadata: (instantVerificationProviderName?: string) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
@@ -24,7 +24,7 @@ export declare enum ExperimentNames {
24
24
  EnablePreferInstantVerificationFlow = "EnablePreferInstantVerificationFlow",
25
25
  EnableFinancialInformationComponentV4 = "EnableFinancialInformationComponentV4",
26
26
  StrictNameAndAddressValidationV4 = "StrictNameAndAddressValidationV4",
27
- EnableLemApiVersionV4 = "EnableLemApiVersionV4",
27
+ EnableDoingBusinessAsNameV4 = "EnableDoingBusinessAsNameV4",
28
28
  EnablePhoneFieldScenario = "EnablePhoneFieldScenario",
29
29
  EnableAUIncorporatedPartnershipSkipRegistrationNumber = "EnableAUIncorporatedPartnershipSkipRegistrationNumber",
30
30
  EnableCompanyTrusteeSkipABN = "EnableCompanyTrusteeSkipABN"
@@ -718,10 +718,329 @@ export declare const remediationBusinessDetailsApiKeyMapping: Record<string, str
718
718
  export declare const remediationIndividualApiKeyMapping: Record<string, string>;
719
719
  export declare const remediationPayoutApiKeyMapping: {
720
720
  bankStatement: string;
721
- payoutVerificationMethod?: import("../../components/PayoutVerificationMethod/types").PayoutVerificationMethodSchema;
722
- payoutAccountDetails?: import("../../components/PayoutAccount/types").PayoutAccountSchema;
723
- payoutAccountDocuments?: import("../../components/BankDocument/types").BankDocumentSchema;
724
- payoutAccountVerification?: import("../../components/BankVerification/types").AccountVerificationSchema;
721
+ type?: RecursiveKeyOf<PayoutDetailsSchema>;
722
+ id?: RecursiveKeyOf<PayoutDetailsSchema>;
723
+ documentDetails?: RecursiveKeyOf<PayoutDetailsSchema>;
724
+ problems?: RecursiveKeyOf<PayoutDetailsSchema>;
725
+ legalEntityId?: RecursiveKeyOf<PayoutDetailsSchema>;
726
+ "capabilities.processing.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
727
+ "capabilities.processing.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
728
+ "capabilities.processing.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
729
+ "capabilities.processing.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
730
+ "capabilities.processing.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
731
+ "capabilities.processing.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
732
+ "capabilities.acceptExternalFunding.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
733
+ "capabilities.acceptExternalFunding.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
734
+ "capabilities.acceptExternalFunding.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
735
+ "capabilities.acceptExternalFunding.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
736
+ "capabilities.acceptExternalFunding.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
737
+ "capabilities.acceptExternalFunding.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
738
+ "capabilities.acceptPspFunding.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
739
+ "capabilities.acceptPspFunding.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
740
+ "capabilities.acceptPspFunding.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
741
+ "capabilities.acceptPspFunding.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
742
+ "capabilities.acceptPspFunding.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
743
+ "capabilities.acceptPspFunding.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
744
+ "capabilities.acceptTransactionInRestrictedCountries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
745
+ "capabilities.acceptTransactionInRestrictedCountries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
746
+ "capabilities.acceptTransactionInRestrictedCountries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
747
+ "capabilities.acceptTransactionInRestrictedCountries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
748
+ "capabilities.acceptTransactionInRestrictedCountries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
749
+ "capabilities.acceptTransactionInRestrictedCountries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
750
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
751
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
752
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
753
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
754
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
755
+ "capabilities.acceptTransactionInRestrictedCountriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
756
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
757
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
758
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
759
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
760
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
761
+ "capabilities.acceptTransactionInRestrictedCountriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
762
+ "capabilities.acceptTransactionInRestrictedIndustries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
763
+ "capabilities.acceptTransactionInRestrictedIndustries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
764
+ "capabilities.acceptTransactionInRestrictedIndustries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
765
+ "capabilities.acceptTransactionInRestrictedIndustries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
766
+ "capabilities.acceptTransactionInRestrictedIndustries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
767
+ "capabilities.acceptTransactionInRestrictedIndustries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
768
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
769
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
770
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
771
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
772
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
773
+ "capabilities.acceptTransactionInRestrictedIndustriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
774
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
775
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
776
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
777
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
778
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
779
+ "capabilities.acceptTransactionInRestrictedIndustriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
780
+ "capabilities.acquiring.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
781
+ "capabilities.acquiring.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
782
+ "capabilities.acquiring.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
783
+ "capabilities.acquiring.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
784
+ "capabilities.acquiring.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
785
+ "capabilities.acquiring.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
786
+ "capabilities.atmWithdrawal.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
787
+ "capabilities.atmWithdrawal.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
788
+ "capabilities.atmWithdrawal.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
789
+ "capabilities.atmWithdrawal.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
790
+ "capabilities.atmWithdrawal.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
791
+ "capabilities.atmWithdrawal.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
792
+ "capabilities.atmWithdrawalCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
793
+ "capabilities.atmWithdrawalCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
794
+ "capabilities.atmWithdrawalCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
795
+ "capabilities.atmWithdrawalCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
796
+ "capabilities.atmWithdrawalCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
797
+ "capabilities.atmWithdrawalCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
798
+ "capabilities.atmWithdrawalConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
799
+ "capabilities.atmWithdrawalConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
800
+ "capabilities.atmWithdrawalConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
801
+ "capabilities.atmWithdrawalConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
802
+ "capabilities.atmWithdrawalConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
803
+ "capabilities.atmWithdrawalConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
804
+ "capabilities.atmWithdrawalInRestrictedCountries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
805
+ "capabilities.atmWithdrawalInRestrictedCountries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
806
+ "capabilities.atmWithdrawalInRestrictedCountries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
807
+ "capabilities.atmWithdrawalInRestrictedCountries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
808
+ "capabilities.atmWithdrawalInRestrictedCountries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
809
+ "capabilities.atmWithdrawalInRestrictedCountries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
810
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
811
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
812
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
813
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
814
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
815
+ "capabilities.atmWithdrawalInRestrictedCountriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
816
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
817
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
818
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
819
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
820
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
821
+ "capabilities.atmWithdrawalInRestrictedCountriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
822
+ "capabilities.authorisedPaymentInstrumentUser.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
823
+ "capabilities.authorisedPaymentInstrumentUser.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
824
+ "capabilities.authorisedPaymentInstrumentUser.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
825
+ "capabilities.authorisedPaymentInstrumentUser.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
826
+ "capabilities.authorisedPaymentInstrumentUser.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
827
+ "capabilities.authorisedPaymentInstrumentUser.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
828
+ "capabilities.getGrantOffers.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
829
+ "capabilities.getGrantOffers.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
830
+ "capabilities.getGrantOffers.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
831
+ "capabilities.getGrantOffers.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
832
+ "capabilities.getGrantOffers.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
833
+ "capabilities.getGrantOffers.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
834
+ "capabilities.issueBankAccount.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
835
+ "capabilities.issueBankAccount.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
836
+ "capabilities.issueBankAccount.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
837
+ "capabilities.issueBankAccount.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
838
+ "capabilities.issueBankAccount.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
839
+ "capabilities.issueBankAccount.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
840
+ "capabilities.issueCard.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
841
+ "capabilities.issueCard.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
842
+ "capabilities.issueCard.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
843
+ "capabilities.issueCard.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
844
+ "capabilities.issueCard.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
845
+ "capabilities.issueCard.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
846
+ "capabilities.issueCardCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
847
+ "capabilities.issueCardCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
848
+ "capabilities.issueCardCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
849
+ "capabilities.issueCardCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
850
+ "capabilities.issueCardCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
851
+ "capabilities.issueCardCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
852
+ "capabilities.issueCardConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
853
+ "capabilities.issueCardConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
854
+ "capabilities.issueCardConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
855
+ "capabilities.issueCardConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
856
+ "capabilities.issueCardConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
857
+ "capabilities.issueCardConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
858
+ "capabilities.localAcceptance.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
859
+ "capabilities.localAcceptance.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
860
+ "capabilities.localAcceptance.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
861
+ "capabilities.localAcceptance.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
862
+ "capabilities.localAcceptance.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
863
+ "capabilities.localAcceptance.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
864
+ "capabilities.payout.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
865
+ "capabilities.payout.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
866
+ "capabilities.payout.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
867
+ "capabilities.payout.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
868
+ "capabilities.payout.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
869
+ "capabilities.payout.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
870
+ "capabilities.payoutToTransferInstrument.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
871
+ "capabilities.payoutToTransferInstrument.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
872
+ "capabilities.payoutToTransferInstrument.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
873
+ "capabilities.payoutToTransferInstrument.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
874
+ "capabilities.payoutToTransferInstrument.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
875
+ "capabilities.payoutToTransferInstrument.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
876
+ "capabilities.receiveFromBalanceAccount.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
877
+ "capabilities.receiveFromBalanceAccount.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
878
+ "capabilities.receiveFromBalanceAccount.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
879
+ "capabilities.receiveFromBalanceAccount.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
880
+ "capabilities.receiveFromBalanceAccount.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
881
+ "capabilities.receiveFromBalanceAccount.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
882
+ "capabilities.receiveFromPlatformPayments.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
883
+ "capabilities.receiveFromPlatformPayments.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
884
+ "capabilities.receiveFromPlatformPayments.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
885
+ "capabilities.receiveFromPlatformPayments.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
886
+ "capabilities.receiveFromPlatformPayments.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
887
+ "capabilities.receiveFromPlatformPayments.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
888
+ "capabilities.receiveFromThirdParty.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
889
+ "capabilities.receiveFromThirdParty.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
890
+ "capabilities.receiveFromThirdParty.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
891
+ "capabilities.receiveFromThirdParty.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
892
+ "capabilities.receiveFromThirdParty.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
893
+ "capabilities.receiveFromThirdParty.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
894
+ "capabilities.receiveFromTransferInstrument.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
895
+ "capabilities.receiveFromTransferInstrument.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
896
+ "capabilities.receiveFromTransferInstrument.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
897
+ "capabilities.receiveFromTransferInstrument.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
898
+ "capabilities.receiveFromTransferInstrument.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
899
+ "capabilities.receiveFromTransferInstrument.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
900
+ "capabilities.receiveGrants.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
901
+ "capabilities.receiveGrants.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
902
+ "capabilities.receiveGrants.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
903
+ "capabilities.receiveGrants.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
904
+ "capabilities.receiveGrants.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
905
+ "capabilities.receiveGrants.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
906
+ "capabilities.receivePayments.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
907
+ "capabilities.receivePayments.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
908
+ "capabilities.receivePayments.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
909
+ "capabilities.receivePayments.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
910
+ "capabilities.receivePayments.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
911
+ "capabilities.receivePayments.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
912
+ "capabilities.sendToBalanceAccount.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
913
+ "capabilities.sendToBalanceAccount.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
914
+ "capabilities.sendToBalanceAccount.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
915
+ "capabilities.sendToBalanceAccount.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
916
+ "capabilities.sendToBalanceAccount.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
917
+ "capabilities.sendToBalanceAccount.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
918
+ "capabilities.sendToThirdParty.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
919
+ "capabilities.sendToThirdParty.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
920
+ "capabilities.sendToThirdParty.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
921
+ "capabilities.sendToThirdParty.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
922
+ "capabilities.sendToThirdParty.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
923
+ "capabilities.sendToThirdParty.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
924
+ "capabilities.sendToTransferInstrument.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
925
+ "capabilities.sendToTransferInstrument.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
926
+ "capabilities.sendToTransferInstrument.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
927
+ "capabilities.sendToTransferInstrument.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
928
+ "capabilities.sendToTransferInstrument.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
929
+ "capabilities.sendToTransferInstrument.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
930
+ "capabilities.thirdPartyFunding.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
931
+ "capabilities.thirdPartyFunding.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
932
+ "capabilities.thirdPartyFunding.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
933
+ "capabilities.thirdPartyFunding.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
934
+ "capabilities.thirdPartyFunding.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
935
+ "capabilities.thirdPartyFunding.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
936
+ "capabilities.useCard.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
937
+ "capabilities.useCard.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
938
+ "capabilities.useCard.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
939
+ "capabilities.useCard.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
940
+ "capabilities.useCard.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
941
+ "capabilities.useCard.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
942
+ "capabilities.useCardCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
943
+ "capabilities.useCardCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
944
+ "capabilities.useCardCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
945
+ "capabilities.useCardCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
946
+ "capabilities.useCardCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
947
+ "capabilities.useCardCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
948
+ "capabilities.useCardConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
949
+ "capabilities.useCardConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
950
+ "capabilities.useCardConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
951
+ "capabilities.useCardConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
952
+ "capabilities.useCardConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
953
+ "capabilities.useCardConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
954
+ "capabilities.useCardInRestrictedCountries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
955
+ "capabilities.useCardInRestrictedCountries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
956
+ "capabilities.useCardInRestrictedCountries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
957
+ "capabilities.useCardInRestrictedCountries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
958
+ "capabilities.useCardInRestrictedCountries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
959
+ "capabilities.useCardInRestrictedCountries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
960
+ "capabilities.useCardInRestrictedCountriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
961
+ "capabilities.useCardInRestrictedCountriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
962
+ "capabilities.useCardInRestrictedCountriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
963
+ "capabilities.useCardInRestrictedCountriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
964
+ "capabilities.useCardInRestrictedCountriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
965
+ "capabilities.useCardInRestrictedCountriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
966
+ "capabilities.useCardInRestrictedCountriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
967
+ "capabilities.useCardInRestrictedCountriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
968
+ "capabilities.useCardInRestrictedCountriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
969
+ "capabilities.useCardInRestrictedCountriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
970
+ "capabilities.useCardInRestrictedCountriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
971
+ "capabilities.useCardInRestrictedCountriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
972
+ "capabilities.useCardInRestrictedIndustries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
973
+ "capabilities.useCardInRestrictedIndustries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
974
+ "capabilities.useCardInRestrictedIndustries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
975
+ "capabilities.useCardInRestrictedIndustries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
976
+ "capabilities.useCardInRestrictedIndustries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
977
+ "capabilities.useCardInRestrictedIndustries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
978
+ "capabilities.useCardInRestrictedIndustriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
979
+ "capabilities.useCardInRestrictedIndustriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
980
+ "capabilities.useCardInRestrictedIndustriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
981
+ "capabilities.useCardInRestrictedIndustriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
982
+ "capabilities.useCardInRestrictedIndustriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
983
+ "capabilities.useCardInRestrictedIndustriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
984
+ "capabilities.useCardInRestrictedIndustriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
985
+ "capabilities.useCardInRestrictedIndustriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
986
+ "capabilities.useCardInRestrictedIndustriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
987
+ "capabilities.useCardInRestrictedIndustriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
988
+ "capabilities.useCardInRestrictedIndustriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
989
+ "capabilities.useCardInRestrictedIndustriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
990
+ "capabilities.withdrawFromAtm.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
991
+ "capabilities.withdrawFromAtm.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
992
+ "capabilities.withdrawFromAtm.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
993
+ "capabilities.withdrawFromAtm.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
994
+ "capabilities.withdrawFromAtm.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
995
+ "capabilities.withdrawFromAtm.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
996
+ "capabilities.withdrawFromAtmCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
997
+ "capabilities.withdrawFromAtmCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
998
+ "capabilities.withdrawFromAtmCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
999
+ "capabilities.withdrawFromAtmCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
1000
+ "capabilities.withdrawFromAtmCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1001
+ "capabilities.withdrawFromAtmCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1002
+ "capabilities.withdrawFromAtmConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
1003
+ "capabilities.withdrawFromAtmConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
1004
+ "capabilities.withdrawFromAtmConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
1005
+ "capabilities.withdrawFromAtmConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
1006
+ "capabilities.withdrawFromAtmConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1007
+ "capabilities.withdrawFromAtmConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1008
+ "capabilities.withdrawFromAtmInRestrictedCountries.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
1009
+ "capabilities.withdrawFromAtmInRestrictedCountries.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
1010
+ "capabilities.withdrawFromAtmInRestrictedCountries.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
1011
+ "capabilities.withdrawFromAtmInRestrictedCountries.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
1012
+ "capabilities.withdrawFromAtmInRestrictedCountries.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1013
+ "capabilities.withdrawFromAtmInRestrictedCountries.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1014
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
1015
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
1016
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
1017
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
1018
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1019
+ "capabilities.withdrawFromAtmInRestrictedCountriesCommercial.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1020
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.allowed"?: RecursiveKeyOf<PayoutDetailsSchema>;
1021
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.requested"?: RecursiveKeyOf<PayoutDetailsSchema>;
1022
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.verificationStatus"?: RecursiveKeyOf<PayoutDetailsSchema>;
1023
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.transferInstruments.length"?: RecursiveKeyOf<PayoutDetailsSchema>;
1024
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.allowedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1025
+ "capabilities.withdrawFromAtmInRestrictedCountriesConsumer.requestedLevel"?: RecursiveKeyOf<PayoutDetailsSchema>;
1026
+ "bankAccount.bankName"?: RecursiveKeyOf<PayoutDetailsSchema>;
1027
+ "bankAccount.countryCode"?: RecursiveKeyOf<PayoutDetailsSchema>;
1028
+ "bankAccount.accountIdentification.type"?: RecursiveKeyOf<PayoutDetailsSchema>;
1029
+ "bankAccount.accountIdentification.iban"?: RecursiveKeyOf<PayoutDetailsSchema>;
1030
+ "bankAccount.accountIdentification.accountNumber"?: RecursiveKeyOf<PayoutDetailsSchema>;
1031
+ "bankAccount.accountIdentification.bic"?: RecursiveKeyOf<PayoutDetailsSchema>;
1032
+ "bankAccount.accountIdentification.additionalBankIdentification.type"?: RecursiveKeyOf<PayoutDetailsSchema>;
1033
+ "bankAccount.accountIdentification.additionalBankIdentification.code"?: RecursiveKeyOf<PayoutDetailsSchema>;
1034
+ "bankAccount.accountIdentification.bsbCode"?: RecursiveKeyOf<PayoutDetailsSchema>;
1035
+ "bankAccount.accountIdentification.institutionNumber"?: RecursiveKeyOf<PayoutDetailsSchema>;
1036
+ "bankAccount.accountIdentification.transitNumber"?: RecursiveKeyOf<PayoutDetailsSchema>;
1037
+ "bankAccount.accountIdentification.accountType"?: RecursiveKeyOf<PayoutDetailsSchema>;
1038
+ "bankAccount.accountIdentification.bankCode"?: RecursiveKeyOf<PayoutDetailsSchema>;
1039
+ "bankAccount.accountIdentification.clearingCode"?: RecursiveKeyOf<PayoutDetailsSchema>;
1040
+ "bankAccount.accountIdentification.clearingNumber"?: RecursiveKeyOf<PayoutDetailsSchema>;
1041
+ "bankAccount.accountIdentification.sortCode"?: RecursiveKeyOf<PayoutDetailsSchema>;
1042
+ "bankAccount.accountIdentification.routingNumber"?: RecursiveKeyOf<PayoutDetailsSchema>;
1043
+ "bankAccount.trustedSource"?: RecursiveKeyOf<PayoutDetailsSchema>;
725
1044
  bankAccount: string;
726
1045
  };
727
1046
  export declare const remediationTrustKeyMapping: Record<string, string>;
@@ -38,7 +38,7 @@ export declare const mapLegalEntityToHighExposure: (legalEntity: LegalEntity) =>
38
38
  export declare const mapHighExposureToLegalEntity: (data: HighExposureSchema) => LegalEntity;
39
39
  export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
40
40
  export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
41
- export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId' | 'proofOfRelationship'>;
41
+ export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidency' | 'proofOfNationalId' | 'proofOfRelationship'>;
42
42
  export declare const getPage: ({ attachments }: Document, pageType?: PageType) => Attachment;
43
43
  export declare const getPageName: (document: Document, pageType?: PageType) => string;
44
44
  export declare const mapIndividualDocumentToApiDocument: (data: IndividualSchema, entityId: string) => Promise<Document[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.36.1",
3
+ "version": "3.37.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -33,11 +33,12 @@
33
33
  },
34
34
  "type": "module",
35
35
  "scripts": {
36
- "build": "npm run clean && vite build",
37
- "build:npm": "npm run build && npm run types:build",
38
- "build:demo": "vite build --mode demo",
39
- "build:cdn": "npm run clean && vite build --mode production-cdn",
40
- "build:watch": "npm run build -- --watch",
36
+ "analyze:bundle:npm": "rollup-plugin-visualizer bundle-stats/report-npm.json --filename bundle-stats/report-npm.html --template sunburst --open",
37
+ "analyze:bundle:cdn": "rollup-plugin-visualizer bundle-stats/report-cdn.json --filename bundle-stats/report-cdn.html --template sunburst --open",
38
+ "build:npm": "rm -rf dist && vite build --mode production && npm run types:build",
39
+ "build:demo": "rm -rf .demo && vite build --mode demo",
40
+ "build:cdn": "rm -rf dist-cdn && vite build --mode production-cdn",
41
+ "build:watch": "npm run build:npm -- --watch",
41
42
  "check:all": "concurrently \"npm run types:check\" \"npm run lint:quiet\" \"npm run lint:scss\" \"npm run prettier\" -n tsc,eslint,stylelint,prettier -c cyan,magenta,yellow,blue",
42
43
  "check:commits": "commitlint --from",
43
44
  "check:commits:since-main": "npm run check:commits -- main",
@@ -137,6 +138,7 @@
137
138
  "phone": "^3.1.40",
138
139
  "postcss": "^8.4.29",
139
140
  "prettier": "^2.8.8",
141
+ "rollup-plugin-visualizer": "^5.12.0",
140
142
  "sass": "^1.66.1",
141
143
  "stylelint": "^15.9.0",
142
144
  "stylelint-config-recommended-scss": "^11.0.0",