@greatapps/common 1.1.784 → 1.1.785

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.
Files changed (106) hide show
  1. package/dist/components/layouts/AppMobileNavBar.mjs +5 -64
  2. package/dist/components/layouts/AppMobileNavBar.mjs.map +1 -1
  3. package/dist/components/layouts/AppNavBar.mjs +0 -2
  4. package/dist/components/layouts/AppNavBar.mjs.map +1 -1
  5. package/dist/components/layouts/NavBar.mjs +52 -111
  6. package/dist/components/layouts/NavBar.mjs.map +1 -1
  7. package/dist/components/modals/cards/AddCardModal.mjs +3 -2
  8. package/dist/components/modals/cards/AddCardModal.mjs.map +1 -1
  9. package/dist/components/ui/form/PhoneInput.mjs +1 -1
  10. package/dist/components/ui/form/PhoneInput.mjs.map +1 -1
  11. package/dist/handlers.mjs +0 -2
  12. package/dist/handlers.mjs.map +1 -1
  13. package/dist/i18n/messages/en-us.mjs +1 -3
  14. package/dist/i18n/messages/en-us.mjs.map +1 -1
  15. package/dist/i18n/messages/es-es.mjs +1 -3
  16. package/dist/i18n/messages/es-es.mjs.map +1 -1
  17. package/dist/i18n/messages/pt-br.mjs +1 -3
  18. package/dist/i18n/messages/pt-br.mjs.map +1 -1
  19. package/dist/index.mjs +1 -9
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/infra/api/client.mjs +1 -5
  22. package/dist/infra/api/client.mjs.map +1 -1
  23. package/dist/infra/api/types.mjs +1 -1
  24. package/dist/infra/api/types.mjs.map +1 -1
  25. package/dist/infra/route/safe-route-handler.mjs +1 -4
  26. package/dist/infra/route/safe-route-handler.mjs.map +1 -1
  27. package/dist/modules/auth/utils/assert-account-not-frozen.mjs +5 -6
  28. package/dist/modules/auth/utils/assert-account-not-frozen.mjs.map +1 -1
  29. package/dist/modules/auth/utils/assert-management-subscription.mjs +14 -7
  30. package/dist/modules/auth/utils/assert-management-subscription.mjs.map +1 -1
  31. package/dist/modules/auth/utils/assert-paid-subscription.mjs +12 -7
  32. package/dist/modules/auth/utils/assert-paid-subscription.mjs.map +1 -1
  33. package/dist/modules/auth/utils/assert-subscription-addon.mjs +10 -2
  34. package/dist/modules/auth/utils/assert-subscription-addon.mjs.map +1 -1
  35. package/dist/modules/plans/hooks/use-plan-by-id.hook.mjs.map +1 -1
  36. package/dist/modules/subscriptions/actions/update-subscription-payment.action.mjs.map +1 -1
  37. package/dist/modules/subscriptions/constants/subscription.constants.mjs +0 -2
  38. package/dist/modules/subscriptions/constants/subscription.constants.mjs.map +1 -1
  39. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs +13 -2
  40. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs.map +1 -1
  41. package/dist/modules/subscriptions/hooks/update-subscription-payment.hook.mjs +10 -2
  42. package/dist/modules/subscriptions/hooks/update-subscription-payment.hook.mjs.map +1 -1
  43. package/dist/modules/subscriptions/services/subscriptions.service.mjs +12 -27
  44. package/dist/modules/subscriptions/services/subscriptions.service.mjs.map +1 -1
  45. package/dist/modules/subscriptions/types/subscription.type.mjs.map +1 -1
  46. package/dist/modules/subscriptions/utils/has-active-paid-subscription.mjs +1 -1
  47. package/dist/modules/subscriptions/utils/has-active-paid-subscription.mjs.map +1 -1
  48. package/dist/modules/subscriptions/utils/has-paid-subscription.mjs +1 -1
  49. package/dist/modules/subscriptions/utils/has-paid-subscription.mjs.map +1 -1
  50. package/dist/server.mjs +0 -4
  51. package/dist/server.mjs.map +1 -1
  52. package/dist/store/useMdSidebarStore.mjs +4 -17
  53. package/dist/store/useMdSidebarStore.mjs.map +1 -1
  54. package/dist/utils/safeServerAction.mjs +1 -4
  55. package/dist/utils/safeServerAction.mjs.map +1 -1
  56. package/dist/utils/withAction.mjs +1 -2
  57. package/dist/utils/withAction.mjs.map +1 -1
  58. package/package.json +1 -1
  59. package/src/components/layouts/AppMobileNavBar.tsx +6 -90
  60. package/src/components/layouts/AppNavBar.tsx +1 -5
  61. package/src/components/layouts/NavBar.tsx +66 -160
  62. package/src/components/modals/cards/AddCardModal.tsx +15 -2
  63. package/src/components/ui/form/PhoneInput.tsx +1 -1
  64. package/src/handlers.ts +0 -1
  65. package/src/i18n/messages/en-us.ts +0 -2
  66. package/src/i18n/messages/es-es.ts +0 -2
  67. package/src/i18n/messages/pt-br.ts +0 -2
  68. package/src/index.ts +2 -7
  69. package/src/infra/api/client.ts +3 -11
  70. package/src/infra/api/types.ts +5 -7
  71. package/src/infra/route/safe-route-handler.ts +1 -4
  72. package/src/modules/auth/utils/assert-account-not-frozen.ts +6 -7
  73. package/src/modules/auth/utils/assert-management-subscription.ts +23 -15
  74. package/src/modules/auth/utils/assert-paid-subscription.ts +15 -7
  75. package/src/modules/auth/utils/assert-subscription-addon.ts +12 -2
  76. package/src/modules/plans/hooks/use-plan-by-id.hook.ts +1 -1
  77. package/src/modules/subscriptions/actions/update-subscription-payment.action.ts +6 -1
  78. package/src/modules/subscriptions/constants/subscription.constants.ts +0 -3
  79. package/src/modules/subscriptions/hooks/find-active-subscription.hook.ts +17 -7
  80. package/src/modules/subscriptions/hooks/update-subscription-payment.hook.ts +21 -3
  81. package/src/modules/subscriptions/services/subscriptions.service.ts +46 -38
  82. package/src/modules/subscriptions/types/subscription.type.ts +27 -2
  83. package/src/modules/subscriptions/utils/has-active-paid-subscription.ts +2 -1
  84. package/src/modules/subscriptions/utils/has-paid-subscription.ts +2 -1
  85. package/src/server.ts +0 -2
  86. package/src/store/useMdSidebarStore.ts +5 -20
  87. package/src/utils/safeServerAction.ts +6 -4
  88. package/src/utils/withAction.ts +1 -2
  89. package/dist/components/layouts/GreatDomainIcon.mjs +0 -40
  90. package/dist/components/layouts/GreatDomainIcon.mjs.map +0 -1
  91. package/dist/modules/subscriptions/actions/get-current-subscription.action.mjs +0 -10
  92. package/dist/modules/subscriptions/actions/get-current-subscription.action.mjs.map +0 -1
  93. package/dist/modules/subscriptions/handlers/current-subscription.handler.mjs +0 -17
  94. package/dist/modules/subscriptions/handlers/current-subscription.handler.mjs.map +0 -1
  95. package/dist/modules/subscriptions/hooks/use-current-subscription.hook.mjs +0 -28
  96. package/dist/modules/subscriptions/hooks/use-current-subscription.hook.mjs.map +0 -1
  97. package/dist/modules/subscriptions/utils/group-subscriptions-by-product.mjs +0 -16
  98. package/dist/modules/subscriptions/utils/group-subscriptions-by-product.mjs.map +0 -1
  99. package/dist/modules/subscriptions/utils/read-current-subscription.mjs +0 -21
  100. package/dist/modules/subscriptions/utils/read-current-subscription.mjs.map +0 -1
  101. package/src/components/layouts/GreatDomainIcon.tsx +0 -43
  102. package/src/modules/subscriptions/actions/get-current-subscription.action.ts +0 -8
  103. package/src/modules/subscriptions/handlers/current-subscription.handler.ts +0 -16
  104. package/src/modules/subscriptions/hooks/use-current-subscription.hook.ts +0 -38
  105. package/src/modules/subscriptions/utils/group-subscriptions-by-product.ts +0 -23
  106. package/src/modules/subscriptions/utils/read-current-subscription.ts +0 -34
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/modals/cards/AddCardModal.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useState, useEffect } from 'react';\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from '../../ui/overlay/Dialog';\nimport { Button } from '../../ui/buttons/Button';\nimport { Toast } from '../../ui/feedback/Toast';\nimport { useModalManager } from '../../../store/useModalManager';\nimport { useCreateCard } from '../../../modules/cards/hooks/create-card.hook';\nimport { useCreateSetupIntent } from '../../../modules/cards/hooks/create-setup-intent.hook';\nimport { useCurrentAccount } from '../../../modules/accounts/hooks/current-account.hook';\nimport { isValidTaxId } from '../../../utils/validators/common';\nimport { isUsdAccount } from '../../../utils/format/gateway';\nimport { useExternalContracting } from '../../../providers/whitelabel.provider';\nimport { CardFormFields, BillingFormFields, buildCardFormSchema } from './CardFormFields';\nimport type { CardFormData, StripeElementsStatus } from './CardFormFields';\nimport { IconX, IconCreditCard, IconCheck, IconChevronRight } from '@tabler/icons-react';\nimport { cn } from '../../../infra/utils/clsx';\nimport { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { CardNumberElement, useElements, useStripe } from '@stripe/react-stripe-js';\nimport { toast } from 'sonner';\nimport { useTranslations } from 'next-intl';\n\nconst INITIAL_STRIPE_STATUS: StripeElementsStatus = {\n cardNumber: false,\n cardExpiry: false,\n cardCvc: false,\n};\n\nfunction CardStepper({ currentStep }: { readonly currentStep: number }) {\n const translate = useTranslations();\n const steps = [\n { number: 1, label: translate('common.cards.add.stepBilling') },\n { number: 2, label: translate('common.cards.add.stepCard') },\n ];\n return (\n <div className=\"flex items-center justify-start gap-2 px-4 py-3 bg-zinc-50 border-b border-zinc-200 lg:border-b-0\">\n {steps.map((step, idx) => {\n const isCompleted = currentStep > step.number;\n const isCurrent = currentStep === step.number;\n const isPending = !isCompleted && !isCurrent;\n return (\n <div key={step.number} className=\"flex items-center gap-2\">\n <div\n className={cn(\n 'flex items-center justify-center size-6 rounded-full paragraph-xsmall-semibold',\n isCompleted && 'bg-green-50 text-green-600 border border-green-200',\n isCurrent && 'bg-primary text-zinc-950',\n isPending && 'border border-zinc-200 text-zinc-400',\n )}\n >\n {isCompleted ? (\n <IconCheck size={14} stroke={3} />\n ) : (\n step.number\n )}\n </div>\n <span\n className={cn(\n 'paragraph-xsmall-semibold',\n (isCompleted || isCurrent) && 'text-zinc-950',\n isPending && 'text-zinc-400',\n )}\n >\n {step.label}\n </span>\n {idx < steps.length - 1 && (\n <IconChevronRight size={16} className=\"text-zinc-300 ml-1\" />\n )}\n </div>\n );\n })}\n </div>\n );\n}\n\nexport default function AddCardModal() {\n const translate = useTranslations();\n const { activeModal, modalData, closeModal } = useModalManager();\n const isOpen = activeModal === 'addCardModal';\n const { isExternalContracting, redirectToExternal } = useExternalContracting();\n const { data: account } = useCurrentAccount();\n const isInternational = isUsdAccount(account);\n const [currentStep, setCurrentStep] = useState(1);\n const [stripeStatus, setStripeStatus] = useState<StripeElementsStatus>(INITIAL_STRIPE_STATUS);\n const [stripeErrors, setStripeErrors] = useState<Record<string, string | undefined>>({});\n const [isAuthenticating, setIsAuthenticating] = useState(false);\n\n const onCardAdded = modalData.onCardAdded as ((cardId: string) => void) | undefined;\n\n const createSetupIntentMutation = useCreateSetupIntent();\n const createCardMutation = useCreateCard();\n const elements = useElements();\n const stripe = useStripe();\n\n const form = useForm<CardFormData>({\n resolver: zodResolver(buildCardFormSchema(isInternational)),\n mode: 'onSubmit',\n reValidateMode: 'onChange',\n defaultValues: {\n country: 'BR',\n personType: 'pf',\n },\n });\n\n useEffect(() => {\n if (isInternational) {\n form.setValue('country', 'US');\n }\n }, [isInternational, form]);\n\n const handleClose = useCallback(() => {\n form.reset();\n setCurrentStep(1);\n setStripeStatus(INITIAL_STRIPE_STATUS);\n setStripeErrors({});\n setIsAuthenticating(false);\n closeModal();\n }, [form, closeModal]);\n\n const handleStripeChange = useCallback(\n (field: keyof StripeElementsStatus, complete: boolean) => {\n setStripeStatus((prev) => ({ ...prev, [field]: complete }));\n if (complete) {\n setStripeErrors((prev) => ({ ...prev, [field]: undefined }));\n }\n },\n []\n );\n\n const handleContinue = useCallback(async () => {\n const fields: (keyof CardFormData)[] = isInternational\n ? ['fullName', 'cep', 'street', 'city', 'state']\n : ['fullName', 'cep', 'street', 'streetNumber', 'neighborhood', 'city', 'state'];\n const isValid = await form.trigger(fields);\n if (!isValid) return;\n setCurrentStep(2);\n }, [form, isInternational]);\n\n const handleBack = useCallback(() => {\n setCurrentStep(1);\n }, []);\n\n async function handleSubmit(data: CardFormData) {\n const newStripeErrors: Record<string, string | undefined> = {};\n if (!stripeStatus.cardNumber) newStripeErrors.cardNumber = translate('common.cards.form.cardNumberRequired');\n if (!stripeStatus.cardExpiry) newStripeErrors.cardExpiry = translate('common.cards.form.cardExpiryRequired');\n if (!stripeStatus.cardCvc) newStripeErrors.cardCvc = translate('common.cards.form.cardCvcRequired');\n setStripeErrors(newStripeErrors);\n\n const stripeValid =\n stripeStatus.cardNumber && stripeStatus.cardExpiry && stripeStatus.cardCvc;\n if (!stripeValid) return;\n if (!stripe || !elements) return;\n\n const cardElement = elements.getElement(CardNumberElement);\n if (!cardElement) return;\n\n setIsAuthenticating(true);\n try {\n const intentResult = await createSetupIntentMutation.mutateAsync();\n const intent = intentResult?.data;\n if (!intent?.client_secret || !intent?.setup_intent_id) {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={translate('common.cards.add.errorInitAuth')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n const billingDetails = isInternational\n ? {\n name: data.name,\n address: {\n line1: data.street,\n line2: data.complement || undefined,\n city: data.city,\n state: data.state,\n postal_code: data.cep,\n country: data.country,\n },\n }\n : { name: data.name };\n\n const { setupIntent, error } = await stripe.confirmCardSetup(intent.client_secret, {\n payment_method: {\n card: cardElement,\n billing_details: billingDetails,\n },\n });\n\n if (error) {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={error.message || translate('common.cards.add.errorAuth')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n if (setupIntent?.status !== 'succeeded') {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={translate('common.cards.add.errorAuthStatus', { status: setupIntent?.status ?? translate('common.cards.add.statusUnknown') })}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n /* Chamada ÚNICA: os dados fiscais vão no mesmo request do cartão. O backend atualiza a\n * conta ANTES de registrar o cartão, fail-closed — fiscal rejeitado (CPF inválido etc.)\n * = cartão não registra e o erro chega com a mensagem específica no catch abaixo.\n * Substitui o Promise.all de createCard + updateAccount, que não tinha garantia entre as\n * pernas: quando o PUT de conta falhava, o cartão ficava salvo e a conta sem NENHUM dado\n * fiscal — e as faturas seguintes falhavam a emissão de nota em silêncio. */\n const cardResult = await createCardMutation.mutateAsync({\n setup_intent_id: intent.setup_intent_id,\n name: data.name,\n set_default: true,\n ...(isInternational\n ? {}\n : {\n financial_document_type: data.personType === 'pf' ? 1 : 2,\n financial_document: data.personType === 'pf' ? data.cpf : data.cnpj,\n }),\n financial_name: data.fullName,\n zipcode: data.cep,\n address: data.street,\n address_number: data.streetNumber || '',\n address_complement: data.complement || '',\n neighborhood: data.neighborhood || '',\n city: data.city,\n state: data.state,\n country: data.country,\n });\n\n if (cardResult.success && cardResult.data?.id != null) {\n onCardAdded?.(cardResult.data.id.toString());\n }\n\n toast.custom(\n (t) => <Toast variant=\"success\" message={translate('common.cards.add.successToast')} toastId={t} />,\n { duration: 5000 }\n );\n handleClose();\n } catch (error) {\n /* O backend fail-closed devolve a razão exata da recusa (ex.: \"CPF do pagador inválido —\n * confira os dígitos verificadores\"), e o withAction relança como Error com essa mensagem.\n * Engolir num texto genérico deixaria o usuário sem saber o que corrigir. */\n const backendMessage = error instanceof Error && error.message ? error.message : null;\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={backendMessage || translate('common.cards.add.errorSave')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n } finally {\n setIsAuthenticating(false);\n }\n }\n\n const isSubmitting =\n createCardMutation.isPending ||\n form.formState.isSubmitting;\n\n const watchedValues = form.watch(['name', 'country', 'personType', 'cpf', 'cnpj', 'fullName', 'cep', 'street', 'streetNumber', 'neighborhood', 'city', 'state']);\n const [name, country, personType, cpf, cnpj, fullName, cep, street, streetNumber, neighborhood, city, state] = watchedValues;\n const isBillingValid = isInternational\n ? !!fullName && !!cep && !!street && !!city && !!state\n : !!fullName &&\n !!cep && cep.length >= 9 &&\n !!street &&\n !!streetNumber &&\n !!neighborhood &&\n !!city &&\n !!state;\n const isCardValid = isInternational\n ? !!name && !!country && stripeStatus.cardNumber && stripeStatus.cardExpiry && stripeStatus.cardCvc\n : !!name &&\n !!country &&\n !!personType &&\n /* Dígito verificador, em sincronia com o schema (buildCardFormSchema) e com a validação\n * do backend — a regra antiga de tamanho deixava 111.111.111-11 habilitar o botão. */\n (personType === 'pf' ? isValidTaxId(cpf, 'cpf') : isValidTaxId(cnpj, 'cnpj')) &&\n stripeStatus.cardNumber &&\n stripeStatus.cardExpiry &&\n stripeStatus.cardCvc;\n\n if (isExternalContracting) {\n return (\n <Dialog open={isOpen} onOpenChange={handleClose}>\n <DialogContent className=\"flex flex-col p-0 gap-0 w-full md:w-[410px] lg:w-[410px]\">\n <DialogHeader className=\"gap-3 text-left p-5\">\n <div className=\"flex items-center justify-center w-10 h-10 bg-zinc-50 rounded-lg\">\n <IconCreditCard size={24} className=\"text-zinc-950\" />\n </div>\n <div className=\"flex flex-col gap-2\">\n <DialogTitle className=\"paragraph-medium-semibold text-zinc-950\">\n {translate('common.cards.add.externalTitle')}\n </DialogTitle>\n <span className=\"paragraph-small-regular text-zinc-600\">\n {translate('common.cards.add.externalDescription')}\n </span>\n </div>\n </DialogHeader>\n <div className=\"flex items-center gap-2 p-5 border-t border-zinc-200\">\n <Button\n className=\"w-fit h-10!\"\n onClick={() => {\n handleClose();\n redirectToExternal('contracting');\n }}\n >\n {translate('common.cards.add.externalButton')}\n </Button>\n </div>\n </DialogContent>\n </Dialog>\n );\n }\n\n return (\n <Dialog open={isOpen} onOpenChange={handleClose}>\n <DialogContent\n showCloseButton={false}\n className=\"flex flex-col p-0 gap-0 max-w-full sm:max-w-full border-0 rounded-t-2xl rounded-b-none h-dvh top-0 bottom-0 left-0 right-0 translate-x-0 translate-y-0 lg:max-w-[502px] lg:h-auto lg:max-h-[90vh] lg:rounded-lg lg:border lg:top-[50%] lg:left-[50%] lg:right-auto lg:bottom-auto lg:translate-x-[-50%] lg:translate-y-[-50%] overflow-y-auto\"\n >\n <DialogHeader className=\"p-0\">\n <div className=\"flex items-center justify-center px-4 py-3 relative border-b border-zinc-200 lg:border-b-0\">\n <DialogTitle className=\"paragraph-medium-semibold text-zinc-950 text-center\">\n {translate('common.cards.add.title')}\n </DialogTitle>\n <Button\n type=\"button\"\n variant=\"ghost\"\n className=\"size-8! p-0 absolute right-4\"\n onClick={handleClose}\n >\n <IconX size={18} />\n </Button>\n </div>\n </DialogHeader>\n\n <CardStepper currentStep={currentStep} />\n\n <form\n onSubmit={form.handleSubmit(handleSubmit)}\n className=\"flex flex-col flex-1 lg:flex-none\"\n >\n <div className={`flex flex-col gap-6 lg:gap-8 p-4 lg:p-5 flex-1 lg:flex-none ${currentStep !== 1 ? 'hidden' : ''}`}>\n <h2 className=\"font-[family-name:var(--font-outfit)] text-[18px] leading-tight font-semibold text-zinc-950\">\n {translate('common.cards.add.billingHeading')}\n </h2>\n <BillingFormFields form={form} isInternational={isInternational} />\n </div>\n <div className={`flex flex-col gap-6 lg:gap-8 p-4 lg:p-5 flex-1 lg:flex-none ${currentStep !== 2 ? 'hidden' : ''}`}>\n <h2 className=\"font-[family-name:var(--font-outfit)] text-[18px] leading-tight font-semibold text-zinc-950\">\n {translate('common.cards.add.cardHeading')}\n </h2>\n <CardFormFields\n form={form}\n onStripeChange={handleStripeChange}\n stripeErrors={stripeErrors}\n isInternational={isInternational}\n />\n </div>\n\n <div className=\"flex justify-between items-center p-4 lg:p-5 border-t border-zinc-200 gap-2 mt-auto lg:mt-0\">\n {currentStep === 1 ? (\n <>\n <Button variant=\"secondary\" type=\"button\" onClick={handleClose} className=\"h-10!\">\n {translate('common.actions.cancel')}\n </Button>\n <Button\n type=\"button\"\n className=\"h-10!\"\n onClick={handleContinue}\n disabled={!isBillingValid}\n >\n {translate('common.actions.continue')}\n </Button>\n </>\n ) : (\n <>\n <Button variant=\"secondary\" type=\"button\" onClick={handleBack} className=\"h-10!\">\n {translate('common.actions.back')}\n </Button>\n <Button\n type=\"submit\"\n className=\"h-10!\"\n disabled={isSubmitting || isAuthenticating || !isCardValid}\n loading={isAuthenticating || isSubmitting}\n >\n {isAuthenticating\n ? translate('common.cards.add.authenticating')\n : isSubmitting\n ? translate('common.cards.add.submitting')\n : translate('common.cards.add.submit')}\n </Button>\n </>\n )}\n </div>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AA0CU,SA2VI,UAjVE,KAVN;AAxCV,SAAS,aAAa,UAAU,iBAAiB;AACjD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,aAAY,MAAK,UAAS,SAAS,YAAY,WAAU,SACtE,oBAAU,qBAAqB,GAClC;AAAA,gBACA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,WAAU;AAAA,oBACV,UAAU,gBAAgB,oBAAoB,CAAC;AAAA,oBAC/C,SAAS,oBAAoB;AAAA,oBAE5B,6BACG,UAAU,iCAAiC,IAC3C,eACE,UAAU,6BAA6B,IACvC,UAAU,yBAAyB;AAAA;AAAA,gBAC3C;AAAA,iBACF,GAEJ;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/modals/cards/AddCardModal.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useState, useEffect } from 'react';\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from '../../ui/overlay/Dialog';\nimport { Button } from '../../ui/buttons/Button';\nimport { Toast } from '../../ui/feedback/Toast';\nimport { useModalManager } from '../../../store/useModalManager';\nimport { useCreateCard } from '../../../modules/cards/hooks/create-card.hook';\nimport { useCreateSetupIntent } from '../../../modules/cards/hooks/create-setup-intent.hook';\nimport { useCurrentAccount } from '../../../modules/accounts/hooks/current-account.hook';\nimport { isValidTaxId } from '../../../utils/validators/common';\nimport { isUsdAccount } from '../../../utils/format/gateway';\nimport { useExternalContracting } from '../../../providers/whitelabel.provider';\nimport { CardFormFields, BillingFormFields, buildCardFormSchema } from './CardFormFields';\nimport type { CardFormData, StripeElementsStatus } from './CardFormFields';\nimport { IconX, IconCreditCard, IconCheck, IconChevronRight } from '@tabler/icons-react';\nimport { cn } from '../../../infra/utils/clsx';\nimport { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { CardNumberElement, useElements, useStripe } from '@stripe/react-stripe-js';\nimport { toast } from 'sonner';\nimport { useTranslations } from 'next-intl';\n\nconst INITIAL_STRIPE_STATUS: StripeElementsStatus = {\n cardNumber: false,\n cardExpiry: false,\n cardCvc: false,\n};\n\nfunction CardStepper({ currentStep }: { readonly currentStep: number }) {\n const translate = useTranslations();\n const steps = [\n { number: 1, label: translate('common.cards.add.stepBilling') },\n { number: 2, label: translate('common.cards.add.stepCard') },\n ];\n return (\n <div className=\"flex items-center justify-start gap-2 px-4 py-3 bg-zinc-50 border-b border-zinc-200 lg:border-b-0\">\n {steps.map((step, idx) => {\n const isCompleted = currentStep > step.number;\n const isCurrent = currentStep === step.number;\n const isPending = !isCompleted && !isCurrent;\n return (\n <div key={step.number} className=\"flex items-center gap-2\">\n <div\n className={cn(\n 'flex items-center justify-center size-6 rounded-full paragraph-xsmall-semibold',\n isCompleted && 'bg-green-50 text-green-600 border border-green-200',\n isCurrent && 'bg-primary text-zinc-950',\n isPending && 'border border-zinc-200 text-zinc-400',\n )}\n >\n {isCompleted ? (\n <IconCheck size={14} stroke={3} />\n ) : (\n step.number\n )}\n </div>\n <span\n className={cn(\n 'paragraph-xsmall-semibold',\n (isCompleted || isCurrent) && 'text-zinc-950',\n isPending && 'text-zinc-400',\n )}\n >\n {step.label}\n </span>\n {idx < steps.length - 1 && (\n <IconChevronRight size={16} className=\"text-zinc-300 ml-1\" />\n )}\n </div>\n );\n })}\n </div>\n );\n}\n\nexport default function AddCardModal() {\n const translate = useTranslations();\n const { activeModal, modalData, closeModal } = useModalManager();\n const isOpen = activeModal === 'addCardModal';\n const { isExternalContracting, redirectToExternal } = useExternalContracting();\n const { data: account } = useCurrentAccount();\n const isInternational = isUsdAccount(account);\n const [currentStep, setCurrentStep] = useState(1);\n const [stripeStatus, setStripeStatus] = useState<StripeElementsStatus>(INITIAL_STRIPE_STATUS);\n const [stripeErrors, setStripeErrors] = useState<Record<string, string | undefined>>({});\n const [isAuthenticating, setIsAuthenticating] = useState(false);\n\n const onCardAdded = modalData.onCardAdded as ((cardId: string) => void) | undefined;\n /* `set_default` continua true por omissão — todo chamador que só quer cadastrar um cartão segue\n * com o comportamento de sempre. Quem passa `false` é quem vai perguntar ao usuário, logo depois\n * do cadastro, se a assinatura deve migrar para este cartão.\n *\n * Sem esse controle a pergunta seria decorativa: o backend, ao receber `set_default: true`, já\n * grava o padrão do customer E reaponta as assinaturas cobráveis (`#propagateDefaultPm` em\n * cards/services.js), então quando o modal abrisse a troca já teria acontecido e \"Recusar\" não\n * teria nada para recusar. */\n const setAsDefault = modalData.setAsDefault !== false;\n\n const createSetupIntentMutation = useCreateSetupIntent();\n const createCardMutation = useCreateCard();\n const elements = useElements();\n const stripe = useStripe();\n\n const form = useForm<CardFormData>({\n resolver: zodResolver(buildCardFormSchema(isInternational)),\n mode: 'onSubmit',\n reValidateMode: 'onChange',\n defaultValues: {\n country: 'BR',\n personType: 'pf',\n },\n });\n\n useEffect(() => {\n if (isInternational) {\n form.setValue('country', 'US');\n }\n }, [isInternational, form]);\n\n const handleClose = useCallback(() => {\n form.reset();\n setCurrentStep(1);\n setStripeStatus(INITIAL_STRIPE_STATUS);\n setStripeErrors({});\n setIsAuthenticating(false);\n closeModal();\n }, [form, closeModal]);\n\n const handleStripeChange = useCallback(\n (field: keyof StripeElementsStatus, complete: boolean) => {\n setStripeStatus((prev) => ({ ...prev, [field]: complete }));\n if (complete) {\n setStripeErrors((prev) => ({ ...prev, [field]: undefined }));\n }\n },\n []\n );\n\n const handleContinue = useCallback(async () => {\n const fields: (keyof CardFormData)[] = isInternational\n ? ['fullName', 'cep', 'street', 'city', 'state']\n : ['fullName', 'cep', 'street', 'streetNumber', 'neighborhood', 'city', 'state'];\n const isValid = await form.trigger(fields);\n if (!isValid) return;\n setCurrentStep(2);\n }, [form, isInternational]);\n\n const handleBack = useCallback(() => {\n setCurrentStep(1);\n }, []);\n\n async function handleSubmit(data: CardFormData) {\n const newStripeErrors: Record<string, string | undefined> = {};\n if (!stripeStatus.cardNumber) newStripeErrors.cardNumber = translate('common.cards.form.cardNumberRequired');\n if (!stripeStatus.cardExpiry) newStripeErrors.cardExpiry = translate('common.cards.form.cardExpiryRequired');\n if (!stripeStatus.cardCvc) newStripeErrors.cardCvc = translate('common.cards.form.cardCvcRequired');\n setStripeErrors(newStripeErrors);\n\n const stripeValid =\n stripeStatus.cardNumber && stripeStatus.cardExpiry && stripeStatus.cardCvc;\n if (!stripeValid) return;\n if (!stripe || !elements) return;\n\n const cardElement = elements.getElement(CardNumberElement);\n if (!cardElement) return;\n\n setIsAuthenticating(true);\n try {\n const intentResult = await createSetupIntentMutation.mutateAsync();\n const intent = intentResult?.data;\n if (!intent?.client_secret || !intent?.setup_intent_id) {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={translate('common.cards.add.errorInitAuth')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n const billingDetails = isInternational\n ? {\n name: data.name,\n address: {\n line1: data.street,\n line2: data.complement || undefined,\n city: data.city,\n state: data.state,\n postal_code: data.cep,\n country: data.country,\n },\n }\n : { name: data.name };\n\n const { setupIntent, error } = await stripe.confirmCardSetup(intent.client_secret, {\n payment_method: {\n card: cardElement,\n billing_details: billingDetails,\n },\n });\n\n if (error) {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={error.message || translate('common.cards.add.errorAuth')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n if (setupIntent?.status !== 'succeeded') {\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={translate('common.cards.add.errorAuthStatus', { status: setupIntent?.status ?? translate('common.cards.add.statusUnknown') })}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n return;\n }\n\n /* Chamada ÚNICA: os dados fiscais vão no mesmo request do cartão. O backend atualiza a\n * conta ANTES de registrar o cartão, fail-closed — fiscal rejeitado (CPF inválido etc.)\n * = cartão não registra e o erro chega com a mensagem específica no catch abaixo.\n * Substitui o Promise.all de createCard + updateAccount, que não tinha garantia entre as\n * pernas: quando o PUT de conta falhava, o cartão ficava salvo e a conta sem NENHUM dado\n * fiscal — e as faturas seguintes falhavam a emissão de nota em silêncio. */\n const cardResult = await createCardMutation.mutateAsync({\n setup_intent_id: intent.setup_intent_id,\n name: data.name,\n set_default: setAsDefault,\n ...(isInternational\n ? {}\n : {\n financial_document_type: data.personType === 'pf' ? 1 : 2,\n financial_document: data.personType === 'pf' ? data.cpf : data.cnpj,\n }),\n financial_name: data.fullName,\n zipcode: data.cep,\n address: data.street,\n address_number: data.streetNumber || '',\n address_complement: data.complement || '',\n neighborhood: data.neighborhood || '',\n city: data.city,\n state: data.state,\n country: data.country,\n });\n\n /* Fecha ANTES de avisar quem chamou. `closeModal()` remove o topo da pilha do\n * useModalManager, então um modal aberto de dentro do `onCardAdded` seria justamente o topo\n * e sairia junto — abriria e fecharia no mesmo tick, sem o usuário ver nada. */\n handleClose();\n\n if (cardResult.success && cardResult.data?.id != null) {\n onCardAdded?.(cardResult.data.id.toString());\n }\n\n toast.custom(\n (t) => <Toast variant=\"success\" message={translate('common.cards.add.successToast')} toastId={t} />,\n { duration: 5000 }\n );\n } catch (error) {\n /* O backend fail-closed devolve a razão exata da recusa (ex.: \"CPF do pagador inválido —\n * confira os dígitos verificadores\"), e o withAction relança como Error com essa mensagem.\n * Engolir num texto genérico deixaria o usuário sem saber o que corrigir. */\n const backendMessage = error instanceof Error && error.message ? error.message : null;\n toast.custom(\n (t) => (\n <Toast\n variant=\"error\"\n message={backendMessage || translate('common.cards.add.errorSave')}\n toastId={t}\n />\n ),\n { duration: 5000 }\n );\n } finally {\n setIsAuthenticating(false);\n }\n }\n\n const isSubmitting =\n createCardMutation.isPending ||\n form.formState.isSubmitting;\n\n const watchedValues = form.watch(['name', 'country', 'personType', 'cpf', 'cnpj', 'fullName', 'cep', 'street', 'streetNumber', 'neighborhood', 'city', 'state']);\n const [name, country, personType, cpf, cnpj, fullName, cep, street, streetNumber, neighborhood, city, state] = watchedValues;\n const isBillingValid = isInternational\n ? !!fullName && !!cep && !!street && !!city && !!state\n : !!fullName &&\n !!cep && cep.length >= 9 &&\n !!street &&\n !!streetNumber &&\n !!neighborhood &&\n !!city &&\n !!state;\n const isCardValid = isInternational\n ? !!name && !!country && stripeStatus.cardNumber && stripeStatus.cardExpiry && stripeStatus.cardCvc\n : !!name &&\n !!country &&\n !!personType &&\n /* Dígito verificador, em sincronia com o schema (buildCardFormSchema) e com a validação\n * do backend — a regra antiga de tamanho deixava 111.111.111-11 habilitar o botão. */\n (personType === 'pf' ? isValidTaxId(cpf, 'cpf') : isValidTaxId(cnpj, 'cnpj')) &&\n stripeStatus.cardNumber &&\n stripeStatus.cardExpiry &&\n stripeStatus.cardCvc;\n\n if (isExternalContracting) {\n return (\n <Dialog open={isOpen} onOpenChange={handleClose}>\n <DialogContent className=\"flex flex-col p-0 gap-0 w-full md:w-[410px] lg:w-[410px]\">\n <DialogHeader className=\"gap-3 text-left p-5\">\n <div className=\"flex items-center justify-center w-10 h-10 bg-zinc-50 rounded-lg\">\n <IconCreditCard size={24} className=\"text-zinc-950\" />\n </div>\n <div className=\"flex flex-col gap-2\">\n <DialogTitle className=\"paragraph-medium-semibold text-zinc-950\">\n {translate('common.cards.add.externalTitle')}\n </DialogTitle>\n <span className=\"paragraph-small-regular text-zinc-600\">\n {translate('common.cards.add.externalDescription')}\n </span>\n </div>\n </DialogHeader>\n <div className=\"flex items-center gap-2 p-5 border-t border-zinc-200\">\n <Button\n className=\"w-fit h-10!\"\n onClick={() => {\n handleClose();\n redirectToExternal('contracting');\n }}\n >\n {translate('common.cards.add.externalButton')}\n </Button>\n </div>\n </DialogContent>\n </Dialog>\n );\n }\n\n return (\n <Dialog open={isOpen} onOpenChange={handleClose}>\n <DialogContent\n showCloseButton={false}\n className=\"flex flex-col p-0 gap-0 max-w-full sm:max-w-full border-0 rounded-t-2xl rounded-b-none h-dvh top-0 bottom-0 left-0 right-0 translate-x-0 translate-y-0 lg:max-w-[502px] lg:h-auto lg:max-h-[90vh] lg:rounded-lg lg:border lg:top-[50%] lg:left-[50%] lg:right-auto lg:bottom-auto lg:translate-x-[-50%] lg:translate-y-[-50%] overflow-y-auto\"\n >\n <DialogHeader className=\"p-0\">\n <div className=\"flex items-center justify-center px-4 py-3 relative border-b border-zinc-200 lg:border-b-0\">\n <DialogTitle className=\"paragraph-medium-semibold text-zinc-950 text-center\">\n {translate('common.cards.add.title')}\n </DialogTitle>\n <Button\n type=\"button\"\n variant=\"ghost\"\n className=\"size-8! p-0 absolute right-4\"\n onClick={handleClose}\n >\n <IconX size={18} />\n </Button>\n </div>\n </DialogHeader>\n\n <CardStepper currentStep={currentStep} />\n\n <form\n onSubmit={form.handleSubmit(handleSubmit)}\n className=\"flex flex-col flex-1 lg:flex-none\"\n >\n <div className={`flex flex-col gap-6 lg:gap-8 p-4 lg:p-5 flex-1 lg:flex-none ${currentStep !== 1 ? 'hidden' : ''}`}>\n <h2 className=\"font-[family-name:var(--font-outfit)] text-[18px] leading-tight font-semibold text-zinc-950\">\n {translate('common.cards.add.billingHeading')}\n </h2>\n <BillingFormFields form={form} isInternational={isInternational} />\n </div>\n <div className={`flex flex-col gap-6 lg:gap-8 p-4 lg:p-5 flex-1 lg:flex-none ${currentStep !== 2 ? 'hidden' : ''}`}>\n <h2 className=\"font-[family-name:var(--font-outfit)] text-[18px] leading-tight font-semibold text-zinc-950\">\n {translate('common.cards.add.cardHeading')}\n </h2>\n <CardFormFields\n form={form}\n onStripeChange={handleStripeChange}\n stripeErrors={stripeErrors}\n isInternational={isInternational}\n />\n </div>\n\n <div className=\"flex justify-between items-center p-4 lg:p-5 border-t border-zinc-200 gap-2 mt-auto lg:mt-0\">\n {currentStep === 1 ? (\n <>\n <Button variant=\"secondary\" type=\"button\" onClick={handleClose} className=\"h-10!\">\n {translate('common.actions.cancel')}\n </Button>\n <Button\n type=\"button\"\n className=\"h-10!\"\n onClick={handleContinue}\n disabled={!isBillingValid}\n >\n {translate('common.actions.continue')}\n </Button>\n </>\n ) : (\n <>\n <Button variant=\"secondary\" type=\"button\" onClick={handleBack} className=\"h-10!\">\n {translate('common.actions.back')}\n </Button>\n <Button\n type=\"submit\"\n className=\"h-10!\"\n disabled={isSubmitting || isAuthenticating || !isCardValid}\n loading={isAuthenticating || isSubmitting}\n >\n {isAuthenticating\n ? translate('common.cards.add.authenticating')\n : isSubmitting\n ? translate('common.cards.add.submitting')\n : translate('common.cards.add.submit')}\n </Button>\n </>\n )}\n </div>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";AA0CU,SAwWI,UA9VE,KAVN;AAxCV,SAAS,aAAa,UAAU,iBAAiB;AACjD,SAAS,QAAQ,eAAe,cAAc,mBAAmB;AACjE,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,4BAA4B;AACrC,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,8BAA8B;AACvC,SAAS,gBAAgB,mBAAmB,2BAA2B;AAEvE,SAAS,OAAO,gBAAgB,WAAW,wBAAwB;AACnE,SAAS,UAAU;AACnB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB,aAAa,iBAAiB;AAC1D,SAAS,aAAa;AACtB,SAAS,uBAAuB;AAEhC,MAAM,wBAA8C;AAAA,EAClD,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AACX;AAEA,SAAS,YAAY,EAAE,YAAY,GAAqC;AACtE,QAAM,YAAY,gBAAgB;AAClC,QAAM,QAAQ;AAAA,IACZ,EAAE,QAAQ,GAAG,OAAO,UAAU,8BAA8B,EAAE;AAAA,IAC9D,EAAE,QAAQ,GAAG,OAAO,UAAU,2BAA2B,EAAE;AAAA,EAC7D;AACA,SACE,oBAAC,SAAI,WAAU,qGACZ,gBAAM,IAAI,CAAC,MAAM,QAAQ;AACxB,UAAM,cAAc,cAAc,KAAK;AACvC,UAAM,YAAY,gBAAgB,KAAK;AACvC,UAAM,YAAY,CAAC,eAAe,CAAC;AACnC,WACE,qBAAC,SAAsB,WAAU,2BAC/B;AAAA;AAAA,QAAC;A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ACZ,0BAAgB,IACf,iCACE;AAAA,oCAAC,UAAO,SAAQ,aAAY,MAAK,UAAS,SAAS,aAAa,WAAU,SACvE,oBAAU,uBAAuB,GACpC;AAAA,gBACA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,WAAU;AAAA,oBACV,SAAS;AAAA,oBACT,UAAU,CAAC;AAAA,oBAEV,oBAAU,yBAAyB;AAAA;AAAA,gBACtC;AAAA,iBACF,IAEA,iCACE;AAAA,oCAAC,UAAO,SAAQ,aAAY,MAAK,UAAS,SAAS,YAAY,WAAU,SACtE,oBAAU,qBAAqB,GAClC;AAAA,gBACA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAK;AAAA,oBACL,WAAU;AAAA,oBACV,UAAU,gBAAgB,oBAAoB,CAAC;AAAA,oBAC/C,SAAS,oBAAoB;AAAA,oBAE5B,6BACG,UAAU,iCAAiC,IAC3C,eACE,UAAU,6BAA6B,IACvC,UAAU,yBAAyB;AAAA;AAAA,gBAC3C;AAAA,iBACF,GAEJ;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
@@ -28,7 +28,7 @@ function PhoneInput({
28
28
  const translate = useTranslations();
29
29
  const parsed = parsePhoneValue(value ?? "");
30
30
  const [selectedCountry, setSelectedCountry] = useState(parsed.country);
31
- const [phoneNumber, setPhoneNumber] = useState(formatNational(parsed.number, parsed.country.iso));
31
+ const [phoneNumber, setPhoneNumber] = useState(parsed.number);
32
32
  const [search, setSearch] = useState("");
33
33
  const [open, setOpen] = useState(false);
34
34
  const prevValueRef = useRef(value);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/ui/form/PhoneInput.tsx"],"sourcesContent":["'use client';\n\nimport { useState, useEffect, useRef } from 'react';\nimport { useTranslations } from 'next-intl';\nimport { AsYouType, CountryCode } from 'libphonenumber-js';\nimport { Input, Separator, Popover, PopoverTrigger, PopoverContent, cn } from '@greatapps/common';\nimport { IconChevronDown, IconSearch } from '@tabler/icons-react';\nimport { COUNTRIES, Country, flagUrl, parsePhoneValue } from '../../../utils/countries';\n\nfunction formatNational(digits: string, iso: string): string {\n const raw = digits.replace(/\\D/g, '');\n if (!raw) return '';\n return new AsYouType(iso as CountryCode).input(raw);\n}\n\ninterface PhoneInputProps {\n value?: string;\n onChange?: (value: string) => void;\n label?: string;\n optional?: boolean;\n required?: boolean;\n hintMessage?: string;\n error?: boolean;\n errorMessage?: string;\n placeholder?: string;\n disabled?: boolean;\n classnameContainer?: string;\n className?: string;\n}\n\nexport default function PhoneInput({\n value,\n onChange,\n label,\n optional = false,\n required = false,\n hintMessage,\n error = false,\n errorMessage,\n placeholder,\n disabled = false,\n classnameContainer,\n className,\n}: PhoneInputProps) {\n const translate = useTranslations();\n const parsed = parsePhoneValue(value ?? '');\n const [selectedCountry, setSelectedCountry] = useState<Country>(parsed.country);\n const [phoneNumber, setPhoneNumber] = useState(formatNational(parsed.number, parsed.country.iso));\n const [search, setSearch] = useState('');\n const [open, setOpen] = useState(false);\n const prevValueRef = useRef(value);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (value !== prevValueRef.current) {\n prevValueRef.current = value;\n const p = parsePhoneValue(value ?? '');\n setSelectedCountry(p.country);\n setPhoneNumber(formatNational(p.number, p.country.iso));\n }\n }, [value]);\n\n const emit = (country: Country, number: string) => {\n onChange?.(`${country.dial} ${number}`);\n };\n\n const handleCountrySelect = (country: Country) => {\n const reformatted = formatNational(phoneNumber, country.iso);\n setSelectedCountry(country);\n setPhoneNumber(reformatted);\n setOpen(false);\n setSearch('');\n emit(country, reformatted);\n };\n\n const handleNumberChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const rawInput = e.target.value;\n const digits = rawInput.replace(/\\D/g, '');\n if (digits.length > 15) return;\n\n const cursorPos = e.target.selectionStart ?? rawInput.length;\n const digitsBeforeCursor = rawInput.slice(0, cursorPos).replace(/\\D/g, '').length;\n\n const formatted = formatNational(rawInput, selectedCountry.iso);\n setPhoneNumber(formatted);\n emit(selectedCountry, formatted);\n\n requestAnimationFrame(() => {\n if (!inputRef.current) return;\n let digitCount = 0;\n let newPos = formatted.length;\n for (let i = 0; i < formatted.length; i++) {\n if (/\\d/.test(formatted[i])) {\n digitCount++;\n if (digitCount === digitsBeforeCursor) {\n newPos = i + 1;\n break;\n }\n }\n }\n inputRef.current.setSelectionRange(newPos, newPos);\n });\n };\n\n const filtered = COUNTRIES.filter(\n (c) =>\n c.name.toLowerCase().includes(search.toLowerCase()) ||\n c.dial.includes(search) ||\n c.iso.toLowerCase().includes(search.toLowerCase())\n );\n\n const finalMessage = error && errorMessage ? errorMessage : hintMessage;\n const showMessage = finalMessage && finalMessage.trim() !== '';\n\n return (\n <div className=\"flex flex-col gap-1.5\">\n {label && (\n <div className=\"flex items-center gap-1 paragraph-xsmall-semibold\">\n <span className=\"text-zinc-600\">{label}</span>\n {optional && <span className=\"text-zinc-500\">{translate('common.forms.phoneInput.optional')}</span>}\n {required && <span className=\"text-red-600\">*</span>}\n </div>\n )}\n\n <div\n className={cn(\n 'flex gap-2 items-center border rounded-lg h-10 transition-colors',\n error\n ? 'border-red-600 hover:border-red-700'\n : 'border-zinc-200 hover:border-zinc-400 focus-within:border-zinc-950',\n disabled && 'cursor-not-allowed',\n classnameContainer\n )}\n >\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"flex items-center gap-1.5 px-3 h-full shrink-0 focus:outline-none\"\n disabled={disabled}\n >\n <img src={flagUrl(selectedCountry.iso)} alt={selectedCountry.iso} className=\"w-5 h-5 rounded-full\" />\n <span className=\"paragraph-small-regular text-zinc-950\">{selectedCountry.dial}</span>\n <IconChevronDown size={14} className={cn(\"text-zinc-500 transition-transform duration-200\", open && \"rotate-180\")} />\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-72 p-0\" align=\"start\" side=\"top\">\n <div className=\"flex items-center gap-2 p-2 border-b border-zinc-100\">\n <IconSearch size={14} className=\"text-zinc-400 shrink-0\" />\n <input\n type=\"text\"\n className=\"flex-1 text-sm outline-none placeholder:text-zinc-400\"\n placeholder={translate('common.forms.phoneInput.searchPlaceholder')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n autoFocus\n />\n </div>\n <div className=\"max-h-60 overflow-y-auto overscroll-contain\" onTouchMove={(e) => e.stopPropagation()} onWheel={(e) => e.stopPropagation()}>\n {filtered.map((country) => (\n <button\n key={country.iso}\n type=\"button\"\n className={cn(\n 'flex items-center gap-2.5 w-full px-3 py-2 text-left hover:bg-zinc-50 transition-colors',\n selectedCountry.iso === country.iso && 'bg-zinc-100'\n )}\n onClick={() => handleCountrySelect(country)}\n >\n <img src={flagUrl(country.iso)} alt={country.iso} className=\"w-5 h-5 rounded-full shrink-0\" />\n <span className=\"paragraph-small-regular text-zinc-950 flex-1 truncate\">\n {country.name}\n </span>\n <span className=\"paragraph-small-regular text-zinc-500 shrink-0\">\n {country.dial}\n </span>\n </button>\n ))}\n {filtered.length === 0 && (\n <p className=\"text-sm text-zinc-500 p-3 text-center\">{translate('common.forms.phoneInput.emptyMessage')}</p>\n )}\n </div>\n </PopoverContent>\n </Popover>\n\n <Separator orientation=\"vertical\" />\n\n <Input\n ref={inputRef}\n type=\"tel\"\n value={phoneNumber}\n onChange={handleNumberChange}\n placeholder={placeholder}\n disabled={disabled}\n className={cn(\n 'paragraph-small-medium w-full h-full text-zinc-950 border-0 focus-visible:ring-0 focus-visible:ring-offset-0',\n disabled && 'cursor-not-allowed',\n className\n )}\n />\n </div>\n\n {showMessage && (\n <span className={cn('paragraph-xsmall-medium', error ? 'text-red-600' : 'text-zinc-600')}>\n {finalMessage}\n </span>\n )}\n </div>\n );\n}\n"],"mappings":";AAqHQ,SACE,KADF;AAnHR,SAAS,UAAU,WAAW,cAAc;AAC5C,SAAS,uBAAuB;AAChC,SAAS,iBAA8B;AACvC,SAAS,OAAO,WAAW,SAAS,gBAAgB,gBAAgB,UAAU;AAC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AAAA,oBACzC;AAAA,oBACA,SAAS,MAAM,oBAAoB,OAAO;AAAA,oBAE1C;AAAA,0CAAC,SAAI,KAAK,QAAQ,QAAQ,GAAG,GAAG,KAAK,QAAQ,KAAK,WAAU,iCAAgC;AAAA,sBAC5F,oBAAC,UAAK,WAAU,yDACb,kBAAQ,MACX;AAAA,sBACA,oBAAC,UAAK,WAAU,kDACb,kBAAQ,MACX;AAAA;AAAA;AAAA,kBAdK,QAAQ;AAAA,gBAef,CACD;AAAA,gBACA,SAAS,WAAW,KACnB,oBAAC,OAAE,WAAU,yCAAyC,oBAAU,sCAAsC,GAAE;AAAA,iBAE5G;AAAA,eACF;AAAA,aACF;AAAA,UAEA,oBAAC,aAAU,aAAY,YAAW;AAAA,UAElC;AAAA,YAAC;AAAA;AAAA,cACC,KAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAO;AAAA,cACP,UAAU;AAAA,cACV;AAAA,cACA;AAAA,cACA,WAAW;AAAA,gBACT;AAAA,gBACA,YAAY;AAAA,gBACZ;AAAA,cACF;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IACF;AAAA,IAEC,eACC,oBAAC,UAAK,WAAW,GAAG,2BAA2B,QAAQ,iBAAiB,eAAe,GACpF,wBACH;AAAA,KAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/ui/form/PhoneInput.tsx"],"sourcesContent":["'use client';\n\nimport { useState, useEffect, useRef } from 'react';\nimport { useTranslations } from 'next-intl';\nimport { AsYouType, CountryCode } from 'libphonenumber-js';\nimport { Input, Separator, Popover, PopoverTrigger, PopoverContent, cn } from '@greatapps/common';\nimport { IconChevronDown, IconSearch } from '@tabler/icons-react';\nimport { COUNTRIES, Country, flagUrl, parsePhoneValue } from '../../../utils/countries';\n\nfunction formatNational(digits: string, iso: string): string {\n const raw = digits.replace(/\\D/g, '');\n if (!raw) return '';\n return new AsYouType(iso as CountryCode).input(raw);\n}\n\ninterface PhoneInputProps {\n value?: string;\n onChange?: (value: string) => void;\n label?: string;\n optional?: boolean;\n required?: boolean;\n hintMessage?: string;\n error?: boolean;\n errorMessage?: string;\n placeholder?: string;\n disabled?: boolean;\n classnameContainer?: string;\n className?: string;\n}\n\nexport default function PhoneInput({\n value,\n onChange,\n label,\n optional = false,\n required = false,\n hintMessage,\n error = false,\n errorMessage,\n placeholder,\n disabled = false,\n classnameContainer,\n className,\n}: PhoneInputProps) {\n const translate = useTranslations();\n const parsed = parsePhoneValue(value ?? '');\n const [selectedCountry, setSelectedCountry] = useState<Country>(parsed.country);\n const [phoneNumber, setPhoneNumber] = useState(parsed.number);\n const [search, setSearch] = useState('');\n const [open, setOpen] = useState(false);\n const prevValueRef = useRef(value);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (value !== prevValueRef.current) {\n prevValueRef.current = value;\n const p = parsePhoneValue(value ?? '');\n setSelectedCountry(p.country);\n setPhoneNumber(formatNational(p.number, p.country.iso));\n }\n }, [value]);\n\n const emit = (country: Country, number: string) => {\n onChange?.(`${country.dial} ${number}`);\n };\n\n const handleCountrySelect = (country: Country) => {\n const reformatted = formatNational(phoneNumber, country.iso);\n setSelectedCountry(country);\n setPhoneNumber(reformatted);\n setOpen(false);\n setSearch('');\n emit(country, reformatted);\n };\n\n const handleNumberChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const rawInput = e.target.value;\n const digits = rawInput.replace(/\\D/g, '');\n if (digits.length > 15) return;\n\n const cursorPos = e.target.selectionStart ?? rawInput.length;\n const digitsBeforeCursor = rawInput.slice(0, cursorPos).replace(/\\D/g, '').length;\n\n const formatted = formatNational(rawInput, selectedCountry.iso);\n setPhoneNumber(formatted);\n emit(selectedCountry, formatted);\n\n requestAnimationFrame(() => {\n if (!inputRef.current) return;\n let digitCount = 0;\n let newPos = formatted.length;\n for (let i = 0; i < formatted.length; i++) {\n if (/\\d/.test(formatted[i])) {\n digitCount++;\n if (digitCount === digitsBeforeCursor) {\n newPos = i + 1;\n break;\n }\n }\n }\n inputRef.current.setSelectionRange(newPos, newPos);\n });\n };\n\n const filtered = COUNTRIES.filter(\n (c) =>\n c.name.toLowerCase().includes(search.toLowerCase()) ||\n c.dial.includes(search) ||\n c.iso.toLowerCase().includes(search.toLowerCase())\n );\n\n const finalMessage = error && errorMessage ? errorMessage : hintMessage;\n const showMessage = finalMessage && finalMessage.trim() !== '';\n\n return (\n <div className=\"flex flex-col gap-1.5\">\n {label && (\n <div className=\"flex items-center gap-1 paragraph-xsmall-semibold\">\n <span className=\"text-zinc-600\">{label}</span>\n {optional && <span className=\"text-zinc-500\">{translate('common.forms.phoneInput.optional')}</span>}\n {required && <span className=\"text-red-600\">*</span>}\n </div>\n )}\n\n <div\n className={cn(\n 'flex gap-2 items-center border rounded-lg h-10 transition-colors',\n error\n ? 'border-red-600 hover:border-red-700'\n : 'border-zinc-200 hover:border-zinc-400 focus-within:border-zinc-950',\n disabled && 'cursor-not-allowed',\n classnameContainer\n )}\n >\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n className=\"flex items-center gap-1.5 px-3 h-full shrink-0 focus:outline-none\"\n disabled={disabled}\n >\n <img src={flagUrl(selectedCountry.iso)} alt={selectedCountry.iso} className=\"w-5 h-5 rounded-full\" />\n <span className=\"paragraph-small-regular text-zinc-950\">{selectedCountry.dial}</span>\n <IconChevronDown size={14} className={cn(\"text-zinc-500 transition-transform duration-200\", open && \"rotate-180\")} />\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-72 p-0\" align=\"start\" side=\"top\">\n <div className=\"flex items-center gap-2 p-2 border-b border-zinc-100\">\n <IconSearch size={14} className=\"text-zinc-400 shrink-0\" />\n <input\n type=\"text\"\n className=\"flex-1 text-sm outline-none placeholder:text-zinc-400\"\n placeholder={translate('common.forms.phoneInput.searchPlaceholder')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n autoFocus\n />\n </div>\n <div className=\"max-h-60 overflow-y-auto overscroll-contain\" onTouchMove={(e) => e.stopPropagation()} onWheel={(e) => e.stopPropagation()}>\n {filtered.map((country) => (\n <button\n key={country.iso}\n type=\"button\"\n className={cn(\n 'flex items-center gap-2.5 w-full px-3 py-2 text-left hover:bg-zinc-50 transition-colors',\n selectedCountry.iso === country.iso && 'bg-zinc-100'\n )}\n onClick={() => handleCountrySelect(country)}\n >\n <img src={flagUrl(country.iso)} alt={country.iso} className=\"w-5 h-5 rounded-full shrink-0\" />\n <span className=\"paragraph-small-regular text-zinc-950 flex-1 truncate\">\n {country.name}\n </span>\n <span className=\"paragraph-small-regular text-zinc-500 shrink-0\">\n {country.dial}\n </span>\n </button>\n ))}\n {filtered.length === 0 && (\n <p className=\"text-sm text-zinc-500 p-3 text-center\">{translate('common.forms.phoneInput.emptyMessage')}</p>\n )}\n </div>\n </PopoverContent>\n </Popover>\n\n <Separator orientation=\"vertical\" />\n\n <Input\n ref={inputRef}\n type=\"tel\"\n value={phoneNumber}\n onChange={handleNumberChange}\n placeholder={placeholder}\n disabled={disabled}\n className={cn(\n 'paragraph-small-medium w-full h-full text-zinc-950 border-0 focus-visible:ring-0 focus-visible:ring-offset-0',\n disabled && 'cursor-not-allowed',\n className\n )}\n />\n </div>\n\n {showMessage && (\n <span className={cn('paragraph-xsmall-medium', error ? 'text-red-600' : 'text-zinc-600')}>\n {finalMessage}\n </span>\n )}\n </div>\n );\n}\n"],"mappings":";AAqHQ,SACE,KADF;AAnHR,SAAS,UAAU,WAAW,cAAc;AAC5C,SAAS,uBAAuB;AAChC,SAAS,iBAA8B;AACvC,SAAS,OAAO,WAAW,SAAS,gBAAgB,gBAAgB,UAAU;AAC9E,SAAS,iBAAiB,kBAAkB;AAC5C,SAAS,WAAoB,SAAS,uBAAuB;AAE7D,SAAS,eAAe,QAAgB,KAAqB;AAC3D,QAAM,MAAM,OAAO,QAAQ,OAAO,EAAE;AACpC,MAAI,CAAC,IAAK,QAAO;AACjB,SAAO,IAAI,UAAU,GAAkB,EAAE,MAAM,GAAG;AACpD;AAiBe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AAA;AAAA,kBAdK,QAAQ;AAAA,gBAef,CACD;AAAA,gBACA,SAAS,WAAW,KACnB,oBAAC,OAAE,WAAU,yCAAyC,oBAAU,sCAAsC,GAAE;AAAA,iBAE5G;AAAA,eACF;AAAA,aACF;AAAA,UAEA,oBAAC,aAAU,aAAY,YAAW;AAAA,UAElC;AAAA,YAAC;AAAA;AAAA,cACC,KAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAO;AAAA,cACP,UAAU;AAAA,cACV;AAAA,cACA;AAAA,cACA,WAAW;AAAA,gBACT;AAAA,gBACA,YAAY;AAAA,gBACZ;AAAA,cACF;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IACF;AAAA,IAEC,eACC,oBAAC,UAAK,WAAW,GAAG,2BAA2B,QAAQ,iBAAiB,eAAe,GACpF,wBACH;AAAA,KAEJ;AAEJ;","names":[]}
package/dist/handlers.mjs CHANGED
@@ -14,12 +14,10 @@ import { createListProjectUsersHandler } from "./modules/projects/handlers/list-
14
14
  import { createListAvailableUsersHandler } from "./modules/projects/handlers/list-available-users.handler";
15
15
  import { createListAllAccountUsersHandler } from "./modules/projects/handlers/list-all-account-users.handler";
16
16
  import { createListSubscriptionsHandler } from "./modules/subscriptions/handlers/list-subscriptions.handler";
17
- import { createCurrentSubscriptionHandler } from "./modules/subscriptions/handlers/current-subscription.handler";
18
17
  import { createFreezeNoticeHandler } from "./modules/subscriptions/handlers/freeze-notice.handler";
19
18
  import { createListMessagesHandler } from "./modules/users/handlers/list-messages.handler";
20
19
  export {
21
20
  createCountPagesHandler,
22
- createCurrentSubscriptionHandler,
23
21
  createFindCardByIdHandler,
24
22
  createFindChargeByIdHandler,
25
23
  createFindPlanByIdHandler,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/handlers.ts"],"sourcesContent":["export { createListCardsHandler } from './modules/cards/handlers/list-cards.handler';\nexport { createFindCardByIdHandler } from './modules/cards/handlers/find-card-by-id.handler';\n\nexport { createListChargesHandler } from './modules/charges/handlers/list-charges.handler';\nexport { createFindChargeByIdHandler } from './modules/charges/handlers/find-charge-by-id.handler';\n\nexport { createListIaCreditsHandler } from './modules/ia-credits/handlers/list-ia-credits.handler';\nexport { createPurchaseIaCreditsHandler } from './modules/ia-credits/handlers/purchase-ia-credits.handler';\nexport { createGetAiCreditsOfferEligibilityHandler } from './modules/ia-credits/handlers/get-offer-eligibility.handler';\n\nexport { createCountPagesHandler } from './modules/pages/handlers/count-pages.handler';\n\nexport { createListPlansHandler } from './modules/plans/handlers/list-plans.handler';\nexport { createFindPlanByIdHandler } from './modules/plans/handlers/find-plan-by-id.handler';\n\nexport { createListProjectsHandler } from './modules/projects/handlers/list-projects.handler';\nexport { createFindProjectHandler } from './modules/projects/handlers/find-project.handler';\nexport { createListProjectUsersHandler } from './modules/projects/handlers/list-project-users.handler';\nexport { createListAvailableUsersHandler } from './modules/projects/handlers/list-available-users.handler';\nexport { createListAllAccountUsersHandler } from './modules/projects/handlers/list-all-account-users.handler';\n\nexport { createListSubscriptionsHandler } from './modules/subscriptions/handlers/list-subscriptions.handler';\nexport { createCurrentSubscriptionHandler } from './modules/subscriptions/handlers/current-subscription.handler';\nexport { createFreezeNoticeHandler } from './modules/subscriptions/handlers/freeze-notice.handler';\n\nexport { createListMessagesHandler } from './modules/users/handlers/list-messages.handler';\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,iCAAiC;AAE1C,SAAS,gCAAgC;AACzC,SAAS,mCAAmC;AAE5C,SAAS,kCAAkC;AAC3C,SAAS,sCAAsC;AAC/C,SAAS,iDAAiD;AAE1D,SAAS,+BAA+B;AAExC,SAAS,8BAA8B;AACvC,SAAS,iCAAiC;AAE1C,SAAS,iCAAiC;AAC1C,SAAS,gCAAgC;AACzC,SAAS,qCAAqC;AAC9C,SAAS,uCAAuC;AAChD,SAAS,wCAAwC;AAEjD,SAAS,sCAAsC;AAC/C,SAAS,wCAAwC;AACjD,SAAS,iCAAiC;AAE1C,SAAS,iCAAiC;","names":[]}
1
+ {"version":3,"sources":["../src/handlers.ts"],"sourcesContent":["export { createListCardsHandler } from './modules/cards/handlers/list-cards.handler';\nexport { createFindCardByIdHandler } from './modules/cards/handlers/find-card-by-id.handler';\n\nexport { createListChargesHandler } from './modules/charges/handlers/list-charges.handler';\nexport { createFindChargeByIdHandler } from './modules/charges/handlers/find-charge-by-id.handler';\n\nexport { createListIaCreditsHandler } from './modules/ia-credits/handlers/list-ia-credits.handler';\nexport { createPurchaseIaCreditsHandler } from './modules/ia-credits/handlers/purchase-ia-credits.handler';\nexport { createGetAiCreditsOfferEligibilityHandler } from './modules/ia-credits/handlers/get-offer-eligibility.handler';\n\nexport { createCountPagesHandler } from './modules/pages/handlers/count-pages.handler';\n\nexport { createListPlansHandler } from './modules/plans/handlers/list-plans.handler';\nexport { createFindPlanByIdHandler } from './modules/plans/handlers/find-plan-by-id.handler';\n\nexport { createListProjectsHandler } from './modules/projects/handlers/list-projects.handler';\nexport { createFindProjectHandler } from './modules/projects/handlers/find-project.handler';\nexport { createListProjectUsersHandler } from './modules/projects/handlers/list-project-users.handler';\nexport { createListAvailableUsersHandler } from './modules/projects/handlers/list-available-users.handler';\nexport { createListAllAccountUsersHandler } from './modules/projects/handlers/list-all-account-users.handler';\n\nexport { createListSubscriptionsHandler } from './modules/subscriptions/handlers/list-subscriptions.handler';\nexport { createFreezeNoticeHandler } from './modules/subscriptions/handlers/freeze-notice.handler';\n\nexport { createListMessagesHandler } from './modules/users/handlers/list-messages.handler';\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,iCAAiC;AAE1C,SAAS,gCAAgC;AACzC,SAAS,mCAAmC;AAE5C,SAAS,kCAAkC;AAC3C,SAAS,sCAAsC;AAC/C,SAAS,iDAAiD;AAE1D,SAAS,+BAA+B;AAExC,SAAS,8BAA8B;AACvC,SAAS,iCAAiC;AAE1C,SAAS,iCAAiC;AAC1C,SAAS,gCAAgC;AACzC,SAAS,qCAAqC;AAC9C,SAAS,uCAAuC;AAChD,SAAS,wCAAwC;AAEjD,SAAS,sCAAsC;AAC/C,SAAS,iCAAiC;AAE1C,SAAS,iCAAiC;","names":[]}
@@ -515,9 +515,7 @@ const messages = {
515
515
  navbar: {
516
516
  expandMenu: "Expand menu",
517
517
  greatPages: "GreatPages",
518
- pages: "Pages",
519
- greatDomain: "GreatDomain",
520
- domains: "Domains"
518
+ pages: "Pages"
521
519
  },
522
520
  profile: {
523
521
  usedCredits: "Credits used",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/messages/en-us.ts"],"sourcesContent":["/**\n * en-us translation catalog for @greatapps/common components.\n * Consumer apps merge this object under the `common` namespace.\n * Mirror the module structure of `pt-br.ts` (the source of truth).\n */\nconst messages = {\n actions: {\n save: 'Save',\n saveChanges: 'Save changes',\n cancel: 'Cancel',\n confirm: 'Confirm',\n delete: 'Delete',\n edit: 'Edit',\n close: 'Close',\n back: 'Back',\n continue: 'Continue',\n add: 'Add',\n remove: 'Remove',\n search: 'Search',\n loading: 'Loading...',\n saving: 'Saving...',\n sending: 'Sending...',\n copy: 'Copy',\n copied: 'Copied',\n },\n\n validations: {\n required: 'Required field',\n invalidEmail: 'Invalid email',\n invalidPhone: 'Invalid phone number',\n },\n\n preferences: {\n title: 'Preferences',\n companyName: 'Company name',\n companyNamePlaceholder: 'Enter the company name',\n language: 'Language',\n languagePlaceholder: 'Select the language',\n languageSearch: 'Search language...',\n currency: 'Currency',\n currencyPlaceholder: 'Select the currency',\n currencySearch: 'Search currency...',\n timeDisplay: 'Time display',\n timezone: 'Time zone',\n timezonePlaceholder: 'Select the time zone',\n timezoneSearch: 'Search time zone...',\n timeFormat: 'Time format',\n timeFormatPlaceholder: 'Select the format',\n timeFormatOptions: {\n h24: '24 hours',\n h12: '12 hours (AM/PM)',\n },\n savedSuccess: 'Preferences saved successfully',\n saveError: 'Error saving preferences',\n },\n\n account: {\n notificationTypes: {\n projectUpdates: 'Project updates',\n securityAlerts: 'Security alerts',\n planBilling: 'Plan or billing changes',\n scheduledMaintenance: 'Scheduled maintenance',\n },\n deleteAccount: {\n title: 'Delete account',\n description:\n 'This action is <b>irreversible</b>. By confirming, your account and all your data will be deleted.',\n reasonLabel: 'Reason for cancellation',\n reasonPlaceholder: 'Select',\n descriptionLabel: 'Describe what led you to make this decision',\n descriptionPlaceholder: 'Explain your decision...',\n charactersCount: '{count}/400 characters',\n passwordLabel: 'Password',\n passwordPlaceholder: 'Enter your password',\n submit: 'Delete account',\n requiredFields: 'Fill in all required fields',\n reasons: {\n noFeature: 'The tool lacks a feature I need',\n technical: 'I encountered technical issues or errors in the system',\n support: 'I had issues with support or customer service',\n updates: 'Updates take longer than expected',\n temporary: 'The cancellation is temporary',\n other: 'Other reason',\n },\n },\n deletionWarning: {\n title: 'Your account will be deleted',\n descriptionLine1:\n 'Your subscription has been cancelled for 90 days or more. Your account and all data will be permanently deleted.',\n descriptionLine2:\n 'To keep your information, reactivate your subscription before the deletion. After this period, the data cannot be recovered.',\n reactivate: 'Reactivate subscription',\n },\n confirmDelete: {\n title: 'Sorry to see you go!',\n warning:\n 'All your <b>{count} pages</b> will be permanently deleted. This action is <b>irreversible!</b>',\n sessionExpired: 'Session expired. Fill in the fields again.',\n success: 'Account deleted successfully',\n error: 'Error deleting account. Please try again.',\n keepAccount: 'Keep my account',\n deleteAnyway: 'Delete anyway',\n deleting: 'Deleting...',\n },\n cantDelete: {\n title: 'Unable to delete account',\n description:\n 'You have an active subscription. To delete your account, <b>first cancel your subscription</b> on the Subscription page and then try again.',\n confirm: 'Ok, I understand',\n goToSubscription: 'Go to subscription',\n },\n twoFactor: {\n title: 'Two-factor authentication',\n instructions:\n 'Install an authenticator app on your mobile device (e.g., <link>Google Authenticator</link>), scan the QR Code on the side or copy the key in the app, and then enter the 6-digit code generated to continue.',\n qrAlt: 'QR Code for two-factor authentication',\n retry: 'Try again',\n pasteDigits: 'Paste the 6 digits below',\n activating: 'Activating...',\n activate: 'Activate authentication',\n recoveryTitle: 'Security codes',\n recoveryHeading: 'Save these emergency recovery codes',\n recoveryText1:\n 'If you lose access to your phone, you will not be able to log into your account without a two-factor code.',\n recoveryText2: 'Print, copy, or write the codes below in a safe location.',\n copyCodes: 'Copy codes',\n finish: 'Finish',\n codesCopied: 'Codes copied successfully',\n generateError: 'Error generating QR Code. Try again.',\n confirmError: 'Error confirming code. Try again.',\n disableTitle: 'Disable 2FA authentication',\n disableDescription:\n 'Enter the 6-digit code from your authenticator app to confirm disabling.',\n authenticatorCode: 'Authenticator code',\n disabling: 'Disabling...',\n disable: 'Disable 2FA',\n disabledSuccess: 'Two-factor authentication disabled',\n disableError: 'Error disabling 2FA. Try again.',\n invalidCode: 'Invalid code',\n codeResent: 'Code resent',\n resendError: 'Error resending code. Try again.',\n },\n profile: {\n title: 'My profile',\n avatarAlt: 'User photo',\n changePhoto: 'Change photo',\n name: 'First name',\n namePlaceholder: 'Enter your first name',\n lastName: 'Last name',\n lastNamePlaceholder: 'Enter your last name',\n gender: 'Gender',\n genderPlaceholder: 'Select your gender',\n genderOptions: {\n male: 'Male',\n female: 'Female',\n },\n phone: 'Phone',\n change: 'Change',\n accessData: 'Access data',\n email: 'Email',\n savedSuccess: 'Profile updated successfully',\n saveError: 'Error updating profile',\n },\n otp: {\n validationCode: 'Validation code',\n incorrectCode: 'Incorrect code',\n resend: 'Resend code',\n resendIn: 'Resend in <b>{time}</b>',\n validating: 'Validating...',\n },\n changeEmail: {\n title: 'Change email',\n confirm: 'Change email',\n sentCodeTo: 'We sent a validation code to email <b>{email}.</b>',\n updateTitle: 'Update contact email',\n updateDescription: 'Enter your new email to keep your contact information updated.',\n newEmail: 'New email',\n newEmailPlaceholder: 'Enter your new email',\n emailChanged: 'Email changed successfully',\n emailExistsError: 'Email already exists or an error occurred. Please try again later.',\n },\n changePhone: {\n titleEdit: 'Change phone',\n titleAdd: 'Add phone',\n sentCodeTo: 'We sent a validation code to your current number <b>{phone}.</b>',\n confirm: 'Change phone',\n updateTitle: 'Update contact phone',\n addTitle: 'Add contact phone',\n updateDescription: 'Enter the new number to keep your contact information updated.',\n addDescription: 'Enter your phone number for contact.',\n newNumber: 'New number',\n numberLabel: 'Phone number',\n phoneChanged: 'Phone changed',\n phoneAdded: 'Phone added',\n invalidNumber: 'Invalid phone number',\n saveError: 'An error occurred while saving the phone number. Please try again later.',\n numberExistsError: 'Number already exists or an error occurred. Please try again later.',\n },\n security: {\n title: 'Security',\n googleLinkedTitle: 'Google account linked',\n googleLinkedDescription:\n 'Your account is linked to Google. If you unlink it, use \"Forgot my password\" to reset an email access password.',\n unlinking: 'Unlinking...',\n unlinkGoogle: 'Unlink Google',\n unlinkError: 'Error unlinking Google account.',\n deleteAccountDescription:\n 'This action is permanent and cannot be undone. All your data, projects, and settings will be permanently removed.',\n deleteMyAccount: 'Delete my account',\n },\n token: {\n title: 'Account token',\n label: 'Token',\n copySuccess: 'Token copied successfully',\n copyError: 'Failed to copy token',\n info: 'This token is unique to your account and allows API access. Do not share with third parties.',\n docsLink: 'Access documentation',\n },\n changePassword: {\n title: 'Change password',\n currentPassword: 'Current password',\n currentPasswordPlaceholder: 'Enter your current password',\n newPassword: 'New password',\n newPasswordPlaceholder: 'Enter your new password',\n submit: 'Save new password',\n changeError: 'Error changing password',\n changedSuccess: 'Password changed successfully',\n genericError: 'Error changing password. Try again.',\n },\n globalPreferences: {\n title: 'Change global preferences',\n srDescription: 'Confirmation of global account preferences change',\n warning:\n 'You are changing settings that impact <b>all account users</b>. Do you want to confirm?',\n },\n configurations: {\n title: 'Settings',\n },\n },\n\n credits: {\n buy: {\n title: 'Buy AI credits',\n externalTitle: 'AI Credits',\n externalDescription: 'To purchase AI credits, visit your subscription area.',\n externalButton: 'Go to subscription area',\n creditsOptionLabel: '{credits} AI credits',\n creditsOptionDisplayValue: '{credits} AI credits',\n paymentOnConfirm: 'Payment will be processed at the time of confirmation.',\n nextInvoiceChanges: 'Changes will take effect from your next invoice.',\n defaultPrice: 'Default',\n immediateCharge: 'Immediate charge',\n totalPlanValue: 'Total plan value',\n confirmAndPay: 'Confirm and pay',\n creditsChangedToast: 'AI credits changed to {credits}',\n purchaseSuccessToast: 'Purchase complete! {credits} AI credits were added to your balance.',\n pixConfirmedToast: 'Payment confirmed! {credits} AI credits are now in your balance.',\n },\n disabled: {\n title: 'Credit purchase unavailable',\n descriptionLine1: 'Only administrators and owners can purchase AI credits.',\n descriptionLine2:\n 'Ask an account administrator or owner to purchase more credits.',\n understood: 'Got it',\n },\n paidPlanRequired: {\n defaultTitle: 'Feature available on paid plans',\n defaultDescription: 'To access this feature, upgrade to a paid plan',\n knowPlans: 'View plans',\n },\n },\n\n cards: {\n add: {\n stepBilling: 'Billing',\n stepCard: 'Card',\n externalTitle: 'Card management unavailable',\n externalDescription: 'Access your subscription area to manage payment methods.',\n externalButton: 'Go to subscription area',\n title: 'Add card',\n billingHeading: 'Add your billing information',\n cardHeading: 'Add your card information',\n authenticating: 'Authenticating...',\n submitting: 'Adding card...',\n submit: 'Add card',\n errorInitAuth: 'Unable to start card authentication, please try again.',\n errorAuth: 'Card authentication failed.',\n errorAuthStatus: 'Authentication not completed (status: {status}).',\n statusUnknown: 'unknown',\n successToast: 'Card added successfully.',\n errorSave: 'Unable to save your new card, please try again.',\n },\n form: {\n nameOnCard: 'Name on card',\n typeHere: 'Type here',\n cardNumber: 'Card number',\n cardExpiry: 'Expiration date',\n cardCvc: 'CVC',\n country: 'Country',\n select: 'Select',\n personType: 'Person type',\n personTypePf: 'Individual',\n personTypePj: 'Business',\n cpf: 'CPF',\n cnpj: 'CNPJ',\n fullName: 'Full name',\n cep: 'CEP',\n postalCode: 'Postal code',\n street: 'Address',\n streetNumber: 'Number',\n city: 'City',\n state: 'UF',\n stateProvince: 'State/Province',\n neighborhood: 'Neighborhood',\n complement: 'Complement',\n cardNumberRequired: 'Card number is required',\n cardExpiryRequired: 'Expiration date is required',\n cardCvcRequired: 'Security code is required',\n },\n delete: {\n title: 'Delete card',\n description: 'Are you sure you want to delete the card:',\n confirmLabel: 'Type DELETE below',\n confirmPlaceholder: 'DELETE',\n deleting: 'Deleting...',\n successToast: 'Card •••• {digits} deleted successfully',\n errorToast: 'Unable to delete card',\n },\n cannotDelete: {\n title: 'Cannot delete this card',\n description: 'This card is in use and has an active subscription linked to it. Select another card as default or add a new one.',\n selectDefault: 'Select a card as default:',\n addNewCard: 'Add new card',\n errorUpdateCard: 'Error updating subscription card',\n },\n item: {\n defaultBadge: 'Default',\n makeDefault: 'Make default',\n setDefaultSuccess: 'Card set as default',\n setDefaultError: 'Error setting card as default',\n digitsUnavailable: 'Number unavailable',\n },\n paymentInfo: {\n email: 'Email',\n payment: 'Payment',\n addCard: 'Add card',\n selectPaymentMethod: 'Select payment method',\n manageCards: 'Manage cards',\n newPaymentMethod: 'New payment method',\n },\n },\n billing: {\n requiredData: {\n title: 'Complete your billing information',\n description:\n 'We need this information to issue the invoice for your payments. Filling it in is required to keep using the platform.',\n descriptionInternational:\n 'Since your billing address is outside Brazil, we only need your name and email for your payment receipts.',\n addressHeading: 'Billing address',\n select: 'Select',\n typeHere: 'Type here',\n personType: 'Entity type',\n personTypePf: 'Individual',\n personTypePj: 'Company',\n cpf: 'CPF',\n cnpj: 'CNPJ',\n fullName: 'Full name',\n companyName: 'Legal name',\n financialEmail: 'Billing email',\n financialEmailPlaceholder: 'billing@company.com',\n cep: 'ZIP code',\n postalCode: 'Postal code',\n street: 'Address',\n streetNumber: 'Number',\n neighborhood: 'District',\n complement: 'Complement',\n city: 'City',\n state: 'State',\n stateProvince: 'State/Province',\n country: 'Country',\n submit: 'Save and continue',\n submitting: 'Saving...',\n successToast: 'Billing information saved successfully.',\n errorToast: 'We could not save your billing information, please try again.',\n requiredField: 'Required field',\n invalidEmail: 'Invalid email',\n invalidCep: 'Invalid ZIP code',\n invalidCpf: 'Invalid CPF',\n invalidCnpj: 'Invalid CNPJ',\n invalidCpfChecksum: 'Invalid CPF — check the verification digits',\n invalidCnpjChecksum: 'Invalid CNPJ — check the verification digits',\n },\n },\n navigation: {\n banners: {\n cancelled: {\n message: 'Subscription cancelled! Your pages are now offline.',\n choosePlan: 'Choose a new plan',\n },\n overdue: {\n message: 'Your subscription is overdue and your pages may be taken offline at any time.',\n attemptsMessage: 'Payment failed. {count, plural, one {# attempt remains} other {# attempts remain}} before cancellation. Update your payment method.',\n details: 'Details',\n },\n pending: {\n message: 'Your subscription was cancelled. You have until {limitDate} with your pages online.',\n reactivate: 'Reactivate subscription',\n },\n upcoming: {\n message: 'Invoice pending. Pay by {dueDate} to avoid suspension of your pages.',\n details: 'Details',\n },\n trial: {\n message: 'Trial period: {days, plural, =0 {your trial ends today!} one {# day left} other {# days left}}.',\n choosePlan: 'Subscribe now',\n },\n },\n projectSelector: {\n title: 'Projects',\n searchPlaceholder: 'Search here',\n emptyLine1: 'No projects found.',\n emptyLine2: 'Create a project to get started.',\n noResults: 'No results found.',\n manageProjects: 'Manage projects',\n },\n bottomLinks: {\n news: 'News',\n helpCenter: 'Help center',\n sendSuggestions: 'Send suggestions',\n },\n creditsCard: {\n label: 'Credits used',\n },\n planCard: {\n knowPlans: 'View plans',\n },\n },\n subscription: {\n frozen: {\n banner: {\n message: 'Your account resources are blocked due to missing payment.',\n regularize: 'Update subscription',\n },\n warningBanner: {\n message: 'Payment overdue: your account resources will be blocked on {freezeDate}. Pay now to keep your access.',\n details: 'Details',\n },\n modal: {\n title: 'Your account resources are blocked',\n description: 'Your account resources are blocked due to missing payment. Update your subscription to unlock them.',\n descriptionWithResources: 'We could not identify your payment, so these resources are blocked:',\n warningDescriptionWithResources: 'Your payment is overdue. If we do not identify it by then, these resources will be blocked:',\n warningTitle: 'Your resources will be blocked on {freezeDate}',\n warningDescription: 'Your payment is overdue. Settle it to keep access to your account resources.',\n keepsWorking: 'Your published pages stay online and your leads keep coming in. Everything is restored automatically once the payment goes through.',\n resources: {\n pages: {\n title: 'Manage pages',\n description: 'Publishing, creating and editing pages, settings, A/B tests, file uploads and exporting leads',\n },\n projects: {\n title: 'Manage projects',\n description: 'Creating and editing projects, inviting users and changing team permissions',\n },\n domains: {\n title: 'Manage domains',\n description: 'Connecting new domains and managing integrations',\n },\n },\n cta: 'Update subscription',\n },\n },\n },\n forms: {\n combobox: {\n placeholder: 'Select an option',\n searchPlaceholder: 'Search...',\n emptyMessage: 'No options found.',\n },\n datePicker: {\n placeholder: 'Select date',\n },\n dateRangePicker: {\n placeholder: 'Select period',\n },\n phoneInput: {\n optional: '(Optional)',\n searchPlaceholder: 'Search country...',\n emptyMessage: 'No countries found',\n },\n select: {\n placeholder: 'Select an option',\n optional: '(Optional)',\n },\n copyButton: {\n tooltipDefault: 'Copy link',\n successDefault: 'Link copied',\n errorMessage: 'Unable to copy link',\n },\n circularProgress: {\n ariaLabel: 'Export progress',\n },\n },\n imageUpload: {\n cropTitle: 'Adjust image',\n cropHint: 'Drag to adjust the crop area',\n cropAlt: 'Crop',\n tooSmallTitleWithDimension: 'Image smaller than {dimensionText}',\n tooSmallTitleGeneric: 'Image too small',\n tooSmallBodyFileWithDimension: 'The file \"{fileName}\" is smaller than {dimensionText}. Upload an image with at least {dimensionText} to continue.',\n tooSmallBodyFileGeneric: 'The file \"{fileName}\" is smaller than the minimum required size. Upload a larger image to continue.',\n tooSmallBodyNoFileWithDimension: 'The selected image is smaller than {dimensionText}. Upload an image with at least {dimensionText} to continue.',\n tooSmallBodyNoFileGeneric: 'The selected image is smaller than the minimum required size. Upload a larger image to continue.',\n sendAnother: 'Upload another',\n errorSvg: 'SVG format is not supported. Use PNG, JPEG, WebP, or GIF.',\n errorFormat: 'Unsupported format. Use PNG, JPEG, WebP, or GIF.',\n errorTooLarge: 'File too large. Maximum {maxSize}MB.',\n },\n notifications: {\n page: {\n title: 'Notifications',\n subtitle: 'Have full control over pages, experiences, and conversions.',\n markAllReadDesktop: 'Mark all as read',\n markAllReadMobile: 'Mark as read',\n tabAll: 'All notifications',\n tabUnread: 'Unread',\n details: 'Details',\n empty: 'No notifications found.',\n markAllSuccess: 'All notifications marked as read',\n markAllError: 'Error marking notifications as read',\n },\n popover: {\n title: 'Latest notifications',\n empty: 'No notifications yet',\n viewAll: 'All notifications',\n },\n },\n layout: {\n navbar: {\n expandMenu: 'Expand menu',\n greatPages: 'GreatPages',\n pages: 'Pages',\n greatDomain: 'GreatDomain',\n domains: 'Domains',\n },\n profile: {\n usedCredits: 'Credits used',\n loggingOut: 'Signing out...',\n logout: 'Sign out',\n },\n usersSelector: {\n title: 'Users',\n add: 'Add',\n searchPlaceholder: 'Search here',\n empty: 'No users found.',\n noResults: 'No results found.',\n addToProject: 'Add to project',\n removeFromProject: 'Remove from project',\n manageTeam: 'Manage team',\n },\n },\n notFound: {\n title: 'Page not found!',\n description: 'The page you are looking for does not exist. Check that you typed the link correctly.',\n backToHome: 'Back to home',\n },\n\n // Planos: features e main features (mapApiPlanToUiPlan).\n plans: {\n features: {\n unlimitedVisits: 'Unlimited visits',\n unlimitedLeads: 'Unlimited leads',\n sharePages: 'Share pages',\n hosting: 'Hosting included',\n freeTemplates: 'Free templates',\n onboarding: 'Onboarding meeting',\n projectManagement: 'Project management',\n },\n names: {\n '415': 'Starter',\n '1': 'Essential',\n '2': 'Growth',\n '3': 'Agency',\n },\n mainFeatures: {\n pagesUnlimited: 'Unlimited pages',\n pageSingular: '1 page',\n pagesPlural: '{count} pages',\n domainsUnlimited: 'Unlimited domains',\n domainSingular: '1 external domain',\n domainsPlural: '{count} external domains',\n usersUnlimited: 'Unlimited users',\n },\n usdNotConfigured: 'USD not configured',\n },\n\n // Autenticação de pagamento (3DS/SCA).\n payment: {\n authFailed: \"We couldn't authenticate the payment with your bank.\",\n },\n\n // Periodicidade de cobrança.\n periodicity: {\n monthly: 'Monthly',\n semiannual: 'Semiannual',\n annual: 'Annual',\n suffixMonthly: '/month',\n suffixSemiannual: '/semester',\n suffixAnnual: '/year',\n labelMonthly: 'monthly',\n labelSemiannual: 'semiannual',\n labelAnnual: 'annual',\n },\n\n languages: {\n 'pt-br': 'Portuguese (Brazil)',\n 'en-us': 'English (US)',\n 'es-es': 'Spanish',\n },\n\n // Modais promocionais compartilhados entre app/accounts/editor.\n promo: {\n // Componente: AiCreditsOfferModal.\n aiCreditsOffer: {\n eyebrow: 'First purchase pack',\n title: '{credits} AI credits <break></break>at {discount}',\n bullets: {\n first: 'Build a full page from one prompt.',\n second: 'Generate copy and images in the editor.',\n third: 'One-time credits: your plan stays as is.',\n },\n discountBadge: '{percent}% OFF',\n cta: 'Get my credits at {discount}',\n ctaAddCard: 'Add card and lock in the discount',\n later: 'Not now',\n editPayment: 'Edit payment details',\n close: 'Close',\n successToast: 'Done! {credits} AI credits are now in your account.',\n errorToast: 'We could not complete the purchase. Please try again.',\n cardVerification: 'Your card asked for an extra verification. Try another card.',\n illustration: {\n credits: 'credits',\n },\n exit: {\n title: 'Sure you want to lose {discount}?',\n description: 'This screen will not come back. Leave now and the {credits} credits go back to {price}.',\n descriptionNoPrice: 'This screen will not come back. Leave now and the {credits} credits go back to full price.',\n keep: 'Back to the offer',\n lose: 'Lose my offer',\n },\n },\n },\n} as const;\n\nexport default messages;\n"],"mappings":"AAKA,MAAM,WAAW;AAAA,EACf,SAAS;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,EACV;AAAA,EAEA,aAAa;AAAA,IACX,UAAU;AAAA,IACV,cAAc;AAAA,IACd,cAAc;AAAA,EAChB;AAAA,EAEA,aAAa;AAAA,IACX,OAAO;AAAA,IACP,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,qBAAqB;A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IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
1
+ {"version":3,"sources":["../../../src/i18n/messages/en-us.ts"],"sourcesContent":["/**\n * en-us translation catalog for @greatapps/common components.\n * Consumer apps merge this object under the `common` namespace.\n * Mirror the module structure of `pt-br.ts` (the source of truth).\n */\nconst messages = {\n actions: {\n save: 'Save',\n saveChanges: 'Save changes',\n cancel: 'Cancel',\n confirm: 'Confirm',\n delete: 'Delete',\n edit: 'Edit',\n close: 'Close',\n back: 'Back',\n continue: 'Continue',\n add: 'Add',\n remove: 'Remove',\n search: 'Search',\n loading: 'Loading...',\n saving: 'Saving...',\n sending: 'Sending...',\n copy: 'Copy',\n copied: 'Copied',\n },\n\n validations: {\n required: 'Required field',\n invalidEmail: 'Invalid email',\n invalidPhone: 'Invalid phone number',\n },\n\n preferences: {\n title: 'Preferences',\n companyName: 'Company name',\n companyNamePlaceholder: 'Enter the company name',\n language: 'Language',\n languagePlaceholder: 'Select the language',\n languageSearch: 'Search language...',\n currency: 'Currency',\n currencyPlaceholder: 'Select the currency',\n currencySearch: 'Search currency...',\n timeDisplay: 'Time display',\n timezone: 'Time zone',\n timezonePlaceholder: 'Select the time zone',\n timezoneSearch: 'Search time zone...',\n timeFormat: 'Time format',\n timeFormatPlaceholder: 'Select the format',\n timeFormatOptions: {\n h24: '24 hours',\n h12: '12 hours (AM/PM)',\n },\n savedSuccess: 'Preferences saved successfully',\n saveError: 'Error saving preferences',\n },\n\n account: {\n notificationTypes: {\n projectUpdates: 'Project updates',\n securityAlerts: 'Security alerts',\n planBilling: 'Plan or billing changes',\n scheduledMaintenance: 'Scheduled maintenance',\n },\n deleteAccount: {\n title: 'Delete account',\n description:\n 'This action is <b>irreversible</b>. By confirming, your account and all your data will be deleted.',\n reasonLabel: 'Reason for cancellation',\n reasonPlaceholder: 'Select',\n descriptionLabel: 'Describe what led you to make this decision',\n descriptionPlaceholder: 'Explain your decision...',\n charactersCount: '{count}/400 characters',\n passwordLabel: 'Password',\n passwordPlaceholder: 'Enter your password',\n submit: 'Delete account',\n requiredFields: 'Fill in all required fields',\n reasons: {\n noFeature: 'The tool lacks a feature I need',\n technical: 'I encountered technical issues or errors in the system',\n support: 'I had issues with support or customer service',\n updates: 'Updates take longer than expected',\n temporary: 'The cancellation is temporary',\n other: 'Other reason',\n },\n },\n deletionWarning: {\n title: 'Your account will be deleted',\n descriptionLine1:\n 'Your subscription has been cancelled for 90 days or more. Your account and all data will be permanently deleted.',\n descriptionLine2:\n 'To keep your information, reactivate your subscription before the deletion. After this period, the data cannot be recovered.',\n reactivate: 'Reactivate subscription',\n },\n confirmDelete: {\n title: 'Sorry to see you go!',\n warning:\n 'All your <b>{count} pages</b> will be permanently deleted. This action is <b>irreversible!</b>',\n sessionExpired: 'Session expired. Fill in the fields again.',\n success: 'Account deleted successfully',\n error: 'Error deleting account. Please try again.',\n keepAccount: 'Keep my account',\n deleteAnyway: 'Delete anyway',\n deleting: 'Deleting...',\n },\n cantDelete: {\n title: 'Unable to delete account',\n description:\n 'You have an active subscription. To delete your account, <b>first cancel your subscription</b> on the Subscription page and then try again.',\n confirm: 'Ok, I understand',\n goToSubscription: 'Go to subscription',\n },\n twoFactor: {\n title: 'Two-factor authentication',\n instructions:\n 'Install an authenticator app on your mobile device (e.g., <link>Google Authenticator</link>), scan the QR Code on the side or copy the key in the app, and then enter the 6-digit code generated to continue.',\n qrAlt: 'QR Code for two-factor authentication',\n retry: 'Try again',\n pasteDigits: 'Paste the 6 digits below',\n activating: 'Activating...',\n activate: 'Activate authentication',\n recoveryTitle: 'Security codes',\n recoveryHeading: 'Save these emergency recovery codes',\n recoveryText1:\n 'If you lose access to your phone, you will not be able to log into your account without a two-factor code.',\n recoveryText2: 'Print, copy, or write the codes below in a safe location.',\n copyCodes: 'Copy codes',\n finish: 'Finish',\n codesCopied: 'Codes copied successfully',\n generateError: 'Error generating QR Code. Try again.',\n confirmError: 'Error confirming code. Try again.',\n disableTitle: 'Disable 2FA authentication',\n disableDescription:\n 'Enter the 6-digit code from your authenticator app to confirm disabling.',\n authenticatorCode: 'Authenticator code',\n disabling: 'Disabling...',\n disable: 'Disable 2FA',\n disabledSuccess: 'Two-factor authentication disabled',\n disableError: 'Error disabling 2FA. Try again.',\n invalidCode: 'Invalid code',\n codeResent: 'Code resent',\n resendError: 'Error resending code. Try again.',\n },\n profile: {\n title: 'My profile',\n avatarAlt: 'User photo',\n changePhoto: 'Change photo',\n name: 'First name',\n namePlaceholder: 'Enter your first name',\n lastName: 'Last name',\n lastNamePlaceholder: 'Enter your last name',\n gender: 'Gender',\n genderPlaceholder: 'Select your gender',\n genderOptions: {\n male: 'Male',\n female: 'Female',\n },\n phone: 'Phone',\n change: 'Change',\n accessData: 'Access data',\n email: 'Email',\n savedSuccess: 'Profile updated successfully',\n saveError: 'Error updating profile',\n },\n otp: {\n validationCode: 'Validation code',\n incorrectCode: 'Incorrect code',\n resend: 'Resend code',\n resendIn: 'Resend in <b>{time}</b>',\n validating: 'Validating...',\n },\n changeEmail: {\n title: 'Change email',\n confirm: 'Change email',\n sentCodeTo: 'We sent a validation code to email <b>{email}.</b>',\n updateTitle: 'Update contact email',\n updateDescription: 'Enter your new email to keep your contact information updated.',\n newEmail: 'New email',\n newEmailPlaceholder: 'Enter your new email',\n emailChanged: 'Email changed successfully',\n emailExistsError: 'Email already exists or an error occurred. Please try again later.',\n },\n changePhone: {\n titleEdit: 'Change phone',\n titleAdd: 'Add phone',\n sentCodeTo: 'We sent a validation code to your current number <b>{phone}.</b>',\n confirm: 'Change phone',\n updateTitle: 'Update contact phone',\n addTitle: 'Add contact phone',\n updateDescription: 'Enter the new number to keep your contact information updated.',\n addDescription: 'Enter your phone number for contact.',\n newNumber: 'New number',\n numberLabel: 'Phone number',\n phoneChanged: 'Phone changed',\n phoneAdded: 'Phone added',\n invalidNumber: 'Invalid phone number',\n saveError: 'An error occurred while saving the phone number. Please try again later.',\n numberExistsError: 'Number already exists or an error occurred. Please try again later.',\n },\n security: {\n title: 'Security',\n googleLinkedTitle: 'Google account linked',\n googleLinkedDescription:\n 'Your account is linked to Google. If you unlink it, use \"Forgot my password\" to reset an email access password.',\n unlinking: 'Unlinking...',\n unlinkGoogle: 'Unlink Google',\n unlinkError: 'Error unlinking Google account.',\n deleteAccountDescription:\n 'This action is permanent and cannot be undone. All your data, projects, and settings will be permanently removed.',\n deleteMyAccount: 'Delete my account',\n },\n token: {\n title: 'Account token',\n label: 'Token',\n copySuccess: 'Token copied successfully',\n copyError: 'Failed to copy token',\n info: 'This token is unique to your account and allows API access. Do not share with third parties.',\n docsLink: 'Access documentation',\n },\n changePassword: {\n title: 'Change password',\n currentPassword: 'Current password',\n currentPasswordPlaceholder: 'Enter your current password',\n newPassword: 'New password',\n newPasswordPlaceholder: 'Enter your new password',\n submit: 'Save new password',\n changeError: 'Error changing password',\n changedSuccess: 'Password changed successfully',\n genericError: 'Error changing password. Try again.',\n },\n globalPreferences: {\n title: 'Change global preferences',\n srDescription: 'Confirmation of global account preferences change',\n warning:\n 'You are changing settings that impact <b>all account users</b>. Do you want to confirm?',\n },\n configurations: {\n title: 'Settings',\n },\n },\n\n credits: {\n buy: {\n title: 'Buy AI credits',\n externalTitle: 'AI Credits',\n externalDescription: 'To purchase AI credits, visit your subscription area.',\n externalButton: 'Go to subscription area',\n creditsOptionLabel: '{credits} AI credits',\n creditsOptionDisplayValue: '{credits} AI credits',\n paymentOnConfirm: 'Payment will be processed at the time of confirmation.',\n nextInvoiceChanges: 'Changes will take effect from your next invoice.',\n defaultPrice: 'Default',\n immediateCharge: 'Immediate charge',\n totalPlanValue: 'Total plan value',\n confirmAndPay: 'Confirm and pay',\n creditsChangedToast: 'AI credits changed to {credits}',\n purchaseSuccessToast: 'Purchase complete! {credits} AI credits were added to your balance.',\n pixConfirmedToast: 'Payment confirmed! {credits} AI credits are now in your balance.',\n },\n disabled: {\n title: 'Credit purchase unavailable',\n descriptionLine1: 'Only administrators and owners can purchase AI credits.',\n descriptionLine2:\n 'Ask an account administrator or owner to purchase more credits.',\n understood: 'Got it',\n },\n paidPlanRequired: {\n defaultTitle: 'Feature available on paid plans',\n defaultDescription: 'To access this feature, upgrade to a paid plan',\n knowPlans: 'View plans',\n },\n },\n\n cards: {\n add: {\n stepBilling: 'Billing',\n stepCard: 'Card',\n externalTitle: 'Card management unavailable',\n externalDescription: 'Access your subscription area to manage payment methods.',\n externalButton: 'Go to subscription area',\n title: 'Add card',\n billingHeading: 'Add your billing information',\n cardHeading: 'Add your card information',\n authenticating: 'Authenticating...',\n submitting: 'Adding card...',\n submit: 'Add card',\n errorInitAuth: 'Unable to start card authentication, please try again.',\n errorAuth: 'Card authentication failed.',\n errorAuthStatus: 'Authentication not completed (status: {status}).',\n statusUnknown: 'unknown',\n successToast: 'Card added successfully.',\n errorSave: 'Unable to save your new card, please try again.',\n },\n form: {\n nameOnCard: 'Name on card',\n typeHere: 'Type here',\n cardNumber: 'Card number',\n cardExpiry: 'Expiration date',\n cardCvc: 'CVC',\n country: 'Country',\n select: 'Select',\n personType: 'Person type',\n personTypePf: 'Individual',\n personTypePj: 'Business',\n cpf: 'CPF',\n cnpj: 'CNPJ',\n fullName: 'Full name',\n cep: 'CEP',\n postalCode: 'Postal code',\n street: 'Address',\n streetNumber: 'Number',\n city: 'City',\n state: 'UF',\n stateProvince: 'State/Province',\n neighborhood: 'Neighborhood',\n complement: 'Complement',\n cardNumberRequired: 'Card number is required',\n cardExpiryRequired: 'Expiration date is required',\n cardCvcRequired: 'Security code is required',\n },\n delete: {\n title: 'Delete card',\n description: 'Are you sure you want to delete the card:',\n confirmLabel: 'Type DELETE below',\n confirmPlaceholder: 'DELETE',\n deleting: 'Deleting...',\n successToast: 'Card •••• {digits} deleted successfully',\n errorToast: 'Unable to delete card',\n },\n cannotDelete: {\n title: 'Cannot delete this card',\n description: 'This card is in use and has an active subscription linked to it. Select another card as default or add a new one.',\n selectDefault: 'Select a card as default:',\n addNewCard: 'Add new card',\n errorUpdateCard: 'Error updating subscription card',\n },\n item: {\n defaultBadge: 'Default',\n makeDefault: 'Make default',\n setDefaultSuccess: 'Card set as default',\n setDefaultError: 'Error setting card as default',\n digitsUnavailable: 'Number unavailable',\n },\n paymentInfo: {\n email: 'Email',\n payment: 'Payment',\n addCard: 'Add card',\n selectPaymentMethod: 'Select payment method',\n manageCards: 'Manage cards',\n newPaymentMethod: 'New payment method',\n },\n },\n billing: {\n requiredData: {\n title: 'Complete your billing information',\n description:\n 'We need this information to issue the invoice for your payments. Filling it in is required to keep using the platform.',\n descriptionInternational:\n 'Since your billing address is outside Brazil, we only need your name and email for your payment receipts.',\n addressHeading: 'Billing address',\n select: 'Select',\n typeHere: 'Type here',\n personType: 'Entity type',\n personTypePf: 'Individual',\n personTypePj: 'Company',\n cpf: 'CPF',\n cnpj: 'CNPJ',\n fullName: 'Full name',\n companyName: 'Legal name',\n financialEmail: 'Billing email',\n financialEmailPlaceholder: 'billing@company.com',\n cep: 'ZIP code',\n postalCode: 'Postal code',\n street: 'Address',\n streetNumber: 'Number',\n neighborhood: 'District',\n complement: 'Complement',\n city: 'City',\n state: 'State',\n stateProvince: 'State/Province',\n country: 'Country',\n submit: 'Save and continue',\n submitting: 'Saving...',\n successToast: 'Billing information saved successfully.',\n errorToast: 'We could not save your billing information, please try again.',\n requiredField: 'Required field',\n invalidEmail: 'Invalid email',\n invalidCep: 'Invalid ZIP code',\n invalidCpf: 'Invalid CPF',\n invalidCnpj: 'Invalid CNPJ',\n invalidCpfChecksum: 'Invalid CPF — check the verification digits',\n invalidCnpjChecksum: 'Invalid CNPJ — check the verification digits',\n },\n },\n navigation: {\n banners: {\n cancelled: {\n message: 'Subscription cancelled! Your pages are now offline.',\n choosePlan: 'Choose a new plan',\n },\n overdue: {\n message: 'Your subscription is overdue and your pages may be taken offline at any time.',\n attemptsMessage: 'Payment failed. {count, plural, one {# attempt remains} other {# attempts remain}} before cancellation. Update your payment method.',\n details: 'Details',\n },\n pending: {\n message: 'Your subscription was cancelled. You have until {limitDate} with your pages online.',\n reactivate: 'Reactivate subscription',\n },\n upcoming: {\n message: 'Invoice pending. Pay by {dueDate} to avoid suspension of your pages.',\n details: 'Details',\n },\n trial: {\n message: 'Trial period: {days, plural, =0 {your trial ends today!} one {# day left} other {# days left}}.',\n choosePlan: 'Subscribe now',\n },\n },\n projectSelector: {\n title: 'Projects',\n searchPlaceholder: 'Search here',\n emptyLine1: 'No projects found.',\n emptyLine2: 'Create a project to get started.',\n noResults: 'No results found.',\n manageProjects: 'Manage projects',\n },\n bottomLinks: {\n news: 'News',\n helpCenter: 'Help center',\n sendSuggestions: 'Send suggestions',\n },\n creditsCard: {\n label: 'Credits used',\n },\n planCard: {\n knowPlans: 'View plans',\n },\n },\n subscription: {\n frozen: {\n banner: {\n message: 'Your account resources are blocked due to missing payment.',\n regularize: 'Update subscription',\n },\n warningBanner: {\n message: 'Payment overdue: your account resources will be blocked on {freezeDate}. Pay now to keep your access.',\n details: 'Details',\n },\n modal: {\n title: 'Your account resources are blocked',\n description: 'Your account resources are blocked due to missing payment. Update your subscription to unlock them.',\n descriptionWithResources: 'We could not identify your payment, so these resources are blocked:',\n warningDescriptionWithResources: 'Your payment is overdue. If we do not identify it by then, these resources will be blocked:',\n warningTitle: 'Your resources will be blocked on {freezeDate}',\n warningDescription: 'Your payment is overdue. Settle it to keep access to your account resources.',\n keepsWorking: 'Your published pages stay online and your leads keep coming in. Everything is restored automatically once the payment goes through.',\n resources: {\n pages: {\n title: 'Manage pages',\n description: 'Publishing, creating and editing pages, settings, A/B tests, file uploads and exporting leads',\n },\n projects: {\n title: 'Manage projects',\n description: 'Creating and editing projects, inviting users and changing team permissions',\n },\n domains: {\n title: 'Manage domains',\n description: 'Connecting new domains and managing integrations',\n },\n },\n cta: 'Update subscription',\n },\n },\n },\n forms: {\n combobox: {\n placeholder: 'Select an option',\n searchPlaceholder: 'Search...',\n emptyMessage: 'No options found.',\n },\n datePicker: {\n placeholder: 'Select date',\n },\n dateRangePicker: {\n placeholder: 'Select period',\n },\n phoneInput: {\n optional: '(Optional)',\n searchPlaceholder: 'Search country...',\n emptyMessage: 'No countries found',\n },\n select: {\n placeholder: 'Select an option',\n optional: '(Optional)',\n },\n copyButton: {\n tooltipDefault: 'Copy link',\n successDefault: 'Link copied',\n errorMessage: 'Unable to copy link',\n },\n circularProgress: {\n ariaLabel: 'Export progress',\n },\n },\n imageUpload: {\n cropTitle: 'Adjust image',\n cropHint: 'Drag to adjust the crop area',\n cropAlt: 'Crop',\n tooSmallTitleWithDimension: 'Image smaller than {dimensionText}',\n tooSmallTitleGeneric: 'Image too small',\n tooSmallBodyFileWithDimension: 'The file \"{fileName}\" is smaller than {dimensionText}. Upload an image with at least {dimensionText} to continue.',\n tooSmallBodyFileGeneric: 'The file \"{fileName}\" is smaller than the minimum required size. Upload a larger image to continue.',\n tooSmallBodyNoFileWithDimension: 'The selected image is smaller than {dimensionText}. Upload an image with at least {dimensionText} to continue.',\n tooSmallBodyNoFileGeneric: 'The selected image is smaller than the minimum required size. Upload a larger image to continue.',\n sendAnother: 'Upload another',\n errorSvg: 'SVG format is not supported. Use PNG, JPEG, WebP, or GIF.',\n errorFormat: 'Unsupported format. Use PNG, JPEG, WebP, or GIF.',\n errorTooLarge: 'File too large. Maximum {maxSize}MB.',\n },\n notifications: {\n page: {\n title: 'Notifications',\n subtitle: 'Have full control over pages, experiences, and conversions.',\n markAllReadDesktop: 'Mark all as read',\n markAllReadMobile: 'Mark as read',\n tabAll: 'All notifications',\n tabUnread: 'Unread',\n details: 'Details',\n empty: 'No notifications found.',\n markAllSuccess: 'All notifications marked as read',\n markAllError: 'Error marking notifications as read',\n },\n popover: {\n title: 'Latest notifications',\n empty: 'No notifications yet',\n viewAll: 'All notifications',\n },\n },\n layout: {\n navbar: {\n expandMenu: 'Expand menu',\n greatPages: 'GreatPages',\n pages: 'Pages',\n },\n profile: {\n usedCredits: 'Credits used',\n loggingOut: 'Signing out...',\n logout: 'Sign out',\n },\n usersSelector: {\n title: 'Users',\n add: 'Add',\n searchPlaceholder: 'Search here',\n empty: 'No users found.',\n noResults: 'No results found.',\n addToProject: 'Add to project',\n removeFromProject: 'Remove from project',\n manageTeam: 'Manage team',\n },\n },\n notFound: {\n title: 'Page not found!',\n description: 'The page you are looking for does not exist. Check that you typed the link correctly.',\n backToHome: 'Back to home',\n },\n\n // Planos: features e main features (mapApiPlanToUiPlan).\n plans: {\n features: {\n unlimitedVisits: 'Unlimited visits',\n unlimitedLeads: 'Unlimited leads',\n sharePages: 'Share pages',\n hosting: 'Hosting included',\n freeTemplates: 'Free templates',\n onboarding: 'Onboarding meeting',\n projectManagement: 'Project management',\n },\n names: {\n '415': 'Starter',\n '1': 'Essential',\n '2': 'Growth',\n '3': 'Agency',\n },\n mainFeatures: {\n pagesUnlimited: 'Unlimited pages',\n pageSingular: '1 page',\n pagesPlural: '{count} pages',\n domainsUnlimited: 'Unlimited domains',\n domainSingular: '1 external domain',\n domainsPlural: '{count} external domains',\n usersUnlimited: 'Unlimited users',\n },\n usdNotConfigured: 'USD not configured',\n },\n\n // Autenticação de pagamento (3DS/SCA).\n payment: {\n authFailed: \"We couldn't authenticate the payment with your bank.\",\n },\n\n // Periodicidade de cobrança.\n periodicity: {\n monthly: 'Monthly',\n semiannual: 'Semiannual',\n annual: 'Annual',\n suffixMonthly: '/month',\n suffixSemiannual: '/semester',\n suffixAnnual: '/year',\n labelMonthly: 'monthly',\n labelSemiannual: 'semiannual',\n labelAnnual: 'annual',\n },\n\n languages: {\n 'pt-br': 'Portuguese (Brazil)',\n 'en-us': 'English (US)',\n 'es-es': 'Spanish',\n },\n\n // Modais promocionais compartilhados entre app/accounts/editor.\n promo: {\n // Componente: AiCreditsOfferModal.\n aiCreditsOffer: {\n eyebrow: 'First purchase pack',\n title: '{credits} AI credits <break></break>at {discount}',\n bullets: {\n first: 'Build a full page from one prompt.',\n second: 'Generate copy and images in the editor.',\n third: 'One-time credits: your plan stays as is.',\n },\n discountBadge: '{percent}% OFF',\n cta: 'Get my credits at {discount}',\n ctaAddCard: 'Add card and lock in the discount',\n later: 'Not now',\n editPayment: 'Edit payment details',\n close: 'Close',\n successToast: 'Done! {credits} AI credits are now in your account.',\n errorToast: 'We could not complete the purchase. Please try again.',\n cardVerification: 'Your card asked for an extra verification. Try another card.',\n illustration: {\n credits: 'credits',\n },\n exit: {\n title: 'Sure you want to lose {discount}?',\n description: 'This screen will not come back. Leave now and the {credits} credits go back to {price}.',\n descriptionNoPrice: 'This screen will not come back. Leave now and the {credits} credits go back to full price.',\n keep: 'Back to the offer',\n lose: 'Lose my offer',\n },\n },\n },\n} as const;\n\nexport default messages;\n"],"mappings":"AAKA,MAAM,WAAW;AAAA,EACf,SAAS;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,EACV;AAAA,EAEA,aAAa;AAAA,IACX,UAAU;AAAA,IACV,cAAc;AAAA,IACd,cAAc;AAAA,EAChB;AAAA,EAEA,aAAa;AAAA,IACX,OAAO;AAAA,IACP,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,uBAAuB;AAAA,IACvB,mBAAmB;AAAA,MACjB,KAAK;AAAA,MACL,KAAK;AAAA,IACP;AAAA,IACA,cAAc;AAAA,IACd,WAAW;AAAA,EACb;AAAA,EAEA,SAAS;AAAA,IACP,mB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AAkB;AAAA,MAClB,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,gBAAgB;AAAA,IAClB;AAAA,IACA,kBAAkB;AAAA,EACpB;AAAA;AAAA,EAGA,SAAS;AAAA,IACP,YAAY;AAAA,EACd;AAAA;AAAA,EAGA,aAAa;AAAA,IACX,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EAEA,WAAW;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA;AAAA,EAGA,OAAO;AAAA;AAAA,IAEL,gBAAgB;AAAA,MACd,SAAS;AAAA,MACT,OAAO;AAAA,MACP,SAAS;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACT;AAAA,MACA,eAAe;AAAA,MACf,KAAK;AAAA,MACL,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,aAAa;AAAA,MACb,OAAO;AAAA,MACP,cAAc;AAAA,MACd,YAAY;AAAA,MACZ,kBAAkB;AAAA,MAClB,cAAc;AAAA,QACZ,SAAS;AAAA,MACX;AAAA,MACA,MAAM;AAAA,QACJ,OAAO;AAAA,QACP,aAAa;AAAA,QACb,oBAAoB;AAAA,QACpB,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
@@ -515,9 +515,7 @@ const messages = {
515
515
  navbar: {
516
516
  expandMenu: "Expandir men\xFA",
517
517
  greatPages: "GreatPages",
518
- pages: "P\xE1ginas",
519
- greatDomain: "GreatDomain",
520
- domains: "Dominios"
518
+ pages: "P\xE1ginas"
521
519
  },
522
520
  profile: {
523
521
  usedCredits: "Cr\xE9ditos utilizados",