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