@builder.io/sdk-vue 0.7.0 → 0.7.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/vue2/lib/browser/{block-134a618c.cjs → block-b12c2a9e.cjs} +2 -2
- package/vue2/lib/{node/block-169c0cf4.js → browser/block-d44d5b8a.js} +7 -7
- package/vue2/lib/{node/block-styles-d8839dd9.js → browser/block-styles-b2bcecac.js} +5 -5
- package/vue2/lib/{edge/block-styles-57f025e0.cjs → browser/block-styles-fad43b2e.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-ad23d63e.js → block-wrapper-230a8abf.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-54cd4f6c.cjs → block-wrapper-ecdc5285.cjs} +1 -1
- 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-671e376d.js → browser/blocks-wrapper-37d1fbf5.js} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-be28f72a.cjs → browser/blocks-wrapper-5f4ff269.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-65be9ea0.js → browser/component-ref-25028977.js} +6 -6
- package/vue2/lib/{edge/component-ref-276a92fb.cjs → browser/component-ref-8d39a7f4.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-e0b5be50.cjs} +1 -1
- package/vue2/lib/{edge/content-962ba49d.js → browser/content-e775e1b1.js} +62 -64
- package/vue2/lib/browser/{css-ccd5d9e3.js → css-41c2e31d.js} +1 -1
- package/vue2/lib/browser/{css-2c9ad067.cjs → css-c292bae4.cjs} +1 -1
- package/vue2/lib/browser/{enable-editor-d9f53d7d.js → enable-editor-836e8731.js} +107 -92
- package/vue2/lib/browser/enable-editor-bf828ceb.cjs +1 -0
- package/vue2/lib/browser/evaluate-239c4f2e.js +86 -0
- package/vue2/lib/browser/evaluate-37bcc296.cjs +1 -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/browser/{get-block-actions-7a5e8d90.cjs → get-block-actions-0e6055b8.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-e6c36554.js → browser/get-block-actions-eb308dbc.js} +2 -2
- package/vue2/lib/{node/get-block-properties-088a8d57.cjs → browser/get-block-properties-a17c5ae7.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-fded8311.js → get-block-properties-f1d87f5b.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-cb418829.cjs → get-processed-block-469b6014.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-28afdbdd.js → get-processed-block-dac77b11.js} +2 -2
- package/vue2/lib/browser/index-0daf250a.cjs +32 -0
- package/vue2/lib/{node/index-8b428b10.js → browser/index-2c3e3aa0.js} +382 -367
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +4 -4
- package/vue2/lib/browser/{inlined-script-36c7686b.cjs → inlined-script-17a3e298.cjs} +1 -1
- package/vue2/lib/{edge/inlined-script-45e42092.js → browser/inlined-script-a2ce7e25.js} +1 -1
- package/vue2/lib/{node/inlined-styles-f49a7f1a.cjs → browser/inlined-styles-02129d25.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-48c2284e.js → browser/inlined-styles-25974197.js} +1 -1
- package/vue2/lib/{node/interactive-element-2463f839.cjs → browser/interactive-element-31618273.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-b479db6b.js → browser/interactive-element-95e7ed70.js} +5 -5
- package/vue2/lib/browser/{repeated-block-d5a07fb8.cjs → repeated-block-dc24507b.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-284f31d8.js → browser/repeated-block-df873ea1.js} +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-4803ecb4.js → browser/styles-c0e6af8c.js} +2 -2
- package/vue2/lib/{node/styles-f19bff73.cjs → browser/styles-eb6d5133.cjs} +2 -2
- package/vue2/lib/{node/block-134a618c.cjs → edge/block-6ae253d3.cjs} +2 -2
- package/vue2/lib/{browser/block-169c0cf4.js → edge/block-ee5e6b30.js} +7 -7
- package/vue2/lib/{node/block-styles-dd554acd.cjs → edge/block-styles-0db05976.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-9d313184.js → block-styles-7ddd1160.js} +5 -5
- package/vue2/lib/{node/block-wrapper-ad23d63e.js → edge/block-wrapper-2516c8f0.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-252f3467.cjs → block-wrapper-4a546b0f.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-be115723.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-ba3f831e.js → edge/blocks-wrapper-f30c1e2e.js} +1 -1
- package/vue2/lib/{node/component-ref-7c67cc85.js → edge/component-ref-7ca49e69.js} +6 -6
- package/vue2/lib/{node/component-ref-73bbe275.cjs → edge/component-ref-f5f09e76.cjs} +1 -1
- 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-32e8afd0.js} +62 -64
- package/vue2/lib/{node/content-91d3070e.cjs → edge/content-e389cb08.cjs} +1 -1
- package/vue2/lib/edge/{css-9d2e1bcb.js → css-905123d6.js} +1 -1
- package/vue2/lib/{node/css-2c9ad067.cjs → edge/css-db1fb81d.cjs} +1 -1
- package/vue2/lib/{node/enable-editor-d9f53d7d.js → edge/enable-editor-5339c72b.js} +107 -92
- package/vue2/lib/edge/enable-editor-8460bc4f.cjs +1 -0
- package/vue2/lib/edge/evaluate-7b0fdb29.cjs +21 -0
- package/vue2/lib/edge/{evaluate-becf2384.js → evaluate-8d6921da.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/edge/{get-block-actions-0ed7b9a3.cjs → get-block-actions-ac5cd221.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-e6c36554.js → edge/get-block-actions-eb1322f1.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-088a8d57.cjs → edge/get-block-properties-e45bd13c.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-c460b7ad.js → get-block-properties-fc55bc69.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-fe5c136a.cjs → get-processed-block-3a429bb7.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-23aa8a9f.js → get-processed-block-9e3229f1.js} +2 -2
- package/vue2/lib/edge/{index-8d71df29.js → index-0840538e.js} +382 -367
- package/vue2/lib/edge/index-66f83dfa.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-8ceab368.js} +1 -1
- package/vue2/lib/{node/inlined-script-36c7686b.cjs → edge/inlined-script-9311a8f4.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-411ade32.js → inlined-styles-4826f427.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-f49a7f1a.cjs → edge/inlined-styles-f0c5389f.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-2463f839.cjs → edge/interactive-element-20464160.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-b479db6b.js → edge/interactive-element-a4e1753a.js} +5 -5
- package/vue2/lib/{browser/repeated-block-284f31d8.js → edge/repeated-block-5ff563c4.js} +2 -2
- package/vue2/lib/edge/{repeated-block-8eefee0f.cjs → repeated-block-90ff0a8e.cjs} +1 -1
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-4803ecb4.js → edge/styles-0821e7bd.js} +2 -2
- package/vue2/lib/{browser/styles-f19bff73.cjs → edge/styles-8e148f6b.cjs} +2 -2
- package/vue2/lib/{edge/block-7f6b0f80.cjs → node/block-46a1926a.cjs} +2 -2
- package/vue2/lib/{edge/block-04a014ef.js → node/block-a1bcdc0f.js} +7 -7
- package/vue2/lib/{browser/block-styles-dd554acd.cjs → node/block-styles-34b37b5f.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-d8839dd9.js → node/block-styles-40dfb747.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-e16ccd29.js → node/block-wrapper-02a13832.js} +5 -5
- package/vue2/lib/node/{block-wrapper-54cd4f6c.cjs → block-wrapper-d012bc77.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-051a6973.cjs → blocks-wrapper-111adf2e.cjs} +1 -1
- package/vue2/lib/node/{blocks-wrapper-ba3f831e.js → blocks-wrapper-2cf7c243.js} +1 -1
- package/vue2/lib/{browser/component-ref-7c67cc85.js → node/component-ref-686b70a8.js} +6 -6
- package/vue2/lib/{browser/component-ref-73bbe275.cjs → node/component-ref-8664d291.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-750b77c5.js} +62 -64
- package/vue2/lib/{edge/content-6d81d16f.cjs → node/content-804eb1c1.cjs} +1 -1
- package/vue2/lib/node/{css-ccd5d9e3.js → css-0997fa70.js} +1 -1
- package/vue2/lib/{edge/css-88f2410f.cjs → node/css-698817f7.cjs} +1 -1
- package/vue2/lib/node/enable-editor-4c3b62ba.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-b6040943.js → node/enable-editor-991cf703.js} +107 -92
- package/vue2/lib/node/evaluate-06bae117.js +187 -0
- package/vue2/lib/node/evaluate-fc74c806.cjs +41 -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/node/{get-block-actions-7a5e8d90.cjs → get-block-actions-779fa30b.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-046a80d0.js → node/get-block-actions-9781c926.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-a9ab7e30.cjs → node/get-block-properties-090f2906.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-fded8311.js → get-block-properties-ed8d55a8.js} +2 -2
- package/vue2/lib/node/get-processed-block-267a96eb.js +52 -0
- package/vue2/lib/node/get-processed-block-270c0450.cjs +1 -0
- package/vue2/lib/node/index-55b86b2c.cjs +32 -0
- package/vue2/lib/{browser/index-8b428b10.js → node/index-fe4f9482.js} +382 -367
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +4 -4
- package/vue2/lib/{edge/inlined-script-f370acdf.cjs → node/inlined-script-37af305a.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-de7385eb.js → node/inlined-script-9bf9544a.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-48c2284e.js → node/inlined-styles-7a704065.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-375c218f.cjs → node/inlined-styles-e812d54a.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-0e97e5ad.js → node/interactive-element-a9adc81f.js} +5 -5
- package/vue2/lib/{edge/interactive-element-92851fbe.cjs → node/interactive-element-e940e56b.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-c41268e9.js → node/repeated-block-acab5426.js} +2 -2
- package/vue2/lib/node/{repeated-block-d5a07fb8.cjs → repeated-block-ef2bf12f.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-633d9689.js → node/styles-34c3741a.js} +2 -2
- package/vue2/lib/{edge/styles-f2039a70.cjs → node/styles-93f84a1d.cjs} +2 -2
- package/vue2/package.json +1 -0
- package/vue3/lib/browser/{block-wrapper.c00ddfcb.cjs → block-wrapper.75f65d10.cjs} +1 -1
- package/vue3/lib/{node/block-wrapper.b3297452.js → browser/block-wrapper.eb12cfdc.js} +8 -8
- 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.ce36b7ec.js} +17 -17
- package/vue3/lib/browser/component-ref.f391a5ee.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.f1dcfc47.js → browser/get-block-actions.7c580dff.js} +1 -1
- package/vue3/lib/{edge/get-block-actions.c5c7e487.cjs → browser/get-block-actions.e6dfffe3.cjs} +1 -1
- package/vue3/lib/{node/index.c51504ff.js → browser/index.188d2ee5.js} +826 -795
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.fb1c2a1f.cjs +69 -0
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/browser/{repeated-block.2245fce7.cjs → repeated-block.2431c33d.cjs} +1 -1
- package/vue3/lib/{edge/repeated-block.e2eb73cd.js → browser/repeated-block.7a8762fc.js} +6 -6
- package/vue3/lib/edge/{block-wrapper.6e434dc7.cjs → block-wrapper.0868030f.cjs} +1 -1
- package/vue3/lib/{browser/block-wrapper.b3297452.js → edge/block-wrapper.cab4805b.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.ace67608.js} +17 -17
- package/vue3/lib/edge/component-ref.ae7eec27.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.83fca99e.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.1865148e.js → edge/get-block-actions.cfa7e625.js} +1 -1
- package/vue3/lib/edge/{index.f80ab661.js → index.28b94406.js} +1352 -1293
- package/vue3/lib/edge/index.8e0db5cb.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/edge/{repeated-block.8292d33a.cjs → repeated-block.4515ae00.cjs} +1 -1
- package/vue3/lib/{browser/repeated-block.f6fdedb6.js → edge/repeated-block.4f0522f0.js} +6 -6
- package/vue3/lib/node/block-wrapper.4b048f0a.cjs +1 -0
- package/vue3/lib/{edge/block-wrapper.dad1bb39.js → node/block-wrapper.529d85d5.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/{browser/component-ref.88102d68.js → node/component-ref.3c9a0fb1.js} +18 -17
- package/vue3/lib/node/component-ref.c78bd861.cjs +1 -0
- 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/node/{get-block-actions.1865148e.js → get-block-actions.65678660.js} +1 -1
- package/vue3/lib/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.977f70db.cjs} +1 -1
- package/vue3/lib/{browser/index.c51504ff.js → node/index.1a21f267.js} +977 -852
- package/vue3/lib/node/index.baa2a660.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.04f4039b.js} +7 -6
- package/vue3/lib/node/repeated-block.33e03818.cjs +1 -0
- package/vue3/package.json +1 -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-2c3e3aa0.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-2c3e3aa0.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-c0e6af8c.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-836e8731.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-a2ce7e25.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,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-2c3e3aa0.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-0daf250a.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} {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as k } from "vue";
|
|
2
|
-
import { e as
|
|
3
|
-
import { r as
|
|
4
|
-
const
|
|
5
|
-
|
|
2
|
+
import { e as f } from "./evaluate-239c4f2e.js";
|
|
3
|
+
import { r as w, m as p, T as y, l as g, _ as b, o as S, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as P } from "./index-2c3e3aa0.js";
|
|
4
|
+
const T = "0.7.1-0", K = () => {
|
|
5
|
+
w("insertMenu", {
|
|
6
6
|
name: "_default",
|
|
7
7
|
default: !0,
|
|
8
8
|
items: [{
|
|
@@ -24,14 +24,14 @@ const H = "0.6.4", q = () => {
|
|
|
24
24
|
}]
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
let
|
|
28
|
-
const
|
|
27
|
+
let C = !1;
|
|
28
|
+
const q = (n = {}) => {
|
|
29
29
|
var e, t;
|
|
30
|
-
|
|
30
|
+
C || (C = !0, p() && ((e = window.parent) == null || e.postMessage({
|
|
31
31
|
type: "builder.sdkInfo",
|
|
32
32
|
data: {
|
|
33
|
-
target:
|
|
34
|
-
version:
|
|
33
|
+
target: y,
|
|
34
|
+
version: T,
|
|
35
35
|
supportsPatchUpdates: !1,
|
|
36
36
|
// Supports builder-model="..." attribute which is needed to
|
|
37
37
|
// scope our '+ add block' button styling
|
|
@@ -50,33 +50,33 @@ const K = (n = {}) => {
|
|
|
50
50
|
if (i != null && i.type)
|
|
51
51
|
switch (i.type) {
|
|
52
52
|
case "builder.evaluate": {
|
|
53
|
-
const a = i.data.text,
|
|
54
|
-
let r,
|
|
53
|
+
const a = i.data.text, d = i.data.arguments || [], l = i.data.id, x = new Function(a);
|
|
54
|
+
let r, c = null;
|
|
55
55
|
try {
|
|
56
|
-
r =
|
|
57
|
-
} catch (
|
|
58
|
-
|
|
56
|
+
r = x.apply(null, d);
|
|
57
|
+
} catch (u) {
|
|
58
|
+
c = u;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
c ? (o = window.parent) == null || o.postMessage({
|
|
61
61
|
type: "builder.evaluateError",
|
|
62
62
|
data: {
|
|
63
|
-
id:
|
|
64
|
-
error:
|
|
63
|
+
id: l,
|
|
64
|
+
error: c.message
|
|
65
65
|
}
|
|
66
|
-
}, "*") : r && typeof r.then == "function" ? r.then((
|
|
67
|
-
var
|
|
68
|
-
(
|
|
66
|
+
}, "*") : r && typeof r.then == "function" ? r.then((u) => {
|
|
67
|
+
var m;
|
|
68
|
+
(m = window.parent) == null || m.postMessage({
|
|
69
69
|
type: "builder.evaluateResult",
|
|
70
70
|
data: {
|
|
71
|
-
id:
|
|
72
|
-
result:
|
|
71
|
+
id: l,
|
|
72
|
+
result: u
|
|
73
73
|
}
|
|
74
74
|
}, "*");
|
|
75
75
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
76
76
|
type: "builder.evaluateResult",
|
|
77
77
|
data: {
|
|
78
78
|
result: r,
|
|
79
|
-
id:
|
|
79
|
+
id: l
|
|
80
80
|
}
|
|
81
81
|
}, "*");
|
|
82
82
|
break;
|
|
@@ -84,7 +84,7 @@ const K = (n = {}) => {
|
|
|
84
84
|
}
|
|
85
85
|
})));
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function v(n) {
|
|
88
88
|
return Math.round(n * 1e3) / 1e3;
|
|
89
89
|
}
|
|
90
90
|
const O = (n, e, t = !0) => {
|
|
@@ -101,11 +101,11 @@ const O = (n, e, t = !0) => {
|
|
|
101
101
|
}, N = (n) => O(n, (e) => {
|
|
102
102
|
const t = e.getAttribute("builder-id") || e.id;
|
|
103
103
|
return (t == null ? void 0 : t.indexOf("builder-")) === 0;
|
|
104
|
-
}),
|
|
104
|
+
}), R = ({
|
|
105
105
|
event: n,
|
|
106
106
|
target: e
|
|
107
107
|
}) => {
|
|
108
|
-
const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s =
|
|
108
|
+
const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s = v(i / t.width), a = v(o / t.height);
|
|
109
109
|
return {
|
|
110
110
|
x: s,
|
|
111
111
|
y: a
|
|
@@ -115,11 +115,11 @@ const O = (n, e, t = !0) => {
|
|
|
115
115
|
return {
|
|
116
116
|
targetBuilderElement: i || void 0,
|
|
117
117
|
metadata: {
|
|
118
|
-
targetOffset: e ?
|
|
118
|
+
targetOffset: e ? R({
|
|
119
119
|
event: n,
|
|
120
120
|
target: e
|
|
121
121
|
}) : void 0,
|
|
122
|
-
builderTargetOffset: t ?
|
|
122
|
+
builderTargetOffset: t ? R({
|
|
123
123
|
event: n,
|
|
124
124
|
target: t
|
|
125
125
|
}) : void 0,
|
|
@@ -134,12 +134,12 @@ const O = (n, e, t = !0) => {
|
|
|
134
134
|
"context",
|
|
135
135
|
"canTrack",
|
|
136
136
|
"apiKey",
|
|
137
|
-
"showContent",
|
|
138
|
-
"classNameProp",
|
|
139
|
-
"content",
|
|
140
137
|
"locale",
|
|
141
138
|
"includeRefs",
|
|
142
|
-
"enrich"
|
|
139
|
+
"enrich",
|
|
140
|
+
"content",
|
|
141
|
+
"showContent",
|
|
142
|
+
"classNameProp"
|
|
143
143
|
],
|
|
144
144
|
data() {
|
|
145
145
|
return {
|
|
@@ -148,63 +148,40 @@ const O = (n, e, t = !0) => {
|
|
|
148
148
|
shouldSendResetCookie: !1,
|
|
149
149
|
httpReqsData: {},
|
|
150
150
|
clicked: !1,
|
|
151
|
-
builderContext:
|
|
151
|
+
builderContext: g
|
|
152
152
|
};
|
|
153
153
|
},
|
|
154
154
|
provide() {
|
|
155
155
|
const n = this;
|
|
156
156
|
return {
|
|
157
|
-
[
|
|
157
|
+
[g.key]: n.builderContextSignal
|
|
158
158
|
};
|
|
159
159
|
},
|
|
160
160
|
mounted() {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
this.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const i = E(t);
|
|
180
|
-
(o = window.parent) == null || o.postMessage(i, "*");
|
|
181
|
-
}), window.addEventListener(
|
|
182
|
-
"builder:component:stateChangeListenerActivated",
|
|
183
|
-
this.emitStateUpdate
|
|
184
|
-
)), this.builderContextSignal.content) {
|
|
185
|
-
const t = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (e = this.builderContextSignal.content) == null ? void 0 : e.id;
|
|
186
|
-
g({
|
|
187
|
-
type: "impression",
|
|
188
|
-
canTrack: b(this.canTrack),
|
|
189
|
-
contentId: i,
|
|
190
|
-
apiKey: this.apiKey,
|
|
191
|
-
variationId: t !== i ? t : void 0
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
if (I()) {
|
|
195
|
-
const t = new URL(location.href).searchParams, i = t.get("builder.preview"), o = t.get(
|
|
196
|
-
`builder.preview.${i}`
|
|
197
|
-
), s = t.get("apiKey") || t.get("builder.space");
|
|
198
|
-
i === this.model && s === this.apiKey && (!this.content || o === this.content.id) && U({
|
|
199
|
-
model: this.model,
|
|
200
|
-
apiKey: this.apiKey,
|
|
201
|
-
apiVersion: this.builderContextSignal.apiVersion
|
|
202
|
-
}).then((a) => {
|
|
203
|
-
a && this.mergeNewContent(a);
|
|
204
|
-
});
|
|
161
|
+
(() => {
|
|
162
|
+
var t, i;
|
|
163
|
+
if (p()) {
|
|
164
|
+
if (h() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
165
|
+
new CustomEvent("initeditingbldr")
|
|
166
|
+
), this.builderContextSignal.content && S(this.canTrack)) {
|
|
167
|
+
const s = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, a = (i = this.builderContextSignal.content) == null ? void 0 : i.id, d = this.apiKey;
|
|
168
|
+
b({
|
|
169
|
+
type: "impression",
|
|
170
|
+
canTrack: !0,
|
|
171
|
+
contentId: a,
|
|
172
|
+
apiKey: d,
|
|
173
|
+
variationId: s !== a ? s : void 0
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
M() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
177
|
+
new CustomEvent("initpreviewingbldr")
|
|
178
|
+
);
|
|
205
179
|
}
|
|
206
|
-
|
|
207
|
-
|
|
180
|
+
})(), (() => {
|
|
181
|
+
this.apiKey || H.error(
|
|
182
|
+
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
183
|
+
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
184
|
+
})();
|
|
208
185
|
},
|
|
209
186
|
watch: {
|
|
210
187
|
onUpdateHook0: {
|
|
@@ -235,7 +212,7 @@ const O = (n, e, t = !0) => {
|
|
|
235
212
|
}
|
|
236
213
|
},
|
|
237
214
|
unmounted() {
|
|
238
|
-
|
|
215
|
+
p() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
239
216
|
"builder:component:stateChangeListenerActivated",
|
|
240
217
|
this.emitStateUpdate
|
|
241
218
|
));
|
|
@@ -314,7 +291,7 @@ const O = (n, e, t = !0) => {
|
|
|
314
291
|
evaluateJsCode() {
|
|
315
292
|
var e, t;
|
|
316
293
|
const n = (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.jsCode;
|
|
317
|
-
n &&
|
|
294
|
+
n && f({
|
|
318
295
|
code: n,
|
|
319
296
|
context: this.context || {},
|
|
320
297
|
localState: void 0,
|
|
@@ -326,9 +303,9 @@ const O = (n, e, t = !0) => {
|
|
|
326
303
|
var e, t;
|
|
327
304
|
if (this.builderContextSignal.content) {
|
|
328
305
|
const i = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
|
|
329
|
-
|
|
306
|
+
b({
|
|
330
307
|
type: "click",
|
|
331
|
-
canTrack:
|
|
308
|
+
canTrack: S(this.canTrack),
|
|
332
309
|
contentId: o,
|
|
333
310
|
apiKey: this.apiKey,
|
|
334
311
|
variationId: i !== o ? i : void 0,
|
|
@@ -341,7 +318,7 @@ const O = (n, e, t = !0) => {
|
|
|
341
318
|
evalExpression(n) {
|
|
342
319
|
return n.replace(
|
|
343
320
|
/{{([^}]+)}}/g,
|
|
344
|
-
(e, t) =>
|
|
321
|
+
(e, t) => f({
|
|
345
322
|
code: t,
|
|
346
323
|
context: this.context || {},
|
|
347
324
|
localState: void 0,
|
|
@@ -351,7 +328,7 @@ const O = (n, e, t = !0) => {
|
|
|
351
328
|
);
|
|
352
329
|
},
|
|
353
330
|
handleRequest({ url: n, key: e }) {
|
|
354
|
-
|
|
331
|
+
_(n).then((t) => t.json()).then((t) => {
|
|
355
332
|
var o, s;
|
|
356
333
|
const i = {
|
|
357
334
|
...this.builderContextSignal.rootState,
|
|
@@ -366,7 +343,7 @@ const O = (n, e, t = !0) => {
|
|
|
366
343
|
var e, t;
|
|
367
344
|
const n = ((t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.httpRequests) ?? {};
|
|
368
345
|
Object.entries(n).forEach(([i, o]) => {
|
|
369
|
-
if (o && (!this.httpReqsData[i] ||
|
|
346
|
+
if (o && (!this.httpReqsData[i] || h())) {
|
|
370
347
|
const s = this.evalExpression(o);
|
|
371
348
|
this.handleRequest({
|
|
372
349
|
url: s,
|
|
@@ -376,12 +353,12 @@ const O = (n, e, t = !0) => {
|
|
|
376
353
|
});
|
|
377
354
|
},
|
|
378
355
|
emitStateUpdate() {
|
|
379
|
-
|
|
356
|
+
h() && window.dispatchEvent(
|
|
380
357
|
new CustomEvent(
|
|
381
358
|
"builder:component:stateChange",
|
|
382
359
|
{
|
|
383
360
|
detail: {
|
|
384
|
-
state:
|
|
361
|
+
state: E(this.builderContextSignal.rootState),
|
|
385
362
|
ref: {
|
|
386
363
|
name: this.model
|
|
387
364
|
}
|
|
@@ -390,6 +367,40 @@ const O = (n, e, t = !0) => {
|
|
|
390
367
|
)
|
|
391
368
|
);
|
|
392
369
|
},
|
|
370
|
+
elementRef_onIniteditingbldr(n) {
|
|
371
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), K(), q({
|
|
372
|
+
...this.locale ? {
|
|
373
|
+
locale: this.locale
|
|
374
|
+
} : {},
|
|
375
|
+
...this.includeRefs ? {
|
|
376
|
+
includeRefs: this.includeRefs
|
|
377
|
+
} : {},
|
|
378
|
+
...this.enrich ? {
|
|
379
|
+
enrich: this.enrich
|
|
380
|
+
} : {}
|
|
381
|
+
}), Object.values(
|
|
382
|
+
this.builderContextSignal.componentInfos
|
|
383
|
+
).forEach((e) => {
|
|
384
|
+
var i;
|
|
385
|
+
const t = I(e);
|
|
386
|
+
(i = window.parent) == null || i.postMessage(t, "*");
|
|
387
|
+
}), window.addEventListener(
|
|
388
|
+
"builder:component:stateChangeListenerActivated",
|
|
389
|
+
this.emitStateUpdate
|
|
390
|
+
);
|
|
391
|
+
},
|
|
392
|
+
elementRef_onInitpreviewingbldr(n) {
|
|
393
|
+
const e = new URL(location.href).searchParams, t = e.get("builder.preview"), i = e.get(
|
|
394
|
+
`builder.preview.${t}`
|
|
395
|
+
), o = e.get("apiKey") || e.get("builder.space");
|
|
396
|
+
t === this.model && o === this.apiKey && (!this.content || i === this.content.id) && U({
|
|
397
|
+
model: this.model,
|
|
398
|
+
apiKey: this.apiKey,
|
|
399
|
+
apiVersion: this.builderContextSignal.apiVersion
|
|
400
|
+
}).then((s) => {
|
|
401
|
+
s && this.mergeNewContent(s);
|
|
402
|
+
});
|
|
403
|
+
},
|
|
393
404
|
_classStringToObject(n) {
|
|
394
405
|
const e = {};
|
|
395
406
|
if (typeof n != "string")
|
|
@@ -406,13 +417,17 @@ var L = function() {
|
|
|
406
417
|
var e = this, t = e._self._c;
|
|
407
418
|
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) {
|
|
408
419
|
return e.onClick(o);
|
|
420
|
+
}, initeditingbldr: function(o) {
|
|
421
|
+
return e.elementRef_onIniteditingbldr(o);
|
|
422
|
+
}, initpreviewingbldr: function(o) {
|
|
423
|
+
return e.elementRef_onInitpreviewingbldr(o);
|
|
409
424
|
} } }, "div", {
|
|
410
425
|
...e.showContent ? {} : {
|
|
411
426
|
hidden: !0,
|
|
412
427
|
"aria-hidden": !0
|
|
413
428
|
}
|
|
414
429
|
}, !1), [e._t("default")], 2) : e._e();
|
|
415
|
-
}, B = [], D = /* @__PURE__ */
|
|
430
|
+
}, B = [], D = /* @__PURE__ */ P(
|
|
416
431
|
A,
|
|
417
432
|
L,
|
|
418
433
|
B,
|
|
@@ -422,7 +437,7 @@ var L = function() {
|
|
|
422
437
|
null,
|
|
423
438
|
null
|
|
424
439
|
);
|
|
425
|
-
const
|
|
440
|
+
const J = D.exports;
|
|
426
441
|
export {
|
|
427
|
-
|
|
442
|
+
J as default
|
|
428
443
|
};
|