@builder.io/sdk-vue 1.0.14 → 1.0.16
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-z7sGkBTw.js → block-styles-6TCYHFhw.js} +6 -5
- package/lib/browser/block-styles-Ms1wQqgK.cjs +1 -0
- package/lib/browser/{block-wrapper-R9MDSksK.cjs → block-wrapper-8w1ok_04.cjs} +1 -1
- package/lib/browser/{block-wrapper-OUFH1h7n.js → block-wrapper-TDrSjeun.js} +3 -3
- package/lib/browser/{component-ref-LhEgM7QI.js → component-ref-3TnMqFsh.js} +2 -2
- package/lib/browser/{component-ref-cnl1wJ7V.cjs → component-ref-piWtyJuS.cjs} +1 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/browser/components/content-variants/helpers.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-8me_ULV1.js → get-block-properties-swAAqr5Q.js} +1 -1
- package/lib/browser/{get-block-properties-MB_CAVzA.cjs → get-block-properties-znBNJG9m.cjs} +1 -1
- package/lib/browser/{index-lxlrEO9W.js → index-JoCrt5Mj.js} +33 -19
- package/lib/browser/index-ZID1XPKY.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-5r2RNm5K.js → repeated-block-0mjIhErN.js} +2 -2
- package/lib/browser/{repeated-block-LUwQWzPp.cjs → repeated-block-Aag6lq7R.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/block-styles-gsIg0xFp.cjs +1 -0
- package/lib/{node/block-styles-XgGq-J65.js → edge/block-styles-wHtoAtTy.js} +6 -5
- package/lib/edge/{block-wrapper-y2793ZN5.js → block-wrapper-CHWNqOBk.js} +3 -3
- package/lib/{node/block-wrapper-sv0gfrKF.cjs → edge/block-wrapper-y134R03K.cjs} +1 -1
- package/lib/edge/{component-ref-znPa_yPg.js → component-ref-Jjo_mmFM.js} +2 -2
- package/lib/{node/component-ref-rsCbGdca.cjs → edge/component-ref-dz-_8Rct.cjs} +1 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/edge/components/content-variants/helpers.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-wnBoh6NI.cjs → get-block-properties-nuJvnYlI.cjs} +1 -1
- package/lib/{node/get-block-properties-jJY9Yegb.js → edge/get-block-properties-pA4T7Rp3.js} +1 -1
- package/lib/edge/{index-xBtUJWIQ.js → index-cQ_3UsPy.js} +33 -19
- package/lib/edge/{index-17AnhyKn.cjs → index-jlM1T4Q0.cjs} +12 -12
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-7K33zRnk.cjs → repeated-block-CRyZSIkn.cjs} +1 -1
- package/lib/edge/{repeated-block-e19DbJ9g.js → repeated-block-rzrX2Oxi.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/block-styles-VEtxLEov.cjs +1 -0
- package/lib/{edge/block-styles-B3awvzyT.js → node/block-styles-_FqGGl6q.js} +6 -5
- package/lib/{edge/block-wrapper-xCm3uEEu.cjs → node/block-wrapper-7jTb1ywg.cjs} +1 -1
- package/lib/node/{block-wrapper-I1JmYM5e.js → block-wrapper-L7vUm63u.js} +3 -3
- package/lib/node/{component-ref--eSEr7Gt.js → component-ref-KGHZuMWD.js} +2 -2
- package/lib/{edge/component-ref-wcbtAeIh.cjs → node/component-ref-abZqErrZ.cjs} +1 -1
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
- package/lib/node/components/content-variants/helpers.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-abyvkMNc.js → node/get-block-properties-VsjMrc1l.js} +1 -1
- package/lib/node/{get-block-properties-FOFsIVzD.cjs → get-block-properties-xYp_r32a.cjs} +1 -1
- package/lib/node/{index-IFSblmpH.js → index-t3tNER21.js} +37 -23
- package/lib/node/index-vItLZEt6.cjs +206 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-buhSqMYu.cjs → repeated-block-v33kirpq.cjs} +1 -1
- package/lib/node/{repeated-block-lNY93wED.js → repeated-block-xPkQgRw-.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-FdmS__fC.cjs +0 -1
- package/lib/browser/functions/get-content/types.d.ts +0 -131
- package/lib/browser/index-ad1QjFMU.cjs +0 -166
- package/lib/edge/block-styles-Xju5355Z.cjs +0 -1
- package/lib/edge/functions/get-content/types.d.ts +0 -131
- package/lib/node/block-styles-YqghwSbU.cjs +0 -1
- package/lib/node/functions/get-content/types.d.ts +0 -131
- package/lib/node/index-5GO07feh.cjs +0 -206
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as
|
|
3
|
-
import { _, T as
|
|
2
|
+
import { defineComponent as k, resolveComponent as y, openBlock as x, createBlock as f, createCommentVNode as b } from "vue";
|
|
3
|
+
import { _ as B, T as _, g as d, c as m, a as g, b as r, d as S, e as C } from "./index-JoCrt5Mj.js";
|
|
4
4
|
const v = k({
|
|
5
5
|
name: "block-styles",
|
|
6
|
-
components: { InlinedStyles:
|
|
6
|
+
components: { InlinedStyles: B },
|
|
7
7
|
props: ["block", "context"],
|
|
8
8
|
data() {
|
|
9
|
-
return { TARGET:
|
|
9
|
+
return { TARGET: _ };
|
|
10
10
|
},
|
|
11
11
|
computed: {
|
|
12
12
|
canShowBlock() {
|
|
@@ -60,8 +60,9 @@ function T(t, e, o, c, a, l) {
|
|
|
60
60
|
const s = y("inlined-styles");
|
|
61
61
|
return t.TARGET !== "reactNative" && t.css && t.canShowBlock ? (x(), f(s, {
|
|
62
62
|
key: 0,
|
|
63
|
+
id: "builderio-block",
|
|
63
64
|
styles: t.css
|
|
64
|
-
}, null, 8, ["styles"])) :
|
|
65
|
+
}, null, 8, ["styles"])) : b("", !0);
|
|
65
66
|
}
|
|
66
67
|
const z = /* @__PURE__ */ C(v, [["render", T]]);
|
|
67
68
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),t=require("./index-ZID1XPKY.cjs"),h=s.defineComponent({name:"block-styles",components:{InlinedStyles:t._sfc_main},props:["block","context"],data(){return{TARGET:t.TARGET}},computed:{canShowBlock(){const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return t.checkIsDefined(e.hide)?!e.hide:t.checkIsDefined(e.show)?e.show:!0},css(){var d;const e=t.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),o=e.responsiveStyles,c=this.context.content,r=t.getSizesForBreakpoints(((d=c==null?void 0:c.meta)==null?void 0:d.breakpoints)||{}),a=o==null?void 0:o.large,i=o==null?void 0:o.medium,n=o==null?void 0:o.small,l=e.id;if(!l)return"";const u=a?t.createCssClass({className:l,styles:a}):"",S=i?t.createCssClass({className:l,styles:i,mediaQuery:t.getMaxWidthQueryForSize("medium",r)}):"",m=n?t.createCssClass({className:l,styles:n,mediaQuery:t.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function k(e,o,c,r,a,i){const n=s.resolveComponent("inlined-styles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(s.openBlock(),s.createBlock(n,{key:0,id:"builderio-block",styles:e.css},null,8,["styles"])):s.createCommentVNode("",!0)}const p=t._export_sfc(h,[["render",k]]);exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-znBNJG9m.cjs"),n=require("./index-ZID1XPKY.cjs"),c=()=>Promise.resolve().then(()=>require("./index-ZID1XPKY.cjs")).then(e=>e.dynamicRenderer).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}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("dynamic-renderer");return t.openBlock(),t.createBlock(r,{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:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
4
|
-
import { e as m } from "./index-
|
|
5
|
-
const d = () => import("./index-
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-swAAqr5Q.js";
|
|
4
|
+
import { e as m } from "./index-JoCrt5Mj.js";
|
|
5
|
+
const d = () => import("./index-JoCrt5Mj.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as m, openBlock as r, createBlock as l, resolveDynamicComponent as k, mergeProps as d, withCtx as u, renderSlot as P, resolveComponent as B, normalizeProps as g, createElementBlock as $, Fragment as v, renderList as S, createCommentVNode as W } from "vue";
|
|
3
|
-
import { e as f, B as h, w } from "./index-
|
|
4
|
-
import { g as R, a as b } from "./get-block-properties-
|
|
3
|
+
import { e as f, B as h, w } from "./index-JoCrt5Mj.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-properties-swAAqr5Q.js";
|
|
5
5
|
const I = m({
|
|
6
6
|
name: "interactive-element",
|
|
7
7
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-ZID1XPKY.cjs"),a=require("./get-block-properties-znBNJG9m.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,c,l,n,s){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=p._export_sfc(u,[["render",d]]),B=({componentOptions:e,builderBlock:t,context:c,componentRef:l,includeBlockProps:n,isInteractive:s,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return s?{Wrapper:l,block:t,context:c,wrapperProps:e,includeBlockProps:n}:r},f=o.defineComponent({name:"component-ref",components:{Block:p.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?p.wrapComponentRef(m):this.componentRef,getWrapperProps:B}}});function b(e,t,c,l,n,s){const i=o.resolveComponent("block");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,k)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const C=p._export_sfc(f,[["render",b]]);exports.default=C;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
19
19
|
}>, unknown, {
|
|
20
20
|
shouldRenderVariants: boolean;
|
|
21
21
|
TARGET: import("../../types/targets.js").Target;
|
|
22
|
-
|
|
22
|
+
getInitVariantsFnsScriptString: () => string;
|
|
23
23
|
getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../server-index.js").BuilderContent>) => {
|
|
24
24
|
testVariationId: string | undefined;
|
|
25
25
|
id: string | undefined;
|
|
@@ -32,7 +32,7 @@ type VariantData = {
|
|
|
32
32
|
id: string;
|
|
33
33
|
testRatio?: number;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const getInitVariantsFnsScriptString: () => string;
|
|
36
36
|
export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
|
|
37
37
|
export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
|
|
38
38
|
variationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.16";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const a=require("./index-
|
|
1
|
+
var d=require("./style.css");const a=require("./index-ZID1XPKY.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1,enableCache:!0});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=c(o);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(s,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;
|
|
@@ -591,22 +591,22 @@ const Lt = ({
|
|
|
591
591
|
},
|
|
592
592
|
block: o
|
|
593
593
|
}));
|
|
594
|
-
}, Dt = () => import("./block-styles-
|
|
594
|
+
}, Dt = () => import("./block-styles-6TCYHFhw.js").then((e) => e.default).catch((e) => {
|
|
595
595
|
throw console.error(
|
|
596
596
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
597
597
|
e
|
|
598
598
|
), e;
|
|
599
|
-
}), jt = () => import("./block-wrapper-
|
|
599
|
+
}), jt = () => import("./block-wrapper-TDrSjeun.js").then((e) => e.default).catch((e) => {
|
|
600
600
|
throw console.error(
|
|
601
601
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
602
602
|
e
|
|
603
603
|
), e;
|
|
604
|
-
}), Ht = () => import("./component-ref-
|
|
604
|
+
}), Ht = () => import("./component-ref-3TnMqFsh.js").then((e) => e.default).catch((e) => {
|
|
605
605
|
throw console.error(
|
|
606
606
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
607
607
|
e
|
|
608
608
|
), e;
|
|
609
|
-
}), Kt = () => import("./repeated-block-
|
|
609
|
+
}), Kt = () => import("./repeated-block-0mjIhErN.js").then((e) => e.default).catch((e) => {
|
|
610
610
|
throw console.error(
|
|
611
611
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
612
612
|
e
|
|
@@ -858,7 +858,10 @@ function Xt(e, t, n, o, s, r) {
|
|
|
858
858
|
}
|
|
859
859
|
const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
|
|
860
860
|
render() {
|
|
861
|
-
return Re("style", {
|
|
861
|
+
return Re("style", {
|
|
862
|
+
innerHTML: this.styles,
|
|
863
|
+
"data-id": this.id
|
|
864
|
+
});
|
|
862
865
|
},
|
|
863
866
|
name: "inlined-styles",
|
|
864
867
|
props: ["styles", "id"]
|
|
@@ -1035,6 +1038,7 @@ function en(e, t, n, o, s, r) {
|
|
|
1035
1038
|
}, {}), [
|
|
1036
1039
|
e.TARGET !== "reactNative" ? (u(), g(i, {
|
|
1037
1040
|
key: 0,
|
|
1041
|
+
id: "builderio-columns",
|
|
1038
1042
|
styles: e.columnsStyles
|
|
1039
1043
|
}, null, 8, ["styles"])) : v("", !0),
|
|
1040
1044
|
(u(!0), h($, null, L(e.columns, (c, m) => (u(), g(l, {
|
|
@@ -1066,7 +1070,7 @@ function en(e, t, n, o, s, r) {
|
|
|
1066
1070
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1067
1071
|
], 16);
|
|
1068
1072
|
}
|
|
1069
|
-
const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-
|
|
1073
|
+
const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-4eaba73b"]]), nn = f({
|
|
1070
1074
|
name: "builder-fragment-component",
|
|
1071
1075
|
props: []
|
|
1072
1076
|
});
|
|
@@ -2998,7 +3002,10 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
|
|
|
2998
3002
|
"${t}", "${e}", ${Ge}
|
|
2999
3003
|
)`, Ye = f({
|
|
3000
3004
|
render() {
|
|
3001
|
-
return Re("script", {
|
|
3005
|
+
return Re("script", {
|
|
3006
|
+
innerHTML: this.scriptStr,
|
|
3007
|
+
"data-id": this.id
|
|
3008
|
+
});
|
|
3002
3009
|
},
|
|
3003
3010
|
name: "inlined-script",
|
|
3004
3011
|
props: ["scriptStr", "id"]
|
|
@@ -3095,7 +3102,7 @@ async function fe(e) {
|
|
|
3095
3102
|
}
|
|
3096
3103
|
const os = async (e) => {
|
|
3097
3104
|
const t = he(e);
|
|
3098
|
-
return await (await Qe(t.href)).json();
|
|
3105
|
+
return await (await (e.fetch ?? Qe)(t.href, e.fetchOptions)).json();
|
|
3099
3106
|
}, ss = async (e, t, n = he(e)) => {
|
|
3100
3107
|
const o = H(e.canTrack);
|
|
3101
3108
|
if (n.search.includes("preview="), !o || !(I() || V === "reactNative"))
|
|
@@ -3320,7 +3327,7 @@ function nt(e, t) {
|
|
|
3320
3327
|
const n = new URL(t.origin), o = n.hostname;
|
|
3321
3328
|
return (e || vs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
|
|
3322
3329
|
}
|
|
3323
|
-
const Cs = "1.0.
|
|
3330
|
+
const Cs = "1.0.16", Ie = {};
|
|
3324
3331
|
function ws(e, t) {
|
|
3325
3332
|
let n = Ie[e];
|
|
3326
3333
|
if (n || (n = Ie[e] = []), n.push(t), I()) {
|
|
@@ -3872,7 +3879,10 @@ ${xs(this.isNestedRender)}
|
|
|
3872
3879
|
});
|
|
3873
3880
|
function Ws(e, t, n, o, s, r) {
|
|
3874
3881
|
const i = k("inlined-styles");
|
|
3875
|
-
return u(), g(i, {
|
|
3882
|
+
return u(), g(i, {
|
|
3883
|
+
id: "builderio-content",
|
|
3884
|
+
styles: e.injectedStyles
|
|
3885
|
+
}, null, 8, ["styles"]);
|
|
3876
3886
|
}
|
|
3877
3887
|
const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
|
|
3878
3888
|
content: e,
|
|
@@ -4021,6 +4031,7 @@ function Ms(e, t, n, o, s, r) {
|
|
|
4021
4031
|
return [
|
|
4022
4032
|
e.isSsrAbTest ? (u(), g(i, {
|
|
4023
4033
|
key: 0,
|
|
4034
|
+
id: "builderio-variant-visibility",
|
|
4024
4035
|
scriptStr: e.scriptStr
|
|
4025
4036
|
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
4026
4037
|
e.TARGET !== "reactNative" ? (u(), g(a, {
|
|
@@ -4074,7 +4085,7 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), js = f({
|
|
|
4074
4085
|
content: this.content
|
|
4075
4086
|
}),
|
|
4076
4087
|
TARGET: V,
|
|
4077
|
-
|
|
4088
|
+
getInitVariantsFnsScriptString: Go,
|
|
4078
4089
|
getVariants: G
|
|
4079
4090
|
};
|
|
4080
4091
|
},
|
|
@@ -4108,23 +4119,26 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), js = f({
|
|
|
4108
4119
|
}
|
|
4109
4120
|
});
|
|
4110
4121
|
function Hs(e, t, n, o, s, r) {
|
|
4111
|
-
var c;
|
|
4112
4122
|
const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
|
|
4113
4123
|
return u(), h($, null, [
|
|
4114
4124
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
|
|
4115
4125
|
key: 0,
|
|
4116
|
-
|
|
4126
|
+
id: "builderio-init-variants-fns",
|
|
4127
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
4117
4128
|
}, null, 8, ["scriptStr"])) : v("", !0),
|
|
4118
4129
|
e.shouldRenderVariants ? (u(), h($, { key: 1 }, [
|
|
4119
4130
|
x(a, {
|
|
4120
|
-
id:
|
|
4131
|
+
id: "builderio-variants",
|
|
4121
4132
|
styles: e.hideVariantsStyleString
|
|
4122
|
-
}, null, 8, ["
|
|
4123
|
-
x(i, {
|
|
4124
|
-
|
|
4125
|
-
|
|
4133
|
+
}, null, 8, ["styles"]),
|
|
4134
|
+
x(i, {
|
|
4135
|
+
id: "builderio-variants-visibility",
|
|
4136
|
+
scriptStr: e.updateCookieAndStylesScriptStr
|
|
4137
|
+
}, null, 8, ["scriptStr"]),
|
|
4138
|
+
(u(!0), h($, null, L(e.getVariants(e.content), (c, m) => (u(), g(l, {
|
|
4139
|
+
key: c.testVariationId,
|
|
4126
4140
|
isNestedRender: e.isNestedRender,
|
|
4127
|
-
content:
|
|
4141
|
+
content: c,
|
|
4128
4142
|
showContent: !1,
|
|
4129
4143
|
model: e.model,
|
|
4130
4144
|
data: e.data,
|