@builder.io/sdk-vue
Version:
Builder.io SDK for Vue
45 lines (44 loc) • 1.42 kB
JavaScript
import "./style.css";
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
import { g as s, a as l } from "./get-block-properties-6nHJC7Bl.js";
import { e as m } from "./index-96lMP92Z.js";
const d = () => import("./index-96lMP92Z.js").then((e) => e.E).then((e) => e.default).catch((e) => {
throw console.error(
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
e
), e;
}), f = o({
name: "block-wrapper",
components: { DynamicRenderer: r(d) },
props: ["Wrapper", "block", "context"],
data() {
return { getBlockActions: s, getBlockProperties: l };
}
});
function u(e, k, b, y, S, g) {
const t = n("DynamicRenderer");
return a(), c(t, {
TagName: e.Wrapper,
attributes: e.getBlockProperties({
block: e.block,
context: e.context
}),
actionAttributes: e.getBlockActions({
block: e.block,
rootState: e.context.rootState,
rootSetState: e.context.rootSetState,
localState: e.context.localState,
context: e.context.context,
stripPrefix: !0
})
}, {
default: i(() => [
p(e.$slots, "default")
]),
_: 3
}, 8, ["TagName", "attributes", "actionAttributes"]);
}
const R = /* @__PURE__ */ m(f, [["render", u]]);
export {
R as default
};