@konnectio/core
Version:
Konnectio Core Frontend Integration.
23 lines (22 loc) • 830 B
JavaScript
import { n as e } from "./chunk-BPfpcrXh.js";
import { P as t, Y as n, et as r, k as i, ut as a } from "./mitt-Dp_pykgV.js";
import { E as o } from "./SelectField-CfD2awPl.js";
//#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
var s = {
class: "konnectio-app",
ref: "base"
}, c = /* @__PURE__ */ t({
name: "BaseLayout",
__name: "_",
props: {
accessToken: {},
type: { default: "none" },
callback: {}
},
async setup(e) {
let t, c, l = e, { setAccessToken: u, fetchUtilities: d } = o();
return [t, c] = a(() => u(l.accessToken)), await t, c(), [t, c] = a(() => d()), await t, c(), l.callback && ([t, c] = a(() => l.callback()), await t, c()), (e, t) => (n(), i("div", s, [r(e.$slots, "default")], 512));
}
}), l = /* @__PURE__ */ e({ default: () => u }), u = c;
//#endregion
export { l as n, u as t };