import{h as e,c as a}from"./index-B6uGkrgD.js";import{l as n}from"./label-BGZcz8ue-BM0c_how.js";import{a as i}from"./base-web-component-CjUKwppg-CfrsJmb_.js";const c=a.forBlock("kol-click-button"),r=c(),u=c("label"),B=({label:s,handleClick:t,refButton:o})=>e("button",{class:r,ref:o,onClick:t,onKeyDown:l=>l.preventDefault()},e("span",{class:u},s)),C={required:[n]};class h extends i{constructor(t,o){super(C,t,o),this.handleClick=()=>{console.log(this,this.buttonRef,"button clicked")},this.setButtonRef=l=>{this.buttonRef=l}}componentWillLoad(t){const{label:o}=t;this.watchLabel(o)}watchLabel(t){n.apply(t,o=>{this.setRenderProp("label",o)})}focus(){var t;(t=this.buttonRef)===null||t===void 0||t.focus()}}export{h as C,B as a};
//# sourceMappingURL=controller-DCU1hWxp-Coh_pYzg.js.map
