@builder.io/sdk-react 2.0.23 → 2.0.24-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +6 -6
- package/lib/browser/blocks-exports.mjs +43 -38
- package/lib/edge/{blocks-263c1bb6.js → blocks-228052f4.js} +15 -10
- package/lib/edge/{blocks-98b19deb.cjs → blocks-2a92a0c1.cjs} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +1 -1
- package/lib/edge/{columns-d6892637.cjs → columns-354a8faf.cjs} +1 -1
- package/lib/edge/{columns-a50c2c9f.js → columns-59392fea.js} +1 -1
- package/lib/edge/{content-variants-978a8be6.js → content-variants-983cfed6.js} +4 -4
- package/lib/edge/{content-variants-83a1241a.cjs → content-variants-f22b14d7.cjs} +1 -1
- package/lib/edge/{form-bb1f8672.cjs → form-2c8b99e2.cjs} +1 -1
- package/lib/edge/{form-32085b13.js → form-52e60b8b.js} +1 -1
- package/lib/edge/{slot-375680d2.cjs → slot-eb173f0a.cjs} +1 -1
- package/lib/edge/{slot-30e6c2aa.js → slot-f274570e.js} +1 -1
- package/lib/edge/{tabs-ffc5ae5d.cjs → tabs-4e5783b2.cjs} +1 -1
- package/lib/edge/{tabs-577ba54e.js → tabs-791385cc.js} +1 -1
- package/lib/node/blocks-exports.cjs +2 -2
- package/lib/node/blocks-exports.mjs +46 -41
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -1
- package/package.json +3 -2
- package/types/blocks/textarea/component-info.d.ts +2 -0
- package/types/blocks/textarea/index.d.ts +1 -0
- package/types/blocks/textarea/textarea.d.ts +13 -0
- package/types/cjs/blocks/BaseText.d.cts +6 -0
- package/types/cjs/blocks/button/button.d.cts +4 -0
- package/types/cjs/blocks/button/button.types.d.cts +7 -0
- package/types/cjs/blocks/button/component-info.d.cts +2 -0
- package/types/cjs/blocks/button/index.d.cts +1 -0
- package/types/cjs/blocks/columns/columns.d.cts +4 -0
- package/types/cjs/blocks/columns/columns.types.d.cts +15 -0
- package/types/cjs/blocks/columns/component-info.d.cts +2 -0
- package/types/cjs/blocks/columns/helpers.d.cts +1 -0
- package/types/cjs/blocks/columns/index.d.cts +1 -0
- package/types/cjs/blocks/custom-code/component-info.d.cts +2 -0
- package/types/cjs/blocks/custom-code/custom-code.d.cts +7 -0
- package/types/cjs/blocks/custom-code/index.d.cts +1 -0
- package/types/cjs/blocks/embed/component-info.d.cts +2 -0
- package/types/cjs/blocks/embed/embed.d.cts +6 -0
- package/types/cjs/blocks/embed/helpers.d.cts +1 -0
- package/types/cjs/blocks/embed/index.d.cts +1 -0
- package/types/cjs/blocks/form/form/component-info.d.cts +2 -0
- package/types/cjs/blocks/form/form/form.d.cts +33 -0
- package/types/cjs/blocks/form/form/index.d.cts +1 -0
- package/types/cjs/blocks/form/input/component-info.d.cts +2 -0
- package/types/cjs/blocks/form/input/index.d.cts +1 -0
- package/types/cjs/blocks/form/input/input.d.cts +15 -0
- package/types/cjs/blocks/form/select/component-info.d.cts +2 -0
- package/types/cjs/blocks/form/select/index.d.cts +1 -0
- package/types/cjs/blocks/form/select/select.d.cts +16 -0
- package/types/cjs/blocks/form/submit-button/component-info.d.cts +2 -0
- package/types/cjs/blocks/form/submit-button/index.d.cts +1 -0
- package/types/cjs/blocks/form/submit-button/submit-button.d.cts +10 -0
- package/types/cjs/blocks/fragment/component-info.d.cts +2 -0
- package/types/cjs/blocks/fragment/fragment.d.cts +4 -0
- package/types/cjs/blocks/fragment/fragment.types.d.cts +5 -0
- package/types/cjs/blocks/fragment/index.d.cts +1 -0
- package/types/cjs/blocks/helpers.d.cts +13 -0
- package/types/cjs/blocks/image/component-info.d.cts +2 -0
- package/types/cjs/blocks/image/image.d.cts +4 -0
- package/types/cjs/blocks/image/image.helpers.d.cts +1 -0
- package/types/cjs/blocks/image/image.types.d.cts +19 -0
- package/types/cjs/blocks/image/index.d.cts +1 -0
- package/types/cjs/blocks/img/component-info.d.cts +2 -0
- package/types/cjs/blocks/img/img.d.cts +14 -0
- package/types/cjs/blocks/img/index.d.cts +1 -0
- package/types/cjs/blocks/raw-text/component-info.d.cts +2 -0
- package/types/cjs/blocks/raw-text/index.d.cts +1 -0
- package/types/cjs/blocks/raw-text/raw-text.d.cts +7 -0
- package/types/cjs/blocks/section/component-info.d.cts +2 -0
- package/types/cjs/blocks/section/index.d.cts +1 -0
- package/types/cjs/blocks/section/section.d.cts +4 -0
- package/types/cjs/blocks/section/section.types.d.cts +6 -0
- package/types/cjs/blocks/slot/component-info.d.cts +2 -0
- package/types/cjs/blocks/slot/index.d.cts +1 -0
- package/types/cjs/blocks/slot/slot.d.cts +8 -0
- package/types/cjs/blocks/symbol/component-info.d.cts +2 -0
- package/types/cjs/blocks/symbol/index.d.cts +1 -0
- package/types/cjs/blocks/symbol/symbol.d.cts +4 -0
- package/types/cjs/blocks/symbol/symbol.helpers.d.cts +14 -0
- package/types/cjs/blocks/symbol/symbol.types.d.cts +18 -0
- package/types/cjs/blocks/tabs/component-info.d.cts +2 -0
- package/types/cjs/blocks/tabs/index.d.cts +1 -0
- package/types/cjs/blocks/tabs/tabs.d.cts +4 -0
- package/types/cjs/blocks/tabs/tabs.types.d.cts +13 -0
- package/types/cjs/blocks/text/component-info.d.cts +2 -0
- package/types/cjs/blocks/text/index.d.cts +1 -0
- package/types/cjs/blocks/text/text.d.cts +4 -0
- package/types/cjs/blocks/text/text.types.d.cts +4 -0
- package/types/cjs/blocks/textarea/component-info.d.cts +2 -0
- package/types/cjs/blocks/textarea/index.d.cts +1 -0
- package/types/cjs/blocks/textarea/textarea.d.cts +13 -0
- package/types/cjs/blocks/video/component-info.d.cts +2 -0
- package/types/cjs/blocks/video/index.d.cts +1 -0
- package/types/cjs/blocks/video/video.d.cts +4 -0
- package/types/cjs/blocks/video/video.types.d.cts +21 -0
- package/types/cjs/components/block/animator.d.cts +5 -0
- package/types/cjs/components/block/block.d.cts +11 -0
- package/types/cjs/components/block/block.helpers.d.cts +18 -0
- package/types/cjs/components/block/components/block-styles.d.cts +9 -0
- package/types/cjs/components/block/components/block-wrapper.d.cts +15 -0
- package/types/cjs/components/block/components/component-ref/component-ref.d.cts +4 -0
- package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.cts +31 -0
- package/types/cjs/components/block/components/interactive-element.d.cts +14 -0
- package/types/cjs/components/block/components/repeated-block.d.cts +8 -0
- package/types/cjs/components/block/types.d.cts +6 -0
- package/types/cjs/components/blocks/blocks-wrapper.d.cts +19 -0
- package/types/cjs/components/blocks/blocks.d.cts +4 -0
- package/types/cjs/components/blocks/blocks.types.d.cts +7 -0
- package/types/cjs/components/blocks/index.d.cts +1 -0
- package/types/cjs/components/content/components/enable-editor.d.cts +10 -0
- package/types/cjs/components/content/components/styles.d.cts +10 -0
- package/types/cjs/components/content/components/styles.helpers.d.cts +17 -0
- package/types/cjs/components/content/content.d.cts +4 -0
- package/types/cjs/components/content/content.helpers.d.cts +7 -0
- package/types/cjs/components/content/content.types.d.cts +13 -0
- package/types/cjs/components/content/contentProps.types.d.cts +17 -0
- package/types/cjs/components/content/index.d.cts +1 -0
- package/types/cjs/components/content/wrap-component-ref.d.cts +6 -0
- package/types/cjs/components/content-variants/content-variants.d.cts +10 -0
- package/types/cjs/components/content-variants/content-variants.types.d.cts +71 -0
- package/types/cjs/components/content-variants/helpers.d.cts +41 -0
- package/types/cjs/components/content-variants/index.d.cts +1 -0
- package/types/cjs/components/content-variants/inlined-fns.d.cts +14 -0
- package/types/cjs/components/dynamic-div.d.cts +15 -0
- package/types/cjs/components/dynamic-renderer/dynamic-renderer.d.cts +9 -0
- package/types/cjs/components/dynamic-renderer/dynamic-renderer.helpers.d.cts +1 -0
- package/types/cjs/components/error-boundary.d.cts +11 -0
- package/types/cjs/components/inlined-script.d.cts +7 -0
- package/types/cjs/components/inlined-styles.d.cts +7 -0
- package/types/cjs/constants/builder-registered-components.d.cts +6 -0
- package/types/cjs/constants/device-sizes.d.cts +13 -0
- package/types/cjs/constants/extra-components.d.cts +7 -0
- package/types/cjs/constants/sdk-version.d.cts +1 -0
- package/types/cjs/constants/target.d.cts +2 -0
- package/types/cjs/context/builder.context.d.cts +3 -0
- package/types/cjs/context/components.context.d.cts +3 -0
- package/types/cjs/context/index.d.cts +1 -0
- package/types/cjs/context/types.d.cts +36 -0
- package/types/cjs/functions/apply-patch-with-mutation.d.cts +10 -0
- package/types/cjs/functions/camel-to-kebab-case.d.cts +1 -0
- package/types/cjs/functions/deopt.d.cts +4 -0
- package/types/cjs/functions/evaluate/browser-runtime/browser.d.cts +8 -0
- package/types/cjs/functions/evaluate/browser-runtime/index.d.cts +1 -0
- package/types/cjs/functions/evaluate/choose-eval.d.cts +6 -0
- package/types/cjs/functions/evaluate/edge-runtime/acorn-interpreter.d.cts +2 -0
- package/types/cjs/functions/evaluate/edge-runtime/edge-runtime.d.cts +2 -0
- package/types/cjs/functions/evaluate/edge-runtime/index.d.cts +1 -0
- package/types/cjs/functions/evaluate/evaluate.d.cts +4 -0
- package/types/cjs/functions/evaluate/helpers.d.cts +25 -0
- package/types/cjs/functions/evaluate/index.d.cts +1 -0
- package/types/cjs/functions/evaluate/node-runtime/index.d.cts +1 -0
- package/types/cjs/functions/evaluate/node-runtime/init.d.cts +13 -0
- package/types/cjs/functions/evaluate/node-runtime/node-runtime.d.cts +11 -0
- package/types/cjs/functions/evaluate/node-runtime/safeDynamicRequire.d.cts +6 -0
- package/types/cjs/functions/evaluate/placeholder-runtime.d.cts +2 -0
- package/types/cjs/functions/evaluate/should-force-browser-runtime-in-node.d.cts +1 -0
- package/types/cjs/functions/event-handler-name.d.cts +1 -0
- package/types/cjs/functions/extract-text-styles.d.cts +4 -0
- package/types/cjs/functions/fast-clone.d.cts +4 -0
- package/types/cjs/functions/fetch-builder-props.d.cts +53 -0
- package/types/cjs/functions/get-block-actions-handler.d.cts +8 -0
- package/types/cjs/functions/get-block-actions.d.cts +10 -0
- package/types/cjs/functions/get-block-component-options.d.cts +2 -0
- package/types/cjs/functions/get-block-properties.d.cts +10 -0
- package/types/cjs/functions/get-builder-search-params/index.d.cts +9 -0
- package/types/cjs/functions/get-class-prop-name.d.cts +1 -0
- package/types/cjs/functions/get-content/generate-content-url.d.cts +2 -0
- package/types/cjs/functions/get-content/index.d.cts +18 -0
- package/types/cjs/functions/get-content/types.d.cts +139 -0
- package/types/cjs/functions/get-env.d.cts +2 -0
- package/types/cjs/functions/get-fetch.d.cts +1 -0
- package/types/cjs/functions/get-global-this.d.cts +4 -0
- package/types/cjs/functions/get-processed-block.d.cts +10 -0
- package/types/cjs/functions/get-style.d.cts +12 -0
- package/types/cjs/functions/get.d.cts +1 -0
- package/types/cjs/functions/is-browser.d.cts +1 -0
- package/types/cjs/functions/is-edge-runtime.d.cts +4 -0
- package/types/cjs/functions/is-editing.d.cts +2 -0
- package/types/cjs/functions/is-from-trusted-host.d.cts +3 -0
- package/types/cjs/functions/is-iframe.d.cts +1 -0
- package/types/cjs/functions/is-node-runtime.d.cts +4 -0
- package/types/cjs/functions/is-previewing.d.cts +2 -0
- package/types/cjs/functions/on-change.d.cts +7 -0
- package/types/cjs/functions/register-component.d.cts +6 -0
- package/types/cjs/functions/register.d.cts +16 -0
- package/types/cjs/functions/set-editor-settings.d.cts +4 -0
- package/types/cjs/functions/set.d.cts +7 -0
- package/types/cjs/functions/track/helpers.d.cts +5 -0
- package/types/cjs/functions/track/index.d.cts +51 -0
- package/types/cjs/functions/track/interaction.d.cts +13 -0
- package/types/cjs/functions/transform-block-properties.d.cts +7 -0
- package/types/cjs/functions/transform-block.d.cts +2 -0
- package/types/cjs/functions/transform-style-property.d.cts +7 -0
- package/types/cjs/helpers/ab-tests.d.cts +9 -0
- package/types/cjs/helpers/canTrack.d.cts +1 -0
- package/types/cjs/helpers/cookie.d.cts +19 -0
- package/types/cjs/helpers/css.d.cts +7 -0
- package/types/cjs/helpers/flatten.d.cts +16 -0
- package/types/cjs/helpers/localStorage.d.cts +9 -0
- package/types/cjs/helpers/logger.d.cts +7 -0
- package/types/cjs/helpers/nullable.d.cts +2 -0
- package/types/cjs/helpers/omit.d.cts +1 -0
- package/types/cjs/helpers/preview-lru-cache/get.d.cts +2 -0
- package/types/cjs/helpers/preview-lru-cache/helpers.d.cts +1 -0
- package/types/cjs/helpers/preview-lru-cache/init.d.cts +6 -0
- package/types/cjs/helpers/preview-lru-cache/set.d.cts +7 -0
- package/types/cjs/helpers/preview-lru-cache/types.d.cts +1 -0
- package/types/cjs/helpers/search/search.d.cts +5 -0
- package/types/cjs/helpers/sessionId.d.cts +6 -0
- package/types/cjs/helpers/subscribe-to-editor.d.cts +35 -0
- package/types/cjs/helpers/time.d.cts +1 -0
- package/types/cjs/helpers/url.d.cts +6 -0
- package/types/cjs/helpers/uuid.d.cts +8 -0
- package/types/cjs/helpers/visitorId.d.cts +6 -0
- package/types/cjs/index-helpers/blocks-exports.d.cts +14 -0
- package/types/cjs/index-helpers/top-of-file.d.cts +1 -0
- package/types/cjs/index.d.cts +10 -0
- package/types/cjs/scripts/init-editing.d.cts +7 -0
- package/types/cjs/server-index.d.cts +39 -0
- package/types/cjs/types/api-version.d.cts +2 -0
- package/types/cjs/types/builder-block.d.cts +84 -0
- package/types/cjs/types/builder-content.d.cts +44 -0
- package/types/cjs/types/builder-props.d.cts +12 -0
- package/types/cjs/types/can-track.d.cts +3 -0
- package/types/cjs/types/components.d.cts +110 -0
- package/types/cjs/types/deep-partial.d.cts +3 -0
- package/types/cjs/types/element.d.cts +59 -0
- package/types/cjs/types/enforced-partials.d.cts +26 -0
- package/types/cjs/types/input.d.cts +122 -0
- package/types/cjs/types/targets.d.cts +1 -0
- package/types/cjs/types/typescript.d.cts +8 -0
- package/types/components/blocks/blocks-wrapper.d.ts +1 -0
- package/types/components/blocks/blocks.types.d.ts +2 -1
- package/types/esm/blocks/BaseText.d.mts +6 -0
- package/types/esm/blocks/button/button.d.mts +4 -0
- package/types/esm/blocks/button/button.types.d.mts +7 -0
- package/types/esm/blocks/button/component-info.d.mts +2 -0
- package/types/esm/blocks/button/index.d.mts +1 -0
- package/types/esm/blocks/columns/columns.d.mts +4 -0
- package/types/esm/blocks/columns/columns.types.d.mts +15 -0
- package/types/esm/blocks/columns/component-info.d.mts +2 -0
- package/types/esm/blocks/columns/helpers.d.mts +1 -0
- package/types/esm/blocks/columns/index.d.mts +1 -0
- package/types/esm/blocks/custom-code/component-info.d.mts +2 -0
- package/types/esm/blocks/custom-code/custom-code.d.mts +7 -0
- package/types/esm/blocks/custom-code/index.d.mts +1 -0
- package/types/esm/blocks/embed/component-info.d.mts +2 -0
- package/types/esm/blocks/embed/embed.d.mts +6 -0
- package/types/esm/blocks/embed/helpers.d.mts +1 -0
- package/types/esm/blocks/embed/index.d.mts +1 -0
- package/types/esm/blocks/form/form/component-info.d.mts +2 -0
- package/types/esm/blocks/form/form/form.d.mts +33 -0
- package/types/esm/blocks/form/form/index.d.mts +1 -0
- package/types/esm/blocks/form/input/component-info.d.mts +2 -0
- package/types/esm/blocks/form/input/index.d.mts +1 -0
- package/types/esm/blocks/form/input/input.d.mts +15 -0
- package/types/esm/blocks/form/select/component-info.d.mts +2 -0
- package/types/esm/blocks/form/select/index.d.mts +1 -0
- package/types/esm/blocks/form/select/select.d.mts +16 -0
- package/types/esm/blocks/form/submit-button/component-info.d.mts +2 -0
- package/types/esm/blocks/form/submit-button/index.d.mts +1 -0
- package/types/esm/blocks/form/submit-button/submit-button.d.mts +10 -0
- package/types/esm/blocks/fragment/component-info.d.mts +2 -0
- package/types/esm/blocks/fragment/fragment.d.mts +4 -0
- package/types/esm/blocks/fragment/fragment.types.d.mts +5 -0
- package/types/esm/blocks/fragment/index.d.mts +1 -0
- package/types/esm/blocks/helpers.d.mts +13 -0
- package/types/esm/blocks/image/component-info.d.mts +2 -0
- package/types/esm/blocks/image/image.d.mts +4 -0
- package/types/esm/blocks/image/image.helpers.d.mts +1 -0
- package/types/esm/blocks/image/image.types.d.mts +19 -0
- package/types/esm/blocks/image/index.d.mts +1 -0
- package/types/esm/blocks/img/component-info.d.mts +2 -0
- package/types/esm/blocks/img/img.d.mts +14 -0
- package/types/esm/blocks/img/index.d.mts +1 -0
- package/types/esm/blocks/raw-text/component-info.d.mts +2 -0
- package/types/esm/blocks/raw-text/index.d.mts +1 -0
- package/types/esm/blocks/raw-text/raw-text.d.mts +7 -0
- package/types/esm/blocks/section/component-info.d.mts +2 -0
- package/types/esm/blocks/section/index.d.mts +1 -0
- package/types/esm/blocks/section/section.d.mts +4 -0
- package/types/esm/blocks/section/section.types.d.mts +6 -0
- package/types/esm/blocks/slot/component-info.d.mts +2 -0
- package/types/esm/blocks/slot/index.d.mts +1 -0
- package/types/esm/blocks/slot/slot.d.mts +8 -0
- package/types/esm/blocks/symbol/component-info.d.mts +2 -0
- package/types/esm/blocks/symbol/index.d.mts +1 -0
- package/types/esm/blocks/symbol/symbol.d.mts +4 -0
- package/types/esm/blocks/symbol/symbol.helpers.d.mts +14 -0
- package/types/esm/blocks/symbol/symbol.types.d.mts +18 -0
- package/types/esm/blocks/tabs/component-info.d.mts +2 -0
- package/types/esm/blocks/tabs/index.d.mts +1 -0
- package/types/esm/blocks/tabs/tabs.d.mts +4 -0
- package/types/esm/blocks/tabs/tabs.types.d.mts +13 -0
- package/types/esm/blocks/text/component-info.d.mts +2 -0
- package/types/esm/blocks/text/index.d.mts +1 -0
- package/types/esm/blocks/text/text.d.mts +4 -0
- package/types/esm/blocks/text/text.types.d.mts +4 -0
- package/types/esm/blocks/textarea/component-info.d.mts +2 -0
- package/types/esm/blocks/textarea/index.d.mts +1 -0
- package/types/esm/blocks/textarea/textarea.d.mts +13 -0
- package/types/esm/blocks/video/component-info.d.mts +2 -0
- package/types/esm/blocks/video/index.d.mts +1 -0
- package/types/esm/blocks/video/video.d.mts +4 -0
- package/types/esm/blocks/video/video.types.d.mts +21 -0
- package/types/esm/components/block/animator.d.mts +5 -0
- package/types/esm/components/block/block.d.mts +11 -0
- package/types/esm/components/block/block.helpers.d.mts +18 -0
- package/types/esm/components/block/components/block-styles.d.mts +9 -0
- package/types/esm/components/block/components/block-wrapper.d.mts +15 -0
- package/types/esm/components/block/components/component-ref/component-ref.d.mts +4 -0
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.mts +31 -0
- package/types/esm/components/block/components/interactive-element.d.mts +14 -0
- package/types/esm/components/block/components/repeated-block.d.mts +8 -0
- package/types/esm/components/block/types.d.mts +6 -0
- package/types/esm/components/blocks/blocks-wrapper.d.mts +19 -0
- package/types/esm/components/blocks/blocks.d.mts +4 -0
- package/types/esm/components/blocks/blocks.types.d.mts +7 -0
- package/types/esm/components/blocks/index.d.mts +1 -0
- package/types/esm/components/content/components/enable-editor.d.mts +10 -0
- package/types/esm/components/content/components/styles.d.mts +10 -0
- package/types/esm/components/content/components/styles.helpers.d.mts +17 -0
- package/types/esm/components/content/content.d.mts +4 -0
- package/types/esm/components/content/content.helpers.d.mts +7 -0
- package/types/esm/components/content/content.types.d.mts +13 -0
- package/types/esm/components/content/contentProps.types.d.mts +17 -0
- package/types/esm/components/content/index.d.mts +1 -0
- package/types/esm/components/content/wrap-component-ref.d.mts +6 -0
- package/types/esm/components/content-variants/content-variants.d.mts +10 -0
- package/types/esm/components/content-variants/content-variants.types.d.mts +71 -0
- package/types/esm/components/content-variants/helpers.d.mts +41 -0
- package/types/esm/components/content-variants/index.d.mts +1 -0
- package/types/esm/components/content-variants/inlined-fns.d.mts +14 -0
- package/types/esm/components/dynamic-div.d.mts +15 -0
- package/types/esm/components/dynamic-renderer/dynamic-renderer.d.mts +9 -0
- package/types/esm/components/dynamic-renderer/dynamic-renderer.helpers.d.mts +1 -0
- package/types/esm/components/error-boundary.d.mts +11 -0
- package/types/esm/components/inlined-script.d.mts +7 -0
- package/types/esm/components/inlined-styles.d.mts +7 -0
- package/types/esm/constants/builder-registered-components.d.mts +6 -0
- package/types/esm/constants/device-sizes.d.mts +13 -0
- package/types/esm/constants/extra-components.d.mts +7 -0
- package/types/esm/constants/sdk-version.d.mts +1 -0
- package/types/esm/constants/target.d.mts +2 -0
- package/types/esm/context/builder.context.d.mts +3 -0
- package/types/esm/context/components.context.d.mts +3 -0
- package/types/esm/context/index.d.mts +1 -0
- package/types/esm/context/types.d.mts +36 -0
- package/types/esm/functions/apply-patch-with-mutation.d.mts +10 -0
- package/types/esm/functions/camel-to-kebab-case.d.mts +1 -0
- package/types/esm/functions/deopt.d.mts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/browser.d.mts +8 -0
- package/types/esm/functions/evaluate/browser-runtime/index.d.mts +1 -0
- package/types/esm/functions/evaluate/choose-eval.d.mts +6 -0
- package/types/esm/functions/evaluate/edge-runtime/acorn-interpreter.d.mts +2 -0
- package/types/esm/functions/evaluate/edge-runtime/edge-runtime.d.mts +2 -0
- package/types/esm/functions/evaluate/edge-runtime/index.d.mts +1 -0
- package/types/esm/functions/evaluate/evaluate.d.mts +4 -0
- package/types/esm/functions/evaluate/helpers.d.mts +25 -0
- package/types/esm/functions/evaluate/index.d.mts +1 -0
- package/types/esm/functions/evaluate/node-runtime/index.d.mts +1 -0
- package/types/esm/functions/evaluate/node-runtime/init.d.mts +13 -0
- package/types/esm/functions/evaluate/node-runtime/node-runtime.d.mts +11 -0
- package/types/esm/functions/evaluate/node-runtime/safeDynamicRequire.d.mts +6 -0
- package/types/esm/functions/evaluate/placeholder-runtime.d.mts +2 -0
- package/types/esm/functions/evaluate/should-force-browser-runtime-in-node.d.mts +1 -0
- package/types/esm/functions/event-handler-name.d.mts +1 -0
- package/types/esm/functions/extract-text-styles.d.mts +4 -0
- package/types/esm/functions/fast-clone.d.mts +4 -0
- package/types/esm/functions/fetch-builder-props.d.mts +53 -0
- package/types/esm/functions/get-block-actions-handler.d.mts +8 -0
- package/types/esm/functions/get-block-actions.d.mts +10 -0
- package/types/esm/functions/get-block-component-options.d.mts +2 -0
- package/types/esm/functions/get-block-properties.d.mts +10 -0
- package/types/esm/functions/get-builder-search-params/index.d.mts +9 -0
- package/types/esm/functions/get-class-prop-name.d.mts +1 -0
- package/types/esm/functions/get-content/generate-content-url.d.mts +2 -0
- package/types/esm/functions/get-content/index.d.mts +18 -0
- package/types/esm/functions/get-content/types.d.mts +139 -0
- package/types/esm/functions/get-env.d.mts +2 -0
- package/types/esm/functions/get-fetch.d.mts +1 -0
- package/types/esm/functions/get-global-this.d.mts +4 -0
- package/types/esm/functions/get-processed-block.d.mts +10 -0
- package/types/esm/functions/get-style.d.mts +12 -0
- package/types/esm/functions/get.d.mts +1 -0
- package/types/esm/functions/is-browser.d.mts +1 -0
- package/types/esm/functions/is-edge-runtime.d.mts +4 -0
- package/types/esm/functions/is-editing.d.mts +2 -0
- package/types/esm/functions/is-from-trusted-host.d.mts +3 -0
- package/types/esm/functions/is-iframe.d.mts +1 -0
- package/types/esm/functions/is-node-runtime.d.mts +4 -0
- package/types/esm/functions/is-previewing.d.mts +2 -0
- package/types/esm/functions/on-change.d.mts +7 -0
- package/types/esm/functions/register-component.d.mts +6 -0
- package/types/esm/functions/register.d.mts +16 -0
- package/types/esm/functions/set-editor-settings.d.mts +4 -0
- package/types/esm/functions/set.d.mts +7 -0
- package/types/esm/functions/track/helpers.d.mts +5 -0
- package/types/esm/functions/track/index.d.mts +51 -0
- package/types/esm/functions/track/interaction.d.mts +13 -0
- package/types/esm/functions/transform-block-properties.d.mts +7 -0
- package/types/esm/functions/transform-block.d.mts +2 -0
- package/types/esm/functions/transform-style-property.d.mts +7 -0
- package/types/esm/helpers/ab-tests.d.mts +9 -0
- package/types/esm/helpers/canTrack.d.mts +1 -0
- package/types/esm/helpers/cookie.d.mts +19 -0
- package/types/esm/helpers/css.d.mts +7 -0
- package/types/esm/helpers/flatten.d.mts +16 -0
- package/types/esm/helpers/localStorage.d.mts +9 -0
- package/types/esm/helpers/logger.d.mts +7 -0
- package/types/esm/helpers/nullable.d.mts +2 -0
- package/types/esm/helpers/omit.d.mts +1 -0
- package/types/esm/helpers/preview-lru-cache/get.d.mts +2 -0
- package/types/esm/helpers/preview-lru-cache/helpers.d.mts +1 -0
- package/types/esm/helpers/preview-lru-cache/init.d.mts +6 -0
- package/types/esm/helpers/preview-lru-cache/set.d.mts +7 -0
- package/types/esm/helpers/preview-lru-cache/types.d.mts +1 -0
- package/types/esm/helpers/search/search.d.mts +5 -0
- package/types/esm/helpers/sessionId.d.mts +6 -0
- package/types/esm/helpers/subscribe-to-editor.d.mts +35 -0
- package/types/esm/helpers/time.d.mts +1 -0
- package/types/esm/helpers/url.d.mts +6 -0
- package/types/esm/helpers/uuid.d.mts +8 -0
- package/types/esm/helpers/visitorId.d.mts +6 -0
- package/types/esm/index-helpers/blocks-exports.d.mts +14 -0
- package/types/esm/index-helpers/top-of-file.d.mts +1 -0
- package/types/esm/index.d.mts +10 -0
- package/types/esm/index.d.mts.d.mts +10 -0
- package/types/esm/scripts/init-editing.d.mts +7 -0
- package/types/esm/server-index.d.mts +39 -0
- package/types/esm/types/api-version.d.mts +2 -0
- package/types/esm/types/builder-block.d.mts +84 -0
- package/types/esm/types/builder-content.d.mts +44 -0
- package/types/esm/types/builder-props.d.mts +12 -0
- package/types/esm/types/can-track.d.mts +3 -0
- package/types/esm/types/components.d.mts +110 -0
- package/types/esm/types/deep-partial.d.mts +3 -0
- package/types/esm/types/element.d.mts +59 -0
- package/types/esm/types/enforced-partials.d.mts +26 -0
- package/types/esm/types/input.d.mts +122 -0
- package/types/esm/types/targets.d.mts +1 -0
- package/types/esm/types/typescript.d.mts +8 -0
- package/types/functions/evaluate/node-runtime/init.d.ts +2 -0
- package/types/helpers/sdk-headers.d.ts +5 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
3
|
-
import { TARGET as D, isEditing as
|
|
3
|
+
import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as je, setupBrowserForEditing as Me, createRegisterComponentMessage as _e, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-e7cbd2fc.js";
|
|
4
4
|
import { createContext as ke, useEffect as B, useState as T, useRef as $, useContext as ce, createElement as Ce } from "react";
|
|
5
5
|
const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && Ke.has(e.toLowerCase());
|
|
6
6
|
function ie(e) {
|
|
@@ -88,7 +88,7 @@ const Ie = (e, t, n) => {
|
|
|
88
88
|
context: t,
|
|
89
89
|
event: n
|
|
90
90
|
}), Xe = () => ({
|
|
91
|
-
isEditing:
|
|
91
|
+
isEditing: W(),
|
|
92
92
|
isBrowser: L(),
|
|
93
93
|
isServer: !L(),
|
|
94
94
|
getUserAttributes: () => Ue()
|
|
@@ -488,7 +488,7 @@ const pt = ({
|
|
|
488
488
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
489
489
|
builderContext: t
|
|
490
490
|
} : {};
|
|
491
|
-
},
|
|
491
|
+
}, Ne = {
|
|
492
492
|
small: {
|
|
493
493
|
min: 320,
|
|
494
494
|
default: 321,
|
|
@@ -504,11 +504,11 @@ const pt = ({
|
|
|
504
504
|
default: 991,
|
|
505
505
|
max: 1200
|
|
506
506
|
}
|
|
507
|
-
}, ue = (e, t =
|
|
507
|
+
}, ue = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, We = ({
|
|
508
508
|
small: e,
|
|
509
509
|
medium: t
|
|
510
510
|
}) => {
|
|
511
|
-
const n = ae(
|
|
511
|
+
const n = ae(Ne);
|
|
512
512
|
if (!e || !t)
|
|
513
513
|
return n;
|
|
514
514
|
const i = Math.floor(e / 2);
|
|
@@ -548,7 +548,7 @@ function Ct(e) {
|
|
|
548
548
|
}
|
|
549
549
|
function n() {
|
|
550
550
|
var x, R, C;
|
|
551
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
551
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = We(
|
|
552
552
|
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
553
553
|
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
554
554
|
if (!h)
|
|
@@ -937,15 +937,19 @@ function M(e) {
|
|
|
937
937
|
) })
|
|
938
938
|
] }) : null });
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Nt(e) {
|
|
941
941
|
const t = $(null);
|
|
942
942
|
function n() {
|
|
943
943
|
var a;
|
|
944
|
-
return
|
|
944
|
+
return [
|
|
945
|
+
"builder-blocks",
|
|
946
|
+
(a = e.blocks) != null && a.length ? "" : "no-blocks",
|
|
947
|
+
e.classNameProp
|
|
948
|
+
].filter(Boolean).join(" ");
|
|
945
949
|
}
|
|
946
950
|
function i() {
|
|
947
951
|
var a, r;
|
|
948
|
-
|
|
952
|
+
W() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
949
953
|
{
|
|
950
954
|
type: "builder.clickEmptyBlocks",
|
|
951
955
|
data: {
|
|
@@ -958,7 +962,7 @@ function Wt(e) {
|
|
|
958
962
|
}
|
|
959
963
|
function o() {
|
|
960
964
|
var a, r;
|
|
961
|
-
|
|
965
|
+
W() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
962
966
|
{
|
|
963
967
|
type: "builder.hoverEmptyBlocks",
|
|
964
968
|
data: {
|
|
@@ -975,7 +979,7 @@ function Wt(e) {
|
|
|
975
979
|
e.BlocksWrapper,
|
|
976
980
|
{
|
|
977
981
|
ref: t,
|
|
978
|
-
className: n() + " props-blocks-wrapper-
|
|
982
|
+
className: n() + " props-blocks-wrapper-43ec7ac8",
|
|
979
983
|
"builder-path": e.path,
|
|
980
984
|
"builder-parent-id": e.parent,
|
|
981
985
|
style: e.styleProp,
|
|
@@ -986,7 +990,7 @@ function Wt(e) {
|
|
|
986
990
|
children: e.children
|
|
987
991
|
}
|
|
988
992
|
),
|
|
989
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
993
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-43ec7ac8 {
|
|
990
994
|
display: flex;
|
|
991
995
|
flex-direction: column;
|
|
992
996
|
align-items: stretch;
|
|
@@ -997,12 +1001,13 @@ function F(e) {
|
|
|
997
1001
|
var i, o, a;
|
|
998
1002
|
const t = ce(oe), n = ce(Te);
|
|
999
1003
|
return /* @__PURE__ */ l(
|
|
1000
|
-
|
|
1004
|
+
Nt,
|
|
1001
1005
|
{
|
|
1002
1006
|
blocks: e.blocks,
|
|
1003
1007
|
parent: e.parent,
|
|
1004
1008
|
path: e.path,
|
|
1005
1009
|
styleProp: e.styleProp,
|
|
1010
|
+
classNameProp: e.className,
|
|
1006
1011
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1007
1012
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1008
1013
|
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
@@ -1018,9 +1023,9 @@ function F(e) {
|
|
|
1018
1023
|
}
|
|
1019
1024
|
);
|
|
1020
1025
|
}
|
|
1021
|
-
const
|
|
1026
|
+
const Wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1022
1027
|
function Ft(e) {
|
|
1023
|
-
var k,
|
|
1028
|
+
var k, N;
|
|
1024
1029
|
const [t, n] = T(
|
|
1025
1030
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
1026
1031
|
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
@@ -1091,7 +1096,7 @@ function Ft(e) {
|
|
|
1091
1096
|
}
|
|
1092
1097
|
function x(m) {
|
|
1093
1098
|
var I, u;
|
|
1094
|
-
return
|
|
1099
|
+
return We(
|
|
1095
1100
|
((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
|
|
1096
1101
|
)[m].max;
|
|
1097
1102
|
}
|
|
@@ -1136,7 +1141,7 @@ function Ft(e) {
|
|
|
1136
1141
|
/* @__PURE__ */ V(
|
|
1137
1142
|
"div",
|
|
1138
1143
|
{
|
|
1139
|
-
className:
|
|
1144
|
+
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
|
|
1140
1145
|
style: g(),
|
|
1141
1146
|
children: [
|
|
1142
1147
|
/* @__PURE__ */ l(
|
|
@@ -1147,7 +1152,7 @@ function Ft(e) {
|
|
|
1147
1152
|
nonce: e.builderContext.nonce
|
|
1148
1153
|
}
|
|
1149
1154
|
),
|
|
1150
|
-
(
|
|
1155
|
+
(N = e.columns) == null ? void 0 : N.map((m, y) => /* @__PURE__ */ l(
|
|
1151
1156
|
ie,
|
|
1152
1157
|
{
|
|
1153
1158
|
TagName: s(m),
|
|
@@ -2661,7 +2666,7 @@ function un(e) {
|
|
|
2661
2666
|
e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
|
|
2662
2667
|
}
|
|
2663
2668
|
function c() {
|
|
2664
|
-
return
|
|
2669
|
+
return W() && e.previewState || n;
|
|
2665
2670
|
}
|
|
2666
2671
|
function h(v) {
|
|
2667
2672
|
var S;
|
|
@@ -2676,7 +2681,7 @@ function un(e) {
|
|
|
2676
2681
|
v.preventDefault();
|
|
2677
2682
|
const x = v.currentTarget || v.target, R = e.customHeaders || {};
|
|
2678
2683
|
let C;
|
|
2679
|
-
const k = new FormData(x),
|
|
2684
|
+
const k = new FormData(x), N = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2680
2685
|
let p;
|
|
2681
2686
|
const E = u.name;
|
|
2682
2687
|
if (u instanceof HTMLInputElement)
|
|
@@ -2701,13 +2706,13 @@ function un(e) {
|
|
|
2701
2706
|
};
|
|
2702
2707
|
});
|
|
2703
2708
|
let m = e.contentType;
|
|
2704
|
-
if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(
|
|
2709
|
+
if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(N).forEach(({ value: u }) => {
|
|
2705
2710
|
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
|
|
2706
2711
|
}), m !== "application/json")
|
|
2707
2712
|
C = k;
|
|
2708
2713
|
else {
|
|
2709
2714
|
const u = {};
|
|
2710
|
-
Array.from(
|
|
2715
|
+
Array.from(N).forEach(({ value: p, key: E }) => {
|
|
2711
2716
|
Ee(u, E, p);
|
|
2712
2717
|
}), C = JSON.stringify(u);
|
|
2713
2718
|
}
|
|
@@ -2871,7 +2876,7 @@ function fn(e) {
|
|
|
2871
2876
|
"input",
|
|
2872
2877
|
{
|
|
2873
2878
|
...e.attributes,
|
|
2874
|
-
key:
|
|
2879
|
+
key: W() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2875
2880
|
placeholder: e.placeholder,
|
|
2876
2881
|
type: e.type,
|
|
2877
2882
|
name: e.name,
|
|
@@ -2931,7 +2936,7 @@ function gn(e) {
|
|
|
2931
2936
|
{
|
|
2932
2937
|
...e.attributes,
|
|
2933
2938
|
value: e.value,
|
|
2934
|
-
key:
|
|
2939
|
+
key: W() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2935
2940
|
defaultValue: e.defaultValue,
|
|
2936
2941
|
name: e.name,
|
|
2937
2942
|
required: e.required
|
|
@@ -3045,7 +3050,7 @@ function Sn(e) {
|
|
|
3045
3050
|
src: e.imgSrc || e.image,
|
|
3046
3051
|
...e.attributes
|
|
3047
3052
|
},
|
|
3048
|
-
|
|
3053
|
+
W() && e.imgSrc || "default-key"
|
|
3049
3054
|
);
|
|
3050
3055
|
}
|
|
3051
3056
|
const kn = {
|
|
@@ -3424,7 +3429,7 @@ const An = (e, t, n = !0) => {
|
|
|
3424
3429
|
return i;
|
|
3425
3430
|
} while (i = i.parentElement);
|
|
3426
3431
|
return null;
|
|
3427
|
-
},
|
|
3432
|
+
}, Nn = (e) => An(e, (t) => {
|
|
3428
3433
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3429
3434
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3430
3435
|
}), ye = ({
|
|
@@ -3436,8 +3441,8 @@ const An = (e, t, n = !0) => {
|
|
|
3436
3441
|
x: a,
|
|
3437
3442
|
y: r
|
|
3438
3443
|
};
|
|
3439
|
-
},
|
|
3440
|
-
const t = e.target, n = t &&
|
|
3444
|
+
}, Wn = (e) => {
|
|
3445
|
+
const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3441
3446
|
return {
|
|
3442
3447
|
targetBuilderElement: i || void 0,
|
|
3443
3448
|
metadata: {
|
|
@@ -3505,7 +3510,7 @@ font-weight: ${s};
|
|
|
3505
3510
|
}
|
|
3506
3511
|
`, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
|
|
3507
3512
|
function jn(e) {
|
|
3508
|
-
var C, k,
|
|
3513
|
+
var C, k, N;
|
|
3509
3514
|
const t = $(null);
|
|
3510
3515
|
function n(m) {
|
|
3511
3516
|
var I, u;
|
|
@@ -3581,7 +3586,7 @@ function jn(e) {
|
|
|
3581
3586
|
contentId: p,
|
|
3582
3587
|
apiKey: e.apiKey,
|
|
3583
3588
|
variationId: u !== p ? u : void 0,
|
|
3584
|
-
...
|
|
3589
|
+
...Wn(m),
|
|
3585
3590
|
unique: !f
|
|
3586
3591
|
});
|
|
3587
3592
|
}
|
|
@@ -3591,7 +3596,7 @@ function jn(e) {
|
|
|
3591
3596
|
var y, I, u;
|
|
3592
3597
|
const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
|
|
3593
3598
|
Object.entries(m).forEach(([p, E]) => {
|
|
3594
|
-
if (!E || h[p] || d[p] && !
|
|
3599
|
+
if (!E || h[p] || d[p] && !W())
|
|
3595
3600
|
return;
|
|
3596
3601
|
h[p] = !0;
|
|
3597
3602
|
const P = E.replace(
|
|
@@ -3618,7 +3623,7 @@ function jn(e) {
|
|
|
3618
3623
|
});
|
|
3619
3624
|
}
|
|
3620
3625
|
function x() {
|
|
3621
|
-
|
|
3626
|
+
W() && window.dispatchEvent(
|
|
3622
3627
|
new CustomEvent(
|
|
3623
3628
|
"builder:component:stateChange",
|
|
3624
3629
|
{
|
|
@@ -3636,7 +3641,7 @@ function jn(e) {
|
|
|
3636
3641
|
return R.current || (S(), x(), R.current = !0), B(() => {
|
|
3637
3642
|
var m, y;
|
|
3638
3643
|
if (L()) {
|
|
3639
|
-
if (
|
|
3644
|
+
if (W() && (window.addEventListener("message", s), je(), Me({
|
|
3640
3645
|
...e.locale ? {
|
|
3641
3646
|
locale: e.locale
|
|
3642
3647
|
} : {},
|
|
@@ -3665,7 +3670,7 @@ function jn(e) {
|
|
|
3665
3670
|
variationId: u !== p ? u : void 0
|
|
3666
3671
|
});
|
|
3667
3672
|
}
|
|
3668
|
-
if (ve() && !
|
|
3673
|
+
if (ve() && !W()) {
|
|
3669
3674
|
const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
|
|
3670
3675
|
`builder.overrides.${p}`
|
|
3671
3676
|
), P = u.get("apiKey") || u.get("builder.space");
|
|
@@ -3701,7 +3706,7 @@ function jn(e) {
|
|
|
3701
3706
|
"builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
|
|
3702
3707
|
"builder-model": e.model,
|
|
3703
3708
|
className: Un(
|
|
3704
|
-
((k = e.content) == null ? void 0 : k.testVariationId) || ((
|
|
3709
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((N = e.content) == null ? void 0 : N.id)
|
|
3705
3710
|
),
|
|
3706
3711
|
...o(),
|
|
3707
3712
|
...e.contentWrapperProps,
|
|
@@ -3785,10 +3790,10 @@ function xe(e) {
|
|
|
3785
3790
|
...be(),
|
|
3786
3791
|
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3787
3792
|
].reduce(
|
|
3788
|
-
(k, { component:
|
|
3793
|
+
(k, { component: N, ...m }) => ({
|
|
3789
3794
|
...k,
|
|
3790
3795
|
[m.name]: {
|
|
3791
|
-
component:
|
|
3796
|
+
component: N,
|
|
3792
3797
|
...se(m)
|
|
3793
3798
|
}
|
|
3794
3799
|
}),
|
|
@@ -3817,7 +3822,7 @@ function xe(e) {
|
|
|
3817
3822
|
...be(),
|
|
3818
3823
|
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3819
3824
|
].reduce(
|
|
3820
|
-
(k, { component:
|
|
3825
|
+
(k, { component: N, ...m }) => ({
|
|
3821
3826
|
...k,
|
|
3822
3827
|
[m.name]: se(m)
|
|
3823
3828
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, Fragment as h, jsxs as R } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as V, useEffect as b, useState as O, useRef as Z, useContext as
|
|
2
|
+
import { createContext as V, useEffect as b, useState as O, useRef as Z, useContext as $ } from "react";
|
|
3
3
|
import { BuilderContext as _ } from "./blocks-exports.mjs";
|
|
4
4
|
import { TARGET as v, checkIsDefined as A, isPreviewing as q, isEditing as T } from "./server-entry-b3befa52.js";
|
|
5
5
|
import { evaluate as W } from "./evaluate-b7da3191.js";
|
|
@@ -370,7 +370,7 @@ function be(e) {
|
|
|
370
370
|
return A(r.hide) ? !r.hide : A(r.show) ? r.show : !0;
|
|
371
371
|
}
|
|
372
372
|
function n() {
|
|
373
|
-
var p, y,
|
|
373
|
+
var p, y, N;
|
|
374
374
|
const r = e.block, o = r.responsiveStyles, s = e.context.content, l = Se(
|
|
375
375
|
((p = s == null ? void 0 : s.meta) == null ? void 0 : p.breakpoints) || {}
|
|
376
376
|
), d = o == null ? void 0 : o.large, f = o == null ? void 0 : o.medium, a = o == null ? void 0 : o.small, m = r.id;
|
|
@@ -396,7 +396,7 @@ function be(e) {
|
|
|
396
396
|
}) : "", c = r.animations && r.animations.find((w) => w.trigger === "hover");
|
|
397
397
|
let u = "";
|
|
398
398
|
if (c) {
|
|
399
|
-
const w = ((
|
|
399
|
+
const w = ((N = (y = c.steps) == null ? void 0 : y[1]) == null ? void 0 : N.styles) || {};
|
|
400
400
|
u = x({
|
|
401
401
|
className: `${m}:hover`,
|
|
402
402
|
styles: {
|
|
@@ -764,7 +764,11 @@ function Ee(e) {
|
|
|
764
764
|
const t = Z(null);
|
|
765
765
|
function n() {
|
|
766
766
|
var s;
|
|
767
|
-
return
|
|
767
|
+
return [
|
|
768
|
+
"builder-blocks",
|
|
769
|
+
(s = e.blocks) != null && s.length ? "" : "no-blocks",
|
|
770
|
+
e.classNameProp
|
|
771
|
+
].filter(Boolean).join(" ");
|
|
768
772
|
}
|
|
769
773
|
function r() {
|
|
770
774
|
var s, l;
|
|
@@ -798,7 +802,7 @@ function Ee(e) {
|
|
|
798
802
|
e.BlocksWrapper,
|
|
799
803
|
{
|
|
800
804
|
ref: t,
|
|
801
|
-
className: n() + " props-blocks-wrapper-
|
|
805
|
+
className: n() + " props-blocks-wrapper-43ec7ac8",
|
|
802
806
|
"builder-path": e.path,
|
|
803
807
|
"builder-parent-id": e.parent,
|
|
804
808
|
style: e.styleProp,
|
|
@@ -809,16 +813,16 @@ function Ee(e) {
|
|
|
809
813
|
children: e.children
|
|
810
814
|
}
|
|
811
815
|
),
|
|
812
|
-
/* @__PURE__ */ i("style", { children: `.props-blocks-wrapper-
|
|
816
|
+
/* @__PURE__ */ i("style", { children: `.props-blocks-wrapper-43ec7ac8 {
|
|
813
817
|
display: flex;
|
|
814
818
|
flex-direction: column;
|
|
815
819
|
align-items: stretch;
|
|
816
820
|
}` })
|
|
817
821
|
] });
|
|
818
822
|
}
|
|
819
|
-
function
|
|
823
|
+
function Ne(e) {
|
|
820
824
|
var r, o, s;
|
|
821
|
-
const t =
|
|
825
|
+
const t = $(_), n = $(G);
|
|
822
826
|
return /* @__PURE__ */ i(
|
|
823
827
|
Ee,
|
|
824
828
|
{
|
|
@@ -826,6 +830,7 @@ function $e(e) {
|
|
|
826
830
|
parent: e.parent,
|
|
827
831
|
path: e.path,
|
|
828
832
|
styleProp: e.styleProp,
|
|
833
|
+
classNameProp: e.className,
|
|
829
834
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || t.BlocksWrapper,
|
|
830
835
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
831
836
|
children: e.blocks ? /* @__PURE__ */ i(h, { children: (s = e.blocks) == null ? void 0 : s.map((l) => /* @__PURE__ */ i(
|
|
@@ -843,11 +848,11 @@ function $e(e) {
|
|
|
843
848
|
}
|
|
844
849
|
const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
845
850
|
__proto__: null,
|
|
846
|
-
default:
|
|
851
|
+
default: Ne
|
|
847
852
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
848
853
|
export {
|
|
849
854
|
P as Block,
|
|
850
|
-
|
|
855
|
+
Ne as Blocks,
|
|
851
856
|
G as ComponentsContext,
|
|
852
857
|
xe as InlinedStyles,
|
|
853
858
|
Ue as blocks,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
${r}
|
|
6
6
|
}`:r};function ce({style:e}){return e}const le=({block:e,context:t})=>_(ce({style:e.style||{},context:t,block:e}));function _(e){switch(x.TARGET){case"svelte":case"vue":case"solid":case"angular":return L(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const ie=({block:e,registeredComponents:t})=>{var o;const n=(o=e.component)==null?void 0:o.name;if(!n)return null;const r=t[n];if(r)return r;console.warn(`
|
|
7
7
|
Could not find a registered component named "${n}".
|
|
8
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ae=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=j.evaluate({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),l=n.itemName||(s?s+"Item":"item");return o.map((f,a)=>({context:{...t,localState:{...t.localState,$index:a,$item:f,[l]:f,[`$${l}Index`]:a}},block:r}))},ue=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},de=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:t}:{}},fe=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},me=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},q={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},I=(e,t=q)=>`@media (max-width: ${t[e].max}px)`,H=({small:e,medium:t})=>{const n=E(q);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n};function U(e){return c.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function he(e){function t(){const r=e.block;return x.checkIsDefined(r.hide)?!r.hide:x.checkIsDefined(r.show)?r.show:!0}function n(){var h,y,A;const r=e.block,o=r.responsiveStyles,s=e.context.content,l=H(((h=s==null?void 0:s.meta)==null?void 0:h.breakpoints)||{}),d=o==null?void 0:o.large,f=o==null?void 0:o.medium,a=o==null?void 0:o.small,m=r.id;if(!m)return"";const p=d?v({className:m,styles:d}):"",k=f?v({className:m,styles:f,mediaQuery:I("medium",l)}):"",S=a?v({className:m,styles:a,mediaQuery:I("small",l)}):"",i=r.animations&&r.animations.find(P=>P.trigger==="hover");let u="";if(i){const P=((A=(y=i.steps)==null?void 0:y[1])==null?void 0:A.styles)||{};u=v({className:`${m}:hover`,styles:{...P,transition:`all ${i.duration}s ${B(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[p,k,S,u].join(" ")}return c.jsx(c.Fragment,{children:n()&&t()?c.jsx(c.Fragment,{children:c.jsx(U,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}const xe=e=>`on${ge(e)}`,ye=(e,t)=>n=>j.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function z(e){var r;const t={},n=(r=e.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];let l=xe(o);if(e.stripPrefix)switch(x.TARGET){case"vue":l=l.replace("v-on:","");break;case"svelte":l=l.replace("on:","");break}t[l]=ye(s,e)}return t}function pe({properties:e}){return e}const ke=e=>({href:e.href});function R({block:e,context:t}){var r;const n={...ke(e),...e.properties,"builder-id":e.id,style:le({block:e,context:t}),[G.getClassPropName()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return pe({properties:n,context:t,block:e})}function Se(e){return c.jsx(V.DynamicRenderer,{TagName:e.Wrapper,attributes:R({block:e.block,context:e.context}),actionAttributes:z({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Ce(e){return g.useEffect(()=>{},[]),c.jsx(c.Fragment,{children:e.children})}function be(e){function t(){return e.includeBlockProps?{...R({block:e.block,context:e.context}),...z({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return c.jsx(c.Fragment,{children:e.Wrapper.load?c.jsx(c.Fragment,{children:c.jsx(Ce,{load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:t(),children:e.children})}):c.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})})}const ve=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:s,contextValue:l})=>{const d={...e,...o?{attributes:R({block:t,context:l})}:{}};return s?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:d};function O(e){var r;const[t,n]=g.useState(()=>e.isInteractive?be:e.componentRef);return c.jsx(c.Fragment,{children:e.componentRef?c.jsx(c.Fragment,{children:c.jsx(t,{...ve({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(r=e.blockChildren)==null?void 0:r.map(o=>c.jsx(b,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function W(e){const[t,n]=g.useState(()=>e.repeatContext);return c.jsx(T.BuilderContext.Provider,{value:t,children:c.jsx(b,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function b(e){var m,p,k,S;function t(){return ae({block:e.block,context:e.context})}const[n,r]=g.useState(()=>({value:null,update:!1}));function o(){var u;if(n.value&&!n.update&&!x.isPreviewing())return n.value;const i=(u=e.block.repeat)!=null&&u.collection?e.block:ee({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return n.value=i,n.update=!1,i}function s(){return ie({block:o(),registeredComponents:e.registeredComponents})}function l(){var u;return e.block.tagName==="a"||((u=o().properties)==null?void 0:u.href)||o().href?e.linkComponent||"a":e.block.tagName||"div"}function d(){var h,y;if((h=e.block.repeat)!=null&&h.collection)return!!((y=t==null?void 0:t())!=null&&y.length);const i="hide"in o()?o().hide:!1;return("show"in o()?o().show:!0)&&!i}function f(){var u,h;return!((u=s==null?void 0:s())!=null&&u.component)&&!t()?(h=o().children)!=null?h:[]:[]}function a(){var i,u,h,y;return{blockChildren:(i=o().children)!=null?i:[],componentRef:(u=s==null?void 0:s())==null?void 0:u.component,componentOptions:{...Z(o()),...fe(s(),o()),...me(s(),e.context),...ue(s(),e.linkComponent),...de(s(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:o(),includeBlockProps:((h=s==null?void 0:s())==null?void 0:h.noWrap)===!0,isInteractive:!((y=s==null?void 0:s())!=null&&y.isRSC&&x.TARGET==="rsc")}}return g.useEffect(()=>{const i=o().id,u=o().animations;u&&i&&ne(u.map(h=>({...h,elementId:i})))},[]),g.useEffect(()=>{n.update=!0}),c.jsx(c.Fragment,{children:d()?c.jsxs(c.Fragment,{children:[c.jsx(he,{block:o(),context:e.context}),(m=s==null?void 0:s())!=null&&m.noWrap?t()?c.jsx(c.Fragment,{children:(S=t())==null?void 0:S.map((i,u)=>c.jsx(W,{repeatContext:i.context,block:i.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},u))}):c.jsx(O,{componentRef:a().componentRef,componentOptions:a().componentOptions,blockChildren:a().blockChildren,context:a().context,registeredComponents:a().registeredComponents,linkComponent:a().linkComponent,builderBlock:a().builderBlock,includeBlockProps:a().includeBlockProps,isInteractive:a().isInteractive}):c.jsx(c.Fragment,{children:t()?c.jsx(c.Fragment,{children:(k=t())==null?void 0:k.map((i,u)=>c.jsx(W,{repeatContext:i.context,block:i.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},u))}):c.jsxs(Se,{Wrapper:l(),block:o(),context:e.context,children:[c.jsx(O,{componentRef:a().componentRef,componentOptions:a().componentOptions,blockChildren:a().blockChildren,context:a().context,registeredComponents:a().registeredComponents,linkComponent:a().linkComponent,builderBlock:a().builderBlock,includeBlockProps:a().includeBlockProps,isInteractive:a().isInteractive}),(p=f())==null?void 0:p.map(i=>c.jsx(b,{block:i,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},i.id))]})})]}):null})}function Be(e){const t=g.useRef(null);function n(){var s;return"builder-blocks"
|
|
8
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ae=({block:e,context:t})=>{const{repeat:n,...r}=e;if(!(n!=null&&n.collection))return;const o=j.evaluate({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(o))return;const s=n.collection.split(".").pop(),l=n.itemName||(s?s+"Item":"item");return o.map((f,a)=>({context:{...t,localState:{...t.localState,$index:a,$item:f,[l]:f,[`$${l}Index`]:a}},block:r}))},ue=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},de=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderComponents?{builderComponents:t}:{}},fe=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},me=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},q={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},I=(e,t=q)=>`@media (max-width: ${t[e].max}px)`,H=({small:e,medium:t})=>{const n=E(q);if(!e||!t)return n;const r=Math.floor(e/2);n.small={max:e,min:r,default:r+1};const o=n.small.max+1;n.medium={max:t,min:o,default:o+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n};function U(e){return c.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},"data-id":e.id,nonce:e.nonce})}function he(e){function t(){const r=e.block;return x.checkIsDefined(r.hide)?!r.hide:x.checkIsDefined(r.show)?r.show:!0}function n(){var h,y,A;const r=e.block,o=r.responsiveStyles,s=e.context.content,l=H(((h=s==null?void 0:s.meta)==null?void 0:h.breakpoints)||{}),d=o==null?void 0:o.large,f=o==null?void 0:o.medium,a=o==null?void 0:o.small,m=r.id;if(!m)return"";const p=d?v({className:m,styles:d}):"",k=f?v({className:m,styles:f,mediaQuery:I("medium",l)}):"",S=a?v({className:m,styles:a,mediaQuery:I("small",l)}):"",i=r.animations&&r.animations.find(P=>P.trigger==="hover");let u="";if(i){const P=((A=(y=i.steps)==null?void 0:y[1])==null?void 0:A.styles)||{};u=v({className:`${m}:hover`,styles:{...P,transition:`all ${i.duration}s ${B(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[p,k,S,u].join(" ")}return c.jsx(c.Fragment,{children:n()&&t()?c.jsx(c.Fragment,{children:c.jsx(U,{id:"builderio-block",styles:n(),nonce:e.context.nonce})}):null})}function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}const xe=e=>`on${ge(e)}`,ye=(e,t)=>n=>j.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:n,isExpression:!1});function z(e){var r;const t={},n=(r=e.block.actions)!=null?r:{};for(const o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];let l=xe(o);if(e.stripPrefix)switch(x.TARGET){case"vue":l=l.replace("v-on:","");break;case"svelte":l=l.replace("on:","");break}t[l]=ye(s,e)}return t}function pe({properties:e}){return e}const ke=e=>({href:e.href});function R({block:e,context:t}){var r;const n={...ke(e),...e.properties,"builder-id":e.id,style:le({block:e,context:t}),[G.getClassPropName()]:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return pe({properties:n,context:t,block:e})}function Se(e){return c.jsx(V.DynamicRenderer,{TagName:e.Wrapper,attributes:R({block:e.block,context:e.context}),actionAttributes:z({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:e.children})}function Ce(e){return g.useEffect(()=>{},[]),c.jsx(c.Fragment,{children:e.children})}function be(e){function t(){return e.includeBlockProps?{...R({block:e.block,context:e.context}),...z({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}:{}}return c.jsx(c.Fragment,{children:e.Wrapper.load?c.jsx(c.Fragment,{children:c.jsx(Ce,{load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:t(),children:e.children})}):c.jsx(e.Wrapper,{...e.wrapperProps,attributes:t(),children:e.children})})}const ve=({componentOptions:e,builderBlock:t,context:n,componentRef:r,includeBlockProps:o,isInteractive:s,contextValue:l})=>{const d={...e,...o?{attributes:R({block:t,context:l})}:{}};return s?{Wrapper:r,block:t,context:n,wrapperProps:e,includeBlockProps:o}:d};function O(e){var r;const[t,n]=g.useState(()=>e.isInteractive?be:e.componentRef);return c.jsx(c.Fragment,{children:e.componentRef?c.jsx(c.Fragment,{children:c.jsx(t,{...ve({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:(r=e.blockChildren)==null?void 0:r.map(o=>c.jsx(b,{block:o,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},o.id))})}):null})}function W(e){const[t,n]=g.useState(()=>e.repeatContext);return c.jsx(T.BuilderContext.Provider,{value:t,children:c.jsx(b,{block:e.block,context:t,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent})})}function b(e){var m,p,k,S;function t(){return ae({block:e.block,context:e.context})}const[n,r]=g.useState(()=>({value:null,update:!1}));function o(){var u;if(n.value&&!n.update&&!x.isPreviewing())return n.value;const i=(u=e.block.repeat)!=null&&u.collection?e.block:ee({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0});return n.value=i,n.update=!1,i}function s(){return ie({block:o(),registeredComponents:e.registeredComponents})}function l(){var u;return e.block.tagName==="a"||((u=o().properties)==null?void 0:u.href)||o().href?e.linkComponent||"a":e.block.tagName||"div"}function d(){var h,y;if((h=e.block.repeat)!=null&&h.collection)return!!((y=t==null?void 0:t())!=null&&y.length);const i="hide"in o()?o().hide:!1;return("show"in o()?o().show:!0)&&!i}function f(){var u,h;return!((u=s==null?void 0:s())!=null&&u.component)&&!t()?(h=o().children)!=null?h:[]:[]}function a(){var i,u,h,y;return{blockChildren:(i=o().children)!=null?i:[],componentRef:(u=s==null?void 0:s())==null?void 0:u.component,componentOptions:{...Z(o()),...fe(s(),o()),...me(s(),e.context),...ue(s(),e.linkComponent),...de(s(),e.registeredComponents)},context:e.context,linkComponent:e.linkComponent,registeredComponents:e.registeredComponents,builderBlock:o(),includeBlockProps:((h=s==null?void 0:s())==null?void 0:h.noWrap)===!0,isInteractive:!((y=s==null?void 0:s())!=null&&y.isRSC&&x.TARGET==="rsc")}}return g.useEffect(()=>{const i=o().id,u=o().animations;u&&i&&ne(u.map(h=>({...h,elementId:i})))},[]),g.useEffect(()=>{n.update=!0}),c.jsx(c.Fragment,{children:d()?c.jsxs(c.Fragment,{children:[c.jsx(he,{block:o(),context:e.context}),(m=s==null?void 0:s())!=null&&m.noWrap?t()?c.jsx(c.Fragment,{children:(S=t())==null?void 0:S.map((i,u)=>c.jsx(W,{repeatContext:i.context,block:i.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},u))}):c.jsx(O,{componentRef:a().componentRef,componentOptions:a().componentOptions,blockChildren:a().blockChildren,context:a().context,registeredComponents:a().registeredComponents,linkComponent:a().linkComponent,builderBlock:a().builderBlock,includeBlockProps:a().includeBlockProps,isInteractive:a().isInteractive}):c.jsx(c.Fragment,{children:t()?c.jsx(c.Fragment,{children:(k=t())==null?void 0:k.map((i,u)=>c.jsx(W,{repeatContext:i.context,block:i.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},u))}):c.jsxs(Se,{Wrapper:l(),block:o(),context:e.context,children:[c.jsx(O,{componentRef:a().componentRef,componentOptions:a().componentOptions,blockChildren:a().blockChildren,context:a().context,registeredComponents:a().registeredComponents,linkComponent:a().linkComponent,builderBlock:a().builderBlock,includeBlockProps:a().includeBlockProps,isInteractive:a().isInteractive}),(p=f())==null?void 0:p.map(i=>c.jsx(b,{block:i,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},i.id))]})})]}):null})}function Be(e){const t=g.useRef(null);function n(){var s;return["builder-blocks",(s=e.blocks)!=null&&s.length?"":"no-blocks",e.classNameProp].filter(Boolean).join(" ")}function r(){var s,l;x.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function o(){var s,l;x.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((l=window.parent)==null||l.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return g.useEffect(()=>{},[]),c.jsxs(c.Fragment,{children:[c.jsx(e.BlocksWrapper,{ref:t,className:n()+" props-blocks-wrapper-43ec7ac8","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>r(),onMouseEnter:s=>o(),onKeyPress:s=>r(),...e.BlocksWrapperProps,children:e.children}),c.jsx("style",{children:`.props-blocks-wrapper-43ec7ac8 {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: stretch;
|
|
12
|
-
}`})]})}function K(e){var r,o,s;const t=g.useContext(T.BuilderContext),n=g.useContext(N);return c.jsx(Be,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapper:((r=e.context)==null?void 0:r.BlocksWrapper)||t.BlocksWrapper,BlocksWrapperProps:((o=e.context)==null?void 0:o.BlocksWrapperProps)||t.BlocksWrapperProps,children:e.blocks?c.jsx(c.Fragment,{children:(s=e.blocks)==null?void 0:s.map(l=>c.jsx(b,{block:l,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},l.id))}):null})}const Pe=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));exports.Block=b;exports.Blocks=K;exports.ComponentsContext=N;exports.InlinedStyles=U;exports.blocks=Pe;exports.fastClone=E;exports.getSizesForBreakpoints=H;exports.mapStyleObjToStrIfNeeded=_;exports.set=$;exports.triggerAnimation=M;
|
|
12
|
+
}`})]})}function K(e){var r,o,s;const t=g.useContext(T.BuilderContext),n=g.useContext(N);return c.jsx(Be,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,classNameProp:e.className,BlocksWrapper:((r=e.context)==null?void 0:r.BlocksWrapper)||t.BlocksWrapper,BlocksWrapperProps:((o=e.context)==null?void 0:o.BlocksWrapperProps)||t.BlocksWrapperProps,children:e.blocks?c.jsx(c.Fragment,{children:(s=e.blocks)==null?void 0:s.map(l=>c.jsx(b,{block:l,linkComponent:e.linkComponent,context:e.context||t,registeredComponents:e.registeredComponents||n.registeredComponents},l.id))}):null})}const Pe=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));exports.Block=b;exports.Blocks=K;exports.ComponentsContext=N;exports.InlinedStyles=U;exports.blocks=Pe;exports.fastClone=E;exports.getSizesForBreakpoints=H;exports.mapStyleObjToStrIfNeeded=_;exports.set=$;exports.triggerAnimation=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-f0d7962f.cjs");const t=e.lazy(()=>Promise.resolve().then(()=>require("./button-ff78ab2a.cjs"))),r=e.lazy(()=>Promise.resolve().then(()=>require("./columns-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-f0d7962f.cjs");const t=e.lazy(()=>Promise.resolve().then(()=>require("./button-ff78ab2a.cjs"))),r=e.lazy(()=>Promise.resolve().then(()=>require("./columns-354a8faf.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./image-54d2f755.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-73a9d7cb.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./text-3dd73c6e.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./video-e20dcbbc.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-2a92a0c1.cjs")).then(o=>o.blocks)),m=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-f22b14d7.cjs"))),y=e.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:""});exports.Blocks=u;exports.BuilderContext=y;exports.Button=t;exports.Columns=r;exports.Content=m;exports.Fragment=n;exports.Image=s;exports.Section=i;exports.Symbol=l;exports.Text=c;exports.Video=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { lazy as t, createContext as n } from "react";
|
|
3
3
|
import "./server-entry-b3befa52.js";
|
|
4
|
-
const i = t(() => import("./button-d681583e.js")), r = t(() => import("./columns-
|
|
4
|
+
const i = t(() => import("./button-d681583e.js")), r = t(() => import("./columns-59392fea.js")), a = t(() => import("./fragment-1492bc7f.js")), c = t(() => import("./image-6970c193.js")), m = t(() => import("./section-d83e2dd3.js")), p = t(() => import("./symbol-0deda8a7.js")), l = t(() => import("./text-0a14d566.js")), u = t(() => import("./video-58c2cc8d.js")), d = t(() => import("./blocks-228052f4.js").then((o) => o.blocks)), x = t(() => import("./content-variants-983cfed6.js")), S = n({
|
|
5
5
|
content: null,
|
|
6
6
|
context: {},
|
|
7
7
|
localState: void 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),s=require("./blocks-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("react"),s=require("./blocks-2a92a0c1.cjs"),p=require("./dynamic-renderer-b29b45ca.cjs"),q=require("./get-class-prop-name-956dc1ac.cjs");require("./blocks-exports.cjs");require("./server-entry-f0d7962f.cjs");require("./evaluate-f8347208.cjs");const B=t=>`builder-columns ${t}-breakpoints`;function z(t){var k,g;const[u,A]=o.useState(()=>typeof t.space=="number"?t.space||0:20),[c,L]=o.useState(()=>t.columns||[]),[d,N]=o.useState(()=>t.stackColumnsAt||"tablet");function y(e){return e.link?t.builderLinkComponent||"a":"div"}function x(e){var n;return((n=c[e])==null?void 0:n.width)||100/c.length}function C(e){const n=x(e),i=u*(c.length-1)*(n/100);return`calc(${n}% - ${i}px)`}function a({stackedStyle:e,desktopStyle:n}){return d==="tablet"?e:n}function m({stackedStyle:e,desktopStyle:n}){return d==="never"?n:e}const[b,W]=o.useState(()=>t.stackColumnsAt==="never"?"row":t.reverseColumnsWhenStacked?"column-reverse":"column");function v(){return{"--flex-dir":b,"--flex-dir-tablet":a({stackedStyle:b,desktopStyle:"row"})}}function w(e){const n=e===0?0:u,i=C(e),r=`${n}px`,h="100%",S=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:h,desktopStyle:i}),"--column-margin-left-mobile":m({stackedStyle:S,desktopStyle:r}),"--column-width-tablet":a({stackedStyle:h,desktopStyle:i}),"--column-margin-left-tablet":a({stackedStyle:S,desktopStyle:r})}}function f(e){var i,r;return s.getSizesForBreakpoints(((r=(i=t.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[e].max}function $(){const e=`.${t.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
2
2
|
@media (max-width: ${f("medium")}px) {
|
|
3
3
|
.${t.builderBlock.id}-breakpoints {
|
|
4
4
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as y, Fragment as B, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r } from "react";
|
|
3
|
-
import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-
|
|
3
|
+
import { InlinedStyles as z, Blocks as A, mapStyleObjToStrIfNeeded as L, getSizesForBreakpoints as W } from "./blocks-228052f4.js";
|
|
4
4
|
import { DynamicRenderer as D } from "./dynamic-renderer-8b343325.js";
|
|
5
5
|
import { getClassPropName as N } from "./get-class-prop-name-8c8a1b1c.js";
|
|
6
6
|
import "./blocks-exports.mjs";
|
|
@@ -2,7 +2,7 @@ import { jsx as b, jsxs as N, Fragment as M } from "react/jsx-runtime";
|
|
|
2
2
|
import { lazy as v, useRef as q, useState as T, useEffect as C } from "react";
|
|
3
3
|
import { isBrowser as j, TARGET as G, isEditing as A, registerInsertMenu as ie, setupBrowserForEditing as oe, createRegisterComponentMessage as re, getDefaultCanTrack as D, _track as O, isPreviewing as le, fetchOneEntry as se, createEditorListener as de, serializeIncludingFunctions as _, logger as ue, handleABTestingSync as ce } from "./server-entry-b3befa52.js";
|
|
4
4
|
import { Video as me, Button as pe, Columns as ge, Fragment as fe, Image as he, Section as be, Symbol as ye, Text as xe, BuilderContext as ve } from "./blocks-exports.mjs";
|
|
5
|
-
import { triggerAnimation as Se, fastClone as Te, InlinedStyles as X, ComponentsContext as ke, Blocks as Ie } from "./blocks-
|
|
5
|
+
import { triggerAnimation as Se, fastClone as Te, InlinedStyles as X, ComponentsContext as ke, Blocks as Ie } from "./blocks-228052f4.js";
|
|
6
6
|
import { evaluate as Z } from "./evaluate-b7da3191.js";
|
|
7
7
|
import "./get-class-prop-name-8c8a1b1c.js";
|
|
8
8
|
import "./dynamic-renderer-8b343325.js";
|
|
@@ -543,7 +543,7 @@ const U = {
|
|
|
543
543
|
builderContext: !0,
|
|
544
544
|
builderComponents: !0
|
|
545
545
|
}
|
|
546
|
-
}, Ae = v(() => import("./slot-
|
|
546
|
+
}, Ae = v(() => import("./slot-f274570e.js")), Be = {
|
|
547
547
|
name: "Symbol",
|
|
548
548
|
noWrap: !0,
|
|
549
549
|
static: !0,
|
|
@@ -723,7 +723,7 @@ const U = {
|
|
|
723
723
|
builderComponents: !0,
|
|
724
724
|
builderLinkComponent: !0
|
|
725
725
|
}
|
|
726
|
-
}, Ue = v(() => import("./tabs-
|
|
726
|
+
}, Ue = v(() => import("./tabs-791385cc.js")), Le = {
|
|
727
727
|
shouldReceiveBuilderProps: {
|
|
728
728
|
builderBlock: !1,
|
|
729
729
|
builderContext: !0
|
|
@@ -1019,7 +1019,7 @@ const U = {
|
|
|
1019
1019
|
builderComponents: !0,
|
|
1020
1020
|
builderLinkComponent: !0
|
|
1021
1021
|
}
|
|
1022
|
-
}, Ke = v(() => import("./form-
|
|
1022
|
+
}, Ke = v(() => import("./form-52e60b8b.js")), Me = {
|
|
1023
1023
|
name: "Form:Input",
|
|
1024
1024
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1025
1025
|
inputs: [
|