@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.js CHANGED
@@ -3153,7 +3153,9 @@ function KYCPageHeader({
3153
3153
  totalSteps,
3154
3154
  onBack,
3155
3155
  onClose,
3156
- className
3156
+ className,
3157
+ backLabel = "Voltar",
3158
+ closeLabel = "Fechar"
3157
3159
  }) {
3158
3160
  return /* @__PURE__ */ jsxRuntime.jsxs(
3159
3161
  "div",
@@ -3165,9 +3167,9 @@ function KYCPageHeader({
3165
3167
  className
3166
3168
  ),
3167
3169
  children: [
3168
- /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: onBack, label: "Voltar", testId: "kyc-back-button", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z" }) }) }),
3170
+ /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: onBack, label: backLabel, testId: "kyc-back-button", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z" }) }) }),
3169
3171
  typeof step === "number" && typeof totalSteps === "number" ? /* @__PURE__ */ jsxRuntime.jsx(KYCStepIndicator, { total: totalSteps, current: Math.max(step - 1, 0) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-9 flex-1", "aria-hidden": "true" }),
3170
- /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: onClose, label: "Fechar", testId: "kyc-close-button", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 6L6 18M6 6l12 12", strokeLinecap: "round" }) }) })
3172
+ /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: onClose, label: closeLabel, testId: "kyc-close-button", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 6L6 18M6 6l12 12", strokeLinecap: "round" }) }) })
3171
3173
  ]
3172
3174
  }
3173
3175
  );
@@ -3260,10 +3262,12 @@ function KYCFormPage({
3260
3262
  footer,
3261
3263
  actions = [],
3262
3264
  className,
3263
- containerMode = "fullscreen"
3265
+ containerMode = "fullscreen",
3266
+ backLabel,
3267
+ closeLabel
3264
3268
  }) {
3265
3269
  return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3266
- /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onBack, onClose }),
3270
+ /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onBack, onClose, backLabel, closeLabel }),
3267
3271
  /* @__PURE__ */ jsxRuntime.jsxs(PageBody, { children: [
3268
3272
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3269
3273
  /* @__PURE__ */ jsxRuntime.jsx(KYCPageSection, { title, description }),
@@ -3293,13 +3297,6 @@ function KYCFormPage({
3293
3297
  ] })
3294
3298
  ] });
3295
3299
  }
3296
- function CountrySelect() {
3297
- const [value, setValue] = React6.useState("brasil");
3298
- return /* @__PURE__ */ jsxRuntime.jsxs(Select, { value, onValueChange: setValue, children: [
3299
- /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { placeholder: "Selecione o pa\xEDs" }),
3300
- /* @__PURE__ */ jsxRuntime.jsx(SelectContent, { children: /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { value: "brasil", children: "Brasil" }) })
3301
- ] });
3302
- }
3303
3300
  function DefaultAddressLoadingContent() {
3304
3301
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
3305
3302
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { width: "100%", height: "48px", variant: "rect" }),
@@ -3335,7 +3332,9 @@ function KYCAddressPage({
3335
3332
  banners = [],
3336
3333
  actions,
3337
3334
  containerMode = "fullscreen",
3338
- onNext
3335
+ onNext,
3336
+ backLabel,
3337
+ closeLabel
3339
3338
  }) {
3340
3339
  const defaultActions = actions != null ? actions : [
3341
3340
  {
@@ -3372,7 +3371,7 @@ function KYCAddressPage({
3372
3371
  className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]",
3373
3372
  children: [
3374
3373
  /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { htmlFor: "country", children: "Pa\xEDs" }),
3375
- /* @__PURE__ */ jsxRuntime.jsx(CountrySelect, {})
3374
+ /* @__PURE__ */ jsxRuntime.jsx(InputField, { id: "country", value: "Brasil", disabled: true, readOnly: true })
3376
3375
  ]
3377
3376
  }
3378
3377
  )
@@ -3390,6 +3389,8 @@ function KYCAddressPage({
3390
3389
  banners,
3391
3390
  actions: defaultActions,
3392
3391
  containerMode,
3392
+ backLabel,
3393
+ closeLabel,
3393
3394
  children: [
3394
3395
  cepField != null ? cepField : fallbackFields.cepField,
3395
3396
  isLoading ? loadingContent != null ? loadingContent : /* @__PURE__ */ jsxRuntime.jsx(DefaultAddressLoadingContent, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -3564,17 +3565,30 @@ function KYCEditPage(_a) {
3564
3565
  function KYCIntroPage({
3565
3566
  screenId = "intro",
3566
3567
  onClose,
3567
- title = "Verifica\xE7\xE3o de identidade",
3568
- description = "Para garantir a seguran\xE7a da plataforma, precisamos confirmar sua identidade. O processo leva cerca de 5 minutos.",
3568
+ title,
3569
+ description,
3569
3570
  checklistItems = DEFAULT_INTRO_CHECKLIST,
3570
3571
  banners = [],
3571
3572
  legalNotice,
3572
- primaryAction = { label: "Come\xE7ar verifica\xE7\xE3o" },
3573
+ primaryAction,
3573
3574
  className,
3574
- containerMode = "fullscreen"
3575
+ containerMode = "fullscreen",
3576
+ backLabel = "Voltar",
3577
+ closeLabel = "Fechar",
3578
+ visualVariant = "default"
3575
3579
  }) {
3576
- return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, containerMode, children: [
3577
- onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose }),
3580
+ const isCompact = visualVariant === "compact";
3581
+ const iconClasses = tailwindMerge.twMerge(
3582
+ "flex items-center justify-center text-[color:var(--deframe-widget-color-brand-primary)]",
3583
+ isCompact ? "h-[44px] w-[44px]" : [
3584
+ "h-[64px] w-[64px] rounded-[var(--deframe-widget-size-radius-full)]",
3585
+ "[background:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)]",
3586
+ "[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)]"
3587
+ ].join(" ")
3588
+ );
3589
+ const iconSize = isCompact ? 32 : 36;
3590
+ return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, containerMode, className: isCompact ? "min-h-0" : void 0, children: [
3591
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3578
3592
  /* @__PURE__ */ jsxRuntime.jsxs(
3579
3593
  "div",
3580
3594
  {
@@ -3590,13 +3604,8 @@ function KYCIntroPage({
3590
3604
  "div",
3591
3605
  {
3592
3606
  "data-test-id": "kyc-intro-icon",
3593
- className: "flex h-[64px] w-[64px] items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3594
- style: {
3595
- background: "color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent)",
3596
- 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)",
3597
- color: "var(--deframe-widget-color-brand-primary)"
3598
- },
3599
- children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 44 44", fill: "none", "aria-hidden": "true", children: [
3607
+ className: iconClasses,
3608
+ children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: iconSize, height: iconSize, viewBox: "0 0 44 44", fill: "none", "aria-hidden": "true", children: [
3600
3609
  /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "8", y: "10", width: "28", height: "20", rx: "3", stroke: "currentColor", strokeWidth: "3" }),
3601
3610
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "22", cy: "20", r: "5", stroke: "currentColor", strokeWidth: "3" }),
3602
3611
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 34c0-4 4.5-7 10-7s10 3 10 7", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round" })
@@ -3633,7 +3642,7 @@ function KYCIntroPage({
3633
3642
  )) }),
3634
3643
  legalNotice && /* @__PURE__ */ jsxRuntime.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 })
3635
3644
  ] }),
