const e=require("../../style/presetColor.js"),t=require("../../style/index.js"),n=require("../../theme/util/genComponentStyleHook.js"),r=require("../../theme/util/statistic.js"),i=require("../../style/motion/zoom.js"),a=require("../../style/placementArrow.js");var o=n=>{let{componentCls:i,tooltipMaxWidth:o,tooltipColor:s,tooltipBg:c,tooltipBorderRadius:l,zIndexPopup:u,controlHeight:d,boxShadowSecondary:f,paddingSM:p,paddingXS:m,tooltipRadiusOuter:h}=n;return[{[i]:{...t.resetComponent(n),position:`absolute`,zIndex:u,display:`block`,"&":[{width:`max-content`},{width:`intrinsic`}],maxWidth:o,visibility:`visible`,"&-hidden":{display:`none`},"--antd-arrow-background-color":c,[`${i}-inner`]:{minWidth:d,minHeight:d,padding:`${p/2}px ${m}px`,color:s,textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:c,borderRadius:l,boxShadow:f},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${i}-inner`]:{borderRadius:Math.min(l,8)}},[`${i}-content`]:{position:`relative`},...e.genPresetColor(n,(e,{darkColor:t})=>({[`&${i}-${e}`]:{[`${i}-inner`]:{backgroundColor:t},[`${i}-arrow`]:{"--antd-arrow-background-color":t}}})),"&-rtl":{direction:`rtl`}}},a.default(r.merge(n,{borderRadiusOuter:h}),{colorBg:`var(--antd-arrow-background-color)`,showArrowCls:``,contentRadius:l,limitVerticalRadius:!0}),{[`${i}-pure`]:{position:`relative`,maxWidth:`none`}}]},s=(e,t)=>n.default(`Tooltip`,e=>{if(t?.value===!1)return[];let{borderRadius:n,colorTextLightSolid:a,colorBgDefault:s,borderRadiusOuter:c}=e;return[o(r.merge(e,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:n,tooltipBg:s,tooltipRadiusOuter:c>4?4:c})),i.initZoomMotion(e,`zoom-big-fast`)]},({zIndexPopupBase:e,colorBgSpotlight:t})=>({zIndexPopup:e+70,colorBgDefault:t}))(e);exports.default=s;