@builder.io/sdk-vue 0.7.6 → 0.8.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 (213) hide show
  1. package/package.json +8 -7
  2. package/vue2/lib/{edge/block-1f2d2db7.cjs → browser/block-9d4161fb.cjs} +2 -2
  3. package/vue2/lib/{node/block-bbaf1d04.js → browser/block-f5679152.js} +10 -9
  4. package/vue2/lib/browser/{block-styles-fd9354cd.js → block-styles-6ca785bb.js} +8 -7
  5. package/vue2/lib/browser/block-styles-b76b4562.cjs +1 -0
  6. package/vue2/lib/{edge/block-wrapper-e5b88192.js → browser/block-wrapper-0d4fe902.js} +8 -7
  7. package/vue2/lib/browser/block-wrapper-3157e1bc.cjs +1 -0
  8. package/vue2/lib/browser/blocks-wrapper-02404286.cjs +1 -0
  9. package/vue2/lib/{edge/blocks-wrapper-6746e3cd.js → browser/blocks-wrapper-dc71efe8.js} +4 -3
  10. package/vue2/lib/browser/component-ref-c51b0a20.cjs +1 -0
  11. package/vue2/lib/{edge/component-ref-c33bfd71.js → browser/component-ref-d59047de.js} +9 -8
  12. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  13. package/vue2/lib/browser/content-0575efdf.cjs +1 -0
  14. package/vue2/lib/{edge/content-2ea81381.js → browser/content-84bda2e9.js} +8 -7
  15. package/vue2/lib/browser/css-9cb1ef7e.cjs +6 -0
  16. package/vue2/lib/browser/{css-5f8e03e7.js → css-bdeda4e4.js} +4 -3
  17. package/vue2/lib/{node/enable-editor-359d31d1.js → browser/enable-editor-c377a256.js} +6 -5
  18. package/vue2/lib/browser/enable-editor-c49316d4.cjs +1 -0
  19. package/vue2/lib/browser/{evaluate-04a2bd86.js → evaluate-2857c518.js} +4 -3
  20. package/vue2/lib/browser/evaluate-5a5f1e1a.cjs +1 -0
  21. package/vue2/lib/{node/get-block-actions-c8c3330b.js → browser/get-block-actions-6774e2de.js} +5 -4
  22. package/vue2/lib/browser/get-block-actions-797d49a2.cjs +1 -0
  23. package/vue2/lib/browser/get-block-properties-b25a78e1.cjs +1 -0
  24. package/vue2/lib/{edge/get-block-properties-721b933d.js → browser/get-block-properties-eb393578.js} +11 -10
  25. package/vue2/lib/browser/{get-processed-block-1ddb5e78.js → get-processed-block-d2849656.js} +17 -16
  26. package/vue2/lib/browser/get-processed-block-e9eb76d5.cjs +1 -0
  27. package/vue2/lib/{node/index-3fcbe332.js → browser/index-1fdc0dd8.js} +48 -47
  28. package/vue2/lib/{edge/index-1d97f3d7.cjs → browser/index-e56cba6d.cjs} +3 -3
  29. package/vue2/lib/browser/index.cjs +1 -1
  30. package/vue2/lib/browser/index.js +24 -23
  31. package/vue2/lib/{edge/inlined-script-88ef6d76.js → browser/inlined-script-0fd7eea7.js} +7 -6
  32. package/vue2/lib/browser/inlined-script-166d99c7.cjs +1 -0
  33. package/vue2/lib/browser/inlined-styles-4c4a89e2.cjs +1 -0
  34. package/vue2/lib/{node/inlined-styles-41df1b95.js → browser/inlined-styles-73447147.js} +5 -4
  35. package/vue2/lib/browser/interactive-element-772e6a3d.cjs +1 -0
  36. package/vue2/lib/{node/interactive-element-bbd449cb.js → browser/interactive-element-f3bc9b6c.js} +8 -7
  37. package/vue2/lib/{node/repeated-block-82dffab6.js → browser/repeated-block-59ab7fe5.js} +5 -4
  38. package/vue2/lib/browser/repeated-block-8c6f0ef0.cjs +1 -0
  39. package/vue2/lib/{node/styles-b9c3f50e.cjs → browser/styles-0fbadb80.cjs} +2 -2
  40. package/vue2/lib/{edge/styles-fbe2ad34.js → browser/styles-3945b4c7.js} +8 -7
  41. package/vue2/lib/{browser/block-3acda1db.cjs → edge/block-03548c5c.cjs} +2 -2
  42. package/vue2/lib/edge/{block-88b23340.js → block-c6f466c0.js} +10 -9
  43. package/vue2/lib/{node/block-styles-ae29f345.js → edge/block-styles-37805084.js} +8 -7
  44. package/vue2/lib/edge/block-styles-adc484c6.cjs +1 -0
  45. package/vue2/lib/{browser/block-wrapper-42a21f3a.js → edge/block-wrapper-1d75af67.js} +8 -7
  46. package/vue2/lib/edge/block-wrapper-ff8027da.cjs +1 -0
  47. package/vue2/lib/{node/blocks-wrapper-1e6ad915.js → edge/blocks-wrapper-e329b941.js} +4 -3
  48. package/vue2/lib/edge/blocks-wrapper-ed7f6801.cjs +1 -0
  49. package/vue2/lib/{node/component-ref-205a7877.js → edge/component-ref-b3b70fa9.js} +9 -8
  50. package/vue2/lib/edge/component-ref-fc9c9d6b.cjs +1 -0
  51. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  52. package/vue2/lib/{browser/content-fea57461.js → edge/content-90700d7e.js} +8 -7
  53. package/vue2/lib/edge/content-e5850b95.cjs +1 -0
  54. package/vue2/lib/edge/css-5dcb14df.cjs +6 -0
  55. package/vue2/lib/edge/{css-fdcffefa.js → css-99493b5d.js} +4 -3
  56. package/vue2/lib/edge/enable-editor-31a92cf5.cjs +1 -0
  57. package/vue2/lib/edge/{enable-editor-f32fd70b.js → enable-editor-81a0ad6d.js} +6 -5
  58. package/vue2/lib/edge/{evaluate-f1aeac53.js → evaluate-2a5e2028.js} +4 -3
  59. package/vue2/lib/edge/{evaluate-907e638c.cjs → evaluate-4bd2a851.cjs} +1 -1
  60. package/vue2/lib/edge/get-block-actions-84b02e58.cjs +1 -0
  61. package/vue2/lib/edge/{get-block-actions-f7a64955.js → get-block-actions-a4c6a740.js} +5 -4
  62. package/vue2/lib/{node/get-block-properties-8711f880.js → edge/get-block-properties-450803e5.js} +11 -10
  63. package/vue2/lib/edge/get-block-properties-a07f7705.cjs +1 -0
  64. package/vue2/lib/{node/get-processed-block-ee45c650.js → edge/get-processed-block-1d7ecd6a.js} +16 -15
  65. package/vue2/lib/edge/get-processed-block-8f70184a.cjs +1 -0
  66. package/vue2/lib/{browser/index-efdcc0ee.js → edge/index-22fb0dfe.js} +48 -47
  67. package/vue2/lib/{node/index-bf858a42.cjs → edge/index-cf208007.cjs} +3 -3
  68. package/vue2/lib/edge/index.cjs +1 -1
  69. package/vue2/lib/edge/index.js +24 -23
  70. package/vue2/lib/edge/inlined-script-f460fc92.cjs +1 -0
  71. package/vue2/lib/{node/inlined-script-24a8df2e.js → edge/inlined-script-f5a56ea4.js} +7 -6
  72. package/vue2/lib/edge/inlined-styles-c9c77496.cjs +1 -0
  73. package/vue2/lib/edge/{inlined-styles-960710cc.js → inlined-styles-ea805c3d.js} +5 -4
  74. package/vue2/lib/{browser/interactive-element-eb83a760.js → edge/interactive-element-340237cb.js} +8 -7
  75. package/vue2/lib/edge/interactive-element-d909635d.cjs +1 -0
  76. package/vue2/lib/{browser/repeated-block-b9f308bb.js → edge/repeated-block-b32d9254.js} +5 -4
  77. package/vue2/lib/edge/repeated-block-d2b864a8.cjs +1 -0
  78. package/vue2/lib/{browser/styles-f398dedc.js → edge/styles-8840ca47.js} +8 -7
  79. package/vue2/lib/edge/{styles-fccbcaef.cjs → styles-8f4d5e0d.cjs} +2 -2
  80. package/vue2/lib/{browser/block-a6f87b59.js → node/block-6dc57ba5.js} +10 -9
  81. package/vue2/lib/node/{block-250cdb0f.cjs → block-f9029bc3.cjs} +2 -2
  82. package/vue2/lib/{edge/block-styles-3ecae21c.js → node/block-styles-b947dfc5.js} +8 -7
  83. package/vue2/lib/node/block-styles-c4974a44.cjs +1 -0
  84. package/vue2/lib/node/{block-wrapper-88b642c5.js → block-wrapper-04b443cd.js} +8 -7
  85. package/vue2/lib/node/block-wrapper-8ba974d4.cjs +1 -0
  86. package/vue2/lib/{browser/blocks-wrapper-ca4d46fe.js → node/blocks-wrapper-2ebcec73.js} +4 -3
  87. package/vue2/lib/node/blocks-wrapper-e32910ce.cjs +1 -0
  88. package/vue2/lib/{browser/component-ref-1114d239.js → node/component-ref-5f0d480f.js} +9 -8
  89. package/vue2/lib/node/component-ref-7f93a1f0.cjs +1 -0
  90. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  91. package/vue2/lib/node/content-a860398a.cjs +1 -0
  92. package/vue2/lib/node/{content-f12d606a.js → content-b604b895.js} +8 -7
  93. package/vue2/lib/node/{css-6048b6bd.js → css-97122c97.js} +4 -3
  94. package/vue2/lib/node/css-fb2674c8.cjs +6 -0
  95. package/vue2/lib/node/enable-editor-cdf1803d.cjs +1 -0
  96. package/vue2/lib/{browser/enable-editor-9e5fbca5.js → node/enable-editor-df62e3bf.js} +6 -5
  97. package/vue2/lib/node/{evaluate-0814c11a.cjs → evaluate-44daeb3b.cjs} +1 -1
  98. package/vue2/lib/node/{evaluate-834a9ea9.js → evaluate-b86af327.js} +2 -1
  99. package/vue2/lib/{browser/get-block-actions-6bf6efd8.js → node/get-block-actions-035815cd.js} +5 -4
  100. package/vue2/lib/node/get-block-actions-0c98c4e4.cjs +1 -0
  101. package/vue2/lib/{browser/get-block-properties-d1d0bc05.js → node/get-block-properties-b3de78f4.js} +11 -10
  102. package/vue2/lib/node/get-block-properties-d46ce865.cjs +1 -0
  103. package/vue2/lib/node/get-processed-block-34d0880b.cjs +1 -0
  104. package/vue2/lib/{edge/get-processed-block-0ed76999.js → node/get-processed-block-e16b5f0b.js} +16 -15
  105. package/vue2/lib/{edge/index-5e05bfe5.js → node/index-04eac5bd.js} +48 -47
  106. package/vue2/lib/{browser/index-3caa5325.cjs → node/index-f82ca488.cjs} +3 -3
  107. package/vue2/lib/node/index.cjs +1 -1
  108. package/vue2/lib/node/index.js +24 -23
  109. package/vue2/lib/node/inlined-script-3d1617fb.cjs +1 -0
  110. package/vue2/lib/{browser/inlined-script-ec4a5d29.js → node/inlined-script-a6f84120.js} +7 -6
  111. package/vue2/lib/{browser/inlined-styles-f423abf7.js → node/inlined-styles-4fa88e65.js} +5 -4
  112. package/vue2/lib/node/inlined-styles-e70e3d2e.cjs +1 -0
  113. package/vue2/lib/node/interactive-element-f08c324e.cjs +1 -0
  114. package/vue2/lib/{edge/interactive-element-bb9f8f84.js → node/interactive-element-f46aae31.js} +8 -7
  115. package/vue2/lib/node/repeated-block-5d832619.cjs +1 -0
  116. package/vue2/lib/{edge/repeated-block-06156896.js → node/repeated-block-fe5a6df8.js} +5 -4
  117. package/vue2/lib/node/{styles-dc003dc5.js → styles-5a4adee9.js} +8 -7
  118. package/vue2/lib/{browser/styles-d078f3c9.cjs → node/styles-85761eb4.cjs} +2 -2
  119. package/vue2/package.json +5 -0
  120. package/vue3/lib/{node/block-wrapper.747652cc.js → browser/block-wrapper.352385b7.js} +3 -3
  121. package/vue3/lib/{node/block-wrapper.56c45140.cjs → browser/block-wrapper.5e6d25d7.cjs} +1 -1
  122. package/vue3/lib/{node/component-ref.9c294efb.cjs → browser/component-ref.5c2938c9.cjs} +1 -1
  123. package/vue3/lib/{node/component-ref.4cde5228.js → browser/component-ref.bf30bc42.js} +3 -3
  124. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  125. package/vue3/lib/{edge/get-block-actions.b12a50e1.js → browser/get-block-actions.6a86c1e3.js} +6 -5
  126. package/vue3/lib/browser/get-block-actions.f6ff7325.cjs +1 -0
  127. package/vue3/lib/browser/{index.263ef516.cjs → index.8871e74f.cjs} +7 -7
  128. package/vue3/lib/browser/index.cjs +1 -1
  129. package/vue3/lib/browser/{index.3ca6cceb.js → index.dfff88fe.js} +74 -73
  130. package/vue3/lib/browser/index.js +27 -26
  131. package/vue3/lib/{node/repeated-block.d9d63701.js → browser/repeated-block.16b97544.js} +3 -3
  132. package/vue3/lib/{node/repeated-block.b45912e0.cjs → browser/repeated-block.fecd4553.cjs} +1 -1
  133. package/vue3/lib/edge/block-wrapper.6a65a5d4.cjs +1 -0
  134. package/vue3/lib/edge/{block-wrapper.b96fad63.js → block-wrapper.6ce0ef67.js} +6 -5
  135. package/vue3/lib/edge/{component-ref.fef012d7.js → component-ref.6603a2a5.js} +5 -4
  136. package/vue3/lib/edge/component-ref.8741a80d.cjs +1 -0
  137. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  138. package/vue3/lib/{browser/get-block-actions.b5062464.js → edge/get-block-actions.a147904d.js} +6 -5
  139. package/vue3/lib/edge/get-block-actions.a9e5c4f5.cjs +1 -0
  140. package/vue3/lib/edge/{index.caa41e14.cjs → index.01b1f45a.cjs} +8 -8
  141. package/vue3/lib/edge/{index.8968e581.js → index.7bae31e6.js} +128 -127
  142. package/vue3/lib/edge/index.cjs +1 -1
  143. package/vue3/lib/edge/index.js +27 -26
  144. package/vue3/lib/edge/{repeated-block.827595e1.js → repeated-block.3cdac290.js} +5 -4
  145. package/vue3/lib/edge/repeated-block.7f5a9758.cjs +1 -0
  146. package/vue3/lib/{browser/block-wrapper.1377d486.js → node/block-wrapper.6198973e.js} +8 -6
  147. package/vue3/lib/node/block-wrapper.d4a48d58.cjs +1 -0
  148. package/vue3/lib/{browser/component-ref.0df2ace0.js → node/component-ref.a11780f4.js} +12 -10
  149. package/vue3/lib/node/component-ref.d6bc01e4.cjs +1 -0
  150. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  151. package/vue3/lib/node/{get-block-actions.f57c50da.js → get-block-actions.a19931a2.js} +6 -5
  152. package/vue3/lib/node/get-block-actions.ecd370ea.cjs +1 -0
  153. package/vue3/lib/node/{index.6ab6fc2e.cjs → index.4291aa83.cjs} +7 -7
  154. package/vue3/lib/node/{index.941e6502.js → index.67294824.js} +49 -48
  155. package/vue3/lib/node/index.cjs +1 -1
  156. package/vue3/lib/node/index.js +24 -23
  157. package/vue3/lib/{browser/repeated-block.055d09e9.js → node/repeated-block.6106c352.js} +8 -6
  158. package/vue3/lib/node/repeated-block.ab684d37.cjs +1 -0
  159. package/vue3/package.json +5 -0
  160. package/vue2/css/package.json +0 -4
  161. package/vue2/lib/browser/block-styles-5c462c72.cjs +0 -1
  162. package/vue2/lib/browser/block-wrapper-6614e2f6.cjs +0 -1
  163. package/vue2/lib/browser/blocks-wrapper-7761766b.cjs +0 -1
  164. package/vue2/lib/browser/component-ref-705f4623.cjs +0 -1
  165. package/vue2/lib/browser/content-4e18170c.cjs +0 -1
  166. package/vue2/lib/browser/css-bd209fae.cjs +0 -6
  167. package/vue2/lib/browser/enable-editor-430efbd4.cjs +0 -1
  168. package/vue2/lib/browser/evaluate-07174f5f.cjs +0 -1
  169. package/vue2/lib/browser/get-block-actions-84c842f6.cjs +0 -1
  170. package/vue2/lib/browser/get-block-properties-e2a40df1.cjs +0 -1
  171. package/vue2/lib/browser/get-processed-block-e0783c0a.cjs +0 -1
  172. package/vue2/lib/browser/inlined-script-335771a8.cjs +0 -1
  173. package/vue2/lib/browser/inlined-styles-3913a8d2.cjs +0 -1
  174. package/vue2/lib/browser/interactive-element-37bc0f5d.cjs +0 -1
  175. package/vue2/lib/browser/repeated-block-0d2b2875.cjs +0 -1
  176. package/vue2/lib/edge/block-styles-aceb9af8.cjs +0 -1
  177. package/vue2/lib/edge/block-wrapper-138380d7.cjs +0 -1
  178. package/vue2/lib/edge/blocks-wrapper-faea8d38.cjs +0 -1
  179. package/vue2/lib/edge/component-ref-7b7d8e68.cjs +0 -1
  180. package/vue2/lib/edge/content-5c39336c.cjs +0 -1
  181. package/vue2/lib/edge/css-23e659da.cjs +0 -6
  182. package/vue2/lib/edge/enable-editor-9d1118ea.cjs +0 -1
  183. package/vue2/lib/edge/get-block-actions-746c9bd2.cjs +0 -1
  184. package/vue2/lib/edge/get-block-properties-a5109149.cjs +0 -1
  185. package/vue2/lib/edge/get-processed-block-c0703239.cjs +0 -1
  186. package/vue2/lib/edge/inlined-script-9a554125.cjs +0 -1
  187. package/vue2/lib/edge/inlined-styles-908b0f3d.cjs +0 -1
  188. package/vue2/lib/edge/interactive-element-ad4ab167.cjs +0 -1
  189. package/vue2/lib/edge/repeated-block-5ba61f53.cjs +0 -1
  190. package/vue2/lib/node/block-styles-1e2640a2.cjs +0 -1
  191. package/vue2/lib/node/block-wrapper-ac53a924.cjs +0 -1
  192. package/vue2/lib/node/blocks-wrapper-a054ebaf.cjs +0 -1
  193. package/vue2/lib/node/component-ref-06eef9a6.cjs +0 -1
  194. package/vue2/lib/node/content-a5a1d56c.cjs +0 -1
  195. package/vue2/lib/node/css-b2c258a5.cjs +0 -6
  196. package/vue2/lib/node/enable-editor-fdd7a890.cjs +0 -1
  197. package/vue2/lib/node/get-block-actions-3773e4fd.cjs +0 -1
  198. package/vue2/lib/node/get-block-properties-3f9bfbe9.cjs +0 -1
  199. package/vue2/lib/node/get-processed-block-5728fca2.cjs +0 -1
  200. package/vue2/lib/node/inlined-script-05a289bc.cjs +0 -1
  201. package/vue2/lib/node/inlined-styles-7ac1dd90.cjs +0 -1
  202. package/vue2/lib/node/interactive-element-cae91247.cjs +0 -1
  203. package/vue2/lib/node/repeated-block-65e12830.cjs +0 -1
  204. package/vue3/css/package.json +0 -4
  205. package/vue3/lib/browser/block-wrapper.77966882.cjs +0 -1
  206. package/vue3/lib/browser/component-ref.cfa2879a.cjs +0 -1
  207. package/vue3/lib/browser/get-block-actions.53c9e174.cjs +0 -1
  208. package/vue3/lib/browser/repeated-block.10ac7676.cjs +0 -1
  209. package/vue3/lib/edge/block-wrapper.a5eacdf4.cjs +0 -1
  210. package/vue3/lib/edge/component-ref.4865219f.cjs +0 -1
  211. package/vue3/lib/edge/get-block-actions.e8f7801d.cjs +0 -1
  212. package/vue3/lib/edge/repeated-block.819e62ef.cjs +0 -1
  213. package/vue3/lib/node/get-block-actions.2b49b259.cjs +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-vue",
