import{resetComponent as k}from"../../style/index.mjs";import I,{MAX_VERTICAL_CONTENT_RADIUS as T}from"../../style/placementArrow.mjs";import"../../theme/internal.mjs";import A from"../../theme/util/genComponentStyleHook.mjs";import{merge as B}from"../../theme/util/statistic.mjs";import{TinyColor as d}from"../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.mjs";const H=r=>{const{componentCls:o,lineHeight:n,padding:t,paddingXS:e,borderRadius:$,borderRadiusXS:p,colorPrimary:a,colorText:h,colorFill:x,indicatorHeight:s,indicatorWidth:S,boxShadowTertiary:g,tourZIndexPopup:C,fontSize:u,colorBgContainer:b,fontWeightStrong:w,marginXS:R,colorTextLightSolid:i,tourBorderRadius:l,colorWhite:m,colorBgTextHover:f,tourCloseSize:c,motionDurationSlow:y,antCls:v}=r;return[{[o]:{...k(r),color:h,position:"absolute",zIndex:C,display:"block",visibility:"visible",fontSize:u,lineHeight:n,width:520,"--antd-arrow-background-color":b,"&-pure":{maxWidth:"100%",position:"relative"},[`&${o}-hidden`]:{display:"none"},[`${o}-content`]:{position:"relative"},[`${o}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:l,boxShadow:g,position:"relative",backgroundColor:b,border:"none",backgroundClip:"padding-box",[`${o}-close`]:{position:"absolute",top:t,insetInlineEnd:t,color:r.colorIcon,outline:"none",width:c,height:c,borderRadius:r.borderRadiusSM,transition:`background-color ${r.motionDurationMid}, color ${r.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:r.colorIconHover,backgroundColor:r.wireframe?"transparent":r.colorFillContent}},[`${o}-cover`]:{textAlign:"center",padding:`${t+c+e}px ${t}px 0`,img:{width:"100%"}},[`${o}-header`]:{padding:`${t}px ${t}px ${e}px`,[`${o}-title`]:{lineHeight:n,fontSize:u,fontWeight:w}},[`${o}-description`]:{padding:`0 ${t}px`,lineHeight:n,wordWrap:"break-word"},[`${o}-footer`]:{padding:`${e}px ${t}px ${t}px`,textAlign:"end",borderRadius:`0 0 ${p}px ${p}px`,display:"flex",[`${o}-indicators`]:{display:"inline-block",[`${o}-indicator`]:{width:S,height:s,display:"inline-block",borderRadius:"50%",background:x,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:a}}},[`${o}-buttons`]:{marginInlineStart:"auto",[`${v}-btn`]:{marginInlineStart:R}}}},[`${o}-primary, &${o}-primary`]:{"--antd-arrow-background-color":a,[`${o}-inner`]:{color:i,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:$,boxShadow:g,[`${o}-close`]:{color:i},[`${o}-indicators`]:{[`${o}-indicator`]:{background:new d(i).setAlpha(.15).toRgbString(),"&-active":{background:i}}},[`${o}-prev-btn`]:{color:i,borderColor:new d(i).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new d(i).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${o}-next-btn`]:{color:a,borderColor:"transparent",background:m,"&:hover":{background:new d(f).onBackground(m).toRgbString()}}}}},[`${o}-mask`]:{[`${o}-placeholder-animated`]:{transition:`all ${y}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:Math.min(l,T)}}},I(r,{colorBg:"var(--antd-arrow-background-color)",contentRadius:l,limitVerticalRadius:!0})]},X=A("Tour",r=>{const{borderRadiusLG:o,fontSize:n,lineHeight:t}=r,e=B(r,{tourZIndexPopup:r.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:o,tourCloseSize:n*t});return[H(e)]});export{X as default};
