@builder.io/sdk-react-nextjs 0.7.1-3 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/USE_CLIENT_BUNDLE-059d1502.cjs +23 -0
- package/lib/{node/USE_CLIENT_BUNDLE-3263fb05.mjs → browser/USE_CLIENT_BUNDLE-b256b942.js} +142 -142
- package/lib/{edge/USE_SERVER_BUNDLE-046e1bfb.mjs → browser/USE_SERVER_BUNDLE-1aa7d195.js} +1 -1
- package/lib/browser/USE_SERVER_BUNDLE-d96aeaff.cjs +1 -0
- package/lib/browser/{bundle-97bfd273.mjs → bundle-0a946b39.js} +953 -928
- package/lib/browser/bundle-3a5994f4.cjs +76 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +1 -0
- package/lib/browser/index.d.mts +1 -0
- package/lib/browser/index.mjs +3 -3
- package/lib/edge/USE_CLIENT_BUNDLE-210385b8.cjs +23 -0
- package/lib/{browser/USE_CLIENT_BUNDLE-a0cfd96e.mjs → edge/USE_CLIENT_BUNDLE-736c38f3.js} +142 -142
- package/lib/{node/USE_SERVER_BUNDLE-5a2dbc47.mjs → edge/USE_SERVER_BUNDLE-14516672.js} +1 -1
- package/lib/edge/USE_SERVER_BUNDLE-8c86a267.cjs +1 -0
- package/lib/edge/{bundle-4c987206.mjs → bundle-46eb4735.js} +1237 -1211
- package/lib/edge/{bundle-cb675da6.js → bundle-57428492.cjs} +30 -30
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +1 -0
- package/lib/edge/index.d.mts +1 -0
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-bcf2ccc8.mjs → node/USE_CLIENT_BUNDLE-2ae32ced.js} +142 -142
- package/lib/node/USE_CLIENT_BUNDLE-85a396bb.cjs +23 -0
- package/lib/{browser/USE_SERVER_BUNDLE-4b7a745a.mjs → node/USE_SERVER_BUNDLE-cd1f2a07.js} +1 -1
- package/lib/node/USE_SERVER_BUNDLE-e2ad5ce3.cjs +1 -0
- package/lib/node/bundle-3d88f873.cjs +116 -0
- package/lib/node/{bundle-e3f18037.mjs → bundle-d37c53b5.js} +794 -769
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +1 -0
- package/lib/node/index.d.mts +1 -0
- package/lib/node/index.mjs +3 -3
- package/package.json +8 -22
- package/types/{blocks → cjs/blocks}/button/button.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/columns/columns.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/custom-code/custom-code.d.ts +2 -2
- package/types/cjs/blocks/embed/embed.d.ts +6 -0
- package/types/{blocks → cjs/blocks}/fragment/fragment.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/image/image.d.ts +2 -2
- package/types/{blocks → cjs/blocks}/img/img.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/section/section.d.ts +4 -3
- package/types/{blocks → cjs/blocks}/symbol/symbol.d.ts +6 -4
- package/types/cjs/blocks/text/text.d.ts +6 -0
- package/types/{blocks → cjs/blocks}/video/video.d.ts +2 -2
- package/types/{components → cjs/components}/block/block.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/block-styles.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/block-wrapper.d.ts +6 -5
- package/types/cjs/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/{components → cjs/components}/block/components/component-ref/component-ref.helpers.d.ts +1 -1
- package/types/{components → cjs/components}/block/components/interactive-element.d.ts +2 -2
- package/types/{components → cjs/components}/block/components/repeated-block.d.ts +2 -2
- package/types/{components → cjs/components}/blocks/blocks-wrapper.d.ts +2 -2
- package/types/{components → cjs/components}/blocks/blocks.d.ts +3 -3
- package/types/{components → cjs/components}/content/components/enable-editor.d.ts +2 -2
- package/types/{components → cjs/components}/content/components/styles.d.ts +2 -2
- package/types/cjs/components/content/content.d.ts +4 -0
- package/types/{components → cjs/components}/content-variants/content-variants.d.ts +2 -2
- package/types/cjs/components/inlined-script.d.ts +7 -0
- package/types/cjs/components/inlined-styles.d.ts +7 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -0
- package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/{helpers → cjs/helpers}/preview-lru-cache/set.d.ts +1 -1
- package/types/{helpers → cjs/helpers}/preview-lru-cache/types.d.ts +1 -1
- package/types/cjs/index-helpers/blocks-exports.d.ts +19 -0
- package/types/{server-index.d.ts → cjs/server-index.d.ts} +2 -2
- package/types/esm/blocks/button/button.d.ts +12 -0
- package/types/esm/blocks/button/component-info.d.ts +2 -0
- package/types/esm/blocks/columns/columns.d.ts +17 -0
- package/types/esm/blocks/columns/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/esm/blocks/embed/component-info.d.ts +2 -0
- package/types/esm/blocks/embed/embed.d.ts +6 -0
- package/types/esm/blocks/embed/helpers.d.ts +1 -0
- package/types/esm/blocks/fragment/component-info.d.ts +2 -0
- package/types/esm/blocks/fragment/fragment.d.ts +8 -0
- package/types/esm/blocks/helpers.d.ts +13 -0
- package/types/esm/blocks/image/component-info.d.ts +2 -0
- package/types/esm/blocks/image/image.d.ts +22 -0
- package/types/esm/blocks/image/image.helpers.d.ts +1 -0
- package/types/esm/blocks/img/component-info.d.ts +2 -0
- package/types/esm/blocks/img/img.d.ts +14 -0
- package/types/esm/blocks/section/component-info.d.ts +2 -0
- package/types/esm/blocks/section/section.d.ts +12 -0
- package/types/esm/blocks/symbol/component-info.d.ts +2 -0
- package/types/esm/blocks/symbol/symbol.d.ts +26 -0
- package/types/esm/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/esm/blocks/text/component-info.d.ts +2 -0
- package/types/esm/blocks/text/text.d.ts +6 -0
- package/types/esm/blocks/video/component-info.d.ts +2 -0
- package/types/esm/blocks/video/video.d.ts +20 -0
- package/types/esm/components/block/block.d.ts +10 -0
- package/types/esm/components/block/block.helpers.d.ts +13 -0
- package/types/esm/components/block/components/block-styles.d.ts +9 -0
- package/types/esm/components/block/components/block-wrapper.d.ts +18 -0
- package/types/esm/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
- package/types/esm/components/block/components/interactive-element.d.ts +12 -0
- package/types/esm/components/block/components/repeated-block.d.ts +10 -0
- package/types/esm/components/block/types.d.ts +6 -0
- package/types/esm/components/blocks/blocks-wrapper.d.ts +11 -0
- package/types/esm/components/blocks/blocks.d.ts +9 -0
- package/types/esm/components/content/components/enable-editor.d.ts +10 -0
- package/types/esm/components/content/components/styles.d.ts +9 -0
- package/types/esm/components/content/components/styles.helpers.d.ts +15 -0
- package/types/esm/components/content/content.d.ts +4 -0
- package/types/esm/components/content/content.helpers.d.ts +7 -0
- package/types/esm/components/content/content.types.d.ts +24 -0
- package/types/esm/components/content/wrap-component-ref.d.ts +6 -0
- package/types/esm/components/content-variants/content-variants.d.ts +10 -0
- package/types/esm/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/esm/components/content-variants/helpers.d.ts +41 -0
- package/types/esm/components/inlined-script.d.ts +7 -0
- package/types/esm/components/inlined-styles.d.ts +7 -0
- package/types/esm/constants/builder-registered-components.d.ts +6 -0
- package/types/esm/constants/device-sizes.d.ts +13 -0
- package/types/esm/constants/sdk-version.d.ts +1 -0
- package/types/esm/constants/target.d.ts +2 -0
- package/types/esm/context/builder.context.d.ts +3 -0
- package/types/esm/context/components.context.d.ts +3 -0
- package/types/esm/context/types.d.ts +35 -0
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/esm/functions/deopt.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/esm/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/esm/functions/evaluate/evaluate.d.ts +2 -0
- package/types/esm/functions/evaluate/helpers.d.ts +24 -0
- package/types/esm/functions/evaluate/index.d.ts +1 -0
- package/types/esm/functions/event-handler-name.d.ts +1 -0
- package/types/esm/functions/extract-text-styles.d.ts +4 -0
- package/types/esm/functions/fast-clone.d.ts +4 -0
- package/types/esm/functions/fetch-builder-props.d.ts +53 -0
- package/types/esm/functions/get-block-actions-handler.d.ts +8 -0
- package/types/esm/functions/get-block-actions.d.ts +10 -0
- package/types/esm/functions/get-block-component-options.d.ts +2 -0
- package/types/esm/functions/get-block-properties.d.ts +6 -0
- package/types/esm/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/esm/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/esm/functions/get-content/index.d.ts +28 -0
- package/types/esm/functions/get-content/types.d.ts +142 -0
- package/types/esm/functions/get-fetch.d.ts +1 -0
- package/types/esm/functions/get-global-this.d.ts +4 -0
- package/types/esm/functions/get-processed-block.d.ts +10 -0
- package/types/esm/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/esm/functions/is-browser.d.ts +1 -0
- package/types/esm/functions/is-editing.d.ts +1 -0
- package/types/esm/functions/is-iframe.d.ts +1 -0
- package/types/esm/functions/is-previewing.d.ts +1 -0
- package/types/esm/functions/register-component.d.ts +15 -0
- package/types/esm/functions/register.d.ts +16 -0
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/esm/functions/set-editor-settings.d.ts +4 -0
- package/types/esm/functions/set.d.ts +7 -0
- package/types/esm/functions/track/helpers.d.ts +5 -0
- package/types/esm/functions/track/index.d.ts +51 -0
- package/types/esm/functions/track/interaction.d.ts +13 -0
- package/types/esm/functions/transform-block-properties.d.ts +1 -0
- package/types/esm/functions/transform-block.d.ts +2 -0
- package/types/esm/helpers/ab-tests.d.ts +9 -0
- package/types/esm/helpers/canTrack.d.ts +1 -0
- package/types/esm/helpers/cookie.d.ts +19 -0
- package/types/esm/helpers/css.d.ts +7 -0
- package/types/esm/helpers/flatten.d.ts +6 -0
- package/types/esm/helpers/localStorage.d.ts +9 -0
- package/types/esm/helpers/logger.d.ts +6 -0
- package/types/esm/helpers/nullable.d.ts +2 -0
- package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/esm/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/esm/helpers/preview-lru-cache/types.d.ts +12 -0
- package/types/esm/helpers/sessionId.d.ts +6 -0
- package/types/esm/helpers/url.d.ts +6 -0
- package/types/esm/helpers/uuid.d.ts +8 -0
- package/types/esm/helpers/visitorId.d.ts +6 -0
- package/types/esm/index-helpers/blocks-exports.d.ts +19 -0
- package/types/esm/index-helpers/top-of-file.d.ts +1 -0
- package/types/esm/index.d.ts +7 -0
- package/types/esm/scripts/init-editing.d.ts +6 -0
- package/types/esm/server-index.d.ts +15 -0
- package/types/esm/types/api-version.d.ts +2 -0
- package/types/esm/types/builder-block.d.ts +66 -0
- package/types/esm/types/builder-content.d.ts +44 -0
- package/types/esm/types/builder-props.d.ts +9 -0
- package/types/esm/types/can-track.d.ts +3 -0
- package/types/esm/types/components.d.ts +110 -0
- package/types/esm/types/deep-partial.d.ts +3 -0
- package/types/esm/types/element.d.ts +59 -0
- package/types/esm/types/enforced-partials.d.ts +21 -0
- package/types/esm/types/input.d.ts +121 -0
- package/types/esm/types/targets.d.ts +1 -0
- package/types/esm/types/typescript.d.ts +11 -0
- package/lib/browser/USE_CLIENT_BUNDLE-36991304.js +0 -23
- package/lib/browser/USE_SERVER_BUNDLE-2ca6fbdb.js +0 -1
- package/lib/browser/bundle-55af31a8.js +0 -76
- package/lib/edge/USE_CLIENT_BUNDLE-66349ab4.js +0 -23
- package/lib/edge/USE_SERVER_BUNDLE-02f64ca7.js +0 -1
- package/lib/node/USE_CLIENT_BUNDLE-9a315fd7.js +0 -23
- package/lib/node/USE_SERVER_BUNDLE-ddf14d3b.js +0 -1
- package/lib/node/bundle-b8de5bb9.js +0 -116
- package/types/blocks/embed/embed.d.ts +0 -6
- package/types/blocks/text/text.d.ts +0 -6
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -4
- package/types/components/content/content.d.ts +0 -4
- package/types/components/inlined-script.d.ts +0 -7
- package/types/components/inlined-styles.d.ts +0 -7
- package/types/constants/sdk-version.d.ts +0 -1
- package/types/helpers/preview-lru-cache/get.d.ts +0 -1
- package/types/index-helpers/blocks-exports.d.ts +0 -19
- package/types/{blocks → cjs/blocks}/button/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/columns/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/custom-code/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/embed/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/embed/helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/fragment/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/image/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/image/image.helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/img/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/section/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/symbol/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/symbol/symbol.helpers.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/text/component-info.d.ts +0 -0
- package/types/{blocks → cjs/blocks}/video/component-info.d.ts +0 -0
- package/types/{components → cjs/components}/block/block.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/block/types.d.ts +0 -0
- package/types/{components → cjs/components}/content/components/styles.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/content/content.helpers.d.ts +0 -0
- package/types/{components → cjs/components}/content/content.types.d.ts +0 -0
- package/types/{components → cjs/components}/content/wrap-component-ref.d.ts +0 -0
- package/types/{components → cjs/components}/content-variants/content-variants.types.d.ts +0 -0
- package/types/{components → cjs/components}/content-variants/helpers.d.ts +0 -0
- package/types/{constants → cjs/constants}/builder-registered-components.d.ts +0 -0
- package/types/{constants → cjs/constants}/device-sizes.d.ts +0 -0
- package/types/{constants → cjs/constants}/target.d.ts +0 -0
- package/types/{context → cjs/context}/builder.context.d.ts +0 -0
- package/types/{context → cjs/context}/components.context.d.ts +0 -0
- package/types/{context → cjs/context}/types.d.ts +1 -1
- package/types/{functions → cjs/functions}/camel-to-kebab-case.d.ts +0 -0
- package/types/{functions → cjs/functions}/deopt.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/browser-runtime/browser.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/browser-runtime/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/choose-eval.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/evaluate.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/helpers.d.ts +0 -0
- package/types/{functions → cjs/functions}/evaluate/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/event-handler-name.d.ts +0 -0
- package/types/{functions → cjs/functions}/extract-text-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/fast-clone.d.ts +0 -0
- package/types/{functions → cjs/functions}/fetch-builder-props.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-actions-handler.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-actions.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-component-options.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-block-properties.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-builder-search-params/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/generate-content-url.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-content/types.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-fetch.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-global-this.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-processed-block.d.ts +0 -0
- package/types/{functions → cjs/functions}/get-react-native-block-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-browser.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-editing.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-iframe.d.ts +0 -0
- package/types/{functions → cjs/functions}/is-previewing.d.ts +0 -0
- package/types/{functions → cjs/functions}/register-component.d.ts +0 -0
- package/types/{functions → cjs/functions}/register.d.ts +0 -0
- package/types/{functions → cjs/functions}/sanitize-react-native-block-styles.d.ts +0 -0
- package/types/{functions → cjs/functions}/set-editor-settings.d.ts +0 -0
- package/types/{functions → cjs/functions}/set.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/helpers.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/index.d.ts +0 -0
- package/types/{functions → cjs/functions}/track/interaction.d.ts +0 -0
- package/types/{functions → cjs/functions}/transform-block-properties.d.ts +0 -0
- package/types/{functions → cjs/functions}/transform-block.d.ts +0 -0
- package/types/{helpers → cjs/helpers}/ab-tests.d.ts +1 -1
- /package/types/{helpers → cjs/helpers}/canTrack.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/cookie.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/css.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/flatten.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/localStorage.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/logger.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/nullable.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/preview-lru-cache/helpers.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/preview-lru-cache/init.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/sessionId.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/url.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/uuid.d.ts +0 -0
- /package/types/{helpers → cjs/helpers}/visitorId.d.ts +0 -0
- /package/types/{index-helpers → cjs/index-helpers}/top-of-file.d.ts +0 -0
- /package/types/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/types/{scripts → cjs/scripts}/init-editing.d.ts +0 -0
- /package/types/{types → cjs/types}/api-version.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-block.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-content.d.ts +0 -0
- /package/types/{types → cjs/types}/builder-props.d.ts +0 -0
- /package/types/{types → cjs/types}/can-track.d.ts +0 -0
- /package/types/{types → cjs/types}/components.d.ts +0 -0
- /package/types/{types → cjs/types}/deep-partial.d.ts +0 -0
- /package/types/{types → cjs/types}/element.d.ts +0 -0
- /package/types/{types → cjs/types}/enforced-partials.d.ts +0 -0
- /package/types/{types → cjs/types}/input.d.ts +0 -0
- /package/types/{types → cjs/types}/targets.d.ts +0 -0
- /package/types/{types → cjs/types}/typescript.d.ts +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-3a5994f4.cjs"),o=require("react"),_=require("./USE_SERVER_BUNDLE-d96aeaff.cjs"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
|
|
2
|
+
all: unset;
|
|
3
|
+
}`})]})}function A(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function V(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function z(e){function c(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;a.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;a.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:c()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
}`})]})}function D(e){return t.jsx("span",{children:e.children})}function U(e){var s,x,k,S;function c(){var b;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),a.getSrcSet(d)}else if(e.image&&!e.srcset)return a.getSrcSet(d);return a.getSrcSet(d)}function g(){var f;return(f=c==null?void 0:c())!=null&&f.match(/builder\.io/)&&!e.noWebp?c().replace(/\?/g,"?format=webp&"):""}function h(){const f={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?f:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...h()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:c(),sizes:e.sizes})]}),e.aspectRatio&&!((x=(s=e.builderBlock)==null?void 0:s.children)!=null&&x.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(S=(k=e.builderBlock)==null?void 0:k.children)!=null&&S.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
transition: opacity 0.2s ease-in-out;
|
|
10
|
+
}.div-dbab4030 {
|
|
11
|
+
width: 100%;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
font-size: 0;
|
|
14
|
+
}.div-dbab4030-2 {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}`})]})}function H(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function O(e){const c=o.useRef(null),[g,h]=o.useState(()=>[]),[s,x]=o.useState(()=>[]);return o.useEffect(()=>{var S;if(!((S=c.current)!=null&&S.getElementsByTagName)||typeof window>"u")return;const k=c.current.getElementsByTagName("script");for(let f=0;f<k.length;f++){const d=k[f];if(d.src){if(g.includes(d.src))continue;g.push(d.src);const b=document.createElement("script");b.async=!0,b.src=d.src,document.head.appendChild(b)}else if(!d.type||["text/javascript","application/javascript","application/ecmascript"].includes(d.type)){if(s.includes(d.innerText))continue;try{s.push(d.innerText),new Function(d.innerText)()}catch(b){console.warn("`CustomCode`: Error running script:",b)}}}},[]),t.jsx("div",{ref:c,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function J(e){const c=o.useRef(null),[g,h]=o.useState(()=>[]),[s,x]=o.useState(()=>[]),[k,S]=o.useState(()=>!1);function f(){if(!c.current||!c.current.getElementsByTagName)return;const d=c.current.getElementsByTagName("script");for(let b=0;b<d.length;b++){const v=d[b];if(v.src&&!g.includes(v.src)){g.push(v.src);const y=document.createElement("script");y.async=!0,y.src=v.src,document.head.appendChild(y)}else if(a.isJsScript(v)&&!s.includes(v.innerText))try{s.push(v.innerText),new Function(v.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return o.useEffect(()=>{c.current&&!k&&(S(!0),f())},[c.current,k]),t.jsx("div",{className:"builder-embed",ref:c,dangerouslySetInnerHTML:{__html:e.content}})}function G(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},a.isEditing()&&e.imgSrc||"default-key")}function $(e){var h;function c(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...e.attributes,...c()}}return t.jsx("video",{...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(h=e.attributes)==null?void 0:h.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage})}const Q=o.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}});function X(e){var R,I,P,T,F;const c=o.useRef(null),[g,h]=o.useState(()=>0);function s(n){var r,l,u,m,B;const i={...e.builderContextSignal.content,...n,data:{...(r=e.builderContextSignal.content)==null?void 0:r.data,...n==null?void 0:n.data},meta:{...(l=e.builderContextSignal.content)==null?void 0:l.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((B=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:B.breakpoints)}};_.postPreviewContent({value:i,key:i.id}).then(()=>{q.refresh()})}o.useState(()=>0);const[x,k]=o.useState(()=>!1);function S(n){var r;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const l=i.data,{breakpoints:u,contentId:m}=l;if(!m||m!==((r=e.builderContextSignal.content)==null?void 0:r.id))return;u&&s({meta:{breakpoints:u}}),h(g+1);break}case"builder.contentUpdate":{const l=i.data,u=l.key||l.alias||l.entry||l.modelName,m=l.data;u===e.model&&(s(m),h(g+1));break}}}function f(){var i,r;const n=(r=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:r.jsCode;n&&a.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[d,b]=o.useState(()=>({})),[v,y]=o.useState(()=>!1);function N(n){var i,r;if(e.builderContextSignal.content){const l=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(r=e.builderContextSignal.content)==null?void 0:r.id;a._track({type:"click",canTrack:a.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:l!==u?l:void 0,...a.getInteractionPropertiesForEvent(n),unique:!v})}v||y(!0)}function L(n){return n.replace(/{{([^}]+)}}/g,(i,r)=>a.evaluate({code:r,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function K({url:n,key:i}){a.fetch(n).then(r=>r.json()).then(r=>{var u,m;const l={...e.builderContextSignal.rootState,[i]:r};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,l),d[i]=!0}).catch(r=>{console.error("error fetching dynamic data",n,r)})}function C(){var i,r;const n=((r=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:r.httpRequests)??{};Object.entries(n).forEach(([l,u])=>{if(u&&(!d[l]||a.isEditing())){const m=L(u);K({url:m,key:l})}})}function E(){a.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:a.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function j(n){h(g+1),window.addEventListener("message",S),a.registerInsertMenu(),a.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var l;const r=a.createRegisterComponentMessage(i);(l=window.parent)==null||l.postMessage(r,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",E)}function w(n){const i=new URL(location.href).searchParams,r=i.get("builder.preview"),l=i.get(`builder.preview.${r}`),u=i.get("apiKey")||i.get("builder.space");r===e.model&&u===e.apiKey&&(!e.content||l===e.content.id)&&a.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const q=M.useRouter();return o.useEffect(()=>{var n;return(n=c.current)==null||n.addEventListener("initeditingbldr",j),()=>{var i;return(i=c.current)==null?void 0:i.removeEventListener("initeditingbldr",j)}},[]),o.useEffect(()=>{var n;return(n=c.current)==null||n.addEventListener("initpreviewingbldr",w),()=>{var i;return(i=c.current)==null?void 0:i.removeEventListener("initpreviewingbldr",w)}},[]),o.useEffect(()=>{var n,i;if(a.isBrowser()){if(a.isEditing()&&c.current&&c.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&a.getDefaultCanTrack(e.canTrack)){const l=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;a._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:l!==u?l:void 0})}a.isPreviewing()&&c.current}},[]),o.useEffect(()=>{e.apiKey||a.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),f(),C(),E()},[]),o.useEffect(()=>{},[e.content]),o.useEffect(()=>{a.isBrowser()&&(window.removeEventListener("message",S),window.addEventListener("message",S))},[x]),o.useEffect(()=>{f()},[(I=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:I.jsCode,e.builderContextSignal.rootState]),o.useEffect(()=>{C()},[(T=(P=e.builderContextSignal.content)==null?void 0:P.data)==null?void 0:T.httpRequests]),o.useEffect(()=>{E()},[e.builderContextSignal.rootState]),o.useEffect(()=>()=>{a.isBrowser()&&(window.removeEventListener("message",S),window.removeEventListener("builder:component:stateChangeListenerActivated",E))},[]),t.jsx(Q.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:o.createElement("div",{key:g,ref:c,onClick:n=>N(n),"builder-content-id":(F=e.builderContextSignal.content)==null?void 0:F.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},className:e.classNameProp},e.children)}):null})}exports.BlockWrapper=A;exports.BlocksWrapper=z;exports.Button=W;exports.CustomCode=O;exports.Embed=J;exports.EnableEditor=X;exports.FragmentComponent=D;exports.Image=U;exports.ImgComponent=G;exports.InteractiveElement=V;exports.SectionComponent=H;exports.Video=$;
|
|
@@ -1,60 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as w, Fragment as
|
|
3
|
-
import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-
|
|
2
|
+
import { jsxs as w, Fragment as b, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-0a946b39.js";
|
|
4
4
|
import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
|
|
5
|
-
import { p as ce } from "./USE_SERVER_BUNDLE-
|
|
5
|
+
import { p as ce } from "./USE_SERVER_BUNDLE-1aa7d195.js";
|
|
6
6
|
import { useRouter as re } from "next/navigation";
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */ w(
|
|
9
|
-
e.link ? /* @__PURE__ */ c(
|
|
7
|
+
function be(e) {
|
|
8
|
+
return /* @__PURE__ */ w(b, { children: [
|
|
9
|
+
e.link ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
|
|
10
10
|
"a",
|
|
11
11
|
{
|
|
12
|
-
role: "button",
|
|
13
12
|
...e.attributes,
|
|
14
13
|
href: e.link,
|
|
15
14
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
15
|
+
role: "button",
|
|
16
16
|
children: e.text
|
|
17
17
|
}
|
|
18
|
-
) }) : /* @__PURE__ */ c(
|
|
18
|
+
) }) : /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
|
|
19
19
|
"button",
|
|
20
20
|
{
|
|
21
21
|
...e.attributes,
|
|
22
22
|
style: e.attributes.style,
|
|
23
|
-
className: e.attributes.className + " button-
|
|
23
|
+
className: e.attributes.className + " button-5294b10c",
|
|
24
24
|
children: e.text
|
|
25
25
|
}
|
|
26
26
|
) }),
|
|
27
|
-
/* @__PURE__ */ c("style", { children: `.button-
|
|
27
|
+
/* @__PURE__ */ c("style", { children: `.button-5294b10c {
|
|
28
28
|
all: unset;
|
|
29
29
|
}` })
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
e.Wrapper,
|
|
35
|
-
{
|
|
36
|
-
...e.wrapperProps,
|
|
37
|
-
attributes: {
|
|
38
|
-
...T({
|
|
39
|
-
block: e.block,
|
|
40
|
-
context: e.context
|
|
41
|
-
}),
|
|
42
|
-
...N({
|
|
43
|
-
block: e.block,
|
|
44
|
-
rootState: e.context.rootState,
|
|
45
|
-
rootSetState: e.context.rootSetState,
|
|
46
|
-
localState: e.context.localState,
|
|
47
|
-
context: e.context.context
|
|
48
|
-
})
|
|
49
|
-
},
|
|
50
|
-
children: e.children
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function be(e) {
|
|
55
|
-
return /* @__PURE__ */ w(g, { children: [
|
|
32
|
+
function ge(e) {
|
|
33
|
+
return /* @__PURE__ */ w(b, { children: [
|
|
56
34
|
" ",
|
|
57
|
-
e.hasChildren ? /* @__PURE__ */ c(
|
|
35
|
+
e.hasChildren ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ w(
|
|
58
36
|
e.Wrapper,
|
|
59
37
|
{
|
|
60
38
|
...T({
|
|
@@ -75,7 +53,7 @@ function be(e) {
|
|
|
75
53
|
" "
|
|
76
54
|
]
|
|
77
55
|
}
|
|
78
|
-
) }) : /* @__PURE__ */ c(
|
|
56
|
+
) }) : /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
|
|
79
57
|
e.Wrapper,
|
|
80
58
|
{
|
|
81
59
|
...T({
|
|
@@ -95,6 +73,28 @@ function be(e) {
|
|
|
95
73
|
" "
|
|
96
74
|
] });
|
|
97
75
|
}
|
|
76
|
+
function he(e) {
|
|
77
|
+
return /* @__PURE__ */ c(
|
|
78
|
+
e.Wrapper,
|
|
79
|
+
{
|
|
80
|
+
...e.wrapperProps,
|
|
81
|
+
attributes: {
|
|
82
|
+
...T({
|
|
83
|
+
block: e.block,
|
|
84
|
+
context: e.context
|
|
85
|
+
}),
|
|
86
|
+
...N({
|
|
87
|
+
block: e.block,
|
|
88
|
+
rootState: e.context.rootState,
|
|
89
|
+
rootSetState: e.context.rootSetState,
|
|
90
|
+
localState: e.context.localState,
|
|
91
|
+
context: e.context.context
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
children: e.children
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
98
|
function fe(e) {
|
|
99
99
|
function i() {
|
|
100
100
|
var o;
|
|
@@ -113,7 +113,7 @@ function fe(e) {
|
|
|
113
113
|
"*"
|
|
114
114
|
));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function h() {
|
|
117
117
|
var o, f;
|
|
118
118
|
E() && !((o = e.blocks) != null && o.length) && ((f = window.parent) == null || f.postMessage(
|
|
119
119
|
{
|
|
@@ -126,7 +126,7 @@ function fe(e) {
|
|
|
126
126
|
"*"
|
|
127
127
|
));
|
|
128
128
|
}
|
|
129
|
-
return /* @__PURE__ */ w(
|
|
129
|
+
return /* @__PURE__ */ w(b, { children: [
|
|
130
130
|
/* @__PURE__ */ c(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
@@ -135,7 +135,7 @@ function fe(e) {
|
|
|
135
135
|
"builder-parent-id": e.parent,
|
|
136
136
|
style: e.styleProp,
|
|
137
137
|
onClick: (o) => s(),
|
|
138
|
-
onMouseEnter: (o) =>
|
|
138
|
+
onMouseEnter: (o) => h(),
|
|
139
139
|
onKeyPress: (o) => s(),
|
|
140
140
|
children: e.children
|
|
141
141
|
}
|
|
@@ -153,13 +153,13 @@ function Se(e) {
|
|
|
153
153
|
function xe(e) {
|
|
154
154
|
var o, f, k, S;
|
|
155
155
|
function i() {
|
|
156
|
-
var
|
|
156
|
+
var g;
|
|
157
157
|
const l = e.image || e.src;
|
|
158
158
|
if (!l || // We can auto add srcset for cdn.builder.io and shopify
|
|
159
159
|
// images, otherwise you can supply this prop manually
|
|
160
160
|
!(l.match(/builder\.io/) || l.match(/cdn\.shopify\.com/)))
|
|
161
161
|
return e.srcset;
|
|
162
|
-
if (e.srcset && ((
|
|
162
|
+
if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
|
|
163
163
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
164
164
|
return console.debug("Removed given srcset"), R(l);
|
|
165
165
|
} else if (e.image && !e.srcset)
|
|
@@ -170,7 +170,7 @@ function xe(e) {
|
|
|
170
170
|
var m;
|
|
171
171
|
return (m = i == null ? void 0 : i()) != null && m.match(/builder\.io/) && !e.noWebp ? i().replace(/\?/g, "?format=webp&") : "";
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function h() {
|
|
174
174
|
const m = {
|
|
175
175
|
position: "absolute",
|
|
176
176
|
height: "100%",
|
|
@@ -180,10 +180,10 @@ function xe(e) {
|
|
|
180
180
|
};
|
|
181
181
|
return e.aspectRatio ? m : void 0;
|
|
182
182
|
}
|
|
183
|
-
return /* @__PURE__ */ w(
|
|
184
|
-
/* @__PURE__ */ w(
|
|
183
|
+
return /* @__PURE__ */ w(b, { children: [
|
|
184
|
+
/* @__PURE__ */ w(b, { children: [
|
|
185
185
|
/* @__PURE__ */ w("picture", { children: [
|
|
186
|
-
s() ? /* @__PURE__ */ c(
|
|
186
|
+
s() ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: s() }) }) : null,
|
|
187
187
|
/* @__PURE__ */ c(
|
|
188
188
|
"img",
|
|
189
189
|
{
|
|
@@ -193,35 +193,35 @@ function xe(e) {
|
|
|
193
193
|
style: {
|
|
194
194
|
objectPosition: e.backgroundPosition || "center",
|
|
195
195
|
objectFit: e.backgroundSize || "cover",
|
|
196
|
-
...
|
|
196
|
+
...h()
|
|
197
197
|
},
|
|
198
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
198
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-dbab4030",
|
|
199
199
|
src: e.image,
|
|
200
200
|
srcSet: i(),
|
|
201
201
|
sizes: e.sizes
|
|
202
202
|
}
|
|
203
203
|
)
|
|
204
204
|
] }),
|
|
205
|
-
e.aspectRatio && !((f = (o = e.builderBlock) == null ? void 0 : o.children) != null && f.length && e.fitContent) ? /* @__PURE__ */ c(
|
|
205
|
+
e.aspectRatio && !((f = (o = e.builderBlock) == null ? void 0 : o.children) != null && f.length && e.fitContent) ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
|
|
206
206
|
"div",
|
|
207
207
|
{
|
|
208
|
-
className: "builder-image-sizer div-
|
|
208
|
+
className: "builder-image-sizer div-dbab4030",
|
|
209
209
|
style: {
|
|
210
210
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
) }) : null,
|
|
214
|
-
(S = (k = e.builderBlock) == null ? void 0 : k.children) != null && S.length && e.fitContent ? /* @__PURE__ */ c(
|
|
215
|
-
!e.fitContent && e.children ? /* @__PURE__ */ c(
|
|
214
|
+
(S = (k = e.builderBlock) == null ? void 0 : k.children) != null && S.length && e.fitContent ? /* @__PURE__ */ c(b, { children: e.children }) : null,
|
|
215
|
+
!e.fitContent && e.children ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("div", { className: "div-dbab4030-2", children: e.children }) }) : null
|
|
216
216
|
] }),
|
|
217
|
-
/* @__PURE__ */ c("style", { children: `.img-
|
|
217
|
+
/* @__PURE__ */ c("style", { children: `.img-dbab4030 {
|
|
218
218
|
opacity: 1;
|
|
219
219
|
transition: opacity 0.2s ease-in-out;
|
|
220
|
-
}.div-
|
|
220
|
+
}.div-dbab4030 {
|
|
221
221
|
width: 100%;
|
|
222
222
|
pointer-events: none;
|
|
223
223
|
font-size: 0;
|
|
224
|
-
}.div-
|
|
224
|
+
}.div-dbab4030-2 {
|
|
225
225
|
display: flex;
|
|
226
226
|
flex-direction: column;
|
|
227
227
|
align-items: stretch;
|
|
@@ -255,60 +255,51 @@ function ve(e) {
|
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
function ye(e) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
258
|
+
const i = j(null), [s, h] = y(() => []), [o, f] = y(() => []);
|
|
259
|
+
return x(() => {
|
|
260
|
+
var S;
|
|
261
|
+
if (!((S = i.current) != null && S.getElementsByTagName) || typeof window > "u")
|
|
262
|
+
return;
|
|
263
|
+
const k = i.current.getElementsByTagName("script");
|
|
264
|
+
for (let m = 0; m < k.length; m++) {
|
|
265
|
+
const l = k[m];
|
|
266
|
+
if (l.src) {
|
|
267
|
+
if (s.includes(l.src))
|
|
268
|
+
continue;
|
|
269
|
+
s.push(l.src);
|
|
270
|
+
const g = document.createElement("script");
|
|
271
|
+
g.async = !0, g.src = l.src, document.head.appendChild(g);
|
|
272
|
+
} else if (!l.type || [
|
|
273
|
+
"text/javascript",
|
|
274
|
+
"application/javascript",
|
|
275
|
+
"application/ecmascript"
|
|
276
|
+
].includes(l.type)) {
|
|
277
|
+
if (o.includes(l.innerText))
|
|
278
|
+
continue;
|
|
279
|
+
try {
|
|
280
|
+
o.push(l.innerText), new Function(l.innerText)();
|
|
281
|
+
} catch (g) {
|
|
282
|
+
console.warn("`CustomCode`: Error running script:", g);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}, []), /* @__PURE__ */ c(
|
|
287
|
+
"div",
|
|
286
288
|
{
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
width: "100%",
|
|
291
|
-
height: "100%",
|
|
292
|
-
...(b = e.attributes) == null ? void 0 : b.style,
|
|
293
|
-
objectFit: e.fit,
|
|
294
|
-
objectPosition: e.position,
|
|
295
|
-
// Hack to get object fit to work as expected and
|
|
296
|
-
// not have the video overflow
|
|
297
|
-
borderRadius: 1
|
|
298
|
-
},
|
|
299
|
-
src: e.video || "no-src",
|
|
300
|
-
poster: e.posterImage
|
|
289
|
+
ref: i,
|
|
290
|
+
className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
|
|
291
|
+
dangerouslySetInnerHTML: { __html: e.code }
|
|
301
292
|
}
|
|
302
293
|
);
|
|
303
294
|
}
|
|
304
295
|
function ke(e) {
|
|
305
|
-
const i = j(null), [s,
|
|
296
|
+
const i = j(null), [s, h] = y(() => []), [o, f] = y(() => []), [k, S] = y(() => !1);
|
|
306
297
|
function m() {
|
|
307
298
|
if (!i.current || !i.current.getElementsByTagName)
|
|
308
299
|
return;
|
|
309
300
|
const l = i.current.getElementsByTagName("script");
|
|
310
|
-
for (let
|
|
311
|
-
const v = l[
|
|
301
|
+
for (let g = 0; g < l.length; g++) {
|
|
302
|
+
const v = l[g];
|
|
312
303
|
if (v.src && !s.includes(v.src)) {
|
|
313
304
|
s.push(v.src);
|
|
314
305
|
const C = document.createElement("script");
|
|
@@ -348,40 +339,49 @@ function Ce(e) {
|
|
|
348
339
|
);
|
|
349
340
|
}
|
|
350
341
|
function we(e) {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}, []), /* @__PURE__ */ c(
|
|
380
|
-
"div",
|
|
342
|
+
var h;
|
|
343
|
+
function i() {
|
|
344
|
+
return {
|
|
345
|
+
...e.autoPlay === !0 ? {
|
|
346
|
+
autoPlay: !0
|
|
347
|
+
} : {},
|
|
348
|
+
...e.muted === !0 ? {
|
|
349
|
+
muted: !0
|
|
350
|
+
} : {},
|
|
351
|
+
...e.controls === !0 ? {
|
|
352
|
+
controls: !0
|
|
353
|
+
} : {},
|
|
354
|
+
...e.loop === !0 ? {
|
|
355
|
+
loop: !0
|
|
356
|
+
} : {},
|
|
357
|
+
...e.playsInline === !0 ? {
|
|
358
|
+
playsInline: !0
|
|
359
|
+
} : {}
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
function s() {
|
|
363
|
+
return {
|
|
364
|
+
...e.attributes,
|
|
365
|
+
...i()
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
return /* @__PURE__ */ c(
|
|
369
|
+
"video",
|
|
381
370
|
{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
371
|
+
...s(),
|
|
372
|
+
preload: e.preload || "metadata",
|
|
373
|
+
style: {
|
|
374
|
+
width: "100%",
|
|
375
|
+
height: "100%",
|
|
376
|
+
...(h = e.attributes) == null ? void 0 : h.style,
|
|
377
|
+
objectFit: e.fit,
|
|
378
|
+
objectPosition: e.position,
|
|
379
|
+
// Hack to get object fit to work as expected and
|
|
380
|
+
// not have the video overflow
|
|
381
|
+
borderRadius: 1
|
|
382
|
+
},
|
|
383
|
+
src: e.video || "no-src",
|
|
384
|
+
poster: e.posterImage
|
|
385
385
|
}
|
|
386
386
|
);
|
|
387
387
|
}
|
|
@@ -399,7 +399,7 @@ const oe = ie({
|
|
|
399
399
|
});
|
|
400
400
|
function Ee(e) {
|
|
401
401
|
var F, M, _, q, z;
|
|
402
|
-
const i = j(null), [s,
|
|
402
|
+
const i = j(null), [s, h] = y(() => 0);
|
|
403
403
|
function o(t) {
|
|
404
404
|
var a, r, d, u, V;
|
|
405
405
|
const n = {
|
|
@@ -439,12 +439,12 @@ function Ee(e) {
|
|
|
439
439
|
meta: {
|
|
440
440
|
breakpoints: d
|
|
441
441
|
}
|
|
442
|
-
}),
|
|
442
|
+
}), h(s + 1);
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
case "builder.contentUpdate": {
|
|
446
446
|
const r = n.data, d = r.key || r.alias || r.entry || r.modelName, u = r.data;
|
|
447
|
-
d === e.model && (o(u),
|
|
447
|
+
d === e.model && (o(u), h(s + 1));
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -460,7 +460,7 @@ function Ee(e) {
|
|
|
460
460
|
rootSetState: e.builderContextSignal.rootSetState
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
const [l,
|
|
463
|
+
const [l, g] = y(() => ({})), [v, C] = y(() => !1);
|
|
464
464
|
function U(t) {
|
|
465
465
|
var n, a;
|
|
466
466
|
if (e.builderContextSignal.content) {
|
|
@@ -530,7 +530,7 @@ function Ee(e) {
|
|
|
530
530
|
);
|
|
531
531
|
}
|
|
532
532
|
function B(t) {
|
|
533
|
-
|
|
533
|
+
h(s + 1), window.addEventListener("message", S), Z(), p({
|
|
534
534
|
...e.locale ? {
|
|
535
535
|
locale: e.locale
|
|
536
536
|
} : {},
|
|
@@ -624,7 +624,7 @@ function Ee(e) {
|
|
|
624
624
|
"builder:component:stateChangeListenerActivated",
|
|
625
625
|
I
|
|
626
626
|
));
|
|
627
|
-
}, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
|
|
627
|
+
}, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ ae(
|
|
628
628
|
"div",
|
|
629
629
|
{
|
|
630
630
|
key: s,
|
|
@@ -642,15 +642,15 @@ function Ee(e) {
|
|
|
642
642
|
) }) : null });
|
|
643
643
|
}
|
|
644
644
|
export {
|
|
645
|
-
|
|
646
|
-
|
|
645
|
+
ge as B,
|
|
646
|
+
ye as C,
|
|
647
647
|
ke as E,
|
|
648
648
|
Se as F,
|
|
649
649
|
he as I,
|
|
650
650
|
ve as S,
|
|
651
|
-
|
|
651
|
+
we as V,
|
|
652
652
|
fe as a,
|
|
653
|
-
|
|
653
|
+
be as b,
|
|
654
654
|
xe as c,
|
|
655
655
|
Ce as d,
|
|
656
656
|
Ee as e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use server";"use strict";const n=require("./bundle-3a5994f4.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
|