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