3636
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: renderKYCActionButton(primaryAction, 0) })
3645
+ primaryAction && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: renderKYCActionButton(primaryAction, 0) })
3637
3646
  ]
3638
3647
  }
3639
3648
  )
@@ -3646,20 +3655,35 @@ function KYCLoadingPage({
3646
3655
  description,
3647
3656
  note,
3648
3657
  className,
3649
- containerMode = "fullscreen"
3658
+ containerMode = "fullscreen",
3659
+ backLabel = "Voltar",
3660
+ closeLabel = "Fechar",
3661
+ loadingLabel = "Carregando",
3662
+ visualVariant = "default"
3650
3663
  }) {
3651
- return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3652
- onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose }),
3664
+ const isCompact = visualVariant === "compact";
3665
+ const loadingFrameClasses = tailwindMerge.twMerge(
3666
+ "flex items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3667
+ isCompact ? "h-12 w-12" : [
3668
+ "h-[72px] w-[72px]",
3669
+ "[background:color-mix(in_srgb,var(--deframe-widget-color-brand-primary)_12%,transparent)]",
3670
+ "[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)]"
3671
+ ].join(" ")
3672
+ );
3673
+ const spinnerClasses = tailwindMerge.twMerge(
3674
+ "rounded-[var(--deframe-widget-size-radius-full)] border-[3px] border-[color:var(--deframe-widget-color-brand-primary)] border-t-transparent animate-spin",
3675
+ isCompact ? "h-10 w-10" : "h-9 w-9"
3676
+ );
3677
+ return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, className: tailwindMerge.twMerge(isCompact && "min-h-0", className), containerMode, children: [
3678
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3653
3679
  /* @__PURE__ */ jsxRuntime.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: [
3654
3680
  /* @__PURE__ */ jsxRuntime.jsx(
3655
3681
  "div",
3656
3682
  {
3657
- className: "flex h-[72px] w-[72px] items-center justify-center rounded-[var(--deframe-widget-size-radius-full)]",
3658
- style: {
3659
- background: "color-mix(in srgb, var(--deframe-widget-color-brand-primary) 12%, transparent)",
3660
- 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)"
3661
- },
3662
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-9 w-9 rounded-full border-[3px] border-[color:var(--deframe-widget-color-brand-primary)] border-t-transparent animate-spin" })
3683
+ "data-slot": "kyc-loading-indicator",
3684
+ "data-test-id": "kyc-loading-indicator",
3685
+ className: loadingFrameClasses,
3686
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: spinnerClasses })
3663
3687
  }
3664
3688
  ),
3665
3689
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]", children: [
@@ -3667,8 +3691,8 @@ function KYCLoadingPage({
3667
3691
  description && /* @__PURE__ */ jsxRuntime.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 })
3668
3692
  ] }),
3669
3693
  note && /* @__PURE__ */ jsxRuntime.jsx(KYCMessageBanner, { variant: "info", children: note }),
3670
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[length:var(--deframe-widget-font-size-xs)] text-[color:var(--deframe-widget-color-text-tertiary)]", children: [
3671
- "Carregando ",
3694
+ /* @__PURE__ */ jsxRuntime.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: [
3695
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: loadingLabel }),
3672
3696
  /* @__PURE__ */ jsxRuntime.jsx(LoadingDots, {})
3673
3697
  ] })
3674
3698
  ] })
