@taxbit/react-sdk 0.0.13 → 0.0.14

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.
@@ -1,4 +1,4 @@
1
- import En, { createContext as oa, useContext as sa, useState as Z, useCallback as Ve, useMemo as ae, useEffect as X } from "react";
1
+ import En, { createContext as sa, useContext as ca, useState as Z, useCallback as Ve, useMemo as ae, useEffect as X } from "react";
2
2
  var tn = { exports: {} }, ve = {};
3
3
  /**
4
4
  * @license React
@@ -10,7 +10,7 @@ var tn = { exports: {} }, ve = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Sn;
13
- function ca() {
13
+ function da() {
14
14
  if (Sn)
15
15
  return ve;
16
16
  Sn = 1;
@@ -38,7 +38,7 @@ var Me = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var bn;
41
- function da() {
41
+ function la() {
42
42
  return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
43
43
  var e = En, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), u = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), V = Symbol.iterator, w = "@@iterator";
44
44
  function G(i) {
@@ -207,8 +207,8 @@ function da() {
207
207
  }
208
208
  var Ze = !1, Pe;
209
209
  {
210
- var Fn = typeof WeakMap == "function" ? WeakMap : Map;
211
- Pe = new Fn();
210
+ var Dn = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Pe = new Dn();
212
212
  }
213
213
  function sn(i, o) {
214
214
  if (!i || Ze)
@@ -281,10 +281,10 @@ function da() {
281
281
  var Ce = i ? i.displayName || i.name : "", In = Ce ? xe(Ce) : "";
282
282
  return typeof i == "function" && Pe.set(i, In), In;
283
283
  }
284
- function Dn(i, o, l) {
284
+ function Gn(i, o, l) {
285
285
  return sn(i, !1);
286
286
  }
287
- function Gn(i) {
287
+ function Ln(i) {
288
288
  var o = i.prototype;
289
289
  return !!(o && o.isReactComponent);
290
290
  }
@@ -292,7 +292,7 @@ function da() {
292
292
  if (i == null)
293
293
  return "";
294
294
  if (typeof i == "function")
295
- return sn(i, Gn(i));
295
+ return sn(i, Ln(i));
296
296
  if (typeof i == "string")
297
297
  return xe(i);
298
298
  switch (i) {
@@ -304,7 +304,7 @@ function da() {
304
304
  if (typeof i == "object")
305
305
  switch (i.$$typeof) {
306
306
  case g:
307
- return Dn(i.render);
307
+ return Gn(i.render);
308
308
  case I:
309
309
  return ke(i.type, o, l);
310
310
  case y: {
@@ -325,7 +325,7 @@ function da() {
325
325
  } else
326
326
  dn.setExtraStackFrame(null);
327
327
  }
328
- function Ln(i, o, l, C, b) {
328
+ function jn(i, o, l, C, b) {
329
329
  {
330
330
  var N = Function.call.bind(Ue);
331
331
  for (var S in i)
@@ -344,17 +344,17 @@ function da() {
344
344
  }
345
345
  }
346
346
  }
347
- var jn = Array.isArray;
347
+ var Kn = Array.isArray;
348
348
  function _e(i) {
349
- return jn(i);
349
+ return Kn(i);
350
350
  }
351
- function Kn(i) {
351
+ function Wn(i) {
352
352
  {
353
353
  var o = typeof Symbol == "function" && Symbol.toStringTag, l = o && i[Symbol.toStringTag] || i.constructor.name || "Object";
354
354
  return l;
355
355
  }
356
356
  }
357
- function Wn(i) {
357
+ function Vn(i) {
358
358
  try {
359
359
  return ln(i), !1;
360
360
  } catch {
@@ -365,17 +365,17 @@ function da() {
365
365
  return "" + i;
366
366
  }
367
367
  function un(i) {
368
- if (Wn(i))
369
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(i)), ln(i);
368
+ if (Vn(i))
369
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wn(i)), ln(i);
370
370
  }
371
- var ye = z.ReactCurrentOwner, Vn = {
371
+ var ye = z.ReactCurrentOwner, zn = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, mn, gn, $e;
377
377
  $e = {};
378
- function zn(i) {
378
+ function qn(i) {
379
379
  if (Ue.call(i, "ref")) {
380
380
  var o = Object.getOwnPropertyDescriptor(i, "ref").get;
381
381
  if (o && o.isReactWarning)
@@ -383,7 +383,7 @@ function da() {
383
383
  }
384
384
  return i.ref !== void 0;
385
385
  }
386
- function qn(i) {
386
+ function Yn(i) {
387
387
  if (Ue.call(i, "key")) {
388
388
  var o = Object.getOwnPropertyDescriptor(i, "key").get;
389
389
  if (o && o.isReactWarning)
@@ -391,13 +391,13 @@ function da() {
391
391
  }
392
392
  return i.key !== void 0;
393
393
  }
394
- function Yn(i, o) {
394
+ function Jn(i, o) {
395
395
  if (typeof i.ref == "string" && ye.current && o && ye.current.stateNode !== o) {
396
396
  var l = D(ye.current.type);
397
397
  $e[l] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(ye.current.type), i.ref), $e[l] = !0);
398
398
  }
399
399
  }
400
- function Jn(i, o) {
400
+ function Zn(i, o) {
401
401
  {
402
402
  var l = function() {
403
403
  mn || (mn = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
@@ -408,7 +408,7 @@ function da() {
408
408
  });
409
409
  }
410
410
  }
411
- function Zn(i, o) {
411
+ function _n(i, o) {
412
412
  {
413
413
  var l = function() {
414
414
  gn || (gn = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
@@ -419,7 +419,7 @@ function da() {
419
419
  });
420
420
  }
421
421
  }
422
- var _n = function(i, o, l, C, b, N, S) {
422
+ var $n = function(i, o, l, C, b, N, S) {
423
423
  var A = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: a,
@@ -448,12 +448,12 @@ function da() {
448
448
  value: b
449
449
  }), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
450
450
  };
451
- function $n(i, o, l, C, b) {
451
+ function Qn(i, o, l, C, b) {
452
452
  {
453
453
  var N, S = {}, A = null, U = null;
454
- l !== void 0 && (un(l), A = "" + l), qn(o) && (un(o.key), A = "" + o.key), zn(o) && (U = o.ref, Yn(o, b));
454
+ l !== void 0 && (un(l), A = "" + l), Yn(o) && (un(o.key), A = "" + o.key), qn(o) && (U = o.ref, Jn(o, b));
455
455
  for (N in o)
456
- Ue.call(o, N) && !Vn.hasOwnProperty(N) && (S[N] = o[N]);
456
+ Ue.call(o, N) && !zn.hasOwnProperty(N) && (S[N] = o[N]);
457
457
  if (i && i.defaultProps) {
458
458
  var E = i.defaultProps;
459
459
  for (N in E)
@@ -461,9 +461,9 @@ function da() {
461
461
  }
462
462
  if (A || U) {
463
463
  var H = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
464
- A && Jn(S, H), U && Zn(S, H);
464
+ A && Zn(S, H), U && _n(S, H);
465
465
  }
466
- return _n(i, A, U, b, C, ye.current, S);
466
+ return $n(i, A, U, b, C, ye.current, S);
467
467
  }
468
468
  }
469
469
  var Qe = z.ReactCurrentOwner, hn = z.ReactDebugCurrentFrame;
@@ -491,7 +491,7 @@ Check the render method of \`` + i + "`.";
491
491
  return "";
492
492
  }
493
493
  }
494
- function Qn(i) {
494
+ function Xn(i) {
495
495
  {
496
496
  if (i !== void 0) {
497
497
  var o = i.fileName.replace(/^.*[\\\/]/, ""), l = i.lineNumber;
@@ -503,7 +503,7 @@ Check your code at ` + o + ":" + l + ".";
503
503
  }
504
504
  }
505
505
  var pn = {};
506
- function Xn(i) {
506
+ function ea(i) {
507
507
  {
508
508
  var o = fn();
509
509
  if (!o) {
@@ -520,7 +520,7 @@ Check the top-level render call using <` + l + ">.");
520
520
  if (!i._store || i._store.validated || i.key != null)
521
521
  return;
522
522
  i._store.validated = !0;
523
- var l = Xn(o);
523
+ var l = ea(o);
524
524
  if (pn[l])
525
525
  return;
526
526
  pn[l] = !0;
@@ -547,7 +547,7 @@ Check the top-level render call using <` + l + ">.");
547
547
  }
548
548
  }
549
549
  }
550
- function ea(i) {
550
+ function na(i) {
551
551
  {
552
552
  var o = i.type;
553
553
  if (o == null || typeof o == "string")
@@ -563,7 +563,7 @@ Check the top-level render call using <` + l + ">.");
563
563
  return;
564
564
  if (l) {
565
565
  var C = D(o);
566
- Ln(l, i.props, "prop", C, i);
566
+ jn(l, i.props, "prop", C, i);
567
567
  } else if (o.PropTypes !== void 0 && !Xe) {
568
568
  Xe = !0;
569
569
  var b = D(o);
@@ -572,7 +572,7 @@ Check the top-level render call using <` + l + ">.");
572
572
  typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function na(i) {
575
+ function aa(i) {
576
576
  {
577
577
  for (var o = Object.keys(i.props), l = 0; l < o.length; l++) {
578
578
  var C = o[l];
@@ -590,12 +590,12 @@ Check the top-level render call using <` + l + ">.");
590
590
  if (!S) {
591
591
  var A = "";
592
592
  (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
- var U = Qn(b);
593
+ var U = Xn(b);
594
594
  U ? A += U : A += fn();
595
595
  var E;
596
596
  i === null ? E = "null" : _e(i) ? E = "array" : i !== void 0 && i.$$typeof === a ? (E = "<" + (D(i.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : E = typeof i, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, A);
597
597
  }
598
- var H = $n(i, o, l, b, N);
598
+ var H = Qn(i, o, l, b, N);
599
599
  if (H == null)
600
600
  return H;
601
601
  if (S) {
@@ -611,37 +611,37 @@ Check the top-level render call using <` + l + ">.");
611
611
  else
612
612
  Tn(j, i);
613
613
  }
614
- return i === t ? na(H) : ea(H), H;
614
+ return i === t ? aa(H) : na(H), H;
615
615
  }
616
616
  }
617
- function aa(i, o, l) {
617
+ function ia(i, o, l) {
618
618
  return An(i, o, l, !0);
619
619
  }
620
- function ia(i, o, l) {
620
+ function ra(i, o, l) {
621
621
  return An(i, o, l, !1);
622
622
  }
623
- var ra = ia, ta = aa;
624
- Me.Fragment = t, Me.jsx = ra, Me.jsxs = ta;
623
+ var ta = ra, oa = ia;
624
+ Me.Fragment = t, Me.jsx = ta, Me.jsxs = oa;
625
625
  }()), Me;
626
626
  }
627
- process.env.NODE_ENV === "production" ? tn.exports = ca() : tn.exports = da();
627
+ process.env.NODE_ENV === "production" ? tn.exports = da() : tn.exports = la();
628
628
  var n = tn.exports;
629
629
  const wn = () => {
630
- const e = oa(void 0);
630
+ const e = sa(void 0);
631
631
  return [() => {
632
- const r = sa(e);
632
+ const r = ca(e);
633
633
  if (r === void 0)
634
634
  throw new Error("useCtx must be inside a Provider with a value");
635
635
  return r;
636
636
  }, e.Provider];
637
- }, [W, la] = wn(), Rn = (...e) => e.filter(Boolean).join(" "), ua = (e) => {
637
+ }, [W, ua] = wn(), Rn = (...e) => e.filter(Boolean).join(" "), ma = (e) => {
638
638
  try {
639
639
  const a = (/* @__PURE__ */ new Date()).getUTCFullYear(), r = e.substring(e.length - 4, e.length), t = a - Number(r);
