@builder.io/sdk-vue 0.6.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/package.json +2 -1
  2. package/vue2/lib/{node/block-86374ead.cjs → browser/block-134a618c.cjs} +2 -2
  3. package/vue2/lib/browser/{block-517be5fb.js → block-169c0cf4.js} +7 -7
  4. package/vue2/lib/{node/block-styles-29c86145.js → browser/block-styles-d8839dd9.js} +5 -5
  5. package/vue2/lib/{edge/block-styles-809fea02.cjs → browser/block-styles-dd554acd.cjs} +1 -1
  6. package/vue2/lib/browser/{block-wrapper-9c4ec9d2.cjs → block-wrapper-54cd4f6c.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-68ce7a31.js → block-wrapper-ad23d63e.js} +5 -5
  8. package/vue2/lib/{edge/blocks-wrapper-26c2556a.cjs → browser/blocks-wrapper-051a6973.cjs} +1 -1
  9. package/vue2/lib/{edge/blocks-wrapper-58a3dc1c.js → browser/blocks-wrapper-ba3f831e.js} +1 -1
  10. package/vue2/lib/{edge/component-ref-eeb18cc8.cjs → browser/component-ref-73bbe275.cjs} +1 -1
  11. package/vue2/lib/{edge/component-ref-bb6f5d05.js → browser/component-ref-7c67cc85.js} +6 -6
  12. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -1
  13. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  14. package/vue2/lib/{edge/content-b0e3265b.cjs → browser/content-91d3070e.cjs} +1 -1
  15. package/vue2/lib/browser/{content-ab810c5a.js → content-c3064d9d.js} +9 -9
  16. package/vue2/lib/browser/{css-6ab3de61.cjs → css-2c9ad067.cjs} +1 -1
  17. package/vue2/lib/browser/{css-9ff60711.js → css-ccd5d9e3.js} +1 -1
  18. package/vue2/lib/{node/enable-editor-e4a75de2.js → browser/enable-editor-d9f53d7d.js} +29 -30
  19. package/vue2/lib/browser/enable-editor-f87e3e48.cjs +1 -0
  20. package/vue2/lib/browser/{evaluate-ddca0796.cjs → evaluate-043734e5.cjs} +1 -1
  21. package/vue2/lib/browser/{evaluate-73ab20d5.js → evaluate-b309ef11.js} +1 -1
  22. package/vue2/lib/browser/{get-block-actions-d7bad2e7.cjs → get-block-actions-7a5e8d90.cjs} +1 -1
  23. package/vue2/lib/{node/get-block-actions-f0e194ec.js → browser/get-block-actions-e6c36554.js} +2 -2
  24. package/vue2/lib/{node/get-block-properties-690c354d.cjs → browser/get-block-properties-088a8d57.cjs} +1 -1
  25. package/vue2/lib/browser/{get-block-properties-3266f9fa.js → get-block-properties-fded8311.js} +2 -2
  26. package/vue2/lib/browser/{get-processed-block-2c962134.js → get-processed-block-28afdbdd.js} +2 -2
  27. package/vue2/lib/browser/{get-processed-block-f4410a90.cjs → get-processed-block-cb418829.cjs} +1 -1
  28. package/vue2/lib/{node/index-6d420ce4.cjs → browser/index-7b952a40.cjs} +4 -4
  29. package/vue2/lib/{node/index-35e9f8af.js → browser/index-8b428b10.js} +47 -43
  30. package/vue2/lib/browser/index.cjs +1 -1
  31. package/vue2/lib/browser/index.js +5 -5
  32. package/vue2/lib/browser/{inlined-script-fd0e31a3.cjs → inlined-script-36c7686b.cjs} +1 -1
  33. package/vue2/lib/{edge/inlined-script-528cf671.js → browser/inlined-script-de7385eb.js} +1 -1
  34. package/vue2/lib/{node/inlined-styles-c977be7a.js → browser/inlined-styles-48c2284e.js} +1 -1
  35. package/vue2/lib/{node/inlined-styles-21a44abc.cjs → browser/inlined-styles-f49a7f1a.cjs} +1 -1
  36. package/vue2/lib/{node/interactive-element-1b2efcea.cjs → browser/interactive-element-2463f839.cjs} +1 -1
  37. package/vue2/lib/{node/interactive-element-a457f13d.js → browser/interactive-element-b479db6b.js} +5 -5
  38. package/vue2/lib/{node/repeated-block-2b47cc10.js → browser/repeated-block-284f31d8.js} +2 -2
  39. package/vue2/lib/browser/{repeated-block-80cb7500.cjs → repeated-block-d5a07fb8.cjs} +1 -1
  40. package/vue2/lib/browser/{styles-e7ee6699.js → styles-4803ecb4.js} +2 -2
  41. package/vue2/lib/browser/{styles-48f7b053.cjs → styles-f19bff73.cjs} +2 -2
  42. package/vue2/lib/{node/block-517be5fb.js → edge/block-04a014ef.js} +7 -7
  43. package/vue2/lib/{browser/block-86374ead.cjs → edge/block-7f6b0f80.cjs} +2 -2
  44. package/vue2/lib/{node/block-styles-abd88aab.cjs → edge/block-styles-57f025e0.cjs} +1 -1
  45. package/vue2/lib/edge/{block-styles-a4646383.js → block-styles-9d313184.js} +5 -5
  46. package/vue2/lib/edge/{block-wrapper-96d6e19a.cjs → block-wrapper-252f3467.cjs} +1 -1
  47. package/vue2/lib/{node/block-wrapper-68ce7a31.js → edge/block-wrapper-e16ccd29.js} +5 -5
  48. package/vue2/lib/{browser/blocks-wrapper-22427504.js → edge/blocks-wrapper-671e376d.js} +1 -1
  49. package/vue2/lib/{browser/blocks-wrapper-572ac8fc.cjs → edge/blocks-wrapper-be28f72a.cjs} +1 -1
  50. package/vue2/lib/{node/component-ref-314af75f.cjs → edge/component-ref-276a92fb.cjs} +1 -1
  51. package/vue2/lib/{node/component-ref-ad69c5c3.js → edge/component-ref-65be9ea0.js} +6 -6
  52. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -1
  53. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  54. package/vue2/lib/{browser/content-cd8c708e.cjs → edge/content-6d81d16f.cjs} +1 -1
  55. package/vue2/lib/edge/{content-1fe9f483.js → content-962ba49d.js} +9 -9
  56. package/vue2/lib/{node/css-6ab3de61.cjs → edge/css-88f2410f.cjs} +1 -1
  57. package/vue2/lib/{node/css-9ff60711.js → edge/css-9d2e1bcb.js} +1 -1
  58. package/vue2/lib/edge/enable-editor-617a4b09.cjs +1 -0
  59. package/vue2/lib/{browser/enable-editor-e4a75de2.js → edge/enable-editor-b6040943.js} +29 -30
  60. package/vue2/lib/edge/{evaluate-67915572.js → evaluate-becf2384.js} +1 -1
  61. package/vue2/lib/edge/{evaluate-94193bd8.cjs → evaluate-e31fc7a4.cjs} +1 -1
  62. package/vue2/lib/{browser/get-block-actions-f0e194ec.js → edge/get-block-actions-046a80d0.js} +2 -2
  63. package/vue2/lib/edge/{get-block-actions-eb913df3.cjs → get-block-actions-0ed7b9a3.cjs} +1 -1
  64. package/vue2/lib/{browser/get-block-properties-690c354d.cjs → edge/get-block-properties-a9ab7e30.cjs} +1 -1
  65. package/vue2/lib/{node/get-block-properties-3266f9fa.js → edge/get-block-properties-c460b7ad.js} +2 -2
  66. package/vue2/lib/edge/{get-processed-block-54d47a44.js → get-processed-block-23aa8a9f.js} +2 -2
  67. package/vue2/lib/edge/{get-processed-block-d64d51b8.cjs → get-processed-block-fe5c136a.cjs} +1 -1
  68. package/vue2/lib/{browser/index-35e9f8af.js → edge/index-8d71df29.js} +47 -43
  69. package/vue2/lib/edge/{index-0e6898f4.cjs → index-cb2684cd.cjs} +4 -4
  70. package/vue2/lib/edge/index.cjs +1 -1
  71. package/vue2/lib/edge/index.js +5 -5
  72. package/vue2/lib/{node/inlined-script-9e201117.js → edge/inlined-script-45e42092.js} +1 -1
  73. package/vue2/lib/{node/inlined-script-fd0e31a3.cjs → edge/inlined-script-f370acdf.cjs} +1 -1
  74. package/vue2/lib/{browser/inlined-styles-21a44abc.cjs → edge/inlined-styles-375c218f.cjs} +1 -1
  75. package/vue2/lib/edge/{inlined-styles-3ae3536e.js → inlined-styles-411ade32.js} +1 -1
  76. package/vue2/lib/{browser/interactive-element-a457f13d.js → edge/interactive-element-0e97e5ad.js} +5 -5
  77. package/vue2/lib/{browser/interactive-element-1b2efcea.cjs → edge/interactive-element-92851fbe.cjs} +1 -1
  78. package/vue2/lib/edge/{repeated-block-5125d911.cjs → repeated-block-8eefee0f.cjs} +1 -1
  79. package/vue2/lib/{browser/repeated-block-2b47cc10.js → edge/repeated-block-c41268e9.js} +2 -2
  80. package/vue2/lib/{node/styles-e7ee6699.js → edge/styles-633d9689.js} +2 -2
  81. package/vue2/lib/{node/styles-48f7b053.cjs → edge/styles-f2039a70.cjs} +2 -2
  82. package/vue2/lib/{edge/block-d431c5a1.cjs → node/block-134a618c.cjs} +2 -2
  83. package/vue2/lib/{edge/block-79f216bd.js → node/block-169c0cf4.js} +7 -7
  84. package/vue2/lib/{browser/block-styles-29c86145.js → node/block-styles-d8839dd9.js} +5 -5
  85. package/vue2/lib/{browser/block-styles-abd88aab.cjs → node/block-styles-dd554acd.cjs} +1 -1
  86. package/vue2/lib/node/{block-wrapper-9c4ec9d2.cjs → block-wrapper-54cd4f6c.cjs} +1 -1
  87. package/vue2/lib/{edge/block-wrapper-02e29a39.js → node/block-wrapper-ad23d63e.js} +5 -5
  88. package/vue2/lib/node/{blocks-wrapper-572ac8fc.cjs → blocks-wrapper-051a6973.cjs} +1 -1
  89. package/vue2/lib/node/{blocks-wrapper-22427504.js → blocks-wrapper-ba3f831e.js} +1 -1
  90. package/vue2/lib/{browser/component-ref-314af75f.cjs → node/component-ref-73bbe275.cjs} +1 -1
  91. package/vue2/lib/{browser/component-ref-ad69c5c3.js → node/component-ref-7c67cc85.js} +6 -6
  92. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +0 -1
  93. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  94. package/vue2/lib/node/{content-cd8c708e.cjs → content-91d3070e.cjs} +1 -1
  95. package/vue2/lib/node/{content-ab810c5a.js → content-c3064d9d.js} +9 -9
  96. package/vue2/lib/{edge/css-c85f369a.cjs → node/css-2c9ad067.cjs} +1 -1
  97. package/vue2/lib/{edge/css-766c9e43.js → node/css-ccd5d9e3.js} +1 -1
  98. package/vue2/lib/{edge/enable-editor-1c97f1ce.js → node/enable-editor-d9f53d7d.js} +29 -30
  99. package/vue2/lib/node/enable-editor-f87e3e48.cjs +1 -0
  100. package/vue2/lib/node/{evaluate-ddca0796.cjs → evaluate-043734e5.cjs} +1 -1
  101. package/vue2/lib/node/{evaluate-73ab20d5.js → evaluate-b309ef11.js} +1 -1
  102. package/vue2/lib/node/{get-block-actions-d7bad2e7.cjs → get-block-actions-7a5e8d90.cjs} +1 -1
  103. package/vue2/lib/{edge/get-block-actions-6ffacde6.js → node/get-block-actions-e6c36554.js} +2 -2
  104. package/vue2/lib/{edge/get-block-properties-9f36f432.cjs → node/get-block-properties-088a8d57.cjs} +1 -1
  105. package/vue2/lib/{edge/get-block-properties-65d31491.js → node/get-block-properties-fded8311.js} +2 -2
  106. package/vue2/lib/node/{get-processed-block-2c962134.js → get-processed-block-28afdbdd.js} +2 -2
  107. package/vue2/lib/node/{get-processed-block-f4410a90.cjs → get-processed-block-cb418829.cjs} +1 -1
  108. package/vue2/lib/{browser/index-6d420ce4.cjs → node/index-7b952a40.cjs} +4 -4
  109. package/vue2/lib/{edge/index-e4b98f3f.js → node/index-8b428b10.js} +47 -43
  110. package/vue2/lib/node/index.cjs +1 -1
  111. package/vue2/lib/node/index.js +5 -5
  112. package/vue2/lib/{edge/inlined-script-f08590fd.cjs → node/inlined-script-36c7686b.cjs} +1 -1
  113. package/vue2/lib/{browser/inlined-script-9e201117.js → node/inlined-script-de7385eb.js} +1 -1
  114. package/vue2/lib/{browser/inlined-styles-c977be7a.js → node/inlined-styles-48c2284e.js} +1 -1
  115. package/vue2/lib/{edge/inlined-styles-8a4eca1c.cjs → node/inlined-styles-f49a7f1a.cjs} +1 -1
  116. package/vue2/lib/{edge/interactive-element-a4e35976.cjs → node/interactive-element-2463f839.cjs} +1 -1
  117. package/vue2/lib/{edge/interactive-element-448f1b25.js → node/interactive-element-b479db6b.js} +5 -5
  118. package/vue2/lib/{edge/repeated-block-5d6ad9e8.js → node/repeated-block-284f31d8.js} +2 -2
  119. package/vue2/lib/node/{repeated-block-80cb7500.cjs → repeated-block-d5a07fb8.cjs} +1 -1
  120. package/vue2/lib/{edge/styles-4607da35.js → node/styles-4803ecb4.js} +2 -2
  121. package/vue2/lib/{edge/styles-7b4eb536.cjs → node/styles-f19bff73.cjs} +2 -2
  122. package/vue2/package.json +1 -0
  123. package/vue3/lib/{edge/block-wrapper.f7fd1d3e.js → browser/block-wrapper.b3297452.js} +8 -8
  124. package/vue3/lib/browser/{block-wrapper.3424c8e5.cjs → block-wrapper.c00ddfcb.cjs} +1 -1
  125. package/vue3/lib/browser/component-ref.5446db23.cjs +1 -0
  126. package/vue3/lib/{edge/component-ref.c65a87a1.js → browser/component-ref.88102d68.js} +17 -17
  127. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -1
  128. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  129. package/vue3/lib/{edge/get-block-actions.d05efca1.js → browser/get-block-actions.1865148e.js} +1 -1
  130. package/vue3/lib/{edge/get-block-actions.1bd9f726.cjs → browser/get-block-actions.703f8554.cjs} +1 -1
  131. package/vue3/lib/browser/index.403011b1.cjs +69 -0
  132. package/vue3/lib/{node/index.12730bde.js → browser/index.c51504ff.js} +496 -494
  133. package/vue3/lib/browser/index.cjs +1 -1
  134. package/vue3/lib/browser/index.js +1 -1
  135. package/vue3/lib/browser/{repeated-block.764b4af3.cjs → repeated-block.2245fce7.cjs} +1 -1
  136. package/vue3/lib/{edge/repeated-block.e31ecdbc.js → browser/repeated-block.f6fdedb6.js} +6 -6
  137. package/vue3/lib/edge/{block-wrapper.5ba52bd5.cjs → block-wrapper.6e434dc7.cjs} +1 -1
  138. package/vue3/lib/{node/block-wrapper.ac839834.js → edge/block-wrapper.dad1bb39.js} +8 -8
  139. package/vue3/lib/edge/component-ref.94b009f1.cjs +1 -0
  140. package/vue3/lib/{node/component-ref.8de03d1c.js → edge/component-ref.f5eef526.js} +17 -17
  141. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -1
  142. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  143. package/vue3/lib/{browser/get-block-actions.777560e5.cjs → edge/get-block-actions.c5c7e487.cjs} +1 -1
  144. package/vue3/lib/{browser/get-block-actions.e59fcd98.js → edge/get-block-actions.f1dcfc47.js} +1 -1
  145. package/vue3/lib/edge/{index.d22d7b12.cjs → index.61c09215.cjs} +16 -16
  146. package/vue3/lib/edge/index.cjs +1 -1
  147. package/vue3/lib/edge/{index.a89f2469.js → index.f80ab661.js} +369 -367
  148. package/vue3/lib/edge/index.js +1 -1
  149. package/vue3/lib/edge/{repeated-block.865463b0.cjs → repeated-block.8292d33a.cjs} +1 -1
  150. package/vue3/lib/{browser/repeated-block.0bc816fe.js → edge/repeated-block.e2eb73cd.js} +6 -6
  151. package/vue3/lib/{browser/block-wrapper.ac839834.js → node/block-wrapper.b3297452.js} +8 -8
  152. package/vue3/lib/node/{block-wrapper.3424c8e5.cjs → block-wrapper.c00ddfcb.cjs} +1 -1
  153. package/vue3/lib/node/component-ref.5446db23.cjs +1 -0
  154. package/vue3/lib/{browser/component-ref.8de03d1c.js → node/component-ref.88102d68.js} +17 -17
  155. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -1
  156. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  157. package/vue3/lib/node/{get-block-actions.e59fcd98.js → get-block-actions.1865148e.js} +1 -1
  158. package/vue3/lib/node/{get-block-actions.777560e5.cjs → get-block-actions.703f8554.cjs} +1 -1
  159. package/vue3/lib/node/index.403011b1.cjs +69 -0
  160. package/vue3/lib/{browser/index.12730bde.js → node/index.c51504ff.js} +496 -494
  161. package/vue3/lib/node/index.cjs +1 -1
  162. package/vue3/lib/node/index.js +1 -1
  163. package/vue3/lib/node/{repeated-block.764b4af3.cjs → repeated-block.2245fce7.cjs} +1 -1
  164. package/vue3/lib/node/{repeated-block.0bc816fe.js → repeated-block.f6fdedb6.js} +6 -6
  165. package/vue3/package.json +1 -0
  166. package/vue2/lib/browser/enable-editor-3ae81c32.cjs +0 -1
  167. package/vue2/lib/edge/enable-editor-c96b8ba3.cjs +0 -1
  168. package/vue2/lib/node/enable-editor-3ae81c32.cjs +0 -1
  169. package/vue3/lib/browser/component-ref.96453075.cjs +0 -1
  170. package/vue3/lib/browser/index.4cfec3cb.cjs +0 -69
  171. package/vue3/lib/edge/component-ref.76d870e8.cjs +0 -1
  172. package/vue3/lib/node/component-ref.96453075.cjs +0 -1
  173. package/vue3/lib/node/index.4cfec3cb.cjs +0 -69
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "vue2",
6
6
  "vue3"
