import*as tslib_1 from"../polyfills/tslib.js";import{h}from"../webmapgl.core.js";import{a as _t}from"./chunk-cf921ba9.js";var TableColumnVisibilityButton=function(){function t(){this.label=_t("webmapgl.table-column-visibility.label")}return t.prototype.openModal=function(t){return tslib_1.__awaiter(this,void 0,void 0,function(){var e,n;return tslib_1.__generator(this,function(i){switch(i.label){case 0:return e={component:document.createElement("gl-table-column-visibility"),componentOptions:{tableId:this.tableId},event:t},[4,this.modalCtrl.create(e)];case 1:return[4,(n=i.sent()).present()];case 2:return i.sent(),[2,n]}})})},t.prototype.render=function(){var t=this;return h("ion-button",{onClick:function(e){return t.openModal(e)}},this.label)},Object.defineProperty(t,"is",{get:function(){return"gl-table-column-visibility-button"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{label:{type:String,attr:"label"},modalCtrl:{connect:"ion-modal-controller"},tableId:{type:String,attr:"table-id"}}},enumerable:!0,configurable:!0}),t}();export{TableColumnVisibilityButton as GlTableColumnVisibilityButton};