@builder.io/sdk-vue 4.0.10 → 4.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/{awaiter-_QmjZdDa.cjs → awaiter-Z8G2OoIt.cjs} +1 -1
- package/lib/browser/{awaiter-SGR-8Tyj.js → awaiter-bHhcCAw-.js} +1 -1
- package/lib/browser/{block-styles-GhS2Neb5.cjs → block-styles-4D3dxqsc.cjs} +1 -1
- package/lib/browser/{block-styles-9_PWytNG.js → block-styles-EcElF-2-.js} +1 -1
- package/lib/browser/{block-wrapper-LRJ-a4Yv.cjs → block-wrapper-BphBSU8p.cjs} +1 -1
- package/lib/browser/{block-wrapper-YBBdYoR2.js → block-wrapper-y6shAIfG.js} +3 -3
- package/lib/browser/blocks/img/img.vue.d.ts +3 -1
- package/lib/browser/{component-ref-aowMl_8a.js → component-ref-pdyC0C4W.js} +3 -3
- package/lib/browser/{component-ref-TrZpO6ax.cjs → component-ref-ruzDdcxx.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-ZMO5aCzy.cjs → get-block-properties--_pDaeyi.cjs} +1 -1
- package/lib/browser/{get-block-properties-cWyJs3dm.js → get-block-properties-VN3bVHPk.js} +1 -1
- package/lib/browser/{index-XGOQf5Zo.js → index-HGAItB4u.js} +63 -54
- package/lib/browser/{index-ZOIaGZSB.cjs → index-M8XDYZV0.cjs} +10 -10
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-Hv_GjZAU.js → repeated-block-SZu5_uPp.js} +2 -2
- package/lib/browser/{repeated-block-RF3rdPho.cjs → repeated-block-q0lw0-pY.cjs} +1 -1
- package/lib/edge/{awaiter-8DxOpj9t.js → awaiter-D-JGcApV.js} +1 -1
- package/lib/edge/{awaiter-Jd_e61ZE.cjs → awaiter-F2W7AY8Z.cjs} +1 -1
- package/lib/edge/{block-styles-CBbRK24W.cjs → block-styles-3l9Hduxi.cjs} +1 -1
- package/lib/edge/{block-styles-alNWUQlB.js → block-styles-Zigt4UYf.js} +1 -1
- package/lib/{node/block-wrapper-vSVxY0Wx.js → edge/block-wrapper-2kNtVKeM.js} +3 -3
- package/lib/{node/block-wrapper-jwKlwSSL.cjs → edge/block-wrapper-Bls5leYs.cjs} +1 -1
- package/lib/edge/blocks/img/img.vue.d.ts +3 -1
- package/lib/edge/{component-ref-WcUEBxse.cjs → component-ref-CH_xiCcQ.cjs} +1 -1
- package/lib/{node/component-ref-9vbMmjMt.js → edge/component-ref-u9bVD2Kc.js} +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-BM_LURWO.js → get-block-properties-9o9yHvzD.js} +1 -1
- package/lib/edge/{get-block-properties-fHOkPyWO.cjs → get-block-properties-sOm9X0n9.cjs} +1 -1
- package/lib/edge/{index-ajjjq0JL.cjs → index-IS1IQwNC.cjs} +15 -15
- package/lib/edge/{index-9YK4Me2G.js → index-yOdx5G7s.js} +220 -211
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-8KS-FGzb.cjs → edge/repeated-block-0RgMkM-2.cjs} +1 -1
- package/lib/{node/repeated-block-YIQ1YLOA.js → edge/repeated-block-DoFtUtQg.js} +2 -2
- package/lib/node/{awaiter-zmPuC-98.js → awaiter-SRwmemu4.js} +1 -1
- package/lib/node/{awaiter-oYZdOTCc.cjs → awaiter-_KzRk-u-.cjs} +1 -1
- package/lib/node/{block-styles-Y8npu4LN.cjs → block-styles-SBN_mUQo.cjs} +1 -1
- package/lib/node/{block-styles-jP9_QKN9.js → block-styles-kox1-DtF.js} +1 -1
- package/lib/{edge/block-wrapper-7f07MDcC.cjs → node/block-wrapper-bpKnw_xs.cjs} +1 -1
- package/lib/{edge/block-wrapper-OGrsxDK8.js → node/block-wrapper-w12OzN8B.js} +3 -3
- package/lib/node/blocks/img/img.vue.d.ts +3 -1
- package/lib/node/{component-ref-KhG0RJfO.cjs → component-ref-U9LHJYny.cjs} +1 -1
- package/lib/{edge/component-ref-qiOVFEA2.js → node/component-ref-WED2OrTe.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-ThY3npVI.js → get-block-properties-_vqrrxIy.js} +1 -1
- package/lib/node/{get-block-properties-V4NMvZLg.cjs → get-block-properties-uiECbfRP.cjs} +1 -1
- package/lib/node/{index-ear7pTzY.cjs → index-Cx55tjMN.cjs} +10 -10
- package/lib/node/{index-plSOyo89.js → index-i-g6zKfw.js} +63 -54
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-z91UKOom.cjs → node/repeated-block-4fKSO5gP.cjs} +1 -1
- package/lib/{edge/repeated-block-yuVnH3DH.js → node/repeated-block-ZUQiLiJJ.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-M8XDYZV0.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,i,c,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-
|
|
1
|
+
var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),s=require("./index-M8XDYZV0.cjs"),x=a.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,k,C,f;const e=this.block,t=e.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((S=o==null?void 0:o.meta)==null?void 0:S.breakpoints)||{}),d=!!((k=(h=o==null?void 0:o.meta)==null?void 0:h.breakpoints)!=null&&k.xsmall),i=t==null?void 0:t.large,c=t==null?void 0:t.medium,u=t==null?void 0:t.small,y=t==null?void 0:t.xsmall,n=e.id;if(!n)return"";const b=i?s.createCssClass({className:n,styles:i}):"",g=c?s.createCssClass({className:n,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",v=u?s.createCssClass({className:n,styles:u,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"",B=y&&d?s.createCssClass({className:n,styles:y,mediaQuery:s.getMaxWidthQueryForSize("xsmall",r)}):"",l=e.animations&&e.animations.find(m=>m.trigger==="hover");let p="";if(l){const m=((f=(C=l.steps)==null?void 0:C[1])==null?void 0:f.styles)||{};p=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${l.duration}s ${s.camelToKebabCase(l.easing)}`,transitionDelay:l.delay?`${l.delay}s`:"0s"}})||""}return[b,g,v,B,p].join(" ")}}});function T(e,t,o,r,d,i){const c=a.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(a.openBlock(),a.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):a.createCommentVNode("",!0)}const $=s._export_sfc(x,[["render",T]]);exports.default=$;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as _, resolveComponent as x, openBlock as T, createBlock as w, createCommentVNode as I } from "vue";
|
|
3
|
-
import { _ as N, T as Q, c as C, g as z, a, b as m, d as A, e as D } from "./index-
|
|
3
|
+
import { _ as N, T as Q, c as C, g as z, a, b as m, d as A, e as D } from "./index-HGAItB4u.js";
|
|
4
4
|
const E = _({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: N },
|
|
@@ -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--_pDaeyi.cjs"),n=require("./index-M8XDYZV0.cjs"),c=()=>Promise.resolve().then(()=>require("./index-M8XDYZV0.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("DynamicRenderer");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-VN3bVHPk.js";
|
|
4
|
+
import { e as m } from "./index-HGAItB4u.js";
|
|
5
|
+
const d = () => import("./index-HGAItB4u.js").then((e) => e.G).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
|
|
@@ -21,7 +21,9 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
21
21
|
}>, unknown, {
|
|
22
22
|
isEditing: typeof isEditing;
|
|
23
23
|
filterAttrs: typeof filterAttrs;
|
|
24
|
-
}, {
|
|
24
|
+
}, {
|
|
25
|
+
srcSetToUse(): string | undefined;
|
|
26
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
25
27
|
image?: any;
|
|
26
28
|
attributes?: any;
|
|
27
29
|
backgroundPosition?: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as u, defineAsyncComponent as g, resolveComponent as k, openBlock as n, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as h, normalizeProps as f, mergeProps as b, createElementBlock as B, Fragment as W, renderList as $, createCommentVNode as v } from "vue";
|
|
3
|
-
import { e as C, B as y, w as S } from "./index-
|
|
4
|
-
import { a as w, g as A } from "./get-block-properties-
|
|
5
|
-
const R = () => import("./awaiter-
|
|
3
|
+
import { e as C, B as y, w as S } from "./index-HGAItB4u.js";
|
|
4
|
+
import { a as w, g as A } from "./get-block-properties-VN3bVHPk.js";
|
|
5
|
+
const R = () => import("./awaiter-bHhcCAw-.js").then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var B=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-
|
|
1
|
+
var B=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-M8XDYZV0.cjs"),l=require("./get-block-properties--_pDaeyi.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-Z8G2OoIt.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),k=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["wrapperProps","block","includeBlockProps","context","Wrapper"],data(){return{forceRenderCount:0}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{attributes(){return this.includeBlockProps?{...l.getBlockProperties({block:this.block,context:this.context}),...l.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}},targetWrapperProps(){return{...this.wrapperProps,...Object.keys(this.attributes).length>0?{attributes:this.attributes}:{}}},onUpdateHook0(){var e,o;return{0:this.wrapperProps,1:(o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options}}}});function h(e,o,a,c,r,i){const n=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(n,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:1},e.targetWrapperProps)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16))}const m=s._export_sfc(k,[["render",h]]),f=({componentOptions:e,builderBlock:o,context:a,componentRef:c,includeBlockProps:r,isInteractive:i,contextValue:n})=>{const p={...e,...r?{attributes:l.getBlockProperties({block:o,context:n})}:{}};return i?{Wrapper:c,block:o,context:a,wrapperProps:e,includeBlockProps:r}:p},b=t.defineComponent({name:"component-ref",components:{Block:s.Block,InteractiveElement:m},props:["componentOptions","blockChildren","isInteractive","componentRef","builderBlock","context","linkComponent","includeBlockProps","registeredComponents"],data(){return{shouldUpdate:!1,Wrapper:this.isInteractive?s.wrapComponentRef(m):this.componentRef,getWrapperProps:f}},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{onUpdateHook0(){return{0:this.componentOptions,1:this.blockChildren}}}});function C(e,o,a,c,r,i){const n=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(p,d)=>(t.openBlock(),t.createBlock(n,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const P=s._export_sfc(b,[["render",C]]);exports.default=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.1.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const s=require("./index-
|
|
1
|
+
var d=require("./style.css");const s=require("./index-M8XDYZV0.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,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:s.getStyle({block:e,context:t}),[s.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as _, mergeProps as $, toHandlers as O, withCtx as U, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as _, mergeProps as $, toHandlers as O, withCtx as U, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as X, createVNode as E, renderList as L, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as j, normalizeClass as ee, markRaw as Nt } from "vue";
|
|
3
3
|
const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -91,7 +91,7 @@ function Ft(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: U(() => [
|
|
94
|
-
Vt(
|
|
94
|
+
Vt(de(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
@@ -323,7 +323,7 @@ function rn(e, ...t) {
|
|
|
323
323
|
delete n[o];
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
327
327
|
if (e == null || typeof e != "object") {
|
|
328
328
|
t(e, (i) => {
|
|
329
329
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -333,11 +333,11 @@ function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
333
333
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
334
334
|
t(i, (l) => {
|
|
335
335
|
e[s] = l;
|
|
336
|
-
}),
|
|
336
|
+
}), ae(i, t, e, s, r);
|
|
337
337
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
338
338
|
t(s, (l) => {
|
|
339
339
|
e[i] = l;
|
|
340
|
-
}),
|
|
340
|
+
}), ae(s, t, e, i, r);
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
function Ze(e) {
|
|
@@ -347,7 +347,7 @@ function sn(e) {
|
|
|
347
347
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
348
348
|
return !1;
|
|
349
349
|
let t = !1;
|
|
350
|
-
return
|
|
350
|
+
return ae(e, (n) => {
|
|
351
351
|
if (Ze(n)) {
|
|
352
352
|
t = !0;
|
|
353
353
|
return;
|
|
@@ -355,7 +355,7 @@ function sn(e) {
|
|
|
355
355
|
}), t;
|
|
356
356
|
}
|
|
357
357
|
function an(e, t) {
|
|
358
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
358
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
359
359
|
Ze(n) && o(n[t] ?? void 0);
|
|
360
360
|
}), e);
|
|
361
361
|
}
|
|
@@ -451,17 +451,17 @@ function Ie(e) {
|
|
|
451
451
|
}
|
|
452
452
|
const mn = (e) => ({
|
|
453
453
|
type: "builder.registerComponent",
|
|
454
|
-
data:
|
|
454
|
+
data: le(e)
|
|
455
455
|
}), hn = (e) => {
|
|
456
456
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
457
457
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function le(e) {
|
|
460
460
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? hn(n) : n));
|
|
461
461
|
}
|
|
462
462
|
const xe = {};
|
|
463
463
|
function fn(e, t) {
|
|
464
|
-
e === "plugin" && (t =
|
|
464
|
+
e === "plugin" && (t = le(t));
|
|
465
465
|
let n = xe[e];
|
|
466
466
|
if (n || (n = xe[e] = []), n.push(t), T()) {
|
|
467
467
|
const o = {
|
|
@@ -504,7 +504,7 @@ const Oe = "builder.", bn = "options.", tt = (e) => {
|
|
|
504
504
|
return {};
|
|
505
505
|
const e = new URLSearchParams(window.location.search);
|
|
506
506
|
return tt(e);
|
|
507
|
-
}, nt = "4.
|
|
507
|
+
}, nt = "4.1.1", ot = () => ({
|
|
508
508
|
"X-Builder-SDK": R,
|
|
509
509
|
"X-Builder-SDK-GEN": "2",
|
|
510
510
|
"X-Builder-SDK-Version": nt
|
|
@@ -513,7 +513,7 @@ const Oe = "builder.", bn = "options.", tt = (e) => {
|
|
|
513
513
|
return e;
|
|
514
514
|
const t = e.split(".");
|
|
515
515
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
516
|
-
},
|
|
516
|
+
}, ue = ({
|
|
517
517
|
name: e,
|
|
518
518
|
canTrack: t
|
|
519
519
|
}) => {
|
|
@@ -524,7 +524,7 @@ const Oe = "builder.", bn = "options.", tt = (e) => {
|
|
|
524
524
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
525
525
|
return;
|
|
526
526
|
}
|
|
527
|
-
}, rt = async (e) =>
|
|
527
|
+
}, rt = async (e) => ue(e), vn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), Sn = [["secure", ""], ["SameSite", "None"]], kn = ({
|
|
528
528
|
name: e,
|
|
529
529
|
value: t,
|
|
530
530
|
expires: n
|
|
@@ -865,7 +865,7 @@ const dt = (e) => {
|
|
|
865
865
|
canTrack: !0
|
|
866
866
|
}), On = ({
|
|
867
867
|
contentId: e
|
|
868
|
-
}) =>
|
|
868
|
+
}) => ue({
|
|
869
869
|
name: Re(e),
|
|
870
870
|
canTrack: !0
|
|
871
871
|
}), Un = ({
|
|
@@ -972,7 +972,7 @@ function Le() {
|
|
|
972
972
|
}), t.forEach((r) => r(o));
|
|
973
973
|
},
|
|
974
974
|
getUserAttributes() {
|
|
975
|
-
return T() ? JSON.parse(
|
|
975
|
+
return T() ? JSON.parse(ue({
|
|
976
976
|
name: Fe,
|
|
977
977
|
canTrack: e
|
|
978
978
|
}) || "{}") : {};
|
|
@@ -991,11 +991,11 @@ function Le() {
|
|
|
991
991
|
}
|
|
992
992
|
let Se;
|
|
993
993
|
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Le()), Se = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Se = Le();
|
|
994
|
-
const
|
|
995
|
-
|
|
994
|
+
const ce = Se, ws = (e) => {
|
|
995
|
+
ce.setUserAttributes(e);
|
|
996
996
|
}, J = (e) => {
|
|
997
997
|
const t = K(e) ? e : !0;
|
|
998
|
-
return
|
|
998
|
+
return ce.setCanTrack(t), t;
|
|
999
999
|
};
|
|
1000
1000
|
function Mn() {
|
|
1001
1001
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -1390,22 +1390,22 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1390
1390
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1391
1391
|
e
|
|
1392
1392
|
), e;
|
|
1393
|
-
}), ho = () => import("./block-styles-
|
|
1393
|
+
}), ho = () => import("./block-styles-EcElF-2-.js").then((e) => e.default).catch((e) => {
|
|
1394
1394
|
throw console.error(
|
|
1395
1395
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1396
1396
|
e
|
|
1397
1397
|
), e;
|
|
1398
|
-
}), fo = () => import("./block-wrapper-
|
|
1398
|
+
}), fo = () => import("./block-wrapper-y6shAIfG.js").then((e) => e.default).catch((e) => {
|
|
1399
1399
|
throw console.error(
|
|
1400
1400
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1401
1401
|
e
|
|
1402
1402
|
), e;
|
|
1403
|
-
}), bo = () => import("./component-ref-
|
|
1403
|
+
}), bo = () => import("./component-ref-pdyC0C4W.js").then((e) => e.default).catch((e) => {
|
|
1404
1404
|
throw console.error(
|
|
1405
1405
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1406
1406
|
e
|
|
1407
1407
|
), e;
|
|
1408
|
-
}), go = () => import("./repeated-block-
|
|
1408
|
+
}), go = () => import("./repeated-block-SZu5_uPp.js").then((e) => e.default).catch((e) => {
|
|
1409
1409
|
throw console.error(
|
|
1410
1410
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1411
1411
|
e
|
|
@@ -1719,7 +1719,7 @@ function $o(e, t, n, o, r, i) {
|
|
|
1719
1719
|
const ne = /* @__PURE__ */ v(wo, [["render", $o]]), Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1720
1720
|
__proto__: null,
|
|
1721
1721
|
default: ne
|
|
1722
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1722
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = y({
|
|
1723
1723
|
render() {
|
|
1724
1724
|
return ze("style", {
|
|
1725
1725
|
innerHTML: this.styles,
|
|
@@ -1791,7 +1791,7 @@ const ne = /* @__PURE__ */ v(wo, [["render", $o]]), Ro = /* @__PURE__ */ Object.
|
|
|
1791
1791
|
}, Po = (e) => `builder-columns ${e}-breakpoints`, Ao = y({
|
|
1792
1792
|
name: "builder-columns",
|
|
1793
1793
|
components: {
|
|
1794
|
-
InlinedStyles:
|
|
1794
|
+
InlinedStyles: pe,
|
|
1795
1795
|
DynamicRenderer: Ce,
|
|
1796
1796
|
Blocks: q,
|
|
1797
1797
|
DynamicDiv: ne
|
|
@@ -1994,7 +1994,7 @@ function Oo(e, t) {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
return null;
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1997
|
+
function re(e) {
|
|
1998
1998
|
if (!e)
|
|
1999
1999
|
return e;
|
|
2000
2000
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -2035,10 +2035,10 @@ const Uo = y({
|
|
|
2035
2035
|
if (!this.noWebp) {
|
|
2036
2036
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2037
2037
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2038
|
-
return console.debug("Removed given srcset"),
|
|
2038
|
+
return console.debug("Removed given srcset"), re(t);
|
|
2039
2039
|
} else if (this.image && !this.srcset)
|
|
2040
|
-
return
|
|
2041
|
-
return
|
|
2040
|
+
return re(t);
|
|
2041
|
+
return re(t);
|
|
2042
2042
|
}
|
|
2043
2043
|
},
|
|
2044
2044
|
webpSrcSet() {
|
|
@@ -2345,7 +2345,7 @@ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2345
2345
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
}`,
|
|
2348
|
+
}`, ie = "default", Xo = "filterWithCustomTargeting", It = "builderIoPersonalization", wt = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
|
|
2349
2349
|
function _o(e, t) {
|
|
2350
2350
|
return !(e && e.length > 0) || !t ? !1 : Rt.includes(R) ? !0 : !T();
|
|
2351
2351
|
}
|
|
@@ -2359,7 +2359,7 @@ function Zo({
|
|
|
2359
2359
|
const i = {
|
|
2360
2360
|
blocks: r ?? [],
|
|
2361
2361
|
path: "this.children",
|
|
2362
|
-
index:
|
|
2362
|
+
index: ie
|
|
2363
2363
|
};
|
|
2364
2364
|
if (n && P()) {
|
|
2365
2365
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -3067,7 +3067,7 @@ const lr = /* @__PURE__ */ v(ir, [["render", ar]]), cr = {
|
|
|
3067
3067
|
name: "builder-personalization-container",
|
|
3068
3068
|
components: {
|
|
3069
3069
|
Blocks: q,
|
|
3070
|
-
InlinedStyles:
|
|
3070
|
+
InlinedStyles: pe,
|
|
3071
3071
|
InlinedScript: Ve
|
|
3072
3072
|
},
|
|
3073
3073
|
props: [
|
|
@@ -3081,7 +3081,7 @@ const lr = /* @__PURE__ */ v(ir, [["render", ar]]), cr = {
|
|
|
3081
3081
|
data() {
|
|
3082
3082
|
var e, t, n, o, r, i, s;
|
|
3083
3083
|
return {
|
|
3084
|
-
userAttributes:
|
|
3084
|
+
userAttributes: ce.getUserAttributes(),
|
|
3085
3085
|
scriptStr: tr(
|
|
3086
3086
|
this.variants,
|
|
3087
3087
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
@@ -3099,14 +3099,14 @@ const lr = /* @__PURE__ */ v(ir, [["render", ar]]), cr = {
|
|
|
3099
3099
|
),
|
|
3100
3100
|
shouldResetVariants: !1,
|
|
3101
3101
|
TARGET: R,
|
|
3102
|
-
DEFAULT_INDEX:
|
|
3102
|
+
DEFAULT_INDEX: ie,
|
|
3103
3103
|
SDKS_REQUIRING_RESET_APPROACH: Rt
|
|
3104
3104
|
};
|
|
3105
3105
|
},
|
|
3106
3106
|
mounted() {
|
|
3107
3107
|
var t;
|
|
3108
3108
|
this.shouldResetVariants = !0;
|
|
3109
|
-
const e =
|
|
3109
|
+
const e = ce.subscribeOnUserAttributesChange(
|
|
3110
3110
|
(n) => {
|
|
3111
3111
|
this.userAttributes = n;
|
|
3112
3112
|
},
|
|
@@ -3119,7 +3119,7 @@ const lr = /* @__PURE__ */ v(ir, [["render", ar]]), cr = {
|
|
|
3119
3119
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3120
3120
|
new CustomEvent("builder.variantLoaded", {
|
|
3121
3121
|
detail: {
|
|
3122
|
-
variant: n ||
|
|
3122
|
+
variant: n || ie,
|
|
3123
3123
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3124
3124
|
},
|
|
3125
3125
|
bubbles: !0
|
|
@@ -3130,7 +3130,7 @@ const lr = /* @__PURE__ */ v(ir, [["render", ar]]), cr = {
|
|
|
3130
3130
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3131
3131
|
new CustomEvent("builder.variantDisplayed", {
|
|
3132
3132
|
detail: {
|
|
3133
|
-
variant: n ||
|
|
3133
|
+
variant: n || ie,
|
|
3134
3134
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3135
3135
|
},
|
|
3136
3136
|
bubbles: !0
|
|
@@ -4228,7 +4228,7 @@ function Zr(e, t, n, o, r, i) {
|
|
|
4228
4228
|
blocks: e.sendingMessage,
|
|
4229
4229
|
context: e.builderContext
|
|
4230
4230
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4231
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", _r,
|
|
4231
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", _r, de(JSON.stringify(e.responseData, null, 2)), 1)) : C("", !0),
|
|
4232
4232
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4233
4233
|
key: 3,
|
|
4234
4234
|
path: "successMessage",
|
|
@@ -4374,7 +4374,7 @@ function di(e, t, n, o, r, i) {
|
|
|
4374
4374
|
(d(!0), h(w, null, L(e.options, (s, a) => (d(), h("option", {
|
|
4375
4375
|
key: `${s.name}-${a}`,
|
|
4376
4376
|
value: s.value
|
|
4377
|
-
},
|
|
4377
|
+
}, de(s.name || s.value), 9, ci))), 128))
|
|
4378
4378
|
], 16, li);
|
|
4379
4379
|
}
|
|
4380
4380
|
const ui = /* @__PURE__ */ v(ai, [["render", di]]), pi = {
|
|
@@ -4410,7 +4410,7 @@ const ui = /* @__PURE__ */ v(ai, [["render", di]]), pi = {
|
|
|
4410
4410
|
}
|
|
4411
4411
|
});
|
|
4412
4412
|
function hi(e, t, n, o, r, i) {
|
|
4413
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
4413
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
|
|
4414
4414
|
}
|
|
4415
4415
|
const fi = /* @__PURE__ */ v(mi, [["render", hi]]), bi = {
|
|
4416
4416
|
name: "Form:TextArea",
|
|
@@ -4488,26 +4488,35 @@ const Si = /* @__PURE__ */ v(gi, [["render", vi]]), ki = {
|
|
|
4488
4488
|
}, Ci = y({
|
|
4489
4489
|
name: "builder-img-component",
|
|
4490
4490
|
props: [
|
|
4491
|
+
"imgSrc",
|
|
4492
|
+
"image",
|
|
4491
4493
|
"backgroundSize",
|
|
4492
4494
|
"backgroundPosition",
|
|
4493
|
-
"imgSrc",
|
|
4494
4495
|
"altText",
|
|
4495
|
-
"image",
|
|
4496
4496
|
"attributes"
|
|
4497
4497
|
],
|
|
4498
4498
|
data() {
|
|
4499
4499
|
return { isEditing: P, filterAttrs: W };
|
|
4500
|
+
},
|
|
4501
|
+
computed: {
|
|
4502
|
+
srcSetToUse() {
|
|
4503
|
+
const e = this.imgSrc || this.image;
|
|
4504
|
+
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4505
|
+
return re(e);
|
|
4506
|
+
}
|
|
4500
4507
|
}
|
|
4501
|
-
}), Ti = ["alt", "src"];
|
|
4508
|
+
}), Ti = ["alt", "src", "srcSet"];
|
|
4502
4509
|
function Ii(e, t, n, o, r, i) {
|
|
4503
4510
|
return d(), h("img", $({
|
|
4511
|
+
loading: "lazy",
|
|
4504
4512
|
style: {
|
|
4505
4513
|
objectFit: e.backgroundSize || "cover",
|
|
4506
4514
|
objectPosition: e.backgroundPosition || "center"
|
|
4507
4515
|
},
|
|
4508
4516
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4509
4517
|
alt: e.altText,
|
|
4510
|
-
src: e.imgSrc || e.image
|
|
4518
|
+
src: e.imgSrc || e.image,
|
|
4519
|
+
srcSet: e.srcSetToUse
|
|
4511
4520
|
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ti);
|
|
4512
4521
|
}
|
|
4513
4522
|
const wi = /* @__PURE__ */ v(Ci, [["render", Ii]]), $i = {
|
|
@@ -4891,14 +4900,14 @@ const Ni = /* @__PURE__ */ v(Ri, [["render", Vi]]), Wi = () => [{
|
|
|
4891
4900
|
thisScriptEl?.remove();
|
|
4892
4901
|
}
|
|
4893
4902
|
return;
|
|
4894
|
-
}`, Pt = "builderIoAbTest", At = "builderIoRenderContent",
|
|
4903
|
+
}`, Pt = "builderIoAbTest", At = "builderIoRenderContent", se = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4895
4904
|
...t,
|
|
4896
4905
|
testVariationId: t.id,
|
|
4897
4906
|
id: e == null ? void 0 : e.id
|
|
4898
4907
|
})), Oi = ({
|
|
4899
4908
|
canTrack: e,
|
|
4900
4909
|
content: t
|
|
4901
|
-
}) => !(!(
|
|
4910
|
+
}) => !(!(se(t).length > 0) || !e), Ui = (e) => e === "react" || e === "reactNative", Fi = R === "angular", Bt = Ui(R), Li = () => `
|
|
4902
4911
|
window.${Pt} = ${xi}
|
|
4903
4912
|
window.${At} = ${Di}
|
|
4904
4913
|
`, Hi = (e, t) => `
|
|
@@ -5050,7 +5059,7 @@ font-weight: ${s};
|
|
|
5050
5059
|
P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5051
5060
|
new CustomEvent("initeditingbldr")
|
|
5052
5061
|
);
|
|
5053
|
-
const o = this.builderContextSignal.content && J(this.canTrack), r =
|
|
5062
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = ue({
|
|
5054
5063
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5055
5064
|
canTrack: !0
|
|
5056
5065
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
@@ -5315,7 +5324,7 @@ function ts(e, t, n, o, r, i) {
|
|
|
5315
5324
|
}
|
|
5316
5325
|
const ns = /* @__PURE__ */ v(es, [["render", ts]]), os = y({
|
|
5317
5326
|
name: "content-styles",
|
|
5318
|
-
components: { InlinedStyles:
|
|
5327
|
+
components: { InlinedStyles: pe },
|
|
5319
5328
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5320
5329
|
data() {
|
|
5321
5330
|
return {
|
|
@@ -5416,7 +5425,7 @@ const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = ({
|
|
|
5416
5425
|
...n,
|
|
5417
5426
|
[r.name]: {
|
|
5418
5427
|
component: ls(o),
|
|
5419
|
-
...
|
|
5428
|
+
...le(r)
|
|
5420
5429
|
}
|
|
5421
5430
|
}),
|
|
5422
5431
|
{}
|
|
@@ -5443,7 +5452,7 @@ const is = /* @__PURE__ */ v(os, [["render", rs]]), ss = ({
|
|
|
5443
5452
|
].reduce(
|
|
5444
5453
|
(n, { component: o, ...r }) => ({
|
|
5445
5454
|
...n,
|
|
5446
|
-
[r.name]:
|
|
5455
|
+
[r.name]: le(r)
|
|
5447
5456
|
}),
|
|
5448
5457
|
{}
|
|
5449
5458
|
),
|
|
@@ -5539,7 +5548,7 @@ const us = /* @__PURE__ */ v(cs, [["render", ds]]), ps = y({
|
|
|
5539
5548
|
name: "content-variants",
|
|
5540
5549
|
components: {
|
|
5541
5550
|
InlinedScript: Ve,
|
|
5542
|
-
InlinedStyles:
|
|
5551
|
+
InlinedStyles: pe,
|
|
5543
5552
|
ContentComponent: us
|
|
5544
5553
|
},
|
|
5545
5554
|
props: [
|
|
@@ -5573,7 +5582,7 @@ const us = /* @__PURE__ */ v(cs, [["render", ds]]), ps = y({
|
|
|
5573
5582
|
getInitPersonalizationVariantsFnsScriptString: er,
|
|
5574
5583
|
TARGET: R,
|
|
5575
5584
|
getInitVariantsFnsScriptString: Li,
|
|
5576
|
-
getVariants:
|
|
5585
|
+
getVariants: se
|
|
5577
5586
|
};
|
|
5578
5587
|
},
|
|
5579
5588
|
mounted() {
|
|
@@ -5582,7 +5591,7 @@ const us = /* @__PURE__ */ v(cs, [["render", ds]]), ps = y({
|
|
|
5582
5591
|
updateCookieAndStylesScriptStr() {
|
|
5583
5592
|
var e;
|
|
5584
5593
|
return Hi(
|
|
5585
|
-
|
|
5594
|
+
se(this.content).map((t) => ({
|
|
5586
5595
|
id: t.testVariationId,
|
|
5587
5596
|
testRatio: t.testRatio
|
|
5588
5597
|
})),
|
|
@@ -5590,7 +5599,7 @@ const us = /* @__PURE__ */ v(cs, [["render", ds]]), ps = y({
|
|
|
5590
5599
|
);
|
|
5591
5600
|
},
|
|
5592
5601
|
hideVariantsStyleString() {
|
|
5593
|
-
return
|
|
5602
|
+
return se(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5594
5603
|
},
|
|
5595
5604
|
defaultContent() {
|
|
5596
5605
|
var e;
|
|
@@ -5809,7 +5818,7 @@ export {
|
|
|
5809
5818
|
zo as S,
|
|
5810
5819
|
R as T,
|
|
5811
5820
|
Ni as V,
|
|
5812
|
-
|
|
5821
|
+
pe as _,
|
|
5813
5822
|
Rs as a,
|
|
5814
5823
|
As as b,
|
|
5815
5824
|
K as c,
|