import{r as o,h as e,H as i}from"./p-1ea36ff3.js";import{C as a}from"./p-7957afd8.js";import{p as r}from"./p-b673f44e.js";import{D as t}from"./p-ffcec017.js";import"./p-7e860896.js";import"./p-944da115.js";import"./p-eebad85b.js";import"./p-d343a062.js";import"./p-814af281.js";const s={"18.192.241.137":"eu-central-2.damga.devingen.io","52.29.141.76":"eu-central-1a.damga.devingen.io"};let d=class{constructor(e){o(this,e)}async componentWillLoad(){const o={Authorization:(new a).getAll().jwt?`Bearer ${(new a).getAll().jwt}`:void 0},e=await new t(`${r.damga}/${r.base}`,o).getDnsRecord(this.item.domain).catch((o=>{console.log("Getting dns record failed",o)}));e&&(this.dnsRecord=e)}render(){var o,a;return e(i,null,s[null===(o=this.dnsRecord)||void 0===o?void 0:o.record]||(null===(a=this.dnsRecord)||void 0===a?void 0:a.record)||"-")}};d.style=".sc-devingen-product-damga-domain-table-list-dns-record-h{display:block;padding:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";export{d as devingen_product_damga_domain_table_list_dns_record}