@builder.io/sdk-react-nextjs 0.16.11 → 0.16.12
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/button/button.cjs +1 -0
- package/lib/browser/blocks/button/button.mjs +31 -0
- package/lib/browser/blocks/button/component-info.cjs +1 -0
- package/lib/browser/blocks/button/component-info.mjs +40 -0
- package/lib/browser/blocks/columns/columns.cjs +28 -0
- package/lib/browser/blocks/columns/columns.mjs +154 -0
- package/lib/browser/blocks/columns/component-info.cjs +1 -0
- package/lib/browser/blocks/columns/component-info.mjs +211 -0
- package/lib/browser/blocks/columns/helpers.cjs +1 -0
- package/lib/browser/blocks/columns/helpers.mjs +4 -0
- package/lib/browser/blocks/custom-code/component-info.cjs +1 -0
- package/lib/browser/blocks/custom-code/component-info.mjs +26 -0
- package/lib/browser/blocks/custom-code/custom-code.cjs +1 -0
- package/lib/browser/blocks/custom-code/custom-code.mjs +44 -0
- package/lib/browser/blocks/embed/component-info.cjs +1 -0
- package/lib/browser/blocks/embed/component-info.mjs +19 -0
- package/lib/browser/blocks/embed/embed.cjs +1 -0
- package/lib/browser/blocks/embed/embed.mjs +38 -0
- package/lib/browser/blocks/embed/helpers.cjs +1 -0
- package/lib/browser/blocks/embed/helpers.mjs +4 -0
- package/lib/browser/blocks/fragment/component-info.cjs +1 -0
- package/lib/browser/blocks/fragment/component-info.mjs +10 -0
- package/lib/browser/blocks/fragment/fragment.cjs +1 -0
- package/lib/browser/blocks/fragment/fragment.mjs +8 -0
- package/lib/browser/blocks/image/component-info.cjs +1 -0
- package/lib/browser/blocks/image/component-info.mjs +112 -0
- package/lib/browser/blocks/image/image.cjs +17 -0
- package/lib/browser/blocks/image/image.helpers.cjs +1 -0
- package/lib/browser/blocks/image/image.helpers.mjs +33 -0
- package/lib/browser/blocks/image/image.mjs +94 -0
- package/lib/browser/blocks/img/component-info.cjs +1 -0
- package/lib/browser/blocks/img/component-info.mjs +18 -0
- package/lib/browser/blocks/img/img.cjs +1 -0
- package/lib/browser/blocks/img/img.mjs +21 -0
- package/lib/browser/blocks/section/component-info.cjs +1 -0
- package/lib/browser/blocks/section/component-info.mjs +43 -0
- package/lib/browser/blocks/section/section.cjs +1 -0
- package/lib/browser/blocks/section/section.mjs +26 -0
- package/lib/browser/blocks/slot/component-info.cjs +1 -0
- package/lib/browser/blocks/slot/component-info.mjs +21 -0
- package/lib/browser/blocks/slot/slot.cjs +1 -0
- package/lib/browser/blocks/slot/slot.mjs +29 -0
- package/lib/browser/blocks/symbol/component-info.cjs +1 -0
- package/lib/browser/blocks/symbol/component-info.mjs +43 -0
- package/lib/browser/blocks/symbol/symbol.cjs +1 -0
- package/lib/browser/blocks/symbol/symbol.helpers.cjs +1 -0
- package/lib/browser/blocks/symbol/symbol.helpers.mjs +24 -0
- package/lib/browser/blocks/symbol/symbol.mjs +51 -0
- package/lib/browser/blocks/text/component-info.cjs +1 -0
- package/lib/browser/blocks/text/component-info.mjs +26 -0
- package/lib/browser/blocks/text/text.cjs +1 -0
- package/lib/browser/blocks/text/text.mjs +36 -0
- package/lib/browser/blocks/video/component-info.cjs +1 -0
- package/lib/browser/blocks/video/component-info.mjs +88 -0
- package/lib/browser/blocks/video/video.cjs +1 -0
- package/lib/browser/blocks/video/video.mjs +106 -0
- package/lib/browser/blocks-exports.cjs +1 -188
- package/lib/browser/blocks-exports.mjs +22 -2926
- package/lib/browser/components/block/animator.cjs +1 -0
- package/lib/browser/components/block/animator.mjs +44 -0
- package/lib/browser/components/block/block.cjs +1 -0
- package/lib/browser/components/block/block.helpers.cjs +3 -0
- package/lib/browser/components/block/block.helpers.mjs +78 -0
- package/lib/browser/components/block/block.mjs +146 -0
- package/lib/browser/components/block/components/block-styles.cjs +1 -0
- package/lib/browser/components/block/components/block-styles.mjs +68 -0
- package/lib/browser/components/block/components/block-wrapper.cjs +1 -0
- package/lib/browser/components/block/components/block-wrapper.mjs +29 -0
- package/lib/browser/components/block/components/component-ref/component-ref.cjs +1 -0
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.cjs +1 -0
- package/lib/browser/components/block/components/component-ref/component-ref.helpers.mjs +34 -0
- package/lib/browser/components/block/components/component-ref/component-ref.mjs +36 -0
- package/lib/browser/components/block/components/interactive-element.cjs +1 -0
- package/lib/browser/components/block/components/interactive-element.mjs +25 -0
- package/lib/browser/components/block/components/repeated-block.cjs +1 -0
- package/lib/browser/components/block/components/repeated-block.mjs +17 -0
- package/lib/browser/components/blocks/blocks-wrapper.cjs +5 -0
- package/lib/browser/components/blocks/blocks-wrapper.mjs +63 -0
- package/lib/browser/components/blocks/blocks.cjs +1 -0
- package/lib/browser/components/blocks/blocks.mjs +30 -0
- package/lib/browser/components/content/components/enable-editor.cjs +1 -0
- package/lib/browser/components/content/components/enable-editor.mjs +280 -0
- package/lib/browser/components/content/components/styles.cjs +5 -0
- package/lib/browser/components/content/components/styles.helpers.cjs +32 -0
- package/lib/browser/components/content/components/styles.helpers.mjs +58 -0
- package/lib/browser/components/content/components/styles.mjs +26 -0
- package/lib/browser/components/content/content.cjs +1 -0
- package/lib/browser/components/content/content.helpers.cjs +1 -0
- package/lib/browser/components/content/content.helpers.mjs +32 -0
- package/lib/browser/components/content/content.mjs +111 -0
- package/lib/browser/components/content-variants/content-variants.cjs +1 -0
- package/lib/browser/components/content-variants/content-variants.mjs +117 -0
- package/lib/browser/components/content-variants/helpers.cjs +9 -0
- package/lib/browser/components/content-variants/helpers.mjs +29 -0
- package/lib/browser/components/content-variants/inlined-fns.cjs +91 -0
- package/lib/browser/components/content-variants/inlined-fns.mjs +95 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.cjs +1 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.helpers.cjs +1 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.helpers.mjs +4 -0
- package/lib/browser/components/dynamic-renderer/dynamic-renderer.mjs +9 -0
- package/lib/browser/components/inlined-script.cjs +1 -0
- package/lib/browser/components/inlined-script.mjs +14 -0
- package/lib/browser/components/inlined-styles.cjs +1 -0
- package/lib/browser/components/inlined-styles.mjs +14 -0
- package/lib/browser/constants/builder-registered-components.cjs +1 -0
- package/lib/browser/constants/builder-registered-components.mjs +48 -0
- package/lib/browser/constants/device-sizes.cjs +1 -0
- package/lib/browser/constants/device-sizes.mjs +48 -0
- package/lib/browser/constants/extra-components.cjs +1 -0
- package/lib/browser/constants/extra-components.mjs +27 -0
- package/lib/browser/constants/sdk-name.cjs +1 -0
- package/lib/browser/constants/sdk-name.mjs +14 -0
- package/lib/browser/constants/sdk-version.cjs +1 -0
- package/lib/browser/constants/sdk-version.mjs +4 -0
- package/lib/browser/constants/target.cjs +1 -0
- package/lib/browser/constants/target.mjs +4 -0
- package/lib/browser/context/builder.context.cjs +1 -0
- package/lib/browser/context/builder.context.mjs +20 -0
- package/lib/browser/functions/camel-to-kebab-case.cjs +1 -0
- package/lib/browser/functions/camel-to-kebab-case.mjs +4 -0
- package/lib/browser/functions/evaluate/browser-runtime/browser.cjs +1 -0
- package/lib/browser/functions/evaluate/browser-runtime/browser.mjs +51 -0
- package/lib/browser/functions/evaluate/choose-eval.cjs +1 -0
- package/lib/browser/functions/evaluate/choose-eval.mjs +7 -0
- package/lib/browser/functions/evaluate/evaluate.cjs +1 -0
- package/lib/browser/functions/evaluate/evaluate.mjs +71 -0
- package/lib/browser/functions/evaluate/helpers.cjs +1 -0
- package/lib/browser/functions/evaluate/helpers.mjs +28 -0
- package/lib/browser/functions/evaluate/node-runtime/node-runtime.cjs +8 -0
- package/lib/browser/functions/evaluate/node-runtime/node-runtime.mjs +38 -0
- package/lib/browser/functions/evaluate/node-runtime/safeDynamicRequire.cjs +1 -0
- package/lib/browser/functions/evaluate/node-runtime/safeDynamicRequire.mjs +10 -0
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.cjs +1 -0
- package/lib/browser/functions/evaluate/should-force-browser-runtime-in-node.mjs +12 -0
- package/lib/browser/functions/event-handler-name.cjs +1 -0
- package/lib/browser/functions/event-handler-name.mjs +7 -0
- package/lib/browser/functions/fast-clone.cjs +1 -0
- package/lib/browser/functions/fast-clone.mjs +4 -0
- package/lib/browser/functions/fetch-builder-props.cjs +1 -0
- package/lib/browser/functions/fetch-builder-props.mjs +25 -0
- package/lib/browser/functions/get-block-actions-handler.cjs +1 -0
- package/lib/browser/functions/get-block-actions-handler.mjs +14 -0
- package/lib/browser/functions/get-block-actions.cjs +1 -0
- package/lib/browser/functions/get-block-actions.mjs +27 -0
- package/lib/browser/functions/get-block-component-options.cjs +1 -0
- package/lib/browser/functions/get-block-component-options.mjs +10 -0
- package/lib/browser/functions/get-block-properties.cjs +1 -0
- package/lib/browser/functions/get-block-properties.mjs +30 -0
- package/lib/browser/functions/get-builder-search-params/index.cjs +1 -0
- package/lib/browser/functions/get-builder-search-params/index.mjs +22 -0
- package/lib/browser/functions/get-class-prop-name.cjs +1 -0
- package/lib/browser/functions/get-class-prop-name.mjs +18 -0
- package/lib/browser/functions/get-content/generate-content-url.cjs +1 -0
- package/lib/browser/functions/get-content/generate-content-url.mjs +52 -0
- package/lib/browser/functions/get-content/index.cjs +1 -0
- package/lib/browser/functions/get-content/index.mjs +62 -0
- package/lib/browser/functions/get-fetch.cjs +2 -0
- package/lib/browser/functions/get-fetch.mjs +12 -0
- package/lib/browser/functions/get-global-this.cjs +1 -0
- package/lib/browser/functions/get-global-this.mjs +6 -0
- package/lib/browser/functions/get-processed-block.cjs +1 -0
- package/lib/browser/functions/get-processed-block.mjs +88 -0
- package/lib/browser/functions/get-style.cjs +1 -0
- package/lib/browser/functions/get-style.mjs +29 -0
- package/lib/browser/functions/is-browser.cjs +1 -0
- package/lib/browser/functions/is-browser.mjs +6 -0
- package/lib/browser/functions/is-editing.cjs +1 -0
- package/lib/browser/functions/is-editing.mjs +9 -0
- package/lib/browser/functions/is-from-trusted-host.cjs +1 -0
- package/lib/browser/functions/is-from-trusted-host.mjs +10 -0
- package/lib/browser/functions/is-iframe.cjs +1 -0
- package/lib/browser/functions/is-iframe.mjs +7 -0
- package/lib/browser/functions/is-node-runtime.cjs +1 -0
- package/lib/browser/functions/is-node-runtime.mjs +8 -0
- package/lib/browser/functions/is-previewing.cjs +1 -0
- package/lib/browser/functions/is-previewing.mjs +9 -0
- package/lib/browser/functions/register-component.cjs +1 -0
- package/lib/browser/functions/register-component.mjs +14 -0
- package/lib/browser/functions/register.cjs +1 -0
- package/lib/browser/functions/register.mjs +24 -0
- package/lib/browser/functions/set-editor-settings.cjs +1 -0
- package/lib/browser/functions/set-editor-settings.mjs +15 -0
- package/lib/browser/functions/set.cjs +1 -0
- package/lib/browser/functions/set.mjs +9 -0
- package/lib/browser/functions/track/helpers.cjs +1 -0
- package/lib/browser/functions/track/helpers.mjs +38 -0
- package/lib/browser/functions/track/index.cjs +1 -0
- package/lib/browser/functions/track/index.mjs +72 -0
- package/lib/browser/functions/track/interaction.cjs +1 -0
- package/lib/browser/functions/track/interaction.mjs +46 -0
- package/lib/browser/functions/transform-block-properties.cjs +1 -0
- package/lib/browser/functions/transform-block-properties.mjs +8 -0
- package/lib/browser/functions/transform-block.cjs +1 -0
- package/lib/browser/functions/transform-block.mjs +6 -0
- package/lib/browser/functions/transform-style-property.cjs +1 -0
- package/lib/browser/functions/transform-style-property.mjs +8 -0
- package/lib/browser/helpers/ab-tests.cjs +1 -0
- package/lib/browser/helpers/ab-tests.mjs +102 -0
- package/lib/browser/helpers/canTrack.cjs +1 -0
- package/lib/browser/helpers/canTrack.mjs +5 -0
- package/lib/browser/helpers/cookie.cjs +1 -0
- package/lib/browser/helpers/cookie.mjs +46 -0
- package/lib/browser/helpers/css.cjs +6 -0
- package/lib/browser/helpers/css.mjs +23 -0
- package/lib/browser/helpers/flatten.cjs +1 -0
- package/lib/browser/helpers/flatten.mjs +23 -0
- package/lib/browser/helpers/localStorage.cjs +1 -0
- package/lib/browser/helpers/localStorage.mjs +28 -0
- package/lib/browser/helpers/logger.cjs +1 -0
- package/lib/browser/helpers/logger.mjs +10 -0
- package/lib/browser/helpers/nullable.cjs +1 -0
- package/lib/browser/helpers/nullable.mjs +4 -0
- package/lib/browser/helpers/omit.cjs +1 -0
- package/lib/browser/helpers/omit.mjs +9 -0
- package/lib/browser/helpers/preview-lru-cache/get.cjs +1 -0
- package/lib/browser/helpers/preview-lru-cache/get.mjs +10 -0
- package/lib/browser/helpers/preview-lru-cache/helpers.cjs +1 -0
- package/lib/browser/helpers/preview-lru-cache/helpers.mjs +34 -0
- package/lib/browser/helpers/preview-lru-cache/init.cjs +1 -0
- package/lib/browser/helpers/preview-lru-cache/init.mjs +9 -0
- package/lib/browser/helpers/preview-lru-cache/set.cjs +1 -0
- package/lib/browser/helpers/preview-lru-cache/set.mjs +11 -0
- package/lib/browser/helpers/search/search.cjs +1 -0
- package/lib/browser/helpers/search/search.mjs +11 -0
- package/lib/browser/helpers/sessionId.cjs +1 -0
- package/lib/browser/helpers/sessionId.mjs +34 -0
- package/lib/browser/helpers/subscribe-to-editor.cjs +1 -0
- package/lib/browser/helpers/subscribe-to-editor.mjs +54 -0
- package/lib/browser/helpers/url.cjs +1 -0
- package/lib/browser/helpers/url.mjs +9 -0
- package/lib/browser/helpers/uuid.cjs +1 -0
- package/lib/browser/helpers/uuid.mjs +13 -0
- package/lib/browser/helpers/visitorId.cjs +1 -0
- package/lib/browser/helpers/visitorId.mjs +34 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +43 -28
- package/lib/browser/init.cjs +1 -8
- package/lib/browser/init.mjs +7 -56
- package/lib/browser/scripts/init-editing.cjs +1 -0
- package/lib/browser/scripts/init-editing.mjs +95 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +21 -13
- package/lib/browser/types/api-version.cjs +1 -0
- package/lib/browser/types/api-version.mjs +4 -0
- package/lib/edge/blocks/button/button.cjs +1 -0
- package/lib/edge/blocks/button/button.mjs +31 -0
- package/lib/edge/blocks/button/component-info.cjs +1 -0
- package/lib/edge/blocks/button/component-info.mjs +40 -0
- package/lib/edge/blocks/columns/columns.cjs +28 -0
- package/lib/edge/blocks/columns/columns.mjs +154 -0
- package/lib/edge/blocks/columns/component-info.cjs +1 -0
- package/lib/edge/blocks/columns/component-info.mjs +211 -0
- package/lib/edge/blocks/columns/helpers.cjs +1 -0
- package/lib/edge/blocks/columns/helpers.mjs +4 -0
- package/lib/edge/blocks/custom-code/component-info.cjs +1 -0
- package/lib/edge/blocks/custom-code/component-info.mjs +26 -0
- package/lib/edge/blocks/custom-code/custom-code.cjs +1 -0
- package/lib/edge/blocks/custom-code/custom-code.mjs +44 -0
- package/lib/edge/blocks/embed/component-info.cjs +1 -0
- package/lib/edge/blocks/embed/component-info.mjs +19 -0
- package/lib/edge/blocks/embed/embed.cjs +1 -0
- package/lib/edge/blocks/embed/embed.mjs +38 -0
- package/lib/edge/blocks/embed/helpers.cjs +1 -0
- package/lib/edge/blocks/embed/helpers.mjs +4 -0
- package/lib/edge/blocks/fragment/component-info.cjs +1 -0
- package/lib/edge/blocks/fragment/component-info.mjs +10 -0
- package/lib/edge/blocks/fragment/fragment.cjs +1 -0
- package/lib/edge/blocks/fragment/fragment.mjs +8 -0
- package/lib/edge/blocks/image/component-info.cjs +1 -0
- package/lib/edge/blocks/image/component-info.mjs +112 -0
- package/lib/edge/blocks/image/image.cjs +17 -0
- package/lib/edge/blocks/image/image.helpers.cjs +1 -0
- package/lib/edge/blocks/image/image.helpers.mjs +33 -0
- package/lib/edge/blocks/image/image.mjs +94 -0
- package/lib/edge/blocks/img/component-info.cjs +1 -0
- package/lib/edge/blocks/img/component-info.mjs +18 -0
- package/lib/edge/blocks/img/img.cjs +1 -0
- package/lib/edge/blocks/img/img.mjs +21 -0
- package/lib/edge/blocks/section/component-info.cjs +1 -0
- package/lib/edge/blocks/section/component-info.mjs +43 -0
- package/lib/edge/blocks/section/section.cjs +1 -0
- package/lib/edge/blocks/section/section.mjs +26 -0
- package/lib/edge/blocks/slot/component-info.cjs +1 -0
- package/lib/edge/blocks/slot/component-info.mjs +21 -0
- package/lib/edge/blocks/slot/slot.cjs +1 -0
- package/lib/edge/blocks/slot/slot.mjs +29 -0
- package/lib/edge/blocks/symbol/component-info.cjs +1 -0
- package/lib/edge/blocks/symbol/component-info.mjs +43 -0
- package/lib/edge/blocks/symbol/symbol.cjs +1 -0
- package/lib/edge/blocks/symbol/symbol.helpers.cjs +1 -0
- package/lib/edge/blocks/symbol/symbol.helpers.mjs +24 -0
- package/lib/edge/blocks/symbol/symbol.mjs +51 -0
- package/lib/edge/blocks/text/component-info.cjs +1 -0
- package/lib/edge/blocks/text/component-info.mjs +26 -0
- package/lib/edge/blocks/text/text.cjs +1 -0
- package/lib/edge/blocks/text/text.mjs +36 -0
- package/lib/edge/blocks/video/component-info.cjs +1 -0
- package/lib/edge/blocks/video/component-info.mjs +88 -0
- package/lib/edge/blocks/video/video.cjs +1 -0
- package/lib/edge/blocks/video/video.mjs +106 -0
- package/lib/edge/blocks-exports.cjs +1 -208
- package/lib/edge/blocks-exports.mjs +22 -5392
- package/lib/edge/components/block/animator.cjs +1 -0
- package/lib/edge/components/block/animator.mjs +44 -0
- package/lib/edge/components/block/block.cjs +1 -0
- package/lib/edge/components/block/block.helpers.cjs +3 -0
- package/lib/edge/components/block/block.helpers.mjs +78 -0
- package/lib/edge/components/block/block.mjs +146 -0
- package/lib/edge/components/block/components/block-styles.cjs +1 -0
- package/lib/edge/components/block/components/block-styles.mjs +68 -0
- package/lib/edge/components/block/components/block-wrapper.cjs +1 -0
- package/lib/edge/components/block/components/block-wrapper.mjs +29 -0
- package/lib/edge/components/block/components/component-ref/component-ref.cjs +1 -0
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.cjs +1 -0
- package/lib/edge/components/block/components/component-ref/component-ref.helpers.mjs +34 -0
- package/lib/edge/components/block/components/component-ref/component-ref.mjs +36 -0
- package/lib/edge/components/block/components/interactive-element.cjs +1 -0
- package/lib/edge/components/block/components/interactive-element.mjs +25 -0
- package/lib/edge/components/block/components/repeated-block.cjs +1 -0
- package/lib/edge/components/block/components/repeated-block.mjs +17 -0
- package/lib/edge/components/blocks/blocks-wrapper.cjs +5 -0
- package/lib/edge/components/blocks/blocks-wrapper.mjs +63 -0
- package/lib/edge/components/blocks/blocks.cjs +1 -0
- package/lib/edge/components/blocks/blocks.mjs +30 -0
- package/lib/edge/components/content/components/enable-editor.cjs +1 -0
- package/lib/edge/components/content/components/enable-editor.mjs +280 -0
- package/lib/edge/components/content/components/styles.cjs +5 -0
- package/lib/edge/components/content/components/styles.helpers.cjs +32 -0
- package/lib/edge/components/content/components/styles.helpers.mjs +58 -0
- package/lib/edge/components/content/components/styles.mjs +26 -0
- package/lib/edge/components/content/content.cjs +1 -0
- package/lib/edge/components/content/content.helpers.cjs +1 -0
- package/lib/edge/components/content/content.helpers.mjs +32 -0
- package/lib/edge/components/content/content.mjs +111 -0
- package/lib/edge/components/content-variants/content-variants.cjs +1 -0
- package/lib/edge/components/content-variants/content-variants.mjs +117 -0
- package/lib/edge/components/content-variants/helpers.cjs +9 -0
- package/lib/edge/components/content-variants/helpers.mjs +29 -0
- package/lib/edge/components/content-variants/inlined-fns.cjs +91 -0
- package/lib/edge/components/content-variants/inlined-fns.mjs +95 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.cjs +1 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.helpers.cjs +1 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.helpers.mjs +4 -0
- package/lib/edge/components/dynamic-renderer/dynamic-renderer.mjs +9 -0
- package/lib/edge/components/inlined-script.cjs +1 -0
- package/lib/edge/components/inlined-script.mjs +14 -0
- package/lib/edge/components/inlined-styles.cjs +1 -0
- package/lib/edge/components/inlined-styles.mjs +14 -0
- package/lib/edge/constants/builder-registered-components.cjs +1 -0
- package/lib/edge/constants/builder-registered-components.mjs +49 -0
- package/lib/edge/constants/device-sizes.cjs +1 -0
- package/lib/edge/constants/device-sizes.mjs +48 -0
- package/lib/edge/constants/extra-components.cjs +1 -0
- package/lib/edge/constants/extra-components.mjs +28 -0
- package/lib/edge/constants/sdk-name.cjs +1 -0
- package/lib/edge/constants/sdk-name.mjs +14 -0
- package/lib/edge/constants/sdk-version.cjs +1 -0
- package/lib/edge/constants/sdk-version.mjs +4 -0
- package/lib/edge/constants/target.cjs +1 -0
- package/lib/edge/constants/target.mjs +4 -0
- package/lib/edge/context/builder.context.cjs +1 -0
- package/lib/edge/context/builder.context.mjs +20 -0
- package/lib/edge/functions/camel-to-kebab-case.cjs +1 -0
- package/lib/edge/functions/camel-to-kebab-case.mjs +4 -0
- package/lib/edge/functions/evaluate/browser-runtime/browser.cjs +1 -0
- package/lib/edge/functions/evaluate/browser-runtime/browser.mjs +51 -0
- package/lib/edge/functions/evaluate/choose-eval.cjs +1 -0
- package/lib/edge/functions/evaluate/choose-eval.mjs +8 -0
- package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.cjs +8 -0
- package/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.mjs +2411 -0
- package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.cjs +14 -0
- package/lib/edge/functions/evaluate/edge-runtime/edge-runtime.mjs +64 -0
- package/lib/edge/functions/evaluate/evaluate.cjs +1 -0
- package/lib/edge/functions/evaluate/evaluate.mjs +71 -0
- package/lib/edge/functions/evaluate/helpers.cjs +1 -0
- package/lib/edge/functions/evaluate/helpers.mjs +28 -0
- package/lib/edge/functions/evaluate/node-runtime/node-runtime.cjs +8 -0
- package/lib/edge/functions/evaluate/node-runtime/node-runtime.mjs +38 -0
- package/lib/edge/functions/evaluate/node-runtime/safeDynamicRequire.cjs +1 -0
- package/lib/edge/functions/evaluate/node-runtime/safeDynamicRequire.mjs +10 -0
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.cjs +1 -0
- package/lib/edge/functions/evaluate/should-force-browser-runtime-in-node.mjs +12 -0
- package/lib/edge/functions/event-handler-name.cjs +1 -0
- package/lib/edge/functions/event-handler-name.mjs +7 -0
- package/lib/edge/functions/fast-clone.cjs +1 -0
- package/lib/edge/functions/fast-clone.mjs +4 -0
- package/lib/edge/functions/fetch-builder-props.cjs +1 -0
- package/lib/edge/functions/fetch-builder-props.mjs +25 -0
- package/lib/edge/functions/get-block-actions-handler.cjs +1 -0
- package/lib/edge/functions/get-block-actions-handler.mjs +14 -0
- package/lib/edge/functions/get-block-actions.cjs +1 -0
- package/lib/edge/functions/get-block-actions.mjs +27 -0
- package/lib/edge/functions/get-block-component-options.cjs +1 -0
- package/lib/edge/functions/get-block-component-options.mjs +10 -0
- package/lib/edge/functions/get-block-properties.cjs +1 -0
- package/lib/edge/functions/get-block-properties.mjs +30 -0
- package/lib/edge/functions/get-builder-search-params/index.cjs +1 -0
- package/lib/edge/functions/get-builder-search-params/index.mjs +22 -0
- package/lib/edge/functions/get-class-prop-name.cjs +1 -0
- package/lib/edge/functions/get-class-prop-name.mjs +18 -0
- package/lib/edge/functions/get-content/generate-content-url.cjs +1 -0
- package/lib/edge/functions/get-content/generate-content-url.mjs +52 -0
- package/lib/edge/functions/get-content/index.cjs +1 -0
- package/lib/edge/functions/get-content/index.mjs +62 -0
- package/lib/edge/functions/get-fetch.cjs +2 -0
- package/lib/edge/functions/get-fetch.mjs +12 -0
- package/lib/edge/functions/get-global-this.cjs +1 -0
- package/lib/edge/functions/get-global-this.mjs +6 -0
- package/lib/edge/functions/get-processed-block.cjs +1 -0
- package/lib/edge/functions/get-processed-block.mjs +88 -0
- package/lib/edge/functions/get-style.cjs +1 -0
- package/lib/edge/functions/get-style.mjs +29 -0
- package/lib/edge/functions/is-browser.cjs +1 -0
- package/lib/edge/functions/is-browser.mjs +6 -0
- package/lib/edge/functions/is-editing.cjs +1 -0
- package/lib/edge/functions/is-editing.mjs +9 -0
- package/lib/edge/functions/is-from-trusted-host.cjs +1 -0
- package/lib/edge/functions/is-from-trusted-host.mjs +10 -0
- package/lib/edge/functions/is-iframe.cjs +1 -0
- package/lib/edge/functions/is-iframe.mjs +7 -0
- package/lib/edge/functions/is-node-runtime.cjs +1 -0
- package/lib/edge/functions/is-node-runtime.mjs +8 -0
- package/lib/edge/functions/is-previewing.cjs +1 -0
- package/lib/edge/functions/is-previewing.mjs +9 -0
- package/lib/edge/functions/register-component.cjs +1 -0
- package/lib/edge/functions/register-component.mjs +14 -0
- package/lib/edge/functions/register.cjs +1 -0
- package/lib/edge/functions/register.mjs +24 -0
- package/lib/edge/functions/set-editor-settings.cjs +1 -0
- package/lib/edge/functions/set-editor-settings.mjs +15 -0
- package/lib/edge/functions/set.cjs +1 -0
- package/lib/edge/functions/set.mjs +9 -0
- package/lib/edge/functions/track/helpers.cjs +1 -0
- package/lib/edge/functions/track/helpers.mjs +38 -0
- package/lib/edge/functions/track/index.cjs +1 -0
- package/lib/edge/functions/track/index.mjs +72 -0
- package/lib/edge/functions/track/interaction.cjs +1 -0
- package/lib/edge/functions/track/interaction.mjs +46 -0
- package/lib/edge/functions/transform-block-properties.cjs +1 -0
- package/lib/edge/functions/transform-block-properties.mjs +8 -0
- package/lib/edge/functions/transform-block.cjs +1 -0
- package/lib/edge/functions/transform-block.mjs +6 -0
- package/lib/edge/functions/transform-style-property.cjs +1 -0
- package/lib/edge/functions/transform-style-property.mjs +8 -0
- package/lib/edge/helpers/ab-tests.cjs +1 -0
- package/lib/edge/helpers/ab-tests.mjs +102 -0
- package/lib/edge/helpers/canTrack.cjs +1 -0
- package/lib/edge/helpers/canTrack.mjs +5 -0
- package/lib/edge/helpers/cookie.cjs +1 -0
- package/lib/edge/helpers/cookie.mjs +46 -0
- package/lib/edge/helpers/css.cjs +6 -0
- package/lib/edge/helpers/css.mjs +23 -0
- package/lib/edge/helpers/flatten.cjs +1 -0
- package/lib/edge/helpers/flatten.mjs +23 -0
- package/lib/edge/helpers/localStorage.cjs +1 -0
- package/lib/edge/helpers/localStorage.mjs +28 -0
- package/lib/edge/helpers/logger.cjs +1 -0
- package/lib/edge/helpers/logger.mjs +10 -0
- package/lib/edge/helpers/nullable.cjs +1 -0
- package/lib/edge/helpers/nullable.mjs +4 -0
- package/lib/edge/helpers/omit.cjs +1 -0
- package/lib/edge/helpers/omit.mjs +9 -0
- package/lib/edge/helpers/preview-lru-cache/get.cjs +1 -0
- package/lib/edge/helpers/preview-lru-cache/get.mjs +10 -0
- package/lib/edge/helpers/preview-lru-cache/helpers.cjs +1 -0
- package/lib/edge/helpers/preview-lru-cache/helpers.mjs +34 -0
- package/lib/edge/helpers/preview-lru-cache/init.cjs +1 -0
- package/lib/edge/helpers/preview-lru-cache/init.mjs +9 -0
- package/lib/edge/helpers/preview-lru-cache/set.cjs +1 -0
- package/lib/edge/helpers/preview-lru-cache/set.mjs +11 -0
- package/lib/edge/helpers/search/search.cjs +1 -0
- package/lib/edge/helpers/search/search.mjs +11 -0
- package/lib/edge/helpers/sessionId.cjs +1 -0
- package/lib/edge/helpers/sessionId.mjs +34 -0
- package/lib/edge/helpers/subscribe-to-editor.cjs +1 -0
- package/lib/edge/helpers/subscribe-to-editor.mjs +54 -0
- package/lib/edge/helpers/url.cjs +1 -0
- package/lib/edge/helpers/url.mjs +9 -0
- package/lib/edge/helpers/uuid.cjs +1 -0
- package/lib/edge/helpers/uuid.mjs +13 -0
- package/lib/edge/helpers/visitorId.cjs +1 -0
- package/lib/edge/helpers/visitorId.mjs +34 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +43 -28
- package/lib/edge/init.cjs +1 -8
- package/lib/edge/init.mjs +7 -56
- package/lib/edge/scripts/init-editing.cjs +1 -0
- package/lib/edge/scripts/init-editing.mjs +95 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +21 -13
- package/lib/edge/types/api-version.cjs +1 -0
- package/lib/edge/types/api-version.mjs +4 -0
- package/lib/node/blocks/button/button.cjs +1 -0
- package/lib/node/blocks/button/button.mjs +31 -0
- package/lib/node/blocks/button/component-info.cjs +1 -0
- package/lib/node/blocks/button/component-info.mjs +40 -0
- package/lib/node/blocks/columns/columns.cjs +28 -0
- package/lib/node/blocks/columns/columns.mjs +154 -0
- package/lib/node/blocks/columns/component-info.cjs +1 -0
- package/lib/node/blocks/columns/component-info.mjs +211 -0
- package/lib/node/blocks/columns/helpers.cjs +1 -0
- package/lib/node/blocks/columns/helpers.mjs +4 -0
- package/lib/node/blocks/custom-code/component-info.cjs +1 -0
- package/lib/node/blocks/custom-code/component-info.mjs +26 -0
- package/lib/node/blocks/custom-code/custom-code.cjs +1 -0
- package/lib/node/blocks/custom-code/custom-code.mjs +44 -0
- package/lib/node/blocks/embed/component-info.cjs +1 -0
- package/lib/node/blocks/embed/component-info.mjs +19 -0
- package/lib/node/blocks/embed/embed.cjs +1 -0
- package/lib/node/blocks/embed/embed.mjs +38 -0
- package/lib/node/blocks/embed/helpers.cjs +1 -0
- package/lib/node/blocks/embed/helpers.mjs +4 -0
- package/lib/node/blocks/fragment/component-info.cjs +1 -0
- package/lib/node/blocks/fragment/component-info.mjs +10 -0
- package/lib/node/blocks/fragment/fragment.cjs +1 -0
- package/lib/node/blocks/fragment/fragment.mjs +8 -0
- package/lib/node/blocks/image/component-info.cjs +1 -0
- package/lib/node/blocks/image/component-info.mjs +112 -0
- package/lib/node/blocks/image/image.cjs +17 -0
- package/lib/node/blocks/image/image.helpers.cjs +1 -0
- package/lib/node/blocks/image/image.helpers.mjs +33 -0
- package/lib/node/blocks/image/image.mjs +94 -0
- package/lib/node/blocks/img/component-info.cjs +1 -0
- package/lib/node/blocks/img/component-info.mjs +18 -0
- package/lib/node/blocks/img/img.cjs +1 -0
- package/lib/node/blocks/img/img.mjs +21 -0
- package/lib/node/blocks/section/component-info.cjs +1 -0
- package/lib/node/blocks/section/component-info.mjs +43 -0
- package/lib/node/blocks/section/section.cjs +1 -0
- package/lib/node/blocks/section/section.mjs +26 -0
- package/lib/node/blocks/slot/component-info.cjs +1 -0
- package/lib/node/blocks/slot/component-info.mjs +21 -0
- package/lib/node/blocks/slot/slot.cjs +1 -0
- package/lib/node/blocks/slot/slot.mjs +29 -0
- package/lib/node/blocks/symbol/component-info.cjs +1 -0
- package/lib/node/blocks/symbol/component-info.mjs +43 -0
- package/lib/node/blocks/symbol/symbol.cjs +1 -0
- package/lib/node/blocks/symbol/symbol.helpers.cjs +1 -0
- package/lib/node/blocks/symbol/symbol.helpers.mjs +24 -0
- package/lib/node/blocks/symbol/symbol.mjs +51 -0
- package/lib/node/blocks/text/component-info.cjs +1 -0
- package/lib/node/blocks/text/component-info.mjs +26 -0
- package/lib/node/blocks/text/text.cjs +1 -0
- package/lib/node/blocks/text/text.mjs +36 -0
- package/lib/node/blocks/video/component-info.cjs +1 -0
- package/lib/node/blocks/video/component-info.mjs +88 -0
- package/lib/node/blocks/video/video.cjs +1 -0
- package/lib/node/blocks/video/video.mjs +106 -0
- package/lib/node/blocks-exports.cjs +1 -188
- package/lib/node/blocks-exports.mjs +22 -2902
- package/lib/node/components/block/animator.cjs +1 -0
- package/lib/node/components/block/animator.mjs +44 -0
- package/lib/node/components/block/block.cjs +1 -0
- package/lib/node/components/block/block.helpers.cjs +3 -0
- package/lib/node/components/block/block.helpers.mjs +78 -0
- package/lib/node/components/block/block.mjs +146 -0
- package/lib/node/components/block/components/block-styles.cjs +1 -0
- package/lib/node/components/block/components/block-styles.mjs +68 -0
- package/lib/node/components/block/components/block-wrapper.cjs +1 -0
- package/lib/node/components/block/components/block-wrapper.mjs +29 -0
- package/lib/node/components/block/components/component-ref/component-ref.cjs +1 -0
- package/lib/node/components/block/components/component-ref/component-ref.helpers.cjs +1 -0
- package/lib/node/components/block/components/component-ref/component-ref.helpers.mjs +34 -0
- package/lib/node/components/block/components/component-ref/component-ref.mjs +36 -0
- package/lib/node/components/block/components/interactive-element.cjs +1 -0
- package/lib/node/components/block/components/interactive-element.mjs +25 -0
- package/lib/node/components/block/components/repeated-block.cjs +1 -0
- package/lib/node/components/block/components/repeated-block.mjs +17 -0
- package/lib/node/components/blocks/blocks-wrapper.cjs +5 -0
- package/lib/node/components/blocks/blocks-wrapper.mjs +63 -0
- package/lib/node/components/blocks/blocks.cjs +1 -0
- package/lib/node/components/blocks/blocks.mjs +30 -0
- package/lib/node/components/content/components/enable-editor.cjs +1 -0
- package/lib/node/components/content/components/enable-editor.mjs +280 -0
- package/lib/node/components/content/components/styles.cjs +5 -0
- package/lib/node/components/content/components/styles.helpers.cjs +32 -0
- package/lib/node/components/content/components/styles.helpers.mjs +58 -0
- package/lib/node/components/content/components/styles.mjs +26 -0
- package/lib/node/components/content/content.cjs +1 -0
- package/lib/node/components/content/content.helpers.cjs +1 -0
- package/lib/node/components/content/content.helpers.mjs +32 -0
- package/lib/node/components/content/content.mjs +111 -0
- package/lib/node/components/content-variants/content-variants.cjs +1 -0
- package/lib/node/components/content-variants/content-variants.mjs +117 -0
- package/lib/node/components/content-variants/helpers.cjs +9 -0
- package/lib/node/components/content-variants/helpers.mjs +29 -0
- package/lib/node/components/content-variants/inlined-fns.cjs +91 -0
- package/lib/node/components/content-variants/inlined-fns.mjs +95 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.cjs +1 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.helpers.cjs +1 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.helpers.mjs +4 -0
- package/lib/node/components/dynamic-renderer/dynamic-renderer.mjs +9 -0
- package/lib/node/components/inlined-script.cjs +1 -0
- package/lib/node/components/inlined-script.mjs +14 -0
- package/lib/node/components/inlined-styles.cjs +1 -0
- package/lib/node/components/inlined-styles.mjs +14 -0
- package/lib/node/constants/builder-registered-components.cjs +1 -0
- package/lib/node/constants/builder-registered-components.mjs +49 -0
- package/lib/node/constants/device-sizes.cjs +1 -0
- package/lib/node/constants/device-sizes.mjs +48 -0
- package/lib/node/constants/extra-components.cjs +1 -0
- package/lib/node/constants/extra-components.mjs +28 -0
- package/lib/node/constants/sdk-name.cjs +1 -0
- package/lib/node/constants/sdk-name.mjs +14 -0
- package/lib/node/constants/sdk-version.cjs +1 -0
- package/lib/node/constants/sdk-version.mjs +4 -0
- package/lib/node/constants/target.cjs +1 -0
- package/lib/node/constants/target.mjs +4 -0
- package/lib/node/context/builder.context.cjs +1 -0
- package/lib/node/context/builder.context.mjs +20 -0
- package/lib/node/functions/camel-to-kebab-case.cjs +1 -0
- package/lib/node/functions/camel-to-kebab-case.mjs +4 -0
- package/lib/node/functions/evaluate/browser-runtime/browser.cjs +1 -0
- package/lib/node/functions/evaluate/browser-runtime/browser.mjs +51 -0
- package/lib/node/functions/evaluate/choose-eval.cjs +1 -0
- package/lib/node/functions/evaluate/choose-eval.mjs +8 -0
- package/lib/node/functions/evaluate/evaluate.cjs +1 -0
- package/lib/node/functions/evaluate/evaluate.mjs +71 -0
- package/lib/node/functions/evaluate/helpers.cjs +1 -0
- package/lib/node/functions/evaluate/helpers.mjs +28 -0
- package/lib/node/functions/evaluate/node-runtime/node-runtime.cjs +48 -0
- package/lib/node/functions/evaluate/node-runtime/node-runtime.mjs +128 -0
- package/lib/node/functions/evaluate/node-runtime/safeDynamicRequire.cjs +1 -0
- package/lib/node/functions/evaluate/node-runtime/safeDynamicRequire.mjs +10 -0
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.cjs +1 -0
- package/lib/node/functions/evaluate/should-force-browser-runtime-in-node.mjs +12 -0
- package/lib/node/functions/event-handler-name.cjs +1 -0
- package/lib/node/functions/event-handler-name.mjs +7 -0
- package/lib/node/functions/fast-clone.cjs +1 -0
- package/lib/node/functions/fast-clone.mjs +4 -0
- package/lib/node/functions/fetch-builder-props.cjs +1 -0
- package/lib/node/functions/fetch-builder-props.mjs +25 -0
- package/lib/node/functions/get-block-actions-handler.cjs +1 -0
- package/lib/node/functions/get-block-actions-handler.mjs +14 -0
- package/lib/node/functions/get-block-actions.cjs +1 -0
- package/lib/node/functions/get-block-actions.mjs +27 -0
- package/lib/node/functions/get-block-component-options.cjs +1 -0
- package/lib/node/functions/get-block-component-options.mjs +10 -0
- package/lib/node/functions/get-block-properties.cjs +1 -0
- package/lib/node/functions/get-block-properties.mjs +30 -0
- package/lib/node/functions/get-builder-search-params/index.cjs +1 -0
- package/lib/node/functions/get-builder-search-params/index.mjs +22 -0
- package/lib/node/functions/get-class-prop-name.cjs +1 -0
- package/lib/node/functions/get-class-prop-name.mjs +18 -0
- package/lib/node/functions/get-content/generate-content-url.cjs +1 -0
- package/lib/node/functions/get-content/generate-content-url.mjs +52 -0
- package/lib/node/functions/get-content/index.cjs +1 -0
- package/lib/node/functions/get-content/index.mjs +62 -0
- package/lib/node/functions/get-fetch.cjs +2 -0
- package/lib/node/functions/get-fetch.mjs +12 -0
- package/lib/node/functions/get-global-this.cjs +1 -0
- package/lib/node/functions/get-global-this.mjs +6 -0
- package/lib/node/functions/get-processed-block.cjs +1 -0
- package/lib/node/functions/get-processed-block.mjs +88 -0
- package/lib/node/functions/get-style.cjs +1 -0
- package/lib/node/functions/get-style.mjs +29 -0
- package/lib/node/functions/is-browser.cjs +1 -0
- package/lib/node/functions/is-browser.mjs +6 -0
- package/lib/node/functions/is-editing.cjs +1 -0
- package/lib/node/functions/is-editing.mjs +9 -0
- package/lib/node/functions/is-from-trusted-host.cjs +1 -0
- package/lib/node/functions/is-from-trusted-host.mjs +10 -0
- package/lib/node/functions/is-iframe.cjs +1 -0
- package/lib/node/functions/is-iframe.mjs +7 -0
- package/lib/node/functions/is-node-runtime.cjs +1 -0
- package/lib/node/functions/is-node-runtime.mjs +8 -0
- package/lib/node/functions/is-previewing.cjs +1 -0
- package/lib/node/functions/is-previewing.mjs +9 -0
- package/lib/node/functions/register-component.cjs +1 -0
- package/lib/node/functions/register-component.mjs +14 -0
- package/lib/node/functions/register.cjs +1 -0
- package/lib/node/functions/register.mjs +24 -0
- package/lib/node/functions/set-editor-settings.cjs +1 -0
- package/lib/node/functions/set-editor-settings.mjs +15 -0
- package/lib/node/functions/set.cjs +1 -0
- package/lib/node/functions/set.mjs +9 -0
- package/lib/node/functions/track/helpers.cjs +1 -0
- package/lib/node/functions/track/helpers.mjs +38 -0
- package/lib/node/functions/track/index.cjs +1 -0
- package/lib/node/functions/track/index.mjs +72 -0
- package/lib/node/functions/track/interaction.cjs +1 -0
- package/lib/node/functions/track/interaction.mjs +46 -0
- package/lib/node/functions/transform-block-properties.cjs +1 -0
- package/lib/node/functions/transform-block-properties.mjs +8 -0
- package/lib/node/functions/transform-block.cjs +1 -0
- package/lib/node/functions/transform-block.mjs +6 -0
- package/lib/node/functions/transform-style-property.cjs +1 -0
- package/lib/node/functions/transform-style-property.mjs +8 -0
- package/lib/node/helpers/ab-tests.cjs +1 -0
- package/lib/node/helpers/ab-tests.mjs +102 -0
- package/lib/node/helpers/canTrack.cjs +1 -0
- package/lib/node/helpers/canTrack.mjs +5 -0
- package/lib/node/helpers/cookie.cjs +1 -0
- package/lib/node/helpers/cookie.mjs +46 -0
- package/lib/node/helpers/css.cjs +6 -0
- package/lib/node/helpers/css.mjs +23 -0
- package/lib/node/helpers/flatten.cjs +1 -0
- package/lib/node/helpers/flatten.mjs +23 -0
- package/lib/node/helpers/localStorage.cjs +1 -0
- package/lib/node/helpers/localStorage.mjs +28 -0
- package/lib/node/helpers/logger.cjs +1 -0
- package/lib/node/helpers/logger.mjs +10 -0
- package/lib/node/helpers/nullable.cjs +1 -0
- package/lib/node/helpers/nullable.mjs +4 -0
- package/lib/node/helpers/omit.cjs +1 -0
- package/lib/node/helpers/omit.mjs +9 -0
- package/lib/node/helpers/preview-lru-cache/get.cjs +1 -0
- package/lib/node/helpers/preview-lru-cache/get.mjs +10 -0
- package/lib/node/helpers/preview-lru-cache/helpers.cjs +1 -0
- package/lib/node/helpers/preview-lru-cache/helpers.mjs +34 -0
- package/lib/node/helpers/preview-lru-cache/init.cjs +1 -0
- package/lib/node/helpers/preview-lru-cache/init.mjs +9 -0
- package/lib/node/helpers/preview-lru-cache/set.cjs +1 -0
- package/lib/node/helpers/preview-lru-cache/set.mjs +11 -0
- package/lib/node/helpers/search/search.cjs +1 -0
- package/lib/node/helpers/search/search.mjs +11 -0
- package/lib/node/helpers/sessionId.cjs +1 -0
- package/lib/node/helpers/sessionId.mjs +34 -0
- package/lib/node/helpers/subscribe-to-editor.cjs +1 -0
- package/lib/node/helpers/subscribe-to-editor.mjs +54 -0
- package/lib/node/helpers/url.cjs +1 -0
- package/lib/node/helpers/url.mjs +9 -0
- package/lib/node/helpers/uuid.cjs +1 -0
- package/lib/node/helpers/uuid.mjs +13 -0
- package/lib/node/helpers/visitorId.cjs +1 -0
- package/lib/node/helpers/visitorId.mjs +34 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +43 -29
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -5
- package/lib/node/scripts/init-editing.cjs +1 -0
- package/lib/node/scripts/init-editing.mjs +95 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +21 -13
- package/lib/node/types/api-version.cjs +1 -0
- package/lib/node/types/api-version.mjs +4 -0
- package/package.json +2 -3
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/helpers/preview-lru-cache/helpers.d.ts +9 -0
- package/types/cjs/helpers/preview-lru-cache/init.d.ts +0 -5
- package/types/cjs/helpers/preview-lru-cache/types.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/helpers/preview-lru-cache/helpers.d.ts +9 -0
- package/types/esm/helpers/preview-lru-cache/init.d.ts +0 -5
- package/types/esm/helpers/preview-lru-cache/types.d.ts +1 -1
- package/lib/browser/server-entry-3f356fcf.cjs +0 -2
- package/lib/browser/server-entry-71111a1f.js +0 -717
- package/lib/edge/server-entry-3f356fcf.cjs +0 -2
- package/lib/edge/server-entry-71111a1f.js +0 -717
- package/lib/node/node-runtime-893045d1.cjs +0 -48
- package/lib/node/node-runtime-b24efe79.js +0 -168
- package/lib/node/server-entry-3f356fcf.cjs +0 -2
- package/lib/node/server-entry-71111a1f.js +0 -717
|
@@ -1,2928 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ l(T, { children: Ye(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
|
-
}
|
|
14
|
-
const U = () => {
|
|
15
|
-
switch ($) {
|
|
16
|
-
case "react":
|
|
17
|
-
case "reactNative":
|
|
18
|
-
case "rsc":
|
|
19
|
-
return "className";
|
|
20
|
-
case "svelte":
|
|
21
|
-
case "vue":
|
|
22
|
-
case "solid":
|
|
23
|
-
case "qwik":
|
|
24
|
-
case "angular":
|
|
25
|
-
return "class";
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
function Je(e) {
|
|
29
|
-
function t() {
|
|
30
|
-
return {
|
|
31
|
-
...e.attributes,
|
|
32
|
-
[U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
|
|
33
|
-
...e.link ? {
|
|
34
|
-
href: e.link,
|
|
35
|
-
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
36
|
-
role: "link"
|
|
37
|
-
} : {
|
|
38
|
-
role: "button"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
return /* @__PURE__ */ l(
|
|
43
|
-
oe,
|
|
44
|
-
{
|
|
45
|
-
attributes: t(),
|
|
46
|
-
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
47
|
-
actionAttributes: {},
|
|
48
|
-
children: e.text
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
function Qe(e) {
|
|
53
|
-
var t;
|
|
54
|
-
return {
|
|
55
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
56
|
-
...e.options
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function Ge(e, ...t) {
|
|
60
|
-
const n = Object.assign({}, e);
|
|
61
|
-
for (const i of t)
|
|
62
|
-
delete n[i];
|
|
63
|
-
return n;
|
|
64
|
-
}
|
|
65
|
-
const Xe = ({
|
|
66
|
-
builder: e,
|
|
67
|
-
context: t,
|
|
68
|
-
event: n,
|
|
69
|
-
state: i
|
|
70
|
-
}) => Object.entries({
|
|
71
|
-
state: i,
|
|
72
|
-
Builder: e,
|
|
73
|
-
// legacy
|
|
74
|
-
builder: e,
|
|
75
|
-
context: t,
|
|
76
|
-
event: n
|
|
77
|
-
}), Ze = () => ({
|
|
78
|
-
isEditing: V(),
|
|
79
|
-
isBrowser: O(),
|
|
80
|
-
isServer: !O(),
|
|
81
|
-
getUserAttributes: () => Le()
|
|
82
|
-
}), et = (e, {
|
|
83
|
-
isExpression: t = !0
|
|
84
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
|
|
85
|
-
code: e,
|
|
86
|
-
builder: t,
|
|
87
|
-
context: n,
|
|
88
|
-
event: i,
|
|
89
|
-
localState: o,
|
|
90
|
-
rootSetState: a,
|
|
91
|
-
rootState: r
|
|
92
|
-
}) => {
|
|
93
|
-
const s = Xe({
|
|
94
|
-
builder: t,
|
|
95
|
-
context: n,
|
|
96
|
-
event: i,
|
|
97
|
-
state: Ie({
|
|
98
|
-
rootState: r,
|
|
99
|
-
localState: o,
|
|
100
|
-
rootSetState: a
|
|
101
|
-
})
|
|
102
|
-
});
|
|
103
|
-
return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
|
|
104
|
-
};
|
|
105
|
-
function Ie({
|
|
106
|
-
rootState: e,
|
|
107
|
-
localState: t,
|
|
108
|
-
rootSetState: n
|
|
109
|
-
}) {
|
|
110
|
-
return new Proxy(e, {
|
|
111
|
-
get: (i, o) => {
|
|
112
|
-
if (t && o in t)
|
|
113
|
-
return t[o];
|
|
114
|
-
const a = i[o];
|
|
115
|
-
return typeof a == "object" && a !== null ? Ie({
|
|
116
|
-
rootState: a,
|
|
117
|
-
localState: void 0,
|
|
118
|
-
rootSetState: n ? (r) => {
|
|
119
|
-
i[o] = r, n(i);
|
|
120
|
-
} : void 0
|
|
121
|
-
}) : a;
|
|
122
|
-
},
|
|
123
|
-
set: (i, o, a) => {
|
|
124
|
-
if (t && o in t)
|
|
125
|
-
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
126
|
-
return i[o] = a, n == null || n(i), !0;
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function tt() {
|
|
131
|
-
var e;
|
|
132
|
-
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
133
|
-
}
|
|
134
|
-
const nt = () => {
|
|
135
|
-
var i;
|
|
136
|
-
if (!tt())
|
|
137
|
-
return !1;
|
|
138
|
-
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
139
|
-
return e && t && !n ? (Y.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
140
|
-
}, it = (e) => (O() || nt(), fe(e)), ot = !0, A = class A {
|
|
141
|
-
static getCacheKey(t) {
|
|
142
|
-
return JSON.stringify({
|
|
143
|
-
...t,
|
|
144
|
-
// replace the event with a random number to break cache
|
|
145
|
-
// thats because we can't serialize the event object due to circular refs in DOM node refs.
|
|
146
|
-
event: t.event ? Math.random() : void 0
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
static getCachedValue(t) {
|
|
150
|
-
return A.cache.get(t);
|
|
151
|
-
}
|
|
152
|
-
static setCachedValue(t, n) {
|
|
153
|
-
A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
|
|
154
|
-
value: n
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
ee(A, "cacheLimit", 20), ee(A, "cache", /* @__PURE__ */ new Map());
|
|
159
|
-
let L = A;
|
|
160
|
-
function D({
|
|
161
|
-
code: e,
|
|
162
|
-
context: t,
|
|
163
|
-
localState: n,
|
|
164
|
-
rootState: i,
|
|
165
|
-
rootSetState: o,
|
|
166
|
-
event: a,
|
|
167
|
-
isExpression: r = !0,
|
|
168
|
-
enableCache: s
|
|
169
|
-
}) {
|
|
170
|
-
if (e === "")
|
|
171
|
-
return;
|
|
172
|
-
const c = {
|
|
173
|
-
code: et(e, {
|
|
174
|
-
isExpression: r
|
|
175
|
-
}),
|
|
176
|
-
builder: Ze(),
|
|
177
|
-
context: t,
|
|
178
|
-
event: a,
|
|
179
|
-
rootSetState: o,
|
|
180
|
-
rootState: i,
|
|
181
|
-
localState: n
|
|
182
|
-
};
|
|
183
|
-
if (s && !ot) {
|
|
184
|
-
const d = L.getCacheKey(c), u = L.getCachedValue(d);
|
|
185
|
-
if (u)
|
|
186
|
-
return u.value;
|
|
187
|
-
}
|
|
188
|
-
try {
|
|
189
|
-
const d = it(c);
|
|
190
|
-
if (s) {
|
|
191
|
-
const u = L.getCacheKey(c);
|
|
192
|
-
L.setCachedValue(u, d);
|
|
193
|
-
}
|
|
194
|
-
return d;
|
|
195
|
-
} catch (d) {
|
|
196
|
-
Y.error("Failed code evaluation: " + d.message, {
|
|
197
|
-
code: e
|
|
198
|
-
});
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
const ae = (e) => JSON.parse(JSON.stringify(e)), at = (e, t, n) => {
|
|
203
|
-
if (Object(e) !== e)
|
|
204
|
-
return e;
|
|
205
|
-
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
206
|
-
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
207
|
-
};
|
|
208
|
-
function ne(e) {
|
|
209
|
-
if (e === null || typeof e != "object")
|
|
210
|
-
return e;
|
|
211
|
-
if (Array.isArray(e))
|
|
212
|
-
return e.map((n) => ne(n));
|
|
213
|
-
if (e["@type"] === "@builder.io/sdk:Element")
|
|
214
|
-
return e;
|
|
215
|
-
const t = {};
|
|
216
|
-
for (const n in e)
|
|
217
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
218
|
-
return t;
|
|
219
|
-
}
|
|
220
|
-
const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), ct = (e) => {
|
|
221
|
-
if (rt) {
|
|
222
|
-
const t = ae(e);
|
|
223
|
-
return {
|
|
224
|
-
...t,
|
|
225
|
-
properties: {
|
|
226
|
-
...t.properties
|
|
227
|
-
},
|
|
228
|
-
actions: {
|
|
229
|
-
...t.actions
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
} else {
|
|
233
|
-
const t = ne(Ge(e, "children", "meta"));
|
|
234
|
-
return {
|
|
235
|
-
...t,
|
|
236
|
-
properties: {
|
|
237
|
-
...t.properties
|
|
238
|
-
},
|
|
239
|
-
actions: {
|
|
240
|
-
...t.actions
|
|
241
|
-
},
|
|
242
|
-
children: e.children,
|
|
243
|
-
meta: e.meta
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
}, lt = ({
|
|
247
|
-
block: e,
|
|
248
|
-
context: t,
|
|
249
|
-
localState: n,
|
|
250
|
-
rootState: i,
|
|
251
|
-
rootSetState: o
|
|
252
|
-
}) => {
|
|
253
|
-
if (!e.bindings)
|
|
254
|
-
return e;
|
|
255
|
-
const a = ct(e);
|
|
256
|
-
for (const r in e.bindings) {
|
|
257
|
-
const s = e.bindings[r], c = D({
|
|
258
|
-
code: s,
|
|
259
|
-
localState: n,
|
|
260
|
-
rootState: i,
|
|
261
|
-
rootSetState: o,
|
|
262
|
-
context: t,
|
|
263
|
-
enableCache: !0
|
|
264
|
-
});
|
|
265
|
-
at(a, r, c);
|
|
266
|
-
}
|
|
267
|
-
return a;
|
|
268
|
-
};
|
|
269
|
-
function st({
|
|
270
|
-
block: e,
|
|
271
|
-
context: t,
|
|
272
|
-
shouldEvaluateBindings: n,
|
|
273
|
-
localState: i,
|
|
274
|
-
rootState: o,
|
|
275
|
-
rootSetState: a
|
|
276
|
-
}) {
|
|
277
|
-
const r = e;
|
|
278
|
-
return n ? lt({
|
|
279
|
-
block: r,
|
|
280
|
-
localState: i,
|
|
281
|
-
rootState: o,
|
|
282
|
-
rootSetState: a,
|
|
283
|
-
context: t
|
|
284
|
-
}) : r;
|
|
285
|
-
}
|
|
286
|
-
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Te = (e) => Object.entries(e).map(([n, i]) => {
|
|
287
|
-
if (typeof i == "string")
|
|
288
|
-
return `${re(n)}: ${i};`;
|
|
289
|
-
}).filter(z), dt = (e) => Te(e).join(`
|
|
290
|
-
`), M = ({
|
|
291
|
-
mediaQuery: e,
|
|
292
|
-
className: t,
|
|
293
|
-
styles: n
|
|
294
|
-
}) => {
|
|
295
|
-
const i = `.${t} {
|
|
296
|
-
${dt(n)}
|
|
297
|
-
}`;
|
|
298
|
-
return e ? `${e} {
|
|
299
|
-
${i}
|
|
300
|
-
}` : i;
|
|
301
|
-
};
|
|
302
|
-
function ut({
|
|
303
|
-
style: e
|
|
304
|
-
}) {
|
|
305
|
-
return e;
|
|
306
|
-
}
|
|
307
|
-
const mt = ({
|
|
308
|
-
block: e,
|
|
309
|
-
context: t
|
|
310
|
-
}) => Re(ut({
|
|
311
|
-
style: e.style || {},
|
|
312
|
-
context: t,
|
|
313
|
-
block: e
|
|
314
|
-
}));
|
|
315
|
-
function Re(e) {
|
|
316
|
-
switch ($) {
|
|
317
|
-
case "svelte":
|
|
318
|
-
case "vue":
|
|
319
|
-
case "solid":
|
|
320
|
-
case "angular":
|
|
321
|
-
return Te(e).join(" ");
|
|
322
|
-
case "qwik":
|
|
323
|
-
case "reactNative":
|
|
324
|
-
case "react":
|
|
325
|
-
case "rsc":
|
|
326
|
-
return e;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
const ft = ({
|
|
330
|
-
block: e,
|
|
331
|
-
registeredComponents: t
|
|
332
|
-
}) => {
|
|
333
|
-
var o;
|
|
334
|
-
const n = (o = e.component) == null ? void 0 : o.name;
|
|
335
|
-
if (!n)
|
|
336
|
-
return null;
|
|
337
|
-
const i = t[n];
|
|
338
|
-
if (i)
|
|
339
|
-
return i;
|
|
340
|
-
console.warn(`
|
|
341
|
-
Could not find a registered component named "${n}".
|
|
342
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
343
|
-
}, ht = ({
|
|
344
|
-
block: e,
|
|
345
|
-
context: t
|
|
346
|
-
}) => {
|
|
347
|
-
const {
|
|
348
|
-
repeat: n,
|
|
349
|
-
...i
|
|
350
|
-
} = e;
|
|
351
|
-
if (!(n != null && n.collection))
|
|
352
|
-
return;
|
|
353
|
-
const o = D({
|
|
354
|
-
code: n.collection,
|
|
355
|
-
localState: t.localState,
|
|
356
|
-
rootState: t.rootState,
|
|
357
|
-
rootSetState: t.rootSetState,
|
|
358
|
-
context: t.context,
|
|
359
|
-
enableCache: !0
|
|
360
|
-
});
|
|
361
|
-
if (!Array.isArray(o))
|
|
362
|
-
return;
|
|
363
|
-
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
364
|
-
return o.map((c, d) => ({
|
|
365
|
-
context: {
|
|
366
|
-
...t,
|
|
367
|
-
localState: {
|
|
368
|
-
...t.localState,
|
|
369
|
-
$index: d,
|
|
370
|
-
$item: c,
|
|
371
|
-
[r]: c,
|
|
372
|
-
[`$${r}Index`]: d
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
block: i
|
|
376
|
-
}));
|
|
377
|
-
}, gt = (e, t) => {
|
|
378
|
-
var n;
|
|
379
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
380
|
-
builderLinkComponent: t
|
|
381
|
-
} : {};
|
|
382
|
-
}, bt = (e, t) => {
|
|
383
|
-
var n;
|
|
384
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
385
|
-
builderComponents: t
|
|
386
|
-
} : {};
|
|
387
|
-
}, yt = (e, t) => {
|
|
388
|
-
var n;
|
|
389
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
390
|
-
builderBlock: t
|
|
391
|
-
} : {};
|
|
392
|
-
}, pt = (e, t) => {
|
|
393
|
-
var n;
|
|
394
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
395
|
-
builderContext: t
|
|
396
|
-
} : {};
|
|
397
|
-
}, Ee = {
|
|
398
|
-
small: {
|
|
399
|
-
min: 320,
|
|
400
|
-
default: 321,
|
|
401
|
-
max: 640
|
|
402
|
-
},
|
|
403
|
-
medium: {
|
|
404
|
-
min: 641,
|
|
405
|
-
default: 642,
|
|
406
|
-
max: 991
|
|
407
|
-
},
|
|
408
|
-
large: {
|
|
409
|
-
min: 990,
|
|
410
|
-
default: 991,
|
|
411
|
-
max: 1200
|
|
412
|
-
}
|
|
413
|
-
}, he = (e, t = Ee) => `@media (max-width: ${t[e].max}px)`, Pe = ({
|
|
414
|
-
small: e,
|
|
415
|
-
medium: t
|
|
416
|
-
}) => {
|
|
417
|
-
const n = ae(Ee);
|
|
418
|
-
if (!e || !t)
|
|
419
|
-
return n;
|
|
420
|
-
const i = Math.floor(e / 2);
|
|
421
|
-
n.small = {
|
|
422
|
-
max: e,
|
|
423
|
-
min: i,
|
|
424
|
-
default: i + 1
|
|
425
|
-
};
|
|
426
|
-
const o = n.small.max + 1;
|
|
427
|
-
n.medium = {
|
|
428
|
-
max: t,
|
|
429
|
-
min: o,
|
|
430
|
-
default: o + 1
|
|
431
|
-
};
|
|
432
|
-
const a = n.medium.max + 1;
|
|
433
|
-
return n.large = {
|
|
434
|
-
max: 2e3,
|
|
435
|
-
// TODO: decide upper limit
|
|
436
|
-
min: a,
|
|
437
|
-
default: a + 1
|
|
438
|
-
}, n;
|
|
439
|
-
};
|
|
440
|
-
function Q(e) {
|
|
441
|
-
return /* @__PURE__ */ l(
|
|
442
|
-
"style",
|
|
443
|
-
{
|
|
444
|
-
dangerouslySetInnerHTML: { __html: e.styles },
|
|
445
|
-
"data-id": e.id,
|
|
446
|
-
nonce: e.nonce
|
|
447
|
-
}
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
function vt(e) {
|
|
451
|
-
const t = function() {
|
|
452
|
-
const o = e.block;
|
|
453
|
-
return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
|
|
454
|
-
}, n = function() {
|
|
455
|
-
var b, y, w;
|
|
456
|
-
const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Pe(
|
|
457
|
-
((b = r == null ? void 0 : r.meta) == null ? void 0 : b.breakpoints) || {}
|
|
458
|
-
), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, u = a == null ? void 0 : a.small, m = o.id;
|
|
459
|
-
if (!m)
|
|
460
|
-
return "";
|
|
461
|
-
const p = c ? M({
|
|
462
|
-
className: m,
|
|
463
|
-
styles: c
|
|
464
|
-
}) : "", v = d ? M({
|
|
465
|
-
className: m,
|
|
466
|
-
styles: d,
|
|
467
|
-
mediaQuery: he(
|
|
468
|
-
"medium",
|
|
469
|
-
s
|
|
470
|
-
)
|
|
471
|
-
}) : "", S = u ? M({
|
|
472
|
-
className: m,
|
|
473
|
-
styles: u,
|
|
474
|
-
mediaQuery: he(
|
|
475
|
-
"small",
|
|
476
|
-
s
|
|
477
|
-
)
|
|
478
|
-
}) : "", f = o.animations && o.animations.find((E) => E.trigger === "hover");
|
|
479
|
-
let C = "";
|
|
480
|
-
if (f) {
|
|
481
|
-
const E = ((w = (y = f.steps) == null ? void 0 : y[1]) == null ? void 0 : w.styles) || {};
|
|
482
|
-
C = M({
|
|
483
|
-
className: `${m}:hover`,
|
|
484
|
-
styles: {
|
|
485
|
-
...E,
|
|
486
|
-
transition: `all ${f.duration}s ${re(
|
|
487
|
-
f.easing
|
|
488
|
-
)}`,
|
|
489
|
-
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
490
|
-
}
|
|
491
|
-
}) || "";
|
|
492
|
-
}
|
|
493
|
-
return [
|
|
494
|
-
p,
|
|
495
|
-
v,
|
|
496
|
-
S,
|
|
497
|
-
C
|
|
498
|
-
].join(" ");
|
|
499
|
-
};
|
|
500
|
-
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
501
|
-
Q,
|
|
502
|
-
{
|
|
503
|
-
id: "builderio-block",
|
|
504
|
-
styles: n(),
|
|
505
|
-
nonce: e.context.nonce
|
|
506
|
-
}
|
|
507
|
-
) }) : null });
|
|
508
|
-
}
|
|
509
|
-
function xt(e) {
|
|
510
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
511
|
-
}
|
|
512
|
-
const St = (e) => `on${xt(e)}`, kt = (e, t) => (n) => D({
|
|
513
|
-
code: e,
|
|
514
|
-
context: t.context,
|
|
515
|
-
localState: t.localState,
|
|
516
|
-
rootState: t.rootState,
|
|
517
|
-
rootSetState: t.rootSetState,
|
|
518
|
-
event: n,
|
|
519
|
-
isExpression: !1,
|
|
520
|
-
enableCache: !0
|
|
521
|
-
});
|
|
522
|
-
function Be(e) {
|
|
523
|
-
var i;
|
|
524
|
-
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
525
|
-
for (const o in n) {
|
|
526
|
-
if (!n.hasOwnProperty(o))
|
|
527
|
-
continue;
|
|
528
|
-
const a = n[o];
|
|
529
|
-
let r = St(o);
|
|
530
|
-
if (e.stripPrefix)
|
|
531
|
-
switch ($) {
|
|
532
|
-
case "vue":
|
|
533
|
-
r = r.replace("v-on:", "");
|
|
534
|
-
break;
|
|
535
|
-
case "svelte":
|
|
536
|
-
r = r.replace("on:", "");
|
|
537
|
-
break;
|
|
538
|
-
}
|
|
539
|
-
t[r] = kt(a, e);
|
|
540
|
-
}
|
|
541
|
-
return t;
|
|
542
|
-
}
|
|
543
|
-
function Ct({
|
|
544
|
-
properties: e
|
|
545
|
-
}) {
|
|
546
|
-
return e;
|
|
547
|
-
}
|
|
548
|
-
const wt = (e) => ({
|
|
549
|
-
href: e.href
|
|
550
|
-
});
|
|
551
|
-
function ce({
|
|
552
|
-
block: e,
|
|
553
|
-
context: t
|
|
554
|
-
}) {
|
|
555
|
-
var i;
|
|
556
|
-
const n = {
|
|
557
|
-
...wt(e),
|
|
558
|
-
...e.properties,
|
|
559
|
-
"builder-id": e.id,
|
|
560
|
-
style: mt({
|
|
561
|
-
block: e,
|
|
562
|
-
context: t
|
|
563
|
-
}),
|
|
564
|
-
[U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
565
|
-
};
|
|
566
|
-
return Ct({
|
|
567
|
-
properties: n,
|
|
568
|
-
context: t,
|
|
569
|
-
block: e
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
function It(e) {
|
|
573
|
-
return /* @__PURE__ */ l(
|
|
574
|
-
oe,
|
|
575
|
-
{
|
|
576
|
-
TagName: e.Wrapper,
|
|
577
|
-
attributes: ce({
|
|
578
|
-
block: e.block,
|
|
579
|
-
context: e.context
|
|
580
|
-
}),
|
|
581
|
-
actionAttributes: Be({
|
|
582
|
-
block: e.block,
|
|
583
|
-
rootState: e.context.rootState,
|
|
584
|
-
rootSetState: e.context.rootSetState,
|
|
585
|
-
localState: e.context.localState,
|
|
586
|
-
context: e.context.context,
|
|
587
|
-
stripPrefix: !0
|
|
588
|
-
}),
|
|
589
|
-
children: e.children
|
|
590
|
-
}
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
function Tt(e) {
|
|
594
|
-
function t() {
|
|
595
|
-
return e.includeBlockProps ? {
|
|
596
|
-
...ce({
|
|
597
|
-
block: e.block,
|
|
598
|
-
context: e.context
|
|
599
|
-
}),
|
|
600
|
-
...Be({
|
|
601
|
-
block: e.block,
|
|
602
|
-
rootState: e.context.rootState,
|
|
603
|
-
rootSetState: e.context.rootSetState,
|
|
604
|
-
localState: e.context.localState,
|
|
605
|
-
context: e.context.context
|
|
606
|
-
})
|
|
607
|
-
} : {};
|
|
608
|
-
}
|
|
609
|
-
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
610
|
-
}
|
|
611
|
-
const Rt = ({
|
|
612
|
-
componentOptions: e,
|
|
613
|
-
builderBlock: t,
|
|
614
|
-
context: n,
|
|
615
|
-
componentRef: i,
|
|
616
|
-
includeBlockProps: o,
|
|
617
|
-
isInteractive: a,
|
|
618
|
-
contextValue: r
|
|
619
|
-
}) => {
|
|
620
|
-
const s = {
|
|
621
|
-
...e,
|
|
622
|
-
/**
|
|
623
|
-
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
624
|
-
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
625
|
-
*/
|
|
626
|
-
...o ? {
|
|
627
|
-
attributes: ce({
|
|
628
|
-
block: t,
|
|
629
|
-
context: r
|
|
630
|
-
})
|
|
631
|
-
} : {}
|
|
632
|
-
};
|
|
633
|
-
return a ? {
|
|
634
|
-
Wrapper: i,
|
|
635
|
-
block: t,
|
|
636
|
-
context: n,
|
|
637
|
-
wrapperProps: e,
|
|
638
|
-
includeBlockProps: o
|
|
639
|
-
} : s;
|
|
640
|
-
};
|
|
641
|
-
function ge(e) {
|
|
642
|
-
var n;
|
|
643
|
-
const t = e.isInteractive ? Tt : e.componentRef;
|
|
644
|
-
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
645
|
-
t,
|
|
646
|
-
{
|
|
647
|
-
...Rt({
|
|
648
|
-
componentOptions: e.componentOptions,
|
|
649
|
-
builderBlock: e.builderBlock,
|
|
650
|
-
context: e.context,
|
|
651
|
-
componentRef: e.componentRef,
|
|
652
|
-
linkComponent: e.linkComponent,
|
|
653
|
-
includeBlockProps: e.includeBlockProps,
|
|
654
|
-
isInteractive: e.isInteractive,
|
|
655
|
-
contextValue: e.context
|
|
656
|
-
}),
|
|
657
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
|
|
658
|
-
G,
|
|
659
|
-
{
|
|
660
|
-
block: i,
|
|
661
|
-
context: e.context,
|
|
662
|
-
registeredComponents: e.registeredComponents,
|
|
663
|
-
linkComponent: e.linkComponent
|
|
664
|
-
},
|
|
665
|
-
i.id
|
|
666
|
-
))
|
|
667
|
-
}
|
|
668
|
-
) }) : null });
|
|
669
|
-
}
|
|
670
|
-
function be(e) {
|
|
671
|
-
const t = e.repeatContext;
|
|
672
|
-
return /* @__PURE__ */ l(
|
|
673
|
-
G,
|
|
674
|
-
{
|
|
675
|
-
block: e.block,
|
|
676
|
-
context: t,
|
|
677
|
-
registeredComponents: e.registeredComponents,
|
|
678
|
-
linkComponent: e.linkComponent
|
|
679
|
-
}
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
function G(e) {
|
|
683
|
-
var d, u, m, p;
|
|
684
|
-
const t = function() {
|
|
685
|
-
return ht({
|
|
686
|
-
block: e.block,
|
|
687
|
-
context: e.context
|
|
688
|
-
});
|
|
689
|
-
}, n = {
|
|
690
|
-
value: null,
|
|
691
|
-
update: !1
|
|
692
|
-
}, i = function() {
|
|
693
|
-
var f;
|
|
694
|
-
if (n.value && !n.update && !Ce())
|
|
695
|
-
return n.value;
|
|
696
|
-
const S = (f = e.block.repeat) != null && f.collection ? e.block : st({
|
|
697
|
-
block: e.block,
|
|
698
|
-
localState: e.context.localState,
|
|
699
|
-
rootState: e.context.rootState,
|
|
700
|
-
rootSetState: e.context.rootSetState,
|
|
701
|
-
context: e.context.context,
|
|
702
|
-
shouldEvaluateBindings: !0
|
|
703
|
-
});
|
|
704
|
-
return n.value = S, n.update = !1, S;
|
|
705
|
-
}, o = function() {
|
|
706
|
-
return ft({
|
|
707
|
-
block: i(),
|
|
708
|
-
registeredComponents: e.registeredComponents
|
|
709
|
-
});
|
|
710
|
-
}, a = function() {
|
|
711
|
-
var f;
|
|
712
|
-
return e.block.tagName === "a" || ((f = i().properties) == null ? void 0 : f.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
713
|
-
}, r = function() {
|
|
714
|
-
var C, b;
|
|
715
|
-
if ((C = e.block.repeat) != null && C.collection)
|
|
716
|
-
return !!((b = t()) != null && b.length);
|
|
717
|
-
const S = "hide" in i() ? i().hide : !1;
|
|
718
|
-
return ("show" in i() ? i().show : !0) && !S;
|
|
719
|
-
}, s = function() {
|
|
720
|
-
var f, C;
|
|
721
|
-
return !((f = o()) != null && f.component) && !t() ? (C = i().children) != null ? C : [] : [];
|
|
722
|
-
}, c = function() {
|
|
723
|
-
var S, f, C, b;
|
|
724
|
-
return {
|
|
725
|
-
blockChildren: (S = i().children) != null ? S : [],
|
|
726
|
-
componentRef: (f = o()) == null ? void 0 : f.component,
|
|
727
|
-
componentOptions: {
|
|
728
|
-
...Qe(i()),
|
|
729
|
-
...yt(o(), i()),
|
|
730
|
-
...pt(o(), e.context),
|
|
731
|
-
...gt(o(), e.linkComponent),
|
|
732
|
-
...bt(
|
|
733
|
-
o(),
|
|
734
|
-
e.registeredComponents
|
|
735
|
-
)
|
|
736
|
-
},
|
|
737
|
-
context: e.context,
|
|
738
|
-
linkComponent: e.linkComponent,
|
|
739
|
-
registeredComponents: e.registeredComponents,
|
|
740
|
-
builderBlock: i(),
|
|
741
|
-
includeBlockProps: ((C = o()) == null ? void 0 : C.noWrap) === !0,
|
|
742
|
-
isInteractive: !((b = o()) != null && b.isRSC && $ === "rsc")
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
return /* @__PURE__ */ l(T, { children: r() ? /* @__PURE__ */ P(T, { children: [
|
|
746
|
-
/* @__PURE__ */ l(vt, { block: i(), context: e.context }),
|
|
747
|
-
(d = o()) != null && d.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (p = t()) == null ? void 0 : p.map((v, S) => /* @__PURE__ */ l(
|
|
748
|
-
be,
|
|
749
|
-
{
|
|
750
|
-
repeatContext: v.context,
|
|
751
|
-
block: v.block,
|
|
752
|
-
registeredComponents: e.registeredComponents,
|
|
753
|
-
linkComponent: e.linkComponent
|
|
754
|
-
},
|
|
755
|
-
S
|
|
756
|
-
)) }) : /* @__PURE__ */ l(
|
|
757
|
-
ge,
|
|
758
|
-
{
|
|
759
|
-
componentRef: c().componentRef,
|
|
760
|
-
componentOptions: c().componentOptions,
|
|
761
|
-
blockChildren: c().blockChildren,
|
|
762
|
-
context: c().context,
|
|
763
|
-
registeredComponents: c().registeredComponents,
|
|
764
|
-
linkComponent: c().linkComponent,
|
|
765
|
-
builderBlock: c().builderBlock,
|
|
766
|
-
includeBlockProps: c().includeBlockProps,
|
|
767
|
-
isInteractive: c().isInteractive
|
|
768
|
-
}
|
|
769
|
-
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((v, S) => /* @__PURE__ */ l(
|
|
770
|
-
be,
|
|
771
|
-
{
|
|
772
|
-
repeatContext: v.context,
|
|
773
|
-
block: v.block,
|
|
774
|
-
registeredComponents: e.registeredComponents,
|
|
775
|
-
linkComponent: e.linkComponent
|
|
776
|
-
},
|
|
777
|
-
S
|
|
778
|
-
)) }) : /* @__PURE__ */ P(
|
|
779
|
-
It,
|
|
780
|
-
{
|
|
781
|
-
Wrapper: a(),
|
|
782
|
-
block: i(),
|
|
783
|
-
context: e.context,
|
|
784
|
-
children: [
|
|
785
|
-
/* @__PURE__ */ l(
|
|
786
|
-
ge,
|
|
787
|
-
{
|
|
788
|
-
componentRef: c().componentRef,
|
|
789
|
-
componentOptions: c().componentOptions,
|
|
790
|
-
blockChildren: c().blockChildren,
|
|
791
|
-
context: c().context,
|
|
792
|
-
registeredComponents: c().registeredComponents,
|
|
793
|
-
linkComponent: c().linkComponent,
|
|
794
|
-
builderBlock: c().builderBlock,
|
|
795
|
-
includeBlockProps: c().includeBlockProps,
|
|
796
|
-
isInteractive: c().isInteractive
|
|
797
|
-
}
|
|
798
|
-
),
|
|
799
|
-
(u = s()) == null ? void 0 : u.map((v) => /* @__PURE__ */ l(
|
|
800
|
-
G,
|
|
801
|
-
{
|
|
802
|
-
block: v,
|
|
803
|
-
registeredComponents: e.registeredComponents,
|
|
804
|
-
linkComponent: e.linkComponent,
|
|
805
|
-
context: e.context
|
|
806
|
-
},
|
|
807
|
-
v.id
|
|
808
|
-
))
|
|
809
|
-
]
|
|
810
|
-
}
|
|
811
|
-
) })
|
|
812
|
-
] }) : null });
|
|
813
|
-
}
|
|
814
|
-
function Et(e) {
|
|
815
|
-
const t = J(null);
|
|
816
|
-
function n() {
|
|
817
|
-
var a;
|
|
818
|
-
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
819
|
-
}
|
|
820
|
-
function i() {
|
|
821
|
-
var a, r;
|
|
822
|
-
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
823
|
-
{
|
|
824
|
-
type: "builder.clickEmptyBlocks",
|
|
825
|
-
data: {
|
|
826
|
-
parentElementId: e.parent,
|
|
827
|
-
dataPath: e.path
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
"*"
|
|
831
|
-
));
|
|
832
|
-
}
|
|
833
|
-
function o() {
|
|
834
|
-
var a, r;
|
|
835
|
-
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
836
|
-
{
|
|
837
|
-
type: "builder.hoverEmptyBlocks",
|
|
838
|
-
data: {
|
|
839
|
-
parentElementId: e.parent,
|
|
840
|
-
dataPath: e.path
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
"*"
|
|
844
|
-
));
|
|
845
|
-
}
|
|
846
|
-
return R(() => {
|
|
847
|
-
}, []), /* @__PURE__ */ P(T, { children: [
|
|
848
|
-
/* @__PURE__ */ l(
|
|
849
|
-
e.BlocksWrapper,
|
|
850
|
-
{
|
|
851
|
-
ref: t,
|
|
852
|
-
className: n() + " props-blocks-wrapper-51ef31b4",
|
|
853
|
-
"builder-path": e.path,
|
|
854
|
-
"builder-parent-id": e.parent,
|
|
855
|
-
style: e.styleProp,
|
|
856
|
-
onClick: (a) => i(),
|
|
857
|
-
onMouseEnter: (a) => o(),
|
|
858
|
-
onKeyPress: (a) => i(),
|
|
859
|
-
...e.BlocksWrapperProps,
|
|
860
|
-
children: e.children
|
|
861
|
-
}
|
|
862
|
-
),
|
|
863
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
864
|
-
display: flex;
|
|
865
|
-
flex-direction: column;
|
|
866
|
-
align-items: stretch;
|
|
867
|
-
}` })
|
|
868
|
-
] });
|
|
869
|
-
}
|
|
870
|
-
function le(e) {
|
|
871
|
-
var t, n, i;
|
|
872
|
-
return /* @__PURE__ */ l(
|
|
873
|
-
Et,
|
|
874
|
-
{
|
|
875
|
-
blocks: e.blocks,
|
|
876
|
-
parent: e.parent,
|
|
877
|
-
path: e.path,
|
|
878
|
-
styleProp: e.styleProp,
|
|
879
|
-
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
880
|
-
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
881
|
-
children: e.blocks ? /* @__PURE__ */ l(T, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
882
|
-
G,
|
|
883
|
-
{
|
|
884
|
-
block: o,
|
|
885
|
-
linkComponent: e.linkComponent,
|
|
886
|
-
context: e.context,
|
|
887
|
-
registeredComponents: e.registeredComponents
|
|
888
|
-
},
|
|
889
|
-
o.id
|
|
890
|
-
)) }) : null
|
|
891
|
-
}
|
|
892
|
-
);
|
|
893
|
-
}
|
|
894
|
-
const Pt = (e) => `builder-columns ${e}-breakpoints`;
|
|
895
|
-
function Bt(e) {
|
|
896
|
-
var f, C;
|
|
897
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
|
|
898
|
-
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
899
|
-
}, a = function(y) {
|
|
900
|
-
var w;
|
|
901
|
-
return ((w = n[y]) == null ? void 0 : w.width) || 100 / n.length;
|
|
902
|
-
}, r = function(y) {
|
|
903
|
-
const w = a(y), E = t * (n.length - 1) * (w / 100);
|
|
904
|
-
return `calc(${w}% - ${E}px)`;
|
|
905
|
-
}, s = function({
|
|
906
|
-
stackedStyle: y,
|
|
907
|
-
desktopStyle: w
|
|
908
|
-
}) {
|
|
909
|
-
return i === "tablet" ? y : w;
|
|
910
|
-
}, c = function({
|
|
911
|
-
stackedStyle: y,
|
|
912
|
-
desktopStyle: w
|
|
913
|
-
}) {
|
|
914
|
-
return i === "never" ? w : y;
|
|
915
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
|
|
916
|
-
return {
|
|
917
|
-
"--flex-dir": d,
|
|
918
|
-
"--flex-dir-tablet": s({
|
|
919
|
-
stackedStyle: d,
|
|
920
|
-
desktopStyle: "row"
|
|
921
|
-
})
|
|
922
|
-
};
|
|
923
|
-
}, m = function(y) {
|
|
924
|
-
const w = y === 0 ? 0 : t, E = r(y), W = `${w}px`, H = "100%", _ = 0;
|
|
925
|
-
return {
|
|
926
|
-
...{
|
|
927
|
-
display: "flex",
|
|
928
|
-
flexDirection: "column",
|
|
929
|
-
alignItems: "stretch"
|
|
930
|
-
},
|
|
931
|
-
width: E,
|
|
932
|
-
["marginLeft"]: W,
|
|
933
|
-
"--column-width-mobile": c({
|
|
934
|
-
stackedStyle: H,
|
|
935
|
-
desktopStyle: E
|
|
936
|
-
}),
|
|
937
|
-
"--column-margin-left-mobile": c({
|
|
938
|
-
stackedStyle: _,
|
|
939
|
-
desktopStyle: W
|
|
940
|
-
}),
|
|
941
|
-
"--column-width-tablet": s({
|
|
942
|
-
stackedStyle: H,
|
|
943
|
-
desktopStyle: E
|
|
944
|
-
}),
|
|
945
|
-
"--column-margin-left-tablet": s({
|
|
946
|
-
stackedStyle: _,
|
|
947
|
-
desktopStyle: W
|
|
948
|
-
})
|
|
949
|
-
};
|
|
950
|
-
}, p = function(y) {
|
|
951
|
-
var E, W;
|
|
952
|
-
return Pe(
|
|
953
|
-
((W = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : W.breakpoints) || {}
|
|
954
|
-
)[y].max;
|
|
955
|
-
}, v = function() {
|
|
956
|
-
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
957
|
-
return `
|
|
958
|
-
@media (max-width: ${p("medium")}px) {
|
|
959
|
-
.${e.builderBlock.id}-breakpoints {
|
|
960
|
-
flex-direction: var(--flex-dir-tablet);
|
|
961
|
-
align-items: stretch;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
${y} {
|
|
965
|
-
width: var(--column-width-tablet) !important;
|
|
966
|
-
margin-left: var(--column-margin-left-tablet) !important;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
@media (max-width: ${p("small")}px) {
|
|
971
|
-
.${e.builderBlock.id}-breakpoints {
|
|
972
|
-
flex-direction: var(--flex-dir);
|
|
973
|
-
align-items: stretch;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
${y} {
|
|
977
|
-
width: var(--column-width-mobile) !important;
|
|
978
|
-
margin-left: var(--column-margin-left-mobile) !important;
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
`;
|
|
982
|
-
}, S = function(y, w) {
|
|
983
|
-
return {
|
|
984
|
-
...y.link ? {
|
|
985
|
-
href: y.link
|
|
986
|
-
} : {},
|
|
987
|
-
[U()]: "builder-column",
|
|
988
|
-
style: Re(m(w))
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
return /* @__PURE__ */ P(T, { children: [
|
|
992
|
-
/* @__PURE__ */ P(
|
|
993
|
-
"div",
|
|
994
|
-
{
|
|
995
|
-
className: Pt((f = e.builderBlock) == null ? void 0 : f.id) + " div-2cd13691",
|
|
996
|
-
style: u(),
|
|
997
|
-
children: [
|
|
998
|
-
/* @__PURE__ */ l(
|
|
999
|
-
Q,
|
|
1000
|
-
{
|
|
1001
|
-
id: "builderio-columns",
|
|
1002
|
-
styles: v(),
|
|
1003
|
-
nonce: e.builderContext.nonce
|
|
1004
|
-
}
|
|
1005
|
-
),
|
|
1006
|
-
(C = e.columns) == null ? void 0 : C.map((b, y) => /* @__PURE__ */ l(
|
|
1007
|
-
oe,
|
|
1008
|
-
{
|
|
1009
|
-
TagName: o(b),
|
|
1010
|
-
actionAttributes: {},
|
|
1011
|
-
attributes: S(b, y),
|
|
1012
|
-
children: /* @__PURE__ */ l(
|
|
1013
|
-
le,
|
|
1014
|
-
{
|
|
1015
|
-
path: `component.options.columns.${y}.blocks`,
|
|
1016
|
-
parent: e.builderBlock.id,
|
|
1017
|
-
styleProp: {
|
|
1018
|
-
flexGrow: "1"
|
|
1019
|
-
},
|
|
1020
|
-
context: e.builderContext,
|
|
1021
|
-
registeredComponents: e.builderComponents,
|
|
1022
|
-
linkComponent: e.builderLinkComponent,
|
|
1023
|
-
blocks: b.blocks
|
|
1024
|
-
}
|
|
1025
|
-
)
|
|
1026
|
-
},
|
|
1027
|
-
y
|
|
1028
|
-
))
|
|
1029
|
-
]
|
|
1030
|
-
}
|
|
1031
|
-
),
|
|
1032
|
-
/* @__PURE__ */ l("style", { children: `.div-2cd13691 {
|
|
1033
|
-
display: flex;
|
|
1034
|
-
line-height: normal;
|
|
1035
|
-
}` })
|
|
1036
|
-
] });
|
|
1037
|
-
}
|
|
1038
|
-
function Wt(e) {
|
|
1039
|
-
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1040
|
-
}
|
|
1041
|
-
function ye(e) {
|
|
1042
|
-
return e.replace(/http(s)?:/, "");
|
|
1043
|
-
}
|
|
1044
|
-
function At(e = "", t, n) {
|
|
1045
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1046
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1047
|
-
}
|
|
1048
|
-
function Nt(e, t) {
|
|
1049
|
-
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1050
|
-
return e;
|
|
1051
|
-
if (t === "master")
|
|
1052
|
-
return ye(e);
|
|
1053
|
-
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1054
|
-
if (n) {
|
|
1055
|
-
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1056
|
-
return ye(`${i[0]}_${a}${o}`);
|
|
1057
|
-
}
|
|
1058
|
-
return null;
|
|
1059
|
-
}
|
|
1060
|
-
function te(e) {
|
|
1061
|
-
if (!e)
|
|
1062
|
-
return e;
|
|
1063
|
-
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1064
|
-
if (e.match(/builder\.io/)) {
|
|
1065
|
-
let n = e;
|
|
1066
|
-
const i = Number(e.split("?width=")[1]);
|
|
1067
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1068
|
-
}
|
|
1069
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Nt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1070
|
-
}
|
|
1071
|
-
function Vt(e) {
|
|
1072
|
-
var o, a, r, s, c, d;
|
|
1073
|
-
function t() {
|
|
1074
|
-
var p;
|
|
1075
|
-
const m = e.image || e.src;
|
|
1076
|
-
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
1077
|
-
// images, otherwise you can supply this prop manually
|
|
1078
|
-
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
1079
|
-
return e.srcset;
|
|
1080
|
-
if (!e.noWebp) {
|
|
1081
|
-
if (e.srcset && ((p = e.image) != null && p.includes("builder.io/api/v1/image"))) {
|
|
1082
|
-
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1083
|
-
return console.debug("Removed given srcset"), te(m);
|
|
1084
|
-
} else if (e.image && !e.srcset)
|
|
1085
|
-
return te(m);
|
|
1086
|
-
return te(m);
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
function n() {
|
|
1090
|
-
var u;
|
|
1091
|
-
return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1092
|
-
}
|
|
1093
|
-
function i() {
|
|
1094
|
-
const u = {
|
|
1095
|
-
position: "absolute",
|
|
1096
|
-
height: "100%",
|
|
1097
|
-
width: "100%",
|
|
1098
|
-
left: "0px",
|
|
1099
|
-
top: "0px"
|
|
1100
|
-
};
|
|
1101
|
-
return e.aspectRatio ? u : void 0;
|
|
1102
|
-
}
|
|
1103
|
-
return R(() => {
|
|
1104
|
-
}, []), /* @__PURE__ */ P(T, { children: [
|
|
1105
|
-
/* @__PURE__ */ P(T, { children: [
|
|
1106
|
-
/* @__PURE__ */ P("picture", { children: [
|
|
1107
|
-
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1108
|
-
/* @__PURE__ */ l(
|
|
1109
|
-
"img",
|
|
1110
|
-
{
|
|
1111
|
-
loading: e.highPriority ? "eager" : "lazy",
|
|
1112
|
-
fetchPriority: e.highPriority ? "high" : "auto",
|
|
1113
|
-
alt: e.altText,
|
|
1114
|
-
role: e.altText ? void 0 : "presentation",
|
|
1115
|
-
style: {
|
|
1116
|
-
objectPosition: e.backgroundPosition || "center",
|
|
1117
|
-
objectFit: e.backgroundSize || "cover",
|
|
1118
|
-
...i()
|
|
1119
|
-
},
|
|
1120
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
|
|
1121
|
-
src: e.image,
|
|
1122
|
-
srcSet: t(),
|
|
1123
|
-
sizes: e.sizes
|
|
1124
|
-
}
|
|
1125
|
-
)
|
|
1126
|
-
] }),
|
|
1127
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1128
|
-
"div",
|
|
1129
|
-
{
|
|
1130
|
-
className: "builder-image-sizer div-2d6925f2",
|
|
1131
|
-
style: {
|
|
1132
|
-
paddingTop: e.aspectRatio * 100 + "%"
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
) : null,
|
|
1136
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
|
|
1137
|
-
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1138
|
-
] }),
|
|
1139
|
-
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
1140
|
-
opacity: 1;
|
|
1141
|
-
transition: opacity 0.2s ease-in-out;
|
|
1142
|
-
}.div-2d6925f2 {
|
|
1143
|
-
width: 100%;
|
|
1144
|
-
pointer-events: none;
|
|
1145
|
-
font-size: 0;
|
|
1146
|
-
}.div-2d6925f2-2 {
|
|
1147
|
-
display: flex;
|
|
1148
|
-
flex-direction: column;
|
|
1149
|
-
align-items: stretch;
|
|
1150
|
-
position: absolute;
|
|
1151
|
-
top: 0;
|
|
1152
|
-
left: 0;
|
|
1153
|
-
width: 100%;
|
|
1154
|
-
height: 100%;
|
|
1155
|
-
}` })
|
|
1156
|
-
] });
|
|
1157
|
-
}
|
|
1158
|
-
function $t(e) {
|
|
1159
|
-
return /* @__PURE__ */ l(
|
|
1160
|
-
"section",
|
|
1161
|
-
{
|
|
1162
|
-
...e.attributes,
|
|
1163
|
-
style: {
|
|
1164
|
-
width: "100%",
|
|
1165
|
-
alignSelf: "stretch",
|
|
1166
|
-
flexGrow: 1,
|
|
1167
|
-
boxSizing: "border-box",
|
|
1168
|
-
maxWidth: e.maxWidth || 1200,
|
|
1169
|
-
display: "flex",
|
|
1170
|
-
flexDirection: "column",
|
|
1171
|
-
alignItems: "stretch",
|
|
1172
|
-
marginLeft: "auto",
|
|
1173
|
-
marginRight: "auto"
|
|
1174
|
-
},
|
|
1175
|
-
children: e.children
|
|
1176
|
-
}
|
|
1177
|
-
);
|
|
1178
|
-
}
|
|
1179
|
-
const Ft = {
|
|
1180
|
-
name: "Core:Button",
|
|
1181
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1182
|
-
defaultStyles: {
|
|
1183
|
-
// TODO: make min width more intuitive and set one
|
|
1184
|
-
appearance: "none",
|
|
1185
|
-
paddingTop: "15px",
|
|
1186
|
-
paddingBottom: "15px",
|
|
1187
|
-
paddingLeft: "25px",
|
|
1188
|
-
paddingRight: "25px",
|
|
1189
|
-
backgroundColor: "#000000",
|
|
1190
|
-
color: "white",
|
|
1191
|
-
borderRadius: "4px",
|
|
1192
|
-
textAlign: "center",
|
|
1193
|
-
cursor: "pointer"
|
|
1194
|
-
},
|
|
1195
|
-
inputs: [{
|
|
1196
|
-
name: "text",
|
|
1197
|
-
type: "text",
|
|
1198
|
-
defaultValue: "Click me!",
|
|
1199
|
-
bubble: !0
|
|
1200
|
-
}, {
|
|
1201
|
-
name: "link",
|
|
1202
|
-
type: "url",
|
|
1203
|
-
bubble: !0
|
|
1204
|
-
}, {
|
|
1205
|
-
name: "openLinkInNewTab",
|
|
1206
|
-
type: "boolean",
|
|
1207
|
-
defaultValue: !1,
|
|
1208
|
-
friendlyName: "Open link in new tab"
|
|
1209
|
-
}],
|
|
1210
|
-
static: !0,
|
|
1211
|
-
noWrap: !0,
|
|
1212
|
-
shouldReceiveBuilderProps: {
|
|
1213
|
-
builderLinkComponent: !0
|
|
1214
|
-
}
|
|
1215
|
-
}, Lt = {
|
|
1216
|
-
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1217
|
-
name: "Columns",
|
|
1218
|
-
isRSC: !0,
|
|
1219
|
-
inputs: [{
|
|
1220
|
-
name: "columns",
|
|
1221
|
-
type: "array",
|
|
1222
|
-
broadcast: !0,
|
|
1223
|
-
subFields: [{
|
|
1224
|
-
name: "blocks",
|
|
1225
|
-
type: "array",
|
|
1226
|
-
hideFromUI: !0,
|
|
1227
|
-
defaultValue: [{
|
|
1228
|
-
"@type": "@builder.io/sdk:Element",
|
|
1229
|
-
responsiveStyles: {
|
|
1230
|
-
large: {
|
|
1231
|
-
display: "flex",
|
|
1232
|
-
flexDirection: "column",
|
|
1233
|
-
alignItems: "stretch",
|
|
1234
|
-
flexShrink: "0",
|
|
1235
|
-
position: "relative",
|
|
1236
|
-
marginTop: "30px",
|
|
1237
|
-
textAlign: "center",
|
|
1238
|
-
lineHeight: "normal",
|
|
1239
|
-
height: "auto",
|
|
1240
|
-
minHeight: "20px",
|
|
1241
|
-
minWidth: "20px",
|
|
1242
|
-
overflow: "hidden"
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
component: {
|
|
1246
|
-
name: "Image",
|
|
1247
|
-
options: {
|
|
1248
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1249
|
-
backgroundPosition: "center",
|
|
1250
|
-
backgroundSize: "cover",
|
|
1251
|
-
aspectRatio: 0.7004048582995948
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
}, {
|
|
1255
|
-
"@type": "@builder.io/sdk:Element",
|
|
1256
|
-
responsiveStyles: {
|
|
1257
|
-
large: {
|
|
1258
|
-
display: "flex",
|
|
1259
|
-
flexDirection: "column",
|
|
1260
|
-
alignItems: "stretch",
|
|
1261
|
-
flexShrink: "0",
|
|
1262
|
-
position: "relative",
|
|
1263
|
-
marginTop: "30px",
|
|
1264
|
-
textAlign: "center",
|
|
1265
|
-
lineHeight: "normal",
|
|
1266
|
-
height: "auto"
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
|
-
component: {
|
|
1270
|
-
name: "Text",
|
|
1271
|
-
options: {
|
|
1272
|
-
text: "<p>Enter some text...</p>"
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
}]
|
|
1276
|
-
}, {
|
|
1277
|
-
name: "width",
|
|
1278
|
-
type: "number",
|
|
1279
|
-
hideFromUI: !0,
|
|
1280
|
-
helperText: "Width %, e.g. set to 50 to fill half of the space"
|
|
1281
|
-
}, {
|
|
1282
|
-
name: "link",
|
|
1283
|
-
type: "url",
|
|
1284
|
-
helperText: "Optionally set a url that clicking this column will link to"
|
|
1285
|
-
}],
|
|
1286
|
-
defaultValue: [{
|
|
1287
|
-
blocks: [{
|
|
1288
|
-
"@type": "@builder.io/sdk:Element",
|
|
1289
|
-
responsiveStyles: {
|
|
1290
|
-
large: {
|
|
1291
|
-
display: "flex",
|
|
1292
|
-
flexDirection: "column",
|
|
1293
|
-
alignItems: "stretch",
|
|
1294
|
-
flexShrink: "0",
|
|
1295
|
-
position: "relative",
|
|
1296
|
-
marginTop: "30px",
|
|
1297
|
-
textAlign: "center",
|
|
1298
|
-
lineHeight: "normal",
|
|
1299
|
-
height: "auto",
|
|
1300
|
-
minHeight: "20px",
|
|
1301
|
-
minWidth: "20px",
|
|
1302
|
-
overflow: "hidden"
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
component: {
|
|
1306
|
-
name: "Image",
|
|
1307
|
-
options: {
|
|
1308
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1309
|
-
backgroundPosition: "center",
|
|
1310
|
-
backgroundSize: "cover",
|
|
1311
|
-
aspectRatio: 0.7004048582995948
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
}, {
|
|
1315
|
-
"@type": "@builder.io/sdk:Element",
|
|
1316
|
-
responsiveStyles: {
|
|
1317
|
-
large: {
|
|
1318
|
-
display: "flex",
|
|
1319
|
-
flexDirection: "column",
|
|
1320
|
-
alignItems: "stretch",
|
|
1321
|
-
flexShrink: "0",
|
|
1322
|
-
position: "relative",
|
|
1323
|
-
marginTop: "30px",
|
|
1324
|
-
textAlign: "center",
|
|
1325
|
-
lineHeight: "normal",
|
|
1326
|
-
height: "auto"
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
component: {
|
|
1330
|
-
name: "Text",
|
|
1331
|
-
options: {
|
|
1332
|
-
text: "<p>Enter some text...</p>"
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
}]
|
|
1336
|
-
}, {
|
|
1337
|
-
blocks: [{
|
|
1338
|
-
"@type": "@builder.io/sdk:Element",
|
|
1339
|
-
responsiveStyles: {
|
|
1340
|
-
large: {
|
|
1341
|
-
display: "flex",
|
|
1342
|
-
flexDirection: "column",
|
|
1343
|
-
alignItems: "stretch",
|
|
1344
|
-
flexShrink: "0",
|
|
1345
|
-
position: "relative",
|
|
1346
|
-
marginTop: "30px",
|
|
1347
|
-
textAlign: "center",
|
|
1348
|
-
lineHeight: "normal",
|
|
1349
|
-
height: "auto",
|
|
1350
|
-
minHeight: "20px",
|
|
1351
|
-
minWidth: "20px",
|
|
1352
|
-
overflow: "hidden"
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
component: {
|
|
1356
|
-
name: "Image",
|
|
1357
|
-
options: {
|
|
1358
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1359
|
-
backgroundPosition: "center",
|
|
1360
|
-
backgroundSize: "cover",
|
|
1361
|
-
aspectRatio: 0.7004048582995948
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
}, {
|
|
1365
|
-
"@type": "@builder.io/sdk:Element",
|
|
1366
|
-
responsiveStyles: {
|
|
1367
|
-
large: {
|
|
1368
|
-
display: "flex",
|
|
1369
|
-
flexDirection: "column",
|
|
1370
|
-
alignItems: "stretch",
|
|
1371
|
-
flexShrink: "0",
|
|
1372
|
-
position: "relative",
|
|
1373
|
-
marginTop: "30px",
|
|
1374
|
-
textAlign: "center",
|
|
1375
|
-
lineHeight: "normal",
|
|
1376
|
-
height: "auto"
|
|
1377
|
-
}
|
|
1378
|
-
},
|
|
1379
|
-
component: {
|
|
1380
|
-
name: "Text",
|
|
1381
|
-
options: {
|
|
1382
|
-
text: "<p>Enter some text...</p>"
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}]
|
|
1386
|
-
}],
|
|
1387
|
-
onChange: (e) => {
|
|
1388
|
-
function t() {
|
|
1389
|
-
n.forEach((i) => {
|
|
1390
|
-
i.delete("width");
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
const n = e.get("columns");
|
|
1394
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
|
|
1395
|
-
}
|
|
1396
|
-
}, {
|
|
1397
|
-
name: "space",
|
|
1398
|
-
type: "number",
|
|
1399
|
-
defaultValue: 20,
|
|
1400
|
-
helperText: "Size of gap between columns",
|
|
1401
|
-
advanced: !0
|
|
1402
|
-
}, {
|
|
1403
|
-
name: "stackColumnsAt",
|
|
1404
|
-
type: "string",
|
|
1405
|
-
defaultValue: "tablet",
|
|
1406
|
-
helperText: "Convert horizontal columns to vertical at what device size",
|
|
1407
|
-
enum: ["tablet", "mobile", "never"],
|
|
1408
|
-
advanced: !0
|
|
1409
|
-
}, {
|
|
1410
|
-
name: "reverseColumnsWhenStacked",
|
|
1411
|
-
type: "boolean",
|
|
1412
|
-
defaultValue: !1,
|
|
1413
|
-
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1414
|
-
advanced: !0
|
|
1415
|
-
}],
|
|
1416
|
-
shouldReceiveBuilderProps: {
|
|
1417
|
-
builderBlock: !0,
|
|
1418
|
-
builderContext: !0,
|
|
1419
|
-
builderComponents: !0,
|
|
1420
|
-
builderLinkComponent: !0
|
|
1421
|
-
}
|
|
1422
|
-
}, Ot = {
|
|
1423
|
-
name: "Fragment",
|
|
1424
|
-
static: !0,
|
|
1425
|
-
hidden: !0,
|
|
1426
|
-
canHaveChildren: !0,
|
|
1427
|
-
noWrap: !0
|
|
1428
|
-
}, Dt = {
|
|
1429
|
-
name: "Image",
|
|
1430
|
-
static: !0,
|
|
1431
|
-
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",
|
|
1432
|
-
defaultStyles: {
|
|
1433
|
-
position: "relative",
|
|
1434
|
-
minHeight: "20px",
|
|
1435
|
-
minWidth: "20px",
|
|
1436
|
-
overflow: "hidden"
|
|
1437
|
-
},
|
|
1438
|
-
canHaveChildren: !0,
|
|
1439
|
-
inputs: [{
|
|
1440
|
-
name: "image",
|
|
1441
|
-
type: "file",
|
|
1442
|
-
bubble: !0,
|
|
1443
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
|
|
1444
|
-
required: !0,
|
|
1445
|
-
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1446
|
-
onChange: (e) => {
|
|
1447
|
-
e.delete("srcset"), e.delete("noWebp");
|
|
1448
|
-
function n(r, s = 6e4) {
|
|
1449
|
-
return new Promise((c, d) => {
|
|
1450
|
-
const u = document.createElement("img");
|
|
1451
|
-
let m = !1;
|
|
1452
|
-
u.onload = () => {
|
|
1453
|
-
m = !0, c(u);
|
|
1454
|
-
}, u.addEventListener("error", (p) => {
|
|
1455
|
-
console.warn("Image load failed", p.error), d(p.error);
|
|
1456
|
-
}), u.src = r, setTimeout(() => {
|
|
1457
|
-
m || d(new Error("Image load timed out"));
|
|
1458
|
-
}, s);
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
function i(r) {
|
|
1462
|
-
return Math.round(r * 1e3) / 1e3;
|
|
1463
|
-
}
|
|
1464
|
-
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1465
|
-
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1466
|
-
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1467
|
-
}), o && (!a || a === 0.7041))
|
|
1468
|
-
return n(o).then((r) => {
|
|
1469
|
-
const s = e.get("aspectRatio");
|
|
1470
|
-
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
}, {
|
|
1474
|
-
name: "backgroundSize",
|
|
1475
|
-
type: "text",
|
|
1476
|
-
defaultValue: "cover",
|
|
1477
|
-
enum: [{
|
|
1478
|
-
label: "contain",
|
|
1479
|
-
value: "contain",
|
|
1480
|
-
helperText: "The image should never get cropped"
|
|
1481
|
-
}, {
|
|
1482
|
-
label: "cover",
|
|
1483
|
-
value: "cover",
|
|
1484
|
-
helperText: "The image should fill it's box, cropping when needed"
|
|
1485
|
-
}]
|
|
1486
|
-
}, {
|
|
1487
|
-
name: "backgroundPosition",
|
|
1488
|
-
type: "text",
|
|
1489
|
-
defaultValue: "center",
|
|
1490
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1491
|
-
}, {
|
|
1492
|
-
name: "altText",
|
|
1493
|
-
type: "string",
|
|
1494
|
-
helperText: "Text to display when the user has images off"
|
|
1495
|
-
}, {
|
|
1496
|
-
name: "height",
|
|
1497
|
-
type: "number",
|
|
1498
|
-
hideFromUI: !0
|
|
1499
|
-
}, {
|
|
1500
|
-
name: "width",
|
|
1501
|
-
type: "number",
|
|
1502
|
-
hideFromUI: !0
|
|
1503
|
-
}, {
|
|
1504
|
-
name: "sizes",
|
|
1505
|
-
type: "string",
|
|
1506
|
-
hideFromUI: !0
|
|
1507
|
-
}, {
|
|
1508
|
-
name: "srcset",
|
|
1509
|
-
type: "string",
|
|
1510
|
-
hideFromUI: !0
|
|
1511
|
-
}, {
|
|
1512
|
-
name: "lazy",
|
|
1513
|
-
type: "boolean",
|
|
1514
|
-
defaultValue: !0,
|
|
1515
|
-
hideFromUI: !0
|
|
1516
|
-
}, {
|
|
1517
|
-
name: "fitContent",
|
|
1518
|
-
type: "boolean",
|
|
1519
|
-
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
1520
|
-
defaultValue: !0
|
|
1521
|
-
}, {
|
|
1522
|
-
name: "highPriority",
|
|
1523
|
-
type: "boolean",
|
|
1524
|
-
advanced: !0,
|
|
1525
|
-
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
1526
|
-
}, {
|
|
1527
|
-
name: "aspectRatio",
|
|
1528
|
-
type: "number",
|
|
1529
|
-
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",
|
|
1530
|
-
advanced: !0,
|
|
1531
|
-
defaultValue: 0.7041
|
|
1532
|
-
}],
|
|
1533
|
-
shouldReceiveBuilderProps: {
|
|
1534
|
-
builderBlock: !0
|
|
1535
|
-
}
|
|
1536
|
-
}, Ht = {
|
|
1537
|
-
name: "Core:Section",
|
|
1538
|
-
static: !0,
|
|
1539
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
1540
|
-
inputs: [{
|
|
1541
|
-
name: "maxWidth",
|
|
1542
|
-
type: "number",
|
|
1543
|
-
defaultValue: 1200
|
|
1544
|
-
}, {
|
|
1545
|
-
name: "lazyLoad",
|
|
1546
|
-
type: "boolean",
|
|
1547
|
-
defaultValue: !1,
|
|
1548
|
-
advanced: !0,
|
|
1549
|
-
description: "Only render this section when in view"
|
|
1550
|
-
}],
|
|
1551
|
-
defaultStyles: {
|
|
1552
|
-
paddingLeft: "20px",
|
|
1553
|
-
paddingRight: "20px",
|
|
1554
|
-
paddingTop: "50px",
|
|
1555
|
-
paddingBottom: "50px",
|
|
1556
|
-
marginTop: "0px",
|
|
1557
|
-
width: "100vw",
|
|
1558
|
-
marginLeft: "calc(50% - 50vw)"
|
|
1559
|
-
},
|
|
1560
|
-
canHaveChildren: !0,
|
|
1561
|
-
defaultChildren: [{
|
|
1562
|
-
"@type": "@builder.io/sdk:Element",
|
|
1563
|
-
responsiveStyles: {
|
|
1564
|
-
large: {
|
|
1565
|
-
textAlign: "center"
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
component: {
|
|
1569
|
-
name: "Text",
|
|
1570
|
-
options: {
|
|
1571
|
-
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>"
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
}]
|
|
1575
|
-
}, _t = {
|
|
1576
|
-
name: "Slot",
|
|
1577
|
-
isRSC: !0,
|
|
1578
|
-
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
1579
|
-
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
1580
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
1581
|
-
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
1582
|
-
inputs: [{
|
|
1583
|
-
name: "name",
|
|
1584
|
-
type: "string",
|
|
1585
|
-
required: !0,
|
|
1586
|
-
defaultValue: "children"
|
|
1587
|
-
}],
|
|
1588
|
-
shouldReceiveBuilderProps: {
|
|
1589
|
-
builderContext: !0,
|
|
1590
|
-
builderComponents: !0
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
function Ut(e) {
|
|
1594
|
-
var t, n, i;
|
|
1595
|
-
return /* @__PURE__ */ l(
|
|
1596
|
-
"div",
|
|
1597
|
-
{
|
|
1598
|
-
style: {
|
|
1599
|
-
pointerEvents: "auto"
|
|
1600
|
-
},
|
|
1601
|
-
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1602
|
-
"builder-slot": e.name
|
|
1603
|
-
},
|
|
1604
|
-
children: /* @__PURE__ */ l(
|
|
1605
|
-
le,
|
|
1606
|
-
{
|
|
1607
|
-
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1608
|
-
path: `symbol.data.${e.name}`,
|
|
1609
|
-
context: e.builderContext,
|
|
1610
|
-
registeredComponents: e.builderComponents,
|
|
1611
|
-
blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
|
|
1612
|
-
}
|
|
1613
|
-
)
|
|
1614
|
-
}
|
|
1615
|
-
);
|
|
1616
|
-
}
|
|
1617
|
-
const jt = {
|
|
1618
|
-
name: "Symbol",
|
|
1619
|
-
noWrap: !0,
|
|
1620
|
-
static: !0,
|
|
1621
|
-
isRSC: !0,
|
|
1622
|
-
inputs: [{
|
|
1623
|
-
name: "symbol",
|
|
1624
|
-
type: "uiSymbol"
|
|
1625
|
-
}, {
|
|
1626
|
-
name: "dataOnly",
|
|
1627
|
-
helperText: "Make this a data symbol that doesn't display any UI",
|
|
1628
|
-
type: "boolean",
|
|
1629
|
-
defaultValue: !1,
|
|
1630
|
-
advanced: !0,
|
|
1631
|
-
hideFromUI: !0
|
|
1632
|
-
}, {
|
|
1633
|
-
name: "inheritState",
|
|
1634
|
-
helperText: "Inherit the parent component state and data",
|
|
1635
|
-
type: "boolean",
|
|
1636
|
-
defaultValue: !1,
|
|
1637
|
-
advanced: !0
|
|
1638
|
-
}, {
|
|
1639
|
-
name: "renderToLiquid",
|
|
1640
|
-
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
1641
|
-
type: "boolean",
|
|
1642
|
-
defaultValue: !1,
|
|
1643
|
-
advanced: !0,
|
|
1644
|
-
hideFromUI: !0
|
|
1645
|
-
}, {
|
|
1646
|
-
name: "useChildren",
|
|
1647
|
-
hideFromUI: !0,
|
|
1648
|
-
type: "boolean"
|
|
1649
|
-
}],
|
|
1650
|
-
shouldReceiveBuilderProps: {
|
|
1651
|
-
builderBlock: !0,
|
|
1652
|
-
builderContext: !0,
|
|
1653
|
-
builderComponents: !0,
|
|
1654
|
-
builderLinkComponent: !0
|
|
1655
|
-
}
|
|
1656
|
-
}, Mt = {
|
|
1657
|
-
shouldReceiveBuilderProps: {
|
|
1658
|
-
builderBlock: !1,
|
|
1659
|
-
builderContext: !0
|
|
1660
|
-
},
|
|
1661
|
-
name: "Text",
|
|
1662
|
-
static: !0,
|
|
1663
|
-
isRSC: !0,
|
|
1664
|
-
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",
|
|
1665
|
-
inputs: [{
|
|
1666
|
-
name: "text",
|
|
1667
|
-
type: "html",
|
|
1668
|
-
required: !0,
|
|
1669
|
-
autoFocus: !0,
|
|
1670
|
-
bubble: !0,
|
|
1671
|
-
defaultValue: "Enter some text..."
|
|
1672
|
-
}],
|
|
1673
|
-
defaultStyles: {
|
|
1674
|
-
lineHeight: "normal",
|
|
1675
|
-
height: "auto",
|
|
1676
|
-
textAlign: "center"
|
|
1677
|
-
}
|
|
1678
|
-
};
|
|
1679
|
-
function Kt(e) {
|
|
1680
|
-
return /* @__PURE__ */ l(
|
|
1681
|
-
"div",
|
|
1682
|
-
{
|
|
1683
|
-
className: "builder-text",
|
|
1684
|
-
dangerouslySetInnerHTML: { __html: function() {
|
|
1685
|
-
var c;
|
|
1686
|
-
const i = e.builderContext, {
|
|
1687
|
-
context: o,
|
|
1688
|
-
localState: a,
|
|
1689
|
-
rootState: r,
|
|
1690
|
-
rootSetState: s
|
|
1691
|
-
} = i;
|
|
1692
|
-
return String(((c = e.text) == null ? void 0 : c.toString()) || "").replace(
|
|
1693
|
-
/{{([^}]+)}}/g,
|
|
1694
|
-
(d, u) => D({
|
|
1695
|
-
code: u,
|
|
1696
|
-
context: o,
|
|
1697
|
-
localState: a,
|
|
1698
|
-
rootState: r,
|
|
1699
|
-
rootSetState: s,
|
|
1700
|
-
enableCache: !1
|
|
1701
|
-
})
|
|
1702
|
-
);
|
|
1703
|
-
}() },
|
|
1704
|
-
style: {
|
|
1705
|
-
outline: "none"
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
);
|
|
1709
|
-
}
|
|
1710
|
-
const zt = {
|
|
1711
|
-
name: "Custom Code",
|
|
1712
|
-
static: !0,
|
|
1713
|
-
requiredPermissions: ["editCode"],
|
|
1714
|
-
inputs: [{
|
|
1715
|
-
name: "code",
|
|
1716
|
-
type: "html",
|
|
1717
|
-
required: !0,
|
|
1718
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
1719
|
-
code: !0
|
|
1720
|
-
}, {
|
|
1721
|
-
name: "replaceNodes",
|
|
1722
|
-
type: "boolean",
|
|
1723
|
-
helperText: "Preserve server rendered dom nodes",
|
|
1724
|
-
advanced: !0
|
|
1725
|
-
}, {
|
|
1726
|
-
name: "scriptsClientOnly",
|
|
1727
|
-
type: "boolean",
|
|
1728
|
-
defaultValue: !1,
|
|
1729
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1730
|
-
advanced: !0
|
|
1731
|
-
}]
|
|
1732
|
-
};
|
|
1733
|
-
function qt(e) {
|
|
1734
|
-
const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1735
|
-
return R(() => {
|
|
1736
|
-
var s;
|
|
1737
|
-
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1738
|
-
return;
|
|
1739
|
-
const r = t.current.getElementsByTagName("script");
|
|
1740
|
-
for (let c = 0; c < r.length; c++) {
|
|
1741
|
-
const d = r[c];
|
|
1742
|
-
if (d.src) {
|
|
1743
|
-
if (n.includes(d.src))
|
|
1744
|
-
continue;
|
|
1745
|
-
n.push(d.src);
|
|
1746
|
-
const u = document.createElement("script");
|
|
1747
|
-
u.async = !0, u.src = d.src, document.head.appendChild(u);
|
|
1748
|
-
} else if (!d.type || [
|
|
1749
|
-
"text/javascript",
|
|
1750
|
-
"application/javascript",
|
|
1751
|
-
"application/ecmascript"
|
|
1752
|
-
].includes(d.type)) {
|
|
1753
|
-
if (o.includes(d.innerText))
|
|
1754
|
-
continue;
|
|
1755
|
-
try {
|
|
1756
|
-
o.push(d.innerText), new Function(d.innerText)();
|
|
1757
|
-
} catch (u) {
|
|
1758
|
-
console.warn("`CustomCode`: Error running script:", u);
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
}, []), /* @__PURE__ */ l(
|
|
1763
|
-
"div",
|
|
1764
|
-
{
|
|
1765
|
-
ref: t,
|
|
1766
|
-
className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
|
|
1767
|
-
dangerouslySetInnerHTML: { __html: e.code }
|
|
1768
|
-
}
|
|
1769
|
-
);
|
|
1770
|
-
}
|
|
1771
|
-
const Yt = {
|
|
1772
|
-
name: "Embed",
|
|
1773
|
-
static: !0,
|
|
1774
|
-
inputs: [{
|
|
1775
|
-
name: "url",
|
|
1776
|
-
type: "url",
|
|
1777
|
-
required: !0,
|
|
1778
|
-
defaultValue: "",
|
|
1779
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
1780
|
-
}, {
|
|
1781
|
-
name: "content",
|
|
1782
|
-
type: "html",
|
|
1783
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1784
|
-
hideFromUI: !0
|
|
1785
|
-
}]
|
|
1786
|
-
}, Jt = ["text/javascript", "application/javascript", "application/ecmascript"], Qt = (e) => Jt.includes(e.type);
|
|
1787
|
-
function Gt(e) {
|
|
1788
|
-
const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, s] = N(() => !1);
|
|
1789
|
-
function c() {
|
|
1790
|
-
if (!t.current || !t.current.getElementsByTagName)
|
|
1791
|
-
return;
|
|
1792
|
-
const d = t.current.getElementsByTagName("script");
|
|
1793
|
-
for (let u = 0; u < d.length; u++) {
|
|
1794
|
-
const m = d[u];
|
|
1795
|
-
if (m.src && !n.includes(m.src)) {
|
|
1796
|
-
n.push(m.src);
|
|
1797
|
-
const p = document.createElement("script");
|
|
1798
|
-
p.async = !0, p.src = m.src, document.head.appendChild(p);
|
|
1799
|
-
} else if (Qt(m) && !o.includes(m.innerText))
|
|
1800
|
-
try {
|
|
1801
|
-
o.push(m.innerText), new Function(m.innerText)();
|
|
1802
|
-
} catch (p) {
|
|
1803
|
-
console.warn("`Embed`: Error running script:", p);
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
return R(() => {
|
|
1808
|
-
t.current && !r && (s(!0), c());
|
|
1809
|
-
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1810
|
-
"div",
|
|
1811
|
-
{
|
|
1812
|
-
className: "builder-embed",
|
|
1813
|
-
ref: t,
|
|
1814
|
-
dangerouslySetInnerHTML: { __html: e.content }
|
|
1815
|
-
}
|
|
1816
|
-
);
|
|
1817
|
-
}
|
|
1818
|
-
const Xt = {
|
|
1819
|
-
// friendlyName?
|
|
1820
|
-
name: "Raw:Img",
|
|
1821
|
-
hideFromInsertMenu: !0,
|
|
1822
|
-
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",
|
|
1823
|
-
inputs: [{
|
|
1824
|
-
name: "image",
|
|
1825
|
-
bubble: !0,
|
|
1826
|
-
type: "file",
|
|
1827
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
1828
|
-
required: !0
|
|
1829
|
-
}],
|
|
1830
|
-
noWrap: !0,
|
|
1831
|
-
static: !0
|
|
1832
|
-
};
|
|
1833
|
-
function Zt(e) {
|
|
1834
|
-
return /* @__PURE__ */ l(
|
|
1835
|
-
"img",
|
|
1836
|
-
{
|
|
1837
|
-
style: {
|
|
1838
|
-
objectFit: e.backgroundSize || "cover",
|
|
1839
|
-
objectPosition: e.backgroundPosition || "center"
|
|
1840
|
-
},
|
|
1841
|
-
alt: e.altText,
|
|
1842
|
-
src: e.imgSrc || e.image,
|
|
1843
|
-
...e.attributes
|
|
1844
|
-
},
|
|
1845
|
-
V() && e.imgSrc || "default-key"
|
|
1846
|
-
);
|
|
1847
|
-
}
|
|
1848
|
-
const en = {
|
|
1849
|
-
name: "Video",
|
|
1850
|
-
canHaveChildren: !0,
|
|
1851
|
-
defaultStyles: {
|
|
1852
|
-
minHeight: "20px",
|
|
1853
|
-
minWidth: "20px"
|
|
1854
|
-
},
|
|
1855
|
-
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",
|
|
1856
|
-
inputs: [{
|
|
1857
|
-
name: "video",
|
|
1858
|
-
type: "file",
|
|
1859
|
-
allowedFileTypes: ["mp4"],
|
|
1860
|
-
bubble: !0,
|
|
1861
|
-
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
1862
|
-
required: !0
|
|
1863
|
-
}, {
|
|
1864
|
-
name: "posterImage",
|
|
1865
|
-
type: "file",
|
|
1866
|
-
allowedFileTypes: ["jpeg", "png"],
|
|
1867
|
-
helperText: "Image to show before the video plays"
|
|
1868
|
-
}, {
|
|
1869
|
-
name: "autoPlay",
|
|
1870
|
-
type: "boolean",
|
|
1871
|
-
defaultValue: !0
|
|
1872
|
-
}, {
|
|
1873
|
-
name: "controls",
|
|
1874
|
-
type: "boolean",
|
|
1875
|
-
defaultValue: !1
|
|
1876
|
-
}, {
|
|
1877
|
-
name: "muted",
|
|
1878
|
-
type: "boolean",
|
|
1879
|
-
defaultValue: !0
|
|
1880
|
-
}, {
|
|
1881
|
-
name: "loop",
|
|
1882
|
-
type: "boolean",
|
|
1883
|
-
defaultValue: !0
|
|
1884
|
-
}, {
|
|
1885
|
-
name: "playsInline",
|
|
1886
|
-
type: "boolean",
|
|
1887
|
-
defaultValue: !0
|
|
1888
|
-
}, {
|
|
1889
|
-
name: "fit",
|
|
1890
|
-
type: "text",
|
|
1891
|
-
defaultValue: "cover",
|
|
1892
|
-
enum: ["contain", "cover", "fill", "auto"]
|
|
1893
|
-
}, {
|
|
1894
|
-
name: "preload",
|
|
1895
|
-
type: "text",
|
|
1896
|
-
defaultValue: "metadata",
|
|
1897
|
-
enum: ["auto", "metadata", "none"]
|
|
1898
|
-
}, {
|
|
1899
|
-
name: "fitContent",
|
|
1900
|
-
type: "boolean",
|
|
1901
|
-
helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
|
|
1902
|
-
defaultValue: !0,
|
|
1903
|
-
advanced: !0
|
|
1904
|
-
}, {
|
|
1905
|
-
name: "position",
|
|
1906
|
-
type: "text",
|
|
1907
|
-
defaultValue: "center",
|
|
1908
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1909
|
-
}, {
|
|
1910
|
-
name: "height",
|
|
1911
|
-
type: "number",
|
|
1912
|
-
advanced: !0
|
|
1913
|
-
}, {
|
|
1914
|
-
name: "width",
|
|
1915
|
-
type: "number",
|
|
1916
|
-
advanced: !0
|
|
1917
|
-
}, {
|
|
1918
|
-
name: "aspectRatio",
|
|
1919
|
-
type: "number",
|
|
1920
|
-
advanced: !0,
|
|
1921
|
-
defaultValue: 0.7004048582995948
|
|
1922
|
-
}, {
|
|
1923
|
-
name: "lazyLoad",
|
|
1924
|
-
type: "boolean",
|
|
1925
|
-
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
1926
|
-
defaultValue: !0,
|
|
1927
|
-
advanced: !0
|
|
1928
|
-
}],
|
|
1929
|
-
shouldReceiveBuilderProps: {
|
|
1930
|
-
builderBlock: !0
|
|
1931
|
-
}
|
|
1932
|
-
};
|
|
1933
|
-
function tn(e) {
|
|
1934
|
-
var i, o, a, r, s, c, d;
|
|
1935
|
-
function t() {
|
|
1936
|
-
return {
|
|
1937
|
-
...e.autoPlay === !0 ? {
|
|
1938
|
-
autoPlay: !0
|
|
1939
|
-
} : {},
|
|
1940
|
-
...e.muted === !0 ? {
|
|
1941
|
-
muted: !0
|
|
1942
|
-
} : {},
|
|
1943
|
-
...e.controls === !0 ? {
|
|
1944
|
-
controls: !0
|
|
1945
|
-
} : {},
|
|
1946
|
-
...e.loop === !0 ? {
|
|
1947
|
-
loop: !0
|
|
1948
|
-
} : {},
|
|
1949
|
-
...e.playsInline === !0 ? {
|
|
1950
|
-
playsInline: !0
|
|
1951
|
-
} : {}
|
|
1952
|
-
};
|
|
1953
|
-
}
|
|
1954
|
-
function n() {
|
|
1955
|
-
return {
|
|
1956
|
-
...t()
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
return /* @__PURE__ */ P(
|
|
1960
|
-
"div",
|
|
1961
|
-
{
|
|
1962
|
-
style: {
|
|
1963
|
-
position: "relative"
|
|
1964
|
-
},
|
|
1965
|
-
children: [
|
|
1966
|
-
/* @__PURE__ */ l(
|
|
1967
|
-
"video",
|
|
1968
|
-
{
|
|
1969
|
-
className: "builder-video",
|
|
1970
|
-
...n(),
|
|
1971
|
-
preload: e.preload || "metadata",
|
|
1972
|
-
style: {
|
|
1973
|
-
width: "100%",
|
|
1974
|
-
height: "100%",
|
|
1975
|
-
...(i = e.attributes) == null ? void 0 : i.style,
|
|
1976
|
-
objectFit: e.fit,
|
|
1977
|
-
objectPosition: e.position,
|
|
1978
|
-
// Hack to get object fit to work as expected and
|
|
1979
|
-
// not have the video overflow
|
|
1980
|
-
zIndex: 2,
|
|
1981
|
-
borderRadius: "1px",
|
|
1982
|
-
...e.aspectRatio ? {
|
|
1983
|
-
position: "absolute"
|
|
1984
|
-
} : null
|
|
1985
|
-
},
|
|
1986
|
-
src: e.video || "no-src",
|
|
1987
|
-
poster: e.posterImage,
|
|
1988
|
-
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1989
|
-
}
|
|
1990
|
-
),
|
|
1991
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
1992
|
-
"div",
|
|
1993
|
-
{
|
|
1994
|
-
style: {
|
|
1995
|
-
width: "100%",
|
|
1996
|
-
paddingTop: e.aspectRatio * 100 + "%",
|
|
1997
|
-
pointerEvents: "none",
|
|
1998
|
-
fontSize: "0px"
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
) : null,
|
|
2002
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
2003
|
-
"div",
|
|
2004
|
-
{
|
|
2005
|
-
style: {
|
|
2006
|
-
display: "flex",
|
|
2007
|
-
flexDirection: "column",
|
|
2008
|
-
alignItems: "stretch"
|
|
2009
|
-
},
|
|
2010
|
-
children: e.children
|
|
2011
|
-
}
|
|
2012
|
-
) : null,
|
|
2013
|
-
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
2014
|
-
"div",
|
|
2015
|
-
{
|
|
2016
|
-
style: {
|
|
2017
|
-
pointerEvents: "none",
|
|
2018
|
-
display: "flex",
|
|
2019
|
-
flexDirection: "column",
|
|
2020
|
-
alignItems: "stretch",
|
|
2021
|
-
position: "absolute",
|
|
2022
|
-
top: "0",
|
|
2023
|
-
left: "0",
|
|
2024
|
-
width: "100%",
|
|
2025
|
-
height: "100%"
|
|
2026
|
-
},
|
|
2027
|
-
children: e.children
|
|
2028
|
-
}
|
|
2029
|
-
) : null
|
|
2030
|
-
]
|
|
2031
|
-
}
|
|
2032
|
-
);
|
|
2033
|
-
}
|
|
2034
|
-
const nn = () => [{
|
|
2035
|
-
component: qt,
|
|
2036
|
-
...zt
|
|
2037
|
-
}, {
|
|
2038
|
-
component: Gt,
|
|
2039
|
-
...Yt
|
|
2040
|
-
}, {
|
|
2041
|
-
component: Zt,
|
|
2042
|
-
...Xt
|
|
2043
|
-
}, {
|
|
2044
|
-
component: tn,
|
|
2045
|
-
...en
|
|
2046
|
-
}], pe = () => [{
|
|
2047
|
-
component: Je,
|
|
2048
|
-
...Ft
|
|
2049
|
-
}, {
|
|
2050
|
-
component: Bt,
|
|
2051
|
-
...Lt
|
|
2052
|
-
}, {
|
|
2053
|
-
component: Wt,
|
|
2054
|
-
...Ot
|
|
2055
|
-
}, {
|
|
2056
|
-
component: Vt,
|
|
2057
|
-
...Dt
|
|
2058
|
-
}, {
|
|
2059
|
-
component: $t,
|
|
2060
|
-
...Ht
|
|
2061
|
-
}, {
|
|
2062
|
-
component: Ut,
|
|
2063
|
-
..._t
|
|
2064
|
-
}, {
|
|
2065
|
-
component: An,
|
|
2066
|
-
...jt
|
|
2067
|
-
}, {
|
|
2068
|
-
component: Kt,
|
|
2069
|
-
...Mt
|
|
2070
|
-
}, ...nn()], on = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2071
|
-
function getAndSetVariantId() {
|
|
2072
|
-
function setCookie(name, value, days) {
|
|
2073
|
-
let expires = '';
|
|
2074
|
-
if (days) {
|
|
2075
|
-
const date = new Date();
|
|
2076
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
2077
|
-
expires = '; expires=' + date.toUTCString();
|
|
2078
|
-
}
|
|
2079
|
-
document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
|
|
2080
|
-
}
|
|
2081
|
-
function getCookie(name) {
|
|
2082
|
-
const nameEQ = name + '=';
|
|
2083
|
-
const ca = document.cookie.split(';');
|
|
2084
|
-
for (let i = 0; i < ca.length; i++) {
|
|
2085
|
-
let c = ca[i];
|
|
2086
|
-
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2087
|
-
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
2088
|
-
}
|
|
2089
|
-
return null;
|
|
2090
|
-
}
|
|
2091
|
-
const cookieName = \`builder.tests.\${contentId}\`;
|
|
2092
|
-
const variantInCookie = getCookie(cookieName);
|
|
2093
|
-
const availableIDs = variants.map(vr => vr.id).concat(contentId);
|
|
2094
|
-
if (variantInCookie && availableIDs.includes(variantInCookie)) {
|
|
2095
|
-
return variantInCookie;
|
|
2096
|
-
}
|
|
2097
|
-
let n = 0;
|
|
2098
|
-
const random = Math.random();
|
|
2099
|
-
for (let i = 0; i < variants.length; i++) {
|
|
2100
|
-
const variant = variants[i];
|
|
2101
|
-
const testRatio = variant.testRatio;
|
|
2102
|
-
n += testRatio;
|
|
2103
|
-
if (random < n) {
|
|
2104
|
-
setCookie(cookieName, variant.id);
|
|
2105
|
-
return variant.id;
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
setCookie(cookieName, contentId);
|
|
2109
|
-
return contentId;
|
|
2110
|
-
}
|
|
2111
|
-
const winningVariantId = getAndSetVariantId();
|
|
2112
|
-
const styleEl = document.currentScript?.previousElementSibling;
|
|
2113
|
-
if (isHydrationTarget) {
|
|
2114
|
-
styleEl.remove();
|
|
2115
|
-
const thisScriptEl = document.currentScript;
|
|
2116
|
-
thisScriptEl?.remove();
|
|
2117
|
-
} else {
|
|
2118
|
-
const newStyleStr = variants.concat({
|
|
2119
|
-
id: contentId
|
|
2120
|
-
}).filter(variant => variant.id !== winningVariantId).map(value => {
|
|
2121
|
-
return \`.variant-\${value.id} { display: none; }
|
|
2122
|
-
\`;
|
|
2123
|
-
}).join('');
|
|
2124
|
-
styleEl.innerHTML = newStyleStr;
|
|
2125
|
-
}
|
|
2126
|
-
}`, an = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2127
|
-
if (!navigator.cookieEnabled) {
|
|
2128
|
-
return;
|
|
2129
|
-
}
|
|
2130
|
-
function getCookie(name) {
|
|
2131
|
-
const nameEQ = name + '=';
|
|
2132
|
-
const ca = document.cookie.split(';');
|
|
2133
|
-
for (let i = 0; i < ca.length; i++) {
|
|
2134
|
-
let c = ca[i];
|
|
2135
|
-
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
2136
|
-
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
2137
|
-
}
|
|
2138
|
-
return null;
|
|
2139
|
-
}
|
|
2140
|
-
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
2141
|
-
const winningVariant = getCookie(cookieName);
|
|
2142
|
-
const parentDiv = document.currentScript?.parentElement;
|
|
2143
|
-
const isDefaultContent = variantContentId === defaultContentId;
|
|
2144
|
-
const isWinningVariant = winningVariant === variantContentId;
|
|
2145
|
-
if (isWinningVariant && !isDefaultContent) {
|
|
2146
|
-
parentDiv?.removeAttribute('hidden');
|
|
2147
|
-
parentDiv?.removeAttribute('aria-hidden');
|
|
2148
|
-
} else if (!isWinningVariant && isDefaultContent) {
|
|
2149
|
-
parentDiv?.setAttribute('hidden', 'true');
|
|
2150
|
-
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
2151
|
-
}
|
|
2152
|
-
if (isHydrationTarget) {
|
|
2153
|
-
if (!isWinningVariant) {
|
|
2154
|
-
parentDiv?.remove();
|
|
2155
|
-
}
|
|
2156
|
-
const thisScriptEl = document.currentScript;
|
|
2157
|
-
thisScriptEl?.remove();
|
|
2158
|
-
}
|
|
2159
|
-
return;
|
|
2160
|
-
}`, We = "builderIoAbTest", Ae = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2161
|
-
...t,
|
|
2162
|
-
testVariationId: t.id,
|
|
2163
|
-
id: e == null ? void 0 : e.id
|
|
2164
|
-
})), rn = ({
|
|
2165
|
-
canTrack: e,
|
|
2166
|
-
content: t
|
|
2167
|
-
}) => !(!(K(t).length > 0) || !e || O()), cn = (e) => e === "react" || e === "reactNative", Ne = cn($), ln = () => `
|
|
2168
|
-
window.${We} = ${on}
|
|
2169
|
-
window.${Ae} = ${an}
|
|
2170
|
-
`, sn = (e, t) => `
|
|
2171
|
-
window.${We}(
|
|
2172
|
-
"${t}",${JSON.stringify(e)}, ${Ne}
|
|
2173
|
-
)`, dn = ({
|
|
2174
|
-
contentId: e,
|
|
2175
|
-
variationId: t
|
|
2176
|
-
}) => `window.${Ae}(
|
|
2177
|
-
"${t}", "${e}", ${Ne}
|
|
2178
|
-
)`;
|
|
2179
|
-
function ie(e) {
|
|
2180
|
-
return /* @__PURE__ */ l(
|
|
2181
|
-
"script",
|
|
2182
|
-
{
|
|
2183
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2184
|
-
"data-id": e.id,
|
|
2185
|
-
nonce: e.nonce || ""
|
|
2186
|
-
}
|
|
2187
|
-
);
|
|
2188
|
-
}
|
|
2189
|
-
const un = Ke({
|
|
2190
|
-
content: null,
|
|
2191
|
-
context: {},
|
|
2192
|
-
localState: void 0,
|
|
2193
|
-
rootSetState() {
|
|
2194
|
-
},
|
|
2195
|
-
rootState: {},
|
|
2196
|
-
apiKey: null,
|
|
2197
|
-
apiVersion: void 0,
|
|
2198
|
-
componentInfos: {},
|
|
2199
|
-
inheritedStyles: {},
|
|
2200
|
-
BlocksWrapper: "div",
|
|
2201
|
-
BlocksWrapperProps: {},
|
|
2202
|
-
nonce: ""
|
|
2203
|
-
});
|
|
2204
|
-
function ve(e) {
|
|
2205
|
-
return Math.round(e * 1e3) / 1e3;
|
|
2206
|
-
}
|
|
2207
|
-
const mn = (e, t, n = !0) => {
|
|
2208
|
-
if (!(e instanceof HTMLElement))
|
|
2209
|
-
return null;
|
|
2210
|
-
let i = n ? e : e.parentElement;
|
|
2211
|
-
do {
|
|
2212
|
-
if (!i)
|
|
2213
|
-
return null;
|
|
2214
|
-
if (t(i))
|
|
2215
|
-
return i;
|
|
2216
|
-
} while (i = i.parentElement);
|
|
2217
|
-
return null;
|
|
2218
|
-
}, fn = (e) => mn(e, (t) => {
|
|
2219
|
-
const n = t.getAttribute("builder-id") || t.id;
|
|
2220
|
-
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2221
|
-
}), xe = ({
|
|
2222
|
-
event: e,
|
|
2223
|
-
target: t
|
|
2224
|
-
}) => {
|
|
2225
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
|
|
2226
|
-
return {
|
|
2227
|
-
x: a,
|
|
2228
|
-
y: r
|
|
2229
|
-
};
|
|
2230
|
-
}, hn = (e) => {
|
|
2231
|
-
const t = e.target, n = t && fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2232
|
-
return {
|
|
2233
|
-
targetBuilderElement: i || void 0,
|
|
2234
|
-
metadata: {
|
|
2235
|
-
targetOffset: t ? xe({
|
|
2236
|
-
event: e,
|
|
2237
|
-
target: t
|
|
2238
|
-
}) : void 0,
|
|
2239
|
-
builderTargetOffset: n ? xe({
|
|
2240
|
-
event: e,
|
|
2241
|
-
target: n
|
|
2242
|
-
}) : void 0,
|
|
2243
|
-
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2244
|
-
}
|
|
2245
|
-
};
|
|
2246
|
-
};
|
|
2247
|
-
async function gn({
|
|
2248
|
-
key: e,
|
|
2249
|
-
value: t
|
|
2250
|
-
}) {
|
|
2251
|
-
return Oe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2252
|
-
}
|
|
2253
|
-
function Se(e, ...t) {
|
|
2254
|
-
const n = Object(e);
|
|
2255
|
-
for (let i = 1; i < arguments.length; i++) {
|
|
2256
|
-
const o = arguments[i];
|
|
2257
|
-
if (o != null)
|
|
2258
|
-
for (const a in o)
|
|
2259
|
-
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
2260
|
-
}
|
|
2261
|
-
return n;
|
|
2262
|
-
}
|
|
2263
|
-
function bn(e) {
|
|
2264
|
-
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2265
|
-
}
|
|
2266
|
-
function yn(e, t) {
|
|
2267
|
-
const n = pn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
2268
|
-
for (const s of r)
|
|
2269
|
-
for (const c of n)
|
|
2270
|
-
c in s || (s[c] = i[c]);
|
|
2271
|
-
}
|
|
2272
|
-
function pn(e) {
|
|
2273
|
-
const t = [];
|
|
2274
|
-
for (const n of e.steps)
|
|
2275
|
-
for (const i in n.styles)
|
|
2276
|
-
t.indexOf(i) === -1 && t.push(i);
|
|
2277
|
-
return t;
|
|
2278
|
-
}
|
|
2279
|
-
function vn(e) {
|
|
2280
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2281
|
-
if (!t.length) {
|
|
2282
|
-
bn(e.elementId || e.id || "");
|
|
2283
|
-
return;
|
|
2284
|
-
}
|
|
2285
|
-
Array.from(t).forEach((n) => {
|
|
2286
|
-
yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2287
|
-
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Se(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2288
|
-
n.style.transition = "", n.style.transitionDelay = "";
|
|
2289
|
-
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2290
|
-
});
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
const xn = (e) => {
|
|
2294
|
-
var a, r;
|
|
2295
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
2296
|
-
let o = "";
|
|
2297
|
-
if (i && t && n && (o += `
|
|
2298
|
-
@font-face {
|
|
2299
|
-
font-family: "${t}";
|
|
2300
|
-
src: local("${n}"), url('${i}') format('woff2');
|
|
2301
|
-
font-display: fallback;
|
|
2302
|
-
font-weight: 400;
|
|
2303
|
-
}
|
|
2304
|
-
`.trim()), e.files)
|
|
2305
|
-
for (const s in e.files) {
|
|
2306
|
-
if (!(String(Number(s)) === s))
|
|
2307
|
-
continue;
|
|
2308
|
-
const d = e.files[s];
|
|
2309
|
-
d && d !== i && (o += `
|
|
2310
|
-
@font-face {
|
|
2311
|
-
font-family: "${t}";
|
|
2312
|
-
src: url('${d}') format('woff2');
|
|
2313
|
-
font-display: fallback;
|
|
2314
|
-
font-weight: ${s};
|
|
2315
|
-
}
|
|
2316
|
-
`.trim());
|
|
2317
|
-
}
|
|
2318
|
-
return o;
|
|
2319
|
-
}, Sn = ({
|
|
2320
|
-
customFonts: e
|
|
2321
|
-
}) => {
|
|
2322
|
-
var t;
|
|
2323
|
-
return ((t = e == null ? void 0 : e.map((n) => xn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2324
|
-
}, kn = ({
|
|
2325
|
-
cssCode: e,
|
|
2326
|
-
contentId: t
|
|
2327
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Cn = `
|
|
2328
|
-
.builder-button {
|
|
2329
|
-
all: unset;
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2333
|
-
margin: 0;
|
|
2334
|
-
}
|
|
2335
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
2336
|
-
color: inherit;
|
|
2337
|
-
line-height: inherit;
|
|
2338
|
-
letter-spacing: inherit;
|
|
2339
|
-
font-weight: inherit;
|
|
2340
|
-
font-size: inherit;
|
|
2341
|
-
text-align: inherit;
|
|
2342
|
-
font-family: inherit;
|
|
2343
|
-
}
|
|
2344
|
-
`, wn = (e) => e ? "" : Cn, In = (e) => `variant-${e}`;
|
|
2345
|
-
function Tn(e) {
|
|
2346
|
-
var W, H, _, X, Z, se, de;
|
|
2347
|
-
const t = J(null);
|
|
2348
|
-
function n(g) {
|
|
2349
|
-
var x, k;
|
|
2350
|
-
const h = {
|
|
2351
|
-
...e.builderContextSignal.rootState,
|
|
2352
|
-
...g
|
|
2353
|
-
};
|
|
2354
|
-
e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, h) : e.builderContextSignal.rootState = h;
|
|
2355
|
-
}
|
|
2356
|
-
function i(g) {
|
|
2357
|
-
var x, k, I, B, j;
|
|
2358
|
-
const h = {
|
|
2359
|
-
...e.builderContextSignal.content,
|
|
2360
|
-
...g,
|
|
2361
|
-
data: {
|
|
2362
|
-
...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
|
|
2363
|
-
...g == null ? void 0 : g.data
|
|
2364
|
-
},
|
|
2365
|
-
meta: {
|
|
2366
|
-
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
2367
|
-
...g == null ? void 0 : g.meta,
|
|
2368
|
-
breakpoints: ((I = g == null ? void 0 : g.meta) == null ? void 0 : I.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
|
|
2369
|
-
}
|
|
2370
|
-
};
|
|
2371
|
-
gn({
|
|
2372
|
-
value: h,
|
|
2373
|
-
key: h.id
|
|
2374
|
-
}).then(() => {
|
|
2375
|
-
E.refresh();
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
function o() {
|
|
2379
|
-
return e.showContent ? {} : {
|
|
2380
|
-
hidden: !0,
|
|
2381
|
-
"aria-hidden": !0
|
|
2382
|
-
};
|
|
2383
|
-
}
|
|
2384
|
-
const [a, r] = N(
|
|
2385
|
-
() => e.contentWrapper || "div"
|
|
2386
|
-
);
|
|
2387
|
-
function s(g) {
|
|
2388
|
-
return De({
|
|
2389
|
-
model: e.model,
|
|
2390
|
-
trustedHosts: e.trustedHosts,
|
|
2391
|
-
callbacks: {
|
|
2392
|
-
configureSdk: (h) => {
|
|
2393
|
-
var I;
|
|
2394
|
-
const { breakpoints: x, contentId: k } = h;
|
|
2395
|
-
!k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || x && i({
|
|
2396
|
-
meta: {
|
|
2397
|
-
breakpoints: x
|
|
2398
|
-
}
|
|
2399
|
-
});
|
|
2400
|
-
},
|
|
2401
|
-
animation: (h) => {
|
|
2402
|
-
vn(h);
|
|
2403
|
-
},
|
|
2404
|
-
contentUpdate: (h) => {
|
|
2405
|
-
i(h);
|
|
2406
|
-
}
|
|
2407
|
-
}
|
|
2408
|
-
})(g);
|
|
2409
|
-
}
|
|
2410
|
-
function c() {
|
|
2411
|
-
var h, x;
|
|
2412
|
-
const g = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.jsCode;
|
|
2413
|
-
g && D({
|
|
2414
|
-
code: g,
|
|
2415
|
-
context: e.context || {},
|
|
2416
|
-
localState: void 0,
|
|
2417
|
-
rootState: e.builderContextSignal.rootState,
|
|
2418
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
2419
|
-
/**
|
|
2420
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
2421
|
-
*/
|
|
2422
|
-
enableCache: !1
|
|
2423
|
-
});
|
|
2424
|
-
}
|
|
2425
|
-
const [d, u] = N(() => ({})), [m, p] = N(() => ({})), [v, S] = N(() => !1);
|
|
2426
|
-
function f(g) {
|
|
2427
|
-
var h, x;
|
|
2428
|
-
if (e.builderContextSignal.content) {
|
|
2429
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
|
|
2430
|
-
ue({
|
|
2431
|
-
type: "click",
|
|
2432
|
-
canTrack: q(e.canTrack),
|
|
2433
|
-
contentId: I,
|
|
2434
|
-
apiKey: e.apiKey,
|
|
2435
|
-
variationId: k !== I ? k : void 0,
|
|
2436
|
-
...hn(g),
|
|
2437
|
-
unique: !v
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
v || S(!0);
|
|
2441
|
-
}
|
|
2442
|
-
function C() {
|
|
2443
|
-
var h, x, k;
|
|
2444
|
-
const g = (k = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.httpRequests) != null ? k : {};
|
|
2445
|
-
Object.entries(g).forEach(([I, B]) => {
|
|
2446
|
-
if (!B || m[I] || d[I] && !V())
|
|
2447
|
-
return;
|
|
2448
|
-
m[I] = !0;
|
|
2449
|
-
const j = B.replace(
|
|
2450
|
-
/{{([^}]+)}}/g,
|
|
2451
|
-
(F, Ve) => String(
|
|
2452
|
-
D({
|
|
2453
|
-
code: Ve,
|
|
2454
|
-
context: e.context || {},
|
|
2455
|
-
localState: void 0,
|
|
2456
|
-
rootState: e.builderContextSignal.rootState,
|
|
2457
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
2458
|
-
enableCache: !0
|
|
2459
|
-
})
|
|
2460
|
-
)
|
|
2461
|
-
);
|
|
2462
|
-
He(j).then((F) => F.json()).then((F) => {
|
|
2463
|
-
n({
|
|
2464
|
-
[I]: F
|
|
2465
|
-
}), d[I] = !0;
|
|
2466
|
-
}).catch((F) => {
|
|
2467
|
-
console.error("error fetching dynamic data", B, F);
|
|
2468
|
-
}).finally(() => {
|
|
2469
|
-
m[I] = !1;
|
|
2470
|
-
});
|
|
2471
|
-
});
|
|
2472
|
-
}
|
|
2473
|
-
function b() {
|
|
2474
|
-
V() && window.dispatchEvent(
|
|
2475
|
-
new CustomEvent(
|
|
2476
|
-
"builder:component:stateChange",
|
|
2477
|
-
{
|
|
2478
|
-
detail: {
|
|
2479
|
-
state: ae(e.builderContextSignal.rootState),
|
|
2480
|
-
ref: {
|
|
2481
|
-
name: e.model
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
)
|
|
2486
|
-
);
|
|
2487
|
-
}
|
|
2488
|
-
function y(g) {
|
|
2489
|
-
window.addEventListener("message", s), _e(), Ue({
|
|
2490
|
-
...e.locale ? {
|
|
2491
|
-
locale: e.locale
|
|
2492
|
-
} : {},
|
|
2493
|
-
...e.enrich ? {
|
|
2494
|
-
enrich: e.enrich
|
|
2495
|
-
} : {},
|
|
2496
|
-
...e.trustedHosts ? {
|
|
2497
|
-
trustedHosts: e.trustedHosts
|
|
2498
|
-
} : {}
|
|
2499
|
-
}), Object.values(
|
|
2500
|
-
e.builderContextSignal.componentInfos
|
|
2501
|
-
).forEach((h) => {
|
|
2502
|
-
var k;
|
|
2503
|
-
const x = je(h);
|
|
2504
|
-
(k = window.parent) == null || k.postMessage(x, "*");
|
|
2505
|
-
}), window.addEventListener(
|
|
2506
|
-
"builder:component:stateChangeListenerActivated",
|
|
2507
|
-
b
|
|
2508
|
-
);
|
|
2509
|
-
}
|
|
2510
|
-
function w(g) {
|
|
2511
|
-
const h = new URL(location.href).searchParams, x = h.get("builder.preview"), k = h.get(
|
|
2512
|
-
`builder.overrides.${x}`
|
|
2513
|
-
), I = h.get("apiKey") || h.get("builder.space");
|
|
2514
|
-
x === e.model && I === e.apiKey && (!e.content || k === e.content.id) && we({
|
|
2515
|
-
model: e.model,
|
|
2516
|
-
apiKey: e.apiKey,
|
|
2517
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
2518
|
-
}).then((B) => {
|
|
2519
|
-
B && i(B);
|
|
2520
|
-
});
|
|
2521
|
-
}
|
|
2522
|
-
const E = ze();
|
|
2523
|
-
return R(() => {
|
|
2524
|
-
var g;
|
|
2525
|
-
return (g = t.current) == null || g.addEventListener(
|
|
2526
|
-
"initeditingbldr",
|
|
2527
|
-
y
|
|
2528
|
-
), () => {
|
|
2529
|
-
var h;
|
|
2530
|
-
return (h = t.current) == null ? void 0 : h.removeEventListener(
|
|
2531
|
-
"initeditingbldr",
|
|
2532
|
-
y
|
|
2533
|
-
);
|
|
2534
|
-
};
|
|
2535
|
-
}, []), R(() => {
|
|
2536
|
-
var g;
|
|
2537
|
-
return (g = t.current) == null || g.addEventListener(
|
|
2538
|
-
"initpreviewingbldr",
|
|
2539
|
-
w
|
|
2540
|
-
), () => {
|
|
2541
|
-
var h;
|
|
2542
|
-
return (h = t.current) == null ? void 0 : h.removeEventListener(
|
|
2543
|
-
"initpreviewingbldr",
|
|
2544
|
-
w
|
|
2545
|
-
);
|
|
2546
|
-
};
|
|
2547
|
-
}, []), R(() => {
|
|
2548
|
-
var g, h;
|
|
2549
|
-
if (O()) {
|
|
2550
|
-
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2551
|
-
const k = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, I = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
|
|
2552
|
-
ue({
|
|
2553
|
-
type: "impression",
|
|
2554
|
-
canTrack: !0,
|
|
2555
|
-
contentId: I,
|
|
2556
|
-
apiKey: B,
|
|
2557
|
-
variationId: k !== I ? k : void 0
|
|
2558
|
-
});
|
|
2559
|
-
}
|
|
2560
|
-
Ce() && V();
|
|
2561
|
-
}
|
|
2562
|
-
}, []), R(() => {
|
|
2563
|
-
e.apiKey || Y.error(
|
|
2564
|
-
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2565
|
-
), c(), C(), b();
|
|
2566
|
-
}, []), R(() => {
|
|
2567
|
-
}, [e.content]), R(() => {
|
|
2568
|
-
c();
|
|
2569
|
-
}, [(H = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : H.jsCode]), R(() => {
|
|
2570
|
-
C();
|
|
2571
|
-
}, [(X = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2572
|
-
b();
|
|
2573
|
-
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2574
|
-
e.data && n(e.data);
|
|
2575
|
-
}, [e.data]), R(() => {
|
|
2576
|
-
e.locale && n({
|
|
2577
|
-
locale: e.locale
|
|
2578
|
-
});
|
|
2579
|
-
}, [e.locale]), R(() => () => {
|
|
2580
|
-
O() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
2581
|
-
"builder:component:stateChangeListenerActivated",
|
|
2582
|
-
b
|
|
2583
|
-
));
|
|
2584
|
-
}, []), /* @__PURE__ */ l(un.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2585
|
-
a,
|
|
2586
|
-
{
|
|
2587
|
-
ref: t,
|
|
2588
|
-
onClick: (g) => f(g),
|
|
2589
|
-
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2590
|
-
"builder-model": e.model,
|
|
2591
|
-
...o(),
|
|
2592
|
-
...e.contentWrapperProps,
|
|
2593
|
-
className: In(
|
|
2594
|
-
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2595
|
-
),
|
|
2596
|
-
children: e.children
|
|
2597
|
-
}
|
|
2598
|
-
) : null });
|
|
2599
|
-
}
|
|
2600
|
-
function Rn(e) {
|
|
2601
|
-
const t = `
|
|
2602
|
-
${kn({
|
|
2603
|
-
cssCode: e.cssCode,
|
|
2604
|
-
contentId: e.contentId
|
|
2605
|
-
})}
|
|
2606
|
-
${Sn({
|
|
2607
|
-
customFonts: e.customFonts
|
|
2608
|
-
})}
|
|
2609
|
-
${wn(e.isNestedRender)}
|
|
2610
|
-
`.trim();
|
|
2611
|
-
return /* @__PURE__ */ l(
|
|
2612
|
-
Q,
|
|
2613
|
-
{
|
|
2614
|
-
id: "builderio-content",
|
|
2615
|
-
styles: t,
|
|
2616
|
-
nonce: e.nonce
|
|
2617
|
-
}
|
|
2618
|
-
);
|
|
2619
|
-
}
|
|
2620
|
-
const En = ({
|
|
2621
|
-
content: e,
|
|
2622
|
-
data: t,
|
|
2623
|
-
locale: n
|
|
2624
|
-
}) => {
|
|
2625
|
-
var a, r, s;
|
|
2626
|
-
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
2627
|
-
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((c) => {
|
|
2628
|
-
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
2629
|
-
}), {
|
|
2630
|
-
...i,
|
|
2631
|
-
...o,
|
|
2632
|
-
...t,
|
|
2633
|
-
...n ? {
|
|
2634
|
-
locale: n
|
|
2635
|
-
} : {}
|
|
2636
|
-
};
|
|
2637
|
-
}, Pn = ({
|
|
2638
|
-
content: e,
|
|
2639
|
-
data: t
|
|
2640
|
-
}) => e ? {
|
|
2641
|
-
...e,
|
|
2642
|
-
data: {
|
|
2643
|
-
...e == null ? void 0 : e.data,
|
|
2644
|
-
...t
|
|
2645
|
-
},
|
|
2646
|
-
meta: e == null ? void 0 : e.meta
|
|
2647
|
-
} : void 0;
|
|
2648
|
-
function ke(e) {
|
|
2649
|
-
var o, a, r, s, c, d, u, m, p, v, S;
|
|
2650
|
-
const t = dn({
|
|
2651
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2652
|
-
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2653
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2654
|
-
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2655
|
-
}), n = [
|
|
2656
|
-
...pe(),
|
|
2657
|
-
...((r = e.customComponents) == null ? void 0 : r.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
2658
|
-
].reduce(
|
|
2659
|
-
(f, { component: C, ...b }) => ({
|
|
2660
|
-
...f,
|
|
2661
|
-
[b.name]: {
|
|
2662
|
-
component: C,
|
|
2663
|
-
...me(b)
|
|
2664
|
-
}
|
|
2665
|
-
}),
|
|
2666
|
-
{}
|
|
2667
|
-
), i = {
|
|
2668
|
-
content: Pn({
|
|
2669
|
-
content: e.content,
|
|
2670
|
-
data: e.data
|
|
2671
|
-
}),
|
|
2672
|
-
localState: void 0,
|
|
2673
|
-
rootState: En({
|
|
2674
|
-
content: e.content,
|
|
2675
|
-
data: e.data,
|
|
2676
|
-
locale: e.locale
|
|
2677
|
-
}),
|
|
2678
|
-
rootSetState: void 0,
|
|
2679
|
-
context: e.context || {},
|
|
2680
|
-
canTrack: e.canTrack,
|
|
2681
|
-
apiKey: e.apiKey,
|
|
2682
|
-
apiVersion: e.apiVersion,
|
|
2683
|
-
componentInfos: [
|
|
2684
|
-
...pe(),
|
|
2685
|
-
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
2686
|
-
].reduce(
|
|
2687
|
-
(f, { component: C, ...b }) => ({
|
|
2688
|
-
...f,
|
|
2689
|
-
[b.name]: me(b)
|
|
2690
|
-
}),
|
|
2691
|
-
{}
|
|
2692
|
-
),
|
|
2693
|
-
inheritedStyles: {},
|
|
2694
|
-
BlocksWrapper: e.blocksWrapper || "div",
|
|
2695
|
-
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2696
|
-
nonce: e.nonce || ""
|
|
2697
|
-
};
|
|
2698
|
-
return /* @__PURE__ */ P(
|
|
2699
|
-
Tn,
|
|
2700
|
-
{
|
|
2701
|
-
nonce: e.nonce,
|
|
2702
|
-
content: e.content,
|
|
2703
|
-
data: e.data,
|
|
2704
|
-
model: e.model,
|
|
2705
|
-
context: e.context,
|
|
2706
|
-
apiKey: e.apiKey,
|
|
2707
|
-
canTrack: e.canTrack,
|
|
2708
|
-
locale: e.locale,
|
|
2709
|
-
enrich: e.enrich,
|
|
2710
|
-
showContent: e.showContent,
|
|
2711
|
-
builderContextSignal: i,
|
|
2712
|
-
contentWrapper: e.contentWrapper,
|
|
2713
|
-
contentWrapperProps: e.contentWrapperProps,
|
|
2714
|
-
trustedHosts: e.trustedHosts,
|
|
2715
|
-
children: [
|
|
2716
|
-
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2717
|
-
ie,
|
|
2718
|
-
{
|
|
2719
|
-
id: "builderio-variant-visibility",
|
|
2720
|
-
scriptStr: t,
|
|
2721
|
-
nonce: e.nonce || ""
|
|
2722
|
-
}
|
|
2723
|
-
) : null,
|
|
2724
|
-
/* @__PURE__ */ l(
|
|
2725
|
-
Rn,
|
|
2726
|
-
{
|
|
2727
|
-
nonce: e.nonce || "",
|
|
2728
|
-
isNestedRender: e.isNestedRender,
|
|
2729
|
-
contentId: (c = i.content) == null ? void 0 : c.id,
|
|
2730
|
-
cssCode: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
|
|
2731
|
-
customFonts: (p = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : p.customFonts
|
|
2732
|
-
}
|
|
2733
|
-
),
|
|
2734
|
-
/* @__PURE__ */ l(
|
|
2735
|
-
le,
|
|
2736
|
-
{
|
|
2737
|
-
blocks: (S = (v = i.content) == null ? void 0 : v.data) == null ? void 0 : S.blocks,
|
|
2738
|
-
context: i,
|
|
2739
|
-
registeredComponents: n,
|
|
2740
|
-
linkComponent: e.linkComponent
|
|
2741
|
-
}
|
|
2742
|
-
)
|
|
2743
|
-
]
|
|
2744
|
-
}
|
|
2745
|
-
);
|
|
2746
|
-
}
|
|
2747
|
-
function Bn(e) {
|
|
2748
|
-
var a;
|
|
2749
|
-
const t = rn({
|
|
2750
|
-
canTrack: q(e.canTrack),
|
|
2751
|
-
content: e.content
|
|
2752
|
-
}), n = function() {
|
|
2753
|
-
var s;
|
|
2754
|
-
return sn(
|
|
2755
|
-
K(e.content).map((c) => ({
|
|
2756
|
-
id: c.testVariationId,
|
|
2757
|
-
testRatio: c.testRatio
|
|
2758
|
-
})),
|
|
2759
|
-
((s = e.content) == null ? void 0 : s.id) || ""
|
|
2760
|
-
);
|
|
2761
|
-
}, i = function() {
|
|
2762
|
-
return K(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2763
|
-
}, o = function() {
|
|
2764
|
-
var s;
|
|
2765
|
-
return t ? {
|
|
2766
|
-
...e.content,
|
|
2767
|
-
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2768
|
-
} : Me({
|
|
2769
|
-
item: e.content,
|
|
2770
|
-
canTrack: q(e.canTrack)
|
|
2771
|
-
});
|
|
2772
|
-
};
|
|
2773
|
-
return /* @__PURE__ */ P(T, { children: [
|
|
2774
|
-
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
2775
|
-
ie,
|
|
2776
|
-
{
|
|
2777
|
-
id: "builderio-init-variants-fns",
|
|
2778
|
-
scriptStr: ln(),
|
|
2779
|
-
nonce: e.nonce || ""
|
|
2780
|
-
}
|
|
2781
|
-
) : null,
|
|
2782
|
-
t ? /* @__PURE__ */ P(T, { children: [
|
|
2783
|
-
/* @__PURE__ */ l(
|
|
2784
|
-
Q,
|
|
2785
|
-
{
|
|
2786
|
-
id: "builderio-variants",
|
|
2787
|
-
styles: i(),
|
|
2788
|
-
nonce: e.nonce || ""
|
|
2789
|
-
}
|
|
2790
|
-
),
|
|
2791
|
-
/* @__PURE__ */ l(
|
|
2792
|
-
ie,
|
|
2793
|
-
{
|
|
2794
|
-
id: "builderio-variants-visibility",
|
|
2795
|
-
scriptStr: n(),
|
|
2796
|
-
nonce: e.nonce || ""
|
|
2797
|
-
}
|
|
2798
|
-
),
|
|
2799
|
-
(a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
2800
|
-
ke,
|
|
2801
|
-
{
|
|
2802
|
-
isNestedRender: e.isNestedRender,
|
|
2803
|
-
nonce: e.nonce,
|
|
2804
|
-
content: r,
|
|
2805
|
-
showContent: !1,
|
|
2806
|
-
model: e.model,
|
|
2807
|
-
data: e.data,
|
|
2808
|
-
context: e.context,
|
|
2809
|
-
apiKey: e.apiKey,
|
|
2810
|
-
apiVersion: e.apiVersion,
|
|
2811
|
-
customComponents: e.customComponents,
|
|
2812
|
-
linkComponent: e.linkComponent,
|
|
2813
|
-
canTrack: e.canTrack,
|
|
2814
|
-
locale: e.locale,
|
|
2815
|
-
enrich: e.enrich,
|
|
2816
|
-
isSsrAbTest: t,
|
|
2817
|
-
blocksWrapper: e.blocksWrapper,
|
|
2818
|
-
blocksWrapperProps: e.blocksWrapperProps,
|
|
2819
|
-
contentWrapper: e.contentWrapper,
|
|
2820
|
-
contentWrapperProps: e.contentWrapperProps,
|
|
2821
|
-
trustedHosts: e.trustedHosts
|
|
2822
|
-
},
|
|
2823
|
-
r.testVariationId
|
|
2824
|
-
))
|
|
2825
|
-
] }) : null,
|
|
2826
|
-
/* @__PURE__ */ l(
|
|
2827
|
-
ke,
|
|
2828
|
-
{
|
|
2829
|
-
nonce: e.nonce,
|
|
2830
|
-
isNestedRender: e.isNestedRender,
|
|
2831
|
-
content: o(),
|
|
2832
|
-
showContent: !0,
|
|
2833
|
-
model: e.model,
|
|
2834
|
-
data: e.data,
|
|
2835
|
-
context: e.context,
|
|
2836
|
-
apiKey: e.apiKey,
|
|
2837
|
-
apiVersion: e.apiVersion,
|
|
2838
|
-
customComponents: e.customComponents,
|
|
2839
|
-
linkComponent: e.linkComponent,
|
|
2840
|
-
canTrack: e.canTrack,
|
|
2841
|
-
locale: e.locale,
|
|
2842
|
-
enrich: e.enrich,
|
|
2843
|
-
isSsrAbTest: t,
|
|
2844
|
-
blocksWrapper: e.blocksWrapper,
|
|
2845
|
-
blocksWrapperProps: e.blocksWrapperProps,
|
|
2846
|
-
contentWrapper: e.contentWrapper,
|
|
2847
|
-
contentWrapperProps: e.contentWrapperProps,
|
|
2848
|
-
trustedHosts: e.trustedHosts
|
|
2849
|
-
}
|
|
2850
|
-
)
|
|
2851
|
-
] });
|
|
2852
|
-
}
|
|
2853
|
-
const Wn = async ({
|
|
2854
|
-
builderContextValue: e,
|
|
2855
|
-
symbol: t
|
|
2856
|
-
}) => {
|
|
2857
|
-
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2858
|
-
(e != null && e.apiKey))
|
|
2859
|
-
return we({
|
|
2860
|
-
model: t.model,
|
|
2861
|
-
apiKey: e.apiKey,
|
|
2862
|
-
apiVersion: e.apiVersion,
|
|
2863
|
-
...(t == null ? void 0 : t.entry) && {
|
|
2864
|
-
query: {
|
|
2865
|
-
id: t.entry
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
}).catch((n) => {
|
|
2869
|
-
Y.error("Could not fetch symbol content: ", n);
|
|
2870
|
-
});
|
|
2871
|
-
};
|
|
2872
|
-
async function An(e) {
|
|
2873
|
-
var a, r, s, c, d;
|
|
2874
|
-
const t = function() {
|
|
2875
|
-
return "div";
|
|
2876
|
-
}, n = function() {
|
|
2877
|
-
return "div";
|
|
2878
|
-
}, i = function() {
|
|
2879
|
-
var m, p;
|
|
2880
|
-
return [
|
|
2881
|
-
e.attributes[U()],
|
|
2882
|
-
"builder-symbol",
|
|
2883
|
-
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
2884
|
-
(p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2885
|
-
].filter(Boolean).join(" ");
|
|
2886
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Wn({
|
|
2887
|
-
symbol: e.symbol,
|
|
2888
|
-
builderContextValue: e.builderContext
|
|
2889
|
-
});
|
|
2890
|
-
return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
2891
|
-
Bn,
|
|
2892
|
-
{
|
|
2893
|
-
nonce: e.builderContext.nonce,
|
|
2894
|
-
isNestedRender: !0,
|
|
2895
|
-
apiVersion: e.builderContext.apiVersion,
|
|
2896
|
-
apiKey: e.builderContext.apiKey,
|
|
2897
|
-
context: {
|
|
2898
|
-
...e.builderContext.context,
|
|
2899
|
-
symbolId: (r = e.builderBlock) == null ? void 0 : r.id
|
|
2900
|
-
},
|
|
2901
|
-
customComponents: Object.values(e.builderComponents),
|
|
2902
|
-
data: {
|
|
2903
|
-
...(s = e.symbol) == null ? void 0 : s.data,
|
|
2904
|
-
...e.builderContext.localState,
|
|
2905
|
-
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
2906
|
-
},
|
|
2907
|
-
canTrack: e.builderContext.canTrack,
|
|
2908
|
-
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
2909
|
-
content: o,
|
|
2910
|
-
linkComponent: e.builderLinkComponent,
|
|
2911
|
-
blocksWrapper: t(),
|
|
2912
|
-
contentWrapper: n()
|
|
2913
|
-
}
|
|
2914
|
-
) });
|
|
2915
|
-
}
|
|
1
|
+
import { default as o } from "./blocks/button/button.mjs";
|
|
2
|
+
import { default as r } from "./blocks/columns/columns.mjs";
|
|
3
|
+
import { default as l } from "./blocks/fragment/fragment.mjs";
|
|
4
|
+
import { default as u } from "./blocks/image/image.mjs";
|
|
5
|
+
import { default as s } from "./blocks/section/section.mjs";
|
|
6
|
+
import { default as p } from "./blocks/symbol/symbol.mjs";
|
|
7
|
+
import { default as i } from "./blocks/text/text.mjs";
|
|
8
|
+
import { default as C } from "./blocks/video/video.mjs";
|
|
9
|
+
import { default as g } from "./components/blocks/blocks.mjs";
|
|
10
|
+
import { default as b } from "./components/content-variants/content-variants.mjs";
|
|
11
|
+
import { default as y } from "./context/builder.context.mjs";
|
|
2916
12
|
export {
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
13
|
+
g as Blocks,
|
|
14
|
+
y as BuilderContext,
|
|
15
|
+
o as Button,
|
|
16
|
+
r as Columns,
|
|
17
|
+
b as Content,
|
|
18
|
+
l as Fragment,
|
|
19
|
+
u as Image,
|
|
20
|
+
s as Section,
|
|
21
|
+
p as Symbol,
|
|
22
|
+
i as Text,
|
|
23
|
+
C as Video
|
|
2928
24
|
};
|