@@ -3688,10 +3712,12 @@ function KYCReviewPage({
3688
3712
  banners = [],
3689
3713
  actions = [],
3690
3714
  className,
3691
- containerMode = "fullscreen"
3715
+ containerMode = "fullscreen",
3716
+ backLabel,
3717
+ closeLabel
3692
3718
  }) {
3693
3719
  return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3694
- /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onClose }),
3720
+ /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onClose, backLabel, closeLabel }),
3695
3721
  /* @__PURE__ */ jsxRuntime.jsxs(PageBody2, { children: [
3696
3722
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3697
3723
  /* @__PURE__ */ jsxRuntime.jsx(KYCPageSection, { title, description }),
@@ -3720,10 +3746,12 @@ function KYCReviewPageSkeleton({
3720
3746
  onClose,
3721
3747
  step = 3,
3722
3748
  totalSteps = 4,
3723
- containerMode = "fullscreen"
3749
+ containerMode = "fullscreen",
3750
+ backLabel,
3751
+ closeLabel
3724
3752
  }) {
3725
3753
  return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, containerMode, children: [
3726
- /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onClose }),
3754
+ /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { step, totalSteps, onClose, backLabel, closeLabel }),
3727
3755
  /* @__PURE__ */ jsxRuntime.jsxs(PageBody3, { children: [
3728
3756
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-lg)]", children: [
3729
3757
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-xs)]", children: [
@@ -3814,13 +3842,15 @@ function KYCStatusPage({
3814
3842
  actions = [],
3815
3843
  footer,
3816
3844
  className,
3817
- containerMode = "fullscreen"
3845
+ containerMode = "fullscreen",
3846
+ backLabel,
3847
+ closeLabel
3818
3848
  }) {
3819
3849
  var _a;
3820
3850
  const effectiveStatus = (_a = panelStatus != null ? panelStatus : status) != null ? _a : "reviewing";
3821
3851
  const effectiveCards = cards != null ? cards : [{ status: resolveCardStatus(effectiveStatus), fields: DEFAULT_STATUS_FIELDS }];
3822
3852
  return /* @__PURE__ */ jsxRuntime.jsxs(KYCPageShell, { screenId, className, containerMode, children: [
3823
- onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose }),
3853
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(KYCPageHeader, { onClose, backLabel, closeLabel }),
3824
3854
  /* @__PURE__ */ jsxRuntime.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: [
3825
3855
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
3826
3856
  KYCStatusPanel,
@@ -15687,7 +15717,8 @@ function OnchainWithdrawSignatureWarningView({
15687
15717
  blockchainCost,
15688
15718
  onCancel,
15689
15719
  onTryAgain,
15690
- className
15720
+ className,
15721
+ labels
15691
15722
  }) {
15692
15723
  const [showDetails, setShowDetails] = React6.useState(true);
15693
15724
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15704,7 +15735,7 @@ function OnchainWithdrawSignatureWarningView({
15704
15735
  {
15705
15736
  onClick: onCancel,
15706
15737
  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",
15707
- "aria-label": "Fechar",
15738
+ "aria-label": labels.closeAriaLabel,
15708
15739
  "data-test-id": "onchain-withdraw-signature-warning-close",
15709
15740
  children: /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineClose, { className: "w-6 h-6" })
15710
15741
  }
@@ -15717,7 +15748,7 @@ function OnchainWithdrawSignatureWarningView({
15717
15748
  {
15718
15749
  className: "text-[28px] [font-weight:var(--deframe-widget-font-weight-extrabold)] text-[color:var(--deframe-widget-color-text-primary)] leading-tight",
15719
15750
  "data-test-id": "onchain-withdraw-signature-warning-title",
15720
- children: "Saque n\xE3o assinado"
15751
+ children: labels.title
15721
15752
  }
15722
15753
  ),
15723
15754
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -15725,7 +15756,7 @@ function OnchainWithdrawSignatureWarningView({
15725
15756
  {
15726
15757
  className: "text-[length:var(--deframe-widget-font-size-sm)] text-[color:var(--deframe-widget-color-text-secondary)] text-center",
15727
15758
  "data-test-id": "onchain-withdraw-signature-warning-subtitle",
15728
- children: "A assinatura da transa\xE7\xE3o foi cancelada. Nenhum valor foi enviado."
15759
+ children: labels.subtitle
15729
15760
  }
15730
15761
  )
15731
15762
  ] }),
@@ -15754,7 +15785,7 @@ function OnchainWithdrawSignatureWarningView({
15754
15785
  {
15755
15786
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15756
15787
  "data-test-id": "onchain-withdraw-signature-warning-sending-label",
15757
- children: "Voc\xEA est\xE1 enviando"
15788
+ children: labels.sendingLabel
15758
15789
  }
15759
15790
  ),
15760
15791
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15776,7 +15807,7 @@ function OnchainWithdrawSignatureWarningView({
15776
15807
  {
15777
15808
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15778
15809
  "data-test-id": "onchain-withdraw-signature-warning-destination-label",
15779
- children: "Para o endere\xE7o"
15810
+ children: labels.destinationLabel
15780
15811
  }
15781
15812
  ),
15782
15813
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -15803,10 +15834,10 @@ function OnchainWithdrawSignatureWarningView({
15803
15834
  {
15804
15835
  onClick: () => setShowDetails(!showDetails),
15805
15836
  className: "flex justify-between items-center w-full text-left cursor-pointer p-4",
15806
- "aria-label": "Detalhes da transa\xE7\xE3o",
15837
+ "aria-label": labels.detailsAriaLabel,
15807
15838
  "data-test-id": "onchain-withdraw-signature-warning-details-toggle",
15808
15839
  children: [
15809
- /* @__PURE__ */ jsxRuntime.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" }),
15840
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[length:var(--deframe-widget-font-size-sm)] [font-weight:var(--deframe-widget-font-weight-semibold)]", children: labels.detailsToggleLabel }),
15810
15841
  /* @__PURE__ */ jsxRuntime.jsx(
15811
15842
  md.MdOutlineExpandMore,
15812
15843
  {
@@ -15826,7 +15857,7 @@ function OnchainWithdrawSignatureWarningView({
15826
15857
  {
15827
15858
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15828
15859
  "data-test-id": "onchain-withdraw-signature-warning-withdraw-amount-label",
15829
- children: "Valor de retirada"
15860
+ children: labels.withdrawAmountLabel
15830
15861
  }
15831
15862
  ),
15832
15863
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15848,7 +15879,7 @@ function OnchainWithdrawSignatureWarningView({
15848
15879
  {
15849
15880
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15850
15881
  "data-test-id": "onchain-withdraw-signature-warning-blockchain-cost-label",
15851
- children: "Custo da blockchain"
15882
+ children: labels.blockchainCostLabel
15852
15883
  }
15853
15884
  ),
15854
15885
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -15866,7 +15897,7 @@ function OnchainWithdrawSignatureWarningView({
15866
15897
  {
15867
15898
  className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]",
15868
15899
  "data-test-id": "onchain-withdraw-signature-warning-receive-label",
15869
- children: "Voc\xEA receber\xE1"
15900
+ children: labels.receiveLabel
15870
15901
  }
15871
15902
  ),
15872
15903
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15898,7 +15929,7 @@ function OnchainWithdrawSignatureWarningView({
15898
15929
  className: "flex-1",
15899
15930
  onClick: onCancel,
15900
15931
  "data-test-id": "onchain-withdraw-signature-warning-cancel",
15901
- children: "Cancelar"
15932
+ children: labels.cancelLabel
15902
15933
  }
15903
15934
  ),
15904
15935
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -15907,7 +15938,7 @@ function OnchainWithdrawSignatureWarningView({
15907
15938
  className: "flex-1",
15908
15939
  onClick: onTryAgain,
15909
15940
  "data-test-id": "onchain-withdraw-signature-warning-retry",
15910
- children: "Tente novamente"
15941
+ children: labels.retryLabel
15911
15942
  }
15912
15943
  )
15913
15944
  ]
@@ -15924,7 +15955,8 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15924
15955
  tokenLogoURI,
15925
15956
  chainName,
15926
15957
  chainIconUrl,
15927
- formattedAmount
15958
+ formattedAmount,
15959
+ labels
15928
15960
  }) => {
15929
15961
  React6__namespace.useEffect(() => {
15930
15962
  if (!onCancel) return;
@@ -15935,10 +15967,10 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15935
15967
  EarnFeedbackOverlaySimpleView,
15936
15968
  {
15937
15969
  variant: "warning",
15938
- title: "Saque n\xE3o assinado",
15939
- subtitle: "A assinatura da transa\xE7\xE3o foi cancelada.",
15970
+ title: labels.title,
15971
+ subtitle: labels.subtitle,
15940
15972
  formData: {
15941
- headerTitle: "Saque",
15973
+ headerTitle: labels.title,
15942
15974
  tokenSymbol,
15943
15975
  tokenLogoURI,
15944
15976
  chainLabel: chainName,
@@ -15948,7 +15980,7 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
15948
15980
  }
15949
15981
  ) });
15950
15982
  };
15951
- function KycLoadingView({ message = "Carregando" }) {
15983
+ function KycLoadingView({ message }) {
15952
15984
  return /* @__PURE__ */ jsxRuntime.jsx(
15953
15985
  "div",
15954
15986
  {
@@ -16790,7 +16822,8 @@ function OnrampSuccessView({
16790
16822
  summaryItems = [],
16791
16823
  onNewDeposit,
16792
16824
  onGoToDashboard,
16793
- className
16825
+ className,
16826
+ labels
16794
16827
  }) {
16795
16828
  return /* @__PURE__ */ jsxRuntime.jsxs(
16796
16829
  "div",
@@ -16804,17 +16837,14 @@ function OnrampSuccessView({
16804
16837
  /* @__PURE__ */ jsxRuntime.jsxs(SuccessHeader, { children: [
16805
16838
  /* @__PURE__ */ jsxRuntime.jsx(SuccessIcon3, {}),
16806
16839
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
16807
- /* @__PURE__ */ jsxRuntime.jsx(SuccessTitle, { children: "Dep\xF3sito via PIX conclu\xEDdo" }),
16808
- /* @__PURE__ */ jsxRuntime.jsxs(SuccessDescription, { children: [
16809
- amount,
16810
- " BRLA foram adicionados \xE0 sua carteira."
16811
- ] })
16840
+ /* @__PURE__ */ jsxRuntime.jsx(SuccessTitle, { children: labels.title }),
16841
+ /* @__PURE__ */ jsxRuntime.jsx(SuccessDescription, { children: labels.descriptionTemplate.replace("{{amount}}", amount != null ? amount : "") })
16812
16842
  ] })
16813
16843
  ] }),
16814
16844
  /* @__PURE__ */ jsxRuntime.jsx(DepositCard, { children: /* @__PURE__ */ jsxRuntime.jsxs(DepositRow, { children: [
16815
16845
  /* @__PURE__ */ jsxRuntime.jsx(DepositIcon, {}),
16816
16846
  /* @__PURE__ */ jsxRuntime.jsxs(DepositInfo, { children: [
16817
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]", children: "Voc\xEA depositou via PIX" }),
16847
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[12px] text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.depositLabel }),
16818
16848
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[14px] font-semibold text-[color:var(--deframe-widget-color-text-secondary)]", children: [
16819
16849
  amount,
16820
16850
  " BRLA"
@@ -16835,18 +16865,18 @@ function OnrampSuccessView({
16835
16865
  SecondaryButton,
16836
16866
  {
16837
16867
  onClick: onNewDeposit,
16838
- "aria-label": "Fazer novo dep\xF3sito",
16868
+ "aria-label": labels.newDepositAriaLabel,
16839
16869
  "data-test-id": "onramp-success-new-deposit",
16840
- children: "Fazer novo dep\xF3sito"
16870
+ children: labels.newDepositLabel
16841
16871
  }
16842
16872
  ),
16843
16873
  /* @__PURE__ */ jsxRuntime.jsx(
16844
16874
  PrimaryButton,
16845
16875
  {
16846
16876
  onClick: onGoToDashboard,
16847
- "aria-label": "Ir para carteira",
16877
+ "aria-label": labels.goToDashboardAriaLabel,
16848
16878
  "data-test-id": "onramp-success-go-dashboard",
16849
- children: "Ir para carteira"
16879
+ children: labels.goToDashboardLabel
16850
16880
  }
16851
16881
  )
16852
16882
  ] })
@@ -16895,7 +16925,8 @@ function OfframpInputFormView({
16895
16925
  backIcon,
16896
16926
  tokenIconUrl = "/brladigital_32.webp",
16897
16927
  flagIconUrl = "/brazil-flag-rounded.png",
16898
- className
16928
+ className,
16929
+ labels
16899
16930
  }) {
16900
16931
  return /* @__PURE__ */ jsxRuntime.jsxs(
16901
16932
  "div",
@@ -16912,11 +16943,11 @@ function OfframpInputFormView({
16912
16943
  {
16913
16944
  onClick: onBack,
16914
16945
  className: "flex items-center gap-2 mb-4 cursor-pointer",
16915
- "aria-label": "Voltar",
16946
+ "aria-label": labels.backAriaLabel,
16916
16947
  "data-test-id": "offramp-input-form-back-button",
16917
16948
  children: [
16918
16949
  backIcon || defaultBackIcon2,
16919
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-medium", children: "Voltar" })
16950
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-medium", children: labels.backLabel })
16920
16951
  ]
16921
16952
  }
16922
16953
  ),
@@ -16931,8 +16962,8 @@ function OfframpInputFormView({
16931
16962
  }
16932
16963
  ),
16933
16964
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
16934
- /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { variant: "h3", children: "Saque via PIX" }),
16935
- /* @__PURE__ */ jsxRuntime.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." })
16965
+ /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { variant: "h3", children: labels.title }),
16966
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
16936
16967
  ] }),
16937
16968
  /* @__PURE__ */ jsxRuntime.jsxs(ListItem, { children: [
16938
16969
  /* @__PURE__ */ jsxRuntime.jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -16944,7 +16975,7 @@ function OfframpInputFormView({
16944
16975
  }
16945
16976
  ) }),
16946
16977
  /* @__PURE__ */ jsxRuntime.jsxs(ListItemContent, { className: "ml-4", children: [
16947
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Saldo em BRLA dispon\xEDvel" }),
16978
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.balanceLabel }),
16948
16979
  /* @__PURE__ */ jsxRuntime.jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
16949
16980
  brlaBalance,
16950
16981
  " BRLA"
@@ -16952,7 +16983,7 @@ function OfframpInputFormView({
16952
16983
  ] })
16953
16984
  ] }),
16954
16985
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
16955
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: "Quanto voc\xEA quer enviar via PIX?" }),
16986
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: labels.amountQuestion }),
16956
16987
  /* @__PURE__ */ jsxRuntime.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: [
16957
16988
  /* @__PURE__ */ jsxRuntime.jsx("img", { src: flagIconUrl, alt: "BRL", className: "w-6 h-6 rounded-full" }),
16958
16989
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -16970,7 +17001,7 @@ function OfframpInputFormView({
16970
17001
  },
16971
17002
  placeholder: "R$0.00",
16972
17003
  className: "w-full bg-transparent text-right text-[28px] font-extrabold text-[color:var(--deframe-widget-color-text-primary)] outline-none",
16973
- "aria-label": "Valor do saque",
17004
+ "aria-label": labels.amountAriaLabel,
16974
17005
  "data-test-id": "offramp-input-form-amount"
16975
17006
  }
16976
17007
  )
@@ -16980,14 +17011,14 @@ function OfframpInputFormView({
16980
17011
  {
16981
17012
  onClick: onMaxClick,
16982
17013
  className: "text-[length:var(--deframe-widget-font-size-sm)]",
16983
- "aria-label": "Usar valor m\xE1ximo",
16984
- children: "Max"
17014
+ "aria-label": labels.maxAriaLabel,
17015
+ children: labels.maxLabel
16985
17016
  }
16986
17017
  ) }),
16987
17018
  hasActiveWithdrawal && /* @__PURE__ */ jsxRuntime.jsx(
16988
17019
  BannerNotification,
16989
17020
  {
16990
- message: "Voc\xEA j\xE1 tem um saque em andamento. Aguarde a conclus\xE3o antes de iniciar outro.",
17021
+ message: labels.activeWithdrawalWarning,
16991
17022
  variant: "warning"
16992
17023
  }
16993
17024
  ),
@@ -17000,16 +17031,16 @@ function OfframpInputFormView({
17000
17031
  )
17001
17032
  ] }),
17002
17033
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
17003
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: "Qual \xE9 a sua chave PIX?" }),
17034
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] mb-2", children: labels.pixKeyQuestion }),
17004
17035
  /* @__PURE__ */ jsxRuntime.jsx(
17005
17036
  Input2,
17006
17037
  {
17007
17038
  type: "text",
17008
17039
  value: pixKey,
17009
17040
  onChange: (e) => onPixKeyChange(e.target.value),
17010
- placeholder: "(CPF, email, telefone ou aleat\xF3ria)",
17041
+ placeholder: labels.pixKeyPlaceholder,
17011
17042
  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)]",
17012
- "aria-label": "Chave PIX",
17043
+ "aria-label": labels.pixKeyAriaLabel,
17013
17044
  "data-test-id": "offramp-input-form-pix-key"
17014
17045
  }
17015
17046
  ),
@@ -17017,7 +17048,7 @@ function OfframpInputFormView({
17017
17048
  BannerNotification,
17018
17049
  {
17019
17050
  variant: "info",
17020
- message: "A chave PIX deve estar vinculada ao mesmo CPF do seu cadastro."
17051
+ message: labels.pixKeyInfo
17021
17052
  }
17022
17053
  )
17023
17054
  ] }),
@@ -17035,7 +17066,7 @@ function OfframpInputFormView({
17035
17066
  /* @__PURE__ */ jsxRuntime.jsx(
17036
17067
  BannerNotification,
17037
17068
  {
17038
- 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.",
17069
+ message: labels.signatureInfo,
17039
17070
  variant: "info"
17040
17071
  }
17041
17072
  ),
@@ -17051,7 +17082,7 @@ function OfframpInputFormView({
17051
17082
  {
17052
17083
  onClick: onSubmit,
17053
17084
  disabled: submitDisabled,
17054
- "aria-label": "Confirmar saque",
17085
+ "aria-label": labels.submitAriaLabel,
17055
17086
  "data-test-id": "offramp-input-form-submit",
17056
17087
  children: submitLabel
17057
17088
  }
@@ -17605,7 +17636,8 @@ function OfframpProcessingView({
17605
17636
  onClose,
17606
17637
  closeIcon,
17607
17638
  tokenIconUrl = "/brladigital_32.webp",
17608
- className
17639
+ className,
17640
+ labels
17609
17641
  }) {
17610
17642
  const progressPercent = step === "creating_ticket" ? 50 : step === "transferring" ? 75 : 85;
17611
17643
  const prepareStatus = step === "creating_ticket" ? "processing" : "done";
@@ -17630,7 +17662,7 @@ function OfframpProcessingView({
17630
17662
  {
17631
17663
  onClick: onClose,
17632
17664
  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",
17633
- "aria-label": "Fechar",
17665
+ "aria-label": labels.closeAriaLabel,
17634
17666
  "data-test-id": "offramp-processing-close-button",
17635
17667
  children: closeIcon || defaultCloseIcon
17636
17668
  }
@@ -17642,14 +17674,14 @@ function OfframpProcessingView({
17642
17674
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-20 h-20 bg-[#F6A700] rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-10 h-10 animate-pulse", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.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" }) }) }),
17643
17675
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
17644
17676
  /* @__PURE__ */ jsxRuntime.jsxs(TextHeading, { variant: "h3", className: "mb-2 flex items-center justify-center gap-1", children: [
17645
- "Estamos enviando seu PIX",
17677
+ labels.title,
17646
17678
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex gap-0.5", children: [
17647
17679
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-bounce", style: { animationDelay: "0ms", animationDuration: "1.4s" }, children: "." }),
17648
17680
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-bounce", style: { animationDelay: "200ms", animationDuration: "1.4s" }, children: "." }),
17649
17681
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-bounce", style: { animationDelay: "400ms", animationDuration: "1.4s" }, children: "." })
17650
17682
  ] })
17651
17683
  ] }),
17652
- /* @__PURE__ */ jsxRuntime.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." })
17684
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
17653
17685
  ] })
17654
17686
  ] }),
17655
17687
  /* @__PURE__ */ jsxRuntime.jsxs(ListItem, { children: [
@@ -17662,7 +17694,7 @@ function OfframpProcessingView({
17662
17694
  }
17663
17695
  ) }),
17664
17696
  /* @__PURE__ */ jsxRuntime.jsxs(ListItemContent, { className: "ml-4", children: [
17665
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Voc\xEA sacou via PIX" }),
17697
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.amountLabel }),
17666
17698
  /* @__PURE__ */ jsxRuntime.jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
17667
17699
  amount,
17668
17700
  " BRLA"
@@ -17684,25 +17716,26 @@ function OfframpProcessingView({
17684
17716
  breakdown: [
17685
17717
  {
17686
17718
  type: "prepare_withdrawal",
17687
- description: "Preparando seu saque",
17719
+ description: labels.prepareStepLabel,
17688
17720
  status: mapStatus(prepareStatus)
17689
17721
  },
17690
17722
  {
17691
17723
  type: "blockchain_signature",
17692
- description: "Assinatura",
17724
+ description: labels.signatureStepLabel,
17693
17725
  status: mapStatus(signatureStatus),
17694
17726
  explorerUrl: transferTxHash ? `https://polygonscan.com/tx/${transferTxHash}` : void 0
17695
17727
  },
17696
17728
  {
17697
17729
  type: "pix_transfer",
17698
- description: "Enviando PIX para sua conta",
17730
+ description: labels.pixTransferStepLabel,
17699
17731
  status: mapStatus(sendStatus)
17700
17732
  }
17701
17733
  ]
17702
17734
  }
17703
17735
  ),
17704
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full space-y-3", children: /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { disabled: true, "aria-label": "Aguarde processamento", children: [
17705
- "Aguarde ",
17736
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full space-y-3", children: /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { disabled: true, "aria-label": labels.waitingButtonAriaLabel, children: [
17737
+ labels.waitingButtonLabel,
17738
+ " ",
17706
17739
  /* @__PURE__ */ jsxRuntime.jsx(LoadingDots, {})
17707
17740
  ] }) })
