const t=window.webmapgl.h;import{a as e}from"./chunk-cf921ba9.js";class l{constructor(){this.label=e("webmapgl.table-column-visibility.label")}async openModal(t){const e={component:document.createElement("gl-table-column-visibility"),componentOptions:{tableId:this.tableId},event:t},l=await this.modalCtrl.create(e);return await l.present(),l}render(){return t("ion-button",{onClick:t=>this.openModal(t)},this.label)}static get is(){return"gl-table-column-visibility-button"}static get properties(){return{label:{type:String,attr:"label"},modalCtrl:{connect:"ion-modal-controller"},tableId:{type:String,attr:"table-id"}}}}export{l as GlTableColumnVisibilityButton};