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AE,GAAGvD,EAAkB,CAAvB,EACrBwD,EAAWC,CAAAA,EAAAA,EAAAA,WAAAA,CAAWA,GAa5B,MACE,UAACC,IAAIA,CACF,GAAG1D,CAAK,CACTF,KAFG4D,KAEO,4BACVC,aAAW,yBAEVC,CAjBkB,SACDzC,EAKlBoB,EAAAA,EALF,IAAMsB,EAAwCC,QAA1B3C,EAAAA,OAAO4C,IAAI,CAACD,EAAAA,GAAcA,GAA1B3C,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA6B6C,IAAI,CAAC,QACpDR,eAAAA,EAAAA,KAAAA,EAAAA,QAAAA,EAAAA,EAAAA,WAAqB,KAArBA,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAyBS,QAAQ,CAACC,KAGpC,OACsE,QAApE3B,QAAAA,EAAeA,KAAAA,EAAmCsB,MAAnCtB,EAAfA,EAAAA,EAAiByB,IAAI,CAAC,EAAtBzB,CAAmC4B,EAAQ3B,EAAE,CAA9BD,EAAmCsB,EAAAA,GAAlDtB,EAAeA,GAAfA,IAAAA,EAAAA,KAAAA,EAAAA,EAAgE9C,IAAAA,GAAhE8C,KAAAA,MAAAA,EACAA,CAAe,CAAC,EAAE,CAAC9C,IAAI,CAE3B,KAWF,+DC3BO,SAASZ,IAAG,kDAAGuF,CAAAA,CAAH,eAAuB,CACxC,MAAOC,CAAAA,EAAAA,EAAAA,EAAAA,CAAOA,CAACC,CAAAA,EAAAA,EAAAA,CAAAA,CAAIA,CAACF,GACtB,8CCHO,IAAMG,EAAmB,yBAE/B,OADCC,IAMWV,CANyC,CAAc,EAClE,KAKmC1C,MAAM,CAAC,CAC1CI,IAAK,UACLC,KAAM,UACNC,IAAK,UACLE,KAAM,SACR,GAAE","sources":["webpack://_N_E/./src/components/atoms/button/index.tsx","webpack://_N_E/./src/stores/use-sign-in-dialog-store.ts","webpack://_N_E/./src/shared/routes.ts","webpack://_N_E/./src/components/atoms/treeunfe-logo/mock/product-logo-mock.tsx","webpack://_N_E/./src/components/atoms/treeunfe-logo/index.tsx","webpack://_N_E/./src/lib/utils.ts","webpack://_N_E/./src/shared/constants.ts"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst buttonVariants = cva(\n cn(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-full text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed',\n ),\n {\n variants: {\n variant: {\n default: 'bg-gray-950 text-white hover:bg-gray-950/90',\n destructive:\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline:\n 'border border-[#c6c6c6] bg-background hover:bg-accent hover:text-accent-foreground text-base text-gray-700',\n secondary:\n 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'text-black hover:text-black/80',\n 'not-selected':\n 'text-primary bg-secondary-treeunfe-nfe/60 hover:bg-primary-treeunfe-nfe hover:text-secondary-treeunfe-nfe',\n link: 'text-primary underline-offset-4 hover:underline',\n 'primary-treeunfe-nfe':\n 'bg-primary-treeunfe-nfe text-primary-treeunfe-nfe-foreground hover:bg-primary/90',\n 'secondary-treeunfe-nfe':\n 'bg-secondary-treeunfe-nfe text-secondary-treeunfe-nfe-foreground hover:bg-secondary-treeunfe-nfe/80',\n 'primary-treeunfe-cte':\n 'bg-primary-treeunfe-cte text-primary-treeunfe-cte-foreground hover:bg-primary-treeunfe-cte/90',\n 'primary-treeunfe-nfce':\n 'bg-orange-600 text-white hover:bg-orange-600/90',\n 'primary-treeunfe-mdfe':\n 'bg-primary-treeunfe-mdfe text-primary-treeunfe-mdfe-foreground hover:bg-primary-treeunfe-mdfe/90',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-full px-3',\n lg: 'h-11 rounded-full px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button'\n return (\n \n )\n },\n)\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants }\n","import { create } from 'zustand'\nimport { createJSONStorage, devtools, persist } from 'zustand/middleware'\n\ntype UseSignInDialogStoreType = {\n loginValues: {\n email?: string\n product_code?: string\n code?: string\n }\n isSignInDialogOpen: boolean\n}\n\nexport const useSignInDialogStore = create()(\n devtools(\n persist(\n (): UseSignInDialogStoreType => ({\n loginValues: {\n email: undefined,\n product_code: undefined,\n code: undefined,\n },\n isSignInDialogOpen: false,\n }),\n {\n name: '@treeunfe:sign-in-dialog-store',\n storage: createJSONStorage(() => localStorage),\n },\n ),\n ),\n)\n","export const routes = Object.freeze({\n HOME: '/',\n BLOG: '/blog',\n ABOUT_US: '/sobre',\n NFE: '/emissor/nfe',\n NFCE: '/emissor/nfce',\n CTE: '/emissor/cte',\n PDV: '/emissor/pdv',\n MDFE: '/emissor/mdfe',\n AUTH_CERTIFICATE: '/auth/signin/certificate',\n AUTH_SIGNIN_OTP_CODE: '/auth/signin/otp-code',\n AUTH_REGISTER_CNPJ: '/auth/register/cnpj',\n AUTH_REGISTER_NAME: '/auth/register/name',\n AUTH_REGISTER_MOBILEPHONE: '/auth/register/mobilephone',\n AUTH_PLATFORM: '/auth/platform',\n TRUTUS: '/confie',\n TRUTUS_PRIVACY: '/confie/privacidade',\n TRUTUS_TERMS: '/confie/termos-de-uso',\n WORK_WITH_US: '/trabalhe-conosco',\n})\n","export const productLogoMock = [\n {\n id: 'HUB',\n icon: (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ),\n },\n {\n id: 'NFE',\n icon: (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ),\n },\n {\n id: 'NFCE',\n icon: (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ),\n },\n {\n id: 'CTE',\n icon: (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ),\n },\n {\n id: 'TREEUNFENFE',\n icon: (\n \n \n \n \n \n \n \n ),\n },\n]\n","'use client'\n\nimport { PRODUCT_COLORS } from '@/shared/constants'\nimport Link, { LinkProps } from 'next/link'\nimport { usePathname } from 'next/navigation'\nimport { productLogoMock } from './mock/product-logo-mock'\n\nexport function TreeunfeLogo({ ...props }: LinkProps) {\n const pathName = usePathname()\n\n const getProductIcon = () => {\n const matchingKey = Object.keys(PRODUCT_COLORS)?.find((key) =>\n pathName?.toUpperCase()?.includes(key),\n )\n\n return (\n productLogoMock?.find((product) => product.id === matchingKey)?.icon ??\n productLogoMock[0].icon\n )\n }\n\n return (\n \n {getProductIcon()}\n \n )\n}\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\ntype QueryParams = {\n content_type: string\n fields?: Record\n limit?: number\n order?: string\n skip?: number\n include?: number\n}\n\nexport function buildQuery(params: QueryParams): string {\n const queryParts: string[] = []\n\n queryParts.push(`content_type=${encodeURIComponent(params.content_type)}`)\n\n if (params.fields) {\n Object.entries(params.fields).forEach(([key, value]) => {\n queryParts.push(\n `fields.${encodeURIComponent(key)}[match]=${encodeURIComponent(value)}`,\n )\n })\n }\n\n if (params.limit !== undefined) {\n queryParts.push(`limit=${params.limit}`)\n }\n\n if (params.order) {\n queryParts.push(`order=${encodeURIComponent(params.order)}`)\n }\n\n if (params.skip !== undefined) {\n queryParts.push(`skip=${params.skip}`)\n }\n\n params.include\n ? queryParts.push(`include=${params.include}`)\n : queryParts.push(`include=0`)\n\n return queryParts.join('&')\n}\n","export const HOME_DOMAIN = `https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`\n\nexport const ACCESS_TOKEN_KEY = `@treeunfe:access_token${\n process.env.NEXT_PUBLIC_ENVIRONMENT === 'production' ? '' : '_dev'\n}`\nexport const REFRESH_TOKEN_KEY = `@treeunfe:refresh_token${\n process.env.NEXT_PUBLIC_ENVIRONMENT === 'production' ? '' : '_dev'\n}`\n\nexport const PRODUCT_COLORS = Object.freeze({\n NFE: '#14AE5C',\n NFCE: '#EA580C',\n CTE: '#144AAE',\n MDFE: '#DA4B4B',\n})\n\nexport const metaDescription =\n 'Um emissor simples e ágil para emitir suas notas fiscais online de qualquer lugar. Você não precisa ir para um sistema de gestão complexo e cheio de coisas que você não vai usar. A Treeunfe é feita para você que quer emitir documentos fiscais de forma rápida e fácil.'\n\nexport const staticCategories = [\n 'Vendas',\n 'Institucional',\n 'Podcast',\n 'Notícias',\n 'Tributário',\n 'Tutoriais',\n 'Dicas',\n 'Informação',\n 'Fiscal',\n 'Empreendedorismo',\n 'MEI',\n]\n"],"names":["buttonVariants","cva","cn","variants","variant","default","destructive","outline","secondary","ghost","link","size","sm","lg","icon","defaultVariants","Button","React","ref","className","asChild","props","Comp","Slot","displayName","useSignInDialogStore","create","devtools","persist","loginValues","email","undefined","product_code","code","isSignInDialogOpen","name","storage","createJSONStorage","localStorage","routes","Object","freeze","HOME","BLOG","ABOUT_US","NFE","NFCE","CTE","PDV","MDFE","AUTH_CERTIFICATE","AUTH_SIGNIN_OTP_CODE","AUTH_REGISTER_CNPJ","AUTH_REGISTER_NAME","AUTH_REGISTER_MOBILEPHONE","AUTH_PLATFORM","TRUTUS","TRUTUS_PRIVACY","TRUTUS_TERMS","WORK_WITH_US","productLogoMock","id","svg","width","height","viewBox","fill","xmlns","path","d","fillRule","clipRule","circle","cx","cy","r","TreeunfeLogo","pathName","usePathname","Link","aria-label","getProductIcon","matchingKey","PRODUCT_COLORS","keys","find","includes","key","product","inputs","twMerge","clsx","ACCESS_TOKEN_KEY","process"],"sourceRoot":"","ignoreList":[]}