'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-df541290.js');
const index$2 = require('./index-b8688617.js');
const index$1 = require('./index-c12b8888.js');
require('./_commonjsHelpers-10109b76.js');
require('./index-0b6f1dd9.js');
require('./index-fe328b96.js');
require('./index-b7493032.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) {
    index.registerInstance(this, hostRef);
  }
  render() {
    var _a, _b, _c;
    const value = typeof this.value == "string" ? JSON.parse(this.value) : this.value;
    return value.countryCode == "" ? (index.h("address", null, (_a = value.address1) !== null && _a !== void 0 ? _a : "", index.h("br", null), (_b = value.address2) !== null && _b !== void 0 ? _b : "", index.h("br", null), (_c = value.address3) !== null && _c !== void 0 ? _c : "")) : (index.h("address", null, value.street, index.h("br", null), value.zipCode, " ", value.city, index.h("br", null), index$1.Address.DE.is(value) || (index$1.Address.General.is(value) && value.state) ? value.state + " " : [], index$2.dist.CountryCode.Name.from("en", value.countryCode)));
  }
};
IntergiroAddressDisplay.style = styleCss;

exports.ig_address_display = IntergiroAddressDisplay;
