@builder.io/sdk-vue 0.7.0 → 0.7.1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -2
- package/vue2/lib/browser/{block-134a618c.cjs → block-2cb52597.cjs} +2 -2
- package/vue2/lib/{node/block-169c0cf4.js → browser/block-dc97e982.js} +7 -7
- package/vue2/lib/{edge/block-styles-57f025e0.cjs → browser/block-styles-8f571c43.cjs} +1 -1
- package/vue2/lib/{node/block-styles-d8839dd9.js → browser/block-styles-bc460f14.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-54cd4f6c.cjs → block-wrapper-2d901f3f.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-ad23d63e.js → block-wrapper-b1a6d78a.js} +5 -5
- package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{edge/blocks-wrapper-be28f72a.cjs → browser/blocks-wrapper-9e8dd7a2.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-671e376d.js → browser/blocks-wrapper-fcb480f0.js} +1 -1
- package/vue2/lib/{edge/component-ref-65be9ea0.js → browser/component-ref-68e3a5b6.js} +6 -6
- package/vue2/lib/{edge/component-ref-276a92fb.cjs → browser/component-ref-bc236051.cjs} +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/{content-91d3070e.cjs → content-1a8d2e10.cjs} +1 -1
- package/vue2/lib/{edge/content-962ba49d.js → browser/content-76b432c4.js} +62 -64
- package/vue2/lib/browser/{css-2c9ad067.cjs → css-32f0c7fe.cjs} +1 -1
- package/vue2/lib/browser/{css-ccd5d9e3.js → css-d68fe0e5.js} +1 -1
- package/vue2/lib/browser/{enable-editor-d9f53d7d.js → enable-editor-29804f7c.js} +107 -92
- package/vue2/lib/browser/enable-editor-58cd5d33.cjs +1 -0
- package/vue2/lib/browser/evaluate-5f291a57.cjs +1 -0
- package/vue2/lib/browser/evaluate-c21703b5.js +86 -0
- package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/browser/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/{node/get-block-actions-e6c36554.js → browser/get-block-actions-47eb8bee.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-7a5e8d90.cjs → get-block-actions-4f4fdc14.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-fded8311.js → get-block-properties-14335b2d.js} +2 -2
- package/vue2/lib/{node/get-block-properties-088a8d57.cjs → browser/get-block-properties-4c2072d0.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-cb418829.cjs → get-processed-block-7dbd0508.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-28afdbdd.js → get-processed-block-9c43bb30.js} +2 -2
- package/vue2/lib/browser/index-7528c088.cjs +32 -0
- package/vue2/lib/{node/index-8b428b10.js → browser/index-bb14138e.js} +382 -367
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +4 -4
- package/vue2/lib/{edge/inlined-script-45e42092.js → browser/inlined-script-431b5967.js} +1 -1
- package/vue2/lib/browser/{inlined-script-36c7686b.cjs → inlined-script-cc25d25c.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-48c2284e.js → browser/inlined-styles-1717d4f0.js} +1 -1
- package/vue2/lib/{node/inlined-styles-f49a7f1a.cjs → browser/inlined-styles-da08b05d.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-2463f839.cjs → browser/interactive-element-03353733.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-b479db6b.js → browser/interactive-element-ac3e10b7.js} +5 -5
- package/vue2/lib/{node/repeated-block-284f31d8.js → browser/repeated-block-51e74834.js} +2 -2
- package/vue2/lib/browser/{repeated-block-d5a07fb8.cjs → repeated-block-ba80a339.cjs} +1 -1
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-4803ecb4.js → browser/styles-5eb21cb8.js} +2 -2
- package/vue2/lib/{node/styles-f19bff73.cjs → browser/styles-931da5e8.cjs} +2 -2
- package/vue2/lib/{browser/block-169c0cf4.js → edge/block-2c7301d0.js} +7 -7
- package/vue2/lib/{node/block-134a618c.cjs → edge/block-40b0f7b5.cjs} +2 -2
- package/vue2/lib/{node/block-styles-dd554acd.cjs → edge/block-styles-ba691a55.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-9d313184.js → block-styles-bd09453c.js} +5 -5
- package/vue2/lib/{node/block-wrapper-ad23d63e.js → edge/block-wrapper-4210f268.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-252f3467.cjs → block-wrapper-8e1bd00b.cjs} +1 -1
- package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{browser/blocks-wrapper-051a6973.cjs → edge/blocks-wrapper-7e831b51.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-ba3f831e.js → edge/blocks-wrapper-9c7effa2.js} +1 -1
- package/vue2/lib/{node/component-ref-73bbe275.cjs → edge/component-ref-02d30d18.cjs} +1 -1
- package/vue2/lib/{node/component-ref-7c67cc85.js → edge/component-ref-0404fc38.js} +6 -6
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{browser/content-c3064d9d.js → edge/content-173f7be0.js} +62 -64
- package/vue2/lib/{node/content-91d3070e.cjs → edge/content-36b34b86.cjs} +1 -1
- package/vue2/lib/{node/css-2c9ad067.cjs → edge/css-00393f8a.cjs} +1 -1
- package/vue2/lib/edge/{css-9d2e1bcb.js → css-081095c1.js} +1 -1
- package/vue2/lib/edge/enable-editor-c36df3b5.cjs +1 -0
- package/vue2/lib/{node/enable-editor-d9f53d7d.js → edge/enable-editor-d3f018c6.js} +107 -92
- package/vue2/lib/edge/evaluate-47aeba42.cjs +21 -0
- package/vue2/lib/edge/{evaluate-becf2384.js → evaluate-d31c253f.js} +379 -346
- package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/edge/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/{browser/get-block-actions-e6c36554.js → edge/get-block-actions-33002e58.js} +2 -2
- package/vue2/lib/edge/{get-block-actions-0ed7b9a3.cjs → get-block-actions-fc18e691.cjs} +1 -1
- package/vue2/lib/{browser/get-block-properties-088a8d57.cjs → edge/get-block-properties-c1a43e4b.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-c460b7ad.js → get-block-properties-d0176121.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-23aa8a9f.js → get-processed-block-1280c9d5.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-fe5c136a.cjs → get-processed-block-2d9f33f5.cjs} +1 -1
- package/vue2/lib/edge/{index-8d71df29.js → index-6e4d121e.js} +382 -367
- package/vue2/lib/edge/index-ca5baf07.cjs +32 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +4 -4
- package/vue2/lib/{node/inlined-script-de7385eb.js → edge/inlined-script-7a7207fd.js} +1 -1
- package/vue2/lib/{node/inlined-script-36c7686b.cjs → edge/inlined-script-e57329a5.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-f49a7f1a.cjs → edge/inlined-styles-9a96b77e.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-411ade32.js → inlined-styles-f109793f.js} +1 -1
- package/vue2/lib/{browser/interactive-element-b479db6b.js → edge/interactive-element-6a866621.js} +5 -5
- package/vue2/lib/{browser/interactive-element-2463f839.cjs → edge/interactive-element-9c12c501.cjs} +1 -1
- package/vue2/lib/edge/{repeated-block-8eefee0f.cjs → repeated-block-1093b757.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-284f31d8.js → edge/repeated-block-f7b967cf.js} +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-f19bff73.cjs → edge/styles-a211b4e1.cjs} +2 -2
- package/vue2/lib/{browser/styles-4803ecb4.js → edge/styles-aa2c087b.js} +2 -2
- package/vue2/lib/{edge/block-04a014ef.js → node/block-979d66e1.js} +7 -7
- package/vue2/lib/{edge/block-7f6b0f80.cjs → node/block-d7e689a7.cjs} +2 -2
- package/vue2/lib/{browser/block-styles-dd554acd.cjs → node/block-styles-00a3a4d7.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-d8839dd9.js → node/block-styles-50528f05.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-e16ccd29.js → node/block-wrapper-8bd5d40b.js} +5 -5
- package/vue2/lib/node/{block-wrapper-54cd4f6c.cjs → block-wrapper-d7b449f1.cjs} +1 -1
- package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/node/{blocks-wrapper-ba3f831e.js → blocks-wrapper-50937fc2.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-051a6973.cjs → blocks-wrapper-d425bec5.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-7c67cc85.js → node/component-ref-123ffd3c.js} +6 -6
- package/vue2/lib/{browser/component-ref-73bbe275.cjs → node/component-ref-3ba26510.cjs} +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -0
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-c3064d9d.js → content-d31377e7.js} +62 -64
- package/vue2/lib/{edge/content-6d81d16f.cjs → node/content-d8e76f5c.cjs} +1 -1
- package/vue2/lib/node/{css-ccd5d9e3.js → css-469bd1df.js} +1 -1
- package/vue2/lib/{edge/css-88f2410f.cjs → node/css-c566c7a4.cjs} +1 -1
- package/vue2/lib/node/enable-editor-8c4e460a.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-b6040943.js → node/enable-editor-96dbd852.js} +107 -92
- package/vue2/lib/node/evaluate-45bac138.cjs +41 -0
- package/vue2/lib/node/evaluate-946bbbf4.js +187 -0
- package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/{edge/get-block-actions-046a80d0.js → node/get-block-actions-a7c25deb.js} +2 -2
- package/vue2/lib/node/{get-block-actions-7a5e8d90.cjs → get-block-actions-fa0f60c5.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-fded8311.js → get-block-properties-5524be2a.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-a9ab7e30.cjs → node/get-block-properties-75f3f91a.cjs} +1 -1
- package/vue2/lib/node/get-processed-block-231c050b.js +52 -0
- package/vue2/lib/node/get-processed-block-e246d1ed.cjs +1 -0
- package/vue2/lib/{browser/index-8b428b10.js → node/index-7ce12494.js} +382 -367
- package/vue2/lib/node/index-ea4df31a.cjs +32 -0
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +4 -4
- package/vue2/lib/{browser/inlined-script-de7385eb.js → node/inlined-script-073d04d2.js} +1 -1
- package/vue2/lib/{edge/inlined-script-f370acdf.cjs → node/inlined-script-dccfb7fc.cjs} +1 -1
- package/vue2/lib/{edge/inlined-styles-375c218f.cjs → node/inlined-styles-08dbb945.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-48c2284e.js → node/inlined-styles-8982c8a6.js} +1 -1
- package/vue2/lib/{edge/interactive-element-0e97e5ad.js → node/interactive-element-caabd2d9.js} +5 -5
- package/vue2/lib/{edge/interactive-element-92851fbe.cjs → node/interactive-element-fc5a4f1d.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-c41268e9.js → node/repeated-block-0ab8e6be.js} +2 -2
- package/vue2/lib/node/{repeated-block-d5a07fb8.cjs → repeated-block-f65d29a5.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-633d9689.js → node/styles-6e09a0cc.js} +2 -2
- package/vue2/lib/{edge/styles-f2039a70.cjs → node/styles-96606872.cjs} +2 -2
- package/vue2/package.json +3 -0
- package/vue3/lib/{node/block-wrapper.b3297452.js → browser/block-wrapper.09b54dd3.js} +8 -8
- package/vue3/lib/browser/{block-wrapper.c00ddfcb.cjs → block-wrapper.49af98a6.cjs} +1 -1
- package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{edge/component-ref.f5eef526.js → browser/component-ref.63194b25.js} +17 -17
- package/vue3/lib/browser/component-ref.78f795cd.cjs +1 -0
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
- package/vue3/lib/browser/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/browser/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/browser/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/{edge/get-block-actions.c5c7e487.cjs → browser/get-block-actions.2e99e179.cjs} +1 -1
- package/vue3/lib/{edge/get-block-actions.f1dcfc47.js → browser/get-block-actions.4f330889.js} +1 -1
- package/vue3/lib/{node/index.c51504ff.js → browser/index.88b433c6.js} +826 -795
- package/vue3/lib/browser/index.c04232f6.cjs +69 -0
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.e2eb73cd.js → browser/repeated-block.067ee555.js} +6 -6
- package/vue3/lib/browser/{repeated-block.2245fce7.cjs → repeated-block.ef8176d8.cjs} +1 -1
- package/vue3/lib/edge/{block-wrapper.6e434dc7.cjs → block-wrapper.2d4ec833.cjs} +1 -1
- package/vue3/lib/{browser/block-wrapper.b3297452.js → edge/block-wrapper.4b2f2fb3.js} +8 -8
- package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{node/component-ref.88102d68.js → edge/component-ref.98beaea3.js} +17 -17
- package/vue3/lib/edge/component-ref.d8514fb0.cjs +1 -0
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
- package/vue3/lib/edge/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/edge/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/edge/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/{node/get-block-actions.703f8554.cjs → edge/get-block-actions.407fbfa9.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.1865148e.js → edge/get-block-actions.b460cca3.js} +1 -1
- package/vue3/lib/edge/index.8bdc4716.cjs +89 -0
- package/vue3/lib/edge/{index.f80ab661.js → index.a8ffb479.js} +1352 -1293
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.f6fdedb6.js → edge/repeated-block.cc9bbed2.js} +6 -6
- package/vue3/lib/edge/{repeated-block.8292d33a.cjs → repeated-block.f5d444e9.cjs} +1 -1
- package/vue3/lib/node/block-wrapper.25e28ca3.cjs +1 -0
- package/vue3/lib/{edge/block-wrapper.dad1bb39.js → node/block-wrapper.56bce6c4.js} +7 -6
- package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/node/component-ref.c35ae123.cjs +1 -0
- package/vue3/lib/{browser/component-ref.88102d68.js → node/component-ref.cd59ca4d.js} +18 -17
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
- package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.0d715e21.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.1865148e.js → get-block-actions.3df391e9.js} +1 -1
- package/vue3/lib/{browser/index.c51504ff.js → node/index.88589866.js} +977 -852
- package/vue3/lib/node/index.b2d2bb5e.cjs +109 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +27 -26
- package/vue3/lib/node/{repeated-block.f6fdedb6.js → repeated-block.57ca2ba1.js} +7 -6
- package/vue3/lib/node/repeated-block.78ed5bbb.cjs +1 -0
- package/vue3/package.json +3 -0
- package/vue2/lib/browser/enable-editor-f87e3e48.cjs +0 -1
- package/vue2/lib/browser/evaluate-043734e5.cjs +0 -1
- package/vue2/lib/browser/evaluate-b309ef11.js +0 -81
- package/vue2/lib/browser/index-7b952a40.cjs +0 -32
- package/vue2/lib/edge/enable-editor-617a4b09.cjs +0 -1
- package/vue2/lib/edge/evaluate-e31fc7a4.cjs +0 -21
- package/vue2/lib/edge/index-cb2684cd.cjs +0 -32
- package/vue2/lib/node/enable-editor-f87e3e48.cjs +0 -1
- package/vue2/lib/node/evaluate-043734e5.cjs +0 -1
- package/vue2/lib/node/evaluate-b309ef11.js +0 -81
- package/vue2/lib/node/get-processed-block-28afdbdd.js +0 -58
- package/vue2/lib/node/get-processed-block-cb418829.cjs +0 -1
- package/vue2/lib/node/index-7b952a40.cjs +0 -32
- package/vue3/lib/browser/component-ref.5446db23.cjs +0 -1
- package/vue3/lib/browser/index.403011b1.cjs +0 -69
- package/vue3/lib/edge/component-ref.94b009f1.cjs +0 -1
- package/vue3/lib/edge/index.61c09215.cjs +0 -89
- package/vue3/lib/node/block-wrapper.c00ddfcb.cjs +0 -1
- package/vue3/lib/node/component-ref.5446db23.cjs +0 -1
- package/vue3/lib/node/index.403011b1.cjs +0 -69
- package/vue3/lib/node/repeated-block.2245fce7.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { n as u, i as y, b as x, B as v, C as
|
|
2
|
+
import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as R, j as f, s as g, T as F, k as E } from "./index-7ce12494.js";
|
|
3
3
|
const V = {
|
|
4
4
|
name: "Core:Button",
|
|
5
5
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -212,7 +212,7 @@ const V = {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
const n = e.get("columns");
|
|
215
|
-
Array.isArray(n) && n.find((
|
|
215
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((r, s) => r + s.get("width"), 0) !== 100) && t();
|
|
216
216
|
}
|
|
217
217
|
}, {
|
|
218
218
|
name: "space",
|
|
@@ -234,13 +234,13 @@ const V = {
|
|
|
234
234
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
235
235
|
advanced: !0
|
|
236
236
|
}]
|
|
237
|
-
},
|
|
237
|
+
}, W = {
|
|
238
238
|
name: "Fragment",
|
|
239
239
|
static: !0,
|
|
240
240
|
hidden: !0,
|
|
241
241
|
canHaveChildren: !0,
|
|
242
242
|
noWrap: !0
|
|
243
|
-
},
|
|
243
|
+
}, $ = {
|
|
244
244
|
name: "Image",
|
|
245
245
|
static: !0,
|
|
246
246
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -260,7 +260,7 @@ const V = {
|
|
|
260
260
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
261
261
|
onChange: (e) => {
|
|
262
262
|
e.delete("srcset"), e.delete("noWebp");
|
|
263
|
-
function n(
|
|
263
|
+
function n(i, r = 6e4) {
|
|
264
264
|
return new Promise((s, c) => {
|
|
265
265
|
const d = document.createElement("img");
|
|
266
266
|
let m = !1;
|
|
@@ -268,21 +268,21 @@ const V = {
|
|
|
268
268
|
m = !0, s(d);
|
|
269
269
|
}, d.addEventListener("error", (h) => {
|
|
270
270
|
console.warn("Image load failed", h.error), c(h.error);
|
|
271
|
-
}), d.src =
|
|
271
|
+
}), d.src = i, setTimeout(() => {
|
|
272
272
|
m || c(new Error("Image load timed out"));
|
|
273
273
|
}, r);
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
function a(
|
|
277
|
-
return Math.round(
|
|
276
|
+
function a(i) {
|
|
277
|
+
return Math.round(i * 1e3) / 1e3;
|
|
278
278
|
}
|
|
279
|
-
const
|
|
280
|
-
if (fetch(
|
|
281
|
-
|
|
282
|
-
}),
|
|
283
|
-
return n(
|
|
279
|
+
const o = e.get("image"), l = e.get("aspectRatio");
|
|
280
|
+
if (fetch(o).then((i) => i.blob()).then((i) => {
|
|
281
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
282
|
+
}), o && (!l || l === 0.7041))
|
|
283
|
+
return n(o).then((i) => {
|
|
284
284
|
const r = e.get("aspectRatio");
|
|
285
|
-
e.get("image") ===
|
|
285
|
+
e.get("image") === o && (!r || r === 0.7041) && i.width && i.height && (e.set("aspectRatio", a(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
}, {
|
|
@@ -643,36 +643,34 @@ const X = G.exports, Q = {
|
|
|
643
643
|
return { scriptsInserted: [], scriptsRun: [] };
|
|
644
644
|
},
|
|
645
645
|
mounted() {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
} catch (a) {
|
|
670
|
-
console.warn("`CustomCode`: Error running script:", a);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
646
|
+
var t;
|
|
647
|
+
if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
648
|
+
return;
|
|
649
|
+
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
650
|
+
for (let n = 0; n < e.length; n++) {
|
|
651
|
+
const a = e[n];
|
|
652
|
+
if (a.src) {
|
|
653
|
+
if (this.scriptsInserted.includes(a.src))
|
|
654
|
+
continue;
|
|
655
|
+
this.scriptsInserted.push(a.src);
|
|
656
|
+
const o = document.createElement("script");
|
|
657
|
+
o.async = !0, o.src = a.src, document.head.appendChild(o);
|
|
658
|
+
} else if (!a.type || [
|
|
659
|
+
"text/javascript",
|
|
660
|
+
"application/javascript",
|
|
661
|
+
"application/ecmascript"
|
|
662
|
+
].includes(a.type)) {
|
|
663
|
+
if (this.scriptsRun.includes(a.innerText))
|
|
664
|
+
continue;
|
|
665
|
+
try {
|
|
666
|
+
this.scriptsRun.push(a.innerText), new Function(a.innerText)();
|
|
667
|
+
} catch (o) {
|
|
668
|
+
console.warn("`CustomCode`: Error running script:", o);
|
|
673
669
|
}
|
|
674
670
|
}
|
|
675
|
-
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
methods: {
|
|
676
674
|
_classStringToObject(e) {
|
|
677
675
|
const t = {};
|
|
678
676
|
if (typeof e != "string")
|
|
@@ -686,7 +684,7 @@ const X = G.exports, Q = {
|
|
|
686
684
|
});
|
|
687
685
|
var ee = function() {
|
|
688
686
|
var t = this, n = t._self._c;
|
|
689
|
-
return t._self._setupProxy, n("div", { ref: "
|
|
687
|
+
return t._self._setupProxy, n("div", { ref: "elementRef", class: t._classStringToObject(
|
|
690
688
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
691
689
|
), domProps: { innerHTML: t._s(t.code) } });
|
|
692
690
|
}, te = [], ne = /* @__PURE__ */ u(
|
|
@@ -725,7 +723,7 @@ const ae = ne.exports, oe = {
|
|
|
725
723
|
component: v,
|
|
726
724
|
...V
|
|
727
725
|
}, {
|
|
728
|
-
component:
|
|
726
|
+
component: _,
|
|
729
727
|
...A
|
|
730
728
|
}, {
|
|
731
729
|
component: ae,
|
|
@@ -734,11 +732,11 @@ const ae = ne.exports, oe = {
|
|
|
734
732
|
component: K,
|
|
735
733
|
...L
|
|
736
734
|
}, {
|
|
737
|
-
component:
|
|
738
|
-
|
|
735
|
+
component: S,
|
|
736
|
+
...W
|
|
739
737
|
}, {
|
|
740
738
|
component: T,
|
|
741
|
-
|
|
739
|
+
...$
|
|
742
740
|
}, {
|
|
743
741
|
component: X,
|
|
744
742
|
...Q
|
|
@@ -759,13 +757,13 @@ const ae = ne.exports, oe = {
|
|
|
759
757
|
data: t,
|
|
760
758
|
locale: n
|
|
761
759
|
}) => {
|
|
762
|
-
var l,
|
|
760
|
+
var l, i, r;
|
|
763
761
|
const a = {};
|
|
764
|
-
(
|
|
762
|
+
(i = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || i.forEach((s) => {
|
|
765
763
|
var c;
|
|
766
764
|
s.name && s.defaultValue !== void 0 && ((c = e == null ? void 0 : e.data) != null && c.state) && e.data.state[s.name] === void 0 && (a[s.name] = s.defaultValue);
|
|
767
765
|
});
|
|
768
|
-
const
|
|
766
|
+
const o = {
|
|
769
767
|
...(r = e == null ? void 0 : e.data) == null ? void 0 : r.state,
|
|
770
768
|
...t,
|
|
771
769
|
...n ? {
|
|
@@ -774,7 +772,7 @@ const ae = ne.exports, oe = {
|
|
|
774
772
|
};
|
|
775
773
|
return {
|
|
776
774
|
...a,
|
|
777
|
-
...
|
|
775
|
+
...o
|
|
778
776
|
};
|
|
779
777
|
}, re = ({
|
|
780
778
|
content: e,
|
|
@@ -786,22 +784,22 @@ const ae = ne.exports, oe = {
|
|
|
786
784
|
...t
|
|
787
785
|
},
|
|
788
786
|
meta: e == null ? void 0 : e.meta
|
|
789
|
-
} : void 0, se = () => import("./index-
|
|
787
|
+
} : void 0, se = () => import("./index-7ce12494.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
790
788
|
throw console.error(
|
|
791
789
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
792
790
|
e
|
|
793
791
|
), e;
|
|
794
|
-
}), le = () => import("./styles-
|
|
792
|
+
}), le = () => import("./styles-6e09a0cc.js").then((e) => e.default).catch((e) => {
|
|
795
793
|
throw console.error(
|
|
796
794
|
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
797
795
|
e
|
|
798
796
|
), e;
|
|
799
|
-
}), ce = () => import("./enable-editor-
|
|
797
|
+
}), ce = () => import("./enable-editor-96dbd852.js").then((e) => e.default).catch((e) => {
|
|
800
798
|
throw console.error(
|
|
801
799
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
802
800
|
e
|
|
803
801
|
), e;
|
|
804
|
-
}), de = () => import("./inlined-script-
|
|
802
|
+
}), de = () => import("./inlined-script-073d04d2.js").then((e) => e.default).catch((e) => {
|
|
805
803
|
throw console.error(
|
|
806
804
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
807
805
|
e
|
|
@@ -833,7 +831,7 @@ const ae = ne.exports, oe = {
|
|
|
833
831
|
data() {
|
|
834
832
|
var e, t;
|
|
835
833
|
return {
|
|
836
|
-
scriptStr:
|
|
834
|
+
scriptStr: R({
|
|
837
835
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
838
836
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
839
837
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -849,11 +847,11 @@ const ae = ne.exports, oe = {
|
|
|
849
847
|
...f,
|
|
850
848
|
...this.customComponents || []
|
|
851
849
|
].reduce(
|
|
852
|
-
(n, { component: a, ...
|
|
850
|
+
(n, { component: a, ...o }) => ({
|
|
853
851
|
...n,
|
|
854
|
-
[
|
|
852
|
+
[o.name]: {
|
|
855
853
|
component: a,
|
|
856
|
-
...g(
|
|
854
|
+
...g(o)
|
|
857
855
|
}
|
|
858
856
|
}),
|
|
859
857
|
{}
|
|
@@ -883,15 +881,15 @@ const ae = ne.exports, oe = {
|
|
|
883
881
|
...f,
|
|
884
882
|
...this.customComponents || []
|
|
885
883
|
].reduce(
|
|
886
|
-
(n, { component: a, ...
|
|
884
|
+
(n, { component: a, ...o }) => ({
|
|
887
885
|
...n,
|
|
888
|
-
[
|
|
886
|
+
[o.name]: g(o)
|
|
889
887
|
}),
|
|
890
888
|
{}
|
|
891
889
|
),
|
|
892
890
|
inheritedStyles: {}
|
|
893
891
|
},
|
|
894
|
-
TARGET:
|
|
892
|
+
TARGET: F
|
|
895
893
|
};
|
|
896
894
|
},
|
|
897
895
|
provide() {
|
|
@@ -909,9 +907,9 @@ const ae = ne.exports, oe = {
|
|
|
909
907
|
}
|
|
910
908
|
});
|
|
911
909
|
var ue = function() {
|
|
912
|
-
var a,
|
|
910
|
+
var a, o, l, i, r, s, c;
|
|
913
911
|
var t = this, n = t._self._c;
|
|
914
|
-
return t._self._setupProxy, n("enable-editor", t._b({ attrs: { content: t.content, model: t.model, context: t.context, apiKey: t.apiKey, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, classNameProp: t.classNameProp, showContent: t.showContent, builderContextSignal: t.builderContextSignal } }, "enable-editor", {}, !1), [t.isSsrAbTest ? [n("inlined-script", { attrs: { scriptStr: t.scriptStr } })] : t._e(), t.TARGET !== "reactNative" ? [n("content-styles", { attrs: { contentId: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (l = (
|
|
912
|
+
return t._self._setupProxy, n("enable-editor", t._b({ attrs: { content: t.content, model: t.model, context: t.context, apiKey: t.apiKey, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, classNameProp: t.classNameProp, showContent: t.showContent, builderContextSignal: t.builderContextSignal } }, "enable-editor", {}, !1), [t.isSsrAbTest ? [n("inlined-script", { attrs: { scriptStr: t.scriptStr } })] : t._e(), t.TARGET !== "reactNative" ? [n("content-styles", { attrs: { contentId: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (l = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : l.cssCode, customFonts: (r = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (s = t.builderContextSignal.content) == null ? void 0 : s.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
|
|
915
913
|
}, me = [], he = /* @__PURE__ */ u(
|
|
916
914
|
pe,
|
|
917
915
|
ue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("./index-cb2684cd.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(r=>r.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(o,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=o,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(o){return Math.round(o*1e3)/1e3}const r=e.get("image"),c=e.get("aspectRatio");if(fetch(r).then(o=>o.blob()).then(o=>{o.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!c||c===.7041))return n(r).then(o=>{const s=e.get("aspectRatio");e.get("image")===r&&(!s||s===.7041)&&o.width&&o.height&&(e.set("aspectRatio",a(o.height/o.width)),e.set("height",o.height),e.set("width",o.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},v={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},S={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},T={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},_={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=i.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:i.isEditing,filterAttrs:i.filterAttrs}}});var P=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},W=[],$=i.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=i.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},f=()=>[{component:i.Button,...g},{component:i.Columns,...b},{component:D,...N},{component:V,...C},{component:i.Fragment,...y},{component:i.Image,...x},{component:U,...j},{component:i.Section,...v},{component:i.Symbol,...S},{component:i.Text,...T},{component:i.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,o,s;const a={};(o=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||o.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const r={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...r}},B=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-cb2684cd.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./styles-f2039a70.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-617a4b09.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./inlined-script-f370acdf.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:i.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:{component:a,...i.serializeComponentInfo(r)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:i.serializeComponentInfo(r)}),{}),inheritedStyles:{}},TARGET:i.TARGET}},provide(){const e=this;return{[i.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,r,c,o,s,l,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(r=t.builderContextSignal.content)==null?void 0:r.data)==null?void 0:c.cssCode,customFonts:(s=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=i.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-ea4df31a.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(o=>o.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(i){return Math.round(i*1e3)/1e3}const o=e.get("image"),c=e.get("aspectRatio");if(fetch(o).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!c||c===.7041))return n(o).then(i=>{const s=e.get("aspectRatio");e.get("image")===o&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},v={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},T={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},S={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},_={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var P=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},W=[],$=r.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const a=e[n];if(a.src){if(this.scriptsInserted.includes(a.src))continue;this.scriptsInserted.push(a.src);const o=document.createElement("script");o.async=!0,o.src=a.src,document.head.appendChild(o)}else if(!a.type||["text/javascript","application/javascript","application/ecmascript"].includes(a.type)){if(this.scriptsRun.includes(a.innerText))continue;try{this.scriptsRun.push(a.innerText),new Function(a.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=r.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:D,...N},{component:V,...C},{component:r.Fragment,...y},{component:r.Image,...x},{component:U,...j},{component:r.Section,...v},{component:r.Symbol,...T},{component:r.Text,...S},{component:r.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,i,s;const a={};(i=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||i.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const o={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...o}},B=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-ea4df31a.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./styles-96606872.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-8c4e460a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./inlined-script-dccfb7fc.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:a,...o})=>({...n,[o.name]:{component:a,...r.serializeComponentInfo(o)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:a,...o})=>({...n,[o.name]:r.serializeComponentInfo(o)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,o,c,i,s,l,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:c.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-7ce12494.js";
|
|
2
2
|
const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
|
|
3
3
|
if (typeof e == "string")
|
|
4
4
|
return `${c(r)}: ${e};`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-ea4df31a.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
|
|
2
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),m=require("./evaluate-45bac138.cjs"),r=require("./index-ea4df31a.cjs"),v="0.7.1-1",x=()=>{r.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let f=!1;const R=(n={})=>{var e,t;f||(f=!0,r.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:r.TARGET,version:v,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:n}},"*"),window.addEventListener("message",({data:i})=>{var o,s;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const a=i.data.text,l=i.data.arguments||[],c=i.data.id,C=new Function(a);let d,u=null;try{d=C.apply(null,l)}catch(h){u=h}u?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:c,error:u.message}},"*"):d&&typeof d.then=="function"?d.then(h=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:c,result:h}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:d,id:c}},"*");break}}})))};function g(n){return Math.round(n*1e3)/1e3}const k=(n,e,t=!0)=>{if(!(n instanceof HTMLElement))return null;let i=t?n:n.parentElement;do{if(!i)return null;if(e(i))return i}while(i=i.parentElement);return null},w=n=>k(n,e=>{const t=e.getAttribute("builder-id")||e.id;return(t==null?void 0:t.indexOf("builder-"))===0}),b=({event:n,target:e})=>{const t=e.getBoundingClientRect(),i=n.clientX-t.left,o=n.clientY-t.top,s=g(i/t.width),a=g(o/t.height);return{x:s,y:a}},y=n=>{const e=n.target,t=e&&w(e),i=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:e?b({event:n,target:e}):void 0,builderTargetOffset:t?b({event:n,target:t}):void 0,builderElementIndex:t&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(t):void 0}}},_=S.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent","classNameProp"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:r.builderContext}},provide(){const n=this;return{[r.builderContext.key]:n.builderContextSignal}},mounted(){(()=>{var t,i;if(r.isBrowser()){if(r.isEditing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&r.getDefaultCanTrack(this.canTrack)){const s=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,a=(i=this.builderContextSignal.content)==null?void 0:i.id,l=this.apiKey;r._track({type:"impression",canTrack:!0,contentId:a,apiKey:l,variationId:s!==a?s:void 0})}r.isPreviewing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||r.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){r.isBrowser()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(n){var t,i,o,s,a;const e={...this.builderContextSignal.content,...n,data:{...(t=this.builderContextSignal.content)==null?void 0:t.data,...n==null?void 0:n.data},meta:{...(i=this.builderContextSignal.content)==null?void 0:i.meta,...n==null?void 0:n.meta,breakpoints:((o=n==null?void 0:n.meta)==null?void 0:o.breakpoints)||((a=(s=this.builderContextSignal.content)==null?void 0:s.meta)==null?void 0:a.breakpoints)}};this.builderContextSignal.content=e},processMessage(n){var t;const{data:e}=n;if(e)switch(e.type){case"builder.configureSdk":{const i=e.data,{breakpoints:o,contentId:s}=i;if(!s||s!==((t=this.builderContextSignal.content)==null?void 0:t.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const i=e.data,o=i.key||i.alias||i.entry||i.modelName,s=i.data;o===this.model&&(this.mergeNewContent(s),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,t;const n=(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode;n&&m.evaluate({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(n){var e,t;if(this.builderContextSignal.content){const i=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,o=(t=this.builderContextSignal.content)==null?void 0:t.id;r._track({type:"click",canTrack:r.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...y(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>m.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){r.fetch(n).then(t=>t.json()).then(t=>{var o,s;const i={...this.builderContextSignal.rootState,[e]:t};(s=(o=this.builderContextSignal).rootSetState)==null||s.call(o,i),this.httpReqsData[e]=!0}).catch(t=>{console.error("error fetching dynamic data",n,t)})},runHttpRequests(){var e,t;const n=((t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests)??{};Object.entries(n).forEach(([i,o])=>{if(o&&(!this.httpReqsData[i]||r.isEditing())){const s=this.evalExpression(o);this.handleRequest({url:s,key:i})}})},emitStateUpdate(){r.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:r.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(n){this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),x(),R({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(e=>{var i;const t=r.createRegisterComponentMessage(e);(i=window.parent)==null||i.postMessage(t,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(n){const e=new URL(location.href).searchParams,t=e.get("builder.preview"),i=e.get(`builder.preview.${t}`),o=e.get("apiKey")||e.get("builder.space");t===this.model&&o===this.apiKey&&(!this.content||i===this.content.id)&&r.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(s=>{s&&this.mergeNewContent(s)})},_classStringToObject(n){const e={};if(typeof n!="string")return e;const t=n.trim().split(/\s+/);for(const i of t)e[i]=!0;return e}}});var E=function(){var i;var e=this,t=e._self._c;return e._self._setupProxy,e.builderContextSignal.content?t("div",e._b({key:e.forceReRenderCount,ref:"elementRef",class:e._classStringToObject(e.classNameProp),attrs:{"builder-content-id":(i=e.builderContextSignal.content)==null?void 0:i.id,"builder-model":e.model},on:{click:function(o){return e.onClick(o)},initeditingbldr:function(o){return e.elementRef_onIniteditingbldr(o)},initpreviewingbldr:function(o){return e.elementRef_onInitpreviewingbldr(o)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],M=r.normalizeComponent(_,E,I,!1,null,null,null,null);const U=M.exports;exports.default=U;
|