@builder.io/sdk-vue 3.0.2 → 3.0.3
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-Go_v9R-Q.cjs → awaiter-BOE3oe-2.cjs} +1 -1
- package/lib/browser/{awaiter-f2v25MXG.js → awaiter-fYJyWUKW.js} +1 -1
- package/lib/browser/{block-styles-VvtOwAna.cjs → block-styles-Ac2dTxc4.cjs} +1 -1
- package/lib/browser/{block-styles-zLkeE8Yo.js → block-styles-AkwFTcbO.js} +1 -1
- package/lib/browser/{block-wrapper-W_D_Bb2d.cjs → block-wrapper-84VD_jLa.cjs} +1 -1
- package/lib/browser/{block-wrapper-RHvSza0L.js → block-wrapper-fpDCjlfD.js} +3 -3
- package/lib/browser/{component-ref-OuSuLJu3.cjs → component-ref-2i6kEvP5.cjs} +1 -1
- package/lib/browser/{component-ref-QZVWIf-w.js → component-ref-d8yXMilU.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-COMGTr9K.cjs → get-block-properties-YOz_GV3T.cjs} +1 -1
- package/lib/browser/{get-block-properties-IUSNX0SS.js → get-block-properties-cnhoBeZq.js} +1 -1
- package/lib/browser/{index-mAw516k1.js → index-OUDodTH_.js} +10 -10
- package/lib/browser/{index-M-gfkd7t.cjs → index-Tmp8hGxZ.cjs} +3 -3
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-nE8lZjb_.cjs → repeated-block-2vOYpXEb.cjs} +1 -1
- package/lib/browser/{repeated-block-9wsw76F2.js → repeated-block-YC73mMjD.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/browser/types/input.d.ts +10 -0
- package/lib/edge/{awaiter-4_rv9wh9.js → awaiter-45RAZ4vr.js} +1 -1
- package/lib/edge/{awaiter-e1RaAwPG.cjs → awaiter-7y9vIvgM.cjs} +1 -1
- package/lib/edge/{block-styles-83ja5Ixf.cjs → block-styles-4oT6_tNs.cjs} +1 -1
- package/lib/edge/{block-styles-KCVLt7eI.js → block-styles-S0GMFR-E.js} +1 -1
- package/lib/edge/{block-wrapper-FpChCEPR.js → block-wrapper-u1TP9krq.js} +3 -3
- package/lib/edge/{block-wrapper-z1tA6pLu.cjs → block-wrapper-z2zQZEH5.cjs} +1 -1
- package/lib/edge/{component-ref-oYtINbYY.js → component-ref-egpaOyfe.js} +3 -3
- package/lib/edge/{component-ref-hZs-PJf_.cjs → component-ref-fINDKyFv.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-WHU9TAQT.cjs → get-block-properties-7UcxpKgh.cjs} +1 -1
- package/lib/edge/{get-block-properties-g6seSIll.js → get-block-properties-O5TPRWRT.js} +1 -1
- package/lib/edge/{index-fTtKR2Pq.js → index-F3mzsZ0p.js} +10 -10
- package/lib/edge/{index-Gb_tMZnR.cjs → index-gzbOXU-Q.cjs} +3 -3
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-_kwPuyY0.js → repeated-block-NSni9pku.js} +2 -2
- package/lib/{node/repeated-block-p1vrucwi.cjs → edge/repeated-block-Wu6fB8nR.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/edge/types/input.d.ts +10 -0
- package/lib/node/{awaiter-yTUISQzQ.js → awaiter-Q1bT-TPr.js} +1 -1
- package/lib/node/{awaiter-EKc5xDU7.cjs → awaiter-TAyS4fk5.cjs} +1 -1
- package/lib/node/{block-styles-KsyPudvY.cjs → block-styles-A8-g46IJ.cjs} +1 -1
- package/lib/node/{block-styles-Z4CBN1bX.js → block-styles-r18EdLf4.js} +1 -1
- package/lib/node/{block-wrapper-wfmJ-Is8.cjs → block-wrapper-T0V1DNf3.cjs} +1 -1
- package/lib/node/{block-wrapper-KpJ-EQWT.js → block-wrapper-XHFApIKd.js} +3 -3
- package/lib/node/{component-ref-dZr5pqVw.cjs → component-ref-hUDJjksy.cjs} +1 -1
- package/lib/node/{component-ref-PIZE59-x.js → component-ref-s6TdgswK.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-YmWkYu_d.js → get-block-properties-Eoo-6vv-.js} +1 -1
- package/lib/node/{get-block-properties-XFifmVHz.cjs → get-block-properties-ZK8tFurn.cjs} +1 -1
- package/lib/node/{index-PmCPg9YL.js → index-Ys2hEVva.js} +57 -57
- package/lib/node/{index-_D8PBs-1.cjs → index-upwn_dSB.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-o16gyhl8.cjs → node/repeated-block-5Nyck_fi.cjs} +1 -1
- package/lib/node/{repeated-block-qSSzvRZP.js → repeated-block-9G20Z3_5.js} +2 -2
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/lib/node/types/input.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-upwn_dSB.cjs"),a=require("./get-block-properties-ZK8tFurn.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-TAyS4fk5.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),d=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["includeBlockProps","block","context","Wrapper","wrapperProps"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function f(e,n,s,l,r,i){const o=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(o,{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.mergeProps({key:1,attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))}const m=c._export_sfc(d,[["render",f]]),b=({componentOptions:e,builderBlock:n,context:s,componentRef:l,includeBlockProps:r,isInteractive:i,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return i?{Wrapper:l,block:n,context:s,wrapperProps:e,includeBlockProps:r}:p},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function C(e,n,s,l,r,i){const o=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,k)=>(t.openBlock(),t.createBlock(o,{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 h=c._export_sfc(B,[["render",C]]);exports.default=h;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as u, defineAsyncComponent as P, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, mergeProps as b, normalizeProps as B, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as W } from "vue";
|
|
2
|
-
import { d as h, B as S, w as y } from "./index-
|
|
3
|
-
import { a as C, g as A } from "./get-block-properties-
|
|
4
|
-
const R = () => import("./awaiter-
|
|
2
|
+
import { d as h, B as S, w as y } from "./index-Ys2hEVva.js";
|
|
3
|
+
import { a as C, g as A } from "./get-block-properties-Eoo-6vv-.js";
|
|
4
|
+
const R = () => import("./awaiter-Q1bT-TPr.js").then((e) => e.default).catch((e) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
7
7
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.3";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as n } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
2
|
-
import { e as c, f as i, h as l } from "./index-
|
|
2
|
+
import { e as c, f as i, h as l } from "./index-Ys2hEVva.js";
|
|
3
3
|
const f = (e) => `v-on:${e.toLowerCase()}`, p = (e, t) => (r) => c({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-
|
|
1
|
+
"use strict";const c=require("./should-force-browser-runtime-in-node-1vTKsoso.cjs"),s=require("./index-upwn_dSB.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(a,e)}return t}function d({properties:e}){return e}const f=e=>({href:e.href});function p({block:e,context:t}){var o;const r={...f(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 d({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as B, withCtx as N, renderSlot as
|
|
2
|
-
import { T as E, g as yt, f as kt, i as $, s as vt, r as St, p as Ct, a as Tt, l as
|
|
1
|
+
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as w, createBlock as y, resolveDynamicComponent as K, mergeProps as C, toHandlers as B, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as bt, toDisplayString as te, defineAsyncComponent as j, createVNode as R, renderList as V, createCommentVNode as v, h as Ve, createElementVNode as z, normalizeStyle as D, normalizeClass as G, markRaw as gt } from "vue";
|
|
2
|
+
import { T as E, g as yt, f as kt, i as $, s as vt, r as St, p as Ct, a as Tt, l as x, b as We, c as pe, d as wt, n as Ne, e as L, h as P, j as It } from "./should-force-browser-runtime-in-node-ikxWrCvn.js";
|
|
3
3
|
const $t = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Rt = (e) => typeof e == "string" && $t.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -27,12 +27,12 @@ function Pt(e, t, n, o, r, s) {
|
|
|
27
27
|
return e.isEmptyElement(e.TagName) ? (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), p(w, { key: 0 }, [
|
|
28
28
|
typeof e.TagName == "string" ? (c(), y(K(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
29
29
|
default: N(() => [
|
|
30
|
-
|
|
30
|
+
A(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
33
|
}, 16)) : (c(), y(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
34
34
|
default: N(() => [
|
|
35
|
-
|
|
35
|
+
A(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
@@ -83,7 +83,7 @@ const me = /* @__PURE__ */ g(Et, [["render", Pt]]), Ks = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function At(e, t, n, o, r, s) {
|
|
87
87
|
const i = k("DynamicRenderer");
|
|
88
88
|
return c(), y(i, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -96,7 +96,7 @@ function xt(e, t, n, o, r, s) {
|
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const xt = /* @__PURE__ */ g(Bt, [["render", At]]), Vt = Symbol(), le = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -177,7 +177,7 @@ function Y({
|
|
|
177
177
|
try {
|
|
178
178
|
return Ft(a);
|
|
179
179
|
} catch (u) {
|
|
180
|
-
|
|
180
|
+
x.error("Failed code evaluation: " + u.message, {
|
|
181
181
|
code: e
|
|
182
182
|
});
|
|
183
183
|
return;
|
|
@@ -386,7 +386,7 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
386
386
|
return {};
|
|
387
387
|
const e = new URLSearchParams(window.location.search);
|
|
388
388
|
return Ue(e);
|
|
389
|
-
}, He = "3.0.
|
|
389
|
+
}, He = "3.0.3", Me = () => ({
|
|
390
390
|
"X-Builder-SDK": E,
|
|
391
391
|
"X-Builder-SDK-GEN": "2",
|
|
392
392
|
"X-Builder-SDK-Version": He
|
|
@@ -403,7 +403,7 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
403
403
|
try {
|
|
404
404
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
405
405
|
} catch (o) {
|
|
406
|
-
|
|
406
|
+
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
}, Ke = async (e) => je(e), nn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), on = [["secure", ""], ["SameSite", "None"]], rn = ({
|
|
@@ -429,7 +429,7 @@ const $e = "builder.", _t = "options.", Ue = (e) => {
|
|
|
429
429
|
});
|
|
430
430
|
document.cookie = r;
|
|
431
431
|
} catch (r) {
|
|
432
|
-
|
|
432
|
+
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
function sn() {
|
|
@@ -516,7 +516,7 @@ const Ge = "builderSessionId", an = async ({
|
|
|
516
516
|
});
|
|
517
517
|
function he(e) {
|
|
518
518
|
var t;
|
|
519
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
519
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
|
|
520
520
|
}
|
|
521
521
|
const fn = async ({
|
|
522
522
|
canTrack: e
|
|
@@ -561,7 +561,7 @@ async function de({
|
|
|
561
561
|
...t
|
|
562
562
|
}) {
|
|
563
563
|
if (!t.apiKey) {
|
|
564
|
-
|
|
564
|
+
x.error("Missing API key for track call. Please provide your API key.");
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
567
|
if (!t.canTrack || P() || !($() || E === "reactNative"))
|
|
@@ -704,7 +704,7 @@ const Qe = (e = {}) => {
|
|
|
704
704
|
}
|
|
705
705
|
}, Gs = (e, t, n) => {
|
|
706
706
|
if (!$)
|
|
707
|
-
return
|
|
707
|
+
return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
708
708
|
};
|
|
709
709
|
Qe();
|
|
710
710
|
const o = Ze({
|
|
@@ -757,7 +757,7 @@ const Qe = (e = {}) => {
|
|
|
757
757
|
contentId: e.id,
|
|
758
758
|
value: t
|
|
759
759
|
}).catch((n) => {
|
|
760
|
-
|
|
760
|
+
x.error("could not store A/B test variation: ", n);
|
|
761
761
|
}), t;
|
|
762
762
|
}, tt = ({
|
|
763
763
|
item: e,
|
|
@@ -901,7 +901,7 @@ const Bn = "v3", Ee = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
901
901
|
};
|
|
902
902
|
U = {
|
|
903
903
|
...U,
|
|
904
|
-
...
|
|
904
|
+
...xn(Ce)
|
|
905
905
|
};
|
|
906
906
|
const Te = ue(Ce);
|
|
907
907
|
for (const F in Te)
|
|
@@ -914,15 +914,15 @@ const Bn = "v3", Ee = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
914
914
|
I.searchParams.set(M, JSON.stringify(F[M]));
|
|
915
915
|
}
|
|
916
916
|
return I;
|
|
917
|
-
},
|
|
917
|
+
}, An = (e) => {
|
|
918
918
|
const t = {};
|
|
919
919
|
for (const n in e)
|
|
920
920
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
921
921
|
return t;
|
|
922
|
-
},
|
|
922
|
+
}, xn = (e) => {
|
|
923
923
|
if ($() && e.preview === "BUILDER_STUDIO") {
|
|
924
924
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
925
|
-
const t =
|
|
925
|
+
const t = An(e), {
|
|
926
926
|
userAttributes: n
|
|
927
927
|
} = Pn(t);
|
|
928
928
|
return n;
|
|
@@ -959,14 +959,14 @@ const Wn = async (e) => {
|
|
|
959
959
|
}));
|
|
960
960
|
t.results = r;
|
|
961
961
|
} catch (r) {
|
|
962
|
-
|
|
962
|
+
x.error("Could not process A/B tests. ", r);
|
|
963
963
|
}
|
|
964
964
|
return t.results;
|
|
965
965
|
};
|
|
966
966
|
async function Fn(e) {
|
|
967
967
|
const t = be(e), n = await Wn(e);
|
|
968
968
|
if (!Vn(n))
|
|
969
|
-
throw
|
|
969
|
+
throw x.error("Error fetching data. ", {
|
|
970
970
|
url: t,
|
|
971
971
|
content: n,
|
|
972
972
|
options: e
|
|
@@ -1209,22 +1209,22 @@ const lt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1209
1209
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1210
1210
|
e
|
|
1211
1211
|
), e;
|
|
1212
|
-
}), Xn = () => import("./block-styles-
|
|
1212
|
+
}), Xn = () => import("./block-styles-r18EdLf4.js").then((e) => e.default).catch((e) => {
|
|
1213
1213
|
throw console.error(
|
|
1214
1214
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1215
1215
|
e
|
|
1216
1216
|
), e;
|
|
1217
|
-
}), Qn = () => import("./block-wrapper-
|
|
1217
|
+
}), Qn = () => import("./block-wrapper-XHFApIKd.js").then((e) => e.default).catch((e) => {
|
|
1218
1218
|
throw console.error(
|
|
1219
1219
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1220
1220
|
e
|
|
1221
1221
|
), e;
|
|
1222
|
-
}), Zn = () => import("./component-ref-
|
|
1222
|
+
}), Zn = () => import("./component-ref-s6TdgswK.js").then((e) => e.default).catch((e) => {
|
|
1223
1223
|
throw console.error(
|
|
1224
1224
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1225
1225
|
e
|
|
1226
1226
|
), e;
|
|
1227
|
-
}), _n = () => import("./repeated-block-
|
|
1227
|
+
}), _n = () => import("./repeated-block-9G20Z3_5.js").then((e) => e.default).catch((e) => {
|
|
1228
1228
|
throw console.error(
|
|
1229
1229
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1230
1230
|
e
|
|
@@ -1461,7 +1461,7 @@ function oo(e, t, n, o, r, s) {
|
|
|
1461
1461
|
onKeyPress: (i) => e.onClick()
|
|
1462
1462
|
}, { ...e.BlocksWrapperProps }), {
|
|
1463
1463
|
default: N(() => [
|
|
1464
|
-
|
|
1464
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 3
|
|
1467
1467
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
@@ -1517,7 +1517,7 @@ const H = /* @__PURE__ */ g(so, [["render", io]]), ao = b({
|
|
|
1517
1517
|
});
|
|
1518
1518
|
function lo(e, t, n, o, r, s) {
|
|
1519
1519
|
return c(), p("div", null, [
|
|
1520
|
-
|
|
1520
|
+
A(e.$slots, "default")
|
|
1521
1521
|
]);
|
|
1522
1522
|
}
|
|
1523
1523
|
const X = /* @__PURE__ */ g(ao, [["render", lo]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1758,7 +1758,7 @@ const fo = /* @__PURE__ */ g(mo, [["render", ho], ["__scopeId", "data-v-3354f136
|
|
|
1758
1758
|
});
|
|
1759
1759
|
function go(e, t, n, o, r, s) {
|
|
1760
1760
|
return c(), p("span", null, [
|
|
1761
|
-
|
|
1761
|
+
A(e.$slots, "default")
|
|
1762
1762
|
]);
|
|
1763
1763
|
}
|
|
1764
1764
|
const yo = /* @__PURE__ */ g(bo, [["render", go]]);
|
|
@@ -1881,9 +1881,9 @@ function Io(e, t, n, o, r, s) {
|
|
|
1881
1881
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1882
1882
|
})
|
|
1883
1883
|
}, null, 4)) : v("", !0),
|
|
1884
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1884
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
1885
1885
|
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", wo, [
|
|
1886
|
-
|
|
1886
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1887
1887
|
])) : v("", !0)
|
|
1888
1888
|
], 64);
|
|
1889
1889
|
}
|
|
@@ -1909,7 +1909,7 @@ function Eo(e, t, n, o, r, s) {
|
|
|
1909
1909
|
marginRight: "auto"
|
|
1910
1910
|
}
|
|
1911
1911
|
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1912
|
-
|
|
1912
|
+
A(e.$slots, "default")
|
|
1913
1913
|
], 16);
|
|
1914
1914
|
}
|
|
1915
1915
|
const Po = /* @__PURE__ */ g(Ro, [["render", Eo]]), re = {
|
|
@@ -2036,7 +2036,7 @@ const Po = /* @__PURE__ */ g(Ro, [["render", Eo]]), re = {
|
|
|
2036
2036
|
builderComponents: !0,
|
|
2037
2037
|
builderLinkComponent: !0
|
|
2038
2038
|
}
|
|
2039
|
-
},
|
|
2039
|
+
}, Ao = (e) => e.toString(), xo = b({
|
|
2040
2040
|
name: "builder-accordion",
|
|
2041
2041
|
components: { Blocks: H },
|
|
2042
2042
|
props: [
|
|
@@ -2050,7 +2050,7 @@ const Po = /* @__PURE__ */ g(Ro, [["render", Eo]]), re = {
|
|
|
2050
2050
|
"builderLinkComponent"
|
|
2051
2051
|
],
|
|
2052
2052
|
data() {
|
|
2053
|
-
return { open: [], convertOrderNumberToString:
|
|
2053
|
+
return { open: [], convertOrderNumberToString: Ao };
|
|
2054
2054
|
},
|
|
2055
2055
|
computed: {
|
|
2056
2056
|
onlyOneAtATime() {
|
|
@@ -2149,7 +2149,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}),
|
|
2151
2151
|
"data-index": a,
|
|
2152
|
-
onClick: (u) => e.onClick(a)
|
|
2152
|
+
onClick: async (u) => e.onClick(a)
|
|
2153
2153
|
}, [
|
|
2154
2154
|
R(i, {
|
|
2155
2155
|
blocks: l.title,
|
|
@@ -2177,7 +2177,7 @@ function Wo(e, t, n, o, r, s) {
|
|
|
2177
2177
|
], 64))), 128))
|
|
2178
2178
|
], 4);
|
|
2179
2179
|
}
|
|
2180
|
-
const No = /* @__PURE__ */ g(
|
|
2180
|
+
const No = /* @__PURE__ */ g(xo, [["render", Wo]]), Fo = {
|
|
2181
2181
|
name: "Core:Button",
|
|
2182
2182
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2183
2183
|
defaultStyles: {
|
|
@@ -2839,7 +2839,7 @@ function Qo(e, t, n, o, r, s) {
|
|
|
2839
2839
|
style: D({
|
|
2840
2840
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2841
2841
|
}),
|
|
2842
|
-
onClick: (u) => e.onClick(a)
|
|
2842
|
+
onClick: async (u) => e.onClick(a)
|
|
2843
2843
|
}, [
|
|
2844
2844
|
R(i, {
|
|
2845
2845
|
parent: e.builderBlock.id,
|
|
@@ -3437,10 +3437,10 @@ function Cr(e, t, n, o, r, s) {
|
|
|
3437
3437
|
action: !e.sendWithJs && e.action,
|
|
3438
3438
|
method: e.method,
|
|
3439
3439
|
name: e.name,
|
|
3440
|
-
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3440
|
+
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
3441
3441
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3442
3442
|
e.builderBlock && e.builderBlock.children ? (c(!0), p(w, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(i, {
|
|
3443
|
-
key: `form-block-${
|
|
3443
|
+
key: `form-block-${m}`,
|
|
3444
3444
|
block: u,
|
|
3445
3445
|
context: e.builderContext,
|
|
3446
3446
|
registeredComponents: e.builderComponents,
|
|
@@ -3467,7 +3467,7 @@ function Cr(e, t, n, o, r, s) {
|
|
|
3467
3467
|
}, null, 8, ["blocks", "context"])) : v("", !0)
|
|
3468
3468
|
], 16, vr);
|
|
3469
3469
|
}
|
|
3470
|
-
const Tr = /* @__PURE__ */ g(kr, [["render", Cr], ["__scopeId", "data-v-
|
|
3470
|
+
const Tr = /* @__PURE__ */ g(kr, [["render", Cr], ["__scopeId", "data-v-92491cd4"]]), wr = {
|
|
3471
3471
|
name: "Form:Input",
|
|
3472
3472
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3473
3473
|
inputs: [
|
|
@@ -3592,7 +3592,7 @@ const Er = /* @__PURE__ */ g(Ir, [["render", Rr]]), Pr = {
|
|
|
3592
3592
|
data() {
|
|
3593
3593
|
return { isEditing: P, filterAttrs: W };
|
|
3594
3594
|
}
|
|
3595
|
-
}),
|
|
3595
|
+
}), Ar = ["value", "defaultValue", "name", "required"], xr = ["value"];
|
|
3596
3596
|
function Vr(e, t, n, o, r, s) {
|
|
3597
3597
|
return c(), p("select", C({
|
|
3598
3598
|
value: e.value,
|
|
@@ -3604,8 +3604,8 @@ function Vr(e, t, n, o, r, s) {
|
|
|
3604
3604
|
(c(!0), p(w, null, V(e.options, (i, l) => (c(), p("option", {
|
|
3605
3605
|
key: `${i.name}-${l}`,
|
|
3606
3606
|
value: i.value
|
|
3607
|
-
}, te(i.name || i.value), 9,
|
|
3608
|
-
], 16,
|
|
3607
|
+
}, te(i.name || i.value), 9, xr))), 128))
|
|
3608
|
+
], 16, Ar);
|
|
3609
3609
|
}
|
|
3610
3610
|
const Wr = /* @__PURE__ */ g(Br, [["render", Vr]]), Nr = {
|
|
3611
3611
|
name: "Form:SubmitButton",
|
|
@@ -3931,10 +3931,10 @@ function ns(e, t, n, o, r, s) {
|
|
|
3931
3931
|
})
|
|
3932
3932
|
}, null, 4)) : v("", !0),
|
|
3933
3933
|
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", es, [
|
|
3934
|
-
|
|
3934
|
+
A(e.$slots, "default")
|
|
3935
3935
|
])) : v("", !0),
|
|
3936
3936
|
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", ts, [
|
|
3937
|
-
|
|
3937
|
+
A(e.$slots, "default")
|
|
3938
3938
|
])) : v("", !0)
|
|
3939
3939
|
]);
|
|
3940
3940
|
}
|
|
@@ -3966,7 +3966,7 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
3966
3966
|
component: os,
|
|
3967
3967
|
...Yr
|
|
3968
3968
|
}], Be = () => [{
|
|
3969
|
-
component:
|
|
3969
|
+
component: xt,
|
|
3970
3970
|
...Fo
|
|
3971
3971
|
}, {
|
|
3972
3972
|
component: fo,
|
|
@@ -4114,7 +4114,7 @@ const os = /* @__PURE__ */ g(Xr, [["render", ns]]), rs = () => [{
|
|
|
4114
4114
|
name: "inlined-script",
|
|
4115
4115
|
props: ["scriptStr", "id", "nonce"]
|
|
4116
4116
|
});
|
|
4117
|
-
function
|
|
4117
|
+
function Ae(e) {
|
|
4118
4118
|
return Math.round(e * 1e3) / 1e3;
|
|
4119
4119
|
}
|
|
4120
4120
|
const ps = (e, t, n = !0) => {
|
|
@@ -4131,11 +4131,11 @@ const ps = (e, t, n = !0) => {
|
|
|
4131
4131
|
}, ms = (e) => ps(e, (t) => {
|
|
4132
4132
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4133
4133
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4134
|
-
}),
|
|
4134
|
+
}), xe = ({
|
|
4135
4135
|
event: e,
|
|
4136
4136
|
target: t
|
|
4137
4137
|
}) => {
|
|
4138
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s =
|
|
4138
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Ae(o / n.width), i = Ae(r / n.height);
|
|
4139
4139
|
return {
|
|
4140
4140
|
x: s,
|
|
4141
4141
|
y: i
|
|
@@ -4145,11 +4145,11 @@ const ps = (e, t, n = !0) => {
|
|
|
4145
4145
|
return {
|
|
4146
4146
|
targetBuilderElement: o || void 0,
|
|
4147
4147
|
metadata: {
|
|
4148
|
-
targetOffset: t ?
|
|
4148
|
+
targetOffset: t ? xe({
|
|
4149
4149
|
event: e,
|
|
4150
4150
|
target: t
|
|
4151
4151
|
}) : void 0,
|
|
4152
|
-
builderTargetOffset: n ?
|
|
4152
|
+
builderTargetOffset: n ? xe({
|
|
4153
4153
|
event: e,
|
|
4154
4154
|
target: n
|
|
4155
4155
|
}) : void 0,
|
|
@@ -4501,7 +4501,7 @@ function ws(e, t, n, o, r, s) {
|
|
|
4501
4501
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4502
4502
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4503
4503
|
default: N(() => [
|
|
4504
|
-
|
|
4504
|
+
A(e.$slots, "default")
|
|
4505
4505
|
]),
|
|
4506
4506
|
_: 3
|
|
4507
4507
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
@@ -4560,7 +4560,7 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4560
4560
|
...t
|
|
4561
4561
|
},
|
|
4562
4562
|
meta: e == null ? void 0 : e.meta
|
|
4563
|
-
} : void 0,
|
|
4563
|
+
} : void 0, As = gt, xs = b({
|
|
4564
4564
|
name: "content-component",
|
|
4565
4565
|
components: {
|
|
4566
4566
|
EnableEditor: Is,
|
|
@@ -4608,7 +4608,7 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4608
4608
|
(n, { component: o, ...r }) => ({
|
|
4609
4609
|
...n,
|
|
4610
4610
|
[r.name]: {
|
|
4611
|
-
component:
|
|
4611
|
+
component: As(o),
|
|
4612
4612
|
...ee(r)
|
|
4613
4613
|
}
|
|
4614
4614
|
}),
|
|
@@ -4659,7 +4659,7 @@ const Es = /* @__PURE__ */ g($s, [["render", Rs]]), Ps = ({
|
|
|
4659
4659
|
},
|
|
4660
4660
|
created() {
|
|
4661
4661
|
var t, n;
|
|
4662
|
-
this.apiKey ||
|
|
4662
|
+
this.apiKey || x.error(
|
|
4663
4663
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4664
4664
|
);
|
|
4665
4665
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4728,7 +4728,7 @@ function Vs(e, t, n, o, r, s) {
|
|
|
4728
4728
|
_: 1
|
|
4729
4729
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4730
4730
|
}
|
|
4731
|
-
const Ws = /* @__PURE__ */ g(
|
|
4731
|
+
const Ws = /* @__PURE__ */ g(xs, [["render", Vs]]), Ns = b({
|
|
4732
4732
|
name: "content-variants",
|
|
4733
4733
|
components: {
|
|
4734
4734
|
InlinedScript: mt,
|
|
@@ -4883,7 +4883,7 @@ const Ds = /* @__PURE__ */ g(Ns, [["render", Fs]]), Os = async ({
|
|
|
4883
4883
|
}
|
|
4884
4884
|
}
|
|
4885
4885
|
}).catch((n) => {
|
|
4886
|
-
|
|
4886
|
+
x.error("Could not fetch symbol content: ", n);
|
|
4887
4887
|
});
|
|
4888
4888
|
}, Ls = b({
|
|
4889
4889
|
name: "builder-symbol",
|
|
@@ -4993,7 +4993,7 @@ export {
|
|
|
4993
4993
|
uo as g,
|
|
4994
4994
|
Z as h,
|
|
4995
4995
|
le as i,
|
|
4996
|
-
|
|
4996
|
+
xt as j,
|
|
4997
4997
|
Hs as k,
|
|
4998
4998
|
H as l,
|
|
4999
4999
|
Ds as m,
|
|
@@ -5006,7 +5006,7 @@ export {
|
|
|
5006
5006
|
zs as t,
|
|
5007
5007
|
Js as u,
|
|
5008
5008
|
Nn as v,
|
|
5009
|
-
|
|
5009
|
+
As as w,
|
|
5010
5010
|
Fn as x,
|
|
5011
5011
|
ge as y,
|
|
5012
5012
|
Ks as z
|