var __awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function l(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(l,a)}u((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=e.call(t,l)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};webmapgl.loadBundle("s7vex0jd",["exports","./chunk-b06c5cf8.js","./chunk-962dfafc.js"],function(t,e,n){var r=window.webmapgl.h,o=function(){function t(){this.open=!1}return t.prototype.componentDidUpdate=function(){n.getMap(this.mapId).resizeMap()},t.prototype.toggle=function(){this.open=!this.open},t.prototype.hostData=function(){return{class:{"gl-drawer-closed":!this.open,"gl-drawer-open":this.open}}},t.prototype.render=function(){var t=this;return[r("ion-header",null,r("ion-toolbar",null,r("ion-buttons",{slot:"start"},r("slot",{name:"toolbar-start-buttons"})),r("ion-title",null,this.drawerTitle),r("ion-buttons",{slot:"end"},r("slot",{name:"toolbar-end-buttons"}),r("ion-button",{title:"Close",onClick:function(){t.open=!1}},r("ion-icon",{slot:"icon-only",name:"close"}))))),r("ion-content",null,r("slot",null))]},Object.defineProperty(t,"is",{get:function(){return"gl-drawer"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{content:{state:!0},drawerTitle:{type:String,attr:"drawer-title",mutable:!0},mapId:{type:String,attr:"map-id"},open:{type:Boolean,attr:"open",mutable:!0},toggle:{method:!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"style",{get:function(){return"gl-drawer{-ms-flex-direction:column;flex-direction:column;height:50%}gl-drawer.gl-drawer-closed{display:none}gl-drawer.gl-drawer-open{display:-ms-flexbox;display:flex}gl-drawer ion-content{height:100%}"},enumerable:!0,configurable:!0}),t}(),i=function(){function t(){this.icon="settings",this.buttonTitle=e._t("webmapgl.drawer-toggle.label")}return t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=this,[4,this.lazyDrawer.componentOnReady()];case 1:return t.drawer=e.sent(),[2]}})})},t.prototype.toggleDrawer=function(){this.drawer.open=!this.drawer.open},t.prototype.render=function(){var t=this;return r("ion-button",{onClick:function(){return t.toggleDrawer()},title:this.buttonTitle},r("ion-icon",{slot:"icon-only",name:this.icon}))},Object.defineProperty(t,"is",{get:function(){return"gl-drawer-toggle"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{buttonTitle:{type:String,attr:"button-title"},el:{elementRef:!0},icon:{type:String,attr:"icon"},lazyDrawer:{connect:"gl-drawer"}}},enumerable:!0,configurable:!0}),t}();t.GlDrawer=o,t.GlDrawerToggle=i,Object.defineProperty(t,"__esModule",{value:!0})});