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