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