17708
17741
  ] }) })
@@ -17759,7 +17792,8 @@ function OfframpSuccessView({
17759
17792
  closeIcon,
17760
17793
  arrowUpIcon,
17761
17794
  tokenIconUrl = "/brladigital_32.webp",
17762
- className
17795
+ className,
17796
+ labels
17763
17797
  }) {
17764
17798
  return /* @__PURE__ */ jsxRuntime.jsxs(
17765
17799
  "div",
@@ -17776,7 +17810,7 @@ function OfframpSuccessView({
17776
17810
  {
17777
17811
  onClick: onClose,
17778
17812
  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",
17779
- "aria-label": "Fechar",
17813
+ "aria-label": labels.closeAriaLabel,
17780
17814
  "data-test-id": "offramp-success-close-button",
17781
17815
  children: closeIcon || defaultCloseIcon2
17782
17816
  }
@@ -17787,14 +17821,14 @@ function OfframpSuccessView({
17787
17821
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center text-center space-y-4", children: [
17788
17822
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-20 h-20 bg-[#1FC16B]/20 rounded-full flex items-center justify-center", children: arrowUpIcon || defaultArrowUpIcon }),
17789
17823
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
17790
- /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { variant: "h3", className: "mb-2", children: "PIX enviado com sucesso!" }),
17791
- /* @__PURE__ */ jsxRuntime.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." })
17824
+ /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { variant: "h3", className: "mb-2", children: labels.title }),
17825
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "text-[color:var(--deframe-widget-color-text-secondary)]", children: labels.subtitle })
17792
17826
  ] })
