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