@builder.io/sdk-react 2.0.0 → 2.0.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/blocks-exports.cjs +10 -10
- package/lib/browser/blocks-exports.mjs +48 -14
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-e0454364.cjs → server-entry-29c5c31c.cjs} +1 -1
- package/lib/browser/{server-entry-709e09e3.js → server-entry-f9067095.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-bd80745a.js → accordion-4a70912d.js} +1 -1
- package/lib/edge/{accordion-12c2d408.cjs → accordion-6ad2cec7.cjs} +1 -1
- package/lib/edge/{blocks-ac8970f1.cjs → blocks-0bd38a83.cjs} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +4 -3
- package/lib/edge/{blocks-6d6258ba.js → blocks-fedde8d2.js} +12 -4
- package/lib/edge/{button-4e842584.js → button-af35e8de.js} +2 -2
- package/lib/edge/{button-c2e45e64.cjs → button-f6426eff.cjs} +1 -1
- package/lib/edge/{columns-a51238cc.js → columns-1065c0ae.js} +53 -46
- package/lib/edge/columns-f607250b.cjs +28 -0
- package/lib/edge/{content-variants-f3c6baad.js → content-variants-3d57a82f.js} +70 -53
- package/lib/edge/{content-variants-3fe9b1c0.cjs → content-variants-773afb9f.cjs} +3 -3
- package/lib/edge/{form-00c8cc55.js → form-0a58d0e4.js} +3 -3
- package/lib/edge/{form-b4cdf7cd.cjs → form-5762c22a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1bbed5bf.js → get-class-prop-name-268b0f61.js} +1 -1
- package/lib/edge/{get-class-prop-name-3c5f7a7d.cjs → get-class-prop-name-3061c329.cjs} +1 -1
- package/lib/edge/{img-e7db1475.js → img-252c9967.js} +1 -1
- package/lib/edge/{img-6671da9a.cjs → img-59bb70c7.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-0f7a9f1c.cjs → input-2163d4dc.cjs} +1 -1
- package/lib/edge/{input-2db47a83.js → input-7ae243e2.js} +1 -1
- package/lib/edge/{select-f0859c5f.cjs → select-39231177.cjs} +1 -1
- package/lib/edge/{select-2facacf2.js → select-cfa0eb8e.js} +1 -1
- package/lib/edge/{server-entry-ff6a2e2d.cjs → server-entry-4750de9c.cjs} +1 -1
- package/lib/edge/{server-entry-75aa714e.js → server-entry-681e8e79.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-aee43b86.cjs → slot-69da8c56.cjs} +1 -1
- package/lib/edge/{slot-8159ca1d.js → slot-7c61542f.js} +3 -3
- package/lib/edge/symbol-4a8a6cda.js +85 -0
- package/lib/edge/symbol-bd999a19.cjs +1 -0
- package/lib/edge/{tabs-4112a80e.cjs → tabs-3d0e242e.cjs} +1 -1
- package/lib/edge/{tabs-f5357a4e.js → tabs-c3ff0c70.js} +3 -3
- package/lib/node/blocks-exports.cjs +11 -11
- package/lib/node/blocks-exports.mjs +49 -15
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-eb72e084.cjs → node-runtime-3bfd8465.cjs} +1 -1
- package/lib/node/{node-runtime-80c4bfc8.js → node-runtime-78262e65.js} +1 -1
- package/lib/node/{server-entry-e8ac67b5.js → server-entry-5f9f100f.js} +1 -1
- package/lib/node/{server-entry-b2103255.cjs → server-entry-63058f3f.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +15 -15
- package/types/components/content/components/styles.d.ts +2 -1
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/inlined-script.d.ts +2 -1
- package/types/components/inlined-styles.d.ts +2 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/types/builder-props.d.ts +3 -0
- package/lib/edge/columns-bc2b0674.cjs +0 -28
- package/lib/edge/symbol-36a155f3.js +0 -84
- package/lib/edge/symbol-a244cc31.cjs +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsxs as y, Fragment as B, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r } from "react";
|
|
3
|
-
import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-
|
|
3
|
+
import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-fedde8d2.js";
|
|
4
4
|
import { DynamicRenderer as N } from "./dynamic-renderer-8b343325.js";
|
|
5
|
-
import { getClassPropName as D } from "./get-class-prop-name-
|
|
5
|
+
import { getClassPropName as D } from "./get-class-prop-name-268b0f61.js";
|
|
6
6
|
import "./blocks-exports.mjs";
|
|
7
|
-
import "./server-entry-
|
|
8
|
-
const F = (
|
|
9
|
-
function J(
|
|
7
|
+
import "./server-entry-681e8e79.js";
|
|
8
|
+
const F = (t) => `builder-columns ${t}-breakpoints`;
|
|
9
|
+
function J(t) {
|
|
10
10
|
var f, k;
|
|
11
11
|
const [c, T] = r(
|
|
12
|
-
() => typeof
|
|
13
|
-
), [s, j] = r(() =>
|
|
14
|
-
() =>
|
|
12
|
+
() => typeof t.space == "number" ? t.space || 0 : 20
|
|
13
|
+
), [s, j] = r(() => t.columns || []), [m, I] = r(
|
|
14
|
+
() => t.stackColumnsAt || "tablet"
|
|
15
15
|
);
|
|
16
|
-
function S(
|
|
17
|
-
return
|
|
16
|
+
function S(e) {
|
|
17
|
+
return e.link ? t.builderLinkComponent || "a" : "div";
|
|
18
18
|
}
|
|
19
|
-
function x(
|
|
19
|
+
function x(e) {
|
|
20
20
|
var n;
|
|
21
|
-
return ((n = s[
|
|
21
|
+
return ((n = s[e]) == null ? void 0 : n.width) || 100 / s.length;
|
|
22
22
|
}
|
|
23
|
-
function C(
|
|
24
|
-
const n = x(
|
|
23
|
+
function C(e) {
|
|
24
|
+
const n = x(e), i = c * (s.length - 1) * (n / 100);
|
|
25
25
|
return `calc(${n}% - ${i}px)`;
|
|
26
26
|
}
|
|
27
27
|
function a({
|
|
28
|
-
stackedStyle:
|
|
28
|
+
stackedStyle: e,
|
|
29
29
|
desktopStyle: n
|
|
30
30
|
}) {
|
|
31
|
-
return m === "tablet" ?
|
|
31
|
+
return m === "tablet" ? e : n;
|
|
32
32
|
}
|
|
33
33
|
function u({
|
|
34
|
-
stackedStyle:
|
|
34
|
+
stackedStyle: e,
|
|
35
35
|
desktopStyle: n
|
|
36
36
|
}) {
|
|
37
|
-
return m === "never" ? n :
|
|
37
|
+
return m === "never" ? n : e;
|
|
38
38
|
}
|
|
39
39
|
const [d, P] = r(
|
|
40
|
-
() =>
|
|
40
|
+
() => t.stackColumnsAt === "never" ? "row" : t.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
41
41
|
);
|
|
42
|
-
function
|
|
42
|
+
function v() {
|
|
43
43
|
return {
|
|
44
44
|
"--flex-dir": d,
|
|
45
45
|
"--flex-dir-tablet": a({
|
|
@@ -48,8 +48,8 @@ function J(e) {
|
|
|
48
48
|
})
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const n =
|
|
51
|
+
function w(e) {
|
|
52
|
+
const n = e === 0 ? 0 : c, i = C(e), l = `${n}px`, g = "100%", h = 0;
|
|
53
53
|
return {
|
|
54
54
|
...{
|
|
55
55
|
display: "flex",
|
|
@@ -76,74 +76,81 @@ function J(e) {
|
|
|
76
76
|
})
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function b(
|
|
79
|
+
function b(e) {
|
|
80
80
|
var i, l;
|
|
81
81
|
return W(
|
|
82
|
-
((l = (i =
|
|
83
|
-
)[
|
|
82
|
+
((l = (i = t.builderContext.content) == null ? void 0 : i.meta) == null ? void 0 : l.breakpoints) || {}
|
|
83
|
+
)[e].max;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function p() {
|
|
86
86
|
return `
|
|
87
87
|
@media (max-width: ${b("medium")}px) {
|
|
88
|
-
.${
|
|
88
|
+
.${t.builderBlock.id}-breakpoints {
|
|
89
89
|
flex-direction: var(--flex-dir-tablet);
|
|
90
90
|
align-items: stretch;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.${
|
|
93
|
+
.${t.builderBlock.id}-breakpoints > .builder-column {
|
|
94
94
|
width: var(--column-width-tablet) !important;
|
|
95
95
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
@media (max-width: ${b("small")}px) {
|
|
100
|
-
.${
|
|
100
|
+
.${t.builderBlock.id}-breakpoints {
|
|
101
101
|
flex-direction: var(--flex-dir);
|
|
102
102
|
align-items: stretch;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.${
|
|
105
|
+
.${t.builderBlock.id}-breakpoints > .builder-column {
|
|
106
106
|
width: var(--column-width-mobile) !important;
|
|
107
107
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
`;
|
|
111
111
|
}
|
|
112
|
-
function $(
|
|
112
|
+
function $(e, n) {
|
|
113
113
|
return {
|
|
114
|
-
...
|
|
115
|
-
href:
|
|
114
|
+
...e.link ? {
|
|
115
|
+
href: e.link
|
|
116
116
|
} : {},
|
|
117
117
|
[D()]: "builder-column",
|
|
118
|
-
style: L(
|
|
118
|
+
style: L(w(n))
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
return /* @__PURE__ */ y(B, { children: [
|
|
122
122
|
/* @__PURE__ */ y(
|
|
123
123
|
"div",
|
|
124
124
|
{
|
|
125
|
-
className: F((f =
|
|
126
|
-
style:
|
|
125
|
+
className: F((f = t.builderBlock) == null ? void 0 : f.id) + " div-fe220f58",
|
|
126
|
+
style: v(),
|
|
127
127
|
children: [
|
|
128
|
-
/* @__PURE__ */ o(
|
|
129
|
-
|
|
128
|
+
/* @__PURE__ */ o(
|
|
129
|
+
z,
|
|
130
|
+
{
|
|
131
|
+
id: "builderio-columns",
|
|
132
|
+
styles: p(),
|
|
133
|
+
nonce: t.builderContext.nonce
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
(k = t.columns) == null ? void 0 : k.map((e, n) => /* @__PURE__ */ o(
|
|
130
137
|
N,
|
|
131
138
|
{
|
|
132
|
-
TagName: S(
|
|
139
|
+
TagName: S(e),
|
|
133
140
|
actionAttributes: {},
|
|
134
|
-
attributes: $(
|
|
141
|
+
attributes: $(e, n),
|
|
135
142
|
children: /* @__PURE__ */ o(
|
|
136
143
|
A,
|
|
137
144
|
{
|
|
138
145
|
path: `component.options.columns.${n}.blocks`,
|
|
139
|
-
parent:
|
|
146
|
+
parent: t.builderBlock.id,
|
|
140
147
|
styleProp: {
|
|
141
148
|
flexGrow: "1"
|
|
142
149
|
},
|
|
143
|
-
context:
|
|
144
|
-
registeredComponents:
|
|
145
|
-
linkComponent:
|
|
146
|
-
blocks:
|
|
150
|
+
context: t.builderContext,
|
|
151
|
+
registeredComponents: t.builderComponents,
|
|
152
|
+
linkComponent: t.builderLinkComponent,
|
|
153
|
+
blocks: e.blocks
|
|
147
154
|
}
|
|
148
155
|
)
|
|
149
156
|
},
|
|
@@ -152,7 +159,7 @@ function J(e) {
|
|
|
152
159
|
]
|
|
153
160
|
}
|
|
154
161
|
),
|
|
155
|
-
/* @__PURE__ */ o("style", { children: `.div-
|
|
162
|
+
/* @__PURE__ */ o("style", { children: `.div-fe220f58 {
|
|
156
163
|
display: flex;
|
|
157
164
|
line-height: normal;
|
|
158
165
|
}` })
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),s=require("./blocks-0bd38a83.cjs"),B=require("./dynamic-renderer-b29b45ca.cjs"),p=require("./get-class-prop-name-3061c329.cjs");require("./blocks-exports.cjs");require("./server-entry-4750de9c.cjs");const q=e=>`builder-columns ${e}-breakpoints`;function z(e){var f,g;const[u,A]=o.useState(()=>typeof e.space=="number"?e.space||0:20),[a,L]=o.useState(()=>e.columns||[]),[d,N]=o.useState(()=>e.stackColumnsAt||"tablet");function y(t){return t.link?e.builderLinkComponent||"a":"div"}function x(t){var n;return((n=a[t])==null?void 0:n.width)||100/a.length}function C(t){const n=x(t),i=u*(a.length-1)*(n/100);return`calc(${n}% - ${i}px)`}function c({stackedStyle:t,desktopStyle:n}){return d==="tablet"?t:n}function m({stackedStyle:t,desktopStyle:n}){return d==="never"?n:t}const[b,W]=o.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function v(){return{"--flex-dir":b,"--flex-dir-tablet":c({stackedStyle:b,desktopStyle:"row"})}}function w(t){const n=t===0?0:u,i=C(t),r=`${n}px`,h="100%",S=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:h,desktopStyle:i}),"--column-margin-left-mobile":m({stackedStyle:S,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:h,desktopStyle:i}),"--column-margin-left-tablet":c({stackedStyle:S,desktopStyle:r})}}function k(t){var i,r;return s.getSizesForBreakpoints(((r=(i=e.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[t].max}function $(){return`
|
|
2
|
+
@media (max-width: ${k("medium")}px) {
|
|
3
|
+
.${e.builderBlock.id}-breakpoints {
|
|
4
|
+
flex-direction: var(--flex-dir-tablet);
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
9
|
+
width: var(--column-width-tablet) !important;
|
|
10
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (max-width: ${k("small")}px) {
|
|
15
|
+
.${e.builderBlock.id}-breakpoints {
|
|
16
|
+
flex-direction: var(--flex-dir);
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
21
|
+
width: var(--column-width-mobile) !important;
|
|
22
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
`}function j(t,n){return{...t.link?{href:t.link}:{},[p.getClassPropName()]:"builder-column",style:s.mapStyleObjToStrIfNeeded(w(n))}}return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:q((f=e.builderBlock)==null?void 0:f.id)+" div-fe220f58",style:v(),children:[l.jsx(s.InlinedStyles,{id:"builderio-columns",styles:$(),nonce:e.builderContext.nonce}),(g=e.columns)==null?void 0:g.map((t,n)=>l.jsx(B.DynamicRenderer,{TagName:y(t),actionAttributes:{},attributes:j(t,n),children:l.jsx(s.Blocks,{path:`component.options.columns.${n}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:t.blocks})},n))]}),l.jsx("style",{children:`.div-fe220f58 {
|
|
26
|
+
display: flex;
|
|
27
|
+
line-height: normal;
|
|
28
|
+
}`})]})}exports.default=z;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as f, jsxs as L, Fragment as z } from "react/jsx-runtime";
|
|
2
2
|
import { lazy as y, useRef as le, useState as C, useEffect as x } from "react";
|
|
3
|
-
import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as
|
|
3
|
+
import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ce, getDefaultCanTrack as W, _track as J, isPreviewing as ue, fetchOneEntry as me, logger as pe, createEditorListener as ge, fetch as fe, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-681e8e79.js";
|
|
4
4
|
import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as Te, Section as ke, Symbol as Ce, Text as Ie, BuilderContext as we } from "./blocks-exports.mjs";
|
|
5
|
-
import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-
|
|
6
|
-
import "./get-class-prop-name-
|
|
5
|
+
import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-fedde8d2.js";
|
|
6
|
+
import "./get-class-prop-name-268b0f61.js";
|
|
7
7
|
import "./dynamic-renderer-8b343325.js";
|
|
8
8
|
const A = {
|
|
9
9
|
"@type": "@builder.io/sdk:Element",
|
|
@@ -129,7 +129,7 @@ const A = {
|
|
|
129
129
|
builderComponents: !0,
|
|
130
130
|
builderLinkComponent: !0
|
|
131
131
|
}
|
|
132
|
-
}, Pe = y(() => import("./accordion-
|
|
132
|
+
}, Pe = y(() => import("./accordion-4a70912d.js")), We = {
|
|
133
133
|
name: "Core:Button",
|
|
134
134
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
135
135
|
defaultStyles: {
|
|
@@ -344,7 +344,7 @@ const A = {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
const n = e.get("columns");
|
|
347
|
-
Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((
|
|
347
|
+
Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((u) => !u.get("width")) || n.reduce((o, m) => o + m.get("width"), 0) !== 100) && t();
|
|
348
348
|
}
|
|
349
349
|
}, {
|
|
350
350
|
name: "space",
|
|
@@ -414,10 +414,10 @@ const A = {
|
|
|
414
414
|
function i(a) {
|
|
415
415
|
return Math.round(a * 1e3) / 1e3;
|
|
416
416
|
}
|
|
417
|
-
const d = e.get("image"),
|
|
417
|
+
const d = e.get("image"), u = e.get("aspectRatio");
|
|
418
418
|
if (fetch(d).then((a) => a.blob()).then((a) => {
|
|
419
419
|
a.type.includes("svg") && e.set("noWebp", !0);
|
|
420
|
-
}), d && (!
|
|
420
|
+
}), d && (!u || u === 0.7041))
|
|
421
421
|
return n(d).then((a) => {
|
|
422
422
|
const o = e.get("aspectRatio");
|
|
423
423
|
e.get("image") === d && (!o || o === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
@@ -541,7 +541,7 @@ const A = {
|
|
|
541
541
|
shouldReceiveBuilderProps: {
|
|
542
542
|
builderContext: !0
|
|
543
543
|
}
|
|
544
|
-
}, He = y(() => import("./slot-
|
|
544
|
+
}, He = y(() => import("./slot-7c61542f.js")), $e = {
|
|
545
545
|
name: "Symbol",
|
|
546
546
|
noWrap: !0,
|
|
547
547
|
static: !0,
|
|
@@ -721,7 +721,7 @@ const A = {
|
|
|
721
721
|
builderComponents: !0,
|
|
722
722
|
builderLinkComponent: !0
|
|
723
723
|
}
|
|
724
|
-
}, qe = y(() => import("./tabs-
|
|
724
|
+
}, qe = y(() => import("./tabs-c3ff0c70.js")), je = {
|
|
725
725
|
shouldReceiveBuilderProps: {
|
|
726
726
|
builderBlock: !1
|
|
727
727
|
},
|
|
@@ -1016,7 +1016,7 @@ const A = {
|
|
|
1016
1016
|
builderComponents: !0,
|
|
1017
1017
|
builderLinkComponent: !0
|
|
1018
1018
|
}
|
|
1019
|
-
}, Je = y(() => import("./form-
|
|
1019
|
+
}, Je = y(() => import("./form-0a58d0e4.js")), Ye = {
|
|
1020
1020
|
name: "Form:Input",
|
|
1021
1021
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1022
1022
|
inputs: [
|
|
@@ -1067,7 +1067,7 @@ const A = {
|
|
|
1067
1067
|
borderStyle: "solid",
|
|
1068
1068
|
borderColor: "#ccc"
|
|
1069
1069
|
}
|
|
1070
|
-
}, Qe = y(() => import("./input-
|
|
1070
|
+
}, Qe = y(() => import("./input-7ae243e2.js")), Ge = {
|
|
1071
1071
|
name: "Form:Select",
|
|
1072
1072
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1073
1073
|
defaultStyles: {
|
|
@@ -1109,7 +1109,7 @@ const A = {
|
|
|
1109
1109
|
}],
|
|
1110
1110
|
static: !0,
|
|
1111
1111
|
noWrap: !0
|
|
1112
|
-
}, Xe = y(() => import("./select-
|
|
1112
|
+
}, Xe = y(() => import("./select-cfa0eb8e.js")), Ze = {
|
|
1113
1113
|
name: "Form:SubmitButton",
|
|
1114
1114
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1115
1115
|
defaultStyles: {
|
|
@@ -1184,7 +1184,7 @@ const A = {
|
|
|
1184
1184
|
}],
|
|
1185
1185
|
noWrap: !0,
|
|
1186
1186
|
static: !0
|
|
1187
|
-
}, it = y(() => import("./img-
|
|
1187
|
+
}, it = y(() => import("./img-252c9967.js")), ot = {
|
|
1188
1188
|
name: "Video",
|
|
1189
1189
|
canHaveChildren: !0,
|
|
1190
1190
|
defaultStyles: {
|
|
@@ -1422,7 +1422,7 @@ const A = {
|
|
|
1422
1422
|
})), dt = ({
|
|
1423
1423
|
canTrack: e,
|
|
1424
1424
|
content: t
|
|
1425
|
-
}) => !(!(P(t).length > 0) || !e || H()),
|
|
1425
|
+
}) => !(!(P(t).length > 0) || !e || H()), ct = (e) => e === "react" || e === "reactNative", oe = ct(te), ut = () => `
|
|
1426
1426
|
window.${ae} = ${lt}
|
|
1427
1427
|
window.${ie} = ${st}
|
|
1428
1428
|
`, mt = (e, t) => `
|
|
@@ -1439,7 +1439,8 @@ function $(e) {
|
|
|
1439
1439
|
"script",
|
|
1440
1440
|
{
|
|
1441
1441
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
1442
|
-
"data-id": e.id
|
|
1442
|
+
"data-id": e.id,
|
|
1443
|
+
nonce: e.nonce || ""
|
|
1443
1444
|
}
|
|
1444
1445
|
);
|
|
1445
1446
|
}
|
|
@@ -1464,9 +1465,9 @@ const gt = (e, t, n = !0) => {
|
|
|
1464
1465
|
event: e,
|
|
1465
1466
|
target: t
|
|
1466
1467
|
}) => {
|
|
1467
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, d = e.clientY - n.top,
|
|
1468
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, d = e.clientY - n.top, u = X(i / n.width), a = X(d / n.height);
|
|
1468
1469
|
return {
|
|
1469
|
-
x:
|
|
1470
|
+
x: u,
|
|
1470
1471
|
y: a
|
|
1471
1472
|
};
|
|
1472
1473
|
}, ht = (e) => {
|
|
@@ -1486,8 +1487,8 @@ const gt = (e, t, n = !0) => {
|
|
|
1486
1487
|
}
|
|
1487
1488
|
};
|
|
1488
1489
|
}, bt = (e) => {
|
|
1489
|
-
var
|
|
1490
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (
|
|
1490
|
+
var u, a;
|
|
1491
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (u = e == null ? void 0 : e.files) == null ? void 0 : u.regular;
|
|
1491
1492
|
let d = "";
|
|
1492
1493
|
if (i && t && n && (d += `
|
|
1493
1494
|
@font-face {
|
|
@@ -1542,18 +1543,18 @@ function kt(e) {
|
|
|
1542
1543
|
const t = le(null);
|
|
1543
1544
|
function n(r) {
|
|
1544
1545
|
var p, s;
|
|
1545
|
-
const
|
|
1546
|
+
const c = {
|
|
1546
1547
|
...e.builderContextSignal.rootState,
|
|
1547
1548
|
...r
|
|
1548
1549
|
};
|
|
1549
|
-
e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p,
|
|
1550
|
+
e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, c) : e.setBuilderContextSignal((l) => ({
|
|
1550
1551
|
...l,
|
|
1551
|
-
rootState:
|
|
1552
|
+
rootState: c
|
|
1552
1553
|
}));
|
|
1553
1554
|
}
|
|
1554
1555
|
function i(r) {
|
|
1555
1556
|
var p, s, l, g, V;
|
|
1556
|
-
const
|
|
1557
|
+
const c = {
|
|
1557
1558
|
...e.builderContextSignal.content,
|
|
1558
1559
|
...r,
|
|
1559
1560
|
data: {
|
|
@@ -1568,7 +1569,7 @@ function kt(e) {
|
|
|
1568
1569
|
};
|
|
1569
1570
|
e.setBuilderContextSignal((b) => ({
|
|
1570
1571
|
...b,
|
|
1571
|
-
content:
|
|
1572
|
+
content: c
|
|
1572
1573
|
}));
|
|
1573
1574
|
}
|
|
1574
1575
|
function d() {
|
|
@@ -1577,7 +1578,7 @@ function kt(e) {
|
|
|
1577
1578
|
"aria-hidden": !0
|
|
1578
1579
|
};
|
|
1579
1580
|
}
|
|
1580
|
-
const [
|
|
1581
|
+
const [u, a] = C(
|
|
1581
1582
|
() => e.contentWrapper || "div"
|
|
1582
1583
|
);
|
|
1583
1584
|
function o(r) {
|
|
@@ -1585,27 +1586,27 @@ function kt(e) {
|
|
|
1585
1586
|
model: e.model,
|
|
1586
1587
|
trustedHosts: e.trustedHosts,
|
|
1587
1588
|
callbacks: {
|
|
1588
|
-
configureSdk: (
|
|
1589
|
+
configureSdk: (c) => {
|
|
1589
1590
|
var l;
|
|
1590
|
-
const { breakpoints: p, contentId: s } =
|
|
1591
|
+
const { breakpoints: p, contentId: s } = c;
|
|
1591
1592
|
!s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && i({
|
|
1592
1593
|
meta: {
|
|
1593
1594
|
breakpoints: p
|
|
1594
1595
|
}
|
|
1595
1596
|
});
|
|
1596
1597
|
},
|
|
1597
|
-
animation: (
|
|
1598
|
-
Ve(
|
|
1598
|
+
animation: (c) => {
|
|
1599
|
+
Ve(c);
|
|
1599
1600
|
},
|
|
1600
|
-
contentUpdate: (
|
|
1601
|
-
i(
|
|
1601
|
+
contentUpdate: (c) => {
|
|
1602
|
+
i(c);
|
|
1602
1603
|
}
|
|
1603
1604
|
}
|
|
1604
1605
|
})(r);
|
|
1605
1606
|
}
|
|
1606
1607
|
function m() {
|
|
1607
|
-
var
|
|
1608
|
-
const r = (p = (
|
|
1608
|
+
var c, p;
|
|
1609
|
+
const r = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.jsCode;
|
|
1609
1610
|
r && Q({
|
|
1610
1611
|
code: r,
|
|
1611
1612
|
context: e.context || {},
|
|
@@ -1620,9 +1621,9 @@ function kt(e) {
|
|
|
1620
1621
|
}
|
|
1621
1622
|
const [h, I] = C(() => ({})), [k, w] = C(() => ({})), [R, E] = C(() => !1);
|
|
1622
1623
|
function v(r) {
|
|
1623
|
-
var
|
|
1624
|
+
var c, p;
|
|
1624
1625
|
if (e.builderContextSignal.content) {
|
|
1625
|
-
const s = (
|
|
1626
|
+
const s = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
1626
1627
|
J({
|
|
1627
1628
|
type: "click",
|
|
1628
1629
|
canTrack: W(e.canTrack),
|
|
@@ -1636,8 +1637,8 @@ function kt(e) {
|
|
|
1636
1637
|
R || E(!0);
|
|
1637
1638
|
}
|
|
1638
1639
|
function S() {
|
|
1639
|
-
var
|
|
1640
|
-
const r = (s = (p = (
|
|
1640
|
+
var c, p, s;
|
|
1641
|
+
const r = (s = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? s : {};
|
|
1641
1642
|
Object.entries(r).forEach(([l, g]) => {
|
|
1642
1643
|
if (!g || k[l] || h[l] && !F())
|
|
1643
1644
|
return;
|
|
@@ -1682,7 +1683,7 @@ function kt(e) {
|
|
|
1682
1683
|
);
|
|
1683
1684
|
}
|
|
1684
1685
|
return x(() => {
|
|
1685
|
-
var r,
|
|
1686
|
+
var r, c;
|
|
1686
1687
|
if (H()) {
|
|
1687
1688
|
if (F() && (window.addEventListener("message", o), se(), de({
|
|
1688
1689
|
...e.locale ? {
|
|
@@ -1698,13 +1699,13 @@ function kt(e) {
|
|
|
1698
1699
|
e.builderContextSignal.componentInfos
|
|
1699
1700
|
).forEach((s) => {
|
|
1700
1701
|
var g;
|
|
1701
|
-
const l =
|
|
1702
|
+
const l = ce(s);
|
|
1702
1703
|
(g = window.parent) == null || g.postMessage(l, "*");
|
|
1703
1704
|
}), window.addEventListener(
|
|
1704
1705
|
"builder:component:stateChangeListenerActivated",
|
|
1705
1706
|
T
|
|
1706
1707
|
)), e.builderContextSignal.content && W(e.canTrack)) {
|
|
1707
|
-
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (
|
|
1708
|
+
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
|
|
1708
1709
|
J({
|
|
1709
1710
|
type: "impression",
|
|
1710
1711
|
canTrack: !0,
|
|
@@ -1713,7 +1714,7 @@ function kt(e) {
|
|
|
1713
1714
|
variationId: s !== l ? s : void 0
|
|
1714
1715
|
});
|
|
1715
1716
|
}
|
|
1716
|
-
if (
|
|
1717
|
+
if (ue() && !F()) {
|
|
1717
1718
|
const s = new URL(location.href).searchParams, l = s.get("builder.preview"), g = s.get(
|
|
1718
1719
|
`builder.overrides.${l}`
|
|
1719
1720
|
), V = s.get("apiKey") || s.get("builder.space");
|
|
@@ -1750,7 +1751,7 @@ function kt(e) {
|
|
|
1750
1751
|
T
|
|
1751
1752
|
));
|
|
1752
1753
|
}, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
|
|
1753
|
-
|
|
1754
|
+
u,
|
|
1754
1755
|
{
|
|
1755
1756
|
ref: t,
|
|
1756
1757
|
onClick: (r) => v(r),
|
|
@@ -1778,15 +1779,22 @@ ${xt({
|
|
|
1778
1779
|
${St(e.isNestedRender)}
|
|
1779
1780
|
`.trim()
|
|
1780
1781
|
);
|
|
1781
|
-
return /* @__PURE__ */ f(
|
|
1782
|
+
return /* @__PURE__ */ f(
|
|
1783
|
+
ne,
|
|
1784
|
+
{
|
|
1785
|
+
id: "builderio-content",
|
|
1786
|
+
styles: t,
|
|
1787
|
+
nonce: e.nonce
|
|
1788
|
+
}
|
|
1789
|
+
);
|
|
1782
1790
|
}
|
|
1783
1791
|
const It = ({
|
|
1784
1792
|
content: e,
|
|
1785
1793
|
data: t,
|
|
1786
1794
|
locale: n
|
|
1787
1795
|
}) => {
|
|
1788
|
-
var
|
|
1789
|
-
const i = {}, d = ((
|
|
1796
|
+
var u, a, o;
|
|
1797
|
+
const i = {}, d = ((u = e == null ? void 0 : e.data) == null ? void 0 : u.state) || {};
|
|
1790
1798
|
return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((m) => {
|
|
1791
1799
|
m.name && m.defaultValue !== void 0 && (i[m.name] = m.defaultValue);
|
|
1792
1800
|
}), {
|
|
@@ -1827,7 +1835,7 @@ function ee(e) {
|
|
|
1827
1835
|
rootState: v
|
|
1828
1836
|
}));
|
|
1829
1837
|
}
|
|
1830
|
-
const [d,
|
|
1838
|
+
const [d, u] = C(
|
|
1831
1839
|
() => [
|
|
1832
1840
|
...G(),
|
|
1833
1841
|
...e.customComponents || []
|
|
@@ -1869,7 +1877,8 @@ function ee(e) {
|
|
|
1869
1877
|
),
|
|
1870
1878
|
inheritedStyles: {},
|
|
1871
1879
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
1872
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
1880
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
1881
|
+
nonce: e.nonce || ""
|
|
1873
1882
|
}));
|
|
1874
1883
|
return /* @__PURE__ */ f(
|
|
1875
1884
|
Re.Provider,
|
|
@@ -1880,6 +1889,7 @@ function ee(e) {
|
|
|
1880
1889
|
children: /* @__PURE__ */ L(
|
|
1881
1890
|
kt,
|
|
1882
1891
|
{
|
|
1892
|
+
nonce: e.nonce,
|
|
1883
1893
|
content: e.content,
|
|
1884
1894
|
data: e.data,
|
|
1885
1895
|
model: e.model,
|
|
@@ -1899,12 +1909,14 @@ function ee(e) {
|
|
|
1899
1909
|
$,
|
|
1900
1910
|
{
|
|
1901
1911
|
id: "builderio-variant-visibility",
|
|
1902
|
-
scriptStr: t
|
|
1912
|
+
scriptStr: t,
|
|
1913
|
+
nonce: e.nonce || ""
|
|
1903
1914
|
}
|
|
1904
1915
|
) : null,
|
|
1905
1916
|
/* @__PURE__ */ f(
|
|
1906
1917
|
Ct,
|
|
1907
1918
|
{
|
|
1919
|
+
nonce: e.nonce || "",
|
|
1908
1920
|
isNestedRender: e.isNestedRender,
|
|
1909
1921
|
contentId: (m = a.content) == null ? void 0 : m.id,
|
|
1910
1922
|
cssCode: (I = (h = a.content) == null ? void 0 : h.data) == null ? void 0 : I.cssCode,
|
|
@@ -1947,7 +1959,7 @@ function Bt(e) {
|
|
|
1947
1959
|
function d() {
|
|
1948
1960
|
return P(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
|
|
1949
1961
|
}
|
|
1950
|
-
function
|
|
1962
|
+
function u() {
|
|
1951
1963
|
var o;
|
|
1952
1964
|
return t ? {
|
|
1953
1965
|
...e.content,
|
|
@@ -1964,7 +1976,8 @@ function Bt(e) {
|
|
|
1964
1976
|
$,
|
|
1965
1977
|
{
|
|
1966
1978
|
id: "builderio-init-variants-fns",
|
|
1967
|
-
scriptStr:
|
|
1979
|
+
scriptStr: ut(),
|
|
1980
|
+
nonce: e.nonce || ""
|
|
1968
1981
|
}
|
|
1969
1982
|
) : null,
|
|
1970
1983
|
t ? /* @__PURE__ */ L(z, { children: [
|
|
@@ -1972,20 +1985,23 @@ function Bt(e) {
|
|
|
1972
1985
|
ne,
|
|
1973
1986
|
{
|
|
1974
1987
|
id: "builderio-variants",
|
|
1975
|
-
styles: d()
|
|
1988
|
+
styles: d(),
|
|
1989
|
+
nonce: e.nonce || ""
|
|
1976
1990
|
}
|
|
1977
1991
|
),
|
|
1978
1992
|
/* @__PURE__ */ f(
|
|
1979
1993
|
$,
|
|
1980
1994
|
{
|
|
1981
1995
|
id: "builderio-variants-visibility",
|
|
1982
|
-
scriptStr: i()
|
|
1996
|
+
scriptStr: i(),
|
|
1997
|
+
nonce: e.nonce || ""
|
|
1983
1998
|
}
|
|
1984
1999
|
),
|
|
1985
2000
|
(a = P(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ f(
|
|
1986
2001
|
ee,
|
|
1987
2002
|
{
|
|
1988
2003
|
isNestedRender: e.isNestedRender,
|
|
2004
|
+
nonce: e.nonce,
|
|
1989
2005
|
content: o,
|
|
1990
2006
|
showContent: !1,
|
|
1991
2007
|
model: e.model,
|
|
@@ -2011,8 +2027,9 @@ function Bt(e) {
|
|
|
2011
2027
|
/* @__PURE__ */ f(
|
|
2012
2028
|
ee,
|
|
2013
2029
|
{
|
|
2030
|
+
nonce: e.nonce,
|
|
2014
2031
|
isNestedRender: e.isNestedRender,
|
|
2015
|
-
content:
|
|
2032
|
+
content: u(),
|
|
2016
2033
|
showContent: !0,
|
|
2017
2034
|
model: e.model,
|
|
2018
2035
|
data: e.data,
|