/*!
 * KoliBri - The accessible HTML-Standard
 */
import{r as t,h as s,H as o}from"./index-Brmny3Vg.js";import{_ as e}from"./tslib.es6-QNbPBOk5.js";import{B as r}from"./variant-quote-BMV8GZX8.js";import{C as i}from"./component-DohIJBPw.js";import"./common-DEEjER7G.js";import{l as a}from"./label-DPd4-fag.js";import{B as c}from"./base-controller-CXhqh4cR.js";import{d as l,c as n}from"./element-interaction-C5-6aPzz.js";import"./normalizers-pgU77mXp.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./bem-registry-B9CzNnO1.js";import"./element-focus-BQXzaLL9.js";const m={required:[a]};class b extends c{constructor(t){super(t,m);this.handleClick=()=>{console.log(this,"button clicked")}}componentWillLoad(t){const{label:s}=t;this.watchLabel(s)}watchLabel(t){a.apply(t,(t=>{this.setRenderProp("label",t)}))}}const f=class extends r{constructor(s){super();t(this,s);this.ctrl=new b(this.stateAccess);this.buttonRef=n()}watchLabel(t){this.ctrl.watchLabel(t)}async focus(t){}componentWillLoad(){this.ctrl.componentWillLoad({label:this._label})}render(){return s(o,{key:"922d574d34d7ff5632a9b5489bbf4b205f64f3bd"},s(i,{key:"3546de6fd6b08ff2c01efc46943cf26ce50252c4",label:this.ctrl.getRenderProp("label"),refButton:this.buttonRef,handleClick:this.ctrl.handleClick}))}static get watchers(){return{_label:["watchLabel"]}}};e([l("buttonRef")],f.prototype,"focus",null);export{f as kol_click_button};
//# sourceMappingURL=kol-click-button.entry.js.map