@builder.io/sdk-vue 0.7.1-1 → 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/package.json +1 -5
- package/vue2/package.json +1 -0
- package/vue3/package.json +1 -0
- package/vue2/lib/browser/block-2cb52597.cjs +0 -3
- package/vue2/lib/browser/block-dc97e982.js +0 -181
- package/vue2/lib/browser/block-styles-8f571c43.cjs +0 -1
- package/vue2/lib/browser/block-styles-bc460f14.js +0 -82
- package/vue2/lib/browser/block-wrapper-2d901f3f.cjs +0 -1
- package/vue2/lib/browser/block-wrapper-b1a6d78a.js +0 -66
- package/vue2/lib/browser/blocks/button/button.vue.d.ts +0 -17
- package/vue2/lib/browser/blocks/button/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +0 -44
- package/vue2/lib/browser/blocks/columns/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/custom-code/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -13
- package/vue2/lib/browser/blocks/embed/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/embed/embed.vue.d.ts +0 -18
- package/vue2/lib/browser/blocks/embed/helpers.d.ts +0 -1
- package/vue2/lib/browser/blocks/form/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/fragment/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue2/lib/browser/blocks/helpers.d.ts +0 -13
- package/vue2/lib/browser/blocks/image/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/image/image.helpers.d.ts +0 -1
- package/vue2/lib/browser/blocks/image/image.vue.d.ts +0 -72
- package/vue2/lib/browser/blocks/img/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/img/img.vue.d.ts +0 -38
- package/vue2/lib/browser/blocks/input/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/raw-text/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/section/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/section/section.vue.d.ts +0 -22
- package/vue2/lib/browser/blocks/select/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/symbol/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -37
- package/vue2/lib/browser/blocks/text/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/text/text.vue.d.ts +0 -11
- package/vue2/lib/browser/blocks/textarea/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/video/component-info.d.ts +0 -2
- package/vue2/lib/browser/blocks/video/video.vue.d.ts +0 -64
- package/vue2/lib/browser/blocks-wrapper-9e8dd7a2.cjs +0 -1
- package/vue2/lib/browser/blocks-wrapper-fcb480f0.js +0 -72
- package/vue2/lib/browser/component-ref-68e3a5b6.js +0 -102
- package/vue2/lib/browser/component-ref-bc236051.cjs +0 -1
- package/vue2/lib/browser/components/block/block.helpers.d.ts +0 -13
- package/vue2/lib/browser/components/block/block.vue.d.ts +0 -41
- package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue2/lib/browser/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue2/lib/browser/components/block/types.d.ts +0 -6
- package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +0 -29
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -57
- package/vue2/lib/browser/components/content/components/styles.helpers.d.ts +0 -15
- package/vue2/lib/browser/components/content/components/styles.vue.d.ts +0 -16
- package/vue2/lib/browser/components/content/content.helpers.d.ts +0 -7
- package/vue2/lib/browser/components/content/content.types.d.ts +0 -24
- package/vue2/lib/browser/components/content/content.vue.d.ts +0 -26
- package/vue2/lib/browser/components/content/index.d.ts +0 -1
- package/vue2/lib/browser/components/content/wrap-component-ref.d.ts +0 -6
- package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -50
- package/vue2/lib/browser/components/content-variants/helpers.d.ts +0 -18
- package/vue2/lib/browser/components/inlined-script.vue.d.ts +0 -11
- package/vue2/lib/browser/components/inlined-styles.vue.d.ts +0 -11
- package/vue2/lib/browser/constants/builder-registered-components.d.ts +0 -6
- package/vue2/lib/browser/constants/device-sizes.d.ts +0 -13
- package/vue2/lib/browser/constants/sdk-version.d.ts +0 -1
- package/vue2/lib/browser/constants/target.d.ts +0 -2
- package/vue2/lib/browser/content-1a8d2e10.cjs +0 -1
- package/vue2/lib/browser/content-76b432c4.js +0 -926
- package/vue2/lib/browser/context/builder.context.d.ts +0 -15
- package/vue2/lib/browser/context/components.context.d.ts +0 -7
- package/vue2/lib/browser/context/types.d.ts +0 -35
- package/vue2/lib/browser/css-32f0c7fe.cjs +0 -6
- package/vue2/lib/browser/css-d68fe0e5.js +0 -21
- package/vue2/lib/browser/enable-editor-29804f7c.js +0 -443
- package/vue2/lib/browser/enable-editor-58cd5d33.cjs +0 -1
- package/vue2/lib/browser/evaluate-5f291a57.cjs +0 -1
- package/vue2/lib/browser/evaluate-c21703b5.js +0 -86
- package/vue2/lib/browser/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue2/lib/browser/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue2/lib/browser/functions/deopt.d.ts +0 -4
- package/vue2/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue2/lib/browser/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue2/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue2/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue2/lib/browser/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +0 -2
- package/vue2/lib/browser/functions/evaluate/helpers.d.ts +0 -24
- package/vue2/lib/browser/functions/evaluate/index.d.ts +0 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue2/lib/browser/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue2/lib/browser/functions/event-handler-name.d.ts +0 -1
- package/vue2/lib/browser/functions/extract-text-styles.d.ts +0 -4
- package/vue2/lib/browser/functions/fast-clone.d.ts +0 -4
- package/vue2/lib/browser/functions/fetch-builder-props.d.ts +0 -53
- package/vue2/lib/browser/functions/get-block-actions-handler.d.ts +0 -8
- package/vue2/lib/browser/functions/get-block-actions.d.ts +0 -10
- package/vue2/lib/browser/functions/get-block-component-options.d.ts +0 -2
- package/vue2/lib/browser/functions/get-block-properties.d.ts +0 -6
- package/vue2/lib/browser/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue2/lib/browser/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue2/lib/browser/functions/get-content/index.d.ts +0 -28
- package/vue2/lib/browser/functions/get-content/types.d.ts +0 -142
- package/vue2/lib/browser/functions/get-fetch.d.ts +0 -1
- package/vue2/lib/browser/functions/get-processed-block.d.ts +0 -10
- package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/browser/functions/is-browser.d.ts +0 -1
- package/vue2/lib/browser/functions/is-edge-runtime.d.ts +0 -4
- package/vue2/lib/browser/functions/is-editing.d.ts +0 -1
- package/vue2/lib/browser/functions/is-iframe.d.ts +0 -1
- package/vue2/lib/browser/functions/is-node-runtime.d.ts +0 -4
- package/vue2/lib/browser/functions/is-previewing.d.ts +0 -1
- package/vue2/lib/browser/functions/on-change.d.ts +0 -7
- package/vue2/lib/browser/functions/register-component.d.ts +0 -15
- package/vue2/lib/browser/functions/register.d.ts +0 -16
- package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/browser/functions/set-editor-settings.d.ts +0 -4
- package/vue2/lib/browser/functions/set.d.ts +0 -7
- package/vue2/lib/browser/functions/track/helpers.d.ts +0 -5
- package/vue2/lib/browser/functions/track/index.d.ts +0 -51
- package/vue2/lib/browser/functions/track/interaction.d.ts +0 -13
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +0 -2
- package/vue2/lib/browser/functions/transform-block.d.ts +0 -2
- package/vue2/lib/browser/get-block-actions-47eb8bee.js +0 -35
- package/vue2/lib/browser/get-block-actions-4f4fdc14.cjs +0 -1
- package/vue2/lib/browser/get-block-properties-14335b2d.js +0 -48
- package/vue2/lib/browser/get-block-properties-4c2072d0.cjs +0 -1
- package/vue2/lib/browser/get-processed-block-7dbd0508.cjs +0 -1
- package/vue2/lib/browser/get-processed-block-9c43bb30.js +0 -58
- package/vue2/lib/browser/helpers/ab-tests.d.ts +0 -9
- package/vue2/lib/browser/helpers/canTrack.d.ts +0 -1
- package/vue2/lib/browser/helpers/cookie.d.ts +0 -19
- package/vue2/lib/browser/helpers/css.d.ts +0 -7
- package/vue2/lib/browser/helpers/flatten.d.ts +0 -6
- package/vue2/lib/browser/helpers/localStorage.d.ts +0 -9
- package/vue2/lib/browser/helpers/logger.d.ts +0 -6
- package/vue2/lib/browser/helpers/nullable.d.ts +0 -2
- package/vue2/lib/browser/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue2/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue2/lib/browser/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue2/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/browser/helpers/sessionId.d.ts +0 -6
- package/vue2/lib/browser/helpers/time.d.ts +0 -1
- package/vue2/lib/browser/helpers/url.d.ts +0 -6
- package/vue2/lib/browser/helpers/uuid.d.ts +0 -8
- package/vue2/lib/browser/helpers/visitorId.d.ts +0 -6
- package/vue2/lib/browser/index-7528c088.cjs +0 -32
- package/vue2/lib/browser/index-bb14138e.js +0 -1441
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +0 -88
- package/vue2/lib/browser/index-helpers/top-of-file.d.ts +0 -1
- package/vue2/lib/browser/index.cjs +0 -1
- package/vue2/lib/browser/index.d.ts +0 -7
- package/vue2/lib/browser/index.js +0 -29
- package/vue2/lib/browser/inlined-script-431b5967.js +0 -23
- package/vue2/lib/browser/inlined-script-cc25d25c.cjs +0 -1
- package/vue2/lib/browser/inlined-styles-1717d4f0.js +0 -23
- package/vue2/lib/browser/inlined-styles-da08b05d.cjs +0 -1
- package/vue2/lib/browser/interactive-element-03353733.cjs +0 -1
- package/vue2/lib/browser/interactive-element-ac3e10b7.js +0 -42
- package/vue2/lib/browser/repeated-block-51e74834.js +0 -38
- package/vue2/lib/browser/repeated-block-ba80a339.cjs +0 -1
- package/vue2/lib/browser/scripts/init-editing.d.ts +0 -6
- package/vue2/lib/browser/server-index.d.ts +0 -15
- package/vue2/lib/browser/style.css +0 -1
- package/vue2/lib/browser/styles-5eb21cb8.js +0 -89
- package/vue2/lib/browser/styles-931da5e8.cjs +0 -31
- package/vue2/lib/browser/types/api-version.d.ts +0 -2
- package/vue2/lib/browser/types/builder-block.d.ts +0 -66
- package/vue2/lib/browser/types/builder-content.d.ts +0 -44
- package/vue2/lib/browser/types/builder-props.d.ts +0 -9
- package/vue2/lib/browser/types/can-track.d.ts +0 -3
- package/vue2/lib/browser/types/components.d.ts +0 -110
- package/vue2/lib/browser/types/deep-partial.d.ts +0 -3
- package/vue2/lib/browser/types/element.d.ts +0 -59
- package/vue2/lib/browser/types/enforced-partials.d.ts +0 -21
- package/vue2/lib/browser/types/input.d.ts +0 -121
- package/vue2/lib/browser/types/targets.d.ts +0 -1
- package/vue2/lib/browser/types/typescript.d.ts +0 -11
- package/vue2/lib/edge/block-2c7301d0.js +0 -181
- package/vue2/lib/edge/block-40b0f7b5.cjs +0 -3
- package/vue2/lib/edge/block-styles-ba691a55.cjs +0 -1
- package/vue2/lib/edge/block-styles-bd09453c.js +0 -82
- package/vue2/lib/edge/block-wrapper-4210f268.js +0 -66
- package/vue2/lib/edge/block-wrapper-8e1bd00b.cjs +0 -1
- package/vue2/lib/edge/blocks/button/button.vue.d.ts +0 -17
- package/vue2/lib/edge/blocks/button/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +0 -44
- package/vue2/lib/edge/blocks/columns/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/custom-code/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -13
- package/vue2/lib/edge/blocks/embed/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/embed/embed.vue.d.ts +0 -18
- package/vue2/lib/edge/blocks/embed/helpers.d.ts +0 -1
- package/vue2/lib/edge/blocks/form/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/fragment/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue2/lib/edge/blocks/helpers.d.ts +0 -13
- package/vue2/lib/edge/blocks/image/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/image/image.helpers.d.ts +0 -1
- package/vue2/lib/edge/blocks/image/image.vue.d.ts +0 -72
- package/vue2/lib/edge/blocks/img/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/img/img.vue.d.ts +0 -38
- package/vue2/lib/edge/blocks/input/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/raw-text/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/section/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/section/section.vue.d.ts +0 -22
- package/vue2/lib/edge/blocks/select/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/symbol/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -37
- package/vue2/lib/edge/blocks/text/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/text/text.vue.d.ts +0 -11
- package/vue2/lib/edge/blocks/textarea/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/video/component-info.d.ts +0 -2
- package/vue2/lib/edge/blocks/video/video.vue.d.ts +0 -64
- package/vue2/lib/edge/blocks-wrapper-7e831b51.cjs +0 -1
- package/vue2/lib/edge/blocks-wrapper-9c7effa2.js +0 -72
- package/vue2/lib/edge/component-ref-02d30d18.cjs +0 -1
- package/vue2/lib/edge/component-ref-0404fc38.js +0 -102
- package/vue2/lib/edge/components/block/block.helpers.d.ts +0 -13
- package/vue2/lib/edge/components/block/block.vue.d.ts +0 -41
- package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue2/lib/edge/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue2/lib/edge/components/block/types.d.ts +0 -6
- package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +0 -29
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -57
- package/vue2/lib/edge/components/content/components/styles.helpers.d.ts +0 -15
- package/vue2/lib/edge/components/content/components/styles.vue.d.ts +0 -16
- package/vue2/lib/edge/components/content/content.helpers.d.ts +0 -7
- package/vue2/lib/edge/components/content/content.types.d.ts +0 -24
- package/vue2/lib/edge/components/content/content.vue.d.ts +0 -26
- package/vue2/lib/edge/components/content/index.d.ts +0 -1
- package/vue2/lib/edge/components/content/wrap-component-ref.d.ts +0 -6
- package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -50
- package/vue2/lib/edge/components/content-variants/helpers.d.ts +0 -18
- package/vue2/lib/edge/components/inlined-script.vue.d.ts +0 -11
- package/vue2/lib/edge/components/inlined-styles.vue.d.ts +0 -11
- package/vue2/lib/edge/constants/builder-registered-components.d.ts +0 -6
- package/vue2/lib/edge/constants/device-sizes.d.ts +0 -13
- package/vue2/lib/edge/constants/sdk-version.d.ts +0 -1
- package/vue2/lib/edge/constants/target.d.ts +0 -2
- package/vue2/lib/edge/content-173f7be0.js +0 -926
- package/vue2/lib/edge/content-36b34b86.cjs +0 -1
- package/vue2/lib/edge/context/builder.context.d.ts +0 -15
- package/vue2/lib/edge/context/components.context.d.ts +0 -7
- package/vue2/lib/edge/context/types.d.ts +0 -35
- package/vue2/lib/edge/css-00393f8a.cjs +0 -6
- package/vue2/lib/edge/css-081095c1.js +0 -21
- package/vue2/lib/edge/enable-editor-c36df3b5.cjs +0 -1
- package/vue2/lib/edge/enable-editor-d3f018c6.js +0 -443
- package/vue2/lib/edge/evaluate-47aeba42.cjs +0 -21
- package/vue2/lib/edge/evaluate-d31c253f.js +0 -2565
- package/vue2/lib/edge/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue2/lib/edge/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue2/lib/edge/functions/deopt.d.ts +0 -4
- package/vue2/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue2/lib/edge/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue2/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue2/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue2/lib/edge/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +0 -2
- package/vue2/lib/edge/functions/evaluate/helpers.d.ts +0 -24
- package/vue2/lib/edge/functions/evaluate/index.d.ts +0 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue2/lib/edge/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue2/lib/edge/functions/event-handler-name.d.ts +0 -1
- package/vue2/lib/edge/functions/extract-text-styles.d.ts +0 -4
- package/vue2/lib/edge/functions/fast-clone.d.ts +0 -4
- package/vue2/lib/edge/functions/fetch-builder-props.d.ts +0 -53
- package/vue2/lib/edge/functions/get-block-actions-handler.d.ts +0 -8
- package/vue2/lib/edge/functions/get-block-actions.d.ts +0 -10
- package/vue2/lib/edge/functions/get-block-component-options.d.ts +0 -2
- package/vue2/lib/edge/functions/get-block-properties.d.ts +0 -6
- package/vue2/lib/edge/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue2/lib/edge/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue2/lib/edge/functions/get-content/index.d.ts +0 -28
- package/vue2/lib/edge/functions/get-content/types.d.ts +0 -142
- package/vue2/lib/edge/functions/get-fetch.d.ts +0 -1
- package/vue2/lib/edge/functions/get-processed-block.d.ts +0 -10
- package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/edge/functions/is-browser.d.ts +0 -1
- package/vue2/lib/edge/functions/is-edge-runtime.d.ts +0 -4
- package/vue2/lib/edge/functions/is-editing.d.ts +0 -1
- package/vue2/lib/edge/functions/is-iframe.d.ts +0 -1
- package/vue2/lib/edge/functions/is-node-runtime.d.ts +0 -4
- package/vue2/lib/edge/functions/is-previewing.d.ts +0 -1
- package/vue2/lib/edge/functions/on-change.d.ts +0 -7
- package/vue2/lib/edge/functions/register-component.d.ts +0 -15
- package/vue2/lib/edge/functions/register.d.ts +0 -16
- package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/edge/functions/set-editor-settings.d.ts +0 -4
- package/vue2/lib/edge/functions/set.d.ts +0 -7
- package/vue2/lib/edge/functions/track/helpers.d.ts +0 -5
- package/vue2/lib/edge/functions/track/index.d.ts +0 -51
- package/vue2/lib/edge/functions/track/interaction.d.ts +0 -13
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +0 -2
- package/vue2/lib/edge/functions/transform-block.d.ts +0 -2
- package/vue2/lib/edge/get-block-actions-33002e58.js +0 -35
- package/vue2/lib/edge/get-block-actions-fc18e691.cjs +0 -1
- package/vue2/lib/edge/get-block-properties-c1a43e4b.cjs +0 -1
- package/vue2/lib/edge/get-block-properties-d0176121.js +0 -48
- package/vue2/lib/edge/get-processed-block-1280c9d5.js +0 -52
- package/vue2/lib/edge/get-processed-block-2d9f33f5.cjs +0 -1
- package/vue2/lib/edge/helpers/ab-tests.d.ts +0 -9
- package/vue2/lib/edge/helpers/canTrack.d.ts +0 -1
- package/vue2/lib/edge/helpers/cookie.d.ts +0 -19
- package/vue2/lib/edge/helpers/css.d.ts +0 -7
- package/vue2/lib/edge/helpers/flatten.d.ts +0 -6
- package/vue2/lib/edge/helpers/localStorage.d.ts +0 -9
- package/vue2/lib/edge/helpers/logger.d.ts +0 -6
- package/vue2/lib/edge/helpers/nullable.d.ts +0 -2
- package/vue2/lib/edge/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue2/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue2/lib/edge/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue2/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/edge/helpers/sessionId.d.ts +0 -6
- package/vue2/lib/edge/helpers/time.d.ts +0 -1
- package/vue2/lib/edge/helpers/url.d.ts +0 -6
- package/vue2/lib/edge/helpers/uuid.d.ts +0 -8
- package/vue2/lib/edge/helpers/visitorId.d.ts +0 -6
- package/vue2/lib/edge/index-6e4d121e.js +0 -1441
- package/vue2/lib/edge/index-ca5baf07.cjs +0 -32
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +0 -88
- package/vue2/lib/edge/index-helpers/top-of-file.d.ts +0 -1
- package/vue2/lib/edge/index.cjs +0 -1
- package/vue2/lib/edge/index.d.ts +0 -7
- package/vue2/lib/edge/index.js +0 -29
- package/vue2/lib/edge/inlined-script-7a7207fd.js +0 -23
- package/vue2/lib/edge/inlined-script-e57329a5.cjs +0 -1
- package/vue2/lib/edge/inlined-styles-9a96b77e.cjs +0 -1
- package/vue2/lib/edge/inlined-styles-f109793f.js +0 -23
- package/vue2/lib/edge/interactive-element-6a866621.js +0 -42
- package/vue2/lib/edge/interactive-element-9c12c501.cjs +0 -1
- package/vue2/lib/edge/repeated-block-1093b757.cjs +0 -1
- package/vue2/lib/edge/repeated-block-f7b967cf.js +0 -38
- package/vue2/lib/edge/scripts/init-editing.d.ts +0 -6
- package/vue2/lib/edge/server-index.d.ts +0 -15
- package/vue2/lib/edge/style.css +0 -1
- package/vue2/lib/edge/styles-a211b4e1.cjs +0 -31
- package/vue2/lib/edge/styles-aa2c087b.js +0 -89
- package/vue2/lib/edge/types/api-version.d.ts +0 -2
- package/vue2/lib/edge/types/builder-block.d.ts +0 -66
- package/vue2/lib/edge/types/builder-content.d.ts +0 -44
- package/vue2/lib/edge/types/builder-props.d.ts +0 -9
- package/vue2/lib/edge/types/can-track.d.ts +0 -3
- package/vue2/lib/edge/types/components.d.ts +0 -110
- package/vue2/lib/edge/types/deep-partial.d.ts +0 -3
- package/vue2/lib/edge/types/element.d.ts +0 -59
- package/vue2/lib/edge/types/enforced-partials.d.ts +0 -21
- package/vue2/lib/edge/types/input.d.ts +0 -121
- package/vue2/lib/edge/types/targets.d.ts +0 -1
- package/vue2/lib/edge/types/typescript.d.ts +0 -11
- package/vue2/lib/node/block-979d66e1.js +0 -181
- package/vue2/lib/node/block-d7e689a7.cjs +0 -3
- package/vue2/lib/node/block-styles-00a3a4d7.cjs +0 -1
- package/vue2/lib/node/block-styles-50528f05.js +0 -82
- package/vue2/lib/node/block-wrapper-8bd5d40b.js +0 -66
- package/vue2/lib/node/block-wrapper-d7b449f1.cjs +0 -1
- package/vue2/lib/node/blocks/button/button.vue.d.ts +0 -17
- package/vue2/lib/node/blocks/button/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/columns/columns.vue.d.ts +0 -44
- package/vue2/lib/node/blocks/columns/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/custom-code/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -13
- package/vue2/lib/node/blocks/embed/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/embed/embed.vue.d.ts +0 -18
- package/vue2/lib/node/blocks/embed/helpers.d.ts +0 -1
- package/vue2/lib/node/blocks/form/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/fragment/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue2/lib/node/blocks/helpers.d.ts +0 -13
- package/vue2/lib/node/blocks/image/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/image/image.helpers.d.ts +0 -1
- package/vue2/lib/node/blocks/image/image.vue.d.ts +0 -72
- package/vue2/lib/node/blocks/img/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/img/img.vue.d.ts +0 -38
- package/vue2/lib/node/blocks/input/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/raw-text/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/section/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/section/section.vue.d.ts +0 -22
- package/vue2/lib/node/blocks/select/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/submit-button/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/symbol/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +0 -37
- package/vue2/lib/node/blocks/text/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/text/text.vue.d.ts +0 -11
- package/vue2/lib/node/blocks/textarea/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/video/component-info.d.ts +0 -2
- package/vue2/lib/node/blocks/video/video.vue.d.ts +0 -64
- package/vue2/lib/node/blocks-wrapper-50937fc2.js +0 -72
- package/vue2/lib/node/blocks-wrapper-d425bec5.cjs +0 -1
- package/vue2/lib/node/component-ref-123ffd3c.js +0 -102
- package/vue2/lib/node/component-ref-3ba26510.cjs +0 -1
- package/vue2/lib/node/components/block/block.helpers.d.ts +0 -13
- package/vue2/lib/node/components/block/block.vue.d.ts +0 -41
- package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue2/lib/node/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue2/lib/node/components/block/types.d.ts +0 -6
- package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +0 -29
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +0 -57
- package/vue2/lib/node/components/content/components/styles.helpers.d.ts +0 -15
- package/vue2/lib/node/components/content/components/styles.vue.d.ts +0 -16
- package/vue2/lib/node/components/content/content.helpers.d.ts +0 -7
- package/vue2/lib/node/components/content/content.types.d.ts +0 -24
- package/vue2/lib/node/components/content/content.vue.d.ts +0 -26
- package/vue2/lib/node/components/content/index.d.ts +0 -1
- package/vue2/lib/node/components/content/wrap-component-ref.d.ts +0 -6
- package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +0 -50
- package/vue2/lib/node/components/content-variants/helpers.d.ts +0 -18
- package/vue2/lib/node/components/inlined-script.vue.d.ts +0 -11
- package/vue2/lib/node/components/inlined-styles.vue.d.ts +0 -11
- package/vue2/lib/node/constants/builder-registered-components.d.ts +0 -6
- package/vue2/lib/node/constants/device-sizes.d.ts +0 -13
- package/vue2/lib/node/constants/sdk-version.d.ts +0 -1
- package/vue2/lib/node/constants/target.d.ts +0 -2
- package/vue2/lib/node/content-d31377e7.js +0 -926
- package/vue2/lib/node/content-d8e76f5c.cjs +0 -1
- package/vue2/lib/node/context/builder.context.d.ts +0 -15
- package/vue2/lib/node/context/components.context.d.ts +0 -7
- package/vue2/lib/node/context/types.d.ts +0 -35
- package/vue2/lib/node/css-469bd1df.js +0 -21
- package/vue2/lib/node/css-c566c7a4.cjs +0 -6
- package/vue2/lib/node/enable-editor-8c4e460a.cjs +0 -1
- package/vue2/lib/node/enable-editor-96dbd852.js +0 -443
- package/vue2/lib/node/evaluate-45bac138.cjs +0 -41
- package/vue2/lib/node/evaluate-946bbbf4.js +0 -187
- package/vue2/lib/node/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue2/lib/node/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue2/lib/node/functions/deopt.d.ts +0 -4
- package/vue2/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue2/lib/node/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue2/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue2/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue2/lib/node/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue2/lib/node/functions/evaluate/evaluate.d.ts +0 -2
- package/vue2/lib/node/functions/evaluate/helpers.d.ts +0 -24
- package/vue2/lib/node/functions/evaluate/index.d.ts +0 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue2/lib/node/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue2/lib/node/functions/event-handler-name.d.ts +0 -1
- package/vue2/lib/node/functions/extract-text-styles.d.ts +0 -4
- package/vue2/lib/node/functions/fast-clone.d.ts +0 -4
- package/vue2/lib/node/functions/fetch-builder-props.d.ts +0 -53
- package/vue2/lib/node/functions/get-block-actions-handler.d.ts +0 -8
- package/vue2/lib/node/functions/get-block-actions.d.ts +0 -10
- package/vue2/lib/node/functions/get-block-component-options.d.ts +0 -2
- package/vue2/lib/node/functions/get-block-properties.d.ts +0 -6
- package/vue2/lib/node/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue2/lib/node/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue2/lib/node/functions/get-content/index.d.ts +0 -28
- package/vue2/lib/node/functions/get-content/types.d.ts +0 -142
- package/vue2/lib/node/functions/get-fetch.d.ts +0 -1
- package/vue2/lib/node/functions/get-processed-block.d.ts +0 -10
- package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue2/lib/node/functions/is-browser.d.ts +0 -1
- package/vue2/lib/node/functions/is-edge-runtime.d.ts +0 -4
- package/vue2/lib/node/functions/is-editing.d.ts +0 -1
- package/vue2/lib/node/functions/is-iframe.d.ts +0 -1
- package/vue2/lib/node/functions/is-node-runtime.d.ts +0 -4
- package/vue2/lib/node/functions/is-previewing.d.ts +0 -1
- package/vue2/lib/node/functions/on-change.d.ts +0 -7
- package/vue2/lib/node/functions/register-component.d.ts +0 -15
- package/vue2/lib/node/functions/register.d.ts +0 -16
- package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue2/lib/node/functions/set-editor-settings.d.ts +0 -4
- package/vue2/lib/node/functions/set.d.ts +0 -7
- package/vue2/lib/node/functions/track/helpers.d.ts +0 -5
- package/vue2/lib/node/functions/track/index.d.ts +0 -51
- package/vue2/lib/node/functions/track/interaction.d.ts +0 -13
- package/vue2/lib/node/functions/transform-block-properties.d.ts +0 -2
- package/vue2/lib/node/functions/transform-block.d.ts +0 -2
- package/vue2/lib/node/get-block-actions-a7c25deb.js +0 -35
- package/vue2/lib/node/get-block-actions-fa0f60c5.cjs +0 -1
- package/vue2/lib/node/get-block-properties-5524be2a.js +0 -48
- package/vue2/lib/node/get-block-properties-75f3f91a.cjs +0 -1
- package/vue2/lib/node/get-processed-block-231c050b.js +0 -52
- package/vue2/lib/node/get-processed-block-e246d1ed.cjs +0 -1
- package/vue2/lib/node/helpers/ab-tests.d.ts +0 -9
- package/vue2/lib/node/helpers/canTrack.d.ts +0 -1
- package/vue2/lib/node/helpers/cookie.d.ts +0 -19
- package/vue2/lib/node/helpers/css.d.ts +0 -7
- package/vue2/lib/node/helpers/flatten.d.ts +0 -6
- package/vue2/lib/node/helpers/localStorage.d.ts +0 -9
- package/vue2/lib/node/helpers/logger.d.ts +0 -6
- package/vue2/lib/node/helpers/nullable.d.ts +0 -2
- package/vue2/lib/node/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue2/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/node/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue2/lib/node/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue2/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/node/helpers/sessionId.d.ts +0 -6
- package/vue2/lib/node/helpers/time.d.ts +0 -1
- package/vue2/lib/node/helpers/url.d.ts +0 -6
- package/vue2/lib/node/helpers/uuid.d.ts +0 -8
- package/vue2/lib/node/helpers/visitorId.d.ts +0 -6
- package/vue2/lib/node/index-7ce12494.js +0 -1441
- package/vue2/lib/node/index-ea4df31a.cjs +0 -32
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +0 -88
- package/vue2/lib/node/index-helpers/top-of-file.d.ts +0 -1
- package/vue2/lib/node/index.cjs +0 -1
- package/vue2/lib/node/index.d.ts +0 -7
- package/vue2/lib/node/index.js +0 -29
- package/vue2/lib/node/inlined-script-073d04d2.js +0 -23
- package/vue2/lib/node/inlined-script-dccfb7fc.cjs +0 -1
- package/vue2/lib/node/inlined-styles-08dbb945.cjs +0 -1
- package/vue2/lib/node/inlined-styles-8982c8a6.js +0 -23
- package/vue2/lib/node/interactive-element-caabd2d9.js +0 -42
- package/vue2/lib/node/interactive-element-fc5a4f1d.cjs +0 -1
- package/vue2/lib/node/repeated-block-0ab8e6be.js +0 -38
- package/vue2/lib/node/repeated-block-f65d29a5.cjs +0 -1
- package/vue2/lib/node/scripts/init-editing.d.ts +0 -6
- package/vue2/lib/node/server-index.d.ts +0 -15
- package/vue2/lib/node/style.css +0 -1
- package/vue2/lib/node/styles-6e09a0cc.js +0 -89
- package/vue2/lib/node/styles-96606872.cjs +0 -31
- package/vue2/lib/node/types/api-version.d.ts +0 -2
- package/vue2/lib/node/types/builder-block.d.ts +0 -66
- package/vue2/lib/node/types/builder-content.d.ts +0 -44
- package/vue2/lib/node/types/builder-props.d.ts +0 -9
- package/vue2/lib/node/types/can-track.d.ts +0 -3
- package/vue2/lib/node/types/components.d.ts +0 -110
- package/vue2/lib/node/types/deep-partial.d.ts +0 -3
- package/vue2/lib/node/types/element.d.ts +0 -59
- package/vue2/lib/node/types/enforced-partials.d.ts +0 -21
- package/vue2/lib/node/types/input.d.ts +0 -121
- package/vue2/lib/node/types/targets.d.ts +0 -1
- package/vue2/lib/node/types/typescript.d.ts +0 -11
- package/vue3/lib/browser/block-wrapper.09b54dd3.js +0 -54
- package/vue3/lib/browser/block-wrapper.49af98a6.cjs +0 -1
- package/vue3/lib/browser/blocks/button/button.vue.d.ts +0 -30
- package/vue3/lib/browser/blocks/button/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +0 -69
- package/vue3/lib/browser/blocks/columns/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/custom-code/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -20
- package/vue3/lib/browser/blocks/embed/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/embed/embed.vue.d.ts +0 -22
- package/vue3/lib/browser/blocks/embed/helpers.d.ts +0 -1
- package/vue3/lib/browser/blocks/form/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/fragment/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue3/lib/browser/blocks/helpers.d.ts +0 -13
- package/vue3/lib/browser/blocks/image/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/image/image.helpers.d.ts +0 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +0 -72
- package/vue3/lib/browser/blocks/img/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/img/img.vue.d.ts +0 -38
- package/vue3/lib/browser/blocks/input/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/raw-text/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/section/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/section/section.vue.d.ts +0 -22
- package/vue3/lib/browser/blocks/select/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/symbol/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +0 -56
- package/vue3/lib/browser/blocks/text/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/text/text.vue.d.ts +0 -11
- package/vue3/lib/browser/blocks/textarea/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/video/component-info.d.ts +0 -2
- package/vue3/lib/browser/blocks/video/video.vue.d.ts +0 -64
- package/vue3/lib/browser/component-ref.63194b25.js +0 -111
- package/vue3/lib/browser/component-ref.78f795cd.cjs +0 -1
- package/vue3/lib/browser/components/block/block.helpers.d.ts +0 -13
- package/vue3/lib/browser/components/block/block.vue.d.ts +0 -41
- package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue3/lib/browser/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue3/lib/browser/components/block/types.d.ts +0 -6
- package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +0 -29
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -91
- package/vue3/lib/browser/components/content/components/styles.helpers.d.ts +0 -15
- package/vue3/lib/browser/components/content/components/styles.vue.d.ts +0 -16
- package/vue3/lib/browser/components/content/content.helpers.d.ts +0 -7
- package/vue3/lib/browser/components/content/content.types.d.ts +0 -24
- package/vue3/lib/browser/components/content/content.vue.d.ts +0 -69
- package/vue3/lib/browser/components/content/index.d.ts +0 -1
- package/vue3/lib/browser/components/content/wrap-component-ref.d.ts +0 -6
- package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -73
- package/vue3/lib/browser/components/content-variants/helpers.d.ts +0 -41
- package/vue3/lib/browser/components/inlined-script.vue.d.ts +0 -11
- package/vue3/lib/browser/components/inlined-styles.vue.d.ts +0 -11
- package/vue3/lib/browser/constants/builder-registered-components.d.ts +0 -6
- package/vue3/lib/browser/constants/device-sizes.d.ts +0 -13
- package/vue3/lib/browser/constants/sdk-version.d.ts +0 -1
- package/vue3/lib/browser/constants/target.d.ts +0 -2
- package/vue3/lib/browser/context/builder.context.d.ts +0 -15
- package/vue3/lib/browser/context/components.context.d.ts +0 -7
- package/vue3/lib/browser/context/types.d.ts +0 -35
- package/vue3/lib/browser/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue3/lib/browser/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue3/lib/browser/functions/deopt.d.ts +0 -4
- package/vue3/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue3/lib/browser/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue3/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue3/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue3/lib/browser/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +0 -2
- package/vue3/lib/browser/functions/evaluate/helpers.d.ts +0 -24
- package/vue3/lib/browser/functions/evaluate/index.d.ts +0 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue3/lib/browser/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue3/lib/browser/functions/event-handler-name.d.ts +0 -1
- package/vue3/lib/browser/functions/extract-text-styles.d.ts +0 -4
- package/vue3/lib/browser/functions/fast-clone.d.ts +0 -4
- package/vue3/lib/browser/functions/fetch-builder-props.d.ts +0 -53
- package/vue3/lib/browser/functions/get-block-actions-handler.d.ts +0 -8
- package/vue3/lib/browser/functions/get-block-actions.d.ts +0 -10
- package/vue3/lib/browser/functions/get-block-component-options.d.ts +0 -2
- package/vue3/lib/browser/functions/get-block-properties.d.ts +0 -6
- package/vue3/lib/browser/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue3/lib/browser/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue3/lib/browser/functions/get-content/index.d.ts +0 -28
- package/vue3/lib/browser/functions/get-content/types.d.ts +0 -142
- package/vue3/lib/browser/functions/get-fetch.d.ts +0 -1
- package/vue3/lib/browser/functions/get-processed-block.d.ts +0 -10
- package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/browser/functions/is-browser.d.ts +0 -1
- package/vue3/lib/browser/functions/is-edge-runtime.d.ts +0 -4
- package/vue3/lib/browser/functions/is-editing.d.ts +0 -1
- package/vue3/lib/browser/functions/is-iframe.d.ts +0 -1
- package/vue3/lib/browser/functions/is-node-runtime.d.ts +0 -4
- package/vue3/lib/browser/functions/is-previewing.d.ts +0 -1
- package/vue3/lib/browser/functions/on-change.d.ts +0 -7
- package/vue3/lib/browser/functions/register-component.d.ts +0 -15
- package/vue3/lib/browser/functions/register.d.ts +0 -16
- package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/browser/functions/set-editor-settings.d.ts +0 -4
- package/vue3/lib/browser/functions/set.d.ts +0 -7
- package/vue3/lib/browser/functions/track/helpers.d.ts +0 -5
- package/vue3/lib/browser/functions/track/index.d.ts +0 -51
- package/vue3/lib/browser/functions/track/interaction.d.ts +0 -13
- package/vue3/lib/browser/functions/transform-block-properties.d.ts +0 -2
- package/vue3/lib/browser/functions/transform-block.d.ts +0 -2
- package/vue3/lib/browser/get-block-actions.2e99e179.cjs +0 -1
- package/vue3/lib/browser/get-block-actions.4f330889.js +0 -79
- package/vue3/lib/browser/helpers/ab-tests.d.ts +0 -9
- package/vue3/lib/browser/helpers/canTrack.d.ts +0 -1
- package/vue3/lib/browser/helpers/cookie.d.ts +0 -19
- package/vue3/lib/browser/helpers/css.d.ts +0 -7
- package/vue3/lib/browser/helpers/flatten.d.ts +0 -6
- package/vue3/lib/browser/helpers/localStorage.d.ts +0 -9
- package/vue3/lib/browser/helpers/logger.d.ts +0 -6
- package/vue3/lib/browser/helpers/nullable.d.ts +0 -2
- package/vue3/lib/browser/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue3/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue3/lib/browser/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue3/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/browser/helpers/sessionId.d.ts +0 -6
- package/vue3/lib/browser/helpers/time.d.ts +0 -1
- package/vue3/lib/browser/helpers/url.d.ts +0 -6
- package/vue3/lib/browser/helpers/uuid.d.ts +0 -8
- package/vue3/lib/browser/helpers/visitorId.d.ts +0 -6
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +0 -111
- package/vue3/lib/browser/index-helpers/top-of-file.d.ts +0 -1
- package/vue3/lib/browser/index.88b433c6.js +0 -3281
- package/vue3/lib/browser/index.c04232f6.cjs +0 -69
- package/vue3/lib/browser/index.cjs +0 -1
- package/vue3/lib/browser/index.d.ts +0 -7
- package/vue3/lib/browser/index.js +0 -29
- package/vue3/lib/browser/repeated-block.067ee555.js +0 -33
- package/vue3/lib/browser/repeated-block.ef8176d8.cjs +0 -1
- package/vue3/lib/browser/scripts/init-editing.d.ts +0 -6
- package/vue3/lib/browser/server-index.d.ts +0 -15
- package/vue3/lib/browser/style.css +0 -1
- package/vue3/lib/browser/types/api-version.d.ts +0 -2
- package/vue3/lib/browser/types/builder-block.d.ts +0 -66
- package/vue3/lib/browser/types/builder-content.d.ts +0 -44
- package/vue3/lib/browser/types/builder-props.d.ts +0 -9
- package/vue3/lib/browser/types/can-track.d.ts +0 -3
- package/vue3/lib/browser/types/components.d.ts +0 -110
- package/vue3/lib/browser/types/deep-partial.d.ts +0 -3
- package/vue3/lib/browser/types/element.d.ts +0 -59
- package/vue3/lib/browser/types/enforced-partials.d.ts +0 -21
- package/vue3/lib/browser/types/input.d.ts +0 -121
- package/vue3/lib/browser/types/targets.d.ts +0 -1
- package/vue3/lib/browser/types/typescript.d.ts +0 -11
- package/vue3/lib/edge/block-wrapper.2d4ec833.cjs +0 -1
- package/vue3/lib/edge/block-wrapper.4b2f2fb3.js +0 -54
- package/vue3/lib/edge/blocks/button/button.vue.d.ts +0 -30
- package/vue3/lib/edge/blocks/button/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +0 -69
- package/vue3/lib/edge/blocks/columns/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/custom-code/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -20
- package/vue3/lib/edge/blocks/embed/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/embed/embed.vue.d.ts +0 -22
- package/vue3/lib/edge/blocks/embed/helpers.d.ts +0 -1
- package/vue3/lib/edge/blocks/form/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/fragment/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue3/lib/edge/blocks/helpers.d.ts +0 -13
- package/vue3/lib/edge/blocks/image/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/image/image.helpers.d.ts +0 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +0 -72
- package/vue3/lib/edge/blocks/img/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/img/img.vue.d.ts +0 -38
- package/vue3/lib/edge/blocks/input/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/raw-text/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/section/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/section/section.vue.d.ts +0 -22
- package/vue3/lib/edge/blocks/select/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/symbol/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +0 -56
- package/vue3/lib/edge/blocks/text/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/text/text.vue.d.ts +0 -11
- package/vue3/lib/edge/blocks/textarea/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/video/component-info.d.ts +0 -2
- package/vue3/lib/edge/blocks/video/video.vue.d.ts +0 -64
- package/vue3/lib/edge/component-ref.98beaea3.js +0 -111
- package/vue3/lib/edge/component-ref.d8514fb0.cjs +0 -1
- package/vue3/lib/edge/components/block/block.helpers.d.ts +0 -13
- package/vue3/lib/edge/components/block/block.vue.d.ts +0 -41
- package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue3/lib/edge/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue3/lib/edge/components/block/types.d.ts +0 -6
- package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +0 -29
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -91
- package/vue3/lib/edge/components/content/components/styles.helpers.d.ts +0 -15
- package/vue3/lib/edge/components/content/components/styles.vue.d.ts +0 -16
- package/vue3/lib/edge/components/content/content.helpers.d.ts +0 -7
- package/vue3/lib/edge/components/content/content.types.d.ts +0 -24
- package/vue3/lib/edge/components/content/content.vue.d.ts +0 -69
- package/vue3/lib/edge/components/content/index.d.ts +0 -1
- package/vue3/lib/edge/components/content/wrap-component-ref.d.ts +0 -6
- package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -73
- package/vue3/lib/edge/components/content-variants/helpers.d.ts +0 -41
- package/vue3/lib/edge/components/inlined-script.vue.d.ts +0 -11
- package/vue3/lib/edge/components/inlined-styles.vue.d.ts +0 -11
- package/vue3/lib/edge/constants/builder-registered-components.d.ts +0 -6
- package/vue3/lib/edge/constants/device-sizes.d.ts +0 -13
- package/vue3/lib/edge/constants/sdk-version.d.ts +0 -1
- package/vue3/lib/edge/constants/target.d.ts +0 -2
- package/vue3/lib/edge/context/builder.context.d.ts +0 -15
- package/vue3/lib/edge/context/components.context.d.ts +0 -7
- package/vue3/lib/edge/context/types.d.ts +0 -35
- package/vue3/lib/edge/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue3/lib/edge/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue3/lib/edge/functions/deopt.d.ts +0 -4
- package/vue3/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue3/lib/edge/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue3/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue3/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue3/lib/edge/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +0 -2
- package/vue3/lib/edge/functions/evaluate/helpers.d.ts +0 -24
- package/vue3/lib/edge/functions/evaluate/index.d.ts +0 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue3/lib/edge/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue3/lib/edge/functions/event-handler-name.d.ts +0 -1
- package/vue3/lib/edge/functions/extract-text-styles.d.ts +0 -4
- package/vue3/lib/edge/functions/fast-clone.d.ts +0 -4
- package/vue3/lib/edge/functions/fetch-builder-props.d.ts +0 -53
- package/vue3/lib/edge/functions/get-block-actions-handler.d.ts +0 -8
- package/vue3/lib/edge/functions/get-block-actions.d.ts +0 -10
- package/vue3/lib/edge/functions/get-block-component-options.d.ts +0 -2
- package/vue3/lib/edge/functions/get-block-properties.d.ts +0 -6
- package/vue3/lib/edge/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue3/lib/edge/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue3/lib/edge/functions/get-content/index.d.ts +0 -28
- package/vue3/lib/edge/functions/get-content/types.d.ts +0 -142
- package/vue3/lib/edge/functions/get-fetch.d.ts +0 -1
- package/vue3/lib/edge/functions/get-processed-block.d.ts +0 -10
- package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/edge/functions/is-browser.d.ts +0 -1
- package/vue3/lib/edge/functions/is-edge-runtime.d.ts +0 -4
- package/vue3/lib/edge/functions/is-editing.d.ts +0 -1
- package/vue3/lib/edge/functions/is-iframe.d.ts +0 -1
- package/vue3/lib/edge/functions/is-node-runtime.d.ts +0 -4
- package/vue3/lib/edge/functions/is-previewing.d.ts +0 -1
- package/vue3/lib/edge/functions/on-change.d.ts +0 -7
- package/vue3/lib/edge/functions/register-component.d.ts +0 -15
- package/vue3/lib/edge/functions/register.d.ts +0 -16
- package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/edge/functions/set-editor-settings.d.ts +0 -4
- package/vue3/lib/edge/functions/set.d.ts +0 -7
- package/vue3/lib/edge/functions/track/helpers.d.ts +0 -5
- package/vue3/lib/edge/functions/track/index.d.ts +0 -51
- package/vue3/lib/edge/functions/track/interaction.d.ts +0 -13
- package/vue3/lib/edge/functions/transform-block-properties.d.ts +0 -2
- package/vue3/lib/edge/functions/transform-block.d.ts +0 -2
- package/vue3/lib/edge/get-block-actions.407fbfa9.cjs +0 -1
- package/vue3/lib/edge/get-block-actions.b460cca3.js +0 -79
- package/vue3/lib/edge/helpers/ab-tests.d.ts +0 -9
- package/vue3/lib/edge/helpers/canTrack.d.ts +0 -1
- package/vue3/lib/edge/helpers/cookie.d.ts +0 -19
- package/vue3/lib/edge/helpers/css.d.ts +0 -7
- package/vue3/lib/edge/helpers/flatten.d.ts +0 -6
- package/vue3/lib/edge/helpers/localStorage.d.ts +0 -9
- package/vue3/lib/edge/helpers/logger.d.ts +0 -6
- package/vue3/lib/edge/helpers/nullable.d.ts +0 -2
- package/vue3/lib/edge/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue3/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue3/lib/edge/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue3/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/edge/helpers/sessionId.d.ts +0 -6
- package/vue3/lib/edge/helpers/time.d.ts +0 -1
- package/vue3/lib/edge/helpers/url.d.ts +0 -6
- package/vue3/lib/edge/helpers/uuid.d.ts +0 -8
- package/vue3/lib/edge/helpers/visitorId.d.ts +0 -6
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +0 -111
- package/vue3/lib/edge/index-helpers/top-of-file.d.ts +0 -1
- package/vue3/lib/edge/index.8bdc4716.cjs +0 -89
- package/vue3/lib/edge/index.a8ffb479.js +0 -5753
- package/vue3/lib/edge/index.cjs +0 -1
- package/vue3/lib/edge/index.d.ts +0 -7
- package/vue3/lib/edge/index.js +0 -29
- package/vue3/lib/edge/repeated-block.cc9bbed2.js +0 -33
- package/vue3/lib/edge/repeated-block.f5d444e9.cjs +0 -1
- package/vue3/lib/edge/scripts/init-editing.d.ts +0 -6
- package/vue3/lib/edge/server-index.d.ts +0 -15
- package/vue3/lib/edge/style.css +0 -1
- package/vue3/lib/edge/types/api-version.d.ts +0 -2
- package/vue3/lib/edge/types/builder-block.d.ts +0 -66
- package/vue3/lib/edge/types/builder-content.d.ts +0 -44
- package/vue3/lib/edge/types/builder-props.d.ts +0 -9
- package/vue3/lib/edge/types/can-track.d.ts +0 -3
- package/vue3/lib/edge/types/components.d.ts +0 -110
- package/vue3/lib/edge/types/deep-partial.d.ts +0 -3
- package/vue3/lib/edge/types/element.d.ts +0 -59
- package/vue3/lib/edge/types/enforced-partials.d.ts +0 -21
- package/vue3/lib/edge/types/input.d.ts +0 -121
- package/vue3/lib/edge/types/targets.d.ts +0 -1
- package/vue3/lib/edge/types/typescript.d.ts +0 -11
- package/vue3/lib/node/block-wrapper.25e28ca3.cjs +0 -1
- package/vue3/lib/node/block-wrapper.56bce6c4.js +0 -55
- package/vue3/lib/node/blocks/button/button.vue.d.ts +0 -30
- package/vue3/lib/node/blocks/button/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/columns/columns.vue.d.ts +0 -69
- package/vue3/lib/node/blocks/columns/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/custom-code/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -20
- package/vue3/lib/node/blocks/embed/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/embed/embed.vue.d.ts +0 -22
- package/vue3/lib/node/blocks/embed/helpers.d.ts +0 -1
- package/vue3/lib/node/blocks/form/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/fragment/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/fragment/fragment.vue.d.ts +0 -7
- package/vue3/lib/node/blocks/helpers.d.ts +0 -13
- package/vue3/lib/node/blocks/image/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/image/image.helpers.d.ts +0 -1
- package/vue3/lib/node/blocks/image/image.vue.d.ts +0 -72
- package/vue3/lib/node/blocks/img/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/img/img.vue.d.ts +0 -38
- package/vue3/lib/node/blocks/input/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/raw-text/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/section/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/section/section.vue.d.ts +0 -22
- package/vue3/lib/node/blocks/select/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/submit-button/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/symbol/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +0 -56
- package/vue3/lib/node/blocks/text/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/text/text.vue.d.ts +0 -11
- package/vue3/lib/node/blocks/textarea/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/video/component-info.d.ts +0 -2
- package/vue3/lib/node/blocks/video/video.vue.d.ts +0 -64
- package/vue3/lib/node/component-ref.c35ae123.cjs +0 -1
- package/vue3/lib/node/component-ref.cd59ca4d.js +0 -112
- package/vue3/lib/node/components/block/block.helpers.d.ts +0 -13
- package/vue3/lib/node/components/block/block.vue.d.ts +0 -41
- package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +0 -22
- package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +0 -41
- package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +0 -30
- package/vue3/lib/node/components/block/components/repeated-block.vue.d.ts +0 -16
- package/vue3/lib/node/components/block/types.d.ts +0 -6
- package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +0 -29
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -91
- package/vue3/lib/node/components/content/components/styles.helpers.d.ts +0 -15
- package/vue3/lib/node/components/content/components/styles.vue.d.ts +0 -16
- package/vue3/lib/node/components/content/content.helpers.d.ts +0 -7
- package/vue3/lib/node/components/content/content.types.d.ts +0 -24
- package/vue3/lib/node/components/content/content.vue.d.ts +0 -69
- package/vue3/lib/node/components/content/index.d.ts +0 -1
- package/vue3/lib/node/components/content/wrap-component-ref.d.ts +0 -6
- package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +0 -20
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +0 -73
- package/vue3/lib/node/components/content-variants/helpers.d.ts +0 -41
- package/vue3/lib/node/components/inlined-script.vue.d.ts +0 -11
- package/vue3/lib/node/components/inlined-styles.vue.d.ts +0 -11
- package/vue3/lib/node/constants/builder-registered-components.d.ts +0 -6
- package/vue3/lib/node/constants/device-sizes.d.ts +0 -13
- package/vue3/lib/node/constants/sdk-version.d.ts +0 -1
- package/vue3/lib/node/constants/target.d.ts +0 -2
- package/vue3/lib/node/context/builder.context.d.ts +0 -15
- package/vue3/lib/node/context/components.context.d.ts +0 -7
- package/vue3/lib/node/context/types.d.ts +0 -35
- package/vue3/lib/node/functions/apply-patch-with-mutation.d.ts +0 -10
- package/vue3/lib/node/functions/camel-to-kebab-case.d.ts +0 -1
- package/vue3/lib/node/functions/deopt.d.ts +0 -4
- package/vue3/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/vue3/lib/node/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +0 -6
- package/vue3/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/vue3/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/vue3/lib/node/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/vue3/lib/node/functions/evaluate/evaluate.d.ts +0 -2
- package/vue3/lib/node/functions/evaluate/helpers.d.ts +0 -24
- package/vue3/lib/node/functions/evaluate/index.d.ts +0 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +0 -2
- package/vue3/lib/node/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/vue3/lib/node/functions/event-handler-name.d.ts +0 -1
- package/vue3/lib/node/functions/extract-text-styles.d.ts +0 -4
- package/vue3/lib/node/functions/fast-clone.d.ts +0 -4
- package/vue3/lib/node/functions/fetch-builder-props.d.ts +0 -53
- package/vue3/lib/node/functions/get-block-actions-handler.d.ts +0 -8
- package/vue3/lib/node/functions/get-block-actions.d.ts +0 -10
- package/vue3/lib/node/functions/get-block-component-options.d.ts +0 -2
- package/vue3/lib/node/functions/get-block-properties.d.ts +0 -6
- package/vue3/lib/node/functions/get-builder-search-params/index.d.ts +0 -12
- package/vue3/lib/node/functions/get-content/generate-content-url.d.ts +0 -2
- package/vue3/lib/node/functions/get-content/index.d.ts +0 -28
- package/vue3/lib/node/functions/get-content/types.d.ts +0 -142
- package/vue3/lib/node/functions/get-fetch.d.ts +0 -1
- package/vue3/lib/node/functions/get-processed-block.d.ts +0 -10
- package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +0 -7
- package/vue3/lib/node/functions/is-browser.d.ts +0 -1
- package/vue3/lib/node/functions/is-edge-runtime.d.ts +0 -4
- package/vue3/lib/node/functions/is-editing.d.ts +0 -1
- package/vue3/lib/node/functions/is-iframe.d.ts +0 -1
- package/vue3/lib/node/functions/is-node-runtime.d.ts +0 -4
- package/vue3/lib/node/functions/is-previewing.d.ts +0 -1
- package/vue3/lib/node/functions/on-change.d.ts +0 -7
- package/vue3/lib/node/functions/register-component.d.ts +0 -15
- package/vue3/lib/node/functions/register.d.ts +0 -16
- package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/vue3/lib/node/functions/set-editor-settings.d.ts +0 -4
- package/vue3/lib/node/functions/set.d.ts +0 -7
- package/vue3/lib/node/functions/track/helpers.d.ts +0 -5
- package/vue3/lib/node/functions/track/index.d.ts +0 -51
- package/vue3/lib/node/functions/track/interaction.d.ts +0 -13
- package/vue3/lib/node/functions/transform-block-properties.d.ts +0 -2
- package/vue3/lib/node/functions/transform-block.d.ts +0 -2
- package/vue3/lib/node/get-block-actions.0d715e21.cjs +0 -1
- package/vue3/lib/node/get-block-actions.3df391e9.js +0 -79
- package/vue3/lib/node/helpers/ab-tests.d.ts +0 -9
- package/vue3/lib/node/helpers/canTrack.d.ts +0 -1
- package/vue3/lib/node/helpers/cookie.d.ts +0 -19
- package/vue3/lib/node/helpers/css.d.ts +0 -7
- package/vue3/lib/node/helpers/flatten.d.ts +0 -6
- package/vue3/lib/node/helpers/localStorage.d.ts +0 -9
- package/vue3/lib/node/helpers/logger.d.ts +0 -6
- package/vue3/lib/node/helpers/nullable.d.ts +0 -2
- package/vue3/lib/node/helpers/preview-lru-cache/get.d.ts +0 -2
- package/vue3/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/node/helpers/preview-lru-cache/init.d.ts +0 -6
- package/vue3/lib/node/helpers/preview-lru-cache/set.d.ts +0 -7
- package/vue3/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/node/helpers/sessionId.d.ts +0 -6
- package/vue3/lib/node/helpers/time.d.ts +0 -1
- package/vue3/lib/node/helpers/url.d.ts +0 -6
- package/vue3/lib/node/helpers/uuid.d.ts +0 -8
- package/vue3/lib/node/helpers/visitorId.d.ts +0 -6
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +0 -111
- package/vue3/lib/node/index-helpers/top-of-file.d.ts +0 -1
- package/vue3/lib/node/index.88589866.js +0 -3375
- package/vue3/lib/node/index.b2d2bb5e.cjs +0 -109
- package/vue3/lib/node/index.cjs +0 -1
- package/vue3/lib/node/index.d.ts +0 -7
- package/vue3/lib/node/index.js +0 -30
- package/vue3/lib/node/repeated-block.57ca2ba1.js +0 -34
- package/vue3/lib/node/repeated-block.78ed5bbb.cjs +0 -1
- package/vue3/lib/node/scripts/init-editing.d.ts +0 -6
- package/vue3/lib/node/server-index.d.ts +0 -15
- package/vue3/lib/node/style.css +0 -1
- package/vue3/lib/node/types/api-version.d.ts +0 -2
- package/vue3/lib/node/types/builder-block.d.ts +0 -66
- package/vue3/lib/node/types/builder-content.d.ts +0 -44
- package/vue3/lib/node/types/builder-props.d.ts +0 -9
- package/vue3/lib/node/types/can-track.d.ts +0 -3
- package/vue3/lib/node/types/components.d.ts +0 -110
- package/vue3/lib/node/types/deep-partial.d.ts +0 -3
- package/vue3/lib/node/types/element.d.ts +0 -59
- package/vue3/lib/node/types/enforced-partials.d.ts +0 -21
- package/vue3/lib/node/types/input.d.ts +0 -121
- package/vue3/lib/node/types/targets.d.ts +0 -1
- package/vue3/lib/node/types/typescript.d.ts +0 -11
|
@@ -1,3375 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, mergeProps as I, toHandlers as F, toDisplayString as ae, h as Ce, resolveComponent as v, createBlock as C, createCommentVNode as w, defineAsyncComponent as W, Fragment as R, renderList as B, withCtx as ne, createVNode as V, normalizeProps as ce, guardReactiveProps as nt, renderSlot as U, createElementVNode as le, normalizeStyle as de, normalizeClass as we, markRaw as ot } from "vue";
|
|
2
|
-
import { createRequire as st } from "node:module";
|
|
3
|
-
function q(e = {}, t, n) {
|
|
4
|
-
const o = {};
|
|
5
|
-
for (const s in e) {
|
|
6
|
-
if (!e[s] || n && !s.startsWith(t))
|
|
7
|
-
continue;
|
|
8
|
-
const r = n ? s.replace(t, "") : s;
|
|
9
|
-
o[r] = e[s];
|
|
10
|
-
}
|
|
11
|
-
return o;
|
|
12
|
-
}
|
|
13
|
-
const rt = y({
|
|
14
|
-
name: "builder-button",
|
|
15
|
-
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
|
-
data() {
|
|
17
|
-
return { filterAttrs: q };
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
_classStringToObject(e) {
|
|
21
|
-
const t = {};
|
|
22
|
-
if (typeof e != "string")
|
|
23
|
-
return t;
|
|
24
|
-
const n = e.trim().split(/\s+/);
|
|
25
|
-
for (const o of n)
|
|
26
|
-
t[o] = !0;
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const k = (e, t) => {
|
|
32
|
-
const n = e.__vccOpts || e;
|
|
33
|
-
for (const [o, s] of t)
|
|
34
|
-
n[o] = s;
|
|
35
|
-
return n;
|
|
36
|
-
}, it = ["href", "target"];
|
|
37
|
-
function at(e, t, n, o, s, r) {
|
|
38
|
-
return e.link ? (d(), h("a", I({
|
|
39
|
-
key: 0,
|
|
40
|
-
role: "button",
|
|
41
|
-
href: e.link,
|
|
42
|
-
target: e.openLinkInNewTab ? "_blank" : void 0
|
|
43
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17, it)) : (d(), h("button", I({
|
|
44
|
-
key: 1,
|
|
45
|
-
style: e.attributes.style,
|
|
46
|
-
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17));
|
|
48
|
-
}
|
|
49
|
-
const ct = /* @__PURE__ */ k(rt, [["render", at], ["__scopeId", "data-v-becdf225"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), N = (e) => JSON.parse(JSON.stringify(e)), $e = {
|
|
50
|
-
small: {
|
|
51
|
-
min: 320,
|
|
52
|
-
default: 321,
|
|
53
|
-
max: 640
|
|
54
|
-
},
|
|
55
|
-
medium: {
|
|
56
|
-
min: 641,
|
|
57
|
-
default: 642,
|
|
58
|
-
max: 991
|
|
59
|
-
},
|
|
60
|
-
large: {
|
|
61
|
-
min: 990,
|
|
62
|
-
default: 991,
|
|
63
|
-
max: 1200
|
|
64
|
-
}
|
|
65
|
-
}, ue = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Te = ({
|
|
66
|
-
small: e,
|
|
67
|
-
medium: t
|
|
68
|
-
}) => {
|
|
69
|
-
const n = N($e);
|
|
70
|
-
if (!e || !t)
|
|
71
|
-
return n;
|
|
72
|
-
const o = Math.floor(e / 2);
|
|
73
|
-
n.small = {
|
|
74
|
-
max: e,
|
|
75
|
-
min: o,
|
|
76
|
-
default: o + 1
|
|
77
|
-
};
|
|
78
|
-
const s = n.small.max + 1;
|
|
79
|
-
n.medium = {
|
|
80
|
-
max: t,
|
|
81
|
-
min: s,
|
|
82
|
-
default: s + 1
|
|
83
|
-
};
|
|
84
|
-
const r = n.medium.max + 1;
|
|
85
|
-
return n.large = {
|
|
86
|
-
max: 2e3,
|
|
87
|
-
min: r,
|
|
88
|
-
default: r + 1
|
|
89
|
-
}, n;
|
|
90
|
-
}, j = "vue3", L = "[Builder.io]: ", x = {
|
|
91
|
-
log: (...e) => console.log(L, ...e),
|
|
92
|
-
error: (...e) => console.error(L, ...e),
|
|
93
|
-
warn: (...e) => console.warn(L, ...e),
|
|
94
|
-
debug: (...e) => console.debug(L, ...e)
|
|
95
|
-
};
|
|
96
|
-
function $() {
|
|
97
|
-
return typeof window < "u" && typeof document < "u";
|
|
98
|
-
}
|
|
99
|
-
function lt() {
|
|
100
|
-
return $() && window.self !== window.top;
|
|
101
|
-
}
|
|
102
|
-
function _() {
|
|
103
|
-
return lt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
104
|
-
}
|
|
105
|
-
const dt = () => {
|
|
106
|
-
if ($()) {
|
|
107
|
-
const e = new URL(location.href);
|
|
108
|
-
return e.pathname === "" && (e.pathname = "/"), e;
|
|
109
|
-
} else
|
|
110
|
-
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
111
|
-
}, ut = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
|
|
112
|
-
const e = ut(), t = {
|
|
113
|
-
Android() {
|
|
114
|
-
return e.match(/Android/i);
|
|
115
|
-
},
|
|
116
|
-
BlackBerry() {
|
|
117
|
-
return e.match(/BlackBerry/i);
|
|
118
|
-
},
|
|
119
|
-
iOS() {
|
|
120
|
-
return e.match(/iPhone|iPod/i);
|
|
121
|
-
},
|
|
122
|
-
Opera() {
|
|
123
|
-
return e.match(/Opera Mini/i);
|
|
124
|
-
},
|
|
125
|
-
Windows() {
|
|
126
|
-
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
127
|
-
},
|
|
128
|
-
any() {
|
|
129
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || j === "reactNative";
|
|
130
|
-
}
|
|
131
|
-
}, n = e.match(/Tablet|iPad/i), o = dt();
|
|
132
|
-
return {
|
|
133
|
-
urlPath: o == null ? void 0 : o.pathname,
|
|
134
|
-
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
135
|
-
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
136
|
-
};
|
|
137
|
-
}, Re = ({
|
|
138
|
-
builder: e,
|
|
139
|
-
context: t,
|
|
140
|
-
event: n,
|
|
141
|
-
state: o
|
|
142
|
-
}) => Object.entries({
|
|
143
|
-
state: o,
|
|
144
|
-
Builder: e,
|
|
145
|
-
builder: e,
|
|
146
|
-
context: t,
|
|
147
|
-
event: n
|
|
148
|
-
}), pt = () => ({
|
|
149
|
-
isEditing: _(),
|
|
150
|
-
isBrowser: $(),
|
|
151
|
-
isServer: !$(),
|
|
152
|
-
getUserAttributes: () => Ie()
|
|
153
|
-
}), mt = (e, {
|
|
154
|
-
isExpression: t = !0
|
|
155
|
-
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ht = ({
|
|
156
|
-
code: e,
|
|
157
|
-
builder: t,
|
|
158
|
-
context: n,
|
|
159
|
-
event: o,
|
|
160
|
-
localState: s,
|
|
161
|
-
rootSetState: r,
|
|
162
|
-
rootState: i
|
|
163
|
-
}) => {
|
|
164
|
-
const a = Re({
|
|
165
|
-
builder: t,
|
|
166
|
-
context: n,
|
|
167
|
-
event: o,
|
|
168
|
-
state: ft(i, s, r)
|
|
169
|
-
});
|
|
170
|
-
return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
|
|
171
|
-
};
|
|
172
|
-
function ft(e, t, n) {
|
|
173
|
-
if (e === t)
|
|
174
|
-
throw new Error("rootState === localState");
|
|
175
|
-
return new Proxy(e, {
|
|
176
|
-
get: (o, s) => t && s in t ? t[s] : e[s],
|
|
177
|
-
set: (o, s, r) => {
|
|
178
|
-
if (t && s in t)
|
|
179
|
-
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
180
|
-
return e[s] = r, n == null || n(e), !0;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
const bt = () => null;
|
|
185
|
-
let xe = bt;
|
|
186
|
-
try {
|
|
187
|
-
xe = st(import.meta.url);
|
|
188
|
-
} catch {
|
|
189
|
-
}
|
|
190
|
-
const Ee = (e, t, n) => {
|
|
191
|
-
if (Object(e) !== e)
|
|
192
|
-
return e;
|
|
193
|
-
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
194
|
-
return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
195
|
-
}, Q = xe("isolated-vm"), _e = (e) => `bldr_${e}_sync`, Ae = "BUILDER_SET_STATE", je = "BUILDER_IVM", gt = `
|
|
196
|
-
var refToProxy = (obj) => {
|
|
197
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
198
|
-
return obj;
|
|
199
|
-
}
|
|
200
|
-
return new Proxy({}, {
|
|
201
|
-
get(target, key) {
|
|
202
|
-
if (key === 'copySync') {
|
|
203
|
-
return () => obj.copySync();
|
|
204
|
-
}
|
|
205
|
-
const val = obj.getSync(key);
|
|
206
|
-
if (typeof val?.getSync === 'function') {
|
|
207
|
-
return refToProxy(val);
|
|
208
|
-
}
|
|
209
|
-
return val;
|
|
210
|
-
},
|
|
211
|
-
set(target, key, value) {
|
|
212
|
-
const v = typeof value === 'object' ? new ${je}.Reference(value) : value;
|
|
213
|
-
obj.setSync(key, v);
|
|
214
|
-
${Ae}(key, value)
|
|
215
|
-
},
|
|
216
|
-
deleteProperty(target, key) {
|
|
217
|
-
obj.deleteSync(key);
|
|
218
|
-
}
|
|
219
|
-
})
|
|
220
|
-
}
|
|
221
|
-
`, yt = ({
|
|
222
|
-
code: e,
|
|
223
|
-
args: t
|
|
224
|
-
}) => {
|
|
225
|
-
const n = t.map(([o]) => `var ${o} = refToProxy(${_e(o)}); `).join("");
|
|
226
|
-
return `
|
|
227
|
-
${gt}
|
|
228
|
-
${n}
|
|
229
|
-
function theFunction() {
|
|
230
|
-
${e}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
let output = theFunction()
|
|
234
|
-
|
|
235
|
-
if (typeof output === 'object' && output !== null) {
|
|
236
|
-
output = JSON.stringify(output.copySync ? output.copySync() : output);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
output;
|
|
240
|
-
`;
|
|
241
|
-
}, kt = () => new Q.Isolate({
|
|
242
|
-
memoryLimit: 128
|
|
243
|
-
}).createContextSync(), vt = ({
|
|
244
|
-
code: e,
|
|
245
|
-
builder: t,
|
|
246
|
-
context: n,
|
|
247
|
-
event: o,
|
|
248
|
-
localState: s,
|
|
249
|
-
rootSetState: r,
|
|
250
|
-
rootState: i
|
|
251
|
-
}) => {
|
|
252
|
-
const a = N({
|
|
253
|
-
...i,
|
|
254
|
-
...s
|
|
255
|
-
}), c = Re({
|
|
256
|
-
builder: t,
|
|
257
|
-
context: n,
|
|
258
|
-
event: o,
|
|
259
|
-
state: a
|
|
260
|
-
}), l = kt(), u = l.global;
|
|
261
|
-
u.setSync("global", u.derefInto()), u.setSync("log", function(...p) {
|
|
262
|
-
console.log(...p);
|
|
263
|
-
}), u.setSync(Ae, function(p, b) {
|
|
264
|
-
Ee(i, p, b), r == null || r(i);
|
|
265
|
-
}), c.forEach(([p, b]) => {
|
|
266
|
-
const S = typeof b == "object" ? new Q.Reference(
|
|
267
|
-
p === "builder" ? {
|
|
268
|
-
...b,
|
|
269
|
-
getUserAttributes: () => b.getUserAttributes()
|
|
270
|
-
} : b
|
|
271
|
-
) : null;
|
|
272
|
-
u.setSync(_e(p), S);
|
|
273
|
-
}), u.setSync(je, Q);
|
|
274
|
-
const f = yt({
|
|
275
|
-
code: e,
|
|
276
|
-
args: c
|
|
277
|
-
}), m = l.evalSync(f);
|
|
278
|
-
try {
|
|
279
|
-
return JSON.parse(m);
|
|
280
|
-
} catch {
|
|
281
|
-
return m;
|
|
282
|
-
}
|
|
283
|
-
}, St = (e) => $() ? ht(e) : vt(e);
|
|
284
|
-
function z({
|
|
285
|
-
code: e,
|
|
286
|
-
context: t,
|
|
287
|
-
localState: n,
|
|
288
|
-
rootState: o,
|
|
289
|
-
rootSetState: s,
|
|
290
|
-
event: r,
|
|
291
|
-
isExpression: i = !0
|
|
292
|
-
}) {
|
|
293
|
-
if (e === "") {
|
|
294
|
-
x.warn("Skipping evaluation of empty code block.");
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
const a = {
|
|
298
|
-
code: mt(e, {
|
|
299
|
-
isExpression: i
|
|
300
|
-
}),
|
|
301
|
-
builder: pt(),
|
|
302
|
-
context: t,
|
|
303
|
-
event: r,
|
|
304
|
-
rootSetState: s,
|
|
305
|
-
rootState: o,
|
|
306
|
-
localState: n
|
|
307
|
-
};
|
|
308
|
-
try {
|
|
309
|
-
return St(a);
|
|
310
|
-
} catch (c) {
|
|
311
|
-
x.error("Failed code evaluation: " + c.message, {
|
|
312
|
-
code: e
|
|
313
|
-
});
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
const Ct = ({
|
|
318
|
-
block: e,
|
|
319
|
-
context: t,
|
|
320
|
-
localState: n,
|
|
321
|
-
rootState: o,
|
|
322
|
-
rootSetState: s
|
|
323
|
-
}) => {
|
|
324
|
-
if (!e.bindings)
|
|
325
|
-
return e;
|
|
326
|
-
const r = N(e), i = {
|
|
327
|
-
...r,
|
|
328
|
-
properties: {
|
|
329
|
-
...r.properties
|
|
330
|
-
},
|
|
331
|
-
actions: {
|
|
332
|
-
...r.actions
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
for (const a in e.bindings) {
|
|
336
|
-
const c = e.bindings[a], l = z({
|
|
337
|
-
code: c,
|
|
338
|
-
localState: n,
|
|
339
|
-
rootState: o,
|
|
340
|
-
rootSetState: s,
|
|
341
|
-
context: t
|
|
342
|
-
});
|
|
343
|
-
Ee(i, a, l);
|
|
344
|
-
}
|
|
345
|
-
return i;
|
|
346
|
-
};
|
|
347
|
-
function D({
|
|
348
|
-
block: e,
|
|
349
|
-
context: t,
|
|
350
|
-
shouldEvaluateBindings: n,
|
|
351
|
-
localState: o,
|
|
352
|
-
rootState: s,
|
|
353
|
-
rootSetState: r
|
|
354
|
-
}) {
|
|
355
|
-
const i = e;
|
|
356
|
-
return n ? Ct({
|
|
357
|
-
block: i,
|
|
358
|
-
localState: o,
|
|
359
|
-
rootState: s,
|
|
360
|
-
rootSetState: r,
|
|
361
|
-
context: t
|
|
362
|
-
}) : i;
|
|
363
|
-
}
|
|
364
|
-
const wt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), A = (e) => e != null, $t = (e) => Object.entries(e).map(([n, o]) => {
|
|
365
|
-
if (typeof o == "string")
|
|
366
|
-
return `${wt(n)}: ${o};`;
|
|
367
|
-
}).filter(A), Tt = (e) => $t(e).join(`
|
|
368
|
-
`), Y = ({
|
|
369
|
-
mediaQuery: e,
|
|
370
|
-
className: t,
|
|
371
|
-
styles: n
|
|
372
|
-
}) => {
|
|
373
|
-
const o = `.${t} {
|
|
374
|
-
${Tt(n)}
|
|
375
|
-
}`;
|
|
376
|
-
return e ? `${e} {
|
|
377
|
-
${o}
|
|
378
|
-
}` : o;
|
|
379
|
-
}, It = y({
|
|
380
|
-
render() {
|
|
381
|
-
return Ce("style", { id: this.id, innerHTML: this.styles });
|
|
382
|
-
},
|
|
383
|
-
name: "inlined-styles",
|
|
384
|
-
props: ["styles", "id"]
|
|
385
|
-
}), G = /* @__PURE__ */ k(It, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Rt = y({
|
|
386
|
-
name: "block-styles",
|
|
387
|
-
components: { InlinedStyles: G },
|
|
388
|
-
props: ["block", "context"],
|
|
389
|
-
data() {
|
|
390
|
-
return { TARGET: j };
|
|
391
|
-
},
|
|
392
|
-
computed: {
|
|
393
|
-
canShowBlock() {
|
|
394
|
-
const e = D({
|
|
395
|
-
block: this.block,
|
|
396
|
-
localState: this.context.localState,
|
|
397
|
-
rootState: this.context.rootState,
|
|
398
|
-
rootSetState: this.context.rootSetState,
|
|
399
|
-
context: this.context.context,
|
|
400
|
-
shouldEvaluateBindings: !0
|
|
401
|
-
});
|
|
402
|
-
return A(e.hide) ? !e.hide : A(e.show) ? e.show : !0;
|
|
403
|
-
},
|
|
404
|
-
css() {
|
|
405
|
-
var f;
|
|
406
|
-
const e = D({
|
|
407
|
-
block: this.block,
|
|
408
|
-
localState: this.context.localState,
|
|
409
|
-
rootState: this.context.rootState,
|
|
410
|
-
rootSetState: this.context.rootSetState,
|
|
411
|
-
context: this.context.context,
|
|
412
|
-
shouldEvaluateBindings: !0
|
|
413
|
-
}), t = e.responsiveStyles, n = this.context.content, o = Te(
|
|
414
|
-
((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
|
|
415
|
-
), s = t == null ? void 0 : t.large, r = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
|
|
416
|
-
if (!a)
|
|
417
|
-
return "";
|
|
418
|
-
const c = s ? Y({
|
|
419
|
-
className: a,
|
|
420
|
-
styles: s
|
|
421
|
-
}) : "", l = r ? Y({
|
|
422
|
-
className: a,
|
|
423
|
-
styles: r,
|
|
424
|
-
mediaQuery: ue(
|
|
425
|
-
"medium",
|
|
426
|
-
o
|
|
427
|
-
)
|
|
428
|
-
}) : "", u = i ? Y({
|
|
429
|
-
className: a,
|
|
430
|
-
styles: i,
|
|
431
|
-
mediaQuery: ue(
|
|
432
|
-
"small",
|
|
433
|
-
o
|
|
434
|
-
)
|
|
435
|
-
}) : "";
|
|
436
|
-
return [c, l, u].join(" ");
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
function xt(e, t, n, o, s, r) {
|
|
441
|
-
const i = v("inlined-styles");
|
|
442
|
-
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), C(i, {
|
|
443
|
-
key: 0,
|
|
444
|
-
styles: e.css
|
|
445
|
-
}, null, 8, ["styles"])) : w("v-if", !0);
|
|
446
|
-
}
|
|
447
|
-
const Pe = /* @__PURE__ */ k(Rt, [["render", xt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
448
|
-
__proto__: null,
|
|
449
|
-
default: Pe
|
|
450
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
451
|
-
function _t(e) {
|
|
452
|
-
var t;
|
|
453
|
-
return {
|
|
454
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
455
|
-
...e.options,
|
|
456
|
-
builderBlock: e
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], jt = (e) => typeof e == "string" && At.includes(e.toLowerCase()), Pt = ({
|
|
460
|
-
block: e,
|
|
461
|
-
context: t,
|
|
462
|
-
registeredComponents: n
|
|
463
|
-
}) => {
|
|
464
|
-
var r;
|
|
465
|
-
const o = (r = D({
|
|
466
|
-
block: e,
|
|
467
|
-
localState: t.localState,
|
|
468
|
-
rootState: t.rootState,
|
|
469
|
-
rootSetState: t.rootSetState,
|
|
470
|
-
context: t.context,
|
|
471
|
-
shouldEvaluateBindings: !1
|
|
472
|
-
}).component) == null ? void 0 : r.name;
|
|
473
|
-
if (!o)
|
|
474
|
-
return null;
|
|
475
|
-
const s = n[o];
|
|
476
|
-
if (s)
|
|
477
|
-
return s;
|
|
478
|
-
console.warn(`
|
|
479
|
-
Could not find a registered component named "${o}".
|
|
480
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
481
|
-
}, Bt = ({
|
|
482
|
-
block: e,
|
|
483
|
-
context: t
|
|
484
|
-
}) => {
|
|
485
|
-
const {
|
|
486
|
-
repeat: n,
|
|
487
|
-
...o
|
|
488
|
-
} = e;
|
|
489
|
-
if (!(n != null && n.collection))
|
|
490
|
-
return;
|
|
491
|
-
const s = z({
|
|
492
|
-
code: n.collection,
|
|
493
|
-
localState: t.localState,
|
|
494
|
-
rootState: t.rootState,
|
|
495
|
-
rootSetState: t.rootSetState,
|
|
496
|
-
context: t.context
|
|
497
|
-
});
|
|
498
|
-
if (!Array.isArray(s))
|
|
499
|
-
return;
|
|
500
|
-
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
|
|
501
|
-
return s.map((c, l) => ({
|
|
502
|
-
context: {
|
|
503
|
-
...t,
|
|
504
|
-
localState: {
|
|
505
|
-
...t.localState,
|
|
506
|
-
$index: l,
|
|
507
|
-
$item: c,
|
|
508
|
-
[i]: c,
|
|
509
|
-
[`$${i}Index`]: l
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
block: o
|
|
513
|
-
}));
|
|
514
|
-
}, Vt = () => Promise.resolve().then(() => Et).then((e) => e.default).catch((e) => {
|
|
515
|
-
throw console.error(
|
|
516
|
-
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
517
|
-
e
|
|
518
|
-
), e;
|
|
519
|
-
}), Ut = () => import("./repeated-block.57ca2ba1.js").then((e) => e.default).catch((e) => {
|
|
520
|
-
throw console.error(
|
|
521
|
-
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
522
|
-
e
|
|
523
|
-
), e;
|
|
524
|
-
}), Nt = () => import("./component-ref.cd59ca4d.js").then((e) => e.default).catch((e) => {
|
|
525
|
-
throw console.error(
|
|
526
|
-
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
527
|
-
e
|
|
528
|
-
), e;
|
|
529
|
-
}), Ot = () => import("./block-wrapper.56bce6c4.js").then((e) => e.default).catch((e) => {
|
|
530
|
-
throw console.error(
|
|
531
|
-
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
532
|
-
e
|
|
533
|
-
), e;
|
|
534
|
-
}), Ft = y({
|
|
535
|
-
name: "block",
|
|
536
|
-
components: {
|
|
537
|
-
ComponentRef: W(Nt),
|
|
538
|
-
BlockWrapper: W(Ot),
|
|
539
|
-
RepeatedBlock: W(Ut),
|
|
540
|
-
BlockStyles: W(Vt)
|
|
541
|
-
},
|
|
542
|
-
props: ["block", "context", "registeredComponents"],
|
|
543
|
-
data() {
|
|
544
|
-
return { childrenContext: this.context, isEmptyHtmlElement: jt };
|
|
545
|
-
},
|
|
546
|
-
computed: {
|
|
547
|
-
blockComponent() {
|
|
548
|
-
return Pt({
|
|
549
|
-
block: this.block,
|
|
550
|
-
context: this.context,
|
|
551
|
-
registeredComponents: this.registeredComponents
|
|
552
|
-
});
|
|
553
|
-
},
|
|
554
|
-
repeatItem() {
|
|
555
|
-
return Bt({
|
|
556
|
-
block: this.block,
|
|
557
|
-
context: this.context
|
|
558
|
-
});
|
|
559
|
-
},
|
|
560
|
-
processedBlock() {
|
|
561
|
-
return this.repeatItem ? this.block : D({
|
|
562
|
-
block: this.block,
|
|
563
|
-
localState: this.context.localState,
|
|
564
|
-
rootState: this.context.rootState,
|
|
565
|
-
rootSetState: this.context.rootSetState,
|
|
566
|
-
context: this.context.context,
|
|
567
|
-
shouldEvaluateBindings: !0
|
|
568
|
-
});
|
|
569
|
-
},
|
|
570
|
-
Tag() {
|
|
571
|
-
return this.block.tagName || "div";
|
|
572
|
-
},
|
|
573
|
-
canShowBlock() {
|
|
574
|
-
return "hide" in this.processedBlock ? !this.processedBlock.hide : "show" in this.processedBlock ? this.processedBlock.show : !0;
|
|
575
|
-
},
|
|
576
|
-
childrenWithoutParentComponent() {
|
|
577
|
-
var t, n;
|
|
578
|
-
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
579
|
-
},
|
|
580
|
-
componentRefProps() {
|
|
581
|
-
var e, t, n, o, s, r;
|
|
582
|
-
return {
|
|
583
|
-
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
584
|
-
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
585
|
-
componentOptions: {
|
|
586
|
-
..._t(this.processedBlock),
|
|
587
|
-
builderContext: this.context,
|
|
588
|
-
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
589
|
-
builderComponents: this.registeredComponents
|
|
590
|
-
} : {}
|
|
591
|
-
},
|
|
592
|
-
context: this.childrenContext,
|
|
593
|
-
registeredComponents: this.registeredComponents,
|
|
594
|
-
builderBlock: this.processedBlock,
|
|
595
|
-
includeBlockProps: ((s = this.blockComponent) == null ? void 0 : s.noWrap) === !0,
|
|
596
|
-
isInteractive: !((r = this.blockComponent) != null && r.isRSC)
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
});
|
|
601
|
-
function Mt(e, t, n, o, s, r) {
|
|
602
|
-
var f;
|
|
603
|
-
const i = v("block-wrapper"), a = v("repeated-block"), c = v("component-ref"), l = v("block", !0), u = v("block-styles");
|
|
604
|
-
return e.canShowBlock ? (d(), h(R, { key: 0 }, [
|
|
605
|
-
(f = e.blockComponent) != null && f.noWrap ? (d(), C(c, ce(I({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), h(R, { key: 0 }, [
|
|
606
|
-
e.isEmptyHtmlElement(e.Tag) ? (d(), C(i, {
|
|
607
|
-
key: 0,
|
|
608
|
-
Wrapper: e.Tag,
|
|
609
|
-
block: e.processedBlock,
|
|
610
|
-
context: e.context,
|
|
611
|
-
hasChildren: !1
|
|
612
|
-
}, null, 8, ["Wrapper", "block", "context"])) : w("v-if", !0),
|
|
613
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), h(R, { key: 1 }, B(e.repeatItem, (m, p) => (d(), C(a, {
|
|
614
|
-
key: p,
|
|
615
|
-
repeatContext: m.context,
|
|
616
|
-
block: m.block,
|
|
617
|
-
registeredComponents: e.registeredComponents
|
|
618
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : w("v-if", !0),
|
|
619
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), C(i, {
|
|
620
|
-
key: 2,
|
|
621
|
-
Wrapper: e.Tag,
|
|
622
|
-
block: e.processedBlock,
|
|
623
|
-
context: e.context,
|
|
624
|
-
hasChildren: !0
|
|
625
|
-
}, {
|
|
626
|
-
default: ne(() => [
|
|
627
|
-
V(c, ce(nt(e.componentRefProps)), null, 16),
|
|
628
|
-
(d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(l, {
|
|
629
|
-
key: "block-" + m.id,
|
|
630
|
-
block: m,
|
|
631
|
-
context: e.childrenContext,
|
|
632
|
-
registeredComponents: e.registeredComponents
|
|
633
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
634
|
-
(d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(u, {
|
|
635
|
-
key: "block-style-" + m.id,
|
|
636
|
-
block: m,
|
|
637
|
-
context: e.childrenContext
|
|
638
|
-
}, null, 8, ["block", "context"]))), 128))
|
|
639
|
-
]),
|
|
640
|
-
_: 1
|
|
641
|
-
}, 8, ["Wrapper", "block", "context"])) : w("v-if", !0)
|
|
642
|
-
], 64))
|
|
643
|
-
], 64)) : w("v-if", !0);
|
|
644
|
-
}
|
|
645
|
-
const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
646
|
-
__proto__: null,
|
|
647
|
-
default: Be
|
|
648
|
-
}, Symbol.toStringTag, { value: "Module" })), Wt = y({
|
|
649
|
-
name: "builder-blocks-wrapper",
|
|
650
|
-
props: ["blocks", "parent", "path", "styleProp"],
|
|
651
|
-
computed: {
|
|
652
|
-
className() {
|
|
653
|
-
var e;
|
|
654
|
-
return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
methods: {
|
|
658
|
-
onClick() {
|
|
659
|
-
var e, t;
|
|
660
|
-
_() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
661
|
-
{
|
|
662
|
-
type: "builder.clickEmptyBlocks",
|
|
663
|
-
data: {
|
|
664
|
-
parentElementId: this.parent,
|
|
665
|
-
dataPath: this.path
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
"*"
|
|
669
|
-
));
|
|
670
|
-
},
|
|
671
|
-
onMouseEnter() {
|
|
672
|
-
var e, t;
|
|
673
|
-
_() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
674
|
-
{
|
|
675
|
-
type: "builder.hoverEmptyBlocks",
|
|
676
|
-
data: {
|
|
677
|
-
parentElementId: this.parent,
|
|
678
|
-
dataPath: this.path
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
"*"
|
|
682
|
-
));
|
|
683
|
-
},
|
|
684
|
-
_classStringToObject(e) {
|
|
685
|
-
const t = {};
|
|
686
|
-
if (typeof e != "string")
|
|
687
|
-
return t;
|
|
688
|
-
const n = e.trim().split(/\s+/);
|
|
689
|
-
for (const o of n)
|
|
690
|
-
t[o] = !0;
|
|
691
|
-
return t;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
});
|
|
695
|
-
const Lt = ["builder-path", "builder-parent-id"];
|
|
696
|
-
function Kt(e, t, n, o, s, r) {
|
|
697
|
-
return d(), h("div", I({
|
|
698
|
-
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
699
|
-
"builder-path": e.path,
|
|
700
|
-
"builder-parent-id": e.parent,
|
|
701
|
-
style: e.styleProp,
|
|
702
|
-
onClick: t[0] || (t[0] = (i) => e.onClick()),
|
|
703
|
-
onMouseenter: t[1] || (t[1] = (i) => e.onMouseEnter()),
|
|
704
|
-
onKeypress: t[2] || (t[2] = (i) => e.onClick())
|
|
705
|
-
}, {}), [
|
|
706
|
-
U(e.$slots, "default", {}, void 0, !0)
|
|
707
|
-
], 16, Lt);
|
|
708
|
-
}
|
|
709
|
-
const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), zt = Symbol(), Z = {
|
|
710
|
-
Builder: {
|
|
711
|
-
content: null,
|
|
712
|
-
context: {},
|
|
713
|
-
localState: void 0,
|
|
714
|
-
rootSetState() {
|
|
715
|
-
},
|
|
716
|
-
rootState: {},
|
|
717
|
-
apiKey: null,
|
|
718
|
-
apiVersion: void 0,
|
|
719
|
-
componentInfos: {},
|
|
720
|
-
inheritedStyles: {}
|
|
721
|
-
},
|
|
722
|
-
key: zt
|
|
723
|
-
}, Dt = Symbol(), Ve = {
|
|
724
|
-
Components: { registeredComponents: {} },
|
|
725
|
-
key: Dt
|
|
726
|
-
}, qt = y({
|
|
727
|
-
name: "builder-blocks",
|
|
728
|
-
components: {
|
|
729
|
-
BlocksWrapper: Ht,
|
|
730
|
-
Block: Be,
|
|
731
|
-
BlockStyles: Pe
|
|
732
|
-
},
|
|
733
|
-
props: [
|
|
734
|
-
"blocks",
|
|
735
|
-
"parent",
|
|
736
|
-
"path",
|
|
737
|
-
"styleProp",
|
|
738
|
-
"context",
|
|
739
|
-
"registeredComponents"
|
|
740
|
-
],
|
|
741
|
-
inject: {
|
|
742
|
-
builderContext: Z.key,
|
|
743
|
-
componentsContext: Ve.key
|
|
744
|
-
}
|
|
745
|
-
});
|
|
746
|
-
function Gt(e, t, n, o, s, r) {
|
|
747
|
-
const i = v("block"), a = v("block-styles"), c = v("blocks-wrapper");
|
|
748
|
-
return d(), C(c, {
|
|
749
|
-
blocks: e.blocks,
|
|
750
|
-
parent: e.parent,
|
|
751
|
-
path: e.path,
|
|
752
|
-
styleProp: e.styleProp
|
|
753
|
-
}, {
|
|
754
|
-
default: ne(() => [
|
|
755
|
-
e.blocks ? (d(!0), h(R, { key: 0 }, B(e.blocks, (l, u) => (d(), C(i, {
|
|
756
|
-
key: "render-block-" + l.id,
|
|
757
|
-
block: l,
|
|
758
|
-
context: e.context || e.builderContext,
|
|
759
|
-
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
760
|
-
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : w("v-if", !0),
|
|
761
|
-
e.blocks ? (d(!0), h(R, { key: 1 }, B(e.blocks, (l, u) => (d(), C(a, {
|
|
762
|
-
key: "block-style-" + l.id,
|
|
763
|
-
block: l,
|
|
764
|
-
context: e.context || e.builderContext
|
|
765
|
-
}, null, 8, ["block", "context"]))), 128)) : w("v-if", !0)
|
|
766
|
-
]),
|
|
767
|
-
_: 1
|
|
768
|
-
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
769
|
-
}
|
|
770
|
-
const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), Jt = y({
|
|
771
|
-
name: "builder-columns",
|
|
772
|
-
components: { InlinedStyles: G, Blocks: oe },
|
|
773
|
-
props: [
|
|
774
|
-
"js",
|
|
775
|
-
"space",
|
|
776
|
-
"columns",
|
|
777
|
-
"stackColumnsAt",
|
|
778
|
-
"reverseColumnsWhenStacked",
|
|
779
|
-
"builderContext",
|
|
780
|
-
"builderBlock",
|
|
781
|
-
"builderComponents"
|
|
782
|
-
],
|
|
783
|
-
data() {
|
|
784
|
-
return {
|
|
785
|
-
gutterSize: typeof this.space == "number" ? this.space || 0 : 20,
|
|
786
|
-
cols: this.columns || [],
|
|
787
|
-
stackAt: this.stackColumnsAt || "tablet",
|
|
788
|
-
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
789
|
-
TARGET: j
|
|
790
|
-
};
|
|
791
|
-
},
|
|
792
|
-
computed: {
|
|
793
|
-
columnsCssVars() {
|
|
794
|
-
return {
|
|
795
|
-
"--flex-dir": this.flexDir,
|
|
796
|
-
"--flex-dir-tablet": this.getTabletStyle({
|
|
797
|
-
stackedStyle: this.flexDir,
|
|
798
|
-
desktopStyle: "row"
|
|
799
|
-
})
|
|
800
|
-
};
|
|
801
|
-
},
|
|
802
|
-
columnsStyles() {
|
|
803
|
-
return `
|
|
804
|
-
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
805
|
-
.${this.builderBlock.id}-breakpoints {
|
|
806
|
-
flex-direction: var(--flex-dir-tablet);
|
|
807
|
-
align-items: stretch;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
811
|
-
width: var(--column-width-tablet) !important;
|
|
812
|
-
margin-left: var(--column-margin-left-tablet) !important;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
817
|
-
.${this.builderBlock.id}-breakpoints {
|
|
818
|
-
flex-direction: var(--flex-dir);
|
|
819
|
-
align-items: stretch;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
823
|
-
width: var(--column-width-mobile) !important;
|
|
824
|
-
margin-left: var(--column-margin-left-mobile) !important;
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
`;
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
methods: {
|
|
831
|
-
getWidth(e) {
|
|
832
|
-
var t;
|
|
833
|
-
return ((t = this.cols[e]) == null ? void 0 : t.width) || 100 / this.cols.length;
|
|
834
|
-
},
|
|
835
|
-
getColumnCssWidth(e) {
|
|
836
|
-
const t = this.gutterSize * (this.cols.length - 1) / this.cols.length;
|
|
837
|
-
return `calc(${this.getWidth(e)}% - ${t}px)`;
|
|
838
|
-
},
|
|
839
|
-
getTabletStyle({
|
|
840
|
-
stackedStyle: e,
|
|
841
|
-
desktopStyle: t
|
|
842
|
-
}) {
|
|
843
|
-
return this.stackAt === "tablet" ? e : t;
|
|
844
|
-
},
|
|
845
|
-
getMobileStyle({
|
|
846
|
-
stackedStyle: e,
|
|
847
|
-
desktopStyle: t
|
|
848
|
-
}) {
|
|
849
|
-
return this.stackAt === "never" ? t : e;
|
|
850
|
-
},
|
|
851
|
-
columnCssVars(e) {
|
|
852
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
|
|
853
|
-
return {
|
|
854
|
-
width: n,
|
|
855
|
-
["margin-left"]: o,
|
|
856
|
-
"--column-width-mobile": this.getMobileStyle({
|
|
857
|
-
stackedStyle: s,
|
|
858
|
-
desktopStyle: n
|
|
859
|
-
}),
|
|
860
|
-
"--column-margin-left-mobile": this.getMobileStyle({
|
|
861
|
-
stackedStyle: r,
|
|
862
|
-
desktopStyle: o
|
|
863
|
-
}),
|
|
864
|
-
"--column-width-tablet": this.getTabletStyle({
|
|
865
|
-
stackedStyle: s,
|
|
866
|
-
desktopStyle: n
|
|
867
|
-
}),
|
|
868
|
-
"--column-margin-left-tablet": this.getTabletStyle({
|
|
869
|
-
stackedStyle: r,
|
|
870
|
-
desktopStyle: o
|
|
871
|
-
})
|
|
872
|
-
};
|
|
873
|
-
},
|
|
874
|
-
getWidthForBreakpointSize(e) {
|
|
875
|
-
var n, o;
|
|
876
|
-
return Te(
|
|
877
|
-
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
878
|
-
)[e].max;
|
|
879
|
-
},
|
|
880
|
-
_classStringToObject(e) {
|
|
881
|
-
const t = {};
|
|
882
|
-
if (typeof e != "string")
|
|
883
|
-
return t;
|
|
884
|
-
const n = e.trim().split(/\s+/);
|
|
885
|
-
for (const o of n)
|
|
886
|
-
t[o] = !0;
|
|
887
|
-
return t;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
function Yt(e, t, n, o, s, r) {
|
|
892
|
-
const i = v("inlined-styles"), a = v("blocks");
|
|
893
|
-
return d(), h("div", I({
|
|
894
|
-
class: e._classStringToObject(
|
|
895
|
-
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
896
|
-
),
|
|
897
|
-
style: e.columnsCssVars
|
|
898
|
-
}, {}), [
|
|
899
|
-
e.TARGET !== "reactNative" ? (d(), C(i, {
|
|
900
|
-
key: 0,
|
|
901
|
-
styles: e.columnsStyles
|
|
902
|
-
}, null, 8, ["styles"])) : w("v-if", !0),
|
|
903
|
-
(d(!0), h(R, null, B(e.columns, (c, l) => (d(), h("div", I({
|
|
904
|
-
key: l,
|
|
905
|
-
class: "builder-column div-16nol0lwi20-2",
|
|
906
|
-
style: e.columnCssVars(l)
|
|
907
|
-
}, {}), [
|
|
908
|
-
V(a, {
|
|
909
|
-
path: `component.options.columns.${l}.blocks`,
|
|
910
|
-
parent: e.builderBlock.id,
|
|
911
|
-
styleProp: {
|
|
912
|
-
flexGrow: "1"
|
|
913
|
-
},
|
|
914
|
-
context: e.builderContext,
|
|
915
|
-
registeredComponents: e.builderComponents,
|
|
916
|
-
blocks: c.blocks
|
|
917
|
-
}, null, 8, ["path", "parent", "context", "registeredComponents", "blocks"])
|
|
918
|
-
], 16))), 128))
|
|
919
|
-
], 16);
|
|
920
|
-
}
|
|
921
|
-
const Xt = /* @__PURE__ */ k(Jt, [["render", Yt], ["__scopeId", "data-v-7be099dc"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Qt = y({
|
|
922
|
-
name: "builder-fragment-component",
|
|
923
|
-
props: []
|
|
924
|
-
});
|
|
925
|
-
function Zt(e, t, n, o, s, r) {
|
|
926
|
-
return d(), h("span", null, [
|
|
927
|
-
U(e.$slots, "default")
|
|
928
|
-
]);
|
|
929
|
-
}
|
|
930
|
-
const en = /* @__PURE__ */ k(Qt, [["render", Zt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
931
|
-
function pe(e) {
|
|
932
|
-
return e.replace(/http(s)?:/, "");
|
|
933
|
-
}
|
|
934
|
-
function tn(e = "", t, n) {
|
|
935
|
-
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
|
|
936
|
-
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
|
|
937
|
-
}
|
|
938
|
-
function nn(e, t) {
|
|
939
|
-
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
940
|
-
return e;
|
|
941
|
-
if (t === "master")
|
|
942
|
-
return pe(e);
|
|
943
|
-
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
944
|
-
if (n) {
|
|
945
|
-
const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
|
|
946
|
-
return pe(`${o[0]}_${r}${s}`);
|
|
947
|
-
}
|
|
948
|
-
return null;
|
|
949
|
-
}
|
|
950
|
-
function X(e) {
|
|
951
|
-
if (!e)
|
|
952
|
-
return e;
|
|
953
|
-
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
954
|
-
if (e.match(/builder\.io/)) {
|
|
955
|
-
let n = e;
|
|
956
|
-
const o = Number(e.split("?width=")[1]);
|
|
957
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${tn(e, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
958
|
-
}
|
|
959
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [nn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
960
|
-
}
|
|
961
|
-
const on = y({
|
|
962
|
-
name: "builder-image",
|
|
963
|
-
props: [
|
|
964
|
-
"image",
|
|
965
|
-
"src",
|
|
966
|
-
"srcset",
|
|
967
|
-
"noWebp",
|
|
968
|
-
"aspectRatio",
|
|
969
|
-
"altText",
|
|
970
|
-
"backgroundPosition",
|
|
971
|
-
"backgroundSize",
|
|
972
|
-
"className",
|
|
973
|
-
"sizes",
|
|
974
|
-
"builderBlock",
|
|
975
|
-
"fitContent"
|
|
976
|
-
],
|
|
977
|
-
computed: {
|
|
978
|
-
srcSetToUse() {
|
|
979
|
-
var n;
|
|
980
|
-
const t = this.image || this.src;
|
|
981
|
-
if (!t || !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
982
|
-
return this.srcset;
|
|
983
|
-
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
984
|
-
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
985
|
-
return console.debug("Removed given srcset"), X(t);
|
|
986
|
-
} else if (this.image && !this.srcset)
|
|
987
|
-
return X(t);
|
|
988
|
-
return X(t);
|
|
989
|
-
},
|
|
990
|
-
webpSrcSet() {
|
|
991
|
-
var e;
|
|
992
|
-
return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
993
|
-
},
|
|
994
|
-
aspectRatioCss() {
|
|
995
|
-
const e = {
|
|
996
|
-
position: "absolute",
|
|
997
|
-
height: "100%",
|
|
998
|
-
width: "100%",
|
|
999
|
-
left: "0px",
|
|
1000
|
-
top: "0px"
|
|
1001
|
-
};
|
|
1002
|
-
return this.aspectRatio ? e : void 0;
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
methods: {
|
|
1006
|
-
_classStringToObject(e) {
|
|
1007
|
-
const t = {};
|
|
1008
|
-
if (typeof e != "string")
|
|
1009
|
-
return t;
|
|
1010
|
-
const n = e.trim().split(/\s+/);
|
|
1011
|
-
for (const o of n)
|
|
1012
|
-
t[o] = !0;
|
|
1013
|
-
return t;
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
});
|
|
1017
|
-
const sn = ["srcset"], rn = ["alt", "role", "src", "srcset", "sizes"], an = {
|
|
1018
|
-
key: 2,
|
|
1019
|
-
class: "div-1be3j8m9ewb-2"
|
|
1020
|
-
};
|
|
1021
|
-
function cn(e, t, n, o, s, r) {
|
|
1022
|
-
var i, a, c, l;
|
|
1023
|
-
return d(), h(R, null, [
|
|
1024
|
-
le("picture", null, [
|
|
1025
|
-
e.webpSrcSet ? (d(), h("source", {
|
|
1026
|
-
key: 0,
|
|
1027
|
-
type: "image/webp",
|
|
1028
|
-
srcset: e.webpSrcSet
|
|
1029
|
-
}, null, 8, sn)) : w("v-if", !0),
|
|
1030
|
-
le("img", {
|
|
1031
|
-
loading: "lazy",
|
|
1032
|
-
alt: e.altText,
|
|
1033
|
-
role: e.altText ? "presentation" : void 0,
|
|
1034
|
-
style: de({
|
|
1035
|
-
objectPosition: e.backgroundPosition || "center",
|
|
1036
|
-
objectFit: e.backgroundSize || "cover",
|
|
1037
|
-
...e.aspectRatioCss
|
|
1038
|
-
}),
|
|
1039
|
-
class: we(
|
|
1040
|
-
e._classStringToObject(
|
|
1041
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
1042
|
-
)
|
|
1043
|
-
),
|
|
1044
|
-
src: e.image,
|
|
1045
|
-
srcset: e.srcSetToUse,
|
|
1046
|
-
sizes: e.sizes
|
|
1047
|
-
}, null, 14, rn)
|
|
1048
|
-
]),
|
|
1049
|
-
e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), h("div", {
|
|
1050
|
-
key: 0,
|
|
1051
|
-
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
1052
|
-
style: de({
|
|
1053
|
-
paddingTop: e.aspectRatio * 100 + "%"
|
|
1054
|
-
})
|
|
1055
|
-
}, null, 4)) : w("v-if", !0),
|
|
1056
|
-
((l = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : l.length) && e.fitContent ? U(e.$slots, "default", { key: 1 }, void 0, !0) : w("v-if", !0),
|
|
1057
|
-
!e.fitContent && e.$slots.default ? (d(), h("div", an, [
|
|
1058
|
-
U(e.$slots, "default", {}, void 0, !0)
|
|
1059
|
-
])) : w("v-if", !0)
|
|
1060
|
-
], 64);
|
|
1061
|
-
}
|
|
1062
|
-
const ln = /* @__PURE__ */ k(on, [["render", cn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), dn = y({
|
|
1063
|
-
name: "builder-section-component",
|
|
1064
|
-
props: ["attributes", "maxWidth"],
|
|
1065
|
-
data() {
|
|
1066
|
-
return { filterAttrs: q };
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
function un(e, t, n, o, s, r) {
|
|
1070
|
-
return d(), h("section", I({
|
|
1071
|
-
style: {
|
|
1072
|
-
width: "100%",
|
|
1073
|
-
alignSelf: "stretch",
|
|
1074
|
-
flexGrow: 1,
|
|
1075
|
-
boxSizing: "border-box",
|
|
1076
|
-
maxWidth: e.maxWidth || 1200,
|
|
1077
|
-
display: "flex",
|
|
1078
|
-
flexDirection: "column",
|
|
1079
|
-
alignItems: "stretch",
|
|
1080
|
-
marginLeft: "auto",
|
|
1081
|
-
marginRight: "auto"
|
|
1082
|
-
}
|
|
1083
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1084
|
-
U(e.$slots, "default")
|
|
1085
|
-
], 16);
|
|
1086
|
-
}
|
|
1087
|
-
const pn = /* @__PURE__ */ k(dn, [["render", un], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1088
|
-
...t,
|
|
1089
|
-
testVariationId: t.id,
|
|
1090
|
-
id: e == null ? void 0 : e.id
|
|
1091
|
-
})), mn = ({
|
|
1092
|
-
canTrack: e,
|
|
1093
|
-
content: t
|
|
1094
|
-
}) => !(!(K(t).length > 0) || !e);
|
|
1095
|
-
function hn(e, t, n) {
|
|
1096
|
-
var i;
|
|
1097
|
-
function o() {
|
|
1098
|
-
function a(b, S, T) {
|
|
1099
|
-
let E = "";
|
|
1100
|
-
if (T) {
|
|
1101
|
-
const g = new Date();
|
|
1102
|
-
g.setTime(g.getTime() + T * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
|
|
1103
|
-
}
|
|
1104
|
-
document.cookie = b + "=" + (S || "") + E + "; path=/; Secure; SameSite=None";
|
|
1105
|
-
}
|
|
1106
|
-
function c(b) {
|
|
1107
|
-
const S = b + "=", T = document.cookie.split(";");
|
|
1108
|
-
for (let E = 0; E < T.length; E++) {
|
|
1109
|
-
let g = T[E];
|
|
1110
|
-
for (; g.charAt(0) === " "; )
|
|
1111
|
-
g = g.substring(1, g.length);
|
|
1112
|
-
if (g.indexOf(S) === 0)
|
|
1113
|
-
return g.substring(S.length, g.length);
|
|
1114
|
-
}
|
|
1115
|
-
return null;
|
|
1116
|
-
}
|
|
1117
|
-
const l = `builder.tests.${e}`, u = c(l), f = t.map((b) => b.id).concat(e);
|
|
1118
|
-
if (u && f.includes(u))
|
|
1119
|
-
return u;
|
|
1120
|
-
let m = 0;
|
|
1121
|
-
const p = Math.random();
|
|
1122
|
-
for (let b = 0; b < t.length; b++) {
|
|
1123
|
-
const S = t[b], T = S.testRatio;
|
|
1124
|
-
if (m += T, p < m)
|
|
1125
|
-
return a(l, S.id), S.id;
|
|
1126
|
-
}
|
|
1127
|
-
return a(l, e), e;
|
|
1128
|
-
}
|
|
1129
|
-
const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
1130
|
-
if (n) {
|
|
1131
|
-
r.remove();
|
|
1132
|
-
const a = document.currentScript;
|
|
1133
|
-
a == null || a.remove();
|
|
1134
|
-
} else {
|
|
1135
|
-
const a = t.concat({
|
|
1136
|
-
id: e
|
|
1137
|
-
}).filter((c) => c.id !== s).map((c) => `.variant-${c.id} { display: none; }
|
|
1138
|
-
`).join("");
|
|
1139
|
-
r.innerHTML = a;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
function fn(e, t, n) {
|
|
1143
|
-
var c;
|
|
1144
|
-
if (!navigator.cookieEnabled)
|
|
1145
|
-
return;
|
|
1146
|
-
function o(l) {
|
|
1147
|
-
const u = l + "=", f = document.cookie.split(";");
|
|
1148
|
-
for (let m = 0; m < f.length; m++) {
|
|
1149
|
-
let p = f[m];
|
|
1150
|
-
for (; p.charAt(0) === " "; )
|
|
1151
|
-
p = p.substring(1, p.length);
|
|
1152
|
-
if (p.indexOf(u) === 0)
|
|
1153
|
-
return p.substring(u.length, p.length);
|
|
1154
|
-
}
|
|
1155
|
-
return null;
|
|
1156
|
-
}
|
|
1157
|
-
const s = `builder.tests.${t}`, r = o(s), i = (c = document.currentScript) == null ? void 0 : c.parentElement, a = e === t;
|
|
1158
|
-
if (r === e) {
|
|
1159
|
-
if (a)
|
|
1160
|
-
return;
|
|
1161
|
-
i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
|
|
1162
|
-
} else {
|
|
1163
|
-
a && (n ? i == null || i.remove() : (i == null || i.setAttribute("hidden", "true"), i == null || i.setAttribute("aria-hidden", "true")));
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builderIoAbTest", Oe = "builderIoRenderContent", gn = () => {
|
|
1168
|
-
const e = hn.toString().replace(/\s+/g, " "), t = fn.toString().replace(/\s+/g, " ");
|
|
1169
|
-
return `
|
|
1170
|
-
window.${Ne} = ${e}
|
|
1171
|
-
window.${Oe} = ${t}
|
|
1172
|
-
`;
|
|
1173
|
-
}, yn = (e, t) => `
|
|
1174
|
-
window.${Ne}("${t}",${JSON.stringify(e)}, ${Ue})`, kn = ({
|
|
1175
|
-
contentId: e,
|
|
1176
|
-
variationId: t
|
|
1177
|
-
}) => `
|
|
1178
|
-
window.${Oe}("${t}", "${e}", ${Ue})`, vn = {
|
|
1179
|
-
name: "Core:Button",
|
|
1180
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1181
|
-
defaultStyles: {
|
|
1182
|
-
appearance: "none",
|
|
1183
|
-
paddingTop: "15px",
|
|
1184
|
-
paddingBottom: "15px",
|
|
1185
|
-
paddingLeft: "25px",
|
|
1186
|
-
paddingRight: "25px",
|
|
1187
|
-
backgroundColor: "#000000",
|
|
1188
|
-
color: "white",
|
|
1189
|
-
borderRadius: "4px",
|
|
1190
|
-
textAlign: "center",
|
|
1191
|
-
cursor: "pointer"
|
|
1192
|
-
},
|
|
1193
|
-
inputs: [{
|
|
1194
|
-
name: "text",
|
|
1195
|
-
type: "text",
|
|
1196
|
-
defaultValue: "Click me!",
|
|
1197
|
-
bubble: !0
|
|
1198
|
-
}, {
|
|
1199
|
-
name: "link",
|
|
1200
|
-
type: "url",
|
|
1201
|
-
bubble: !0
|
|
1202
|
-
}, {
|
|
1203
|
-
name: "openLinkInNewTab",
|
|
1204
|
-
type: "boolean",
|
|
1205
|
-
defaultValue: !1,
|
|
1206
|
-
friendlyName: "Open link in new tab"
|
|
1207
|
-
}],
|
|
1208
|
-
static: !0,
|
|
1209
|
-
noWrap: !0
|
|
1210
|
-
}, Sn = {
|
|
1211
|
-
name: "Columns",
|
|
1212
|
-
isRSC: !0,
|
|
1213
|
-
inputs: [{
|
|
1214
|
-
name: "columns",
|
|
1215
|
-
type: "array",
|
|
1216
|
-
broadcast: !0,
|
|
1217
|
-
subFields: [{
|
|
1218
|
-
name: "blocks",
|
|
1219
|
-
type: "array",
|
|
1220
|
-
hideFromUI: !0,
|
|
1221
|
-
defaultValue: [{
|
|
1222
|
-
"@type": "@builder.io/sdk:Element",
|
|
1223
|
-
responsiveStyles: {
|
|
1224
|
-
large: {
|
|
1225
|
-
display: "flex",
|
|
1226
|
-
flexDirection: "column",
|
|
1227
|
-
alignItems: "stretch",
|
|
1228
|
-
flexShrink: "0",
|
|
1229
|
-
position: "relative",
|
|
1230
|
-
marginTop: "30px",
|
|
1231
|
-
textAlign: "center",
|
|
1232
|
-
lineHeight: "normal",
|
|
1233
|
-
height: "auto",
|
|
1234
|
-
minHeight: "20px",
|
|
1235
|
-
minWidth: "20px",
|
|
1236
|
-
overflow: "hidden"
|
|
1237
|
-
}
|
|
1238
|
-
},
|
|
1239
|
-
component: {
|
|
1240
|
-
name: "Image",
|
|
1241
|
-
options: {
|
|
1242
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1243
|
-
backgroundPosition: "center",
|
|
1244
|
-
backgroundSize: "cover",
|
|
1245
|
-
aspectRatio: 0.7004048582995948
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
}, {
|
|
1249
|
-
"@type": "@builder.io/sdk:Element",
|
|
1250
|
-
responsiveStyles: {
|
|
1251
|
-
large: {
|
|
1252
|
-
display: "flex",
|
|
1253
|
-
flexDirection: "column",
|
|
1254
|
-
alignItems: "stretch",
|
|
1255
|
-
flexShrink: "0",
|
|
1256
|
-
position: "relative",
|
|
1257
|
-
marginTop: "30px",
|
|
1258
|
-
textAlign: "center",
|
|
1259
|
-
lineHeight: "normal",
|
|
1260
|
-
height: "auto"
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
component: {
|
|
1264
|
-
name: "Text",
|
|
1265
|
-
options: {
|
|
1266
|
-
text: "<p>Enter some text...</p>"
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
}]
|
|
1270
|
-
}, {
|
|
1271
|
-
name: "width",
|
|
1272
|
-
type: "number",
|
|
1273
|
-
hideFromUI: !0,
|
|
1274
|
-
helperText: "Width %, e.g. set to 50 to fill half of the space"
|
|
1275
|
-
}, {
|
|
1276
|
-
name: "link",
|
|
1277
|
-
type: "url",
|
|
1278
|
-
helperText: "Optionally set a url that clicking this column will link to"
|
|
1279
|
-
}],
|
|
1280
|
-
defaultValue: [{
|
|
1281
|
-
blocks: [{
|
|
1282
|
-
"@type": "@builder.io/sdk:Element",
|
|
1283
|
-
responsiveStyles: {
|
|
1284
|
-
large: {
|
|
1285
|
-
display: "flex",
|
|
1286
|
-
flexDirection: "column",
|
|
1287
|
-
alignItems: "stretch",
|
|
1288
|
-
flexShrink: "0",
|
|
1289
|
-
position: "relative",
|
|
1290
|
-
marginTop: "30px",
|
|
1291
|
-
textAlign: "center",
|
|
1292
|
-
lineHeight: "normal",
|
|
1293
|
-
height: "auto",
|
|
1294
|
-
minHeight: "20px",
|
|
1295
|
-
minWidth: "20px",
|
|
1296
|
-
overflow: "hidden"
|
|
1297
|
-
}
|
|
1298
|
-
},
|
|
1299
|
-
component: {
|
|
1300
|
-
name: "Image",
|
|
1301
|
-
options: {
|
|
1302
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1303
|
-
backgroundPosition: "center",
|
|
1304
|
-
backgroundSize: "cover",
|
|
1305
|
-
aspectRatio: 0.7004048582995948
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
}, {
|
|
1309
|
-
"@type": "@builder.io/sdk:Element",
|
|
1310
|
-
responsiveStyles: {
|
|
1311
|
-
large: {
|
|
1312
|
-
display: "flex",
|
|
1313
|
-
flexDirection: "column",
|
|
1314
|
-
alignItems: "stretch",
|
|
1315
|
-
flexShrink: "0",
|
|
1316
|
-
position: "relative",
|
|
1317
|
-
marginTop: "30px",
|
|
1318
|
-
textAlign: "center",
|
|
1319
|
-
lineHeight: "normal",
|
|
1320
|
-
height: "auto"
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
component: {
|
|
1324
|
-
name: "Text",
|
|
1325
|
-
options: {
|
|
1326
|
-
text: "<p>Enter some text...</p>"
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
}]
|
|
1330
|
-
}, {
|
|
1331
|
-
blocks: [{
|
|
1332
|
-
"@type": "@builder.io/sdk:Element",
|
|
1333
|
-
responsiveStyles: {
|
|
1334
|
-
large: {
|
|
1335
|
-
display: "flex",
|
|
1336
|
-
flexDirection: "column",
|
|
1337
|
-
alignItems: "stretch",
|
|
1338
|
-
flexShrink: "0",
|
|
1339
|
-
position: "relative",
|
|
1340
|
-
marginTop: "30px",
|
|
1341
|
-
textAlign: "center",
|
|
1342
|
-
lineHeight: "normal",
|
|
1343
|
-
height: "auto",
|
|
1344
|
-
minHeight: "20px",
|
|
1345
|
-
minWidth: "20px",
|
|
1346
|
-
overflow: "hidden"
|
|
1347
|
-
}
|
|
1348
|
-
},
|
|
1349
|
-
component: {
|
|
1350
|
-
name: "Image",
|
|
1351
|
-
options: {
|
|
1352
|
-
image: "https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1353
|
-
backgroundPosition: "center",
|
|
1354
|
-
backgroundSize: "cover",
|
|
1355
|
-
aspectRatio: 0.7004048582995948
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
}, {
|
|
1359
|
-
"@type": "@builder.io/sdk:Element",
|
|
1360
|
-
responsiveStyles: {
|
|
1361
|
-
large: {
|
|
1362
|
-
display: "flex",
|
|
1363
|
-
flexDirection: "column",
|
|
1364
|
-
alignItems: "stretch",
|
|
1365
|
-
flexShrink: "0",
|
|
1366
|
-
position: "relative",
|
|
1367
|
-
marginTop: "30px",
|
|
1368
|
-
textAlign: "center",
|
|
1369
|
-
lineHeight: "normal",
|
|
1370
|
-
height: "auto"
|
|
1371
|
-
}
|
|
1372
|
-
},
|
|
1373
|
-
component: {
|
|
1374
|
-
name: "Text",
|
|
1375
|
-
options: {
|
|
1376
|
-
text: "<p>Enter some text...</p>"
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
}]
|
|
1380
|
-
}],
|
|
1381
|
-
onChange: (e) => {
|
|
1382
|
-
function t() {
|
|
1383
|
-
n.forEach((o) => {
|
|
1384
|
-
o.delete("width");
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
const n = e.get("columns");
|
|
1388
|
-
Array.isArray(n) && !!n.find((s) => s.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
|
|
1389
|
-
}
|
|
1390
|
-
}, {
|
|
1391
|
-
name: "space",
|
|
1392
|
-
type: "number",
|
|
1393
|
-
defaultValue: 20,
|
|
1394
|
-
helperText: "Size of gap between columns",
|
|
1395
|
-
advanced: !0
|
|
1396
|
-
}, {
|
|
1397
|
-
name: "stackColumnsAt",
|
|
1398
|
-
type: "string",
|
|
1399
|
-
defaultValue: "tablet",
|
|
1400
|
-
helperText: "Convert horizontal columns to vertical at what device size",
|
|
1401
|
-
enum: ["tablet", "mobile", "never"],
|
|
1402
|
-
advanced: !0
|
|
1403
|
-
}, {
|
|
1404
|
-
name: "reverseColumnsWhenStacked",
|
|
1405
|
-
type: "boolean",
|
|
1406
|
-
defaultValue: !1,
|
|
1407
|
-
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1408
|
-
advanced: !0
|
|
1409
|
-
}]
|
|
1410
|
-
}, Cn = {
|
|
1411
|
-
name: "Fragment",
|
|
1412
|
-
static: !0,
|
|
1413
|
-
hidden: !0,
|
|
1414
|
-
canHaveChildren: !0,
|
|
1415
|
-
noWrap: !0
|
|
1416
|
-
}, wn = {
|
|
1417
|
-
name: "Image",
|
|
1418
|
-
static: !0,
|
|
1419
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
1420
|
-
defaultStyles: {
|
|
1421
|
-
position: "relative",
|
|
1422
|
-
minHeight: "20px",
|
|
1423
|
-
minWidth: "20px",
|
|
1424
|
-
overflow: "hidden"
|
|
1425
|
-
},
|
|
1426
|
-
canHaveChildren: !0,
|
|
1427
|
-
inputs: [{
|
|
1428
|
-
name: "image",
|
|
1429
|
-
type: "file",
|
|
1430
|
-
bubble: !0,
|
|
1431
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1432
|
-
required: !0,
|
|
1433
|
-
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1434
|
-
onChange: (e) => {
|
|
1435
|
-
e.delete("srcset"), e.delete("noWebp");
|
|
1436
|
-
function n(i, a = 6e4) {
|
|
1437
|
-
return new Promise((c, l) => {
|
|
1438
|
-
const u = document.createElement("img");
|
|
1439
|
-
let f = !1;
|
|
1440
|
-
u.onload = () => {
|
|
1441
|
-
f = !0, c(u);
|
|
1442
|
-
}, u.addEventListener("error", (m) => {
|
|
1443
|
-
console.warn("Image load failed", m.error), l(m.error);
|
|
1444
|
-
}), u.src = i, setTimeout(() => {
|
|
1445
|
-
f || l(new Error("Image load timed out"));
|
|
1446
|
-
}, a);
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
function o(i) {
|
|
1450
|
-
return Math.round(i * 1e3) / 1e3;
|
|
1451
|
-
}
|
|
1452
|
-
const s = e.get("image"), r = e.get("aspectRatio");
|
|
1453
|
-
if (fetch(s).then((i) => i.blob()).then((i) => {
|
|
1454
|
-
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1455
|
-
}), s && (!r || r === 0.7041))
|
|
1456
|
-
return n(s).then((i) => {
|
|
1457
|
-
const a = e.get("aspectRatio");
|
|
1458
|
-
e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}, {
|
|
1462
|
-
name: "backgroundSize",
|
|
1463
|
-
type: "text",
|
|
1464
|
-
defaultValue: "cover",
|
|
1465
|
-
enum: [{
|
|
1466
|
-
label: "contain",
|
|
1467
|
-
value: "contain",
|
|
1468
|
-
helperText: "The image should never get cropped"
|
|
1469
|
-
}, {
|
|
1470
|
-
label: "cover",
|
|
1471
|
-
value: "cover",
|
|
1472
|
-
helperText: "The image should fill it's box, cropping when needed"
|
|
1473
|
-
}]
|
|
1474
|
-
}, {
|
|
1475
|
-
name: "backgroundPosition",
|
|
1476
|
-
type: "text",
|
|
1477
|
-
defaultValue: "center",
|
|
1478
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1479
|
-
}, {
|
|
1480
|
-
name: "altText",
|
|
1481
|
-
type: "string",
|
|
1482
|
-
helperText: "Text to display when the user has images off"
|
|
1483
|
-
}, {
|
|
1484
|
-
name: "height",
|
|
1485
|
-
type: "number",
|
|
1486
|
-
hideFromUI: !0
|
|
1487
|
-
}, {
|
|
1488
|
-
name: "width",
|
|
1489
|
-
type: "number",
|
|
1490
|
-
hideFromUI: !0
|
|
1491
|
-
}, {
|
|
1492
|
-
name: "sizes",
|
|
1493
|
-
type: "string",
|
|
1494
|
-
hideFromUI: !0
|
|
1495
|
-
}, {
|
|
1496
|
-
name: "srcset",
|
|
1497
|
-
type: "string",
|
|
1498
|
-
hideFromUI: !0
|
|
1499
|
-
}, {
|
|
1500
|
-
name: "lazy",
|
|
1501
|
-
type: "boolean",
|
|
1502
|
-
defaultValue: !0,
|
|
1503
|
-
hideFromUI: !0
|
|
1504
|
-
}, {
|
|
1505
|
-
name: "fitContent",
|
|
1506
|
-
type: "boolean",
|
|
1507
|
-
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
1508
|
-
defaultValue: !0
|
|
1509
|
-
}, {
|
|
1510
|
-
name: "aspectRatio",
|
|
1511
|
-
type: "number",
|
|
1512
|
-
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1513
|
-
advanced: !0,
|
|
1514
|
-
defaultValue: 0.7041
|
|
1515
|
-
}]
|
|
1516
|
-
}, $n = {
|
|
1517
|
-
name: "Core:Section",
|
|
1518
|
-
static: !0,
|
|
1519
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
1520
|
-
inputs: [{
|
|
1521
|
-
name: "maxWidth",
|
|
1522
|
-
type: "number",
|
|
1523
|
-
defaultValue: 1200
|
|
1524
|
-
}, {
|
|
1525
|
-
name: "lazyLoad",
|
|
1526
|
-
type: "boolean",
|
|
1527
|
-
defaultValue: !1,
|
|
1528
|
-
advanced: !0,
|
|
1529
|
-
description: "Only render this section when in view"
|
|
1530
|
-
}],
|
|
1531
|
-
defaultStyles: {
|
|
1532
|
-
paddingLeft: "20px",
|
|
1533
|
-
paddingRight: "20px",
|
|
1534
|
-
paddingTop: "50px",
|
|
1535
|
-
paddingBottom: "50px",
|
|
1536
|
-
marginTop: "0px",
|
|
1537
|
-
width: "100vw",
|
|
1538
|
-
marginLeft: "calc(50% - 50vw)"
|
|
1539
|
-
},
|
|
1540
|
-
canHaveChildren: !0,
|
|
1541
|
-
defaultChildren: [{
|
|
1542
|
-
"@type": "@builder.io/sdk:Element",
|
|
1543
|
-
responsiveStyles: {
|
|
1544
|
-
large: {
|
|
1545
|
-
textAlign: "center"
|
|
1546
|
-
}
|
|
1547
|
-
},
|
|
1548
|
-
component: {
|
|
1549
|
-
name: "Text",
|
|
1550
|
-
options: {
|
|
1551
|
-
text: "<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
}]
|
|
1555
|
-
}, Tn = {
|
|
1556
|
-
name: "Symbol",
|
|
1557
|
-
noWrap: !0,
|
|
1558
|
-
static: !0,
|
|
1559
|
-
isRSC: !0,
|
|
1560
|
-
inputs: [{
|
|
1561
|
-
name: "symbol",
|
|
1562
|
-
type: "uiSymbol"
|
|
1563
|
-
}, {
|
|
1564
|
-
name: "dataOnly",
|
|
1565
|
-
helperText: "Make this a data symbol that doesn't display any UI",
|
|
1566
|
-
type: "boolean",
|
|
1567
|
-
defaultValue: !1,
|
|
1568
|
-
advanced: !0,
|
|
1569
|
-
hideFromUI: !0
|
|
1570
|
-
}, {
|
|
1571
|
-
name: "inheritState",
|
|
1572
|
-
helperText: "Inherit the parent component state and data",
|
|
1573
|
-
type: "boolean",
|
|
1574
|
-
defaultValue: !1,
|
|
1575
|
-
advanced: !0
|
|
1576
|
-
}, {
|
|
1577
|
-
name: "renderToLiquid",
|
|
1578
|
-
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
1579
|
-
type: "boolean",
|
|
1580
|
-
defaultValue: !1,
|
|
1581
|
-
advanced: !0,
|
|
1582
|
-
hideFromUI: !0
|
|
1583
|
-
}, {
|
|
1584
|
-
name: "useChildren",
|
|
1585
|
-
hideFromUI: !0,
|
|
1586
|
-
type: "boolean"
|
|
1587
|
-
}]
|
|
1588
|
-
}, In = {
|
|
1589
|
-
name: "Text",
|
|
1590
|
-
static: !0,
|
|
1591
|
-
isRSC: !0,
|
|
1592
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
1593
|
-
inputs: [{
|
|
1594
|
-
name: "text",
|
|
1595
|
-
type: "html",
|
|
1596
|
-
required: !0,
|
|
1597
|
-
autoFocus: !0,
|
|
1598
|
-
bubble: !0,
|
|
1599
|
-
defaultValue: "Enter some text..."
|
|
1600
|
-
}],
|
|
1601
|
-
defaultStyles: {
|
|
1602
|
-
lineHeight: "normal",
|
|
1603
|
-
height: "auto",
|
|
1604
|
-
textAlign: "center"
|
|
1605
|
-
}
|
|
1606
|
-
}, Rn = y({
|
|
1607
|
-
name: "builder-text",
|
|
1608
|
-
props: ["text"]
|
|
1609
|
-
}), xn = ["innerHTML"];
|
|
1610
|
-
function En(e, t, n, o, s, r) {
|
|
1611
|
-
var i;
|
|
1612
|
-
return d(), h("div", {
|
|
1613
|
-
class: "builder-text",
|
|
1614
|
-
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
1615
|
-
style: {
|
|
1616
|
-
outline: "none"
|
|
1617
|
-
}
|
|
1618
|
-
}, null, 8, xn);
|
|
1619
|
-
}
|
|
1620
|
-
const _n = /* @__PURE__ */ k(Rn, [["render", En], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), An = {
|
|
1621
|
-
name: "Video",
|
|
1622
|
-
canHaveChildren: !0,
|
|
1623
|
-
defaultStyles: {
|
|
1624
|
-
minHeight: "20px",
|
|
1625
|
-
minWidth: "20px"
|
|
1626
|
-
},
|
|
1627
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",
|
|
1628
|
-
inputs: [{
|
|
1629
|
-
name: "video",
|
|
1630
|
-
type: "file",
|
|
1631
|
-
allowedFileTypes: ["mp4"],
|
|
1632
|
-
bubble: !0,
|
|
1633
|
-
defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
|
|
1634
|
-
required: !0
|
|
1635
|
-
}, {
|
|
1636
|
-
name: "posterImage",
|
|
1637
|
-
type: "file",
|
|
1638
|
-
allowedFileTypes: ["jpeg", "png"],
|
|
1639
|
-
helperText: "Image to show before the video plays"
|
|
1640
|
-
}, {
|
|
1641
|
-
name: "autoPlay",
|
|
1642
|
-
type: "boolean",
|
|
1643
|
-
defaultValue: !0
|
|
1644
|
-
}, {
|
|
1645
|
-
name: "controls",
|
|
1646
|
-
type: "boolean",
|
|
1647
|
-
defaultValue: !1
|
|
1648
|
-
}, {
|
|
1649
|
-
name: "muted",
|
|
1650
|
-
type: "boolean",
|
|
1651
|
-
defaultValue: !0
|
|
1652
|
-
}, {
|
|
1653
|
-
name: "loop",
|
|
1654
|
-
type: "boolean",
|
|
1655
|
-
defaultValue: !0
|
|
1656
|
-
}, {
|
|
1657
|
-
name: "playsInline",
|
|
1658
|
-
type: "boolean",
|
|
1659
|
-
defaultValue: !0
|
|
1660
|
-
}, {
|
|
1661
|
-
name: "fit",
|
|
1662
|
-
type: "text",
|
|
1663
|
-
defaultValue: "cover",
|
|
1664
|
-
enum: ["contain", "cover", "fill", "auto"]
|
|
1665
|
-
}, {
|
|
1666
|
-
name: "preload",
|
|
1667
|
-
type: "text",
|
|
1668
|
-
defaultValue: "metadata",
|
|
1669
|
-
enum: ["auto", "metadata", "none"]
|
|
1670
|
-
}, {
|
|
1671
|
-
name: "fitContent",
|
|
1672
|
-
type: "boolean",
|
|
1673
|
-
helperText: "When child blocks are provided, fit to them instead of using the aspect ratio",
|
|
1674
|
-
defaultValue: !0,
|
|
1675
|
-
advanced: !0
|
|
1676
|
-
}, {
|
|
1677
|
-
name: "position",
|
|
1678
|
-
type: "text",
|
|
1679
|
-
defaultValue: "center",
|
|
1680
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1681
|
-
}, {
|
|
1682
|
-
name: "height",
|
|
1683
|
-
type: "number",
|
|
1684
|
-
advanced: !0
|
|
1685
|
-
}, {
|
|
1686
|
-
name: "width",
|
|
1687
|
-
type: "number",
|
|
1688
|
-
advanced: !0
|
|
1689
|
-
}, {
|
|
1690
|
-
name: "aspectRatio",
|
|
1691
|
-
type: "number",
|
|
1692
|
-
advanced: !0,
|
|
1693
|
-
defaultValue: 0.7004048582995948
|
|
1694
|
-
}, {
|
|
1695
|
-
name: "lazyLoad",
|
|
1696
|
-
type: "boolean",
|
|
1697
|
-
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
1698
|
-
defaultValue: !0,
|
|
1699
|
-
advanced: !0
|
|
1700
|
-
}]
|
|
1701
|
-
}, jn = y({
|
|
1702
|
-
name: "builder-video",
|
|
1703
|
-
props: [
|
|
1704
|
-
"autoPlay",
|
|
1705
|
-
"muted",
|
|
1706
|
-
"controls",
|
|
1707
|
-
"loop",
|
|
1708
|
-
"playsInline",
|
|
1709
|
-
"attributes",
|
|
1710
|
-
"preload",
|
|
1711
|
-
"fit",
|
|
1712
|
-
"position",
|
|
1713
|
-
"video",
|
|
1714
|
-
"posterImage"
|
|
1715
|
-
],
|
|
1716
|
-
computed: {
|
|
1717
|
-
videoProps() {
|
|
1718
|
-
return {
|
|
1719
|
-
...this.autoPlay === !0 ? {
|
|
1720
|
-
autoPlay: !0
|
|
1721
|
-
} : {},
|
|
1722
|
-
...this.muted === !0 ? {
|
|
1723
|
-
muted: !0
|
|
1724
|
-
} : {},
|
|
1725
|
-
...this.controls === !0 ? {
|
|
1726
|
-
controls: !0
|
|
1727
|
-
} : {},
|
|
1728
|
-
...this.loop === !0 ? {
|
|
1729
|
-
loop: !0
|
|
1730
|
-
} : {},
|
|
1731
|
-
...this.playsInline === !0 ? {
|
|
1732
|
-
playsInline: !0
|
|
1733
|
-
} : {}
|
|
1734
|
-
};
|
|
1735
|
-
},
|
|
1736
|
-
spreadProps() {
|
|
1737
|
-
return {
|
|
1738
|
-
...this.attributes,
|
|
1739
|
-
...this.videoProps
|
|
1740
|
-
};
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
}), Pn = ["preload", "src", "poster"];
|
|
1744
|
-
function Bn(e, t, n, o, s, r) {
|
|
1745
|
-
var i;
|
|
1746
|
-
return d(), h("video", I({
|
|
1747
|
-
preload: e.preload || "metadata",
|
|
1748
|
-
style: {
|
|
1749
|
-
width: "100%",
|
|
1750
|
-
height: "100%",
|
|
1751
|
-
...(i = e.attributes) == null ? void 0 : i.style,
|
|
1752
|
-
objectFit: e.fit,
|
|
1753
|
-
objectPosition: e.position,
|
|
1754
|
-
borderRadius: 1
|
|
1755
|
-
},
|
|
1756
|
-
src: e.video || "no-src",
|
|
1757
|
-
poster: e.posterImage
|
|
1758
|
-
}, e.spreadProps), null, 16, Pn);
|
|
1759
|
-
}
|
|
1760
|
-
const Vn = /* @__PURE__ */ k(jn, [["render", Bn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), Un = {
|
|
1761
|
-
name: "Embed",
|
|
1762
|
-
static: !0,
|
|
1763
|
-
inputs: [{
|
|
1764
|
-
name: "url",
|
|
1765
|
-
type: "url",
|
|
1766
|
-
required: !0,
|
|
1767
|
-
defaultValue: "",
|
|
1768
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1769
|
-
onChange: (e) => {
|
|
1770
|
-
const t = e.get("url");
|
|
1771
|
-
if (t)
|
|
1772
|
-
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
|
|
1773
|
-
e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
1774
|
-
}).catch((o) => {
|
|
1775
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
1776
|
-
});
|
|
1777
|
-
e.delete("content");
|
|
1778
|
-
}
|
|
1779
|
-
}, {
|
|
1780
|
-
name: "content",
|
|
1781
|
-
type: "html",
|
|
1782
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1783
|
-
hideFromUI: !0
|
|
1784
|
-
}]
|
|
1785
|
-
}, Nn = ["text/javascript", "application/javascript", "application/ecmascript"], On = (e) => Nn.includes(e.type), Fn = y({
|
|
1786
|
-
name: "builder-embed",
|
|
1787
|
-
props: ["content"],
|
|
1788
|
-
data() {
|
|
1789
|
-
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
1790
|
-
},
|
|
1791
|
-
watch: {
|
|
1792
|
-
onUpdateHook0: {
|
|
1793
|
-
handler() {
|
|
1794
|
-
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1795
|
-
},
|
|
1796
|
-
immediate: !0
|
|
1797
|
-
}
|
|
1798
|
-
},
|
|
1799
|
-
computed: {
|
|
1800
|
-
onUpdateHook0() {
|
|
1801
|
-
return {
|
|
1802
|
-
0: this.$refs.elem,
|
|
1803
|
-
1: this.ranInitFn
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
methods: {
|
|
1808
|
-
findAndRunScripts() {
|
|
1809
|
-
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
1810
|
-
return;
|
|
1811
|
-
const e = this.$refs.elem.getElementsByTagName("script");
|
|
1812
|
-
for (let t = 0; t < e.length; t++) {
|
|
1813
|
-
const n = e[t];
|
|
1814
|
-
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
1815
|
-
this.scriptsInserted.push(n.src);
|
|
1816
|
-
const o = document.createElement("script");
|
|
1817
|
-
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1818
|
-
} else if (On(n) && !this.scriptsRun.includes(n.innerText))
|
|
1819
|
-
try {
|
|
1820
|
-
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1821
|
-
} catch (o) {
|
|
1822
|
-
console.warn("`Embed`: Error running script:", o);
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
}), Mn = ["innerHTML"];
|
|
1828
|
-
function Wn(e, t, n, o, s, r) {
|
|
1829
|
-
return d(), h("div", {
|
|
1830
|
-
class: "builder-embed",
|
|
1831
|
-
ref: "elem",
|
|
1832
|
-
innerHTML: e.content
|
|
1833
|
-
}, null, 8, Mn);
|
|
1834
|
-
}
|
|
1835
|
-
const Ln = /* @__PURE__ */ k(Fn, [["render", Wn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), Kn = y({
|
|
1836
|
-
name: "builder-img-component",
|
|
1837
|
-
props: [
|
|
1838
|
-
"backgroundSize",
|
|
1839
|
-
"backgroundPosition",
|
|
1840
|
-
"imgSrc",
|
|
1841
|
-
"altText",
|
|
1842
|
-
"image",
|
|
1843
|
-
"attributes"
|
|
1844
|
-
],
|
|
1845
|
-
data() {
|
|
1846
|
-
return { isEditing: _, filterAttrs: q };
|
|
1847
|
-
}
|
|
1848
|
-
}), Hn = ["alt", "src"];
|
|
1849
|
-
function zn(e, t, n, o, s, r) {
|
|
1850
|
-
return d(), h("img", I({
|
|
1851
|
-
style: {
|
|
1852
|
-
objectFit: e.backgroundSize || "cover",
|
|
1853
|
-
objectPosition: e.backgroundPosition || "center"
|
|
1854
|
-
},
|
|
1855
|
-
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1856
|
-
alt: e.altText,
|
|
1857
|
-
src: e.imgSrc || e.image
|
|
1858
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Hn);
|
|
1859
|
-
}
|
|
1860
|
-
const Dn = /* @__PURE__ */ k(Kn, [["render", zn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), qn = {
|
|
1861
|
-
name: "Raw:Img",
|
|
1862
|
-
hideFromInsertMenu: !0,
|
|
1863
|
-
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
1864
|
-
inputs: [{
|
|
1865
|
-
name: "image",
|
|
1866
|
-
bubble: !0,
|
|
1867
|
-
type: "file",
|
|
1868
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
1869
|
-
required: !0
|
|
1870
|
-
}],
|
|
1871
|
-
noWrap: !0,
|
|
1872
|
-
static: !0
|
|
1873
|
-
}, Gn = y({
|
|
1874
|
-
name: "builder-custom-code",
|
|
1875
|
-
props: ["replaceNodes", "code"],
|
|
1876
|
-
data() {
|
|
1877
|
-
return { scriptsInserted: [], scriptsRun: [] };
|
|
1878
|
-
},
|
|
1879
|
-
mounted() {
|
|
1880
|
-
var t;
|
|
1881
|
-
if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
1882
|
-
return;
|
|
1883
|
-
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
1884
|
-
for (let n = 0; n < e.length; n++) {
|
|
1885
|
-
const o = e[n];
|
|
1886
|
-
if (o.src) {
|
|
1887
|
-
if (this.scriptsInserted.includes(o.src))
|
|
1888
|
-
continue;
|
|
1889
|
-
this.scriptsInserted.push(o.src);
|
|
1890
|
-
const s = document.createElement("script");
|
|
1891
|
-
s.async = !0, s.src = o.src, document.head.appendChild(s);
|
|
1892
|
-
} else if (!o.type || [
|
|
1893
|
-
"text/javascript",
|
|
1894
|
-
"application/javascript",
|
|
1895
|
-
"application/ecmascript"
|
|
1896
|
-
].includes(o.type)) {
|
|
1897
|
-
if (this.scriptsRun.includes(o.innerText))
|
|
1898
|
-
continue;
|
|
1899
|
-
try {
|
|
1900
|
-
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
1901
|
-
} catch (s) {
|
|
1902
|
-
console.warn("`CustomCode`: Error running script:", s);
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
},
|
|
1907
|
-
methods: {
|
|
1908
|
-
_classStringToObject(e) {
|
|
1909
|
-
const t = {};
|
|
1910
|
-
if (typeof e != "string")
|
|
1911
|
-
return t;
|
|
1912
|
-
const n = e.trim().split(/\s+/);
|
|
1913
|
-
for (const o of n)
|
|
1914
|
-
t[o] = !0;
|
|
1915
|
-
return t;
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
}), Jn = ["innerHTML"];
|
|
1919
|
-
function Yn(e, t, n, o, s, r) {
|
|
1920
|
-
return d(), h("div", {
|
|
1921
|
-
ref: "elementRef",
|
|
1922
|
-
class: we(
|
|
1923
|
-
e._classStringToObject(
|
|
1924
|
-
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1925
|
-
)
|
|
1926
|
-
),
|
|
1927
|
-
innerHTML: e.code
|
|
1928
|
-
}, null, 10, Jn);
|
|
1929
|
-
}
|
|
1930
|
-
const Xn = /* @__PURE__ */ k(Gn, [["render", Yn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Qn = {
|
|
1931
|
-
name: "Custom Code",
|
|
1932
|
-
static: !0,
|
|
1933
|
-
requiredPermissions: ["editCode"],
|
|
1934
|
-
inputs: [{
|
|
1935
|
-
name: "code",
|
|
1936
|
-
type: "html",
|
|
1937
|
-
required: !0,
|
|
1938
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
1939
|
-
code: !0
|
|
1940
|
-
}, {
|
|
1941
|
-
name: "replaceNodes",
|
|
1942
|
-
type: "boolean",
|
|
1943
|
-
helperText: "Preserve server rendered dom nodes",
|
|
1944
|
-
advanced: !0
|
|
1945
|
-
}, {
|
|
1946
|
-
name: "scriptsClientOnly",
|
|
1947
|
-
type: "boolean",
|
|
1948
|
-
defaultValue: !1,
|
|
1949
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1950
|
-
advanced: !0
|
|
1951
|
-
}]
|
|
1952
|
-
}, me = () => [{
|
|
1953
|
-
component: ct,
|
|
1954
|
-
...vn
|
|
1955
|
-
}, {
|
|
1956
|
-
component: Xt,
|
|
1957
|
-
...Sn
|
|
1958
|
-
}, {
|
|
1959
|
-
component: Xn,
|
|
1960
|
-
...Qn
|
|
1961
|
-
}, {
|
|
1962
|
-
component: Ln,
|
|
1963
|
-
...Un
|
|
1964
|
-
}, {
|
|
1965
|
-
component: en,
|
|
1966
|
-
...Cn
|
|
1967
|
-
}, {
|
|
1968
|
-
component: ln,
|
|
1969
|
-
...wn
|
|
1970
|
-
}, {
|
|
1971
|
-
component: Dn,
|
|
1972
|
-
...qn
|
|
1973
|
-
}, {
|
|
1974
|
-
component: pn,
|
|
1975
|
-
...$n
|
|
1976
|
-
}, {
|
|
1977
|
-
component: ds,
|
|
1978
|
-
...Tn
|
|
1979
|
-
}, {
|
|
1980
|
-
component: _n,
|
|
1981
|
-
...In
|
|
1982
|
-
}, {
|
|
1983
|
-
component: Vn,
|
|
1984
|
-
...An
|
|
1985
|
-
}], he = [], Zn = (e) => ({
|
|
1986
|
-
type: "builder.registerComponent",
|
|
1987
|
-
data: ee(e)
|
|
1988
|
-
}), eo = (e) => {
|
|
1989
|
-
const t = e.toString().trim();
|
|
1990
|
-
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1991
|
-
}, to = (e) => typeof e == "function" ? eo(e) : N(e), ee = ({
|
|
1992
|
-
inputs: e,
|
|
1993
|
-
...t
|
|
1994
|
-
}) => ({
|
|
1995
|
-
...N(t),
|
|
1996
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
|
|
1997
|
-
...o,
|
|
1998
|
-
[s]: to(r)
|
|
1999
|
-
}), {}))
|
|
2000
|
-
}), no = (e) => {
|
|
2001
|
-
var r, i;
|
|
2002
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
2003
|
-
let s = "";
|
|
2004
|
-
if (o && t && n && (s += `
|
|
2005
|
-
@font-face {
|
|
2006
|
-
font-family: "${t}";
|
|
2007
|
-
src: local("${n}"), url('${o}') format('woff2');
|
|
2008
|
-
font-display: fallback;
|
|
2009
|
-
font-weight: 400;
|
|
2010
|
-
}
|
|
2011
|
-
`.trim()), e.files)
|
|
2012
|
-
for (const a in e.files) {
|
|
2013
|
-
if (!(String(Number(a)) === a))
|
|
2014
|
-
continue;
|
|
2015
|
-
const l = e.files[a];
|
|
2016
|
-
l && l !== o && (s += `
|
|
2017
|
-
@font-face {
|
|
2018
|
-
font-family: "${t}";
|
|
2019
|
-
src: url('${l}') format('woff2');
|
|
2020
|
-
font-display: fallback;
|
|
2021
|
-
font-weight: ${a};
|
|
2022
|
-
}
|
|
2023
|
-
`.trim());
|
|
2024
|
-
}
|
|
2025
|
-
return s;
|
|
2026
|
-
}, oo = ({
|
|
2027
|
-
customFonts: e
|
|
2028
|
-
}) => {
|
|
2029
|
-
var t;
|
|
2030
|
-
return ((t = e == null ? void 0 : e.map((n) => no(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2031
|
-
}, so = ({
|
|
2032
|
-
cssCode: e,
|
|
2033
|
-
contentId: t
|
|
2034
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ro = y({
|
|
2035
|
-
name: "content-styles",
|
|
2036
|
-
components: { InlinedStyles: G },
|
|
2037
|
-
props: ["cssCode", "contentId", "customFonts"],
|
|
2038
|
-
data() {
|
|
2039
|
-
return {
|
|
2040
|
-
injectedStyles: `
|
|
2041
|
-
${so({
|
|
2042
|
-
cssCode: this.cssCode,
|
|
2043
|
-
contentId: this.contentId
|
|
2044
|
-
})}
|
|
2045
|
-
${oo({
|
|
2046
|
-
customFonts: this.customFonts
|
|
2047
|
-
})}
|
|
2048
|
-
|
|
2049
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2050
|
-
margin: 0;
|
|
2051
|
-
}
|
|
2052
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
2053
|
-
color: inherit;
|
|
2054
|
-
line-height: inherit;
|
|
2055
|
-
letter-spacing: inherit;
|
|
2056
|
-
font-weight: inherit;
|
|
2057
|
-
font-size: inherit;
|
|
2058
|
-
text-align: inherit;
|
|
2059
|
-
font-family: inherit;
|
|
2060
|
-
}
|
|
2061
|
-
`.trim()
|
|
2062
|
-
};
|
|
2063
|
-
}
|
|
2064
|
-
});
|
|
2065
|
-
function io(e, t, n, o, s, r) {
|
|
2066
|
-
const i = v("inlined-styles");
|
|
2067
|
-
return d(), C(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2068
|
-
}
|
|
2069
|
-
const ao = /* @__PURE__ */ k(ro, [["render", io], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), co = ({
|
|
2070
|
-
content: e,
|
|
2071
|
-
data: t,
|
|
2072
|
-
locale: n
|
|
2073
|
-
}) => {
|
|
2074
|
-
var r, i, a;
|
|
2075
|
-
const o = {};
|
|
2076
|
-
(i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((c) => {
|
|
2077
|
-
var l;
|
|
2078
|
-
c.name && c.defaultValue !== void 0 && ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) && e.data.state[c.name] === void 0 && (o[c.name] = c.defaultValue);
|
|
2079
|
-
});
|
|
2080
|
-
const s = {
|
|
2081
|
-
...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
|
|
2082
|
-
...t,
|
|
2083
|
-
...n ? {
|
|
2084
|
-
locale: n
|
|
2085
|
-
} : {}
|
|
2086
|
-
};
|
|
2087
|
-
return {
|
|
2088
|
-
...o,
|
|
2089
|
-
...s
|
|
2090
|
-
};
|
|
2091
|
-
}, lo = ({
|
|
2092
|
-
content: e,
|
|
2093
|
-
data: t
|
|
2094
|
-
}) => e ? {
|
|
2095
|
-
...e,
|
|
2096
|
-
data: {
|
|
2097
|
-
...e == null ? void 0 : e.data,
|
|
2098
|
-
...t
|
|
2099
|
-
},
|
|
2100
|
-
meta: e == null ? void 0 : e.meta
|
|
2101
|
-
} : void 0;
|
|
2102
|
-
function uo() {
|
|
2103
|
-
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2104
|
-
}
|
|
2105
|
-
function po() {
|
|
2106
|
-
const e = uo().fetch;
|
|
2107
|
-
if (typeof e > "u")
|
|
2108
|
-
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2109
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2110
|
-
return e;
|
|
2111
|
-
}
|
|
2112
|
-
const Fe = po(), mo = (e) => {
|
|
2113
|
-
if (e === "localhost" || e === "127.0.0.1")
|
|
2114
|
-
return e;
|
|
2115
|
-
const t = e.split(".");
|
|
2116
|
-
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
2117
|
-
}, Me = ({
|
|
2118
|
-
name: e,
|
|
2119
|
-
canTrack: t
|
|
2120
|
-
}) => {
|
|
2121
|
-
var n;
|
|
2122
|
-
try {
|
|
2123
|
-
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
2124
|
-
} catch (o) {
|
|
2125
|
-
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
2126
|
-
return;
|
|
2127
|
-
}
|
|
2128
|
-
}, We = async (e) => Me(e), ho = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), fo = [["secure", ""], ["SameSite", "None"]], bo = ({
|
|
2129
|
-
name: e,
|
|
2130
|
-
value: t,
|
|
2131
|
-
expires: n
|
|
2132
|
-
}) => {
|
|
2133
|
-
const s = ($() ? location.protocol === "https:" : !0) ? fo : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", mo(window.location.hostname)], ...s];
|
|
2134
|
-
return ho(i);
|
|
2135
|
-
}, Le = async ({
|
|
2136
|
-
name: e,
|
|
2137
|
-
value: t,
|
|
2138
|
-
expires: n,
|
|
2139
|
-
canTrack: o
|
|
2140
|
-
}) => {
|
|
2141
|
-
try {
|
|
2142
|
-
if (!o)
|
|
2143
|
-
return;
|
|
2144
|
-
const s = bo({
|
|
2145
|
-
name: e,
|
|
2146
|
-
value: t,
|
|
2147
|
-
expires: n
|
|
2148
|
-
});
|
|
2149
|
-
document.cookie = s;
|
|
2150
|
-
} catch (s) {
|
|
2151
|
-
x.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
|
|
2152
|
-
}
|
|
2153
|
-
};
|
|
2154
|
-
function go() {
|
|
2155
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2156
|
-
const t = Math.random() * 16 | 0;
|
|
2157
|
-
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
function Ke() {
|
|
2161
|
-
return go().replace(/-/g, "");
|
|
2162
|
-
}
|
|
2163
|
-
const He = "builderSessionId", yo = async ({
|
|
2164
|
-
canTrack: e
|
|
2165
|
-
}) => {
|
|
2166
|
-
if (!e)
|
|
2167
|
-
return;
|
|
2168
|
-
const t = await We({
|
|
2169
|
-
name: He,
|
|
2170
|
-
canTrack: e
|
|
2171
|
-
});
|
|
2172
|
-
if (A(t))
|
|
2173
|
-
return t;
|
|
2174
|
-
{
|
|
2175
|
-
const n = ko();
|
|
2176
|
-
return vo({
|
|
2177
|
-
id: n,
|
|
2178
|
-
canTrack: e
|
|
2179
|
-
}), n;
|
|
2180
|
-
}
|
|
2181
|
-
}, ko = () => Ke(), vo = ({
|
|
2182
|
-
id: e,
|
|
2183
|
-
canTrack: t
|
|
2184
|
-
}) => Le({
|
|
2185
|
-
name: He,
|
|
2186
|
-
value: e,
|
|
2187
|
-
canTrack: t
|
|
2188
|
-
}), ze = () => $() && typeof localStorage < "u" ? localStorage : void 0, So = ({
|
|
2189
|
-
key: e,
|
|
2190
|
-
canTrack: t
|
|
2191
|
-
}) => {
|
|
2192
|
-
var n;
|
|
2193
|
-
try {
|
|
2194
|
-
return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2195
|
-
} catch (o) {
|
|
2196
|
-
console.debug("[LocalStorage] GET error: ", o);
|
|
2197
|
-
return;
|
|
2198
|
-
}
|
|
2199
|
-
}, Co = ({
|
|
2200
|
-
key: e,
|
|
2201
|
-
canTrack: t,
|
|
2202
|
-
value: n
|
|
2203
|
-
}) => {
|
|
2204
|
-
var o;
|
|
2205
|
-
try {
|
|
2206
|
-
t && ((o = ze()) == null || o.setItem(e, n));
|
|
2207
|
-
} catch (s) {
|
|
2208
|
-
console.debug("[LocalStorage] SET error: ", s);
|
|
2209
|
-
}
|
|
2210
|
-
}, De = "builderVisitorId", wo = ({
|
|
2211
|
-
canTrack: e
|
|
2212
|
-
}) => {
|
|
2213
|
-
if (!e)
|
|
2214
|
-
return;
|
|
2215
|
-
const t = So({
|
|
2216
|
-
key: De,
|
|
2217
|
-
canTrack: e
|
|
2218
|
-
});
|
|
2219
|
-
if (A(t))
|
|
2220
|
-
return t;
|
|
2221
|
-
{
|
|
2222
|
-
const n = $o();
|
|
2223
|
-
return To({
|
|
2224
|
-
id: n,
|
|
2225
|
-
canTrack: e
|
|
2226
|
-
}), n;
|
|
2227
|
-
}
|
|
2228
|
-
}, $o = () => Ke(), To = ({
|
|
2229
|
-
id: e,
|
|
2230
|
-
canTrack: t
|
|
2231
|
-
}) => Co({
|
|
2232
|
-
key: De,
|
|
2233
|
-
value: e,
|
|
2234
|
-
canTrack: t
|
|
2235
|
-
}), Io = async ({
|
|
2236
|
-
canTrack: e
|
|
2237
|
-
}) => {
|
|
2238
|
-
if (!e)
|
|
2239
|
-
return {
|
|
2240
|
-
visitorId: void 0,
|
|
2241
|
-
sessionId: void 0
|
|
2242
|
-
};
|
|
2243
|
-
const t = await yo({
|
|
2244
|
-
canTrack: e
|
|
2245
|
-
}), n = wo({
|
|
2246
|
-
canTrack: e
|
|
2247
|
-
});
|
|
2248
|
-
return {
|
|
2249
|
-
sessionId: t,
|
|
2250
|
-
visitorId: n
|
|
2251
|
-
};
|
|
2252
|
-
}, Ro = async ({
|
|
2253
|
-
type: e,
|
|
2254
|
-
canTrack: t,
|
|
2255
|
-
apiKey: n,
|
|
2256
|
-
metadata: o,
|
|
2257
|
-
...s
|
|
2258
|
-
}) => ({
|
|
2259
|
-
type: e,
|
|
2260
|
-
data: {
|
|
2261
|
-
...s,
|
|
2262
|
-
metadata: {
|
|
2263
|
-
url: location.href,
|
|
2264
|
-
...o
|
|
2265
|
-
},
|
|
2266
|
-
...await Io({
|
|
2267
|
-
canTrack: t
|
|
2268
|
-
}),
|
|
2269
|
-
userAttributes: Ie(),
|
|
2270
|
-
ownerId: n
|
|
2271
|
-
}
|
|
2272
|
-
});
|
|
2273
|
-
async function te(e) {
|
|
2274
|
-
if (!e.apiKey) {
|
|
2275
|
-
x.error("Missing API key for track call. Please provide your API key.");
|
|
2276
|
-
return;
|
|
2277
|
-
}
|
|
2278
|
-
if (!!e.canTrack && !_() && !!($() || j === "reactNative"))
|
|
2279
|
-
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2280
|
-
method: "POST",
|
|
2281
|
-
body: JSON.stringify({
|
|
2282
|
-
events: [await Ro(e)]
|
|
2283
|
-
}),
|
|
2284
|
-
headers: {
|
|
2285
|
-
"content-type": "application/json"
|
|
2286
|
-
},
|
|
2287
|
-
mode: "cors"
|
|
2288
|
-
}).catch((t) => {
|
|
2289
|
-
console.error("Failed to track: ", t);
|
|
2290
|
-
});
|
|
2291
|
-
}
|
|
2292
|
-
const hs = (e) => te({
|
|
2293
|
-
...e,
|
|
2294
|
-
canTrack: !0
|
|
2295
|
-
}), xo = "0.7.1-1", fe = {};
|
|
2296
|
-
function Eo(e, t) {
|
|
2297
|
-
let n = fe[e];
|
|
2298
|
-
if (n || (n = fe[e] = []), n.push(t), $()) {
|
|
2299
|
-
const o = {
|
|
2300
|
-
type: "builder.register",
|
|
2301
|
-
data: {
|
|
2302
|
-
type: e,
|
|
2303
|
-
info: t
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
|
-
try {
|
|
2307
|
-
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
2308
|
-
} catch (s) {
|
|
2309
|
-
console.debug("Could not postmessage", s);
|
|
2310
|
-
}
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
const _o = () => {
|
|
2314
|
-
Eo("insertMenu", {
|
|
2315
|
-
name: "_default",
|
|
2316
|
-
default: !0,
|
|
2317
|
-
items: [{
|
|
2318
|
-
name: "Box"
|
|
2319
|
-
}, {
|
|
2320
|
-
name: "Text"
|
|
2321
|
-
}, {
|
|
2322
|
-
name: "Image"
|
|
2323
|
-
}, {
|
|
2324
|
-
name: "Columns"
|
|
2325
|
-
}, {
|
|
2326
|
-
name: "Core:Section"
|
|
2327
|
-
}, {
|
|
2328
|
-
name: "Core:Button"
|
|
2329
|
-
}, {
|
|
2330
|
-
name: "Embed"
|
|
2331
|
-
}, {
|
|
2332
|
-
name: "Custom Code"
|
|
2333
|
-
}]
|
|
2334
|
-
});
|
|
2335
|
-
};
|
|
2336
|
-
let be = !1;
|
|
2337
|
-
const Ao = (e = {}) => {
|
|
2338
|
-
var t, n;
|
|
2339
|
-
be || (be = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
2340
|
-
type: "builder.sdkInfo",
|
|
2341
|
-
data: {
|
|
2342
|
-
target: j,
|
|
2343
|
-
version: xo,
|
|
2344
|
-
supportsPatchUpdates: !1,
|
|
2345
|
-
supportsAddBlockScoping: !0,
|
|
2346
|
-
supportsCustomBreakpoints: !0
|
|
2347
|
-
}
|
|
2348
|
-
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
2349
|
-
type: "builder.updateContent",
|
|
2350
|
-
data: {
|
|
2351
|
-
options: e
|
|
2352
|
-
}
|
|
2353
|
-
}, "*"), window.addEventListener("message", ({
|
|
2354
|
-
data: o
|
|
2355
|
-
}) => {
|
|
2356
|
-
var s, r;
|
|
2357
|
-
if (!!(o != null && o.type))
|
|
2358
|
-
switch (o.type) {
|
|
2359
|
-
case "builder.evaluate": {
|
|
2360
|
-
const i = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(i);
|
|
2361
|
-
let u, f = null;
|
|
2362
|
-
try {
|
|
2363
|
-
u = l.apply(null, a);
|
|
2364
|
-
} catch (m) {
|
|
2365
|
-
f = m;
|
|
2366
|
-
}
|
|
2367
|
-
f ? (s = window.parent) == null || s.postMessage({
|
|
2368
|
-
type: "builder.evaluateError",
|
|
2369
|
-
data: {
|
|
2370
|
-
id: c,
|
|
2371
|
-
error: f.message
|
|
2372
|
-
}
|
|
2373
|
-
}, "*") : u && typeof u.then == "function" ? u.then((m) => {
|
|
2374
|
-
var p;
|
|
2375
|
-
(p = window.parent) == null || p.postMessage({
|
|
2376
|
-
type: "builder.evaluateResult",
|
|
2377
|
-
data: {
|
|
2378
|
-
id: c,
|
|
2379
|
-
result: m
|
|
2380
|
-
}
|
|
2381
|
-
}, "*");
|
|
2382
|
-
}).catch(console.error) : (r = window.parent) == null || r.postMessage({
|
|
2383
|
-
type: "builder.evaluateResult",
|
|
2384
|
-
data: {
|
|
2385
|
-
result: u,
|
|
2386
|
-
id: c
|
|
2387
|
-
}
|
|
2388
|
-
}, "*");
|
|
2389
|
-
break;
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2392
|
-
})));
|
|
2393
|
-
};
|
|
2394
|
-
function ge(e) {
|
|
2395
|
-
return Math.round(e * 1e3) / 1e3;
|
|
2396
|
-
}
|
|
2397
|
-
const jo = (e, t, n = !0) => {
|
|
2398
|
-
if (!(e instanceof HTMLElement))
|
|
2399
|
-
return null;
|
|
2400
|
-
let o = n ? e : e.parentElement;
|
|
2401
|
-
do {
|
|
2402
|
-
if (!o)
|
|
2403
|
-
return null;
|
|
2404
|
-
if (t(o))
|
|
2405
|
-
return o;
|
|
2406
|
-
} while (o = o.parentElement);
|
|
2407
|
-
return null;
|
|
2408
|
-
}, Po = (e) => jo(e, (t) => {
|
|
2409
|
-
const n = t.getAttribute("builder-id") || t.id;
|
|
2410
|
-
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2411
|
-
}), ye = ({
|
|
2412
|
-
event: e,
|
|
2413
|
-
target: t
|
|
2414
|
-
}) => {
|
|
2415
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ge(o / n.width), i = ge(s / n.height);
|
|
2416
|
-
return {
|
|
2417
|
-
x: r,
|
|
2418
|
-
y: i
|
|
2419
|
-
};
|
|
2420
|
-
}, Bo = (e) => {
|
|
2421
|
-
const t = e.target, n = t && Po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2422
|
-
return {
|
|
2423
|
-
targetBuilderElement: o || void 0,
|
|
2424
|
-
metadata: {
|
|
2425
|
-
targetOffset: t ? ye({
|
|
2426
|
-
event: e,
|
|
2427
|
-
target: t
|
|
2428
|
-
}) : void 0,
|
|
2429
|
-
builderTargetOffset: n ? ye({
|
|
2430
|
-
event: e,
|
|
2431
|
-
target: n
|
|
2432
|
-
}) : void 0,
|
|
2433
|
-
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
}, Vo = "builder.tests", se = (e) => `${Vo}.${e}`, Uo = ({
|
|
2437
|
-
contentId: e
|
|
2438
|
-
}) => We({
|
|
2439
|
-
name: se(e),
|
|
2440
|
-
canTrack: !0
|
|
2441
|
-
}), No = ({
|
|
2442
|
-
contentId: e
|
|
2443
|
-
}) => Me({
|
|
2444
|
-
name: se(e),
|
|
2445
|
-
canTrack: !0
|
|
2446
|
-
}), Oo = ({
|
|
2447
|
-
contentId: e,
|
|
2448
|
-
value: t
|
|
2449
|
-
}) => Le({
|
|
2450
|
-
name: se(e),
|
|
2451
|
-
value: t,
|
|
2452
|
-
canTrack: !0
|
|
2453
|
-
}), qe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Fo = ({
|
|
2454
|
-
id: e,
|
|
2455
|
-
variations: t
|
|
2456
|
-
}) => {
|
|
2457
|
-
var s;
|
|
2458
|
-
let n = 0;
|
|
2459
|
-
const o = Math.random();
|
|
2460
|
-
for (const r in t) {
|
|
2461
|
-
const i = (s = t[r]) == null ? void 0 : s.testRatio;
|
|
2462
|
-
if (n += i, o < n)
|
|
2463
|
-
return r;
|
|
2464
|
-
}
|
|
2465
|
-
return e;
|
|
2466
|
-
}, Ge = (e) => {
|
|
2467
|
-
const t = Fo(e);
|
|
2468
|
-
return Oo({
|
|
2469
|
-
contentId: e.id,
|
|
2470
|
-
value: t
|
|
2471
|
-
}).catch((n) => {
|
|
2472
|
-
x.error("could not store A/B test variation: ", n);
|
|
2473
|
-
}), t;
|
|
2474
|
-
}, Je = ({
|
|
2475
|
-
item: e,
|
|
2476
|
-
testGroupId: t
|
|
2477
|
-
}) => {
|
|
2478
|
-
const n = e.variations[t];
|
|
2479
|
-
return t === e.id || !n ? {
|
|
2480
|
-
testVariationId: e.id,
|
|
2481
|
-
testVariationName: "Default"
|
|
2482
|
-
} : {
|
|
2483
|
-
data: n.data,
|
|
2484
|
-
testVariationId: n.id,
|
|
2485
|
-
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
2486
|
-
};
|
|
2487
|
-
}, Mo = ({
|
|
2488
|
-
item: e,
|
|
2489
|
-
canTrack: t
|
|
2490
|
-
}) => {
|
|
2491
|
-
if (!t)
|
|
2492
|
-
return e;
|
|
2493
|
-
if (!e)
|
|
2494
|
-
return;
|
|
2495
|
-
if (!qe(e))
|
|
2496
|
-
return e;
|
|
2497
|
-
const n = No({
|
|
2498
|
-
contentId: e.id
|
|
2499
|
-
}) || Ge({
|
|
2500
|
-
variations: e.variations,
|
|
2501
|
-
id: e.id
|
|
2502
|
-
}), o = Je({
|
|
2503
|
-
item: e,
|
|
2504
|
-
testGroupId: n
|
|
2505
|
-
});
|
|
2506
|
-
return {
|
|
2507
|
-
...e,
|
|
2508
|
-
...o
|
|
2509
|
-
};
|
|
2510
|
-
}, Wo = async ({
|
|
2511
|
-
item: e,
|
|
2512
|
-
canTrack: t
|
|
2513
|
-
}) => {
|
|
2514
|
-
if (!t || !qe(e))
|
|
2515
|
-
return e;
|
|
2516
|
-
const o = await Uo({
|
|
2517
|
-
contentId: e.id
|
|
2518
|
-
}) || Ge({
|
|
2519
|
-
variations: e.variations,
|
|
2520
|
-
id: e.id
|
|
2521
|
-
}), s = Je({
|
|
2522
|
-
item: e,
|
|
2523
|
-
testGroupId: o
|
|
2524
|
-
});
|
|
2525
|
-
return {
|
|
2526
|
-
...e,
|
|
2527
|
-
...s
|
|
2528
|
-
};
|
|
2529
|
-
}, M = (e) => A(e) ? e : !0;
|
|
2530
|
-
function H(e, t = null, n = ".") {
|
|
2531
|
-
return Object.keys(e).reduce((o, s) => {
|
|
2532
|
-
const r = e[s], i = [t, s].filter(Boolean).join(n);
|
|
2533
|
-
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
2534
|
-
...o,
|
|
2535
|
-
...H(r, i, n)
|
|
2536
|
-
} : {
|
|
2537
|
-
...o,
|
|
2538
|
-
[i]: r
|
|
2539
|
-
};
|
|
2540
|
-
}, {});
|
|
2541
|
-
}
|
|
2542
|
-
const ke = "builder.", Lo = "options.", Ko = (e) => {
|
|
2543
|
-
const t = {};
|
|
2544
|
-
return e.forEach((n, o) => {
|
|
2545
|
-
t[o] = n;
|
|
2546
|
-
}), t;
|
|
2547
|
-
}, Ye = (e) => {
|
|
2548
|
-
if (!e)
|
|
2549
|
-
return {};
|
|
2550
|
-
const t = Xe(e), n = {};
|
|
2551
|
-
return Object.keys(t).forEach((o) => {
|
|
2552
|
-
if (o.startsWith(ke)) {
|
|
2553
|
-
const s = o.replace(ke, "").replace(Lo, "");
|
|
2554
|
-
n[s] = t[o];
|
|
2555
|
-
}
|
|
2556
|
-
}), n;
|
|
2557
|
-
}, Ho = () => {
|
|
2558
|
-
if (!$())
|
|
2559
|
-
return {};
|
|
2560
|
-
const e = new URLSearchParams(window.location.search);
|
|
2561
|
-
return Ye(e);
|
|
2562
|
-
}, Xe = (e) => e instanceof URLSearchParams ? Ko(e) : e, zo = "v3", ve = (e) => typeof e == "number" && !isNaN(e) && e >= 0, re = (e) => {
|
|
2563
|
-
let {
|
|
2564
|
-
noTraverse: t = !1
|
|
2565
|
-
} = e;
|
|
2566
|
-
const {
|
|
2567
|
-
limit: n = 30,
|
|
2568
|
-
userAttributes: o,
|
|
2569
|
-
query: s,
|
|
2570
|
-
model: r,
|
|
2571
|
-
apiKey: i,
|
|
2572
|
-
includeRefs: a = !0,
|
|
2573
|
-
enrich: c,
|
|
2574
|
-
locale: l,
|
|
2575
|
-
apiVersion: u = zo,
|
|
2576
|
-
fields: f,
|
|
2577
|
-
omit: m,
|
|
2578
|
-
offset: p,
|
|
2579
|
-
cacheSeconds: b,
|
|
2580
|
-
staleCacheSeconds: S,
|
|
2581
|
-
sort: T,
|
|
2582
|
-
includeUnpublished: E
|
|
2583
|
-
} = e;
|
|
2584
|
-
if (!i)
|
|
2585
|
-
throw new Error("Missing API key");
|
|
2586
|
-
if (!["v2", "v3"].includes(u))
|
|
2587
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2588
|
-
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2589
|
-
const g = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
|
|
2590
|
-
if (g.searchParams.set("omit", m || "meta.componentsUsed"), f && g.searchParams.set("fields", f), Number.isFinite(p) && p > -1 && g.searchParams.set("offset", String(Math.floor(p))), typeof E == "boolean" && g.searchParams.set("includeUnpublished", String(E)), b && ve(b) && g.searchParams.set("cacheSeconds", String(b)), S && ve(S) && g.searchParams.set("staleCacheSeconds", String(S)), T) {
|
|
2591
|
-
const P = H({
|
|
2592
|
-
sort: T
|
|
2593
|
-
});
|
|
2594
|
-
for (const O in P)
|
|
2595
|
-
g.searchParams.set(O, JSON.stringify(P[O]));
|
|
2596
|
-
}
|
|
2597
|
-
const tt = {
|
|
2598
|
-
...Ho(),
|
|
2599
|
-
...Xe(e.options || {})
|
|
2600
|
-
}, ie = H(tt);
|
|
2601
|
-
for (const P in ie)
|
|
2602
|
-
g.searchParams.set(P, String(ie[P]));
|
|
2603
|
-
if (o && g.searchParams.set("userAttributes", JSON.stringify(o)), s) {
|
|
2604
|
-
const P = H({
|
|
2605
|
-
query: s
|
|
2606
|
-
});
|
|
2607
|
-
for (const O in P)
|
|
2608
|
-
g.searchParams.set(O, JSON.stringify(P[O]));
|
|
2609
|
-
}
|
|
2610
|
-
return g;
|
|
2611
|
-
}, Do = (e) => "results" in e;
|
|
2612
|
-
async function J(e) {
|
|
2613
|
-
const t = await Qe({
|
|
2614
|
-
...e,
|
|
2615
|
-
limit: 1
|
|
2616
|
-
});
|
|
2617
|
-
return t && t.results[0] || null;
|
|
2618
|
-
}
|
|
2619
|
-
const fs = J, qo = async (e) => {
|
|
2620
|
-
const t = re(e);
|
|
2621
|
-
return await (await Fe(t.href)).json();
|
|
2622
|
-
}, Go = async (e, t, n = re(e)) => {
|
|
2623
|
-
const o = M(e.canTrack);
|
|
2624
|
-
if (n.search.includes("preview="), !o || !($() || j === "reactNative"))
|
|
2625
|
-
return t;
|
|
2626
|
-
try {
|
|
2627
|
-
const s = [];
|
|
2628
|
-
for (const r of t.results)
|
|
2629
|
-
s.push(await Wo({
|
|
2630
|
-
item: r,
|
|
2631
|
-
canTrack: o
|
|
2632
|
-
}));
|
|
2633
|
-
t.results = s;
|
|
2634
|
-
} catch (s) {
|
|
2635
|
-
x.error("Could not process A/B tests. ", s);
|
|
2636
|
-
}
|
|
2637
|
-
return t;
|
|
2638
|
-
};
|
|
2639
|
-
async function Qe(e) {
|
|
2640
|
-
try {
|
|
2641
|
-
const t = re(e), n = await qo(e);
|
|
2642
|
-
return Do(n) ? Go(e, n) : (x.error("Error fetching data. ", {
|
|
2643
|
-
url: t,
|
|
2644
|
-
content: n,
|
|
2645
|
-
options: e
|
|
2646
|
-
}), null);
|
|
2647
|
-
} catch (t) {
|
|
2648
|
-
return x.error("Error fetching data. ", t), null;
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
const bs = Qe;
|
|
2652
|
-
function Jo() {
|
|
2653
|
-
return !$() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2654
|
-
}
|
|
2655
|
-
const Yo = y({
|
|
2656
|
-
name: "enable-editor",
|
|
2657
|
-
props: [
|
|
2658
|
-
"builderContextSignal",
|
|
2659
|
-
"model",
|
|
2660
|
-
"context",
|
|
2661
|
-
"canTrack",
|
|
2662
|
-
"apiKey",
|
|
2663
|
-
"locale",
|
|
2664
|
-
"includeRefs",
|
|
2665
|
-
"enrich",
|
|
2666
|
-
"content",
|
|
2667
|
-
"showContent",
|
|
2668
|
-
"classNameProp"
|
|
2669
|
-
],
|
|
2670
|
-
data() {
|
|
2671
|
-
return {
|
|
2672
|
-
forceReRenderCount: 0,
|
|
2673
|
-
lastUpdated: 0,
|
|
2674
|
-
shouldSendResetCookie: !1,
|
|
2675
|
-
httpReqsData: {},
|
|
2676
|
-
clicked: !1,
|
|
2677
|
-
builderContext: Z
|
|
2678
|
-
};
|
|
2679
|
-
},
|
|
2680
|
-
provide() {
|
|
2681
|
-
const e = this;
|
|
2682
|
-
return {
|
|
2683
|
-
[Z.key]: e.builderContextSignal
|
|
2684
|
-
};
|
|
2685
|
-
},
|
|
2686
|
-
mounted() {
|
|
2687
|
-
(() => {
|
|
2688
|
-
var n, o;
|
|
2689
|
-
if ($()) {
|
|
2690
|
-
if (_() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2691
|
-
new CustomEvent("initeditingbldr")
|
|
2692
|
-
), this.builderContextSignal.content && M(this.canTrack)) {
|
|
2693
|
-
const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2694
|
-
te({
|
|
2695
|
-
type: "impression",
|
|
2696
|
-
canTrack: !0,
|
|
2697
|
-
contentId: i,
|
|
2698
|
-
apiKey: a,
|
|
2699
|
-
variationId: r !== i ? r : void 0
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
Jo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2703
|
-
new CustomEvent("initpreviewingbldr")
|
|
2704
|
-
);
|
|
2705
|
-
}
|
|
2706
|
-
})(), (() => {
|
|
2707
|
-
this.apiKey || x.error(
|
|
2708
|
-
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2709
|
-
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
2710
|
-
})();
|
|
2711
|
-
},
|
|
2712
|
-
watch: {
|
|
2713
|
-
onUpdateHook0: {
|
|
2714
|
-
handler() {
|
|
2715
|
-
this.content && this.mergeNewContent(this.content);
|
|
2716
|
-
},
|
|
2717
|
-
immediate: !0
|
|
2718
|
-
},
|
|
2719
|
-
onUpdateHook1: { handler() {
|
|
2720
|
-
}, immediate: !0 },
|
|
2721
|
-
onUpdateHook2: {
|
|
2722
|
-
handler() {
|
|
2723
|
-
this.evaluateJsCode();
|
|
2724
|
-
},
|
|
2725
|
-
immediate: !0
|
|
2726
|
-
},
|
|
2727
|
-
onUpdateHook3: {
|
|
2728
|
-
handler() {
|
|
2729
|
-
this.runHttpRequests();
|
|
2730
|
-
},
|
|
2731
|
-
immediate: !0
|
|
2732
|
-
},
|
|
2733
|
-
onUpdateHook4: {
|
|
2734
|
-
handler() {
|
|
2735
|
-
this.emitStateUpdate();
|
|
2736
|
-
},
|
|
2737
|
-
immediate: !0
|
|
2738
|
-
}
|
|
2739
|
-
},
|
|
2740
|
-
unmounted() {
|
|
2741
|
-
$() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2742
|
-
"builder:component:stateChangeListenerActivated",
|
|
2743
|
-
this.emitStateUpdate
|
|
2744
|
-
));
|
|
2745
|
-
},
|
|
2746
|
-
computed: {
|
|
2747
|
-
onUpdateHook0() {
|
|
2748
|
-
return {
|
|
2749
|
-
0: this.content
|
|
2750
|
-
};
|
|
2751
|
-
},
|
|
2752
|
-
onUpdateHook1() {
|
|
2753
|
-
return {
|
|
2754
|
-
0: this.shouldSendResetCookie
|
|
2755
|
-
};
|
|
2756
|
-
},
|
|
2757
|
-
onUpdateHook2() {
|
|
2758
|
-
var e, t;
|
|
2759
|
-
return {
|
|
2760
|
-
0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.jsCode,
|
|
2761
|
-
1: this.builderContextSignal.rootState
|
|
2762
|
-
};
|
|
2763
|
-
},
|
|
2764
|
-
onUpdateHook3() {
|
|
2765
|
-
var e, t;
|
|
2766
|
-
return {
|
|
2767
|
-
0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.httpRequests
|
|
2768
|
-
};
|
|
2769
|
-
},
|
|
2770
|
-
onUpdateHook4() {
|
|
2771
|
-
return {
|
|
2772
|
-
0: this.builderContextSignal.rootState
|
|
2773
|
-
};
|
|
2774
|
-
}
|
|
2775
|
-
},
|
|
2776
|
-
methods: {
|
|
2777
|
-
mergeNewContent(e) {
|
|
2778
|
-
var n, o, s, r, i;
|
|
2779
|
-
const t = {
|
|
2780
|
-
...this.builderContextSignal.content,
|
|
2781
|
-
...e,
|
|
2782
|
-
data: {
|
|
2783
|
-
...(n = this.builderContextSignal.content) == null ? void 0 : n.data,
|
|
2784
|
-
...e == null ? void 0 : e.data
|
|
2785
|
-
},
|
|
2786
|
-
meta: {
|
|
2787
|
-
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
2788
|
-
...e == null ? void 0 : e.meta,
|
|
2789
|
-
breakpoints: ((s = e == null ? void 0 : e.meta) == null ? void 0 : s.breakpoints) || ((i = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : i.breakpoints)
|
|
2790
|
-
}
|
|
2791
|
-
};
|
|
2792
|
-
this.builderContextSignal.content = t;
|
|
2793
|
-
},
|
|
2794
|
-
processMessage(e) {
|
|
2795
|
-
var n;
|
|
2796
|
-
const { data: t } = e;
|
|
2797
|
-
if (t)
|
|
2798
|
-
switch (t.type) {
|
|
2799
|
-
case "builder.configureSdk": {
|
|
2800
|
-
const o = t.data, { breakpoints: s, contentId: r } = o;
|
|
2801
|
-
if (!r || r !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
2802
|
-
return;
|
|
2803
|
-
s && this.mergeNewContent({
|
|
2804
|
-
meta: {
|
|
2805
|
-
breakpoints: s
|
|
2806
|
-
}
|
|
2807
|
-
}), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2808
|
-
break;
|
|
2809
|
-
}
|
|
2810
|
-
case "builder.contentUpdate": {
|
|
2811
|
-
const o = t.data, s = o.key || o.alias || o.entry || o.modelName, r = o.data;
|
|
2812
|
-
s === this.model && (this.mergeNewContent(r), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2813
|
-
break;
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
},
|
|
2817
|
-
evaluateJsCode() {
|
|
2818
|
-
var t, n;
|
|
2819
|
-
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
2820
|
-
e && z({
|
|
2821
|
-
code: e,
|
|
2822
|
-
context: this.context || {},
|
|
2823
|
-
localState: void 0,
|
|
2824
|
-
rootState: this.builderContextSignal.rootState,
|
|
2825
|
-
rootSetState: this.builderContextSignal.rootSetState
|
|
2826
|
-
});
|
|
2827
|
-
},
|
|
2828
|
-
onClick(e) {
|
|
2829
|
-
var t, n;
|
|
2830
|
-
if (this.builderContextSignal.content) {
|
|
2831
|
-
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2832
|
-
te({
|
|
2833
|
-
type: "click",
|
|
2834
|
-
canTrack: M(this.canTrack),
|
|
2835
|
-
contentId: s,
|
|
2836
|
-
apiKey: this.apiKey,
|
|
2837
|
-
variationId: o !== s ? o : void 0,
|
|
2838
|
-
...Bo(e),
|
|
2839
|
-
unique: !this.clicked
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
this.clicked || (this.clicked = !0);
|
|
2843
|
-
},
|
|
2844
|
-
evalExpression(e) {
|
|
2845
|
-
return e.replace(
|
|
2846
|
-
/{{([^}]+)}}/g,
|
|
2847
|
-
(t, n) => z({
|
|
2848
|
-
code: n,
|
|
2849
|
-
context: this.context || {},
|
|
2850
|
-
localState: void 0,
|
|
2851
|
-
rootState: this.builderContextSignal.rootState,
|
|
2852
|
-
rootSetState: this.builderContextSignal.rootSetState
|
|
2853
|
-
})
|
|
2854
|
-
);
|
|
2855
|
-
},
|
|
2856
|
-
handleRequest({ url: e, key: t }) {
|
|
2857
|
-
Fe(e).then((n) => n.json()).then((n) => {
|
|
2858
|
-
var s, r;
|
|
2859
|
-
const o = {
|
|
2860
|
-
...this.builderContextSignal.rootState,
|
|
2861
|
-
[t]: n
|
|
2862
|
-
};
|
|
2863
|
-
(r = (s = this.builderContextSignal).rootSetState) == null || r.call(s, o), this.httpReqsData[t] = !0;
|
|
2864
|
-
}).catch((n) => {
|
|
2865
|
-
console.error("error fetching dynamic data", e, n);
|
|
2866
|
-
});
|
|
2867
|
-
},
|
|
2868
|
-
runHttpRequests() {
|
|
2869
|
-
var t, n, o;
|
|
2870
|
-
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2871
|
-
Object.entries(e).forEach(([s, r]) => {
|
|
2872
|
-
if (r && (!this.httpReqsData[s] || _())) {
|
|
2873
|
-
const i = this.evalExpression(r);
|
|
2874
|
-
this.handleRequest({
|
|
2875
|
-
url: i,
|
|
2876
|
-
key: s
|
|
2877
|
-
});
|
|
2878
|
-
}
|
|
2879
|
-
});
|
|
2880
|
-
},
|
|
2881
|
-
emitStateUpdate() {
|
|
2882
|
-
_() && window.dispatchEvent(
|
|
2883
|
-
new CustomEvent(
|
|
2884
|
-
"builder:component:stateChange",
|
|
2885
|
-
{
|
|
2886
|
-
detail: {
|
|
2887
|
-
state: N(this.builderContextSignal.rootState),
|
|
2888
|
-
ref: {
|
|
2889
|
-
name: this.model
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
|
-
)
|
|
2894
|
-
);
|
|
2895
|
-
},
|
|
2896
|
-
elementRef_onIniteditingbldr(e) {
|
|
2897
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), _o(), Ao({
|
|
2898
|
-
...this.locale ? {
|
|
2899
|
-
locale: this.locale
|
|
2900
|
-
} : {},
|
|
2901
|
-
...this.includeRefs ? {
|
|
2902
|
-
includeRefs: this.includeRefs
|
|
2903
|
-
} : {},
|
|
2904
|
-
...this.enrich ? {
|
|
2905
|
-
enrich: this.enrich
|
|
2906
|
-
} : {}
|
|
2907
|
-
}), Object.values(
|
|
2908
|
-
this.builderContextSignal.componentInfos
|
|
2909
|
-
).forEach((t) => {
|
|
2910
|
-
var o;
|
|
2911
|
-
const n = Zn(t);
|
|
2912
|
-
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2913
|
-
}), window.addEventListener(
|
|
2914
|
-
"builder:component:stateChangeListenerActivated",
|
|
2915
|
-
this.emitStateUpdate
|
|
2916
|
-
);
|
|
2917
|
-
},
|
|
2918
|
-
elementRef_onInitpreviewingbldr(e) {
|
|
2919
|
-
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2920
|
-
`builder.preview.${n}`
|
|
2921
|
-
), s = t.get("apiKey") || t.get("builder.space");
|
|
2922
|
-
n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && J({
|
|
2923
|
-
model: this.model,
|
|
2924
|
-
apiKey: this.apiKey,
|
|
2925
|
-
apiVersion: this.builderContextSignal.apiVersion
|
|
2926
|
-
}).then((r) => {
|
|
2927
|
-
r && this.mergeNewContent(r);
|
|
2928
|
-
});
|
|
2929
|
-
},
|
|
2930
|
-
_classStringToObject(e) {
|
|
2931
|
-
const t = {};
|
|
2932
|
-
if (typeof e != "string")
|
|
2933
|
-
return t;
|
|
2934
|
-
const n = e.trim().split(/\s+/);
|
|
2935
|
-
for (const o of n)
|
|
2936
|
-
t[o] = !0;
|
|
2937
|
-
return t;
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
}), Xo = ["builder-content-id", "builder-model"];
|
|
2941
|
-
function Qo(e, t, n, o, s, r) {
|
|
2942
|
-
var i;
|
|
2943
|
-
return e.builderContextSignal.content ? (d(), h("div", I({
|
|
2944
|
-
key: e.forceReRenderCount,
|
|
2945
|
-
ref: "elementRef",
|
|
2946
|
-
onClick: t[0] || (t[0] = (a) => e.onClick(a)),
|
|
2947
|
-
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
2948
|
-
"builder-model": e.model,
|
|
2949
|
-
class: e._classStringToObject(e.classNameProp),
|
|
2950
|
-
onIniteditingbldr: t[1] || (t[1] = (a) => e.elementRef_onIniteditingbldr(a)),
|
|
2951
|
-
onInitpreviewingbldr: t[2] || (t[2] = (a) => e.elementRef_onInitpreviewingbldr(a))
|
|
2952
|
-
}, {
|
|
2953
|
-
...e.showContent ? {} : {
|
|
2954
|
-
hidden: !0,
|
|
2955
|
-
"aria-hidden": !0
|
|
2956
|
-
}
|
|
2957
|
-
}), [
|
|
2958
|
-
U(e.$slots, "default")
|
|
2959
|
-
], 16, Xo)) : w("v-if", !0);
|
|
2960
|
-
}
|
|
2961
|
-
const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), es = y({
|
|
2962
|
-
render() {
|
|
2963
|
-
return Ce("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2964
|
-
},
|
|
2965
|
-
name: "inlined-script",
|
|
2966
|
-
props: ["scriptStr", "id"]
|
|
2967
|
-
}), Ze = /* @__PURE__ */ k(es, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), ts = ot, ns = y({
|
|
2968
|
-
name: "content-component",
|
|
2969
|
-
components: {
|
|
2970
|
-
EnableEditor: Zo,
|
|
2971
|
-
InlinedScript: Ze,
|
|
2972
|
-
ContentStyles: ao,
|
|
2973
|
-
Blocks: oe
|
|
2974
|
-
},
|
|
2975
|
-
props: [
|
|
2976
|
-
"content",
|
|
2977
|
-
"customComponents",
|
|
2978
|
-
"data",
|
|
2979
|
-
"locale",
|
|
2980
|
-
"context",
|
|
2981
|
-
"apiKey",
|
|
2982
|
-
"apiVersion",
|
|
2983
|
-
"model",
|
|
2984
|
-
"canTrack",
|
|
2985
|
-
"includeRefs",
|
|
2986
|
-
"enrich",
|
|
2987
|
-
"classNameProp",
|
|
2988
|
-
"showContent",
|
|
2989
|
-
"isSsrAbTest"
|
|
2990
|
-
],
|
|
2991
|
-
data() {
|
|
2992
|
-
var e, t;
|
|
2993
|
-
return {
|
|
2994
|
-
scriptStr: kn({
|
|
2995
|
-
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2996
|
-
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2997
|
-
}),
|
|
2998
|
-
registeredComponents: [
|
|
2999
|
-
...me(),
|
|
3000
|
-
...he,
|
|
3001
|
-
...this.customComponents || []
|
|
3002
|
-
].reduce(
|
|
3003
|
-
(n, { component: o, ...s }) => ({
|
|
3004
|
-
...n,
|
|
3005
|
-
[s.name]: {
|
|
3006
|
-
component: ts(o),
|
|
3007
|
-
...ee(s)
|
|
3008
|
-
}
|
|
3009
|
-
}),
|
|
3010
|
-
{}
|
|
3011
|
-
),
|
|
3012
|
-
builderContextSignal: {
|
|
3013
|
-
content: lo({
|
|
3014
|
-
content: this.content,
|
|
3015
|
-
data: this.data
|
|
3016
|
-
}),
|
|
3017
|
-
localState: void 0,
|
|
3018
|
-
rootState: co({
|
|
3019
|
-
content: this.content,
|
|
3020
|
-
data: this.data,
|
|
3021
|
-
locale: this.locale
|
|
3022
|
-
}),
|
|
3023
|
-
rootSetState: this.contentSetState,
|
|
3024
|
-
context: this.context || {},
|
|
3025
|
-
apiKey: this.apiKey,
|
|
3026
|
-
apiVersion: this.apiVersion,
|
|
3027
|
-
componentInfos: [
|
|
3028
|
-
...me(),
|
|
3029
|
-
...he,
|
|
3030
|
-
...this.customComponents || []
|
|
3031
|
-
].reduce(
|
|
3032
|
-
(n, { component: o, ...s }) => ({
|
|
3033
|
-
...n,
|
|
3034
|
-
[s.name]: ee(s)
|
|
3035
|
-
}),
|
|
3036
|
-
{}
|
|
3037
|
-
),
|
|
3038
|
-
inheritedStyles: {}
|
|
3039
|
-
},
|
|
3040
|
-
TARGET: j
|
|
3041
|
-
};
|
|
3042
|
-
},
|
|
3043
|
-
provide() {
|
|
3044
|
-
const e = this;
|
|
3045
|
-
return {
|
|
3046
|
-
[Ve.key]: {
|
|
3047
|
-
registeredComponents: e.registeredComponents
|
|
3048
|
-
}
|
|
3049
|
-
};
|
|
3050
|
-
},
|
|
3051
|
-
methods: {
|
|
3052
|
-
contentSetState(e) {
|
|
3053
|
-
this.builderContextSignal.rootState = e;
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3056
|
-
});
|
|
3057
|
-
function os(e, t, n, o, s, r) {
|
|
3058
|
-
const i = v("inlined-script"), a = v("content-styles"), c = v("blocks"), l = v("enable-editor");
|
|
3059
|
-
return d(), C(l, I({
|
|
3060
|
-
content: e.content,
|
|
3061
|
-
model: e.model,
|
|
3062
|
-
context: e.context,
|
|
3063
|
-
apiKey: e.apiKey,
|
|
3064
|
-
canTrack: e.canTrack,
|
|
3065
|
-
locale: e.locale,
|
|
3066
|
-
includeRefs: e.includeRefs,
|
|
3067
|
-
enrich: e.enrich,
|
|
3068
|
-
classNameProp: e.classNameProp,
|
|
3069
|
-
showContent: e.showContent,
|
|
3070
|
-
builderContextSignal: e.builderContextSignal
|
|
3071
|
-
}, {}), {
|
|
3072
|
-
default: ne(() => {
|
|
3073
|
-
var u, f, m, p, b, S, T;
|
|
3074
|
-
return [
|
|
3075
|
-
e.isSsrAbTest ? (d(), C(i, {
|
|
3076
|
-
key: 0,
|
|
3077
|
-
scriptStr: e.scriptStr
|
|
3078
|
-
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3079
|
-
e.TARGET !== "reactNative" ? (d(), C(a, {
|
|
3080
|
-
key: 1,
|
|
3081
|
-
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
3082
|
-
cssCode: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.cssCode,
|
|
3083
|
-
customFonts: (b = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
|
|
3084
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) : w("v-if", !0),
|
|
3085
|
-
V(c, {
|
|
3086
|
-
blocks: (T = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : T.blocks,
|
|
3087
|
-
context: e.builderContextSignal,
|
|
3088
|
-
registeredComponents: e.registeredComponents
|
|
3089
|
-
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
3090
|
-
];
|
|
3091
|
-
}),
|
|
3092
|
-
_: 1
|
|
3093
|
-
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
|
|
3094
|
-
}
|
|
3095
|
-
const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), rs = y({
|
|
3096
|
-
name: "content-variants",
|
|
3097
|
-
components: {
|
|
3098
|
-
InlinedScript: Ze,
|
|
3099
|
-
InlinedStyles: G,
|
|
3100
|
-
ContentComponent: ss
|
|
3101
|
-
},
|
|
3102
|
-
props: [
|
|
3103
|
-
"canTrack",
|
|
3104
|
-
"content",
|
|
3105
|
-
"__isNestedRender",
|
|
3106
|
-
"model",
|
|
3107
|
-
"data",
|
|
3108
|
-
"context",
|
|
3109
|
-
"apiKey",
|
|
3110
|
-
"apiVersion",
|
|
3111
|
-
"customComponents",
|
|
3112
|
-
"locale",
|
|
3113
|
-
"includeRefs",
|
|
3114
|
-
"enrich"
|
|
3115
|
-
],
|
|
3116
|
-
data() {
|
|
3117
|
-
return {
|
|
3118
|
-
shouldRenderVariants: mn({
|
|
3119
|
-
canTrack: M(this.canTrack),
|
|
3120
|
-
content: this.content
|
|
3121
|
-
}),
|
|
3122
|
-
getScriptString: gn,
|
|
3123
|
-
getVariants: K,
|
|
3124
|
-
TARGET: j
|
|
3125
|
-
};
|
|
3126
|
-
},
|
|
3127
|
-
mounted() {
|
|
3128
|
-
this.shouldRenderVariants = !1;
|
|
3129
|
-
},
|
|
3130
|
-
computed: {
|
|
3131
|
-
variantScriptStr() {
|
|
3132
|
-
var e;
|
|
3133
|
-
return yn(
|
|
3134
|
-
K(this.content).map((t) => ({
|
|
3135
|
-
id: t.testVariationId,
|
|
3136
|
-
testRatio: t.testRatio
|
|
3137
|
-
})),
|
|
3138
|
-
((e = this.content) == null ? void 0 : e.id) || ""
|
|
3139
|
-
);
|
|
3140
|
-
},
|
|
3141
|
-
hideVariantsStyleString() {
|
|
3142
|
-
return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3143
|
-
},
|
|
3144
|
-
defaultContent() {
|
|
3145
|
-
var e;
|
|
3146
|
-
return this.shouldRenderVariants ? {
|
|
3147
|
-
...this.content,
|
|
3148
|
-
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3149
|
-
} : Mo({
|
|
3150
|
-
item: this.content,
|
|
3151
|
-
canTrack: M(this.canTrack)
|
|
3152
|
-
});
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3155
|
-
});
|
|
3156
|
-
function is(e, t, n, o, s, r) {
|
|
3157
|
-
var l, u;
|
|
3158
|
-
const i = v("inlined-script"), a = v("inlined-styles"), c = v("content-component");
|
|
3159
|
-
return d(), h(R, null, [
|
|
3160
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), C(i, {
|
|
3161
|
-
key: 0,
|
|
3162
|
-
scriptStr: e.getScriptString()
|
|
3163
|
-
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3164
|
-
e.shouldRenderVariants ? (d(), h(R, { key: 1 }, [
|
|
3165
|
-
V(a, {
|
|
3166
|
-
id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
|
|
3167
|
-
styles: e.hideVariantsStyleString
|
|
3168
|
-
}, null, 8, ["id", "styles"]),
|
|
3169
|
-
V(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
|
|
3170
|
-
(d(!0), h(R, null, B(e.getVariants(e.content), (f, m) => (d(), C(c, {
|
|
3171
|
-
key: f.testVariationId,
|
|
3172
|
-
content: f,
|
|
3173
|
-
showContent: !1,
|
|
3174
|
-
classNameProp: void 0,
|
|
3175
|
-
model: e.model,
|
|
3176
|
-
data: e.data,
|
|
3177
|
-
context: e.context,
|
|
3178
|
-
apiKey: e.apiKey,
|
|
3179
|
-
apiVersion: e.apiVersion,
|
|
3180
|
-
customComponents: e.customComponents,
|
|
3181
|
-
canTrack: e.canTrack,
|
|
3182
|
-
locale: e.locale,
|
|
3183
|
-
includeRefs: e.includeRefs,
|
|
3184
|
-
enrich: e.enrich,
|
|
3185
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
3186
|
-
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3187
|
-
], 64)) : w("v-if", !0),
|
|
3188
|
-
V(c, I({
|
|
3189
|
-
content: e.defaultContent,
|
|
3190
|
-
classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
|
|
3191
|
-
showContent: !0,
|
|
3192
|
-
model: e.model,
|
|
3193
|
-
data: e.data,
|
|
3194
|
-
context: e.context,
|
|
3195
|
-
apiKey: e.apiKey,
|
|
3196
|
-
apiVersion: e.apiVersion,
|
|
3197
|
-
customComponents: e.customComponents,
|
|
3198
|
-
canTrack: e.canTrack,
|
|
3199
|
-
locale: e.locale,
|
|
3200
|
-
includeRefs: e.includeRefs,
|
|
3201
|
-
enrich: e.enrich,
|
|
3202
|
-
isSsrAbTest: e.shouldRenderVariants
|
|
3203
|
-
}, {
|
|
3204
|
-
key: e.shouldRenderVariants.toString()
|
|
3205
|
-
}), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3206
|
-
], 64);
|
|
3207
|
-
}
|
|
3208
|
-
const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), as = async ({
|
|
3209
|
-
builderContextValue: e,
|
|
3210
|
-
symbol: t
|
|
3211
|
-
}) => {
|
|
3212
|
-
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3213
|
-
return J({
|
|
3214
|
-
model: t.model,
|
|
3215
|
-
apiKey: e.apiKey,
|
|
3216
|
-
apiVersion: e.apiVersion,
|
|
3217
|
-
...(t == null ? void 0 : t.entry) && {
|
|
3218
|
-
query: {
|
|
3219
|
-
id: t.entry
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
}).catch((n) => {
|
|
3223
|
-
x.error("Could not fetch symbol content: ", n);
|
|
3224
|
-
});
|
|
3225
|
-
}, cs = y({
|
|
3226
|
-
name: "builder-symbol",
|
|
3227
|
-
components: { ContentVariants: et },
|
|
3228
|
-
props: [
|
|
3229
|
-
"js",
|
|
3230
|
-
"attributes",
|
|
3231
|
-
"symbol",
|
|
3232
|
-
"dynamic",
|
|
3233
|
-
"builderContext",
|
|
3234
|
-
"builderComponents"
|
|
3235
|
-
],
|
|
3236
|
-
data() {
|
|
3237
|
-
var e;
|
|
3238
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
|
|
3239
|
-
},
|
|
3240
|
-
mounted() {
|
|
3241
|
-
this.setContent();
|
|
3242
|
-
},
|
|
3243
|
-
watch: {
|
|
3244
|
-
onUpdateHook0: {
|
|
3245
|
-
handler() {
|
|
3246
|
-
this.setContent();
|
|
3247
|
-
},
|
|
3248
|
-
immediate: !0
|
|
3249
|
-
}
|
|
3250
|
-
},
|
|
3251
|
-
computed: {
|
|
3252
|
-
className() {
|
|
3253
|
-
var e, t;
|
|
3254
|
-
return [
|
|
3255
|
-
...Object.keys(this.attributes.class),
|
|
3256
|
-
"builder-symbol",
|
|
3257
|
-
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
3258
|
-
((t = this.symbol) == null ? void 0 : t.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3259
|
-
].filter(Boolean).join(" ");
|
|
3260
|
-
},
|
|
3261
|
-
onUpdateHook0() {
|
|
3262
|
-
return {
|
|
3263
|
-
0: this.symbol
|
|
3264
|
-
};
|
|
3265
|
-
}
|
|
3266
|
-
},
|
|
3267
|
-
methods: {
|
|
3268
|
-
setContent() {
|
|
3269
|
-
this.contentToUse || as({
|
|
3270
|
-
symbol: this.symbol,
|
|
3271
|
-
builderContextValue: this.builderContext
|
|
3272
|
-
}).then((e) => {
|
|
3273
|
-
e && (this.contentToUse = e);
|
|
3274
|
-
});
|
|
3275
|
-
},
|
|
3276
|
-
_classStringToObject(e) {
|
|
3277
|
-
const t = {};
|
|
3278
|
-
if (typeof e != "string")
|
|
3279
|
-
return t;
|
|
3280
|
-
const n = e.trim().split(/\s+/);
|
|
3281
|
-
for (const o of n)
|
|
3282
|
-
t[o] = !0;
|
|
3283
|
-
return t;
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
});
|
|
3287
|
-
function ls(e, t, n, o, s, r) {
|
|
3288
|
-
var a, c, l, u;
|
|
3289
|
-
const i = v("content-variants");
|
|
3290
|
-
return d(), h("div", I({
|
|
3291
|
-
class: e._classStringToObject(e.className)
|
|
3292
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3293
|
-
V(i, {
|
|
3294
|
-
__isNestedRender: !0,
|
|
3295
|
-
apiVersion: e.builderContext.apiVersion,
|
|
3296
|
-
apiKey: e.builderContext.apiKey,
|
|
3297
|
-
context: e.builderContext.context,
|
|
3298
|
-
customComponents: Object.values(e.builderComponents),
|
|
3299
|
-
data: {
|
|
3300
|
-
...(a = e.symbol) == null ? void 0 : a.data,
|
|
3301
|
-
...e.builderContext.localState,
|
|
3302
|
-
...(l = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : l.state
|
|
3303
|
-
},
|
|
3304
|
-
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
3305
|
-
content: e.contentToUse
|
|
3306
|
-
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3307
|
-
], 16);
|
|
3308
|
-
}
|
|
3309
|
-
const ds = /* @__PURE__ */ k(cs, [["render", ls], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), gs = oe, ys = et, Se = {};
|
|
3310
|
-
function ks(e) {
|
|
3311
|
-
if ($()) {
|
|
3312
|
-
Object.assign(Se, e);
|
|
3313
|
-
const t = {
|
|
3314
|
-
type: "builder.settingsChange",
|
|
3315
|
-
data: Se
|
|
3316
|
-
};
|
|
3317
|
-
parent.postMessage(t, "*");
|
|
3318
|
-
}
|
|
3319
|
-
}
|
|
3320
|
-
const vs = async (e) => {
|
|
3321
|
-
var o, s, r;
|
|
3322
|
-
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
|
|
3323
|
-
...e,
|
|
3324
|
-
apiKey: e.apiKey,
|
|
3325
|
-
model: e.model || "page",
|
|
3326
|
-
userAttributes: {
|
|
3327
|
-
...e.userAttributes,
|
|
3328
|
-
...t ? {
|
|
3329
|
-
urlPath: t
|
|
3330
|
-
} : {}
|
|
3331
|
-
},
|
|
3332
|
-
options: Ye(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
3333
|
-
};
|
|
3334
|
-
return {
|
|
3335
|
-
apiKey: n.apiKey,
|
|
3336
|
-
model: n.model,
|
|
3337
|
-
content: await J(n)
|
|
3338
|
-
};
|
|
3339
|
-
};
|
|
3340
|
-
export {
|
|
3341
|
-
Z as B,
|
|
3342
|
-
et as C,
|
|
3343
|
-
en as F,
|
|
3344
|
-
ln as I,
|
|
3345
|
-
gs as R,
|
|
3346
|
-
pn as S,
|
|
3347
|
-
j as T,
|
|
3348
|
-
Vn as V,
|
|
3349
|
-
k as _,
|
|
3350
|
-
Be as a,
|
|
3351
|
-
Pe as b,
|
|
3352
|
-
$t as c,
|
|
3353
|
-
oe as d,
|
|
3354
|
-
z as e,
|
|
3355
|
-
ys as f,
|
|
3356
|
-
ct as g,
|
|
3357
|
-
Xt as h,
|
|
3358
|
-
ds as i,
|
|
3359
|
-
_n as j,
|
|
3360
|
-
_ as k,
|
|
3361
|
-
Jo as l,
|
|
3362
|
-
Zn as m,
|
|
3363
|
-
Qe as n,
|
|
3364
|
-
J as o,
|
|
3365
|
-
bs as p,
|
|
3366
|
-
fs as q,
|
|
3367
|
-
Eo as r,
|
|
3368
|
-
ks as s,
|
|
3369
|
-
Go as t,
|
|
3370
|
-
Ye as u,
|
|
3371
|
-
hs as v,
|
|
3372
|
-
ts as w,
|
|
3373
|
-
vs as x,
|
|
3374
|
-
ms as y
|
|
3375
|
-
};
|