import { defineComponent, createElementBlock, ref, provide } from 'vue';

defineComponent({ name: "ServerPlaceholder", render: () => createElementBlock("div") });
const o = Symbol.for("nuxt:client-only"), t = defineComponent({ name: "ClientOnly", inheritAttrs: false, props: ["fallback", "placeholder", "placeholderTag", "fallbackTag"], setup(l2, { slots: t2, attrs: n }) {
  const c = ref(false);
  return provide(o, true), (l3) => {
    var a2;
    if (c.value) return null == (a2 = t2.default) ? undefined : a2.call(t2);
    const r2 = t2.fallback || t2.placeholder;
    if (r2) return r2();
    const o2 = l3.fallback || l3.placeholder || "", p = l3.fallbackTag || l3.placeholderTag || "span";
    return createElementBlock(p, n, o2);
  };
} });

export { t };
//# sourceMappingURL=client-only-CAHE6F0E.mjs.map
