import{g as e}from"./p-8b5d3a52.js";import"./p-dcc98162.js";import{I as t,c as o}from"./p-3a41fc0a.js";import"./p-9ec80349.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:c,size:n,title:a,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=a,o.modalProps={isVerticallyCenter:l,isVerticallyCentered:i,showCloseButton:c,size:n,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,c=arguments.length,n=c<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,l);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(n=(c<3?i(n):c>3?i(t,o,n):i(t,o))||n);c>3&&n&&Object.defineProperty(t,o,n)}([t()],i.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const c=new i;export{c as VegaDialog}