"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");require("../../config-provider/index.js");const s=require("./components/SimpleMode.js"),m=require("./components/ValueGroupMode.js"),f=require("./constans.js"),b=require("./style/index.js"),k=require("../../config-provider/hooks/use-namespace.js"),g=l.defineComponent({name:"ApLadder",props:f.ApLadderProps(),setup(e,{slots:t}){const{b:u}=k.useNamespace("ap-ladder"),i=b.default("ap-ladder"),d=l.computed(()=>e.labelValues===void 0||e.labelValues.length===0),o=l.computed(()=>e.labelValues.length>0),r=l.computed(()=>e.labelAlign),c=n=>{n.link&&window.open(n.link,"_blank"),typeof n.handleClickLink=="function"&&n.handleClickLink()},a=()=>t.title?.()||null;return()=>l.createVNode("div",{class:[u(),i.value]},[d.value?l.createVNode(s.default,{major:e.major,minor:e.minor,layout:e.layout},{title:t.title?a:void 0}):o.value?l.createVNode(m.default,{labelValues:e.labelValues||[],labelAlign:r.value,onHandleClick:c},{title:t.title?a:void 0}):null])}});exports.default=g;
