{"version":3,"file":"index-CH_Y814R.js","sources":["../../Client/node_modules/@react-aria/link/dist/useLink.mjs","../../Client/node_modules/react-aria-components/dist/Link.mjs","../../Client/webkit/components/link/index.tsx"],"sourcesContent":["import {filterDOMProps as $5Ot33$filterDOMProps, mergeProps as $5Ot33$mergeProps, useRouter as $5Ot33$useRouter, useLinkProps as $5Ot33$useLinkProps, shouldClientNavigate as $5Ot33$shouldClientNavigate} from \"@react-aria/utils\";\nimport {useFocusable as $5Ot33$useFocusable} from \"@react-aria/focus\";\nimport {usePress as $5Ot33$usePress} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nfunction $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {\n    let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, // @ts-ignore\n    onClick: deprecatedOnClick, isDisabled: isDisabled, ...otherProps } = props;\n    let linkProps = {};\n    if (elementType !== 'a') linkProps = {\n        role: 'link',\n        tabIndex: !isDisabled ? 0 : undefined\n    };\n    let { focusableProps: focusableProps } = (0, $5Ot33$useFocusable)(props, ref);\n    let { pressProps: pressProps, isPressed: isPressed } = (0, $5Ot33$usePress)({\n        onPress: onPress,\n        onPressStart: onPressStart,\n        onPressEnd: onPressEnd,\n        isDisabled: isDisabled,\n        ref: ref\n    });\n    let domProps = (0, $5Ot33$filterDOMProps)(otherProps, {\n        labelable: true\n    });\n    let interactionHandlers = (0, $5Ot33$mergeProps)(focusableProps, pressProps);\n    let router = (0, $5Ot33$useRouter)();\n    let routerLinkProps = (0, $5Ot33$useLinkProps)(props);\n    return {\n        isPressed: isPressed,\n        linkProps: (0, $5Ot33$mergeProps)(domProps, routerLinkProps, {\n            ...interactionHandlers,\n            ...linkProps,\n            'aria-disabled': isDisabled || undefined,\n            'aria-current': props['aria-current'],\n            onClick: (e)=>{\n                var _pressProps_onClick;\n                (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);\n                if (deprecatedOnClick) {\n                    deprecatedOnClick(e);\n                    console.warn('onClick is deprecated, please use onPress');\n                }\n                // If a custom router is provided, prevent default and forward if this link should client navigate.\n                if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.\n                !e.isDefaultPrevented() && (0, $5Ot33$shouldClientNavigate)(e.currentTarget, e) && props.href) {\n                    e.preventDefault();\n                    router.open(e.currentTarget, e, props.href, props.routerOptions);\n                }\n            }\n        })\n    };\n}\n\n\nexport {$298d61e98472621b$export$dcf14c9974fe2767 as useLink};\n//# sourceMappingURL=useLink.module.js.map\n","import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useLink as $115DY$useLink, useHover as $115DY$useHover, useFocusRing as $115DY$useFocusRing, mergeProps as $115DY$mergeProps} from \"react-aria\";\nimport $115DY$react, {createContext as $115DY$createContext, forwardRef as $115DY$forwardRef} from \"react\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\nconst $4f118338184dc1d9$export$e2509388b49734e7 = /*#__PURE__*/ (0, $115DY$createContext)(null);\nfunction $4f118338184dc1d9$var$Link(props, ref) {\n    [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $4f118338184dc1d9$export$e2509388b49734e7);\n    let ElementType = props.href ? 'a' : 'span';\n    let { linkProps: linkProps, isPressed: isPressed } = (0, $115DY$useLink)({\n        ...props,\n        elementType: ElementType\n    }, ref);\n    let { hoverProps: hoverProps, isHovered: isHovered } = (0, $115DY$useHover)(props);\n    let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $115DY$useFocusRing)();\n    let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n        ...props,\n        defaultClassName: 'react-aria-Link',\n        values: {\n            isCurrent: !!props['aria-current'],\n            isDisabled: props.isDisabled || false,\n            isPressed: isPressed,\n            isHovered: isHovered,\n            isFocused: isFocused,\n            isFocusVisible: isFocusVisible\n        }\n    });\n    return /*#__PURE__*/ (0, $115DY$react).createElement(ElementType, {\n        ref: ref,\n        slot: props.slot || undefined,\n        ...(0, $115DY$mergeProps)(renderProps, linkProps, hoverProps, focusProps),\n        \"data-focused\": isFocused || undefined,\n        \"data-hovered\": isHovered || undefined,\n        \"data-pressed\": isPressed || undefined,\n        \"data-focus-visible\": isFocusVisible || undefined,\n        \"data-current\": !!props['aria-current'] || undefined,\n        \"data-disabled\": props.isDisabled || undefined\n    }, renderProps.children);\n}\n/**\n * A link allows a user to navigate to another page or resource within a web page\n * or application.\n */ const $4f118338184dc1d9$export$a6c7ac8248d6e38a = /*#__PURE__*/ (0, $115DY$forwardRef)($4f118338184dc1d9$var$Link);\n\n\nexport {$4f118338184dc1d9$export$e2509388b49734e7 as LinkContext, $4f118338184dc1d9$export$a6c7ac8248d6e38a as Link};\n//# sourceMappingURL=Link.module.js.map\n","import { PropsWithChildren } from 'react';\r\nimport { Link as AriaLink } from 'react-aria-components';\r\nimport clsx from 'clsx';\r\nimport { tv } from 'tailwind-variants';\r\n\r\ntype Props = PropsWithChildren<{\r\n    href?: string;\r\n    newTab?: boolean;\r\n    download?: boolean;\r\n    size?: 'xs' | 'sm' | 'md' | 'lg';\r\n}>;\r\n\r\nconst style = tv({\r\n    base: clsx(\r\n        'font-sans no-underline cursor-pointer outline-none whitespace-nowrap max-w-fit',\r\n        'pb-[1px] border-0 border-b border-solid',\r\n        'text-brand-green-300 hover:text-brand-green-200',\r\n        'border-transparent hover:border-brand-green-300',\r\n        'transition duration-300',\r\n    ),\r\n    variants: {\r\n        size: {\r\n            xs: 'text-[12px]',\r\n            sm: 'text-sm',\r\n            md: 'text-base',\r\n            lg: 'text-lg',\r\n        },\r\n    },\r\n});\r\n\r\nexport function Link(props: PropsWithChildren<Props>) {\r\n    const { children, href, newTab, download, size = 'md' } = props;\r\n\r\n    return (\r\n        <AriaLink\r\n            href={href}\r\n            className={style({ size })}\r\n            target={newTab ? '_blank' : ''}\r\n            rel={newTab ? 'nofollow noreferrer' : ''}\r\n            download={download}\r\n        >\r\n            {children}\r\n        </AriaLink>\r\n    );\r\n}\r\n"],"names":["$298d61e98472621b$export$dcf14c9974fe2767","props","ref","elementType","onPress","onPressStart","onPressEnd","deprecatedOnClick","isDisabled","otherProps","linkProps","focusableProps","$5Ot33$useFocusable","pressProps","isPressed","$5Ot33$usePress","domProps","$5Ot33$filterDOMProps","interactionHandlers","$5Ot33$mergeProps","router","$5Ot33$useRouter","routerLinkProps","$5Ot33$useLinkProps","e","_pressProps_onClick","$5Ot33$shouldClientNavigate","$4f118338184dc1d9$export$e2509388b49734e7","$115DY$createContext","$4f118338184dc1d9$var$Link","$64fa3d84918910a7$export$29f1550f4b0d4415","ElementType","$115DY$useLink","hoverProps","isHovered","$115DY$useHover","focusProps","isFocused","isFocusVisible","$115DY$useFocusRing","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","$115DY$react","$115DY$mergeProps","$4f118338184dc1d9$export$a6c7ac8248d6e38a","$115DY$forwardRef","style","tv","clsx","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