17793
17827
  ] }),
17794
17828
  /* @__PURE__ */ jsxRuntime.jsxs(ListItem, { children: [
17795
17829
  /* @__PURE__ */ jsxRuntime.jsx(ListItemLeftSide, { children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: tokenIconUrl, alt: "Token", className: "w-10 h-10 rounded-full" }) }),
17796
17830
  /* @__PURE__ */ jsxRuntime.jsxs(ListItemContent, { className: "ml-4", children: [
17797
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: "Voc\xEA sacou via PIX" }),
17831
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] ml-2", children: labels.amountLabel }),
17798
17832
  /* @__PURE__ */ jsxRuntime.jsxs(TextHeading, { variant: "h5", className: "ml-2", children: [
17799
17833
  amount,
17800
17834
  " BRLA"
@@ -17803,33 +17837,33 @@ function OfframpSuccessView({
17803
17837
  ] }),
17804
17838
  /* @__PURE__ */ jsxRuntime.jsx(Card, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 w-full inline-flex flex-col justify-start items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full flex flex-col justify-start items-start gap-2", children: [
17805
17839
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17806
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Valor do saque" }),
17840
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.withdrawAmountLabel }),
17807
17841
  /* @__PURE__ */ jsxRuntime.jsxs(TextBody, { variant: "text-small", className: "font-[var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: [
17808
17842
  amount,
17809
17843
  " BRLA"
17810
17844
  ] })
17811
17845
  ] }),
