@builder.io/sdk-vue 1.0.36 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{block-styles-QmmLdzpW.js → block-styles-IgeLKqtO.js} +1 -1
- package/lib/browser/{block-styles-pw_R2yQt.cjs → block-styles-JNa4oaKg.cjs} +1 -1
- package/lib/browser/{block-wrapper-26flngEX.js → block-wrapper-2dz0ANfE.js} +3 -3
- package/lib/browser/{block-wrapper-ym7Obdn5.cjs → block-wrapper-DKAcCWUl.cjs} +1 -1
- package/lib/browser/blocks/accordion/accordion.vue.d.ts +3 -3
- package/lib/browser/blocks/button/button.vue.d.ts +3 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/browser/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/browser/blocks/form/input/input.vue.d.ts +6 -6
- package/lib/browser/blocks/form/textarea/textarea.vue.d.ts +3 -3
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/browser/blocks/video/video.vue.d.ts +3 -3
- package/lib/browser/{component-ref-EJE0BMsw.cjs → component-ref-QrMSo5Xp.cjs} +1 -1
- package/lib/browser/{component-ref-f6HeLjzo.js → component-ref-V2PjOzrU.js} +2 -2
- package/lib/browser/components/block/block.helpers.d.ts +8 -8
- package/lib/browser/components/block/block.vue.d.ts +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/browser/components/content/content.vue.d.ts +18 -18
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-bRGCHXAl.js → get-block-properties-TdaLYLBc.js} +1 -1
- package/lib/browser/{get-block-properties-jhRwh2eR.cjs → get-block-properties-tGP5LRTK.cjs} +1 -1
- package/lib/browser/index-6J8hb-U4.cjs +166 -0
- package/lib/browser/{index-NLkfEtPh.js → index-ZjI6yLCn.js} +909 -785
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-By1JKWmB.js → repeated-block-N87PTuTY.js} +2 -2
- package/lib/browser/{repeated-block-9SersTny.cjs → repeated-block-b1ywSZOA.cjs} +1 -1
- package/lib/browser/types/components.d.ts +41 -0
- package/lib/{node/block-styles-ekBqqSDD.js → edge/block-styles-9G0dzHlX.js} +1 -1
- package/lib/edge/{block-styles-_fSdBubU.cjs → block-styles-k6csWHEr.cjs} +1 -1
- package/lib/edge/{block-wrapper-MRpzh8OH.js → block-wrapper-_oCLYjA0.js} +3 -3
- package/lib/{node/block-wrapper-VDAcUhC-.cjs → edge/block-wrapper-e76eazMP.cjs} +1 -1
- package/lib/edge/blocks/accordion/accordion.vue.d.ts +3 -3
- package/lib/edge/blocks/button/button.vue.d.ts +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/edge/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/edge/blocks/form/input/input.vue.d.ts +6 -6
- package/lib/edge/blocks/form/textarea/textarea.vue.d.ts +3 -3
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/edge/blocks/video/video.vue.d.ts +3 -3
- package/lib/{node/component-ref-XxfgsVAO.cjs → edge/component-ref-kpSD1Znd.cjs} +1 -1
- package/lib/{node/component-ref-Au-JxCpz.js → edge/component-ref-vunvHoZn.js} +2 -2
- package/lib/edge/components/block/block.helpers.d.ts +8 -8
- package/lib/edge/components/block/block.vue.d.ts +3 -3
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/edge/components/content/content.vue.d.ts +18 -18
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-RUv19U0D.js → get-block-properties-KooliJEr.js} +1 -1
- package/lib/edge/{get-block-properties-mYCrAhpB.cjs → get-block-properties-by2fStX3.cjs} +1 -1
- package/lib/edge/{index-fmKlzhOA.js → index-FfRBzdcb.js} +1333 -1209
- package/lib/edge/index-roTI7Hky.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-zMex8Hyo.js → repeated-block-Bv_1I8Ud.js} +2 -2
- package/lib/edge/{repeated-block-fT6ciF3Y.cjs → repeated-block-GKGq6dYq.cjs} +1 -1
- package/lib/edge/types/components.d.ts +41 -0
- package/lib/node/{block-styles-PnZ5sEmM.cjs → block-styles-DIWBbAnH.cjs} +1 -1
- package/lib/{edge/block-styles-Jd0r8FSA.js → node/block-styles-zct_8ddd.js} +1 -1
- package/lib/{edge/block-wrapper-A5vScnuu.cjs → node/block-wrapper-INTUvEJp.cjs} +1 -1
- package/lib/node/{block-wrapper-FGDcViUJ.js → block-wrapper-_BPFTFXt.js} +3 -3
- package/lib/node/blocks/accordion/accordion.vue.d.ts +3 -3
- package/lib/node/blocks/button/button.vue.d.ts +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/node/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/node/blocks/form/input/input.vue.d.ts +6 -6
- package/lib/node/blocks/form/textarea/textarea.vue.d.ts +3 -3
- package/lib/node/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/node/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/node/blocks/video/video.vue.d.ts +3 -3
- package/lib/{edge/component-ref-LJrom_Hw.js → node/component-ref-6qaPMg_V.js} +2 -2
- package/lib/{edge/component-ref-t-ZqciWS.cjs → node/component-ref-onSus3rm.cjs} +1 -1
- package/lib/node/components/block/block.helpers.d.ts +8 -8
- package/lib/node/components/block/block.vue.d.ts +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/node/components/content/content.vue.d.ts +18 -18
- package/lib/node/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-H2mLG2ne.cjs → get-block-properties-J2hYDEjG.cjs} +1 -1
- package/lib/node/{get-block-properties-WCuExDS0.js → get-block-properties-Z8dbhv04.js} +1 -1
- package/lib/node/index-LYUOXK6N.cjs +213 -0
- package/lib/node/{index-2FruHdw_.js → index-mwT6ab1s.js} +227 -103
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-pn4OjL31.js → repeated-block-DHUq5Kzz.js} +2 -2
- package/lib/node/{repeated-block-6pZDOeM_.cjs → repeated-block-KIbLvY78.cjs} +1 -1
- package/lib/node/types/components.d.ts +41 -0
- package/package.json +1 -1
- package/lib/browser/index-B7uwco2M.cjs +0 -166
- package/lib/edge/index-ZhWTg6tN.cjs +0 -186
- package/lib/node/index-waRiX7LZ.cjs +0 -213
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (e, t, n) => (
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var $ = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var v = (e, t, n) => ($(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import { defineComponent, openBlock, createElementBlock, Fragment as Fragment$1, createBlock, resolveDynamicComponent, mergeProps, toHandlers, withCtx, renderSlot, resolveComponent, createTextVNode, toDisplayString, defineAsyncComponent, createVNode, renderList, createCommentVNode, h, createElementVNode, normalizeStyle, normalizeClass, markRaw } from "vue";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), isEmptyElement = (e) => typeof e == "string" && EMPTY_HTML_ELEMENTS.has(e.toLowerCase());
|
|
@@ -361,23 +361,23 @@ const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode =
|
|
|
361
361
|
context: n,
|
|
362
362
|
event: o,
|
|
363
363
|
state: a
|
|
364
|
-
}),
|
|
364
|
+
}), u = getIsolateContext(), c = u.global;
|
|
365
365
|
c.setSync(BUILDER_SET_STATE_NAME, function(m, b) {
|
|
366
366
|
set(i, m, b), s == null || s(i);
|
|
367
367
|
}), d.forEach(([m, b]) => {
|
|
368
|
-
const
|
|
368
|
+
const C = typeof b == "object" ? new l.Reference(
|
|
369
369
|
// workaround: methods with default values for arguments is not being cloned over
|
|
370
370
|
m === "builder" ? {
|
|
371
371
|
...b,
|
|
372
372
|
getUserAttributes: () => b.getUserAttributes()
|
|
373
373
|
} : b
|
|
374
374
|
) : null;
|
|
375
|
-
c.setSync(getSyncValName(m),
|
|
375
|
+
c.setSync(getSyncValName(m), C);
|
|
376
376
|
});
|
|
377
|
-
const
|
|
377
|
+
const p = processCode({
|
|
378
378
|
code: e,
|
|
379
379
|
args: d
|
|
380
|
-
}), f =
|
|
380
|
+
}), f = u.evalClosureSync(p);
|
|
381
381
|
try {
|
|
382
382
|
return JSON.parse(f);
|
|
383
383
|
} catch {
|
|
@@ -438,15 +438,15 @@ function evaluate({
|
|
|
438
438
|
localState: n
|
|
439
439
|
};
|
|
440
440
|
if (l) {
|
|
441
|
-
const d = EvalCache.getCacheKey(a),
|
|
442
|
-
if (
|
|
443
|
-
return
|
|
441
|
+
const d = EvalCache.getCacheKey(a), u = EvalCache.getCachedValue(d);
|
|
442
|
+
if (u)
|
|
443
|
+
return u.value;
|
|
444
444
|
}
|
|
445
445
|
try {
|
|
446
446
|
const d = chooseBrowserOrServerEval(a);
|
|
447
447
|
if (l) {
|
|
448
|
-
const
|
|
449
|
-
EvalCache.setCachedValue(
|
|
448
|
+
const u = EvalCache.getCacheKey(a);
|
|
449
|
+
EvalCache.setCachedValue(u, d);
|
|
450
450
|
}
|
|
451
451
|
return d;
|
|
452
452
|
} catch (d) {
|
|
@@ -516,8 +516,8 @@ function throttle(e, t, n = {}) {
|
|
|
516
516
|
return function() {
|
|
517
517
|
const d = Date.now();
|
|
518
518
|
!l && n.leading === !1 && (l = d);
|
|
519
|
-
const
|
|
520
|
-
return o = this, r = arguments,
|
|
519
|
+
const u = t - (d - l);
|
|
520
|
+
return o = this, r = arguments, u <= 0 || u > t ? (i && (clearTimeout(i), i = null), l = d, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, u)), s;
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
function assign(e, ...t) {
|
|
@@ -590,9 +590,9 @@ function bindScrollInViewAnimation(e) {
|
|
|
590
590
|
const i = throttle(s, 200, {
|
|
591
591
|
leading: !1
|
|
592
592
|
});
|
|
593
|
-
function l(
|
|
594
|
-
const c =
|
|
595
|
-
return c.bottom > m && c.top <
|
|
593
|
+
function l(u) {
|
|
594
|
+
const c = u.getBoundingClientRect(), p = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * p;
|
|
595
|
+
return c.bottom > m && c.top < p - m;
|
|
596
596
|
}
|
|
597
597
|
const a = e.steps[0].styles;
|
|
598
598
|
function d() {
|
|
@@ -705,35 +705,43 @@ const getComponent = ({
|
|
|
705
705
|
},
|
|
706
706
|
block: o
|
|
707
707
|
}));
|
|
708
|
-
},
|
|
708
|
+
}, applyDefaults = (e) => ({
|
|
709
|
+
// once we bump to a major version, toggle this to `false`.
|
|
710
|
+
builderBlock: !0,
|
|
711
|
+
// once we bump to a major version, toggle this to `false`.
|
|
712
|
+
builderContext: !0,
|
|
713
|
+
builderComponents: !1,
|
|
714
|
+
builderLinkComponent: !1,
|
|
715
|
+
...e
|
|
716
|
+
}), provideLinkComponent = (e, t) => e ? applyDefaults(e.shouldReceiveBuilderProps).builderLinkComponent ? {
|
|
709
717
|
builderLinkComponent: t
|
|
710
|
-
} : {}, provideRegisteredComponents = (e, t) => e
|
|
718
|
+
} : {} : {}, provideRegisteredComponents = (e, t) => e ? applyDefaults(e.shouldReceiveBuilderProps).builderComponents ? {
|
|
711
719
|
builderComponents: t
|
|
712
|
-
} : {}, provideBuilderBlock = (e, t) => e
|
|
720
|
+
} : {} : {}, provideBuilderBlock = (e, t) => e ? applyDefaults(e.shouldReceiveBuilderProps).builderBlock ? {
|
|
713
721
|
builderBlock: t
|
|
714
|
-
} : {}, provideBuilderContext = (e, t) => e
|
|
722
|
+
} : {} : {}, provideBuilderContext = (e, t) => e ? applyDefaults(e.shouldReceiveBuilderProps).builderContext ? {
|
|
715
723
|
builderContext: t
|
|
716
|
-
} : {}, DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
|
|
724
|
+
} : {} : {}, DynamicDiv$1 = () => Promise.resolve().then(() => dynamicDiv).then((e) => e.default).catch((e) => {
|
|
717
725
|
throw console.error(
|
|
718
726
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
719
727
|
e
|
|
720
728
|
), e;
|
|
721
|
-
}), BlockStyles = () => import("./block-styles-
|
|
729
|
+
}), BlockStyles = () => import("./block-styles-zct_8ddd.js").then((e) => e.default).catch((e) => {
|
|
722
730
|
throw console.error(
|
|
723
731
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
724
732
|
e
|
|
725
733
|
), e;
|
|
726
|
-
}), BlockWrapper = () => import("./block-wrapper-
|
|
734
|
+
}), BlockWrapper = () => import("./block-wrapper-_BPFTFXt.js").then((e) => e.default).catch((e) => {
|
|
727
735
|
throw console.error(
|
|
728
736
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
729
737
|
e
|
|
730
738
|
), e;
|
|
731
|
-
}), ComponentRef = () => import("./component-ref-
|
|
739
|
+
}), ComponentRef = () => import("./component-ref-6qaPMg_V.js").then((e) => e.default).catch((e) => {
|
|
732
740
|
throw console.error(
|
|
733
741
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
734
742
|
e
|
|
735
743
|
), e;
|
|
736
|
-
}), RepeatedBlock = () => import("./repeated-block-
|
|
744
|
+
}), RepeatedBlock = () => import("./repeated-block-DHUq5Kzz.js").then((e) => e.default).catch((e) => {
|
|
737
745
|
throw console.error(
|
|
738
746
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
739
747
|
e
|
|
@@ -824,7 +832,7 @@ const getComponent = ({
|
|
|
824
832
|
});
|
|
825
833
|
function _sfc_render$p(e, t, n, o, r, s) {
|
|
826
834
|
var c;
|
|
827
|
-
const i = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"),
|
|
835
|
+
const i = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), u = resolveComponent("RepeatedBlock");
|
|
828
836
|
return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
829
837
|
createVNode(i, {
|
|
830
838
|
block: e.block,
|
|
@@ -842,10 +850,10 @@ function _sfc_render$p(e, t, n, o, r, s) {
|
|
|
842
850
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
843
851
|
isInteractive: e.componentRefProps.isInteractive
|
|
844
852
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
845
|
-
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (
|
|
853
|
+
e.repeatItem ? (openBlock(!0), createElementBlock(Fragment$1, { key: 1 }, renderList(e.repeatItem, (p, f) => (openBlock(), createBlock(u, {
|
|
846
854
|
key: f,
|
|
847
|
-
repeatContext:
|
|
848
|
-
block:
|
|
855
|
+
repeatContext: p.context,
|
|
856
|
+
block: p.block,
|
|
849
857
|
registeredComponents: e.registeredComponents,
|
|
850
858
|
linkComponent: e.linkComponent
|
|
851
859
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (openBlock(), createBlock(d, {
|
|
@@ -866,9 +874,9 @@ function _sfc_render$p(e, t, n, o, r, s) {
|
|
|
866
874
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
867
875
|
isInteractive: e.componentRefProps.isInteractive
|
|
868
876
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
869
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (
|
|
870
|
-
key:
|
|
871
|
-
block:
|
|
877
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.childrenWithoutParentComponent, (p, f) => (openBlock(), createBlock(a, {
|
|
878
|
+
key: p.id,
|
|
879
|
+
block: p,
|
|
872
880
|
registeredComponents: e.registeredComponents,
|
|
873
881
|
linkComponent: e.linkComponent,
|
|
874
882
|
context: e.context
|
|
@@ -972,9 +980,9 @@ function _sfc_render$n(e, t, n, o, r, s) {
|
|
|
972
980
|
BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
973
981
|
}, {
|
|
974
982
|
default: withCtx(() => [
|
|
975
|
-
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (
|
|
976
|
-
key:
|
|
977
|
-
block:
|
|
983
|
+
e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (u, c) => (openBlock(), createBlock(i, {
|
|
984
|
+
key: u.id,
|
|
985
|
+
block: u,
|
|
978
986
|
linkComponent: e.linkComponent,
|
|
979
987
|
context: e.context || e.builderContext,
|
|
980
988
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
@@ -1191,11 +1199,11 @@ function _sfc_render$l(e, t, n, o, r, s) {
|
|
|
1191
1199
|
id: "builderio-columns",
|
|
1192
1200
|
styles: e.columnsStyles()
|
|
1193
1201
|
}, null, 8, ["styles"])) : createCommentVNode("", !0),
|
|
1194
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (
|
|
1202
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.columns, (u, c) => (openBlock(), createBlock(a, {
|
|
1195
1203
|
key: c,
|
|
1196
|
-
TagName: e.getTagName(
|
|
1204
|
+
TagName: e.getTagName(u),
|
|
1197
1205
|
actionAttributes: {},
|
|
1198
|
-
attributes: e.getAttributes(
|
|
1206
|
+
attributes: e.getAttributes(u, c)
|
|
1199
1207
|
}, {
|
|
1200
1208
|
default: withCtx(() => [
|
|
1201
1209
|
createVNode(l, {
|
|
@@ -1207,7 +1215,7 @@ function _sfc_render$l(e, t, n, o, r, s) {
|
|
|
1207
1215
|
context: e.builderContext,
|
|
1208
1216
|
registeredComponents: e.builderComponents,
|
|
1209
1217
|
linkComponent: e.builderLinkComponent,
|
|
1210
|
-
blocks:
|
|
1218
|
+
blocks: u.blocks
|
|
1211
1219
|
}, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
|
|
1212
1220
|
]),
|
|
1213
1221
|
_: 2
|
|
@@ -1306,7 +1314,7 @@ const _sfc_main$k = defineComponent({
|
|
|
1306
1314
|
class: "div-1pl23ac79ld-2"
|
|
1307
1315
|
};
|
|
1308
1316
|
function _sfc_render$j(e, t, n, o, r, s) {
|
|
1309
|
-
var i, l, a, d,
|
|
1317
|
+
var i, l, a, d, u, c;
|
|
1310
1318
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
1311
1319
|
createElementVNode("picture", null, [
|
|
1312
1320
|
e.webpSrcSet ? (openBlock(), createElementBlock("source", {
|
|
@@ -1340,7 +1348,7 @@ function _sfc_render$j(e, t, n, o, r, s) {
|
|
|
1340
1348
|
})
|
|
1341
1349
|
}, null, 4)) : createCommentVNode("", !0),
|
|
1342
1350
|
(d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? renderSlot(e.$slots, "default", { key: 1 }, void 0, !0) : createCommentVNode("", !0),
|
|
1343
|
-
!e.fitContent && ((c = (
|
|
1351
|
+
!e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
1344
1352
|
renderSlot(e.$slots, "default", {}, void 0, !0)
|
|
1345
1353
|
])) : createCommentVNode("", !0)
|
|
1346
1354
|
], 64);
|
|
@@ -1622,7 +1630,13 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
|
|
|
1622
1630
|
onChange: (e) => {
|
|
1623
1631
|
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1624
1632
|
}
|
|
1625
|
-
}]
|
|
1633
|
+
}],
|
|
1634
|
+
shouldReceiveBuilderProps: {
|
|
1635
|
+
builderBlock: !0,
|
|
1636
|
+
builderContext: !0,
|
|
1637
|
+
builderComponents: !0,
|
|
1638
|
+
builderLinkComponent: !0
|
|
1639
|
+
}
|
|
1626
1640
|
}, convertOrderNumberToString = (e) => e.toString(), _sfc_main$i = defineComponent({
|
|
1627
1641
|
name: "builder-accordion",
|
|
1628
1642
|
components: { Blocks },
|
|
@@ -1794,7 +1808,13 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
|
|
|
1794
1808
|
friendlyName: "Open link in new tab"
|
|
1795
1809
|
}],
|
|
1796
1810
|
static: !0,
|
|
1797
|
-
noWrap: !0
|
|
1811
|
+
noWrap: !0,
|
|
1812
|
+
shouldReceiveBuilderProps: {
|
|
1813
|
+
builderBlock: !1,
|
|
1814
|
+
builderContext: !1,
|
|
1815
|
+
builderComponents: !1,
|
|
1816
|
+
builderLinkComponent: !0
|
|
1817
|
+
}
|
|
1798
1818
|
}, componentInfo$g = {
|
|
1799
1819
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1800
1820
|
name: "Columns",
|
|
@@ -1995,8 +2015,20 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
|
|
|
1995
2015
|
defaultValue: !1,
|
|
1996
2016
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1997
2017
|
advanced: !0
|
|
1998
|
-
}]
|
|
2018
|
+
}],
|
|
2019
|
+
shouldReceiveBuilderProps: {
|
|
2020
|
+
builderBlock: !0,
|
|
2021
|
+
builderContext: !0,
|
|
2022
|
+
builderComponents: !0,
|
|
2023
|
+
builderLinkComponent: !0
|
|
2024
|
+
}
|
|
1999
2025
|
}, componentInfo$f = {
|
|
2026
|
+
shouldReceiveBuilderProps: {
|
|
2027
|
+
builderBlock: !1,
|
|
2028
|
+
builderContext: !1,
|
|
2029
|
+
builderComponents: !1,
|
|
2030
|
+
builderLinkComponent: !1
|
|
2031
|
+
},
|
|
2000
2032
|
name: "Fragment",
|
|
2001
2033
|
static: !0,
|
|
2002
2034
|
hidden: !0,
|
|
@@ -2024,13 +2056,13 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
|
|
|
2024
2056
|
e.delete("srcset"), e.delete("noWebp");
|
|
2025
2057
|
function n(i, l = 6e4) {
|
|
2026
2058
|
return new Promise((a, d) => {
|
|
2027
|
-
const
|
|
2059
|
+
const u = document.createElement("img");
|
|
2028
2060
|
let c = !1;
|
|
2029
|
-
|
|
2030
|
-
c = !0, a(
|
|
2031
|
-
},
|
|
2032
|
-
console.warn("Image load failed",
|
|
2033
|
-
}),
|
|
2061
|
+
u.onload = () => {
|
|
2062
|
+
c = !0, a(u);
|
|
2063
|
+
}, u.addEventListener("error", (p) => {
|
|
2064
|
+
console.warn("Image load failed", p.error), d(p.error);
|
|
2065
|
+
}), u.src = i, setTimeout(() => {
|
|
2034
2066
|
c || d(new Error("Image load timed out"));
|
|
2035
2067
|
}, l);
|
|
2036
2068
|
});
|
|
@@ -2106,8 +2138,20 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
|
|
|
2106
2138
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
2107
2139
|
advanced: !0,
|
|
2108
2140
|
defaultValue: 0.7041
|
|
2109
|
-
}]
|
|
2141
|
+
}],
|
|
2142
|
+
shouldReceiveBuilderProps: {
|
|
2143
|
+
builderBlock: !0,
|
|
2144
|
+
builderContext: !1,
|
|
2145
|
+
builderComponents: !1,
|
|
2146
|
+
builderLinkComponent: !1
|
|
2147
|
+
}
|
|
2110
2148
|
}, componentInfo$d = {
|
|
2149
|
+
shouldReceiveBuilderProps: {
|
|
2150
|
+
builderBlock: !1,
|
|
2151
|
+
builderContext: !1,
|
|
2152
|
+
builderComponents: !1,
|
|
2153
|
+
builderLinkComponent: !1
|
|
2154
|
+
},
|
|
2111
2155
|
name: "Core:Section",
|
|
2112
2156
|
static: !0,
|
|
2113
2157
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2158,7 +2202,13 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
|
|
|
2158
2202
|
type: "string",
|
|
2159
2203
|
required: !0,
|
|
2160
2204
|
defaultValue: "children"
|
|
2161
|
-
}]
|
|
2205
|
+
}],
|
|
2206
|
+
shouldReceiveBuilderProps: {
|
|
2207
|
+
builderBlock: !1,
|
|
2208
|
+
builderContext: !0,
|
|
2209
|
+
builderComponents: !1,
|
|
2210
|
+
builderLinkComponent: !1
|
|
2211
|
+
}
|
|
2162
2212
|
}, _sfc_main$h = defineComponent({
|
|
2163
2213
|
name: "builder-slot",
|
|
2164
2214
|
components: { Blocks },
|
|
@@ -2215,7 +2265,13 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
|
|
|
2215
2265
|
name: "useChildren",
|
|
2216
2266
|
hideFromUI: !0,
|
|
2217
2267
|
type: "boolean"
|
|
2218
|
-
}]
|
|
2268
|
+
}],
|
|
2269
|
+
shouldReceiveBuilderProps: {
|
|
2270
|
+
builderBlock: !0,
|
|
2271
|
+
builderContext: !0,
|
|
2272
|
+
builderComponents: !0,
|
|
2273
|
+
builderLinkComponent: !0
|
|
2274
|
+
}
|
|
2219
2275
|
}, defaultTab = {
|
|
2220
2276
|
"@type": "@builder.io/sdk:Element",
|
|
2221
2277
|
responsiveStyles: {
|
|
@@ -2350,7 +2406,13 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
|
|
|
2350
2406
|
label: "Right",
|
|
2351
2407
|
value: "flex-end"
|
|
2352
2408
|
}]
|
|
2353
|
-
}]
|
|
2409
|
+
}],
|
|
2410
|
+
shouldReceiveBuilderProps: {
|
|
2411
|
+
builderBlock: !0,
|
|
2412
|
+
builderContext: !0,
|
|
2413
|
+
builderComponents: !0,
|
|
2414
|
+
builderLinkComponent: !0
|
|
2415
|
+
}
|
|
2354
2416
|
}, _sfc_main$g = defineComponent({
|
|
2355
2417
|
name: "builder-tabs",
|
|
2356
2418
|
components: { Blocks },
|
|
@@ -2420,6 +2482,12 @@ function _sfc_render$f(e, t, n, o, r, s) {
|
|
|
2420
2482
|
]);
|
|
2421
2483
|
}
|
|
2422
2484
|
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]]), componentInfo$9 = {
|
|
2485
|
+
shouldReceiveBuilderProps: {
|
|
2486
|
+
builderBlock: !1,
|
|
2487
|
+
builderContext: !1,
|
|
2488
|
+
builderComponents: !1,
|
|
2489
|
+
builderLinkComponent: !1
|
|
2490
|
+
},
|
|
2423
2491
|
name: "Text",
|
|
2424
2492
|
static: !0,
|
|
2425
2493
|
isRSC: !0,
|
|
@@ -2452,6 +2520,12 @@ function _sfc_render$e(e, t, n, o, r, s) {
|
|
|
2452
2520
|
}, null, 8, _hoisted_1$8);
|
|
2453
2521
|
}
|
|
2454
2522
|
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]]), componentInfo$8 = {
|
|
2523
|
+
shouldReceiveBuilderProps: {
|
|
2524
|
+
builderBlock: !1,
|
|
2525
|
+
builderContext: !1,
|
|
2526
|
+
builderComponents: !1,
|
|
2527
|
+
builderLinkComponent: !1
|
|
2528
|
+
},
|
|
2455
2529
|
name: "Custom Code",
|
|
2456
2530
|
static: !0,
|
|
2457
2531
|
requiredPermissions: ["editCode"],
|
|
@@ -2516,6 +2590,12 @@ function _sfc_render$d(e, t, n, o, r, s) {
|
|
|
2516
2590
|
}, null, 10, _hoisted_1$7);
|
|
2517
2591
|
}
|
|
2518
2592
|
const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d]]), componentInfo$7 = {
|
|
2593
|
+
shouldReceiveBuilderProps: {
|
|
2594
|
+
builderBlock: !1,
|
|
2595
|
+
builderContext: !1,
|
|
2596
|
+
builderComponents: !1,
|
|
2597
|
+
builderLinkComponent: !1
|
|
2598
|
+
},
|
|
2519
2599
|
name: "Embed",
|
|
2520
2600
|
static: !0,
|
|
2521
2601
|
inputs: [{
|
|
@@ -2823,7 +2903,13 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2823
2903
|
text: "Submit"
|
|
2824
2904
|
}
|
|
2825
2905
|
}
|
|
2826
|
-
}]
|
|
2906
|
+
}],
|
|
2907
|
+
shouldReceiveBuilderProps: {
|
|
2908
|
+
builderBlock: !0,
|
|
2909
|
+
builderContext: !0,
|
|
2910
|
+
builderComponents: !0,
|
|
2911
|
+
builderLinkComponent: !0
|
|
2912
|
+
}
|
|
2827
2913
|
}, validEnvList = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], getEnv = () => {
|
|
2828
2914
|
const e = process.env.NODE_ENV || "production";
|
|
2829
2915
|
return validEnvList.includes(e) ? e : "production";
|
|
@@ -2890,27 +2976,27 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2890
2976
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
2891
2977
|
let s;
|
|
2892
2978
|
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
|
|
2893
|
-
let
|
|
2979
|
+
let p;
|
|
2894
2980
|
const f = c.name;
|
|
2895
2981
|
if (c instanceof HTMLInputElement)
|
|
2896
2982
|
if (c.type === "radio") {
|
|
2897
2983
|
if (c.checked)
|
|
2898
|
-
return
|
|
2984
|
+
return p = c.name, {
|
|
2899
2985
|
key: f,
|
|
2900
|
-
value:
|
|
2986
|
+
value: p
|
|
2901
2987
|
};
|
|
2902
2988
|
} else if (c.type === "checkbox")
|
|
2903
|
-
|
|
2989
|
+
p = c.checked;
|
|
2904
2990
|
else if (c.type === "number" || c.type === "range") {
|
|
2905
2991
|
const m = c.valueAsNumber;
|
|
2906
|
-
isNaN(m) || (
|
|
2992
|
+
isNaN(m) || (p = m);
|
|
2907
2993
|
} else
|
|
2908
|
-
c.type === "file" ?
|
|
2994
|
+
c.type === "file" ? p = c.files : p = c.value;
|
|
2909
2995
|
else
|
|
2910
|
-
|
|
2996
|
+
p = c.value;
|
|
2911
2997
|
return {
|
|
2912
2998
|
key: f,
|
|
2913
|
-
value:
|
|
2999
|
+
value: p
|
|
2914
3000
|
};
|
|
2915
3001
|
});
|
|
2916
3002
|
let a = this.contentType;
|
|
@@ -2920,8 +3006,8 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2920
3006
|
s = i;
|
|
2921
3007
|
else {
|
|
2922
3008
|
const c = {};
|
|
2923
|
-
Array.from(l).forEach(({ value:
|
|
2924
|
-
set(c, f,
|
|
3009
|
+
Array.from(l).forEach(({ value: p, key: f }) => {
|
|
3010
|
+
set(c, f, p);
|
|
2925
3011
|
}), s = JSON.stringify(c);
|
|
2926
3012
|
}
|
|
2927
3013
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -2933,11 +3019,11 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2933
3019
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
2934
3020
|
return;
|
|
2935
3021
|
this.formState = "sending";
|
|
2936
|
-
const
|
|
3022
|
+
const u = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
2937
3023
|
this.sendSubmissionsToEmail || ""
|
|
2938
3024
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
2939
3025
|
fetch(
|
|
2940
|
-
this.sendSubmissionsTo === "email" ?
|
|
3026
|
+
this.sendSubmissionsTo === "email" ? u : this.action,
|
|
2941
3027
|
{
|
|
2942
3028
|
body: s,
|
|
2943
3029
|
headers: r,
|
|
@@ -2945,19 +3031,19 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2945
3031
|
}
|
|
2946
3032
|
).then(
|
|
2947
3033
|
async (c) => {
|
|
2948
|
-
let
|
|
3034
|
+
let p;
|
|
2949
3035
|
const f = c.headers.get("content-type");
|
|
2950
|
-
if (f && f.indexOf("application/json") !== -1 ?
|
|
2951
|
-
let m = get(
|
|
3036
|
+
if (f && f.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
3037
|
+
let m = get(p, this.errorMessagePath);
|
|
2952
3038
|
m && (typeof m != "string" && (m = JSON.stringify(m)), this.formErrorMessage = m, this.mergeNewRootState({
|
|
2953
3039
|
formErrorMessage: m
|
|
2954
3040
|
}));
|
|
2955
3041
|
}
|
|
2956
|
-
if (this.responseData =
|
|
3042
|
+
if (this.responseData = p, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
2957
3043
|
const m = new CustomEvent("submit:success", {
|
|
2958
3044
|
detail: {
|
|
2959
3045
|
res: c,
|
|
2960
|
-
body:
|
|
3046
|
+
body: p
|
|
2961
3047
|
}
|
|
2962
3048
|
});
|
|
2963
3049
|
if (this.$refs.formRef) {
|
|
@@ -2978,12 +3064,12 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
|
|
|
2978
3064
|
}
|
|
2979
3065
|
},
|
|
2980
3066
|
(c) => {
|
|
2981
|
-
const
|
|
3067
|
+
const p = new CustomEvent("submit:error", {
|
|
2982
3068
|
detail: {
|
|
2983
3069
|
error: c
|
|
2984
3070
|
}
|
|
2985
3071
|
});
|
|
2986
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
3072
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = c, this.formState = "error");
|
|
2987
3073
|
}
|
|
2988
3074
|
);
|
|
2989
3075
|
}
|
|
@@ -3004,7 +3090,7 @@ function _sfc_render$b(e, t, n, o, r, s) {
|
|
|
3004
3090
|
name: e.name,
|
|
3005
3091
|
onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
|
|
3006
3092
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3007
|
-
e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d,
|
|
3093
|
+
e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d, u) => (openBlock(), createBlock(i, {
|
|
3008
3094
|
key: `form-block-${e.idx}`,
|
|
3009
3095
|
block: d,
|
|
3010
3096
|
context: e.builderContext,
|
|
@@ -3033,6 +3119,12 @@ function _sfc_render$b(e, t, n, o, r, s) {
|
|
|
3033
3119
|
], 16, _hoisted_1$5);
|
|
3034
3120
|
}
|
|
3035
3121
|
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-489330f7"]]), componentInfo$5 = {
|
|
3122
|
+
shouldReceiveBuilderProps: {
|
|
3123
|
+
builderBlock: !1,
|
|
3124
|
+
builderContext: !1,
|
|
3125
|
+
builderComponents: !1,
|
|
3126
|
+
builderLinkComponent: !1
|
|
3127
|
+
},
|
|
3036
3128
|
name: "Form:Input",
|
|
3037
3129
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3038
3130
|
inputs: [
|
|
@@ -3110,6 +3202,12 @@ function _sfc_render$a(e, t, n, o, r, s) {
|
|
|
3110
3202
|
}, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$4);
|
|
3111
3203
|
}
|
|
3112
3204
|
const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]), componentInfo$4 = {
|
|
3205
|
+
shouldReceiveBuilderProps: {
|
|
3206
|
+
builderBlock: !1,
|
|
3207
|
+
builderContext: !1,
|
|
3208
|
+
builderComponents: !1,
|
|
3209
|
+
builderLinkComponent: !1
|
|
3210
|
+
},
|
|
3113
3211
|
name: "Form:Select",
|
|
3114
3212
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3115
3213
|
defaultStyles: {
|
|
@@ -3173,6 +3271,12 @@ function _sfc_render$9(e, t, n, o, r, s) {
|
|
|
3173
3271
|
], 16, _hoisted_1$3);
|
|
3174
3272
|
}
|
|
3175
3273
|
const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), componentInfo$3 = {
|
|
3274
|
+
shouldReceiveBuilderProps: {
|
|
3275
|
+
builderBlock: !1,
|
|
3276
|
+
builderContext: !1,
|
|
3277
|
+
builderComponents: !1,
|
|
3278
|
+
builderLinkComponent: !1
|
|
3279
|
+
},
|
|
3176
3280
|
name: "Form:SubmitButton",
|
|
3177
3281
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3178
3282
|
defaultStyles: {
|
|
@@ -3208,6 +3312,12 @@ function _sfc_render$8(e, t, n, o, r, s) {
|
|
|
3208
3312
|
return openBlock(), createElementBlock("button", mergeProps({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), toDisplayString(e.text), 17);
|
|
3209
3313
|
}
|
|
3210
3314
|
const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), componentInfo$2 = {
|
|
3315
|
+
shouldReceiveBuilderProps: {
|
|
3316
|
+
builderBlock: !1,
|
|
3317
|
+
builderContext: !1,
|
|
3318
|
+
builderComponents: !1,
|
|
3319
|
+
builderLinkComponent: !1
|
|
3320
|
+
},
|
|
3211
3321
|
name: "Form:TextArea",
|
|
3212
3322
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3213
3323
|
inputs: [{
|
|
@@ -3267,6 +3377,12 @@ function _sfc_render$7(e, t, n, o, r, s) {
|
|
|
3267
3377
|
}, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, _hoisted_1$2);
|
|
3268
3378
|
}
|
|
3269
3379
|
const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7]]), componentInfo$1 = {
|
|
3380
|
+
shouldReceiveBuilderProps: {
|
|
3381
|
+
builderBlock: !1,
|
|
3382
|
+
builderContext: !1,
|
|
3383
|
+
builderComponents: !1,
|
|
3384
|
+
builderLinkComponent: !1
|
|
3385
|
+
},
|
|
3270
3386
|
// friendlyName?
|
|
3271
3387
|
name: "Raw:Img",
|
|
3272
3388
|
hideFromInsertMenu: !0,
|
|
@@ -3385,7 +3501,13 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
|
|
|
3385
3501
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
3386
3502
|
defaultValue: !0,
|
|
3387
3503
|
advanced: !0
|
|
3388
|
-
}]
|
|
3504
|
+
}],
|
|
3505
|
+
shouldReceiveBuilderProps: {
|
|
3506
|
+
builderBlock: !0,
|
|
3507
|
+
builderContext: !1,
|
|
3508
|
+
builderComponents: !1,
|
|
3509
|
+
builderLinkComponent: !1
|
|
3510
|
+
}
|
|
3389
3511
|
}, _sfc_main$6 = defineComponent({
|
|
3390
3512
|
name: "builder-video",
|
|
3391
3513
|
props: [
|
|
@@ -3455,7 +3577,7 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
|
|
|
3455
3577
|
}
|
|
3456
3578
|
};
|
|
3457
3579
|
function _sfc_render$5(e, t, n, o, r, s) {
|
|
3458
|
-
var i, l, a, d,
|
|
3580
|
+
var i, l, a, d, u, c, p;
|
|
3459
3581
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3460
3582
|
createElementVNode("video", mergeProps({
|
|
3461
3583
|
class: "builder-video",
|
|
@@ -3492,10 +3614,10 @@ function _sfc_render$5(e, t, n, o, r, s) {
|
|
|
3492
3614
|
fontSize: "0px"
|
|
3493
3615
|
})
|
|
3494
3616
|
}, null, 4)) : createCommentVNode("", !0),
|
|
3495
|
-
(
|
|
3617
|
+
(u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length && e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
3496
3618
|
renderSlot(e.$slots, "default")
|
|
3497
3619
|
])) : createCommentVNode("", !0),
|
|
3498
|
-
(
|
|
3620
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
3499
3621
|
renderSlot(e.$slots, "default")
|
|
3500
3622
|
])) : createCommentVNode("", !0)
|
|
3501
3623
|
]);
|
|
@@ -3746,9 +3868,9 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3746
3868
|
locale: l,
|
|
3747
3869
|
apiVersion: a = DEFAULT_API_VERSION,
|
|
3748
3870
|
fields: d,
|
|
3749
|
-
omit:
|
|
3871
|
+
omit: u,
|
|
3750
3872
|
offset: c,
|
|
3751
|
-
cacheSeconds:
|
|
3873
|
+
cacheSeconds: p,
|
|
3752
3874
|
staleCacheSeconds: f,
|
|
3753
3875
|
sort: m,
|
|
3754
3876
|
includeUnpublished: b
|
|
@@ -3757,13 +3879,13 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3757
3879
|
throw new Error("Missing API key");
|
|
3758
3880
|
if (!["v3"].includes(a))
|
|
3759
3881
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
3760
|
-
const
|
|
3761
|
-
if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(
|
|
3882
|
+
const C = t !== 1, g = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
3883
|
+
if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(C)), g.searchParams.set("includeRefs", String(!0)), l && g.searchParams.set("locale", l), i && g.searchParams.set("enrich", String(i)), g.searchParams.set("omit", u || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), p && isPositiveNumber(p) && g.searchParams.set("cacheSeconds", String(p)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
|
|
3762
3884
|
const k = flatten({
|
|
3763
3885
|
sort: m
|
|
3764
3886
|
});
|
|
3765
|
-
for (const
|
|
3766
|
-
g.searchParams.set(
|
|
3887
|
+
for (const S in k)
|
|
3888
|
+
g.searchParams.set(S, JSON.stringify(k[S]));
|
|
3767
3889
|
}
|
|
3768
3890
|
const I = {
|
|
3769
3891
|
...getBuilderSearchParamsFromWindow(),
|
|
@@ -3775,8 +3897,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
|
|
|
3775
3897
|
const k = flattenMongoQuery({
|
|
3776
3898
|
query: o
|
|
3777
3899
|
});
|
|
3778
|
-
for (const
|
|
3779
|
-
g.searchParams.set(
|
|
3900
|
+
for (const S in k)
|
|
3901
|
+
g.searchParams.set(S, JSON.stringify(k[S]));
|
|
3780
3902
|
}
|
|
3781
3903
|
return g;
|
|
3782
3904
|
}, checkContentHasResults = (e) => "results" in e;
|
|
@@ -4014,7 +4136,7 @@ function isFromTrustedHost(e, t) {
|
|
|
4014
4136
|
const n = new URL(t.origin), o = n.hostname;
|
|
4015
4137
|
return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
4016
4138
|
}
|
|
4017
|
-
const SDK_VERSION = "1.
|
|
4139
|
+
const SDK_VERSION = "1.1.1", registry = {};
|
|
4018
4140
|
function register(e, t) {
|
|
4019
4141
|
let n = registry[e];
|
|
4020
4142
|
if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
|
|
@@ -4084,18 +4206,18 @@ const setupBrowserForEditing = (e = {}) => {
|
|
|
4084
4206
|
if (r != null && r.type)
|
|
4085
4207
|
switch (r.type) {
|
|
4086
4208
|
case "builder.evaluate": {
|
|
4087
|
-
const l = r.data.text, a = r.data.arguments || [], d = r.data.id,
|
|
4088
|
-
let c,
|
|
4209
|
+
const l = r.data.text, a = r.data.arguments || [], d = r.data.id, u = new Function(l);
|
|
4210
|
+
let c, p = null;
|
|
4089
4211
|
try {
|
|
4090
|
-
c =
|
|
4212
|
+
c = u.apply(null, a);
|
|
4091
4213
|
} catch (f) {
|
|
4092
|
-
|
|
4214
|
+
p = f;
|
|
4093
4215
|
}
|
|
4094
|
-
|
|
4216
|
+
p ? (s = window.parent) == null || s.postMessage({
|
|
4095
4217
|
type: "builder.evaluateError",
|
|
4096
4218
|
data: {
|
|
4097
4219
|
id: d,
|
|
4098
|
-
error:
|
|
4220
|
+
error: p.message
|
|
4099
4221
|
}
|
|
4100
4222
|
}, "*") : c && typeof c.then == "function" ? c.then((f) => {
|
|
4101
4223
|
var m;
|
|
@@ -4709,7 +4831,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4709
4831
|
trustedHosts: e.trustedHosts
|
|
4710
4832
|
}, {}), {
|
|
4711
4833
|
default: withCtx(() => {
|
|
4712
|
-
var
|
|
4834
|
+
var u, c, p, f, m, b, C;
|
|
4713
4835
|
return [
|
|
4714
4836
|
e.isSsrAbTest ? (openBlock(), createBlock(i, {
|
|
4715
4837
|
key: 0,
|
|
@@ -4719,12 +4841,12 @@ function _sfc_render$2(e, t, n, o, r, s) {
|
|
|
4719
4841
|
e.TARGET !== "reactNative" ? (openBlock(), createBlock(l, {
|
|
4720
4842
|
key: 1,
|
|
4721
4843
|
isNestedRender: e.isNestedRender,
|
|
4722
|
-
contentId: (
|
|
4723
|
-
cssCode: (
|
|
4844
|
+
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
4845
|
+
cssCode: (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.cssCode,
|
|
4724
4846
|
customFonts: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4725
4847
|
}, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : createCommentVNode("", !0),
|
|
4726
4848
|
createVNode(a, {
|
|
4727
|
-
blocks: (
|
|
4849
|
+
blocks: (C = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : C.blocks,
|
|
4728
4850
|
context: e.builderContextSignal,
|
|
4729
4851
|
registeredComponents: e.registeredComponents,
|
|
4730
4852
|
linkComponent: e.linkComponent
|
|
@@ -4773,6 +4895,8 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
|
|
|
4773
4895
|
},
|
|
4774
4896
|
mounted() {
|
|
4775
4897
|
},
|
|
4898
|
+
updated() {
|
|
4899
|
+
},
|
|
4776
4900
|
computed: {
|
|
4777
4901
|
updateCookieAndStylesScriptStr() {
|
|
4778
4902
|
var e;
|
|
@@ -4816,7 +4940,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
|
|
|
4816
4940
|
id: "builderio-variants-visibility",
|
|
4817
4941
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4818
4942
|
}, null, 8, ["scriptStr"]),
|
|
4819
|
-
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d,
|
|
4943
|
+
(openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.getVariants(e.content), (d, u) => (openBlock(), createBlock(a, {
|
|
4820
4944
|
key: d.testVariationId,
|
|
4821
4945
|
isNestedRender: e.isNestedRender,
|
|
4822
4946
|
content: d,
|
|
@@ -4943,7 +5067,7 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
|
|
|
4943
5067
|
}
|
|
4944
5068
|
});
|
|
4945
5069
|
function _sfc_render(e, t, n, o, r, s) {
|
|
4946
|
-
var l, a, d,
|
|
5070
|
+
var l, a, d, u, c;
|
|
4947
5071
|
const i = resolveComponent("ContentVariants");
|
|
4948
5072
|
return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4949
5073
|
createVNode(i, {
|
|
@@ -4958,7 +5082,7 @@ function _sfc_render(e, t, n, o, r, s) {
|
|
|
4958
5082
|
data: {
|
|
4959
5083
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
4960
5084
|
...e.builderContext.localState,
|
|
4961
|
-
...(
|
|
5085
|
+
...(u = (d = e.contentToUse) == null ? void 0 : d.data) == null ? void 0 : u.state
|
|
4962
5086
|
},
|
|
4963
5087
|
canTrack: e.builderContext.canTrack,
|
|
4964
5088
|
model: (c = e.symbol) == null ? void 0 : c.model,
|