@builder.io/sdk-vue 0.7.2 → 0.7.4

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 +1 -1
  2. package/vue2/lib/browser/{block-750d8ed7.cjs → block-07c332e9.cjs} +2 -2
  3. package/vue2/lib/{edge/block-88cc78c4.js → browser/block-780edfb4.js} +7 -7
  4. package/vue2/lib/{node/block-styles-b1b9a610.js → browser/block-styles-16983926.js} +5 -5
  5. package/vue2/lib/{edge/block-styles-65d9a724.cjs → browser/block-styles-35789d73.cjs} +1 -1
  6. package/vue2/lib/browser/{block-wrapper-571b134c.cjs → block-wrapper-75ec69c0.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-f011d1f2.js → block-wrapper-fed601f8.js} +5 -5
  8. package/vue2/lib/browser/blocks/video/video.vue.d.ts +24 -2
  9. package/vue2/lib/{edge/blocks-wrapper-dcd7b27a.js → browser/blocks-wrapper-8be7f69e.js} +1 -1
  10. package/vue2/lib/{edge/blocks-wrapper-96489519.cjs → browser/blocks-wrapper-f0ace194.cjs} +1 -1
  11. package/vue2/lib/{edge/component-ref-9b2c6138.js → browser/component-ref-82f7b8e8.js} +6 -6
  12. package/vue2/lib/{edge/component-ref-0bf4a838.cjs → browser/component-ref-f215189b.cjs} +1 -1
  13. package/vue2/lib/browser/components/content/content.types.d.ts +0 -4
  14. package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
  15. package/vue2/lib/browser/components/content-variants/helpers.d.ts +3 -3
  16. package/vue2/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
  17. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  18. package/vue2/lib/{edge/content-ad722031.js → browser/content-07544a0e.js} +21 -22
  19. package/vue2/lib/browser/{content-859f190b.cjs → content-a7a7fc9d.cjs} +1 -1
  20. package/vue2/lib/{node/css-44cbcf3f.cjs → browser/css-76c87435.cjs} +1 -1
  21. package/vue2/lib/browser/{css-67efb2d0.js → css-ae5a66d5.js} +1 -1
  22. package/vue2/lib/browser/enable-editor-6c32ef6e.cjs +1 -0
  23. package/vue2/lib/browser/{enable-editor-4054558e.js → enable-editor-760639f0.js} +15 -16
  24. package/vue2/lib/browser/{evaluate-28c12253.js → evaluate-a47066df.js} +1 -1
  25. package/vue2/lib/browser/{evaluate-6cd69c12.cjs → evaluate-a7ecae47.cjs} +1 -1
  26. package/vue2/lib/browser/{get-block-actions-f19965b6.cjs → get-block-actions-386da520.cjs} +1 -1
  27. package/vue2/lib/{node/get-block-actions-1a6b19ce.js → browser/get-block-actions-b8cf2dfe.js} +2 -2
  28. package/vue2/lib/browser/{get-block-properties-a5f2574c.js → get-block-properties-bc4c7be9.js} +2 -2
  29. package/vue2/lib/{node/get-block-properties-2204d735.cjs → browser/get-block-properties-ff494f28.cjs} +1 -1
  30. package/vue2/lib/browser/{get-processed-block-981ce262.cjs → get-processed-block-00d8b4d9.cjs} +1 -1
  31. package/vue2/lib/browser/{get-processed-block-9b23550f.js → get-processed-block-fcf89b2f.js} +2 -2
  32. package/vue2/lib/{node/index-43273102.js → browser/index-2e217cde.js} +390 -345
  33. package/vue2/lib/browser/index-97feec80.cjs +124 -0
  34. package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
  35. package/vue2/lib/browser/index.cjs +1 -1
  36. package/vue2/lib/browser/index.js +1 -1
  37. package/vue2/lib/{edge/inlined-script-58b1138d.js → browser/inlined-script-0bb5d32b.js} +2 -2
  38. package/vue2/lib/browser/inlined-script-b7ea11cc.cjs +1 -0
  39. package/vue2/lib/{node/inlined-styles-73c1efea.cjs → browser/inlined-styles-68fc206b.cjs} +1 -1
  40. package/vue2/lib/{node/inlined-styles-f35650e9.js → browser/inlined-styles-e2e0a10c.js} +1 -1
  41. package/vue2/lib/{node/interactive-element-07235e63.cjs → browser/interactive-element-d3c5523b.cjs} +1 -1
  42. package/vue2/lib/{node/interactive-element-22405343.js → browser/interactive-element-dff8fe39.js} +5 -5
  43. package/vue2/lib/browser/{repeated-block-49fef627.cjs → repeated-block-07720e6b.cjs} +1 -1
  44. package/vue2/lib/{node/repeated-block-53bf7a45.js → browser/repeated-block-d24899a4.js} +2 -2
  45. package/vue2/lib/{node/styles-6a9d7ee1.cjs → browser/styles-13523f01.cjs} +2 -2
  46. package/vue2/lib/{node/styles-c2fd2724.js → browser/styles-c7b3d8ac.js} +2 -2
  47. package/vue2/lib/edge/{block-85fe2549.cjs → block-05cd2d1a.cjs} +2 -2
  48. package/vue2/lib/{browser/block-86d82810.js → edge/block-bd104a74.js} +7 -7
  49. package/vue2/lib/{node/block-styles-258f0e47.cjs → edge/block-styles-76f792ef.cjs} +1 -1
  50. package/vue2/lib/edge/{block-styles-9140aecf.js → block-styles-abd07e9a.js} +5 -5
  51. package/vue2/lib/{node/block-wrapper-1bdc3ca4.js → edge/block-wrapper-72353851.js} +5 -5
  52. package/vue2/lib/edge/{block-wrapper-e6392713.cjs → block-wrapper-c9fef722.cjs} +1 -1
  53. package/vue2/lib/edge/blocks/video/video.vue.d.ts +24 -2
  54. package/vue2/lib/{browser/blocks-wrapper-1d620d76.cjs → edge/blocks-wrapper-422482b9.cjs} +1 -1
  55. package/vue2/lib/{browser/blocks-wrapper-33f35ea5.js → edge/blocks-wrapper-44eb34d1.js} +1 -1
  56. package/vue2/lib/{node/component-ref-ccb3e639.js → edge/component-ref-73669490.js} +6 -6
  57. package/vue2/lib/{node/component-ref-5be913d9.cjs → edge/component-ref-823a3ade.cjs} +1 -1
  58. package/vue2/lib/edge/components/content/content.types.d.ts +0 -4
  59. package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
  60. package/vue2/lib/edge/components/content-variants/helpers.d.ts +3 -3
  61. package/vue2/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
  62. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  63. package/vue2/lib/{node/content-8b7678bc.cjs → edge/content-cebdf20d.cjs} +1 -1
  64. package/vue2/lib/{browser/content-dc49d77b.js → edge/content-db69a308.js} +21 -22
  65. package/vue2/lib/edge/{css-5bd5388a.js → css-54e4ec80.js} +1 -1
  66. package/vue2/lib/{browser/css-a19d330c.cjs → edge/css-dabe7580.cjs} +1 -1
  67. package/vue2/lib/edge/enable-editor-9109594a.cjs +1 -0
  68. package/vue2/lib/{node/enable-editor-8b4a5b45.js → edge/enable-editor-d335545f.js} +15 -16
  69. package/vue2/lib/edge/{evaluate-7661cdf7.cjs → evaluate-10ad6e1c.cjs} +1 -1
  70. package/vue2/lib/edge/{evaluate-79ba5368.js → evaluate-99370fa6.js} +1 -1
  71. package/vue2/lib/{browser/get-block-actions-63de56e5.js → edge/get-block-actions-228eef05.js} +2 -2
  72. package/vue2/lib/edge/{get-block-actions-4ed31703.cjs → get-block-actions-96abe3ea.cjs} +1 -1
  73. package/vue2/lib/edge/{get-block-properties-c72eb3c0.js → get-block-properties-5ec0b641.js} +2 -2
  74. package/vue2/lib/{browser/get-block-properties-21c833e6.cjs → edge/get-block-properties-e2643a11.cjs} +1 -1
  75. package/vue2/lib/edge/{get-processed-block-e8256b7e.cjs → get-processed-block-9b3d9010.cjs} +1 -1
  76. package/vue2/lib/{node/get-processed-block-78fabb02.js → edge/get-processed-block-e5ee0bac.js} +2 -2
  77. package/vue2/lib/edge/{index-4cf9f60c.js → index-31aedf87.js} +390 -345
  78. package/vue2/lib/edge/index-f007c959.cjs +124 -0
  79. package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
  80. package/vue2/lib/edge/index.cjs +1 -1
  81. package/vue2/lib/edge/index.js +1 -1
  82. package/vue2/lib/{node/inlined-script-da97caa2.js → edge/inlined-script-1fbdc086.js} +2 -2
  83. package/vue2/lib/edge/inlined-script-d732d8ca.cjs +1 -0
  84. package/vue2/lib/{browser/inlined-styles-9637cb58.cjs → edge/inlined-styles-49ba2b1e.cjs} +1 -1
  85. package/vue2/lib/edge/{inlined-styles-8c6cdbc5.js → inlined-styles-ba3931a6.js} +1 -1
  86. package/vue2/lib/{browser/interactive-element-d37313e0.cjs → edge/interactive-element-368f9d0d.cjs} +1 -1
  87. package/vue2/lib/{browser/interactive-element-c87a6c35.js → edge/interactive-element-c334da11.js} +5 -5
  88. package/vue2/lib/{browser/repeated-block-231b11b1.js → edge/repeated-block-731fdea1.js} +2 -2
  89. package/vue2/lib/edge/{repeated-block-8721baa8.cjs → repeated-block-fcdda74c.cjs} +1 -1
  90. package/vue2/lib/{browser/styles-6a6b8114.cjs → edge/styles-3f7ff927.cjs} +2 -2
  91. package/vue2/lib/{browser/styles-28f7ec70.js → edge/styles-8c4ee58d.js} +2 -2
  92. package/vue2/lib/node/{block-6c3981dc.js → block-ac098304.js} +7 -7
  93. package/vue2/lib/node/{block-575160ba.cjs → block-e30000ea.cjs} +2 -2
  94. package/vue2/lib/{browser/block-styles-132270d0.js → node/block-styles-59790d4f.js} +5 -5
  95. package/vue2/lib/{browser/block-styles-5b5e9888.cjs → node/block-styles-b7c0d773.cjs} +1 -1
  96. package/vue2/lib/{edge/block-wrapper-36a4a767.js → node/block-wrapper-584442d6.js} +5 -5
  97. package/vue2/lib/node/{block-wrapper-fed00059.cjs → block-wrapper-fc557c97.cjs} +1 -1
  98. package/vue2/lib/node/blocks/video/video.vue.d.ts +24 -2
  99. package/vue2/lib/node/{blocks-wrapper-031887f0.js → blocks-wrapper-3c044bbd.js} +1 -1
  100. package/vue2/lib/node/{blocks-wrapper-80b3a22f.cjs → blocks-wrapper-65858112.cjs} +1 -1
  101. package/vue2/lib/{browser/component-ref-d6254a68.js → node/component-ref-a6bc774c.js} +6 -6
  102. package/vue2/lib/{browser/component-ref-26a164ea.cjs → node/component-ref-e44e994d.cjs} +1 -1
  103. package/vue2/lib/node/components/content/content.types.d.ts +0 -4
  104. package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
  105. package/vue2/lib/node/components/content-variants/helpers.d.ts +3 -3
  106. package/vue2/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
  107. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  108. package/vue2/lib/node/{content-f80acd05.js → content-0c402bc4.js} +21 -22
  109. package/vue2/lib/{edge/content-199e7143.cjs → node/content-df8168e7.cjs} +1 -1
  110. package/vue2/lib/{edge/css-05af2335.cjs → node/css-41ae8b09.cjs} +1 -1
  111. package/vue2/lib/node/{css-ad18a8ab.js → css-6d74c64e.js} +1 -1
  112. package/vue2/lib/{edge/enable-editor-a32a425e.js → node/enable-editor-4f107d4f.js} +15 -16
  113. package/vue2/lib/node/enable-editor-9d4c56f2.cjs +1 -0
  114. package/vue2/lib/node/{evaluate-52887aac.js → evaluate-9ad3f2db.js} +1 -1
  115. package/vue2/lib/node/{evaluate-19fac854.cjs → evaluate-d4f7178b.cjs} +1 -1
  116. package/vue2/lib/node/{get-block-actions-65751661.cjs → get-block-actions-5cdee638.cjs} +1 -1
  117. package/vue2/lib/{edge/get-block-actions-5ae9dffc.js → node/get-block-actions-95e00934.js} +2 -2
  118. package/vue2/lib/node/{get-block-properties-cbc0612e.js → get-block-properties-a14bae21.js} +2 -2
  119. package/vue2/lib/{edge/get-block-properties-e0553a33.cjs → node/get-block-properties-c3729a6d.cjs} +1 -1
  120. package/vue2/lib/node/{get-processed-block-902c8e72.cjs → get-processed-block-72cc0b71.cjs} +1 -1
  121. package/vue2/lib/{edge/get-processed-block-f3dbc4e7.js → node/get-processed-block-f8cccb85.js} +2 -2
  122. package/vue2/lib/{browser/index-f82eab8f.js → node/index-0d27ca35.js} +390 -345
  123. package/vue2/lib/node/index-0fa06fd7.cjs +124 -0
  124. package/vue2/lib/node/index-helpers/blocks-exports.d.ts +1 -1
  125. package/vue2/lib/node/index.cjs +1 -1
  126. package/vue2/lib/node/index.js +1 -1
  127. package/vue2/lib/node/inlined-script-1f196594.cjs +1 -0
  128. package/vue2/lib/{browser/inlined-script-2d16b8db.js → node/inlined-script-e3588cc8.js} +2 -2
  129. package/vue2/lib/{browser/inlined-styles-fbbf7fd9.js → node/inlined-styles-120a3b8e.js} +1 -1
  130. package/vue2/lib/{edge/inlined-styles-a1951810.cjs → node/inlined-styles-fffaa510.cjs} +1 -1
  131. package/vue2/lib/{edge/interactive-element-1a5ee50b.cjs → node/interactive-element-a31daba4.cjs} +1 -1
  132. package/vue2/lib/{edge/interactive-element-2f0d2294.js → node/interactive-element-e01ee0b1.js} +5 -5
  133. package/vue2/lib/{edge/repeated-block-a32b01bc.js → node/repeated-block-0f75a865.js} +2 -2
  134. package/vue2/lib/node/{repeated-block-771e5e8b.cjs → repeated-block-4d665c95.cjs} +1 -1
  135. package/vue2/lib/{edge/styles-b2c8a706.cjs → node/styles-2ac48a81.cjs} +2 -2
  136. package/vue2/lib/{edge/styles-eab59896.js → node/styles-5804f1aa.js} +2 -2
  137. package/vue2/package.json +7 -1
  138. package/vue3/lib/{edge/block-wrapper.4bb452b4.js → browser/block-wrapper.08f5700f.js} +2 -2
  139. package/vue3/lib/browser/{block-wrapper.fc71d4d3.cjs → block-wrapper.90c9936a.cjs} +1 -1
  140. package/vue3/lib/browser/blocks/video/video.vue.d.ts +23 -1
  141. package/vue3/lib/{edge/component-ref.215d8eb3.js → browser/component-ref.5f90d51a.js} +2 -2
  142. package/vue3/lib/browser/{component-ref.f8946ad7.cjs → component-ref.b4629079.cjs} +1 -1
  143. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -3
  144. package/vue3/lib/browser/components/content/content.types.d.ts +0 -4
  145. package/vue3/lib/browser/components/content/content.vue.d.ts +0 -3
  146. package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +2 -4
  147. package/vue3/lib/browser/components/content-variants/helpers.d.ts +3 -3
  148. package/vue3/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
  149. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  150. package/vue3/lib/{edge/get-block-actions.32987a91.js → browser/get-block-actions.d21cdbf2.js} +1 -1
  151. package/vue3/lib/{node/get-block-actions.3bf73664.cjs → browser/get-block-actions.f66d55a6.cjs} +1 -1
  152. package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
  153. package/vue3/lib/browser/index.231f04fb.cjs +161 -0
  154. package/vue3/lib/browser/{index.bd816233.js → index.2dd045c5.js} +802 -735
  155. package/vue3/lib/browser/index.cjs +1 -1
  156. package/vue3/lib/browser/index.js +1 -1
  157. package/vue3/lib/{edge/repeated-block.b5d1a5b6.cjs → browser/repeated-block.3739c1b9.cjs} +1 -1
  158. package/vue3/lib/{edge/repeated-block.d1e4f878.js → browser/repeated-block.c9323192.js} +2 -2
  159. package/vue3/lib/{browser/block-wrapper.32fa4b39.js → edge/block-wrapper.7d4dfc7f.js} +2 -2
  160. package/vue3/lib/edge/{block-wrapper.d36a195b.cjs → block-wrapper.e09cbe94.cjs} +1 -1
  161. package/vue3/lib/edge/blocks/video/video.vue.d.ts +23 -1
  162. package/vue3/lib/edge/{component-ref.09c0c561.cjs → component-ref.2ad33c60.cjs} +1 -1
  163. package/vue3/lib/{browser/component-ref.52b4ab91.js → edge/component-ref.4961077d.js} +2 -2
  164. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -3
  165. package/vue3/lib/edge/components/content/content.types.d.ts +0 -4
  166. package/vue3/lib/edge/components/content/content.vue.d.ts +0 -3
  167. package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +2 -4
  168. package/vue3/lib/edge/components/content-variants/helpers.d.ts +3 -3
  169. package/vue3/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
  170. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  171. package/vue3/lib/{browser/get-block-actions.720b385e.cjs → edge/get-block-actions.04020988.cjs} +1 -1
  172. package/vue3/lib/{browser/get-block-actions.33a95ae9.js → edge/get-block-actions.32efcc46.js} +1 -1
  173. package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
  174. package/vue3/lib/edge/{index.cc0efb3b.js → index.55d20937.js} +1242 -1175
  175. package/vue3/lib/edge/index.62561aef.cjs +181 -0
  176. package/vue3/lib/edge/index.cjs +1 -1
  177. package/vue3/lib/edge/index.js +1 -1
  178. package/vue3/lib/{browser/repeated-block.41d43763.js → edge/repeated-block.7e02873b.js} +2 -2
  179. package/vue3/lib/{browser/repeated-block.4bb78d4d.cjs → edge/repeated-block.807172cf.cjs} +1 -1
  180. package/vue3/lib/node/{block-wrapper.027e2e58.cjs → block-wrapper.36bd8466.cjs} +1 -1
  181. package/vue3/lib/node/{block-wrapper.1f5bec88.js → block-wrapper.cb167bf8.js} +2 -2
  182. package/vue3/lib/node/blocks/video/video.vue.d.ts +23 -1
  183. package/vue3/lib/node/{component-ref.d2c6eedf.js → component-ref.c0f35899.js} +2 -2
  184. package/vue3/lib/node/{component-ref.5c293120.cjs → component-ref.d917bb03.cjs} +1 -1
  185. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -3
  186. package/vue3/lib/node/components/content/content.types.d.ts +0 -4
  187. package/vue3/lib/node/components/content/content.vue.d.ts +0 -3
  188. package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +2 -4
  189. package/vue3/lib/node/components/content-variants/helpers.d.ts +3 -3
  190. package/vue3/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
  191. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  192. package/vue3/lib/{edge/get-block-actions.b7d0a3c2.cjs → node/get-block-actions.50ea0112.cjs} +1 -1
  193. package/vue3/lib/node/{get-block-actions.68279ccf.js → get-block-actions.912d8c9e.js} +1 -1
  194. package/vue3/lib/node/index-helpers/blocks-exports.d.ts +1 -1
  195. package/vue3/lib/node/index.804c5a4a.cjs +201 -0
  196. package/vue3/lib/node/index.cjs +1 -1
  197. package/vue3/lib/node/{index.bb1871d7.js → index.f6a9eadf.js} +765 -698
  198. package/vue3/lib/node/index.js +1 -1
  199. package/vue3/lib/node/{repeated-block.6533598e.cjs → repeated-block.20e89559.cjs} +1 -1
  200. package/vue3/lib/node/{repeated-block.c5b9936f.js → repeated-block.a497caff.js} +2 -2
  201. package/vue3/package.json +7 -1
  202. package/vue2/lib/browser/enable-editor-ed3f647e.cjs +0 -1
  203. package/vue2/lib/browser/index-63eb9f8d.cjs +0 -32
  204. package/vue2/lib/browser/inlined-script-95114af2.cjs +0 -1
  205. package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +0 -1
  206. package/vue2/lib/edge/index-946de873.cjs +0 -32
  207. package/vue2/lib/edge/inlined-script-cd8bf7d3.cjs +0 -1
  208. package/vue2/lib/node/enable-editor-405441b9.cjs +0 -1
  209. package/vue2/lib/node/index-d8e34fec.cjs +0 -32
  210. package/vue2/lib/node/inlined-script-82af82d4.cjs +0 -1
  211. package/vue3/lib/browser/index.abbd01ce.cjs +0 -69
  212. package/vue3/lib/edge/index.ceec697c.cjs +0 -89
  213. package/vue3/lib/node/index.44e0d18b.cjs +0 -109
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.2",
4
+ "version": "0.7.4",
5
5
  "main": "./vue3/lib/node/index.cjs",