3
3
  "description": "Builder.io SDK for Vue",
4
- "version": "0.7.6",
4
+ "version": "0.8.0",
5
5
  "main": "./vue3/lib/node/index.cjs",
6
6
  "module": "./vue3/lib/node/index.js",
7
7
  "type": "module",
@@ -9,12 +9,16 @@
9
9
  "vue2",
10
10
  "vue3"
11
11
  ],
12
+ "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/vue",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/BuilderIO/builder.git",
16
+ "directory": "packages/sdks/output/vue"
17
+ },
12
18
  "files": [
13
19
  "vue2/lib",
14
- "vue2/css/package.json",
15
20
  "vue2/package.json",
16
21
  "vue3/lib",
17
- "vue3/css/package.json",
18
22
  "vue3/package.json"
19
23
  ],
20
24
  "exports": {
@@ -110,7 +114,6 @@
110
114
  "require": "./vue2/lib/browser/index.cjs"
111
115
  }
112
116
  },
113
- "./vue2/css": "./vue2/lib/browser/style.css",
114
117
  "./vue3": {
115
118
  "node": {
116
119
  "import": "./vue3/lib/node/index.js",
@@ -160,9 +163,7 @@
160
163
  "import": "./vue3/lib/browser/index.js",
161
164
  "require": "./vue3/lib/browser/index.cjs"
162
165
  }
163
- },
164
- "./vue3/css": "./vue3/lib/browser/style.css",
165
- "./css": "./vue3/lib/browser/style.css"
166
+ }
166
167
  },
