@deframe-sdk/components 0.1.49 → 0.1.51

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.mjs CHANGED
@@ -3129,7 +3129,9 @@ function KYCPageHeader({
3129
3129
  totalSteps,
3130
3130
  onBack,
3131
3131
  onClose,
3132
- className
3132
+ className,
3133
+ backLabel = "Voltar",
3134
+ closeLabel = "Fechar"
3133
3135
  }) {
3134
3136
  return /* @__PURE__ */ jsxs(
3135
3137
  "div",
@@ -3141,9 +3143,9 @@ function KYCPageHeader({
3141
3143
  className
3142
3144
  ),
3143
3145
  children: [
3144
- /* @__PURE__ */ jsx(IconButton, { onClick: onBack, label: "Voltar", testId: "kyc-back-button", children: /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z" }) }) }),
3146
+ /* @__PURE__ */ jsx(IconButton, { onClick: onBack, label: backLabel, testId: "kyc-back-button", children: /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z" }) }) }),
3145
3147
  typeof step === "number" && typeof totalSteps === "number" ? /* @__PURE__ */ jsx(KYCStepIndicator, { total: totalSteps, current: Math.max(step - 1, 0) }) : /* @__PURE__ */ jsx("div", { className: "h-9 flex-1", "aria-hidden": "true" }),
3146
- /* @__PURE__ */ jsx(IconButton, { onClick: onClose, label: "Fechar", testId: "kyc-close-button", children: /* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M18 6L6 18M6 6l12 12", strokeLinecap: "round" }) }) })
3148
+ /* @__PURE__ */ jsx(IconButton, { onClick: onClose, label: closeLabel, testId: "kyc-close-button", children: /* @__PURE__ */ jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M18 6L6 18M6 6l12 12", strokeLinecap: "round" }) }) })
3147
3149
  ]
3148
3150
  }
3149
3151
  );
@@ -3236,10 +3238,12 @@ function KYCFormPage({
3236
3238
  footer,
3237
3239
  actions = [],
3238
3240
  className,
3239
- containerMode = "fullscreen"
3241
+ containerMode = "fullscreen",
3242
+ backLabel,
3243
+ closeLabel
3240
3244
  }) {
3241
3245
  return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3242
- /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onBack, onClose }),
3246
+ /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onBack, onClose, backLabel, closeLabel }),
3243
3247
  /* @__PURE__ */ jsxs(PageBody, { children: [
3244
3248
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3245
3249
  /* @__PURE__ */ jsx(KYCPageSection, { title, description }),
@@ -3269,13 +3273,6 @@ function KYCFormPage({
3269
3273
  ] })
3270
3274
  ] });
3271
3275
  }
3272
- function CountrySelect() {
3273
- const [value, setValue] = useState("brasil");
3274
- return /* @__PURE__ */ jsxs(Select, { value, onValueChange: setValue, children: [
3275
- /* @__PURE__ */ jsx(SelectTrigger, { placeholder: "Selecione o pa\xEDs" }),
3276
- /* @__PURE__ */ jsx(SelectContent, { children: /* @__PURE__ */ jsx(SelectItem, { value: "brasil", children: "Brasil" }) })
3277
- ] });
3278
- }
3279
3276
  function DefaultAddressLoadingContent() {
3280
3277
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
3281
3278
  /* @__PURE__ */ jsx(Skeleton, { width: "100%", height: "48px", variant: "rect" }),
@@ -3311,7 +3308,9 @@ function KYCAddressPage({
3311
3308
  banners = [],
3312
3309
  actions,
3313
3310
  containerMode = "fullscreen",
3314
- onNext
3311
+ onNext,
3312
+ backLabel,
3313
+ closeLabel
3315
3314
  }) {
3316
3315
  const defaultActions = actions != null ? actions : [
3317
3316
  {
@@ -3348,7 +3347,7 @@ function KYCAddressPage({
3348
3347
  className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]",
3349
3348
  children: [
3350
3349
  /* @__PURE__ */ jsx(InputLabel, { htmlFor: "country", children: "Pa\xEDs" }),
3351
- /* @__PURE__ */ jsx(CountrySelect, {})
3350
+ /* @__PURE__ */ jsx(InputField, { id: "country", value: "Brasil", disabled: true, readOnly: true })
3352
3351
  ]
3353
3352
  }
3354
3353
  )
@@ -3366,6 +3365,8 @@ function KYCAddressPage({
3366
3365
  banners,
3367
3366
  actions: defaultActions,
3368
3367
  containerMode,
3368
+ backLabel,
3369
+ closeLabel,
3369
3370
  children: [
3370
3371
  cepField != null ? cepField : fallbackFields.cepField,
3371
3372
  isLoading ? loadingContent != null ? loadingContent : /* @__PURE__ */ jsx(DefaultAddressLoadingContent, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3540,17 +3541,30 @@ function KYCEditPage(_a) {
3540
3541
  function KYCIntroPage({
3541
3542
  screenId = "intro",
3542
3543
  onClose,
3543
- title = "Verifica\xE7\xE3o de identidade",
3544
- description = "Para garantir a seguran\xE7a da plataforma, precisamos confirmar sua identidade. O processo leva cerca de 5 minutos.",
3544
+ title,
3545
+ description,
3545
3546
  checklistItems = DEFAULT_INTRO_CHECKLIST,
3546
3547
  banners = [],
3547
3548
  legalNotice,
3548
- primaryAction = { label: "Come\xE7ar verifica\xE7\xE3o" },
3549
+ primaryAction,
3549
3550
  className,
3550
- containerMode = "fullscreen"
3551
+ containerMode = "fullscreen",
3552
+ backLabel = "Voltar",
3553
+ closeLabel = "Fechar",
3554
+ visualVariant = "default"
3551
3555
  }) {
3552
- return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, containerMode, children: [
3553
- onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose }),
3556
+ const isCompact = visualVariant === "compact";
3557
+ const iconClasses = twMerge(
3558
+ "flex items-center justify-center text-[color:var(--deframe-widget-color-brand-primary)]",
3559
+ isCompact ? "h-[44px] w-[44px]" : [
3560
+ "h-[64px] w-[64px] rounded-[var(--deframe-widget-size-radius-full)]",
3561
+ "[background:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)]",
3562
+ "[box-shadow:0_0_0_7px_color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent),0_0_24px_color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_22%,transparent)]"
3563
+ ].join(" ")
3564
+ );
3565
+ const iconSize = isCompact ? 32 : 36;
3566
+ return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, containerMode, className: isCompact ? "min-h-0" : void 0, children: [
3567
+ onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3554
3568
  /* @__PURE__ */ jsxs(
3555
3569
  "div",
3556
3570
  {
@@ -3566,13 +3580,8 @@ function KYCIntroPage({
3566
3580
  "div",
3567
3581
  {
3568
3582
  "data-test-id": "kyc-intro-icon",
3569
- className: "flex h-[64px] w-[64px] items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3570
- style: {
3571
- background: "color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent)",
3572
- boxShadow: "0 0 0 7px color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent), 0 0 24px color-mix(in srgb, var(--deframe-widget-color-brand-primary) 22%, transparent)",
3573
- color: "var(--deframe-widget-color-brand-primary)"
3574
- },
3575
- children: /* @__PURE__ */ jsxs("svg", { width: "36", height: "36", viewBox: "0 0 44 44", fill: "none", "aria-hidden": "true", children: [
3583
+ className: iconClasses,
3584
+ children: /* @__PURE__ */ jsxs("svg", { width: iconSize, height: iconSize, viewBox: "0 0 44 44", fill: "none", "aria-hidden": "true", children: [
3576
3585
  /* @__PURE__ */ jsx("rect", { x: "8", y: "10", width: "28", height: "20", rx: "3", stroke: "currentColor", strokeWidth: "3" }),
3577
3586
  /* @__PURE__ */ jsx("circle", { cx: "22", cy: "20", r: "5", stroke: "currentColor", strokeWidth: "3" }),
3578
3587
  /* @__PURE__ */ jsx("path", { d: "M12 34c0-4 4.5-7 10-7s10 3 10 7", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round" })
@@ -3609,7 +3618,7 @@ function KYCIntroPage({
3609
3618
  )) }),
3610
3619
  legalNotice && /* @__PURE__ */ jsx("div", { className: "max-w-[320px] text-[length:var(--deframe-widget-font-size-xs)] leading-[var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: legalNotice })
3611
3620
  ] }),
3612
- /* @__PURE__ */ jsx("div", { className: "w-full", children: renderKYCActionButton(primaryAction, 0) })
3621
+ primaryAction && /* @__PURE__ */ jsx("div", { className: "w-full", children: renderKYCActionButton(primaryAction, 0) })
3613
3622
  ]
3614
3623
  }
3615
3624
  )
@@ -3622,20 +3631,35 @@ function KYCLoadingPage({
3622
3631
  description,
3623
3632
  note,
3624
3633
  className,
3625
- containerMode = "fullscreen"
3634
+ containerMode = "fullscreen",
3635
+ backLabel = "Voltar",
3636
+ closeLabel = "Fechar",
3637
+ loadingLabel = "Carregando",
3638
+ visualVariant = "default"
3626
3639
  }) {
3627
- return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3628
- onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose }),
3640
+ const isCompact = visualVariant === "compact";
3641
+ const loadingFrameClasses = twMerge(
3642
+ "flex items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3643
+ isCompact ? "h-12 w-12" : [
3644
+ "h-[72px] w-[72px]",
3645
+ "[background:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)]",
3646
+ "[box-shadow:0_0_0_7px_color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent),0_0_24px_color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_22%,transparent)]"
3647
+ ].join(" ")
3648
+ );
3649
+ const spinnerClasses = twMerge(
3650
+ "rounded-[var(--deframe-widget-size-radius-full)] border-[3px] border-[color:var(--deframe-widget-color-brand-primary)] border-t-transparent animate-spin",
3651
+ isCompact ? "h-10 w-10" : "h-9 w-9"
3652
+ );
3653
+ return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, className: twMerge(isCompact && "min-h-0", className), containerMode, children: [
3654
+ onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3629
3655
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--deframe-widget-size-gap-xl)] px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-xl)] text-center", children: [
3630
3656
  /* @__PURE__ */ jsx(
3631
3657
  "div",
3632
3658
  {
3633
- className: "flex h-[72px] w-[72px] items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3634
- style: {
3635
- background: "color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent)",
3636
- boxShadow: "0 0 0 7px color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent), 0 0 24px color-mix(in srgb, var(--deframe-widget-color-brand-primary) 22%, transparent)"
3637
- },
3638
- children: /* @__PURE__ */ jsx("div", { className: "h-9 w-9 rounded-full border-[3px] border-[color:var(--deframe-widget-color-brand-primary)] border-t-transparent animate-spin" })
3659
+ "data-slot": "kyc-loading-indicator",
3660
+ "data-test-id": "kyc-loading-indicator",
3661
+ className: loadingFrameClasses,
3662
+ children: /* @__PURE__ */ jsx("div", { className: spinnerClasses })
3639
3663
  }
3640
3664
  ),
3641
3665
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]", children: [
@@ -3643,8 +3667,8 @@ function KYCLoadingPage({
3643
3667
  description && /* @__PURE__ */ jsx("p", { className: "text-[length:var(--deframe-widget-font-size-sm)] leading-[var(--deframe-widget-font-leading-sm)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: description })
3644
3668
  ] }),
3645
3669
  note && /* @__PURE__ */ jsx(KYCMessageBanner, { variant: "info", children: note }),
3646
- /* @__PURE__ */ jsxs("div", { className: "text-[length:var(--deframe-widget-font-size-xs)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: [
3647
- "Carregando ",
3670
+ /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center justify-center gap-[var(--deframe-widget-size-gap-xs)] text-[length:var(--deframe-widget-font-size-xs)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: [
3671
+ /* @__PURE__ */ jsx("span", { children: loadingLabel }),
3648
3672
  /* @__PURE__ */ jsx(LoadingDots, {})
3649
3673
  ] })
3650
3674
  ] })
@@ -3664,10 +3688,12 @@ function KYCReviewPage({
3664
3688
  banners = [],
3665
3689
  actions = [],
3666
3690
  className,
3667
- containerMode = "fullscreen"
3691
+ containerMode = "fullscreen",
3692
+ backLabel,
3693
+ closeLabel
3668
3694
  }) {
3669
3695
  return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3670
- /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onClose }),
3696
+ /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onClose, backLabel, closeLabel }),
3671
3697
  /* @__PURE__ */ jsxs(PageBody2, { children: [
3672
3698
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3673
3699
  /* @__PURE__ */ jsx(KYCPageSection, { title, description }),
@@ -3696,10 +3722,12 @@ function KYCReviewPageSkeleton({
3696
3722
  onClose,
3697
3723
  step = 3,
3698
3724
  totalSteps = 4,
3699
- containerMode = "fullscreen"
3725
+ containerMode = "fullscreen",
3726
+ backLabel,
3727
+ closeLabel
3700
3728
  }) {
3701
3729
  return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, containerMode, children: [
3702
- /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onClose }),
3730
+ /* @__PURE__ */ jsx(KYCPageHeader, { step, totalSteps, onClose, backLabel, closeLabel }),
3703
3731
  /* @__PURE__ */ jsxs(PageBody3, { children: [
3704
3732
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3705
3733
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]", children: [
@@ -3790,13 +3818,15 @@ function KYCStatusPage({
3790
3818
  actions = [],
3791
3819
  footer,
3792
3820
  className,
3793
- containerMode = "fullscreen"
3821
+ containerMode = "fullscreen",
3822
+ backLabel,
3823
+ closeLabel
3794
3824
  }) {
3795
3825
  var _a;
3796
3826
  const effectiveStatus = (_a = panelStatus != null ? panelStatus : status) != null ? _a : "reviewing";
3797
3827
  const effectiveCards = cards != null ? cards : [{ status: resolveCardStatus(effectiveStatus), fields: DEFAULT_STATUS_FIELDS }];
3798
3828
  return /* @__PURE__ */ jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3799
- onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose }),
3829
+ onClose && /* @__PURE__ */ jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3800
3830
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-[var(--deframe-widget-size-gap-md)] px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]", children: [
3801
3831
  /* @__PURE__ */ jsx("div", { className: "rounded-[var(--deframe-widget-size-radius-md)] border border-[color:var(--deframe-widget-color-border-secondary)] bg-[color:var(--deframe-widget-color-bg-secondary)]", children: /* @__PURE__ */ jsx(
3802
3832
  KYCStatusPanel,
@@ -15663,7 +15693,8 @@ function OnchainWithdrawSignatureWarningView({
15663
15693
  blockchainCost,
15664
15694
  onCancel,
15665
15695
  onTryAgain,
15666
- className
15696
+ className,
15697
+ labels
15667
15698
  }) {
15668
15699
  const [showDetails, setShowDetails] = useState(true);
15669
15700
  return /* @__PURE__ */ jsxs(
@@ -15680,7 +15711,7 @@ function OnchainWithdrawSignatureWarningView({
15680
15711
  {
15681
15712
  onClick: onCancel,
15682
15713
  className: "absolute top-4 right-4 flex items-center justify-center w-8 h-8 text-[color:var(--deframe-widget-color-text-secondary)] hover:text-[color:var(--deframe-widget-color-text-primary)] transition cursor-pointer",
15683
- "aria-label": "Fechar",
15714
+ "aria-label": labels.closeAriaLabel,
15684
15715
  "data-test-id": "onchain-withdraw-signature-warning-close",
15685
15716
  children: /* @__PURE__ */ jsx(MdOutlineClose, { className: "w-6 h-6" })
15686
15717
  }
@@ -15693,7 +15724,7 @@ function OnchainWithdrawSignatureWarningView({
15693
15724
  {
15694
15725
  className: "text-[28px] [font-weight:var(--deframe-widget-font-weight-extrabold)] text-[color:var(--deframe-widget-color-text-primary)] leading-tight",
15695
15726
  "data-test-id": "onchain-withdraw-signature-warning-title",
15696
- children: "Saque n\xE3o assinado"
15727
+ children: labels.title
15697
15728
  }
15698
15729
  ),
15699
15730
  /* @__PURE__ */ jsx(
@@ -15701,7 +15732,7 @@ function OnchainWithdrawSignatureWarningView({
15701
15732
  {
15702
15733
  className: "text-[length:var(--deframe-widget-font-size-sm)] text-[color:var(--deframe-widget-color-text-secondary)] text-center",
15703
15734
  "data-test-id": "onchain-withdraw-signature-warning-subtitle",
15704
- children: "A assinatura da transa\xE7\xE3o foi cancelada. Nenhum valor foi enviado."
15735
+ children: labels.subtitle
15705
15736
  }
15706
15737
  )
15707
15738
  ] }),
@@ -15730,7 +15761,7 @@ function OnchainWithdrawSignatureWarningView({
15730
15761
  {
15731
15762
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15732
15763
  "data-test-id": "onchain-withdraw-signature-warning-sending-label",
15733
- children: "Voc\xEA est\xE1 enviando"
15764
+ children: labels.sendingLabel
15734
15765
  }
15735
15766
  ),
15736
15767
  /* @__PURE__ */ jsxs(
@@ -15752,7 +15783,7 @@ function OnchainWithdrawSignatureWarningView({
15752
15783
  {
15753
15784
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15754
15785
  "data-test-id": "onchain-withdraw-signature-warning-destination-label",
15755
- children: "Para o endere\xE7o"
15786
+ children: labels.destinationLabel
15756
15787
  }
15757
15788
  ),
15758
15789
  /* @__PURE__ */ jsx(
@@ -15779,10 +15810,10 @@ function OnchainWithdrawSignatureWarningView({
15779
15810
  {
15780
15811
  onClick: () => setShowDetails(!showDetails),
15781
15812
  className: "flex justify-between items-center w-full text-left cursor-pointer p-4",
15782
- "aria-label": "Detalhes da transa\xE7\xE3o",
15813
+ "aria-label": labels.detailsAriaLabel,
15783
15814
  "data-test-id": "onchain-withdraw-signature-warning-details-toggle",
15784
15815
  children: [
15785
- /* @__PURE__ */ jsx("span", { className: "text-[length:var(--deframe-widget-font-size-sm)] [font-weight:var(--deframe-widget-font-weight-semibold)]", children: "Detalhes da transa\xE7\xE3o" }),
15816
+ /* @__PURE__ */ jsx("span", { className: "text-[length:var(--deframe-widget-font-size-sm)] [font-weight:var(--deframe-widget-font-weight-semibold)]", children: labels.detailsToggleLabel }),
15786
15817
  /* @__PURE__ */ jsx(
15787
15818
  MdOutlineExpandMore,
15788
15819
  {
@@ -15802,7 +15833,7 @@ function OnchainWithdrawSignatureWarningView({
15802
15833
  {
15803
15834
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15804
15835
  "data-test-id": "onchain-withdraw-signature-warning-withdraw-amount-label",
15805
- children: "Valor de retirada"
15836
+ children: labels.withdrawAmountLabel
15806
15837
  }
15807
15838
  ),
15808
15839
  /* @__PURE__ */ jsxs(
@@ -15824,7 +15855,7 @@ function OnchainWithdrawSignatureWarningView({
15824
15855
  {
15825
15856
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15826
15857
  "data-test-id": "onchain-withdraw-signature-warning-blockchain-cost-label",
15827
- children: "Custo da blockchain"
15858
+ children: labels.blockchainCostLabel
15828
15859
  }
15829
15860
  ),
15830
15861
  /* @__PURE__ */ jsx(
@@ -15842,7 +15873,7 @@ function OnchainWithdrawSignatureWarningView({
15842
15873
  {
15843
15874
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15844
15875
  "data-test-id": "onchain-withdraw-signature-warning-receive-label",
15845
- children: "Voc\xEA receber\xE1"
15876
+ children: labels.receiveLabel
15846
15877
  }
15847
15878
  ),
15848
15879
  /* @__PURE__ */ jsxs(
@@ -15874,7 +15905,7 @@ function OnchainWithdrawSignatureWarningView({
15874
15905
  className: "flex-1",
15875
15906
  onClick: onCancel,
15876
15907
  "data-test-id": "onchain-withdraw-signature-warning-cancel",
15877
- children: "Cancelar"
15908
+ children: labels.cancelLabel
15878
15909
  }
15879
15910
  ),
15880
15911
  /* @__PURE__ */ jsx(
@@ -15883,7 +15914,7 @@ function OnchainWithdrawSignatureWarningView({
15883
15914
  className: "flex-1",
15884
15915
  onClick: onTryAgain,
15885
15916
  "data-test-id": "onchain-withdraw-signature-warning-retry",
15886
- children: "Tente novamente"
15917
+ children: labels.retryLabel
15887
15918
  }
15888
15919
  )
15889
15920
  ]
@@ -15900,7 +15931,8 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15900
15931
  tokenLogoURI,
15901
15932
  chainName,
15902
15933
  chainIconUrl,
15903
- formattedAmount
15934
+ formattedAmount,
15935
+ labels
15904
15936
  }) => {
15905
15937
  React6.useEffect(() => {
15906
15938
  if (!onCancel) return;
@@ -15911,10 +15943,10 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15911
15943
  EarnFeedbackOverlaySimpleView,
15912
15944
  {
15913
15945
  variant: "warning",
15914
- title: "Saque n\xE3o assinado",
15915
- subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
15946
+ title: labels.title,
15947
+ subtitle: labels.subtitle,
15916
15948
  formData: {
15917
- headerTitle: "Saque",
15949
+ headerTitle: labels.title,
15918
15950
  tokenSymbol,
15919
15951
  tokenLogoURI,
15920
15952
  chainLabel: chainName,
@@ -15924,7 +15956,7 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15924
15956
  }
15925
15957
  ) });
15926
15958
  };
15927
- function KycLoadingView({ message = "Carregando" }) {
15959
+ function KycLoadingView({ message }) {
15928
15960
  return /* @__PURE__ */ jsx(
15929
15961
  "div",
15930
15962
  {
@@ -16766,7 +16798,8 @@ function OnrampSuccessView({
16766
16798
  summaryItems = [],
16767
16799
  onNewDeposit,
16768
16800
  onGoToDashboard,
16769
- className
16801
+ className,
16802
+ labels
16770
16803
  }) {
16771
16804
  return /* @__PURE__ */ jsxs(
16772
16805
  "div",
@@ -16780,17 +16813,14 @@ function OnrampSuccessView({
16780
16813
  /* @__PURE__ */ jsxs(SuccessHeader, { children: [
16781
16814
  /* @__PURE__ */ jsx(SuccessIcon3, {}),
16782
16815
  /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
16783
- /* @__PURE__ */ jsx(SuccessTitle, { children: "Dep\xF3sito via PIX conclu\xEDdo" }),
16784
- /* @__PURE__ */ jsxs(SuccessDescription, { children: [
16785
- amount,
16786
- " BRLA foram adicionados \xE0 sua carteira."
16787
- ] })
16816
+ /* @__PURE__ */ jsx(SuccessTitle, { children: labels.title }),
16817
+ /* @__PURE__ */ jsx(SuccessDescription, { children: labels.descriptionTemplate.replace("{{amount}}", amount != null ? amount : "") })
16788
16818
  ] })
16789
16819
  ] }),
16790
16820
  /* @__PURE__ */ jsx(DepositCard, { children: /* @__PURE__ */ jsxs(DepositRow, { children: [
16791
16821
  /* @__PURE__ */ jsx(DepositIcon, {}),
16792
16822
  /* @__PURE__ */ jsxs(DepositInfo, { children: [
16793
- /* @__PURE__ */ jsx("p", { className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]", children: "Voc\xEA depositou via PIX" }),
16823
+ /* @__PURE__ */ jsx("p", { className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.depositLabel }),
16794
16824
  /* @__PURE__ */ jsxs("p", { className: "text-[14px] font-semibold text-[color:var(--deframe-widget-color-text-secondary)]", children: [
16795
16825
  amount,
16796
16826
  " BRLA"
@@ -16811,18 +16841,18 @@ function OnrampSuccessView({
16811
16841
  SecondaryButton,
16812
16842
  {
16813
16843
  onClick: onNewDeposit,
16814
- "aria-label": "Fazer novo dep\xF3sito",
16844
+ "aria-label": labels.newDepositAriaLabel,
16815
16845
  "data-test-id": "onramp-success-new-deposit",
16816
- children: "Fazer novo dep\xF3sito"
16846
+ children: labels.newDepositLabel
16817
16847
  }
16818
16848
  ),
16819
16849
  /* @__PURE__ */ jsx(
16820
16850
  PrimaryButton,
16821
16851
  {
16822
16852
  onClick: onGoToDashboard,
16823
- "aria-label": "Ir para carteira",
16853
+ "aria-label": labels.goToDashboardAriaLabel,
16824
16854
  "data-test-id": "onramp-success-go-dashboard",
16825
- children: "Ir para carteira"
16855
+ children: labels.goToDashboardLabel
16826
16856
  }
16827
16857
  )
16828
16858
  ] })
@@ -16871,7 +16901,8 @@ function OfframpInputFormView({
16871
16901
  backIcon,
16872
16902
  tokenIconUrl = "/brladigital_32.webp",
16873
16903
  flagIconUrl = "/brazil-flag-rounded.png",
16874
- className
16904
+ className,
16905
+ labels
16875
16906
  }) {
16876
16907
  return /* @__PURE__ */ jsxs(
16877
16908
  "div",
@@ -16888,11 +16919,11 @@ function OfframpInputFormView({
16888
16919
  {
16889
16920
  onClick: onBack,
16890
16921
  className: "flex items-center gap-2 mb-4 cursor-pointer",
16891
- "aria-label": "Voltar",
16922
+ "aria-label": labels.backAriaLabel,
16892
16923
  "data-test-id": "offramp-input-form-back-button",
16893
16924
  children: [
16894
16925
  backIcon || defaultBackIcon2,
16895
- /* @__PURE__ */ jsx(TextBody, { variant: "text-medium", children: "Voltar" })
16926
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-medium", children: labels.backLabel })
16896
16927
  ]
16897
16928
  }
16898
16929
  ),
@@ -16907,8 +16938,8 @@ function OfframpInputFormView({
16907
16938
  }
16908
16939
  ),
16909
16940
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
16910
- /* @__PURE__ */ jsx(TextHeading, { variant: "h3", children: "Saque via PIX" }),
16911
- /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: "Insira o valor e a chave PIX para receber em sua conta banc\xE1ria." })
16941
+ /* @__PURE__ */ jsx(TextHeading, { variant: "h3", children: labels.title }),
16942
+ /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
16912
16943
  ] }),
16913
16944
  /* @__PURE__ */ jsxs(ListItem, { children: [
16914
16945
  /* @__PURE__ */ jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsx(
@@ -16920,7 +16951,7 @@ function OfframpInputFormView({
16920
16951
  }
16921
16952
  ) }),
16922
16953
  /* @__PURE__ */ jsxs(ListItemContent, { className: "ml-4", children: [
16923
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Saldo em BRLA dispon\xEDvel" }),
16954
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.balanceLabel }),
16924
16955
  /* @__PURE__ */ jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
16925
16956
  brlaBalance,
16926
16957
  " BRLA"
@@ -16928,7 +16959,7 @@ function OfframpInputFormView({
16928
16959
  ] })
16929
16960
  ] }),
16930
16961
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
16931
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: "Quanto voc\xEA quer enviar via PIX?" }),
16962
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: labels.amountQuestion }),
16932
16963
  /* @__PURE__ */ jsxs("div", { className: "bg-[var(--deframe-widget-color-bg-secondary)] border border-[var(--deframe-widget-color-border-secondary)] rounded-[var(--deframe-widget-size-radius-sm)] p-4 flex items-center justify-between", children: [
16933
16964
  /* @__PURE__ */ jsx("img", { src: flagIconUrl, alt: "BRL", className: "w-6 h-6 rounded-full" }),
16934
16965
  /* @__PURE__ */ jsx(
@@ -16946,7 +16977,7 @@ function OfframpInputFormView({
16946
16977
  },
16947
16978
  placeholder: "R$0.00",
16948
16979
  className: "w-full bg-transparent text-right text-[28px] font-extrabold text-[color:var(--deframe-widget-color-text-primary)] outline-none",
16949
- "aria-label": "Valor do saque",
16980
+ "aria-label": labels.amountAriaLabel,
16950
16981
  "data-test-id": "offramp-input-form-amount"
16951
16982
  }
16952
16983
  )
@@ -16956,14 +16987,14 @@ function OfframpInputFormView({
16956
16987
  {
16957
16988
  onClick: onMaxClick,
16958
16989
  className: "text-[length:var(--deframe-widget-font-size-sm)]",
16959
- "aria-label": "Usar valor m\xE1ximo",
16960
- children: "Max"
16990
+ "aria-label": labels.maxAriaLabel,
16991
+ children: labels.maxLabel
16961
16992
  }
16962
16993
  ) }),
16963
16994
  hasActiveWithdrawal && /* @__PURE__ */ jsx(
16964
16995
  BannerNotification,
16965
16996
  {
16966
- message: "Voc\xEA j\xE1 tem um saque em andamento. Aguarde a conclus\xE3o antes de iniciar outro.",
16997
+ message: labels.activeWithdrawalWarning,
16967
16998
  variant: "warning"
16968
16999
  }
16969
17000
  ),
@@ -16976,16 +17007,16 @@ function OfframpInputFormView({
16976
17007
  )
16977
17008
  ] }),
16978
17009
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
16979
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: "Qual \xE9 a sua chave PIX?" }),
17010
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: labels.pixKeyQuestion }),
16980
17011
  /* @__PURE__ */ jsx(
16981
17012
  Input2,
16982
17013
  {
16983
17014
  type: "text",
16984
17015
  value: pixKey,
16985
17016
  onChange: (e) => onPixKeyChange(e.target.value),
16986
- placeholder: "(CPF, email, telefone ou aleat\xF3ria)",
17017
+ placeholder: labels.pixKeyPlaceholder,
16987
17018
  className: "w-full h-12 text-[length:var(--deframe-widget-font-size-md)] border border-[var(--deframe-widget-color-border-secondary)] rounded-[var(--deframe-widget-size-radius-sm)] bg-[var(--deframe-widget-color-bg-secondary)]",
16988
- "aria-label": "Chave PIX",
17019
+ "aria-label": labels.pixKeyAriaLabel,
16989
17020
  "data-test-id": "offramp-input-form-pix-key"
16990
17021
  }
16991
17022
  ),
@@ -16993,7 +17024,7 @@ function OfframpInputFormView({
16993
17024
  BannerNotification,
16994
17025
  {
16995
17026
  variant: "info",
16996
- message: "A chave PIX deve estar vinculada ao mesmo CPF do seu cadastro."
17027
+ message: labels.pixKeyInfo
16997
17028
  }
16998
17029
  )
16999
17030
  ] }),
@@ -17011,7 +17042,7 @@ function OfframpInputFormView({
17011
17042
  /* @__PURE__ */ jsx(
17012
17043
  BannerNotification,
17013
17044
  {
17014
- message: "Depois de inserir o valor e confirmar o pix voc\xEA precisa assinar a transa\xE7\xE3o na sua wallet. Processamento pode levar alguns minutos.",
17045
+ message: labels.signatureInfo,
17015
17046
  variant: "info"
17016
17047
  }
17017
17048
  ),
@@ -17027,7 +17058,7 @@ function OfframpInputFormView({
17027
17058
  {
17028
17059
  onClick: onSubmit,
17029
17060
  disabled: submitDisabled,
17030
- "aria-label": "Confirmar saque",
17061
+ "aria-label": labels.submitAriaLabel,
17031
17062
  "data-test-id": "offramp-input-form-submit",
17032
17063
  children: submitLabel
17033
17064
  }
@@ -17581,7 +17612,8 @@ function OfframpProcessingView({
17581
17612
  onClose,
17582
17613
  closeIcon,
17583
17614
  tokenIconUrl = "/brladigital_32.webp",
17584
- className
17615
+ className,
17616
+ labels
17585
17617
  }) {
17586
17618
  const progressPercent = step === "creating_ticket" ? 50 : step === "transferring" ? 75 : 85;
17587
17619
  const prepareStatus = step === "creating_ticket" ? "processing" : "done";
@@ -17606,7 +17638,7 @@ function OfframpProcessingView({
17606
17638
  {
17607
17639
  onClick: onClose,
17608
17640
  className: "flex items-center justify-center w-8 h-8 text-[color:var(--deframe-widget-color-text-secondary)] hover:text-[color:var(--deframe-widget-color-text-primary)] transition mb-4",
17609
- "aria-label": "Fechar",
17641
+ "aria-label": labels.closeAriaLabel,
17610
17642
  "data-test-id": "offramp-processing-close-button",
17611
17643
  children: closeIcon || defaultCloseIcon
17612
17644
  }
@@ -17618,14 +17650,14 @@ function OfframpProcessingView({
17618
17650
  /* @__PURE__ */ jsx("div", { className: "w-20 h-20 bg-[#F6A700] rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-10 h-10 animate-pulse", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z" }) }) }),
17619
17651
  /* @__PURE__ */ jsxs("div", { children: [
17620
17652
  /* @__PURE__ */ jsxs(TextHeading, { variant: "h3", className: "mb-2 flex items-center justify-center gap-1", children: [
17621
- "Estamos enviando seu PIX",
17653
+ labels.title,
17622
17654
  /* @__PURE__ */ jsxs("span", { className: "flex gap-0.5", children: [
17623
17655
  /* @__PURE__ */ jsx("span", { className: "animate-bounce", style: { animationDelay: "0ms", animationDuration: "1.4s" }, children: "." }),
17624
17656
  /* @__PURE__ */ jsx("span", { className: "animate-bounce", style: { animationDelay: "200ms", animationDuration: "1.4s" }, children: "." }),
17625
17657
  /* @__PURE__ */ jsx("span", { className: "animate-bounce", style: { animationDelay: "400ms", animationDuration: "1.4s" }, children: "." })
17626
17658
  ] })
17627
17659
  ] }),
17628
- /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: "Seu PIX est\xE1 sendo enviado. Na maioria das vezes, cai em segundos." })
17660
+ /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
17629
17661
  ] })
17630
17662
  ] }),
17631
17663
  /* @__PURE__ */ jsxs(ListItem, { children: [
@@ -17638,7 +17670,7 @@ function OfframpProcessingView({
17638
17670
  }
17639
17671
  ) }),
17640
17672
  /* @__PURE__ */ jsxs(ListItemContent, { className: "ml-4", children: [
17641
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Voc\xEA sacou via PIX" }),
17673
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.amountLabel }),
17642
17674
  /* @__PURE__ */ jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
17643
17675
  amount,
17644
17676
  " BRLA"
@@ -17660,25 +17692,26 @@ function OfframpProcessingView({
17660
17692
  breakdown: [
17661
17693
  {
17662
17694
  type: "prepare_withdrawal",
17663
- description: "Preparando seu saque",
17695
+ description: labels.prepareStepLabel,
17664
17696
  status: mapStatus(prepareStatus)
17665
17697
  },
17666
17698
  {
17667
17699
  type: "blockchain_signature",
17668
- description: "Assinatura",
17700
+ description: labels.signatureStepLabel,
17669
17701
  status: mapStatus(signatureStatus),
17670
17702
  explorerUrl: transferTxHash ? `https://polygonscan.com/tx/${transferTxHash}` : void 0
17671
17703
  },
17672
17704
  {
17673
17705
  type: "pix_transfer",
17674
- description: "Enviando PIX para sua conta",
17706
+ description: labels.pixTransferStepLabel,
17675
17707
  status: mapStatus(sendStatus)
17676
17708
  }
17677
17709
  ]
17678
17710
  }
17679
17711
  ),
17680
- /* @__PURE__ */ jsx("div", { className: "w-full space-y-3", children: /* @__PURE__ */ jsxs(PrimaryButton, { disabled: true, "aria-label": "Aguarde processamento", children: [
17681
- "Aguarde ",
17712
+ /* @__PURE__ */ jsx("div", { className: "w-full space-y-3", children: /* @__PURE__ */ jsxs(PrimaryButton, { disabled: true, "aria-label": labels.waitingButtonAriaLabel, children: [
17713
+ labels.waitingButtonLabel,
17714
+ " ",
17682
17715
  /* @__PURE__ */ jsx(LoadingDots, {})
17683
17716
  ] }) })
17684
17717
  ] }) })
@@ -17735,7 +17768,8 @@ function OfframpSuccessView({
17735
17768
  closeIcon,
17736
17769
  arrowUpIcon,
17737
17770
  tokenIconUrl = "/brladigital_32.webp",
17738
- className
17771
+ className,
17772
+ labels
17739
17773
  }) {
17740
17774
  return /* @__PURE__ */ jsxs(
17741
17775
  "div",
@@ -17752,7 +17786,7 @@ function OfframpSuccessView({
17752
17786
  {
17753
17787
  onClick: onClose,
17754
17788
  className: "flex items-center justify-center w-8 h-8 text-[color:var(--deframe-widget-color-text-secondary)] hover:text-[color:var(--deframe-widget-color-text-primary)] transition mb-4",
17755
- "aria-label": "Fechar",
17789
+ "aria-label": labels.closeAriaLabel,
17756
17790
  "data-test-id": "offramp-success-close-button",
17757
17791
  children: closeIcon || defaultCloseIcon2
17758
17792
  }
@@ -17763,14 +17797,14 @@ function OfframpSuccessView({
17763
17797
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center space-y-4", children: [
17764
17798
  /* @__PURE__ */ jsx("div", { className: "w-20 h-20 bg-[#1FC16B]/20 rounded-full flex items-center justify-center", children: arrowUpIcon || defaultArrowUpIcon }),
17765
17799
  /* @__PURE__ */ jsxs("div", { children: [
17766
- /* @__PURE__ */ jsx(TextHeading, { variant: "h3", className: "mb-2", children: "PIX enviado com sucesso!" }),
17767
- /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: "Seu saque foi conclu\xEDdo e o valor j\xE1 est\xE1 na sua conta." })
17800
+ /* @__PURE__ */ jsx(TextHeading, { variant: "h3", className: "mb-2", children: labels.title }),
17801
+ /* @__PURE__ */ jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
17768
17802
  ] })
17769
17803
  ] }),
17770
17804
  /* @__PURE__ */ jsxs(ListItem, { children: [
17771
17805
  /* @__PURE__ */ jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsx("img", { src: tokenIconUrl, alt: "Token", className: "w-10 h-10 rounded-full" }) }),
17772
17806
  /* @__PURE__ */ jsxs(ListItemContent, { className: "ml-4", children: [
17773
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Voc\xEA sacou via PIX" }),
17807
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.amountLabel }),
17774
17808
  /* @__PURE__ */ jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
17775
17809
  amount,
17776
17810
  " BRLA"
@@ -17779,33 +17813,33 @@ function OfframpSuccessView({
17779
17813
  ] }),
17780
17814
  /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx("div", { className: "p-4 w-full inline-flex flex-col justify-start items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "w-full flex flex-col justify-start items-start gap-2", children: [
17781
17815
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17782
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Valor do saque" }),
17816
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.withdrawAmountLabel }),
17783
17817
  /* @__PURE__ */ jsxs(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: [
17784
17818
  amount,
17785
17819
  " BRLA"
17786
17820
  ] })
17787
17821
  ] }),
17788
17822
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17789
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Taxa" }),
17823
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.feeLabel }),
17790
17824
  /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: feesFormatted })
17791
17825
  ] }),
17792
17826
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17793
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Metodo" }),
17794
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: "Transferencia banc\xE1ria (PIX)" })
17827
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.methodLabel }),
17828
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: labels.methodValue })
17795
17829
  ] }),
17796
17830
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-8 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17797
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Status" }),
17831
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.statusLabel }),
17798
17832
  /* @__PURE__ */ jsxs("div", { className: "px-2 py-0.5 bg-[#1FC16B]/10 rounded-3xl flex justify-end items-center gap-2", children: [
17799
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: "Sucesso" }),
17833
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: labels.statusValue }),
17800
17834
  /* @__PURE__ */ jsx("div", { className: "w-2 h-2 bg-teal-600 rounded-full" })
17801
17835
  ] })
17802
17836
  ] }),
17803
17837
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17804
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "ID da Transa\xE7\xE3o" }),
17838
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.transactionIdLabel }),
17805
17839
  /* @__PURE__ */ jsx("div", { className: "flex justify-start items-center gap-2", children: transactionId ? /* @__PURE__ */ jsx(TransactionIdDisplay, { transactionId }) : /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: "-" }) })
17806
17840
  ] }),
17807
17841
  /* @__PURE__ */ jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17808
- /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Data" }),
17842
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.dateLabel }),
17809
17843
  /* @__PURE__ */ jsx(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: date })
17810
17844
  ] })
17811
17845
  ] }) }) }),
