@builder.io/sdk-vue 0.6.4 → 0.7.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -2
- package/vue2/lib/{node/block-f8ec39b9.cjs → browser/block-b12c2a9e.cjs} +2 -2
- package/vue2/lib/browser/{block-7623343e.js → block-d44d5b8a.js} +7 -7
- package/vue2/lib/{node/block-styles-78f1fc51.js → browser/block-styles-b2bcecac.js} +5 -5
- package/vue2/lib/{edge/block-styles-d41b334a.cjs → browser/block-styles-fad43b2e.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-d129f149.js → block-wrapper-230a8abf.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-04c09786.cjs → block-wrapper-ecdc5285.cjs} +1 -1
- package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/browser/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{edge/blocks-wrapper-d1b2c241.js → browser/blocks-wrapper-37d1fbf5.js} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-c1a59075.cjs → browser/blocks-wrapper-5f4ff269.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-bac7483e.js → browser/component-ref-25028977.js} +6 -6
- package/vue2/lib/{edge/component-ref-f49d33aa.cjs → browser/component-ref-8d39a7f4.cjs} +1 -1
- package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{edge/content-ee5058bf.cjs → browser/content-e0b5be50.cjs} +1 -1
- package/vue2/lib/browser/{content-59001c88.js → content-e775e1b1.js} +66 -68
- package/vue2/lib/browser/{css-5244a373.js → css-41c2e31d.js} +1 -1
- package/vue2/lib/{node/css-e268cc90.cjs → browser/css-c292bae4.cjs} +1 -1
- package/vue2/lib/{node/enable-editor-0ec0fba2.js → browser/enable-editor-836e8731.js} +104 -90
- package/vue2/lib/browser/enable-editor-bf828ceb.cjs +1 -0
- package/vue2/lib/browser/evaluate-239c4f2e.js +86 -0
- package/vue2/lib/browser/evaluate-37bcc296.cjs +1 -0
- package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/browser/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/browser/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/browser/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/browser/{get-block-actions-72575937.cjs → get-block-actions-0e6055b8.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-19c074c1.js → browser/get-block-actions-eb308dbc.js} +2 -2
- package/vue2/lib/{node/get-block-properties-a61a4f44.cjs → browser/get-block-properties-a17c5ae7.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-8bd6705f.js → get-block-properties-f1d87f5b.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-df5bc2af.cjs → get-processed-block-469b6014.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-5ea5ad51.js → browser/get-processed-block-dac77b11.js} +2 -2
- package/vue2/lib/browser/index-0daf250a.cjs +32 -0
- package/vue2/lib/{node/index-cd218de0.js → browser/index-2c3e3aa0.js} +389 -370
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +5 -5
- package/vue2/lib/browser/{inlined-script-b9da40ba.cjs → inlined-script-17a3e298.cjs} +1 -1
- package/vue2/lib/{edge/inlined-script-1c876548.js → browser/inlined-script-a2ce7e25.js} +1 -1
- package/vue2/lib/{node/inlined-styles-86ba9613.cjs → browser/inlined-styles-02129d25.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-cb8ac12b.js → browser/inlined-styles-25974197.js} +1 -1
- package/vue2/lib/{node/interactive-element-7034b3c2.cjs → browser/interactive-element-31618273.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-c2e016e7.js → browser/interactive-element-95e7ed70.js} +5 -5
- package/vue2/lib/browser/{repeated-block-515aea68.cjs → repeated-block-dc24507b.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-82b3437a.js → browser/repeated-block-df873ea1.js} +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-b9bdec6e.js → browser/styles-c0e6af8c.js} +2 -2
- package/vue2/lib/{node/styles-f43008cc.cjs → browser/styles-eb6d5133.cjs} +2 -2
- package/vue2/lib/{browser/block-f8ec39b9.cjs → edge/block-6ae253d3.cjs} +2 -2
- package/vue2/lib/edge/{block-9a136438.js → block-ee5e6b30.js} +7 -7
- package/vue2/lib/{node/block-styles-442c9444.cjs → edge/block-styles-0db05976.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-293e6520.js → block-styles-7ddd1160.js} +5 -5
- package/vue2/lib/{node/block-wrapper-d129f149.js → edge/block-wrapper-2516c8f0.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-e6bc8771.cjs → block-wrapper-4a546b0f.cjs} +1 -1
- package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/edge/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/{browser/blocks-wrapper-ffcf193b.cjs → edge/blocks-wrapper-be115723.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-744d9c88.js → edge/blocks-wrapper-f30c1e2e.js} +1 -1
- package/vue2/lib/{node/component-ref-ad91463a.js → edge/component-ref-7ca49e69.js} +6 -6
- package/vue2/lib/{node/component-ref-c0bc64bb.cjs → edge/component-ref-f5f09e76.cjs} +1 -1
- package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/{content-dd98b5f2.js → content-32e8afd0.js} +66 -68
- package/vue2/lib/{browser/content-6391e001.cjs → edge/content-e389cb08.cjs} +1 -1
- package/vue2/lib/edge/{css-a40d0ce1.js → css-905123d6.js} +1 -1
- package/vue2/lib/{browser/css-e268cc90.cjs → edge/css-db1fb81d.cjs} +1 -1
- package/vue2/lib/{browser/enable-editor-0ec0fba2.js → edge/enable-editor-5339c72b.js} +104 -90
- package/vue2/lib/edge/enable-editor-8460bc4f.cjs +1 -0
- package/vue2/lib/edge/evaluate-7b0fdb29.cjs +21 -0
- package/vue2/lib/edge/{evaluate-5aed4676.js → evaluate-8d6921da.js} +379 -346
- package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/edge/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/edge/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/edge/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/edge/{get-block-actions-877fd5f9.cjs → get-block-actions-ac5cd221.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-19c074c1.js → edge/get-block-actions-eb1322f1.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-a61a4f44.cjs → edge/get-block-properties-e45bd13c.cjs} +1 -1
- package/vue2/lib/edge/{get-block-properties-8b0da7b7.js → get-block-properties-fc55bc69.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-ccaa4214.cjs → get-processed-block-3a429bb7.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-f0bfcc66.js → get-processed-block-9e3229f1.js} +2 -2
- package/vue2/lib/edge/{index-f8dc2e35.js → index-0840538e.js} +389 -370
- package/vue2/lib/edge/index-66f83dfa.cjs +32 -0
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +5 -5
- package/vue2/lib/{node/inlined-script-4f903f8e.js → edge/inlined-script-8ceab368.js} +1 -1
- package/vue2/lib/{node/inlined-script-b9da40ba.cjs → edge/inlined-script-9311a8f4.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-7ebd6646.js → inlined-styles-4826f427.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-86ba9613.cjs → edge/inlined-styles-f0c5389f.cjs} +1 -1
- package/vue2/lib/edge/{interactive-element-3eaf0e7a.cjs → interactive-element-20464160.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-c2e016e7.js → edge/interactive-element-a4e1753a.js} +5 -5
- package/vue2/lib/{browser/repeated-block-82b3437a.js → edge/repeated-block-5ff563c4.js} +2 -2
- package/vue2/lib/edge/{repeated-block-446ae014.cjs → repeated-block-90ff0a8e.cjs} +1 -1
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-b9bdec6e.js → edge/styles-0821e7bd.js} +2 -2
- package/vue2/lib/{browser/styles-f43008cc.cjs → edge/styles-8e148f6b.cjs} +2 -2
- package/vue2/lib/{edge/block-33134063.cjs → node/block-46a1926a.cjs} +2 -2
- package/vue2/lib/node/{block-7623343e.js → block-a1bcdc0f.js} +7 -7
- package/vue2/lib/{browser/block-styles-442c9444.cjs → node/block-styles-34b37b5f.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-78f1fc51.js → node/block-styles-40dfb747.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-2f05e945.js → node/block-wrapper-02a13832.js} +5 -5
- package/vue2/lib/node/{block-wrapper-04c09786.cjs → block-wrapper-d012bc77.cjs} +1 -1
- package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue2/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue2/lib/node/{blocks-wrapper-ffcf193b.cjs → blocks-wrapper-111adf2e.cjs} +1 -1
- package/vue2/lib/node/{blocks-wrapper-744d9c88.js → blocks-wrapper-2cf7c243.js} +1 -1
- package/vue2/lib/{browser/component-ref-ad91463a.js → node/component-ref-686b70a8.js} +6 -6
- package/vue2/lib/{browser/component-ref-c0bc64bb.cjs → node/component-ref-8664d291.cjs} +1 -1
- package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -1
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/{content-59001c88.js → content-750b77c5.js} +66 -68
- package/vue2/lib/node/{content-6391e001.cjs → content-804eb1c1.cjs} +1 -1
- package/vue2/lib/node/{css-5244a373.js → css-0997fa70.js} +1 -1
- package/vue2/lib/{edge/css-6d51b919.cjs → node/css-698817f7.cjs} +1 -1
- package/vue2/lib/node/enable-editor-4c3b62ba.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-aeb1f840.js → node/enable-editor-991cf703.js} +104 -90
- package/vue2/lib/node/evaluate-06bae117.js +187 -0
- package/vue2/lib/node/evaluate-fc74c806.cjs +41 -0
- package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue2/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue2/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue2/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue2/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue2/lib/node/{get-block-actions-72575937.cjs → get-block-actions-779fa30b.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-350bc978.js → node/get-block-actions-9781c926.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-ece4e040.cjs → node/get-block-properties-090f2906.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-8bd6705f.js → get-block-properties-ed8d55a8.js} +2 -2
- package/vue2/lib/node/get-processed-block-267a96eb.js +52 -0
- package/vue2/lib/node/get-processed-block-270c0450.cjs +1 -0
- package/vue2/lib/node/index-55b86b2c.cjs +32 -0
- package/vue2/lib/{browser/index-cd218de0.js → node/index-fe4f9482.js} +389 -370
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +5 -5
- package/vue2/lib/{edge/inlined-script-44721dc7.cjs → node/inlined-script-37af305a.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-4f903f8e.js → node/inlined-script-9bf9544a.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-cb8ac12b.js → node/inlined-styles-7a704065.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-eb80e4fe.cjs → node/inlined-styles-e812d54a.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-64d11339.js → node/interactive-element-a9adc81f.js} +5 -5
- package/vue2/lib/{browser/interactive-element-7034b3c2.cjs → node/interactive-element-e940e56b.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-b9a8feeb.js → node/repeated-block-acab5426.js} +2 -2
- package/vue2/lib/node/{repeated-block-515aea68.cjs → repeated-block-ef2bf12f.cjs} +1 -1
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-cfea6654.js → node/styles-34c3741a.js} +2 -2
- package/vue2/lib/{edge/styles-36552ab4.cjs → node/styles-93f84a1d.cjs} +2 -2
- package/vue2/package.json +2 -0
- package/vue3/lib/browser/{block-wrapper.1501b793.cjs → block-wrapper.75f65d10.cjs} +1 -1
- package/vue3/lib/{edge/block-wrapper.e3b7b422.js → browser/block-wrapper.eb12cfdc.js} +2 -2
- 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.7035b91b.js → browser/component-ref.ce36b7ec.js} +2 -2
- package/vue3/lib/browser/{component-ref.4f5f964f.cjs → component-ref.f391a5ee.cjs} +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -7
- 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.7d762289.js → browser/get-block-actions.7c580dff.js} +1 -1
- package/vue3/lib/{node/get-block-actions.316f88d7.cjs → browser/get-block-actions.e6dfffe3.cjs} +1 -1
- package/vue3/lib/{node/index.67caa0a0.js → browser/index.188d2ee5.js} +673 -640
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.fb1c2a1f.cjs +69 -0
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/browser/{repeated-block.3a15e789.cjs → repeated-block.2431c33d.cjs} +1 -1
- package/vue3/lib/{edge/repeated-block.59223c04.js → browser/repeated-block.7a8762fc.js} +2 -2
- package/vue3/lib/browser/style.css +1 -1
- package/vue3/lib/edge/{block-wrapper.8441fbe1.cjs → block-wrapper.0868030f.cjs} +1 -1
- package/vue3/lib/{node/block-wrapper.d71006fa.js → edge/block-wrapper.cab4805b.js} +2 -2
- 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.104f0d16.js → edge/component-ref.ace67608.js} +2 -2
- package/vue3/lib/{node/component-ref.4f5f964f.cjs → edge/component-ref.ae7eec27.cjs} +1 -1
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -7
- 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/edge/{get-block-actions.37ab332e.cjs → get-block-actions.83fca99e.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.12becb73.js → edge/get-block-actions.cfa7e625.js} +1 -1
- package/vue3/lib/edge/{index.811ded87.js → index.28b94406.js} +1310 -1249
- package/vue3/lib/edge/index.8e0db5cb.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/edge/{repeated-block.2c467c57.cjs → repeated-block.4515ae00.cjs} +1 -1
- package/vue3/lib/{node/repeated-block.ab5e93b5.js → edge/repeated-block.4f0522f0.js} +2 -2
- package/vue3/lib/edge/style.css +1 -1
- package/vue3/lib/node/block-wrapper.4b048f0a.cjs +1 -0
- package/vue3/lib/{browser/block-wrapper.d71006fa.js → node/block-wrapper.529d85d5.js} +9 -8
- package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
- package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
- package/vue3/lib/{browser/component-ref.104f0d16.js → node/component-ref.3c9a0fb1.js} +5 -4
- package/vue3/lib/node/component-ref.c78bd861.cjs +1 -0
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -7
- package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
- package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
- package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
- package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
- package/vue3/lib/node/{get-block-actions.12becb73.js → get-block-actions.65678660.js} +1 -1
- package/vue3/lib/{browser/get-block-actions.316f88d7.cjs → node/get-block-actions.977f70db.cjs} +1 -1
- package/vue3/lib/{browser/index.67caa0a0.js → node/index.1a21f267.js} +845 -718
- package/vue3/lib/node/index.baa2a660.cjs +109 -0
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +27 -26
- package/vue3/lib/{browser/repeated-block.ab5e93b5.js → node/repeated-block.04f4039b.js} +5 -4
- package/vue3/lib/node/repeated-block.33e03818.cjs +1 -0
- package/vue3/lib/node/style.css +1 -1
- package/vue3/package.json +2 -0
- package/vue2/lib/browser/enable-editor-68f3b7d1.cjs +0 -1
- package/vue2/lib/browser/evaluate-81e9d18d.js +0 -81
- package/vue2/lib/browser/evaluate-c6468e7e.cjs +0 -1
- package/vue2/lib/browser/get-processed-block-5ea5ad51.js +0 -58
- package/vue2/lib/browser/index-4480d5e4.cjs +0 -32
- package/vue2/lib/edge/enable-editor-86cc8a4d.cjs +0 -1
- package/vue2/lib/edge/evaluate-16c456b4.cjs +0 -21
- package/vue2/lib/edge/index-df9193d2.cjs +0 -32
- package/vue2/lib/node/enable-editor-68f3b7d1.cjs +0 -1
- package/vue2/lib/node/evaluate-81e9d18d.js +0 -81
- package/vue2/lib/node/evaluate-c6468e7e.cjs +0 -1
- package/vue2/lib/node/get-processed-block-df5bc2af.cjs +0 -1
- package/vue2/lib/node/index-4480d5e4.cjs +0 -32
- package/vue3/lib/browser/index.2b9eb004.cjs +0 -69
- package/vue3/lib/edge/component-ref.40439a7f.cjs +0 -1
- package/vue3/lib/edge/index.db87480a.cjs +0 -89
- package/vue3/lib/node/block-wrapper.1501b793.cjs +0 -1
- package/vue3/lib/node/index.2b9eb004.cjs +0 -69
- package/vue3/lib/node/repeated-block.3a15e789.cjs +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
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
5
|
for (const s in e) {
|
|
5
6
|
if (!e[s] || n && !s.startsWith(t))
|
|
@@ -9,11 +10,11 @@ function K(e = {}, t, n) {
|
|
|
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
33
|
for (const [o, s] of t)
|
|
33
34
|
n[o] = s;
|
|
34
35
|
return n;
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return e.link ? (d(),
|
|
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);
|
|
@@ -86,29 +87,29 @@ const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225
|
|
|
86
87
|
min: r,
|
|
87
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
102
|
function _() {
|
|
102
|
-
return
|
|
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,7 +145,14 @@ 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,
|
|
@@ -153,15 +161,15 @@ const Xe = () => {
|
|
|
153
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, {
|
|
@@ -173,7 +181,107 @@ function tt(e, t, n) {
|
|
|
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,
|
|
@@ -187,13 +295,10 @@ function M({
|
|
|
187
295
|
return;
|
|
188
296
|
}
|
|
189
297
|
const a = {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}, u = {
|
|
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
303
|
event: r,
|
|
199
304
|
rootSetState: s,
|
|
@@ -201,21 +306,15 @@ function M({
|
|
|
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((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;
|
|
217
|
-
};
|
|
218
|
-
const ot = ({
|
|
317
|
+
const Ct = ({
|
|
219
318
|
block: e,
|
|
220
319
|
context: t,
|
|
221
320
|
localState: n,
|
|
@@ -224,7 +323,7 @@ const ot = ({
|
|
|
224
323
|
}) => {
|
|
225
324
|
if (!e.bindings)
|
|
226
325
|
return e;
|
|
227
|
-
const r =
|
|
326
|
+
const r = N(e), i = {
|
|
228
327
|
...r,
|
|
229
328
|
properties: {
|
|
230
329
|
...r.properties
|
|
@@ -234,18 +333,18 @@ const ot = ({
|
|
|
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
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,
|
|
@@ -254,7 +353,7 @@ function L({
|
|
|
254
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
359
|
rootState: s,
|
|
@@ -262,37 +361,37 @@ function L({
|
|
|
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 st = (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
|
-
((
|
|
413
|
+
}), t = e.responsiveStyles, n = this.context.content, o = Te(
|
|
414
|
+
((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
|
|
316
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
420
|
styles: s
|
|
322
|
-
}) : "",
|
|
421
|
+
}) : "", l = r ? Y({
|
|
323
422
|
className: a,
|
|
324
423
|
styles: r,
|
|
325
|
-
mediaQuery:
|
|
424
|
+
mediaQuery: ue(
|
|
326
425
|
"medium",
|
|
327
426
|
o
|
|
328
427
|
)
|
|
329
|
-
}) : "", u = i ?
|
|
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 ? (d(),
|
|
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,13 +456,13 @@ function ut(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
464
|
var r;
|
|
366
|
-
const o = (r =
|
|
465
|
+
const o = (r = D({
|
|
367
466
|
block: e,
|
|
368
467
|
localState: t.localState,
|
|
369
468
|
rootState: t.rootState,
|
|
@@ -379,7 +478,7 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
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,7 +488,7 @@ 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 s =
|
|
491
|
+
const s = z({
|
|
393
492
|
code: n.collection,
|
|
394
493
|
localState: t.localState,
|
|
395
494
|
rootState: t.rootState,
|
|
@@ -399,67 +498,67 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
399
498
|
if (!Array.isArray(s))
|
|
400
499
|
return;
|
|
401
500
|
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
|
|
402
|
-
return s.map((
|
|
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.04f4039b.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.3c9a0fb1.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.529d85d5.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,
|
|
@@ -484,7 +583,7 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
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
|
|
@@ -499,54 +598,54 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
499
598
|
}
|
|
500
599
|
}
|
|
501
600
|
});
|
|
502
|
-
function
|
|
503
|
-
var
|
|
504
|
-
const i =
|
|
505
|
-
return e.canShowBlock ? (d(),
|
|
506
|
-
(
|
|
507
|
-
e.isEmptyHtmlElement(e.Tag) ? (d(),
|
|
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 ? (d(!0),
|
|
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 ? (d(),
|
|
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
|
-
V(
|
|
529
|
-
(d(!0),
|
|
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
|
-
(d(!0),
|
|
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: {
|
|
@@ -593,10 +692,10 @@ const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/Users/samijaber/c
|
|
|
593
692
|
}
|
|
594
693
|
}
|
|
595
694
|
});
|
|
596
|
-
const
|
|
597
|
-
function
|
|
598
|
-
return d(),
|
|
599
|
-
class: e._classStringToObject(e.className + " div-
|
|
695
|
+
const Lt = ["builder-path", "builder-parent-id"];
|
|
696
|
+
function Kt(e, t, n, o, s, r) {
|
|
697
|
+
return d(), h("div", I({
|
|
698
|
+
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
600
699
|
"builder-path": e.path,
|
|
601
700
|
"builder-parent-id": e.parent,
|
|
602
701
|
style: e.styleProp,
|
|
@@ -604,10 +703,10 @@ function $t(e, t, n, o, s, r) {
|
|
|
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 d(),
|
|
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 ? (d(!0),
|
|
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 ? (d(!0),
|
|
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", "/Users/samijaber/c
|
|
|
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: {
|
|
@@ -774,7 +873,7 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/Users/samijaber/c
|
|
|
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", "/Users/samijaber/c
|
|
|
789
888
|
}
|
|
790
889
|
}
|
|
791
890
|
});
|
|
792
|
-
function
|
|
793
|
-
const i =
|
|
794
|
-
return d(),
|
|
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" ? (d(),
|
|
899
|
+
e.TARGET !== "reactNative" ? (d(), C(i, {
|
|
801
900
|
key: 0,
|
|
802
901
|
styles: e.columnsStyles
|
|
803
|
-
}, null, 8, ["styles"])) :
|
|
804
|
-
(d(!0),
|
|
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
908
|
V(a, {
|
|
810
|
-
path: `component.options.columns.${
|
|
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 d(),
|
|
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
|
|
934
|
+
function tn(e = "", t, n) {
|
|
836
935
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
|
|
837
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
945
|
const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
|
|
847
|
-
return
|
|
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((s) => s !== o).map((s) => `${
|
|
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 Nt = 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 Nt = 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 d(),
|
|
925
|
-
|
|
926
|
-
e.webpSrcSet ? (d(),
|
|
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, s, r) {
|
|
|
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) ? (d(),
|
|
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 ? (d(),
|
|
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 d(),
|
|
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,51 +1080,51 @@ function zt(e, t, n, o, s, r) {
|
|
|
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 (u &&
|
|
1117
|
+
const l = `builder.tests.${e}`, u = c(l), f = t.map((b) => b.id).concat(e);
|
|
1118
|
+
if (u && f.includes(u))
|
|
1020
1119
|
return u;
|
|
1021
|
-
let
|
|
1022
|
-
const
|
|
1023
|
-
for (let
|
|
1024
|
-
const
|
|
1025
|
-
if (
|
|
1026
|
-
return a(
|
|
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
1129
|
const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
1031
1130
|
if (n) {
|
|
@@ -1035,27 +1134,27 @@ function Gt(e, t, n) {
|
|
|
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 u =
|
|
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 s = `builder.tests.${t}`, r = o(s), i = (
|
|
1157
|
+
const s = `builder.tests.${t}`, r = o(s), i = (c = document.currentScript) == null ? void 0 : c.parentElement, a = e === t;
|
|
1059
1158
|
if (r === e) {
|
|
1060
1159
|
if (a)
|
|
1061
1160
|
return;
|
|
@@ -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((s) => s.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a,
|
|
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,15 +1434,15 @@ 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((
|
|
1437
|
+
return new Promise((c, l) => {
|
|
1339
1438
|
const u = document.createElement("img");
|
|
1340
|
-
let
|
|
1439
|
+
let f = !1;
|
|
1341
1440
|
u.onload = () => {
|
|
1342
|
-
|
|
1343
|
-
}, u.addEventListener("error", (
|
|
1344
|
-
console.warn("Image load failed",
|
|
1441
|
+
f = !0, c(u);
|
|
1442
|
+
}, u.addEventListener("error", (m) => {
|
|
1443
|
+
console.warn("Image load failed", m.error), l(m.error);
|
|
1345
1444
|
}), u.src = i, setTimeout(() => {
|
|
1346
|
-
|
|
1445
|
+
f || l(new Error("Image load timed out"));
|
|
1347
1446
|
}, a);
|
|
1348
1447
|
});
|
|
1349
1448
|
}
|
|
@@ -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 d(),
|
|
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 un = /* @__PURE__ */ g(ln, [["render", dn], ["__file", "/Users/samijaber/c
|
|
|
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 un = /* @__PURE__ */ g(ln, [["render", dn], ["__file", "/Users/samijaber/c
|
|
|
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 d(),
|
|
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, s, r) {
|
|
|
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", "/Users/samijaber/c
|
|
|
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", "/Users/samijaber/c
|
|
|
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", "/Users/samijaber/c
|
|
|
1725
1824
|
}
|
|
1726
1825
|
}
|
|
1727
1826
|
}
|
|
1728
|
-
}),
|
|
1729
|
-
function
|
|
1730
|
-
return d(),
|
|
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", "/Users/samijaber/c
|
|
|
1744
1843
|
"attributes"
|
|
1745
1844
|
],
|
|
1746
1845
|
data() {
|
|
1747
|
-
return { isEditing: _, filterAttrs:
|
|
1846
|
+
return { isEditing: _, filterAttrs: q };
|
|
1748
1847
|
}
|
|
1749
|
-
}),
|
|
1750
|
-
function
|
|
1751
|
-
return d(),
|
|
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, s, r) {
|
|
|
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", "/Users/samijaber/c
|
|
|
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", "/Users/samijaber/c
|
|
|
1818
1915
|
return t;
|
|
1819
1916
|
}
|
|
1820
1917
|
}
|
|
1821
|
-
}),
|
|
1822
|
-
function
|
|
1823
|
-
return d(),
|
|
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,55 +1949,55 @@ const jn = /* @__PURE__ */ g(En, [["render", An], ["__file", "/Users/samijaber/c
|
|
|
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
|
-
...
|
|
1995
|
+
...N(t),
|
|
1899
1996
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
|
|
1900
1997
|
...o,
|
|
1901
|
-
[s]:
|
|
1998
|
+
[s]: to(r)
|
|
1902
1999
|
}), {}))
|
|
1903
|
-
}),
|
|
2000
|
+
}), no = (e) => {
|
|
1904
2001
|
var r, i;
|
|
1905
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;
|
|
1906
2003
|
let s = "";
|
|
@@ -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
2025
|
return s;
|
|
1929
|
-
},
|
|
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,20 +2062,20 @@ ${Nn({
|
|
|
1965
2062
|
};
|
|
1966
2063
|
}
|
|
1967
2064
|
});
|
|
1968
|
-
function
|
|
1969
|
-
const i =
|
|
1970
|
-
return d(),
|
|
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
2074
|
var r, i, a;
|
|
1978
2075
|
const o = {};
|
|
1979
|
-
(i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((
|
|
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
2080
|
const s = {
|
|
1984
2081
|
...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
|
|
@@ -1991,7 +2088,7 @@ const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/Users/samijaber/c
|
|
|
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", "/Users/samijaber/c
|
|
|
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 s = (
|
|
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,7 +2141,7 @@ const Re = Dn(), qn = (e) => {
|
|
|
2044
2141
|
try {
|
|
2045
2142
|
if (!o)
|
|
2046
2143
|
return;
|
|
2047
|
-
const s =
|
|
2144
|
+
const s = bo({
|
|
2048
2145
|
name: e,
|
|
2049
2146
|
value: t,
|
|
2050
2147
|
expires: n
|
|
@@ -2054,88 +2151,88 @@ const Re = Dn(), qn = (e) => {
|
|
|
2054
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 =
|
|
2206
|
+
t && ((o = ze()) == null || o.setItem(e, n));
|
|
2110
2207
|
} catch (s) {
|
|
2111
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,16 +2240,16 @@ const Ve = "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,
|
|
@@ -2166,23 +2263,23 @@ const Ve = "builderSessionId", Qn = async ({
|
|
|
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 Y(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-0", 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: {
|
|
@@ -2213,8 +2310,8 @@ function co(e, t) {
|
|
|
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
|
|
@@ -2260,33 +2357,33 @@ const po = (e = {}) => {
|
|
|
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 u,
|
|
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
|
-
u =
|
|
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
|
-
}, "*") : u && typeof u.then == "function" ? u.then((
|
|
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
2382
|
}).catch(console.error) : (r = window.parent) == null || r.postMessage({
|
|
2286
2383
|
type: "builder.evaluateResult",
|
|
2287
2384
|
data: {
|
|
2288
2385
|
result: u,
|
|
2289
|
-
id:
|
|
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,52 +2405,52 @@ 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, s = e.clientY - n.top, r =
|
|
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
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
|
}) => {
|
|
@@ -2366,15 +2463,15 @@ const mo = (e, t, n = !0) => {
|
|
|
2366
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,18 +2507,18 @@ 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
|
-
}), s =
|
|
2521
|
+
}), s = Je({
|
|
2425
2522
|
item: e,
|
|
2426
2523
|
testGroupId: o
|
|
2427
2524
|
});
|
|
@@ -2429,89 +2526,107 @@ const mo = (e, t, n = !0) => {
|
|
|
2429
2526
|
...e,
|
|
2430
2527
|
...s
|
|
2431
2528
|
};
|
|
2432
|
-
},
|
|
2433
|
-
function
|
|
2529
|
+
}, M = (e) => A(e) ? e : !0;
|
|
2530
|
+
function H(e, t = null, n = ".") {
|
|
2434
2531
|
return Object.keys(e).reduce((o, s) => {
|
|
2435
2532
|
const r = e[s], i = [t, s].filter(Boolean).join(n);
|
|
2436
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
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 s = o.replace(
|
|
2552
|
+
if (o.startsWith(ke)) {
|
|
2553
|
+
const s = o.replace(ke, "").replace(Lo, "");
|
|
2457
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) => {
|
|
2563
|
+
let {
|
|
2564
|
+
noTraverse: t = !1
|
|
2565
|
+
} = e;
|
|
2466
2566
|
const {
|
|
2467
|
-
limit:
|
|
2468
|
-
userAttributes:
|
|
2469
|
-
query:
|
|
2470
|
-
noTraverse: s = !1,
|
|
2567
|
+
limit: n = 30,
|
|
2568
|
+
userAttributes: o,
|
|
2569
|
+
query: s,
|
|
2471
2570
|
model: r,
|
|
2472
2571
|
apiKey: i,
|
|
2473
2572
|
includeRefs: a = !0,
|
|
2474
|
-
enrich:
|
|
2475
|
-
locale:
|
|
2476
|
-
apiVersion: u =
|
|
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
|
|
2477
2583
|
} = e;
|
|
2478
2584
|
if (!i)
|
|
2479
2585
|
throw new Error("Missing API key");
|
|
2480
2586
|
if (!["v2", "v3"].includes(u))
|
|
2481
2587
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
p.searchParams.set(k, String(f[k]));
|
|
2488
|
-
if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
2489
|
-
const k = Q({
|
|
2490
|
-
query: o
|
|
2588
|
+
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2589
|
+
const g = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
|
|
2590
|
+
if (g.searchParams.set("omit", m || "meta.componentsUsed"), f && g.searchParams.set("fields", f), Number.isFinite(p) && p > -1 && g.searchParams.set("offset", String(Math.floor(p))), typeof E == "boolean" && g.searchParams.set("includeUnpublished", String(E)), b && ve(b) && g.searchParams.set("cacheSeconds", String(b)), S && ve(S) && g.searchParams.set("staleCacheSeconds", String(S)), T) {
|
|
2591
|
+
const P = H({
|
|
2592
|
+
sort: T
|
|
2491
2593
|
});
|
|
2492
|
-
for (const
|
|
2493
|
-
|
|
2594
|
+
for (const O in P)
|
|
2595
|
+
g.searchParams.set(O, JSON.stringify(P[O]));
|
|
2494
2596
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
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({
|
|
2499
2614
|
...e,
|
|
2500
2615
|
limit: 1
|
|
2501
2616
|
});
|
|
2502
2617
|
return t && t.results[0] || null;
|
|
2503
2618
|
}
|
|
2504
|
-
const
|
|
2505
|
-
const t =
|
|
2506
|
-
return await (await
|
|
2507
|
-
},
|
|
2508
|
-
const o =
|
|
2509
|
-
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"))
|
|
2510
2625
|
return t;
|
|
2511
2626
|
try {
|
|
2512
2627
|
const s = [];
|
|
2513
2628
|
for (const r of t.results)
|
|
2514
|
-
s.push(await
|
|
2629
|
+
s.push(await Wo({
|
|
2515
2630
|
item: r,
|
|
2516
2631
|
canTrack: o
|
|
2517
2632
|
}));
|
|
@@ -2521,10 +2636,10 @@ const Jo = z, Ro = async (e) => {
|
|
|
2521
2636
|
}
|
|
2522
2637
|
return t;
|
|
2523
2638
|
};
|
|
2524
|
-
async function
|
|
2639
|
+
async function Qe(e) {
|
|
2525
2640
|
try {
|
|
2526
|
-
const t =
|
|
2527
|
-
return
|
|
2641
|
+
const t = re(e), n = await qo(e);
|
|
2642
|
+
return Do(n) ? Go(e, n) : (x.error("Error fetching data. ", {
|
|
2528
2643
|
url: t,
|
|
2529
2644
|
content: n,
|
|
2530
2645
|
options: e
|
|
@@ -2533,90 +2648,66 @@ async function Me(e) {
|
|
|
2533
2648
|
return x.error("Error fetching data. ", t), null;
|
|
2534
2649
|
}
|
|
2535
2650
|
}
|
|
2536
|
-
const
|
|
2537
|
-
function
|
|
2538
|
-
return
|
|
2651
|
+
const bs = Qe;
|
|
2652
|
+
function Jo() {
|
|
2653
|
+
return !$() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2539
2654
|
}
|
|
2540
|
-
const
|
|
2655
|
+
const Yo = y({
|
|
2541
2656
|
name: "enable-editor",
|
|
2542
2657
|
props: [
|
|
2543
|
-
"canTrack",
|
|
2544
2658
|
"builderContextSignal",
|
|
2545
2659
|
"model",
|
|
2546
2660
|
"context",
|
|
2661
|
+
"canTrack",
|
|
2547
2662
|
"apiKey",
|
|
2548
|
-
"showContent",
|
|
2549
|
-
"classNameProp",
|
|
2550
|
-
"content",
|
|
2551
2663
|
"locale",
|
|
2552
2664
|
"includeRefs",
|
|
2553
|
-
"enrich"
|
|
2665
|
+
"enrich",
|
|
2666
|
+
"content",
|
|
2667
|
+
"showContent",
|
|
2668
|
+
"classNameProp"
|
|
2554
2669
|
],
|
|
2555
2670
|
data() {
|
|
2556
2671
|
return {
|
|
2557
|
-
canTrackToUse: E(this.canTrack) ? this.canTrack : !0,
|
|
2558
2672
|
forceReRenderCount: 0,
|
|
2559
2673
|
lastUpdated: 0,
|
|
2560
2674
|
shouldSendResetCookie: !1,
|
|
2561
2675
|
httpReqsData: {},
|
|
2562
2676
|
clicked: !1,
|
|
2563
|
-
builderContext:
|
|
2677
|
+
builderContext: Z
|
|
2564
2678
|
};
|
|
2565
2679
|
},
|
|
2566
2680
|
provide() {
|
|
2567
2681
|
const e = this;
|
|
2568
2682
|
return {
|
|
2569
|
-
[
|
|
2683
|
+
[Z.key]: e.builderContextSignal
|
|
2570
2684
|
};
|
|
2571
2685
|
},
|
|
2572
2686
|
mounted() {
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
this.
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
const o = Bn(n);
|
|
2592
|
-
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2593
|
-
}), window.addEventListener(
|
|
2594
|
-
"builder:component:stateChangeListenerActivated",
|
|
2595
|
-
this.emitStateUpdate
|
|
2596
|
-
)), this.builderContextSignal.content) {
|
|
2597
|
-
const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
|
|
2598
|
-
Y({
|
|
2599
|
-
type: "impression",
|
|
2600
|
-
canTrack: this.canTrackToUse,
|
|
2601
|
-
contentId: o,
|
|
2602
|
-
apiKey: this.apiKey,
|
|
2603
|
-
variationId: n !== o ? n : void 0
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
2606
|
-
if (_o()) {
|
|
2607
|
-
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get(
|
|
2608
|
-
`builder.preview.${o}`
|
|
2609
|
-
), r = n.get("apiKey") || n.get("builder.space");
|
|
2610
|
-
o === this.model && r === this.apiKey && (!this.content || s === this.content.id) && z({
|
|
2611
|
-
model: this.model,
|
|
2612
|
-
apiKey: this.apiKey,
|
|
2613
|
-
apiVersion: this.builderContextSignal.apiVersion
|
|
2614
|
-
}).then((i) => {
|
|
2615
|
-
i && this.mergeNewContent(i);
|
|
2616
|
-
});
|
|
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
|
+
);
|
|
2617
2705
|
}
|
|
2618
|
-
|
|
2619
|
-
|
|
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
|
+
})();
|
|
2620
2711
|
},
|
|
2621
2712
|
watch: {
|
|
2622
2713
|
onUpdateHook0: {
|
|
@@ -2647,7 +2738,7 @@ const Ao = b({
|
|
|
2647
2738
|
}
|
|
2648
2739
|
},
|
|
2649
2740
|
unmounted() {
|
|
2650
|
-
|
|
2741
|
+
$() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2651
2742
|
"builder:component:stateChangeListenerActivated",
|
|
2652
2743
|
this.emitStateUpdate
|
|
2653
2744
|
));
|
|
@@ -2726,7 +2817,7 @@ const Ao = b({
|
|
|
2726
2817
|
evaluateJsCode() {
|
|
2727
2818
|
var t, n;
|
|
2728
2819
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
2729
|
-
e &&
|
|
2820
|
+
e && z({
|
|
2730
2821
|
code: e,
|
|
2731
2822
|
context: this.context || {},
|
|
2732
2823
|
localState: void 0,
|
|
@@ -2738,13 +2829,13 @@ const Ao = b({
|
|
|
2738
2829
|
var t, n;
|
|
2739
2830
|
if (this.builderContextSignal.content) {
|
|
2740
2831
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2741
|
-
|
|
2832
|
+
te({
|
|
2742
2833
|
type: "click",
|
|
2743
|
-
canTrack: this.
|
|
2834
|
+
canTrack: M(this.canTrack),
|
|
2744
2835
|
contentId: s,
|
|
2745
2836
|
apiKey: this.apiKey,
|
|
2746
2837
|
variationId: o !== s ? o : void 0,
|
|
2747
|
-
...
|
|
2838
|
+
...Bo(e),
|
|
2748
2839
|
unique: !this.clicked
|
|
2749
2840
|
});
|
|
2750
2841
|
}
|
|
@@ -2753,7 +2844,7 @@ const Ao = b({
|
|
|
2753
2844
|
evalExpression(e) {
|
|
2754
2845
|
return e.replace(
|
|
2755
2846
|
/{{([^}]+)}}/g,
|
|
2756
|
-
(t, n) =>
|
|
2847
|
+
(t, n) => z({
|
|
2757
2848
|
code: n,
|
|
2758
2849
|
context: this.context || {},
|
|
2759
2850
|
localState: void 0,
|
|
@@ -2763,7 +2854,7 @@ const Ao = b({
|
|
|
2763
2854
|
);
|
|
2764
2855
|
},
|
|
2765
2856
|
handleRequest({ url: e, key: t }) {
|
|
2766
|
-
|
|
2857
|
+
Fe(e).then((n) => n.json()).then((n) => {
|
|
2767
2858
|
var s, r;
|
|
2768
2859
|
const o = {
|
|
2769
2860
|
...this.builderContextSignal.rootState,
|
|
@@ -2793,7 +2884,7 @@ const Ao = b({
|
|
|
2793
2884
|
"builder:component:stateChange",
|
|
2794
2885
|
{
|
|
2795
2886
|
detail: {
|
|
2796
|
-
state:
|
|
2887
|
+
state: N(this.builderContextSignal.rootState),
|
|
2797
2888
|
ref: {
|
|
2798
2889
|
name: this.model
|
|
2799
2890
|
}
|
|
@@ -2802,6 +2893,40 @@ const Ao = b({
|
|
|
2802
2893
|
)
|
|
2803
2894
|
);
|
|
2804
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
|
+
},
|
|
2805
2930
|
_classStringToObject(e) {
|
|
2806
2931
|
const t = {};
|
|
2807
2932
|
if (typeof e != "string")
|
|
@@ -2812,38 +2937,40 @@ const Ao = b({
|
|
|
2812
2937
|
return t;
|
|
2813
2938
|
}
|
|
2814
2939
|
}
|
|
2815
|
-
}),
|
|
2816
|
-
function
|
|
2940
|
+
}), Xo = ["builder-content-id", "builder-model"];
|
|
2941
|
+
function Qo(e, t, n, o, s, r) {
|
|
2817
2942
|
var i;
|
|
2818
|
-
return e.builderContextSignal.content ? (d(),
|
|
2943
|
+
return e.builderContextSignal.content ? (d(), h("div", I({
|
|
2819
2944
|
key: e.forceReRenderCount,
|
|
2820
2945
|
ref: "elementRef",
|
|
2821
2946
|
onClick: t[0] || (t[0] = (a) => e.onClick(a)),
|
|
2822
2947
|
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
2823
2948
|
"builder-model": e.model,
|
|
2824
|
-
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))
|
|
2825
2952
|
}, {
|
|
2826
2953
|
...e.showContent ? {} : {
|
|
2827
2954
|
hidden: !0,
|
|
2828
2955
|
"aria-hidden": !0
|
|
2829
2956
|
}
|
|
2830
2957
|
}), [
|
|
2831
|
-
|
|
2832
|
-
], 16,
|
|
2958
|
+
U(e.$slots, "default")
|
|
2959
|
+
], 16, Xo)) : w("v-if", !0);
|
|
2833
2960
|
}
|
|
2834
|
-
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({
|
|
2835
2962
|
render() {
|
|
2836
|
-
return
|
|
2963
|
+
return Ce("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2837
2964
|
},
|
|
2838
2965
|
name: "inlined-script",
|
|
2839
2966
|
props: ["scriptStr", "id"]
|
|
2840
|
-
}),
|
|
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({
|
|
2841
2968
|
name: "content-component",
|
|
2842
2969
|
components: {
|
|
2843
|
-
EnableEditor:
|
|
2844
|
-
InlinedScript:
|
|
2845
|
-
ContentStyles:
|
|
2846
|
-
Blocks:
|
|
2970
|
+
EnableEditor: Zo,
|
|
2971
|
+
InlinedScript: Ze,
|
|
2972
|
+
ContentStyles: ao,
|
|
2973
|
+
Blocks: oe
|
|
2847
2974
|
},
|
|
2848
2975
|
props: [
|
|
2849
2976
|
"content",
|
|
@@ -2864,31 +2991,31 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
|
|
|
2864
2991
|
data() {
|
|
2865
2992
|
var e, t;
|
|
2866
2993
|
return {
|
|
2867
|
-
scriptStr:
|
|
2994
|
+
scriptStr: kn({
|
|
2868
2995
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2869
2996
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2870
2997
|
}),
|
|
2871
2998
|
registeredComponents: [
|
|
2872
|
-
...
|
|
2873
|
-
...
|
|
2999
|
+
...me(),
|
|
3000
|
+
...he,
|
|
2874
3001
|
...this.customComponents || []
|
|
2875
3002
|
].reduce(
|
|
2876
3003
|
(n, { component: o, ...s }) => ({
|
|
2877
3004
|
...n,
|
|
2878
3005
|
[s.name]: {
|
|
2879
|
-
component:
|
|
2880
|
-
...
|
|
3006
|
+
component: ts(o),
|
|
3007
|
+
...ee(s)
|
|
2881
3008
|
}
|
|
2882
3009
|
}),
|
|
2883
3010
|
{}
|
|
2884
3011
|
),
|
|
2885
3012
|
builderContextSignal: {
|
|
2886
|
-
content:
|
|
3013
|
+
content: lo({
|
|
2887
3014
|
content: this.content,
|
|
2888
3015
|
data: this.data
|
|
2889
3016
|
}),
|
|
2890
3017
|
localState: void 0,
|
|
2891
|
-
rootState:
|
|
3018
|
+
rootState: co({
|
|
2892
3019
|
content: this.content,
|
|
2893
3020
|
data: this.data,
|
|
2894
3021
|
locale: this.locale
|
|
@@ -2898,25 +3025,25 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
|
|
|
2898
3025
|
apiKey: this.apiKey,
|
|
2899
3026
|
apiVersion: this.apiVersion,
|
|
2900
3027
|
componentInfos: [
|
|
2901
|
-
...
|
|
2902
|
-
...
|
|
3028
|
+
...me(),
|
|
3029
|
+
...he,
|
|
2903
3030
|
...this.customComponents || []
|
|
2904
3031
|
].reduce(
|
|
2905
3032
|
(n, { component: o, ...s }) => ({
|
|
2906
3033
|
...n,
|
|
2907
|
-
[s.name]:
|
|
3034
|
+
[s.name]: ee(s)
|
|
2908
3035
|
}),
|
|
2909
3036
|
{}
|
|
2910
3037
|
),
|
|
2911
3038
|
inheritedStyles: {}
|
|
2912
3039
|
},
|
|
2913
|
-
TARGET:
|
|
3040
|
+
TARGET: j
|
|
2914
3041
|
};
|
|
2915
3042
|
},
|
|
2916
3043
|
provide() {
|
|
2917
3044
|
const e = this;
|
|
2918
3045
|
return {
|
|
2919
|
-
[
|
|
3046
|
+
[Ve.key]: {
|
|
2920
3047
|
registeredComponents: e.registeredComponents
|
|
2921
3048
|
}
|
|
2922
3049
|
};
|
|
@@ -2927,9 +3054,9 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
|
|
|
2927
3054
|
}
|
|
2928
3055
|
}
|
|
2929
3056
|
});
|
|
2930
|
-
function
|
|
2931
|
-
const i =
|
|
2932
|
-
return d(),
|
|
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({
|
|
2933
3060
|
content: e.content,
|
|
2934
3061
|
model: e.model,
|
|
2935
3062
|
context: e.context,
|
|
@@ -2942,21 +3069,21 @@ function No(e, t, n, o, s, r) {
|
|
|
2942
3069
|
showContent: e.showContent,
|
|
2943
3070
|
builderContextSignal: e.builderContextSignal
|
|
2944
3071
|
}, {}), {
|
|
2945
|
-
default:
|
|
2946
|
-
var u,
|
|
3072
|
+
default: ne(() => {
|
|
3073
|
+
var u, f, m, p, b, S, T;
|
|
2947
3074
|
return [
|
|
2948
|
-
e.isSsrAbTest ? (d(),
|
|
3075
|
+
e.isSsrAbTest ? (d(), C(i, {
|
|
2949
3076
|
key: 0,
|
|
2950
3077
|
scriptStr: e.scriptStr
|
|
2951
|
-
}, null, 8, ["scriptStr"])) :
|
|
2952
|
-
e.TARGET !== "reactNative" ? (d(),
|
|
3078
|
+
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3079
|
+
e.TARGET !== "reactNative" ? (d(), C(a, {
|
|
2953
3080
|
key: 1,
|
|
2954
3081
|
contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
2955
|
-
cssCode: (
|
|
2956
|
-
customFonts: (
|
|
2957
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
2958
|
-
V(
|
|
2959
|
-
blocks: (
|
|
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,
|
|
2960
3087
|
context: e.builderContextSignal,
|
|
2961
3088
|
registeredComponents: e.registeredComponents
|
|
2962
3089
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
@@ -2965,12 +3092,12 @@ function No(e, t, n, o, s, r) {
|
|
|
2965
3092
|
_: 1
|
|
2966
3093
|
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
|
|
2967
3094
|
}
|
|
2968
|
-
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({
|
|
2969
3096
|
name: "content-variants",
|
|
2970
3097
|
components: {
|
|
2971
|
-
InlinedScript:
|
|
2972
|
-
InlinedStyles:
|
|
2973
|
-
ContentComponent:
|
|
3098
|
+
InlinedScript: Ze,
|
|
3099
|
+
InlinedStyles: G,
|
|
3100
|
+
ContentComponent: ss
|
|
2974
3101
|
},
|
|
2975
3102
|
props: [
|
|
2976
3103
|
"canTrack",
|
|
@@ -2988,13 +3115,13 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
|
|
|
2988
3115
|
],
|
|
2989
3116
|
data() {
|
|
2990
3117
|
return {
|
|
2991
|
-
shouldRenderVariants:
|
|
2992
|
-
canTrack:
|
|
3118
|
+
shouldRenderVariants: mn({
|
|
3119
|
+
canTrack: M(this.canTrack),
|
|
2993
3120
|
content: this.content
|
|
2994
3121
|
}),
|
|
2995
|
-
getScriptString:
|
|
2996
|
-
getVariants:
|
|
2997
|
-
TARGET:
|
|
3122
|
+
getScriptString: gn,
|
|
3123
|
+
getVariants: K,
|
|
3124
|
+
TARGET: j
|
|
2998
3125
|
};
|
|
2999
3126
|
},
|
|
3000
3127
|
mounted() {
|
|
@@ -3003,8 +3130,8 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
|
|
|
3003
3130
|
computed: {
|
|
3004
3131
|
variantScriptStr() {
|
|
3005
3132
|
var e;
|
|
3006
|
-
return
|
|
3007
|
-
|
|
3133
|
+
return yn(
|
|
3134
|
+
K(this.content).map((t) => ({
|
|
3008
3135
|
id: t.testVariationId,
|
|
3009
3136
|
testRatio: t.testRatio
|
|
3010
3137
|
})),
|
|
@@ -3012,37 +3139,37 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
|
|
|
3012
3139
|
);
|
|
3013
3140
|
},
|
|
3014
3141
|
hideVariantsStyleString() {
|
|
3015
|
-
return
|
|
3142
|
+
return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
3016
3143
|
},
|
|
3017
3144
|
defaultContent() {
|
|
3018
3145
|
var e;
|
|
3019
3146
|
return this.shouldRenderVariants ? {
|
|
3020
3147
|
...this.content,
|
|
3021
3148
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3022
|
-
} :
|
|
3149
|
+
} : Mo({
|
|
3023
3150
|
item: this.content,
|
|
3024
|
-
canTrack:
|
|
3151
|
+
canTrack: M(this.canTrack)
|
|
3025
3152
|
});
|
|
3026
3153
|
}
|
|
3027
3154
|
}
|
|
3028
3155
|
});
|
|
3029
|
-
function
|
|
3030
|
-
var
|
|
3031
|
-
const i =
|
|
3032
|
-
return d(),
|
|
3033
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
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, {
|
|
3034
3161
|
key: 0,
|
|
3035
3162
|
scriptStr: e.getScriptString()
|
|
3036
|
-
}, null, 8, ["scriptStr"])) :
|
|
3037
|
-
e.shouldRenderVariants ? (d(),
|
|
3163
|
+
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3164
|
+
e.shouldRenderVariants ? (d(), h(R, { key: 1 }, [
|
|
3038
3165
|
V(a, {
|
|
3039
|
-
id: `variants-styles-${(
|
|
3166
|
+
id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
|
|
3040
3167
|
styles: e.hideVariantsStyleString
|
|
3041
3168
|
}, null, 8, ["id", "styles"]),
|
|
3042
3169
|
V(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
|
|
3043
|
-
(d(!0),
|
|
3044
|
-
key:
|
|
3045
|
-
content:
|
|
3170
|
+
(d(!0), h(R, null, B(e.getVariants(e.content), (f, m) => (d(), C(c, {
|
|
3171
|
+
key: f.testVariationId,
|
|
3172
|
+
content: f,
|
|
3046
3173
|
showContent: !1,
|
|
3047
3174
|
classNameProp: void 0,
|
|
3048
3175
|
model: e.model,
|
|
@@ -3057,8 +3184,8 @@ function Mo(e, t, n, o, s, r) {
|
|
|
3057
3184
|
enrich: e.enrich,
|
|
3058
3185
|
isSsrAbTest: e.shouldRenderVariants
|
|
3059
3186
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3060
|
-
], 64)) :
|
|
3061
|
-
V(
|
|
3187
|
+
], 64)) : w("v-if", !0),
|
|
3188
|
+
V(c, I({
|
|
3062
3189
|
content: e.defaultContent,
|
|
3063
3190
|
classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
|
|
3064
3191
|
showContent: !0,
|
|
@@ -3078,12 +3205,12 @@ function Mo(e, t, n, o, s, r) {
|
|
|
3078
3205
|
}), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3079
3206
|
], 64);
|
|
3080
3207
|
}
|
|
3081
|
-
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 ({
|
|
3082
3209
|
builderContextValue: e,
|
|
3083
3210
|
symbol: t
|
|
3084
3211
|
}) => {
|
|
3085
3212
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
3086
|
-
return
|
|
3213
|
+
return J({
|
|
3087
3214
|
model: t.model,
|
|
3088
3215
|
apiKey: e.apiKey,
|
|
3089
3216
|
apiVersion: e.apiVersion,
|
|
@@ -3095,9 +3222,9 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
|
|
|
3095
3222
|
}).catch((n) => {
|
|
3096
3223
|
x.error("Could not fetch symbol content: ", n);
|
|
3097
3224
|
});
|
|
3098
|
-
},
|
|
3225
|
+
}, cs = y({
|
|
3099
3226
|
name: "builder-symbol",
|
|
3100
|
-
components: { ContentVariants:
|
|
3227
|
+
components: { ContentVariants: et },
|
|
3101
3228
|
props: [
|
|
3102
3229
|
"js",
|
|
3103
3230
|
"attributes",
|
|
@@ -3108,7 +3235,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
|
|
|
3108
3235
|
],
|
|
3109
3236
|
data() {
|
|
3110
3237
|
var e;
|
|
3111
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
3238
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
|
|
3112
3239
|
},
|
|
3113
3240
|
mounted() {
|
|
3114
3241
|
this.setContent();
|
|
@@ -3139,7 +3266,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
|
|
|
3139
3266
|
},
|
|
3140
3267
|
methods: {
|
|
3141
3268
|
setContent() {
|
|
3142
|
-
this.contentToUse ||
|
|
3269
|
+
this.contentToUse || as({
|
|
3143
3270
|
symbol: this.symbol,
|
|
3144
3271
|
builderContextValue: this.builderContext
|
|
3145
3272
|
}).then((e) => {
|
|
@@ -3157,12 +3284,12 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
|
|
|
3157
3284
|
}
|
|
3158
3285
|
}
|
|
3159
3286
|
});
|
|
3160
|
-
function
|
|
3161
|
-
var a,
|
|
3162
|
-
const i =
|
|
3163
|
-
return d(),
|
|
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({
|
|
3164
3291
|
class: e._classStringToObject(e.className)
|
|
3165
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3292
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3166
3293
|
V(i, {
|
|
3167
3294
|
__isNestedRender: !0,
|
|
3168
3295
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3172,25 +3299,25 @@ function Ho(e, t, n, o, s, r) {
|
|
|
3172
3299
|
data: {
|
|
3173
3300
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
3174
3301
|
...e.builderContext.localState,
|
|
3175
|
-
...(
|
|
3302
|
+
...(l = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : l.state
|
|
3176
3303
|
},
|
|
3177
3304
|
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
3178
3305
|
content: e.contentToUse
|
|
3179
3306
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3180
3307
|
], 16);
|
|
3181
3308
|
}
|
|
3182
|
-
const
|
|
3183
|
-
function
|
|
3184
|
-
if (
|
|
3185
|
-
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);
|
|
3186
3313
|
const t = {
|
|
3187
3314
|
type: "builder.settingsChange",
|
|
3188
|
-
data:
|
|
3315
|
+
data: Se
|
|
3189
3316
|
};
|
|
3190
3317
|
parent.postMessage(t, "*");
|
|
3191
3318
|
}
|
|
3192
3319
|
}
|
|
3193
|
-
const
|
|
3320
|
+
const vs = async (e) => {
|
|
3194
3321
|
var o, s, r;
|
|
3195
3322
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
|
|
3196
3323
|
...e,
|
|
@@ -3202,47 +3329,47 @@ const es = async (e) => {
|
|
|
3202
3329
|
urlPath: t
|
|
3203
3330
|
} : {}
|
|
3204
3331
|
},
|
|
3205
|
-
options:
|
|
3332
|
+
options: Ye(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
3206
3333
|
};
|
|
3207
3334
|
return {
|
|
3208
3335
|
apiKey: n.apiKey,
|
|
3209
3336
|
model: n.model,
|
|
3210
|
-
content: await
|
|
3337
|
+
content: await J(n)
|
|
3211
3338
|
};
|
|
3212
3339
|
};
|
|
3213
3340
|
export {
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
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,
|
|
3233
3360
|
_ as k,
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
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
|
|
3248
3375
|
};
|