import { isUrl } from "../../libs/isUrl.js";
import { createElementBlock, createTextVNode, defineComponent, openBlock, unref } from "vue";
//#region src/components/ImportCollection/PrefetchError.vue?vue&type=script&setup=true&lang.ts
var _hoisted_1 = { class: "w-full text-center text-sm font-medium break-words" };
var _hoisted_2 = ["href"];
var _hoisted_3 = {
	key: 1,
	textContent: "OpenAPI document manually"
};
var PrefetchError_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
	__name: "PrefetchError",
	props: { url: {} },
	setup(__props) {
		return (_ctx, _cache) => {
			return openBlock(), createElementBlock("div", _hoisted_1, [
				_cache[0] || (_cache[0] = createTextVNode(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)),
				__props.url && unref(isUrl)(__props.url) ? (openBlock(), createElementBlock("a", {
					key: 0,
					href: __props.url,
					rel: "noopener nofollow",
					target: "_blank",
					textContent: "OpenAPI document manually"
				}, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("span", _hoisted_3)),
				_cache[1] || (_cache[1] = createTextVNode(". ", -1))
			]);
		};
	}
});
//#endregion
export { PrefetchError_vue_vue_type_script_setup_true_lang_default as default };

//# sourceMappingURL=PrefetchError.vue.script.js.map