17812
17846
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17813
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Taxa" }),
17847
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.feeLabel }),
17814
17848
  /* @__PURE__ */ jsxRuntime.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 })
17815
17849
  ] }),
17816
17850
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17817
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Metodo" }),
17818
- /* @__PURE__ */ jsxRuntime.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)" })
17851
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.methodLabel }),
17852
+ /* @__PURE__ */ jsxRuntime.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 })
17819
17853
  ] }),
17820
17854
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-8 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17821
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Status" }),
17855
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.statusLabel }),
17822
17856
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-2 py-0.5 bg-[#1FC16B]/10 rounded-3xl flex justify-end items-center gap-2", children: [
17823
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: "Sucesso" }),
17857
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: labels.statusValue }),
17824
17858
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-2 h-2 bg-teal-600 rounded-full" })
17825
17859
  ] })
17826
17860
  ] }),
17827
17861
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17828
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "ID da Transa\xE7\xE3o" }),
17862
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.transactionIdLabel }),
17829
17863
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-start items-center gap-2", children: transactionId ? /* @__PURE__ */ jsxRuntime.jsx(TransactionIdDisplay, { transactionId }) : /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-primary)] leading-5", children: "-" }) })
17830
17864
  ] }),
17831
17865
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "self-stretch h-6 border-b border-[var(--deframe-widget-color-border-secondary)] inline-flex justify-between items-start", children: [
17832
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: "Data" }),
17866
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-secondary)] leading-5", children: labels.dateLabel }),
17833
17867
  /* @__PURE__ */ jsxRuntime.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 })
17834
17868
  ] })
17835
17869
  ] }) }) }),
@@ -17837,9 +17871,9 @@ function OfframpSuccessView({
17837
17871
  PrimaryButton,
17838
17872
  {
17839
17873
  onClick: onConfirm,
17840
- "aria-label": "Confirmar",
17874
+ "aria-label": labels.confirmAriaLabel,
17841
17875
  "data-test-id": "offramp-success-confirm-button",
17842
- children: "Ok, obrigado"
17876
+ children: labels.confirmLabel
17843
17877
  }
17844
17878
  )
17845
17879
  ] }) })
