@builder.io/sdk-vue 0.7.1 → 0.7.2
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 +5 -1
- package/vue2/lib/browser/block-750d8ed7.cjs +3 -0
- package/vue2/lib/browser/block-86d82810.js +181 -0
- package/vue2/lib/browser/block-styles-132270d0.js +82 -0
- package/vue2/lib/browser/block-styles-5b5e9888.cjs +1 -0
- package/vue2/lib/browser/block-wrapper-571b134c.cjs +1 -0
- package/vue2/lib/browser/block-wrapper-f011d1f2.js +66 -0
- package/vue2/lib/browser/blocks/button/button.vue.d.ts +18 -0
- package/vue2/lib/browser/blocks/button/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +44 -0
- package/vue2/lib/browser/blocks/columns/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/custom-code/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +13 -0
- package/vue2/lib/browser/blocks/embed/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/embed/embed.vue.d.ts +18 -0
- package/vue2/lib/browser/blocks/embed/helpers.d.ts +1 -0
- package/vue2/lib/browser/blocks/form/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/fragment/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue2/lib/browser/blocks/helpers.d.ts +13 -0
- package/vue2/lib/browser/blocks/image/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/image/image.helpers.d.ts +1 -0
- package/vue2/lib/browser/blocks/image/image.vue.d.ts +72 -0
- package/vue2/lib/browser/blocks/img/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/img/img.vue.d.ts +39 -0
- package/vue2/lib/browser/blocks/input/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/raw-text/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/section/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/section/section.vue.d.ts +23 -0
- package/vue2/lib/browser/blocks/select/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/submit-button/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/symbol/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +39 -0
- package/vue2/lib/browser/blocks/text/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/text/text.vue.d.ts +11 -0
- package/vue2/lib/browser/blocks/textarea/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/video/component-info.d.ts +2 -0
- package/vue2/lib/browser/blocks/video/video.vue.d.ts +64 -0
- package/vue2/lib/browser/blocks-wrapper-1d620d76.cjs +1 -0
- package/vue2/lib/browser/blocks-wrapper-33f35ea5.js +72 -0
- package/vue2/lib/browser/component-ref-26a164ea.cjs +1 -0
- package/vue2/lib/browser/component-ref-d6254a68.js +102 -0
- package/vue2/lib/browser/components/block/block.helpers.d.ts +13 -0
- package/vue2/lib/browser/components/block/block.vue.d.ts +41 -0
- package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue2/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue2/lib/browser/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue2/lib/browser/components/block/types.d.ts +6 -0
- package/vue2/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +29 -0
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +57 -0
- package/vue2/lib/browser/components/content/components/styles.helpers.d.ts +15 -0
- package/vue2/lib/browser/components/content/components/styles.vue.d.ts +16 -0
- package/vue2/lib/browser/components/content/content.helpers.d.ts +7 -0
- package/vue2/lib/browser/components/content/content.types.d.ts +24 -0
- package/vue2/lib/browser/components/content/content.vue.d.ts +26 -0
- package/vue2/lib/browser/components/content/index.d.ts +1 -0
- package/vue2/lib/browser/components/content/wrap-component-ref.d.ts +6 -0
- package/vue2/lib/browser/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +50 -0
- package/vue2/lib/browser/components/content-variants/helpers.d.ts +18 -0
- package/vue2/lib/browser/components/inlined-script.vue.d.ts +11 -0
- package/vue2/lib/browser/components/inlined-styles.vue.d.ts +11 -0
- package/vue2/lib/browser/constants/builder-registered-components.d.ts +6 -0
- package/vue2/lib/browser/constants/device-sizes.d.ts +13 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -0
- package/vue2/lib/browser/constants/target.d.ts +2 -0
- package/vue2/lib/browser/content-859f190b.cjs +1 -0
- package/vue2/lib/browser/content-dc49d77b.js +926 -0
- package/vue2/lib/browser/context/builder.context.d.ts +15 -0
- package/vue2/lib/browser/context/components.context.d.ts +7 -0
- package/vue2/lib/browser/context/types.d.ts +35 -0
- package/vue2/lib/browser/css-67efb2d0.js +21 -0
- package/vue2/lib/browser/css-a19d330c.cjs +6 -0
- package/vue2/lib/browser/enable-editor-4054558e.js +442 -0
- package/vue2/lib/browser/enable-editor-ed3f647e.cjs +1 -0
- package/vue2/lib/browser/evaluate-28c12253.js +86 -0
- package/vue2/lib/browser/evaluate-6cd69c12.cjs +1 -0
- package/vue2/lib/browser/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue2/lib/browser/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue2/lib/browser/functions/deopt.d.ts +4 -0
- package/vue2/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue2/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue2/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +2 -0
- package/vue2/lib/browser/functions/evaluate/helpers.d.ts +24 -0
- package/vue2/lib/browser/functions/evaluate/index.d.ts +1 -0
- package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/event-handler-name.d.ts +1 -0
- package/vue2/lib/browser/functions/extract-text-styles.d.ts +4 -0
- package/vue2/lib/browser/functions/fast-clone.d.ts +4 -0
- package/vue2/lib/browser/functions/fetch-builder-props.d.ts +53 -0
- package/vue2/lib/browser/functions/get-block-actions-handler.d.ts +8 -0
- package/vue2/lib/browser/functions/get-block-actions.d.ts +10 -0
- package/vue2/lib/browser/functions/get-block-component-options.d.ts +2 -0
- package/vue2/lib/browser/functions/get-block-properties.d.ts +6 -0
- package/vue2/lib/browser/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue2/lib/browser/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue2/lib/browser/functions/get-content/index.d.ts +28 -0
- package/vue2/lib/browser/functions/get-content/types.d.ts +142 -0
- package/vue2/lib/browser/functions/get-fetch.d.ts +1 -0
- package/vue2/lib/browser/functions/get-processed-block.d.ts +10 -0
- package/vue2/lib/browser/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue2/lib/browser/functions/is-browser.d.ts +1 -0
- package/vue2/lib/browser/functions/is-edge-runtime.d.ts +4 -0
- package/vue2/lib/browser/functions/is-editing.d.ts +1 -0
- package/vue2/lib/browser/functions/is-iframe.d.ts +1 -0
- package/vue2/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/browser/functions/is-previewing.d.ts +1 -0
- package/vue2/lib/browser/functions/on-change.d.ts +7 -0
- package/vue2/lib/browser/functions/register-component.d.ts +15 -0
- package/vue2/lib/browser/functions/register.d.ts +16 -0
- package/vue2/lib/browser/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue2/lib/browser/functions/set-editor-settings.d.ts +4 -0
- package/vue2/lib/browser/functions/set.d.ts +7 -0
- package/vue2/lib/browser/functions/track/helpers.d.ts +5 -0
- package/vue2/lib/browser/functions/track/index.d.ts +51 -0
- package/vue2/lib/browser/functions/track/interaction.d.ts +13 -0
- package/vue2/lib/browser/functions/transform-block-properties.d.ts +2 -0
- package/vue2/lib/browser/functions/transform-block.d.ts +2 -0
- package/vue2/lib/browser/get-block-actions-63de56e5.js +35 -0
- package/vue2/lib/browser/get-block-actions-f19965b6.cjs +1 -0
- package/vue2/lib/browser/get-block-properties-21c833e6.cjs +1 -0
- package/vue2/lib/browser/get-block-properties-a5f2574c.js +48 -0
- package/vue2/lib/browser/get-processed-block-981ce262.cjs +1 -0
- package/vue2/lib/browser/get-processed-block-9b23550f.js +58 -0
- package/vue2/lib/browser/helpers/ab-tests.d.ts +9 -0
- package/vue2/lib/browser/helpers/canTrack.d.ts +1 -0
- package/vue2/lib/browser/helpers/cookie.d.ts +19 -0
- package/vue2/lib/browser/helpers/css.d.ts +7 -0
- package/vue2/lib/browser/helpers/flatten.d.ts +6 -0
- package/vue2/lib/browser/helpers/localStorage.d.ts +9 -0
- package/vue2/lib/browser/helpers/logger.d.ts +6 -0
- package/vue2/lib/browser/helpers/nullable.d.ts +2 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue2/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/browser/helpers/sessionId.d.ts +6 -0
- package/vue2/lib/browser/helpers/time.d.ts +1 -0
- package/vue2/lib/browser/helpers/url.d.ts +6 -0
- package/vue2/lib/browser/helpers/uuid.d.ts +8 -0
- package/vue2/lib/browser/helpers/visitorId.d.ts +6 -0
- package/vue2/lib/browser/index-63eb9f8d.cjs +32 -0
- package/vue2/lib/browser/index-f82eab8f.js +1441 -0
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +88 -0
- package/vue2/lib/browser/index-helpers/top-of-file.d.ts +1 -0
- package/vue2/lib/browser/index.cjs +1 -0
- package/vue2/lib/browser/index.d.ts +7 -0
- package/vue2/lib/browser/index.js +29 -0
- package/vue2/lib/browser/inlined-script-2d16b8db.js +23 -0
- package/vue2/lib/browser/inlined-script-95114af2.cjs +1 -0
- package/vue2/lib/browser/inlined-styles-9637cb58.cjs +1 -0
- package/vue2/lib/browser/inlined-styles-fbbf7fd9.js +23 -0
- package/vue2/lib/browser/interactive-element-c87a6c35.js +42 -0
- package/vue2/lib/browser/interactive-element-d37313e0.cjs +1 -0
- package/vue2/lib/browser/repeated-block-231b11b1.js +38 -0
- package/vue2/lib/browser/repeated-block-49fef627.cjs +1 -0
- package/vue2/lib/browser/scripts/init-editing.d.ts +6 -0
- package/vue2/lib/browser/server-index.d.ts +15 -0
- package/vue2/lib/browser/style.css +1 -0
- package/vue2/lib/browser/styles-28f7ec70.js +89 -0
- package/vue2/lib/browser/styles-6a6b8114.cjs +31 -0
- package/vue2/lib/browser/types/api-version.d.ts +2 -0
- package/vue2/lib/browser/types/builder-block.d.ts +66 -0
- package/vue2/lib/browser/types/builder-content.d.ts +44 -0
- package/vue2/lib/browser/types/builder-props.d.ts +9 -0
- package/vue2/lib/browser/types/can-track.d.ts +3 -0
- package/vue2/lib/browser/types/components.d.ts +110 -0
- package/vue2/lib/browser/types/deep-partial.d.ts +3 -0
- package/vue2/lib/browser/types/element.d.ts +59 -0
- package/vue2/lib/browser/types/enforced-partials.d.ts +21 -0
- package/vue2/lib/browser/types/input.d.ts +121 -0
- package/vue2/lib/browser/types/targets.d.ts +1 -0
- package/vue2/lib/browser/types/typescript.d.ts +11 -0
- package/vue2/lib/edge/block-85fe2549.cjs +3 -0
- package/vue2/lib/edge/block-88cc78c4.js +181 -0
- package/vue2/lib/edge/block-styles-65d9a724.cjs +1 -0
- package/vue2/lib/edge/block-styles-9140aecf.js +82 -0
- package/vue2/lib/edge/block-wrapper-36a4a767.js +66 -0
- package/vue2/lib/edge/block-wrapper-e6392713.cjs +1 -0
- package/vue2/lib/edge/blocks/button/button.vue.d.ts +18 -0
- package/vue2/lib/edge/blocks/button/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +44 -0
- package/vue2/lib/edge/blocks/columns/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/custom-code/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +13 -0
- package/vue2/lib/edge/blocks/embed/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/embed/embed.vue.d.ts +18 -0
- package/vue2/lib/edge/blocks/embed/helpers.d.ts +1 -0
- package/vue2/lib/edge/blocks/form/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/fragment/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue2/lib/edge/blocks/helpers.d.ts +13 -0
- package/vue2/lib/edge/blocks/image/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/image/image.helpers.d.ts +1 -0
- package/vue2/lib/edge/blocks/image/image.vue.d.ts +72 -0
- package/vue2/lib/edge/blocks/img/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/img/img.vue.d.ts +39 -0
- package/vue2/lib/edge/blocks/input/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/raw-text/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/section/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/section/section.vue.d.ts +23 -0
- package/vue2/lib/edge/blocks/select/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/submit-button/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/symbol/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +39 -0
- package/vue2/lib/edge/blocks/text/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/text/text.vue.d.ts +11 -0
- package/vue2/lib/edge/blocks/textarea/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/video/component-info.d.ts +2 -0
- package/vue2/lib/edge/blocks/video/video.vue.d.ts +64 -0
- package/vue2/lib/edge/blocks-wrapper-96489519.cjs +1 -0
- package/vue2/lib/edge/blocks-wrapper-dcd7b27a.js +72 -0
- package/vue2/lib/edge/component-ref-0bf4a838.cjs +1 -0
- package/vue2/lib/edge/component-ref-9b2c6138.js +102 -0
- package/vue2/lib/edge/components/block/block.helpers.d.ts +13 -0
- package/vue2/lib/edge/components/block/block.vue.d.ts +41 -0
- package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue2/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue2/lib/edge/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue2/lib/edge/components/block/types.d.ts +6 -0
- package/vue2/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +29 -0
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +57 -0
- package/vue2/lib/edge/components/content/components/styles.helpers.d.ts +15 -0
- package/vue2/lib/edge/components/content/components/styles.vue.d.ts +16 -0
- package/vue2/lib/edge/components/content/content.helpers.d.ts +7 -0
- package/vue2/lib/edge/components/content/content.types.d.ts +24 -0
- package/vue2/lib/edge/components/content/content.vue.d.ts +26 -0
- package/vue2/lib/edge/components/content/index.d.ts +1 -0
- package/vue2/lib/edge/components/content/wrap-component-ref.d.ts +6 -0
- package/vue2/lib/edge/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +50 -0
- package/vue2/lib/edge/components/content-variants/helpers.d.ts +18 -0
- package/vue2/lib/edge/components/inlined-script.vue.d.ts +11 -0
- package/vue2/lib/edge/components/inlined-styles.vue.d.ts +11 -0
- package/vue2/lib/edge/constants/builder-registered-components.d.ts +6 -0
- package/vue2/lib/edge/constants/device-sizes.d.ts +13 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -0
- package/vue2/lib/edge/constants/target.d.ts +2 -0
- package/vue2/lib/edge/content-199e7143.cjs +1 -0
- package/vue2/lib/edge/content-ad722031.js +926 -0
- package/vue2/lib/edge/context/builder.context.d.ts +15 -0
- package/vue2/lib/edge/context/components.context.d.ts +7 -0
- package/vue2/lib/edge/context/types.d.ts +35 -0
- package/vue2/lib/edge/css-05af2335.cjs +6 -0
- package/vue2/lib/edge/css-5bd5388a.js +21 -0
- package/vue2/lib/edge/enable-editor-a32a425e.js +442 -0
- package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +1 -0
- package/vue2/lib/edge/evaluate-7661cdf7.cjs +21 -0
- package/vue2/lib/edge/evaluate-79ba5368.js +2565 -0
- package/vue2/lib/edge/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue2/lib/edge/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue2/lib/edge/functions/deopt.d.ts +4 -0
- package/vue2/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue2/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue2/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +2 -0
- package/vue2/lib/edge/functions/evaluate/helpers.d.ts +24 -0
- package/vue2/lib/edge/functions/evaluate/index.d.ts +1 -0
- package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/event-handler-name.d.ts +1 -0
- package/vue2/lib/edge/functions/extract-text-styles.d.ts +4 -0
- package/vue2/lib/edge/functions/fast-clone.d.ts +4 -0
- package/vue2/lib/edge/functions/fetch-builder-props.d.ts +53 -0
- package/vue2/lib/edge/functions/get-block-actions-handler.d.ts +8 -0
- package/vue2/lib/edge/functions/get-block-actions.d.ts +10 -0
- package/vue2/lib/edge/functions/get-block-component-options.d.ts +2 -0
- package/vue2/lib/edge/functions/get-block-properties.d.ts +6 -0
- package/vue2/lib/edge/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue2/lib/edge/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue2/lib/edge/functions/get-content/index.d.ts +28 -0
- package/vue2/lib/edge/functions/get-content/types.d.ts +142 -0
- package/vue2/lib/edge/functions/get-fetch.d.ts +1 -0
- package/vue2/lib/edge/functions/get-processed-block.d.ts +10 -0
- package/vue2/lib/edge/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue2/lib/edge/functions/is-browser.d.ts +1 -0
- package/vue2/lib/edge/functions/is-edge-runtime.d.ts +4 -0
- package/vue2/lib/edge/functions/is-editing.d.ts +1 -0
- package/vue2/lib/edge/functions/is-iframe.d.ts +1 -0
- package/vue2/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/edge/functions/is-previewing.d.ts +1 -0
- package/vue2/lib/edge/functions/on-change.d.ts +7 -0
- package/vue2/lib/edge/functions/register-component.d.ts +15 -0
- package/vue2/lib/edge/functions/register.d.ts +16 -0
- package/vue2/lib/edge/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue2/lib/edge/functions/set-editor-settings.d.ts +4 -0
- package/vue2/lib/edge/functions/set.d.ts +7 -0
- package/vue2/lib/edge/functions/track/helpers.d.ts +5 -0
- package/vue2/lib/edge/functions/track/index.d.ts +51 -0
- package/vue2/lib/edge/functions/track/interaction.d.ts +13 -0
- package/vue2/lib/edge/functions/transform-block-properties.d.ts +2 -0
- package/vue2/lib/edge/functions/transform-block.d.ts +2 -0
- package/vue2/lib/edge/get-block-actions-4ed31703.cjs +1 -0
- package/vue2/lib/edge/get-block-actions-5ae9dffc.js +35 -0
- package/vue2/lib/edge/get-block-properties-c72eb3c0.js +48 -0
- package/vue2/lib/edge/get-block-properties-e0553a33.cjs +1 -0
- package/vue2/lib/edge/get-processed-block-e8256b7e.cjs +1 -0
- package/vue2/lib/edge/get-processed-block-f3dbc4e7.js +52 -0
- package/vue2/lib/edge/helpers/ab-tests.d.ts +9 -0
- package/vue2/lib/edge/helpers/canTrack.d.ts +1 -0
- package/vue2/lib/edge/helpers/cookie.d.ts +19 -0
- package/vue2/lib/edge/helpers/css.d.ts +7 -0
- package/vue2/lib/edge/helpers/flatten.d.ts +6 -0
- package/vue2/lib/edge/helpers/localStorage.d.ts +9 -0
- package/vue2/lib/edge/helpers/logger.d.ts +6 -0
- package/vue2/lib/edge/helpers/nullable.d.ts +2 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue2/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/edge/helpers/sessionId.d.ts +6 -0
- package/vue2/lib/edge/helpers/time.d.ts +1 -0
- package/vue2/lib/edge/helpers/url.d.ts +6 -0
- package/vue2/lib/edge/helpers/uuid.d.ts +8 -0
- package/vue2/lib/edge/helpers/visitorId.d.ts +6 -0
- package/vue2/lib/edge/index-4cf9f60c.js +1441 -0
- package/vue2/lib/edge/index-946de873.cjs +32 -0
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +88 -0
- package/vue2/lib/edge/index-helpers/top-of-file.d.ts +1 -0
- package/vue2/lib/edge/index.cjs +1 -0
- package/vue2/lib/edge/index.d.ts +7 -0
- package/vue2/lib/edge/index.js +29 -0
- package/vue2/lib/edge/inlined-script-58b1138d.js +23 -0
- package/vue2/lib/edge/inlined-script-cd8bf7d3.cjs +1 -0
- package/vue2/lib/edge/inlined-styles-8c6cdbc5.js +23 -0
- package/vue2/lib/edge/inlined-styles-a1951810.cjs +1 -0
- package/vue2/lib/edge/interactive-element-1a5ee50b.cjs +1 -0
- package/vue2/lib/edge/interactive-element-2f0d2294.js +42 -0
- package/vue2/lib/edge/repeated-block-8721baa8.cjs +1 -0
- package/vue2/lib/edge/repeated-block-a32b01bc.js +38 -0
- package/vue2/lib/edge/scripts/init-editing.d.ts +6 -0
- package/vue2/lib/edge/server-index.d.ts +15 -0
- package/vue2/lib/edge/style.css +1 -0
- package/vue2/lib/edge/styles-b2c8a706.cjs +31 -0
- package/vue2/lib/edge/styles-eab59896.js +89 -0
- package/vue2/lib/edge/types/api-version.d.ts +2 -0
- package/vue2/lib/edge/types/builder-block.d.ts +66 -0
- package/vue2/lib/edge/types/builder-content.d.ts +44 -0
- package/vue2/lib/edge/types/builder-props.d.ts +9 -0
- package/vue2/lib/edge/types/can-track.d.ts +3 -0
- package/vue2/lib/edge/types/components.d.ts +110 -0
- package/vue2/lib/edge/types/deep-partial.d.ts +3 -0
- package/vue2/lib/edge/types/element.d.ts +59 -0
- package/vue2/lib/edge/types/enforced-partials.d.ts +21 -0
- package/vue2/lib/edge/types/input.d.ts +121 -0
- package/vue2/lib/edge/types/targets.d.ts +1 -0
- package/vue2/lib/edge/types/typescript.d.ts +11 -0
- package/vue2/lib/node/block-575160ba.cjs +3 -0
- package/vue2/lib/node/block-6c3981dc.js +181 -0
- package/vue2/lib/node/block-styles-258f0e47.cjs +1 -0
- package/vue2/lib/node/block-styles-b1b9a610.js +82 -0
- package/vue2/lib/node/block-wrapper-1bdc3ca4.js +66 -0
- package/vue2/lib/node/block-wrapper-fed00059.cjs +1 -0
- package/vue2/lib/node/blocks/button/button.vue.d.ts +18 -0
- package/vue2/lib/node/blocks/button/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/columns/columns.vue.d.ts +44 -0
- package/vue2/lib/node/blocks/columns/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/custom-code/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +13 -0
- package/vue2/lib/node/blocks/embed/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/embed/embed.vue.d.ts +18 -0
- package/vue2/lib/node/blocks/embed/helpers.d.ts +1 -0
- package/vue2/lib/node/blocks/form/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/fragment/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue2/lib/node/blocks/helpers.d.ts +13 -0
- package/vue2/lib/node/blocks/image/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/image/image.helpers.d.ts +1 -0
- package/vue2/lib/node/blocks/image/image.vue.d.ts +72 -0
- package/vue2/lib/node/blocks/img/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/img/img.vue.d.ts +39 -0
- package/vue2/lib/node/blocks/input/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/raw-text/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/section/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/section/section.vue.d.ts +23 -0
- package/vue2/lib/node/blocks/select/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/submit-button/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/symbol/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +39 -0
- package/vue2/lib/node/blocks/text/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/text/text.vue.d.ts +11 -0
- package/vue2/lib/node/blocks/textarea/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/video/component-info.d.ts +2 -0
- package/vue2/lib/node/blocks/video/video.vue.d.ts +64 -0
- package/vue2/lib/node/blocks-wrapper-031887f0.js +72 -0
- package/vue2/lib/node/blocks-wrapper-80b3a22f.cjs +1 -0
- package/vue2/lib/node/component-ref-5be913d9.cjs +1 -0
- package/vue2/lib/node/component-ref-ccb3e639.js +102 -0
- package/vue2/lib/node/components/block/block.helpers.d.ts +13 -0
- package/vue2/lib/node/components/block/block.vue.d.ts +41 -0
- package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue2/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue2/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue2/lib/node/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue2/lib/node/components/block/types.d.ts +6 -0
- package/vue2/lib/node/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +29 -0
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +57 -0
- package/vue2/lib/node/components/content/components/styles.helpers.d.ts +15 -0
- package/vue2/lib/node/components/content/components/styles.vue.d.ts +16 -0
- package/vue2/lib/node/components/content/content.helpers.d.ts +7 -0
- package/vue2/lib/node/components/content/content.types.d.ts +24 -0
- package/vue2/lib/node/components/content/content.vue.d.ts +26 -0
- package/vue2/lib/node/components/content/index.d.ts +1 -0
- package/vue2/lib/node/components/content/wrap-component-ref.d.ts +6 -0
- package/vue2/lib/node/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +50 -0
- package/vue2/lib/node/components/content-variants/helpers.d.ts +18 -0
- package/vue2/lib/node/components/inlined-script.vue.d.ts +11 -0
- package/vue2/lib/node/components/inlined-styles.vue.d.ts +11 -0
- package/vue2/lib/node/constants/builder-registered-components.d.ts +6 -0
- package/vue2/lib/node/constants/device-sizes.d.ts +13 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -0
- package/vue2/lib/node/constants/target.d.ts +2 -0
- package/vue2/lib/node/content-8b7678bc.cjs +1 -0
- package/vue2/lib/node/content-f80acd05.js +926 -0
- package/vue2/lib/node/context/builder.context.d.ts +15 -0
- package/vue2/lib/node/context/components.context.d.ts +7 -0
- package/vue2/lib/node/context/types.d.ts +35 -0
- package/vue2/lib/node/css-44cbcf3f.cjs +6 -0
- package/vue2/lib/node/css-ad18a8ab.js +21 -0
- package/vue2/lib/node/enable-editor-405441b9.cjs +1 -0
- package/vue2/lib/node/enable-editor-8b4a5b45.js +442 -0
- package/vue2/lib/node/evaluate-19fac854.cjs +41 -0
- package/vue2/lib/node/evaluate-52887aac.js +187 -0
- package/vue2/lib/node/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue2/lib/node/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue2/lib/node/functions/deopt.d.ts +4 -0
- package/vue2/lib/node/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue2/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue2/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue2/lib/node/functions/evaluate/evaluate.d.ts +2 -0
- package/vue2/lib/node/functions/evaluate/helpers.d.ts +24 -0
- package/vue2/lib/node/functions/evaluate/index.d.ts +1 -0
- package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/event-handler-name.d.ts +1 -0
- package/vue2/lib/node/functions/extract-text-styles.d.ts +4 -0
- package/vue2/lib/node/functions/fast-clone.d.ts +4 -0
- package/vue2/lib/node/functions/fetch-builder-props.d.ts +53 -0
- package/vue2/lib/node/functions/get-block-actions-handler.d.ts +8 -0
- package/vue2/lib/node/functions/get-block-actions.d.ts +10 -0
- package/vue2/lib/node/functions/get-block-component-options.d.ts +2 -0
- package/vue2/lib/node/functions/get-block-properties.d.ts +6 -0
- package/vue2/lib/node/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue2/lib/node/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue2/lib/node/functions/get-content/index.d.ts +28 -0
- package/vue2/lib/node/functions/get-content/types.d.ts +142 -0
- package/vue2/lib/node/functions/get-fetch.d.ts +1 -0
- package/vue2/lib/node/functions/get-processed-block.d.ts +10 -0
- package/vue2/lib/node/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue2/lib/node/functions/is-browser.d.ts +1 -0
- package/vue2/lib/node/functions/is-edge-runtime.d.ts +4 -0
- package/vue2/lib/node/functions/is-editing.d.ts +1 -0
- package/vue2/lib/node/functions/is-iframe.d.ts +1 -0
- package/vue2/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/node/functions/is-previewing.d.ts +1 -0
- package/vue2/lib/node/functions/on-change.d.ts +7 -0
- package/vue2/lib/node/functions/register-component.d.ts +15 -0
- package/vue2/lib/node/functions/register.d.ts +16 -0
- package/vue2/lib/node/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue2/lib/node/functions/set-editor-settings.d.ts +4 -0
- package/vue2/lib/node/functions/set.d.ts +7 -0
- package/vue2/lib/node/functions/track/helpers.d.ts +5 -0
- package/vue2/lib/node/functions/track/index.d.ts +51 -0
- package/vue2/lib/node/functions/track/interaction.d.ts +13 -0
- package/vue2/lib/node/functions/transform-block-properties.d.ts +2 -0
- package/vue2/lib/node/functions/transform-block.d.ts +2 -0
- package/vue2/lib/node/get-block-actions-1a6b19ce.js +35 -0
- package/vue2/lib/node/get-block-actions-65751661.cjs +1 -0
- package/vue2/lib/node/get-block-properties-2204d735.cjs +1 -0
- package/vue2/lib/node/get-block-properties-cbc0612e.js +48 -0
- package/vue2/lib/node/get-processed-block-78fabb02.js +52 -0
- package/vue2/lib/node/get-processed-block-902c8e72.cjs +1 -0
- package/vue2/lib/node/helpers/ab-tests.d.ts +9 -0
- package/vue2/lib/node/helpers/canTrack.d.ts +1 -0
- package/vue2/lib/node/helpers/cookie.d.ts +19 -0
- package/vue2/lib/node/helpers/css.d.ts +7 -0
- package/vue2/lib/node/helpers/flatten.d.ts +6 -0
- package/vue2/lib/node/helpers/localStorage.d.ts +9 -0
- package/vue2/lib/node/helpers/logger.d.ts +6 -0
- package/vue2/lib/node/helpers/nullable.d.ts +2 -0
- package/vue2/lib/node/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue2/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue2/lib/node/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue2/lib/node/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue2/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue2/lib/node/helpers/sessionId.d.ts +6 -0
- package/vue2/lib/node/helpers/time.d.ts +1 -0
- package/vue2/lib/node/helpers/url.d.ts +6 -0
- package/vue2/lib/node/helpers/uuid.d.ts +8 -0
- package/vue2/lib/node/helpers/visitorId.d.ts +6 -0
- package/vue2/lib/node/index-43273102.js +1441 -0
- package/vue2/lib/node/index-d8e34fec.cjs +32 -0
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +88 -0
- package/vue2/lib/node/index-helpers/top-of-file.d.ts +1 -0
- package/vue2/lib/node/index.cjs +1 -0
- package/vue2/lib/node/index.d.ts +7 -0
- package/vue2/lib/node/index.js +29 -0
- package/vue2/lib/node/inlined-script-82af82d4.cjs +1 -0
- package/vue2/lib/node/inlined-script-da97caa2.js +23 -0
- package/vue2/lib/node/inlined-styles-73c1efea.cjs +1 -0
- package/vue2/lib/node/inlined-styles-f35650e9.js +23 -0
- package/vue2/lib/node/interactive-element-07235e63.cjs +1 -0
- package/vue2/lib/node/interactive-element-22405343.js +42 -0
- package/vue2/lib/node/repeated-block-53bf7a45.js +38 -0
- package/vue2/lib/node/repeated-block-771e5e8b.cjs +1 -0
- package/vue2/lib/node/scripts/init-editing.d.ts +6 -0
- package/vue2/lib/node/server-index.d.ts +15 -0
- package/vue2/lib/node/style.css +1 -0
- package/vue2/lib/node/styles-6a9d7ee1.cjs +31 -0
- package/vue2/lib/node/styles-c2fd2724.js +89 -0
- package/vue2/lib/node/types/api-version.d.ts +2 -0
- package/vue2/lib/node/types/builder-block.d.ts +66 -0
- package/vue2/lib/node/types/builder-content.d.ts +44 -0
- package/vue2/lib/node/types/builder-props.d.ts +9 -0
- package/vue2/lib/node/types/can-track.d.ts +3 -0
- package/vue2/lib/node/types/components.d.ts +110 -0
- package/vue2/lib/node/types/deep-partial.d.ts +3 -0
- package/vue2/lib/node/types/element.d.ts +59 -0
- package/vue2/lib/node/types/enforced-partials.d.ts +21 -0
- package/vue2/lib/node/types/input.d.ts +121 -0
- package/vue2/lib/node/types/targets.d.ts +1 -0
- package/vue2/lib/node/types/typescript.d.ts +11 -0
- package/vue3/lib/browser/block-wrapper.32fa4b39.js +54 -0
- package/vue3/lib/browser/block-wrapper.fc71d4d3.cjs +1 -0
- package/vue3/lib/browser/blocks/button/button.vue.d.ts +31 -0
- package/vue3/lib/browser/blocks/button/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +69 -0
- package/vue3/lib/browser/blocks/columns/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/custom-code/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +20 -0
- package/vue3/lib/browser/blocks/embed/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/embed/embed.vue.d.ts +22 -0
- package/vue3/lib/browser/blocks/embed/helpers.d.ts +1 -0
- package/vue3/lib/browser/blocks/form/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/fragment/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue3/lib/browser/blocks/helpers.d.ts +13 -0
- package/vue3/lib/browser/blocks/image/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/image/image.helpers.d.ts +1 -0
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +72 -0
- package/vue3/lib/browser/blocks/img/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/img/img.vue.d.ts +39 -0
- package/vue3/lib/browser/blocks/input/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/raw-text/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/section/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/section/section.vue.d.ts +23 -0
- package/vue3/lib/browser/blocks/select/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/submit-button/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/symbol/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +58 -0
- package/vue3/lib/browser/blocks/text/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/text/text.vue.d.ts +11 -0
- package/vue3/lib/browser/blocks/textarea/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/video/component-info.d.ts +2 -0
- package/vue3/lib/browser/blocks/video/video.vue.d.ts +64 -0
- package/vue3/lib/browser/component-ref.52b4ab91.js +111 -0
- package/vue3/lib/browser/component-ref.f8946ad7.cjs +1 -0
- package/vue3/lib/browser/components/block/block.helpers.d.ts +13 -0
- package/vue3/lib/browser/components/block/block.vue.d.ts +41 -0
- package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue3/lib/browser/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue3/lib/browser/components/block/types.d.ts +6 -0
- package/vue3/lib/browser/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +29 -0
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +91 -0
- package/vue3/lib/browser/components/content/components/styles.helpers.d.ts +15 -0
- package/vue3/lib/browser/components/content/components/styles.vue.d.ts +16 -0
- package/vue3/lib/browser/components/content/content.helpers.d.ts +7 -0
- package/vue3/lib/browser/components/content/content.types.d.ts +24 -0
- package/vue3/lib/browser/components/content/content.vue.d.ts +69 -0
- package/vue3/lib/browser/components/content/index.d.ts +1 -0
- package/vue3/lib/browser/components/content/wrap-component-ref.d.ts +6 -0
- package/vue3/lib/browser/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +75 -0
- package/vue3/lib/browser/components/content-variants/helpers.d.ts +41 -0
- package/vue3/lib/browser/components/inlined-script.vue.d.ts +11 -0
- package/vue3/lib/browser/components/inlined-styles.vue.d.ts +11 -0
- package/vue3/lib/browser/constants/builder-registered-components.d.ts +6 -0
- package/vue3/lib/browser/constants/device-sizes.d.ts +13 -0
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -0
- package/vue3/lib/browser/constants/target.d.ts +2 -0
- package/vue3/lib/browser/context/builder.context.d.ts +15 -0
- package/vue3/lib/browser/context/components.context.d.ts +7 -0
- package/vue3/lib/browser/context/types.d.ts +35 -0
- package/vue3/lib/browser/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue3/lib/browser/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue3/lib/browser/functions/deopt.d.ts +4 -0
- package/vue3/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue3/lib/browser/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/browser/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue3/lib/browser/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue3/lib/browser/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +2 -0
- package/vue3/lib/browser/functions/evaluate/helpers.d.ts +24 -0
- package/vue3/lib/browser/functions/evaluate/index.d.ts +1 -0
- package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/browser/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue3/lib/browser/functions/event-handler-name.d.ts +1 -0
- package/vue3/lib/browser/functions/extract-text-styles.d.ts +4 -0
- package/vue3/lib/browser/functions/fast-clone.d.ts +4 -0
- package/vue3/lib/browser/functions/fetch-builder-props.d.ts +53 -0
- package/vue3/lib/browser/functions/get-block-actions-handler.d.ts +8 -0
- package/vue3/lib/browser/functions/get-block-actions.d.ts +10 -0
- package/vue3/lib/browser/functions/get-block-component-options.d.ts +2 -0
- package/vue3/lib/browser/functions/get-block-properties.d.ts +6 -0
- package/vue3/lib/browser/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue3/lib/browser/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue3/lib/browser/functions/get-content/index.d.ts +28 -0
- package/vue3/lib/browser/functions/get-content/types.d.ts +142 -0
- package/vue3/lib/browser/functions/get-fetch.d.ts +1 -0
- package/vue3/lib/browser/functions/get-processed-block.d.ts +10 -0
- package/vue3/lib/browser/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue3/lib/browser/functions/is-browser.d.ts +1 -0
- package/vue3/lib/browser/functions/is-edge-runtime.d.ts +4 -0
- package/vue3/lib/browser/functions/is-editing.d.ts +1 -0
- package/vue3/lib/browser/functions/is-iframe.d.ts +1 -0
- package/vue3/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/browser/functions/is-previewing.d.ts +1 -0
- package/vue3/lib/browser/functions/on-change.d.ts +7 -0
- package/vue3/lib/browser/functions/register-component.d.ts +15 -0
- package/vue3/lib/browser/functions/register.d.ts +16 -0
- package/vue3/lib/browser/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue3/lib/browser/functions/set-editor-settings.d.ts +4 -0
- package/vue3/lib/browser/functions/set.d.ts +7 -0
- package/vue3/lib/browser/functions/track/helpers.d.ts +5 -0
- package/vue3/lib/browser/functions/track/index.d.ts +51 -0
- package/vue3/lib/browser/functions/track/interaction.d.ts +13 -0
- package/vue3/lib/browser/functions/transform-block-properties.d.ts +2 -0
- package/vue3/lib/browser/functions/transform-block.d.ts +2 -0
- package/vue3/lib/browser/get-block-actions.33a95ae9.js +79 -0
- package/vue3/lib/browser/get-block-actions.720b385e.cjs +1 -0
- package/vue3/lib/browser/helpers/ab-tests.d.ts +9 -0
- package/vue3/lib/browser/helpers/canTrack.d.ts +1 -0
- package/vue3/lib/browser/helpers/cookie.d.ts +19 -0
- package/vue3/lib/browser/helpers/css.d.ts +7 -0
- package/vue3/lib/browser/helpers/flatten.d.ts +6 -0
- package/vue3/lib/browser/helpers/localStorage.d.ts +9 -0
- package/vue3/lib/browser/helpers/logger.d.ts +6 -0
- package/vue3/lib/browser/helpers/nullable.d.ts +2 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue3/lib/browser/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/browser/helpers/sessionId.d.ts +6 -0
- package/vue3/lib/browser/helpers/time.d.ts +1 -0
- package/vue3/lib/browser/helpers/url.d.ts +6 -0
- package/vue3/lib/browser/helpers/uuid.d.ts +8 -0
- package/vue3/lib/browser/helpers/visitorId.d.ts +6 -0
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +111 -0
- package/vue3/lib/browser/index-helpers/top-of-file.d.ts +1 -0
- package/vue3/lib/browser/index.abbd01ce.cjs +69 -0
- package/vue3/lib/browser/index.bd816233.js +3299 -0
- package/vue3/lib/browser/index.cjs +1 -0
- package/vue3/lib/browser/index.d.ts +7 -0
- package/vue3/lib/browser/index.js +29 -0
- package/vue3/lib/browser/repeated-block.41d43763.js +33 -0
- package/vue3/lib/browser/repeated-block.4bb78d4d.cjs +1 -0
- package/vue3/lib/browser/scripts/init-editing.d.ts +6 -0
- package/vue3/lib/browser/server-index.d.ts +15 -0
- package/vue3/lib/browser/style.css +1 -0
- package/vue3/lib/browser/types/api-version.d.ts +2 -0
- package/vue3/lib/browser/types/builder-block.d.ts +66 -0
- package/vue3/lib/browser/types/builder-content.d.ts +44 -0
- package/vue3/lib/browser/types/builder-props.d.ts +9 -0
- package/vue3/lib/browser/types/can-track.d.ts +3 -0
- package/vue3/lib/browser/types/components.d.ts +110 -0
- package/vue3/lib/browser/types/deep-partial.d.ts +3 -0
- package/vue3/lib/browser/types/element.d.ts +59 -0
- package/vue3/lib/browser/types/enforced-partials.d.ts +21 -0
- package/vue3/lib/browser/types/input.d.ts +121 -0
- package/vue3/lib/browser/types/targets.d.ts +1 -0
- package/vue3/lib/browser/types/typescript.d.ts +11 -0
- package/vue3/lib/edge/block-wrapper.4bb452b4.js +54 -0
- package/vue3/lib/edge/block-wrapper.d36a195b.cjs +1 -0
- package/vue3/lib/edge/blocks/button/button.vue.d.ts +31 -0
- package/vue3/lib/edge/blocks/button/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +69 -0
- package/vue3/lib/edge/blocks/columns/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/custom-code/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +20 -0
- package/vue3/lib/edge/blocks/embed/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/embed/embed.vue.d.ts +22 -0
- package/vue3/lib/edge/blocks/embed/helpers.d.ts +1 -0
- package/vue3/lib/edge/blocks/form/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/fragment/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue3/lib/edge/blocks/helpers.d.ts +13 -0
- package/vue3/lib/edge/blocks/image/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/image/image.helpers.d.ts +1 -0
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +72 -0
- package/vue3/lib/edge/blocks/img/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/img/img.vue.d.ts +39 -0
- package/vue3/lib/edge/blocks/input/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/raw-text/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/section/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/section/section.vue.d.ts +23 -0
- package/vue3/lib/edge/blocks/select/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/submit-button/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/symbol/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +58 -0
- package/vue3/lib/edge/blocks/text/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/text/text.vue.d.ts +11 -0
- package/vue3/lib/edge/blocks/textarea/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/video/component-info.d.ts +2 -0
- package/vue3/lib/edge/blocks/video/video.vue.d.ts +64 -0
- package/vue3/lib/edge/component-ref.09c0c561.cjs +1 -0
- package/vue3/lib/edge/component-ref.215d8eb3.js +111 -0
- package/vue3/lib/edge/components/block/block.helpers.d.ts +13 -0
- package/vue3/lib/edge/components/block/block.vue.d.ts +41 -0
- package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue3/lib/edge/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue3/lib/edge/components/block/types.d.ts +6 -0
- package/vue3/lib/edge/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +29 -0
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +91 -0
- package/vue3/lib/edge/components/content/components/styles.helpers.d.ts +15 -0
- package/vue3/lib/edge/components/content/components/styles.vue.d.ts +16 -0
- package/vue3/lib/edge/components/content/content.helpers.d.ts +7 -0
- package/vue3/lib/edge/components/content/content.types.d.ts +24 -0
- package/vue3/lib/edge/components/content/content.vue.d.ts +69 -0
- package/vue3/lib/edge/components/content/index.d.ts +1 -0
- package/vue3/lib/edge/components/content/wrap-component-ref.d.ts +6 -0
- package/vue3/lib/edge/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +75 -0
- package/vue3/lib/edge/components/content-variants/helpers.d.ts +41 -0
- package/vue3/lib/edge/components/inlined-script.vue.d.ts +11 -0
- package/vue3/lib/edge/components/inlined-styles.vue.d.ts +11 -0
- package/vue3/lib/edge/constants/builder-registered-components.d.ts +6 -0
- package/vue3/lib/edge/constants/device-sizes.d.ts +13 -0
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -0
- package/vue3/lib/edge/constants/target.d.ts +2 -0
- package/vue3/lib/edge/context/builder.context.d.ts +15 -0
- package/vue3/lib/edge/context/components.context.d.ts +7 -0
- package/vue3/lib/edge/context/types.d.ts +35 -0
- package/vue3/lib/edge/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue3/lib/edge/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue3/lib/edge/functions/deopt.d.ts +4 -0
- package/vue3/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue3/lib/edge/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/edge/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue3/lib/edge/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue3/lib/edge/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +2 -0
- package/vue3/lib/edge/functions/evaluate/helpers.d.ts +24 -0
- package/vue3/lib/edge/functions/evaluate/index.d.ts +1 -0
- package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/edge/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue3/lib/edge/functions/event-handler-name.d.ts +1 -0
- package/vue3/lib/edge/functions/extract-text-styles.d.ts +4 -0
- package/vue3/lib/edge/functions/fast-clone.d.ts +4 -0
- package/vue3/lib/edge/functions/fetch-builder-props.d.ts +53 -0
- package/vue3/lib/edge/functions/get-block-actions-handler.d.ts +8 -0
- package/vue3/lib/edge/functions/get-block-actions.d.ts +10 -0
- package/vue3/lib/edge/functions/get-block-component-options.d.ts +2 -0
- package/vue3/lib/edge/functions/get-block-properties.d.ts +6 -0
- package/vue3/lib/edge/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue3/lib/edge/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue3/lib/edge/functions/get-content/index.d.ts +28 -0
- package/vue3/lib/edge/functions/get-content/types.d.ts +142 -0
- package/vue3/lib/edge/functions/get-fetch.d.ts +1 -0
- package/vue3/lib/edge/functions/get-processed-block.d.ts +10 -0
- package/vue3/lib/edge/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue3/lib/edge/functions/is-browser.d.ts +1 -0
- package/vue3/lib/edge/functions/is-edge-runtime.d.ts +4 -0
- package/vue3/lib/edge/functions/is-editing.d.ts +1 -0
- package/vue3/lib/edge/functions/is-iframe.d.ts +1 -0
- package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/edge/functions/is-previewing.d.ts +1 -0
- package/vue3/lib/edge/functions/on-change.d.ts +7 -0
- package/vue3/lib/edge/functions/register-component.d.ts +15 -0
- package/vue3/lib/edge/functions/register.d.ts +16 -0
- package/vue3/lib/edge/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue3/lib/edge/functions/set-editor-settings.d.ts +4 -0
- package/vue3/lib/edge/functions/set.d.ts +7 -0
- package/vue3/lib/edge/functions/track/helpers.d.ts +5 -0
- package/vue3/lib/edge/functions/track/index.d.ts +51 -0
- package/vue3/lib/edge/functions/track/interaction.d.ts +13 -0
- package/vue3/lib/edge/functions/transform-block-properties.d.ts +2 -0
- package/vue3/lib/edge/functions/transform-block.d.ts +2 -0
- package/vue3/lib/edge/get-block-actions.32987a91.js +79 -0
- package/vue3/lib/edge/get-block-actions.b7d0a3c2.cjs +1 -0
- package/vue3/lib/edge/helpers/ab-tests.d.ts +9 -0
- package/vue3/lib/edge/helpers/canTrack.d.ts +1 -0
- package/vue3/lib/edge/helpers/cookie.d.ts +19 -0
- package/vue3/lib/edge/helpers/css.d.ts +7 -0
- package/vue3/lib/edge/helpers/flatten.d.ts +6 -0
- package/vue3/lib/edge/helpers/localStorage.d.ts +9 -0
- package/vue3/lib/edge/helpers/logger.d.ts +6 -0
- package/vue3/lib/edge/helpers/nullable.d.ts +2 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue3/lib/edge/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/edge/helpers/sessionId.d.ts +6 -0
- package/vue3/lib/edge/helpers/time.d.ts +1 -0
- package/vue3/lib/edge/helpers/url.d.ts +6 -0
- package/vue3/lib/edge/helpers/uuid.d.ts +8 -0
- package/vue3/lib/edge/helpers/visitorId.d.ts +6 -0
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +111 -0
- package/vue3/lib/edge/index-helpers/top-of-file.d.ts +1 -0
- package/vue3/lib/edge/index.cc0efb3b.js +5772 -0
- package/vue3/lib/edge/index.ceec697c.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -0
- package/vue3/lib/edge/index.d.ts +7 -0
- package/vue3/lib/edge/index.js +29 -0
- package/vue3/lib/edge/repeated-block.b5d1a5b6.cjs +1 -0
- package/vue3/lib/edge/repeated-block.d1e4f878.js +33 -0
- package/vue3/lib/edge/scripts/init-editing.d.ts +6 -0
- package/vue3/lib/edge/server-index.d.ts +15 -0
- package/vue3/lib/edge/style.css +1 -0
- package/vue3/lib/edge/types/api-version.d.ts +2 -0
- package/vue3/lib/edge/types/builder-block.d.ts +66 -0
- package/vue3/lib/edge/types/builder-content.d.ts +44 -0
- package/vue3/lib/edge/types/builder-props.d.ts +9 -0
- package/vue3/lib/edge/types/can-track.d.ts +3 -0
- package/vue3/lib/edge/types/components.d.ts +110 -0
- package/vue3/lib/edge/types/deep-partial.d.ts +3 -0
- package/vue3/lib/edge/types/element.d.ts +59 -0
- package/vue3/lib/edge/types/enforced-partials.d.ts +21 -0
- package/vue3/lib/edge/types/input.d.ts +121 -0
- package/vue3/lib/edge/types/targets.d.ts +1 -0
- package/vue3/lib/edge/types/typescript.d.ts +11 -0
- package/vue3/lib/node/block-wrapper.027e2e58.cjs +1 -0
- package/vue3/lib/node/block-wrapper.1f5bec88.js +55 -0
- package/vue3/lib/node/blocks/button/button.vue.d.ts +31 -0
- package/vue3/lib/node/blocks/button/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/columns/columns.vue.d.ts +69 -0
- package/vue3/lib/node/blocks/columns/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/custom-code/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +20 -0
- package/vue3/lib/node/blocks/embed/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/embed/embed.vue.d.ts +22 -0
- package/vue3/lib/node/blocks/embed/helpers.d.ts +1 -0
- package/vue3/lib/node/blocks/form/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/fragment/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/fragment/fragment.vue.d.ts +7 -0
- package/vue3/lib/node/blocks/helpers.d.ts +13 -0
- package/vue3/lib/node/blocks/image/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/image/image.helpers.d.ts +1 -0
- package/vue3/lib/node/blocks/image/image.vue.d.ts +72 -0
- package/vue3/lib/node/blocks/img/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/img/img.vue.d.ts +39 -0
- package/vue3/lib/node/blocks/input/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/raw-text/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/section/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/section/section.vue.d.ts +23 -0
- package/vue3/lib/node/blocks/select/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/submit-button/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/symbol/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +58 -0
- package/vue3/lib/node/blocks/text/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/text/text.vue.d.ts +11 -0
- package/vue3/lib/node/blocks/textarea/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/video/component-info.d.ts +2 -0
- package/vue3/lib/node/blocks/video/video.vue.d.ts +64 -0
- package/vue3/lib/node/component-ref.5c293120.cjs +1 -0
- package/vue3/lib/node/component-ref.d2c6eedf.js +112 -0
- package/vue3/lib/node/components/block/block.helpers.d.ts +13 -0
- package/vue3/lib/node/components/block/block.vue.d.ts +41 -0
- package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +22 -0
- package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +29 -0
- package/vue3/lib/node/components/block/components/component-ref/component-ref.helpers.d.ts +30 -0
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +41 -0
- package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +30 -0
- package/vue3/lib/node/components/block/components/repeated-block.vue.d.ts +16 -0
- package/vue3/lib/node/components/block/types.d.ts +6 -0
- package/vue3/lib/node/components/blocks/blocks-wrapper.vue.d.ts +30 -0
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +29 -0
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +91 -0
- package/vue3/lib/node/components/content/components/styles.helpers.d.ts +15 -0
- package/vue3/lib/node/components/content/components/styles.vue.d.ts +16 -0
- package/vue3/lib/node/components/content/content.helpers.d.ts +7 -0
- package/vue3/lib/node/components/content/content.types.d.ts +24 -0
- package/vue3/lib/node/components/content/content.vue.d.ts +69 -0
- package/vue3/lib/node/components/content/index.d.ts +1 -0
- package/vue3/lib/node/components/content/wrap-component-ref.d.ts +6 -0
- package/vue3/lib/node/components/content-variants/content-variants.types.d.ts +20 -0
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +75 -0
- package/vue3/lib/node/components/content-variants/helpers.d.ts +41 -0
- package/vue3/lib/node/components/inlined-script.vue.d.ts +11 -0
- package/vue3/lib/node/components/inlined-styles.vue.d.ts +11 -0
- package/vue3/lib/node/constants/builder-registered-components.d.ts +6 -0
- package/vue3/lib/node/constants/device-sizes.d.ts +13 -0
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -0
- package/vue3/lib/node/constants/target.d.ts +2 -0
- package/vue3/lib/node/context/builder.context.d.ts +15 -0
- package/vue3/lib/node/context/components.context.d.ts +7 -0
- package/vue3/lib/node/context/types.d.ts +35 -0
- package/vue3/lib/node/functions/apply-patch-with-mutation.d.ts +10 -0
- package/vue3/lib/node/functions/camel-to-kebab-case.d.ts +1 -0
- package/vue3/lib/node/functions/deopt.d.ts +4 -0
- package/vue3/lib/node/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/vue3/lib/node/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/node/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +2 -0
- package/vue3/lib/node/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/vue3/lib/node/functions/evaluate/evaluate.d.ts +2 -0
- package/vue3/lib/node/functions/evaluate/helpers.d.ts +24 -0
- package/vue3/lib/node/functions/evaluate/index.d.ts +1 -0
- package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -0
- package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/event-handler-name.d.ts +1 -0
- package/vue3/lib/node/functions/extract-text-styles.d.ts +4 -0
- package/vue3/lib/node/functions/fast-clone.d.ts +4 -0
- package/vue3/lib/node/functions/fetch-builder-props.d.ts +53 -0
- package/vue3/lib/node/functions/get-block-actions-handler.d.ts +8 -0
- package/vue3/lib/node/functions/get-block-actions.d.ts +10 -0
- package/vue3/lib/node/functions/get-block-component-options.d.ts +2 -0
- package/vue3/lib/node/functions/get-block-properties.d.ts +6 -0
- package/vue3/lib/node/functions/get-builder-search-params/index.d.ts +12 -0
- package/vue3/lib/node/functions/get-content/generate-content-url.d.ts +2 -0
- package/vue3/lib/node/functions/get-content/index.d.ts +28 -0
- package/vue3/lib/node/functions/get-content/types.d.ts +142 -0
- package/vue3/lib/node/functions/get-fetch.d.ts +1 -0
- package/vue3/lib/node/functions/get-processed-block.d.ts +10 -0
- package/vue3/lib/node/functions/get-react-native-block-styles.d.ts +7 -0
- package/vue3/lib/node/functions/is-browser.d.ts +1 -0
- package/vue3/lib/node/functions/is-edge-runtime.d.ts +4 -0
- package/vue3/lib/node/functions/is-editing.d.ts +1 -0
- package/vue3/lib/node/functions/is-iframe.d.ts +1 -0
- package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/node/functions/is-previewing.d.ts +1 -0
- package/vue3/lib/node/functions/on-change.d.ts +7 -0
- package/vue3/lib/node/functions/register-component.d.ts +15 -0
- package/vue3/lib/node/functions/register.d.ts +16 -0
- package/vue3/lib/node/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/vue3/lib/node/functions/set-editor-settings.d.ts +4 -0
- package/vue3/lib/node/functions/set.d.ts +7 -0
- package/vue3/lib/node/functions/track/helpers.d.ts +5 -0
- package/vue3/lib/node/functions/track/index.d.ts +51 -0
- package/vue3/lib/node/functions/track/interaction.d.ts +13 -0
- package/vue3/lib/node/functions/transform-block-properties.d.ts +2 -0
- package/vue3/lib/node/functions/transform-block.d.ts +2 -0
- package/vue3/lib/node/get-block-actions.3bf73664.cjs +1 -0
- package/vue3/lib/node/get-block-actions.68279ccf.js +79 -0
- package/vue3/lib/node/helpers/ab-tests.d.ts +9 -0
- package/vue3/lib/node/helpers/canTrack.d.ts +1 -0
- package/vue3/lib/node/helpers/cookie.d.ts +19 -0
- package/vue3/lib/node/helpers/css.d.ts +7 -0
- package/vue3/lib/node/helpers/flatten.d.ts +6 -0
- package/vue3/lib/node/helpers/localStorage.d.ts +9 -0
- package/vue3/lib/node/helpers/logger.d.ts +6 -0
- package/vue3/lib/node/helpers/nullable.d.ts +2 -0
- package/vue3/lib/node/helpers/preview-lru-cache/get.d.ts +2 -0
- package/vue3/lib/node/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/vue3/lib/node/helpers/preview-lru-cache/init.d.ts +6 -0
- package/vue3/lib/node/helpers/preview-lru-cache/set.d.ts +7 -0
- package/vue3/lib/node/helpers/preview-lru-cache/types.d.ts +0 -0
- package/vue3/lib/node/helpers/sessionId.d.ts +6 -0
- package/vue3/lib/node/helpers/time.d.ts +1 -0
- package/vue3/lib/node/helpers/url.d.ts +6 -0
- package/vue3/lib/node/helpers/uuid.d.ts +8 -0
- package/vue3/lib/node/helpers/visitorId.d.ts +6 -0
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +111 -0
- package/vue3/lib/node/index-helpers/top-of-file.d.ts +1 -0
- package/vue3/lib/node/index.44e0d18b.cjs +109 -0
- package/vue3/lib/node/index.bb1871d7.js +3393 -0
- package/vue3/lib/node/index.cjs +1 -0
- package/vue3/lib/node/index.d.ts +7 -0
- package/vue3/lib/node/index.js +30 -0
- package/vue3/lib/node/repeated-block.6533598e.cjs +1 -0
- package/vue3/lib/node/repeated-block.c5b9936f.js +34 -0
- package/vue3/lib/node/scripts/init-editing.d.ts +6 -0
- package/vue3/lib/node/server-index.d.ts +15 -0
- package/vue3/lib/node/style.css +1 -0
- package/vue3/lib/node/types/api-version.d.ts +2 -0
- package/vue3/lib/node/types/builder-block.d.ts +66 -0
- package/vue3/lib/node/types/builder-content.d.ts +44 -0
- package/vue3/lib/node/types/builder-props.d.ts +9 -0
- package/vue3/lib/node/types/can-track.d.ts +3 -0
- package/vue3/lib/node/types/components.d.ts +110 -0
- package/vue3/lib/node/types/deep-partial.d.ts +3 -0
- package/vue3/lib/node/types/element.d.ts +59 -0
- package/vue3/lib/node/types/enforced-partials.d.ts +21 -0
- package/vue3/lib/node/types/input.d.ts +121 -0
- package/vue3/lib/node/types/targets.d.ts +1 -0
- package/vue3/lib/node/types/typescript.d.ts +11 -0
|
@@ -0,0 +1,1441 @@
|
|
|
1
|
+
import { defineComponent as g } from "vue";
|
|
2
|
+
function O(e = {}, t, n) {
|
|
3
|
+
const o = {};
|
|
4
|
+
for (const r in e) {
|
|
5
|
+
if (!e[r] || n && !r.startsWith(t))
|
|
6
|
+
continue;
|
|
7
|
+
const s = n ? r.replace(t, "") : r;
|
|
8
|
+
o[s] = e[r];
|
|
9
|
+
}
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
const ut = g({
|
|
13
|
+
name: "builder-button",
|
|
14
|
+
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
|
+
data() {
|
|
16
|
+
return { filterAttrs: O };
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
_classStringToObject(e) {
|
|
20
|
+
const t = {};
|
|
21
|
+
if (typeof e != "string")
|
|
22
|
+
return t;
|
|
23
|
+
const n = e.trim().split(/\s+/);
|
|
24
|
+
for (const o of n)
|
|
25
|
+
t[o] = !0;
|
|
26
|
+
return t;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function y(e, t, n, o, r, s, i, u) {
|
|
31
|
+
var a = typeof e == "function" ? e.options : e;
|
|
32
|
+
t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
|
|
33
|
+
var d;
|
|
34
|
+
if (i ? (d = function(l) {
|
|
35
|
+
l = l || // cached call
|
|
36
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
37
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !l && typeof __VUE_SSR_CONTEXT__ < "u" && (l = __VUE_SSR_CONTEXT__), r && r.call(this, l), l && l._registeredComponents && l._registeredComponents.add(i);
|
|
38
|
+
}, a._ssrRegister = d) : r && (d = u ? function() {
|
|
39
|
+
r.call(
|
|
40
|
+
this,
|
|
41
|
+
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
42
|
+
);
|
|
43
|
+
} : r), d)
|
|
44
|
+
if (a.functional) {
|
|
45
|
+
a._injectStyles = d;
|
|
46
|
+
var p = a.render;
|
|
47
|
+
a.render = function(f, m) {
|
|
48
|
+
return d.call(m), p(f, m);
|
|
49
|
+
};
|
|
50
|
+
} else {
|
|
51
|
+
var b = a.beforeCreate;
|
|
52
|
+
a.beforeCreate = b ? [].concat(b, d) : [d];
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
exports: e,
|
|
56
|
+
options: a
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
var dt = function() {
|
|
60
|
+
var t = this, n = t._self._c;
|
|
61
|
+
return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0, role: "button" } }, "a", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(t.attributes.class + " button-2fnk003dqad"), style: t.attributes.style }, "button", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]);
|
|
62
|
+
}, mt = [], ft = /* @__PURE__ */ y(
|
|
63
|
+
ut,
|
|
64
|
+
dt,
|
|
65
|
+
mt,
|
|
66
|
+
!1,
|
|
67
|
+
null,
|
|
68
|
+
"ab46b8bd",
|
|
69
|
+
null,
|
|
70
|
+
null
|
|
71
|
+
);
|
|
72
|
+
const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
|
|
73
|
+
small: {
|
|
74
|
+
min: 320,
|
|
75
|
+
default: 321,
|
|
76
|
+
max: 640
|
|
77
|
+
},
|
|
78
|
+
medium: {
|
|
79
|
+
min: 641,
|
|
80
|
+
default: 642,
|
|
81
|
+
max: 991
|
|
82
|
+
},
|
|
83
|
+
large: {
|
|
84
|
+
min: 990,
|
|
85
|
+
default: 991,
|
|
86
|
+
max: 1200
|
|
87
|
+
}
|
|
88
|
+
}, un = (e, t = K) => `@media (max-width: ${t[e].max}px)`, pt = ({
|
|
89
|
+
small: e,
|
|
90
|
+
medium: t
|
|
91
|
+
}) => {
|
|
92
|
+
const n = V(K);
|
|
93
|
+
if (!e || !t)
|
|
94
|
+
return n;
|
|
95
|
+
const o = Math.floor(e / 2);
|
|
96
|
+
n.small = {
|
|
97
|
+
max: e,
|
|
98
|
+
min: o,
|
|
99
|
+
default: o + 1
|
|
100
|
+
};
|
|
101
|
+
const r = n.small.max + 1;
|
|
102
|
+
n.medium = {
|
|
103
|
+
max: t,
|
|
104
|
+
min: r,
|
|
105
|
+
default: r + 1
|
|
106
|
+
};
|
|
107
|
+
const s = n.medium.max + 1;
|
|
108
|
+
return n.large = {
|
|
109
|
+
max: 2e3,
|
|
110
|
+
// TODO: decide upper limit
|
|
111
|
+
min: s,
|
|
112
|
+
default: s + 1
|
|
113
|
+
}, n;
|
|
114
|
+
}, C = "vue2", ht = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
|
|
115
|
+
throw console.error(
|
|
116
|
+
"Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
|
|
117
|
+
e
|
|
118
|
+
), e;
|
|
119
|
+
}), bt = () => import("./inlined-styles-8c6cdbc5.js").then((e) => e.default).catch((e) => {
|
|
120
|
+
throw console.error(
|
|
121
|
+
"Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
|
|
122
|
+
e
|
|
123
|
+
), e;
|
|
124
|
+
}), _t = g({
|
|
125
|
+
name: "builder-columns",
|
|
126
|
+
components: { "inlined-styles": bt, blocks: ht },
|
|
127
|
+
props: [
|
|
128
|
+
"js",
|
|
129
|
+
"space",
|
|
130
|
+
"columns",
|
|
131
|
+
"stackColumnsAt",
|
|
132
|
+
"reverseColumnsWhenStacked",
|
|
133
|
+
"builderContext",
|
|
134
|
+
"builderBlock",
|
|
135
|
+
"builderComponents"
|
|
136
|
+
],
|
|
137
|
+
data() {
|
|
138
|
+
return {
|
|
139
|
+
gutterSize: typeof this.space == "number" ? this.space || 0 : 20,
|
|
140
|
+
cols: this.columns || [],
|
|
141
|
+
stackAt: this.stackColumnsAt || "tablet",
|
|
142
|
+
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
143
|
+
TARGET: C
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
computed: {
|
|
147
|
+
columnsCssVars() {
|
|
148
|
+
return {
|
|
149
|
+
"--flex-dir": this.flexDir,
|
|
150
|
+
"--flex-dir-tablet": this.getTabletStyle({
|
|
151
|
+
stackedStyle: this.flexDir,
|
|
152
|
+
desktopStyle: "row"
|
|
153
|
+
})
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
columnsStyles() {
|
|
157
|
+
return `
|
|
158
|
+
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
159
|
+
.${this.builderBlock.id}-breakpoints {
|
|
160
|
+
flex-direction: var(--flex-dir-tablet);
|
|
161
|
+
align-items: stretch;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
165
|
+
width: var(--column-width-tablet) !important;
|
|
166
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
171
|
+
.${this.builderBlock.id}-breakpoints {
|
|
172
|
+
flex-direction: var(--flex-dir);
|
|
173
|
+
align-items: stretch;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
177
|
+
width: var(--column-width-mobile) !important;
|
|
178
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
`;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
methods: {
|
|
185
|
+
getWidth(e) {
|
|
186
|
+
var t;
|
|
187
|
+
return ((t = this.cols[e]) == null ? void 0 : t.width) || 100 / this.cols.length;
|
|
188
|
+
},
|
|
189
|
+
getColumnCssWidth(e) {
|
|
190
|
+
const t = this.gutterSize * (this.cols.length - 1) / this.cols.length;
|
|
191
|
+
return `calc(${this.getWidth(e)}% - ${t}px)`;
|
|
192
|
+
},
|
|
193
|
+
getTabletStyle({
|
|
194
|
+
stackedStyle: e,
|
|
195
|
+
desktopStyle: t
|
|
196
|
+
}) {
|
|
197
|
+
return this.stackAt === "tablet" ? e : t;
|
|
198
|
+
},
|
|
199
|
+
getMobileStyle({
|
|
200
|
+
stackedStyle: e,
|
|
201
|
+
desktopStyle: t
|
|
202
|
+
}) {
|
|
203
|
+
return this.stackAt === "never" ? t : e;
|
|
204
|
+
},
|
|
205
|
+
columnCssVars(e) {
|
|
206
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
207
|
+
return {
|
|
208
|
+
width: n,
|
|
209
|
+
["margin-left"]: o,
|
|
210
|
+
"--column-width-mobile": this.getMobileStyle({
|
|
211
|
+
stackedStyle: r,
|
|
212
|
+
desktopStyle: n
|
|
213
|
+
}),
|
|
214
|
+
"--column-margin-left-mobile": this.getMobileStyle({
|
|
215
|
+
stackedStyle: s,
|
|
216
|
+
desktopStyle: o
|
|
217
|
+
}),
|
|
218
|
+
"--column-width-tablet": this.getTabletStyle({
|
|
219
|
+
stackedStyle: r,
|
|
220
|
+
desktopStyle: n
|
|
221
|
+
}),
|
|
222
|
+
"--column-margin-left-tablet": this.getTabletStyle({
|
|
223
|
+
stackedStyle: s,
|
|
224
|
+
desktopStyle: o
|
|
225
|
+
})
|
|
226
|
+
};
|
|
227
|
+
},
|
|
228
|
+
getWidthForBreakpointSize(e) {
|
|
229
|
+
var n, o;
|
|
230
|
+
return pt(
|
|
231
|
+
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
232
|
+
)[e].max;
|
|
233
|
+
},
|
|
234
|
+
_classStringToObject(e) {
|
|
235
|
+
const t = {};
|
|
236
|
+
if (typeof e != "string")
|
|
237
|
+
return t;
|
|
238
|
+
const n = e.trim().split(/\s+/);
|
|
239
|
+
for (const o of n)
|
|
240
|
+
t[o] = !0;
|
|
241
|
+
return t;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
var gt = function() {
|
|
246
|
+
var t = this, n = t._self._c;
|
|
247
|
+
return t._self._setupProxy, n("div", t._b({ class: t._classStringToObject(
|
|
248
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`
|
|
249
|
+
), style: t.columnsCssVars }, "div", {}, !1), [t.TARGET !== "reactNative" ? [n("inlined-styles", { attrs: { styles: t.columnsStyles } })] : t._e(), t._l(t.columns, function(o, r) {
|
|
250
|
+
return n("div", t._b({ key: r, staticClass: "builder-column div-t9spj7joih-2", style: t.columnCssVars(r) }, "div", {}, !1), [n("blocks", { attrs: { path: `component.options.columns.${r}.blocks`, parent: t.builderBlock.id, styleProp: {
|
|
251
|
+
flexGrow: "1"
|
|
252
|
+
}, context: t.builderContext, registeredComponents: t.builderComponents, blocks: o.blocks } })], 1);
|
|
253
|
+
})], 2);
|
|
254
|
+
}, yt = [], vt = /* @__PURE__ */ y(
|
|
255
|
+
_t,
|
|
256
|
+
gt,
|
|
257
|
+
yt,
|
|
258
|
+
!1,
|
|
259
|
+
null,
|
|
260
|
+
"bd1575ca",
|
|
261
|
+
null,
|
|
262
|
+
null
|
|
263
|
+
);
|
|
264
|
+
const dn = vt.exports, St = g({
|
|
265
|
+
name: "builder-fragment-component",
|
|
266
|
+
props: []
|
|
267
|
+
});
|
|
268
|
+
var kt = function() {
|
|
269
|
+
var t = this, n = t._self._c;
|
|
270
|
+
return t._self._setupProxy, n("span", [t._t("default")], 2);
|
|
271
|
+
}, xt = [], wt = /* @__PURE__ */ y(
|
|
272
|
+
St,
|
|
273
|
+
kt,
|
|
274
|
+
xt,
|
|
275
|
+
!1,
|
|
276
|
+
null,
|
|
277
|
+
null,
|
|
278
|
+
null,
|
|
279
|
+
null
|
|
280
|
+
);
|
|
281
|
+
const mn = wt.exports;
|
|
282
|
+
function F(e) {
|
|
283
|
+
return e.replace(/http(s)?:/, "");
|
|
284
|
+
}
|
|
285
|
+
function Ct(e = "", t, n) {
|
|
286
|
+
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
287
|
+
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
288
|
+
}
|
|
289
|
+
function $t(e, t) {
|
|
290
|
+
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
291
|
+
return e;
|
|
292
|
+
if (t === "master")
|
|
293
|
+
return F(e);
|
|
294
|
+
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
295
|
+
if (n) {
|
|
296
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
297
|
+
return F(`${o[0]}_${s}${r}`);
|
|
298
|
+
}
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
function P(e) {
|
|
302
|
+
if (!e)
|
|
303
|
+
return e;
|
|
304
|
+
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
305
|
+
if (e.match(/builder\.io/)) {
|
|
306
|
+
let n = e;
|
|
307
|
+
const o = Number(e.split("?width=")[1]);
|
|
308
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ct(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
309
|
+
}
|
|
310
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
311
|
+
}
|
|
312
|
+
const Tt = g({
|
|
313
|
+
name: "builder-image",
|
|
314
|
+
props: [
|
|
315
|
+
"image",
|
|
316
|
+
"src",
|
|
317
|
+
"srcset",
|
|
318
|
+
"noWebp",
|
|
319
|
+
"aspectRatio",
|
|
320
|
+
"altText",
|
|
321
|
+
"backgroundPosition",
|
|
322
|
+
"backgroundSize",
|
|
323
|
+
"className",
|
|
324
|
+
"sizes",
|
|
325
|
+
"builderBlock",
|
|
326
|
+
"fitContent"
|
|
327
|
+
],
|
|
328
|
+
computed: {
|
|
329
|
+
srcSetToUse() {
|
|
330
|
+
var n;
|
|
331
|
+
const t = this.image || this.src;
|
|
332
|
+
if (!t || // We can auto add srcset for cdn.builder.io and shopify
|
|
333
|
+
// images, otherwise you can supply this prop manually
|
|
334
|
+
!(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
|
|
335
|
+
return this.srcset;
|
|
336
|
+
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
337
|
+
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
338
|
+
return console.debug("Removed given srcset"), P(t);
|
|
339
|
+
} else if (this.image && !this.srcset)
|
|
340
|
+
return P(t);
|
|
341
|
+
return P(t);
|
|
342
|
+
},
|
|
343
|
+
webpSrcSet() {
|
|
344
|
+
var e;
|
|
345
|
+
return (e = this.srcSetToUse) != null && e.match(/builder\.io/) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
346
|
+
},
|
|
347
|
+
aspectRatioCss() {
|
|
348
|
+
const e = {
|
|
349
|
+
position: "absolute",
|
|
350
|
+
height: "100%",
|
|
351
|
+
width: "100%",
|
|
352
|
+
left: "0px",
|
|
353
|
+
top: "0px"
|
|
354
|
+
};
|
|
355
|
+
return this.aspectRatio ? e : void 0;
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
methods: {
|
|
359
|
+
_classStringToObject(e) {
|
|
360
|
+
const t = {};
|
|
361
|
+
if (typeof e != "string")
|
|
362
|
+
return t;
|
|
363
|
+
const n = e.trim().split(/\s+/);
|
|
364
|
+
for (const o of n)
|
|
365
|
+
t[o] = !0;
|
|
366
|
+
return t;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
var It = function() {
|
|
371
|
+
var o, r, s, i;
|
|
372
|
+
var t = this, n = t._self._c;
|
|
373
|
+
return t._self._setupProxy, n("div", [n("picture", [t.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: t.webpSrcSet } })] : t._e(), n("img", { class: t._classStringToObject(
|
|
374
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-1pl23ac79ld"
|
|
375
|
+
), style: {
|
|
376
|
+
objectPosition: t.backgroundPosition || "center",
|
|
377
|
+
objectFit: t.backgroundSize || "cover",
|
|
378
|
+
...t.aspectRatioCss
|
|
379
|
+
}, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !((r = (o = t.builderBlock) == null ? void 0 : o.children) != null && r.length && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
380
|
+
paddingTop: t.aspectRatio * 100 + "%"
|
|
381
|
+
} })] : t._e(), (i = (s = t.builderBlock) == null ? void 0 : s.children) != null && i.length && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
|
|
382
|
+
}, Rt = [], Pt = /* @__PURE__ */ y(
|
|
383
|
+
Tt,
|
|
384
|
+
It,
|
|
385
|
+
Rt,
|
|
386
|
+
!1,
|
|
387
|
+
null,
|
|
388
|
+
"aae97bc7",
|
|
389
|
+
null,
|
|
390
|
+
null
|
|
391
|
+
);
|
|
392
|
+
const fn = Pt.exports, At = g({
|
|
393
|
+
name: "builder-section-component",
|
|
394
|
+
props: ["attributes", "maxWidth"],
|
|
395
|
+
data() {
|
|
396
|
+
return { filterAttrs: O };
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
var Ot = function() {
|
|
400
|
+
var t = this, n = t._self._c;
|
|
401
|
+
return t._self._setupProxy, n("section", t._g(t._b({ style: {
|
|
402
|
+
width: "100%",
|
|
403
|
+
alignSelf: "stretch",
|
|
404
|
+
flexGrow: 1,
|
|
405
|
+
boxSizing: "border-box",
|
|
406
|
+
maxWidth: t.maxWidth || 1200,
|
|
407
|
+
display: "flex",
|
|
408
|
+
flexDirection: "column",
|
|
409
|
+
alignItems: "stretch",
|
|
410
|
+
marginLeft: "auto",
|
|
411
|
+
marginRight: "auto"
|
|
412
|
+
} }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
|
|
413
|
+
}, Vt = [], Et = /* @__PURE__ */ y(
|
|
414
|
+
At,
|
|
415
|
+
Ot,
|
|
416
|
+
Vt,
|
|
417
|
+
!1,
|
|
418
|
+
null,
|
|
419
|
+
null,
|
|
420
|
+
null,
|
|
421
|
+
null
|
|
422
|
+
);
|
|
423
|
+
const pn = Et.exports, T = "[Builder.io]: ", x = {
|
|
424
|
+
log: (...e) => console.log(T, ...e),
|
|
425
|
+
error: (...e) => console.error(T, ...e),
|
|
426
|
+
warn: (...e) => console.warn(T, ...e),
|
|
427
|
+
debug: (...e) => console.debug(T, ...e)
|
|
428
|
+
}, Nt = async ({
|
|
429
|
+
builderContextValue: e,
|
|
430
|
+
symbol: t
|
|
431
|
+
}) => {
|
|
432
|
+
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
433
|
+
(e != null && e.apiKey))
|
|
434
|
+
return B({
|
|
435
|
+
model: t.model,
|
|
436
|
+
apiKey: e.apiKey,
|
|
437
|
+
apiVersion: e.apiVersion,
|
|
438
|
+
...(t == null ? void 0 : t.entry) && {
|
|
439
|
+
query: {
|
|
440
|
+
id: t.entry
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}).catch((n) => {
|
|
444
|
+
x.error("Could not fetch symbol content: ", n);
|
|
445
|
+
});
|
|
446
|
+
}, Bt = () => Promise.resolve().then(() => Ae).then((e) => e.default).catch((e) => {
|
|
447
|
+
throw console.error(
|
|
448
|
+
"Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
|
|
449
|
+
e
|
|
450
|
+
), e;
|
|
451
|
+
}), jt = g({
|
|
452
|
+
name: "builder-symbol",
|
|
453
|
+
components: { "content-variants": Bt },
|
|
454
|
+
props: [
|
|
455
|
+
"js",
|
|
456
|
+
"attributes",
|
|
457
|
+
"symbol",
|
|
458
|
+
"dynamic",
|
|
459
|
+
"builderContext",
|
|
460
|
+
"builderComponents"
|
|
461
|
+
],
|
|
462
|
+
data() {
|
|
463
|
+
var e;
|
|
464
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: O };
|
|
465
|
+
},
|
|
466
|
+
mounted() {
|
|
467
|
+
this.setContent();
|
|
468
|
+
},
|
|
469
|
+
watch: {
|
|
470
|
+
onUpdateHook0: {
|
|
471
|
+
handler() {
|
|
472
|
+
this.setContent();
|
|
473
|
+
},
|
|
474
|
+
immediate: !0
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
computed: {
|
|
478
|
+
className() {
|
|
479
|
+
var e, t;
|
|
480
|
+
return [
|
|
481
|
+
...Object.keys(this.attributes.class),
|
|
482
|
+
"builder-symbol",
|
|
483
|
+
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
484
|
+
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
485
|
+
].filter(Boolean).join(" ");
|
|
486
|
+
},
|
|
487
|
+
onUpdateHook0() {
|
|
488
|
+
return {
|
|
489
|
+
0: this.symbol
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
methods: {
|
|
494
|
+
setContent() {
|
|
495
|
+
this.contentToUse || Nt({
|
|
496
|
+
symbol: this.symbol,
|
|
497
|
+
builderContextValue: this.builderContext
|
|
498
|
+
}).then((e) => {
|
|
499
|
+
e && (this.contentToUse = e);
|
|
500
|
+
});
|
|
501
|
+
},
|
|
502
|
+
_classStringToObject(e) {
|
|
503
|
+
const t = {};
|
|
504
|
+
if (typeof e != "string")
|
|
505
|
+
return t;
|
|
506
|
+
const n = e.trim().split(/\s+/);
|
|
507
|
+
for (const o of n)
|
|
508
|
+
t[o] = !0;
|
|
509
|
+
return t;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
var Ft = function() {
|
|
514
|
+
var o, r, s, i;
|
|
515
|
+
var t = this, n = t._self._c;
|
|
516
|
+
return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
|
|
517
|
+
...(o = t.symbol) == null ? void 0 : o.data,
|
|
518
|
+
...t.builderContext.localState,
|
|
519
|
+
...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
520
|
+
}, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
|
|
521
|
+
}, Ut = [], Mt = /* @__PURE__ */ y(
|
|
522
|
+
jt,
|
|
523
|
+
Ft,
|
|
524
|
+
Ut,
|
|
525
|
+
!1,
|
|
526
|
+
null,
|
|
527
|
+
null,
|
|
528
|
+
null,
|
|
529
|
+
null
|
|
530
|
+
);
|
|
531
|
+
const hn = Mt.exports, Lt = g({
|
|
532
|
+
name: "builder-text",
|
|
533
|
+
props: ["text"]
|
|
534
|
+
});
|
|
535
|
+
var Wt = function() {
|
|
536
|
+
var o;
|
|
537
|
+
var t = this, n = t._self._c;
|
|
538
|
+
return t._self._setupProxy, n("div", { staticClass: "builder-text", style: {
|
|
539
|
+
outline: "none"
|
|
540
|
+
}, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
|
|
541
|
+
}, Kt = [], zt = /* @__PURE__ */ y(
|
|
542
|
+
Lt,
|
|
543
|
+
Wt,
|
|
544
|
+
Kt,
|
|
545
|
+
!1,
|
|
546
|
+
null,
|
|
547
|
+
null,
|
|
548
|
+
null,
|
|
549
|
+
null
|
|
550
|
+
);
|
|
551
|
+
const bn = zt.exports, Gt = g({
|
|
552
|
+
name: "builder-video",
|
|
553
|
+
props: [
|
|
554
|
+
"autoPlay",
|
|
555
|
+
"muted",
|
|
556
|
+
"controls",
|
|
557
|
+
"loop",
|
|
558
|
+
"playsInline",
|
|
559
|
+
"attributes",
|
|
560
|
+
"preload",
|
|
561
|
+
"fit",
|
|
562
|
+
"position",
|
|
563
|
+
"video",
|
|
564
|
+
"posterImage"
|
|
565
|
+
],
|
|
566
|
+
computed: {
|
|
567
|
+
videoProps() {
|
|
568
|
+
return {
|
|
569
|
+
...this.autoPlay === !0 ? {
|
|
570
|
+
autoPlay: !0
|
|
571
|
+
} : {},
|
|
572
|
+
...this.muted === !0 ? {
|
|
573
|
+
muted: !0
|
|
574
|
+
} : {},
|
|
575
|
+
...this.controls === !0 ? {
|
|
576
|
+
controls: !0
|
|
577
|
+
} : {},
|
|
578
|
+
...this.loop === !0 ? {
|
|
579
|
+
loop: !0
|
|
580
|
+
} : {},
|
|
581
|
+
...this.playsInline === !0 ? {
|
|
582
|
+
playsInline: !0
|
|
583
|
+
} : {}
|
|
584
|
+
};
|
|
585
|
+
},
|
|
586
|
+
spreadProps() {
|
|
587
|
+
return {
|
|
588
|
+
...this.attributes,
|
|
589
|
+
...this.videoProps
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
var Dt = function() {
|
|
595
|
+
var o;
|
|
596
|
+
var t = this, n = t._self._c;
|
|
597
|
+
return t._self._setupProxy, n("video", t._b({ style: {
|
|
598
|
+
width: "100%",
|
|
599
|
+
height: "100%",
|
|
600
|
+
...(o = t.attributes) == null ? void 0 : o.style,
|
|
601
|
+
objectFit: t.fit,
|
|
602
|
+
objectPosition: t.position,
|
|
603
|
+
// Hack to get object fit to work as expected and
|
|
604
|
+
// not have the video overflow
|
|
605
|
+
borderRadius: 1
|
|
606
|
+
}, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
|
|
607
|
+
}, Ht = [], Jt = /* @__PURE__ */ y(
|
|
608
|
+
Gt,
|
|
609
|
+
Dt,
|
|
610
|
+
Ht,
|
|
611
|
+
!1,
|
|
612
|
+
null,
|
|
613
|
+
null,
|
|
614
|
+
null,
|
|
615
|
+
null
|
|
616
|
+
);
|
|
617
|
+
const _n = Jt.exports, Xt = Symbol(), qt = {
|
|
618
|
+
Builder: {
|
|
619
|
+
content: null,
|
|
620
|
+
context: {},
|
|
621
|
+
localState: void 0,
|
|
622
|
+
rootSetState() {
|
|
623
|
+
},
|
|
624
|
+
rootState: {},
|
|
625
|
+
apiKey: null,
|
|
626
|
+
apiVersion: void 0,
|
|
627
|
+
componentInfos: {},
|
|
628
|
+
inheritedStyles: {}
|
|
629
|
+
},
|
|
630
|
+
key: Xt
|
|
631
|
+
}, Qt = Symbol(), Yt = {
|
|
632
|
+
Components: { registeredComponents: {} },
|
|
633
|
+
key: Qt
|
|
634
|
+
}, Zt = () => import("./block-88cc78c4.js").then((e) => e.default).catch((e) => {
|
|
635
|
+
throw console.error(
|
|
636
|
+
"Error while attempting to dynamically import component Block at ../block/block.vue",
|
|
637
|
+
e
|
|
638
|
+
), e;
|
|
639
|
+
}), te = () => import("./block-styles-9140aecf.js").then((e) => e.default).catch((e) => {
|
|
640
|
+
throw console.error(
|
|
641
|
+
"Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
|
|
642
|
+
e
|
|
643
|
+
), e;
|
|
644
|
+
}), ee = () => import("./blocks-wrapper-dcd7b27a.js").then((e) => e.default).catch((e) => {
|
|
645
|
+
throw console.error(
|
|
646
|
+
"Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
|
|
647
|
+
e
|
|
648
|
+
), e;
|
|
649
|
+
}), ne = g({
|
|
650
|
+
name: "builder-blocks",
|
|
651
|
+
components: {
|
|
652
|
+
"blocks-wrapper": ee,
|
|
653
|
+
block: Zt,
|
|
654
|
+
"block-styles": te
|
|
655
|
+
},
|
|
656
|
+
props: [
|
|
657
|
+
"blocks",
|
|
658
|
+
"parent",
|
|
659
|
+
"path",
|
|
660
|
+
"styleProp",
|
|
661
|
+
"context",
|
|
662
|
+
"registeredComponents"
|
|
663
|
+
],
|
|
664
|
+
inject: {
|
|
665
|
+
builderContext: qt.key,
|
|
666
|
+
componentsContext: Yt.key
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
var oe = function() {
|
|
670
|
+
var t = this, n = t._self._c;
|
|
671
|
+
return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
|
|
672
|
+
return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
|
|
673
|
+
}) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
|
|
674
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
|
|
675
|
+
}) : t._e()], 2);
|
|
676
|
+
}, re = [], se = /* @__PURE__ */ y(
|
|
677
|
+
ne,
|
|
678
|
+
oe,
|
|
679
|
+
re,
|
|
680
|
+
!1,
|
|
681
|
+
null,
|
|
682
|
+
null,
|
|
683
|
+
null,
|
|
684
|
+
null
|
|
685
|
+
);
|
|
686
|
+
const z = se.exports, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
687
|
+
__proto__: null,
|
|
688
|
+
default: z
|
|
689
|
+
}, Symbol.toStringTag, { value: "Module" })), w = (e) => e != null;
|
|
690
|
+
function v() {
|
|
691
|
+
return typeof window < "u" && typeof document < "u";
|
|
692
|
+
}
|
|
693
|
+
const ae = (e) => {
|
|
694
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
695
|
+
return e;
|
|
696
|
+
const t = e.split(".");
|
|
697
|
+
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
698
|
+
}, G = ({
|
|
699
|
+
name: e,
|
|
700
|
+
canTrack: t
|
|
701
|
+
}) => {
|
|
702
|
+
var n;
|
|
703
|
+
try {
|
|
704
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
705
|
+
} catch (o) {
|
|
706
|
+
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
707
|
+
return;
|
|
708
|
+
}
|
|
709
|
+
}, D = async (e) => G(e), ce = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(w).join("; "), le = [["secure", ""], ["SameSite", "None"]], ue = ({
|
|
710
|
+
name: e,
|
|
711
|
+
value: t,
|
|
712
|
+
expires: n
|
|
713
|
+
}) => {
|
|
714
|
+
const r = (v() ? location.protocol === "https:" : !0) ? le : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", ae(window.location.hostname)], ...r];
|
|
715
|
+
return ce(i);
|
|
716
|
+
}, H = async ({
|
|
717
|
+
name: e,
|
|
718
|
+
value: t,
|
|
719
|
+
expires: n,
|
|
720
|
+
canTrack: o
|
|
721
|
+
}) => {
|
|
722
|
+
try {
|
|
723
|
+
if (!o)
|
|
724
|
+
return;
|
|
725
|
+
const r = ue({
|
|
726
|
+
name: e,
|
|
727
|
+
value: t,
|
|
728
|
+
expires: n
|
|
729
|
+
});
|
|
730
|
+
document.cookie = r;
|
|
731
|
+
} catch (r) {
|
|
732
|
+
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
733
|
+
}
|
|
734
|
+
}, de = "builder.tests", E = (e) => `${de}.${e}`, me = ({
|
|
735
|
+
contentId: e
|
|
736
|
+
}) => D({
|
|
737
|
+
name: E(e),
|
|
738
|
+
canTrack: !0
|
|
739
|
+
}), fe = ({
|
|
740
|
+
contentId: e
|
|
741
|
+
}) => G({
|
|
742
|
+
name: E(e),
|
|
743
|
+
canTrack: !0
|
|
744
|
+
}), pe = ({
|
|
745
|
+
contentId: e,
|
|
746
|
+
value: t
|
|
747
|
+
}) => H({
|
|
748
|
+
name: E(e),
|
|
749
|
+
value: t,
|
|
750
|
+
canTrack: !0
|
|
751
|
+
}), J = (e) => w(e.id) && w(e.variations) && Object.keys(e.variations).length > 0, he = ({
|
|
752
|
+
id: e,
|
|
753
|
+
variations: t
|
|
754
|
+
}) => {
|
|
755
|
+
var r;
|
|
756
|
+
let n = 0;
|
|
757
|
+
const o = Math.random();
|
|
758
|
+
for (const s in t) {
|
|
759
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
760
|
+
if (n += i, o < n)
|
|
761
|
+
return s;
|
|
762
|
+
}
|
|
763
|
+
return e;
|
|
764
|
+
}, X = (e) => {
|
|
765
|
+
const t = he(e);
|
|
766
|
+
return pe({
|
|
767
|
+
contentId: e.id,
|
|
768
|
+
value: t
|
|
769
|
+
}).catch((n) => {
|
|
770
|
+
x.error("could not store A/B test variation: ", n);
|
|
771
|
+
}), t;
|
|
772
|
+
}, q = ({
|
|
773
|
+
item: e,
|
|
774
|
+
testGroupId: t
|
|
775
|
+
}) => {
|
|
776
|
+
const n = e.variations[t];
|
|
777
|
+
return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
|
|
778
|
+
!n ? {
|
|
779
|
+
testVariationId: e.id,
|
|
780
|
+
testVariationName: "Default"
|
|
781
|
+
} : {
|
|
782
|
+
data: n.data,
|
|
783
|
+
testVariationId: n.id,
|
|
784
|
+
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
785
|
+
};
|
|
786
|
+
}, be = ({
|
|
787
|
+
item: e,
|
|
788
|
+
canTrack: t
|
|
789
|
+
}) => {
|
|
790
|
+
if (!t)
|
|
791
|
+
return e;
|
|
792
|
+
if (!e)
|
|
793
|
+
return;
|
|
794
|
+
if (!J(e))
|
|
795
|
+
return e;
|
|
796
|
+
const n = fe({
|
|
797
|
+
contentId: e.id
|
|
798
|
+
}) || X({
|
|
799
|
+
variations: e.variations,
|
|
800
|
+
id: e.id
|
|
801
|
+
}), o = q({
|
|
802
|
+
item: e,
|
|
803
|
+
testGroupId: n
|
|
804
|
+
});
|
|
805
|
+
return {
|
|
806
|
+
...e,
|
|
807
|
+
...o
|
|
808
|
+
};
|
|
809
|
+
}, _e = async ({
|
|
810
|
+
item: e,
|
|
811
|
+
canTrack: t
|
|
812
|
+
}) => {
|
|
813
|
+
if (!t || !J(e))
|
|
814
|
+
return e;
|
|
815
|
+
const o = await me({
|
|
816
|
+
contentId: e.id
|
|
817
|
+
}) || X({
|
|
818
|
+
variations: e.variations,
|
|
819
|
+
id: e.id
|
|
820
|
+
}), r = q({
|
|
821
|
+
item: e,
|
|
822
|
+
testGroupId: o
|
|
823
|
+
});
|
|
824
|
+
return {
|
|
825
|
+
...e,
|
|
826
|
+
...r
|
|
827
|
+
};
|
|
828
|
+
}, A = (e) => w(e) ? e : !0, I = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
829
|
+
...t,
|
|
830
|
+
testVariationId: t.id,
|
|
831
|
+
id: e == null ? void 0 : e.id
|
|
832
|
+
})), ge = ({
|
|
833
|
+
canTrack: e,
|
|
834
|
+
content: t
|
|
835
|
+
}) => !(!(I(t).length > 0) || !e);
|
|
836
|
+
function ye(e, t, n) {
|
|
837
|
+
var i;
|
|
838
|
+
function o() {
|
|
839
|
+
function u(m, h, _) {
|
|
840
|
+
let S = "";
|
|
841
|
+
if (_) {
|
|
842
|
+
const c = /* @__PURE__ */ new Date();
|
|
843
|
+
c.setTime(c.getTime() + _ * 24 * 60 * 60 * 1e3), S = "; expires=" + c.toUTCString();
|
|
844
|
+
}
|
|
845
|
+
document.cookie = m + "=" + (h || "") + S + "; path=/; Secure; SameSite=None";
|
|
846
|
+
}
|
|
847
|
+
function a(m) {
|
|
848
|
+
const h = m + "=", _ = document.cookie.split(";");
|
|
849
|
+
for (let S = 0; S < _.length; S++) {
|
|
850
|
+
let c = _[S];
|
|
851
|
+
for (; c.charAt(0) === " "; )
|
|
852
|
+
c = c.substring(1, c.length);
|
|
853
|
+
if (c.indexOf(h) === 0)
|
|
854
|
+
return c.substring(h.length, c.length);
|
|
855
|
+
}
|
|
856
|
+
return null;
|
|
857
|
+
}
|
|
858
|
+
const d = `builder.tests.${e}`, p = a(d), b = t.map((m) => m.id).concat(e);
|
|
859
|
+
if (p && b.includes(p))
|
|
860
|
+
return p;
|
|
861
|
+
let l = 0;
|
|
862
|
+
const f = Math.random();
|
|
863
|
+
for (let m = 0; m < t.length; m++) {
|
|
864
|
+
const h = t[m], _ = h.testRatio;
|
|
865
|
+
if (l += _, f < l)
|
|
866
|
+
return u(d, h.id), h.id;
|
|
867
|
+
}
|
|
868
|
+
return u(d, e), e;
|
|
869
|
+
}
|
|
870
|
+
const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
871
|
+
if (n) {
|
|
872
|
+
s.remove();
|
|
873
|
+
const u = document.currentScript;
|
|
874
|
+
u == null || u.remove();
|
|
875
|
+
} else {
|
|
876
|
+
const u = t.concat({
|
|
877
|
+
id: e
|
|
878
|
+
}).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
|
|
879
|
+
`).join("");
|
|
880
|
+
s.innerHTML = u;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
function ve(e, t, n) {
|
|
884
|
+
var a;
|
|
885
|
+
if (!navigator.cookieEnabled)
|
|
886
|
+
return;
|
|
887
|
+
function o(d) {
|
|
888
|
+
const p = d + "=", b = document.cookie.split(";");
|
|
889
|
+
for (let l = 0; l < b.length; l++) {
|
|
890
|
+
let f = b[l];
|
|
891
|
+
for (; f.charAt(0) === " "; )
|
|
892
|
+
f = f.substring(1, f.length);
|
|
893
|
+
if (f.indexOf(p) === 0)
|
|
894
|
+
return f.substring(p.length, f.length);
|
|
895
|
+
}
|
|
896
|
+
return null;
|
|
897
|
+
}
|
|
898
|
+
const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
|
|
899
|
+
if (s === e) {
|
|
900
|
+
if (u)
|
|
901
|
+
return;
|
|
902
|
+
i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
|
|
903
|
+
} else {
|
|
904
|
+
u && (n ? i == null || i.remove() : (i == null || i.setAttribute("hidden", "true"), i == null || i.setAttribute("aria-hidden", "true")));
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
const Se = (e) => e === "react" || e === "reactNative", Q = Se(C), Y = "builderIoAbTest", Z = "builderIoRenderContent", ke = () => {
|
|
909
|
+
const e = ye.toString().replace(/\s+/g, " "), t = ve.toString().replace(/\s+/g, " ");
|
|
910
|
+
return `
|
|
911
|
+
window.${Y} = ${e}
|
|
912
|
+
window.${Z} = ${t}
|
|
913
|
+
`;
|
|
914
|
+
}, xe = (e, t) => `
|
|
915
|
+
window.${Y}("${t}",${JSON.stringify(e)}, ${Q})`, gn = ({
|
|
916
|
+
contentId: e,
|
|
917
|
+
variationId: t
|
|
918
|
+
}) => `
|
|
919
|
+
window.${Z}("${t}", "${e}", ${Q})`, we = () => import("./content-ad722031.js").then((e) => e.default).catch((e) => {
|
|
920
|
+
throw console.error(
|
|
921
|
+
"Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
|
|
922
|
+
e
|
|
923
|
+
), e;
|
|
924
|
+
}), Ce = () => import("./inlined-script-58b1138d.js").then((e) => e.default).catch((e) => {
|
|
925
|
+
throw console.error(
|
|
926
|
+
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
927
|
+
e
|
|
928
|
+
), e;
|
|
929
|
+
}), $e = () => import("./inlined-styles-8c6cdbc5.js").then((e) => e.default).catch((e) => {
|
|
930
|
+
throw console.error(
|
|
931
|
+
"Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
|
|
932
|
+
e
|
|
933
|
+
), e;
|
|
934
|
+
}), Te = g({
|
|
935
|
+
name: "content-variants",
|
|
936
|
+
components: {
|
|
937
|
+
"inlined-script": Ce,
|
|
938
|
+
"inlined-styles": $e,
|
|
939
|
+
"content-component": we
|
|
940
|
+
},
|
|
941
|
+
props: [
|
|
942
|
+
"canTrack",
|
|
943
|
+
"content",
|
|
944
|
+
"__isNestedRender",
|
|
945
|
+
"model",
|
|
946
|
+
"data",
|
|
947
|
+
"context",
|
|
948
|
+
"apiKey",
|
|
949
|
+
"apiVersion",
|
|
950
|
+
"customComponents",
|
|
951
|
+
"locale",
|
|
952
|
+
"includeRefs",
|
|
953
|
+
"enrich"
|
|
954
|
+
],
|
|
955
|
+
data() {
|
|
956
|
+
return {
|
|
957
|
+
shouldRenderVariants: ge({
|
|
958
|
+
canTrack: A(this.canTrack),
|
|
959
|
+
content: this.content
|
|
960
|
+
}),
|
|
961
|
+
TARGET: C,
|
|
962
|
+
getScriptString: ke,
|
|
963
|
+
getVariants: I
|
|
964
|
+
};
|
|
965
|
+
},
|
|
966
|
+
mounted() {
|
|
967
|
+
this.shouldRenderVariants = !1;
|
|
968
|
+
},
|
|
969
|
+
computed: {
|
|
970
|
+
variantScriptStr() {
|
|
971
|
+
var e;
|
|
972
|
+
return xe(
|
|
973
|
+
I(this.content).map((t) => ({
|
|
974
|
+
id: t.testVariationId,
|
|
975
|
+
testRatio: t.testRatio
|
|
976
|
+
})),
|
|
977
|
+
((e = this.content) == null ? void 0 : e.id) || ""
|
|
978
|
+
);
|
|
979
|
+
},
|
|
980
|
+
hideVariantsStyleString() {
|
|
981
|
+
return I(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
982
|
+
},
|
|
983
|
+
defaultContent() {
|
|
984
|
+
var e;
|
|
985
|
+
return this.shouldRenderVariants ? {
|
|
986
|
+
...this.content,
|
|
987
|
+
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
988
|
+
} : be({
|
|
989
|
+
item: this.content,
|
|
990
|
+
canTrack: A(this.canTrack)
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
var Ie = function() {
|
|
996
|
+
var o, r;
|
|
997
|
+
var t = this, n = t._self._c;
|
|
998
|
+
return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
|
|
999
|
+
return n("content-component", { key: s.testVariationId, attrs: { content: s, showContent: !1, classNameProp: void 0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } });
|
|
1000
|
+
})] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
|
|
1001
|
+
key: t.shouldRenderVariants.toString()
|
|
1002
|
+
}, !1))], 2);
|
|
1003
|
+
}, Re = [], Pe = /* @__PURE__ */ y(
|
|
1004
|
+
Te,
|
|
1005
|
+
Ie,
|
|
1006
|
+
Re,
|
|
1007
|
+
!1,
|
|
1008
|
+
null,
|
|
1009
|
+
null,
|
|
1010
|
+
null,
|
|
1011
|
+
null
|
|
1012
|
+
);
|
|
1013
|
+
const tt = Pe.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1014
|
+
__proto__: null,
|
|
1015
|
+
default: tt
|
|
1016
|
+
}, Symbol.toStringTag, { value: "Module" })), yn = z, vn = tt;
|
|
1017
|
+
function Oe() {
|
|
1018
|
+
return v() && window.self !== window.top;
|
|
1019
|
+
}
|
|
1020
|
+
function et() {
|
|
1021
|
+
return Oe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1022
|
+
}
|
|
1023
|
+
function Sn() {
|
|
1024
|
+
return !v() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
1025
|
+
}
|
|
1026
|
+
const kn = [], xn = (e) => ({
|
|
1027
|
+
type: "builder.registerComponent",
|
|
1028
|
+
data: Ne(e)
|
|
1029
|
+
}), Ve = (e) => {
|
|
1030
|
+
const t = e.toString().trim();
|
|
1031
|
+
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1032
|
+
}, Ee = (e) => typeof e == "function" ? Ve(e) : V(e), Ne = ({
|
|
1033
|
+
inputs: e,
|
|
1034
|
+
...t
|
|
1035
|
+
}) => ({
|
|
1036
|
+
...V(t),
|
|
1037
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1038
|
+
...o,
|
|
1039
|
+
[r]: Ee(s)
|
|
1040
|
+
}), {}))
|
|
1041
|
+
}), U = {};
|
|
1042
|
+
function wn(e, t) {
|
|
1043
|
+
let n = U[e];
|
|
1044
|
+
if (n || (n = U[e] = []), n.push(t), v()) {
|
|
1045
|
+
const o = {
|
|
1046
|
+
type: "builder.register",
|
|
1047
|
+
data: {
|
|
1048
|
+
type: e,
|
|
1049
|
+
info: t
|
|
1050
|
+
}
|
|
1051
|
+
};
|
|
1052
|
+
try {
|
|
1053
|
+
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
1054
|
+
} catch (r) {
|
|
1055
|
+
console.debug("Could not postmessage", r);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
const M = {};
|
|
1060
|
+
function Cn(e) {
|
|
1061
|
+
if (v()) {
|
|
1062
|
+
Object.assign(M, e);
|
|
1063
|
+
const t = {
|
|
1064
|
+
type: "builder.settingsChange",
|
|
1065
|
+
data: M
|
|
1066
|
+
};
|
|
1067
|
+
parent.postMessage(t, "*");
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
function Be() {
|
|
1071
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1072
|
+
}
|
|
1073
|
+
function je() {
|
|
1074
|
+
const e = Be().fetch;
|
|
1075
|
+
if (typeof e > "u")
|
|
1076
|
+
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1077
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1078
|
+
return e;
|
|
1079
|
+
}
|
|
1080
|
+
const Fe = je();
|
|
1081
|
+
function R(e, t = null, n = ".") {
|
|
1082
|
+
return Object.keys(e).reduce((o, r) => {
|
|
1083
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
1084
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
1085
|
+
...o,
|
|
1086
|
+
...R(s, i, n)
|
|
1087
|
+
} : {
|
|
1088
|
+
...o,
|
|
1089
|
+
[i]: s
|
|
1090
|
+
};
|
|
1091
|
+
}, {});
|
|
1092
|
+
}
|
|
1093
|
+
const Ue = "v3", L = "builder.", Me = "options.", Le = (e) => {
|
|
1094
|
+
const t = {};
|
|
1095
|
+
return e.forEach((n, o) => {
|
|
1096
|
+
t[o] = n;
|
|
1097
|
+
}), t;
|
|
1098
|
+
}, nt = (e) => {
|
|
1099
|
+
if (!e)
|
|
1100
|
+
return {};
|
|
1101
|
+
const t = ot(e), n = {};
|
|
1102
|
+
return Object.keys(t).forEach((o) => {
|
|
1103
|
+
if (o.startsWith(L)) {
|
|
1104
|
+
const r = o.replace(L, "").replace(Me, "");
|
|
1105
|
+
n[r] = t[o];
|
|
1106
|
+
}
|
|
1107
|
+
}), n;
|
|
1108
|
+
}, We = () => {
|
|
1109
|
+
if (!v())
|
|
1110
|
+
return {};
|
|
1111
|
+
const e = new URLSearchParams(window.location.search);
|
|
1112
|
+
return nt(e);
|
|
1113
|
+
}, ot = (e) => e instanceof URLSearchParams ? Le(e) : e, W = (e) => typeof e == "number" && !isNaN(e) && e >= 0, N = (e) => {
|
|
1114
|
+
let {
|
|
1115
|
+
noTraverse: t = !1
|
|
1116
|
+
} = e;
|
|
1117
|
+
const {
|
|
1118
|
+
limit: n = 30,
|
|
1119
|
+
userAttributes: o,
|
|
1120
|
+
query: r,
|
|
1121
|
+
model: s,
|
|
1122
|
+
apiKey: i,
|
|
1123
|
+
includeRefs: u = !0,
|
|
1124
|
+
enrich: a,
|
|
1125
|
+
locale: d,
|
|
1126
|
+
apiVersion: p = Ue,
|
|
1127
|
+
fields: b,
|
|
1128
|
+
omit: l,
|
|
1129
|
+
offset: f,
|
|
1130
|
+
cacheSeconds: m,
|
|
1131
|
+
staleCacheSeconds: h,
|
|
1132
|
+
sort: _,
|
|
1133
|
+
includeUnpublished: S
|
|
1134
|
+
} = e;
|
|
1135
|
+
if (!i)
|
|
1136
|
+
throw new Error("Missing API key");
|
|
1137
|
+
if (!["v2", "v3"].includes(p))
|
|
1138
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
|
|
1139
|
+
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
1140
|
+
const c = new URL(`https://cdn.builder.io/api/${p}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`);
|
|
1141
|
+
if (c.searchParams.set("omit", l || "meta.componentsUsed"), b && c.searchParams.set("fields", b), Number.isFinite(f) && f > -1 && c.searchParams.set("offset", String(Math.floor(f))), typeof S == "boolean" && c.searchParams.set("includeUnpublished", String(S)), m && W(m) && c.searchParams.set("cacheSeconds", String(m)), h && W(h) && c.searchParams.set("staleCacheSeconds", String(h)), _) {
|
|
1142
|
+
const k = R({
|
|
1143
|
+
sort: _
|
|
1144
|
+
});
|
|
1145
|
+
for (const $ in k)
|
|
1146
|
+
c.searchParams.set($, JSON.stringify(k[$]));
|
|
1147
|
+
}
|
|
1148
|
+
const lt = {
|
|
1149
|
+
...We(),
|
|
1150
|
+
...ot(e.options || {})
|
|
1151
|
+
}, j = R(lt);
|
|
1152
|
+
for (const k in j)
|
|
1153
|
+
c.searchParams.set(k, String(j[k]));
|
|
1154
|
+
if (o && c.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
1155
|
+
const k = R({
|
|
1156
|
+
query: r
|
|
1157
|
+
});
|
|
1158
|
+
for (const $ in k)
|
|
1159
|
+
c.searchParams.set($, JSON.stringify(k[$]));
|
|
1160
|
+
}
|
|
1161
|
+
return c;
|
|
1162
|
+
}, Ke = (e) => "results" in e;
|
|
1163
|
+
async function B(e) {
|
|
1164
|
+
const t = await rt({
|
|
1165
|
+
...e,
|
|
1166
|
+
limit: 1
|
|
1167
|
+
});
|
|
1168
|
+
return t && t.results[0] || null;
|
|
1169
|
+
}
|
|
1170
|
+
const $n = B, ze = async (e) => {
|
|
1171
|
+
const t = N(e);
|
|
1172
|
+
return await (await Fe(t.href)).json();
|
|
1173
|
+
}, Ge = async (e, t, n = N(e)) => {
|
|
1174
|
+
const o = A(e.canTrack);
|
|
1175
|
+
if (n.search.includes("preview="), !o || !(v() || C === "reactNative"))
|
|
1176
|
+
return t;
|
|
1177
|
+
try {
|
|
1178
|
+
const r = [];
|
|
1179
|
+
for (const s of t.results)
|
|
1180
|
+
r.push(await _e({
|
|
1181
|
+
item: s,
|
|
1182
|
+
canTrack: o
|
|
1183
|
+
}));
|
|
1184
|
+
t.results = r;
|
|
1185
|
+
} catch (r) {
|
|
1186
|
+
x.error("Could not process A/B tests. ", r);
|
|
1187
|
+
}
|
|
1188
|
+
return t;
|
|
1189
|
+
};
|
|
1190
|
+
async function rt(e) {
|
|
1191
|
+
try {
|
|
1192
|
+
const t = N(e), n = await ze(e);
|
|
1193
|
+
return Ke(n) ? Ge(e, n) : (x.error("Error fetching data. ", {
|
|
1194
|
+
url: t,
|
|
1195
|
+
content: n,
|
|
1196
|
+
options: e
|
|
1197
|
+
}), null);
|
|
1198
|
+
} catch (t) {
|
|
1199
|
+
return x.error("Error fetching data. ", t), null;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
const Tn = rt;
|
|
1203
|
+
function De() {
|
|
1204
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1205
|
+
const t = Math.random() * 16 | 0;
|
|
1206
|
+
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
function st() {
|
|
1210
|
+
return De().replace(/-/g, "");
|
|
1211
|
+
}
|
|
1212
|
+
const it = "builderSessionId", He = async ({
|
|
1213
|
+
canTrack: e
|
|
1214
|
+
}) => {
|
|
1215
|
+
if (!e)
|
|
1216
|
+
return;
|
|
1217
|
+
const t = await D({
|
|
1218
|
+
name: it,
|
|
1219
|
+
canTrack: e
|
|
1220
|
+
});
|
|
1221
|
+
if (w(t))
|
|
1222
|
+
return t;
|
|
1223
|
+
{
|
|
1224
|
+
const n = Je();
|
|
1225
|
+
return Xe({
|
|
1226
|
+
id: n,
|
|
1227
|
+
canTrack: e
|
|
1228
|
+
}), n;
|
|
1229
|
+
}
|
|
1230
|
+
}, Je = () => st(), Xe = ({
|
|
1231
|
+
id: e,
|
|
1232
|
+
canTrack: t
|
|
1233
|
+
}) => H({
|
|
1234
|
+
name: it,
|
|
1235
|
+
value: e,
|
|
1236
|
+
canTrack: t
|
|
1237
|
+
}), at = () => v() && typeof localStorage < "u" ? localStorage : void 0, qe = ({
|
|
1238
|
+
key: e,
|
|
1239
|
+
canTrack: t
|
|
1240
|
+
}) => {
|
|
1241
|
+
var n;
|
|
1242
|
+
try {
|
|
1243
|
+
return t ? (n = at()) == null ? void 0 : n.getItem(e) : void 0;
|
|
1244
|
+
} catch (o) {
|
|
1245
|
+
console.debug("[LocalStorage] GET error: ", o);
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1248
|
+
}, Qe = ({
|
|
1249
|
+
key: e,
|
|
1250
|
+
canTrack: t,
|
|
1251
|
+
value: n
|
|
1252
|
+
}) => {
|
|
1253
|
+
var o;
|
|
1254
|
+
try {
|
|
1255
|
+
t && ((o = at()) == null || o.setItem(e, n));
|
|
1256
|
+
} catch (r) {
|
|
1257
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
1258
|
+
}
|
|
1259
|
+
}, ct = "builderVisitorId", Ye = ({
|
|
1260
|
+
canTrack: e
|
|
1261
|
+
}) => {
|
|
1262
|
+
if (!e)
|
|
1263
|
+
return;
|
|
1264
|
+
const t = qe({
|
|
1265
|
+
key: ct,
|
|
1266
|
+
canTrack: e
|
|
1267
|
+
});
|
|
1268
|
+
if (w(t))
|
|
1269
|
+
return t;
|
|
1270
|
+
{
|
|
1271
|
+
const n = Ze();
|
|
1272
|
+
return tn({
|
|
1273
|
+
id: n,
|
|
1274
|
+
canTrack: e
|
|
1275
|
+
}), n;
|
|
1276
|
+
}
|
|
1277
|
+
}, Ze = () => st(), tn = ({
|
|
1278
|
+
id: e,
|
|
1279
|
+
canTrack: t
|
|
1280
|
+
}) => Qe({
|
|
1281
|
+
key: ct,
|
|
1282
|
+
value: e,
|
|
1283
|
+
canTrack: t
|
|
1284
|
+
}), en = () => {
|
|
1285
|
+
if (v()) {
|
|
1286
|
+
const e = new URL(location.href);
|
|
1287
|
+
return e.pathname === "" && (e.pathname = "/"), e;
|
|
1288
|
+
} else
|
|
1289
|
+
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1290
|
+
}, nn = () => typeof navigator == "object" && navigator.userAgent || "", on = () => {
|
|
1291
|
+
const e = nn(), t = {
|
|
1292
|
+
Android() {
|
|
1293
|
+
return e.match(/Android/i);
|
|
1294
|
+
},
|
|
1295
|
+
BlackBerry() {
|
|
1296
|
+
return e.match(/BlackBerry/i);
|
|
1297
|
+
},
|
|
1298
|
+
iOS() {
|
|
1299
|
+
return e.match(/iPhone|iPod/i);
|
|
1300
|
+
},
|
|
1301
|
+
Opera() {
|
|
1302
|
+
return e.match(/Opera Mini/i);
|
|
1303
|
+
},
|
|
1304
|
+
Windows() {
|
|
1305
|
+
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
1306
|
+
},
|
|
1307
|
+
any() {
|
|
1308
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || C === "reactNative";
|
|
1309
|
+
}
|
|
1310
|
+
}, n = e.match(/Tablet|iPad/i), o = en();
|
|
1311
|
+
return {
|
|
1312
|
+
urlPath: o == null ? void 0 : o.pathname,
|
|
1313
|
+
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1314
|
+
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
1315
|
+
};
|
|
1316
|
+
}, rn = async ({
|
|
1317
|
+
canTrack: e
|
|
1318
|
+
}) => {
|
|
1319
|
+
if (!e)
|
|
1320
|
+
return {
|
|
1321
|
+
visitorId: void 0,
|
|
1322
|
+
sessionId: void 0
|
|
1323
|
+
};
|
|
1324
|
+
const t = await He({
|
|
1325
|
+
canTrack: e
|
|
1326
|
+
}), n = Ye({
|
|
1327
|
+
canTrack: e
|
|
1328
|
+
});
|
|
1329
|
+
return {
|
|
1330
|
+
sessionId: t,
|
|
1331
|
+
visitorId: n
|
|
1332
|
+
};
|
|
1333
|
+
}, sn = async ({
|
|
1334
|
+
type: e,
|
|
1335
|
+
canTrack: t,
|
|
1336
|
+
apiKey: n,
|
|
1337
|
+
metadata: o,
|
|
1338
|
+
...r
|
|
1339
|
+
}) => ({
|
|
1340
|
+
type: e,
|
|
1341
|
+
data: {
|
|
1342
|
+
...r,
|
|
1343
|
+
metadata: {
|
|
1344
|
+
url: location.href,
|
|
1345
|
+
...o
|
|
1346
|
+
},
|
|
1347
|
+
...await rn({
|
|
1348
|
+
canTrack: t
|
|
1349
|
+
}),
|
|
1350
|
+
userAttributes: on(),
|
|
1351
|
+
ownerId: n
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
async function an(e) {
|
|
1355
|
+
if (!e.apiKey) {
|
|
1356
|
+
x.error("Missing API key for track call. Please provide your API key.");
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
if (e.canTrack && !et() && (v() || C === "reactNative"))
|
|
1360
|
+
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
1361
|
+
method: "POST",
|
|
1362
|
+
body: JSON.stringify({
|
|
1363
|
+
events: [await sn(e)]
|
|
1364
|
+
}),
|
|
1365
|
+
headers: {
|
|
1366
|
+
"content-type": "application/json"
|
|
1367
|
+
},
|
|
1368
|
+
mode: "cors"
|
|
1369
|
+
}).catch((t) => {
|
|
1370
|
+
console.error("Failed to track: ", t);
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
const In = (e) => an({
|
|
1374
|
+
...e,
|
|
1375
|
+
canTrack: !0
|
|
1376
|
+
}), Rn = async (e) => {
|
|
1377
|
+
var o, r, s;
|
|
1378
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1379
|
+
...e,
|
|
1380
|
+
apiKey: e.apiKey,
|
|
1381
|
+
model: e.model || "page",
|
|
1382
|
+
userAttributes: {
|
|
1383
|
+
...e.userAttributes,
|
|
1384
|
+
...t ? {
|
|
1385
|
+
urlPath: t
|
|
1386
|
+
} : {}
|
|
1387
|
+
},
|
|
1388
|
+
options: nt(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
1389
|
+
};
|
|
1390
|
+
return {
|
|
1391
|
+
apiKey: n.apiKey,
|
|
1392
|
+
model: n.model,
|
|
1393
|
+
content: await B(n)
|
|
1394
|
+
};
|
|
1395
|
+
};
|
|
1396
|
+
export {
|
|
1397
|
+
Cn as A,
|
|
1398
|
+
ln as B,
|
|
1399
|
+
dn as C,
|
|
1400
|
+
Ge as D,
|
|
1401
|
+
rt as E,
|
|
1402
|
+
mn as F,
|
|
1403
|
+
Tn as G,
|
|
1404
|
+
$n as H,
|
|
1405
|
+
fn as I,
|
|
1406
|
+
nt as J,
|
|
1407
|
+
In as K,
|
|
1408
|
+
Rn as L,
|
|
1409
|
+
ie as M,
|
|
1410
|
+
yn as R,
|
|
1411
|
+
pn as S,
|
|
1412
|
+
C as T,
|
|
1413
|
+
_n as V,
|
|
1414
|
+
an as _,
|
|
1415
|
+
un as a,
|
|
1416
|
+
O as b,
|
|
1417
|
+
w as c,
|
|
1418
|
+
hn as d,
|
|
1419
|
+
bn as e,
|
|
1420
|
+
V as f,
|
|
1421
|
+
pt as g,
|
|
1422
|
+
gn as h,
|
|
1423
|
+
et as i,
|
|
1424
|
+
kn as j,
|
|
1425
|
+
Yt as k,
|
|
1426
|
+
qt as l,
|
|
1427
|
+
v as m,
|
|
1428
|
+
y as n,
|
|
1429
|
+
A as o,
|
|
1430
|
+
Fe as p,
|
|
1431
|
+
xn as q,
|
|
1432
|
+
wn as r,
|
|
1433
|
+
Ne as s,
|
|
1434
|
+
B as t,
|
|
1435
|
+
Sn as u,
|
|
1436
|
+
x as v,
|
|
1437
|
+
on as w,
|
|
1438
|
+
z as x,
|
|
1439
|
+
tt as y,
|
|
1440
|
+
vn as z
|
|
1441
|
+
};
|