/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-f0fde70b.js"),index$1=require("./index-cb2ce614.js"),defaultStyleCss="@layer kol-component {\n  :host {\n    display: inline-block;\n  }\n  img {\n    max-height: 100%;\n    max-width: 100%;\n  }\n}",KolImageDefaultStyle0=defaultStyleCss,KolImage=class{constructor(e){index.registerInstance(this,e),this._alt=void 0,this._loading="lazy",this._sizes=void 0,this._src=void 0,this._srcset=void 0,this.state={_alt:"",_loading:"lazy",_src:""}}validateAlt(e){index$1.watchString(this,"_alt",e,{required:!0})}validateLoading(e){index$1.validateLoading(this,e)}validateSizes(e){index$1.watchString(this,"_sizes",e)}validateSrc(e){index$1.validateImageSource(this,e,{required:!0})}validateSrcset(e){index$1.watchString(this,"_srcset",e)}componentWillLoad(){this.validateAlt(this._alt),this.validateLoading(this._loading),this.validateSizes(this._sizes),this.validateSrc(this._src),this.validateSrcset(this._srcset)}render(){return index.h(index.Host,{key:"7a14433b1a6d00775fdfd5eee2738b5e9502062c",class:"kol-image"},index.h("img",{key:"a303659a5b92761be4c1afb41f40341937e4e1b0",alt:this.state._alt,loading:this.state._loading,sizes:this.state._sizes,src:this.state._src,srcset:this.state._srcset}))}static get watchers(){return{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}}};KolImage.style={default:KolImageDefaultStyle0},exports.kol_image=KolImage;