"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("../../style/index.js"),h=require("../../style/placementArrow.js");require("../../theme/internal.js");const I=require("../../theme/util/genComponentStyleHook.js"),A=require("../../theme/util/statistic.js"),d=require("../../node_modules/.pnpm/@ctrl_tinycolor@3.6.1/node_modules/@ctrl/tinycolor/dist/module/index.js"),B=r=>{const{componentCls:o,lineHeight:n,padding:t,paddingXS:i,borderRadius:x,borderRadiusXS:s,colorPrimary:a,colorText:m,colorFill:S,indicatorHeight:u,indicatorWidth:C,boxShadowTertiary:g,tourZIndexPopup:y,fontSize:p,colorBgContainer:b,fontWeightStrong:w,marginXS:R,colorTextLightSolid:e,tourBorderRadius:l,colorWhite:$,colorBgTextHover:v,tourCloseSize:c,motionDurationSlow:T,antCls:f}=r;return[{[o]:{...k.resetComponent(r),color:m,position:"absolute",zIndex:y,display:"block",visibility:"visible",fontSize:p,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+i}px ${t}px 0`,img:{width:"100%"}},[`${o}-header`]:{padding:`${t}px ${t}px ${i}px`,[`${o}-title`]:{lineHeight:n,fontSize:p,fontWeight:w}},[`${o}-description`]:{padding:`0 ${t}px`,lineHeight:n,wordWrap:"break-word"},[`${o}-footer`]:{padding:`${i}px ${t}px ${t}px`,textAlign:"end",borderRadius:`0 0 ${s}px ${s}px`,display:"flex",[`${o}-indicators`]:{display:"inline-block",[`${o}-indicator`]:{width:C,height:u,display:"inline-block",borderRadius:"50%",background:S,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${o}-buttons`]:{marginInlineStart:"auto",[`${f}-btn`]:{marginInlineStart:R}}}},[`${o}-primary, &${o}-primary`]:{"--antd-arrow-background-color":a,[`${o}-inner`]:{color:e,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:x,boxShadow:g,[`${o}-close`]:{color:e},[`${o}-indicators`]:{[`${o}-indicator`]:{background:new d.TinyColor(e).setAlpha(.15).toRgbString(),"&-active":{background:e}}},[`${o}-prev-btn`]:{color:e,borderColor:new d.TinyColor(e).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new d.TinyColor(e).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${o}-next-btn`]:{color:a,borderColor:"transparent",background:$,"&:hover":{background:new d.TinyColor(v).onBackground($).toRgbString()}}}}},[`${o}-mask`]:{[`${o}-placeholder-animated`]:{transition:`all ${T}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:Math.min(l,h.MAX_VERTICAL_CONTENT_RADIUS)}}},h.default(r,{colorBg:"var(--antd-arrow-background-color)",contentRadius:l,limitVerticalRadius:!0})]},H=I.default("Tour",r=>{const{borderRadiusLG:o,fontSize:n,lineHeight:t}=r,i=A.merge(r,{tourZIndexPopup:r.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:o,tourCloseSize:n*t});return[B(i)]});exports.default=H;
