{"version":3,"file":"Link.Bdm_ZMFe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/T4TGSUWkViMcb29lfNdZ/zFOg8XzKnu3sEY6j5MI5/Link.js"],"sourcesContent":["/**\n * @framerIntrinsicWidth 280\n * @framerIntrinsicHeight auto\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{FRAMER_BREAKPOINT_DESCRIPTION,FRAMER_THEME_DESCRIPTION_SURFACE}from\"https://framerusercontent.com/modules/vkQqDtKpdgUyOodxbyn3/QbeDbzhxh6tG2UebUJz9/propertyControlCopy.js\";import{getSpacing,getTypographyStyles,getControlSizeValue,getFocusOutlineWidth,getRadius,getTransition,getBrightnessFilter}from\"https://framerusercontent.com/modules/zb8SeFEAitsE3Aq1tolb/agftrhA6LwdkI7PWvLJd/colors.js\";import{getBrandFocusColor,getThemeColors}from\"https://framerusercontent.com/modules/7NSJeaeou9P0OpUE6qK4/Wf16gbv7zRUUjFB2E7J7/themeHelpers.js\";import{useInteractiveStates}from\"https://framerusercontent.com/modules/ybGk5zeqg5sx0cATodEy/pRJqwe7pBcZbd8V4op9q/useInteractiveStates.js\";import{coalesceLinkValue,getLinkUrl,getNewTabAriaLabel,useSmartLinkProps}from\"https://framerusercontent.com/modules/WKDkAgpP16RxQTEJS39T/LQKkwqzZiPyZPqAIUs4o/linkHelpers.js\";import{PRESERVE_CONTROL_NEWLINES}from\"https://framerusercontent.com/modules/D7kD09cJxhmMa4nvElc6/psb1oiRQB14isAy5HEyx/controlTextStyles.js\";import{breakpointPropertyControl}from\"https://framerusercontent.com/modules/fqabD3J3lU6VFoyJTkl9/XuSutgRb2fscK8LXIPHb/breakpointControl.js\";import{brandPropertyControl,themePropertyControls}from\"https://framerusercontent.com/modules/WlMkRQB3V7rn8cIYN98V/vB1ucmyiUTccgkdUzzQJ/brandControl.js\";import{resolveThemeProp}from\"https://framerusercontent.com/modules/5WgsjBO1A8BiShdO0B9C/r0GYDtytq52p0xC4TfQT/themeControl.js\";import{usePageLanguage}from\"https://framerusercontent.com/modules/Il9S7L5tK4Q8KD6plHxA/42IdG47alz16e9vriIIY/usePageLanguage.js\";const LINK_TYPOGRAPHY={small:\"/Body SM/Heavy\",medium:\"/Body MD/Heavy\",large:\"/Body LG/Heavy\"};const LINK_PADDING_Y={small:{desktop:4,tablet:4,phone:2},medium:{desktop:8,tablet:8,phone:6},large:{desktop:12,tablet:10,phone:8}};function paddingYForSize(breakpoint,size){const cfg=LINK_PADDING_Y[size];const key=breakpoint===\"desktop\"?cfg.desktop:breakpoint===\"tablet\"?cfg.tablet:cfg.phone;return getSpacing(key);}function resolveLinkAriaLabel(resolvedTitle,opensNewTab,language){const titleTrim=String(resolvedTitle??\"\").trim();if(!titleTrim)return undefined;if(opensNewTab){return getNewTabAriaLabel(titleTrim,language);}return undefined;}const SIZE_LABELS={small:\"Small\",medium:\"Medium\",large:\"Large\"};export function createLinkPropertyControls(opts){const{sizeOptions,defaultSize,idDefault,linkPropName=\"url\"}=opts;const sizeHelp=sizeOptions.length===1?\"Text scale for this link.\":\"Small / Medium / Large — same link style, different type size.\";return{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Link\",placeholder:\"Link text…\",description:\"Type the visible link text—bind to CMS or variables for navigation labels.\"},[linkPropName]:{type:ControlType.Link,title:\"Link\",defaultValue:\"\",description:\"Set where the link goes—paste a URL or bind a Framer Link / CMS field.\"},size:{type:ControlType.Enum,title:\"Size\",options:[...sizeOptions],optionTitles:sizeOptions.map(s=>SIZE_LABELS[s]),displaySegmentedControl:sizeOptions.length>=2&&sizeOptions.length<=3,defaultValue:defaultSize,description:sizeHelp},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Turn on when you want this URL to open in a new browser tab (external URLs may still open in a new tab by default).\",hidden:props=>!getLinkUrl(props[linkPropName])},disabled:{type:ControlType.Boolean,title:\"Disabled\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Turn on for muted styling and to block navigation.\"},ariaLabel:{type:ControlType.String,title:\"ARIA Label\",defaultValue:\"\",placeholder:\"e.g. Link\",description:\"Accessible name. Match the Title unless the spoken name should differ (e.g. new-tab wording is applied automatically).\"},id:{type:ControlType.String,title:\"ID\",defaultValue:idDefault,placeholder:\"e.g. link-footer\",description:\"Set a unique id for anchors or analytics; change it when several links on one page would collide.\",preventLocalization:true},...breakpointPropertyControl(FRAMER_BREAKPOINT_DESCRIPTION),...themePropertyControls(FRAMER_THEME_DESCRIPTION_SURFACE),...brandPropertyControl()};}const LinkInternal=/*#__PURE__*/forwardRef(function LinkInternal(props,ref){const theme=resolveThemeProp(props);const{breakpoint=\"desktop\",theme:_themeProp,themeTricount:_themeTricountProp,size=\"medium\",brand,title,link,url:urlProp,disabled=false,openInNewTab=false,externalLinksInNewTab=true,onClick,ariaLabel=\"\",id,style,suppressHydrationWarning,...rest}=props;const isStaticRenderer=useIsStaticRenderer();const resolvedTitle=title??\"Link\";const colors=getThemeColors(theme,brand);const{isHovered,isFocused,isPressed,transition,handlers}=useInteractiveStates(disabled,{transitions:true});const url=coalesceLinkValue(urlProp,link);const smartLink=useSmartLinkProps(url,openInNewTab,{brand,externalLinksInNewTab,onClick:e=>{if(disabled){e.preventDefault();return;}onClick?.(e);}});const opensNewTab=smartLink.target===\"_blank\";const trimmedAria=ariaLabel.trim();const trimmedTitleResolved=resolvedTitle.trim();const pageLanguage=usePageLanguage();const autoAria=resolveLinkAriaLabel(resolvedTitle,opensNewTab,pageLanguage);const authorAriaOverride=trimmedAria!==trimmedTitleResolved?trimmedAria:\"\";const ariaLabelResolved=authorAriaOverride?resolveLinkAriaLabel(authorAriaOverride,opensNewTab,pageLanguage)??authorAriaOverride:autoAria;const typoPath=LINK_TYPOGRAPHY[size];const py=paddingYForSize(breakpoint,size);const underlineOffset=getSpacing(breakpoint===\"phone\"?2:4);const resolvedHref=disabled||smartLink.href===\"\"?undefined:smartLink.href;const resolvedTarget=resolvedHref?smartLink.target:undefined;const resolvedRel=resolvedHref?smartLink.rel:undefined;const fillsWidth=style?.width===\"100%\";const linkStyle={...getTypographyStyles(typoPath,breakpoint,{brand}),display:\"inline-flex\",alignItems:\"center\",width:fillsWidth?\"100%\":undefined,minHeight:getControlSizeValue(\"touchTarget\"),color:colors.textPrimary,textDecoration:isHovered&&!disabled?\"underline\":\"none\",textUnderlineOffset:underlineOffset,cursor:disabled?\"not-allowed\":resolvedHref?\"pointer\":\"default\",outline:isFocused?`${getFocusOutlineWidth()} solid ${getBrandFocusColor(brand)}`:\"none\",outlineOffset:getSpacing(4),borderRadius:getRadius(\"radius-sm\"),paddingTop:py,paddingBottom:py,transition:transition?`${transition}, ${getTransition(\"text-decoration-color\",\"quick\")}`:getTransition(\"text-decoration-color\",\"quick\"),filter:getBrightnessFilter(disabled,isHovered,isPressed),...PRESERVE_CONTROL_NEWLINES,...style};const anchorProps={id,\"href\":resolvedHref,\"target\":resolvedTarget,\"rel\":resolvedRel,\"style\":{...smartLink.style,...linkStyle},\"tabIndex\":disabled?-1:0,\"aria-disabled\":disabled,\"aria-label\":ariaLabelResolved,\"onClick\":smartLink.onClick,\"onMouseEnter\":handlers.onMouseEnter,\"onMouseLeave\":handlers.onMouseLeave,\"onMouseDown\":handlers.onMouseDown,\"onMouseUp\":handlers.onMouseUp,\"onFocus\":handlers.onFocus,\"onBlur\":handlers.onBlur,suppressHydrationWarning,...rest};if(isStaticRenderer){return /*#__PURE__*/_jsx(\"a\",{ref:ref,...anchorProps,children:resolvedTitle});}return /*#__PURE__*/_jsx(motion.a,{ref:ref,...anchorProps,whileTap:undefined,children:resolvedTitle});});export default function Link(props){const{ref,...rest}=props;return /*#__PURE__*/_jsx(LinkInternal,{...rest,ref:ref});}Link.displayName=\"Link - Atom\";addPropertyControls(Link,createLinkPropertyControls({sizeOptions:[\"small\",\"medium\",\"large\"],defaultSize:\"medium\",idDefault:\"link\"}));\nexport const __FramerMetadata__ = {\"exports\":{\"LinkSize\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Link\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Breakpoint\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createLinkPropertyControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkPropertyControlsOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4gBAK05D,SAAS,EAAgB,EAAW,EAAK,CAAC,IAAM,EAAI,EAAe,GAA8F,OAAO,EAArF,IAAa,UAAU,EAAI,QAAQ,IAAa,SAAS,EAAI,OAAO,EAAI,KAA2B,CAAE,CAAC,SAAS,EAAqB,EAAc,EAAY,EAAS,CAAC,IAAM,EAAU,OAAO,GAAe,EAAE,CAAC,CAAC,KAAK,EAAM,MAA8B,EAAa,OAAO,EAAmB,EAAU,CAAQ,CAAoB,CAAiE,SAAgB,EAA2B,EAAK,CAAC,GAAK,CAAC,cAAY,cAAY,YAAU,eAAa,OAAO,EAAW,EAAS,EAAY,SAAS,EAAE,4BAA4B,iEAAiE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,OAAO,YAAY,aAAa,YAAY,4EAA4E,GAAG,GAAc,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,aAAa,GAAG,YAAY,wEAAwE,EAAE,KAAK,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,CAAC,GAAG,CAAW,EAAE,aAAa,EAAY,IAAI,GAAG,EAAY,EAAE,EAAE,wBAA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