{"version":3,"file":"Text_Hover_pointer_icon.BDD0vwhe.mjs","names":["React.useState","React.useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/RILyyZM7pn52VdrM0Pli/ZwL9R1ECotAiJQxODaQl/Text_Hover_pointer_icon.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export function TooltipText(props){const{text,tooltipText,placement}=props;const[isHovered,setIsHovered]=React.useState(false);const[coords,setCoords]=React.useState({x:0,y:0});const ref=React.useRef(null);React.useEffect(()=>{if(!isHovered||!ref.current)return;const rect=ref.current.getBoundingClientRect();const x=rect.left+rect.width/2;const y=placement===\"top\"?rect.top-8:rect.bottom+8;setCoords({x,y});},[isHovered,placement]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{ref:ref,onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),style:{fontFamily:'\"Inter\", sans-serif',fontSize:14,color:\"#1E4148\",fontWeight:400,cursor:'url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNyIgZmlsbD0iI2YyZjJmMiIgc3Ryb2tlPSIjMUU0MTQ4IiBzdHJva2Utd2lkdGg9IjEuNSIvPjx0ZXh0IHg9IjgiIHk9IjExLjUiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtc2l6ZT0iOSIgc3R5bGU9ImZvbnQtZmFtaWx5Ok1vbm9zcGFjZTtmaWxsOiMxRTQxNDg7Ij5pPC90ZXh0Pjwvc3ZnPg==\") 8 8, auto',backgroundColor:isHovered?\"rgba(30, 65, 72, 0.06)\":\"transparent\",padding:\"2px 4px\",borderRadius:\"4px\",transition:\"background-color 0.2s ease\"},children:text}),typeof window!==\"undefined\"&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(AnimatePresence,{children:isHovered&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:placement===\"top\"?-4:4},animate:{opacity:1,y:0},exit:{opacity:0,y:placement===\"top\"?-4:4},transition:{duration:.2},style:{position:\"fixed\",top:coords.y,left:coords.x,transform:\"translateX(-50%)\",backgroundColor:\"#fff\",color:\"#1E4148\",padding:\"8px 12px\",borderRadius:\"6px\",fontSize:\"12px\",fontFamily:'\"Inter\", sans-serif',border:\"1px solid #eee\",boxShadow:\"0 2px 8px rgba(0, 0, 0, 0.05)\",zIndex:9999,pointerEvents:\"none\",whiteSpace:\"normal\",maxWidth:240,lineHeight:1.5},children:tooltipText})}),document.body)]});}addPropertyControls(TooltipText,{text:{type:ControlType.String,title:\"Label Text\",defaultValue:\"Private Market Capacity\"},tooltipText:{type:ControlType.String,title:\"Tooltip Text\",defaultValue:\"Maximum number of media entries that can be added to your private market for order processing or publisher sharing.\"},placement:{type:ControlType.Enum,title:\"Placement\",options:[\"top\",\"bottom\"],optionTitles:[\"Top\",\"Bottom\"],defaultValue:\"top\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"TooltipText\":{\"type\":\"reactComponent\",\"name\":\"TooltipText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_Hover_pointer_icon.map"],"mappings":"qRAAqP,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,cAAY,aAAW,EAAW,CAAC,EAAU,GAAcA,EAAe,GAAM,CAAM,CAAC,EAAO,GAAWA,EAAe,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAAIC,EAAa,KAAK,CAAoO,OAAnO,MAAoB,CAAC,GAAG,CAAC,GAAW,CAAC,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