640
640
  return t > -1 && t < 131;
641
641
  } catch {
642
642
  return !1;
643
643
  }
644
- }, ma = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), ga = (e) => {
644
+ }, ga = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), ha = (e) => {
645
645
  const a = new Date(e);
646
646
  return !isNaN(a.getTime()) && e === a.toLocaleDateString("en-US", {
647
647
  month: "2-digit",
@@ -695,10 +695,10 @@ const wn = () => {
695
695
  default:
696
696
  return "name";
697
697
  }
698
- }, ha = (e) => e.accountHolderUsAccountType !== void 0 ? Hn(
698
+ }, fa = (e) => e.accountHolderUsAccountType !== void 0 ? Hn(
699
699
  e.accountHolderUsAccountType,
700
700
  e.accountHolderUsSmllcElection
701
- ) : e.accountHolderForeignAccountType !== void 0 ? Bn(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", fa = (e) => e.regardedOwnerUsPerson === "yes" ? Hn(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? Bn(e.regardedOwnerForeignAccountType) : "name", pa = (e) => ({
701
+ ) : e.accountHolderForeignAccountType !== void 0 ? Bn(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", pa = (e) => e.regardedOwnerUsPerson === "yes" ? Hn(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? Bn(e.regardedOwnerForeignAccountType) : "name", Ca = (e) => ({
702
702
  accountHolderIsIndividual: "isIndividual",
703
703
  accountHolderUsPerson: "usPerson",
704
704
  accountHolderUsAccountType: "usAccountType",
@@ -735,7 +735,7 @@ const wn = () => {
735
735
  accountHolderTaxResidenceForeignTin5IsNotRequired: "taxIdNumberIsNotRequired",
736
736
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
737
737
  accountHolderVatCountry: "vatCountry",
738
- accountHolderName: ha(e),
738
+ accountHolderName: fa(e),
739
739
  accountHolderDateOfBirth: "dateOfBirth",
740
740
  accountHolderDbaName: "dbaName",
741
741
  accountHolderAddressStreet: "street",
@@ -765,7 +765,7 @@ const wn = () => {
765
765
  regardedOwnerForeignTrustClassification: "foreignTrustClassification",
766
766
  regardedOwnerForeignOtherClassification: "foreignOtherClassification",
767
767
  regardedOwnerCountryOfCitizenship: "countryOfCitizenship",
768
- regardedOwnerName: fa(e),
768
+ regardedOwnerName: pa(e),
769
769
  regardedOwnerDateOfBirth: "dateOfBirth",
770
770
  regardedOwnerDbaName: "dbaName",
771
771
  regardedOwnerAddressStreet: "street",
@@ -781,7 +781,7 @@ const wn = () => {
781
781
  regardedOwnerMailingAddressState: "state",
782
782
  regardedOwnerMailingAddressZip: "zip",
783
783
  regardedOwnerMailingAddressCountry: "country"
784
- }), Ca = (e) => ({
784
+ }), Ta = (e) => ({
785
785
  accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
786
786
  accountHolderIsEuResident: e.includes("DAC7"),
787
787
  accountHolderIsIndividual: e.includes("DAC7") && !(e.includes("W-9") || e.includes("W-8BEN") || e.includes("W-8BEN-E")),
@@ -881,14 +881,14 @@ const wn = () => {
881
881
  signature: e.includes("W-9") || e.includes("W-8BEN-E") || e.includes("W-8BEN"),
882
882
  exemptPayeeCode: e.includes("W-9"),
883
883
  exemptFatcaCode: e.includes("W-9")
884
- }), Ta = (e, a) => {
884
+ }), Aa = (e, a) => {
885
885
  const {
886
886
  accountHolderIsDisregarded: r,
887
887
  isW9: t,
888
888
  isW8BenE: c,
889
889
  isW8: s,
890
890
  hasNoTaxId: m
891
- } = Te(e), u = Ca(a), g = {
891
+ } = Te(e), u = Ta(a), g = {
892
892
  // Account Holder Account Classification
893
893
  accountHolderUsPerson: !0,
894
894
  accountHolderIsEuResident: !0,
@@ -1001,7 +1001,7 @@ const wn = () => {
1001
1001
  g[d] && u[d]
1002
1002
  ])
1003
1003
  );
1004
- }, Aa = (e) => e == null ? {} : {
1004
+ }, Ia = (e) => e == null ? {} : {
1005
1005
  accountHolderName: e.accountHolderName,
1006
1006
  accountHolderDbaName: e.accountHolderDbaName,
1007
1007
  accountHolderDateOfBirth: e.accountHolderDateOfBirth,
@@ -1081,16 +1081,16 @@ const wn = () => {
1081
1081
  regardedOwnerForeignTrustClassification: void 0,
1082
1082
  regardedOwnerForeignOtherClassification: void 0,
1083
1083
  signature: void 0
1084
- }, Ia = (e) => ({
1084
+ }, Sa = (e) => ({
1085
1085
  signature: e.signature,
1086
1086
  document_type: "COMPREHENSIVE"
1087
- }), Sa = ({
1087
+ }), ba = ({
1088
1088
  data: e,
1089
1089
  onSubmit: a,
1090
1090
  language: r = "en-us",
1091
1091
  taxForms: t = ["DAC7", "W-8BEN", "W-8BEN-E", "W-9"]
1092
1092
  }) => {
1093
- const [c, s] = Z(r), [m, u] = Z(t), g = Aa(e), [d, f] = Z(
1093
+ const [c, s] = Z(r), [m, u] = Z(t), g = Ia(e), [d, f] = Z(
1094
1094
  g
1095
1095
  ), [I, y] = Z([
1096
1096
  "AccountHolderClassification"
@@ -1111,7 +1111,7 @@ const wn = () => {
1111
1111
  ...O
1112
1112
  };
1113
1113
  f(k);
1114
- const se = Ia(k);
1114
+ const se = Sa(k);
1115
1115
  a({
1116
1116
  ...se,
1117
1117
  signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
@@ -1166,16 +1166,16 @@ const wn = () => {
1166
1166
  supportedForms: m,
1167
1167
  setSupportedForms: u
1168
1168
  };
1169
- }, ba = ({
1169
+ }, Na = ({
1170
1170
  data: e = {},
1171
1171
  onSubmit: a,
1172
1172
  language: r,
1173
1173
  taxForms: t,
1174
1174
  children: c
1175
1175
  }) => /* @__PURE__ */ n.jsx(
1176
- la,
1176
+ ua,
1177
1177
  {
1178
- value: Sa({
1178
+ value: ba({
1179
1179
  data: e,
1180
1180
  onSubmit: a,
1181
1181
  language: r,
@@ -1183,7 +1183,7 @@ const wn = () => {
1183
1183
  }),
1184
1184
  children: c
1185
1185
  }
1186
- ), [M, Na] = wn(), ya = {
1186
+ ), [M, ya] = wn(), va = {
1187
1187
  button: {
1188
1188
  back: "Zurück",
1189
1189
  cancel: "Abbrechen",
@@ -1668,7 +1668,7 @@ const wn = () => {
1668
1668
  SK: "Saskatchewan",
1669
1669
  YT: "Yukon-Territorium"
1670
1670
  }
1671
- }, va = {
1671
+ }, Ma = {
1672
1672
  button: {
1673
1673
  back: "Back",
1674
1674
  cancel: "Cancel",
@@ -2153,7 +2153,7 @@ const wn = () => {
2153
2153
  SK: "Saskatchewan",
2154
2154
  YT: "Yukon Territory"
2155
2155
  }
2156
- }, Ma = {
2156
+ }, Oa = {
2157
2157
  button: {
2158
2158
  back: "Back",
2159
2159
  cancel: "Cancel",
@@ -2638,7 +2638,7 @@ const wn = () => {
2638
2638
  SK: "Saskatchewan",
2639
2639
  YT: "Yukon Territory"
2640
2640
  }
2641
- }, Oa = {
2641
+ }, Ea = {
2642
2642
  button: {
2643
2643
  back: "Atrás",
2644
2644
  cancel: "Cancelar",
@@ -3123,7 +3123,7 @@ const wn = () => {
3123
3123
  SK: "Saskatchewan",
3124
3124
  YT: "Territorio Yukón"
3125
3125
  }
3126
- }, Ea = {
3126
+ }, wa = {
3127
3127
  button: {
3128
3128
  edit: "Editer",
3129
3129
  back: "Retour",
@@ -3608,7 +3608,7 @@ const wn = () => {
3608
3608
  SK: "Saskatchewan",
3609
3609
  YT: "Territoire du Yukon"
3610
3610
  }
3611
- }, wa = {
3611
+ }, Ra = {
3612
3612
  button: {
3613
3613
  back: "Indietro",
3614
3614
  cancel: "Annulla",
@@ -4093,7 +4093,7 @@ const wn = () => {
4093
4093
  SK: "Saskatchewan",
4094
4094
  YT: "Territorio Yukón"
4095
4095
  }
4096
- }, Ra = {
4096
+ }, Ha = {
4097
4097
  button: {
4098
4098
  back: "Terug",
4099
4099
  cancel: "Annuleren",
@@ -4578,7 +4578,7 @@ const wn = () => {
4578
4578
  SK: "Saskatchewan",
4579
4579
  YT: "Yukon"
4580
4580
  }
4581
- }, Ha = {
4581
+ }, Ba = {
4582
4582
  button: {
4583
4583
  back: "Tilbake",
4584
4584
  cancel: "Avbryt",
@@ -5063,7 +5063,7 @@ const wn = () => {
5063
5063
  SK: "Saskatchewan",
5064
5064
  YT: "Yukon-territoriet"
5065
5065
  }
5066
- }, Ba = {
5066
+ }, xa = {
5067
5067
  button: {
5068
5068
  back: "Tillbaka",
5069
5069
  cancel: "Avbryt",
@@ -5549,46 +5549,46 @@ const wn = () => {
5549
5549
  YT: "Yukonterritoriet"
5550
5550
  }
5551
5551
  }, $ = {
5552
- "en-us": Ma,
5553
- "de-de": ya,
5554
- "en-gb": va,
5555
- "it-it": wa,
5556
- "nl-nl": Ra,
5557
- "no-no": Ha,
5558
- "sv-se": Ba,
5559
- "fr-fr": Ea,
5560
- "es-es": Oa
5552
+ "en-us": Oa,
5553
+ "de-de": va,
5554
+ "en-gb": Ma,
5555
+ "it-it": Ra,
5556
+ "nl-nl": Ha,
5557
+ "no-no": Ba,
5558
+ "sv-se": xa,
5559
+ "fr-fr": wa,
5560
+ "es-es": Ea
5561
5561
  }, Nn = (e, a = "en-us") => {
5562
5562
  const r = $[a].prompt[e];
5563
5563
  return r || (console.log(
5564
5564
  'Missing prompt for key: "' + e + '" in locale: "' + a + '"'
5565
5565
  ), e);
5566
- }, xa = (e, a = "en-us") => {
5566
+ }, Pa = (e, a = "en-us") => {
5567
5567
  const r = $[a].subPrompt[e];
5568
5568
  return r || (console.log(
5569
5569
  'Missing subPrompt for key: "' + e + '" in locale: "' + a + '"'
5570
5570
  ), e);
5571
- }, Pa = (e, a = "en-us") => {
5571
+ }, ka = (e, a = "en-us") => {
5572
5572
  const r = $[a].error[e];
5573
5573
  return r || (console.log(
5574
5574
  'Missing error for key: "' + e + '" in locale: "' + a + '"'
5575
5575
  ), e);
5576
- }, ka = (e, a = "en-us") => {
5576
+ }, Ua = (e, a = "en-us") => {
5577
5577
  const r = $[a].hint[e];
5578
5578
  return r || (console.log(
5579
5579
  'Missing hint for key: "' + e + '" in locale: "' + a + '"'
5580
5580
  ), e);
5581
- }, Ua = (e, a = "en-us") => {
5581
+ }, Fa = (e, a = "en-us") => {
5582
5582
  const r = $[a].text[e];
5583
5583
  return r || (console.log(
5584
5584
  'Missing text for key: "' + e + '" in locale: "' + a + '"'
5585
5585
  ), e);
5586
- }, Fa = (e, a = "en-us") => {
5586
+ }, Da = (e, a = "en-us") => {
5587
5587
  const r = $[a].title[e];
5588
5588
  return r || (console.log(
5589
5589
  'Missing title for key: "' + e + '" in locale: "' + a + '"'
5590
5590
  ), e);
5591
- }, Da = (e, a = "en-us") => {
5591
+ }, Ga = (e, a = "en-us") => {
5592
5592
  const r = $[a].button[e];
5593
5593
  return r || (console.log(
5594
5594
  'Missing button for key: "' + e + '" in locale: "' + a + '"'
@@ -5600,17 +5600,17 @@ const wn = () => {
5600
5600
  return r || (console.log(
5601
5601
  'Missing option for key: "' + e + '" in locale: "' + a + '"'
5602
5602
  ), e);
5603
- }, Ga = (e, a = "en-us") => {
5603
+ }, La = (e, a = "en-us") => {
5604
5604
  const r = $[a].country[e];
5605
5605
  return r || (console.log(
5606
5606
  'Missing country for key: "' + e + '" in locale: "' + a + '"'
5607
5607
  ), e);
5608
- }, La = (e, a = "en-us") => {
5608
+ }, ja = (e, a = "en-us") => {
5609
5609
  const r = $[a].usState[e];
5610
5610
  return r || (console.log(
5611
5611
  'Missing usState for key: "' + e + '" in locale: "' + a + '"'
5612
5612
  ), e);
5613
- }, ja = (e, a = "en-us") => {
5613
+ }, Ka = (e, a = "en-us") => {
5614
5614
  const r = $[a].caProvince[e];
5615
5615
  return r || (console.log(
5616
5616
  'Missing caProvince for key: "' + e + '" in locale: "' + a + '"'
@@ -5670,9 +5670,9 @@ const wn = () => {
5670
5670
  if ((a == null ? void 0 : a.accountHolderForeignAccountType) === "individual" || (a == null ? void 0 : a.accountHolderIsIndividual) === "yes") {
5671
5671
  if (e === void 0 || e === "")
5672
5672
  return "required";
5673
- if (ma(e))
5674
- if (ga(e)) {
5675
- if (!ua(e))
5673
+ if (ga(e))
5674
+ if (ha(e)) {
5675
+ if (!ma(e))
5676
5676
  return "mustBeValidBirthDate";
5677
5677
  } else
5678
5678
  return "invalidDate";
@@ -5838,10 +5838,10 @@ const wn = () => {
5838
5838
  if (e !== a.accountHolderName && (a.accountHolderUsAccountType === "individual" || a.accountHolderForeignAccountType === "individual"))
5839
5839
  return "mustMatchName";
5840
5840
  }
5841
- }, Ka = () => ({
5841
+ }, Wa = () => ({
5842
5842
  accountHolderDateOfBirth: "dateOfBirth",
5843
5843
  regardedOwnerDateOfBirth: "dateOfBirth"
5844
- }), Wa = () => {
5844
+ }), Va = () => {
5845
5845
  const {
5846
5846
  language: e,
5847
5847
  data: a,
@@ -5849,7 +5849,7 @@ const wn = () => {
5849
5849
  } = W(), [t, c] = Z(a), [s, m] = Z({}), [u, g] = Z(!1), [d, f] = Z(
5850
5850
  /* @__PURE__ */ new Set()
5851
5851
  ), I = ae(
5852
- () => Ta(t, r),
5852
+ () => Aa(t, r),
5853
5853
  [t, r]
5854
5854
  ), y = Ve(
5855
5855
  (h, L) => {
@@ -5878,18 +5878,18 @@ const wn = () => {
5878
5878
  g(!0);
5879
5879
  }, V = () => {
5880
5880
  g(!1);
5881
- }, w = Object.keys(s).length === 0, G = Ka(), z = pa(t), R = {
5881
+ }, w = Object.keys(s).length === 0, G = Wa(), z = Ca(t), R = {
5882
5882
  accountHolderUsSmllcElection: "smllcElection"
5883
- }, ue = (h) => z[h] ? z[h] : h, q = (h) => R[h] ? R[h] : (console.log("No subPrompt key found for key: ", h), h), Ae = (h) => G[h] ? G[h] : h, Ie = (h) => ka(Ae(h), e), Se = (h) => Ua(h, e), be = (h) => Fa(h, e), me = (h) => Pa(h, e), ge = (h) => Da(h, e), ce = (h) => Nn(ue(h), e), he = (h) => Nn(ue(h), e) + (s[h] ? "*" : ""), D = (h) => xa(q(h), e), Y = Ve(
5883
+ }, ue = (h) => z[h] ? z[h] : h, q = (h) => R[h] ? R[h] : (console.log("No subPrompt key found for key: ", h), h), Ae = (h) => G[h] ? G[h] : h, Ie = (h) => Ua(Ae(h), e), Se = (h) => Fa(h, e), be = (h) => Da(h, e), me = (h) => ka(h, e), ge = (h) => Ga(h, e), ce = (h) => Nn(ue(h), e), he = (h) => Nn(ue(h), e) + (s[h] ? "*" : ""), D = (h) => Pa(q(h), e), Y = Ve(
5884
5884
  (h) => {
5885
5885
  if (h)
5886
5886
  return yn(h, e) ? yn(h, e) : h;
5887
5887
  },
5888
5888
  [e]
5889
5889
  ), ee = Ve(
5890
- (h) => h ? Ga(h, e) : "",
5890
+ (h) => h ? La(h, e) : "",
5891
5891
  [e]
5892
- ), fe = (h) => h ? La(h, e) : "", O = (h) => h ? ja(h, e) : "", k = {
5892
+ ), fe = (h) => h ? ja(h, e) : "", O = (h) => h ? Ka(h, e) : "", k = {
5893
5893
  accountHolderDbaName: !!t.accountHolderUsAccountType && ["cCorporation", "sCorporation", "partnership"].includes(
5894
5894
  t.accountHolderUsAccountType
5895
5895
  )
@@ -5923,7 +5923,7 @@ const wn = () => {
5923
5923
  d.has(h) || f((L) => /* @__PURE__ */ new Set([...L, h]));
5924
5924
  }
5925
5925
  };
5926
- }, ie = ({ children: e }) => /* @__PURE__ */ n.jsx(Na, { value: Wa(), children: e }), re = ({
5926
+ }, ie = ({ children: e }) => /* @__PURE__ */ n.jsx(ya, { value: Va(), children: e }), re = ({
5927
5927
  onBack: e,
5928
5928
  onCancel: a,
5929
5929
  onNext: r,
@@ -5931,13 +5931,13 @@ const wn = () => {
5931
5931
  onReset: c
5932
5932
  }) => {
5933
5933
  const { isErrorFree: s, exposeErrors: m, getLocalButton: u } = M(), g = s ? r : m, d = s ? t : m;
5934
- return /* @__PURE__ */ n.jsxs("div", { className: "taxbit-stepActions", children: [
5935
- /* @__PURE__ */ n.jsxs("div", { className: "taxbit-secondaryActions", children: [
5934
+ return /* @__PURE__ */ n.jsxs("div", { className: "taxbit-step-actions", children: [
5935
+ /* @__PURE__ */ n.jsxs("div", { className: "taxbit-secondary-actions", children: [
5936
5936
  a && /* @__PURE__ */ n.jsx("button", { onClick: a, tabIndex: -1, children: u("cancel") }),
5937
5937
  e && /* @__PURE__ */ n.jsx("button", { onClick: e, tabIndex: -1, children: u("back") }),
5938
5938
  c && /* @__PURE__ */ n.jsx("button", { onClick: c, children: u("reset") })
5939
5939
  ] }),
5940
- /* @__PURE__ */ n.jsxs("div", { className: "taxbit-primaryActions", children: [
5940
+ /* @__PURE__ */ n.jsxs("div", { className: "taxbit-primary-actions", children: [
5941
5941
  r && /* @__PURE__ */ n.jsx("button", { onClick: g, children: u("next") }),
5942
5942
  t && /* @__PURE__ */ n.jsx("button", { onClick: d, children: u("submit") })
5943
5943
  ] })
@@ -5959,11 +5959,11 @@ const wn = () => {
5959
5959
  hint: a
5960
5960
  }) => {
5961
5961
  const { errors: r, showErrors: t, getLocalError: c, getLocalHint: s } = M(), m = r[e] ? c(r[e]) : "";
5962
- return m && t ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-errorMessage", children: m }) : a ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-hint", children: s(e) }) : null;
5962
+ return m && t ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-error-message", children: m }) : a ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-hint", children: s(e) }) : null;
5963
5963
  }, we = ({
5964
5964
  children: e,
5965
5965
  className: a
5966
- }) => /* @__PURE__ */ n.jsx("div", { className: Rn(a, "taxbit-inputStatus"), children: e }), te = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "taxbit-page", children: e }), P = ({
5966
+ }) => /* @__PURE__ */ n.jsx("div", { className: Rn(a, "taxbit-input-status"), children: e }), te = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: "taxbit-page", children: e }), P = ({
5967
5967
  label: e,
5968
5968
  subLabel: a,
5969
5969
  value: r,
@@ -5984,17 +5984,17 @@ const wn = () => {
5984
5984
  children: [
5985
5985
  /* @__PURE__ */ n.jsxs("div", { className: "taxbit-label", children: [
5986
5986
  e,
5987
- a && /* @__PURE__ */ n.jsx("div", { className: "taxbit-subLabel", children: a })
5987
+ a && /* @__PURE__ */ n.jsx("div", { className: "taxbit-sub-label", children: a })
5988
5988
  ] }),
5989
- /* @__PURE__ */ n.jsxs("div", { className: "taxbit-rowContent", children: [
5990
- t ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-rowValue", children: t }) : /* @__PURE__ */ n.jsx("div", { className: "taxbit-rowValue", children: r }),
5991
- c && /* @__PURE__ */ n.jsx("div", { className: "taxbit-rowActions", children: /* @__PURE__ */ n.jsx("button", { onClick: c, className: "taxbit-rowActionButton", children: d("edit") }) })
5989
+ /* @__PURE__ */ n.jsxs("div", { className: "taxbit-row-content", children: [
5990
+ t ? /* @__PURE__ */ n.jsx("div", { className: "taxbit-row-value", children: t }) : /* @__PURE__ */ n.jsx("div", { className: "taxbit-row-value", children: r }),
5991
+ c && /* @__PURE__ */ n.jsx("div", { className: "taxbit-row-actions", children: /* @__PURE__ */ n.jsx("button", { onClick: c, className: "taxbit-row-action-button", children: d("edit") }) })
5992
5992
  ] })
5993
5993
  ]
5994
5994
  }
5995
5995
  );
5996
5996
  }, Q = ({ title: e, showIf: a = !0, children: r }) => a ? /* @__PURE__ */ n.jsxs("div", { className: "taxbit-section", children: [
5997
- e && /* @__PURE__ */ n.jsx("div", { className: "taxbit-sectionTitle", children: e }),
5997
+ e && /* @__PURE__ */ n.jsx("div", { className: "taxbit-section-title", children: e }),
5998
5998
  r
5999
5999
  ] }) : r, oe = ({
6000
6000
  title: e,
@@ -6018,24 +6018,24 @@ const wn = () => {
6018
6018
  name: r,
6019
6019
  checked: g === "yes",
6020
6020
  onChange: d,
6021
- className: "taxbit-checkBox"
6021
+ className: "taxbit-check-box"
6022
6022
  }
6023
6023
  ),
6024
6024
  /* @__PURE__ */ n.jsxs("label", { htmlFor: r, children: [
6025
6025
  e && s(r),
6026
- a && /* @__PURE__ */ n.jsx("div", { className: "taxbit-subLabel", children: m(r) })
6026
+ a && /* @__PURE__ */ n.jsx("div", { className: "taxbit-sub-label", children: m(r) })
6027
6027
  ] })
6028
6028
  ] }),
6029
6029
  /* @__PURE__ */ n.jsx(Ee, { name: r })
6030
6030
  ] });
6031
- }, Va = ({ name: e, options: a }) => {
6031
+ }, za = ({ name: e, options: a }) => {
6032
6032
  const { fields: r, setValue: t, hideErrors: c, getLocalOption: s } = M(), m = (d) => {
6033
6033
  t(e, d), c();
6034
6034
  }, u = r[e], g = (d) => {
6035
6035
  m(d.target.value);
6036
6036
  };
6037
6037
  return /* @__PURE__ */ n.jsxs(we, { children: [
6038
- /* @__PURE__ */ n.jsx("div", { className: "taxbit-radioButtons", children: a.map((d) => /* @__PURE__ */ n.jsxs("div", { className: "taxbit-radioButton", children: [
6038
+ /* @__PURE__ */ n.jsx("div", { className: "taxbit-radio-buttons", children: a.map((d) => /* @__PURE__ */ n.jsxs("div", { className: "taxbit-radio-button", children: [
6039
6039
  /* @__PURE__ */ n.jsx(
6040
6040
  "input",
6041
6041
  {
@@ -6100,12 +6100,12 @@ const wn = () => {
6100
6100
  ),
6101
6101
  /* @__PURE__ */ n.jsx(Ee, { name: e, hint: t })
6102
6102
  ] });
6103
- }, za = ({ name: e }) => {
6103
+ }, qa = ({ name: e }) => {
6104
6104
  const { fields: a, setValue: r, getLocalPrompt: t } = M(), c = a[e], s = () => {
6105
6105
  r(e, c === void 0 ? "yes" : void 0);
6106
6106
  };
6107
6107
  return /* @__PURE__ */ n.jsxs(we, { children: [
6108
- /* @__PURE__ */ n.jsx("div", { className: "taxbit-checkBox-label", children: /* @__PURE__ */ n.jsx(
6108
+ /* @__PURE__ */ n.jsx("div", { className: "taxbit-check-box-label", children: /* @__PURE__ */ n.jsx(
6109
6109
  "button",
6110
6110
  {
6111
6111
  type: "button",
@@ -6118,7 +6118,7 @@ const wn = () => {
6118
6118
  ) }),
6119
6119
  /* @__PURE__ */ n.jsx(Ee, { name: e })
6120
6120
  ] });
6121
- }, qa = [
6121
+ }, Ya = [
6122
6122
  "AB",
6123
6123
  "BC",
6124
6124
  "MB",
@@ -6132,9 +6132,9 @@ const wn = () => {
6132
6132
  "QC",
6133
6133
  "SK",
6134
6134
  "YT"
6135
- ], Ya = qa.map((e) => ({
6135
+ ], Ja = Ya.map((e) => ({
6136
6136
  value: e
6137
- })), Ja = [
6137
+ })), Za = [
6138
6138
  "AD",
6139
6139
  "AE",
6140
6140
  "AF",
@@ -6384,7 +6384,7 @@ const wn = () => {
6384
6384
  "ZA",
6385
6385
  "ZM",
6386
6386
  "ZW"
6387
- ], Za = [
6387
+ ], _a = [
6388
6388
  "AT",
6389
6389
  "BE",
6390
6390
  "BG",
@@ -6412,11 +6412,11 @@ const wn = () => {
6412
6412
  "SE",
6413
6413
  "SI",
6414
6414
  "SK"
6415
- ], Re = Ja.map((e) => ({
6415
+ ], Re = Za.map((e) => ({
6416
6416
  value: e
6417
- })), _a = Za.map((e) => ({
6417
+ })), $a = _a.map((e) => ({
6418
6418
  value: e
6419
- })), $a = [
6419
+ })), Qa = [
6420
6420
  "A",
6421
6421
  "B",
6422
6422
  "C",
@@ -6430,9 +6430,9 @@ const wn = () => {
6430
6430
  "K",
6431
6431
  "L",
6432
6432
  "M"
6433
- ], Qa = $a.map((e) => ({
6433
+ ], Xa = Qa.map((e) => ({
6434
6434
  value: e
6435
- })), Xa = [
6435
+ })), ei = [
6436
6436
  { value: "individual" },
6437
6437
  { value: "corporation" },
6438
6438
  { value: "partnership" },
@@ -6447,7 +6447,7 @@ const wn = () => {
6447
6447
  { value: "foreignGovernmentControlledEntity" },
6448
6448
  { value: "foreignGovernmentIntegralPart" },
6449
6449
  { value: "estate" }
6450
- ], ei = [
6450
+ ], ni = [
6451
6451
  { value: "individual" },
6452
6452
  { value: "corporation" },
6453
6453
  { value: "partnership" },
@@ -6457,7 +6457,7 @@ const wn = () => {
6457
6457
  { value: "simpleTrust" },
6458
6458
  { value: "complexTrust" },
6459
6459
  { value: "grantorTrust" }
6460
- ], ni = [
6460
+ ], ai = [
6461
6461
  "A",
6462
6462
  "B",
6463
6463
  "C",
@@ -6471,9 +6471,9 @@ const wn = () => {
6471
6471
  "K",
6472
6472
  "L",
6473
6473
  "M"
6474
- ], ai = ni.map((e) => ({
6474
+ ], ii = ai.map((e) => ({
6475
6475
  value: e
6476
- })), ii = [
6476
+ })), ri = [
6477
6477
  { value: "individual" },
6478
6478
  { value: "soleProprietor" },
6479
6479
  { value: "llc" },
@@ -6488,7 +6488,7 @@ const wn = () => {
6488
6488
  { value: "cCorporation" },
6489
6489
  { value: "sCorporation" },
6490
6490
  { value: "partnership" }
6491
- ], ri = [
6491
+ ], ti = [
6492
6492
  { value: "individual" },
6493
6493
  { value: "llc" },
6494
6494
  { value: "cCorporation" },
@@ -6496,7 +6496,7 @@ const wn = () => {
6496
6496
  { value: "partnership" },
6497
6497
  { value: "trustEstate" },
6498
6498
  { value: "other" }
6499
- ], ti = [
6499
+ ], oi = [
6500
6500
  "AL",
6501
6501
  "AK",
6502
6502
  "AS",
@@ -6557,7 +6557,7 @@ const wn = () => {
6557
6557
  "WV",
6558
6558
  "WI",
6559
6559
  "WY"
6560
- ], oi = ti.map((e) => ({
6560
+ ], si = oi.map((e) => ({
6561
6561
  value: e
6562
6562
  })), de = [{ value: "yes" }, { value: "no" }], p = ({
6563
6563
  label: e,
@@ -6595,7 +6595,7 @@ const wn = () => {
6595
6595
  label: a,
6596
6596
  subLabel: r,
6597
6597
  options: t
6598
- }) => /* @__PURE__ */ n.jsx(p, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ n.jsx(Va, { name: e, options: t }) }), ze = ({
6598
+ }) => /* @__PURE__ */ n.jsx(p, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ n.jsx(za, { name: e, options: t }) }), ze = ({
6599
6599
  name: e,
6600
6600
  label: a,
6601
6601
  options: r,
@@ -6616,7 +6616,7 @@ const wn = () => {
6616
6616
  hint: r,
6617
6617
  subLabel: t,
6618
6618
  onChange: c
6619
- }) => /* @__PURE__ */ n.jsx(p, { name: e, label: a, subLabel: t, children: /* @__PURE__ */ n.jsx(_, { name: e, onChange: c, hint: r }) }), si = () => {
6619
+ }) => /* @__PURE__ */ n.jsx(p, { name: e, label: a, subLabel: t, children: /* @__PURE__ */ n.jsx(_, { name: e, onChange: c, hint: r }) }), ci = () => {
6620
6620
  const { fields: e, getLocalTitle: a, getLocalOption: r } = M(), { onPersistAccountHolderData: t, onCancel: c } = W(), s = de.map((u) => ({
6621
6621
  ...u,
6622
6622
  label: r(`usPerson_${u.value}`)
@@ -6654,7 +6654,7 @@ const wn = () => {
6654
6654
  B,
6655
6655
  {
6656
6656
  name: "accountHolderUsAccountType",
6657
- options: ii,
6657
+ options: ri,
6658
6658
  label: !0
6659
6659
  }
6660
6660
  ),
@@ -6688,7 +6688,7 @@ const wn = () => {
6688
6688
  B,
6689
6689
  {
6690
6690
  name: "accountHolderForeignAccountType",
6691
- options: Xa,
6691
+ options: ei,
6692
6692
  label: !0
6693
6693
  }
6694
6694
  ),
@@ -6716,7 +6716,7 @@ const wn = () => {
6716
6716
  }
6717
6717
  )
6718
6718
  ] });
6719
- }, ci = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(si, {}) }), qe = ({
6719
+ }, di = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(ci, {}) }), qe = ({
6720
6720
  prompt: e,
6721
6721
  prefix: a,
6722
6722
  showIf: r = !0
@@ -6737,13 +6737,13 @@ const wn = () => {
6737
6737
  })).sort((w, G) => w.label.localeCompare(G.label)),
6738
6738
  [s]
6739
6739
  ), F = ae(
6740
- () => oi.map((w) => ({
6740
+ () => si.map((w) => ({
6741
6741
  ...w,
6742
6742
  label: u(w.value)
6743
6743
  })).sort((w, G) => w.label.localeCompare(G.label)),
6744
6744
  [u]
6745
6745
  ), V = ae(
6746
- () => Ya.map((w) => ({
6746
+ () => Ja.map((w) => ({
6747
6747
  ...w,
6748
6748
  label: m(w.value)
6749
6749
  })).sort((w, G) => w.label.localeCompare(G.label)),
@@ -6817,11 +6817,11 @@ const wn = () => {
6817
6817
  {
6818
6818
  name: `${a}Zip`,
6819
6819
  label: g(`${a}Zip`),
6820
- children: /* @__PURE__ */ n.jsx(_, { name: `${a}Zip`, className: "taxbit-postalCode" })
6820
+ children: /* @__PURE__ */ n.jsx(_, { name: `${a}Zip`, className: "taxbit-postal-code" })
6821
6821
  }
6822
6822
  )
6823
6823
  ] });
6824
- }, di = () => {
6824
+ }, li = () => {
6825
6825
  const { onPersistCollectedData: e, goBack: a, onCancel: r, isW9: t, isW8: c } = W(), { fields: s, getLocalCountry: m, getLocalTitle: u } = M(), g = ae(
6826
6826
  () => Re.map((d) => ({
6827
6827
  ...d,
@@ -6876,7 +6876,7 @@ const wn = () => {
6876
6876
  }
6877
6877
  )
6878
6878
  ] });
6879
- }, li = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(di, {}) }), Oe = ({
6879
+ }, ui = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(li, {}) }), Oe = ({
6880
6880
  index: e,
6881
6881
  showIf: a = !0,
6882
6882
  more: r,
@@ -6926,11 +6926,11 @@ const wn = () => {
6926
6926
  }
6927
6927
  ),
6928
6928
  /* @__PURE__ */ n.jsx(P, { children: /* @__PURE__ */ n.jsx(xn, { label: !0, name: I }) }),
6929
- r ? /* @__PURE__ */ n.jsx(P, { children: /* @__PURE__ */ n.jsx(za, { name: y }) }) : null
6929
+ r ? /* @__PURE__ */ n.jsx(P, { children: /* @__PURE__ */ n.jsx(qa, { name: y }) }) : null
6930
6930
  ]
6931
6931
  }
6932
6932
  );
6933
- }, ui = ({ countryOptions: e, showIf: a }) => {
6933
+ }, mi = ({ countryOptions: e, showIf: a }) => {
6934
6934
  const { showField: r, getRequiredLocalPrompt: t } = M();
6935
6935
  return X(() => {
6936
6936
  r("accountHolderVatCountry"), r("accountHolderVatIdentificationNumber");
@@ -6953,7 +6953,7 @@ const wn = () => {
6953
6953
  ]
6954
6954
  }
6955
6955
  ) });
6956
- }, mi = ({ showIf: e }) => {
6956
+ }, gi = ({ showIf: e }) => {
6957
6957
  const { showField: a, getRequiredLocalPrompt: r } = M();
6958
6958
  return X(() => {
6959
6959
  a("accountHolderFinancialAccountIdentifier"), a("accountHolderFinancialAccountName");
@@ -6969,9 +6969,9 @@ const wn = () => {
6969
6969
  ]
6970
6970
  }
6971
6971
  ) });
6972
- }, gi = () => {
6972
+ }, hi = () => {
6973
6973
  const { onPersistCollectedData: e, goBack: a, onCancel: r } = W(), { fields: t, getLocalTitle: c, getLocalCountry: s } = M(), m = ae(
6974
- () => _a.map((g) => ({
6974
+ () => $a.map((g) => ({
6975
6975
  ...g,
6976
6976
  label: s(g.value)
6977
6977
  })).sort((g, d) => g.label.localeCompare(d.label)),
@@ -6988,9 +6988,9 @@ const wn = () => {
6988
6988
  /* @__PURE__ */ n.jsx(K, { name: "accountHolderUsTin", label: !0 }),
6989
6989
  /* @__PURE__ */ n.jsx(K, { name: "accountHolderForeignTin", label: !0 }),
6990
6990
  /* @__PURE__ */ n.jsx(x, { name: "accountHolderForeignTinIsNotRequired", label: !0 }),
6991
- /* @__PURE__ */ n.jsx(mi, {}),
6991
+ /* @__PURE__ */ n.jsx(gi, {}),
6992
6992
  /* @__PURE__ */ n.jsx(
6993
- ui,
6993
+ mi,
6994
6994
  {
6995
6995
  countryOptions: m,
6996
6996
  showIf: t.accountHolderIsEuResident === "yes"
@@ -7049,15 +7049,15 @@ const wn = () => {
7049
7049
  }
7050
7050
  )
7051
7051
  ] });
7052
- }, hi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(gi, {}) }), fi = () => {
7052
+ }, fi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(hi, {}) }), pi = () => {
7053
7053
  const { onPersistCollectedData: e, goBack: a } = W(), { fields: r } = M();
7054
7054
  return /* @__PURE__ */ n.jsxs(te, { children: [
7055
7055
  /* @__PURE__ */ n.jsx(oe, { title: "exemptions" }),
7056
- /* @__PURE__ */ n.jsx(ze, { name: "exemptFatcaCode", options: Qa, label: !0 }),
7057
- /* @__PURE__ */ n.jsx(ze, { name: "exemptPayeeCode", options: ai, label: !0 }),
7056
+ /* @__PURE__ */ n.jsx(ze, { name: "exemptFatcaCode", options: Xa, label: !0 }),
7057
+ /* @__PURE__ */ n.jsx(ze, { name: "exemptPayeeCode", options: ii, label: !0 }),
7058
7058
  /* @__PURE__ */ n.jsx(re, { onBack: a, onNext: () => e(r) })
7059
7059
  ] });
7060
- }, pi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(fi, {}) }), Ci = () => {
7060
+ }, Ci = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(pi, {}) }), Ti = () => {
7061
7061
  const { fields: e, getLocalTitle: a, getLocalOption: r } = M(), { onPersistCollectedData: t, goBack: c } = W(), s = de.map((m) => ({
7062
7062
  ...m,
7063
7063
  label: r(`usPerson_${m.value}`)
@@ -7076,7 +7076,7 @@ const wn = () => {
7076
7076
  B,
7077
7077
  {
7078
7078
  name: "regardedOwnerUsAccountType",
7079
- options: ri,
7079
+ options: ti,
7080
7080
  label: !0
7081
7081
  }
7082
7082
  ),
@@ -7084,7 +7084,7 @@ const wn = () => {
7084
7084
  B,
7085
7085
  {
7086
7086
  name: "regardedOwnerForeignAccountType",
7087
- options: ei,
7087
+ options: ni,
7088
7088
  label: !0
7089
7089
  }
7090
7090
  ),
@@ -7123,7 +7123,7 @@ const wn = () => {
7123
7123
  ),
7124
7124
  /* @__PURE__ */ n.jsx(re, { onBack: c, onNext: () => t(e) })
7125
7125
  ] });
7126
- }, Ti = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Ci, {}) }), Ai = () => {
7126
+ }, Ai = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Ti, {}) }), Ii = () => {
7127
7127
  const { onPersistCollectedData: e, goBack: a, onCancel: r } = W(), { fields: t, getLocalCountry: c, getLocalTitle: s } = M(), m = ae(
7128
7128
  () => Re.map((u) => ({
7129
7129
  ...u,
@@ -7162,7 +7162,7 @@ const wn = () => {
7162
7162
  }
7163
7163
  )
7164
7164
  ] });
7165
- }, Ii = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Ai, {}) }), Si = () => {
7165
+ }, Si = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Ii, {}) }), bi = () => {
7166
7166
  const { onPersistCollectedData: e, goBack: a } = W(), { fields: r, getLocalTitle: t } = M();
7167
7167
  return /* @__PURE__ */ n.jsxs(te, { children: [
7168
7168
  /* @__PURE__ */ n.jsx(oe, { title: t("regardedOwnerTaxInformation") }),
@@ -7171,7 +7171,7 @@ const wn = () => {
7171
7171
  /* @__PURE__ */ n.jsx(x, { name: "regardedOwnerForeignTinIsNotRequired", label: !0 }),
7172
7172
  /* @__PURE__ */ n.jsx(re, { onBack: a, onNext: () => e(r) })
7173
7173
  ] });
7174
- }, bi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Si, {}) }), Ni = () => {
7174
+ }, Ni = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(bi, {}) }), yi = () => {
7175
7175
  const { data: e, editTo: a } = W(), { getLocalTitle: r, getLocalOption: t, getLocalCountry: c, getLocalText: s } = M();
7176
7176
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7177
7177
  /* @__PURE__ */ n.jsxs(Q, { title: r("accountHolder"), children: [
@@ -7631,11 +7631,11 @@ const wn = () => {
7631
7631
  }
7632
7632
  )
7633
7633
  ] });
7634
- }, yi = () => {
7634
+ }, vi = () => {
7635
7635
  const { goBack: e, onSubmitTaxDocumentation: a, isW8: r, isW9: t } = W(), { fields: c, getLocalTitle: s } = M();
7636
7636
  return /* @__PURE__ */ n.jsxs(te, { children: [
7637
7637
  /* @__PURE__ */ n.jsx(oe, { title: s("summary") }),
7638
- /* @__PURE__ */ n.jsx(Ni, {}),
7638
+ /* @__PURE__ */ n.jsx(yi, {}),
7639
7639
  /* @__PURE__ */ n.jsxs(Q, { title: "Certify", showIf: t || r, children: [
7640
7640
  /* @__PURE__ */ n.jsx(x, { name: "iCertifyToAll", label: !0 }),
7641
7641
  /* @__PURE__ */ n.jsx(x, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
@@ -7661,7 +7661,7 @@ const wn = () => {
7661
7661
  }
7662
7662
  )
7663
7663
  ] });
7664
- }, vi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(yi, {}) }), Mi = () => {
7664
+ }, Mi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(vi, {}) }), Oi = () => {
7665
7665
  const {
7666
7666
  getLocalCountry: e,
7667
7667
  hideField: a,
@@ -7696,11 +7696,11 @@ const wn = () => {
7696
7696
  ]
7697
7697
  }
7698
7698
  ) });
7699
- }, Oi = () => {
7699
+ }, Ei = () => {
7700
7700
  const { onPersistCollectedData: e, goBack: a, onCancel: r } = W(), { fields: t, getLocalTitle: c } = M();
7701
7701
  return /* @__PURE__ */ n.jsxs(te, { children: [
7702
7702
  /* @__PURE__ */ n.jsx(oe, { title: c("accountHolderTaxInformation") }),
7703
- /* @__PURE__ */ n.jsx(Mi, {}),
7703
+ /* @__PURE__ */ n.jsx(Oi, {}),
7704
7704
  /* @__PURE__ */ n.jsx(
7705
7705
  re,
7706
7706
  {
@@ -7710,13 +7710,13 @@ const wn = () => {
7710
7710
  }
7711
7711
  )
7712
7712
  ] });
7713
- }, Ei = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Oi, {}) }), wi = ({
7713
+ }, wi = () => /* @__PURE__ */ n.jsx(ie, { children: /* @__PURE__ */ n.jsx(Ei, {}) }), Fn = ({
7714
7714
  data: e,
7715
7715
  onSubmit: a,
7716
7716
  language: r,
7717
7717
  taxForms: t
7718
7718
  }) => /* @__PURE__ */ n.jsx(
7719
- ba,
7719
+ Na,
7720
7720
  {
7721
7721
  data: e,
7722
7722
  onSubmit: a,
@@ -7735,18 +7735,30 @@ const wn = () => {
7735
7735
  c(a);
7736
7736
  }, [a, c]);
7737
7737
  const m = {
7738
- AccountHolderClassification: ci,
7739
- AccountHolderContact: li,
7740
- AccountHolderTax: hi,
7741
- AccountHolderTaxClarification: Ei,
7742
- Exemptions: pi,
7743
- RegardedOwnerClassification: Ti,
7744
- RegardedOwnerContact: Ii,
7745
- RegardedOwnerTax: bi,
7746
- Summary: vi
7738
+ AccountHolderClassification: di,
7739
+ AccountHolderContact: ui,
7740
+ AccountHolderTax: fi,
7741
+ AccountHolderTaxClarification: wi,
7742
+ Exemptions: Ci,
7743
+ RegardedOwnerClassification: Ai,
7744
+ RegardedOwnerContact: Si,
7745
+ RegardedOwnerTax: Ni,
7746
+ Summary: Mi
7747
7747
  }[r];
7748
7748
  return /* @__PURE__ */ n.jsx(m, {});
7749
- }, vn = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Mn = {
7749
+ }, ki = ({
7750
+ data: e,
7751
+ onSubmit: a,
7752
+ language: r
7753
+ }) => /* @__PURE__ */ n.jsx(
7754
+ Fn,
7755
+ {
7756
+ data: e,
7757
+ language: r,
7758
+ onSubmit: a,
7759
+ taxForms: ["DAC7"]
7760
+ }
7761
+ ), vn = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Mn = {
7750
7762
  taxDocumentation: {
7751
7763
  post: (e) => vn("tax-documentation", e)
7752
7764
  },
@@ -7787,7 +7799,7 @@ const wn = () => {
7787
7799
  }) => {
7788
7800
  const { formStatus: s, submitForm: m } = Bi(r, e);
7789
7801
  return s ? s === "UNDOCUMENTED" || s === "INVALID" ? /* @__PURE__ */ n.jsx(
7790
- wi,
7802
+ Fn,
7791
7803
  {
7792
7804
  data: a,
7793
7805
  language: t,
@@ -7799,7 +7811,7 @@ const wn = () => {
7799
7811
  s,
7800
7812
  '"'
7801
7813
  ] }) : /* @__PURE__ */ n.jsx("div", { children: "Loading..." });
7802
- }, ki = ({
7814
+ }, Ui = ({
7803
7815
  data: e,
7804
7816
  staging: a,
7805
7817
  bearerToken: r,
@@ -7815,8 +7827,9 @@ const wn = () => {
7815
7827
  }
7816
7828
  );
7817
7829
  export {
7818
- ki as TaxBitDAC7Form,
7830
+ Ui as TaxBitDAC7Form,
7831
+ ki as TaxBitDAC7FormUI,
7819
7832
  xi as TaxBitForm,
7820
- wi as TaxBitFormUI,
7833
+ Fn as TaxBitFormUI,
7821
7834
  Bi as useTaxBit
7822
7835
  };