@@ -17813,9 +17847,9 @@ function OfframpSuccessView({
17813
17847
  PrimaryButton,
17814
17848
  {
17815
17849
  onClick: onConfirm,
17816
- "aria-label": "Confirmar",
17850
+ "aria-label": labels.confirmAriaLabel,
17817
17851
  "data-test-id": "offramp-success-confirm-button",
17818
- children: "Ok, obrigado"
17852
+ children: labels.confirmLabel
17819
17853
  }
17820
17854
  )
17821
17855
  ] }) })
@@ -17929,7 +17963,8 @@ var DashboardTokenListView = ({
17929
17963
  isLoading,
17930
17964
  className,
17931
17965
  showCard = true,
17932
- onDepositClick
17966
+ onDepositClick,
17967
+ labels
17933
17968
  }) => {
17934
17969
  const [searchQuery, setSearchQuery] = useState("");
17935
17970
  const filteredTokens = tokens.filter((token) => {
@@ -17939,14 +17974,14 @@ var DashboardTokenListView = ({
17939
17974
  return token.symbol.toLowerCase().includes(query) || token.name.toLowerCase().includes(query);
17940
17975
  });
17941
17976
  const content = /* @__PURE__ */ jsxs("div", { "data-test-id": "dashboard-token-list", children: [
17942
- showCard && /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "Seus tokens" }),
17977
+ showCard && /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: labels.title }),
17943
17978
  !isLoading && tokens.length > 0 && /* @__PURE__ */ jsx("div", { "data-test-id": "dashboard-token-search", className: `${showCard ? "mb-6" : "mt-6 mb-6"} h-14 bg-[var(--deframe-widget-color-bg-raised)] flex items-center justify-center w-full border border-[var(--deframe-widget-color-border-default)] px-2 py-0.5 rounded gap-1`, children: /* @__PURE__ */ jsxs("div", { className: "flex-1 flex items-center relative", children: [
17944
17979
  /* @__PURE__ */ jsx(
17945
17980
  Input2,
17946
17981
  {
17947
17982
  "data-test-id": "dashboard-token-search-input",
17948
17983
  type: "text",
17949
- placeholder: "Pesquisar aqui...",
17984
+ placeholder: labels.searchPlaceholder,
17950
17985
  value: searchQuery,
17951
17986
  onChange: (e) => setSearchQuery(e.target.value),
17952
17987
  className: "w-full h-full p-4 pr-12"
@@ -18021,13 +18056,13 @@ var DashboardTokenListView = ({
18021
18056
  className: "flex flex-col items-center justify-center",
18022
18057
  children: searchQuery ? /* @__PURE__ */ jsxs(Fragment, { children: [
18023
18058
  /* @__PURE__ */ jsx("div", { className: "w-20 h-20 rounded-full bg-[var(--deframe-widget-color-bg-muted)] flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(MdOutlineSearch, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-secondary)]" }) }),
18024
- /* @__PURE__ */ jsx(TextHeading, { className: "text-center mb-4", children: "Nenhum token encontrado" }),
18025
- /* @__PURE__ */ jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: "Tente buscar por outro nome ou s\xEDmbolo." })
18059
+ /* @__PURE__ */ jsx(TextHeading, { className: "text-center mb-4", children: labels.emptySearchTitle }),
18060
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: labels.emptySearchDescription })
18026
18061
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
18027
18062
  /* @__PURE__ */ jsx("div", { className: "w-20 h-20 rounded-full bg-[var(--deframe-widget-color-bg-muted)] flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx(MdQrCodeScanner, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-secondary)]" }) }),
18028
- /* @__PURE__ */ jsx(TextHeading, { className: "text-center mb-4", children: "Deposite e comece a usar a wallet" }),
18029
- /* @__PURE__ */ jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: "Use Pix para adicionar saldo instantaneamente na sua carteira." }),
18030
- onDepositClick && /* @__PURE__ */ jsx("button", { type: "button", onClick: onDepositClick, children: /* @__PURE__ */ jsx(PrimaryButton, { children: "Depositar via Pix" }) })
18063
+ /* @__PURE__ */ jsx(TextHeading, { className: "text-center mb-4", children: labels.emptyDepositTitle }),
18064
+ /* @__PURE__ */ jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: labels.emptyDepositDescription }),
18065
+ onDepositClick && /* @__PURE__ */ jsx("button", { type: "button", onClick: onDepositClick, children: /* @__PURE__ */ jsx(PrimaryButton, { children: labels.depositCtaLabel }) })
18031
18066
  ] })
