@builder.io/sdk-vue 0.7.5 → 0.7.6
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 +1 -1
- package/vue2/lib/browser/block-3acda1db.cjs +3 -0
- package/vue2/lib/browser/{block-b8bfcb77.js → block-a6f87b59.js} +14 -11
- package/vue2/lib/{edge/block-styles-7b5f3a8f.cjs → browser/block-styles-5c462c72.cjs} +1 -1
- package/vue2/lib/{node/block-styles-6dd31eb8.js → browser/block-styles-fd9354cd.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-950d3006.js → block-wrapper-42a21f3a.js} +5 -5
- package/vue2/lib/browser/{block-wrapper-41011f58.cjs → block-wrapper-6614e2f6.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-7339087f.cjs → browser/blocks-wrapper-7761766b.cjs} +1 -1
- package/vue2/lib/{edge/blocks-wrapper-70a091a6.js → browser/blocks-wrapper-ca4d46fe.js} +1 -1
- package/vue2/lib/{edge/component-ref-560915c3.js → browser/component-ref-1114d239.js} +6 -6
- package/vue2/lib/{edge/component-ref-d30e784b.cjs → browser/component-ref-705f4623.cjs} +1 -1
- package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{node/content-a5b1f8b2.cjs → browser/content-4e18170c.cjs} +1 -1
- package/vue2/lib/browser/{content-43a1dc9c.js → content-fea57461.js} +5 -5
- package/vue2/lib/browser/{css-42aa7f84.js → css-5f8e03e7.js} +1 -1
- package/vue2/lib/{node/css-a083942f.cjs → browser/css-bd209fae.cjs} +1 -1
- package/vue2/lib/{edge/enable-editor-7cda726f.cjs → browser/enable-editor-430efbd4.cjs} +1 -1
- package/vue2/lib/{node/enable-editor-b1a0289d.js → browser/enable-editor-9e5fbca5.js} +3 -3
- package/vue2/lib/browser/{evaluate-9a88b50c.js → evaluate-04a2bd86.js} +1 -1
- package/vue2/lib/browser/{evaluate-0e925150.cjs → evaluate-07174f5f.cjs} +1 -1
- package/vue2/lib/{node/get-block-actions-f7890b23.js → browser/get-block-actions-6bf6efd8.js} +2 -2
- package/vue2/lib/browser/{get-block-actions-f45b7d64.cjs → get-block-actions-84c842f6.cjs} +1 -1
- package/vue2/lib/browser/{get-block-properties-6bf3a9f6.js → get-block-properties-d1d0bc05.js} +2 -2
- package/vue2/lib/{node/get-block-properties-f2ba3458.cjs → browser/get-block-properties-e2a40df1.cjs} +1 -1
- package/vue2/lib/browser/{get-processed-block-2f7badd8.js → get-processed-block-1ddb5e78.js} +2 -2
- package/vue2/lib/browser/{get-processed-block-44868ee6.cjs → get-processed-block-e0783c0a.cjs} +1 -1
- package/vue2/lib/{node/index-acebd2be.cjs → browser/index-3caa5325.cjs} +3 -3
- package/vue2/lib/{edge/index-13a478c9.js → browser/index-efdcc0ee.js} +7 -7
- package/vue2/lib/browser/index.cjs +1 -1
- package/vue2/lib/browser/index.js +1 -1
- package/vue2/lib/browser/{inlined-script-567369fc.cjs → inlined-script-335771a8.cjs} +1 -1
- package/vue2/lib/{edge/inlined-script-46088a59.js → browser/inlined-script-ec4a5d29.js} +1 -1
- package/vue2/lib/{node/inlined-styles-c8d067f7.cjs → browser/inlined-styles-3913a8d2.cjs} +1 -1
- package/vue2/lib/{node/inlined-styles-6405713e.js → browser/inlined-styles-f423abf7.js} +1 -1
- package/vue2/lib/{node/interactive-element-552d9c1d.cjs → browser/interactive-element-37bc0f5d.cjs} +1 -1
- package/vue2/lib/{node/interactive-element-891aeec9.js → browser/interactive-element-eb83a760.js} +5 -5
- package/vue2/lib/browser/{repeated-block-cda24fc1.cjs → repeated-block-0d2b2875.cjs} +1 -1
- package/vue2/lib/{node/repeated-block-e394bfe9.js → browser/repeated-block-b9f308bb.js} +2 -2
- package/vue2/lib/browser/{styles-4394cb3b.cjs → styles-d078f3c9.cjs} +2 -2
- package/vue2/lib/browser/{styles-761dab39.js → styles-f398dedc.js} +2 -2
- package/vue2/lib/edge/block-1f2d2db7.cjs +3 -0
- package/vue2/lib/{node/block-fe2e5888.js → edge/block-88b23340.js} +14 -11
- package/vue2/lib/edge/{block-styles-4cc9f141.js → block-styles-3ecae21c.js} +5 -5
- package/vue2/lib/{node/block-styles-b28a2e1f.cjs → edge/block-styles-aceb9af8.cjs} +1 -1
- package/vue2/lib/edge/{block-wrapper-47a17093.cjs → block-wrapper-138380d7.cjs} +1 -1
- package/vue2/lib/{node/block-wrapper-c1574900.js → edge/block-wrapper-e5b88192.js} +5 -5
- package/vue2/lib/{browser/blocks-wrapper-a522cccb.js → edge/blocks-wrapper-6746e3cd.js} +1 -1
- package/vue2/lib/{browser/blocks-wrapper-77802ec6.cjs → edge/blocks-wrapper-faea8d38.cjs} +1 -1
- package/vue2/lib/{node/component-ref-5c513a84.cjs → edge/component-ref-7b7d8e68.cjs} +1 -1
- package/vue2/lib/{node/component-ref-efab49f4.js → edge/component-ref-c33bfd71.js} +6 -6
- package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/edge/{content-57bc4f42.js → content-2ea81381.js} +5 -5
- package/vue2/lib/{browser/content-45906cc9.cjs → edge/content-5c39336c.cjs} +1 -1
- package/vue2/lib/{browser/css-605fcc40.cjs → edge/css-23e659da.cjs} +1 -1
- package/vue2/lib/edge/{css-e71756bc.js → css-fdcffefa.js} +1 -1
- package/vue2/lib/{node/enable-editor-f903aba9.cjs → edge/enable-editor-9d1118ea.cjs} +1 -1
- package/vue2/lib/{browser/enable-editor-bba63d74.js → edge/enable-editor-f32fd70b.js} +3 -3
- package/vue2/lib/edge/{evaluate-ae242f0c.cjs → evaluate-907e638c.cjs} +1 -1
- package/vue2/lib/edge/{evaluate-7ef8d079.js → evaluate-f1aeac53.js} +1 -1
- package/vue2/lib/{node/get-block-actions-1fed2d11.cjs → edge/get-block-actions-746c9bd2.cjs} +1 -1
- package/vue2/lib/{browser/get-block-actions-abefbd5a.js → edge/get-block-actions-f7a64955.js} +2 -2
- package/vue2/lib/edge/{get-block-properties-29a2d888.js → get-block-properties-721b933d.js} +2 -2
- package/vue2/lib/{browser/get-block-properties-deacdc91.cjs → edge/get-block-properties-a5109149.cjs} +1 -1
- package/vue2/lib/{node/get-processed-block-7aabe9a2.js → edge/get-processed-block-0ed76999.js} +2 -2
- package/vue2/lib/edge/{get-processed-block-c2f59c36.cjs → get-processed-block-c0703239.cjs} +1 -1
- package/vue2/lib/edge/{index-17aded8e.cjs → index-1d97f3d7.cjs} +3 -3
- package/vue2/lib/{browser/index-6ce45901.js → edge/index-5e05bfe5.js} +7 -7
- package/vue2/lib/edge/index.cjs +1 -1
- package/vue2/lib/edge/index.js +1 -1
- package/vue2/lib/{node/inlined-script-87aaded8.js → edge/inlined-script-88ef6d76.js} +1 -1
- package/vue2/lib/{node/inlined-script-cf7aba95.cjs → edge/inlined-script-9a554125.cjs} +1 -1
- package/vue2/lib/{browser/inlined-styles-420ee28e.cjs → edge/inlined-styles-908b0f3d.cjs} +1 -1
- package/vue2/lib/edge/{inlined-styles-7ddf1959.js → inlined-styles-960710cc.js} +1 -1
- package/vue2/lib/{browser/interactive-element-3a8e1819.cjs → edge/interactive-element-ad4ab167.cjs} +1 -1
- package/vue2/lib/{browser/interactive-element-be7c3cca.js → edge/interactive-element-bb9f8f84.js} +5 -5
- package/vue2/lib/{browser/repeated-block-d2924830.js → edge/repeated-block-06156896.js} +2 -2
- package/vue2/lib/edge/{repeated-block-2d730ce8.cjs → repeated-block-5ba61f53.cjs} +1 -1
- package/vue2/lib/{node/styles-bd4da0bf.js → edge/styles-fbe2ad34.js} +2 -2
- package/vue2/lib/{node/styles-58b07f41.cjs → edge/styles-fccbcaef.cjs} +2 -2
- package/vue2/lib/node/block-250cdb0f.cjs +3 -0
- package/vue2/lib/{edge/block-6b69b000.js → node/block-bbaf1d04.js} +14 -11
- package/vue2/lib/{browser/block-styles-e0d81772.cjs → node/block-styles-1e2640a2.cjs} +1 -1
- package/vue2/lib/{browser/block-styles-33adc3cd.js → node/block-styles-ae29f345.js} +5 -5
- package/vue2/lib/{edge/block-wrapper-2b945a1b.js → node/block-wrapper-88b642c5.js} +5 -5
- package/vue2/lib/node/{block-wrapper-403d207d.cjs → block-wrapper-ac53a924.cjs} +1 -1
- package/vue2/lib/node/{blocks-wrapper-ca5a81fb.js → blocks-wrapper-1e6ad915.js} +1 -1
- package/vue2/lib/node/{blocks-wrapper-0de6d65d.cjs → blocks-wrapper-a054ebaf.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-f0dd90c7.cjs → node/component-ref-06eef9a6.cjs} +1 -1
- package/vue2/lib/{browser/component-ref-2413b882.js → node/component-ref-205a7877.js} +6 -6
- package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue2/lib/{edge/content-b151215b.cjs → node/content-a5a1d56c.cjs} +1 -1
- package/vue2/lib/node/{content-55436eac.js → content-f12d606a.js} +5 -5
- package/vue2/lib/node/{css-a05e89b2.js → css-6048b6bd.js} +1 -1
- package/vue2/lib/{edge/css-212b6f26.cjs → node/css-b2c258a5.cjs} +1 -1
- package/vue2/lib/{edge/enable-editor-f32de0ee.js → node/enable-editor-359d31d1.js} +3 -3
- package/vue2/lib/{browser/enable-editor-f0119e65.cjs → node/enable-editor-fdd7a890.cjs} +1 -1
- package/vue2/lib/node/{evaluate-654ec4aa.cjs → evaluate-0814c11a.cjs} +1 -1
- package/vue2/lib/node/{evaluate-524b960e.js → evaluate-834a9ea9.js} +1 -1
- package/vue2/lib/{edge/get-block-actions-7ecb51a0.cjs → node/get-block-actions-3773e4fd.cjs} +1 -1
- package/vue2/lib/{edge/get-block-actions-16aad06a.js → node/get-block-actions-c8c3330b.js} +2 -2
- package/vue2/lib/{edge/get-block-properties-8ea816eb.cjs → node/get-block-properties-3f9bfbe9.cjs} +1 -1
- package/vue2/lib/node/{get-block-properties-12b28e9b.js → get-block-properties-8711f880.js} +2 -2
- package/vue2/lib/node/{get-processed-block-19c83033.cjs → get-processed-block-5728fca2.cjs} +1 -1
- package/vue2/lib/{edge/get-processed-block-ceeee74c.js → node/get-processed-block-ee45c650.js} +2 -2
- package/vue2/lib/node/{index-f0eb3cdd.js → index-3fcbe332.js} +7 -7
- package/vue2/lib/{browser/index-bf80435b.cjs → node/index-bf858a42.cjs} +3 -3
- package/vue2/lib/node/index.cjs +1 -1
- package/vue2/lib/node/index.js +1 -1
- package/vue2/lib/{edge/inlined-script-c18f4bac.cjs → node/inlined-script-05a289bc.cjs} +1 -1
- package/vue2/lib/{browser/inlined-script-c0cae21b.js → node/inlined-script-24a8df2e.js} +1 -1
- package/vue2/lib/{browser/inlined-styles-a5789a45.js → node/inlined-styles-41df1b95.js} +1 -1
- package/vue2/lib/{edge/inlined-styles-036d1968.cjs → node/inlined-styles-7ac1dd90.cjs} +1 -1
- package/vue2/lib/{edge/interactive-element-50db3a7e.js → node/interactive-element-bbd449cb.js} +5 -5
- package/vue2/lib/{edge/interactive-element-473210e5.cjs → node/interactive-element-cae91247.cjs} +1 -1
- package/vue2/lib/node/{repeated-block-07c3fd09.cjs → repeated-block-65e12830.cjs} +1 -1
- package/vue2/lib/{edge/repeated-block-ae7fe7ad.js → node/repeated-block-82dffab6.js} +2 -2
- package/vue2/lib/{edge/styles-229bdcb6.cjs → node/styles-b9c3f50e.cjs} +2 -2
- package/vue2/lib/{edge/styles-514a7860.js → node/styles-dc003dc5.js} +2 -2
- package/vue3/lib/{edge/block-wrapper.34ad49eb.js → browser/block-wrapper.1377d486.js} +2 -2
- package/vue3/lib/browser/{block-wrapper.a606ebe4.cjs → block-wrapper.77966882.cjs} +1 -1
- package/vue3/lib/{edge/component-ref.868e79d9.js → browser/component-ref.0df2ace0.js} +2 -2
- package/vue3/lib/{edge/component-ref.9057a2c5.cjs → browser/component-ref.cfa2879a.cjs} +1 -1
- package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/browser/{get-block-actions.79d46437.cjs → get-block-actions.53c9e174.cjs} +1 -1
- package/vue3/lib/{edge/get-block-actions.d5d9bee8.js → browser/get-block-actions.b5062464.js} +1 -1
- package/vue3/lib/browser/{index.27a34e20.cjs → index.263ef516.cjs} +2 -2
- package/vue3/lib/browser/{index.2d766828.js → index.3ca6cceb.js} +9 -6
- package/vue3/lib/browser/index.cjs +1 -1
- package/vue3/lib/browser/index.js +1 -1
- package/vue3/lib/{edge/repeated-block.078146fa.js → browser/repeated-block.055d09e9.js} +2 -2
- package/vue3/lib/{edge/repeated-block.c5a87c23.cjs → browser/repeated-block.10ac7676.cjs} +1 -1
- package/vue3/lib/edge/{block-wrapper.3525d917.cjs → block-wrapper.a5eacdf4.cjs} +1 -1
- package/vue3/lib/{browser/block-wrapper.1f981181.js → edge/block-wrapper.b96fad63.js} +2 -2
- package/vue3/lib/{browser/component-ref.dab1249c.cjs → edge/component-ref.4865219f.cjs} +1 -1
- package/vue3/lib/{browser/component-ref.c8d76b1a.js → edge/component-ref.fef012d7.js} +2 -2
- package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/{node/get-block-actions.51b5b9e1.js → edge/get-block-actions.b12a50e1.js} +1 -1
- package/vue3/lib/edge/{get-block-actions.a62ff620.cjs → get-block-actions.e8f7801d.cjs} +1 -1
- package/vue3/lib/edge/{index.78e1db34.js → index.8968e581.js} +9 -6
- package/vue3/lib/edge/{index.dfd25e6d.cjs → index.caa41e14.cjs} +2 -2
- package/vue3/lib/edge/index.cjs +1 -1
- package/vue3/lib/edge/index.js +1 -1
- package/vue3/lib/{browser/repeated-block.4627ce3b.cjs → edge/repeated-block.819e62ef.cjs} +1 -1
- package/vue3/lib/{browser/repeated-block.af88918c.js → edge/repeated-block.827595e1.js} +2 -2
- package/vue3/lib/node/{block-wrapper.807f65f7.cjs → block-wrapper.56c45140.cjs} +1 -1
- package/vue3/lib/node/{block-wrapper.1f42acaf.js → block-wrapper.747652cc.js} +2 -2
- package/vue3/lib/node/{component-ref.2e134a43.js → component-ref.4cde5228.js} +2 -2
- package/vue3/lib/node/{component-ref.68fab46d.cjs → component-ref.9c294efb.cjs} +1 -1
- package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
- package/vue3/lib/node/{get-block-actions.4aa48fd9.cjs → get-block-actions.2b49b259.cjs} +1 -1
- package/vue3/lib/{browser/get-block-actions.16dc4164.js → node/get-block-actions.f57c50da.js} +1 -1
- package/vue3/lib/node/{index.d650e668.cjs → index.6ab6fc2e.cjs} +5 -5
- package/vue3/lib/node/{index.fd3a9724.js → index.941e6502.js} +9 -6
- package/vue3/lib/node/index.cjs +1 -1
- package/vue3/lib/node/index.js +1 -1
- package/vue3/lib/node/{repeated-block.89e247ac.cjs → repeated-block.b45912e0.cjs} +1 -1
- package/vue3/lib/node/{repeated-block.a5d8bef5.js → repeated-block.d9d63701.js} +2 -2
- package/vue2/lib/browser/block-f18eeef5.cjs +0 -3
- package/vue2/lib/edge/block-ca6608fc.cjs +0 -3
- package/vue2/lib/node/block-67819011.cjs +0 -3
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-e0783c0a.cjs"),m=require("./evaluate-07174f5f.cjs"),d=require("./index-3caa5325.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),f=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=p.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!r)return null;const n=o[r];if(n)return n;console.warn(`
|
|
2
|
+
Could not find a registered component named "${r}".
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},b=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-5c462c72.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./block-wrapper-6614e2f6.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=()=>Promise.resolve().then(()=>require("./component-ref-705f4623.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block-0d2b2875.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),P=a.defineComponent({name:"block",components:{"component-ref":B,"block-wrapper":g,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return f({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return b({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){var o,r;if((o=this.block.repeat)!=null&&o.collection)return!!((r=this.repeatItem)!=null&&r.length);const t="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!t},childrenWithoutParentComponent(){var e;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,e,o,r,n;return{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((e=this.blockComponent)==null?void 0:e.name)==="Symbol"||((o=this.blockComponent)==null?void 0:o.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((r=this.blockComponent)==null?void 0:r.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC)}}}});var x=function(){var r;var e=this,o=e._self._c;return e._self._setupProxy,(r=e.blockComponent)!=null&&r.noWrap&&e.canShowBlock?o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},R=[],y=d.normalizeComponent(P,x,R,!1,null,null,null,null);const v=y.exports;exports.default=v;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as a } from "vue";
|
|
2
|
-
import { g as p } from "./get-processed-block-
|
|
3
|
-
import { e as m } from "./evaluate-
|
|
4
|
-
import { n as d } from "./index-
|
|
2
|
+
import { g as p } from "./get-processed-block-1ddb5e78.js";
|
|
3
|
+
import { e as m } from "./evaluate-04a2bd86.js";
|
|
4
|
+
import { n as d } from "./index-efdcc0ee.js";
|
|
5
5
|
function h(t) {
|
|
6
6
|
var e;
|
|
7
7
|
return {
|
|
@@ -68,22 +68,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
68
68
|
},
|
|
69
69
|
block: r
|
|
70
70
|
}));
|
|
71
|
-
}, C = () => import("./block-styles-
|
|
71
|
+
}, C = () => import("./block-styles-fd9354cd.js").then((t) => t.default).catch((t) => {
|
|
72
72
|
throw console.error(
|
|
73
73
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
74
74
|
t
|
|
75
75
|
), t;
|
|
76
|
-
}), B = () => import("./block-wrapper-
|
|
76
|
+
}), B = () => import("./block-wrapper-42a21f3a.js").then((t) => t.default).catch((t) => {
|
|
77
77
|
throw console.error(
|
|
78
78
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
79
79
|
t
|
|
80
80
|
), t;
|
|
81
|
-
}),
|
|
81
|
+
}), S = () => import("./component-ref-1114d239.js").then((t) => t.default).catch((t) => {
|
|
82
82
|
throw console.error(
|
|
83
83
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
84
84
|
t
|
|
85
85
|
), t;
|
|
86
|
-
}),
|
|
86
|
+
}), g = () => import("./repeated-block-b9f308bb.js").then((t) => t.default).catch((t) => {
|
|
87
87
|
throw console.error(
|
|
88
88
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
89
89
|
t
|
|
@@ -91,9 +91,9 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
91
91
|
}), x = a({
|
|
92
92
|
name: "block",
|
|
93
93
|
components: {
|
|
94
|
-
"component-ref":
|
|
94
|
+
"component-ref": S,
|
|
95
95
|
"block-wrapper": B,
|
|
96
|
-
"repeated-block":
|
|
96
|
+
"repeated-block": g,
|
|
97
97
|
"block-styles": C
|
|
98
98
|
},
|
|
99
99
|
props: ["block", "context", "registeredComponents"],
|
|
@@ -129,8 +129,11 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
|
|
|
129
129
|
return this.block.tagName || "div";
|
|
130
130
|
},
|
|
131
131
|
canShowBlock() {
|
|
132
|
-
var
|
|
133
|
-
|
|
132
|
+
var o, r;
|
|
133
|
+
if ((o = this.block.repeat) != null && o.collection)
|
|
134
|
+
return !!((r = this.repeatItem) != null && r.length);
|
|
135
|
+
const t = "hide" in this.processedBlock ? this.processedBlock.hide : !1;
|
|
136
|
+
return ("show" in this.processedBlock ? this.processedBlock.show : !0) && !t;
|
|
134
137
|
},
|
|
135
138
|
childrenWithoutParentComponent() {
|
|
136
139
|
var e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-3caa5325.cjs"),d=require("./get-processed-block-e0783c0a.cjs"),c=require("./css-bd209fae.cjs");require("./evaluate-07174f5f.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-3913a8d2.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",t),t}),k=y.defineComponent({name:"block-styles",components:{"inlined-styles":p},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const t=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return s.checkIsDefined(t.hide)?!t.hide:s.checkIsDefined(t.show)?t.show:!0},css(){var u;const t=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),e=t.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((u=o==null?void 0:o.meta)==null?void 0:u.breakpoints)||{}),l=e==null?void 0:e.large,a=e==null?void 0:e.medium,i=e==null?void 0:e.small,n=t.id;if(!n)return"";const S=l?c.createCssClass({className:n,styles:l}):"",m=a?c.createCssClass({className:n,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",r)}):"",h=i?c.createCssClass({className:n,styles:i,mediaQuery:s.getMaxWidthQueryForSize("small",r)}):"";return[S,m,h].join(" ")}}});var x=function(){var e=this,o=e._self._c;return e._self._setupProxy,e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?o("inlined-styles",{attrs:{styles:e.css}}):e._e()},_=[],f=s.normalizeComponent(k,x,_,!1,null,null,null,null);const g=f.exports;exports.default=g;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as y } from "vue";
|
|
2
|
-
import { T as f, c as m, g as x, a as d, n as _ } from "./index-
|
|
3
|
-
import { g as u } from "./get-processed-block-
|
|
4
|
-
import { c as n } from "./css-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
const k = () => import("./inlined-styles-
|
|
2
|
+
import { T as f, c as m, g as x, a as d, n as _ } from "./index-efdcc0ee.js";
|
|
3
|
+
import { g as u } from "./get-processed-block-1ddb5e78.js";
|
|
4
|
+
import { c as n } from "./css-5f8e03e7.js";
|
|
5
|
+
import "./evaluate-04a2bd86.js";
|
|
6
|
+
const k = () => import("./inlined-styles-f423abf7.js").then((e) => e.default).catch((e) => {
|
|
7
7
|
throw console.error(
|
|
8
8
|
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
9
9
|
e
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e } from "vue";
|
|
2
|
-
import { g as r } from "./get-block-actions-
|
|
3
|
-
import { g as c } from "./get-block-properties-
|
|
4
|
-
import { n } from "./index-
|
|
5
|
-
import "./evaluate-
|
|
6
|
-
import "./css-
|
|
2
|
+
import { g as r } from "./get-block-actions-6bf6efd8.js";
|
|
3
|
+
import { g as c } from "./get-block-properties-d1d0bc05.js";
|
|
4
|
+
import { n } from "./index-efdcc0ee.js";
|
|
5
|
+
import "./evaluate-04a2bd86.js";
|
|
6
|
+
import "./css-5f8e03e7.js";
|
|
7
7
|
const a = e({
|
|
8
8
|
name: "block-wrapper",
|
|
9
9
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-84c842f6.cjs"),c=require("./get-block-properties-e2a40df1.cjs"),n=require("./index-3caa5325.cjs");require("./evaluate-07174f5f.cjs");require("./css-bd209fae.cjs");const l=o.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:c.getBlockProperties}}});var a=function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasChildren?e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})),[t._t("default")],2):e(t.Wrapper,t._g(t._b({tag:"component"},"component",t.getBlockProperties({block:t.block,context:t.context}),!1),t.getBlockActions({block:t.block,rootState:t.context.rootState,rootSetState:t.context.rootSetState,localState:t.context.localState,context:t.context.context,stripPrefix:!0})))},s=[],i=n.normalizeComponent(l,a,s,!1,null,null,null,null);const p=i.exports;exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-3caa5325.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { g as s } from "./get-block-properties-
|
|
3
|
-
import { n as a } from "./index-
|
|
4
|
-
import "./css-
|
|
2
|
+
import { g as s } from "./get-block-properties-d1d0bc05.js";
|
|
3
|
+
import { n as a } from "./index-efdcc0ee.js";
|
|
4
|
+
import "./css-5f8e03e7.js";
|
|
5
5
|
const m = (t) => t, k = ({
|
|
6
6
|
componentOptions: t,
|
|
7
7
|
builderBlock: e,
|
|
@@ -27,17 +27,17 @@ const m = (t) => t, k = ({
|
|
|
27
27
|
context: i
|
|
28
28
|
})
|
|
29
29
|
} : {}
|
|
30
|
-
}, u = () => import("./block-
|
|
30
|
+
}, u = () => import("./block-a6f87b59.js").then((t) => t.default).catch((t) => {
|
|
31
31
|
throw console.error(
|
|
32
32
|
"Error while attempting to dynamically import component Block at ../../block.vue",
|
|
33
33
|
t
|
|
34
34
|
), t;
|
|
35
|
-
}), f = () => import("./block-styles-
|
|
35
|
+
}), f = () => import("./block-styles-fd9354cd.js").then((t) => t.default).catch((t) => {
|
|
36
36
|
throw console.error(
|
|
37
37
|
"Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
|
|
38
38
|
t
|
|
39
39
|
), t;
|
|
40
|
-
}), c = () => import("./interactive-element-
|
|
40
|
+
}), c = () => import("./interactive-element-eb83a760.js").then((t) => t.default).catch((t) => {
|
|
41
41
|
throw console.error(
|
|
42
42
|
"Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
|
|
43
43
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-e2a40df1.cjs"),a=require("./index-3caa5325.cjs");require("./css-bd209fae.cjs");const m=t=>t,u=({componentOptions:t,builderBlock:e,context:n,componentRef:o,includeBlockProps:r,isInteractive:l,contextValue:i})=>l?{Wrapper:o,block:e,context:n,wrapperProps:t}:{...t,...r?{attributes:p.getBlockProperties({block:e,context:i})}:{}},d=()=>Promise.resolve().then(()=>require("./block-3acda1db.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-styles-5c462c72.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-37bc0f5d.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),f=s.defineComponent({name:"component-ref",components:{block:d,"block-styles":k,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?m(c):this.componentRef,getWrapperProps:u}}});var v=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},b=[],_=a.normalizeComponent(f,v,b,!1,null,null,null,null);const h=_.exports;exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.
|
|
1
|
+
export declare const SDK_VERSION = "0.7.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-acebd2be.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(o=>{o.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(a=>a.get("width"))&&(n.find(l=>!l.get("width"))||n.reduce((s,c)=>s+c.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},x=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const o=e[n];if(o.src){if(this.scriptsInserted.includes(o.src))continue;this.scriptsInserted.push(o.src);const a=document.createElement("script");a.async=!0,a.src=o.src,document.head.appendChild(a)}else if(!o.type||["text/javascript","application/javascript","application/ecmascript"].includes(o.type)){if(this.scriptsRun.includes(o.innerText))continue;try{this.scriptsRun.push(o.innerText),new Function(o.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var v=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},S=[],T=r.normalizeComponent(x,v,S,!1,null,null,null,null);const _=T.exports,C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===t&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},P={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((c,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,c(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function o(i){return Math.round(i*1e3)/1e3}const a=e.get("image"),l=e.get("aspectRatio");if(fetch(a).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),a&&(!l||l===.7041))return n(a).then(i=>{const s=e.get("aspectRatio");e.get("image")===a&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",o(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},W={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},$=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var U=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},j=[],z=r.normalizeComponent($,U,j,!1,null,null,null,null);const H=z.exports,q={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},L={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},M={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:_,...y},{component:V,...C},{component:r.Fragment,...A},{component:r.Image,...P},{component:H,...W},{component:r.Section,...q},{component:r.Symbol,...L},{component:r.Text,...D},{component:r.Video,...M}],B=({content:e,data:t,locale:n})=>{var l,i,s;const o={},a=((l=e==null?void 0:e.data)==null?void 0:l.state)||{};return(s=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||s.forEach(c=>{c.name&&c.defaultValue!==void 0&&(o[c.name]=c.defaultValue)}),{...o,...a,...t,...n?{locale:n}:{}}},N=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-acebd2be.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./inlined-script-cf7aba95.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-f903aba9.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./styles-58b07f41.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":O,"content-styles":J,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getUpdateVariantVisibilityScript({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:{component:o,...r.serializeComponentInfo(a)}}),{}),builderContextSignal:{content:N({content:this.content,data:this.data}),localState:void 0,rootState:B({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:r.serializeComponentInfo(a)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var o,a,l,i,s,c,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(o=t.builderContextSignal.content)==null?void 0:o.id,cssCode:(l=(a=t.builderContextSignal.content)==null?void 0:a.data)==null?void 0:l.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(c=t.builderContextSignal.content)==null?void 0:c.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-3caa5325.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(o=>{o.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(a=>a.get("width"))&&(n.find(l=>!l.get("width"))||n.reduce((s,c)=>s+c.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},x=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const o=e[n];if(o.src){if(this.scriptsInserted.includes(o.src))continue;this.scriptsInserted.push(o.src);const a=document.createElement("script");a.async=!0,a.src=o.src,document.head.appendChild(a)}else if(!o.type||["text/javascript","application/javascript","application/ecmascript"].includes(o.type)){if(this.scriptsRun.includes(o.innerText))continue;try{this.scriptsRun.push(o.innerText),new Function(o.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var v=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},S=[],T=r.normalizeComponent(x,v,S,!1,null,null,null,null);const _=T.exports,C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===t&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},P={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((c,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,c(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function o(i){return Math.round(i*1e3)/1e3}const a=e.get("image"),l=e.get("aspectRatio");if(fetch(a).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),a&&(!l||l===.7041))return n(a).then(i=>{const s=e.get("aspectRatio");e.get("image")===a&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",o(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},W={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},$=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var U=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},j=[],z=r.normalizeComponent($,U,j,!1,null,null,null,null);const H=z.exports,q={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},L={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},M={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:_,...y},{component:V,...C},{component:r.Fragment,...A},{component:r.Image,...P},{component:H,...W},{component:r.Section,...q},{component:r.Symbol,...L},{component:r.Text,...D},{component:r.Video,...M}],B=({content:e,data:t,locale:n})=>{var l,i,s;const o={},a=((l=e==null?void 0:e.data)==null?void 0:l.state)||{};return(s=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||s.forEach(c=>{c.name&&c.defaultValue!==void 0&&(o[c.name]=c.defaultValue)}),{...o,...a,...t,...n?{locale:n}:{}}},N=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-3caa5325.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./inlined-script-335771a8.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-430efbd4.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./styles-d078f3c9.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":O,"content-styles":J,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getUpdateVariantVisibilityScript({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:{component:o,...r.serializeComponentInfo(a)}}),{}),builderContextSignal:{content:N({content:this.content,data:this.data}),localState:void 0,rootState:B({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:r.serializeComponentInfo(a)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var o,a,l,i,s,c,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(o=t.builderContextSignal.content)==null?void 0:o.id,cssCode:(l=(a=t.builderContextSignal.content)==null?void 0:a.data)==null?void 0:l.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(c=t.builderContextSignal.content)==null?void 0:c.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
|
-
import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-
|
|
2
|
+
import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-efdcc0ee.js";
|
|
3
3
|
const E = {
|
|
4
4
|
name: "Core:Button",
|
|
5
5
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -779,22 +779,22 @@ const ee = Z.exports, te = {
|
|
|
779
779
|
...t
|
|
780
780
|
},
|
|
781
781
|
meta: e == null ? void 0 : e.meta
|
|
782
|
-
} : void 0, se = () => import("./index-
|
|
782
|
+
} : void 0, se = () => import("./index-efdcc0ee.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
783
783
|
throw console.error(
|
|
784
784
|
"Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
|
|
785
785
|
e
|
|
786
786
|
), e;
|
|
787
|
-
}), le = () => import("./inlined-script-
|
|
787
|
+
}), le = () => import("./inlined-script-ec4a5d29.js").then((e) => e.default).catch((e) => {
|
|
788
788
|
throw console.error(
|
|
789
789
|
"Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
|
|
790
790
|
e
|
|
791
791
|
), e;
|
|
792
|
-
}), ce = () => import("./enable-editor-
|
|
792
|
+
}), ce = () => import("./enable-editor-9e5fbca5.js").then((e) => e.default).catch((e) => {
|
|
793
793
|
throw console.error(
|
|
794
794
|
"Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
|
|
795
795
|
e
|
|
796
796
|
), e;
|
|
797
|
-
}), de = () => import("./styles-
|
|
797
|
+
}), de = () => import("./styles-f398dedc.js").then((e) => e.default).catch((e) => {
|
|
798
798
|
throw console.error(
|
|
799
799
|
"Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
|
|
800
800
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-efdcc0ee.js";
|
|
2
2
|
const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), n = (s) => Object.entries(s).map(([r, e]) => {
|
|
3
3
|
if (typeof e == "string")
|
|
4
4
|
return `${c(r)}: ${e};`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-3caa5325.cjs"),o=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),c=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${o(r)}: ${s};`}).filter(n.checkIsDefined),a=e=>c(e).join(`
|
|
2
2
|
`),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
|
|
3
3
|
${a(r)}
|
|
4
4
|
}`;return e?`${e} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-3caa5325.cjs"),m=require("./evaluate-07174f5f.cjs");function f(n){return Math.round(n*1e3)/1e3}const v=(n,e,t=!0)=>{if(!(n instanceof HTMLElement))return null;let i=t?n:n.parentElement;do{if(!i)return null;if(e(i))return i}while(i=i.parentElement);return null},x=n=>v(n,e=>{const t=e.getAttribute("builder-id")||e.id;return(t==null?void 0:t.indexOf("builder-"))===0}),g=({event:n,target:e})=>{const t=e.getBoundingClientRect(),i=n.clientX-t.left,o=n.clientY-t.top,s=f(i/t.width),a=f(o/t.height);return{x:s,y:a}},R=n=>{const e=n.target,t=e&&x(e),i=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:e?g({event:n,target:e}):void 0,builderTargetOffset:t?g({event:n,target:t}):void 0,builderElementIndex:t&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(t):void 0}}},k="0.7.6",w=()=>{r.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let b=!1;const y=(n={})=>{var e,t;b||(b=!0,r.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:r.TARGET,version:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:n}},"*"),window.addEventListener("message",({data:i})=>{var o,s;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const a=i.data.text,l=i.data.arguments||[],c=i.data.id,C=new Function(a);let d,u=null;try{d=C.apply(null,l)}catch(h){u=h}u?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:c,error:u.message}},"*"):d&&typeof d.then=="function"?d.then(h=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:c,result:h}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:d,id:c}},"*");break}}})))},_=S.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:r.builderContext}},provide(){const n=this;return{[r.builderContext.key]:n.builderContextSignal}},mounted(){(()=>{var t,i;if(r.isBrowser()){if(r.isEditing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&r.getDefaultCanTrack(this.canTrack)){const s=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,a=(i=this.builderContextSignal.content)==null?void 0:i.id,l=this.apiKey;r._track({type:"impression",canTrack:!0,contentId:a,apiKey:l,variationId:s!==a?s:void 0})}r.isPreviewing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||r.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){r.isBrowser()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(n){var t,i,o,s,a;const e={...this.builderContextSignal.content,...n,data:{...(t=this.builderContextSignal.content)==null?void 0:t.data,...n==null?void 0:n.data},meta:{...(i=this.builderContextSignal.content)==null?void 0:i.meta,...n==null?void 0:n.meta,breakpoints:((o=n==null?void 0:n.meta)==null?void 0:o.breakpoints)||((a=(s=this.builderContextSignal.content)==null?void 0:s.meta)==null?void 0:a.breakpoints)}};this.builderContextSignal.content=e},processMessage(n){var t;const{data:e}=n;if(e)switch(e.type){case"builder.configureSdk":{const i=e.data,{breakpoints:o,contentId:s}=i;if(!s||s!==((t=this.builderContextSignal.content)==null?void 0:t.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const i=e.data,o=i.key||i.alias||i.entry||i.modelName,s=i.data;o===this.model&&(this.mergeNewContent(s),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,t;const n=(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode;n&&m.evaluate({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(n){var e,t;if(this.builderContextSignal.content){const i=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,o=(t=this.builderContextSignal.content)==null?void 0:t.id;r._track({type:"click",canTrack:r.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...R(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>m.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){r.fetch(n).then(t=>t.json()).then(t=>{var o,s;const i={...this.builderContextSignal.rootState,[e]:t};(s=(o=this.builderContextSignal).rootSetState)==null||s.call(o,i),this.httpReqsData[e]=!0}).catch(t=>{console.error("error fetching dynamic data",n,t)})},runHttpRequests(){var e,t;const n=((t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests)??{};Object.entries(n).forEach(([i,o])=>{if(o&&(!this.httpReqsData[i]||r.isEditing())){const s=this.evalExpression(o);this.handleRequest({url:s,key:i})}})},emitStateUpdate(){r.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:r.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(n){this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),w(),y({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(e=>{var i;const t=r.createRegisterComponentMessage(e);(i=window.parent)==null||i.postMessage(t,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(n){const e=new URL(location.href).searchParams,t=e.get("builder.preview"),i=e.get(`builder.preview.${t}`),o=e.get("apiKey")||e.get("builder.space");t===this.model&&o===this.apiKey&&(!this.content||i===this.content.id)&&r.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(s=>{s&&this.mergeNewContent(s)})},_classStringToObject(n){const e={};if(typeof n!="string")return e;const t=n.trim().split(/\s+/);for(const i of t)e[i]=!0;return e}}});var E=function(){var i,o,s;var e=this,t=e._self._c;return e._self._setupProxy,e.builderContextSignal.content?t("div",e._b({key:e.forceReRenderCount,ref:"elementRef",class:e._classStringToObject(`variant-${((i=e.content)==null?void 0:i.testVariationId)||((o=e.content)==null?void 0:o.id)}`),attrs:{"builder-content-id":(s=e.builderContextSignal.content)==null?void 0:s.id,"builder-model":e.model},on:{click:function(a){return e.onClick(a)},initeditingbldr:function(a){return e.elementRef_onIniteditingbldr(a)},initpreviewingbldr:function(a){return e.elementRef_onInitpreviewingbldr(a)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],M=r.normalizeComponent(_,E,I,!1,null,null,null,null);const U=M.exports;exports.default=U;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k } from "vue";
|
|
2
|
-
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-
|
|
3
|
-
import { e as S } from "./evaluate-
|
|
2
|
+
import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-efdcc0ee.js";
|
|
3
|
+
import { e as S } from "./evaluate-04a2bd86.js";
|
|
4
4
|
function C(n) {
|
|
5
5
|
return Math.round(n * 1e3) / 1e3;
|
|
6
6
|
}
|
|
@@ -43,7 +43,7 @@ const P = (n, e, t = !0) => {
|
|
|
43
43
|
builderElementIndex: t && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(t) : void 0
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
}, O = "0.7.
|
|
46
|
+
}, O = "0.7.6", N = () => {
|
|
47
47
|
w("insertMenu", {
|
|
48
48
|
name: "_default",
|
|
49
49
|
default: !0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-3caa5325.cjs"),l=({builder:r,context:e,event:n,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:e,event:n}),a=()=>({isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()}),d=(r,{isExpression:e=!0})=>e&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,w=({code:r,builder:e,context:n,event:i,localState:s,rootSetState:u,rootState:g})=>{const c=l({builder:e,context:n,event:i,state:f(g,s,u)});return new Function(...c.map(([o])=>o),r)(...c.map(([,o])=>o))};function f(r,e,n){if(r===e)throw new Error("rootState === localState");return new Proxy(r,{get:(i,s)=>e&&s in e?e[s]:r[s],set:(i,s,u)=>{if(e&&s in e)throw new Error("Writing to local state is not allowed as it is read-only.");return r[s]=u,n==null||n(r),!0}})}const v=r=>(t.isBrowser(),w(r));function B({code:r,context:e,localState:n,rootState:i,rootSetState:s,event:u,isExpression:g=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const c={code:d(r,{isExpression:g}),builder:a(),context:e,event:u,rootSetState:s,rootState:i,localState:n};try{return v(c)}catch(o){t.logger.error("Failed code evaluation: "+o.message,{code:r});return}}exports.evaluate=B;
|
package/vue2/lib/{node/get-block-actions-f7890b23.js → browser/get-block-actions-6bf6efd8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as n } from "./index-
|
|
2
|
-
import { e as s } from "./evaluate-
|
|
1
|
+
import { T as n } from "./index-efdcc0ee.js";
|
|
2
|
+
import { e as s } from "./evaluate-04a2bd86.js";
|
|
3
3
|
const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
|
|
4
4
|
code: e,
|
|
5
5
|
context: t.context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-3caa5325.cjs"),s=require("./evaluate-07174f5f.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./index-
|
|
1
|
+
"use strict";const c=require("./index-3caa5325.cjs"),n=require("./css-bd209fae.cjs");function i(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=i(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return n.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
|
package/vue2/lib/browser/{get-processed-block-44868ee6.cjs → get-processed-block-e0783c0a.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./evaluate-
|
|
1
|
+
"use strict";const d=require("./evaluate-07174f5f.cjs"),g=require("./index-3caa5325.cjs"),f=(e,i,o)=>{if(Object(e)!==e)return e;const t=Array.isArray(i)?i:i.toString().match(/[^.[\]]+/g);return t.slice(0,-1).reduce((r,n,s)=>Object(r[n])===r[n]?r[n]:r[n]=Math.abs(Number(t[s+1]))>>0===+t[s+1]?[]:{},e)[t[t.length-1]]=o,e};const l=({block:e,context:i,localState:o,rootState:t,rootSetState:r})=>{if(!e.bindings)return e;const n=g.fastClone(e),s={...n,properties:{...n.properties},actions:{...n.actions}};for(const c in e.bindings){const u=e.bindings[c],a=d.evaluate({code:u,localState:o,rootState:t,rootSetState:r,context:i});f(s,c,a)}return s};function p({block:e,context:i,shouldEvaluateBindings:o,localState:t,rootState:r,rootSetState:n}){const s=e;return o?l({block:s,localState:t,rootState:r,rootSetState:n,context:i}):s}exports.getProcessedBlock=p;
|