7
7
  ],
8
- "version": "0.6.3",
8
+ "version": "0.7.0",
9
9
  "main": "./vue3/lib/node/index.cjs",
10
10
  "module": "./vue3/lib/node/index.js",
11
11
  "type": "module",
@@ -164,6 +164,7 @@
164
164
  "./vue3/css": "./vue3/lib/browser/style.css"
165
165
  },
166
166
  "scripts": {
167
+ "release": "npm publish",
167
168
  "add-debug": "bash ./scripts/add-debug.sh",
168
169
  "remove-debug": "bash ./scripts/remove-debug.sh",
169
170
  "build": "nx run-many -t build -p @builder.io/sdk-vue-2 @builder.io/sdk-vue-3"
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block-f4410a90.cjs"),m=require("./evaluate-ddca0796.cjs"),d=require("./index-6d420ce4.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()),b=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=a.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(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),a=require("./get-processed-block-cb418829.cjs"),m=require("./evaluate-043734e5.cjs"),d=require("./index-7b952a40.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()),b=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=a.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
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?`)},f=({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-abd88aab.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}),S=()=>Promise.resolve().then(()=>require("./repeated-block-80cb7500.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}),g=()=>Promise.resolve().then(()=>require("./component-ref-314af75f.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}),y=()=>Promise.resolve().then(()=>require("./block-wrapper-9c4ec9d2.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=p.defineComponent({name:"block",components:{"component-ref":g,"block-wrapper":y,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return b({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return f({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:a.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(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},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",e._b({},"component-ref",e.componentRefProps,!1)):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",e._b({},"component-ref",e.componentRefProps,!1)),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()},v=[],_=d.normalizeComponent(B,x,v,!1,null,null,null,null);const w=_.exports;exports.default=w;
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},f=({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-dd554acd.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}),S=()=>Promise.resolve().then(()=>require("./repeated-block-d5a07fb8.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}),g=()=>Promise.resolve().then(()=>require("./component-ref-73bbe275.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}),y=()=>Promise.resolve().then(()=>require("./block-wrapper-54cd4f6c.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=p.defineComponent({name:"block",components:{"component-ref":g,"block-wrapper":y,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return b({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return f({block:this.block,context:this.context})},processedBlock(){return this.repeatItem?this.block:a.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(){return"hide"in this.processedBlock?!this.processedBlock.hide:"show"in this.processedBlock?this.processedBlock.show:!0},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",e._b({},"component-ref",e.componentRefProps,!1)):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",e._b({},"component-ref",e.componentRefProps,!1)),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()},v=[],_=d.normalizeComponent(B,x,v,!1,null,null,null,null);const w=_.exports;exports.default=w;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p } from "vue";
2
- import { g as a } from "./get-processed-block-2c962134.js";
3
- import { e as m } from "./evaluate-73ab20d5.js";
4
- import { n as d } from "./index-35e9f8af.js";
2
+ import { g as a } from "./get-processed-block-28afdbdd.js";
3
+ import { e as m } from "./evaluate-b309ef11.js";
4
+ import { n as d } from "./index-8b428b10.js";
5
5
  function h(e) {
6
6
  var t;
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-29c86145.js").then((e) => e.default).catch((e) => {
71
+ }, C = () => import("./block-styles-d8839dd9.js").then((e) => e.default).catch((e) => {
72
72
  throw console.error(
73
73
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
74
74
  e
75
75
  ), e;
76
- }), S = () => import("./repeated-block-2b47cc10.js").then((e) => e.default).catch((e) => {
76
+ }), S = () => import("./repeated-block-284f31d8.js").then((e) => e.default).catch((e) => {
77
77
  throw console.error(
78
78
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
79
79
  e
80
80
  ), e;
81
- }), g = () => import("./component-ref-ad69c5c3.js").then((e) => e.default).catch((e) => {
81
+ }), g = () => import("./component-ref-7c67cc85.js").then((e) => e.default).catch((e) => {
82
82
  throw console.error(
83
83
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
84
84
  e
85
85
  ), e;
86
- }), y = () => import("./block-wrapper-68ce7a31.js").then((e) => e.default).catch((e) => {
86
+ }), y = () => import("./block-wrapper-ad23d63e.js").then((e) => e.default).catch((e) => {
87
87
  throw console.error(
88
88
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
89
89
  e
@@ -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-35e9f8af.js";
3
- import { g as u } from "./get-processed-block-2c962134.js";
4
- import { c as n } from "./css-9ff60711.js";
5
- import "./evaluate-73ab20d5.js";
6
- const k = () => import("./inlined-styles-c977be7a.js").then((e) => e.default).catch((e) => {
2
+ import { T as f, c as m, g as x, a as d, n as _ } from "./index-8b428b10.js";
3
+ import { g as u } from "./get-processed-block-28afdbdd.js";
4
+ import { c as n } from "./css-ccd5d9e3.js";
5
+ import "./evaluate-b309ef11.js";
6
+ const k = () => import("./inlined-styles-48c2284e.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-0e6898f4.cjs"),d=require("./get-processed-block-d64d51b8.cjs"),c=require("./css-c85f369a.cjs");require("./evaluate-94193bd8.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-8a4eca1c.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-7b952a40.cjs"),d=require("./get-processed-block-cb418829.cjs"),c=require("./css-2c9ad067.cjs");require("./evaluate-043734e5.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-f49a7f1a.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-d7bad2e7.cjs"),c=require("./get-block-properties-690c354d.cjs"),n=require("./index-6d420ce4.cjs");require("./evaluate-ddca0796.cjs");require("./css-6ab3de61.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-7a5e8d90.cjs"),c=require("./get-block-properties-088a8d57.cjs"),n=require("./index-7b952a40.cjs");require("./evaluate-043734e5.cjs");require("./css-2c9ad067.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,9 +1,9 @@
1
1
  import { defineComponent as e } from "vue";
2
- import { g as r } from "./get-block-actions-f0e194ec.js";
3
- import { g as c } from "./get-block-properties-3266f9fa.js";
4
- import { n } from "./index-35e9f8af.js";
5
- import "./evaluate-73ab20d5.js";
6
- import "./css-9ff60711.js";
2
+ import { g as r } from "./get-block-actions-e6c36554.js";
3
+ import { g as c } from "./get-block-properties-fded8311.js";
4
+ import { n } from "./index-8b428b10.js";
5
+ import "./evaluate-b309ef11.js";
6
+ import "./css-ccd5d9e3.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("./index-0e6898f4.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-7b952a40.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,5 +1,5 @@
1
1
  import { defineComponent as o } from "vue";
2
- import { i as r, n as a } from "./index-e4b98f3f.js";
2
+ import { i as r, n as a } from "./index-8b428b10.js";
3
3
  const l = o({
4
4
  name: "builder-blocks-wrapper",
5
5
  props: ["blocks", "parent", "path", "styleProp"],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-9f36f432.cjs"),a=require("./index-0e6898f4.cjs");require("./css-c85f369a.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-styles-809fea02.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-d431c5a1.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-a4e35976.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:k,"block-styles":d,"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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-088a8d57.cjs"),a=require("./index-7b952a40.cjs");require("./css-2c9ad067.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-styles-dd554acd.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-134a618c.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-2463f839.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:k,"block-styles":d,"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,7 +1,7 @@
1
1
  import { defineComponent as p } from "vue";
2
- import { g as s } from "./get-block-properties-65d31491.js";
3
- import { n as a } from "./index-e4b98f3f.js";
4
- import "./css-766c9e43.js";
2
+ import { g as s } from "./get-block-properties-fded8311.js";
3
+ import { n as a } from "./index-8b428b10.js";
4
+ import "./css-ccd5d9e3.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-styles-a4646383.js").then((t) => t.default).catch((t) => {
30
+ }, u = () => import("./block-styles-d8839dd9.js").then((t) => t.default).catch((t) => {
31
31
  throw console.error(
32
32
  "Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
33
33
  t
34
34
  ), t;
35
- }), f = () => import("./block-79f216bd.js").then((t) => t.default).catch((t) => {
35
+ }), f = () => import("./block-169c0cf4.js").then((t) => t.default).catch((t) => {
36
36
  throw console.error(
37
37
  "Error while attempting to dynamically import component Block at ../../block.vue",
38
38
  t
39
39
  ), t;
40
- }), c = () => import("./interactive-element-448f1b25.js").then((t) => t.default).catch((t) => {
40
+ }), c = () => import("./interactive-element-b479db6b.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,6 +1,5 @@
1
1
  import type { BuilderContent } from "../../../types/builder-content.js";
2
2
  declare const _default: import("vue").DefineComponent<string[], {}, {
3
- canTrackToUse: any;
4
3
  forceReRenderCount: number;
5
4
  lastUpdated: number;
6
5
  shouldSendResetCookie: boolean;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.6.3";
1
+ export declare const SDK_VERSION = "0.6.4";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("./index-0e6898f4.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(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(r=>r.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.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:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={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(o,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=o,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(o){return Math.round(o*1e3)/1e3}const r=e.get("image"),c=e.get("aspectRatio");if(fetch(r).then(o=>o.blob()).then(o=>{o.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!c||c===.7041))return n(r).then(o=>{const s=e.get("aspectRatio");e.get("image")===r&&(!s||s===.7041)&&o.width&&o.height&&(e.set("aspectRatio",a(o.height/o.width)),e.set("height",o.height),e.set("width",o.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}]},v={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>"}}}]},S={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"}]},T={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"}},_={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}]},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(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{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 a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});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=i.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:i.isEditing,filterAttrs:i.filterAttrs}}});var P=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)))},W=[],$=i.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={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},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=i.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={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}]},f=()=>[{component:i.Button,...g},{component:i.Columns,...b},{component:D,...N},{component:V,...C},{component:i.Fragment,...y},{component:i.Image,...x},{component:U,...j},{component:i.Section,...v},{component:i.Symbol,...S},{component:i.Text,...T},{component:i.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,o,s;const a={};(o=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||o.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const r={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...r}},B=({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-0e6898f4.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("./styles-7b4eb536.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-c96b8ba3.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("./inlined-script-f08590fd.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:i.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:{component:a,...i.serializeComponentInfo(r)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:i.serializeComponentInfo(r)}),{}),inheritedStyles:{}},TARGET:i.TARGET}},provide(){const e=this;return{[i.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,r,c,o,s,l,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,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(r=t.builderContextSignal.content)==null?void 0:r.data)==null?void 0:c.cssCode,customFonts:(s=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=i.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"),i=require("./index-7b952a40.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(a=>{a.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(r=>r.get("width"))&&(n.find(c=>!c.get("width"))||n.reduce((s,l)=>s+l.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:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},x={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(o,s=6e4){return new Promise((l,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,l(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=o,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(o){return Math.round(o*1e3)/1e3}const r=e.get("image"),c=e.get("aspectRatio");if(fetch(r).then(o=>o.blob()).then(o=>{o.type.includes("svg")&&e.set("noWebp",!0)}),r&&(!c||c===.7041))return n(r).then(o=>{const s=e.get("aspectRatio");e.get("image")===r&&(!s||s===.7041)&&o.width&&o.height&&(e.set("aspectRatio",a(o.height/o.width)),e.set("height",o.height),e.set("width",o.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}]},v={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>"}}}]},S={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"}]},T={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"}},_={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}]},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(a=>a.json()).then(a=>{e.get("url")===t&&(a.html?e.set("content",a.html):e.set("content","Invalid url, please try another"))}).catch(a=>{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 a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`Embed`: Error running script:",a)}}}}});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=i.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:i.isEditing,filterAttrs:i.filterAttrs}}});var P=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)))},W=[],$=i.normalizeComponent(A,P,W,!1,null,null,null,null);const U=$.exports,j={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},z=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){this.findAndRunScripts()},methods:{findAndRunScripts(){if(this.$refs.elem&&this.$refs.elem.getElementsByTagName&&typeof window<"u"){const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src){if(this.scriptsInserted.includes(n.src))continue;this.scriptsInserted.push(n.src);const a=document.createElement("script");a.async=!0,a.src=n.src,document.head.appendChild(a)}else if(!n.type||["text/javascript","application/javascript","application/ecmascript"].includes(n.type)){if(this.scriptsRun.includes(n.innerText))continue;try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}}},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const a of n)t[a]=!0;return t}}});var H=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},q=[],L=i.normalizeComponent(z,H,q,!1,null,null,null,null);const D=L.exports,N={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}]},f=()=>[{component:i.Button,...g},{component:i.Columns,...b},{component:D,...N},{component:V,...C},{component:i.Fragment,...y},{component:i.Image,...x},{component:U,...j},{component:i.Section,...v},{component:i.Symbol,...S},{component:i.Text,...T},{component:i.Video,..._}],M=({content:e,data:t,locale:n})=>{var c,o,s;const a={};(o=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||o.forEach(l=>{var d;l.name&&l.defaultValue!==void 0&&((d=e==null?void 0:e.data)!=null&&d.state)&&e.data.state[l.name]===void 0&&(a[l.name]=l.defaultValue)});const r={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...r}},B=({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-7b952a40.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("./styles-f19bff73.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-f87e3e48.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("./inlined-script-36c7686b.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":J,"content-styles":O,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:i.getRenderContentScriptString({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:{component:a,...i.serializeComponentInfo(r)}}),{}),builderContextSignal:{content:B({content:this.content,data:this.data}),localState:void 0,rootState:M({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...i.components,...this.customComponents||[]].reduce((n,{component:a,...r})=>({...n,[r.name]:i.serializeComponentInfo(r)}),{}),inheritedStyles:{}},TARGET:i.TARGET}},provide(){const e=this;return{[i.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var a,r,c,o,s,l,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,classNameProp:t.classNameProp,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(a=t.builderContextSignal.content)==null?void 0:a.id,cssCode:(c=(r=t.builderContextSignal.content)==null?void 0:r.data)==null?void 0:c.cssCode,customFonts:(s=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(l=t.builderContextSignal.content)==null?void 0:l.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=i.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 S, F as _, 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 E } from "./index-35e9f8af.js";
2
+ import { n as u, i as y, b as x, B as v, C as S, F as _, 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 E } from "./index-8b428b10.js";
3
3
  const V = {
4
4
  name: "Core:Button",
5
5
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -579,20 +579,20 @@ const V = {
579
579
  }
580
580
  }
581
581
  });
582
- var q = function() {
582
+ var M = function() {
583
583
  var t = this, n = t._self._c;
584
584
  return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
585
- }, B = [], M = /* @__PURE__ */ u(
585
+ }, q = [], B = /* @__PURE__ */ u(
586
586
  N,
587
+ M,
587
588
  q,
588
- B,
589
589
  !1,
590
590
  null,
591
591
  null,
592
592
  null,
593
593
  null
594
594
  );
595
- const K = M.exports, O = p({
595
+ const K = B.exports, O = p({
596
596
  name: "builder-img-component",
597
597
  props: [
598
598
  "backgroundSize",
@@ -786,22 +786,22 @@ const ae = ne.exports, oe = {
786
786
  ...t
787
787
  },
788
788
  meta: e == null ? void 0 : e.meta
789
- } : void 0, se = () => import("./index-35e9f8af.js").then((e) => e.L).then((e) => e.default).catch((e) => {
789
+ } : void 0, se = () => import("./index-8b428b10.js").then((e) => e.M).then((e) => e.default).catch((e) => {
790
790
  throw console.error(
791
791
  "Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
792
792
  e
793
793
  ), e;
794
- }), le = () => import("./styles-e7ee6699.js").then((e) => e.default).catch((e) => {
794
+ }), le = () => import("./styles-4803ecb4.js").then((e) => e.default).catch((e) => {
795
795
  throw console.error(
796
796
  "Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
797
797
  e
798
798
  ), e;
799
- }), ce = () => import("./enable-editor-e4a75de2.js").then((e) => e.default).catch((e) => {
799
+ }), ce = () => import("./enable-editor-d9f53d7d.js").then((e) => e.default).catch((e) => {
800
800
  throw console.error(
801
801
  "Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
802
802
  e
803
803
  ), e;
804
- }), de = () => import("./inlined-script-9e201117.js").then((e) => e.default).catch((e) => {
804
+ }), de = () => import("./inlined-script-de7385eb.js").then((e) => e.default).catch((e) => {
805
805
  throw console.error(
806
806
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
807
807
  e
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("./index-6d420ce4.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(`
1
+ "use strict";const n=require("./index-7b952a40.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,4 +1,4 @@
1
- import { c as o } from "./index-35e9f8af.js";
1
+ import { c as o } from "./index-8b428b10.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,8 +1,8 @@
1
1
  import { defineComponent as k } from "vue";
2
- import { e as m } from "./evaluate-73ab20d5.js";
3
- import { r as R, m as h, T as y, c as w, l as f, o as _, i as u, p as E, _ as g, q as U, t as I, u as T, f as P, n as M } from "./index-35e9f8af.js";
4
- const H = "0.6.3", q = () => {
5
- R("insertMenu", {
2
+ import { e as m } from "./evaluate-b309ef11.js";
3
+ import { r as y, m as h, T as w, l as f, o as _, i as u, p as E, _ as g, q as b, t as I, u as U, v as P, f as M, n as T } from "./index-8b428b10.js";
4
+ const H = "0.6.4", q = () => {
5
+ y("insertMenu", {
6
6
  name: "_default",
7
7
  default: !0,
8
8
  items: [{
@@ -24,13 +24,13 @@ const H = "0.6.3", q = () => {
24
24
  }]
25
25
  });
26
26
  };
27
- let b = !1;
27
+ let S = !1;
28
28
  const K = (n = {}) => {
29
29
  var e, t;
30
- b || (b = !0, h() && ((e = window.parent) == null || e.postMessage({
30
+ S || (S = !0, h() && ((e = window.parent) == null || e.postMessage({
31
31
  type: "builder.sdkInfo",
32
32
  data: {
33
- target: y,
33
+ target: w,
34
34
  version: H,
35
35
  supportsPatchUpdates: !1,
36
36
  // Supports builder-model="..." attribute which is needed to
@@ -50,26 +50,26 @@ const K = (n = {}) => {
50
50
  if (i != null && i.type)
51
51
  switch (i.type) {
52
52
  case "builder.evaluate": {
53
- const a = i.data.text, x = i.data.arguments || [], d = i.data.id, v = new Function(a);
54
- let r, c = null;
53
+ const a = i.data.text, v = i.data.arguments || [], d = i.data.id, R = new Function(a);
54
+ let r, l = null;
55
55
  try {
56
- r = v.apply(null, x);
57
- } catch (l) {
58
- c = l;
56
+ r = R.apply(null, v);
57
+ } catch (c) {
58
+ l = c;
59
59
  }
60
- c ? (o = window.parent) == null || o.postMessage({
60
+ l ? (o = window.parent) == null || o.postMessage({
61
61
  type: "builder.evaluateError",
62
62
  data: {
63
63
  id: d,
64
- error: c.message
64
+ error: l.message
65
65
  }
66
- }, "*") : r && typeof r.then == "function" ? r.then((l) => {
66
+ }, "*") : r && typeof r.then == "function" ? r.then((c) => {
67
67
  var p;
68
68
  (p = window.parent) == null || p.postMessage({
69
69
  type: "builder.evaluateResult",
70
70
  data: {
71
71
  id: d,
72
- result: l
72
+ result: c
73
73
  }
74
74
  }, "*");
75
75
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
@@ -84,7 +84,7 @@ const K = (n = {}) => {
84
84
  }
85
85
  })));
86
86
  };
87
- function S(n) {
87
+ function C(n) {
88
88
  return Math.round(n * 1e3) / 1e3;
89
89
  }
90
90
  const O = (n, e, t = !0) => {
@@ -101,11 +101,11 @@ const O = (n, e, t = !0) => {
101
101
  }, N = (n) => O(n, (e) => {
102
102
  const t = e.getAttribute("builder-id") || e.id;
103
103
  return (t == null ? void 0 : t.indexOf("builder-")) === 0;
104
- }), C = ({
104
+ }), x = ({
105
105
  event: n,
106
106
  target: e
107
107
  }) => {
108
- const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s = S(i / t.width), a = S(o / t.height);
108
+ const t = e.getBoundingClientRect(), i = n.clientX - t.left, o = n.clientY - t.top, s = C(i / t.width), a = C(o / t.height);
109
109
  return {
110
110
  x: s,
111
111
  y: a
@@ -115,11 +115,11 @@ const O = (n, e, t = !0) => {
115
115
  return {
116
116
  targetBuilderElement: i || void 0,
117
117
  metadata: {
118
- targetOffset: e ? C({
118
+ targetOffset: e ? x({
119
119
  event: n,
120
120
  target: e
121
121
  }) : void 0,
122
- builderTargetOffset: t ? C({
122
+ builderTargetOffset: t ? x({
123
123
  event: n,
124
124
  target: t
125
125
  }) : void 0,
@@ -129,10 +129,10 @@ const O = (n, e, t = !0) => {
129
129
  }, A = k({
130
130
  name: "enable-editor",
131
131
  props: [
132
- "canTrack",
133
132
  "builderContextSignal",
134
133
  "model",
135
134
  "context",
135
+ "canTrack",
136
136
  "apiKey",
137
137
  "showContent",
138
138
  "classNameProp",
@@ -143,7 +143,6 @@ const O = (n, e, t = !0) => {
143
143
  ],
144
144
  data() {
145
145
  return {
146
- canTrackToUse: w(this.canTrack) ? this.canTrack : !0,
147
146
  forceReRenderCount: 0,
148
147
  lastUpdated: 0,
149
148
  shouldSendResetCookie: !1,
@@ -186,17 +185,17 @@ const O = (n, e, t = !0) => {
186
185
  const t = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (e = this.builderContextSignal.content) == null ? void 0 : e.id;
187
186
  g({
188
187
  type: "impression",
189
- canTrack: this.canTrackToUse,
188
+ canTrack: b(this.canTrack),
190
189
  contentId: i,
191
190
  apiKey: this.apiKey,
192
191
  variationId: t !== i ? t : void 0
193
192
  });
194
193
  }
195
- if (U()) {
194
+ if (I()) {
196
195
  const t = new URL(location.href).searchParams, i = t.get("builder.preview"), o = t.get(
197
196
  `builder.preview.${i}`
198
197
  ), s = t.get("apiKey") || t.get("builder.space");
199
- i === this.model && s === this.apiKey && (!this.content || o === this.content.id) && I({
198
+ i === this.model && s === this.apiKey && (!this.content || o === this.content.id) && U({
200
199
  model: this.model,
201
200
  apiKey: this.apiKey,
202
201
  apiVersion: this.builderContextSignal.apiVersion
@@ -329,7 +328,7 @@ const O = (n, e, t = !0) => {
329
328
  const i = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
330
329
  g({
331
330
  type: "click",
332
- canTrack: this.canTrackToUse,
331
+ canTrack: b(this.canTrack),
333
332
  contentId: o,
334
333
  apiKey: this.apiKey,
335
334
  variationId: i !== o ? i : void 0,
@@ -352,7 +351,7 @@ const O = (n, e, t = !0) => {
352
351
  );
353
352
  },
354
353
  handleRequest({ url: n, key: e }) {
355
- T(n).then((t) => t.json()).then((t) => {
354
+ P(n).then((t) => t.json()).then((t) => {
356
355
  var o, s;
357
356
  const i = {
358
357
  ...this.builderContextSignal.rootState,
@@ -382,7 +381,7 @@ const O = (n, e, t = !0) => {
382
381
  "builder:component:stateChange",
383
382
  {
384
383
  detail: {
385
- state: P(this.builderContextSignal.rootState),
384
+ state: M(this.builderContextSignal.rootState),
386
385
  ref: {
387
386
  name: this.model
388
387
  }
@@ -413,7 +412,7 @@ var L = function() {
413
412
  "aria-hidden": !0
414
413
  }
415
414
  }, !1), [e._t("default")], 2) : e._e();
416
- }, B = [], D = /* @__PURE__ */ M(
415
+ }, B = [], D = /* @__PURE__ */ T(
417
416
  A,
418
417
  L,
419
418
  B,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("vue"),p=require("./evaluate-043734e5.cjs"),s=require("./index-7b952a40.cjs"),v="0.6.4",x=()=>{s.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 m=!1;const R=(n={})=>{var e,t;m||(m=!0,s.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:s.TARGET,version:v,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,a;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const r=i.data.text,b=i.data.arguments||[],l=i.data.id,S=new Function(r);let d,c=null;try{d=S.apply(null,b)}catch(u){c=u}c?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:l,error:c.message}},"*"):d&&typeof d.then=="function"?d.then(u=>{var h;(h=window.parent)==null||h.postMessage({type:"builder.evaluateResult",data:{id:l,result:u}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:d,id:l}},"*");break}}})))};function f(n){return Math.round(n*1e3)/1e3}const k=(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},y=n=>k(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,a=f(i/t.width),r=f(o/t.height);return{x:a,y:r}},w=n=>{const e=n.target,t=e&&y(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}}},E=C.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","showContent","classNameProp","content","locale","includeRefs","enrich"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:s.builderContext}},provide(){const n=this;return{[s.builderContext.key]:n.builderContextSignal}},mounted(){var n,e;if(this.apiKey||s.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),s.isBrowser()){if(s.isEditing()&&(this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),x(),R({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(t=>{var o;const i=s.createRegisterComponentMessage(t);(o=window.parent)==null||o.postMessage(i,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)),this.builderContextSignal.content){const t=(n=this.builderContextSignal.content)==null?void 0:n.testVariationId,i=(e=this.builderContextSignal.content)==null?void 0:e.id;s._track({type:"impression",canTrack:s.getDefaultCanTrack(this.canTrack),contentId:i,apiKey:this.apiKey,variationId:t!==i?t:void 0})}if(s.isPreviewing()){const t=new URL(location.href).searchParams,i=t.get("builder.preview"),o=t.get(`builder.preview.${i}`),a=t.get("apiKey")||t.get("builder.space");i===this.model&&a===this.apiKey&&(!this.content||o===this.content.id)&&s.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(r=>{r&&this.mergeNewContent(r)})}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(){s.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,a,r;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)||((r=(a=this.builderContextSignal.content)==null?void 0:a.meta)==null?void 0:r.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:a}=i;if(!a||a!==((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,a=i.data;o===this.model&&(this.mergeNewContent(a),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&&p.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;s._track({type:"click",canTrack:s.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...w(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>p.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){s.fetch(n).then(t=>t.json()).then(t=>{var o,a;const i={...this.builderContextSignal.rootState,[e]:t};(a=(o=this.builderContextSignal).rootSetState)==null||a.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]||s.isEditing())){const a=this.evalExpression(o);this.handleRequest({url:a,key:i})}})},emitStateUpdate(){s.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:s.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},_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 _=function(){var i;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(e.classNameProp),attrs:{"builder-content-id":(i=e.builderContextSignal.content)==null?void 0:i.id,"builder-model":e.model},on:{click:function(o){return e.onClick(o)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],U=s.normalizeComponent(E,_,I,!1,null,null,null,null);const P=U.exports;exports.default=P;
@@ -1 +1 @@
1
- "use strict";const t=require("./index-6d420ce4.cjs"),d=({builder:r,context:n,event:s,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:n,event:s}),f=({code:r,builder:n,context:s,event:i,localState:e,rootSetState:u,rootState:o})=>{const g=d({builder:n,context:s,event:i,state:l(o,e,u)});return new Function(...g.map(([c])=>c),r)(...g.map(([,c])=>c))};function l(r,n,s){if(r===n)throw new Error("rootState === localState");return new Proxy(r,{get:(i,e)=>n&&e in n?n[e]:r[e],set:(i,e,u)=>{if(n&&e in n)throw new Error("Writing to local state is not allowed as it is read-only.");return r[e]=u,s==null||s(r),!0}})}function m({code:r,context:n,localState:s,rootState:i,rootSetState:e,event:u,isExpression:o=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const g={isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()},w={code:o&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,builder:g,context:n,event:u,rootSetState:e,rootState:i,localState:s};try{return f(w)}catch(a){t.logger.error("Failed code evaluation: "+a.message,{code:r});return}}exports.evaluate=m;
1
+ "use strict";const t=require("./index-7b952a40.cjs"),d=({builder:r,context:n,event:s,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:n,event:s}),f=({code:r,builder:n,context:s,event:i,localState:e,rootSetState:u,rootState:o})=>{const g=d({builder:n,context:s,event:i,state:l(o,e,u)});return new Function(...g.map(([c])=>c),r)(...g.map(([,c])=>c))};function l(r,n,s){if(r===n)throw new Error("rootState === localState");return new Proxy(r,{get:(i,e)=>n&&e in n?n[e]:r[e],set:(i,e,u)=>{if(n&&e in n)throw new Error("Writing to local state is not allowed as it is read-only.");return r[e]=u,s==null||s(r),!0}})}function m({code:r,context:n,localState:s,rootState:i,rootSetState:e,event:u,isExpression:o=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const g={isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()},w={code:o&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,builder:g,context:n,event:u,rootSetState:e,rootState:i,localState:s};try{return f(w)}catch(a){t.logger.error("Failed code evaluation: "+a.message,{code:r});return}}exports.evaluate=m;