var __awaiter=this&&this.__awaiter||function(e,n,r,t){function o(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,a){function i(e){try{c(t.next(e))}catch(e){a(e)}}function s(e){try{c(t["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):o(e.value).then(i,s)}c((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(n){return c([e,n])}}function c(i){if(t)throw new TypeError("Generator is already executing.");while(r)try{if(t=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;o=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){r.label=i[1];break}if(i[0]===6&&r.label<a[1]){r.label=a[1];a=i;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(i);break}if(a[2])r.ops.pop();r.trys.pop();continue}i=n.call(e,r)}catch(e){i=[6,e];o=0}finally{t=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-b7735e0d.js";var damgaDnsRecordCss="damga-dns-record{display:block;padding:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";var damgaProxyIPs={"18.192.241.137":"eu-central-2.damga.devingen.io","52.29.141.76":"eu-central-1a.damga.devingen.io"};var DamgaDnsRecord=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))};e.prototype.render=function(){var e,n;return h(Host,null,damgaProxyIPs[(e=this.dnsRecord)===null||e===void 0?void 0:e.record]||((n=this.dnsRecord)===null||n===void 0?void 0:n.record)||"-")};return e}();DamgaDnsRecord.style=damgaDnsRecordCss;export{DamgaDnsRecord as damga_dns_record};