import { r as registerInstance, h } from './index-08b73e9e.js';
import { d as dist } from './index-3cf720d3.js';
import { b as Address } from './Item-f4cbd6f4.js';
import './index-945f930d.js';
import './Credentials-b84c0c5f.js';
import './Token-ba2c5d5c.js';
import './index-a0a71287.js';
import './_commonjsHelpers-9943807e.js';
import './index-1f953d81.js';
import './TextDecoder-357ac2ce.js';

const styleCss = ".sc-ig-address-display-h{display:block;border-top:1px solid rgb(var(--smoothly-medium-color));border-bottom:1px solid rgb(var(--smoothly-medium-color))}";

const IntergiroAddressDisplay = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  render() {
    var _a, _b, _c;
    const value = typeof this.value == "string" ? JSON.parse(this.value) : this.value;
    return value.countryCode == "" ? (h("address", null, (_a = value.address1) !== null && _a !== void 0 ? _a : "", h("br", null), (_b = value.address2) !== null && _b !== void 0 ? _b : "", h("br", null), (_c = value.address3) !== null && _c !== void 0 ? _c : "")) : (h("address", null, value.street, h("br", null), value.zipCode, " ", value.city, h("br", null), Address.DE.is(value) || (Address.General.is(value) && value.state) ? value.state + " " : [], dist.CountryCode.Name.from("en", value.countryCode)));
  }
};
IntergiroAddressDisplay.style = styleCss;

export { IntergiroAddressDisplay as ig_address_display };
