import { r as registerInstance, h } from './index-07845439.js';
import { d as dist } from './index-046ba252.js';
import { A as Address } from './index-e20749b7.js';
import './_commonjsHelpers-8fe71198.js';
import './index-b6cf748e.js';
import './index-265fba1f.js';
import './index-63517df5.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 };
