import{withInstall as e}from"../_util/type.mjs";import t from"../_util/classNames.mjs";import n from"../config-provider/hooks/useConfigInject.mjs";import r from"../_util/placements.mjs";import i from"../vc-tour/index.mjs";import{tourProps as a}from"./interface.mjs";import o from"./panelRender.mjs";import s from"./style/index.mjs";import c from"./useMergedType.mjs";import{computed as l,createVNode as u,defineComponent as d,toRefs as f}from"vue";var p=e(d({name:`ATour`,inheritAttrs:!1,props:a(),setup(e,{attrs:a,emit:d,slots:p}){let{current:m,type:h,steps:g,defaultCurrent:_}=f(e),{prefixCls:v,direction:y}=n(`tour`,e),[b,x]=s(v),{currentMergedType:S,updateInnerCurrent:C}=c({defaultType:h,steps:g,current:m,defaultCurrent:_});return()=>{let{steps:n,current:s,type:c,rootClassName:f,...m}=e,h=t({[`${v.value}-primary`]:S.value===`primary`,[`${v.value}-rtl`]:y.value===`rtl`},x.value,f),g=(e,t)=>u(o,{...e,type:c,current:t},{indicatorsRender:p.indicatorsRender}),_=e=>{C(e),d(`update:current`,e),d(`change`,e)},w=l(()=>r({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return b(u(i,{...a,...m,rootClassName:h,prefixCls:v.value,current:s,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:g,onChange:_,steps:n,builtinPlacements:w.value},null))}}}));export{p as default};