@techlabi/kycrazy-ui-kit 0.59.0 → 0.60.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5633,7 +5633,7 @@ var [Gs] = ui("Tooltip", [
5633
5633
  );
5634
5634
  };
5635
5635
  G6.displayName = M6;
5636
- var X6 = "Tooltip", [_V, Xs] = Gs(X6), zl = "TooltipTrigger", oE = g.forwardRef(
5636
+ var X6 = "Tooltip", [NV, Xs] = Gs(X6), zl = "TooltipTrigger", oE = g.forwardRef(
5637
5637
  (r, e) => {
5638
5638
  const { __scopeTooltip: a, ...t } = r, n = Xs(zl, a), i = V6(zl, a), o = jc(a), A = g.useRef(null), s = k0(e, A, n.onTriggerChange), f = g.useRef(!1), l = g.useRef(!1), c = g.useCallback(() => f.current = !1, []);
5639
5639
  return g.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ u(Vs, { asChild: !0, ...o, children: /* @__PURE__ */ u(
@@ -5662,7 +5662,7 @@ var X6 = "Tooltip", [_V, Xs] = Gs(X6), zl = "TooltipTrigger", oE = g.forwardRef(
5662
5662
  }
5663
5663
  );
5664
5664
  oE.displayName = zl;
5665
- var AE = "TooltipPortal", [NV, sE] = Gs(AE, {
5665
+ var AE = "TooltipPortal", [BV, sE] = Gs(AE, {
5666
5666
  forceMount: void 0
5667
5667
  }), a2 = "TooltipContent", j6 = g.forwardRef(
5668
5668
  (r, e) => {
@@ -9546,22 +9546,22 @@ v0.getAdapter = E8.getAdapter;
9546
9546
  v0.HttpStatusCode = mu;
9547
9547
  v0.default = v0;
9548
9548
  const {
9549
- Axios: RV,
9550
- AxiosError: SV,
9551
- CanceledError: ZV,
9552
- isCancel: FV,
9553
- CancelToken: $V,
9554
- VERSION: PV,
9555
- all: TV,
9556
- Cancel: WV,
9557
- isAxiosError: DV,
9558
- spread: OV,
9559
- toFormData: MV,
9560
- AxiosHeaders: VV,
9561
- HttpStatusCode: GV,
9562
- formToJSON: XV,
9563
- getAdapter: jV,
9564
- mergeConfig: LV
9549
+ Axios: SV,
9550
+ AxiosError: ZV,
9551
+ CanceledError: FV,
9552
+ isCancel: $V,
9553
+ CancelToken: PV,
9554
+ VERSION: TV,
9555
+ all: WV,
9556
+ Cancel: DV,
9557
+ isAxiosError: OV,
9558
+ spread: MV,
9559
+ toFormData: VV,
9560
+ AxiosHeaders: GV,
9561
+ HttpStatusCode: XV,
9562
+ formToJSON: jV,
9563
+ getAdapter: LV,
9564
+ mergeConfig: UV
9565
9565
  } = v0, P_ = async (r, e) => {
9566
9566
  const a = await fetch(`${r}/api/settings`, {
9567
9567
  method: "GET",
@@ -28062,7 +28062,7 @@ Ip.displayName = Bp;
28062
28062
  function j1(r) {
28063
28063
  return r ? "open" : "closed";
28064
28064
  }
28065
- var xp = "DialogTitleWarning", [UV, Rp] = c9(xp, {
28065
+ var xp = "DialogTitleWarning", [YV, Rp] = c9(xp, {
28066
28066
  contentName: ii,
28067
28067
  titleName: X1,
28068
28068
  docsSlug: "dialog"
@@ -34008,9 +34008,16 @@ const $M = {
34008
34008
  /* @__PURE__ */ u("p", { className: "text-foreground mt-2", children: "Our compliance team will review your information, and we'll notify you once verification is complete." }),
34009
34009
  /* @__PURE__ */ u("p", { className: "text-foreground mt-2", children: "Thank you for your patience." }),
34010
34010
  r && /* @__PURE__ */ u(p0, { className: "text-md mt-8", onClick: r, children: "Explore App" })
34011
- ] }) }) }), cm = 20, dm = 3, WM = 6e4, DM = (r, e, a) => {
34011
+ ] }) }) });
34012
+ function WM(r) {
34013
+ return new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())).toISOString();
34014
+ }
34015
+ const cm = 20, dm = 3, DM = 6e4, OM = (r, e, a) => {
34012
34016
  const t = new FormData();
34013
- return t.append("section", r), t.append("data", JSON.stringify(e)), Object.entries(a).forEach(([n, i]) => {
34017
+ return t.append("section", r), t.append(
34018
+ "data",
34019
+ JSON.stringify(e, (n, i) => i instanceof Date ? WM(i) : i)
34020
+ ), Object.entries(a).forEach(([n, i]) => {
34014
34021
  if (i) {
34015
34022
  if (i instanceof File) {
34016
34023
  t.append(n, i);
@@ -34034,11 +34041,11 @@ const $M = {
34034
34041
  if (Object.values(a).flat().filter((v) => v instanceof File).some((v) => v.size > cm * 1024 * 1024))
34035
34042
  return console.error(`updateSection (${s}) error: file exceeds ${cm}MB limit`), !1;
34036
34043
  for (let v = 1; v <= dm; v++) {
34037
- const w = DM(r, e, a);
34044
+ const w = OM(r, e, a);
34038
34045
  try {
34039
34046
  const { data: N } = await v0.patch(`${i}/api/${s}/${A}`, w, {
34040
34047
  headers: { "X-API-Key": o },
34041
- timeout: WM,
34048
+ timeout: DM,
34042
34049
  signal: n,
34043
34050
  onUploadProgress: (I) => {
34044
34051
  var k;
@@ -34066,12 +34073,12 @@ const $M = {
34066
34073
  license: "drivers_license",
34067
34074
  passport: "passport",
34068
34075
  voterId: "voter_id"
34069
- }, OM = {
34076
+ }, MM = {
34070
34077
  national_id: "id",
34071
34078
  drivers_license: "license",
34072
34079
  passport: "passport",
34073
34080
  voter_id: "voterId"
34074
- }, MM = ({
34081
+ }, VM = ({
34075
34082
  apiEndpoint: r,
34076
34083
  apiKey: e,
34077
34084
  appIntegrationKey: a,
@@ -34128,7 +34135,7 @@ const $M = {
34128
34135
  }
34129
34136
  const x = _.data;
34130
34137
  v(x._id);
34131
- const B = OM[x.document_type || ""] || "";
34138
+ const B = MM[x.document_type || ""] || "";
34132
34139
  R(B), N({
34133
34140
  full_name: x.full_name || "",
34134
34141
  email: x.email || i || "",
@@ -34191,7 +34198,7 @@ const $M = {
34191
34198
  full_name: rr,
34192
34199
  email: L,
34193
34200
  phone: tr,
34194
- birth: P.toISOString().split("T")[0],
34201
+ birth: P,
34195
34202
  country: H,
34196
34203
  tax_identification_number: j
34197
34204
  },
@@ -34398,7 +34405,7 @@ const Ec = (r) => {
34398
34405
  const e = 1024, a = ["Bytes", "KB", "MB", "GB"], t = Math.floor(Math.log(r) / Math.log(e));
34399
34406
  return parseFloat((r / Math.pow(e, t)).toFixed(2)) + " " + a[t];
34400
34407
  };
34401
- function VM(r, e) {
34408
+ function GM(r, e) {
34402
34409
  const { maxSize: a, accept: t, maxFiles: n } = e, i = [], o = [];
34403
34410
  return r ? (Array.from(r).forEach((s) => {
34404
34411
  if (a && s.size > a) {
@@ -35201,13 +35208,13 @@ onmessage = (message) => {
35201
35208
  return A;
35202
35209
  });
35203
35210
  })(t9);
35204
- var GM = t9.exports;
35205
- const XM = /* @__PURE__ */ Ks(GM), jM = async (r) => {
35211
+ var XM = t9.exports;
35212
+ const jM = /* @__PURE__ */ Ks(XM), LM = async (r) => {
35206
35213
  try {
35207
35214
  const e = r.name.toLowerCase();
35208
35215
  if (!e.endsWith(".heic") && !e.endsWith(".heif"))
35209
35216
  return r;
35210
- let a = await XM({
35217
+ let a = await jM({
35211
35218
  blob: r,
35212
35219
  toType: "image/jpeg",
35213
35220
  quality: 0.7
@@ -35221,9 +35228,9 @@ const XM = /* @__PURE__ */ Ks(GM), jM = async (r) => {
35221
35228
  } catch (e) {
35222
35229
  return console.error("HEIC/HEIF conversion failed:", e), r;
35223
35230
  }
35224
- }, LM = "Something went wrong.";
35225
- function UM(r, e) {
35226
- return r instanceof Array && (r = r[0]), r instanceof Error ? r.message : typeof r == "string" ? r : LM;
35231
+ }, UM = "Something went wrong.";
35232
+ function YM(r, e) {
35233
+ return r instanceof Array && (r = r[0]), r instanceof Error ? r.message : typeof r == "string" ? r : UM;
35227
35234
  }
35228
35235
  const ho = _2(
35229
35236
  ({
@@ -35248,7 +35255,7 @@ const ho = _2(
35248
35255
  }, N) => {
35249
35256
  const [I, R] = a0([]), [k, T] = a0(!1), { toast: M } = Yo(), J = Fe(0), q = Fe(null), nr = c || `file-field-${r.toLowerCase().replace(/\s+/g, "-")}`, rr = async (C) => {
35250
35257
  try {
35251
- const _ = await jM(C), x = _;
35258
+ const _ = await LM(C), x = _;
35252
35259
  x.preview = URL.createObjectURL(_), R((B) => {
35253
35260
  if (!B.includes(C))
35254
35261
  return URL.revokeObjectURL(x.preview), B;
@@ -35274,7 +35281,7 @@ const ho = _2(
35274
35281
  _ || (R([]), h == null || h(null));
35275
35282
  return;
35276
35283
  }
35277
- const x = Array.from(C), { valid: B, errors: $ } = VM(x, {
35284
+ const x = Array.from(C), { valid: B, errors: $ } = GM(x, {
35278
35285
  maxSize: o,
35279
35286
  accept: n,
35280
35287
  maxFiles: A ? A - (_ ? I.length : 0) : void 0
@@ -35282,7 +35289,7 @@ const ho = _2(
35282
35289
  if ($.length > 0) {
35283
35290
  M({
35284
35291
  title: "Validation Error",
35285
- description: UM($[0]),
35292
+ description: YM($[0]),
35286
35293
  variant: "destructive"
35287
35294
  });
35288
35295
  return;
@@ -35437,7 +35444,7 @@ const ho = _2(
35437
35444
  }
35438
35445
  );
35439
35446
  ho.displayName = "FileUploadField";
35440
- const Cc = 5, YM = 10, JA = {
35447
+ const Cc = 5, HM = 10, JA = {
35441
35448
  company_structure: {
35442
35449
  label: "Company Structure",
35443
35450
  description: "Upload document showing directors & legal representatives",
@@ -35469,13 +35476,13 @@ const Cc = 5, YM = 10, JA = {
35469
35476
  "bank_statement",
35470
35477
  "void_cheque",
35471
35478
  "business_license"
35472
- ], HM = (r) => {
35479
+ ], QM = (r) => {
35473
35480
  const e = {};
35474
35481
  return r.forEach((a) => {
35475
35482
  const t = JA[a].required;
35476
35483
  e[a] = GN(XA(File)).max(Cc, `Maximum ${Cc} files allowed`).refine((n) => !t || n.length > 0, "At least one file is required");
35477
35484
  }), hi(e);
35478
- }, QM = ({
35485
+ }, JM = ({
35479
35486
  data: r,
35480
35487
  onDataChange: e,
35481
35488
  onContinue: a,
@@ -35492,7 +35499,7 @@ const Cc = 5, YM = 10, JA = {
35492
35499
  const o = X.useMemo(() => [...i].sort((h, d) => {
35493
35500
  const b = JA[h].required, m = JA[d].required;
35494
35501
  return b && !m ? -1 : !b && m ? 1 : mm.indexOf(h) - mm.indexOf(d);
35495
- }), [i]), A = HM(o), s = ci({
35502
+ }), [i]), A = QM(o), s = ci({
35496
35503
  resolver: di(A),
35497
35504
  defaultValues: Object.fromEntries(o.map((h) => [h, r[h] || []]))
35498
35505
  }), { isSubmitting: f } = s.formState, l = (h) => (d) => {
@@ -35527,7 +35534,7 @@ const Cc = 5, YM = 10, JA = {
35527
35534
  required: d.required,
35528
35535
  multiple: !0,
35529
35536
  maxFiles: Cc,
35530
- maxSize: YM * 1024 * 1024,
35537
+ maxSize: HM * 1024 * 1024,
35531
35538
  accept: "image/*,application/pdf,.pdf",
35532
35539
  placeholder: "Drop files here or click to upload",
35533
35540
  hint: d.description,
@@ -35646,13 +35653,13 @@ const Cc = 5, YM = 10, JA = {
35646
35653
  }
35647
35654
  ) })
35648
35655
  ] }) });
35649
- }, JM = hi({
35656
+ }, zM = hi({
35650
35657
  industry: Kr().min(1, "Industry is required"),
35651
35658
  business_model: Kr().min(1, "Business model is required"),
35652
35659
  avg_transaction_size: Kr().trim().min(1, "Average transaction size is required").refine((r) => !isNaN(Number(r)), { message: "Must be a valid number" }).refine((r) => Number(r) > 0, { message: "Must be greater than 0" }),
35653
35660
  monthly_sales_volume: Kr().trim().min(1, "Monthly sales volume is required").refine((r) => !isNaN(Number(r)), { message: "Must be a valid number" }).refine((r) => Number(r) > 0, { message: "Must be greater than 0" }),
35654
35661
  website_url: Kr().min(1, "Website URL is required").url("Please enter a valid URL")
35655
- }), zM = [
35662
+ }), KM = [
35656
35663
  { value: "technology", label: "Technology" },
35657
35664
  { value: "finance", label: "Finance" },
35658
35665
  { value: "healthcare", label: "Healthcare" },
@@ -35662,7 +35669,7 @@ const Cc = 5, YM = 10, JA = {
35662
35669
  { value: "hospitality", label: "Hospitality" },
35663
35670
  { value: "real-estate", label: "Real Estate" },
35664
35671
  { value: "consulting", label: "Consulting" }
35665
- ], KM = [
35672
+ ], qM = [
35666
35673
  { value: "b2b", label: "B2B (Business to Business)" },
35667
35674
  { value: "b2c", label: "B2C (Business to Consumer)" },
35668
35675
  { value: "b2b2c", label: "B2B2C (Business to Business to Consumer)" },
@@ -35670,7 +35677,7 @@ const Cc = 5, YM = 10, JA = {
35670
35677
  { value: "saas", label: "SaaS (Software as a Service)" },
35671
35678
  { value: "subscription", label: "Subscription" },
35672
35679
  { value: "freemium", label: "Freemium" }
35673
- ], qM = ({
35680
+ ], rV = ({
35674
35681
  data: r,
35675
35682
  onDataChange: e,
35676
35683
  onContinue: a,
@@ -35678,7 +35685,7 @@ const Cc = 5, YM = 10, JA = {
35678
35685
  renderProgress: n
35679
35686
  }) => {
35680
35687
  const i = ci({
35681
- resolver: di(JM),
35688
+ resolver: di(zM),
35682
35689
  defaultValues: {
35683
35690
  industry: r.industry,
35684
35691
  business_model: r.business_model,
@@ -35710,7 +35717,7 @@ const Cc = 5, YM = 10, JA = {
35710
35717
  {
35711
35718
  value: A.value,
35712
35719
  onValueChange: A.onChange,
35713
- options: zM,
35720
+ options: KM,
35714
35721
  placeholder: "Enter industry",
35715
35722
  name: "industry"
35716
35723
  }
@@ -35731,7 +35738,7 @@ const Cc = 5, YM = 10, JA = {
35731
35738
  {
35732
35739
  value: A.value,
35733
35740
  onValueChange: A.onChange,
35734
- options: KM,
35741
+ options: qM,
35735
35742
  placeholder: "Enter business model",
35736
35743
  name: "business_model"
35737
35744
  }
@@ -35781,7 +35788,7 @@ const Cc = 5, YM = 10, JA = {
35781
35788
  /* @__PURE__ */ u("div", { className: "mt-6", children: n() })
35782
35789
  ] })
35783
35790
  ] });
35784
- }, rV = async (r, e) => {
35791
+ }, eV = async (r, e) => {
35785
35792
  const { data: a } = await v0.get(
35786
35793
  `${r}/api/kyb/mcc-codes`,
35787
35794
  {
@@ -35794,9 +35801,9 @@ const Cc = 5, YM = 10, JA = {
35794
35801
  if (!a.success || !Array.isArray(a.data))
35795
35802
  throw new Error("Invalid MCC codes response");
35796
35803
  return a.data;
35797
- }, eV = (r, e) => n8({
35804
+ }, aV = (r, e) => n8({
35798
35805
  queryKey: ["mcc-codes", r, e],
35799
- queryFn: () => rV(r, e),
35806
+ queryFn: () => eV(r, e),
35800
35807
  enabled: !!r && !!e
35801
35808
  }), n9 = g.forwardRef(
35802
35809
  ({
@@ -35809,7 +35816,7 @@ const Cc = 5, YM = 10, JA = {
35809
35816
  className: o,
35810
35817
  "data-testid": A
35811
35818
  }, s) => {
35812
- const [f, l] = g.useState(!1), c = g.useRef(null), { data: h = [], isLoading: d, isError: b } = eV(a, t), m = h.find((w) => w.code === r), v = (w) => {
35819
+ const [f, l] = g.useState(!1), c = g.useRef(null), { data: h = [], isLoading: d, isError: b } = aV(a, t), m = h.find((w) => w.code === r), v = (w) => {
35813
35820
  e(w), l(!1);
35814
35821
  };
35815
35822
  return g.useEffect(() => {
@@ -35914,7 +35921,7 @@ const Cc = 5, YM = 10, JA = {
35914
35921
  }
35915
35922
  );
35916
35923
  n9.displayName = "MccCodeSelect";
35917
- const aV = hi({
35924
+ const tV = hi({
35918
35925
  registration_number: Kr().min(1, "Registration number is required"),
35919
35926
  mcc_code: Kr().min(1, "MCC code is required"),
35920
35927
  country: Kr().min(1, "Country is required"),
@@ -35925,12 +35932,12 @@ const aV = hi({
35925
35932
  date_of_establishment: XN.date({
35926
35933
  required_error: "Date of establishment is required"
35927
35934
  })
35928
- }), tV = [
35935
+ }), nV = [
35929
35936
  { value: "llc", label: "LLC" },
35930
35937
  { value: "corporation", label: "Corporation" },
35931
35938
  { value: "partnership", label: "Partnership" },
35932
35939
  { value: "sole-proprietorship", label: "Sole Proprietorship" }
35933
- ], nV = ({
35940
+ ], iV = ({
35934
35941
  data: r,
35935
35942
  onDataChange: e,
35936
35943
  onContinue: a,
@@ -35940,7 +35947,7 @@ const aV = hi({
35940
35947
  apiKey: o
35941
35948
  }) => {
35942
35949
  const A = ci({
35943
- resolver: di(aV),
35950
+ resolver: di(tV),
35944
35951
  defaultValues: {
35945
35952
  registration_number: r.registration_number,
35946
35953
  mcc_code: r.mcc_code ?? "",
@@ -36065,7 +36072,7 @@ const aV = hi({
36065
36072
  {
36066
36073
  value: f.value,
36067
36074
  onValueChange: f.onChange,
36068
- options: tV,
36075
+ options: nV,
36069
36076
  placeholder: "Enter corporate type",
36070
36077
  name: "corporate_type"
36071
36078
  }
@@ -36117,16 +36124,16 @@ const aV = hi({
36117
36124
  /* @__PURE__ */ u("div", { className: "mt-6", children: n() })
36118
36125
  ] })
36119
36126
  ] });
36120
- }, iV = t5(/* @__PURE__ */ new Date()), oV = hi({
36127
+ }, oV = t5(/* @__PURE__ */ new Date()), AV = hi({
36121
36128
  full_name: Kr().min(2, "Full name must be at least 2 characters"),
36122
36129
  title: Kr().min(1, "Title is required"),
36123
36130
  email: Kr().min(1, "Email is required").email("Invalid email format"),
36124
36131
  birth: Y8({
36125
36132
  required_error: "Birth date is required"
36126
- }).refine((r) => Js(r, iV), { message: "You must be at least 16 years old" }),
36133
+ }).refine((r) => Js(r, oV), { message: "You must be at least 16 years old" }),
36127
36134
  phone_number: Kr().min(1, "Phone number is required").refine((r) => hp(r), { message: "Invalid phone number" }),
36128
36135
  ssn_or_equivalent: Kr().trim().min(1, "SSN / Equivalent is required")
36129
- }), AV = ({
36136
+ }), sV = ({
36130
36137
  data: r,
36131
36138
  onDataChange: e,
36132
36139
  onContinue: a,
@@ -36134,7 +36141,7 @@ const aV = hi({
36134
36141
  renderProgress: n
36135
36142
  }) => {
36136
36143
  const i = ci({
36137
- resolver: di(oV),
36144
+ resolver: di(AV),
36138
36145
  defaultValues: {
36139
36146
  full_name: r.full_name,
36140
36147
  title: r.title,
@@ -36268,7 +36275,7 @@ const aV = hi({
36268
36275
  /* @__PURE__ */ u("div", { className: "mt-6", children: n() })
36269
36276
  ] })
36270
36277
  ] });
36271
- }, sV = hi({
36278
+ }, fV = hi({
36272
36279
  inventory_maintained: Kr().min(1, "Please select an inventory option"),
36273
36280
  offsite_address: Kr().optional(),
36274
36281
  fulfillment_agreement: XA(File).nullable().optional(),
@@ -36307,7 +36314,7 @@ const aV = hi({
36307
36314
  message: "Certificate of Analysis document is required when COA is available",
36308
36315
  path: ["coa_document"]
36309
36316
  });
36310
- }), fV = [
36317
+ }), lV = [
36311
36318
  { value: "on-site", label: "On-Site" },
36312
36319
  { value: "off-site", label: "Off-Site (e.g., Warehouse)" },
36313
36320
  { value: "third-party", label: "3rd Party Fulfillment Center" },
@@ -36315,26 +36322,26 @@ const aV = hi({
36315
36322
  ], PA = [
36316
36323
  { value: "no", label: "No" },
36317
36324
  { value: "yes", label: "Yes" }
36318
- ], lV = [
36325
+ ], uV = [
36319
36326
  { value: "24-hours", label: "Within 24 Hours" },
36320
36327
  { value: "2-days", label: "2 Days" },
36321
36328
  { value: "3-10-days", label: "3-10 Days" },
36322
36329
  { value: "11-30-days", label: "11-30 Days" },
36323
36330
  { value: "31-90-days", label: "31-90 Days" },
36324
36331
  { value: "90-plus-days", label: "90+ Days" }
36325
- ], uV = [
36332
+ ], cV = [
36326
36333
  { value: "24-hours", label: "Within 24 Hours" },
36327
36334
  { value: "2-5-days", label: "2-5 Days" },
36328
36335
  { value: "6-10-days", label: "6-10 Days" },
36329
36336
  { value: "11-plus-days", label: "11+ Days" }
36330
- ], cV = [
36337
+ ], dV = [
36331
36338
  { value: "time-of-order", label: "Time of Order" },
36332
36339
  { value: "upon-shipment", label: "Upon Shipment" }
36333
- ], dV = [
36340
+ ], hV = [
36334
36341
  { value: "business-bankruptcy", label: "Business Bankruptcy" },
36335
36342
  { value: "personal-bankruptcy", label: "Personal Bankruptcy" },
36336
36343
  { value: "never", label: "Never" }
36337
- ], hV = ({
36344
+ ], bV = ({
36338
36345
  data: r,
36339
36346
  onDataChange: e,
36340
36347
  onContinue: a,
@@ -36342,7 +36349,7 @@ const aV = hi({
36342
36349
  renderProgress: n
36343
36350
  }) => {
36344
36351
  const i = ci({
36345
- resolver: di(sV),
36352
+ resolver: di(fV),
36346
36353
  defaultValues: {
36347
36354
  inventory_maintained: r.inventory_maintained || "",
36348
36355
  offsite_address: r.offsite_address || "",
@@ -36387,7 +36394,7 @@ const aV = hi({
36387
36394
  /* @__PURE__ */ u(jr, { children: "Inventory Maintained" }),
36388
36395
  /* @__PURE__ */ O(Ha, { onValueChange: d.onChange, value: d.value, disabled: o, children: [
36389
36396
  /* @__PURE__ */ u(Dr, { children: /* @__PURE__ */ u(_a, { children: /* @__PURE__ */ u(Qa, { placeholder: "Select inventory option" }) }) }),
36390
- /* @__PURE__ */ u(Na, { children: fV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36397
+ /* @__PURE__ */ u(Na, { children: lV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36391
36398
  ] }),
36392
36399
  /* @__PURE__ */ u(Or, {})
36393
36400
  ] })
@@ -36556,7 +36563,7 @@ const aV = hi({
36556
36563
  /* @__PURE__ */ u(jr, { children: "How long after charging the customer is the product fulfilled or service begun?" }),
36557
36564
  /* @__PURE__ */ O(Ha, { onValueChange: d.onChange, value: d.value, disabled: o, children: [
36558
36565
  /* @__PURE__ */ u(Dr, { children: /* @__PURE__ */ u(_a, { children: /* @__PURE__ */ u(Qa, { placeholder: "Select fulfillment time" }) }) }),
36559
- /* @__PURE__ */ u(Na, { children: lV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36566
+ /* @__PURE__ */ u(Na, { children: uV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36560
36567
  ] }),
36561
36568
  /* @__PURE__ */ u(Or, {})
36562
36569
  ] })
@@ -36571,7 +36578,7 @@ const aV = hi({
36571
36578
  /* @__PURE__ */ u(jr, { children: "How long after order does the cardholder receive the product/service?" }),
36572
36579
  /* @__PURE__ */ O(Ha, { onValueChange: d.onChange, value: d.value, disabled: o, children: [
36573
36580
  /* @__PURE__ */ u(Dr, { children: /* @__PURE__ */ u(_a, { children: /* @__PURE__ */ u(Qa, { placeholder: "Select delivery time" }) }) }),
36574
- /* @__PURE__ */ u(Na, { children: uV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36581
+ /* @__PURE__ */ u(Na, { children: cV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36575
36582
  ] }),
36576
36583
  /* @__PURE__ */ u(Or, {})
36577
36584
  ] })
@@ -36586,7 +36593,7 @@ const aV = hi({
36586
36593
  /* @__PURE__ */ u(jr, { children: "When is the cardholder charged?" }),
36587
36594
  /* @__PURE__ */ O(Ha, { onValueChange: d.onChange, value: d.value, disabled: o, children: [
36588
36595
  /* @__PURE__ */ u(Dr, { children: /* @__PURE__ */ u(_a, { children: /* @__PURE__ */ u(Qa, { placeholder: "Select charge time" }) }) }),
36589
- /* @__PURE__ */ u(Na, { children: cV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36596
+ /* @__PURE__ */ u(Na, { children: dV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36590
36597
  ] }),
36591
36598
  /* @__PURE__ */ u(Or, {})
36592
36599
  ] })
@@ -36601,7 +36608,7 @@ const aV = hi({
36601
36608
  /* @__PURE__ */ u(jr, { children: "Have you (your business or any principal) filed bankruptcy?" }),
36602
36609
  /* @__PURE__ */ O(Ha, { onValueChange: d.onChange, value: d.value, disabled: o, children: [
36603
36610
  /* @__PURE__ */ u(Dr, { children: /* @__PURE__ */ u(_a, { children: /* @__PURE__ */ u(Qa, { placeholder: "Select an option" }) }) }),
36604
- /* @__PURE__ */ u(Na, { children: dV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36611
+ /* @__PURE__ */ u(Na, { children: hV.map((b) => /* @__PURE__ */ u(Ba, { value: b.value, children: b.label }, b.value)) })
36605
36612
  ] }),
36606
36613
  /* @__PURE__ */ u(Or, {})
36607
36614
  ] })
@@ -36639,7 +36646,7 @@ const aV = hi({
36639
36646
  /* @__PURE__ */ u("div", { className: "mt-6", children: n() })
36640
36647
  ] })
36641
36648
  ] });
36642
- }, bV = async ({
36649
+ }, mV = async ({
36643
36650
  kybId: r,
36644
36651
  apiEndpoint: e,
36645
36652
  apiKey: a,
@@ -36701,7 +36708,7 @@ const aV = hi({
36701
36708
  drivers_license: "license",
36702
36709
  passport: "passport",
36703
36710
  voter_id: "voterId"
36704
- }, mV = ({
36711
+ }, gV = ({
36705
36712
  apiEndpoint: r,
36706
36713
  apiKey: e,
36707
36714
  appIntegrationKey: a,
@@ -36874,7 +36881,7 @@ const aV = hi({
36874
36881
  );
36875
36882
  case "personal-details":
36876
36883
  return /* @__PURE__ */ u(
36877
- AV,
36884
+ sV,
36878
36885
  {
36879
36886
  data: I,
36880
36887
  onDataChange: (F) => R((S) => ({ ...S, ...F })),
@@ -37012,7 +37019,7 @@ const aV = hi({
37012
37019
  );
37013
37020
  case "business-information":
37014
37021
  return /* @__PURE__ */ u(
37015
- nV,
37022
+ iV,
37016
37023
  {
37017
37024
  data: M,
37018
37025
  onDataChange: (F) => J((S) => ({ ...S, ...F })),
@@ -37049,7 +37056,7 @@ const aV = hi({
37049
37056
  );
37050
37057
  case "company-activity":
37051
37058
  return _ ? /* @__PURE__ */ u(
37052
- qM,
37059
+ rV,
37053
37060
  {
37054
37061
  data: rr,
37055
37062
  onDataChange: (F) => L((S) => ({
@@ -37082,7 +37089,7 @@ const aV = hi({
37082
37089
  ) : (c(x ? "questionary" : "company-documents"), null);
37083
37090
  case "questionary":
37084
37091
  return x ? /* @__PURE__ */ u(
37085
- hV,
37092
+ bV,
37086
37093
  {
37087
37094
  data: H,
37088
37095
  onDataChange: (F) => j((S) => ({ ...S, ...F })),
@@ -37108,7 +37115,7 @@ const aV = hi({
37108
37115
  ) : (c("company-documents"), null);
37109
37116
  case "company-documents":
37110
37117
  return /* @__PURE__ */ u(
37111
- QM,
37118
+ JM,
37112
37119
  {
37113
37120
  data: tr,
37114
37121
  onDataChange: (F) => P((S) => ({ ...S, ...F })),
@@ -37147,7 +37154,7 @@ const aV = hi({
37147
37154
  r9,
37148
37155
  {
37149
37156
  onComplete: async () => {
37150
- const F = await bV({
37157
+ const F = await mV({
37151
37158
  kybId: w,
37152
37159
  apiEndpoint: r,
37153
37160
  apiKey: e,
@@ -37182,15 +37189,15 @@ const aV = hi({
37182
37189
  return null;
37183
37190
  }
37184
37191
  })() });
37185
- }, gV = mn(void 0), pV = ({
37192
+ }, pV = mn(void 0), vV = ({
37186
37193
  apiEndpoint: r,
37187
37194
  children: e
37188
37195
  }) => (q0(() => {
37189
- }, [r]), /* @__PURE__ */ u(gV.Provider, { value: { apiEndpoint: r }, children: e })), vV = new UE(), YV = (r) => /* @__PURE__ */ u(HE, { client: vV, children: /* @__PURE__ */ u(pV, { apiEndpoint: r.apiEndpoint, children: /* @__PURE__ */ O(wE, { children: [
37196
+ }, [r]), /* @__PURE__ */ u(pV.Provider, { value: { apiEndpoint: r }, children: e })), yV = new UE(), HV = (r) => /* @__PURE__ */ u(HE, { client: yV, children: /* @__PURE__ */ u(vV, { apiEndpoint: r.apiEndpoint, children: /* @__PURE__ */ O(wE, { children: [
37190
37197
  /* @__PURE__ */ u(ek, {}),
37191
37198
  /* @__PURE__ */ u(Fk, {}),
37192
- r.isKYB ? /* @__PURE__ */ u(mV, { ...r }) : /* @__PURE__ */ u(MM, { ...r })
37199
+ r.isKYB ? /* @__PURE__ */ u(gV, { ...r }) : /* @__PURE__ */ u(VM, { ...r })
37193
37200
  ] }) }) });
37194
37201
  export {
37195
- YV as default
37202
+ HV as default
37196
37203
  };