@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
36 lines (35 loc) • 1.1 kB
JavaScript
import { defineComponent as u, shallowRef as c, watch as l, createBlock as s, createCommentVNode as m, openBlock as i, resolveDynamicComponent as p } from "vue";
import { i as f, u as d, a as v, m as y } from "./index-OKWFTjew.mjs";
const a = (n) => {
const { value: e, isCustom: t } = d();
if (v(n.query) && t.value)
try {
const o = y.map("SavedSearchFilter", e.value, "LocationQuery");
return { ...n, query: o };
} catch (o) {
console.error(o);
}
return !0;
}, C = /* @__PURE__ */ u({
beforeRouteEnter: a,
beforeRouteUpdate: a,
__name: "RunsPageWithDefaultFilter",
props: {
component: { type: Function }
},
setup(n) {
const e = n, t = c(null);
function o(r) {
return f(r);
}
return l(e.component, () => {
o(e.component) ? e.component().then((r) => {
t.value = r.default;
}) : t.value = e.component;
}, { immediate: !0 }), (r, h) => t.value !== null ? (i(), s(p(t.value), { key: 0 })) : m("", !0);
}
});
export {
C as default
};
//# sourceMappingURL=RunsPageWithDefaultFilter-D7VEOalx.mjs.map