var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();import{h}from"./index-102043e0.js";import{r as registerField}from"./index-336ef773.js";import{B as BaseField}from"./BaseField-461b6d0c.js";var BooleanField=function(e){__extends(t,e);function t(t,r,n,o){var i=e.call(this,t,"boolean")||this;i.id=t;i.title=r;i.description=n;i.label=o;return i}t.prototype.showPreview=function(){this.preview=true;return this};t.prototype.getDisplayValue=function(e){return e};return t}(BaseField);BooleanField.type="boolean";var render=function(e,t,r,n,o,i){return h("dvn-field-input-boolean",{disabled:n,field:e,errors:r,onChange:function(t){return o(e,t.detail)},onBlur:function(){return i(e)},value:t})};registerField("boolean",render);export{BooleanField as B};