18032
18067
  }
18033
18068
  ) })
@@ -18124,10 +18159,11 @@ var DashboardPortfolioView = ({
18124
18159
  onWithdrawClick,
18125
18160
  onSwapClick,
18126
18161
  formattedTokenPositions,
18127
- formattedEarnPositions
18162
+ formattedEarnPositions,
18163
+ labels
18128
18164
  }) => {
18129
18165
  return /* @__PURE__ */ jsx(DashboardCard, { className: "p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col w-full h-full", children: [
18130
- /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "Portf\xF3lio" }),
18166
+ /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: labels.title }),
18131
18167
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mb-2", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isLoading ? /* @__PURE__ */ jsx("div", { className: "h-8 bg-[var(--deframe-widget-color-bg-muted)] rounded w-64 animate-pulse" }, "skeleton") : /* @__PURE__ */ jsx(
18132
18168
  motion.p,
18133
18169
  {
@@ -18143,15 +18179,15 @@ var DashboardPortfolioView = ({
18143
18179
  /* @__PURE__ */ jsxs("div", { className: "flex lg:hidden flex-row gap-2 sm:gap-4 mt-6 w-full", children: [
18144
18180
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-deposit-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onDepositClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18145
18181
  /* @__PURE__ */ jsx(MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
18146
- "Depositar"
18182
+ labels.depositLabel
18147
18183
  ] }) }),
18148
18184
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-withdraw-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onWithdrawClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18149
18185
  /* @__PURE__ */ jsx(MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
18150
- "Sacar"
18186
+ labels.withdrawLabel
18151
18187
  ] }) }),
