@builder.io/sdk-vue 0.0.3-1 → 0.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/README.md +2 -14
- package/package.json +5 -4
- package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.7d59e6ba.cjs} +2 -2
- package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.bc1f94cc.js} +3 -3
- package/packages/_vue2/dist/get-processed-block.73e1ad82.js +40 -0
- package/packages/_vue2/dist/get-processed-block.c83086c1.cjs +1 -0
- package/packages/_vue2/dist/{index.19474a4f.js → index.02cbe11b.js} +302 -300
- package/packages/_vue2/dist/index.1d7bcb8c.cjs +4 -0
- package/packages/_vue2/dist/render-block.4d368620.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.4fdcffb1.js} +31 -38
- package/packages/_vue2/dist/render-component-with-context.45bddebc.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.83718839.cjs +1 -0
- package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4b341c2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.a8a981da.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.198fc516.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.d903e589.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.7547b966.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.d2d7376a.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.2b14f2b8.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.d7585530.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +4 -4
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +306 -0
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +396 -0
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +237 -0
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -0
- package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +279 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +368 -0
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue2/dist/src/context/types.d.ts +17 -0
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue2/dist/src/index.d.ts +8 -0
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue2/dist/src/types/components.d.ts +177 -0
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue2/dist/src/types/element.d.ts +59 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.e3632a69.cjs → block-styles.44a21830.cjs} +2 -2
- package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.4fb6c64e.js} +3 -3
- package/packages/_vue3/dist/get-processed-block.19c3700a.js +40 -0
- package/packages/_vue3/dist/get-processed-block.d0247791.cjs +1 -0
- package/packages/_vue3/dist/index.acbcbf48.cjs +4 -0
- package/packages/_vue3/dist/{index.2472a241.js → index.c45f283d.js} +305 -302
- package/packages/_vue3/dist/render-block.9c91f64e.cjs +3 -0
- package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.a0b27065.js} +78 -95
- package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.205a19d1.js} +15 -10
- package/packages/_vue3/dist/render-component-with-context.fd83122c.cjs +1 -0
- package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.38a974b8.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.fbf7bbcb.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.631d4b7f.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.35b18332.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js} +2 -2
- package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.1482932c.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.32666ea6.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +50 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue3/dist/src/context/types.d.ts +17 -0
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue3/dist/src/index.d.ts +8 -0
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue3/dist/src/types/components.d.ts +177 -0
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue3/dist/src/types/element.d.ts +59 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/get-processed-block.1ba91586.js +0 -40
- package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
- package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
- package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
- package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
- package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
- package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
- package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
- package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
- package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { BuilderElement } from './element';
|
|
2
|
+
export interface Input {
|
|
3
|
+
name: string;
|
|
4
|
+
friendlyName?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
defaultValue?: any;
|
|
7
|
+
type: string;
|
|
8
|
+
valueType?: {
|
|
9
|
+
type?: string;
|
|
10
|
+
};
|
|
11
|
+
required?: boolean;
|
|
12
|
+
autoFocus?: boolean;
|
|
13
|
+
subFields?: Input[];
|
|
14
|
+
helperText?: string;
|
|
15
|
+
allowedFileTypes?: string[];
|
|
16
|
+
imageHeight?: number;
|
|
17
|
+
imageWidth?: number;
|
|
18
|
+
mediaHeight?: number;
|
|
19
|
+
mediaWidth?: number;
|
|
20
|
+
hideFromUI?: boolean;
|
|
21
|
+
modelId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number field type validation maximum accepted input
|
|
24
|
+
*/
|
|
25
|
+
max?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number field type validation minimum accepted input
|
|
28
|
+
*/
|
|
29
|
+
min?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number field type step size when using arrows
|
|
32
|
+
*/
|
|
33
|
+
step?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Set this to `true` to show the editor for this input when
|
|
36
|
+
* children of this component are selected. This is useful for things
|
|
37
|
+
* like Tabs, such that users may not always select the Tabs component
|
|
38
|
+
* directly but will still be looking for how to add additional tabs
|
|
39
|
+
*/
|
|
40
|
+
broadcast?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set this to `true` to show the editor for this input when
|
|
43
|
+
* group locked parents of this component are selected. This is useful
|
|
44
|
+
* to bubble up important inputs for locked groups, like text and images
|
|
45
|
+
*/
|
|
46
|
+
bubble?: boolean;
|
|
47
|
+
options?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
enum?: string[] | {
|
|
51
|
+
label: string;
|
|
52
|
+
value: any;
|
|
53
|
+
helperText?: string;
|
|
54
|
+
}[];
|
|
55
|
+
/** Regex field validation for all string types (text, longText, html, url, etc) */
|
|
56
|
+
regex?: {
|
|
57
|
+
/** pattern to test, like "^\/[a-z]$" */
|
|
58
|
+
pattern: string;
|
|
59
|
+
/** flags for the RegExp constructor, e.g. "gi" */
|
|
60
|
+
options?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Friendly message to display to end-users if the regex fails, e.g.
|
|
63
|
+
* "You must use a relative url starting with '/...' "
|
|
64
|
+
*/
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
advanced?: boolean;
|
|
68
|
+
onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
|
|
69
|
+
code?: boolean;
|
|
70
|
+
richText?: boolean;
|
|
71
|
+
showIf?: ((options: Map<string, any>) => boolean) | string;
|
|
72
|
+
copyOnAdd?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface ComponentInfo {
|
|
75
|
+
/**
|
|
76
|
+
* Name your component something unique, e.g. 'MyButton'. You can override built-in components
|
|
77
|
+
* by registering a component with the same name, e.g. 'Text', to replace the built-in text component
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Link to a documentation page for this component
|
|
83
|
+
*/
|
|
84
|
+
docsLink?: string;
|
|
85
|
+
image?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Input schema for your component for users to fill in the options
|
|
88
|
+
*/
|
|
89
|
+
inputs?: Input[];
|
|
90
|
+
class?: any;
|
|
91
|
+
type?: 'angular' | 'webcomponent' | 'react' | 'vue';
|
|
92
|
+
defaultStyles?: {
|
|
93
|
+
[key: string]: string;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Turn on if your component can accept children. Be sure to use in combination with
|
|
97
|
+
* withChildren(YourComponent) like here
|
|
98
|
+
* github.com/BuilderIO/builder/blob/master/examples/react-design-system/src/components/HeroWithChildren/HeroWithChildren.builder.js#L5
|
|
99
|
+
*/
|
|
100
|
+
canHaveChildren?: boolean;
|
|
101
|
+
fragment?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Do not wrap a component in a dom element. Be sure to use {...props.attributes} with this option
|
|
104
|
+
* like here github.com/BuilderIO/builder/blob/master/packages/react/src/blocks/forms/Input.tsx#L34
|
|
105
|
+
*/
|
|
106
|
+
noWrap?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Default children
|
|
109
|
+
*/
|
|
110
|
+
defaultChildren?: BuilderElement[];
|
|
111
|
+
defaults?: Partial<BuilderElement>;
|
|
112
|
+
hooks?: {
|
|
113
|
+
[key: string]: string | Function;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Hide your component in editor, useful for gradually deprecating components
|
|
117
|
+
*/
|
|
118
|
+
hideFromInsertMenu?: boolean;
|
|
119
|
+
tag?: string;
|
|
120
|
+
static?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Passing a list of model names will restrict using the component to only the models listed here, otherwise it'll be available for all models
|
|
123
|
+
*/
|
|
124
|
+
models?: string[];
|
|
125
|
+
builtIn: true;
|
|
126
|
+
/**
|
|
127
|
+
* Specify restrictions direct children must match
|
|
128
|
+
*/
|
|
129
|
+
childRequirements?: {
|
|
130
|
+
/** Message to show when this doesn't match, e.g. "Children of 'Columns' must be a 'Column'" */
|
|
131
|
+
message: string;
|
|
132
|
+
/** Simple way to say children must be a specific component name */
|
|
133
|
+
component?: string;
|
|
134
|
+
/**
|
|
135
|
+
* More advanced - specify a MongoDB-style query (using sift.js github.com/crcn/sift.js)
|
|
136
|
+
* of what the children objects should match, e.g.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* query: {
|
|
140
|
+
* // Child of this element must be a 'Button' or 'Text' component
|
|
141
|
+
* 'component.name': { $in: ['Button', 'Text'] }
|
|
142
|
+
* }
|
|
143
|
+
*/
|
|
144
|
+
query?: any;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Specify restrictions any parent must match
|
|
148
|
+
*/
|
|
149
|
+
requiresParent?: {
|
|
150
|
+
/** Message to show when this doesn't match, e.g. "'Add to cart' buttons must be within a 'Product box'" */
|
|
151
|
+
message: string;
|
|
152
|
+
/** Simple way to say a parent must be a specific component name, e.g. 'Product box' */
|
|
153
|
+
component?: string;
|
|
154
|
+
/**
|
|
155
|
+
* More advanced - specify a MongoDB-style query (using sift.js github.com/crcn/sift.js)
|
|
156
|
+
* of what at least one parent in the parents hierarchy should match, e.g.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* query: {
|
|
160
|
+
* // Thils element must be somewhere inside either a 'Product box' or 'Collection' component
|
|
161
|
+
* 'component.name': { $in: ['Product Box', 'Collection'] }
|
|
162
|
+
* }
|
|
163
|
+
*/
|
|
164
|
+
query?: any;
|
|
165
|
+
};
|
|
166
|
+
/** not yet implemented */
|
|
167
|
+
friendlyName?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Use to restrict access to your component based on a the current user permissions
|
|
170
|
+
* By default components will show to all users
|
|
171
|
+
* for more information on permissions in builder check https://www.builder.io/c/docs/guides/roles-and-permissions
|
|
172
|
+
*/
|
|
173
|
+
requiredPermissions?: Array<Permission>;
|
|
174
|
+
hidden?: boolean;
|
|
175
|
+
}
|
|
176
|
+
declare type Permission = 'read' | 'publish' | 'editCode' | 'editDesigns' | 'admin' | 'create';
|
|
177
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare type JSONValue = string | number | boolean | JSONObject | JSONArray;
|
|
2
|
+
interface JSONObject {
|
|
3
|
+
[x: string]: JSONValue;
|
|
4
|
+
}
|
|
5
|
+
interface JSONArray extends Array<JSONValue> {
|
|
6
|
+
}
|
|
7
|
+
/** @todo typedoc this */
|
|
8
|
+
export interface BuilderElement {
|
|
9
|
+
'@type': '@builder.io/sdk:Element';
|
|
10
|
+
'@version'?: number;
|
|
11
|
+
id?: string;
|
|
12
|
+
tagName?: string;
|
|
13
|
+
layerName?: string;
|
|
14
|
+
groupLocked?: boolean;
|
|
15
|
+
layerLocked?: boolean;
|
|
16
|
+
/** @todo make alias for properties.class */
|
|
17
|
+
class?: string;
|
|
18
|
+
children?: BuilderElement[];
|
|
19
|
+
responsiveStyles?: {
|
|
20
|
+
large?: Partial<CSSStyleDeclaration>;
|
|
21
|
+
medium?: Partial<CSSStyleDeclaration>;
|
|
22
|
+
small?: Partial<CSSStyleDeclaration>;
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
xsmall?: Partial<CSSStyleDeclaration>;
|
|
25
|
+
};
|
|
26
|
+
component?: {
|
|
27
|
+
name: string;
|
|
28
|
+
options?: any;
|
|
29
|
+
tag?: string;
|
|
30
|
+
};
|
|
31
|
+
bindings?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
meta?: {
|
|
35
|
+
[key: string]: JSONValue;
|
|
36
|
+
};
|
|
37
|
+
actions?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
properties?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
code?: {
|
|
44
|
+
bindings?: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
actions?: {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
repeat?: {
|
|
52
|
+
collection: string;
|
|
53
|
+
itemName?: string;
|
|
54
|
+
} | null;
|
|
55
|
+
animations?: Animation[];
|
|
56
|
+
}
|
|
57
|
+
interface Animation {
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.div-
|
|
1
|
+
.div-256wrwn33ry[data-v-2e5dc506]{display:flex;align-items:stretch;line-height:normal}@media (max-width: 991px){.div-256wrwn33ry[data-v-2e5dc506]{flex-direction:var(--flex-dir-tablet)}}@media (max-width: 639px){.div-256wrwn33ry[data-v-2e5dc506]{flex-direction:var(--flex-dir)}}.div-256wrwn33ry-2[data-v-2e5dc506]{display:flex;flex-direction:column;align-items:stretch}@media (max-width: 991px){.div-256wrwn33ry-2[data-v-2e5dc506]{width:var(--column-width-tablet)!important;margin-left:var(--column-margin-left-tablet)!important}}@media (max-width: 639px){.div-256wrwn33ry-2[data-v-2e5dc506]{width:var(--column-width)!important;margin-left:var(--column-margin-left)!important}}.img-2inev3z4vnk[data-v-219500ea]{opacity:1;transition:opacity .2s ease-in-out;position:absolute;height:100%;width:100%;top:0px;left:0px}.div-2inev3z4vnk[data-v-219500ea]{width:100%;pointer-events:none;font-size:0}.div-2inev3z4vnk-2[data-v-219500ea]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.button-20vehov4ay6[data-v-4f342625]{all:unset}.div-2oa2wtipkzk[data-v-75c39314]{display:flex;flex-direction:column;align-items:stretch}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { e as c } from "./index.19474a4f.js";
|
|
2
|
-
const u = (n, t, i) => {
|
|
3
|
-
if (Object(n) !== n)
|
|
4
|
-
return n;
|
|
5
|
-
const e = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
6
|
-
return e.slice(0, -1).reduce(
|
|
7
|
-
(r, s, o) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(e[o + 1])) >> 0 === +e[o + 1] ? [] : {},
|
|
8
|
-
n
|
|
9
|
-
)[e[e.length - 1]] = i, n;
|
|
10
|
-
};
|
|
11
|
-
const a = ({
|
|
12
|
-
block: n,
|
|
13
|
-
context: t,
|
|
14
|
-
state: i
|
|
15
|
-
}) => {
|
|
16
|
-
if (!n.bindings)
|
|
17
|
-
return n;
|
|
18
|
-
const e = {
|
|
19
|
-
...n,
|
|
20
|
-
properties: { ...n.properties },
|
|
21
|
-
actions: { ...n.actions }
|
|
22
|
-
};
|
|
23
|
-
for (const r in n.bindings) {
|
|
24
|
-
const s = n.bindings[r], o = c({ code: s, state: i, context: t });
|
|
25
|
-
u(e, r, o);
|
|
26
|
-
}
|
|
27
|
-
return e;
|
|
28
|
-
};
|
|
29
|
-
function g({
|
|
30
|
-
block: n,
|
|
31
|
-
context: t,
|
|
32
|
-
shouldEvaluateBindings: i,
|
|
33
|
-
state: e
|
|
34
|
-
}) {
|
|
35
|
-
const r = n;
|
|
36
|
-
return i ? a({ block: r, state: e, context: t }) : r;
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
g
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./index.e85eb7cf.cjs"),u=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const d=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n={...e,properties:{...e.properties},actions:{...e.actions}};for(const t in e.bindings){const s=e.bindings[t],c=o.evaluate({code:s,state:i,context:r});u(n,t,c)}return n};function a({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?d({block:t,state:n,context:r}):t}exports.getProcessedBlock=a;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";function ce(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const v="vue2";function h(){return typeof window<"u"&&typeof document<"u"}function le(){return h()&&window.self!==window.top}function f(){return le()&&window.location.search.indexOf("builder.frameEditing=")!==-1}const T={};function P(t,e){let n=T[t];if(n||(n=T[t]=[]),n.push(e),h()){const o={type:"builder.register",data:{type:t,info:e}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const ue=()=>{P("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})},de=t=>{var e,n;f()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:v,supportsPatchUpdates:!1}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:t}},"*"),window.addEventListener("message",({data:o})=>{var r,s;if(o)switch(o.type){case"builder.evaluate":{const a=o.data.text,c=o.data.arguments||[],i=o.data.id,u=new Function(a);let l,m=null;try{l=u.apply(null,c)}catch(d){m=d}m?(r=window.parent)==null||r.postMessage({type:"builder.evaluateError",data:{id:i,error:m.message}},"*"):l&&typeof l.then=="function"?l.then(d=>{var g;(g=window.parent)==null||g.postMessage({type:"builder.evaluateResult",data:{id:i,result:d}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:l,id:i}},"*");break}}}))};function C(t){return t}function pe(t){return t}const me=()=>Promise.resolve().then(()=>ie).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",t),t}),he={name:"builder-columns",components:{RenderBlocks:me},props:["space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderBlock"],data:()=>({markMutable:C}),computed:{columnsCssVars(){const t=this.stackColumnsAt==="never"?"inherit":this.reverseColumnsWhenStacked?"column-reverse":"column";return{"--flex-dir":t,"--flex-dir-tablet":this.maybeApplyForTablet(t)}},columnCssVars(){const t="100%",e="0";return{"--column-width":t,"--column-margin-left":e,"--column-width-tablet":this.maybeApplyForTablet(t),"--column-margin-left-tablet":this.maybeApplyForTablet(e)}}},methods:{getGutterSize(){return typeof this.space=="number"?this.space||0:20},getColumns(){return this.columns||[]},getWidth(t){var n;const e=this.getColumns();return((n=e[t])==null?void 0:n.width)||100/e.length},getColumnCssWidth(t){const e=this.getColumns(),o=this.getGutterSize()*(e.length-1)/e.length;return`calc(${this.getWidth(t)}% - ${o}px)`},maybeApplyForTablet(t){return(this.stackColumnsAt||"tablet")==="tablet"?t:"inherit"}}};function p(t,e,n,o,r,s,a,c){var i=typeof t=="function"?t.options:t;e&&(i.render=e,i.staticRenderFns=n,i._compiled=!0),o&&(i.functional=!0),s&&(i._scopeId="data-v-"+s);var u;if(a?(u=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__<"u"&&(d=__VUE_SSR_CONTEXT__),r&&r.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(a)},i._ssrRegister=u):r&&(u=c?function(){r.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(i.functional){i._injectStyles=u;var l=i.render;i.render=function(g,R){return u.call(R),l(g,R)}}else{var m=i.beforeCreate;i.beforeCreate=m?[].concat(m,u):[u]}return{exports:t,options:i}}var fe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"builder-columns div-t9spj7joih",style:e.columnsCssVars},e._l(e.columns,function(o,r){return n("div",{key:r,staticClass:"builder-column div-t9spj7joih-2",style:{width:e.getColumnCssWidth(r),marginLeft:`${r===0?0:e.getGutterSize()}px`,...e.columnCssVars}},[n("render-blocks",{style:{flexGrow:"1"},attrs:{blocks:e.markMutable(o.blocks),path:`component.options.columns.${r}.blocks`,parent:e.builderBlock.id}})],1)}),0)},ge=[],be=p(he,fe,ge,!1,null,"0f3ea004",null,null);const O=be.exports;function $(t){return t.replace(/http(s)?:/,"")}function ve(t="",e,n){const o=new RegExp("([?&])"+e+"=.*?(&|$)","i"),r=t.indexOf("?")!==-1?"&":"?";return t.match(o)?t.replace(o,"$1"+e+"="+encodeURIComponent(n)+"$2"):t+r+e+"="+encodeURIComponent(n)}function _e(t,e){if(!t||!(t!=null&&t.match(/cdn\.shopify\.com/))||!e)return t;if(e==="master")return $(t);const n=t.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const o=t.split(n[0]),r=n[3],s=e.match("x")?e:`${e}x`;return $(`${o[0]}_${s}${r}`)}return null}function _(t){if(!t)return t;const e=[100,200,400,800,1200,1600,2e3];if(t.match(/builder\.io/)){let n=t;const o=Number(t.split("?width=")[1]);return isNaN(o)||(n=`${n} ${o}w`),e.filter(r=>r!==o).map(r=>`${ve(t,"width",r)} ${r}w`).concat([n]).join(", ")}return t.match(/cdn\.shopify\.com/)?e.map(n=>[_e(t,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([t]).join(", "):t}const ye={name:"builder-image",props:["image","src","srcset","noWebp","altText","backgroundSize","className","sizes","aspectRatio","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const e=this.image||this.src;if(!e||!(e.match(/builder\.io/)||e.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)==null?void 0:n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),_(e)}else if(this.image&&!this.srcset)return _(e);return _(e)},webpSrcSet(){var t;return((t=this.srcSetToUse)==null?void 0:t.match(/builder\.io/))&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""}},methods:{_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var xe=function(){var o,r,s,a;var e=this,n=e._self._c;return n("div",[n("picture",[e.webpSrcSet?[n("source",{attrs:{type:"image/webp",srcset:e.webpSrcSet}})]:e._e(),n("img",{class:e._classStringToObject("builder-image"+(e.className?" "+e.className:"")+" img-29wpyomtntv"),style:{objectPosition:e.backgroundSize||"center",objectFit:e.backgroundSize||"cover"},attrs:{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,src:e.image,srcset:e.srcSetToUse,sizes:e.sizes}}),n("source",{attrs:{srcset:e.srcSetToUse}})],2),e.aspectRatio&&!(((r=(o=e.builderBlock)==null?void 0:o.children)==null?void 0:r.length)&&e.fitContent)?[n("div",{staticClass:"builder-image-sizer div-29wpyomtntv",style:{paddingTop:e.aspectRatio*100+"%"}})]:e._e(),((a=(s=e.builderBlock)==null?void 0:s.children)==null?void 0:a.length)&&e.fitContent?[e._t("default")]:e._e(),!e.fitContent&&e.children?[n("div",{staticClass:"div-29wpyomtntv-2"},[e._t("default")],2)]:e._e()],2)},Ce=[],we=p(ye,xe,Ce,!1,null,"d5be32e0",null,null);const A=we.exports,ke={name:"builder-text",props:["text"]};var Se=function(){var e=this,n=e._self._c;return n("span",{staticClass:"builder-text",domProps:{innerHTML:e._s(e.text)}})},Ie=[],Re=p(ke,Se,Ie,!1,null,null,null,null);const V=Re.exports,Te={name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","attributes","fit","position","video","posterImage"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}}}};var $e=function(){var o;var e=this,n=e._self._c;return n("video",e._b({style:{width:"100%",height:"100%",...(o=e.attributes)==null?void 0:o.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},attrs:{src:e.video||"no-src",poster:e.posterImage}},"video",e.videoProps,!1))},Ee=[],Fe=p(Te,$e,Ee,!1,null,null,null,null);const W=Fe.exports;function y(t,e=null,n="."){return Object.keys(t).reduce((o,r)=>{const s=t[r],a=[e,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...o,...y(s,a,n)}:{...o,[a]:s}},{})}const E="builder.",B=t=>{const e={};return t.forEach((n,o)=>{e[o]=n}),e},M=t=>{if(!t)return{};const e=w(t),n={};return Object.keys(e).forEach(o=>{if(o.startsWith(E)){const r=o.replace(E,"");n[r]=e[o]}}),n},L=()=>{if(!h())return{};const t=new URLSearchParams(window.location.search);return M(t)},w=t=>t instanceof URLSearchParams?B(t):t;function je(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:null}async function N(){const t=je().fetch;if(typeof t>"u"&&typeof global<"u"){const e=Promise.resolve().then(()=>ce(require("node-fetch"))).then(n=>n.default);return e.default||e}return t.default||t}const Ue=t=>{const e=t.split(".");return e.length>2?e.slice(1).join("."):t},z=async({name:t,canTrack:e})=>{var n;try{return e?(n=document.cookie.split("; ").find(o=>o.startsWith(`${t}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){console.debug("[COOKIE] GET error: ",o)}},Pe=t=>t.map(([e,n])=>n?`${e}=${n}`:e).join("; "),Oe=[["secure",""],["SameSite","None"]],Ae=({name:t,value:e,expires:n})=>{const r=(h()?location.protocol==="https:":!0)?Oe:[[]],s=n?[["expires",n.toUTCString()]]:[[]],a=[[t,e],...s,["path","/"],["domain",Ue(window.location.hostname)],...r];return Pe(a)},H=async({name:t,value:e,expires:n,canTrack:o})=>{try{if(!o)return;const r=Ae({name:t,value:e,expires:n});document.cookie=r}catch(r){console.warn("[COOKIE] SET error: ",r)}},Ve="builderio.variations",q=t=>`${Ve}.${t}`,We=({contentId:t,canTrack:e})=>z({name:q(t),canTrack:e}),Be=({contentId:t,canTrack:e,value:n})=>H({name:q(t),value:n,canTrack:e}),b=t=>t!=null,Me=t=>b(t.id)&&b(t.variations)&&Object.keys(t.variations).length>0,Le=({id:t,variations:e})=>{var r;let n=0;const o=Math.random();for(const s in e)if(n+=(r=e[s])==null?void 0:r.testRatio,o<n)return s;return t},F=({item:t,testGroupId:e})=>{const n=t.variations[e];return e===t.id||!n?{testVariationId:t.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===t.id?"Default":"")}},Ne=async({item:t,canTrack:e})=>{const n=await We({canTrack:e,contentId:t.id}),o=n?F({item:t,testGroupId:n}):void 0;if(o)return o;{const r=Le({variations:t.variations,id:t.id});return Be({contentId:t.id,value:r,canTrack:e}).catch(s=>{console.error("could not store A/B test variation: ",s)}),F({item:t,testGroupId:r})}},ze=async({item:t,canTrack:e})=>{if(!Me(t))return;const n=await Ne({item:t,canTrack:e});Object.assign(t,n)};async function k(t){return(await K({...t,limit:1})).results[0]||null}const D=t=>{const{limit:e=30,userAttributes:n,query:o,noTraverse:r=!1,model:s,apiKey:a}=t,c=new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${e}&noTraverse=${r}`),i={...L(),...w(t.options||{})},u=y(i);for(const l in u)c.searchParams.set(l,String(u[l]));if(n&&c.searchParams.set("userAttributes",JSON.stringify(n)),o){const l=y({query:o});for(const m in l)c.searchParams.set(m,JSON.stringify(l[m]))}return c};async function K(t){const e=D(t),o=await(await N())(e.href).then(s=>s.json()),r=t.canTrack!==!1;if(r)for(const s of o.results)await ze({item:s,canTrack:r});return o}const He=()=>Promise.resolve().then(()=>on).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",t),t}),qe={name:"builder-symbol",components:{RenderContent:He},props:["symbol","attributes"],data:()=>({className:"builder-symbol",content:null,markMutable:C}),inject:{builderContext:"BuilderContext"},mounted(){var t;this.content=(t=this.symbol)==null?void 0:t.content},watch:{onUpdateHook0(){const t=this.symbol;t&&!t.content&&!this.content&&t.model&&k({model:t.model,apiKey:this.builderContext.apiKey,query:{id:t.entry}}).then(e=>{this.content=e})}},computed:{onUpdateHook0(){return{0:this.symbol,1:this.content}}},methods:{_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var De=function(){var o,r,s,a,c;var e=this,n=e._self._c;return n("div",e._b({class:e._classStringToObject(e.className),attrs:{dataSet:{class:e.className}}},"div",e.attributes,!1),[n("render-content",{attrs:{apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:e.markMutable(Object.values(e.builderContext.registeredComponents)),data:e.markMutable({...(o=e.symbol)==null?void 0:o.data,...e.builderContext.state,...(a=(s=(r=e.symbol)==null?void 0:r.content)==null?void 0:s.data)==null?void 0:a.state}),model:(c=e.symbol)==null?void 0:c.model,content:e.markMutable(e.content)}})],1)},Ke=[],Ge=p(qe,De,Ke,!1,null,null,null,null);const G=Ge.exports,Je={name:"builder-button",props:["attributes","text","link","openLinkInNewTab"]};var Xe=function(){var e=this,n=e._self._c;return e.link?n("a",e._b({attrs:{role:"button",href:e.link,target:e.openLinkInNewTab?"_blank":void 0}},"a",e.attributes,!1),[e._v(" "+e._s(e.text)+" ")]):n("button",e._b({staticClass:"button-2fnk003dqad"},"button",e.attributes,!1),[e._v(" "+e._s(e.text)+" ")])},Ye=[],Qe=p(Je,Xe,Ye,!1,null,"490b8c29",null,null);const J=Qe.exports,Ze={name:"builder-section-component",props:["attributes","maxWidth"]};var et=function(){var e=this,n=e._self._c;return n("section",e._b({style:e.maxWidth&&typeof e.maxWidth=="number"?{maxWidth:e.maxWidth}:void 0},"section",e.attributes,!1),[e._t("default")],2)},tt=[],nt=p(Ze,et,tt,!1,null,null,null,null);const X=nt.exports,ot={name:"builder-fragment-component",props:[]};var rt=function(){var e=this,n=e._self._c;return n("span",[e._t("default")],2)},st=[],at=p(ot,rt,st,!1,null,null,null,null);const Y=at.exports,it={name:"Core:Button",builtIn:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0};function S(t){return t.__qwik_serializable__=!0,t}const ct={name:"Columns",builtIn:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:S(t=>{function e(){n.forEach(o=>{o.delete("width")})}const n=t.get("columns");Array.isArray(n)&&!!n.find(r=>r.get("width"))&&(!!n.find(s=>!s.get("width"))||n.reduce((c,i)=>c+i.get("width"),0)!==100)&&e()})},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},lt={name:"Fragment",static:!0,hidden:!0,builtIn:!0,canHaveChildren:!0,noWrap:!0},ut={name:"Image",static:!0,builtIn:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",onChange:S(t=>{t.delete("srcset"),t.delete("noWebp");function n(a,c=6e4){return new Promise((i,u)=>{const l=document.createElement("img");let m=!1;l.onload=()=>{m=!0,i(l)},l.addEventListener("error",d=>{console.warn("Image load failed",d.error),u(d.error)}),l.src=a,setTimeout(()=>{m||u(new Error("Image load timed out"))},c)})}function o(a){return Math.round(a*1e3)/1e3}const r=t.get("image"),s=t.get("aspectRatio");if(fetch(r).then(a=>a.blob()).then(a=>{a.type.includes("svg")&&t.set("noWebp",!0)}),r&&(!s||s===.7041))return n(r).then(a=>{const c=t.get("aspectRatio");t.get("image")===r&&(!c||c===.7041)&&a.width&&a.height&&(t.set("aspectRatio",o(a.height/a.width)),t.set("height",a.height),t.set("width",a.width))})})},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},dt={name:"Core:Section",static:!0,builtIn:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},pt={name:"Symbol",noWrap:!0,static:!0,builtIn:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},mt={name:"Text",static:!0,builtIn:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},ht={name:"Video",canHaveChildren:!0,builtIn:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},ft={name:"Embed",static:!0,builtIn:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:S(t=>{const e=t.get("url");if(e)return t.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${e}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{t.get("url")===e&&(o.html?t.set("content",o.html):t.set("content","Invalid url, please try another"))}).catch(o=>{t.set("content","There was an error embedding this URL, please try again or another URL")});t.delete("content")})},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},gt=["text/javascript","application/javascript","application/ecmascript"],bt=t=>gt.includes(t.type),vt={name:"builder-embed",props:["content"],data:()=>({scriptsInserted:[],scriptsRun:[],ranInitFn:!1}),watch:{onUpdateHook0(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const t=this.$refs.elem.getElementsByTagName("script");for(let e=0;e<t.length;e++){const n=t[e];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(bt(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}};var _t=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:e._s(e.content)}})},yt=[],xt=p(vt,_t,yt,!1,null,null,null,null);const Ct=xt.exports,wt={name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data:()=>({isEditing:f})};var kt=function(){var e=this,n=e._self._c;return n("img",e._b({key:e.isEditing()&&e.imgSrc||"default-key",style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},attrs:{alt:e.altText,src:e.imgSrc||e.image}},"img",e.attributes,!1))},St=[],It=p(wt,kt,St,!1,null,null,null,null);const Rt=It.exports,Tt={name:"Raw:Img",hideFromInsertMenu:!0,builtIn:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg"],required:!0}],noWrap:!0,static:!0},$t={name:"builder-custom-code",props:["replaceNodes","code"],data:()=>({scriptsInserted:[],scriptsRun:[]}),mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const t=this.$refs.elem.getElementsByTagName("script");for(let e=0;e<t.length;e++){const n=t[e];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}}},_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var Et=function(){var e=this,n=e._self._c;return n("div",{ref:"elem",class:e._classStringToObject("builder-custom-code"+(e.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:e._s(e.code)}})},Ft=[],jt=p($t,Et,Ft,!1,null,null,null,null);const Ut=jt.exports,Pt={name:"Custom Code",static:!0,builtIn:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},Ot=()=>[{component:O,...ct},{component:A,...ut},{component:Rt,...Tt},{component:V,...mt},{component:W,...ht},{component:G,...pt},{component:J,...it},{component:X,...dt},{component:Y,...lt},{component:Ct,...ft},{component:Ut,...Pt}];function x({code:t,context:e,state:n,event:o}){if(t===""){console.warn("Skipping evaluation of empty code block.");return}const r={isEditing:f(),isBrowser:h(),isServer:!h()},a=!(t.includes(";")||t.includes(" return ")||t.trim().startsWith("return "))?`return (${t});`:t;try{return new Function("builder","Builder","state","context","event",a)(r,r,n,e,o)}catch(c){console.warn(`Builder custom code error:
|
|
2
|
-
While Evaluating:
|
|
3
|
-
`,a,`
|
|
4
|
-
`,c.message||c)}}function Q(){return!h()||f()?!1:Boolean(location.search.indexOf("builder.preview=")!==-1)}const I=[];function At(t,e){return I.push({component:t,...e}),console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."),t}const Z=({component:t,...e})=>({type:"builder.registerComponent",data:Bt(e)}),ee=t=>JSON.parse(JSON.stringify(t)),Vt=t=>typeof t=="function"?Wt(t):ee(t),Wt=t=>{const e=t.toString().trim();return`return (${!e.startsWith("function")&&!e.startsWith("(")?"function ":""}${e}).apply(this, arguments)`},Bt=({inputs:t,...e})=>({...ee(e),inputs:t==null?void 0:t.map(n=>Object.entries(n).reduce((o,[r,s])=>({...o,[r]:Vt(s)}),{}))});function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}function te(){return Mt().replace(/-/g,"")}const ne="builderSessionId",Lt=async({canTrack:t})=>{if(!t)return;const e=await z({name:ne,canTrack:t});if(b(e))return e;{const n=Nt();zt({id:n,canTrack:t})}},Nt=()=>te(),zt=({id:t,canTrack:e})=>H({name:ne,value:t,canTrack:e}),oe=()=>h()&&typeof localStorage<"u"?localStorage:void 0,Ht=({key:t,canTrack:e})=>{var n;try{return e?(n=oe())==null?void 0:n.getItem(t):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o)}},qt=({key:t,canTrack:e,value:n})=>{var o;try{e&&((o=oe())==null||o.setItem(t,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},re="builderVisitorId",Dt=({canTrack:t})=>{if(!t)return;const e=Ht({key:re,canTrack:t});if(b(e))return e;{const n=Kt();Gt({id:n,canTrack:t})}},Kt=()=>te(),Gt=({id:t,canTrack:e})=>qt({key:re,value:t,canTrack:e}),Jt=async({canTrack:t})=>{if(!t)return{visitorId:void 0,sessionId:void 0};const e=await Lt({canTrack:t}),n=Dt({canTrack:t});return{sessionId:e,visitorId:n}},Xt=async({type:t,canTrack:e,orgId:n,contentId:o,...r})=>({type:t,data:{...r,...await Jt({canTrack:e}),ownerId:n,contentId:o}});async function j(t){if(!!t.canTrack&&!f()&&!!(h()||v==="reactNative"))return fetch("https://builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await Xt(t)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(e=>{console.error("Failed to track: ",e)})}const Yt=()=>Promise.resolve().then(()=>ie).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",t),t}),Qt=()=>Promise.resolve().then(()=>require("./render-styles.9d4787d0.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",t),t}),Zt={name:"render-content",components:{RenderContentStyles:Qt,RenderBlocks:Yt},props:["content","data","canTrack","context","customComponents","model","apiKey","locale","includeRefs"],data:()=>({forceReRenderCount:0,overrideContent:null,update:0,overrideState:{},markMutable:C}),provide(){const t=this;return{BuilderContext:{get content(){return t.useContent},get state(){return t.contentState},get context(){return t.contextContext},get apiKey(){return t.apiKey},get registeredComponents(){return t.allRegisteredComponents}}}},mounted(){var t;if(h()){if(f()&&(this.forceReRenderCount=this.forceReRenderCount+1,ue(),de({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{}}),Object.values(this.allRegisteredComponents).forEach(e=>{var o;const n=Z(e);(o=window.parent)==null||o.postMessage(n,"*")}),window.addEventListener("message",this.processMessage),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.useContent&&j({type:"impression",canTrack:this.canTrackToUse,contentId:(t=this.useContent)==null?void 0:t.id,orgId:this.apiKey}),Q()){const e=new URL(location.href).searchParams;if(this.model&&e.get("builder.preview")===this.model){const n=e.get("apiKey")||e.get("builder.space");n&&k({model:this.model,apiKey:n}).then(o=>{o&&(this.overrideContent=o)})}}this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()}},watch:{onUpdateHook0(){this.evaluateJsCode()},onUpdateHook1(){this.runHttpRequests()},onUpdateHook2(){this.emitStateUpdate()}},unmounted(){h()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{useContent(){var e,n;return!this.content&&!this.overrideContent?void 0:{...this.content,...this.overrideContent,data:{...(e=this.content)==null?void 0:e.data,...this.data,...(n=this.overrideContent)==null?void 0:n.data}}},canTrackToUse(){return this.canTrack||!0},contentState(){var t,e;return{...(e=(t=this.content)==null?void 0:t.data)==null?void 0:e.state,...this.data,...this.overrideState}},contextContext(){return this.context||{}},allRegisteredComponents(){return[...Ot(),...I,...this.customComponents||[]].reduce((n,o)=>({...n,[o.name]:o}),{})},httpReqsData(){return{}},shouldRenderContentStyles(){var t,e,n,o,r;return Boolean((((e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.cssCode)||((r=(o=(n=this.useContent)==null?void 0:n.data)==null?void 0:o.customFonts)==null?void 0:r.length))&&v!=="reactNative")},onUpdateHook0(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.jsCode}},onUpdateHook1(){var t,e;return{0:(e=(t=this.useContent)==null?void 0:t.data)==null?void 0:e.httpRequests}},onUpdateHook2(){return{0:this.contentState}}},methods:{processMessage(t){const{data:e}=t;if(e)switch(e.type){case"builder.contentUpdate":{const n=e.data,o=n.key||n.alias||n.entry||n.modelName,r=n.data;o===this.model&&(this.overrideContent=r,this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,n;const t=(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.jsCode;t&&x({code:t,context:this.contextContext,state:this.contentState})},onClick(t){var e;this.useContent&&j({type:"click",canTrack:this.canTrackToUse,contentId:(e=this.useContent)==null?void 0:e.id,orgId:this.apiKey})},evalExpression(t){return t.replace(/{{([^}]+)}}/g,(e,n)=>x({code:n,context:this.contextContext,state:this.contentState}))},handleRequest({url:t,key:e}){N().then(n=>n(t)).then(n=>n.json()).then(n=>{const o={...this.overrideState,[e]:n};this.overrideState=o}).catch(n=>{console.log("error fetching dynamic data",t,n)})},runHttpRequests(){var e,n,o;const t=(o=(n=(e=this.useContent)==null?void 0:e.data)==null?void 0:n.httpRequests)!=null?o:{};Object.entries(t).forEach(([r,s])=>{if(s&&(!this.httpReqsData[r]||f())){const a=this.evalExpression(s);this.handleRequest({url:a,key:r})}})},emitStateUpdate(){f()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:this.contentState,ref:{name:this.model}}}))}}};var en=function(){var o,r,s,a,c,i,u;var e=this,n=e._self._c;return e.useContent?n("div",{ref:"elementRef",attrs:{"builder-content-id":(o=e.useContent)==null?void 0:o.id},on:{click:function(l){return e.onClick(l)}}},[e.shouldRenderContentStyles?[n("render-content-styles",{attrs:{cssCode:(s=(r=e.useContent)==null?void 0:r.data)==null?void 0:s.cssCode,customFonts:(c=(a=e.useContent)==null?void 0:a.data)==null?void 0:c.customFonts}})]:e._e(),n("render-blocks",{key:e.forceReRenderCount,attrs:{blocks:e.markMutable((u=(i=e.useContent)==null?void 0:i.data)==null?void 0:u.blocks)}})],2):e._e()},tn=[],nn=p(Zt,en,tn,!1,null,null,null,null);const se=nn.exports,on=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"})),rn=()=>Promise.resolve().then(()=>require("./block-styles.c531694e.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",t),t}),sn=()=>Promise.resolve().then(()=>require("./render-block.4f260352.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",t),t}),an={name:"render-blocks",components:{RenderBlock:sn,BlockStyles:rn},props:["blocks","parent","path","style"],inject:{builderContext:"BuilderContext"},computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;f()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;f()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const n=t.trim().split(/\s+/);for(const o of n)e[o]=!0;return e}}};var cn=function(){var e=this,n=e._self._c;return n("div",{class:e._classStringToObject(e.className+" div-21azgz5avex"),style:e.style,attrs:{"builder-path":e.path,"builder-parent-id":e.parent,dataSet:{class:e.className}},on:{click:function(o){return e.onClick()},mouseenter:function(o){return e.onMouseEnter()}}},[e.blocks?e._l(e.blocks,function(o,r){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:e.builderContext}})}):e._e(),e.blocks?e._l(e.blocks,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.builderContext}})}):e._e()],2)},ln=[],un=p(an,cn,ln,!1,null,"75050a7e",null,null);const ae=un.exports,ie=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),U={};function dn(t){if(h()){Object.assign(U,t);const e={type:"builder.settingsChange",data:U};parent.postMessage(e,"*")}}exports.Button=J;exports.Columns=O;exports.Fragment=Y;exports.Image=A;exports.Section=X;exports.Symbol=G;exports.TARGET=v;exports.Text=V;exports.Video=W;exports.components=I;exports.convertSearchParamsToQueryObject=B;exports.createRegisterComponentMessage=Z;exports.evaluate=x;exports.generateContentUrl=D;exports.getAllContent=K;exports.getBuilderSearchParams=M;exports.getBuilderSearchParamsFromWindow=L;exports.getContent=k;exports.isEditing=f;exports.isPreviewing=Q;exports.markPropsMutable=pe;exports.normalizeComponent=p;exports.normalizeSearchParams=w;exports.register=P;exports.registerComponent=At;exports.renderBlocks=ae;exports.renderContent=se;exports.setEditorSettings=dn;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.e85eb7cf.cjs"),l=require("./get-processed-block.6a23a7de.cjs"),m=e=>`v-on:${e.toLowerCase()}`;function u(e,t){return n=>c.evaluate({code:e,context:t.context,state:t.state,event:n})}function p(e){var o;const t={},n=(o=e.block.actions)!=null?o:{};for(const r in n){if(!n.hasOwnProperty(r))continue;const s=n[r];t[m(r)]=u(s,e)}return t}function h(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}function x(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\\s+/);for(const o of n)t[o]=!0;return t}function k(e){var t;return{...e.properties,"builder-id":e.id,class:x([e.id,"builder-block",e.class,(t=e.properties)==null?void 0:t.class].filter(Boolean).join(" "))}}function f(){return{}}function b(e){return e.tagName||"div"}const g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=e=>typeof e=="string"&&g.includes(e.toLowerCase()),C=()=>Promise.resolve().then(()=>require("./block-styles.c531694e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),v=()=>Promise.resolve().then(()=>require("./render-repeated-block.95861e2e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",e),e}),B=()=>Promise.resolve().then(()=>require("./render-component-with-context.f76bfccc.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponentWithContext at ./render-component-with-context.vue",e),e}),d=()=>Promise.resolve().then(()=>require("./render-component.a9d4efb1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),_={name:"render-block",components:{RenderRepeatedBlock:v,BlockStyles:C,RenderComponentWithContext:B,RenderComponent:d},props:["block","context"],data:()=>({isEmptyHtmlElement:y,TARGET:c.TARGET}),computed:{component(){var n;const e=(n=l.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!1}).component)==null?void 0:n.name;if(!e)return null;const t=this.context.registeredComponents[e];if(t)return t;console.warn(`
|
|
2
|
-
Could not find a registered component named "${e}".
|
|
3
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},tagName(){return b(this.useBlock)},useBlock(){return this.repeatItemData?this.block:l.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},attributes(){return{...k(this.useBlock),...p({block:this.useBlock,state:this.context.state,context:this.context.context}),style:f({block:this.useBlock,context:this.context})}},shouldWrap(){var e;return!((e=this.component)!=null&&e.noWrap)},renderComponentProps(){var e;return{blockChildren:this.children,componentRef:(e=this.component)==null?void 0:e.component,componentOptions:{...h(this.useBlock),...this.shouldWrap?{}:{attributes:this.attributes}},context:this.childrenContext}},children(){var e;return(e=this.useBlock.children)!=null?e:[]},childrenWithoutParentComponent(){var t;return!((t=this.component)!=null&&t.component)&&!this.repeatItemData?this.children:[]},repeatItemData(){const{repeat:e,...t}=this.block;if(!(e!=null&&e.collection))return;const n=c.evaluate({code:e.collection,state:this.context.state,context:this.context.context});if(!Array.isArray(n))return;const o=e.collection.split(".").pop(),r=e.itemName||(o?o+"Item":"item");return n.map((i,a)=>({context:{...this.context,state:{...this.context.state,$index:a,$item:i,[r]:i,[`$${r}Index`]:a}},block:t}))},inheritedTextStyles(){return{}},childrenContext(){return{apiKey:this.context.apiKey,state:this.context.state,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:this.inheritedTextStyles}},renderComponentTag(){return d}}};var E=function(){var t=this,n=t._self._c;return Boolean(t.shouldWrap)?t.isEmptyHtmlElement(t.tagName)?n(t.tagName,t._b({tag:"component"},"component",t.attributes,!1)):!t.isEmptyHtmlElement(t.tagName)&&t.TARGET==="vue2"&&t.repeatItemData?n("div",{staticClass:"vue2-root-element-workaround"},t._l(t.repeatItemData,function(o,r){return n("render-repeated-block",{key:r,attrs:{repeatContext:o.context,block:o.block}})}),1):n(t.tagName,t._b({tag:"component"},"component",t.attributes,!1),[n(t.renderComponentTag,t._b({tag:"component"},"component",t.renderComponentProps,!1)),t._l(t.childrenWithoutParentComponent,function(o,r){return n("render-block",{key:"render-block-"+o.id,attrs:{block:o,context:t.childrenContext}})}),t._l(t.childrenWithoutParentComponent,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:t.childrenContext}})})],2):n(t.renderComponentTag,t._b({tag:"component"},"component",t.renderComponentProps,!1))},R=[],T=c.normalizeComponent(_,E,R,!1,null,null,null,null);const P=T.exports;exports.default=P;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { n as o } from "./index.19474a4f.js";
|
|
2
|
-
const r = () => import("./render-component.56e5101d.js").then((e) => e.default).catch((e) => {
|
|
3
|
-
throw console.error(
|
|
4
|
-
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
5
|
-
e
|
|
6
|
-
), e;
|
|
7
|
-
}), c = {
|
|
8
|
-
name: "render-component-with-context",
|
|
9
|
-
components: { RenderComponent: r },
|
|
10
|
-
props: ["context"],
|
|
11
|
-
provide() {
|
|
12
|
-
const e = this;
|
|
13
|
-
return {
|
|
14
|
-
BuilderContext: {
|
|
15
|
-
get content() {
|
|
16
|
-
return e.context.content;
|
|
17
|
-
},
|
|
18
|
-
get state() {
|
|
19
|
-
return e.context.state;
|
|
20
|
-
},
|
|
21
|
-
get context() {
|
|
22
|
-
return e.context.context;
|
|
23
|
-
},
|
|
24
|
-
get apiKey() {
|
|
25
|
-
return e.context.apiKey;
|
|
26
|
-
},
|
|
27
|
-
get registeredComponents() {
|
|
28
|
-
return e.context.registeredComponents;
|
|
29
|
-
},
|
|
30
|
-
get inheritedStyles() {
|
|
31
|
-
return e.context.inheritedStyles;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var s = function() {
|
|
38
|
-
var t = this, n = t._self._c;
|
|
39
|
-
return n("render-component", t._b({}, "render-component", t.props, !1));
|
|
40
|
-
}, p = [], i = /* @__PURE__ */ o(
|
|
41
|
-
c,
|
|
42
|
-
s,
|
|
43
|
-
p,
|
|
44
|
-
!1,
|
|
45
|
-
null,
|
|
46
|
-
null,
|
|
47
|
-
null,
|
|
48
|
-
null
|
|
49
|
-
);
|
|
50
|
-
const m = i.exports;
|
|
51
|
-
export {
|
|
52
|
-
m as default
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.e85eb7cf.cjs"),o=()=>Promise.resolve().then(()=>require("./render-component.a9d4efb1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),c={name:"render-component-with-context",components:{RenderComponent:o},props:["context"],provide(){const e=this;return{BuilderContext:{get content(){return e.context.content},get state(){return e.context.state},get context(){return e.context.context},get apiKey(){return e.context.apiKey},get registeredComponents(){return e.context.registeredComponents},get inheritedStyles(){return e.context.inheritedStyles}}}}};var s=function(){var t=this,n=t._self._c;return n("render-component",t._b({},"render-component",t.props,!1))},i=[],d=r.normalizeComponent(c,s,i,!1,null,null,null,null);const l=d.exports;exports.default=l;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { e as c } from "./index.2472a241.js";
|
|
2
|
-
const u = (n, t, i) => {
|
|
3
|
-
if (Object(n) !== n)
|
|
4
|
-
return n;
|
|
5
|
-
const e = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
6
|
-
return e.slice(0, -1).reduce(
|
|
7
|
-
(r, s, o) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(e[o + 1])) >> 0 === +e[o + 1] ? [] : {},
|
|
8
|
-
n
|
|
9
|
-
)[e[e.length - 1]] = i, n;
|
|
10
|
-
};
|
|
11
|
-
const a = ({
|
|
12
|
-
block: n,
|
|
13
|
-
context: t,
|
|
14
|
-
state: i
|
|
15
|
-
}) => {
|
|
16
|
-
if (!n.bindings)
|
|
17
|
-
return n;
|
|
18
|
-
const e = {
|
|
19
|
-
...n,
|
|
20
|
-
properties: { ...n.properties },
|
|
21
|
-
actions: { ...n.actions }
|
|
22
|
-
};
|
|
23
|
-
for (const r in n.bindings) {
|
|
24
|
-
const s = n.bindings[r], o = c({ code: s, state: i, context: t });
|
|
25
|
-
u(e, r, o);
|
|
26
|
-
}
|
|
27
|
-
return e;
|
|
28
|
-
};
|
|
29
|
-
function g({
|
|
30
|
-
block: n,
|
|
31
|
-
context: t,
|
|
32
|
-
shouldEvaluateBindings: i,
|
|
33
|
-
state: e
|
|
34
|
-
}) {
|
|
35
|
-
const r = n;
|
|
36
|
-
return i ? a({ block: r, state: e, context: t }) : r;
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
g
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./index.e7c6fe34.cjs"),u=(e,r,i)=>{if(Object(e)!==e)return e;const n=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((t,s,c)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(Number(n[c+1]))>>0===+n[c+1]?[]:{},e)[n[n.length-1]]=i,e};const d=({block:e,context:r,state:i})=>{if(!e.bindings)return e;const n={...e,properties:{...e.properties},actions:{...e.actions}};for(const t in e.bindings){const s=e.bindings[t],c=o.evaluate({code:s,state:i,context:r});u(n,t,c)}return n};function a({block:e,context:r,shouldEvaluateBindings:i,state:n}){const t=e;return i?d({block:t,state:n,context:r}):t}exports.getProcessedBlock=a;
|