@@ -17953,7 +17987,8 @@ var DashboardTokenListView = ({
17953
17987
  isLoading,
17954
17988
  className,
17955
17989
  showCard = true,
17956
- onDepositClick
17990
+ onDepositClick,
17991
+ labels
17957
17992
  }) => {
17958
17993
  const [searchQuery, setSearchQuery] = React6.useState("");
17959
17994
  const filteredTokens = tokens.filter((token) => {
@@ -17963,14 +17998,14 @@ var DashboardTokenListView = ({
17963
17998
  return token.symbol.toLowerCase().includes(query) || token.name.toLowerCase().includes(query);
17964
17999
  });
17965
18000
  const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-test-id": "dashboard-token-list", children: [
17966
- showCard && /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: "Seus tokens" }),
18001
+ showCard && /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: labels.title }),
17967
18002
  !isLoading && tokens.length > 0 && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex items-center relative", children: [
17968
18003
  /* @__PURE__ */ jsxRuntime.jsx(
17969
18004
  Input2,
17970
18005
  {
17971
18006
  "data-test-id": "dashboard-token-search-input",
17972
18007
  type: "text",
17973
- placeholder: "Pesquisar aqui...",
18008
+ placeholder: labels.searchPlaceholder,
17974
18009
  value: searchQuery,
17975
18010
  onChange: (e) => setSearchQuery(e.target.value),
17976
18011
  className: "w-full h-full p-4 pr-12"
@@ -18045,13 +18080,13 @@ var DashboardTokenListView = ({
18045
18080
  className: "flex flex-col items-center justify-center",
18046
18081
  children: searchQuery ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
18047
18082
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(md.MdOutlineSearch, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-secondary)]" }) }),
18048
- /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { className: "text-center mb-4", children: "Nenhum token encontrado" }),
18049
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: "Tente buscar por outro nome ou s\xEDmbolo." })
18083
+ /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { className: "text-center mb-4", children: labels.emptySearchTitle }),
18084
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: labels.emptySearchDescription })
18050
18085
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
18051
18086
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(md.MdQrCodeScanner, { className: "w-10 h-10 text-[var(--deframe-widget-color-text-secondary)]" }) }),
18052
- /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { className: "text-center mb-4", children: "Deposite e comece a usar a wallet" }),
18053
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: "Use Pix para adicionar saldo instantaneamente na sua carteira." }),
18054
- onDepositClick && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onDepositClick, children: /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { children: "Depositar via Pix" }) })
18087
+ /* @__PURE__ */ jsxRuntime.jsx(TextHeading, { className: "text-center mb-4", children: labels.emptyDepositTitle }),
18088
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { variant: "text-large", className: "text-center mb-4", children: labels.emptyDepositDescription }),
18089
+ onDepositClick && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onDepositClick, children: /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { children: labels.depositCtaLabel }) })
18055
18090
  ] })
18056
18091
  }
18057
18092
  ) })
@@ -18148,10 +18183,11 @@ var DashboardPortfolioView = ({
18148
18183
  onWithdrawClick,
18149
18184
  onSwapClick,
18150
18185
  formattedTokenPositions,
18151
- formattedEarnPositions
18186
+ formattedEarnPositions,
18187
+ labels
18152
18188
  }) => {
18153
18189
  return /* @__PURE__ */ jsxRuntime.jsx(DashboardCard, { className: "p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col w-full h-full", children: [
18154
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: "Portf\xF3lio" }),
18190
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: labels.title }),
18155
18191
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 mb-2", children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 bg-[var(--deframe-widget-color-bg-muted)] rounded w-64 animate-pulse" }, "skeleton") : /* @__PURE__ */ jsxRuntime.jsx(
18156
18192
  framerMotion.motion.p,
18157
18193
  {
@@ -18167,15 +18203,15 @@ var DashboardPortfolioView = ({
18167
18203
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex lg:hidden flex-row gap-2 sm:gap-4 mt-6 w-full", children: [
18168
18204
  /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "dashboard-quick-action-deposit-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onDepositClick, children: /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18169
18205
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
18170
- "Depositar"
18206
+ labels.depositLabel
18171
18207
  ] }) }),
18172
18208
  /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "dashboard-quick-action-withdraw-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onWithdrawClick, children: /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18173
18209
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
18174
- "Sacar"
18210
+ labels.withdrawLabel
18175
18211
  ] }) }),
18176
18212
  /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "dashboard-quick-action-swap-mobile", className: "flex-1 min-w-0 cursor-pointer", onClick: onSwapClick, children: /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18177
18213
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
18178
- "Trocar"
18214
+ labels.swapLabel
18179
18215
  ] }) })
18180
18216
  ] }),
