'use strict';

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

const index = require('./index-140bcbcd.js');
const index$1 = require('./index-bddf9814.js');
const Item = require('./Item-00ce8c24.js');
require('./index-76391849.js');
require('./Credentials-8e4749ab.js');
require('./Token-8c5ba5d9.js');
require('./index-d3079b93.js');
require('./_commonjsHelpers-537d719a.js');
require('./index-09251373.js');
require('./TextDecoder-753156f3.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), Item.Address.DE.is(value) || (Item.Address.General.is(value) && value.state) ? value.state + " " : [], index$1.dist.CountryCode.Name.from("en", value.countryCode)));
  }
};
IntergiroAddressDisplay.style = styleCss;

exports.ig_address_display = IntergiroAddressDisplay;