6
6
  "module": "./vue3/lib/node/index.js",
7
7
  "type": "module",
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-981ce262.cjs"),m=require("./evaluate-6cd69c12.cjs"),d=require("./index-63eb9f8d.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("./get-processed-block-00d8b4d9.cjs"),m=require("./evaluate-a7ecae47.cjs"),d=require("./index-97feec80.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-5b5e9888.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}),B=()=>Promise.resolve().then(()=>require("./block-wrapper-571b134c.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}),g=()=>Promise.resolve().then(()=>require("./component-ref-26a164ea.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-49fef627.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":g,"block-wrapper":B,"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(){return this.repeatItem?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(){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",{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-35789d73.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}),B=()=>Promise.resolve().then(()=>require("./block-wrapper-75ec69c0.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}),g=()=>Promise.resolve().then(()=>require("./component-ref-f215189b.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-07720e6b.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":g,"block-wrapper":B,"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(){return this.repeatItem?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(){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",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}):e.isEmptyHtmlElement(e.Tag)&&e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!1}}):!e.isEmptyHtmlElement(e.Tag)&&e.repeatItem&&e.canShowBlock?o("div",{staticClass:"vue2-root-element-workaround"},e._l(e.repeatItem,function(n,c){return o("repeated-block",{key:c,attrs:{repeatContext:n.context,block:n.block,registeredComponents:e.registeredComponents}})}),1):e.canShowBlock?o("block-wrapper",{attrs:{Wrapper:e.Tag,block:e.processedBlock,context:e.context,hasChildren:!0}},[o("component-ref",{attrs:{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive}}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block",{key:"block-"+n.id,attrs:{block:n,context:e.childrenContext,registeredComponents:e.registeredComponents}})}),e._l(e.childrenWithoutParentComponent,function(n,c){return o("block-styles",{key:"block-style-"+n.id,attrs:{block:n,context:e.childrenContext}})})],2):e._e()},R=[],y=d.normalizeComponent(P,x,R,!1,null,null,null,null);const v=y.exports;exports.default=v;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as a } from "vue";
2
- import { g as p } from "./get-processed-block-f3dbc4e7.js";
3
- import { e as m } from "./evaluate-79ba5368.js";
4
- import { n as d } from "./index-4cf9f60c.js";
2
+ import { g as p } from "./get-processed-block-fcf89b2f.js";
3
+ import { e as m } from "./evaluate-a47066df.js";
4
+ import { n as d } from "./index-2e217cde.js";
5
5
  function h(t) {
6
6
  var e;
7
7
  return {
@@ -68,22 +68,22 @@ const k = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen",
68
68
  },
69
69
  block: r
70
70
  }));