167
168
  "scripts": {
168
169
  "release": "npm publish",
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-c0703239.cjs"),m=require("./evaluate-907e638c.cjs"),d=require("./index-1d97f3d7.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),f=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=p.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!r)return null;const n=o[r];if(n)return n;console.warn(`
1
+ "use strict";var _=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-e9eb76d5.cjs"),m=require("./evaluate-5a5f1e1a.cjs"),d=require("./index-e56cba6d.cjs");function h(t){var e;return{...(e=t.component)==null?void 0:e.options,...t.options,builderBlock:t}}const u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=t=>typeof t=="string"&&u.includes(t.toLowerCase()),f=({block:t,context:e,registeredComponents:o})=>{var c;const r=(c=p.getProcessedBlock({block:t,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context,shouldEvaluateBindings:!1}).component)==null?void 0:c.name;if(!r)return null;const n=o[r];if(n)return n;console.warn(`
2
2
  Could not find a registered component named "${r}".
3
- If you registered it, is the file that registered it imported by the file that needs to render it?`)},b=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-aceb9af8.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./block-wrapper-138380d7.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=()=>Promise.resolve().then(()=>require("./component-ref-7b7d8e68.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block-5ba61f53.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),P=a.defineComponent({name:"block",components:{"component-ref":B,"block-wrapper":g,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return f({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return b({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){var o,r;if((o=this.block.repeat)!=null&&o.collection)return!!((r=this.repeatItem)!=null&&r.length);const t="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!t},childrenWithoutParentComponent(){var e;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,e,o,r,n;return{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((e=this.blockComponent)==null?void 0:e.name)==="Symbol"||((o=this.blockComponent)==null?void 0:o.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((r=this.blockComponent)==null?void 0:r.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC)}}}});var x=function(){var r;var e=this,o=e._self._c;return e._self._setupProxy,(r=e.blockComponent)!=null&&r.noWrap&&e.canShowBlock?o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},R=[],y=d.normalizeComponent(P,x,R,!1,null,null,null,null);const v=y.exports;exports.default=v;
3
+ If you registered it, is the file that registered it imported by the file that needs to render it?`)},b=({block:t,context:e})=>{const{repeat:o,...r}=t;if(!(o!=null&&o.collection))return;const n=m.evaluate({code:o.collection,localState:e.localState,rootState:e.rootState,rootSetState:e.rootSetState,context:e.context});if(!Array.isArray(n))return;const c=o.collection.split(".").pop(),s=o.itemName||(c?c+"Item":"item");return n.map((l,i)=>({context:{...e,localState:{...e.localState,$index:i,$item:l,[s]:l,[`$${s}Index`]:i}},block:r}))},C=()=>Promise.resolve().then(()=>require("./block-styles-b76b4562.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",t),t}),g=()=>Promise.resolve().then(()=>require("./block-wrapper-3157e1bc.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",t),t}),B=()=>Promise.resolve().then(()=>require("./component-ref-c51b0a20.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",t),t}),S=()=>Promise.resolve().then(()=>require("./repeated-block-8c6f0ef0.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",t),t}),P=a.defineComponent({name:"block",components:{"component-ref":B,"block-wrapper":g,"repeated-block":S,"block-styles":C},props:["block","context","registeredComponents"],data(){return{childrenContext:this.context,isEmptyHtmlElement:k}},computed:{blockComponent(){return f({block:this.block,context:this.context,registeredComponents:this.registeredComponents})},repeatItem(){return b({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:p.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0})},Tag(){return this.block.tagName||"div"},canShowBlock(){var o,r;if((o=this.block.repeat)!=null&&o.collection)return!!((r=this.repeatItem)!=null&&r.length);const t="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!t},childrenWithoutParentComponent(){var e;return!((e=this.blockComponent)!=null&&e.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,e,o,r,n;return{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...h(this.processedBlock),builderContext:this.context,...((e=this.blockComponent)==null?void 0:e.name)==="Symbol"||((o=this.blockComponent)==null?void 0:o.name)==="Columns"?{builderComponents:this.registeredComponents}:{}},context:this.childrenContext,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((r=this.blockComponent)==null?void 0:r.noWrap)===!0,isInteractive:!((n=this.blockComponent)!=null&&n.isRSC)}}}});var x=function(){var r;var e=this,o=e._self._c;return e._self._setupProxy,(r=e.blockComponent)!=null&&r.noWrap&&e.canShowBlock?o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},R=[],y=d.normalizeComponent(P,x,R,!1,null,null,null,null);const v=y.exports;exports.default=v;
@@ -1,7 +1,8 @@
1
+ import "./style.css";
1
2
  import { defineComponent as a } from "vue";
2
- import { g as p } from "./get-processed-block-ee45c650.js";
3
- import { e as m } from "./evaluate-834a9ea9.js";
4
- import { n as d } from "./index-3fcbe332.js";
3
+ import { g as p } from "./get-processed-block-d2849656.js";
4
+ import { e as m } from "./evaluate-2857c518.js";
5
+ import { n as d } from "./index-1fdc0dd8.js";
5
6
  function h(t) {
6
7
  var e;
7
8
  return {
@@ -68,22 +69,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
68
69
  },
69
70
  block: r
70
71
  }));
71
- }, C = () => import("./block-styles-ae29f345.js").then((t) => t.default).catch((t) => {
72
+ }, C = () => import("./block-styles-6ca785bb.js").then((t) => t.default).catch((t) => {
72
73
  throw console.error(
73
74
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
74
75
  t
75
76
  ), t;
76
- }), B = () => import("./block-wrapper-88b642c5.js").then((t) => t.default).catch((t) => {
77
+ }), B = () => import("./block-wrapper-0d4fe902.js").then((t) => t.default).catch((t) => {
77
78
  throw console.error(
78
79
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
79
80
  t
80
81
  ), t;
81
- }), S = () => import("./component-ref-205a7877.js").then((t) => t.default).catch((t) => {
82
+ }), S = () => import("./component-ref-d59047de.js").then((t) => t.default).catch((t) => {
82
83
  throw console.error(
83
84
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
84
85
  t
85
86
  ), t;
86
- }), g = () => import("./repeated-block-82dffab6.js").then((t) => t.default).catch((t) => {
87
+ }), g = () => import("./repeated-block-59ab7fe5.js").then((t) => t.default).catch((t) => {
87
88
  throw console.error(
88
89
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
89
90
  t
@@ -180,7 +181,7 @@ var R = function() {
180
181
  null,
181
182
  null
182
183
  );
183
- const W = P.exports;
184
+ const T = P.exports;
184
185
  export {
185
- W as default
186
+ T as default
186
187
  };
@@ -1,9 +1,10 @@
1
+ import "./style.css";
1
2
  import { defineComponent as y } from "vue";
2
- import { T as f, c as m, g as x, a as d, n as _ } from "./index-efdcc0ee.js";
3
- import { g as u } from "./get-processed-block-1ddb5e78.js";
4
- import { c as n } from "./css-5f8e03e7.js";
5
- import "./evaluate-04a2bd86.js";
6
- const k = () => import("./inlined-styles-f423abf7.js").then((e) => e.default).catch((e) => {
3
+ import { T as f, c as m, g as x, a as d, n as _ } from "./index-1fdc0dd8.js";
4
+ import { g as u } from "./get-processed-block-d2849656.js";
5
+ import { c as n } from "./css-bdeda4e4.js";
6
+ import "./evaluate-2857c518.js";
7
+ const k = () => import("./inlined-styles-73447147.js").then((e) => e.default).catch((e) => {
7
8
  throw console.error(
8
9
  "Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
9
10
  e
@@ -76,7 +77,7 @@ var v = function() {
76
77
  null,
77
78
  null
78
79
  );
79
- const F = b.exports;
80
+ const I = b.exports;
80
81
  export {
81
- F as default
82
+ I as default
82
83
  };
@@ -0,0 +1 @@
1
+ "use strict";var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("vue"),s=require("./index-e56cba6d.cjs"),d=require("./get-processed-block-e9eb76d5.cjs"),c=require("./css-9cb1ef7e.cjs");require("./evaluate-5a5f1e1a.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-4c4a89e2.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",e),e}),k=y.defineComponent({name:"block-styles",components:{"inlined-styles":p},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=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(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var u;const e=d.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),t=e.responsiveStyles,o=this.context.content,r=s.getSizesForBreakpoints(((u=o==null?void 0:o.meta)==null?void 0:u.breakpoints)||{}),l=t==null?void 0:t.large,a=t==null?void 0:t.medium,i=t==null?void 0:t.small,n=e.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 t=this,o=t._self._c;return t._self._setupProxy,t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?o("inlined-styles",{attrs:{styles:t.css}}):t._e()},_=[],f=s.normalizeComponent(k,x,_,!1,null,null,null,null);const g=f.exports;exports.default=g;
@@ -1,9 +1,10 @@
1
+ import "./style.css";
1
2
  import { defineComponent as e } from "vue";
2
- import { g as r } from "./get-block-actions-f7a64955.js";
3
- import { g as c } from "./get-block-properties-721b933d.js";
4
- import { n } from "./index-5e05bfe5.js";
5
- import "./evaluate-f1aeac53.js";
6
- import "./css-fdcffefa.js";
3
+ import { g as r } from "./get-block-actions-6774e2de.js";
4
+ import { g as c } from "./get-block-properties-eb393578.js";
5
+ import { n } from "./index-1fdc0dd8.js";
6
+ import "./evaluate-2857c518.js";
7
+ import "./css-bdeda4e4.js";
7
8
  const a = e({
8
9
  name: "block-wrapper",
9
10
  props: ["Wrapper", "block", "context", "hasChildren"],
@@ -60,7 +61,7 @@ var l = function() {
60
61
  null,
61
62
  null
62
63
  );
63
- const b = s.exports;
64
+ const g = s.exports;
64
65
  export {
65
- b as default
66
+ g as default
66
67
  };
@@ -0,0 +1 @@
1
+ "use strict";var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./get-block-actions-797d49a2.cjs"),c=require("./get-block-properties-b25a78e1.cjs"),n=require("./index-e56cba6d.cjs");require("./evaluate-5a5f1e1a.cjs");require("./css-9cb1ef7e.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;
@@ -0,0 +1 @@
1
+ "use strict";var u=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=require("./index-e56cba6d.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,6 @@
1
+ import "./style.css";
1
2
  import { defineComponent as o } from "vue";
2
- import { i as r, n as a } from "./index-5e05bfe5.js";
3
+ import { i as r, n as a } from "./index-1fdc0dd8.js";
3
4
  const l = o({
4
5
  name: "builder-blocks-wrapper",
5
6
  props: ["blocks", "parent", "path", "styleProp"],
@@ -66,7 +67,7 @@ var i = function() {
66
67
  null,
67
68
  null
68
69
  );
69
- const _ = p.exports;
70
+ const m = p.exports;
70
71
  export {
71
- _ as default
72
+ m as default
72
73
  };
@@ -0,0 +1 @@
1
+ "use strict";var x=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-b25a78e1.cjs"),a=require("./index-e56cba6d.cjs");require("./css-9cb1ef7e.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-9d4161fb.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component Block at ../../block.vue",t),t}),k=()=>Promise.resolve().then(()=>require("./block-styles-b76b4562.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",t),t}),c=()=>Promise.resolve().then(()=>require("./interactive-element-772e6a3d.cjs")).then(t=>t.default).catch(t=>{throw console.error("Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",t),t}),f=s.defineComponent({name:"component-ref",components:{block:d,"block-styles":k,"interactive-element":c},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?m(c):this.componentRef,getWrapperProps:u}}});var v=function(){var e=this,n=e._self._c;return e._self._setupProxy,e.componentRef?n(e.Wrapper,e._b({tag:"component"},"component",e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),!1),[e._l(e.blockChildren,function(o,r){return n("block",{key:"block-"+o.id,attrs:{block:o,context:e.context,registeredComponents:e.registeredComponents}})}),e._l(e.blockChildren,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:e.context}})})],2):e._e()},b=[],_=a.normalizeComponent(f,v,b,!1,null,null,null,null);const h=_.exports;exports.default=h;
@@ -1,7 +1,8 @@
1
+ import "./style.css";
1
2
  import { defineComponent as p } from "vue";
2
- import { g as s } from "./get-block-properties-721b933d.js";
3
- import { n as a } from "./index-5e05bfe5.js";
4
- import "./css-fdcffefa.js";
3
+ import { g as s } from "./get-block-properties-eb393578.js";
4
+ import { n as a } from "./index-1fdc0dd8.js";
5
+ import "./css-bdeda4e4.js";
5
6
  const m = (t) => t, k = ({
6
7
  componentOptions: t,
7
8
  builderBlock: e,
@@ -27,17 +28,17 @@ const m = (t) => t, k = ({
27
28
  context: i
28
29
  })
29
30
  } : {}
30
- }, u = () => import("./block-88b23340.js").then((t) => t.default).catch((t) => {
31
+ }, u = () => import("./block-f5679152.js").then((t) => t.default).catch((t) => {
31
32
  throw console.error(
32
33
  "Error while attempting to dynamically import component Block at ../../block.vue",
33
34
  t
34
35
  ), t;
35
- }), f = () => import("./block-styles-3ecae21c.js").then((t) => t.default).catch((t) => {
36
+ }), f = () => import("./block-styles-6ca785bb.js").then((t) => t.default).catch((t) => {
36
37
  throw console.error(
37
38
  "Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
38
39
  t
39
40
  ), t;
40
- }), c = () => import("./interactive-element-bb9f8f84.js").then((t) => t.default).catch((t) => {
41
+ }), c = () => import("./interactive-element-f3bc9b6c.js").then((t) => t.default).catch((t) => {
41
42
  throw console.error(
42
43
  "Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
43
44
  t
@@ -96,7 +97,7 @@ var _ = function() {
96
97
  null,
97
98
  null
98
99
  );
99
- const P = v.exports;
100
+ const C = v.exports;
100
101
  export {
101
- P as default
102
+ C as default
102
103
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.7.6";
1
+ export declare const SDK_VERSION = "0.8.0";
@@ -0,0 +1 @@
1
+ "use strict";var te=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-e56cba6d.cjs"),g={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},b={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){n.forEach(o=>{o.delete("width")})}const n=e.get("columns");Array.isArray(n)&&n.find(a=>a.get("width"))&&(n.find(l=>!l.get("width"))||n.reduce((s,c)=>s+c.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},y={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},x=u.defineComponent({name:"builder-custom-code",props:["replaceNodes","code"],data(){return{scriptsInserted:[],scriptsRun:[]}},mounted(){var t;if(!((t=this.$refs.elementRef)!=null&&t.getElementsByTagName)||typeof window>"u")return;const e=this.$refs.elementRef.getElementsByTagName("script");for(let n=0;n<e.length;n++){const o=e[n];if(o.src){if(this.scriptsInserted.includes(o.src))continue;this.scriptsInserted.push(o.src);const a=document.createElement("script");a.async=!0,a.src=o.src,document.head.appendChild(a)}else if(!o.type||["text/javascript","application/javascript","application/ecmascript"].includes(o.type)){if(this.scriptsRun.includes(o.innerText))continue;try{this.scriptsRun.push(o.innerText),new Function(o.innerText)()}catch(a){console.warn("`CustomCode`: Error running script:",a)}}}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var v=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elementRef",class:t._classStringToObject("builder-custom-code"+(t.replaceNodes?" replace-nodes":"")),domProps:{innerHTML:t._s(t.code)}})},S=[],T=r.normalizeComponent(x,v,S,!1,null,null,null,null);const _=T.exports,C={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(o=>o.json()).then(o=>{e.get("url")===t&&(o.html?e.set("content",o.html):e.set("content","Invalid url, please try another"))}).catch(o=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},I=["text/javascript","application/javascript","application/ecmascript"],w=e=>I.includes(e.type),k=u.defineComponent({name:"builder-embed",props:["content"],data(){return{scriptsInserted:[],scriptsRun:[],ranInitFn:!1}},watch:{onUpdateHook0:{handler(){this.$refs.elem&&!this.ranInitFn&&(this.ranInitFn=!0,this.findAndRunScripts())},immediate:!0}},computed:{onUpdateHook0(){return{0:this.$refs.elem,1:this.ranInitFn}}},methods:{findAndRunScripts(){if(!this.$refs.elem||!this.$refs.elem.getElementsByTagName)return;const e=this.$refs.elem.getElementsByTagName("script");for(let t=0;t<e.length;t++){const n=e[t];if(n.src&&!this.scriptsInserted.includes(n.src)){this.scriptsInserted.push(n.src);const o=document.createElement("script");o.async=!0,o.src=n.src,document.head.appendChild(o)}else if(w(n)&&!this.scriptsRun.includes(n.innerText))try{this.scriptsRun.push(n.innerText),new Function(n.innerText)()}catch(o){console.warn("`Embed`: Error running script:",o)}}}}});var R=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",{ref:"elem",staticClass:"builder-embed",domProps:{innerHTML:t._s(t.content)}})},F=[],E=r.normalizeComponent(k,R,F,!1,null,null,null,null);const V=E.exports,A={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},P={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function n(i,s=6e4){return new Promise((c,d)=>{const p=document.createElement("img");let m=!1;p.onload=()=>{m=!0,c(p)},p.addEventListener("error",h=>{console.warn("Image load failed",h.error),d(h.error)}),p.src=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function o(i){return Math.round(i*1e3)/1e3}const a=e.get("image"),l=e.get("aspectRatio");if(fetch(a).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),a&&(!l||l===.7041))return n(a).then(i=>{const s=e.get("aspectRatio");e.get("image")===a&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",o(i.height/i.width)),e.set("height",i.height),e.set("width",i.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},W={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0},$=u.defineComponent({name:"builder-img-component",props:["backgroundSize","backgroundPosition","imgSrc","altText","image","attributes"],data(){return{isEditing:r.isEditing,filterAttrs:r.filterAttrs}}});var U=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("img",t._g(t._b({key:t.isEditing()&&t.imgSrc||"default-key",style:{objectFit:t.backgroundSize||"cover",objectPosition:t.backgroundPosition||"center"},attrs:{alt:t.altText,src:t.imgSrc||t.image}},"img",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)))},j=[],z=r.normalizeComponent($,U,j,!1,null,null,null,null);const H=z.exports,q={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},L={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},D={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}},M={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]},f=()=>[{component:r.Button,...g},{component:r.Columns,...b},{component:_,...y},{component:V,...C},{component:r.Fragment,...A},{component:r.Image,...P},{component:H,...W},{component:r.Section,...q},{component:r.Symbol,...L},{component:r.Text,...D},{component:r.Video,...M}],B=({content:e,data:t,locale:n})=>{var l,i,s;const o={},a=((l=e==null?void 0:e.data)==null?void 0:l.state)||{};return(s=(i=e==null?void 0:e.data)==null?void 0:i.inputs)==null||s.forEach(c=>{c.name&&c.defaultValue!==void 0&&(o[c.name]=c.defaultValue)}),{...o,...a,...t,...n?{locale:n}:{}}},N=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,K=()=>Promise.resolve().then(()=>require("./index-e56cba6d.cjs")).then(e=>e.blocks).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",e),e}),O=()=>Promise.resolve().then(()=>require("./inlined-script-166d99c7.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),G=()=>Promise.resolve().then(()=>require("./enable-editor-c49316d4.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",e),e}),J=()=>Promise.resolve().then(()=>require("./styles-0fbadb80.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",e),e}),Y=u.defineComponent({name:"content-component",components:{"enable-editor":G,"inlined-script":O,"content-styles":J,blocks:K},props:["content","customComponents","data","locale","context","apiKey","apiVersion","model","canTrack","includeRefs","enrich","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getUpdateVariantVisibilityScript({variationId:(e=this.content)==null?void 0:e.testVariationId,contentId:(t=this.content)==null?void 0:t.id}),registeredComponents:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:{component:o,...r.serializeComponentInfo(a)}}),{}),builderContextSignal:{content:N({content:this.content,data:this.data}),localState:void 0,rootState:B({content:this.content,data:this.data,locale:this.locale}),rootSetState:this.contentSetState,context:this.context||{},apiKey:this.apiKey,apiVersion:this.apiVersion,componentInfos:[...f(),...r.components,...this.customComponents||[]].reduce((n,{component:o,...a})=>({...n,[a.name]:r.serializeComponentInfo(a)}),{}),inheritedStyles:{}},TARGET:r.TARGET}},provide(){const e=this;return{[r.ComponentsContext.key]:{registeredComponents:e.registeredComponents}}},methods:{contentSetState(e){this.builderContextSignal.rootState=e}}});var X=function(){var o,a,l,i,s,c,d;var t=this,n=t._self._c;return t._self._setupProxy,n("enable-editor",t._b({attrs:{content:t.content,model:t.model,context:t.context,apiKey:t.apiKey,canTrack:t.canTrack,locale:t.locale,includeRefs:t.includeRefs,enrich:t.enrich,showContent:t.showContent,builderContextSignal:t.builderContextSignal}},"enable-editor",{},!1),[t.isSsrAbTest?[n("inlined-script",{attrs:{scriptStr:t.scriptStr}})]:t._e(),t.TARGET!=="reactNative"?[n("content-styles",{attrs:{contentId:(o=t.builderContextSignal.content)==null?void 0:o.id,cssCode:(l=(a=t.builderContextSignal.content)==null?void 0:a.data)==null?void 0:l.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.data)==null?void 0:s.customFonts}})]:t._e(),n("blocks",{attrs:{blocks:(d=(c=t.builderContextSignal.content)==null?void 0:c.data)==null?void 0:d.blocks,context:t.builderContextSignal,registeredComponents:t.registeredComponents}})],2)},Q=[],Z=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
@@ -1,5 +1,6 @@
1
+ import "./style.css";
1
2
  import { defineComponent as p } from "vue";
2
- import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-5e05bfe5.js";
3
+ import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as F, j as f, s as g, T as R, k as V } from "./index-1fdc0dd8.js";
3
4
  const E = {
4
5
  name: "Core:Button",
5
6
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -779,22 +780,22 @@ const ee = Z.exports, te = {
779
780
  ...t
780
781
  },
781
782
  meta: e == null ? void 0 : e.meta
782
- } : void 0, se = () => import("./index-5e05bfe5.js").then((e) => e.M).then((e) => e.default).catch((e) => {
783
+ } : void 0, se = () => import("./index-1fdc0dd8.js").then((e) => e.M).then((e) => e.default).catch((e) => {
783
784
  throw console.error(
784
785
  "Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
785
786
  e
786
787
  ), e;
787
- }), le = () => import("./inlined-script-88ef6d76.js").then((e) => e.default).catch((e) => {
788
+ }), le = () => import("./inlined-script-0fd7eea7.js").then((e) => e.default).catch((e) => {
788
789
  throw console.error(
789
790
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
790
791
  e
791
792
  ), e;
792
- }), ce = () => import("./enable-editor-f32fd70b.js").then((e) => e.default).catch((e) => {
793
+ }), ce = () => import("./enable-editor-c377a256.js").then((e) => e.default).catch((e) => {
793
794
  throw console.error(
794
795
  "Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
795
796
  e
796
797
  ), e;
797
- }), de = () => import("./styles-fbe2ad34.js").then((e) => e.default).catch((e) => {
798
+ }), de = () => import("./styles-3945b4c7.js").then((e) => e.default).catch((e) => {
798
799
  throw console.error(
799
800
  "Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
800
801
  e
@@ -914,7 +915,7 @@ var ue = function() {
914
915
  null,
915
916
  null
916
917
  );
917
- const be = he.exports;
918
+ const ye = he.exports;
918
919
  export {
919
- be as default
920
+ ye as default
920
921
  };
@@ -0,0 +1,6 @@
1
+ "use strict";var l=require("./style.css");const c=require("./index-e56cba6d.cjs"),n=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),o=e=>Object.entries(e).map(([r,s])=>{if(typeof s=="string")return`${n(r)}: ${s};`}).filter(c.checkIsDefined),a=e=>o(e).join(`
2
+ `),i=({mediaQuery:e,className:t,styles:r})=>{const s=`.${t} {
3
+ ${a(r)}
4
+ }`;return e?`${e} {
5
+ ${s}
6
+ }`:s};exports.convertStyleMapToCSSArray=o;exports.createCssClass=i;
@@ -1,9 +1,10 @@
1
- import { c as o } from "./index-efdcc0ee.js";
1
+ import "./style.css";
2
+ import { c as o } from "./index-1fdc0dd8.js";
2
3
  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
4
  if (typeof e == "string")
4
5
  return `${c(r)}: ${e};`;
5
6
  }).filter(o), a = (s) => n(s).join(`
6
- `), i = ({
7
+ `), l = ({
7
8
  mediaQuery: s,
8
9
  className: t,
9
10
  styles: r
@@ -17,5 +18,5 @@ const c = (s) => s.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(
17
18
  };
18
19
  export {
19
20
  n as a,
20
- i as c
21
+ l as c
21
22
  };
@@ -1,6 +1,7 @@
1
+ import "./style.css";
1
2
  import { defineComponent as k } from "vue";
2
- import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-3fcbe332.js";
3
- import { e as S } from "./evaluate-834a9ea9.js";
3
+ import { r as w, m as p, T as y, l as f, _ as g, o as b, p as _, i as h, f as E, q as I, t as U, u as M, v as H, n as T } from "./index-1fdc0dd8.js";
4
+ import { e as S } from "./evaluate-2857c518.js";
4
5
  function C(n) {
5
6
  return Math.round(n * 1e3) / 1e3;
6
7
  }
@@ -43,7 +44,7 @@ const P = (n, e, t = !0) => {
43
44
  builderElementIndex: t && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(t) : void 0
44
45
  }
45
46
  };
46
- }, O = "0.7.6", N = () => {
47
+ }, O = "0.8.0", N = () => {
47
48
  w("insertMenu", {
48
49
  name: "_default",
49
50
  default: !0,
@@ -435,7 +436,7 @@ var L = function() {
435
436
  null,
436
437
  null
437
438
  );
438
- const J = V.exports;
439
+ const z = V.exports;
439
440
  export {
440
- J as default
441
+ z as default
441
442
  };
@@ -0,0 +1 @@
1
+ "use strict";var H=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("vue"),r=require("./index-e56cba6d.cjs"),m=require("./evaluate-5a5f1e1a.cjs");function f(n){return Math.round(n*1e3)/1e3}const v=(n,e,t=!0)=>{if(!(n instanceof HTMLElement))return null;let i=t?n:n.parentElement;do{if(!i)return null;if(e(i))return i}while(i=i.parentElement);return null},x=n=>v(n,e=>{const t=e.getAttribute("builder-id")||e.id;return(t==null?void 0:t.indexOf("builder-"))===0}),g=({event:n,target:e})=>{const t=e.getBoundingClientRect(),i=n.clientX-t.left,o=n.clientY-t.top,s=f(i/t.width),a=f(o/t.height);return{x:s,y:a}},R=n=>{const e=n.target,t=e&&x(e),i=(t==null?void 0:t.getAttribute("builder-id"))||(t==null?void 0:t.id);return{targetBuilderElement:i||void 0,metadata:{targetOffset:e?g({event:n,target:e}):void 0,builderTargetOffset:t?g({event:n,target:t}):void 0,builderElementIndex:t&&i?[].slice.call(document.getElementsByClassName(i)).indexOf(t):void 0}}},k="0.8.0",w=()=>{r.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let b=!1;const y=(n={})=>{var e,t;b||(b=!0,r.isBrowser()&&((e=window.parent)==null||e.postMessage({type:"builder.sdkInfo",data:{target:r.TARGET,version:k,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(t=window.parent)==null||t.postMessage({type:"builder.updateContent",data:{options:n}},"*"),window.addEventListener("message",({data:i})=>{var o,s;if(i!=null&&i.type)switch(i.type){case"builder.evaluate":{const a=i.data.text,l=i.data.arguments||[],c=i.data.id,C=new Function(a);let d,u=null;try{d=C.apply(null,l)}catch(h){u=h}u?(o=window.parent)==null||o.postMessage({type:"builder.evaluateError",data:{id:c,error:u.message}},"*"):d&&typeof d.then=="function"?d.then(h=>{var p;(p=window.parent)==null||p.postMessage({type:"builder.evaluateResult",data:{id:c,result:h}},"*")}).catch(console.error):(s=window.parent)==null||s.postMessage({type:"builder.evaluateResult",data:{result:d,id:c}},"*");break}}})))},_=S.defineComponent({name:"enable-editor",props:["builderContextSignal","model","context","canTrack","apiKey","locale","includeRefs","enrich","content","showContent"],data(){return{forceReRenderCount:0,lastUpdated:0,shouldSendResetCookie:!1,httpReqsData:{},clicked:!1,builderContext:r.builderContext}},provide(){const n=this;return{[r.builderContext.key]:n.builderContextSignal}},mounted(){(()=>{var t,i;if(r.isBrowser()){if(r.isEditing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initeditingbldr")),this.builderContextSignal.content&&r.getDefaultCanTrack(this.canTrack)){const s=(t=this.builderContextSignal.content)==null?void 0:t.testVariationId,a=(i=this.builderContextSignal.content)==null?void 0:i.id,l=this.apiKey;r._track({type:"impression",canTrack:!0,contentId:a,apiKey:l,variationId:s!==a?s:void 0})}r.isPreviewing()&&this.$refs.elementRef&&this.$refs.elementRef.dispatchEvent(new CustomEvent("initpreviewingbldr"))}})(),(()=>{this.apiKey||r.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),this.evaluateJsCode(),this.runHttpRequests(),this.emitStateUpdate()})()},watch:{onUpdateHook0:{handler(){this.content&&this.mergeNewContent(this.content)},immediate:!0},onUpdateHook1:{handler(){},immediate:!0},onUpdateHook2:{handler(){this.evaluateJsCode()},immediate:!0},onUpdateHook3:{handler(){this.runHttpRequests()},immediate:!0},onUpdateHook4:{handler(){this.emitStateUpdate()},immediate:!0}},unmounted(){r.isBrowser()&&(window.removeEventListener("message",this.processMessage),window.removeEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate))},computed:{onUpdateHook0(){return{0:this.content}},onUpdateHook1(){return{0:this.shouldSendResetCookie}},onUpdateHook2(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.jsCode,1:this.builderContextSignal.rootState}},onUpdateHook3(){var n,e;return{0:(e=(n=this.builderContextSignal.content)==null?void 0:n.data)==null?void 0:e.httpRequests}},onUpdateHook4(){return{0:this.builderContextSignal.rootState}}},methods:{mergeNewContent(n){var t,i,o,s,a;const e={...this.builderContextSignal.content,...n,data:{...(t=this.builderContextSignal.content)==null?void 0:t.data,...n==null?void 0:n.data},meta:{...(i=this.builderContextSignal.content)==null?void 0:i.meta,...n==null?void 0:n.meta,breakpoints:((o=n==null?void 0:n.meta)==null?void 0:o.breakpoints)||((a=(s=this.builderContextSignal.content)==null?void 0:s.meta)==null?void 0:a.breakpoints)}};this.builderContextSignal.content=e},processMessage(n){var t;const{data:e}=n;if(e)switch(e.type){case"builder.configureSdk":{const i=e.data,{breakpoints:o,contentId:s}=i;if(!s||s!==((t=this.builderContextSignal.content)==null?void 0:t.id))return;o&&this.mergeNewContent({meta:{breakpoints:o}}),this.forceReRenderCount=this.forceReRenderCount+1;break}case"builder.contentUpdate":{const i=e.data,o=i.key||i.alias||i.entry||i.modelName,s=i.data;o===this.model&&(this.mergeNewContent(s),this.forceReRenderCount=this.forceReRenderCount+1);break}}},evaluateJsCode(){var e,t;const n=(t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.jsCode;n&&m.evaluate({code:n,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState})},onClick(n){var e,t;if(this.builderContextSignal.content){const i=(e=this.builderContextSignal.content)==null?void 0:e.testVariationId,o=(t=this.builderContextSignal.content)==null?void 0:t.id;r._track({type:"click",canTrack:r.getDefaultCanTrack(this.canTrack),contentId:o,apiKey:this.apiKey,variationId:i!==o?i:void 0,...R(n),unique:!this.clicked})}this.clicked||(this.clicked=!0)},evalExpression(n){return n.replace(/{{([^}]+)}}/g,(e,t)=>m.evaluate({code:t,context:this.context||{},localState:void 0,rootState:this.builderContextSignal.rootState,rootSetState:this.builderContextSignal.rootSetState}))},handleRequest({url:n,key:e}){r.fetch(n).then(t=>t.json()).then(t=>{var o,s;const i={...this.builderContextSignal.rootState,[e]:t};(s=(o=this.builderContextSignal).rootSetState)==null||s.call(o,i),this.httpReqsData[e]=!0}).catch(t=>{console.error("error fetching dynamic data",n,t)})},runHttpRequests(){var e,t;const n=((t=(e=this.builderContextSignal.content)==null?void 0:e.data)==null?void 0:t.httpRequests)??{};Object.entries(n).forEach(([i,o])=>{if(o&&(!this.httpReqsData[i]||r.isEditing())){const s=this.evalExpression(o);this.handleRequest({url:s,key:i})}})},emitStateUpdate(){r.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:r.fastClone(this.builderContextSignal.rootState),ref:{name:this.model}}}))},elementRef_onIniteditingbldr(n){this.forceReRenderCount=this.forceReRenderCount+1,window.addEventListener("message",this.processMessage),w(),y({...this.locale?{locale:this.locale}:{},...this.includeRefs?{includeRefs:this.includeRefs}:{},...this.enrich?{enrich:this.enrich}:{}}),Object.values(this.builderContextSignal.componentInfos).forEach(e=>{var i;const t=r.createRegisterComponentMessage(e);(i=window.parent)==null||i.postMessage(t,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",this.emitStateUpdate)},elementRef_onInitpreviewingbldr(n){const e=new URL(location.href).searchParams,t=e.get("builder.preview"),i=e.get(`builder.preview.${t}`),o=e.get("apiKey")||e.get("builder.space");t===this.model&&o===this.apiKey&&(!this.content||i===this.content.id)&&r.fetchOneEntry({model:this.model,apiKey:this.apiKey,apiVersion:this.builderContextSignal.apiVersion}).then(s=>{s&&this.mergeNewContent(s)})},_classStringToObject(n){const e={};if(typeof n!="string")return e;const t=n.trim().split(/\s+/);for(const i of t)e[i]=!0;return e}}});var E=function(){var i,o,s;var e=this,t=e._self._c;return e._self._setupProxy,e.builderContextSignal.content?t("div",e._b({key:e.forceReRenderCount,ref:"elementRef",class:e._classStringToObject(`variant-${((i=e.content)==null?void 0:i.testVariationId)||((o=e.content)==null?void 0:o.id)}`),attrs:{"builder-content-id":(s=e.builderContextSignal.content)==null?void 0:s.id,"builder-model":e.model},on:{click:function(a){return e.onClick(a)},initeditingbldr:function(a){return e.elementRef_onIniteditingbldr(a)},initpreviewingbldr:function(a){return e.elementRef_onInitpreviewingbldr(a)}}},"div",{...e.showContent?{}:{hidden:!0,"aria-hidden":!0}},!1),[e._t("default")],2):e._e()},I=[],M=r.normalizeComponent(_,E,I,!1,null,null,null,null);const U=M.exports;exports.default=U;
@@ -1,4 +1,5 @@
1
- import { i as l, m as a, w as d, v as g } from "./index-efdcc0ee.js";
1
+ import "./style.css";
2
+ import { i as l, m as a, w as d, v as g } from "./index-1fdc0dd8.js";
2
3
  const f = ({
3
4
  builder: r,
4
5
  context: e,
@@ -48,7 +49,7 @@ function B(r, e, n) {
48
49
  });
49
50
  }
50
51
  const b = (r) => (a(), w(r));
51
- function E({
52
+ function y({
52
53
  code: r,
53
54
  context: e,
54
55
  localState: n,
@@ -82,5 +83,5 @@ function E({
82
83
  }
83
84
  }
84
85
  export {
85
- E as e
86
+ y as e
86
87
  };
@@ -0,0 +1 @@
1
+ "use strict";var m=require("./style.css");const t=require("./index-e56cba6d.cjs"),l=({builder:r,context:e,event:n,state:i})=>Object.entries({state:i,Builder:r,builder:r,context:e,event:n}),a=()=>({isEditing:t.isEditing(),isBrowser:t.isBrowser(),isServer:!t.isBrowser(),getUserAttributes:()=>t.getUserAttributes()}),d=(r,{isExpression:e=!0})=>e&&!(r.includes(";")||r.includes(" return ")||r.trim().startsWith("return "))?`return (${r});`:r,w=({code:r,builder:e,context:n,event:i,localState:s,rootSetState:u,rootState:g})=>{const c=l({builder:e,context:n,event:i,state:f(g,s,u)});return new Function(...c.map(([o])=>o),r)(...c.map(([,o])=>o))};function f(r,e,n){if(r===e)throw new Error("rootState === localState");return new Proxy(r,{get:(i,s)=>e&&s in e?e[s]:r[s],set:(i,s,u)=>{if(e&&s in e)throw new Error("Writing to local state is not allowed as it is read-only.");return r[s]=u,n==null||n(r),!0}})}const v=r=>(t.isBrowser(),w(r));function B({code:r,context:e,localState:n,rootState:i,rootSetState:s,event:u,isExpression:g=!0}){if(r===""){t.logger.warn("Skipping evaluation of empty code block.");return}const c={code:d(r,{isExpression:g}),builder:a(),context:e,event:u,rootSetState:s,rootState:i,localState:n};try{return v(c)}catch(o){t.logger.error("Failed code evaluation: "+o.message,{code:r});return}}exports.evaluate=B;
@@ -1,5 +1,6 @@
1
- import { T as n } from "./index-3fcbe332.js";
2
- import { e as s } from "./evaluate-834a9ea9.js";
1
+ import "./style.css";
2
+ import { T as n } from "./index-1fdc0dd8.js";
3
+ import { e as s } from "./evaluate-2857c518.js";
3
4
  const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
4
5
  code: e,
5
6
  context: t.context,
@@ -9,7 +10,7 @@ const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
9
10
  event: o,
10
11
  isExpression: !1
11
12
  });
12
- function S(e) {
13
+ function m(e) {
13
14
  const t = {}, o = e.block.actions ?? {};
14
15
  for (const r in o) {
15
16
  if (!o.hasOwnProperty(r))
@@ -31,5 +32,5 @@ function S(e) {
31
32
  return t;
32
33
  }
33
34
  export {
34
- S as g
35
+ m as g
35
36
  };
@@ -0,0 +1 @@
1
+ "use strict";var v=require("./style.css");const r=require("./index-e56cba6d.cjs"),s=require("./evaluate-5a5f1e1a.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
@@ -0,0 +1 @@
1
+ "use strict";var f=require("./style.css");const c=require("./index-e56cba6d.cjs"),i=require("./css-9cb1ef7e.cjs");function n(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=n(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return i.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
@@ -1,6 +1,7 @@
1
- import { T as o } from "./index-5e05bfe5.js";
2
- import { a } from "./css-fdcffefa.js";
3
- function n(e) {
1
+ import "./style.css";
2
+ import { T as o } from "./index-1fdc0dd8.js";
3
+ import { a } from "./css-bdeda4e4.js";
4
+ function i(e) {
4
5
  const t = {};
5
6
  if (typeof e != "string")
6
7
  return t;
@@ -9,25 +10,25 @@ function n(e) {
9
10
  t[r] = !0;
10
11
  return t;
11
12
  }
12
- function c(e) {
13
- return e.class = n(e.class), e;
13
+ function n(e) {
14
+ return e.class = i(e.class), e;
14
15
  }
15
- const i = (e) => ({
16
+ const c = (e) => ({
16
17
  href: e.href
17
18
  });
18
- function p({
19
+ function m({
19
20
  block: e,
20
21
  context: t
21
22
  }) {
22
23
  var r;
23
24
  const s = {
24
- ...i(e),
25
+ ...c(e),
25
26
  ...e.properties,
26
27
  "builder-id": e.id,
27
28
  style: e.style ? u(e.style) : void 0,
28
29
  class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
29
30
  };
30
- return c(s);
31
+ return n(s);
31
32
  }
32
33
  function u(e) {
33
34
  switch (o) {
@@ -44,5 +45,5 @@ function u(e) {
44
45
  }
45
46
  }
46
47
  export {
47
- p as g
48
+ m as g
48
49
  };