var __awaiter=this&&this.__awaiter||function(e,n,t,o){return new(t||(t=Promise))(function(r,l){function i(e){try{u(o.next(e))}catch(e){l(e)}}function a(e){try{u(o.throw(e))}catch(e){l(e)}}function u(e){e.done?r(e.value):new t(function(n){n(e.value)}).then(i,a)}u((o=o.apply(e,n||[])).next())})},__generator=this&&this.__generator||function(e,n){var t,o,r,l,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],o=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}};webmapgl.loadBundle("lrpjlhsx",["exports","./chunk-b06c5cf8.js"],function(e,n){var t=window.webmapgl.h,o=function(){function e(){}return e.prototype.openPopover=function(e){return __awaiter(this,void 0,void 0,function(){var n,t;return __generator(this,function(o){switch(o.label){case 0:return n={component:document.createElement("gl-download-list"),componentProps:{files:Array.from(this.el.querySelectorAll("gl-download-file"))},ev:e},[4,this.popoverCtrl.create(n)];case 1:return[4,(t=o.sent()).present()];case 2:return o.sent(),[2,t]}})})},e.prototype.render=function(){var e=this,o=n._t("webmapgl.download-button.title");return t("ion-button",{onClick:function(n){return e.openPopover(n)},title:o},t("ion-icon",{slot:"icon-only",name:"download"}))},Object.defineProperty(e,"is",{get:function(){return"gl-download-button"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{el:{elementRef:!0},popoverCtrl:{connect:"ion-popover-controller"}}},enumerable:!0,configurable:!0}),e}(),r=function(){function e(){}return e.prototype.render=function(){var e=n._t("webmapgl.download-list.header"),o=this.files.map(function(e){var o=[e.format,e.size].filter(function(e){return e}).join(", ");return o&&(o="("+o+")"),t("ion-item",null,t("ion-label",{"text-wrap":!0},e.label," ",o),t("ion-button",{slot:"end",href:e.url,title:n._t("webmapgl.download-list.download",{file:e.label})},t("ion-icon",{slot:"icon-only",name:"download"})))});return t("ion-content",null,t("ion-list",null,t("ion-list-header",null,e),o))},Object.defineProperty(e,"is",{get:function(){return"gl-download-list"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{files:{type:"Any",attr:"files"}}},enumerable:!0,configurable:!0}),e}();e.GlDownloadButton=o,e.GlDownloadList=r,Object.defineProperty(e,"__esModule",{value:!0})});