71
- }, C = () => import("./block-styles-9140aecf.js").then((t) => t.default).catch((t) => {
71
+ }, C = () => import("./block-styles-16983926.js").then((t) => t.default).catch((t) => {
72
72
  throw console.error(
73
73
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
74
74
  t
75
75
  ), t;
76
- }), B = () => import("./block-wrapper-36a4a767.js").then((t) => t.default).catch((t) => {
76
+ }), B = () => import("./block-wrapper-fed601f8.js").then((t) => t.default).catch((t) => {
77
77
  throw console.error(
78
78
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
79
79
  t
80
80
  ), t;
81
- }), g = () => import("./component-ref-9b2c6138.js").then((t) => t.default).catch((t) => {
81
+ }), g = () => import("./component-ref-82f7b8e8.js").then((t) => t.default).catch((t) => {
82
82
  throw console.error(
83
83
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
84
84
  t
85
85
  ), t;
86
- }), S = () => import("./repeated-block-a32b01bc.js").then((t) => t.default).catch((t) => {
86
+ }), S = () => import("./repeated-block-d24899a4.js").then((t) => t.default).catch((t) => {
87
87
  throw console.error(
88
88
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
89
89
  t
@@ -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-43273102.js";
3
- import { g as u } from "./get-processed-block-78fabb02.js";
4
- import { c as n } from "./css-ad18a8ab.js";
5
- import "./evaluate-52887aac.js";
6
- const k = () => import("./inlined-styles-f35650e9.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-2e217cde.js";
3
+ import { g as u } from "./get-processed-block-fcf89b2f.js";
4
+ import { c as n } from "./css-ae5a66d5.js";
5
+ import "./evaluate-a47066df.js";
6
+ const k = () => import("./inlined-styles-e2e0a10c.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-946de873.cjs"),d=require("./get-processed-block-e8256b7e.cjs"),c=require("./css-05af2335.cjs");require("./evaluate-7661cdf7.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-a1951810.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-97feec80.cjs"),d=require("./get-processed-block-00d8b4d9.cjs"),c=require("./css-76c87435.cjs");require("./evaluate-a7ecae47.cjs");const p=()=>Promise.resolve().then(()=>require("./inlined-styles-68fc206b.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-f19965b6.cjs"),c=require("./get-block-properties-21c833e6.cjs"),n=require("./index-63eb9f8d.cjs");require("./evaluate-6cd69c12.cjs");require("./css-a19d330c.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-386da520.cjs"),c=require("./get-block-properties-ff494f28.cjs"),n=require("./index-97feec80.cjs");require("./evaluate-a7ecae47.cjs");require("./css-76c87435.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-63de56e5.js";
3
- import { g as c } from "./get-block-properties-a5f2574c.js";
4
- import { n } from "./index-f82eab8f.js";
5
- import "./evaluate-28c12253.js";
6
- import "./css-67efb2d0.js";
2
+ import { g as r } from "./get-block-actions-b8cf2dfe.js";
3
+ import { g as c } from "./get-block-properties-bc4c7be9.js";
4
+ import { n } from "./index-2e217cde.js";
5
+ import "./evaluate-a47066df.js";
6
+ import "./css-ae5a66d5.js";
7
7
  const a = e({
8
8
  name: "block-wrapper",
9
9
  props: ["Wrapper", "block", "context", "hasChildren"],
@@ -1,3 +1,4 @@
1
+ import type { BuilderBlock } from "../../types/builder-block.js";
1
2
  export interface VideoProps {
2
3
  attributes?: any;
3
4
  video?: string;
@@ -14,11 +15,17 @@ export interface VideoProps {
14
15
  position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
15
16
  posterImage?: string;
16
17
  lazyLoad?: boolean;
18
+ children?: any;
19
+ fitContent?: boolean;
20
+ builderBlock?: BuilderBlock;
17
21
  }
18
22
  declare const _default: import("vue").DefineComponent<Readonly<{
19
23
  video?: any;
20
24
  attributes?: any;
25
+ aspectRatio?: any;
21
26
  position?: any;
27
+ builderBlock?: any;
28
+ fitContent?: any;
22
29
  autoPlay?: any;
23
30
  muted?: any;
24
31
  controls?: any;
@@ -27,6 +34,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
27
34
  preload?: any;
28
35
  fit?: any;
29
36
  posterImage?: any;
37
+ lazyLoad?: any;
30
38
  }>, {}, {}, {
31
39
  videoProps(): {
32
40
  playsInline?: boolean | undefined;
@@ -35,11 +43,20 @@ declare const _default: import("vue").DefineComponent<Readonly<{
35
43
  muted?: boolean | undefined;
36
44
  autoPlay?: boolean | undefined;
37
45
  };
38
- spreadProps(): any;
39
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
46
+ spreadProps(): {
47
+ playsInline?: boolean | undefined;
48
+ loop?: boolean | undefined;
49
+ controls?: boolean | undefined;
50
+ muted?: boolean | undefined;
51
+ autoPlay?: boolean | undefined;
52
+ };
53
+ }, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
40
54
  video?: any;
41
55
  attributes?: any;
56
+ aspectRatio?: any;
42
57
  position?: any;
58
+ builderBlock?: any;
59
+ fitContent?: any;
43
60
  autoPlay?: any;
44
61
  muted?: any;
45
62
  controls?: any;
@@ -48,10 +65,14 @@ declare const _default: import("vue").DefineComponent<Readonly<{
48
65
  preload?: any;
49
66
  fit?: any;
50
67
  posterImage?: any;
68
+ lazyLoad?: any;
51
69
  }>>>, {
52
70
  readonly video?: any;
53
71
  readonly attributes?: any;
72
+ readonly aspectRatio?: any;
54
73
  readonly position?: any;
74
+ readonly builderBlock?: any;
75
+ readonly fitContent?: any;
55
76
  readonly autoPlay?: any;
56
77
  readonly muted?: any;
57
78
  readonly controls?: any;
@@ -60,5 +81,6 @@ declare const _default: import("vue").DefineComponent<Readonly<{
60
81
  readonly preload?: any;
61
82
  readonly fit?: any;
62
83
  readonly posterImage?: any;
84
+ readonly lazyLoad?: any;
63
85
  }>;
64
86
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o } from "vue";
2
- import { i as r, n as a } from "./index-4cf9f60c.js";
2
+ import { i as r, n as a } from "./index-2e217cde.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 o=require("vue"),r=require("./index-946de873.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-97feec80.cjs"),a=o.defineComponent({name:"builder-blocks-wrapper",props:["blocks","parent","path","styleProp"],computed:{className(){var t;return"builder-blocks"+((t=this.blocks)!=null&&t.length?"":" no-blocks")}},methods:{onClick(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},onMouseEnter(){var t,e;r.isEditing()&&!((t=this.blocks)!=null&&t.length)&&((e=window.parent)==null||e.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.path}},"*"))},_classStringToObject(t){const e={};if(typeof t!="string")return e;const s=t.trim().split(/\s+/);for(const n of s)e[n]=!0;return e}}});var i=function(){var e=this,s=e._self._c;return e._self._setupProxy,s("div",e._b({class:e._classStringToObject(e.className+" div-tqyw9m0iue"),style:e.styleProp,attrs:{"builder-path":e.path,"builder-parent-id":e.parent},on:{click:function(n){return e.onClick()},mouseenter:function(n){return e.onMouseEnter()},keypress:function(n){return e.onClick()}}},"div",{},!1),[e._t("default")],2)},l=[],c=r.normalizeComponent(a,i,l,!1,null,"a3106f07",null,null);const p=c.exports;exports.default=p;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p } from "vue";
2
- import { g as s } from "./get-block-properties-c72eb3c0.js";
3
- import { n as a } from "./index-4cf9f60c.js";
4
- import "./css-5bd5388a.js";
2
+ import { g as s } from "./get-block-properties-bc4c7be9.js";
3
+ import { n as a } from "./index-2e217cde.js";
4
+ import "./css-ae5a66d5.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-88cc78c4.js").then((t) => t.default).catch((t) => {
30
+ }, u = () => import("./block-780edfb4.js").then((t) => t.default).catch((t) => {
31
31
  throw console.error(
32
32
  "Error while attempting to dynamically import component Block at ../../block.vue",
33
33
  t
34
34
  ), t;
35
- }), f = () => import("./block-styles-9140aecf.js").then((t) => t.default).catch((t) => {
35
+ }), f = () => import("./block-styles-16983926.js").then((t) => t.default).catch((t) => {
36
36
  throw console.error(
37
37
  "Error while attempting to dynamically import component BlockStyles at ../block-styles.vue",
38
38
  t
39
39
  ), t;
40
- }), c = () => import("./interactive-element-2f0d2294.js").then((t) => t.default).catch((t) => {
40
+ }), c = () => import("./interactive-element-dff8fe39.js").then((t) => t.default).catch((t) => {
41
41
  throw console.error(
42
42
  "Error while attempting to dynamically import component InteractiveElement at ../interactive-element.vue",
43
43
  t
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-e0553a33.cjs"),a=require("./index-946de873.cjs");require("./css-05af2335.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-85fe2549.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-65d9a724.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-1a5ee50b.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./get-block-properties-ff494f28.cjs"),a=require("./index-97feec80.cjs");require("./css-76c87435.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-07c332e9.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-35789d73.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-d3c5523b.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;
@@ -2,10 +2,6 @@ import type { BuilderRenderState } from '../../context/types.js';
2
2
  import type { EnforcePartials } from '../../types/enforced-partials.js';
3
3
  import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
4
4
  interface InternalRenderProps {
5
- /**
6
- * TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
7
- */
8
- classNameProp: string | undefined;
9
5
  showContent: boolean;
10
6
  isSsrAbTest: boolean;
11
7
  }
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
17
17
  getScriptString: () => string;
18
18
  getVariants: (content: import("../../helpers/nullable.js").Nullable<import("../../types/builder-content.js").BuilderContent>) => any;
19
19
  }, {
20
- variantScriptStr(): string;
20
+ updateCookieAndStylesScriptStr(): string;
21
21
  hideVariantsStyleString(): any;
22
22
  defaultContent(): any;
23
23
  }, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
@@ -1,7 +1,7 @@
1
1
  import type { Nullable } from '../../helpers/nullable.js';
2
2
  import type { BuilderContent } from '../../types/builder-content.js';
3
3
  export declare const getVariants: (content: Nullable<BuilderContent>) => any;
4
- export declare const checkShouldRunVariants: ({ canTrack, content }: {
4
+ export declare const checkShouldRenderVariants: ({ canTrack, content }: {
5
5
  canTrack: Nullable<boolean>;
6
6
  content: Nullable<BuilderContent>;
7
7
  }) => boolean;
@@ -10,8 +10,8 @@ type VariantData = {
10
10
  testRatio?: number;
11
11
  };
12
12
  export declare const getScriptString: () => string;
13
- export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
14
- export declare const getRenderContentScriptString: ({ contentId, variationId }: {
13
+ export declare const getUpdateCookieAndStylesScript: (variants: VariantData[], contentId: string) => string;
14
+ export declare const getUpdateVariantVisibilityScript: ({ contentId, variationId }: {
15
15
  variationId: string;
16
16
  contentId: string;
17
17
  }) => string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * WARNING: This file contains functions that get stringified and inlined into the HTML at build-time.
3
+ * They cannot import anything.
4
+ */
5
+ /**
6
+ * For more information on how this works,
7
+ * see our [SSR A/B Test Docs](https://github.com/BuilderIO/builder/tree/main/packages/sdks/src/SSR_AB_TEST.md)
8
+ */
9
+ /**
10
+ * For more information on how this works,
11
+ * see our [SSR A/B Test Docs](https://github.com/BuilderIO/builder/tree/main/packages/sdks/src/SSR_AB_TEST.md)
12
+ */
13
+ export declare const UPDATE_COOKIES_AND_STYLES_SCRIPT = "function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {\n function getAndSetVariantId() {\n function setCookie(name, value, days) {\n let expires = '';\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n expires = '; expires=' + date.toUTCString();\n }\n document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${contentId}`;\n const variantInCookie = getCookie(cookieName);\n const availableIDs = variants.map(vr => vr.id).concat(contentId);\n if (variantInCookie && availableIDs.includes(variantInCookie)) {\n return variantInCookie;\n }\n let n = 0;\n const random = Math.random();\n for (let i = 0; i < variants.length; i++) {\n const variant = variants[i];\n const testRatio = variant.testRatio;\n n += testRatio;\n if (random < n) {\n setCookie(cookieName, variant.id);\n return variant.id;\n }\n }\n setCookie(cookieName, contentId);\n return contentId;\n }\n const winningVariantId = getAndSetVariantId();\n const styleEl = document.currentScript?.previousElementSibling;\n if (isHydrationTarget) {\n styleEl.remove();\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n } else {\n const newStyleStr = variants.concat({\n id: contentId\n }).filter(variant => variant.id !== winningVariantId).map(value => {\n return `.variant-${value.id} { display: none; }\n `;\n }).join('');\n styleEl.innerHTML = newStyleStr;\n }\n}";
14
+ export declare const UPDATE_VARIANT_VISIBILITY_SCRIPT = "function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {\n if (!navigator.cookieEnabled) {\n return;\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${defaultContentId}`;\n const winningVariant = getCookie(cookieName);\n const parentDiv = document.currentScript?.parentElement;\n const isDefaultContent = variantContentId === defaultContentId;\n const isWinningVariant = winningVariant === variantContentId;\n if (isWinningVariant && !isDefaultContent) {\n parentDiv?.removeAttribute('hidden');\n parentDiv?.removeAttribute('aria-hidden');\n } else if (!isWinningVariant && isDefaultContent) {\n parentDiv?.setAttribute('hidden', 'true');\n parentDiv?.setAttribute('aria-hidden', 'true');\n }\n if (isHydrationTarget) {\n if (!isWinningVariant) {\n parentDiv?.remove();\n }\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n }\n return;\n}";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.7.2";
1
+ export declare const SDK_VERSION = "0.7.4";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p } from "vue";
2
- import { n as u, i as y, b as x, B as v, C as _, F as S, I as T, S as I, d as C, e as w, V as k, h as R, j as f, s as g, T as F, k as E } from "./index-4cf9f60c.js";
3
- const V = {
2
+ import { n as u, i as y, b as x, B as v, C as _, F as T, I as S, 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-2e217cde.js";
3
+ const E = {
4
4
  name: "Core:Button",
5
5
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
6
6
  defaultStyles: {
@@ -302,15 +302,15 @@ const V = {
302
302
  }
303
303
  }
304
304
  });
305
- var P = function() {
305
+ var U = function() {
306
306
  var t = this, n = t._self._c;
307
307
  return t._self._setupProxy, n("div", { ref: "elementRef", class: t._classStringToObject(
308
308
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
309
309
  ), domProps: { innerHTML: t._s(t.code) } });
310
- }, U = [], j = /* @__PURE__ */ u(
310
+ }, P = [], j = /* @__PURE__ */ u(
311
311
  $,
312
- P,
313
312
  U,
313
+ P,
314
314
  !1,
315
315
  null,
316
316
  null,
@@ -342,7 +342,7 @@ const H = j.exports, L = {
342
342
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
343
343
  hideFromUI: !0
344
344
  }]
345
- }, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), N = p({
345
+ }, z = ["text/javascript", "application/javascript", "application/ecmascript"], D = (e) => z.includes(e.type), M = p({
346
346
  name: "builder-embed",
347
347
  props: ["content"],
348
348
  data() {
@@ -385,20 +385,20 @@ const H = j.exports, L = {
385
385
  }
386
386
  }
387
387
  });
388
- var M = function() {
388
+ var q = function() {
389
389
  var t = this, n = t._self._c;
390
390
  return t._self._setupProxy, n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: t._s(t.content) } });
391
- }, q = [], B = /* @__PURE__ */ u(
392
- N,
391
+ }, B = [], N = /* @__PURE__ */ u(
393
392
  M,
394
393
  q,
394
+ B,
395
395
  !1,
396
396
  null,
397
397
  null,
398
398
  null,
399
399
  null
400
400
  );
401
- const K = B.exports, O = {
401
+ const K = N.exports, O = {
402
402
  name: "Fragment",
403
403
  static: !0,
404
404
  hidden: !0,
@@ -721,7 +721,7 @@ const ee = Z.exports, te = {
721
721
  }]
722
722
  }, b = () => [{
723
723
  component: v,
724
- ...V
724
+ ...E
725
725
  }, {
726
726
  component: _,
727
727
  ...A
@@ -732,10 +732,10 @@ const ee = Z.exports, te = {
732
732
  component: K,
733
733
  ...L
734
734
  }, {
735
- component: S,
735
+ component: T,
736
736
  ...O
737
737
  }, {
738
- component: T,
738
+ component: S,
739
739
  ...J
740
740
  }, {
741
741
  component: ee,
@@ -784,22 +784,22 @@ const ee = Z.exports, te = {
784
784
  ...t
785
785
  },
786
786
  meta: e == null ? void 0 : e.meta
787
- } : void 0, se = () => import("./index-4cf9f60c.js").then((e) => e.M).then((e) => e.default).catch((e) => {
787
+ } : void 0, se = () => import("./index-2e217cde.js").then((e) => e.M).then((e) => e.default).catch((e) => {
788
788
  throw console.error(
789
789
  "Error while attempting to dynamically import component Blocks at ../blocks/blocks.vue",
790
790
  e
791
791
  ), e;
792
- }), le = () => import("./inlined-script-58b1138d.js").then((e) => e.default).catch((e) => {
792
+ }), le = () => import("./inlined-script-0bb5d32b.js").then((e) => e.default).catch((e) => {
793
793
  throw console.error(
794
794
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
795
795
  e
796
796
  ), e;
797
- }), ce = () => import("./enable-editor-a32a425e.js").then((e) => e.default).catch((e) => {
797
+ }), ce = () => import("./enable-editor-760639f0.js").then((e) => e.default).catch((e) => {
798
798
  throw console.error(
799
799
  "Error while attempting to dynamically import component EnableEditor at ./components/enable-editor.vue",
800
800
  e
801
801
  ), e;
802
- }), de = () => import("./styles-eab59896.js").then((e) => e.default).catch((e) => {
802
+ }), de = () => import("./styles-c7b3d8ac.js").then((e) => e.default).catch((e) => {
803
803
  throw console.error(
804
804
  "Error while attempting to dynamically import component ContentStyles at ./components/styles.vue",
805
805
  e
@@ -824,14 +824,13 @@ const ee = Z.exports, te = {
824
824
  "canTrack",
825
825
  "includeRefs",
826
826
  "enrich",
827
- "classNameProp",
828
827
  "showContent",
829
828
  "isSsrAbTest"
830
829
  ],
831
830
  data() {
832
831
  var e, t;
833
832
  return {
834
- scriptStr: R({
833
+ scriptStr: F({
835
834
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
836
835
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
837
836
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -889,13 +888,13 @@ const ee = Z.exports, te = {
889
888
  ),
890
889
  inheritedStyles: {}
891
890
  },
892
- TARGET: F
891
+ TARGET: R
893
892
  };
894
893
  },
895
894
  provide() {
896
895
  const e = this;
897
896
  return {
898
- [E.key]: {
897
+ [V.key]: {
899
898
  registeredComponents: e.registeredComponents
900
899
  }
901
900
  };
@@ -909,7 +908,7 @@ const ee = Z.exports, te = {
909
908
  var ue = function() {
910
909
  var a, o, l, i, r, s, c;
911
910
  var t = this, n = t._self._c;
912
- 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: (l = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : l.cssCode, customFonts: (r = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (s = t.builderContextSignal.content) == null ? void 0 : s.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
911
+ 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: (a = t.builderContextSignal.content) == null ? void 0 : a.id, cssCode: (l = (o = t.builderContextSignal.content) == null ? void 0 : o.data) == null ? void 0 : l.cssCode, customFonts: (r = (i = t.builderContextSignal.content) == null ? void 0 : i.data) == null ? void 0 : r.customFonts } })] : t._e(), n("blocks", { attrs: { blocks: (c = (s = t.builderContextSignal.content) == null ? void 0 : s.data) == null ? void 0 : c.blocks, context: t.builderContextSignal, registeredComponents: t.registeredComponents } })], 2);
913
912
  }, me = [], he = /* @__PURE__ */ u(
914
913
  pe,
915
914
  ue,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-63eb9f8d.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(o=>o.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:"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 a=e[n];if(a.src){if(this.scriptsInserted.includes(a.src))continue;this.scriptsInserted.push(a.src);const o=document.createElement("script");o.async=!0,o.src=a.src,document.head.appendChild(o)}else if(!a.type||["text/javascript","application/javascript","application/ecmascript"].includes(a.type)){if(this.scriptsRun.includes(a.innerText))continue;try{this.scriptsRun.push(a.innerText),new Function(a.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}},methods:{_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 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)}})},T=[],S=r.normalizeComponent(x,v,T,!1,null,null,null,null);const _=S.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(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=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((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=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(i){return Math.round(i*1e3)/1e3}const o=e.get("image"),c=e.get("aspectRatio");if(fetch(o).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!c||c===.7041))return n(o).then(i=>{const s=e.get("aspectRatio");e.get("image")===o&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(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"}},N={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,...N}],M=({content:e,data:t,locale:n})=>{var c,i,s;const a={};(i=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||i.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 o={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...o}},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-63eb9f8d.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-95114af2.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-ed3f647e.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-6a6b8114.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","classNameProp","showContent","isSsrAbTest"],data(){var e,t;return{scriptStr:r.getRenderContentScriptString({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:a,...o})=>({...n,[o.name]:{component:a,...r.serializeComponentInfo(o)}}),{}),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(),...r.components,...this.customComponents||[]].reduce((n,{component:a,...o})=>({...n,[o.name]:r.serializeComponentInfo(o)}),{}),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 a,o,c,i,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=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:c.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.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=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),r=require("./index-97feec80.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(o=>o.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:"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 a=e[n];if(a.src){if(this.scriptsInserted.includes(a.src))continue;this.scriptsInserted.push(a.src);const o=document.createElement("script");o.async=!0,o.src=a.src,document.head.appendChild(o)}else if(!a.type||["text/javascript","application/javascript","application/ecmascript"].includes(a.type)){if(this.scriptsRun.includes(a.innerText))continue;try{this.scriptsRun.push(a.innerText),new Function(a.innerText)()}catch(o){console.warn("`CustomCode`: Error running script:",o)}}}},methods:{_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 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)}})},T=[],_=r.normalizeComponent(x,v,T,!1,null,null,null,null);const S=_.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(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=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((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=i,setTimeout(()=>{m||d(new Error("Image load timed out"))},s)})}function a(i){return Math.round(i*1e3)/1e3}const o=e.get("image"),c=e.get("aspectRatio");if(fetch(o).then(i=>i.blob()).then(i=>{i.type.includes("svg")&&e.set("noWebp",!0)}),o&&(!c||c===.7041))return n(o).then(i=>{const s=e.get("aspectRatio");e.get("image")===o&&(!s||s===.7041)&&i.width&&i.height&&(e.set("aspectRatio",a(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:S,...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 c,i,s;const a={};(i=(c=e==null?void 0:e.data)==null?void 0:c.inputs)==null||i.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 o={...(s=e==null?void 0:e.data)==null?void 0:s.state,...t,...n?{locale:n}:{}};return{...a,...o}},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-97feec80.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-b7ea11cc.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-6c32ef6e.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-13523f01.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:a,...o})=>({...n,[o.name]:{component:a,...r.serializeComponentInfo(o)}}),{}),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:a,...o})=>({...n,[o.name]:r.serializeComponentInfo(o)}),{}),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 a,o,c,i,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,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=(o=t.builderContextSignal.content)==null?void 0:o.data)==null?void 0:c.cssCode,customFonts:(s=(i=t.builderContextSignal.content)==null?void 0:i.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=r.normalizeComponent(Y,X,Q,!1,null,null,null,null);const ee=Z.exports;exports.default=ee;