import { computed, mergeProps, unref, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderAttr } from 'vue/server-renderer';

const _sfc_main = {
  __name: "FlagComponent",
  __ssrInlineRender: true,
  props: {
    country: {
      required: true
    },
    countryName: {
      type: String,
      required: false
    }
  },
  setup(__props) {
    const props = __props;
    const flagUrl = computed(() => {
      return `https://flagcdn.com/w40/${props.country.toLowerCase()}.png`;
    });
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<span${ssrRenderAttrs(mergeProps({ class: "bg-foreground/20 flex h-4 w-6 overflow-hidden" }, _attrs))}>`);
      if (__props.country) {
        _push(`<img${ssrRenderAttr("src", unref(flagUrl))}${ssrRenderAttr("alt", __props.countryName)}${ssrRenderAttr("title", __props.countryName)}>`);
      } else {
        _push(`<!---->`);
      }
      _push(`</span>`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/global/contact/FlagComponent.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};

export { _sfc_main as default };
//# sourceMappingURL=FlagComponent-tWUs0Zo0.mjs.map