18181
18217
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -18232,7 +18268,8 @@ function StatCardSkeletonBlock({ showDescription, className }) {
18232
18268
  var DashboardPortfolioViewSimple = ({
18233
18269
  formattedTotalValue,
18234
18270
  isLoading,
18235
- assetCount
18271
+ assetCount,
18272
+ labels
18236
18273
  }) => {
18237
18274
  if (isLoading) {
18238
18275
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -18257,7 +18294,7 @@ var DashboardPortfolioViewSimple = ({
18257
18294
  ),
18258
18295
  children: [
18259
18296
  /* @__PURE__ */ jsxRuntime.jsxs("article", { className: tailwindMerge.twMerge(cardClasses2, "self-stretch"), children: [
18260
- /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Total da Carteira" }),
18297
+ /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: labels.totalLabel }),
18261
18298
  /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
18262
18299
  framerMotion.motion.p,
18263
18300
  {
@@ -18271,10 +18308,10 @@ var DashboardPortfolioViewSimple = ({
18271
18308
  },
18272
18309
  "value"
18273
18310
  ) }),
18274
- /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-description", className: descriptionClasses, children: "Soma do saldo por token (em BRL)." })
18311
+ /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-description", className: descriptionClasses, children: labels.totalDescription })
18275
18312
  ] }),
18276
18313
  assetCount != null && /* @__PURE__ */ jsxRuntime.jsxs("article", { className: tailwindMerge.twMerge(cardClasses2, "self-stretch min-w-[160px]"), children: [
18277
- /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: "Ativos" }),
18314
+ /* @__PURE__ */ jsxRuntime.jsx("p", { "data-test-id": "stat-card-label", className: labelClasses, children: labels.assetsLabel }),
18278
18315
  /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
18279
18316
  framerMotion.motion.p,
18280
18317
  {
@@ -18299,10 +18336,11 @@ var DashboardTokensView = ({
18299
18336
  isLoadingBalances,
18300
18337
  activeTab,
18301
18338
  onTabChange,
18302
- strategiesContent
18339
+ strategiesContent,
18340
+ labels
18303
18341
  }) => {
18304
18342
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
18305
- /* @__PURE__ */ jsxRuntime.jsx(DashboardTokenListView, { tokens: sortedRegularTokens, isLoading: isLoadingBalances, className: "hidden lg:block" }),
18343
+ /* @__PURE__ */ jsxRuntime.jsx(DashboardTokenListView, { tokens: sortedRegularTokens, isLoading: isLoadingBalances, className: "hidden lg:block", labels: labels.tokenList }),
18306
18344
  /* @__PURE__ */ jsxRuntime.jsx(DashboardCard, { className: "lg:hidden p-6 bg-[var(--deframe-widget-color-bg-subtle)]", children: /* @__PURE__ */ jsxRuntime.jsxs(
18307
18345
  Tabs,
18308
18346
  {
@@ -18310,12 +18348,12 @@ var DashboardTokensView = ({
18310
18348
  onValueChange: (value) => onTabChange(value),
18311
18349
  children: [
18312
18350
  /* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: "w-full mb-3 flex justify-center", children: [
18313
- /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "tokens", children: "Cripto" }),
18314
- /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "strategies", children: "Investimentos" })
18351
+ /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "tokens", children: labels.tokensTabLabel }),
18352
+ /* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "strategies", children: labels.strategiesTabLabel })
18315
18353
  ] }),
18316
18354
  /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "tokens", children: [
18317
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: "Seus tokens" }),
18318
- /* @__PURE__ */ jsxRuntime.jsx(DashboardTokenListView, { tokens: regularTokens, isLoading: isLoadingBalances, showCard: false })
18355
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: labels.mobileTokensTitle }),
18356
+ /* @__PURE__ */ jsxRuntime.jsx(DashboardTokenListView, { tokens: regularTokens, isLoading: isLoadingBalances, showCard: false, labels: labels.tokenList })
18319
18357
  ] }),
18320
18358
  /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: "strategies", children: strategiesContent })
18321
18359
  ]
@@ -18905,25 +18943,26 @@ var DashboardView = ({
18905
18943
  recentTransactions,
18906
18944
  investmentOpportunities,
18907
18945
  quickActions,
18908
- banner
18946
+ banner,
18947
+ labels
18909
18948
  }) => {
18910
18949
  return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "dashboard-page", className: "w-full relative overflow-hidden mx-auto rounded p-6 lg:p-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 max-w-[1400px] mx-auto", children: [
18911
18950
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:col-span-2 space-y-6", children: [
18912
18951
  /* @__PURE__ */ jsxRuntime.jsx(DashboardPortfolioView, __spreadValues({}, portfolio)),
18913
18952
  /* @__PURE__ */ jsxRuntime.jsx(DashboardCard, { "data-testid": "dashboard-quick-actions-card", className: "hidden lg:block p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-3", children: [
18914
- /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: "A\xE7\xF5es r\xE1pidas" }),
18953
+ /* @__PURE__ */ jsxRuntime.jsx(TextBody, { className: "mb-6", children: labels.quickActionsTitle }),
18915
18954
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row gap-4 w-full", children: [
18916
18955
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18917
18956
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineArrowUpward, { className: "w-4 h-4 shrink-0" }),
18918
- "Depositar"
18957
+ labels.depositLabel
18919
18958
  ] }) }),
18920
18959
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18921
18960
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineArrowDownward, { className: "w-4 h-4 shrink-0" }),
18922
- "Sacar"
18961
+ labels.withdrawLabel
18923
18962
  ] }) }),
18924
18963
  /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(PrimaryButton, { children: [
18925
18964
  /* @__PURE__ */ jsxRuntime.jsx(md.MdOutlineSwapHoriz, { className: "w-4 h-4 shrink-0" }),
18926
- "Trocar"
18965
+ labels.swapLabel
18927
18966
  ] }) })
18928
18967
  ] })
18929
18968
  ] }) }),
@@ -18944,7 +18983,8 @@ var DashboardView = ({
18944
18983
  var DashboardViewSimple = ({
18945
18984
  portfolio,
18946
18985
  tokens,
18947
- quickActions
18986
+ quickActions,
18987
+ labels
18948
18988
  }) => {
18949
18989
  const assetCount = tokens.sortedRegularTokens.filter((t) => !isDustValue(t.amountInUSD)).length;
18950
18990
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -18965,7 +19005,7 @@ var DashboardViewSimple = ({
18965
19005
  {
18966
19006
  "data-test-id": "dashboard-home-title",
18967
19007
  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)]",
18968
- children: "Wallet"
19008
+ children: labels.pageTitle
18969
19009
  }
18970
19010
  ),
18971
19011
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -18973,7 +19013,7 @@ var DashboardViewSimple = ({
18973
19013
  {
18974
19014
  "data-test-id": "dashboard-home-subtitle",
18975
19015
  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)]",
18976
- children: "Resumo da sua carteira e movimenta\xE7\xF5es."
19016
+ children: labels.pageSubtitle
18977
19017
  }
18978
19018
  )
18979
19019
  ] }),
@@ -18988,7 +19028,7 @@ var DashboardViewSimple = ({
18988
19028
  {
18989
19029
  className: "w-auto py-[var(--deframe-widget-size-padding-y-sm)] [font-weight:var(--deframe-widget-font-weight-medium)]",
18990
19030
  onClick: () => quickActions == null ? void 0 : quickActions.onDepositClick(),
18991
- children: "Depositar"
19031
+ children: labels.depositLabel
18992
19032
  }
18993
19033
  ),
18994
19034
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -18996,7 +19036,7 @@ var DashboardViewSimple = ({
18996
19036
  {
18997
19037
  className: "w-auto py-[var(--deframe-widget-size-padding-y-sm)] [font-weight:var(--deframe-widget-font-weight-medium)]",
18998
19038
  onClick: () => quickActions == null ? void 0 : quickActions.onWithdrawClick(),
18999
- children: "Sacar"
19039
+ children: labels.withdrawLabel
19000
19040
  }
19001
19041
  )
19002
19042
  ]