{"version":3,"file":"PrivacySettingsLink.O2jXtccx.mjs","names":["useState","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/nXxlQ8oVyXPX1RZR6bNh/SjIIRd6o2PtC7HcWsvh8/PrivacySettingsLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useCallback,useMemo,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PrivacySettingsLink(props){const{textColor,linkColor,underline,textFont,ariaLabel,presentation=\"paragraph\"}=props;const[isInteractiveHighlight,setIsInteractiveHighlight]=useState(false);const paragraphStyle=useMemo(()=>({position:\"relative\",margin:0,width:\"100%\",color:textColor,fontFamily:textFont?.fontFamily,fontSize:textFont?.fontSize,fontWeight:textFont?.fontWeight,lineHeight:textFont?.lineHeight,letterSpacing:textFont?.letterSpacing,textAlign:textFont?.textAlign,fontStyle:textFont?.fontStyle,whiteSpace:\"normal\",wordBreak:\"break-word\"}),[textColor,textFont]);const linkStyle=useMemo(()=>({color:linkColor,textDecoration:underline?\"underline\":\"none\",cursor:\"pointer\",background:\"none\"}),[linkColor,underline]);const footerContainerStyle=useMemo(()=>({position:\"relative\",margin:0,width:\"max-content\",minWidth:\"max-content\",whiteSpace:\"normal\",wordBreak:\"break-word\"}),[]);const footerLinkStyle=useMemo(()=>({...linkStyle,fontFamily:textFont?.fontFamily,fontSize:textFont?.fontSize,fontWeight:textFont?.fontWeight,lineHeight:textFont?.lineHeight,letterSpacing:textFont?.letterSpacing,textAlign:textFont?.textAlign,fontStyle:textFont?.fontStyle,opacity:isInteractiveHighlight?.72:1,transition:\"opacity 0.18s ease\"}),[isInteractiveHighlight,linkStyle,textFont]);const handleClick=useCallback(event=>{event.preventDefault();if(typeof window!==\"undefined\"){try{const uc=window?.UC_UI;if(uc&&typeof uc.showSecondLayer===\"function\"){uc.showSecondLayer();}}catch{// Silently fail when unavailable or blocked.\n}}},[]);const handleHighlightOn=useCallback(()=>{startTransition(()=>setIsInteractiveHighlight(true));},[]);const handleMouseLeave=useCallback(()=>{startTransition(()=>setIsInteractiveHighlight(false));},[]);const handleBlur=useCallback(event=>{if(event.currentTarget.matches(\":hover\"))return;startTransition(()=>setIsInteractiveHighlight(false));},[]);if(presentation===\"footer\"){return /*#__PURE__*/_jsx(\"p\",{style:footerContainerStyle,children:/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:handleClick,onMouseEnter:handleHighlightOn,onMouseLeave:handleMouseLeave,onFocus:handleHighlightOn,onBlur:handleBlur,\"aria-label\":ariaLabel,style:footerLinkStyle,children:\"Privacy Settings\"})});}return /*#__PURE__*/_jsxs(\"p\",{style:paragraphStyle,children:[/*#__PURE__*/_jsx(\"span\",{children:\"You can manage your cookie preferences through our \"}),/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:handleClick,\"aria-label\":ariaLabel,style:linkStyle,children:\"Privacy Settings\"}),/*#__PURE__*/_jsx(\"span\",{children:\".\"})]});}addPropertyControls(PrivacySettingsLink,{textFont:{type:ControlType.Font,title:\"Text Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.35em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},linkColor:{type:ControlType.Color,title:\"Link Color\",defaultValue:\"#000000\"},underline:{type:ControlType.Boolean,title:\"Underline\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},presentation:{type:ControlType.Enum,title:\"Presentation\",options:[\"paragraph\",\"footer\"],optionTitles:[\"Paragraph\",\"Footer Link\"],defaultValue:\"paragraph\"},ariaLabel:{type:ControlType.String,title:\"Aria Label\",defaultValue:\"Open Privacy Settings\",placeholder:\"Open Privacy Settings\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrivacySettingsLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrivacySettingsLink.map"],"mappings":"+MAGG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,YAAU,YAAU,YAAU,WAAS,YAAU,eAAa,aAAa,EAAW,CAAC,EAAuB,GAA2BA,EAAS,EAAK,EAAQ,EAAeC,OAAa,CAAC,SAAS,WAAW,OAAO,EAAE,MAAM,OAAO,MAAM,EAAU,WAAW,GAAU,WAAW,SAAS,GAAU,SAAS,WAAW,GAAU,WAAW,WAAW,GAAU,WAAW,cAAc,GAAU,cAAc,UAAU,GAAU,UAAU,UAAU,GAAU,UAAU,WAAW,SAAS,UAAU,YAAY,GAAG,CAAC,EAAU,CAAQ,CAAC,EAAQ,EAAUA,OAAa,CAAC,MAAM,EAAU,eAAe,EAAU,YAAY,OAAO,OAAO,UAAU,WAAW,MAAM,GAAG,CAAC,EAAU,CAAS,CAAC,EAAQ,EAAqBA,OAAa,CAAC,SAAS,WAAW,OAAO,EAAE,MAAM,cAAc,SAAS,cAAc,WAAW,SAAS,UAAU,YAAY,GAAG,CAAC,CAAC,EAAQ,EAAgBA,OAAa,CAAC,GAAG,EAAU,WAAW,GAAU,WAAW,SAAS,GAAU,SAAS,WAAW,GAAU,WAAW,WAAW,GAAU,WAAW,cAAc,GAAU,cAAc,UAAU,GAAU,UAAU,UAAU,GAAU,UAAU,QAAQ,EAAuB,IAAI,EAAE,WAAW,oBAAoB,GAAG,CAAC,EAAuB,EAAU,CAAQ,CAAC,EAAQ,EAAYC,EAAY,GAAO,CAAwB,GAAvB,EAAM,eAAe,EAAY,IAAS,OAAa,GAAG,CAAC,IAAM,EAAG,GAAQ,MAAS,GAAI,OAAO,EAAG,iBAAkB,YAAY,EAAG,gBAAgB,CAAG,MAAM,CACj9C,CAAE,EAAE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