import{g as e}from"./p-8b5d3a52.js";import"./p-6e1ab235.js";import{I as t,c as o}from"./p-9a6bd32c.js";const l=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaDialogController is called",canAccept:(e,t)=>"VegaDialogController"===e&&"open"===t,payloadValue:()=>!0}];class i{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=o(i,["open"],l)}open(t){const o=document.createElement("vega-dialog"),{isVerticallyCenter:l,isVerticallyCentered:i,showCloseButton:n,size:a,title:c,handleClose:r}=t,s=function(e,t){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(l=Object.getOwnPropertySymbols(e);i<l.length;i++)t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(o[l[i]]=e[l[i]])}return o}(t,["isVerticallyCenter","isVerticallyCentered","showCloseButton","size","title","handleClose"]);return o.id=`vega-dialog-${e()}`,o.dialogTitle=c,o.modalProps={isVerticallyCenter:l,isVerticallyCentered:i,showCloseButton:n,size:a,handleClose:r},Object.keys(s).forEach((e=>{void 0!==s[e]&&(o[e]=s[e])})),document.body.append(o),o}}!function(e,t,o,l){var i,n=arguments.length,a=n<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,l);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(a=(n<3?i(a):n>3?i(t,o,a):i(t,o))||a);n>3&&a&&Object.defineProperty(t,o,a)}([t()],i.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const n=new i;export{n as V}