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