import{aD as e,aE as s,aF as t,aH as a,bD as o,a$ as n,b0 as r,b1 as i,b2 as l,b3 as c}from"./p-BTBbFFOR.js";import{s as h}from"./p-C2rs7Hxy.js";import{I as f,V as d}from"./p-ULeawcYN.js";var m=function(e,s,t,a){var o,n=arguments.length,r=n<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,s,t,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(r=(n<3?o(r):n>3?o(s,t,r):o(s,t))||r);return n>3&&r&&Object.defineProperty(s,t,r),r};class u extends t{constructor(){super()}handleMessageChange(){this.notifyMessageUpdate()}handleComponentDidLoad(){this.notifyMessageUpdate()}notifyMessageUpdate(){a.notify(o,{host:this.host,message:this.message,isValid:!this.message})}}m([e()],u.prototype,"host",void 0),m([e()],u.prototype,"message",void 0),m([s("watchMessage")],u.prototype,"handleMessageChange",null),m([s("componentDidLoad")],u.prototype,"handleComponentDidLoad",null);var g=function(e,s,t,a){var o,n=arguments.length,r=n<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,s,t,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(r=(n<3?o(r):n>3?o(s,t,r):o(s,t))||r);return n>3&&r&&Object.defineProperty(s,t,r),r};const p=class{constructor(e){r(this,e),this.globalSlimmers={},this.messageController=new u,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.message=""}watchMessage(){}render(){return h(i(l,null,i("slot",null)),this.host)}get host(){return c(this)}static get watchers(){return{message:[{watchMessage:0}]}}};g([f()],p.prototype,"globalSlimmers",void 0),g([n()],p.prototype,"messageController",void 0),g([n()],p.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),p.style=":host{display:block}";export{p as vega_field_error}