{"version":3,"file":"index-CKThjfWh.js","sources":["../../../../../../../../app/frontend/shared/ui/Link/index.tsx"],"sourcesContent":["import { Link as NonLocalizedLink } from '@inertiajs/react'\nimport React, { ReactNode } from 'react'\n\nimport useLocalizedLink from './useLink'\n\nconst Link = ({\n href,\n partialMatch = false,\n children,\n className,\n onClick,\n activeClassName = '',\n onMouseLeave,\n onMouseEnter,\n}: {\n partialMatch?: boolean\n href: string\n children: ReactNode\n className?: string\n onClick?: (e?: React.MouseEvent) => void\n onMouseLeave?: (e?: React.MouseEvent) => void\n onMouseEnter?: (e?: React.MouseEvent) => void\n activeClassName?: string\n}) => {\n const { localizedLink, isActive } = useLocalizedLink({ url: href, partialMatch })\n\n return (\n \n {children}\n \n )\n}\n\nexport default Link\n"],"names":["Link","href","partialMatch","children","className","onClick","activeClassName","onMouseLeave","onMouseEnter","localizedLink","isActive","useLocalizedLink","jsx","NonLocalizedLink"],"mappings":"wGAKA,MAAMA,EAAO,CAAC,CACZ,KAAAC,EACA,aAAAC,EAAe,GACf,SAAAC,EACA,UAAAC,EACA,QAAAC,EACA,gBAAAC,EAAkB,GAClB,aAAAC,EACA,aAAAC,CACF,IASM,CACE,KAAA,CAAE,cAAAC,EAAe,SAAAC,GAAaC,EAAiB,CAAE,IAAKV,EAAM,aAAAC,CAAA,CAAc,EAG9E,OAAAU,EAAA,IAACC,EAAA,CACC,UAAW,GAAGT,CAAS,IAAIM,EAAW,GAAGJ,CAAe,GAAK,EAAE,GAC/D,QAAAD,EACA,eAAc,GACd,aAAAG,EACA,aAAAD,EACA,KAAME,EAEL,SAAAN,CAAA,CAAA,CAGP"}