@builder.io/sdk-vue 0.7.1-1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/vue2/lib/browser/block-750d8ed7.cjs +3 -0
- package/vue2/lib/{node/block-979d66e1.js → browser/block-86d82810.js} +62 -62
- package/vue2/lib/{node/block-styles-50528f05.js → browser/block-styles-132270d0.js} +5 -5
- package/vue2/lib/{edge/block-styles-ba691a55.cjs → browser/block-styles-5b5e9888.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-2d901f3f.cjs → block-wrapper-571b134c.cjs} +1 -1
- package/vue2/lib/browser/{block-wrapper-b1a6d78a.js → block-wrapper-f011d1f2.js} +5 -5
- package/vue2/lib/browser/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/browser/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/browser/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/{edge/blocks-wrapper-7e831b51.cjs → browser/blocks-wrapper-1d620d76.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-9c7effa2.js → browser/blocks-wrapper-33f35ea5.js} +1 -1
- package/vue2/lib/{edge/component-ref-02d30d18.cjs → browser/component-ref-26a164ea.cjs} +1 -1
- package/vue2/lib/{edge/component-ref-0404fc38.js → browser/component-ref-d6254a68.js} +10 -10
- package/vue2/lib/browser/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/browser/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/browser/content-859f190b.cjs +1 -0
- package/vue2/lib/{edge/content-173f7be0.js → browser/content-dc49d77b.js} +232 -232
- package/vue2/lib/browser/context/types.d.ts +1 -1
- package/vue2/lib/browser/{css-d68fe0e5.js → css-67efb2d0.js} +1 -1
- package/vue2/lib/browser/{css-32f0c7fe.cjs → css-a19d330c.cjs} +1 -1
- package/vue2/lib/browser/{enable-editor-29804f7c.js → enable-editor-4054558e.js} +59 -60
- package/vue2/lib/browser/enable-editor-ed3f647e.cjs +1 -0
- package/vue2/lib/browser/{evaluate-c21703b5.js → evaluate-28c12253.js} +1 -1
- package/vue2/lib/browser/{evaluate-5f291a57.cjs → evaluate-6cd69c12.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-a7c25deb.js → browser/get-block-actions-63de56e5.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-4f4fdc14.cjs → get-block-actions-f19965b6.cjs} +1 -1
- package/vue2/lib/{node/get-block-properties-75f3f91a.cjs → browser/get-block-properties-21c833e6.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-14335b2d.js → get-block-properties-a5f2574c.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-7dbd0508.cjs → get-processed-block-981ce262.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-9c43bb30.js → get-processed-block-9b23550f.js} +2 -2
- package/vue2/lib/browser/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/{node/index-ea4df31a.cjs → browser/index-63eb9f8d.cjs} +9 -9
- package/vue2/lib/{node/index-7ce12494.js → browser/index-f82eab8f.js} +170 -170
- package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-7a7207fd.js → browser/inlined-script-2d16b8db.js} +1 -1
- package/vue2/lib/browser/{inlined-script-cc25d25c.cjs → inlined-script-95114af2.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-08dbb945.cjs → browser/inlined-styles-9637cb58.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-8982c8a6.js → browser/inlined-styles-fbbf7fd9.js} +1 -1
- package/vue2/lib/{node/interactive-element-caabd2d9.js → browser/interactive-element-c87a6c35.js} +5 -5
- package/vue2/lib/{node/interactive-element-fc5a4f1d.cjs → browser/interactive-element-d37313e0.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-0ab8e6be.js → browser/repeated-block-231b11b1.js} +2 -2
- package/vue2/lib/browser/{repeated-block-ba80a339.cjs → repeated-block-49fef627.cjs} +1 -1
- package/vue2/lib/browser/server-index.d.ts +2 -2
- package/vue2/lib/browser/style.css +1 -1
- package/vue2/lib/{node/styles-6e09a0cc.js → browser/styles-28f7ec70.js} +2 -2
- package/vue2/lib/{node/styles-96606872.cjs → browser/styles-6a6b8114.cjs} +2 -2
- package/vue2/lib/edge/block-85fe2549.cjs +3 -0
- package/vue2/lib/{browser/block-dc97e982.js → edge/block-88cc78c4.js} +62 -62
- package/vue2/lib/{node/block-styles-00a3a4d7.cjs → edge/block-styles-65d9a724.cjs} +1 -1
- package/vue2/lib/edge/{block-styles-bd09453c.js → block-styles-9140aecf.js} +5 -5
- package/vue2/lib/{node/block-wrapper-8bd5d40b.js → edge/block-wrapper-36a4a767.js} +5 -5
- package/vue2/lib/edge/{block-wrapper-8e1bd00b.cjs → block-wrapper-e6392713.cjs} +1 -1
- package/vue2/lib/edge/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/edge/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/edge/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/{browser/blocks-wrapper-9e8dd7a2.cjs → edge/blocks-wrapper-96489519.cjs} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-fcb480f0.js → edge/blocks-wrapper-dcd7b27a.js} +1 -1
- package/vue2/lib/{node/component-ref-3ba26510.cjs → edge/component-ref-0bf4a838.cjs} +1 -1
- package/vue2/lib/{node/component-ref-123ffd3c.js → edge/component-ref-9b2c6138.js} +10 -10
- package/vue2/lib/edge/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/edge/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/content-199e7143.cjs +1 -0
- package/vue2/lib/{browser/content-76b432c4.js → edge/content-ad722031.js} +232 -232
- package/vue2/lib/edge/context/types.d.ts +1 -1
- package/vue2/lib/{node/css-c566c7a4.cjs → edge/css-05af2335.cjs} +1 -1
- package/vue2/lib/edge/{css-081095c1.js → css-5bd5388a.js} +1 -1
- package/vue2/lib/{node/enable-editor-96dbd852.js → edge/enable-editor-a32a425e.js} +59 -60
- package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +1 -0
- package/vue2/lib/edge/{evaluate-47aeba42.cjs → evaluate-7661cdf7.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-d31c253f.js → evaluate-79ba5368.js} +1 -1
- package/vue2/lib/edge/{get-block-actions-fc18e691.cjs → get-block-actions-4ed31703.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-47eb8bee.js → edge/get-block-actions-5ae9dffc.js} +2 -2
- package/vue2/lib/edge/{get-block-properties-d0176121.js → get-block-properties-c72eb3c0.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-4c2072d0.cjs → edge/get-block-properties-e0553a33.cjs} +1 -1
- package/vue2/lib/edge/{get-processed-block-2d9f33f5.cjs → get-processed-block-e8256b7e.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-231c050b.js → edge/get-processed-block-f3dbc4e7.js} +2 -2
- package/vue2/lib/edge/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/edge/{index-6e4d121e.js → index-4cf9f60c.js} +170 -170
- package/vue2/lib/edge/{index-ca5baf07.cjs → index-946de873.cjs} +9 -9
- package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-073d04d2.js → edge/inlined-script-58b1138d.js} +1 -1
- package/vue2/lib/{node/inlined-script-dccfb7fc.cjs → edge/inlined-script-cd8bf7d3.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-f109793f.js → inlined-styles-8c6cdbc5.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-da08b05d.cjs → edge/inlined-styles-a1951810.cjs} +1 -1
- package/vue2/lib/edge/{interactive-element-9c12c501.cjs → interactive-element-1a5ee50b.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-ac3e10b7.js → edge/interactive-element-2f0d2294.js} +5 -5
- package/vue2/lib/edge/{repeated-block-1093b757.cjs → repeated-block-8721baa8.cjs} +1 -1
- package/vue2/lib/{browser/repeated-block-51e74834.js → edge/repeated-block-a32b01bc.js} +2 -2
- package/vue2/lib/edge/server-index.d.ts +2 -2
- package/vue2/lib/edge/style.css +1 -1
- package/vue2/lib/{browser/styles-931da5e8.cjs → edge/styles-b2c8a706.cjs} +2 -2
- package/vue2/lib/{browser/styles-5eb21cb8.js → edge/styles-eab59896.js} +2 -2
- package/vue2/lib/node/block-575160ba.cjs +3 -0
- package/vue2/lib/{edge/block-2c7301d0.js → node/block-6c3981dc.js} +62 -62
- package/vue2/lib/{browser/block-styles-8f571c43.cjs → node/block-styles-258f0e47.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-bc460f14.js → node/block-styles-b1b9a610.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-4210f268.js → node/block-wrapper-1bdc3ca4.js} +5 -5
- package/vue2/lib/node/{block-wrapper-d7b449f1.cjs → block-wrapper-fed00059.cjs} +1 -1
- package/vue2/lib/node/blocks/button/button.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/columns/columns.vue.d.ts +2 -2
- package/vue2/lib/node/blocks/img/img.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/section/section.vue.d.ts +2 -1
- package/vue2/lib/node/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue2/lib/node/{blocks-wrapper-50937fc2.js → blocks-wrapper-031887f0.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-d425bec5.cjs → blocks-wrapper-80b3a22f.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-bc236051.cjs → node/component-ref-5be913d9.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-68e3a5b6.js → node/component-ref-ccb3e639.js} +10 -10
- package/vue2/lib/node/components/block/block.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue2/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue2/lib/node/components/blocks/blocks.vue.d.ts +2 -2
- package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +4 -4
- package/vue2/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/node/content-8b7678bc.cjs +1 -0
- package/vue2/lib/node/{content-d31377e7.js → content-f80acd05.js} +232 -232
- package/vue2/lib/node/context/types.d.ts +1 -1
- package/vue2/lib/{edge/css-00393f8a.cjs → node/css-44cbcf3f.cjs} +1 -1
- package/vue2/lib/node/{css-469bd1df.js → css-ad18a8ab.js} +1 -1
- package/vue2/lib/node/enable-editor-405441b9.cjs +1 -0
- package/vue2/lib/{edge/enable-editor-d3f018c6.js → node/enable-editor-8b4a5b45.js} +59 -60
- package/vue2/lib/node/{evaluate-45bac138.cjs → evaluate-19fac854.cjs} +1 -1
- package/vue2/lib/node/{evaluate-946bbbf4.js → evaluate-52887aac.js} +8 -8
- package/vue2/lib/{edge/get-block-actions-33002e58.js → node/get-block-actions-1a6b19ce.js} +2 -2
- package/vue2/lib/node/{get-block-actions-fa0f60c5.cjs → get-block-actions-65751661.cjs} +1 -1
- package/vue2/lib/{edge/get-block-properties-c1a43e4b.cjs → node/get-block-properties-2204d735.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-5524be2a.js → get-block-properties-cbc0612e.js} +2 -2
- package/vue2/lib/{edge/get-processed-block-1280c9d5.js → node/get-processed-block-78fabb02.js} +2 -2
- package/vue2/lib/node/{get-processed-block-e246d1ed.cjs → get-processed-block-902c8e72.cjs} +1 -1
- package/vue2/lib/node/helpers/ab-tests.d.ts +1 -1
- package/vue2/lib/{browser/index-bb14138e.js → node/index-43273102.js} +170 -170
- package/vue2/lib/{browser/index-7528c088.cjs → node/index-d8e34fec.cjs} +9 -9
- package/vue2/lib/node/index-helpers/blocks-exports.d.ts +4 -4
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-e57329a5.cjs → node/inlined-script-82af82d4.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-431b5967.js → node/inlined-script-da97caa2.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-9a96b77e.cjs → node/inlined-styles-73c1efea.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-1717d4f0.js → node/inlined-styles-f35650e9.js} +1 -1
- package/vue2/lib/{browser/interactive-element-03353733.cjs → node/interactive-element-07235e63.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-6a866621.js → node/interactive-element-22405343.js} +5 -5
- package/vue2/lib/{edge/repeated-block-f7b967cf.js → node/repeated-block-53bf7a45.js} +2 -2
- package/vue2/lib/node/{repeated-block-f65d29a5.cjs → repeated-block-771e5e8b.cjs} +1 -1
- package/vue2/lib/node/server-index.d.ts +2 -2
- package/vue2/lib/node/style.css +1 -1
- package/vue2/lib/{edge/styles-a211b4e1.cjs → node/styles-6a9d7ee1.cjs} +2 -2
- package/vue2/lib/{edge/styles-aa2c087b.js → node/styles-c2fd2724.js} +2 -2
- package/vue2/package.json +1 -0
- package/vue3/lib/{edge/block-wrapper.4b2f2fb3.js → browser/block-wrapper.32fa4b39.js} +8 -8
- package/vue3/lib/browser/{block-wrapper.49af98a6.cjs → block-wrapper.fc71d4d3.cjs} +1 -1
- package/vue3/lib/browser/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/browser/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/browser/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/{edge/component-ref.98beaea3.js → browser/component-ref.52b4ab91.js} +17 -17
- package/vue3/lib/browser/component-ref.f8946ad7.cjs +1 -0
- package/vue3/lib/browser/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/browser/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/browser/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/context/types.d.ts +1 -1
- package/vue3/lib/{edge/get-block-actions.b460cca3.js → browser/get-block-actions.33a95ae9.js} +1 -1
- package/vue3/lib/{edge/get-block-actions.407fbfa9.cjs → browser/get-block-actions.720b385e.cjs} +1 -1
- package/vue3/lib/browser/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/browser/index.abbd01ce.cjs +69 -0
- package/vue3/lib/browser/{index.88b433c6.js → index.bd816233.js} +1303 -1285
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.cc9bbed2.js → browser/repeated-block.41d43763.js} +6 -6
- package/vue3/lib/{edge/repeated-block.f5d444e9.cjs → browser/repeated-block.4bb78d4d.cjs} +1 -1
- package/vue3/lib/browser/server-index.d.ts +2 -2
- package/vue3/lib/{browser/block-wrapper.09b54dd3.js → edge/block-wrapper.4bb452b4.js} +8 -8
- package/vue3/lib/edge/{block-wrapper.2d4ec833.cjs → block-wrapper.d36a195b.cjs} +1 -1
- package/vue3/lib/edge/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/edge/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/edge/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/edge/component-ref.09c0c561.cjs +1 -0
- package/vue3/lib/{browser/component-ref.63194b25.js → edge/component-ref.215d8eb3.js} +17 -17
- package/vue3/lib/edge/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/edge/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/edge/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/edge/context/types.d.ts +1 -1
- package/vue3/lib/{browser/get-block-actions.4f330889.js → edge/get-block-actions.32987a91.js} +1 -1
- package/vue3/lib/{browser/get-block-actions.2e99e179.cjs → edge/get-block-actions.b7d0a3c2.cjs} +1 -1
- package/vue3/lib/edge/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/edge/{index.a8ffb479.js → index.cc0efb3b.js} +1526 -1507
- package/vue3/lib/edge/index.ceec697c.cjs +89 -0
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.ef8176d8.cjs → edge/repeated-block.b5d1a5b6.cjs} +1 -1
- package/vue3/lib/{browser/repeated-block.067ee555.js → edge/repeated-block.d1e4f878.js} +6 -6
- package/vue3/lib/edge/server-index.d.ts +2 -2
- package/vue3/lib/node/{block-wrapper.25e28ca3.cjs → block-wrapper.027e2e58.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.56bce6c4.js → block-wrapper.1f5bec88.js} +5 -5
- package/vue3/lib/node/blocks/button/button.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/columns/columns.vue.d.ts +2 -2
- package/vue3/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/vue3/lib/node/blocks/img/img.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/section/section.vue.d.ts +2 -1
- package/vue3/lib/node/blocks/symbol/symbol.vue.d.ts +4 -2
- package/vue3/lib/node/component-ref.5c293120.cjs +1 -0
- package/vue3/lib/node/{component-ref.cd59ca4d.js → component-ref.d2c6eedf.js} +17 -17
- package/vue3/lib/node/components/block/block.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/block-styles.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/block-wrapper.vue.d.ts +3 -3
- package/vue3/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +4 -4
- package/vue3/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/vue3/lib/node/components/blocks/blocks.vue.d.ts +1 -1
- package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +3 -3
- package/vue3/lib/node/components/content/content.vue.d.ts +3 -3
- package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +7 -5
- package/vue3/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/context/types.d.ts +1 -1
- package/vue3/lib/node/{get-block-actions.0d715e21.cjs → get-block-actions.3bf73664.cjs} +1 -1
- package/vue3/lib/node/{get-block-actions.3df391e9.js → get-block-actions.68279ccf.js} +1 -1
- package/vue3/lib/node/helpers/ab-tests.d.ts +1 -1
- package/vue3/lib/node/index-helpers/blocks-exports.d.ts +4 -4
- package/vue3/lib/node/index.44e0d18b.cjs +109 -0
- package/vue3/lib/node/{index.88589866.js → index.bb1871d7.js} +1402 -1384
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.78ed5bbb.cjs → repeated-block.6533598e.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.57ca2ba1.js → repeated-block.c5b9936f.js} +5 -5
- package/vue3/lib/node/server-index.d.ts +2 -2
- package/vue3/package.json +1 -0
- package/vue2/lib/browser/block-2cb52597.cjs +0 -3
- package/vue2/lib/browser/content-1a8d2e10.cjs +0 -1
- package/vue2/lib/browser/enable-editor-58cd5d33.cjs +0 -1
- package/vue2/lib/edge/block-40b0f7b5.cjs +0 -3
- package/vue2/lib/edge/content-36b34b86.cjs +0 -1
- package/vue2/lib/edge/enable-editor-c36df3b5.cjs +0 -1
- package/vue2/lib/node/block-d7e689a7.cjs +0 -3
- package/vue2/lib/node/content-d8e76f5c.cjs +0 -1
- package/vue2/lib/node/enable-editor-8c4e460a.cjs +0 -1
- package/vue3/lib/browser/component-ref.78f795cd.cjs +0 -1
- package/vue3/lib/browser/index.c04232f6.cjs +0 -69
- package/vue3/lib/edge/component-ref.d8514fb0.cjs +0 -1
- package/vue3/lib/edge/index.8bdc4716.cjs +0 -89
- package/vue3/lib/node/component-ref.c35ae123.cjs +0 -1
- package/vue3/lib/node/index.b2d2bb5e.cjs +0 -109
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as
|
|
2
|
-
import { createRequire as
|
|
1
|
+
import { defineComponent as y, openBlock as u, createElementBlock as h, mergeProps as I, toHandlers as U, toDisplayString as ae, defineAsyncComponent as W, resolveComponent as v, Fragment as T, createBlock as C, createCommentVNode as w, renderList as V, withCtx as ne, createVNode as j, h as Se, renderSlot as O, createElementVNode as le, normalizeStyle as ce, normalizeClass as Ce, markRaw as tt } from "vue";
|
|
2
|
+
import { createRequire as nt } from "node:module";
|
|
3
3
|
function q(e = {}, t, n) {
|
|
4
4
|
const o = {};
|
|
5
|
-
for (const
|
|
6
|
-
if (!e[
|
|
5
|
+
for (const r in e) {
|
|
6
|
+
if (!e[r] || n && !r.startsWith(t))
|
|
7
7
|
continue;
|
|
8
|
-
const
|
|
9
|
-
o[
|
|
8
|
+
const s = n ? r.replace(t, "") : r;
|
|
9
|
+
o[s] = e[r];
|
|
10
10
|
}
|
|
11
11
|
return o;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const ot = y({
|
|
14
14
|
name: "builder-button",
|
|
15
15
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
16
16
|
data() {
|
|
@@ -30,64 +30,64 @@ const rt = y({
|
|
|
30
30
|
});
|
|
31
31
|
const k = (e, t) => {
|
|
32
32
|
const n = e.__vccOpts || e;
|
|
33
|
-
for (const [o,
|
|
34
|
-
n[o] =
|
|
33
|
+
for (const [o, r] of t)
|
|
34
|
+
n[o] = r;
|
|
35
35
|
return n;
|
|
36
|
-
},
|
|
37
|
-
function
|
|
38
|
-
return e.link ? (
|
|
36
|
+
}, rt = ["href", "target"];
|
|
37
|
+
function st(e, t, n, o, r, s) {
|
|
38
|
+
return e.link ? (u(), h("a", I({
|
|
39
39
|
key: 0,
|
|
40
|
-
role: "button",
|
|
41
40
|
href: e.link,
|
|
42
|
-
target: e.openLinkInNewTab ? "_blank" : void 0
|
|
43
|
-
|
|
41
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
42
|
+
role: "button"
|
|
43
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17, rt)) : (u(), h("button", I({
|
|
44
44
|
key: 1,
|
|
45
45
|
style: e.attributes.style,
|
|
46
46
|
class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
|
|
47
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
47
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17));
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
const it = /* @__PURE__ */ k(ot, [["render", st], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), at = Symbol(), Q = {
|
|
50
|
+
Builder: {
|
|
51
|
+
content: null,
|
|
52
|
+
context: {},
|
|
53
|
+
localState: void 0,
|
|
54
|
+
rootSetState() {
|
|
55
|
+
},
|
|
56
|
+
rootState: {},
|
|
57
|
+
apiKey: null,
|
|
58
|
+
apiVersion: void 0,
|
|
59
|
+
componentInfos: {},
|
|
60
|
+
inheritedStyles: {}
|
|
59
61
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return n;
|
|
72
|
-
const o = Math.floor(e / 2);
|
|
73
|
-
n.small = {
|
|
74
|
-
max: e,
|
|
75
|
-
min: o,
|
|
76
|
-
default: o + 1
|
|
77
|
-
};
|
|
78
|
-
const s = n.small.max + 1;
|
|
79
|
-
n.medium = {
|
|
80
|
-
max: t,
|
|
81
|
-
min: s,
|
|
82
|
-
default: s + 1
|
|
62
|
+
key: at
|
|
63
|
+
}, lt = Symbol(), we = {
|
|
64
|
+
Components: { registeredComponents: {} },
|
|
65
|
+
key: lt
|
|
66
|
+
};
|
|
67
|
+
function ct(e) {
|
|
68
|
+
var t;
|
|
69
|
+
return {
|
|
70
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
71
|
+
...e.options,
|
|
72
|
+
builderBlock: e
|
|
83
73
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
}
|
|
75
|
+
const A = "vue3", ut = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), _ = (e) => e != null, dt = (e) => Object.entries(e).map(([n, o]) => {
|
|
76
|
+
if (typeof o == "string")
|
|
77
|
+
return `${ut(n)}: ${o};`;
|
|
78
|
+
}).filter(_), pt = (e) => dt(e).join(`
|
|
79
|
+
`), Y = ({
|
|
80
|
+
mediaQuery: e,
|
|
81
|
+
className: t,
|
|
82
|
+
styles: n
|
|
83
|
+
}) => {
|
|
84
|
+
const o = `.${t} {
|
|
85
|
+
${pt(n)}
|
|
86
|
+
}`;
|
|
87
|
+
return e ? `${e} {
|
|
88
|
+
${o}
|
|
89
|
+
}` : o;
|
|
90
|
+
}, L = "[Builder.io]: ", x = {
|
|
91
91
|
log: (...e) => console.log(L, ...e),
|
|
92
92
|
error: (...e) => console.error(L, ...e),
|
|
93
93
|
warn: (...e) => console.warn(L, ...e),
|
|
@@ -96,20 +96,20 @@ const ct = /* @__PURE__ */ k(rt, [["render", at], ["__scopeId", "data-v-becdf225
|
|
|
96
96
|
function $() {
|
|
97
97
|
return typeof window < "u" && typeof document < "u";
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function mt() {
|
|
100
100
|
return $() && window.self !== window.top;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function P() {
|
|
103
|
+
return mt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const ht = () => {
|
|
106
106
|
if ($()) {
|
|
107
107
|
const e = new URL(location.href);
|
|
108
108
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
109
109
|
} else
|
|
110
110
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
111
|
-
},
|
|
112
|
-
const e =
|
|
111
|
+
}, ft = () => typeof navigator == "object" && navigator.userAgent || "", $e = () => {
|
|
112
|
+
const e = ft(), t = {
|
|
113
113
|
Android() {
|
|
114
114
|
return e.match(/Android/i);
|
|
115
115
|
},
|
|
@@ -126,9 +126,9 @@ const dt = () => {
|
|
|
126
126
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
127
127
|
},
|
|
128
128
|
any() {
|
|
129
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
129
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
|
|
130
130
|
}
|
|
131
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
131
|
+
}, n = e.match(/Tablet|iPad/i), o = ht();
|
|
132
132
|
return {
|
|
133
133
|
urlPath: o == null ? void 0 : o.pathname,
|
|
134
134
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
@@ -145,54 +145,54 @@ const dt = () => {
|
|
|
145
145
|
builder: e,
|
|
146
146
|
context: t,
|
|
147
147
|
event: n
|
|
148
|
-
}),
|
|
149
|
-
isEditing:
|
|
148
|
+
}), bt = () => ({
|
|
149
|
+
isEditing: P(),
|
|
150
150
|
isBrowser: $(),
|
|
151
151
|
isServer: !$(),
|
|
152
|
-
getUserAttributes: () =>
|
|
153
|
-
}),
|
|
152
|
+
getUserAttributes: () => $e()
|
|
153
|
+
}), gt = (e, {
|
|
154
154
|
isExpression: t = !0
|
|
155
|
-
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
155
|
+
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, yt = ({
|
|
156
156
|
code: e,
|
|
157
157
|
builder: t,
|
|
158
158
|
context: n,
|
|
159
159
|
event: o,
|
|
160
|
-
localState:
|
|
161
|
-
rootSetState:
|
|
160
|
+
localState: r,
|
|
161
|
+
rootSetState: s,
|
|
162
162
|
rootState: i
|
|
163
163
|
}) => {
|
|
164
164
|
const a = Re({
|
|
165
165
|
builder: t,
|
|
166
166
|
context: n,
|
|
167
167
|
event: o,
|
|
168
|
-
state:
|
|
168
|
+
state: kt(i, r, s)
|
|
169
169
|
});
|
|
170
|
-
return new Function(...a.map(([
|
|
170
|
+
return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
|
|
171
171
|
};
|
|
172
|
-
function
|
|
172
|
+
function kt(e, t, n) {
|
|
173
173
|
if (e === t)
|
|
174
174
|
throw new Error("rootState === localState");
|
|
175
175
|
return new Proxy(e, {
|
|
176
|
-
get: (o,
|
|
177
|
-
set: (o,
|
|
178
|
-
if (t &&
|
|
176
|
+
get: (o, r) => t && r in t ? t[r] : e[r],
|
|
177
|
+
set: (o, r, s) => {
|
|
178
|
+
if (t && r in t)
|
|
179
179
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
180
|
-
return e[
|
|
180
|
+
return e[r] = s, n == null || n(e), !0;
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
let xe = bt;
|
|
186
|
-
try {
|
|
187
|
-
xe = st(import.meta.url);
|
|
188
|
-
} catch {
|
|
189
|
-
}
|
|
190
|
-
const Ee = (e, t, n) => {
|
|
184
|
+
const N = (e) => JSON.parse(JSON.stringify(e)), Te = (e, t, n) => {
|
|
191
185
|
if (Object(e) !== e)
|
|
192
186
|
return e;
|
|
193
187
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
194
|
-
return o.slice(0, -1).reduce((
|
|
195
|
-
},
|
|
188
|
+
return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
189
|
+
}, vt = () => null;
|
|
190
|
+
let Ie = vt;
|
|
191
|
+
try {
|
|
192
|
+
Ie = nt(import.meta.url);
|
|
193
|
+
} catch {
|
|
194
|
+
}
|
|
195
|
+
const Z = Ie("isolated-vm"), xe = (e) => `bldr_${e}_sync`, Ee = "BUILDER_SET_STATE", Pe = "BUILDER_IVM", St = `
|
|
196
196
|
var refToProxy = (obj) => {
|
|
197
197
|
if (typeof obj !== 'object' || obj === null) {
|
|
198
198
|
return obj;
|
|
@@ -209,22 +209,22 @@ var refToProxy = (obj) => {
|
|
|
209
209
|
return val;
|
|
210
210
|
},
|
|
211
211
|
set(target, key, value) {
|
|
212
|
-
const v = typeof value === 'object' ? new ${
|
|
212
|
+
const v = typeof value === 'object' ? new ${Pe}.Reference(value) : value;
|
|
213
213
|
obj.setSync(key, v);
|
|
214
|
-
${
|
|
214
|
+
${Ee}(key, value)
|
|
215
215
|
},
|
|
216
216
|
deleteProperty(target, key) {
|
|
217
217
|
obj.deleteSync(key);
|
|
218
218
|
}
|
|
219
219
|
})
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`, Ct = ({
|
|
222
222
|
code: e,
|
|
223
223
|
args: t
|
|
224
224
|
}) => {
|
|
225
|
-
const n = t.map(([o]) => `var ${o} = refToProxy(${
|
|
225
|
+
const n = t.map(([o]) => `var ${o} = refToProxy(${xe(o)}); `).join("");
|
|
226
226
|
return `
|
|
227
|
-
${
|
|
227
|
+
${St}
|
|
228
228
|
${n}
|
|
229
229
|
function theFunction() {
|
|
230
230
|
${e}
|
|
@@ -238,56 +238,56 @@ if (typeof output === 'object' && output !== null) {
|
|
|
238
238
|
|
|
239
239
|
output;
|
|
240
240
|
`;
|
|
241
|
-
},
|
|
241
|
+
}, wt = () => new Z.Isolate({
|
|
242
242
|
memoryLimit: 128
|
|
243
|
-
}).createContextSync(),
|
|
243
|
+
}).createContextSync(), $t = ({
|
|
244
244
|
code: e,
|
|
245
245
|
builder: t,
|
|
246
246
|
context: n,
|
|
247
247
|
event: o,
|
|
248
|
-
localState:
|
|
249
|
-
rootSetState:
|
|
248
|
+
localState: r,
|
|
249
|
+
rootSetState: s,
|
|
250
250
|
rootState: i
|
|
251
251
|
}) => {
|
|
252
252
|
const a = N({
|
|
253
253
|
...i,
|
|
254
|
-
...
|
|
255
|
-
}),
|
|
254
|
+
...r
|
|
255
|
+
}), l = Re({
|
|
256
256
|
builder: t,
|
|
257
257
|
context: n,
|
|
258
258
|
event: o,
|
|
259
259
|
state: a
|
|
260
|
-
}),
|
|
261
|
-
|
|
260
|
+
}), c = wt(), d = c.global;
|
|
261
|
+
d.setSync("global", d.derefInto()), d.setSync("log", function(...p) {
|
|
262
262
|
console.log(...p);
|
|
263
|
-
}),
|
|
264
|
-
|
|
265
|
-
}),
|
|
266
|
-
const S = typeof b == "object" ? new
|
|
263
|
+
}), d.setSync(Ee, function(p, b) {
|
|
264
|
+
Te(i, p, b), s == null || s(i);
|
|
265
|
+
}), l.forEach(([p, b]) => {
|
|
266
|
+
const S = typeof b == "object" ? new Z.Reference(
|
|
267
267
|
p === "builder" ? {
|
|
268
268
|
...b,
|
|
269
269
|
getUserAttributes: () => b.getUserAttributes()
|
|
270
270
|
} : b
|
|
271
271
|
) : null;
|
|
272
|
-
|
|
273
|
-
}),
|
|
274
|
-
const f =
|
|
272
|
+
d.setSync(xe(p), S);
|
|
273
|
+
}), d.setSync(Pe, Z);
|
|
274
|
+
const f = Ct({
|
|
275
275
|
code: e,
|
|
276
|
-
args:
|
|
277
|
-
}), m =
|
|
276
|
+
args: l
|
|
277
|
+
}), m = c.evalSync(f);
|
|
278
278
|
try {
|
|
279
279
|
return JSON.parse(m);
|
|
280
280
|
} catch {
|
|
281
281
|
return m;
|
|
282
282
|
}
|
|
283
|
-
},
|
|
283
|
+
}, Rt = (e) => $() ? yt(e) : $t(e);
|
|
284
284
|
function z({
|
|
285
285
|
code: e,
|
|
286
286
|
context: t,
|
|
287
287
|
localState: n,
|
|
288
288
|
rootState: o,
|
|
289
|
-
rootSetState:
|
|
290
|
-
event:
|
|
289
|
+
rootSetState: r,
|
|
290
|
+
event: s,
|
|
291
291
|
isExpression: i = !0
|
|
292
292
|
}) {
|
|
293
293
|
if (e === "") {
|
|
@@ -295,52 +295,52 @@ function z({
|
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
297
|
const a = {
|
|
298
|
-
code:
|
|
298
|
+
code: gt(e, {
|
|
299
299
|
isExpression: i
|
|
300
300
|
}),
|
|
301
|
-
builder:
|
|
301
|
+
builder: bt(),
|
|
302
302
|
context: t,
|
|
303
|
-
event:
|
|
304
|
-
rootSetState:
|
|
303
|
+
event: s,
|
|
304
|
+
rootSetState: r,
|
|
305
305
|
rootState: o,
|
|
306
306
|
localState: n
|
|
307
307
|
};
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
310
|
-
} catch (
|
|
311
|
-
x.error("Failed code evaluation: " +
|
|
309
|
+
return Rt(a);
|
|
310
|
+
} catch (l) {
|
|
311
|
+
x.error("Failed code evaluation: " + l.message, {
|
|
312
312
|
code: e
|
|
313
313
|
});
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const Tt = ({
|
|
318
318
|
block: e,
|
|
319
319
|
context: t,
|
|
320
320
|
localState: n,
|
|
321
321
|
rootState: o,
|
|
322
|
-
rootSetState:
|
|
322
|
+
rootSetState: r
|
|
323
323
|
}) => {
|
|
324
324
|
if (!e.bindings)
|
|
325
325
|
return e;
|
|
326
|
-
const
|
|
327
|
-
...
|
|
326
|
+
const s = N(e), i = {
|
|
327
|
+
...s,
|
|
328
328
|
properties: {
|
|
329
|
-
...
|
|
329
|
+
...s.properties
|
|
330
330
|
},
|
|
331
331
|
actions: {
|
|
332
|
-
...
|
|
332
|
+
...s.actions
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
for (const a in e.bindings) {
|
|
336
|
-
const
|
|
337
|
-
code:
|
|
336
|
+
const l = e.bindings[a], c = z({
|
|
337
|
+
code: l,
|
|
338
338
|
localState: n,
|
|
339
339
|
rootState: o,
|
|
340
|
-
rootSetState:
|
|
340
|
+
rootSetState: r,
|
|
341
341
|
context: t
|
|
342
342
|
});
|
|
343
|
-
|
|
343
|
+
Te(i, a, c);
|
|
344
344
|
}
|
|
345
345
|
return i;
|
|
346
346
|
};
|
|
@@ -349,136 +349,41 @@ function D({
|
|
|
349
349
|
context: t,
|
|
350
350
|
shouldEvaluateBindings: n,
|
|
351
351
|
localState: o,
|
|
352
|
-
rootState:
|
|
353
|
-
rootSetState:
|
|
352
|
+
rootState: r,
|
|
353
|
+
rootSetState: s
|
|
354
354
|
}) {
|
|
355
355
|
const i = e;
|
|
356
|
-
return n ?
|
|
356
|
+
return n ? Tt({
|
|
357
357
|
block: i,
|
|
358
358
|
localState: o,
|
|
359
|
-
rootState:
|
|
360
|
-
rootSetState:
|
|
359
|
+
rootState: r,
|
|
360
|
+
rootSetState: s,
|
|
361
361
|
context: t
|
|
362
362
|
}) : i;
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
if (typeof o == "string")
|
|
366
|
-
return `${wt(n)}: ${o};`;
|
|
367
|
-
}).filter(A), Tt = (e) => $t(e).join(`
|
|
368
|
-
`), Y = ({
|
|
369
|
-
mediaQuery: e,
|
|
370
|
-
className: t,
|
|
371
|
-
styles: n
|
|
372
|
-
}) => {
|
|
373
|
-
const o = `.${t} {
|
|
374
|
-
${Tt(n)}
|
|
375
|
-
}`;
|
|
376
|
-
return e ? `${e} {
|
|
377
|
-
${o}
|
|
378
|
-
}` : o;
|
|
379
|
-
}, It = y({
|
|
380
|
-
render() {
|
|
381
|
-
return Ce("style", { id: this.id, innerHTML: this.styles });
|
|
382
|
-
},
|
|
383
|
-
name: "inlined-styles",
|
|
384
|
-
props: ["styles", "id"]
|
|
385
|
-
}), G = /* @__PURE__ */ k(It, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Rt = y({
|
|
386
|
-
name: "block-styles",
|
|
387
|
-
components: { InlinedStyles: G },
|
|
388
|
-
props: ["block", "context"],
|
|
389
|
-
data() {
|
|
390
|
-
return { TARGET: j };
|
|
391
|
-
},
|
|
392
|
-
computed: {
|
|
393
|
-
canShowBlock() {
|
|
394
|
-
const e = D({
|
|
395
|
-
block: this.block,
|
|
396
|
-
localState: this.context.localState,
|
|
397
|
-
rootState: this.context.rootState,
|
|
398
|
-
rootSetState: this.context.rootSetState,
|
|
399
|
-
context: this.context.context,
|
|
400
|
-
shouldEvaluateBindings: !0
|
|
401
|
-
});
|
|
402
|
-
return A(e.hide) ? !e.hide : A(e.show) ? e.show : !0;
|
|
403
|
-
},
|
|
404
|
-
css() {
|
|
405
|
-
var f;
|
|
406
|
-
const e = D({
|
|
407
|
-
block: this.block,
|
|
408
|
-
localState: this.context.localState,
|
|
409
|
-
rootState: this.context.rootState,
|
|
410
|
-
rootSetState: this.context.rootSetState,
|
|
411
|
-
context: this.context.context,
|
|
412
|
-
shouldEvaluateBindings: !0
|
|
413
|
-
}), t = e.responsiveStyles, n = this.context.content, o = Te(
|
|
414
|
-
((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
|
|
415
|
-
), s = t == null ? void 0 : t.large, r = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
|
|
416
|
-
if (!a)
|
|
417
|
-
return "";
|
|
418
|
-
const c = s ? Y({
|
|
419
|
-
className: a,
|
|
420
|
-
styles: s
|
|
421
|
-
}) : "", l = r ? Y({
|
|
422
|
-
className: a,
|
|
423
|
-
styles: r,
|
|
424
|
-
mediaQuery: ue(
|
|
425
|
-
"medium",
|
|
426
|
-
o
|
|
427
|
-
)
|
|
428
|
-
}) : "", u = i ? Y({
|
|
429
|
-
className: a,
|
|
430
|
-
styles: i,
|
|
431
|
-
mediaQuery: ue(
|
|
432
|
-
"small",
|
|
433
|
-
o
|
|
434
|
-
)
|
|
435
|
-
}) : "";
|
|
436
|
-
return [c, l, u].join(" ");
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
});
|
|
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, {
|
|
443
|
-
key: 0,
|
|
444
|
-
styles: e.css
|
|
445
|
-
}, null, 8, ["styles"])) : w("v-if", !0);
|
|
446
|
-
}
|
|
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({
|
|
448
|
-
__proto__: null,
|
|
449
|
-
default: Pe
|
|
450
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
451
|
-
function _t(e) {
|
|
452
|
-
var t;
|
|
453
|
-
return {
|
|
454
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
455
|
-
...e.options,
|
|
456
|
-
builderBlock: e
|
|
457
|
-
};
|
|
458
|
-
}
|
|
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 = ({
|
|
364
|
+
const It = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], xt = (e) => typeof e == "string" && It.includes(e.toLowerCase()), Et = ({
|
|
460
365
|
block: e,
|
|
461
366
|
context: t,
|
|
462
367
|
registeredComponents: n
|
|
463
368
|
}) => {
|
|
464
|
-
var
|
|
465
|
-
const o = (
|
|
369
|
+
var s;
|
|
370
|
+
const o = (s = D({
|
|
466
371
|
block: e,
|
|
467
372
|
localState: t.localState,
|
|
468
373
|
rootState: t.rootState,
|
|
469
374
|
rootSetState: t.rootSetState,
|
|
470
375
|
context: t.context,
|
|
471
376
|
shouldEvaluateBindings: !1
|
|
472
|
-
}).component) == null ? void 0 :
|
|
377
|
+
}).component) == null ? void 0 : s.name;
|
|
473
378
|
if (!o)
|
|
474
379
|
return null;
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
return
|
|
380
|
+
const r = n[o];
|
|
381
|
+
if (r)
|
|
382
|
+
return r;
|
|
478
383
|
console.warn(`
|
|
479
384
|
Could not find a registered component named "${o}".
|
|
480
385
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
481
|
-
},
|
|
386
|
+
}, Pt = ({
|
|
482
387
|
block: e,
|
|
483
388
|
context: t
|
|
484
389
|
}) => {
|
|
@@ -488,71 +393,71 @@ const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
488
393
|
} = e;
|
|
489
394
|
if (!(n != null && n.collection))
|
|
490
395
|
return;
|
|
491
|
-
const
|
|
396
|
+
const r = z({
|
|
492
397
|
code: n.collection,
|
|
493
398
|
localState: t.localState,
|
|
494
399
|
rootState: t.rootState,
|
|
495
400
|
rootSetState: t.rootSetState,
|
|
496
401
|
context: t.context
|
|
497
402
|
});
|
|
498
|
-
if (!Array.isArray(
|
|
403
|
+
if (!Array.isArray(r))
|
|
499
404
|
return;
|
|
500
|
-
const
|
|
501
|
-
return
|
|
405
|
+
const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
|
|
406
|
+
return r.map((l, c) => ({
|
|
502
407
|
context: {
|
|
503
408
|
...t,
|
|
504
409
|
localState: {
|
|
505
410
|
...t.localState,
|
|
506
|
-
$index:
|
|
507
|
-
$item:
|
|
508
|
-
[i]:
|
|
509
|
-
[`$${i}Index`]:
|
|
411
|
+
$index: c,
|
|
412
|
+
$item: l,
|
|
413
|
+
[i]: l,
|
|
414
|
+
[`$${i}Index`]: c
|
|
510
415
|
}
|
|
511
416
|
},
|
|
512
417
|
block: o
|
|
513
418
|
}));
|
|
514
|
-
},
|
|
419
|
+
}, _t = () => Promise.resolve().then(() => Mt).then((e) => e.default).catch((e) => {
|
|
515
420
|
throw console.error(
|
|
516
421
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
517
422
|
e
|
|
518
423
|
), e;
|
|
519
|
-
}),
|
|
424
|
+
}), At = () => import("./block-wrapper.1f5bec88.js").then((e) => e.default).catch((e) => {
|
|
520
425
|
throw console.error(
|
|
521
|
-
"Error while attempting to dynamically import component
|
|
426
|
+
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
522
427
|
e
|
|
523
428
|
), e;
|
|
524
|
-
}),
|
|
429
|
+
}), Bt = () => import("./component-ref.d2c6eedf.js").then((e) => e.default).catch((e) => {
|
|
525
430
|
throw console.error(
|
|
526
431
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
527
432
|
e
|
|
528
433
|
), e;
|
|
529
|
-
}),
|
|
434
|
+
}), Vt = () => import("./repeated-block.c5b9936f.js").then((e) => e.default).catch((e) => {
|
|
530
435
|
throw console.error(
|
|
531
|
-
"Error while attempting to dynamically import component
|
|
436
|
+
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
532
437
|
e
|
|
533
438
|
), e;
|
|
534
|
-
}),
|
|
439
|
+
}), jt = y({
|
|
535
440
|
name: "block",
|
|
536
441
|
components: {
|
|
537
|
-
ComponentRef: W(
|
|
538
|
-
BlockWrapper: W(
|
|
539
|
-
RepeatedBlock: W(
|
|
540
|
-
BlockStyles: W(
|
|
442
|
+
ComponentRef: W(Bt),
|
|
443
|
+
BlockWrapper: W(At),
|
|
444
|
+
RepeatedBlock: W(Vt),
|
|
445
|
+
BlockStyles: W(_t)
|
|
541
446
|
},
|
|
542
447
|
props: ["block", "context", "registeredComponents"],
|
|
543
448
|
data() {
|
|
544
|
-
return { childrenContext: this.context, isEmptyHtmlElement:
|
|
449
|
+
return { childrenContext: this.context, isEmptyHtmlElement: xt };
|
|
545
450
|
},
|
|
546
451
|
computed: {
|
|
547
452
|
blockComponent() {
|
|
548
|
-
return
|
|
453
|
+
return Et({
|
|
549
454
|
block: this.block,
|
|
550
455
|
context: this.context,
|
|
551
456
|
registeredComponents: this.registeredComponents
|
|
552
457
|
});
|
|
553
458
|
},
|
|
554
459
|
repeatItem() {
|
|
555
|
-
return
|
|
460
|
+
return Pt({
|
|
556
461
|
block: this.block,
|
|
557
462
|
context: this.context
|
|
558
463
|
});
|
|
@@ -578,12 +483,12 @@ const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
578
483
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
|
|
579
484
|
},
|
|
580
485
|
componentRefProps() {
|
|
581
|
-
var e, t, n, o,
|
|
486
|
+
var e, t, n, o, r, s;
|
|
582
487
|
return {
|
|
583
488
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
584
489
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
585
490
|
componentOptions: {
|
|
586
|
-
...
|
|
491
|
+
...ct(this.processedBlock),
|
|
587
492
|
builderContext: this.context,
|
|
588
493
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
589
494
|
builderComponents: this.registeredComponents
|
|
@@ -592,31 +497,41 @@ const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
592
497
|
context: this.childrenContext,
|
|
593
498
|
registeredComponents: this.registeredComponents,
|
|
594
499
|
builderBlock: this.processedBlock,
|
|
595
|
-
includeBlockProps: ((
|
|
596
|
-
isInteractive: !((
|
|
500
|
+
includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
|
|
501
|
+
isInteractive: !((s = this.blockComponent) != null && s.isRSC)
|
|
597
502
|
};
|
|
598
503
|
}
|
|
599
504
|
}
|
|
600
505
|
});
|
|
601
|
-
function
|
|
506
|
+
function Ot(e, t, n, o, r, s) {
|
|
602
507
|
var f;
|
|
603
|
-
const i = v("block-wrapper"), a = v("repeated-block"),
|
|
604
|
-
return e.canShowBlock ? (
|
|
605
|
-
(f = e.blockComponent) != null && f.noWrap ? (
|
|
606
|
-
|
|
508
|
+
const i = v("block-wrapper"), a = v("repeated-block"), l = v("component-ref"), c = v("block", !0), d = v("block-styles");
|
|
509
|
+
return e.canShowBlock ? (u(), h(T, { key: 0 }, [
|
|
510
|
+
(f = e.blockComponent) != null && f.noWrap ? (u(), C(l, {
|
|
511
|
+
key: 1,
|
|
512
|
+
componentRef: e.componentRefProps.componentRef,
|
|
513
|
+
componentOptions: e.componentRefProps.componentOptions,
|
|
514
|
+
blockChildren: e.componentRefProps.blockChildren,
|
|
515
|
+
context: e.componentRefProps.context,
|
|
516
|
+
registeredComponents: e.componentRefProps.registeredComponents,
|
|
517
|
+
builderBlock: e.componentRefProps.builderBlock,
|
|
518
|
+
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
519
|
+
isInteractive: e.componentRefProps.isInteractive
|
|
520
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h(T, { key: 0 }, [
|
|
521
|
+
e.isEmptyHtmlElement(e.Tag) ? (u(), C(i, {
|
|
607
522
|
key: 0,
|
|
608
523
|
Wrapper: e.Tag,
|
|
609
524
|
block: e.processedBlock,
|
|
610
525
|
context: e.context,
|
|
611
526
|
hasChildren: !1
|
|
612
527
|
}, null, 8, ["Wrapper", "block", "context"])) : w("v-if", !0),
|
|
613
|
-
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (
|
|
528
|
+
!e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (u(!0), h(T, { key: 1 }, V(e.repeatItem, (m, p) => (u(), C(a, {
|
|
614
529
|
key: p,
|
|
615
530
|
repeatContext: m.context,
|
|
616
531
|
block: m.block,
|
|
617
532
|
registeredComponents: e.registeredComponents
|
|
618
533
|
}, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : w("v-if", !0),
|
|
619
|
-
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (
|
|
534
|
+
!e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (u(), C(i, {
|
|
620
535
|
key: 2,
|
|
621
536
|
Wrapper: e.Tag,
|
|
622
537
|
block: e.processedBlock,
|
|
@@ -624,14 +539,23 @@ function Mt(e, t, n, o, s, r) {
|
|
|
624
539
|
hasChildren: !0
|
|
625
540
|
}, {
|
|
626
541
|
default: ne(() => [
|
|
627
|
-
|
|
628
|
-
|
|
542
|
+
j(l, {
|
|
543
|
+
componentRef: e.componentRefProps.componentRef,
|
|
544
|
+
componentOptions: e.componentRefProps.componentOptions,
|
|
545
|
+
blockChildren: e.componentRefProps.blockChildren,
|
|
546
|
+
context: e.componentRefProps.context,
|
|
547
|
+
registeredComponents: e.componentRefProps.registeredComponents,
|
|
548
|
+
builderBlock: e.componentRefProps.builderBlock,
|
|
549
|
+
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
550
|
+
isInteractive: e.componentRefProps.isInteractive
|
|
551
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
552
|
+
(u(!0), h(T, null, V(e.childrenWithoutParentComponent, (m, p) => (u(), C(c, {
|
|
629
553
|
key: "block-" + m.id,
|
|
630
554
|
block: m,
|
|
631
555
|
context: e.childrenContext,
|
|
632
556
|
registeredComponents: e.registeredComponents
|
|
633
557
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)),
|
|
634
|
-
(
|
|
558
|
+
(u(!0), h(T, null, V(e.childrenWithoutParentComponent, (m, p) => (u(), C(d, {
|
|
635
559
|
key: "block-style-" + m.id,
|
|
636
560
|
block: m,
|
|
637
561
|
context: e.childrenContext
|
|
@@ -642,9 +566,121 @@ function Mt(e, t, n, o, s, r) {
|
|
|
642
566
|
], 64))
|
|
643
567
|
], 64)) : w("v-if", !0);
|
|
644
568
|
}
|
|
645
|
-
const
|
|
569
|
+
const _e = /* @__PURE__ */ k(jt, [["render", Ot], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
570
|
+
__proto__: null,
|
|
571
|
+
default: _e
|
|
572
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = {
|
|
573
|
+
small: {
|
|
574
|
+
min: 320,
|
|
575
|
+
default: 321,
|
|
576
|
+
max: 640
|
|
577
|
+
},
|
|
578
|
+
medium: {
|
|
579
|
+
min: 641,
|
|
580
|
+
default: 642,
|
|
581
|
+
max: 991
|
|
582
|
+
},
|
|
583
|
+
large: {
|
|
584
|
+
min: 990,
|
|
585
|
+
default: 991,
|
|
586
|
+
max: 1200
|
|
587
|
+
}
|
|
588
|
+
}, ue = (e, t = Ae) => `@media (max-width: ${t[e].max}px)`, Be = ({
|
|
589
|
+
small: e,
|
|
590
|
+
medium: t
|
|
591
|
+
}) => {
|
|
592
|
+
const n = N(Ae);
|
|
593
|
+
if (!e || !t)
|
|
594
|
+
return n;
|
|
595
|
+
const o = Math.floor(e / 2);
|
|
596
|
+
n.small = {
|
|
597
|
+
max: e,
|
|
598
|
+
min: o,
|
|
599
|
+
default: o + 1
|
|
600
|
+
};
|
|
601
|
+
const r = n.small.max + 1;
|
|
602
|
+
n.medium = {
|
|
603
|
+
max: t,
|
|
604
|
+
min: r,
|
|
605
|
+
default: r + 1
|
|
606
|
+
};
|
|
607
|
+
const s = n.medium.max + 1;
|
|
608
|
+
return n.large = {
|
|
609
|
+
max: 2e3,
|
|
610
|
+
min: s,
|
|
611
|
+
default: s + 1
|
|
612
|
+
}, n;
|
|
613
|
+
}, Nt = y({
|
|
614
|
+
render() {
|
|
615
|
+
return Se("style", { id: this.id, innerHTML: this.styles });
|
|
616
|
+
},
|
|
617
|
+
name: "inlined-styles",
|
|
618
|
+
props: ["styles", "id"]
|
|
619
|
+
}), G = /* @__PURE__ */ k(Nt, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Ft = y({
|
|
620
|
+
name: "block-styles",
|
|
621
|
+
components: { InlinedStyles: G },
|
|
622
|
+
props: ["block", "context"],
|
|
623
|
+
data() {
|
|
624
|
+
return { TARGET: A };
|
|
625
|
+
},
|
|
626
|
+
computed: {
|
|
627
|
+
canShowBlock() {
|
|
628
|
+
const e = D({
|
|
629
|
+
block: this.block,
|
|
630
|
+
localState: this.context.localState,
|
|
631
|
+
rootState: this.context.rootState,
|
|
632
|
+
rootSetState: this.context.rootSetState,
|
|
633
|
+
context: this.context.context,
|
|
634
|
+
shouldEvaluateBindings: !0
|
|
635
|
+
});
|
|
636
|
+
return _(e.hide) ? !e.hide : _(e.show) ? e.show : !0;
|
|
637
|
+
},
|
|
638
|
+
css() {
|
|
639
|
+
var f;
|
|
640
|
+
const e = D({
|
|
641
|
+
block: this.block,
|
|
642
|
+
localState: this.context.localState,
|
|
643
|
+
rootState: this.context.rootState,
|
|
644
|
+
rootSetState: this.context.rootSetState,
|
|
645
|
+
context: this.context.context,
|
|
646
|
+
shouldEvaluateBindings: !0
|
|
647
|
+
}), t = e.responsiveStyles, n = this.context.content, o = Be(
|
|
648
|
+
((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
|
|
649
|
+
), r = t == null ? void 0 : t.large, s = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
|
|
650
|
+
if (!a)
|
|
651
|
+
return "";
|
|
652
|
+
const l = r ? Y({
|
|
653
|
+
className: a,
|
|
654
|
+
styles: r
|
|
655
|
+
}) : "", c = s ? Y({
|
|
656
|
+
className: a,
|
|
657
|
+
styles: s,
|
|
658
|
+
mediaQuery: ue(
|
|
659
|
+
"medium",
|
|
660
|
+
o
|
|
661
|
+
)
|
|
662
|
+
}) : "", d = i ? Y({
|
|
663
|
+
className: a,
|
|
664
|
+
styles: i,
|
|
665
|
+
mediaQuery: ue(
|
|
666
|
+
"small",
|
|
667
|
+
o
|
|
668
|
+
)
|
|
669
|
+
}) : "";
|
|
670
|
+
return [l, c, d].join(" ");
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
function Ut(e, t, n, o, r, s) {
|
|
675
|
+
const i = v("inlined-styles");
|
|
676
|
+
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (u(), C(i, {
|
|
677
|
+
key: 0,
|
|
678
|
+
styles: e.css
|
|
679
|
+
}, null, 8, ["styles"])) : w("v-if", !0);
|
|
680
|
+
}
|
|
681
|
+
const Ve = /* @__PURE__ */ k(Ft, [["render", Ut], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
646
682
|
__proto__: null,
|
|
647
|
-
default:
|
|
683
|
+
default: Ve
|
|
648
684
|
}, Symbol.toStringTag, { value: "Module" })), Wt = y({
|
|
649
685
|
name: "builder-blocks-wrapper",
|
|
650
686
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
@@ -657,7 +693,7 @@ const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/c
|
|
|
657
693
|
methods: {
|
|
658
694
|
onClick() {
|
|
659
695
|
var e, t;
|
|
660
|
-
|
|
696
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
661
697
|
{
|
|
662
698
|
type: "builder.clickEmptyBlocks",
|
|
663
699
|
data: {
|
|
@@ -670,7 +706,7 @@ const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/c
|
|
|
670
706
|
},
|
|
671
707
|
onMouseEnter() {
|
|
672
708
|
var e, t;
|
|
673
|
-
|
|
709
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
674
710
|
{
|
|
675
711
|
type: "builder.hoverEmptyBlocks",
|
|
676
712
|
data: {
|
|
@@ -693,8 +729,8 @@ const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/c
|
|
|
693
729
|
}
|
|
694
730
|
});
|
|
695
731
|
const Lt = ["builder-path", "builder-parent-id"];
|
|
696
|
-
function Kt(e, t, n, o,
|
|
697
|
-
return
|
|
732
|
+
function Kt(e, t, n, o, r, s) {
|
|
733
|
+
return u(), h("div", I({
|
|
698
734
|
class: e._classStringToObject(e.className + " div-178o76acnws"),
|
|
699
735
|
"builder-path": e.path,
|
|
700
736
|
"builder-parent-id": e.parent,
|
|
@@ -703,32 +739,15 @@ function Kt(e, t, n, o, s, r) {
|
|
|
703
739
|
onMouseenter: t[1] || (t[1] = (i) => e.onMouseEnter()),
|
|
704
740
|
onKeypress: t[2] || (t[2] = (i) => e.onClick())
|
|
705
741
|
}, {}), [
|
|
706
|
-
|
|
742
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
707
743
|
], 16, Lt);
|
|
708
744
|
}
|
|
709
|
-
const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/
|
|
710
|
-
Builder: {
|
|
711
|
-
content: null,
|
|
712
|
-
context: {},
|
|
713
|
-
localState: void 0,
|
|
714
|
-
rootSetState() {
|
|
715
|
-
},
|
|
716
|
-
rootState: {},
|
|
717
|
-
apiKey: null,
|
|
718
|
-
apiVersion: void 0,
|
|
719
|
-
componentInfos: {},
|
|
720
|
-
inheritedStyles: {}
|
|
721
|
-
},
|
|
722
|
-
key: zt
|
|
723
|
-
}, Dt = Symbol(), Ve = {
|
|
724
|
-
Components: { registeredComponents: {} },
|
|
725
|
-
key: Dt
|
|
726
|
-
}, qt = y({
|
|
745
|
+
const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), zt = y({
|
|
727
746
|
name: "builder-blocks",
|
|
728
747
|
components: {
|
|
729
748
|
BlocksWrapper: Ht,
|
|
730
|
-
Block:
|
|
731
|
-
BlockStyles:
|
|
749
|
+
Block: _e,
|
|
750
|
+
BlockStyles: Ve
|
|
732
751
|
},
|
|
733
752
|
props: [
|
|
734
753
|
"blocks",
|
|
@@ -739,35 +758,35 @@ const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f
|
|
|
739
758
|
"registeredComponents"
|
|
740
759
|
],
|
|
741
760
|
inject: {
|
|
742
|
-
builderContext:
|
|
743
|
-
componentsContext:
|
|
761
|
+
builderContext: Q.key,
|
|
762
|
+
componentsContext: we.key
|
|
744
763
|
}
|
|
745
764
|
});
|
|
746
|
-
function
|
|
747
|
-
const i = v("block"), a = v("block-styles"),
|
|
748
|
-
return
|
|
765
|
+
function Dt(e, t, n, o, r, s) {
|
|
766
|
+
const i = v("block"), a = v("block-styles"), l = v("blocks-wrapper");
|
|
767
|
+
return u(), C(l, {
|
|
749
768
|
blocks: e.blocks,
|
|
750
769
|
parent: e.parent,
|
|
751
770
|
path: e.path,
|
|
752
771
|
styleProp: e.styleProp
|
|
753
772
|
}, {
|
|
754
773
|
default: ne(() => [
|
|
755
|
-
e.blocks ? (
|
|
756
|
-
key: "render-block-" +
|
|
757
|
-
block:
|
|
774
|
+
e.blocks ? (u(!0), h(T, { key: 0 }, V(e.blocks, (c, d) => (u(), C(i, {
|
|
775
|
+
key: "render-block-" + c.id,
|
|
776
|
+
block: c,
|
|
758
777
|
context: e.context || e.builderContext,
|
|
759
778
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
760
779
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : w("v-if", !0),
|
|
761
|
-
e.blocks ? (
|
|
762
|
-
key: "block-style-" +
|
|
763
|
-
block:
|
|
780
|
+
e.blocks ? (u(!0), h(T, { key: 1 }, V(e.blocks, (c, d) => (u(), C(a, {
|
|
781
|
+
key: "block-style-" + c.id,
|
|
782
|
+
block: c,
|
|
764
783
|
context: e.context || e.builderContext
|
|
765
784
|
}, null, 8, ["block", "context"]))), 128)) : w("v-if", !0)
|
|
766
785
|
]),
|
|
767
786
|
_: 1
|
|
768
787
|
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
769
788
|
}
|
|
770
|
-
const oe = /* @__PURE__ */ k(
|
|
789
|
+
const oe = /* @__PURE__ */ k(zt, [["render", Dt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), qt = y({
|
|
771
790
|
name: "builder-columns",
|
|
772
791
|
components: { InlinedStyles: G, Blocks: oe },
|
|
773
792
|
props: [
|
|
@@ -786,7 +805,7 @@ const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/c
|
|
|
786
805
|
cols: this.columns || [],
|
|
787
806
|
stackAt: this.stackColumnsAt || "tablet",
|
|
788
807
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
789
|
-
TARGET:
|
|
808
|
+
TARGET: A
|
|
790
809
|
};
|
|
791
810
|
},
|
|
792
811
|
computed: {
|
|
@@ -849,31 +868,31 @@ const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/c
|
|
|
849
868
|
return this.stackAt === "never" ? t : e;
|
|
850
869
|
},
|
|
851
870
|
columnCssVars(e) {
|
|
852
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`,
|
|
871
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
853
872
|
return {
|
|
854
873
|
width: n,
|
|
855
874
|
["margin-left"]: o,
|
|
856
875
|
"--column-width-mobile": this.getMobileStyle({
|
|
857
|
-
stackedStyle:
|
|
876
|
+
stackedStyle: r,
|
|
858
877
|
desktopStyle: n
|
|
859
878
|
}),
|
|
860
879
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
861
|
-
stackedStyle:
|
|
880
|
+
stackedStyle: s,
|
|
862
881
|
desktopStyle: o
|
|
863
882
|
}),
|
|
864
883
|
"--column-width-tablet": this.getTabletStyle({
|
|
865
|
-
stackedStyle:
|
|
884
|
+
stackedStyle: r,
|
|
866
885
|
desktopStyle: n
|
|
867
886
|
}),
|
|
868
887
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
869
|
-
stackedStyle:
|
|
888
|
+
stackedStyle: s,
|
|
870
889
|
desktopStyle: o
|
|
871
890
|
})
|
|
872
891
|
};
|
|
873
892
|
},
|
|
874
893
|
getWidthForBreakpointSize(e) {
|
|
875
894
|
var n, o;
|
|
876
|
-
return
|
|
895
|
+
return Be(
|
|
877
896
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
878
897
|
)[e].max;
|
|
879
898
|
},
|
|
@@ -888,62 +907,62 @@ const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/c
|
|
|
888
907
|
}
|
|
889
908
|
}
|
|
890
909
|
});
|
|
891
|
-
function
|
|
910
|
+
function Gt(e, t, n, o, r, s) {
|
|
892
911
|
const i = v("inlined-styles"), a = v("blocks");
|
|
893
|
-
return
|
|
912
|
+
return u(), h("div", I({
|
|
894
913
|
class: e._classStringToObject(
|
|
895
914
|
`builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
|
|
896
915
|
),
|
|
897
916
|
style: e.columnsCssVars
|
|
898
917
|
}, {}), [
|
|
899
|
-
e.TARGET !== "reactNative" ? (
|
|
918
|
+
e.TARGET !== "reactNative" ? (u(), C(i, {
|
|
900
919
|
key: 0,
|
|
901
920
|
styles: e.columnsStyles
|
|
902
921
|
}, null, 8, ["styles"])) : w("v-if", !0),
|
|
903
|
-
(
|
|
904
|
-
key:
|
|
922
|
+
(u(!0), h(T, null, V(e.columns, (l, c) => (u(), h("div", I({
|
|
923
|
+
key: c,
|
|
905
924
|
class: "builder-column div-16nol0lwi20-2",
|
|
906
|
-
style: e.columnCssVars(
|
|
925
|
+
style: e.columnCssVars(c)
|
|
907
926
|
}, {}), [
|
|
908
|
-
|
|
909
|
-
path: `component.options.columns.${
|
|
927
|
+
j(a, {
|
|
928
|
+
path: `component.options.columns.${c}.blocks`,
|
|
910
929
|
parent: e.builderBlock.id,
|
|
911
930
|
styleProp: {
|
|
912
931
|
flexGrow: "1"
|
|
913
932
|
},
|
|
914
933
|
context: e.builderContext,
|
|
915
934
|
registeredComponents: e.builderComponents,
|
|
916
|
-
blocks:
|
|
935
|
+
blocks: l.blocks
|
|
917
936
|
}, null, 8, ["path", "parent", "context", "registeredComponents", "blocks"])
|
|
918
937
|
], 16))), 128))
|
|
919
938
|
], 16);
|
|
920
939
|
}
|
|
921
|
-
const
|
|
940
|
+
const Jt = /* @__PURE__ */ k(qt, [["render", Gt], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Yt = y({
|
|
922
941
|
name: "builder-fragment-component",
|
|
923
942
|
props: []
|
|
924
943
|
});
|
|
925
|
-
function
|
|
926
|
-
return
|
|
927
|
-
|
|
944
|
+
function Xt(e, t, n, o, r, s) {
|
|
945
|
+
return u(), h("span", null, [
|
|
946
|
+
O(e.$slots, "default")
|
|
928
947
|
]);
|
|
929
948
|
}
|
|
930
|
-
const
|
|
931
|
-
function
|
|
949
|
+
const Qt = /* @__PURE__ */ k(Yt, [["render", Xt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
|
|
950
|
+
function de(e) {
|
|
932
951
|
return e.replace(/http(s)?:/, "");
|
|
933
952
|
}
|
|
934
|
-
function
|
|
935
|
-
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
936
|
-
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
953
|
+
function Zt(e = "", t, n) {
|
|
954
|
+
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
955
|
+
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
937
956
|
}
|
|
938
|
-
function
|
|
957
|
+
function en(e, t) {
|
|
939
958
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
940
959
|
return e;
|
|
941
960
|
if (t === "master")
|
|
942
|
-
return
|
|
961
|
+
return de(e);
|
|
943
962
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
944
963
|
if (n) {
|
|
945
|
-
const o = e.split(n[0]),
|
|
946
|
-
return
|
|
964
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
965
|
+
return de(`${o[0]}_${s}${r}`);
|
|
947
966
|
}
|
|
948
967
|
return null;
|
|
949
968
|
}
|
|
@@ -954,11 +973,11 @@ function X(e) {
|
|
|
954
973
|
if (e.match(/builder\.io/)) {
|
|
955
974
|
let n = e;
|
|
956
975
|
const o = Number(e.split("?width=")[1]);
|
|
957
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((
|
|
976
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Zt(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
958
977
|
}
|
|
959
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
978
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
960
979
|
}
|
|
961
|
-
const
|
|
980
|
+
const tn = y({
|
|
962
981
|
name: "builder-image",
|
|
963
982
|
props: [
|
|
964
983
|
"image",
|
|
@@ -1014,29 +1033,29 @@ const on = y({
|
|
|
1014
1033
|
}
|
|
1015
1034
|
}
|
|
1016
1035
|
});
|
|
1017
|
-
const
|
|
1036
|
+
const nn = ["srcset"], on = ["alt", "role", "src", "srcset", "sizes"], rn = {
|
|
1018
1037
|
key: 2,
|
|
1019
1038
|
class: "div-1be3j8m9ewb-2"
|
|
1020
1039
|
};
|
|
1021
|
-
function
|
|
1022
|
-
var i, a,
|
|
1023
|
-
return
|
|
1040
|
+
function sn(e, t, n, o, r, s) {
|
|
1041
|
+
var i, a, l, c;
|
|
1042
|
+
return u(), h(T, null, [
|
|
1024
1043
|
le("picture", null, [
|
|
1025
|
-
e.webpSrcSet ? (
|
|
1044
|
+
e.webpSrcSet ? (u(), h("source", {
|
|
1026
1045
|
key: 0,
|
|
1027
1046
|
type: "image/webp",
|
|
1028
1047
|
srcset: e.webpSrcSet
|
|
1029
|
-
}, null, 8,
|
|
1048
|
+
}, null, 8, nn)) : w("v-if", !0),
|
|
1030
1049
|
le("img", {
|
|
1031
1050
|
loading: "lazy",
|
|
1032
1051
|
alt: e.altText,
|
|
1033
1052
|
role: e.altText ? "presentation" : void 0,
|
|
1034
|
-
style:
|
|
1053
|
+
style: ce({
|
|
1035
1054
|
objectPosition: e.backgroundPosition || "center",
|
|
1036
1055
|
objectFit: e.backgroundSize || "cover",
|
|
1037
1056
|
...e.aspectRatioCss
|
|
1038
1057
|
}),
|
|
1039
|
-
class:
|
|
1058
|
+
class: Ce(
|
|
1040
1059
|
e._classStringToObject(
|
|
1041
1060
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
1042
1061
|
)
|
|
@@ -1044,30 +1063,30 @@ function cn(e, t, n, o, s, r) {
|
|
|
1044
1063
|
src: e.image,
|
|
1045
1064
|
srcset: e.srcSetToUse,
|
|
1046
1065
|
sizes: e.sizes
|
|
1047
|
-
}, null, 14,
|
|
1066
|
+
}, null, 14, on)
|
|
1048
1067
|
]),
|
|
1049
|
-
e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (
|
|
1068
|
+
e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (u(), h("div", {
|
|
1050
1069
|
key: 0,
|
|
1051
1070
|
class: "builder-image-sizer div-1be3j8m9ewb",
|
|
1052
|
-
style:
|
|
1071
|
+
style: ce({
|
|
1053
1072
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1054
1073
|
})
|
|
1055
1074
|
}, null, 4)) : w("v-if", !0),
|
|
1056
|
-
((
|
|
1057
|
-
!e.fitContent && e.$slots.default ? (
|
|
1058
|
-
|
|
1075
|
+
((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? O(e.$slots, "default", { key: 1 }, void 0, !0) : w("v-if", !0),
|
|
1076
|
+
!e.fitContent && e.$slots.default ? (u(), h("div", rn, [
|
|
1077
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
1059
1078
|
])) : w("v-if", !0)
|
|
1060
1079
|
], 64);
|
|
1061
1080
|
}
|
|
1062
|
-
const
|
|
1081
|
+
const an = /* @__PURE__ */ k(tn, [["render", sn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), ln = y({
|
|
1063
1082
|
name: "builder-section-component",
|
|
1064
1083
|
props: ["attributes", "maxWidth"],
|
|
1065
1084
|
data() {
|
|
1066
1085
|
return { filterAttrs: q };
|
|
1067
1086
|
}
|
|
1068
1087
|
});
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1088
|
+
function cn(e, t, n, o, r, s) {
|
|
1089
|
+
return u(), h("section", I({
|
|
1071
1090
|
style: {
|
|
1072
1091
|
width: "100%",
|
|
1073
1092
|
alignSelf: "stretch",
|
|
@@ -1080,102 +1099,145 @@ function un(e, t, n, o, s, r) {
|
|
|
1080
1099
|
marginLeft: "auto",
|
|
1081
1100
|
marginRight: "auto"
|
|
1082
1101
|
}
|
|
1083
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1084
|
-
|
|
1102
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1103
|
+
O(e.$slots, "default")
|
|
1085
1104
|
], 16);
|
|
1086
1105
|
}
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
const g = new Date();
|
|
1102
|
-
g.setTime(g.getTime() + T * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
|
|
1103
|
-
}
|
|
1104
|
-
document.cookie = b + "=" + (S || "") + E + "; path=/; Secure; SameSite=None";
|
|
1105
|
-
}
|
|
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);
|
|
1114
|
-
}
|
|
1115
|
-
return null;
|
|
1116
|
-
}
|
|
1117
|
-
const l = `builder.tests.${e}`, u = c(l), f = t.map((b) => b.id).concat(e);
|
|
1118
|
-
if (u && f.includes(u))
|
|
1119
|
-
return u;
|
|
1120
|
-
let m = 0;
|
|
1121
|
-
const p = Math.random();
|
|
1122
|
-
for (let b = 0; b < t.length; b++) {
|
|
1123
|
-
const S = t[b], T = S.testRatio;
|
|
1124
|
-
if (m += T, p < m)
|
|
1125
|
-
return a(l, S.id), S.id;
|
|
1126
|
-
}
|
|
1127
|
-
return a(l, e), e;
|
|
1128
|
-
}
|
|
1129
|
-
const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
1130
|
-
if (n) {
|
|
1131
|
-
r.remove();
|
|
1132
|
-
const a = document.currentScript;
|
|
1133
|
-
a == null || a.remove();
|
|
1134
|
-
} else {
|
|
1135
|
-
const a = t.concat({
|
|
1136
|
-
id: e
|
|
1137
|
-
}).filter((c) => c.id !== s).map((c) => `.variant-${c.id} { display: none; }
|
|
1138
|
-
`).join("");
|
|
1139
|
-
r.innerHTML = a;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
function fn(e, t, n) {
|
|
1143
|
-
var c;
|
|
1144
|
-
if (!navigator.cookieEnabled)
|
|
1106
|
+
const un = /* @__PURE__ */ k(ln, [["render", cn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), dn = (e) => {
|
|
1107
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
1108
|
+
return e;
|
|
1109
|
+
const t = e.split(".");
|
|
1110
|
+
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1111
|
+
}, je = ({
|
|
1112
|
+
name: e,
|
|
1113
|
+
canTrack: t
|
|
1114
|
+
}) => {
|
|
1115
|
+
var n;
|
|
1116
|
+
try {
|
|
1117
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1118
|
+
} catch (o) {
|
|
1119
|
+
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1145
1120
|
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);
|
|
1154
|
-
}
|
|
1155
|
-
return null;
|
|
1156
1121
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1122
|
+
}, Oe = async (e) => je(e), pn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(_).join("; "), mn = [["secure", ""], ["SameSite", "None"]], hn = ({
|
|
1123
|
+
name: e,
|
|
1124
|
+
value: t,
|
|
1125
|
+
expires: n
|
|
1126
|
+
}) => {
|
|
1127
|
+
const r = ($() ? location.protocol === "https:" : !0) ? mn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", dn(window.location.hostname)], ...r];
|
|
1128
|
+
return pn(i);
|
|
1129
|
+
}, Ne = async ({
|
|
1130
|
+
name: e,
|
|
1131
|
+
value: t,
|
|
1132
|
+
expires: n,
|
|
1133
|
+
canTrack: o
|
|
1134
|
+
}) => {
|
|
1135
|
+
try {
|
|
1136
|
+
if (!o)
|
|
1160
1137
|
return;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1138
|
+
const r = hn({
|
|
1139
|
+
name: e,
|
|
1140
|
+
value: t,
|
|
1141
|
+
expires: n
|
|
1142
|
+
});
|
|
1143
|
+
document.cookie = r;
|
|
1144
|
+
} catch (r) {
|
|
1145
|
+
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
1165
1146
|
}
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1147
|
+
}, fn = "builder.tests", re = (e) => `${fn}.${e}`, bn = ({
|
|
1148
|
+
contentId: e
|
|
1149
|
+
}) => Oe({
|
|
1150
|
+
name: re(e),
|
|
1151
|
+
canTrack: !0
|
|
1152
|
+
}), gn = ({
|
|
1153
|
+
contentId: e
|
|
1154
|
+
}) => je({
|
|
1155
|
+
name: re(e),
|
|
1156
|
+
canTrack: !0
|
|
1157
|
+
}), yn = ({
|
|
1175
1158
|
contentId: e,
|
|
1176
|
-
|
|
1177
|
-
}) =>
|
|
1178
|
-
|
|
1159
|
+
value: t
|
|
1160
|
+
}) => Ne({
|
|
1161
|
+
name: re(e),
|
|
1162
|
+
value: t,
|
|
1163
|
+
canTrack: !0
|
|
1164
|
+
}), Fe = (e) => _(e.id) && _(e.variations) && Object.keys(e.variations).length > 0, kn = ({
|
|
1165
|
+
id: e,
|
|
1166
|
+
variations: t
|
|
1167
|
+
}) => {
|
|
1168
|
+
var r;
|
|
1169
|
+
let n = 0;
|
|
1170
|
+
const o = Math.random();
|
|
1171
|
+
for (const s in t) {
|
|
1172
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
1173
|
+
if (n += i, o < n)
|
|
1174
|
+
return s;
|
|
1175
|
+
}
|
|
1176
|
+
return e;
|
|
1177
|
+
}, Ue = (e) => {
|
|
1178
|
+
const t = kn(e);
|
|
1179
|
+
return yn({
|
|
1180
|
+
contentId: e.id,
|
|
1181
|
+
value: t
|
|
1182
|
+
}).catch((n) => {
|
|
1183
|
+
x.error("could not store A/B test variation: ", n);
|
|
1184
|
+
}), t;
|
|
1185
|
+
}, Me = ({
|
|
1186
|
+
item: e,
|
|
1187
|
+
testGroupId: t
|
|
1188
|
+
}) => {
|
|
1189
|
+
const n = e.variations[t];
|
|
1190
|
+
return t === e.id || !n ? {
|
|
1191
|
+
testVariationId: e.id,
|
|
1192
|
+
testVariationName: "Default"
|
|
1193
|
+
} : {
|
|
1194
|
+
data: n.data,
|
|
1195
|
+
testVariationId: n.id,
|
|
1196
|
+
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1197
|
+
};
|
|
1198
|
+
}, vn = ({
|
|
1199
|
+
item: e,
|
|
1200
|
+
canTrack: t
|
|
1201
|
+
}) => {
|
|
1202
|
+
if (!t)
|
|
1203
|
+
return e;
|
|
1204
|
+
if (!e)
|
|
1205
|
+
return;
|
|
1206
|
+
if (!Fe(e))
|
|
1207
|
+
return e;
|
|
1208
|
+
const n = gn({
|
|
1209
|
+
contentId: e.id
|
|
1210
|
+
}) || Ue({
|
|
1211
|
+
variations: e.variations,
|
|
1212
|
+
id: e.id
|
|
1213
|
+
}), o = Me({
|
|
1214
|
+
item: e,
|
|
1215
|
+
testGroupId: n
|
|
1216
|
+
});
|
|
1217
|
+
return {
|
|
1218
|
+
...e,
|
|
1219
|
+
...o
|
|
1220
|
+
};
|
|
1221
|
+
}, Sn = async ({
|
|
1222
|
+
item: e,
|
|
1223
|
+
canTrack: t
|
|
1224
|
+
}) => {
|
|
1225
|
+
if (!t || !Fe(e))
|
|
1226
|
+
return e;
|
|
1227
|
+
const o = await bn({
|
|
1228
|
+
contentId: e.id
|
|
1229
|
+
}) || Ue({
|
|
1230
|
+
variations: e.variations,
|
|
1231
|
+
id: e.id
|
|
1232
|
+
}), r = Me({
|
|
1233
|
+
item: e,
|
|
1234
|
+
testGroupId: o
|
|
1235
|
+
});
|
|
1236
|
+
return {
|
|
1237
|
+
...e,
|
|
1238
|
+
...r
|
|
1239
|
+
};
|
|
1240
|
+
}, M = (e) => _(e) ? e : !0, Cn = {
|
|
1179
1241
|
name: "Core:Button",
|
|
1180
1242
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1181
1243
|
defaultStyles: {
|
|
@@ -1207,7 +1269,7 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1207
1269
|
}],
|
|
1208
1270
|
static: !0,
|
|
1209
1271
|
noWrap: !0
|
|
1210
|
-
},
|
|
1272
|
+
}, wn = {
|
|
1211
1273
|
name: "Columns",
|
|
1212
1274
|
isRSC: !0,
|
|
1213
1275
|
inputs: [{
|
|
@@ -1385,7 +1447,7 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1385
1447
|
});
|
|
1386
1448
|
}
|
|
1387
1449
|
const n = e.get("columns");
|
|
1388
|
-
Array.isArray(n) && !!n.find((
|
|
1450
|
+
Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
|
|
1389
1451
|
}
|
|
1390
1452
|
}, {
|
|
1391
1453
|
name: "space",
|
|
@@ -1407,113 +1469,305 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1407
1469
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1408
1470
|
advanced: !0
|
|
1409
1471
|
}]
|
|
1410
|
-
},
|
|
1411
|
-
name: "
|
|
1412
|
-
static: !0,
|
|
1413
|
-
hidden: !0,
|
|
1414
|
-
canHaveChildren: !0,
|
|
1415
|
-
noWrap: !0
|
|
1416
|
-
}, wn = {
|
|
1417
|
-
name: "Image",
|
|
1472
|
+
}, $n = {
|
|
1473
|
+
name: "Custom Code",
|
|
1418
1474
|
static: !0,
|
|
1419
|
-
|
|
1420
|
-
defaultStyles: {
|
|
1421
|
-
position: "relative",
|
|
1422
|
-
minHeight: "20px",
|
|
1423
|
-
minWidth: "20px",
|
|
1424
|
-
overflow: "hidden"
|
|
1425
|
-
},
|
|
1426
|
-
canHaveChildren: !0,
|
|
1475
|
+
requiredPermissions: ["editCode"],
|
|
1427
1476
|
inputs: [{
|
|
1428
|
-
name: "
|
|
1429
|
-
type: "
|
|
1430
|
-
bubble: !0,
|
|
1431
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1477
|
+
name: "code",
|
|
1478
|
+
type: "html",
|
|
1432
1479
|
required: !0,
|
|
1433
|
-
defaultValue: "
|
|
1434
|
-
|
|
1435
|
-
e.delete("srcset"), e.delete("noWebp");
|
|
1436
|
-
function n(i, a = 6e4) {
|
|
1437
|
-
return new Promise((c, l) => {
|
|
1438
|
-
const u = document.createElement("img");
|
|
1439
|
-
let f = !1;
|
|
1440
|
-
u.onload = () => {
|
|
1441
|
-
f = !0, c(u);
|
|
1442
|
-
}, u.addEventListener("error", (m) => {
|
|
1443
|
-
console.warn("Image load failed", m.error), l(m.error);
|
|
1444
|
-
}), u.src = i, setTimeout(() => {
|
|
1445
|
-
f || l(new Error("Image load timed out"));
|
|
1446
|
-
}, a);
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
function o(i) {
|
|
1450
|
-
return Math.round(i * 1e3) / 1e3;
|
|
1451
|
-
}
|
|
1452
|
-
const s = e.get("image"), r = e.get("aspectRatio");
|
|
1453
|
-
if (fetch(s).then((i) => i.blob()).then((i) => {
|
|
1454
|
-
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1455
|
-
}), s && (!r || r === 0.7041))
|
|
1456
|
-
return n(s).then((i) => {
|
|
1457
|
-
const a = e.get("aspectRatio");
|
|
1458
|
-
e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}, {
|
|
1462
|
-
name: "backgroundSize",
|
|
1463
|
-
type: "text",
|
|
1464
|
-
defaultValue: "cover",
|
|
1465
|
-
enum: [{
|
|
1466
|
-
label: "contain",
|
|
1467
|
-
value: "contain",
|
|
1468
|
-
helperText: "The image should never get cropped"
|
|
1469
|
-
}, {
|
|
1470
|
-
label: "cover",
|
|
1471
|
-
value: "cover",
|
|
1472
|
-
helperText: "The image should fill it's box, cropping when needed"
|
|
1473
|
-
}]
|
|
1474
|
-
}, {
|
|
1475
|
-
name: "backgroundPosition",
|
|
1476
|
-
type: "text",
|
|
1477
|
-
defaultValue: "center",
|
|
1478
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1479
|
-
}, {
|
|
1480
|
-
name: "altText",
|
|
1481
|
-
type: "string",
|
|
1482
|
-
helperText: "Text to display when the user has images off"
|
|
1483
|
-
}, {
|
|
1484
|
-
name: "height",
|
|
1485
|
-
type: "number",
|
|
1486
|
-
hideFromUI: !0
|
|
1487
|
-
}, {
|
|
1488
|
-
name: "width",
|
|
1489
|
-
type: "number",
|
|
1490
|
-
hideFromUI: !0
|
|
1491
|
-
}, {
|
|
1492
|
-
name: "sizes",
|
|
1493
|
-
type: "string",
|
|
1494
|
-
hideFromUI: !0
|
|
1495
|
-
}, {
|
|
1496
|
-
name: "srcset",
|
|
1497
|
-
type: "string",
|
|
1498
|
-
hideFromUI: !0
|
|
1480
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
1481
|
+
code: !0
|
|
1499
1482
|
}, {
|
|
1500
|
-
name: "
|
|
1483
|
+
name: "replaceNodes",
|
|
1501
1484
|
type: "boolean",
|
|
1502
|
-
|
|
1503
|
-
|
|
1485
|
+
helperText: "Preserve server rendered dom nodes",
|
|
1486
|
+
advanced: !0
|
|
1504
1487
|
}, {
|
|
1505
|
-
name: "
|
|
1488
|
+
name: "scriptsClientOnly",
|
|
1506
1489
|
type: "boolean",
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1490
|
+
defaultValue: !1,
|
|
1491
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1492
|
+
advanced: !0
|
|
1493
|
+
}]
|
|
1494
|
+
}, Rn = y({
|
|
1495
|
+
name: "builder-custom-code",
|
|
1496
|
+
props: ["replaceNodes", "code"],
|
|
1497
|
+
data() {
|
|
1498
|
+
return { scriptsInserted: [], scriptsRun: [] };
|
|
1499
|
+
},
|
|
1500
|
+
mounted() {
|
|
1501
|
+
var t;
|
|
1502
|
+
if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
|
|
1503
|
+
return;
|
|
1504
|
+
const e = this.$refs.elementRef.getElementsByTagName("script");
|
|
1505
|
+
for (let n = 0; n < e.length; n++) {
|
|
1506
|
+
const o = e[n];
|
|
1507
|
+
if (o.src) {
|
|
1508
|
+
if (this.scriptsInserted.includes(o.src))
|
|
1509
|
+
continue;
|
|
1510
|
+
this.scriptsInserted.push(o.src);
|
|
1511
|
+
const r = document.createElement("script");
|
|
1512
|
+
r.async = !0, r.src = o.src, document.head.appendChild(r);
|
|
1513
|
+
} else if (!o.type || [
|
|
1514
|
+
"text/javascript",
|
|
1515
|
+
"application/javascript",
|
|
1516
|
+
"application/ecmascript"
|
|
1517
|
+
].includes(o.type)) {
|
|
1518
|
+
if (this.scriptsRun.includes(o.innerText))
|
|
1519
|
+
continue;
|
|
1520
|
+
try {
|
|
1521
|
+
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
1522
|
+
} catch (r) {
|
|
1523
|
+
console.warn("`CustomCode`: Error running script:", r);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
methods: {
|
|
1529
|
+
_classStringToObject(e) {
|
|
1530
|
+
const t = {};
|
|
1531
|
+
if (typeof e != "string")
|
|
1532
|
+
return t;
|
|
1533
|
+
const n = e.trim().split(/\s+/);
|
|
1534
|
+
for (const o of n)
|
|
1535
|
+
t[o] = !0;
|
|
1536
|
+
return t;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}), Tn = ["innerHTML"];
|
|
1540
|
+
function In(e, t, n, o, r, s) {
|
|
1541
|
+
return u(), h("div", {
|
|
1542
|
+
ref: "elementRef",
|
|
1543
|
+
class: Ce(
|
|
1544
|
+
e._classStringToObject(
|
|
1545
|
+
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1546
|
+
)
|
|
1547
|
+
),
|
|
1548
|
+
innerHTML: e.code
|
|
1549
|
+
}, null, 10, Tn);
|
|
1550
|
+
}
|
|
1551
|
+
const xn = /* @__PURE__ */ k(Rn, [["render", In], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), En = {
|
|
1552
|
+
name: "Embed",
|
|
1553
|
+
static: !0,
|
|
1554
|
+
inputs: [{
|
|
1555
|
+
name: "url",
|
|
1556
|
+
type: "url",
|
|
1557
|
+
required: !0,
|
|
1558
|
+
defaultValue: "",
|
|
1559
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1560
|
+
onChange: (e) => {
|
|
1561
|
+
const t = e.get("url");
|
|
1562
|
+
if (t)
|
|
1563
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
|
|
1564
|
+
e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
1565
|
+
}).catch((o) => {
|
|
1566
|
+
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
1567
|
+
});
|
|
1568
|
+
e.delete("content");
|
|
1569
|
+
}
|
|
1570
|
+
}, {
|
|
1571
|
+
name: "content",
|
|
1572
|
+
type: "html",
|
|
1573
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1574
|
+
hideFromUI: !0
|
|
1575
|
+
}]
|
|
1576
|
+
}, Pn = ["text/javascript", "application/javascript", "application/ecmascript"], _n = (e) => Pn.includes(e.type), An = y({
|
|
1577
|
+
name: "builder-embed",
|
|
1578
|
+
props: ["content"],
|
|
1579
|
+
data() {
|
|
1580
|
+
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
1581
|
+
},
|
|
1582
|
+
watch: {
|
|
1583
|
+
onUpdateHook0: {
|
|
1584
|
+
handler() {
|
|
1585
|
+
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1586
|
+
},
|
|
1587
|
+
immediate: !0
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
computed: {
|
|
1591
|
+
onUpdateHook0() {
|
|
1592
|
+
return {
|
|
1593
|
+
0: this.$refs.elem,
|
|
1594
|
+
1: this.ranInitFn
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
methods: {
|
|
1599
|
+
findAndRunScripts() {
|
|
1600
|
+
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
1601
|
+
return;
|
|
1602
|
+
const e = this.$refs.elem.getElementsByTagName("script");
|
|
1603
|
+
for (let t = 0; t < e.length; t++) {
|
|
1604
|
+
const n = e[t];
|
|
1605
|
+
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
1606
|
+
this.scriptsInserted.push(n.src);
|
|
1607
|
+
const o = document.createElement("script");
|
|
1608
|
+
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1609
|
+
} else if (_n(n) && !this.scriptsRun.includes(n.innerText))
|
|
1610
|
+
try {
|
|
1611
|
+
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1612
|
+
} catch (o) {
|
|
1613
|
+
console.warn("`Embed`: Error running script:", o);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
}), Bn = ["innerHTML"];
|
|
1619
|
+
function Vn(e, t, n, o, r, s) {
|
|
1620
|
+
return u(), h("div", {
|
|
1621
|
+
class: "builder-embed",
|
|
1622
|
+
ref: "elem",
|
|
1623
|
+
innerHTML: e.content
|
|
1624
|
+
}, null, 8, Bn);
|
|
1625
|
+
}
|
|
1626
|
+
const jn = /* @__PURE__ */ k(An, [["render", Vn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), On = {
|
|
1627
|
+
name: "Fragment",
|
|
1628
|
+
static: !0,
|
|
1629
|
+
hidden: !0,
|
|
1630
|
+
canHaveChildren: !0,
|
|
1631
|
+
noWrap: !0
|
|
1632
|
+
}, Nn = {
|
|
1633
|
+
name: "Image",
|
|
1634
|
+
static: !0,
|
|
1635
|
+
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",
|
|
1636
|
+
defaultStyles: {
|
|
1637
|
+
position: "relative",
|
|
1638
|
+
minHeight: "20px",
|
|
1639
|
+
minWidth: "20px",
|
|
1640
|
+
overflow: "hidden"
|
|
1641
|
+
},
|
|
1642
|
+
canHaveChildren: !0,
|
|
1643
|
+
inputs: [{
|
|
1644
|
+
name: "image",
|
|
1645
|
+
type: "file",
|
|
1646
|
+
bubble: !0,
|
|
1647
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1648
|
+
required: !0,
|
|
1649
|
+
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1650
|
+
onChange: (e) => {
|
|
1651
|
+
e.delete("srcset"), e.delete("noWebp");
|
|
1652
|
+
function n(i, a = 6e4) {
|
|
1653
|
+
return new Promise((l, c) => {
|
|
1654
|
+
const d = document.createElement("img");
|
|
1655
|
+
let f = !1;
|
|
1656
|
+
d.onload = () => {
|
|
1657
|
+
f = !0, l(d);
|
|
1658
|
+
}, d.addEventListener("error", (m) => {
|
|
1659
|
+
console.warn("Image load failed", m.error), c(m.error);
|
|
1660
|
+
}), d.src = i, setTimeout(() => {
|
|
1661
|
+
f || c(new Error("Image load timed out"));
|
|
1662
|
+
}, a);
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
function o(i) {
|
|
1666
|
+
return Math.round(i * 1e3) / 1e3;
|
|
1667
|
+
}
|
|
1668
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
1669
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1670
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1671
|
+
}), r && (!s || s === 0.7041))
|
|
1672
|
+
return n(r).then((i) => {
|
|
1673
|
+
const a = e.get("aspectRatio");
|
|
1674
|
+
e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
}, {
|
|
1678
|
+
name: "backgroundSize",
|
|
1679
|
+
type: "text",
|
|
1680
|
+
defaultValue: "cover",
|
|
1681
|
+
enum: [{
|
|
1682
|
+
label: "contain",
|
|
1683
|
+
value: "contain",
|
|
1684
|
+
helperText: "The image should never get cropped"
|
|
1685
|
+
}, {
|
|
1686
|
+
label: "cover",
|
|
1687
|
+
value: "cover",
|
|
1688
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
1689
|
+
}]
|
|
1690
|
+
}, {
|
|
1691
|
+
name: "backgroundPosition",
|
|
1692
|
+
type: "text",
|
|
1693
|
+
defaultValue: "center",
|
|
1694
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1695
|
+
}, {
|
|
1696
|
+
name: "altText",
|
|
1697
|
+
type: "string",
|
|
1698
|
+
helperText: "Text to display when the user has images off"
|
|
1699
|
+
}, {
|
|
1700
|
+
name: "height",
|
|
1701
|
+
type: "number",
|
|
1702
|
+
hideFromUI: !0
|
|
1703
|
+
}, {
|
|
1704
|
+
name: "width",
|
|
1705
|
+
type: "number",
|
|
1706
|
+
hideFromUI: !0
|
|
1707
|
+
}, {
|
|
1708
|
+
name: "sizes",
|
|
1709
|
+
type: "string",
|
|
1710
|
+
hideFromUI: !0
|
|
1711
|
+
}, {
|
|
1712
|
+
name: "srcset",
|
|
1713
|
+
type: "string",
|
|
1714
|
+
hideFromUI: !0
|
|
1715
|
+
}, {
|
|
1716
|
+
name: "lazy",
|
|
1717
|
+
type: "boolean",
|
|
1718
|
+
defaultValue: !0,
|
|
1719
|
+
hideFromUI: !0
|
|
1720
|
+
}, {
|
|
1721
|
+
name: "fitContent",
|
|
1722
|
+
type: "boolean",
|
|
1723
|
+
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
1724
|
+
defaultValue: !0
|
|
1725
|
+
}, {
|
|
1726
|
+
name: "aspectRatio",
|
|
1511
1727
|
type: "number",
|
|
1512
1728
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1513
1729
|
advanced: !0,
|
|
1514
1730
|
defaultValue: 0.7041
|
|
1515
1731
|
}]
|
|
1516
|
-
},
|
|
1732
|
+
}, Fn = {
|
|
1733
|
+
name: "Raw:Img",
|
|
1734
|
+
hideFromInsertMenu: !0,
|
|
1735
|
+
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",
|
|
1736
|
+
inputs: [{
|
|
1737
|
+
name: "image",
|
|
1738
|
+
bubble: !0,
|
|
1739
|
+
type: "file",
|
|
1740
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
1741
|
+
required: !0
|
|
1742
|
+
}],
|
|
1743
|
+
noWrap: !0,
|
|
1744
|
+
static: !0
|
|
1745
|
+
}, Un = y({
|
|
1746
|
+
name: "builder-img-component",
|
|
1747
|
+
props: [
|
|
1748
|
+
"backgroundSize",
|
|
1749
|
+
"backgroundPosition",
|
|
1750
|
+
"imgSrc",
|
|
1751
|
+
"altText",
|
|
1752
|
+
"image",
|
|
1753
|
+
"attributes"
|
|
1754
|
+
],
|
|
1755
|
+
data() {
|
|
1756
|
+
return { isEditing: P, filterAttrs: q };
|
|
1757
|
+
}
|
|
1758
|
+
}), Mn = ["alt", "src"];
|
|
1759
|
+
function Wn(e, t, n, o, r, s) {
|
|
1760
|
+
return u(), h("img", I({
|
|
1761
|
+
style: {
|
|
1762
|
+
objectFit: e.backgroundSize || "cover",
|
|
1763
|
+
objectPosition: e.backgroundPosition || "center"
|
|
1764
|
+
},
|
|
1765
|
+
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1766
|
+
alt: e.altText,
|
|
1767
|
+
src: e.imgSrc || e.image
|
|
1768
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Mn);
|
|
1769
|
+
}
|
|
1770
|
+
const Ln = /* @__PURE__ */ k(Un, [["render", Wn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Kn = {
|
|
1517
1771
|
name: "Core:Section",
|
|
1518
1772
|
static: !0,
|
|
1519
1773
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1552,7 +1806,7 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1552
1806
|
}
|
|
1553
1807
|
}
|
|
1554
1808
|
}]
|
|
1555
|
-
},
|
|
1809
|
+
}, Hn = {
|
|
1556
1810
|
name: "Symbol",
|
|
1557
1811
|
noWrap: !0,
|
|
1558
1812
|
static: !0,
|
|
@@ -1585,7 +1839,7 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1585
1839
|
hideFromUI: !0,
|
|
1586
1840
|
type: "boolean"
|
|
1587
1841
|
}]
|
|
1588
|
-
},
|
|
1842
|
+
}, zn = {
|
|
1589
1843
|
name: "Text",
|
|
1590
1844
|
static: !0,
|
|
1591
1845
|
isRSC: !0,
|
|
@@ -1603,21 +1857,21 @@ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builde
|
|
|
1603
1857
|
height: "auto",
|
|
1604
1858
|
textAlign: "center"
|
|
1605
1859
|
}
|
|
1606
|
-
},
|
|
1860
|
+
}, Dn = y({
|
|
1607
1861
|
name: "builder-text",
|
|
1608
1862
|
props: ["text"]
|
|
1609
|
-
}),
|
|
1610
|
-
function
|
|
1863
|
+
}), qn = ["innerHTML"];
|
|
1864
|
+
function Gn(e, t, n, o, r, s) {
|
|
1611
1865
|
var i;
|
|
1612
|
-
return
|
|
1866
|
+
return u(), h("div", {
|
|
1613
1867
|
class: "builder-text",
|
|
1614
1868
|
innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
|
|
1615
1869
|
style: {
|
|
1616
1870
|
outline: "none"
|
|
1617
1871
|
}
|
|
1618
|
-
}, null, 8,
|
|
1872
|
+
}, null, 8, qn);
|
|
1619
1873
|
}
|
|
1620
|
-
const
|
|
1874
|
+
const Jn = /* @__PURE__ */ k(Dn, [["render", Gn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), Yn = {
|
|
1621
1875
|
name: "Video",
|
|
1622
1876
|
canHaveChildren: !0,
|
|
1623
1877
|
defaultStyles: {
|
|
@@ -1698,7 +1952,7 @@ const _n = /* @__PURE__ */ k(Rn, [["render", En], ["__file", "/Users/samijaber/c
|
|
|
1698
1952
|
defaultValue: !0,
|
|
1699
1953
|
advanced: !0
|
|
1700
1954
|
}]
|
|
1701
|
-
},
|
|
1955
|
+
}, Xn = y({
|
|
1702
1956
|
name: "builder-video",
|
|
1703
1957
|
props: [
|
|
1704
1958
|
"autoPlay",
|
|
@@ -1740,10 +1994,10 @@ const _n = /* @__PURE__ */ k(Rn, [["render", En], ["__file", "/Users/samijaber/c
|
|
|
1740
1994
|
};
|
|
1741
1995
|
}
|
|
1742
1996
|
}
|
|
1743
|
-
}),
|
|
1744
|
-
function
|
|
1997
|
+
}), Qn = ["preload", "src", "poster"];
|
|
1998
|
+
function Zn(e, t, n, o, r, s) {
|
|
1745
1999
|
var i;
|
|
1746
|
-
return
|
|
2000
|
+
return u(), h("video", I({
|
|
1747
2001
|
preload: e.preload || "metadata",
|
|
1748
2002
|
style: {
|
|
1749
2003
|
width: "100%",
|
|
@@ -1755,484 +2009,372 @@ function Bn(e, t, n, o, s, r) {
|
|
|
1755
2009
|
},
|
|
1756
2010
|
src: e.video || "no-src",
|
|
1757
2011
|
poster: e.posterImage
|
|
1758
|
-
}, e.spreadProps), null, 16,
|
|
2012
|
+
}, e.spreadProps), null, 16, Qn);
|
|
1759
2013
|
}
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
inputs: [{
|
|
1764
|
-
name: "url",
|
|
1765
|
-
type: "url",
|
|
1766
|
-
required: !0,
|
|
1767
|
-
defaultValue: "",
|
|
1768
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1769
|
-
onChange: (e) => {
|
|
1770
|
-
const t = e.get("url");
|
|
1771
|
-
if (t)
|
|
1772
|
-
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
|
|
1773
|
-
e.get("url") === t && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
1774
|
-
}).catch((o) => {
|
|
1775
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
1776
|
-
});
|
|
1777
|
-
e.delete("content");
|
|
1778
|
-
}
|
|
1779
|
-
}, {
|
|
1780
|
-
name: "content",
|
|
1781
|
-
type: "html",
|
|
1782
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1783
|
-
hideFromUI: !0
|
|
1784
|
-
}]
|
|
1785
|
-
}, Nn = ["text/javascript", "application/javascript", "application/ecmascript"], On = (e) => Nn.includes(e.type), Fn = y({
|
|
1786
|
-
name: "builder-embed",
|
|
1787
|
-
props: ["content"],
|
|
1788
|
-
data() {
|
|
1789
|
-
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
1790
|
-
},
|
|
1791
|
-
watch: {
|
|
1792
|
-
onUpdateHook0: {
|
|
1793
|
-
handler() {
|
|
1794
|
-
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1795
|
-
},
|
|
1796
|
-
immediate: !0
|
|
1797
|
-
}
|
|
1798
|
-
},
|
|
1799
|
-
computed: {
|
|
1800
|
-
onUpdateHook0() {
|
|
1801
|
-
return {
|
|
1802
|
-
0: this.$refs.elem,
|
|
1803
|
-
1: this.ranInitFn
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
},
|
|
1807
|
-
methods: {
|
|
1808
|
-
findAndRunScripts() {
|
|
1809
|
-
if (!this.$refs.elem || !this.$refs.elem.getElementsByTagName)
|
|
1810
|
-
return;
|
|
1811
|
-
const e = this.$refs.elem.getElementsByTagName("script");
|
|
1812
|
-
for (let t = 0; t < e.length; t++) {
|
|
1813
|
-
const n = e[t];
|
|
1814
|
-
if (n.src && !this.scriptsInserted.includes(n.src)) {
|
|
1815
|
-
this.scriptsInserted.push(n.src);
|
|
1816
|
-
const o = document.createElement("script");
|
|
1817
|
-
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1818
|
-
} else if (On(n) && !this.scriptsRun.includes(n.innerText))
|
|
1819
|
-
try {
|
|
1820
|
-
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1821
|
-
} catch (o) {
|
|
1822
|
-
console.warn("`Embed`: Error running script:", o);
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
}), Mn = ["innerHTML"];
|
|
1828
|
-
function Wn(e, t, n, o, s, r) {
|
|
1829
|
-
return d(), h("div", {
|
|
1830
|
-
class: "builder-embed",
|
|
1831
|
-
ref: "elem",
|
|
1832
|
-
innerHTML: e.content
|
|
1833
|
-
}, null, 8, Mn);
|
|
1834
|
-
}
|
|
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({
|
|
1836
|
-
name: "builder-img-component",
|
|
1837
|
-
props: [
|
|
1838
|
-
"backgroundSize",
|
|
1839
|
-
"backgroundPosition",
|
|
1840
|
-
"imgSrc",
|
|
1841
|
-
"altText",
|
|
1842
|
-
"image",
|
|
1843
|
-
"attributes"
|
|
1844
|
-
],
|
|
1845
|
-
data() {
|
|
1846
|
-
return { isEditing: _, filterAttrs: q };
|
|
1847
|
-
}
|
|
1848
|
-
}), Hn = ["alt", "src"];
|
|
1849
|
-
function zn(e, t, n, o, s, r) {
|
|
1850
|
-
return d(), h("img", I({
|
|
1851
|
-
style: {
|
|
1852
|
-
objectFit: e.backgroundSize || "cover",
|
|
1853
|
-
objectPosition: e.backgroundPosition || "center"
|
|
1854
|
-
},
|
|
1855
|
-
key: e.isEditing() && e.imgSrc || "default-key",
|
|
1856
|
-
alt: e.altText,
|
|
1857
|
-
src: e.imgSrc || e.image
|
|
1858
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Hn);
|
|
1859
|
-
}
|
|
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 = {
|
|
1861
|
-
name: "Raw:Img",
|
|
1862
|
-
hideFromInsertMenu: !0,
|
|
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",
|
|
1864
|
-
inputs: [{
|
|
1865
|
-
name: "image",
|
|
1866
|
-
bubble: !0,
|
|
1867
|
-
type: "file",
|
|
1868
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
1869
|
-
required: !0
|
|
1870
|
-
}],
|
|
1871
|
-
noWrap: !0,
|
|
1872
|
-
static: !0
|
|
1873
|
-
}, Gn = y({
|
|
1874
|
-
name: "builder-custom-code",
|
|
1875
|
-
props: ["replaceNodes", "code"],
|
|
1876
|
-
data() {
|
|
1877
|
-
return { scriptsInserted: [], scriptsRun: [] };
|
|
1878
|
-
},
|
|
1879
|
-
mounted() {
|
|
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);
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
},
|
|
1907
|
-
methods: {
|
|
1908
|
-
_classStringToObject(e) {
|
|
1909
|
-
const t = {};
|
|
1910
|
-
if (typeof e != "string")
|
|
1911
|
-
return t;
|
|
1912
|
-
const n = e.trim().split(/\s+/);
|
|
1913
|
-
for (const o of n)
|
|
1914
|
-
t[o] = !0;
|
|
1915
|
-
return t;
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
}), Jn = ["innerHTML"];
|
|
1919
|
-
function Yn(e, t, n, o, s, r) {
|
|
1920
|
-
return d(), h("div", {
|
|
1921
|
-
ref: "elementRef",
|
|
1922
|
-
class: we(
|
|
1923
|
-
e._classStringToObject(
|
|
1924
|
-
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1925
|
-
)
|
|
1926
|
-
),
|
|
1927
|
-
innerHTML: e.code
|
|
1928
|
-
}, null, 10, Jn);
|
|
1929
|
-
}
|
|
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 = {
|
|
1931
|
-
name: "Custom Code",
|
|
1932
|
-
static: !0,
|
|
1933
|
-
requiredPermissions: ["editCode"],
|
|
1934
|
-
inputs: [{
|
|
1935
|
-
name: "code",
|
|
1936
|
-
type: "html",
|
|
1937
|
-
required: !0,
|
|
1938
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
1939
|
-
code: !0
|
|
1940
|
-
}, {
|
|
1941
|
-
name: "replaceNodes",
|
|
1942
|
-
type: "boolean",
|
|
1943
|
-
helperText: "Preserve server rendered dom nodes",
|
|
1944
|
-
advanced: !0
|
|
1945
|
-
}, {
|
|
1946
|
-
name: "scriptsClientOnly",
|
|
1947
|
-
type: "boolean",
|
|
1948
|
-
defaultValue: !1,
|
|
1949
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1950
|
-
advanced: !0
|
|
1951
|
-
}]
|
|
1952
|
-
}, me = () => [{
|
|
1953
|
-
component: ct,
|
|
1954
|
-
...vn
|
|
2014
|
+
const eo = /* @__PURE__ */ k(Xn, [["render", Zn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), pe = () => [{
|
|
2015
|
+
component: it,
|
|
2016
|
+
...Cn
|
|
1955
2017
|
}, {
|
|
1956
|
-
component:
|
|
1957
|
-
...
|
|
2018
|
+
component: Jt,
|
|
2019
|
+
...wn
|
|
1958
2020
|
}, {
|
|
1959
|
-
component:
|
|
1960
|
-
|
|
2021
|
+
component: xn,
|
|
2022
|
+
...$n
|
|
1961
2023
|
}, {
|
|
1962
|
-
component:
|
|
1963
|
-
...
|
|
2024
|
+
component: jn,
|
|
2025
|
+
...En
|
|
1964
2026
|
}, {
|
|
1965
|
-
component:
|
|
1966
|
-
...
|
|
2027
|
+
component: Qt,
|
|
2028
|
+
...On
|
|
1967
2029
|
}, {
|
|
1968
|
-
component:
|
|
1969
|
-
...
|
|
2030
|
+
component: an,
|
|
2031
|
+
...Nn
|
|
1970
2032
|
}, {
|
|
1971
|
-
component:
|
|
1972
|
-
...
|
|
2033
|
+
component: Ln,
|
|
2034
|
+
...Fn
|
|
1973
2035
|
}, {
|
|
1974
|
-
component:
|
|
1975
|
-
|
|
2036
|
+
component: un,
|
|
2037
|
+
...Kn
|
|
1976
2038
|
}, {
|
|
1977
|
-
component:
|
|
1978
|
-
...
|
|
2039
|
+
component: lr,
|
|
2040
|
+
...Hn
|
|
1979
2041
|
}, {
|
|
1980
|
-
component:
|
|
1981
|
-
...
|
|
2042
|
+
component: Jn,
|
|
2043
|
+
...zn
|
|
1982
2044
|
}, {
|
|
1983
|
-
component:
|
|
1984
|
-
...
|
|
1985
|
-
}],
|
|
2045
|
+
component: eo,
|
|
2046
|
+
...Yn
|
|
2047
|
+
}], me = [], to = (e) => ({
|
|
1986
2048
|
type: "builder.registerComponent",
|
|
1987
2049
|
data: ee(e)
|
|
1988
|
-
}),
|
|
2050
|
+
}), no = (e) => {
|
|
1989
2051
|
const t = e.toString().trim();
|
|
1990
2052
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1991
|
-
},
|
|
2053
|
+
}, oo = (e) => typeof e == "function" ? no(e) : N(e), ee = ({
|
|
1992
2054
|
inputs: e,
|
|
1993
2055
|
...t
|
|
1994
2056
|
}) => ({
|
|
1995
2057
|
...N(t),
|
|
1996
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [
|
|
2058
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
|
|
1997
2059
|
...o,
|
|
1998
|
-
[
|
|
2060
|
+
[r]: oo(s)
|
|
1999
2061
|
}), {}))
|
|
2000
|
-
}),
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
if (
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
font-family: "${t}";
|
|
2019
|
-
src: url('${l}') format('woff2');
|
|
2020
|
-
font-display: fallback;
|
|
2021
|
-
font-weight: ${a};
|
|
2022
|
-
}
|
|
2023
|
-
`.trim());
|
|
2062
|
+
}), K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2063
|
+
...t,
|
|
2064
|
+
testVariationId: t.id,
|
|
2065
|
+
id: e == null ? void 0 : e.id
|
|
2066
|
+
})), ro = ({
|
|
2067
|
+
canTrack: e,
|
|
2068
|
+
content: t
|
|
2069
|
+
}) => !(!(K(t).length > 0) || !e);
|
|
2070
|
+
function so(e, t, n) {
|
|
2071
|
+
var i;
|
|
2072
|
+
function o() {
|
|
2073
|
+
function a(b, S, R) {
|
|
2074
|
+
let E = "";
|
|
2075
|
+
if (R) {
|
|
2076
|
+
const g = new Date();
|
|
2077
|
+
g.setTime(g.getTime() + R * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
|
|
2078
|
+
}
|
|
2079
|
+
document.cookie = b + "=" + (S || "") + E + "; path=/; Secure; SameSite=None";
|
|
2024
2080
|
}
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2081
|
+
function l(b) {
|
|
2082
|
+
const S = b + "=", R = document.cookie.split(";");
|
|
2083
|
+
for (let E = 0; E < R.length; E++) {
|
|
2084
|
+
let g = R[E];
|
|
2085
|
+
for (; g.charAt(0) === " "; )
|
|
2086
|
+
g = g.substring(1, g.length);
|
|
2087
|
+
if (g.indexOf(S) === 0)
|
|
2088
|
+
return g.substring(S.length, g.length);
|
|
2089
|
+
}
|
|
2090
|
+
return null;
|
|
2091
|
+
}
|
|
2092
|
+
const c = `builder.tests.${e}`, d = l(c), f = t.map((b) => b.id).concat(e);
|
|
2093
|
+
if (d && f.includes(d))
|
|
2094
|
+
return d;
|
|
2095
|
+
let m = 0;
|
|
2096
|
+
const p = Math.random();
|
|
2097
|
+
for (let b = 0; b < t.length; b++) {
|
|
2098
|
+
const S = t[b], R = S.testRatio;
|
|
2099
|
+
if (m += R, p < m)
|
|
2100
|
+
return a(c, S.id), S.id;
|
|
2101
|
+
}
|
|
2102
|
+
return a(c, e), e;
|
|
2103
|
+
}
|
|
2104
|
+
const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
|
|
2105
|
+
if (n) {
|
|
2106
|
+
s.remove();
|
|
2107
|
+
const a = document.currentScript;
|
|
2108
|
+
a == null || a.remove();
|
|
2109
|
+
} else {
|
|
2110
|
+
const a = t.concat({
|
|
2111
|
+
id: e
|
|
2112
|
+
}).filter((l) => l.id !== r).map((l) => `.variant-${l.id} { display: none; }
|
|
2113
|
+
`).join("");
|
|
2114
|
+
s.innerHTML = a;
|
|
2115
|
+
}
|
|
2060
2116
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2117
|
+
function io(e, t, n) {
|
|
2118
|
+
var l;
|
|
2119
|
+
if (!navigator.cookieEnabled)
|
|
2120
|
+
return;
|
|
2121
|
+
function o(c) {
|
|
2122
|
+
const d = c + "=", f = document.cookie.split(";");
|
|
2123
|
+
for (let m = 0; m < f.length; m++) {
|
|
2124
|
+
let p = f[m];
|
|
2125
|
+
for (; p.charAt(0) === " "; )
|
|
2126
|
+
p = p.substring(1, p.length);
|
|
2127
|
+
if (p.indexOf(d) === 0)
|
|
2128
|
+
return p.substring(d.length, p.length);
|
|
2129
|
+
}
|
|
2130
|
+
return null;
|
|
2131
|
+
}
|
|
2132
|
+
const r = `builder.tests.${t}`, s = o(r), i = (l = document.currentScript) == null ? void 0 : l.parentElement, a = e === t;
|
|
2133
|
+
if (s === e) {
|
|
2134
|
+
if (a)
|
|
2135
|
+
return;
|
|
2136
|
+
i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
|
|
2137
|
+
} else {
|
|
2138
|
+
a && (n ? i == null || i.remove() : (i == null || i.setAttribute("hidden", "true"), i == null || i.setAttribute("aria-hidden", "true")));
|
|
2139
|
+
return;
|
|
2063
2140
|
}
|
|
2064
|
-
});
|
|
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"]);
|
|
2068
2141
|
}
|
|
2069
|
-
const ao =
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
(
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
...n ? {
|
|
2084
|
-
locale: n
|
|
2085
|
-
} : {}
|
|
2086
|
-
};
|
|
2087
|
-
return {
|
|
2088
|
-
...o,
|
|
2089
|
-
...s
|
|
2090
|
-
};
|
|
2091
|
-
}, lo = ({
|
|
2092
|
-
content: e,
|
|
2093
|
-
data: t
|
|
2094
|
-
}) => e ? {
|
|
2095
|
-
...e,
|
|
2096
|
-
data: {
|
|
2097
|
-
...e == null ? void 0 : e.data,
|
|
2098
|
-
...t
|
|
2142
|
+
const ao = (e) => e === "react" || e === "reactNative", We = ao(A), Le = "builderIoAbTest", Ke = "builderIoRenderContent", lo = () => {
|
|
2143
|
+
const e = so.toString().replace(/\s+/g, " "), t = io.toString().replace(/\s+/g, " ");
|
|
2144
|
+
return `
|
|
2145
|
+
window.${Le} = ${e}
|
|
2146
|
+
window.${Ke} = ${t}
|
|
2147
|
+
`;
|
|
2148
|
+
}, co = (e, t) => `
|
|
2149
|
+
window.${Le}("${t}",${JSON.stringify(e)}, ${We})`, uo = ({
|
|
2150
|
+
contentId: e,
|
|
2151
|
+
variationId: t
|
|
2152
|
+
}) => `
|
|
2153
|
+
window.${Ke}("${t}", "${e}", ${We})`, po = y({
|
|
2154
|
+
render() {
|
|
2155
|
+
return Se("script", { id: this.id, innerHTML: this.scriptStr });
|
|
2099
2156
|
},
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2157
|
+
name: "inlined-script",
|
|
2158
|
+
props: ["scriptStr", "id"]
|
|
2159
|
+
}), He = /* @__PURE__ */ k(po, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]);
|
|
2160
|
+
function mo() {
|
|
2103
2161
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
2104
2162
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const e =
|
|
2163
|
+
function ho() {
|
|
2164
|
+
const e = mo().fetch;
|
|
2107
2165
|
if (typeof e > "u")
|
|
2108
2166
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2109
2167
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
2110
2168
|
return e;
|
|
2111
2169
|
}
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2170
|
+
const ze = ho();
|
|
2171
|
+
function H(e, t = null, n = ".") {
|
|
2172
|
+
return Object.keys(e).reduce((o, r) => {
|
|
2173
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
2174
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
2175
|
+
...o,
|
|
2176
|
+
...H(s, i, n)
|
|
2177
|
+
} : {
|
|
2178
|
+
...o,
|
|
2179
|
+
[i]: s
|
|
2180
|
+
};
|
|
2181
|
+
}, {});
|
|
2182
|
+
}
|
|
2183
|
+
const fo = "v3", he = "builder.", bo = "options.", go = (e) => {
|
|
2184
|
+
const t = {};
|
|
2185
|
+
return e.forEach((n, o) => {
|
|
2186
|
+
t[o] = n;
|
|
2187
|
+
}), t;
|
|
2188
|
+
}, De = (e) => {
|
|
2189
|
+
if (!e)
|
|
2190
|
+
return {};
|
|
2191
|
+
const t = qe(e), n = {};
|
|
2192
|
+
return Object.keys(t).forEach((o) => {
|
|
2193
|
+
if (o.startsWith(he)) {
|
|
2194
|
+
const r = o.replace(he, "").replace(bo, "");
|
|
2195
|
+
n[r] = t[o];
|
|
2196
|
+
}
|
|
2197
|
+
}), n;
|
|
2198
|
+
}, yo = () => {
|
|
2199
|
+
if (!$())
|
|
2200
|
+
return {};
|
|
2201
|
+
const e = new URLSearchParams(window.location.search);
|
|
2202
|
+
return De(e);
|
|
2203
|
+
}, qe = (e) => e instanceof URLSearchParams ? go(e) : e, fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
|
|
2204
|
+
let {
|
|
2205
|
+
noTraverse: t = !1
|
|
2206
|
+
} = e;
|
|
2207
|
+
const {
|
|
2208
|
+
limit: n = 30,
|
|
2209
|
+
userAttributes: o,
|
|
2210
|
+
query: r,
|
|
2211
|
+
model: s,
|
|
2212
|
+
apiKey: i,
|
|
2213
|
+
includeRefs: a = !0,
|
|
2214
|
+
enrich: l,
|
|
2215
|
+
locale: c,
|
|
2216
|
+
apiVersion: d = fo,
|
|
2217
|
+
fields: f,
|
|
2218
|
+
omit: m,
|
|
2219
|
+
offset: p,
|
|
2220
|
+
cacheSeconds: b,
|
|
2221
|
+
staleCacheSeconds: S,
|
|
2222
|
+
sort: R,
|
|
2223
|
+
includeUnpublished: E
|
|
2224
|
+
} = e;
|
|
2225
|
+
if (!i)
|
|
2226
|
+
throw new Error("Missing API key");
|
|
2227
|
+
if (!["v2", "v3"].includes(d))
|
|
2228
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
|
|
2229
|
+
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
2230
|
+
const g = new URL(`https://cdn.builder.io/api/${d}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
|
|
2231
|
+
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 && fe(b) && g.searchParams.set("cacheSeconds", String(b)), S && fe(S) && g.searchParams.set("staleCacheSeconds", String(S)), R) {
|
|
2232
|
+
const B = H({
|
|
2233
|
+
sort: R
|
|
2234
|
+
});
|
|
2235
|
+
for (const F in B)
|
|
2236
|
+
g.searchParams.set(F, JSON.stringify(B[F]));
|
|
2127
2237
|
}
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
value: t,
|
|
2138
|
-
expires: n,
|
|
2139
|
-
canTrack: o
|
|
2140
|
-
}) => {
|
|
2141
|
-
try {
|
|
2142
|
-
if (!o)
|
|
2143
|
-
return;
|
|
2144
|
-
const s = bo({
|
|
2145
|
-
name: e,
|
|
2146
|
-
value: t,
|
|
2147
|
-
expires: n
|
|
2238
|
+
const et = {
|
|
2239
|
+
...yo(),
|
|
2240
|
+
...qe(e.options || {})
|
|
2241
|
+
}, ie = H(et);
|
|
2242
|
+
for (const B in ie)
|
|
2243
|
+
g.searchParams.set(B, String(ie[B]));
|
|
2244
|
+
if (o && g.searchParams.set("userAttributes", JSON.stringify(o)), r) {
|
|
2245
|
+
const B = H({
|
|
2246
|
+
query: r
|
|
2148
2247
|
});
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
x.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
|
|
2248
|
+
for (const F in B)
|
|
2249
|
+
g.searchParams.set(F, JSON.stringify(B[F]));
|
|
2152
2250
|
}
|
|
2251
|
+
return g;
|
|
2252
|
+
}, ko = (e) => "results" in e;
|
|
2253
|
+
async function J(e) {
|
|
2254
|
+
const t = await Ge({
|
|
2255
|
+
...e,
|
|
2256
|
+
limit: 1
|
|
2257
|
+
});
|
|
2258
|
+
return t && t.results[0] || null;
|
|
2259
|
+
}
|
|
2260
|
+
const pr = J, vo = async (e) => {
|
|
2261
|
+
const t = se(e);
|
|
2262
|
+
return await (await ze(t.href)).json();
|
|
2263
|
+
}, So = async (e, t, n = se(e)) => {
|
|
2264
|
+
const o = M(e.canTrack);
|
|
2265
|
+
if (n.search.includes("preview="), !o || !($() || A === "reactNative"))
|
|
2266
|
+
return t;
|
|
2267
|
+
try {
|
|
2268
|
+
const r = [];
|
|
2269
|
+
for (const s of t.results)
|
|
2270
|
+
r.push(await Sn({
|
|
2271
|
+
item: s,
|
|
2272
|
+
canTrack: o
|
|
2273
|
+
}));
|
|
2274
|
+
t.results = r;
|
|
2275
|
+
} catch (r) {
|
|
2276
|
+
x.error("Could not process A/B tests. ", r);
|
|
2277
|
+
}
|
|
2278
|
+
return t;
|
|
2153
2279
|
};
|
|
2154
|
-
function
|
|
2280
|
+
async function Ge(e) {
|
|
2281
|
+
try {
|
|
2282
|
+
const t = se(e), n = await vo(e);
|
|
2283
|
+
return ko(n) ? So(e, n) : (x.error("Error fetching data. ", {
|
|
2284
|
+
url: t,
|
|
2285
|
+
content: n,
|
|
2286
|
+
options: e
|
|
2287
|
+
}), null);
|
|
2288
|
+
} catch (t) {
|
|
2289
|
+
return x.error("Error fetching data. ", t), null;
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
const mr = Ge;
|
|
2293
|
+
function Co() {
|
|
2294
|
+
return !$() || P() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2295
|
+
}
|
|
2296
|
+
function wo() {
|
|
2155
2297
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2156
2298
|
const t = Math.random() * 16 | 0;
|
|
2157
2299
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2158
2300
|
});
|
|
2159
2301
|
}
|
|
2160
|
-
function
|
|
2161
|
-
return
|
|
2302
|
+
function Je() {
|
|
2303
|
+
return wo().replace(/-/g, "");
|
|
2162
2304
|
}
|
|
2163
|
-
const
|
|
2305
|
+
const Ye = "builderSessionId", $o = async ({
|
|
2164
2306
|
canTrack: e
|
|
2165
2307
|
}) => {
|
|
2166
2308
|
if (!e)
|
|
2167
2309
|
return;
|
|
2168
|
-
const t = await
|
|
2169
|
-
name:
|
|
2310
|
+
const t = await Oe({
|
|
2311
|
+
name: Ye,
|
|
2170
2312
|
canTrack: e
|
|
2171
2313
|
});
|
|
2172
|
-
if (
|
|
2314
|
+
if (_(t))
|
|
2173
2315
|
return t;
|
|
2174
2316
|
{
|
|
2175
|
-
const n =
|
|
2176
|
-
return
|
|
2317
|
+
const n = Ro();
|
|
2318
|
+
return To({
|
|
2177
2319
|
id: n,
|
|
2178
2320
|
canTrack: e
|
|
2179
2321
|
}), n;
|
|
2180
2322
|
}
|
|
2181
|
-
},
|
|
2323
|
+
}, Ro = () => Je(), To = ({
|
|
2182
2324
|
id: e,
|
|
2183
2325
|
canTrack: t
|
|
2184
|
-
}) =>
|
|
2185
|
-
name:
|
|
2326
|
+
}) => Ne({
|
|
2327
|
+
name: Ye,
|
|
2186
2328
|
value: e,
|
|
2187
2329
|
canTrack: t
|
|
2188
|
-
}),
|
|
2330
|
+
}), Xe = () => $() && typeof localStorage < "u" ? localStorage : void 0, Io = ({
|
|
2189
2331
|
key: e,
|
|
2190
2332
|
canTrack: t
|
|
2191
2333
|
}) => {
|
|
2192
2334
|
var n;
|
|
2193
2335
|
try {
|
|
2194
|
-
return t ? (n =
|
|
2336
|
+
return t ? (n = Xe()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2195
2337
|
} catch (o) {
|
|
2196
2338
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2197
2339
|
return;
|
|
2198
2340
|
}
|
|
2199
|
-
},
|
|
2341
|
+
}, xo = ({
|
|
2200
2342
|
key: e,
|
|
2201
2343
|
canTrack: t,
|
|
2202
2344
|
value: n
|
|
2203
2345
|
}) => {
|
|
2204
2346
|
var o;
|
|
2205
2347
|
try {
|
|
2206
|
-
t && ((o =
|
|
2207
|
-
} catch (
|
|
2208
|
-
console.debug("[LocalStorage] SET error: ",
|
|
2348
|
+
t && ((o = Xe()) == null || o.setItem(e, n));
|
|
2349
|
+
} catch (r) {
|
|
2350
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
2209
2351
|
}
|
|
2210
|
-
},
|
|
2352
|
+
}, Qe = "builderVisitorId", Eo = ({
|
|
2211
2353
|
canTrack: e
|
|
2212
2354
|
}) => {
|
|
2213
2355
|
if (!e)
|
|
2214
2356
|
return;
|
|
2215
|
-
const t =
|
|
2216
|
-
key:
|
|
2357
|
+
const t = Io({
|
|
2358
|
+
key: Qe,
|
|
2217
2359
|
canTrack: e
|
|
2218
2360
|
});
|
|
2219
|
-
if (
|
|
2361
|
+
if (_(t))
|
|
2220
2362
|
return t;
|
|
2221
2363
|
{
|
|
2222
|
-
const n =
|
|
2223
|
-
return
|
|
2364
|
+
const n = Po();
|
|
2365
|
+
return _o({
|
|
2224
2366
|
id: n,
|
|
2225
2367
|
canTrack: e
|
|
2226
2368
|
}), n;
|
|
2227
2369
|
}
|
|
2228
|
-
},
|
|
2370
|
+
}, Po = () => Je(), _o = ({
|
|
2229
2371
|
id: e,
|
|
2230
2372
|
canTrack: t
|
|
2231
|
-
}) =>
|
|
2232
|
-
key:
|
|
2373
|
+
}) => xo({
|
|
2374
|
+
key: Qe,
|
|
2233
2375
|
value: e,
|
|
2234
2376
|
canTrack: t
|
|
2235
|
-
}),
|
|
2377
|
+
}), Ao = async ({
|
|
2236
2378
|
canTrack: e
|
|
2237
2379
|
}) => {
|
|
2238
2380
|
if (!e)
|
|
@@ -2240,33 +2382,33 @@ const He = "builderSessionId", yo = async ({
|
|
|
2240
2382
|
visitorId: void 0,
|
|
2241
2383
|
sessionId: void 0
|
|
2242
2384
|
};
|
|
2243
|
-
const t = await
|
|
2385
|
+
const t = await $o({
|
|
2244
2386
|
canTrack: e
|
|
2245
|
-
}), n =
|
|
2387
|
+
}), n = Eo({
|
|
2246
2388
|
canTrack: e
|
|
2247
2389
|
});
|
|
2248
2390
|
return {
|
|
2249
2391
|
sessionId: t,
|
|
2250
2392
|
visitorId: n
|
|
2251
2393
|
};
|
|
2252
|
-
},
|
|
2394
|
+
}, Bo = async ({
|
|
2253
2395
|
type: e,
|
|
2254
2396
|
canTrack: t,
|
|
2255
2397
|
apiKey: n,
|
|
2256
2398
|
metadata: o,
|
|
2257
|
-
...
|
|
2399
|
+
...r
|
|
2258
2400
|
}) => ({
|
|
2259
2401
|
type: e,
|
|
2260
2402
|
data: {
|
|
2261
|
-
...
|
|
2403
|
+
...r,
|
|
2262
2404
|
metadata: {
|
|
2263
2405
|
url: location.href,
|
|
2264
2406
|
...o
|
|
2265
2407
|
},
|
|
2266
|
-
...await
|
|
2408
|
+
...await Ao({
|
|
2267
2409
|
canTrack: t
|
|
2268
2410
|
}),
|
|
2269
|
-
userAttributes:
|
|
2411
|
+
userAttributes: $e(),
|
|
2270
2412
|
ownerId: n
|
|
2271
2413
|
}
|
|
2272
2414
|
});
|
|
@@ -2275,11 +2417,11 @@ async function te(e) {
|
|
|
2275
2417
|
x.error("Missing API key for track call. Please provide your API key.");
|
|
2276
2418
|
return;
|
|
2277
2419
|
}
|
|
2278
|
-
if (!!e.canTrack && !
|
|
2420
|
+
if (!!e.canTrack && !P() && !!($() || A === "reactNative"))
|
|
2279
2421
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2280
2422
|
method: "POST",
|
|
2281
2423
|
body: JSON.stringify({
|
|
2282
|
-
events: [await
|
|
2424
|
+
events: [await Bo(e)]
|
|
2283
2425
|
}),
|
|
2284
2426
|
headers: {
|
|
2285
2427
|
"content-type": "application/json"
|
|
@@ -2289,13 +2431,56 @@ async function te(e) {
|
|
|
2289
2431
|
console.error("Failed to track: ", t);
|
|
2290
2432
|
});
|
|
2291
2433
|
}
|
|
2292
|
-
const
|
|
2434
|
+
const hr = (e) => te({
|
|
2293
2435
|
...e,
|
|
2294
2436
|
canTrack: !0
|
|
2295
|
-
})
|
|
2296
|
-
function
|
|
2297
|
-
|
|
2298
|
-
|
|
2437
|
+
});
|
|
2438
|
+
function be(e) {
|
|
2439
|
+
return Math.round(e * 1e3) / 1e3;
|
|
2440
|
+
}
|
|
2441
|
+
const Vo = (e, t, n = !0) => {
|
|
2442
|
+
if (!(e instanceof HTMLElement))
|
|
2443
|
+
return null;
|
|
2444
|
+
let o = n ? e : e.parentElement;
|
|
2445
|
+
do {
|
|
2446
|
+
if (!o)
|
|
2447
|
+
return null;
|
|
2448
|
+
if (t(o))
|
|
2449
|
+
return o;
|
|
2450
|
+
} while (o = o.parentElement);
|
|
2451
|
+
return null;
|
|
2452
|
+
}, jo = (e) => Vo(e, (t) => {
|
|
2453
|
+
const n = t.getAttribute("builder-id") || t.id;
|
|
2454
|
+
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2455
|
+
}), ge = ({
|
|
2456
|
+
event: e,
|
|
2457
|
+
target: t
|
|
2458
|
+
}) => {
|
|
2459
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = be(o / n.width), i = be(r / n.height);
|
|
2460
|
+
return {
|
|
2461
|
+
x: s,
|
|
2462
|
+
y: i
|
|
2463
|
+
};
|
|
2464
|
+
}, Oo = (e) => {
|
|
2465
|
+
const t = e.target, n = t && jo(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2466
|
+
return {
|
|
2467
|
+
targetBuilderElement: o || void 0,
|
|
2468
|
+
metadata: {
|
|
2469
|
+
targetOffset: t ? ge({
|
|
2470
|
+
event: e,
|
|
2471
|
+
target: t
|
|
2472
|
+
}) : void 0,
|
|
2473
|
+
builderTargetOffset: n ? ge({
|
|
2474
|
+
event: e,
|
|
2475
|
+
target: n
|
|
2476
|
+
}) : void 0,
|
|
2477
|
+
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2478
|
+
}
|
|
2479
|
+
};
|
|
2480
|
+
}, No = "0.7.2", ye = {};
|
|
2481
|
+
function Fo(e, t) {
|
|
2482
|
+
let n = ye[e];
|
|
2483
|
+
if (n || (n = ye[e] = []), n.push(t), $()) {
|
|
2299
2484
|
const o = {
|
|
2300
2485
|
type: "builder.register",
|
|
2301
2486
|
data: {
|
|
@@ -2305,13 +2490,13 @@ function Eo(e, t) {
|
|
|
2305
2490
|
};
|
|
2306
2491
|
try {
|
|
2307
2492
|
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
2308
|
-
} catch (
|
|
2309
|
-
console.debug("Could not postmessage",
|
|
2493
|
+
} catch (r) {
|
|
2494
|
+
console.debug("Could not postmessage", r);
|
|
2310
2495
|
}
|
|
2311
2496
|
}
|
|
2312
2497
|
}
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2498
|
+
const Uo = () => {
|
|
2499
|
+
Fo("insertMenu", {
|
|
2315
2500
|
name: "_default",
|
|
2316
2501
|
default: !0,
|
|
2317
2502
|
items: [{
|
|
@@ -2333,14 +2518,14 @@ const _o = () => {
|
|
|
2333
2518
|
}]
|
|
2334
2519
|
});
|
|
2335
2520
|
};
|
|
2336
|
-
let
|
|
2337
|
-
const
|
|
2521
|
+
let ke = !1;
|
|
2522
|
+
const Mo = (e = {}) => {
|
|
2338
2523
|
var t, n;
|
|
2339
|
-
|
|
2524
|
+
ke || (ke = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
2340
2525
|
type: "builder.sdkInfo",
|
|
2341
2526
|
data: {
|
|
2342
|
-
target:
|
|
2343
|
-
version:
|
|
2527
|
+
target: A,
|
|
2528
|
+
version: No,
|
|
2344
2529
|
supportsPatchUpdates: !1,
|
|
2345
2530
|
supportsAddBlockScoping: !0,
|
|
2346
2531
|
supportsCustomBreakpoints: !0
|
|
@@ -2353,306 +2538,44 @@ const Ao = (e = {}) => {
|
|
|
2353
2538
|
}, "*"), window.addEventListener("message", ({
|
|
2354
2539
|
data: o
|
|
2355
2540
|
}) => {
|
|
2356
|
-
var
|
|
2541
|
+
var r, s;
|
|
2357
2542
|
if (!!(o != null && o.type))
|
|
2358
2543
|
switch (o.type) {
|
|
2359
2544
|
case "builder.evaluate": {
|
|
2360
|
-
const i = o.data.text, a = o.data.arguments || [],
|
|
2361
|
-
let
|
|
2545
|
+
const i = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(i);
|
|
2546
|
+
let d, f = null;
|
|
2362
2547
|
try {
|
|
2363
|
-
|
|
2548
|
+
d = c.apply(null, a);
|
|
2364
2549
|
} catch (m) {
|
|
2365
2550
|
f = m;
|
|
2366
2551
|
}
|
|
2367
|
-
f ? (
|
|
2552
|
+
f ? (r = window.parent) == null || r.postMessage({
|
|
2368
2553
|
type: "builder.evaluateError",
|
|
2369
2554
|
data: {
|
|
2370
|
-
id:
|
|
2555
|
+
id: l,
|
|
2371
2556
|
error: f.message
|
|
2372
2557
|
}
|
|
2373
|
-
}, "*") :
|
|
2558
|
+
}, "*") : d && typeof d.then == "function" ? d.then((m) => {
|
|
2374
2559
|
var p;
|
|
2375
2560
|
(p = window.parent) == null || p.postMessage({
|
|
2376
2561
|
type: "builder.evaluateResult",
|
|
2377
2562
|
data: {
|
|
2378
|
-
id:
|
|
2563
|
+
id: l,
|
|
2379
2564
|
result: m
|
|
2380
2565
|
}
|
|
2381
2566
|
}, "*");
|
|
2382
|
-
}).catch(console.error) : (
|
|
2567
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
2383
2568
|
type: "builder.evaluateResult",
|
|
2384
2569
|
data: {
|
|
2385
|
-
result:
|
|
2386
|
-
id:
|
|
2570
|
+
result: d,
|
|
2571
|
+
id: l
|
|
2387
2572
|
}
|
|
2388
2573
|
}, "*");
|
|
2389
2574
|
break;
|
|
2390
2575
|
}
|
|
2391
2576
|
}
|
|
2392
2577
|
})));
|
|
2393
|
-
}
|
|
2394
|
-
function ge(e) {
|
|
2395
|
-
return Math.round(e * 1e3) / 1e3;
|
|
2396
|
-
}
|
|
2397
|
-
const jo = (e, t, n = !0) => {
|
|
2398
|
-
if (!(e instanceof HTMLElement))
|
|
2399
|
-
return null;
|
|
2400
|
-
let o = n ? e : e.parentElement;
|
|
2401
|
-
do {
|
|
2402
|
-
if (!o)
|
|
2403
|
-
return null;
|
|
2404
|
-
if (t(o))
|
|
2405
|
-
return o;
|
|
2406
|
-
} while (o = o.parentElement);
|
|
2407
|
-
return null;
|
|
2408
|
-
}, Po = (e) => jo(e, (t) => {
|
|
2409
|
-
const n = t.getAttribute("builder-id") || t.id;
|
|
2410
|
-
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2411
|
-
}), ye = ({
|
|
2412
|
-
event: e,
|
|
2413
|
-
target: t
|
|
2414
|
-
}) => {
|
|
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);
|
|
2416
|
-
return {
|
|
2417
|
-
x: r,
|
|
2418
|
-
y: i
|
|
2419
|
-
};
|
|
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);
|
|
2422
|
-
return {
|
|
2423
|
-
targetBuilderElement: o || void 0,
|
|
2424
|
-
metadata: {
|
|
2425
|
-
targetOffset: t ? ye({
|
|
2426
|
-
event: e,
|
|
2427
|
-
target: t
|
|
2428
|
-
}) : void 0,
|
|
2429
|
-
builderTargetOffset: n ? ye({
|
|
2430
|
-
event: e,
|
|
2431
|
-
target: n
|
|
2432
|
-
}) : void 0,
|
|
2433
|
-
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
}, Vo = "builder.tests", se = (e) => `${Vo}.${e}`, Uo = ({
|
|
2437
|
-
contentId: e
|
|
2438
|
-
}) => We({
|
|
2439
|
-
name: se(e),
|
|
2440
|
-
canTrack: !0
|
|
2441
|
-
}), No = ({
|
|
2442
|
-
contentId: e
|
|
2443
|
-
}) => Me({
|
|
2444
|
-
name: se(e),
|
|
2445
|
-
canTrack: !0
|
|
2446
|
-
}), Oo = ({
|
|
2447
|
-
contentId: e,
|
|
2448
|
-
value: t
|
|
2449
|
-
}) => Le({
|
|
2450
|
-
name: se(e),
|
|
2451
|
-
value: t,
|
|
2452
|
-
canTrack: !0
|
|
2453
|
-
}), qe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Fo = ({
|
|
2454
|
-
id: e,
|
|
2455
|
-
variations: t
|
|
2456
|
-
}) => {
|
|
2457
|
-
var s;
|
|
2458
|
-
let n = 0;
|
|
2459
|
-
const o = Math.random();
|
|
2460
|
-
for (const r in t) {
|
|
2461
|
-
const i = (s = t[r]) == null ? void 0 : s.testRatio;
|
|
2462
|
-
if (n += i, o < n)
|
|
2463
|
-
return r;
|
|
2464
|
-
}
|
|
2465
|
-
return e;
|
|
2466
|
-
}, Ge = (e) => {
|
|
2467
|
-
const t = Fo(e);
|
|
2468
|
-
return Oo({
|
|
2469
|
-
contentId: e.id,
|
|
2470
|
-
value: t
|
|
2471
|
-
}).catch((n) => {
|
|
2472
|
-
x.error("could not store A/B test variation: ", n);
|
|
2473
|
-
}), t;
|
|
2474
|
-
}, Je = ({
|
|
2475
|
-
item: e,
|
|
2476
|
-
testGroupId: t
|
|
2477
|
-
}) => {
|
|
2478
|
-
const n = e.variations[t];
|
|
2479
|
-
return t === e.id || !n ? {
|
|
2480
|
-
testVariationId: e.id,
|
|
2481
|
-
testVariationName: "Default"
|
|
2482
|
-
} : {
|
|
2483
|
-
data: n.data,
|
|
2484
|
-
testVariationId: n.id,
|
|
2485
|
-
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
2486
|
-
};
|
|
2487
|
-
}, Mo = ({
|
|
2488
|
-
item: e,
|
|
2489
|
-
canTrack: t
|
|
2490
|
-
}) => {
|
|
2491
|
-
if (!t)
|
|
2492
|
-
return e;
|
|
2493
|
-
if (!e)
|
|
2494
|
-
return;
|
|
2495
|
-
if (!qe(e))
|
|
2496
|
-
return e;
|
|
2497
|
-
const n = No({
|
|
2498
|
-
contentId: e.id
|
|
2499
|
-
}) || Ge({
|
|
2500
|
-
variations: e.variations,
|
|
2501
|
-
id: e.id
|
|
2502
|
-
}), o = Je({
|
|
2503
|
-
item: e,
|
|
2504
|
-
testGroupId: n
|
|
2505
|
-
});
|
|
2506
|
-
return {
|
|
2507
|
-
...e,
|
|
2508
|
-
...o
|
|
2509
|
-
};
|
|
2510
|
-
}, Wo = async ({
|
|
2511
|
-
item: e,
|
|
2512
|
-
canTrack: t
|
|
2513
|
-
}) => {
|
|
2514
|
-
if (!t || !qe(e))
|
|
2515
|
-
return e;
|
|
2516
|
-
const o = await Uo({
|
|
2517
|
-
contentId: e.id
|
|
2518
|
-
}) || Ge({
|
|
2519
|
-
variations: e.variations,
|
|
2520
|
-
id: e.id
|
|
2521
|
-
}), s = Je({
|
|
2522
|
-
item: e,
|
|
2523
|
-
testGroupId: o
|
|
2524
|
-
});
|
|
2525
|
-
return {
|
|
2526
|
-
...e,
|
|
2527
|
-
...s
|
|
2528
|
-
};
|
|
2529
|
-
}, M = (e) => A(e) ? e : !0;
|
|
2530
|
-
function H(e, t = null, n = ".") {
|
|
2531
|
-
return Object.keys(e).reduce((o, s) => {
|
|
2532
|
-
const r = e[s], i = [t, s].filter(Boolean).join(n);
|
|
2533
|
-
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
2534
|
-
...o,
|
|
2535
|
-
...H(r, i, n)
|
|
2536
|
-
} : {
|
|
2537
|
-
...o,
|
|
2538
|
-
[i]: r
|
|
2539
|
-
};
|
|
2540
|
-
}, {});
|
|
2541
|
-
}
|
|
2542
|
-
const ke = "builder.", Lo = "options.", Ko = (e) => {
|
|
2543
|
-
const t = {};
|
|
2544
|
-
return e.forEach((n, o) => {
|
|
2545
|
-
t[o] = n;
|
|
2546
|
-
}), t;
|
|
2547
|
-
}, Ye = (e) => {
|
|
2548
|
-
if (!e)
|
|
2549
|
-
return {};
|
|
2550
|
-
const t = Xe(e), n = {};
|
|
2551
|
-
return Object.keys(t).forEach((o) => {
|
|
2552
|
-
if (o.startsWith(ke)) {
|
|
2553
|
-
const s = o.replace(ke, "").replace(Lo, "");
|
|
2554
|
-
n[s] = t[o];
|
|
2555
|
-
}
|
|
2556
|
-
}), n;
|
|
2557
|
-
}, Ho = () => {
|
|
2558
|
-
if (!$())
|
|
2559
|
-
return {};
|
|
2560
|
-
const e = new URLSearchParams(window.location.search);
|
|
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;
|
|
2566
|
-
const {
|
|
2567
|
-
limit: n = 30,
|
|
2568
|
-
userAttributes: o,
|
|
2569
|
-
query: s,
|
|
2570
|
-
model: r,
|
|
2571
|
-
apiKey: i,
|
|
2572
|
-
includeRefs: a = !0,
|
|
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
|
|
2583
|
-
} = e;
|
|
2584
|
-
if (!i)
|
|
2585
|
-
throw new Error("Missing API key");
|
|
2586
|
-
if (!["v2", "v3"].includes(u))
|
|
2587
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
|
|
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
|
|
2593
|
-
});
|
|
2594
|
-
for (const O in P)
|
|
2595
|
-
g.searchParams.set(O, JSON.stringify(P[O]));
|
|
2596
|
-
}
|
|
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({
|
|
2614
|
-
...e,
|
|
2615
|
-
limit: 1
|
|
2616
|
-
});
|
|
2617
|
-
return t && t.results[0] || null;
|
|
2618
|
-
}
|
|
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"))
|
|
2625
|
-
return t;
|
|
2626
|
-
try {
|
|
2627
|
-
const s = [];
|
|
2628
|
-
for (const r of t.results)
|
|
2629
|
-
s.push(await Wo({
|
|
2630
|
-
item: r,
|
|
2631
|
-
canTrack: o
|
|
2632
|
-
}));
|
|
2633
|
-
t.results = s;
|
|
2634
|
-
} catch (s) {
|
|
2635
|
-
x.error("Could not process A/B tests. ", s);
|
|
2636
|
-
}
|
|
2637
|
-
return t;
|
|
2638
|
-
};
|
|
2639
|
-
async function Qe(e) {
|
|
2640
|
-
try {
|
|
2641
|
-
const t = re(e), n = await qo(e);
|
|
2642
|
-
return Do(n) ? Go(e, n) : (x.error("Error fetching data. ", {
|
|
2643
|
-
url: t,
|
|
2644
|
-
content: n,
|
|
2645
|
-
options: e
|
|
2646
|
-
}), null);
|
|
2647
|
-
} catch (t) {
|
|
2648
|
-
return x.error("Error fetching data. ", t), null;
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
const bs = Qe;
|
|
2652
|
-
function Jo() {
|
|
2653
|
-
return !$() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
2654
|
-
}
|
|
2655
|
-
const Yo = y({
|
|
2578
|
+
}, Wo = y({
|
|
2656
2579
|
name: "enable-editor",
|
|
2657
2580
|
props: [
|
|
2658
2581
|
"builderContextSignal",
|
|
@@ -2674,32 +2597,32 @@ const Yo = y({
|
|
|
2674
2597
|
shouldSendResetCookie: !1,
|
|
2675
2598
|
httpReqsData: {},
|
|
2676
2599
|
clicked: !1,
|
|
2677
|
-
builderContext:
|
|
2600
|
+
builderContext: Q
|
|
2678
2601
|
};
|
|
2679
2602
|
},
|
|
2680
2603
|
provide() {
|
|
2681
2604
|
const e = this;
|
|
2682
2605
|
return {
|
|
2683
|
-
[
|
|
2606
|
+
[Q.key]: e.builderContextSignal
|
|
2684
2607
|
};
|
|
2685
2608
|
},
|
|
2686
2609
|
mounted() {
|
|
2687
2610
|
(() => {
|
|
2688
2611
|
var n, o;
|
|
2689
2612
|
if ($()) {
|
|
2690
|
-
if (
|
|
2613
|
+
if (P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2691
2614
|
new CustomEvent("initeditingbldr")
|
|
2692
2615
|
), this.builderContextSignal.content && M(this.canTrack)) {
|
|
2693
|
-
const
|
|
2616
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
|
|
2694
2617
|
te({
|
|
2695
2618
|
type: "impression",
|
|
2696
2619
|
canTrack: !0,
|
|
2697
2620
|
contentId: i,
|
|
2698
2621
|
apiKey: a,
|
|
2699
|
-
variationId:
|
|
2622
|
+
variationId: s !== i ? s : void 0
|
|
2700
2623
|
});
|
|
2701
2624
|
}
|
|
2702
|
-
|
|
2625
|
+
Co() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
2703
2626
|
new CustomEvent("initpreviewingbldr")
|
|
2704
2627
|
);
|
|
2705
2628
|
}
|
|
@@ -2775,7 +2698,7 @@ const Yo = y({
|
|
|
2775
2698
|
},
|
|
2776
2699
|
methods: {
|
|
2777
2700
|
mergeNewContent(e) {
|
|
2778
|
-
var n, o,
|
|
2701
|
+
var n, o, r, s, i;
|
|
2779
2702
|
const t = {
|
|
2780
2703
|
...this.builderContextSignal.content,
|
|
2781
2704
|
...e,
|
|
@@ -2786,7 +2709,7 @@ const Yo = y({
|
|
|
2786
2709
|
meta: {
|
|
2787
2710
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
2788
2711
|
...e == null ? void 0 : e.meta,
|
|
2789
|
-
breakpoints: ((
|
|
2712
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
|
|
2790
2713
|
}
|
|
2791
2714
|
};
|
|
2792
2715
|
this.builderContextSignal.content = t;
|
|
@@ -2797,19 +2720,19 @@ const Yo = y({
|
|
|
2797
2720
|
if (t)
|
|
2798
2721
|
switch (t.type) {
|
|
2799
2722
|
case "builder.configureSdk": {
|
|
2800
|
-
const o = t.data, { breakpoints:
|
|
2801
|
-
if (!
|
|
2723
|
+
const o = t.data, { breakpoints: r, contentId: s } = o;
|
|
2724
|
+
if (!s || s !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
2802
2725
|
return;
|
|
2803
|
-
|
|
2726
|
+
r && this.mergeNewContent({
|
|
2804
2727
|
meta: {
|
|
2805
|
-
breakpoints:
|
|
2728
|
+
breakpoints: r
|
|
2806
2729
|
}
|
|
2807
2730
|
}), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2808
2731
|
break;
|
|
2809
2732
|
}
|
|
2810
2733
|
case "builder.contentUpdate": {
|
|
2811
|
-
const o = t.data,
|
|
2812
|
-
|
|
2734
|
+
const o = t.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
|
|
2735
|
+
r === this.model && (this.mergeNewContent(s), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2813
2736
|
break;
|
|
2814
2737
|
}
|
|
2815
2738
|
}
|
|
@@ -2828,14 +2751,14 @@ const Yo = y({
|
|
|
2828
2751
|
onClick(e) {
|
|
2829
2752
|
var t, n;
|
|
2830
2753
|
if (this.builderContextSignal.content) {
|
|
2831
|
-
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId,
|
|
2754
|
+
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
2832
2755
|
te({
|
|
2833
2756
|
type: "click",
|
|
2834
2757
|
canTrack: M(this.canTrack),
|
|
2835
|
-
contentId:
|
|
2758
|
+
contentId: r,
|
|
2836
2759
|
apiKey: this.apiKey,
|
|
2837
|
-
variationId: o !==
|
|
2838
|
-
...
|
|
2760
|
+
variationId: o !== r ? o : void 0,
|
|
2761
|
+
...Oo(e),
|
|
2839
2762
|
unique: !this.clicked
|
|
2840
2763
|
});
|
|
2841
2764
|
}
|
|
@@ -2854,13 +2777,13 @@ const Yo = y({
|
|
|
2854
2777
|
);
|
|
2855
2778
|
},
|
|
2856
2779
|
handleRequest({ url: e, key: t }) {
|
|
2857
|
-
|
|
2858
|
-
var
|
|
2780
|
+
ze(e).then((n) => n.json()).then((n) => {
|
|
2781
|
+
var r, s;
|
|
2859
2782
|
const o = {
|
|
2860
2783
|
...this.builderContextSignal.rootState,
|
|
2861
2784
|
[t]: n
|
|
2862
2785
|
};
|
|
2863
|
-
(
|
|
2786
|
+
(s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
|
|
2864
2787
|
}).catch((n) => {
|
|
2865
2788
|
console.error("error fetching dynamic data", e, n);
|
|
2866
2789
|
});
|
|
@@ -2868,18 +2791,18 @@ const Yo = y({
|
|
|
2868
2791
|
runHttpRequests() {
|
|
2869
2792
|
var t, n, o;
|
|
2870
2793
|
const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2871
|
-
Object.entries(e).forEach(([
|
|
2872
|
-
if (
|
|
2873
|
-
const i = this.evalExpression(
|
|
2794
|
+
Object.entries(e).forEach(([r, s]) => {
|
|
2795
|
+
if (s && (!this.httpReqsData[r] || P())) {
|
|
2796
|
+
const i = this.evalExpression(s);
|
|
2874
2797
|
this.handleRequest({
|
|
2875
2798
|
url: i,
|
|
2876
|
-
key:
|
|
2799
|
+
key: r
|
|
2877
2800
|
});
|
|
2878
2801
|
}
|
|
2879
2802
|
});
|
|
2880
2803
|
},
|
|
2881
2804
|
emitStateUpdate() {
|
|
2882
|
-
|
|
2805
|
+
P() && window.dispatchEvent(
|
|
2883
2806
|
new CustomEvent(
|
|
2884
2807
|
"builder:component:stateChange",
|
|
2885
2808
|
{
|
|
@@ -2894,7 +2817,7 @@ const Yo = y({
|
|
|
2894
2817
|
);
|
|
2895
2818
|
},
|
|
2896
2819
|
elementRef_onIniteditingbldr(e) {
|
|
2897
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
2820
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Uo(), Mo({
|
|
2898
2821
|
...this.locale ? {
|
|
2899
2822
|
locale: this.locale
|
|
2900
2823
|
} : {},
|
|
@@ -2908,7 +2831,7 @@ const Yo = y({
|
|
|
2908
2831
|
this.builderContextSignal.componentInfos
|
|
2909
2832
|
).forEach((t) => {
|
|
2910
2833
|
var o;
|
|
2911
|
-
const n =
|
|
2834
|
+
const n = to(t);
|
|
2912
2835
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
2913
2836
|
}), window.addEventListener(
|
|
2914
2837
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2918,13 +2841,13 @@ const Yo = y({
|
|
|
2918
2841
|
elementRef_onInitpreviewingbldr(e) {
|
|
2919
2842
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
2920
2843
|
`builder.preview.${n}`
|
|
2921
|
-
),
|
|
2922
|
-
n === this.model &&
|
|
2844
|
+
), r = t.get("apiKey") || t.get("builder.space");
|
|
2845
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && J({
|
|
2923
2846
|
model: this.model,
|
|
2924
2847
|
apiKey: this.apiKey,
|
|
2925
2848
|
apiVersion: this.builderContextSignal.apiVersion
|
|
2926
|
-
}).then((
|
|
2927
|
-
|
|
2849
|
+
}).then((s) => {
|
|
2850
|
+
s && this.mergeNewContent(s);
|
|
2928
2851
|
});
|
|
2929
2852
|
},
|
|
2930
2853
|
_classStringToObject(e) {
|
|
@@ -2937,10 +2860,10 @@ const Yo = y({
|
|
|
2937
2860
|
return t;
|
|
2938
2861
|
}
|
|
2939
2862
|
}
|
|
2940
|
-
}),
|
|
2941
|
-
function
|
|
2863
|
+
}), Lo = ["builder-content-id", "builder-model"];
|
|
2864
|
+
function Ko(e, t, n, o, r, s) {
|
|
2942
2865
|
var i;
|
|
2943
|
-
return e.builderContextSignal.content ? (
|
|
2866
|
+
return e.builderContextSignal.content ? (u(), h("div", I({
|
|
2944
2867
|
key: e.forceReRenderCount,
|
|
2945
2868
|
ref: "elementRef",
|
|
2946
2869
|
onClick: t[0] || (t[0] = (a) => e.onClick(a)),
|
|
@@ -2955,21 +2878,116 @@ function Qo(e, t, n, o, s, r) {
|
|
|
2955
2878
|
"aria-hidden": !0
|
|
2956
2879
|
}
|
|
2957
2880
|
}), [
|
|
2958
|
-
|
|
2959
|
-
], 16,
|
|
2881
|
+
O(e.$slots, "default")
|
|
2882
|
+
], 16, Lo)) : w("v-if", !0);
|
|
2960
2883
|
}
|
|
2961
|
-
const
|
|
2962
|
-
|
|
2963
|
-
|
|
2884
|
+
const Ho = /* @__PURE__ */ k(Wo, [["render", Ko], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), zo = (e) => {
|
|
2885
|
+
var s, i;
|
|
2886
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
|
|
2887
|
+
let r = "";
|
|
2888
|
+
if (o && t && n && (r += `
|
|
2889
|
+
@font-face {
|
|
2890
|
+
font-family: "${t}";
|
|
2891
|
+
src: local("${n}"), url('${o}') format('woff2');
|
|
2892
|
+
font-display: fallback;
|
|
2893
|
+
font-weight: 400;
|
|
2894
|
+
}
|
|
2895
|
+
`.trim()), e.files)
|
|
2896
|
+
for (const a in e.files) {
|
|
2897
|
+
if (!(String(Number(a)) === a))
|
|
2898
|
+
continue;
|
|
2899
|
+
const c = e.files[a];
|
|
2900
|
+
c && c !== o && (r += `
|
|
2901
|
+
@font-face {
|
|
2902
|
+
font-family: "${t}";
|
|
2903
|
+
src: url('${c}') format('woff2');
|
|
2904
|
+
font-display: fallback;
|
|
2905
|
+
font-weight: ${a};
|
|
2906
|
+
}
|
|
2907
|
+
`.trim());
|
|
2908
|
+
}
|
|
2909
|
+
return r;
|
|
2910
|
+
}, Do = ({
|
|
2911
|
+
customFonts: e
|
|
2912
|
+
}) => {
|
|
2913
|
+
var t;
|
|
2914
|
+
return ((t = e == null ? void 0 : e.map((n) => zo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2915
|
+
}, qo = ({
|
|
2916
|
+
cssCode: e,
|
|
2917
|
+
contentId: t
|
|
2918
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Go = y({
|
|
2919
|
+
name: "content-styles",
|
|
2920
|
+
components: { InlinedStyles: G },
|
|
2921
|
+
props: ["cssCode", "contentId", "customFonts"],
|
|
2922
|
+
data() {
|
|
2923
|
+
return {
|
|
2924
|
+
injectedStyles: `
|
|
2925
|
+
${qo({
|
|
2926
|
+
cssCode: this.cssCode,
|
|
2927
|
+
contentId: this.contentId
|
|
2928
|
+
})}
|
|
2929
|
+
${Do({
|
|
2930
|
+
customFonts: this.customFonts
|
|
2931
|
+
})}
|
|
2932
|
+
|
|
2933
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
2934
|
+
margin: 0;
|
|
2935
|
+
}
|
|
2936
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
2937
|
+
color: inherit;
|
|
2938
|
+
line-height: inherit;
|
|
2939
|
+
letter-spacing: inherit;
|
|
2940
|
+
font-weight: inherit;
|
|
2941
|
+
font-size: inherit;
|
|
2942
|
+
text-align: inherit;
|
|
2943
|
+
font-family: inherit;
|
|
2944
|
+
}
|
|
2945
|
+
`.trim()
|
|
2946
|
+
};
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
function Jo(e, t, n, o, r, s) {
|
|
2950
|
+
const i = v("inlined-styles");
|
|
2951
|
+
return u(), C(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
2952
|
+
}
|
|
2953
|
+
const Yo = /* @__PURE__ */ k(Go, [["render", Jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Xo = ({
|
|
2954
|
+
content: e,
|
|
2955
|
+
data: t,
|
|
2956
|
+
locale: n
|
|
2957
|
+
}) => {
|
|
2958
|
+
var s, i, a;
|
|
2959
|
+
const o = {};
|
|
2960
|
+
(i = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || i.forEach((l) => {
|
|
2961
|
+
var c;
|
|
2962
|
+
l.name && l.defaultValue !== void 0 && ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) && e.data.state[l.name] === void 0 && (o[l.name] = l.defaultValue);
|
|
2963
|
+
});
|
|
2964
|
+
const r = {
|
|
2965
|
+
...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
|
|
2966
|
+
...t,
|
|
2967
|
+
...n ? {
|
|
2968
|
+
locale: n
|
|
2969
|
+
} : {}
|
|
2970
|
+
};
|
|
2971
|
+
return {
|
|
2972
|
+
...o,
|
|
2973
|
+
...r
|
|
2974
|
+
};
|
|
2975
|
+
}, Qo = ({
|
|
2976
|
+
content: e,
|
|
2977
|
+
data: t
|
|
2978
|
+
}) => e ? {
|
|
2979
|
+
...e,
|
|
2980
|
+
data: {
|
|
2981
|
+
...e == null ? void 0 : e.data,
|
|
2982
|
+
...t
|
|
2964
2983
|
},
|
|
2965
|
-
|
|
2966
|
-
|
|
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({
|
|
2984
|
+
meta: e == null ? void 0 : e.meta
|
|
2985
|
+
} : void 0, Zo = tt, er = y({
|
|
2968
2986
|
name: "content-component",
|
|
2969
2987
|
components: {
|
|
2970
|
-
EnableEditor:
|
|
2971
|
-
InlinedScript:
|
|
2972
|
-
ContentStyles:
|
|
2988
|
+
EnableEditor: Ho,
|
|
2989
|
+
InlinedScript: He,
|
|
2990
|
+
ContentStyles: Yo,
|
|
2973
2991
|
Blocks: oe
|
|
2974
2992
|
},
|
|
2975
2993
|
props: [
|
|
@@ -2991,31 +3009,31 @@ const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/c
|
|
|
2991
3009
|
data() {
|
|
2992
3010
|
var e, t;
|
|
2993
3011
|
return {
|
|
2994
|
-
scriptStr:
|
|
3012
|
+
scriptStr: uo({
|
|
2995
3013
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
2996
3014
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
2997
3015
|
}),
|
|
2998
3016
|
registeredComponents: [
|
|
2999
|
-
...
|
|
3000
|
-
...
|
|
3017
|
+
...pe(),
|
|
3018
|
+
...me,
|
|
3001
3019
|
...this.customComponents || []
|
|
3002
3020
|
].reduce(
|
|
3003
|
-
(n, { component: o, ...
|
|
3021
|
+
(n, { component: o, ...r }) => ({
|
|
3004
3022
|
...n,
|
|
3005
|
-
[
|
|
3006
|
-
component:
|
|
3007
|
-
...ee(
|
|
3023
|
+
[r.name]: {
|
|
3024
|
+
component: Zo(o),
|
|
3025
|
+
...ee(r)
|
|
3008
3026
|
}
|
|
3009
3027
|
}),
|
|
3010
3028
|
{}
|
|
3011
3029
|
),
|
|
3012
3030
|
builderContextSignal: {
|
|
3013
|
-
content:
|
|
3031
|
+
content: Qo({
|
|
3014
3032
|
content: this.content,
|
|
3015
3033
|
data: this.data
|
|
3016
3034
|
}),
|
|
3017
3035
|
localState: void 0,
|
|
3018
|
-
rootState:
|
|
3036
|
+
rootState: Xo({
|
|
3019
3037
|
content: this.content,
|
|
3020
3038
|
data: this.data,
|
|
3021
3039
|
locale: this.locale
|
|
@@ -3025,25 +3043,25 @@ const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/c
|
|
|
3025
3043
|
apiKey: this.apiKey,
|
|
3026
3044
|
apiVersion: this.apiVersion,
|
|
3027
3045
|
componentInfos: [
|
|
3028
|
-
...
|
|
3029
|
-
...
|
|
3046
|
+
...pe(),
|
|
3047
|
+
...me,
|
|
3030
3048
|
...this.customComponents || []
|
|
3031
3049
|
].reduce(
|
|
3032
|
-
(n, { component: o, ...
|
|
3050
|
+
(n, { component: o, ...r }) => ({
|
|
3033
3051
|
...n,
|
|
3034
|
-
[
|
|
3052
|
+
[r.name]: ee(r)
|
|
3035
3053
|
}),
|
|
3036
3054
|
{}
|
|
3037
3055
|
),
|
|
3038
3056
|
inheritedStyles: {}
|
|
3039
3057
|
},
|
|
3040
|
-
TARGET:
|
|
3058
|
+
TARGET: A
|
|
3041
3059
|
};
|
|
3042
3060
|
},
|
|
3043
3061
|
provide() {
|
|
3044
3062
|
const e = this;
|
|
3045
3063
|
return {
|
|
3046
|
-
[
|
|
3064
|
+
[we.key]: {
|
|
3047
3065
|
registeredComponents: e.registeredComponents
|
|
3048
3066
|
}
|
|
3049
3067
|
};
|
|
@@ -3054,9 +3072,9 @@ const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/c
|
|
|
3054
3072
|
}
|
|
3055
3073
|
}
|
|
3056
3074
|
});
|
|
3057
|
-
function
|
|
3058
|
-
const i = v("inlined-script"), a = v("content-styles"),
|
|
3059
|
-
return
|
|
3075
|
+
function tr(e, t, n, o, r, s) {
|
|
3076
|
+
const i = v("inlined-script"), a = v("content-styles"), l = v("blocks"), c = v("enable-editor");
|
|
3077
|
+
return u(), C(c, I({
|
|
3060
3078
|
content: e.content,
|
|
3061
3079
|
model: e.model,
|
|
3062
3080
|
context: e.context,
|
|
@@ -3070,20 +3088,20 @@ function os(e, t, n, o, s, r) {
|
|
|
3070
3088
|
builderContextSignal: e.builderContextSignal
|
|
3071
3089
|
}, {}), {
|
|
3072
3090
|
default: ne(() => {
|
|
3073
|
-
var
|
|
3091
|
+
var d, f, m, p, b, S, R;
|
|
3074
3092
|
return [
|
|
3075
|
-
e.isSsrAbTest ? (
|
|
3093
|
+
e.isSsrAbTest ? (u(), C(i, {
|
|
3076
3094
|
key: 0,
|
|
3077
3095
|
scriptStr: e.scriptStr
|
|
3078
3096
|
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3079
|
-
e.TARGET !== "reactNative" ? (
|
|
3097
|
+
e.TARGET !== "reactNative" ? (u(), C(a, {
|
|
3080
3098
|
key: 1,
|
|
3081
|
-
contentId: (
|
|
3099
|
+
contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
|
|
3082
3100
|
cssCode: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.cssCode,
|
|
3083
3101
|
customFonts: (b = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
|
|
3084
3102
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : w("v-if", !0),
|
|
3085
|
-
|
|
3086
|
-
blocks: (
|
|
3103
|
+
j(l, {
|
|
3104
|
+
blocks: (R = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : R.blocks,
|
|
3087
3105
|
context: e.builderContextSignal,
|
|
3088
3106
|
registeredComponents: e.registeredComponents
|
|
3089
3107
|
}, null, 8, ["blocks", "context", "registeredComponents"])
|
|
@@ -3092,12 +3110,12 @@ function os(e, t, n, o, s, r) {
|
|
|
3092
3110
|
_: 1
|
|
3093
3111
|
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
|
|
3094
3112
|
}
|
|
3095
|
-
const
|
|
3113
|
+
const nr = /* @__PURE__ */ k(er, [["render", tr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), or = y({
|
|
3096
3114
|
name: "content-variants",
|
|
3097
3115
|
components: {
|
|
3098
|
-
InlinedScript:
|
|
3116
|
+
InlinedScript: He,
|
|
3099
3117
|
InlinedStyles: G,
|
|
3100
|
-
ContentComponent:
|
|
3118
|
+
ContentComponent: nr
|
|
3101
3119
|
},
|
|
3102
3120
|
props: [
|
|
3103
3121
|
"canTrack",
|
|
@@ -3115,13 +3133,13 @@ const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/c
|
|
|
3115
3133
|
],
|
|
3116
3134
|
data() {
|
|
3117
3135
|
return {
|
|
3118
|
-
shouldRenderVariants:
|
|
3136
|
+
shouldRenderVariants: ro({
|
|
3119
3137
|
canTrack: M(this.canTrack),
|
|
3120
3138
|
content: this.content
|
|
3121
3139
|
}),
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3140
|
+
TARGET: A,
|
|
3141
|
+
getScriptString: lo,
|
|
3142
|
+
getVariants: K
|
|
3125
3143
|
};
|
|
3126
3144
|
},
|
|
3127
3145
|
mounted() {
|
|
@@ -3130,7 +3148,7 @@ const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/c
|
|
|
3130
3148
|
computed: {
|
|
3131
3149
|
variantScriptStr() {
|
|
3132
3150
|
var e;
|
|
3133
|
-
return
|
|
3151
|
+
return co(
|
|
3134
3152
|
K(this.content).map((t) => ({
|
|
3135
3153
|
id: t.testVariationId,
|
|
3136
3154
|
testRatio: t.testRatio
|
|
@@ -3146,28 +3164,28 @@ const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/c
|
|
|
3146
3164
|
return this.shouldRenderVariants ? {
|
|
3147
3165
|
...this.content,
|
|
3148
3166
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
3149
|
-
} :
|
|
3167
|
+
} : vn({
|
|
3150
3168
|
item: this.content,
|
|
3151
3169
|
canTrack: M(this.canTrack)
|
|
3152
3170
|
});
|
|
3153
3171
|
}
|
|
3154
3172
|
}
|
|
3155
3173
|
});
|
|
3156
|
-
function
|
|
3157
|
-
var
|
|
3158
|
-
const i = v("inlined-script"), a = v("inlined-styles"),
|
|
3159
|
-
return
|
|
3160
|
-
!e.__isNestedRender && e.TARGET !== "reactNative" ? (
|
|
3174
|
+
function rr(e, t, n, o, r, s) {
|
|
3175
|
+
var c, d;
|
|
3176
|
+
const i = v("inlined-script"), a = v("inlined-styles"), l = v("content-component");
|
|
3177
|
+
return u(), h(T, null, [
|
|
3178
|
+
!e.__isNestedRender && e.TARGET !== "reactNative" ? (u(), C(i, {
|
|
3161
3179
|
key: 0,
|
|
3162
3180
|
scriptStr: e.getScriptString()
|
|
3163
3181
|
}, null, 8, ["scriptStr"])) : w("v-if", !0),
|
|
3164
|
-
e.shouldRenderVariants ? (
|
|
3165
|
-
|
|
3166
|
-
id: `variants-styles-${(
|
|
3182
|
+
e.shouldRenderVariants ? (u(), h(T, { key: 1 }, [
|
|
3183
|
+
j(a, {
|
|
3184
|
+
id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
|
|
3167
3185
|
styles: e.hideVariantsStyleString
|
|
3168
3186
|
}, null, 8, ["id", "styles"]),
|
|
3169
|
-
|
|
3170
|
-
(
|
|
3187
|
+
j(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
|
|
3188
|
+
(u(!0), h(T, null, V(e.getVariants(e.content), (f, m) => (u(), C(l, {
|
|
3171
3189
|
key: f.testVariationId,
|
|
3172
3190
|
content: f,
|
|
3173
3191
|
showContent: !1,
|
|
@@ -3185,9 +3203,9 @@ function is(e, t, n, o, s, r) {
|
|
|
3185
3203
|
isSsrAbTest: e.shouldRenderVariants
|
|
3186
3204
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
|
|
3187
3205
|
], 64)) : w("v-if", !0),
|
|
3188
|
-
|
|
3206
|
+
j(l, I({
|
|
3189
3207
|
content: e.defaultContent,
|
|
3190
|
-
classNameProp: `variant-${(
|
|
3208
|
+
classNameProp: `variant-${(d = e.content) == null ? void 0 : d.id}`,
|
|
3191
3209
|
showContent: !0,
|
|
3192
3210
|
model: e.model,
|
|
3193
3211
|
data: e.data,
|
|
@@ -3205,7 +3223,7 @@ function is(e, t, n, o, s, r) {
|
|
|
3205
3223
|
}), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
3206
3224
|
], 64);
|
|
3207
3225
|
}
|
|
3208
|
-
const
|
|
3226
|
+
const Ze = /* @__PURE__ */ k(or, [["render", rr], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), sr = async ({
|
|
3209
3227
|
builderContextValue: e,
|
|
3210
3228
|
symbol: t
|
|
3211
3229
|
}) => {
|
|
@@ -3222,9 +3240,9 @@ const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/c
|
|
|
3222
3240
|
}).catch((n) => {
|
|
3223
3241
|
x.error("Could not fetch symbol content: ", n);
|
|
3224
3242
|
});
|
|
3225
|
-
},
|
|
3243
|
+
}, ir = y({
|
|
3226
3244
|
name: "builder-symbol",
|
|
3227
|
-
components: { ContentVariants:
|
|
3245
|
+
components: { ContentVariants: Ze },
|
|
3228
3246
|
props: [
|
|
3229
3247
|
"js",
|
|
3230
3248
|
"attributes",
|
|
@@ -3266,7 +3284,7 @@ const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/c
|
|
|
3266
3284
|
},
|
|
3267
3285
|
methods: {
|
|
3268
3286
|
setContent() {
|
|
3269
|
-
this.contentToUse ||
|
|
3287
|
+
this.contentToUse || sr({
|
|
3270
3288
|
symbol: this.symbol,
|
|
3271
3289
|
builderContextValue: this.builderContext
|
|
3272
3290
|
}).then((e) => {
|
|
@@ -3284,13 +3302,13 @@ const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/c
|
|
|
3284
3302
|
}
|
|
3285
3303
|
}
|
|
3286
3304
|
});
|
|
3287
|
-
function
|
|
3288
|
-
var a,
|
|
3305
|
+
function ar(e, t, n, o, r, s) {
|
|
3306
|
+
var a, l, c, d;
|
|
3289
3307
|
const i = v("content-variants");
|
|
3290
|
-
return
|
|
3308
|
+
return u(), h("div", I({
|
|
3291
3309
|
class: e._classStringToObject(e.className)
|
|
3292
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3293
|
-
|
|
3310
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3311
|
+
j(i, {
|
|
3294
3312
|
__isNestedRender: !0,
|
|
3295
3313
|
apiVersion: e.builderContext.apiVersion,
|
|
3296
3314
|
apiKey: e.builderContext.apiKey,
|
|
@@ -3299,27 +3317,27 @@ function ls(e, t, n, o, s, r) {
|
|
|
3299
3317
|
data: {
|
|
3300
3318
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
3301
3319
|
...e.builderContext.localState,
|
|
3302
|
-
...(
|
|
3320
|
+
...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
|
|
3303
3321
|
},
|
|
3304
|
-
model: (
|
|
3322
|
+
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
3305
3323
|
content: e.contentToUse
|
|
3306
3324
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
3307
3325
|
], 16);
|
|
3308
3326
|
}
|
|
3309
|
-
const
|
|
3310
|
-
function
|
|
3327
|
+
const lr = /* @__PURE__ */ k(ir, [["render", ar], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), fr = oe, br = Ze, ve = {};
|
|
3328
|
+
function gr(e) {
|
|
3311
3329
|
if ($()) {
|
|
3312
|
-
Object.assign(
|
|
3330
|
+
Object.assign(ve, e);
|
|
3313
3331
|
const t = {
|
|
3314
3332
|
type: "builder.settingsChange",
|
|
3315
|
-
data:
|
|
3333
|
+
data: ve
|
|
3316
3334
|
};
|
|
3317
3335
|
parent.postMessage(t, "*");
|
|
3318
3336
|
}
|
|
3319
3337
|
}
|
|
3320
|
-
const
|
|
3321
|
-
var o,
|
|
3322
|
-
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((
|
|
3338
|
+
const yr = async (e) => {
|
|
3339
|
+
var o, r, s;
|
|
3340
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
3323
3341
|
...e,
|
|
3324
3342
|
apiKey: e.apiKey,
|
|
3325
3343
|
model: e.model || "page",
|
|
@@ -3329,7 +3347,7 @@ const vs = async (e) => {
|
|
|
3329
3347
|
urlPath: t
|
|
3330
3348
|
} : {}
|
|
3331
3349
|
},
|
|
3332
|
-
options:
|
|
3350
|
+
options: De(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
3333
3351
|
};
|
|
3334
3352
|
return {
|
|
3335
3353
|
apiKey: n.apiKey,
|
|
@@ -3338,38 +3356,38 @@ const vs = async (e) => {
|
|
|
3338
3356
|
};
|
|
3339
3357
|
};
|
|
3340
3358
|
export {
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3359
|
+
_e as B,
|
|
3360
|
+
Ze as C,
|
|
3361
|
+
Qt as F,
|
|
3362
|
+
an as I,
|
|
3363
|
+
fr as R,
|
|
3364
|
+
un as S,
|
|
3365
|
+
A as T,
|
|
3366
|
+
eo as V,
|
|
3349
3367
|
k as _,
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3368
|
+
Ve as a,
|
|
3369
|
+
Q as b,
|
|
3370
|
+
dt as c,
|
|
3353
3371
|
oe as d,
|
|
3354
3372
|
z as e,
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3373
|
+
br as f,
|
|
3374
|
+
it as g,
|
|
3375
|
+
Jt as h,
|
|
3376
|
+
lr as i,
|
|
3377
|
+
Jn as j,
|
|
3378
|
+
P as k,
|
|
3379
|
+
Co as l,
|
|
3380
|
+
to as m,
|
|
3381
|
+
So as n,
|
|
3382
|
+
Ge as o,
|
|
3383
|
+
J as p,
|
|
3384
|
+
mr as q,
|
|
3385
|
+
Fo as r,
|
|
3386
|
+
gr as s,
|
|
3387
|
+
pr as t,
|
|
3388
|
+
De as u,
|
|
3389
|
+
hr as v,
|
|
3390
|
+
Zo as w,
|
|
3391
|
+
yr as x,
|
|
3392
|
+
dr as y
|
|
3375
3393
|
};
|