18152
18188
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-swap-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onSwapClick, children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18153
18189
  /* @__PURE__ */ jsx(MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
18154
- "Trocar"
18190
+ labels.swapLabel
18155
18191
  ] }) })
18156
18192
  ] }),
18157
18193
  /* @__PURE__ */ jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsx(
@@ -18208,7 +18244,8 @@ function StatCardSkeletonBlock({ showDescription, className }) {
18208
18244
  var DashboardPortfolioViewSimple = ({
18209
18245
  formattedTotalValue,
18210
18246
  isLoading,
18211
- assetCount
18247
+ assetCount,
18248
+ labels
18212
18249
  }) => {
18213
18250
  if (isLoading) {
18214
18251
  return /* @__PURE__ */ jsxs(
@@ -18233,7 +18270,7 @@ var DashboardPortfolioViewSimple = ({
18233
18270
  ),
18234
18271
  children: [
18235
18272
  /* @__PURE__ */ jsxs("article", { className: twMerge(cardClasses2, "self-stretch"), children: [
18236
- /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Total da Carteira" }),
18273
+ /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: labels.totalLabel }),
18237
18274
  /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
18238
18275
  motion.p,
18239
18276
  {
@@ -18247,10 +18284,10 @@ var DashboardPortfolioViewSimple = ({
18247
18284
  },
18248
18285
  "value"
18249
18286
  ) }),
18250
- /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-description", className: descriptionClasses, children: "Soma do saldo por token (em BRL)." })
18287
+ /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-description", className: descriptionClasses, children: labels.totalDescription })
18251
18288
  ] }),
18252
18289
  assetCount != null && /* @__PURE__ */ jsxs("article", { className: twMerge(cardClasses2, "self-stretch min-w-[160px]"), children: [
18253
- /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Ativos" }),
18290
+ /* @__PURE__ */ jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: labels.assetsLabel }),
18254
18291
  /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
18255
18292
  motion.p,
18256
18293
  {
@@ -18275,10 +18312,11 @@ var DashboardTokensView = ({
18275
18312
  isLoadingBalances,
18276
18313
  activeTab,
18277
18314
  onTabChange,
18278
- strategiesContent
18315
+ strategiesContent,
18316
+ labels
18279
18317
  }) => {
18280
18318
  return /* @__PURE__ */ jsxs(Fragment, { children: [
18281
- /* @__PURE__ */ jsx(DashboardTokenListView, { tokens: sortedRegularTokens, isLoading: isLoadingBalances, className: "hidden lg:block" }),
18319
+ /* @__PURE__ */ jsx(DashboardTokenListView, { tokens: sortedRegularTokens, isLoading: isLoadingBalances, className: "hidden lg:block", labels: labels.tokenList }),
18282
18320
  /* @__PURE__ */ jsx(DashboardCard, { className: "lg:hidden p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxs(
18283
18321
  Tabs,
18284
18322
  {
@@ -18286,12 +18324,12 @@ var DashboardTokensView = ({
18286
18324
  onValueChange: (value) => onTabChange(value),
18287
18325
  children: [
18288
18326
  /* @__PURE__ */ jsxs(TabsList, { className: "w-full mb-3 flex justify-center", children: [
18289
- /* @__PURE__ */ jsx(TabsTrigger, { value: "tokens", children: "Cripto" }),
18290
- /* @__PURE__ */ jsx(TabsTrigger, { value: "strategies", children: "Investimentos" })
18327
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "tokens", children: labels.tokensTabLabel }),
18328
+ /* @__PURE__ */ jsx(TabsTrigger, { value: "strategies", children: labels.strategiesTabLabel })
18291
18329
  ] }),
18292
18330
  /* @__PURE__ */ jsxs(TabsContent, { value: "tokens", children: [
18293
- /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "Seus tokens" }),
18294
- /* @__PURE__ */ jsx(DashboardTokenListView, { tokens: regularTokens, isLoading: isLoadingBalances, showCard: false })
18331
+ /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: labels.mobileTokensTitle }),
18332
+ /* @__PURE__ */ jsx(DashboardTokenListView, { tokens: regularTokens, isLoading: isLoadingBalances, showCard: false, labels: labels.tokenList })
18295
18333
  ] }),
18296
18334
  /* @__PURE__ */ jsx(TabsContent, { value: "strategies", children: strategiesContent })
18297
18335
  ]
@@ -18881,25 +18919,26 @@ var DashboardView = ({
18881
18919
  recentTransactions,
18882
18920
  investmentOpportunities,
18883
18921
  quickActions,
18884
- banner
18922
+ banner,
18923
+ labels
18885
18924
  }) => {
18886
18925
  return /* @__PURE__ */ jsx("div", { "data-test-id": "dashboard-page", className: "w-full relative overflow-hidden mx-auto rounded p-6 lg:p-12", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 max-w-[1400px] mx-auto", children: [
18887
18926
  /* @__PURE__ */ jsxs("div", { className: "lg:col-span-2 space-y-6", children: [
18888
18927
  /* @__PURE__ */ jsx(DashboardPortfolioView, __spreadValues({}, portfolio)),
18889
18928
  /* @__PURE__ */ jsx(DashboardCard, { "data-testid": "dashboard-quick-actions-card", className: "hidden lg:block p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-3", children: [
18890
- /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: "A\xE7\xF5es r\xE1pidas" }),
18929
+ /* @__PURE__ */ jsx(TextBody, { className: "mb-6", children: labels.quickActionsTitle }),
18891
18930
  /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4 w-full", children: [
18892
18931
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-deposit", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onDepositClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18893
18932
  /* @__PURE__ */ jsx(MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
18894
- "Depositar"
18933
+ labels.depositLabel
18895
18934
  ] }) }),
18896
18935
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-withdraw", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onWithdrawClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18897
18936
  /* @__PURE__ */ jsx(MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
18898
- "Sacar"
18937
+ labels.withdrawLabel
18899
18938
  ] }) }),
18900
18939
  /* @__PURE__ */ jsx("div", { "data-testid": "dashboard-quick-action-swap", className: "flex-1 min-w-0 cursor-pointer", onClick: () => quickActions == null ? void 0 : quickActions.onSwapClick(), children: /* @__PURE__ */ jsxs(PrimaryButton, { children: [
18901
18940
  /* @__PURE__ */ jsx(MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
18902
- "Trocar"
18941
+ labels.swapLabel
18903
18942
  ] }) })
18904
18943
  ] })
18905
18944
  ] }) }),
@@ -18920,7 +18959,8 @@ var DashboardView = ({
18920
18959
  var DashboardViewSimple = ({
18921
18960
  portfolio,
18922
18961
  tokens,
18923
- quickActions
18962
+ quickActions,
18963
+ labels
18924
18964
  }) => {
18925
18965
  const assetCount = tokens.sortedRegularTokens.filter((t) => !isDustValue(t.amountInUSD)).length;
18926
18966
  return /* @__PURE__ */ jsxs(
@@ -18941,7 +18981,7 @@ var DashboardViewSimple = ({
18941
18981
  {
18942
18982
  "data-test-id": "dashboard-home-title",
18943
18983
  className: "text-[color:var(--deframe-widget-color-text-primary)] text-[length:var(--deframe-widget-font-size-xxl)] [font-weight:var(--deframe-widget-font-weight-bold)] leading-[var(--deframe-widget-font-leading-xxl)] font-[var(--deframe-widget-font-family)]",
18944
- children: "Wallet"
18984
+ children: labels.pageTitle
18945
18985
  }
18946
18986
  ),
18947
18987
  /* @__PURE__ */ jsx(
@@ -18949,7 +18989,7 @@ var DashboardViewSimple = ({
18949
18989
  {
18950
18990
  "data-test-id": "dashboard-home-subtitle",
18951
18991
  className: "text-[color:var(--deframe-widget-color-text-secondary)] text-[length:var(--deframe-widget-font-size-sm)] leading-[var(--deframe-widget-font-leading-sm)] font-[var(--deframe-widget-font-family)]",
18952
- children: "Resumo da sua carteira e movimenta\xE7\xF5es."
18992
+ children: labels.pageSubtitle
18953
18993
  }
18954
18994
  )
18955
18995
  ] }),
@@ -18964,7 +19004,7 @@ var DashboardViewSimple = ({
18964
19004
  {
18965
19005
  className: "w-auto py-[var(--deframe-widget-size-padding-y-sm)] [font-weight:var(--deframe-widget-font-weight-medium)]",
18966
19006
  onClick: () => quickActions == null ? void 0 : quickActions.onDepositClick(),
18967
- children: "Depositar"
19007
+ children: labels.depositLabel
18968
19008
  }
18969
19009
  ),
18970
19010
  /* @__PURE__ */ jsx(
@@ -18972,7 +19012,7 @@ var DashboardViewSimple = ({
18972
19012
  {
18973
19013
  className: "w-auto py-[var(--deframe-widget-size-padding-y-sm)] [font-weight:var(--deframe-widget-font-weight-medium)]",
18974
19014
  onClick: () => quickActions == null ? void 0 : quickActions.onWithdrawClick(),
18975
- children: "Sacar"
19015
+ children: labels.withdrawLabel
18976
19016
  }
18977
19017
  )
18978
19018
  ]