"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");require("../../../config-provider/index.js");const s=require("../../ap-copy/index.js"),a=require("../utils.js"),d=require("../../../config-provider/hooks/use-namespace.js"),p=l.defineComponent({name:"ApLadderValues",props:{labelValue:{type:Object,default:()=>{}},labelValues:{type:Object,default:()=>{}},onHandleClick:{type:Function,default:()=>{}}},setup(r,{emit:o}){return()=>{const{labelValue:e,labelValues:i}=r,u=a.isConstLabel(e.label)?l.createVNode(s.ApCopy,{text:a.convertValue(e.value,{...e})},null):a.convertValue(e.value,{...e}),{e:n}=d.useNamespace("ap-ladder"),c=t=>{o("handleClick",t)};return l.createVNode("span",{class:n("value-group-value"),title:String(a.convertValue(e.value,{...e}))},[a.isVNodeOrFunction(e.value)?a.renderValue(e.value):e.link?l.createVNode("a",{href:e.link,target:"_blank",class:n("value-group-link"),title:String(e.value),style:e.linkColor?{color:e.linkColor}:null,onClick:t=>{t.preventDefault(),c(e)},rel:"noopener"},[u]):l.createVNode(l.Fragment,null,[l.createVNode("span",{class:[e.handleValueClick?n("value-group-link"):null],title:String(e.value),style:e.valueColor?{color:e.valueColor}:null,onClick:()=>{e.handleValueClick&&e.handleValueClick(i)}},[u]),e.unit&&l.createVNode("span",{class:n("value-group-unit"),title:String(a.convertValue(e.value,{...e})),style:e.unitColor?{color:e.unitColor}:null},[e.unit])])])}}});exports.default=p;
