import{defineComponent as v,createVNode as s,createTextVNode as t}from"vue";import m from"../../_util/classNames.mjs";import{tourStepProps as b}from"../interface.mjs";const k=v({name:"DefaultPanel",inheritAttrs:!1,props:b(),setup(a,{attrs:o}){return()=>{const{prefixCls:e,current:n,total:l,title:i,description:r,onClose:c,onPrev:p,onNext:u,onFinish:d}=a;return s("div",{...o,class:m(`${e}-content`,o.class)},[s("div",{class:`${e}-inner`},[s("button",{type:"button",onClick:c,"aria-label":"Close",class:`${e}-close`},[s("span",{class:`${e}-close-x`},[t("×")])]),s("div",{class:`${e}-header`},[s("div",{class:`${e}-title`},[i])]),s("div",{class:`${e}-description`},[r]),s("div",{class:`${e}-footer`},[s("div",{class:`${e}-sliders`},[l>1?[...Array.from({length:l}).keys()].map(($,f)=>s("span",{key:$,class:f===n?"active":""},null)):null]),s("div",{class:`${e}-buttons`},[n!==0?s("button",{class:`${e}-prev-btn`,onClick:p},[t("Prev")]):null,n===l-1?s("button",{class:`${e}-finish-btn`,onClick:d},[t("Finish")]):s("button",{class:`${e}-next-btn`,onClick:u},[t("Next")])])])])])}}});export{k as default};
