@builder.io/sdk-vue 0.7.0 → 0.7.1-1

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 (246) hide show
  1. package/package.json +6 -2
  2. package/vue2/lib/browser/{block-134a618c.cjs → block-2cb52597.cjs} +2 -2
  3. package/vue2/lib/{node/block-169c0cf4.js → browser/block-dc97e982.js} +7 -7
  4. package/vue2/lib/{edge/block-styles-57f025e0.cjs → browser/block-styles-8f571c43.cjs} +1 -1
  5. package/vue2/lib/{node/block-styles-d8839dd9.js → browser/block-styles-bc460f14.js} +5 -5
  6. package/vue2/lib/browser/{block-wrapper-54cd4f6c.cjs → block-wrapper-2d901f3f.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-ad23d63e.js → block-wrapper-b1a6d78a.js} +5 -5
  8. package/vue2/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
  9. package/vue2/lib/browser/blocks/image/image.vue.d.ts +1 -1
  10. package/vue2/lib/{edge/blocks-wrapper-be28f72a.cjs → browser/blocks-wrapper-9e8dd7a2.cjs} +1 -1
  11. package/vue2/lib/{edge/blocks-wrapper-671e376d.js → browser/blocks-wrapper-fcb480f0.js} +1 -1
  12. package/vue2/lib/{edge/component-ref-65be9ea0.js → browser/component-ref-68e3a5b6.js} +6 -6
  13. package/vue2/lib/{edge/component-ref-276a92fb.cjs → browser/component-ref-bc236051.cjs} +1 -1
  14. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -0
  15. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  16. package/vue2/lib/browser/{content-91d3070e.cjs → content-1a8d2e10.cjs} +1 -1
  17. package/vue2/lib/{edge/content-962ba49d.js → browser/content-76b432c4.js} +62 -64
  18. package/vue2/lib/browser/{css-2c9ad067.cjs → css-32f0c7fe.cjs} +1 -1
  19. package/vue2/lib/browser/{css-ccd5d9e3.js → css-d68fe0e5.js} +1 -1
  20. package/vue2/lib/browser/{enable-editor-d9f53d7d.js → enable-editor-29804f7c.js} +107 -92
  21. package/vue2/lib/browser/enable-editor-58cd5d33.cjs +1 -0
  22. package/vue2/lib/browser/evaluate-5f291a57.cjs +1 -0
  23. package/vue2/lib/browser/evaluate-c21703b5.js +86 -0
  24. package/vue2/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
  25. package/vue2/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
  26. package/vue2/lib/browser/functions/evaluate/helpers.d.ts +7 -1
  27. package/vue2/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
  28. package/vue2/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  29. package/vue2/lib/browser/functions/get-content/types.d.ts +94 -3
  30. package/vue2/lib/browser/functions/is-node-runtime.d.ts +4 -0
  31. package/vue2/lib/{node/get-block-actions-e6c36554.js → browser/get-block-actions-47eb8bee.js} +2 -2
  32. package/vue2/lib/browser/{get-block-actions-7a5e8d90.cjs → get-block-actions-4f4fdc14.cjs} +1 -1
  33. package/vue2/lib/browser/{get-block-properties-fded8311.js → get-block-properties-14335b2d.js} +2 -2
  34. package/vue2/lib/{node/get-block-properties-088a8d57.cjs → browser/get-block-properties-4c2072d0.cjs} +1 -1
  35. package/vue2/lib/browser/{get-processed-block-cb418829.cjs → get-processed-block-7dbd0508.cjs} +1 -1
  36. package/vue2/lib/browser/{get-processed-block-28afdbdd.js → get-processed-block-9c43bb30.js} +2 -2
  37. package/vue2/lib/browser/index-7528c088.cjs +32 -0
  38. package/vue2/lib/{node/index-8b428b10.js → browser/index-bb14138e.js} +382 -367
  39. package/vue2/lib/browser/index.cjs +1 -1
  40. package/vue2/lib/browser/index.js +4 -4
  41. package/vue2/lib/{edge/inlined-script-45e42092.js → browser/inlined-script-431b5967.js} +1 -1
  42. package/vue2/lib/browser/{inlined-script-36c7686b.cjs → inlined-script-cc25d25c.cjs} +1 -1
  43. package/vue2/lib/{node/inlined-styles-48c2284e.js → browser/inlined-styles-1717d4f0.js} +1 -1
  44. package/vue2/lib/{node/inlined-styles-f49a7f1a.cjs → browser/inlined-styles-da08b05d.cjs} +1 -1
  45. package/vue2/lib/{node/interactive-element-2463f839.cjs → browser/interactive-element-03353733.cjs} +1 -1
  46. package/vue2/lib/{node/interactive-element-b479db6b.js → browser/interactive-element-ac3e10b7.js} +5 -5
  47. package/vue2/lib/{node/repeated-block-284f31d8.js → browser/repeated-block-51e74834.js} +2 -2
  48. package/vue2/lib/browser/{repeated-block-d5a07fb8.cjs → repeated-block-ba80a339.cjs} +1 -1
  49. package/vue2/lib/browser/style.css +1 -1
  50. package/vue2/lib/{node/styles-4803ecb4.js → browser/styles-5eb21cb8.js} +2 -2
  51. package/vue2/lib/{node/styles-f19bff73.cjs → browser/styles-931da5e8.cjs} +2 -2
  52. package/vue2/lib/{browser/block-169c0cf4.js → edge/block-2c7301d0.js} +7 -7
  53. package/vue2/lib/{node/block-134a618c.cjs → edge/block-40b0f7b5.cjs} +2 -2
  54. package/vue2/lib/{node/block-styles-dd554acd.cjs → edge/block-styles-ba691a55.cjs} +1 -1
  55. package/vue2/lib/edge/{block-styles-9d313184.js → block-styles-bd09453c.js} +5 -5
  56. package/vue2/lib/{node/block-wrapper-ad23d63e.js → edge/block-wrapper-4210f268.js} +5 -5
  57. package/vue2/lib/edge/{block-wrapper-252f3467.cjs → block-wrapper-8e1bd00b.cjs} +1 -1
  58. package/vue2/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
  59. package/vue2/lib/edge/blocks/image/image.vue.d.ts +1 -1
  60. package/vue2/lib/{browser/blocks-wrapper-051a6973.cjs → edge/blocks-wrapper-7e831b51.cjs} +1 -1
  61. package/vue2/lib/{browser/blocks-wrapper-ba3f831e.js → edge/blocks-wrapper-9c7effa2.js} +1 -1
  62. package/vue2/lib/{node/component-ref-73bbe275.cjs → edge/component-ref-02d30d18.cjs} +1 -1
  63. package/vue2/lib/{node/component-ref-7c67cc85.js → edge/component-ref-0404fc38.js} +6 -6
  64. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -0
  65. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  66. package/vue2/lib/{browser/content-c3064d9d.js → edge/content-173f7be0.js} +62 -64
  67. package/vue2/lib/{node/content-91d3070e.cjs → edge/content-36b34b86.cjs} +1 -1
  68. package/vue2/lib/{node/css-2c9ad067.cjs → edge/css-00393f8a.cjs} +1 -1
  69. package/vue2/lib/edge/{css-9d2e1bcb.js → css-081095c1.js} +1 -1
  70. package/vue2/lib/edge/enable-editor-c36df3b5.cjs +1 -0
  71. package/vue2/lib/{node/enable-editor-d9f53d7d.js → edge/enable-editor-d3f018c6.js} +107 -92
  72. package/vue2/lib/edge/evaluate-47aeba42.cjs +21 -0
  73. package/vue2/lib/edge/{evaluate-becf2384.js → evaluate-d31c253f.js} +379 -346
  74. package/vue2/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
  75. package/vue2/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
  76. package/vue2/lib/edge/functions/evaluate/helpers.d.ts +7 -1
  77. package/vue2/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  78. package/vue2/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  79. package/vue2/lib/edge/functions/get-content/types.d.ts +94 -3
  80. package/vue2/lib/edge/functions/is-node-runtime.d.ts +4 -0
  81. package/vue2/lib/{browser/get-block-actions-e6c36554.js → edge/get-block-actions-33002e58.js} +2 -2
  82. package/vue2/lib/edge/{get-block-actions-0ed7b9a3.cjs → get-block-actions-fc18e691.cjs} +1 -1
  83. package/vue2/lib/{browser/get-block-properties-088a8d57.cjs → edge/get-block-properties-c1a43e4b.cjs} +1 -1
  84. package/vue2/lib/edge/{get-block-properties-c460b7ad.js → get-block-properties-d0176121.js} +2 -2
  85. package/vue2/lib/edge/{get-processed-block-23aa8a9f.js → get-processed-block-1280c9d5.js} +2 -2
  86. package/vue2/lib/edge/{get-processed-block-fe5c136a.cjs → get-processed-block-2d9f33f5.cjs} +1 -1
  87. package/vue2/lib/edge/{index-8d71df29.js → index-6e4d121e.js} +382 -367
  88. package/vue2/lib/edge/index-ca5baf07.cjs +32 -0
  89. package/vue2/lib/edge/index.cjs +1 -1
  90. package/vue2/lib/edge/index.js +4 -4
  91. package/vue2/lib/{node/inlined-script-de7385eb.js → edge/inlined-script-7a7207fd.js} +1 -1
  92. package/vue2/lib/{node/inlined-script-36c7686b.cjs → edge/inlined-script-e57329a5.cjs} +1 -1
  93. package/vue2/lib/{browser/inlined-styles-f49a7f1a.cjs → edge/inlined-styles-9a96b77e.cjs} +1 -1
  94. package/vue2/lib/edge/{inlined-styles-411ade32.js → inlined-styles-f109793f.js} +1 -1
  95. package/vue2/lib/{browser/interactive-element-b479db6b.js → edge/interactive-element-6a866621.js} +5 -5
  96. package/vue2/lib/{browser/interactive-element-2463f839.cjs → edge/interactive-element-9c12c501.cjs} +1 -1
  97. package/vue2/lib/edge/{repeated-block-8eefee0f.cjs → repeated-block-1093b757.cjs} +1 -1
  98. package/vue2/lib/{browser/repeated-block-284f31d8.js → edge/repeated-block-f7b967cf.js} +2 -2
  99. package/vue2/lib/edge/style.css +1 -1
  100. package/vue2/lib/{browser/styles-f19bff73.cjs → edge/styles-a211b4e1.cjs} +2 -2
  101. package/vue2/lib/{browser/styles-4803ecb4.js → edge/styles-aa2c087b.js} +2 -2
  102. package/vue2/lib/{edge/block-04a014ef.js → node/block-979d66e1.js} +7 -7
  103. package/vue2/lib/{edge/block-7f6b0f80.cjs → node/block-d7e689a7.cjs} +2 -2
  104. package/vue2/lib/{browser/block-styles-dd554acd.cjs → node/block-styles-00a3a4d7.cjs} +1 -1
  105. package/vue2/lib/{browser/block-styles-d8839dd9.js → node/block-styles-50528f05.js} +5 -5
  106. package/vue2/lib/{edge/block-wrapper-e16ccd29.js → node/block-wrapper-8bd5d40b.js} +5 -5
  107. package/vue2/lib/node/{block-wrapper-54cd4f6c.cjs → block-wrapper-d7b449f1.cjs} +1 -1
  108. package/vue2/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
  109. package/vue2/lib/node/blocks/image/image.vue.d.ts +1 -1
  110. package/vue2/lib/node/{blocks-wrapper-ba3f831e.js → blocks-wrapper-50937fc2.js} +1 -1
  111. package/vue2/lib/node/{blocks-wrapper-051a6973.cjs → blocks-wrapper-d425bec5.cjs} +1 -1
  112. package/vue2/lib/{browser/component-ref-7c67cc85.js → node/component-ref-123ffd3c.js} +6 -6
  113. package/vue2/lib/{browser/component-ref-73bbe275.cjs → node/component-ref-3ba26510.cjs} +1 -1
  114. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -0
  115. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  116. package/vue2/lib/node/{content-c3064d9d.js → content-d31377e7.js} +62 -64
  117. package/vue2/lib/{edge/content-6d81d16f.cjs → node/content-d8e76f5c.cjs} +1 -1
  118. package/vue2/lib/node/{css-ccd5d9e3.js → css-469bd1df.js} +1 -1
  119. package/vue2/lib/{edge/css-88f2410f.cjs → node/css-c566c7a4.cjs} +1 -1
  120. package/vue2/lib/node/enable-editor-8c4e460a.cjs +1 -0
  121. package/vue2/lib/{edge/enable-editor-b6040943.js → node/enable-editor-96dbd852.js} +107 -92
  122. package/vue2/lib/node/evaluate-45bac138.cjs +41 -0
  123. package/vue2/lib/node/evaluate-946bbbf4.js +187 -0
  124. package/vue2/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
  125. package/vue2/lib/node/functions/evaluate/evaluate.d.ts +1 -5
  126. package/vue2/lib/node/functions/evaluate/helpers.d.ts +7 -1
  127. package/vue2/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  128. package/vue2/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  129. package/vue2/lib/node/functions/get-content/types.d.ts +94 -3
  130. package/vue2/lib/node/functions/is-node-runtime.d.ts +4 -0
  131. package/vue2/lib/{edge/get-block-actions-046a80d0.js → node/get-block-actions-a7c25deb.js} +2 -2
  132. package/vue2/lib/node/{get-block-actions-7a5e8d90.cjs → get-block-actions-fa0f60c5.cjs} +1 -1
  133. package/vue2/lib/node/{get-block-properties-fded8311.js → get-block-properties-5524be2a.js} +2 -2
  134. package/vue2/lib/{edge/get-block-properties-a9ab7e30.cjs → node/get-block-properties-75f3f91a.cjs} +1 -1
  135. package/vue2/lib/node/get-processed-block-231c050b.js +52 -0
  136. package/vue2/lib/node/get-processed-block-e246d1ed.cjs +1 -0
  137. package/vue2/lib/{browser/index-8b428b10.js → node/index-7ce12494.js} +382 -367
  138. package/vue2/lib/node/index-ea4df31a.cjs +32 -0
  139. package/vue2/lib/node/index.cjs +1 -1
  140. package/vue2/lib/node/index.js +4 -4
  141. package/vue2/lib/{browser/inlined-script-de7385eb.js → node/inlined-script-073d04d2.js} +1 -1
  142. package/vue2/lib/{edge/inlined-script-f370acdf.cjs → node/inlined-script-dccfb7fc.cjs} +1 -1
  143. package/vue2/lib/{edge/inlined-styles-375c218f.cjs → node/inlined-styles-08dbb945.cjs} +1 -1
  144. package/vue2/lib/{browser/inlined-styles-48c2284e.js → node/inlined-styles-8982c8a6.js} +1 -1
  145. package/vue2/lib/{edge/interactive-element-0e97e5ad.js → node/interactive-element-caabd2d9.js} +5 -5
  146. package/vue2/lib/{edge/interactive-element-92851fbe.cjs → node/interactive-element-fc5a4f1d.cjs} +1 -1
  147. package/vue2/lib/{edge/repeated-block-c41268e9.js → node/repeated-block-0ab8e6be.js} +2 -2
  148. package/vue2/lib/node/{repeated-block-d5a07fb8.cjs → repeated-block-f65d29a5.cjs} +1 -1
  149. package/vue2/lib/node/style.css +1 -1
  150. package/vue2/lib/{edge/styles-633d9689.js → node/styles-6e09a0cc.js} +2 -2
  151. package/vue2/lib/{edge/styles-f2039a70.cjs → node/styles-96606872.cjs} +2 -2
  152. package/vue2/package.json +3 -0
  153. package/vue3/lib/{node/block-wrapper.b3297452.js → browser/block-wrapper.09b54dd3.js} +8 -8
  154. package/vue3/lib/browser/{block-wrapper.c00ddfcb.cjs → block-wrapper.49af98a6.cjs} +1 -1
  155. package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
  156. package/vue3/lib/browser/blocks/image/image.vue.d.ts +1 -1
  157. package/vue3/lib/{edge/component-ref.f5eef526.js → browser/component-ref.63194b25.js} +17 -17
  158. package/vue3/lib/browser/component-ref.78f795cd.cjs +1 -0
  159. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
  160. package/vue3/lib/browser/components/content/content.vue.d.ts +6 -6
  161. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  162. package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
  163. package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
  164. package/vue3/lib/browser/functions/evaluate/helpers.d.ts +7 -1
  165. package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
  166. package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  167. package/vue3/lib/browser/functions/get-content/types.d.ts +94 -3
  168. package/vue3/lib/browser/functions/is-node-runtime.d.ts +4 -0
  169. package/vue3/lib/{edge/get-block-actions.c5c7e487.cjs → browser/get-block-actions.2e99e179.cjs} +1 -1
  170. package/vue3/lib/{edge/get-block-actions.f1dcfc47.js → browser/get-block-actions.4f330889.js} +1 -1
  171. package/vue3/lib/{node/index.c51504ff.js → browser/index.88b433c6.js} +826 -795
  172. package/vue3/lib/browser/index.c04232f6.cjs +69 -0
  173. package/vue3/lib/browser/index.cjs +1 -1
  174. package/vue3/lib/browser/index.js +1 -1
  175. package/vue3/lib/{edge/repeated-block.e2eb73cd.js → browser/repeated-block.067ee555.js} +6 -6
  176. package/vue3/lib/browser/{repeated-block.2245fce7.cjs → repeated-block.ef8176d8.cjs} +1 -1
  177. package/vue3/lib/edge/{block-wrapper.6e434dc7.cjs → block-wrapper.2d4ec833.cjs} +1 -1
  178. package/vue3/lib/{browser/block-wrapper.b3297452.js → edge/block-wrapper.4b2f2fb3.js} +8 -8
  179. package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
  180. package/vue3/lib/edge/blocks/image/image.vue.d.ts +1 -1
  181. package/vue3/lib/{node/component-ref.88102d68.js → edge/component-ref.98beaea3.js} +17 -17
  182. package/vue3/lib/edge/component-ref.d8514fb0.cjs +1 -0
  183. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
  184. package/vue3/lib/edge/components/content/content.vue.d.ts +6 -6
  185. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  186. package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
  187. package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
  188. package/vue3/lib/edge/functions/evaluate/helpers.d.ts +7 -1
  189. package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  190. package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  191. package/vue3/lib/edge/functions/get-content/types.d.ts +94 -3
  192. package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
  193. package/vue3/lib/{node/get-block-actions.703f8554.cjs → edge/get-block-actions.407fbfa9.cjs} +1 -1
  194. package/vue3/lib/{browser/get-block-actions.1865148e.js → edge/get-block-actions.b460cca3.js} +1 -1
  195. package/vue3/lib/edge/index.8bdc4716.cjs +89 -0
  196. package/vue3/lib/edge/{index.f80ab661.js → index.a8ffb479.js} +1352 -1293
  197. package/vue3/lib/edge/index.cjs +1 -1
  198. package/vue3/lib/edge/index.js +1 -1
  199. package/vue3/lib/{browser/repeated-block.f6fdedb6.js → edge/repeated-block.cc9bbed2.js} +6 -6
  200. package/vue3/lib/edge/{repeated-block.8292d33a.cjs → repeated-block.f5d444e9.cjs} +1 -1
  201. package/vue3/lib/node/block-wrapper.25e28ca3.cjs +1 -0
  202. package/vue3/lib/{edge/block-wrapper.dad1bb39.js → node/block-wrapper.56bce6c4.js} +7 -6
  203. package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
  204. package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
  205. package/vue3/lib/node/component-ref.c35ae123.cjs +1 -0
  206. package/vue3/lib/{browser/component-ref.88102d68.js → node/component-ref.cd59ca4d.js} +18 -17
  207. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
  208. package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
  209. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  210. package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
  211. package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
  212. package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
  213. package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  214. package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  215. package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
  216. package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
  217. package/vue3/lib/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.0d715e21.cjs} +1 -1
  218. package/vue3/lib/node/{get-block-actions.1865148e.js → get-block-actions.3df391e9.js} +1 -1
  219. package/vue3/lib/{browser/index.c51504ff.js → node/index.88589866.js} +977 -852
  220. package/vue3/lib/node/index.b2d2bb5e.cjs +109 -0
  221. package/vue3/lib/node/index.cjs +1 -1
  222. package/vue3/lib/node/index.js +27 -26
  223. package/vue3/lib/node/{repeated-block.f6fdedb6.js → repeated-block.57ca2ba1.js} +7 -6
  224. package/vue3/lib/node/repeated-block.78ed5bbb.cjs +1 -0
  225. package/vue3/package.json +3 -0
  226. package/vue2/lib/browser/enable-editor-f87e3e48.cjs +0 -1
  227. package/vue2/lib/browser/evaluate-043734e5.cjs +0 -1
  228. package/vue2/lib/browser/evaluate-b309ef11.js +0 -81
  229. package/vue2/lib/browser/index-7b952a40.cjs +0 -32
  230. package/vue2/lib/edge/enable-editor-617a4b09.cjs +0 -1
  231. package/vue2/lib/edge/evaluate-e31fc7a4.cjs +0 -21
  232. package/vue2/lib/edge/index-cb2684cd.cjs +0 -32
  233. package/vue2/lib/node/enable-editor-f87e3e48.cjs +0 -1
  234. package/vue2/lib/node/evaluate-043734e5.cjs +0 -1
  235. package/vue2/lib/node/evaluate-b309ef11.js +0 -81
  236. package/vue2/lib/node/get-processed-block-28afdbdd.js +0 -58
  237. package/vue2/lib/node/get-processed-block-cb418829.cjs +0 -1
  238. package/vue2/lib/node/index-7b952a40.cjs +0 -32
  239. package/vue3/lib/browser/component-ref.5446db23.cjs +0 -1
  240. package/vue3/lib/browser/index.403011b1.cjs +0 -69
  241. package/vue3/lib/edge/component-ref.94b009f1.cjs +0 -1
  242. package/vue3/lib/edge/index.61c09215.cjs +0 -89
  243. package/vue3/lib/node/block-wrapper.c00ddfcb.cjs +0 -1
  244. package/vue3/lib/node/component-ref.5446db23.cjs +0 -1
  245. package/vue3/lib/node/index.403011b1.cjs +0 -69
  246. package/vue3/lib/node/repeated-block.2245fce7.cjs +0 -1
@@ -1,19 +1,19 @@
1
- import { defineComponent as b, openBlock as u, createElementBlock as m, mergeProps as $, toHandlers as O, toDisplayString as oe, h as ge, resolveComponent as y, createBlock as v, createCommentVNode as S, defineAsyncComponent as U, Fragment as T, renderList as V, withCtx as Z, createVNode as B, normalizeProps as re, guardReactiveProps as He, renderSlot as j, createElementVNode as se, normalizeStyle as ie, normalizeClass as ye, markRaw as ze } from "vue";
2
- function H(e = {}, t, n) {
1
+ import { defineComponent as g, openBlock as d, createElementBlock as p, mergeProps as I, toHandlers as O, toDisplayString as ie, h as Ce, resolveComponent as k, createBlock as v, createCommentVNode as S, defineAsyncComponent as W, Fragment as R, renderList as B, withCtx as te, createVNode as V, normalizeProps as ae, guardReactiveProps as Ye, renderSlot as U, createElementVNode as le, normalizeStyle as ce, normalizeClass as we, markRaw as Xe } from "vue";
2
+ function q(e = {}, t, n) {
3
3
  const o = {};
4
- for (const r in e) {
5
- if (!e[r] || n && !r.startsWith(t))
4
+ for (const s in e) {
5
+ if (!e[s] || n && !s.startsWith(t))
6
6
  continue;
7
- const s = n ? r.replace(t, "") : r;
8
- o[s] = e[r];
7
+ const r = n ? s.replace(t, "") : s;
8
+ o[r] = e[s];
9
9
  }
10
10
  return o;
11
11
  }
12
- const De = b({
12
+ const Qe = g({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
16
- return { filterAttrs: H };
16
+ return { filterAttrs: q };
17
17
  },
18
18
  methods: {
19
19
  _classStringToObject(e) {
@@ -27,25 +27,25 @@ const De = b({
27
27
  }
28
28
  }
29
29
  });
30
- const g = (e, t) => {
30
+ const y = (e, t) => {
31
31
  const n = e.__vccOpts || e;
32
- for (const [o, r] of t)
33
- n[o] = r;
32
+ for (const [o, s] of t)
33
+ n[o] = s;
34
34
  return n;
35
- }, qe = ["href", "target"];
36
- function Ge(e, t, n, o, r, s) {
37
- return e.link ? (u(), m("a", $({
35
+ }, Ze = ["href", "target"];
36
+ function et(e, t, n, o, s, r) {
37
+ return e.link ? (d(), p("a", I({
38
38
  key: 0,
39
39
  role: "button",
40
40
  href: e.link,
41
41
  target: e.openLinkInNewTab ? "_blank" : void 0
42
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17, qe)) : (u(), m("button", $({
42
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ie(e.text), 17, Ze)) : (d(), p("button", I({
43
43
  key: 1,
44
44
  style: e.attributes.style,
45
45
  class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
46
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17));
46
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ie(e.text), 17));
47
47
  }
48
- const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), F = (e) => JSON.parse(JSON.stringify(e)), ke = {
48
+ const tt = /* @__PURE__ */ y(Qe, [["render", et], ["__scopeId", "data-v-becdf225"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), M = (e) => JSON.parse(JSON.stringify(e)), $e = {
49
49
  small: {
50
50
  min: 320,
51
51
  default: 321,
@@ -61,11 +61,11 @@ const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225
61
61
  default: 991,
62
62
  max: 1200
63
63
  }
64
- }, ae = (e, t = ke) => `@media (max-width: ${t[e].max}px)`, ve = ({
64
+ }, de = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Te = ({
65
65
  small: e,
66
66
  medium: t
67
67
  }) => {
68
- const n = F(ke);
68
+ const n = M($e);
69
69
  if (!e || !t)
70
70
  return n;
71
71
  const o = Math.floor(e / 2);
@@ -74,41 +74,41 @@ const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225
74
74
  min: o,
75
75
  default: o + 1
76
76
  };
77
- const r = n.small.max + 1;
77
+ const s = n.small.max + 1;
78
78
  n.medium = {
79
79
  max: t,
80
- min: r,
81
- default: r + 1
80
+ min: s,
81
+ default: s + 1
82
82
  };
83
- const s = n.medium.max + 1;
83
+ const r = n.medium.max + 1;
84
84
  return n.large = {
85
85
  max: 2e3,
86
- min: s,
87
- default: s + 1
86
+ min: r,
87
+ default: r + 1
88
88
  }, n;
89
- }, A = "vue3", W = "[Builder.io]: ", x = {
90
- log: (...e) => console.log(W, ...e),
91
- error: (...e) => console.error(W, ...e),
92
- warn: (...e) => console.warn(W, ...e),
93
- debug: (...e) => console.debug(W, ...e)
89
+ }, P = "vue3", L = "[Builder.io]: ", x = {
90
+ log: (...e) => console.log(L, ...e),
91
+ error: (...e) => console.error(L, ...e),
92
+ warn: (...e) => console.warn(L, ...e),
93
+ debug: (...e) => console.debug(L, ...e)
94
94
  };
95
- function C() {
95
+ function w() {
96
96
  return typeof window < "u" && typeof document < "u";
97
97
  }
98
- function Ye() {
99
- return C() && window.self !== window.top;
98
+ function nt() {
99
+ return w() && window.self !== window.top;
100
100
  }
101
- function E() {
102
- return Ye() && window.location.search.indexOf("builder.frameEditing=") !== -1;
101
+ function _() {
102
+ return nt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
103
103
  }
104
- const Xe = () => {
105
- if (C()) {
104
+ const ot = () => {
105
+ if (w()) {
106
106
  const e = new URL(location.href);
107
107
  return e.pathname === "" && (e.pathname = "/"), e;
108
108
  } else
109
109
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
110
- }, Qe = () => typeof navigator == "object" && navigator.userAgent || "", Se = () => {
111
- const e = Qe(), t = {
110
+ }, st = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
111
+ const e = st(), t = {
112
112
  Android() {
113
113
  return e.match(/Android/i);
114
114
  },
@@ -125,15 +125,15 @@ const Xe = () => {
125
125
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
126
126
  },
127
127
  any() {
128
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
128
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || P === "reactNative";
129
129
  }
130
- }, n = e.match(/Tablet|iPad/i), o = Xe();
130
+ }, n = e.match(/Tablet|iPad/i), o = ot();
131
131
  return {
132
132
  urlPath: o == null ? void 0 : o.pathname,
133
133
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
134
134
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
135
135
  };
136
- }, Ze = ({
136
+ }, rt = ({
137
137
  builder: e,
138
138
  context: t,
139
139
  event: n,
@@ -144,42 +144,50 @@ const Xe = () => {
144
144
  builder: e,
145
145
  context: t,
146
146
  event: n
147
- }), et = ({
147
+ }), it = () => ({
148
+ isEditing: _(),
149
+ isBrowser: w(),
150
+ isServer: !w(),
151
+ getUserAttributes: () => Ie()
152
+ }), at = (e, {
153
+ isExpression: t = !0
154
+ }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ue = ({
148
155
  code: e,
149
156
  builder: t,
150
157
  context: n,
151
158
  event: o,
152
- localState: r,
153
- rootSetState: s,
159
+ localState: s,
160
+ rootSetState: r,
154
161
  rootState: i
155
162
  }) => {
156
- const a = Ze({
163
+ const a = rt({
157
164
  builder: t,
158
165
  context: n,
159
166
  event: o,
160
- state: tt(i, r, s)
167
+ state: lt(i, s, r)
161
168
  });
162
169
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
163
170
  };
164
- function tt(e, t, n) {
171
+ function lt(e, t, n) {
165
172
  if (e === t)
166
173
  throw new Error("rootState === localState");
167
174
  return new Proxy(e, {
168
- get: (o, r) => t && r in t ? t[r] : e[r],
169
- set: (o, r, s) => {
170
- if (t && r in t)
175
+ get: (o, s) => t && s in t ? t[s] : e[s],
176
+ set: (o, s, r) => {
177
+ if (t && s in t)
171
178
  throw new Error("Writing to local state is not allowed as it is read-only.");
172
- return e[r] = s, n == null || n(e), !0;
179
+ return e[s] = r, n == null || n(e), !0;
173
180
  }
174
181
  });
175
182
  }
176
- function L({
183
+ const ct = (e) => (w(), ue(e));
184
+ function z({
177
185
  code: e,
178
186
  context: t,
179
187
  localState: n,
180
188
  rootState: o,
181
- rootSetState: r,
182
- event: s,
189
+ rootSetState: s,
190
+ event: r,
183
191
  isExpression: i = !0
184
192
  }) {
185
193
  if (e === "") {
@@ -187,112 +195,109 @@ function L({
187
195
  return;
188
196
  }
189
197
  const a = {
190
- isEditing: E(),
191
- isBrowser: C(),
192
- isServer: !C(),
193
- getUserAttributes: () => Se()
194
- }, d = {
195
- code: i && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
196
- builder: a,
198
+ code: at(e, {
199
+ isExpression: i
200
+ }),
201
+ builder: it(),
197
202
  context: t,
198
- event: s,
199
- rootSetState: r,
203
+ event: r,
204
+ rootSetState: s,
200
205
  rootState: o,
201
206
  localState: n
202
207
  };
203
208
  try {
204
- return et(d);
205
- } catch (p) {
206
- x.error("Failed code evaluation: " + p.message, {
209
+ return ct(a);
210
+ } catch (l) {
211
+ x.error("Failed code evaluation: " + l.message, {
207
212
  code: e
208
213
  });
209
214
  return;
210
215
  }
211
216
  }
212
- const nt = (e, t, n) => {
217
+ const dt = (e, t, n) => {
213
218
  if (Object(e) !== e)
214
219
  return e;
215
220
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
216
- return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
221
+ return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
217
222
  };
218
- const ot = ({
223
+ const ut = ({
219
224
  block: e,
220
225
  context: t,
221
226
  localState: n,
222
227
  rootState: o,
223
- rootSetState: r
228
+ rootSetState: s
224
229
  }) => {
225
230
  if (!e.bindings)
226
231
  return e;
227
- const s = F(e), i = {
228
- ...s,
232
+ const r = M(e), i = {
233
+ ...r,
229
234
  properties: {
230
- ...s.properties
235
+ ...r.properties
231
236
  },
232
237
  actions: {
233
- ...s.actions
238
+ ...r.actions
234
239
  }
235
240
  };
236
241
  for (const a in e.bindings) {
237
- const l = e.bindings[a], c = L({
242
+ const l = e.bindings[a], c = z({
238
243
  code: l,
239
244
  localState: n,
240
245
  rootState: o,
241
- rootSetState: r,
246
+ rootSetState: s,
242
247
  context: t
243
248
  });
244
- nt(i, a, c);
249
+ dt(i, a, c);
245
250
  }
246
251
  return i;
247
252
  };
248
- function K({
253
+ function D({
249
254
  block: e,
250
255
  context: t,
251
256
  shouldEvaluateBindings: n,
252
257
  localState: o,
253
- rootState: r,
254
- rootSetState: s
258
+ rootState: s,
259
+ rootSetState: r
255
260
  }) {
256
261
  const i = e;
257
- return n ? ot({
262
+ return n ? ut({
258
263
  block: i,
259
264
  localState: o,
260
- rootState: r,
261
- rootSetState: s,
265
+ rootState: s,
266
+ rootSetState: r,
262
267
  context: t
263
268
  }) : i;
264
269
  }
265
- const rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), _ = (e) => e != null, st = (e) => Object.entries(e).map(([n, o]) => {
270
+ const pt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), A = (e) => e != null, mt = (e) => Object.entries(e).map(([n, o]) => {
266
271
  if (typeof o == "string")
267
- return `${rt(n)}: ${o};`;
268
- }).filter(_), it = (e) => st(e).join(`
269
- `), q = ({
272
+ return `${pt(n)}: ${o};`;
273
+ }).filter(A), ht = (e) => mt(e).join(`
274
+ `), Y = ({
270
275
  mediaQuery: e,
271
276
  className: t,
272
277
  styles: n
273
278
  }) => {
274
279
  const o = `.${t} {
275
- ${it(n)}
280
+ ${ht(n)}
276
281
  }`;
277
282
  return e ? `${e} {
278
283
  ${o}
279
284
  }` : o;
280
- }, at = b({
285
+ }, ft = g({
281
286
  render() {
282
- return ge("style", { id: this.id, innerHTML: this.styles });
287
+ return Ce("style", { id: this.id, innerHTML: this.styles });
283
288
  },
284
289
  name: "inlined-styles",
285
290
  props: ["styles", "id"]
286
- }), z = /* @__PURE__ */ g(at, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), lt = b({
291
+ }), G = /* @__PURE__ */ y(ft, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), bt = g({
287
292
  name: "block-styles",
288
- components: { InlinedStyles: z },
293
+ components: { InlinedStyles: G },
289
294
  props: ["block", "context"],
290
295
  data() {
291
- return { TARGET: A };
296
+ return { TARGET: P };
292
297
  },
293
298
  computed: {
294
299
  canShowBlock() {
295
- const e = K({
300
+ const e = D({
296
301
  block: this.block,
297
302
  localState: this.context.localState,
298
303
  rootState: this.context.rootState,
@@ -300,56 +305,56 @@ const rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
300
305
  context: this.context.context,
301
306
  shouldEvaluateBindings: !0
302
307
  });
303
- return _(e.hide) ? !e.hide : _(e.show) ? e.show : !0;
308
+ return A(e.hide) ? !e.hide : A(e.show) ? e.show : !0;
304
309
  },
305
310
  css() {
306
- var p;
307
- const e = K({
311
+ var h;
312
+ const e = D({
308
313
  block: this.block,
309
314
  localState: this.context.localState,
310
315
  rootState: this.context.rootState,
311
316
  rootSetState: this.context.rootSetState,
312
317
  context: this.context.context,
313
318
  shouldEvaluateBindings: !0
314
- }), t = e.responsiveStyles, n = this.context.content, o = ve(
315
- ((p = n == null ? void 0 : n.meta) == null ? void 0 : p.breakpoints) || {}
316
- ), r = t == null ? void 0 : t.large, s = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
319
+ }), t = e.responsiveStyles, n = this.context.content, o = Te(
320
+ ((h = n == null ? void 0 : n.meta) == null ? void 0 : h.breakpoints) || {}
321
+ ), s = t == null ? void 0 : t.large, r = t == null ? void 0 : t.medium, i = t == null ? void 0 : t.small, a = e.id;
317
322
  if (!a)
318
323
  return "";
319
- const l = r ? q({
324
+ const l = s ? Y({
320
325
  className: a,
321
- styles: r
322
- }) : "", c = s ? q({
326
+ styles: s
327
+ }) : "", c = r ? Y({
323
328
  className: a,
324
- styles: s,
325
- mediaQuery: ae(
329
+ styles: r,
330
+ mediaQuery: de(
326
331
  "medium",
327
332
  o
328
333
  )
329
- }) : "", d = i ? q({
334
+ }) : "", u = i ? Y({
330
335
  className: a,
331
336
  styles: i,
332
- mediaQuery: ae(
337
+ mediaQuery: de(
333
338
  "small",
334
339
  o
335
340
  )
336
341
  }) : "";
337
- return [l, c, d].join(" ");
342
+ return [l, c, u].join(" ");
338
343
  }
339
344
  }
340
345
  });
341
- function ct(e, t, n, o, r, s) {
342
- const i = y("inlined-styles");
343
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (u(), v(i, {
346
+ function gt(e, t, n, o, s, r) {
347
+ const i = k("inlined-styles");
348
+ return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), v(i, {
344
349
  key: 0,
345
350
  styles: e.css
346
351
  }, null, 8, ["styles"])) : S("v-if", !0);
347
352
  }
348
- const Ce = /* @__PURE__ */ g(lt, [["render", ct], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
353
+ const Re = /* @__PURE__ */ y(bt, [["render", gt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
349
354
  __proto__: null,
350
- default: Ce
355
+ default: Re
351
356
  }, Symbol.toStringTag, { value: "Module" }));
352
- function dt(e) {
357
+ function kt(e) {
353
358
  var t;
354
359
  return {
355
360
  ...(t = e.component) == null ? void 0 : t.options,
@@ -357,29 +362,29 @@ function dt(e) {
357
362
  builderBlock: e
358
363
  };
359
364
  }
360
- const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], mt = (e) => typeof e == "string" && pt.includes(e.toLowerCase()), ht = ({
365
+ const vt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], St = (e) => typeof e == "string" && vt.includes(e.toLowerCase()), Ct = ({
361
366
  block: e,
362
367
  context: t,
363
368
  registeredComponents: n
364
369
  }) => {
365
- var s;
366
- const o = (s = K({
370
+ var r;
371
+ const o = (r = D({
367
372
  block: e,
368
373
  localState: t.localState,
369
374
  rootState: t.rootState,
370
375
  rootSetState: t.rootSetState,
371
376
  context: t.context,
372
377
  shouldEvaluateBindings: !1
373
- }).component) == null ? void 0 : s.name;
378
+ }).component) == null ? void 0 : r.name;
374
379
  if (!o)
375
380
  return null;
376
- const r = n[o];
377
- if (r)
378
- return r;
381
+ const s = n[o];
382
+ if (s)
383
+ return s;
379
384
  console.warn(`
380
385
  Could not find a registered component named "${o}".
381
386
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
382
- }, ft = ({
387
+ }, wt = ({
383
388
  block: e,
384
389
  context: t
385
390
  }) => {
@@ -389,17 +394,17 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
389
394
  } = e;
390
395
  if (!(n != null && n.collection))
391
396
  return;
392
- const r = L({
397
+ const s = z({
393
398
  code: n.collection,
394
399
  localState: t.localState,
395
400
  rootState: t.rootState,
396
401
  rootSetState: t.rootSetState,
397
402
  context: t.context
398
403
  });
399
- if (!Array.isArray(r))
404
+ if (!Array.isArray(s))
400
405
  return;
401
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
402
- return r.map((l, c) => ({
406
+ const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
407
+ return s.map((l, c) => ({
403
408
  context: {
404
409
  ...t,
405
410
  localState: {
@@ -412,54 +417,54 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
412
417
  },
413
418
  block: o
414
419
  }));
415
- }, bt = () => Promise.resolve().then(() => ut).then((e) => e.default).catch((e) => {
420
+ }, $t = () => Promise.resolve().then(() => yt).then((e) => e.default).catch((e) => {
416
421
  throw console.error(
417
422
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
418
423
  e
419
424
  ), e;
420
- }), gt = () => import("./repeated-block.f6fdedb6.js").then((e) => e.default).catch((e) => {
425
+ }), Tt = () => import("./repeated-block.067ee555.js").then((e) => e.default).catch((e) => {
421
426
  throw console.error(
422
427
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
423
428
  e
424
429
  ), e;
425
- }), yt = () => import("./component-ref.88102d68.js").then((e) => e.default).catch((e) => {
430
+ }), It = () => import("./component-ref.63194b25.js").then((e) => e.default).catch((e) => {
426
431
  throw console.error(
427
432
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
428
433
  e
429
434
  ), e;
430
- }), kt = () => import("./block-wrapper.b3297452.js").then((e) => e.default).catch((e) => {
435
+ }), Rt = () => import("./block-wrapper.09b54dd3.js").then((e) => e.default).catch((e) => {
431
436
  throw console.error(
432
437
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
433
438
  e
434
439
  ), e;
435
- }), vt = b({
440
+ }), xt = g({
436
441
  name: "block",
437
442
  components: {
438
- ComponentRef: U(yt),
439
- BlockWrapper: U(kt),
440
- RepeatedBlock: U(gt),
441
- BlockStyles: U(bt)
443
+ ComponentRef: W(It),
444
+ BlockWrapper: W(Rt),
445
+ RepeatedBlock: W(Tt),
446
+ BlockStyles: W($t)
442
447
  },
443
448
  props: ["block", "context", "registeredComponents"],
444
449
  data() {
445
- return { childrenContext: this.context, isEmptyHtmlElement: mt };
450
+ return { childrenContext: this.context, isEmptyHtmlElement: St };
446
451
  },
447
452
  computed: {
448
453
  blockComponent() {
449
- return ht({
454
+ return Ct({
450
455
  block: this.block,
451
456
  context: this.context,
452
457
  registeredComponents: this.registeredComponents
453
458
  });
454
459
  },
455
460
  repeatItem() {
456
- return ft({
461
+ return wt({
457
462
  block: this.block,
458
463
  context: this.context
459
464
  });
460
465
  },
461
466
  processedBlock() {
462
- return this.repeatItem ? this.block : K({
467
+ return this.repeatItem ? this.block : D({
463
468
  block: this.block,
464
469
  localState: this.context.localState,
465
470
  rootState: this.context.rootState,
@@ -479,12 +484,12 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
479
484
  return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? (n = this.processedBlock.children) != null ? n : [] : [];
480
485
  },
481
486
  componentRefProps() {
482
- var e, t, n, o, r, s;
487
+ var e, t, n, o, s, r;
483
488
  return {
484
489
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
485
490
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
486
491
  componentOptions: {
487
- ...dt(this.processedBlock),
492
+ ...kt(this.processedBlock),
488
493
  builderContext: this.context,
489
494
  ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
490
495
  builderComponents: this.registeredComponents
@@ -493,48 +498,48 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
493
498
  context: this.childrenContext,
494
499
  registeredComponents: this.registeredComponents,
495
500
  builderBlock: this.processedBlock,
496
- includeBlockProps: ((r = this.blockComponent) == null ? void 0 : r.noWrap) === !0,
497
- isInteractive: !((s = this.blockComponent) != null && s.isRSC)
501
+ includeBlockProps: ((s = this.blockComponent) == null ? void 0 : s.noWrap) === !0,
502
+ isInteractive: !((r = this.blockComponent) != null && r.isRSC)
498
503
  };
499
504
  }
500
505
  }
501
506
  });
502
- function St(e, t, n, o, r, s) {
503
- var p;
504
- const i = y("block-wrapper"), a = y("repeated-block"), l = y("component-ref"), c = y("block", !0), d = y("block-styles");
505
- return e.canShowBlock ? (u(), m(T, { key: 0 }, [
506
- (p = e.blockComponent) != null && p.noWrap ? (u(), v(l, re($({ key: 1 }, e.componentRefProps)), null, 16)) : (u(), m(T, { key: 0 }, [
507
- e.isEmptyHtmlElement(e.Tag) ? (u(), v(i, {
507
+ function Et(e, t, n, o, s, r) {
508
+ var h;
509
+ const i = k("block-wrapper"), a = k("repeated-block"), l = k("component-ref"), c = k("block", !0), u = k("block-styles");
510
+ return e.canShowBlock ? (d(), p(R, { key: 0 }, [
511
+ (h = e.blockComponent) != null && h.noWrap ? (d(), v(l, ae(I({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), p(R, { key: 0 }, [
512
+ e.isEmptyHtmlElement(e.Tag) ? (d(), v(i, {
508
513
  key: 0,
509
514
  Wrapper: e.Tag,
510
515
  block: e.processedBlock,
511
516
  context: e.context,
512
517
  hasChildren: !1
513
518
  }, null, 8, ["Wrapper", "block", "context"])) : S("v-if", !0),
514
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (u(!0), m(T, { key: 1 }, V(e.repeatItem, (h, f) => (u(), v(a, {
519
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), p(R, { key: 1 }, B(e.repeatItem, (m, f) => (d(), v(a, {
515
520
  key: f,
516
- repeatContext: h.context,
517
- block: h.block,
521
+ repeatContext: m.context,
522
+ block: m.block,
518
523
  registeredComponents: e.registeredComponents
519
524
  }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : S("v-if", !0),
520
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (u(), v(i, {
525
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), v(i, {
521
526
  key: 2,
522
527
  Wrapper: e.Tag,
523
528
  block: e.processedBlock,
524
529
  context: e.context,
525
530
  hasChildren: !0
526
531
  }, {
527
- default: Z(() => [
528
- B(l, re(He(e.componentRefProps)), null, 16),
529
- (u(!0), m(T, null, V(e.childrenWithoutParentComponent, (h, f) => (u(), v(c, {
530
- key: "block-" + h.id,
531
- block: h,
532
+ default: te(() => [
533
+ V(l, ae(Ye(e.componentRefProps)), null, 16),
534
+ (d(!0), p(R, null, B(e.childrenWithoutParentComponent, (m, f) => (d(), v(c, {
535
+ key: "block-" + m.id,
536
+ block: m,
532
537
  context: e.childrenContext,
533
538
  registeredComponents: e.registeredComponents
534
539
  }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
535
- (u(!0), m(T, null, V(e.childrenWithoutParentComponent, (h, f) => (u(), v(d, {
536
- key: "block-style-" + h.id,
537
- block: h,
540
+ (d(!0), p(R, null, B(e.childrenWithoutParentComponent, (m, f) => (d(), v(u, {
541
+ key: "block-style-" + m.id,
542
+ block: m,
538
543
  context: e.childrenContext
539
544
  }, null, 8, ["block", "context"]))), 128))
540
545
  ]),
@@ -543,10 +548,10 @@ function St(e, t, n, o, r, s) {
543
548
  ], 64))
544
549
  ], 64)) : S("v-if", !0);
545
550
  }
546
- const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
551
+ const xe = /* @__PURE__ */ y(xt, [["render", Et], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
547
552
  __proto__: null,
548
- default: we
549
- }, Symbol.toStringTag, { value: "Module" })), Ct = b({
553
+ default: xe
554
+ }, Symbol.toStringTag, { value: "Module" })), _t = g({
550
555
  name: "builder-blocks-wrapper",
551
556
  props: ["blocks", "parent", "path", "styleProp"],
552
557
  computed: {
@@ -558,7 +563,7 @@ const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/home/runner/work/
558
563
  methods: {
559
564
  onClick() {
560
565
  var e, t;
561
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
566
+ _() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
562
567
  {
563
568
  type: "builder.clickEmptyBlocks",
564
569
  data: {
@@ -571,7 +576,7 @@ const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/home/runner/work/
571
576
  },
572
577
  onMouseEnter() {
573
578
  var e, t;
574
- E() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
579
+ _() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
575
580
  {
576
581
  type: "builder.hoverEmptyBlocks",
577
582
  data: {
@@ -593,9 +598,9 @@ const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/home/runner/work/
593
598
  }
594
599
  }
595
600
  });
596
- const wt = ["builder-path", "builder-parent-id"];
597
- function $t(e, t, n, o, r, s) {
598
- return u(), m("div", $({
601
+ const At = ["builder-path", "builder-parent-id"];
602
+ function Pt(e, t, n, o, s, r) {
603
+ return d(), p("div", I({
599
604
  class: e._classStringToObject(e.className + " div-178o76acnws"),
600
605
  "builder-path": e.path,
601
606
  "builder-parent-id": e.parent,
@@ -604,10 +609,10 @@ function $t(e, t, n, o, r, s) {
604
609
  onMouseenter: t[1] || (t[1] = (i) => e.onMouseEnter()),
605
610
  onKeypress: t[2] || (t[2] = (i) => e.onClick())
606
611
  }, {}), [
607
- j(e.$slots, "default", {}, void 0, !0)
608
- ], 16, wt);
612
+ U(e.$slots, "default", {}, void 0, !0)
613
+ ], 16, At);
609
614
  }
610
- const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), It = Symbol(), J = {
615
+ const jt = /* @__PURE__ */ y(_t, [["render", Pt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), Bt = Symbol(), Q = {
611
616
  Builder: {
612
617
  content: null,
613
618
  context: {},
@@ -620,16 +625,16 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f
620
625
  componentInfos: {},
621
626
  inheritedStyles: {}
622
627
  },
623
- key: It
624
- }, xt = Symbol(), $e = {
628
+ key: Bt
629
+ }, Vt = Symbol(), Ee = {
625
630
  Components: { registeredComponents: {} },
626
- key: xt
627
- }, Rt = b({
631
+ key: Vt
632
+ }, Ut = g({
628
633
  name: "builder-blocks",
629
634
  components: {
630
- BlocksWrapper: Tt,
631
- Block: we,
632
- BlockStyles: Ce
635
+ BlocksWrapper: jt,
636
+ Block: xe,
637
+ BlockStyles: Re
633
638
  },
634
639
  props: [
635
640
  "blocks",
@@ -640,26 +645,26 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f
640
645
  "registeredComponents"
641
646
  ],
642
647
  inject: {
643
- builderContext: J.key,
644
- componentsContext: $e.key
648
+ builderContext: Q.key,
649
+ componentsContext: Ee.key
645
650
  }
646
651
  });
647
- function Et(e, t, n, o, r, s) {
648
- const i = y("block"), a = y("block-styles"), l = y("blocks-wrapper");
649
- return u(), v(l, {
652
+ function Nt(e, t, n, o, s, r) {
653
+ const i = k("block"), a = k("block-styles"), l = k("blocks-wrapper");
654
+ return d(), v(l, {
650
655
  blocks: e.blocks,
651
656
  parent: e.parent,
652
657
  path: e.path,
653
658
  styleProp: e.styleProp
654
659
  }, {
655
- default: Z(() => [
656
- e.blocks ? (u(!0), m(T, { key: 0 }, V(e.blocks, (c, d) => (u(), v(i, {
660
+ default: te(() => [
661
+ e.blocks ? (d(!0), p(R, { key: 0 }, B(e.blocks, (c, u) => (d(), v(i, {
657
662
  key: "render-block-" + c.id,
658
663
  block: c,
659
664
  context: e.context || e.builderContext,
660
665
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
661
666
  }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : S("v-if", !0),
662
- e.blocks ? (u(!0), m(T, { key: 1 }, V(e.blocks, (c, d) => (u(), v(a, {
667
+ e.blocks ? (d(!0), p(R, { key: 1 }, B(e.blocks, (c, u) => (d(), v(a, {
663
668
  key: "block-style-" + c.id,
664
669
  block: c,
665
670
  context: e.context || e.builderContext
@@ -668,9 +673,9 @@ function Et(e, t, n, o, r, s) {
668
673
  _: 1
669
674
  }, 8, ["blocks", "parent", "path", "styleProp"]);
670
675
  }
671
- const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), _t = b({
676
+ const ne = /* @__PURE__ */ y(Ut, [["render", Nt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), Ot = g({
672
677
  name: "builder-columns",
673
- components: { InlinedStyles: z, Blocks: ee },
678
+ components: { InlinedStyles: G, Blocks: ne },
674
679
  props: [
675
680
  "js",
676
681
  "space",
@@ -687,7 +692,7 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/home/runner/work/
687
692
  cols: this.columns || [],
688
693
  stackAt: this.stackColumnsAt || "tablet",
689
694
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
690
- TARGET: A
695
+ TARGET: P
691
696
  };
692
697
  },
693
698
  computed: {
@@ -750,31 +755,31 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/home/runner/work/
750
755
  return this.stackAt === "never" ? t : e;
751
756
  },
752
757
  columnCssVars(e) {
753
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
758
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, s = "100%", r = 0;
754
759
  return {
755
760
  width: n,
756
761
  ["margin-left"]: o,
757
762
  "--column-width-mobile": this.getMobileStyle({
758
- stackedStyle: r,
763
+ stackedStyle: s,
759
764
  desktopStyle: n
760
765
  }),
761
766
  "--column-margin-left-mobile": this.getMobileStyle({
762
- stackedStyle: s,
767
+ stackedStyle: r,
763
768
  desktopStyle: o
764
769
  }),
765
770
  "--column-width-tablet": this.getTabletStyle({
766
- stackedStyle: r,
771
+ stackedStyle: s,
767
772
  desktopStyle: n
768
773
  }),
769
774
  "--column-margin-left-tablet": this.getTabletStyle({
770
- stackedStyle: s,
775
+ stackedStyle: r,
771
776
  desktopStyle: o
772
777
  })
773
778
  };
774
779
  },
775
780
  getWidthForBreakpointSize(e) {
776
781
  var n, o;
777
- return ve(
782
+ return Te(
778
783
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
779
784
  )[e].max;
780
785
  },
@@ -789,24 +794,24 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/home/runner/work/
789
794
  }
790
795
  }
791
796
  });
792
- function At(e, t, n, o, r, s) {
793
- const i = y("inlined-styles"), a = y("blocks");
794
- return u(), m("div", $({
797
+ function Ft(e, t, n, o, s, r) {
798
+ const i = k("inlined-styles"), a = k("blocks");
799
+ return d(), p("div", I({
795
800
  class: e._classStringToObject(
796
801
  `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
797
802
  ),
798
803
  style: e.columnsCssVars
799
804
  }, {}), [
800
- e.TARGET !== "reactNative" ? (u(), v(i, {
805
+ e.TARGET !== "reactNative" ? (d(), v(i, {
801
806
  key: 0,
802
807
  styles: e.columnsStyles
803
808
  }, null, 8, ["styles"])) : S("v-if", !0),
804
- (u(!0), m(T, null, V(e.columns, (l, c) => (u(), m("div", $({
809
+ (d(!0), p(R, null, B(e.columns, (l, c) => (d(), p("div", I({
805
810
  key: c,
806
811
  class: "builder-column div-16nol0lwi20-2",
807
812
  style: e.columnCssVars(c)
808
813
  }, {}), [
809
- B(a, {
814
+ V(a, {
810
815
  path: `component.options.columns.${c}.blocks`,
811
816
  parent: e.builderBlock.id,
812
817
  styleProp: {
@@ -819,47 +824,47 @@ function At(e, t, n, o, r, s) {
819
824
  ], 16))), 128))
820
825
  ], 16);
821
826
  }
822
- const Vt = /* @__PURE__ */ g(_t, [["render", At], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Bt = b({
827
+ const Mt = /* @__PURE__ */ y(Ot, [["render", Ft], ["__scopeId", "data-v-7be099dc"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Wt = g({
823
828
  name: "builder-fragment-component",
824
829
  props: []
825
830
  });
826
- function Pt(e, t, n, o, r, s) {
827
- return u(), m("span", null, [
828
- j(e.$slots, "default")
831
+ function Lt(e, t, n, o, s, r) {
832
+ return d(), p("span", null, [
833
+ U(e.$slots, "default")
829
834
  ]);
830
835
  }
831
- const jt = /* @__PURE__ */ g(Bt, [["render", Pt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
832
- function le(e) {
836
+ const Kt = /* @__PURE__ */ y(Wt, [["render", Lt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
837
+ function pe(e) {
833
838
  return e.replace(/http(s)?:/, "");
834
839
  }
835
- function Ot(e = "", t, n) {
836
- const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
837
- return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
840
+ function Ht(e = "", t, n) {
841
+ const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
842
+ return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
838
843
  }
839
- function Nt(e, t) {
844
+ function zt(e, t) {
840
845
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
841
846
  return e;
842
847
  if (t === "master")
843
- return le(e);
848
+ return pe(e);
844
849
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
845
850
  if (n) {
846
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
847
- return le(`${o[0]}_${s}${r}`);
851
+ const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
852
+ return pe(`${o[0]}_${r}${s}`);
848
853
  }
849
854
  return null;
850
855
  }
851
- function G(e) {
856
+ function X(e) {
852
857
  if (!e)
853
858
  return e;
854
859
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
855
860
  if (e.match(/builder\.io/)) {
856
861
  let n = e;
857
862
  const o = Number(e.split("?width=")[1]);
858
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ot(e, "width", r)} ${r}w`).concat([n]).join(", ");
863
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${Ht(e, "width", s)} ${s}w`).concat([n]).join(", ");
859
864
  }
860
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Nt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
865
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
861
866
  }
862
- const Ft = b({
867
+ const Dt = g({
863
868
  name: "builder-image",
864
869
  props: [
865
870
  "image",
@@ -883,10 +888,10 @@ const Ft = b({
883
888
  return this.srcset;
884
889
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
885
890
  if (!this.srcset.includes(this.image.split("?")[0]))
886
- return console.debug("Removed given srcset"), G(t);
891
+ return console.debug("Removed given srcset"), X(t);
887
892
  } else if (this.image && !this.srcset)
888
- return G(t);
889
- return G(t);
893
+ return X(t);
894
+ return X(t);
890
895
  },
891
896
  webpSrcSet() {
892
897
  var e;
@@ -915,29 +920,29 @@ const Ft = b({
915
920
  }
916
921
  }
917
922
  });
918
- const Ut = ["srcset"], Wt = ["alt", "role", "src", "srcset", "sizes"], Mt = {
923
+ const qt = ["srcset"], Gt = ["alt", "role", "src", "srcset", "sizes"], Jt = {
919
924
  key: 2,
920
925
  class: "div-1be3j8m9ewb-2"
921
926
  };
922
- function Lt(e, t, n, o, r, s) {
927
+ function Yt(e, t, n, o, s, r) {
923
928
  var i, a, l, c;
924
- return u(), m(T, null, [
925
- se("picture", null, [
926
- e.webpSrcSet ? (u(), m("source", {
929
+ return d(), p(R, null, [
930
+ le("picture", null, [
931
+ e.webpSrcSet ? (d(), p("source", {
927
932
  key: 0,
928
933
  type: "image/webp",
929
934
  srcset: e.webpSrcSet
930
- }, null, 8, Ut)) : S("v-if", !0),
931
- se("img", {
935
+ }, null, 8, qt)) : S("v-if", !0),
936
+ le("img", {
932
937
  loading: "lazy",
933
938
  alt: e.altText,
934
939
  role: e.altText ? "presentation" : void 0,
935
- style: ie({
940
+ style: ce({
936
941
  objectPosition: e.backgroundPosition || "center",
937
942
  objectFit: e.backgroundSize || "cover",
938
943
  ...e.aspectRatioCss
939
944
  }),
940
- class: ye(
945
+ class: we(
941
946
  e._classStringToObject(
942
947
  "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
943
948
  )
@@ -945,30 +950,30 @@ function Lt(e, t, n, o, r, s) {
945
950
  src: e.image,
946
951
  srcset: e.srcSetToUse,
947
952
  sizes: e.sizes
948
- }, null, 14, Wt)
953
+ }, null, 14, Gt)
949
954
  ]),
950
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (u(), m("div", {
955
+ e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), p("div", {
951
956
  key: 0,
952
957
  class: "builder-image-sizer div-1be3j8m9ewb",
953
- style: ie({
958
+ style: ce({
954
959
  paddingTop: e.aspectRatio * 100 + "%"
955
960
  })
956
961
  }, null, 4)) : S("v-if", !0),
957
- ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? j(e.$slots, "default", { key: 1 }, void 0, !0) : S("v-if", !0),
958
- !e.fitContent && e.$slots.default ? (u(), m("div", Mt, [
959
- j(e.$slots, "default", {}, void 0, !0)
962
+ ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? U(e.$slots, "default", { key: 1 }, void 0, !0) : S("v-if", !0),
963
+ !e.fitContent && e.$slots.default ? (d(), p("div", Jt, [
964
+ U(e.$slots, "default", {}, void 0, !0)
960
965
  ])) : S("v-if", !0)
961
966
  ], 64);
962
967
  }
963
- const Kt = /* @__PURE__ */ g(Ft, [["render", Lt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), Ht = b({
968
+ const Xt = /* @__PURE__ */ y(Dt, [["render", Yt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), Qt = g({
964
969
  name: "builder-section-component",
965
970
  props: ["attributes", "maxWidth"],
966
971
  data() {
967
- return { filterAttrs: H };
972
+ return { filterAttrs: q };
968
973
  }
969
974
  });
970
- function zt(e, t, n, o, r, s) {
971
- return u(), m("section", $({
975
+ function Zt(e, t, n, o, s, r) {
976
+ return d(), p("section", I({
972
977
  style: {
973
978
  width: "100%",
974
979
  alignSelf: "stretch",
@@ -982,81 +987,81 @@ function zt(e, t, n, o, r, s) {
982
987
  marginRight: "auto"
983
988
  }
984
989
  }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
985
- j(e.$slots, "default")
990
+ U(e.$slots, "default")
986
991
  ], 16);
987
992
  }
988
- const Dt = /* @__PURE__ */ g(Ht, [["render", zt], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
993
+ const en = /* @__PURE__ */ y(Qt, [["render", Zt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
989
994
  ...t,
990
995
  testVariationId: t.id,
991
996
  id: e == null ? void 0 : e.id
992
- })), qt = ({
997
+ })), tn = ({
993
998
  canTrack: e,
994
999
  content: t
995
- }) => !(!(M(t).length > 0) || !e);
996
- function Gt(e, t, n) {
1000
+ }) => !(!(K(t).length > 0) || !e);
1001
+ function nn(e, t, n) {
997
1002
  var i;
998
1003
  function o() {
999
- function a(k, w, R) {
1000
- let P = "";
1001
- if (R) {
1002
- const I = new Date();
1003
- I.setTime(I.getTime() + R * 24 * 60 * 60 * 1e3), P = "; expires=" + I.toUTCString();
1004
+ function a(C, $, T) {
1005
+ let E = "";
1006
+ if (T) {
1007
+ const b = new Date();
1008
+ b.setTime(b.getTime() + T * 24 * 60 * 60 * 1e3), E = "; expires=" + b.toUTCString();
1004
1009
  }
1005
- document.cookie = k + "=" + (w || "") + P + "; path=/; Secure; SameSite=None";
1010
+ document.cookie = C + "=" + ($ || "") + E + "; path=/; Secure; SameSite=None";
1006
1011
  }
1007
- function l(k) {
1008
- const w = k + "=", R = document.cookie.split(";");
1009
- for (let P = 0; P < R.length; P++) {
1010
- let I = R[P];
1011
- for (; I.charAt(0) === " "; )
1012
- I = I.substring(1, I.length);
1013
- if (I.indexOf(w) === 0)
1014
- return I.substring(w.length, I.length);
1012
+ function l(C) {
1013
+ const $ = C + "=", T = document.cookie.split(";");
1014
+ for (let E = 0; E < T.length; E++) {
1015
+ let b = T[E];
1016
+ for (; b.charAt(0) === " "; )
1017
+ b = b.substring(1, b.length);
1018
+ if (b.indexOf($) === 0)
1019
+ return b.substring($.length, b.length);
1015
1020
  }
1016
1021
  return null;
1017
1022
  }
1018
- const c = `builder.tests.${e}`, d = l(c), p = t.map((k) => k.id).concat(e);
1019
- if (d && p.includes(d))
1020
- return d;
1021
- let h = 0;
1023
+ const c = `builder.tests.${e}`, u = l(c), h = t.map((C) => C.id).concat(e);
1024
+ if (u && h.includes(u))
1025
+ return u;
1026
+ let m = 0;
1022
1027
  const f = Math.random();
1023
- for (let k = 0; k < t.length; k++) {
1024
- const w = t[k], R = w.testRatio;
1025
- if (h += R, f < h)
1026
- return a(c, w.id), w.id;
1028
+ for (let C = 0; C < t.length; C++) {
1029
+ const $ = t[C], T = $.testRatio;
1030
+ if (m += T, f < m)
1031
+ return a(c, $.id), $.id;
1027
1032
  }
1028
1033
  return a(c, e), e;
1029
1034
  }
1030
- const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1035
+ const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1031
1036
  if (n) {
1032
- s.remove();
1037
+ r.remove();
1033
1038
  const a = document.currentScript;
1034
1039
  a == null || a.remove();
1035
1040
  } else {
1036
1041
  const a = t.concat({
1037
1042
  id: e
1038
- }).filter((l) => l.id !== r).map((l) => `.variant-${l.id} { display: none; }
1043
+ }).filter((l) => l.id !== s).map((l) => `.variant-${l.id} { display: none; }
1039
1044
  `).join("");
1040
- s.innerHTML = a;
1045
+ r.innerHTML = a;
1041
1046
  }
1042
1047
  }
1043
- function Jt(e, t, n) {
1048
+ function on(e, t, n) {
1044
1049
  var l;
1045
1050
  if (!navigator.cookieEnabled)
1046
1051
  return;
1047
1052
  function o(c) {
1048
- const d = c + "=", p = document.cookie.split(";");
1049
- for (let h = 0; h < p.length; h++) {
1050
- let f = p[h];
1053
+ const u = c + "=", h = document.cookie.split(";");
1054
+ for (let m = 0; m < h.length; m++) {
1055
+ let f = h[m];
1051
1056
  for (; f.charAt(0) === " "; )
1052
1057
  f = f.substring(1, f.length);
1053
- if (f.indexOf(d) === 0)
1054
- return f.substring(d.length, f.length);
1058
+ if (f.indexOf(u) === 0)
1059
+ return f.substring(u.length, f.length);
1055
1060
  }
1056
1061
  return null;
1057
1062
  }
1058
- const r = `builder.tests.${t}`, s = o(r), i = (l = document.currentScript) == null ? void 0 : l.parentElement, a = e === t;
1059
- if (s === e) {
1063
+ const s = `builder.tests.${t}`, r = o(s), i = (l = document.currentScript) == null ? void 0 : l.parentElement, a = e === t;
1064
+ if (r === e) {
1060
1065
  if (a)
1061
1066
  return;
1062
1067
  i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
@@ -1065,18 +1070,18 @@ function Jt(e, t, n) {
1065
1070
  return;
1066
1071
  }
1067
1072
  }
1068
- const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builderIoAbTest", xe = "builderIoRenderContent", Xt = () => {
1069
- const e = Gt.toString().replace(/\s+/g, " "), t = Jt.toString().replace(/\s+/g, " ");
1073
+ const sn = (e) => e === "react" || e === "reactNative", _e = sn(P), Ae = "builderIoAbTest", Pe = "builderIoRenderContent", rn = () => {
1074
+ const e = nn.toString().replace(/\s+/g, " "), t = on.toString().replace(/\s+/g, " ");
1070
1075
  return `
1071
- window.${Ie} = ${e}
1072
- window.${xe} = ${t}
1076
+ window.${Ae} = ${e}
1077
+ window.${Pe} = ${t}
1073
1078
  `;
1074
- }, Qt = (e, t) => `
1075
- window.${Ie}("${t}",${JSON.stringify(e)}, ${Te})`, Zt = ({
1079
+ }, an = (e, t) => `
1080
+ window.${Ae}("${t}",${JSON.stringify(e)}, ${_e})`, ln = ({
1076
1081
  contentId: e,
1077
1082
  variationId: t
1078
1083
  }) => `
1079
- window.${xe}("${t}", "${e}", ${Te})`, en = {
1084
+ window.${Pe}("${t}", "${e}", ${_e})`, cn = {
1080
1085
  name: "Core:Button",
1081
1086
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1082
1087
  defaultStyles: {
@@ -1108,7 +1113,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1108
1113
  }],
1109
1114
  static: !0,
1110
1115
  noWrap: !0
1111
- }, tn = {
1116
+ }, dn = {
1112
1117
  name: "Columns",
1113
1118
  isRSC: !0,
1114
1119
  inputs: [{
@@ -1286,7 +1291,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1286
1291
  });
1287
1292
  }
1288
1293
  const n = e.get("columns");
1289
- Array.isArray(n) && !!n.find((r) => r.get("width")) && (!!n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1294
+ Array.isArray(n) && !!n.find((s) => s.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
1290
1295
  }
1291
1296
  }, {
1292
1297
  name: "space",
@@ -1308,13 +1313,13 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1308
1313
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1309
1314
  advanced: !0
1310
1315
  }]
1311
- }, nn = {
1316
+ }, un = {
1312
1317
  name: "Fragment",
1313
1318
  static: !0,
1314
1319
  hidden: !0,
1315
1320
  canHaveChildren: !0,
1316
1321
  noWrap: !0
1317
- }, on = {
1322
+ }, pn = {
1318
1323
  name: "Image",
1319
1324
  static: !0,
1320
1325
  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",
@@ -1336,27 +1341,27 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1336
1341
  e.delete("srcset"), e.delete("noWebp");
1337
1342
  function n(i, a = 6e4) {
1338
1343
  return new Promise((l, c) => {
1339
- const d = document.createElement("img");
1340
- let p = !1;
1341
- d.onload = () => {
1342
- p = !0, l(d);
1343
- }, d.addEventListener("error", (h) => {
1344
- console.warn("Image load failed", h.error), c(h.error);
1345
- }), d.src = i, setTimeout(() => {
1346
- p || c(new Error("Image load timed out"));
1344
+ const u = document.createElement("img");
1345
+ let h = !1;
1346
+ u.onload = () => {
1347
+ h = !0, l(u);
1348
+ }, u.addEventListener("error", (m) => {
1349
+ console.warn("Image load failed", m.error), c(m.error);
1350
+ }), u.src = i, setTimeout(() => {
1351
+ h || c(new Error("Image load timed out"));
1347
1352
  }, a);
1348
1353
  });
1349
1354
  }
1350
1355
  function o(i) {
1351
1356
  return Math.round(i * 1e3) / 1e3;
1352
1357
  }
1353
- const r = e.get("image"), s = e.get("aspectRatio");
1354
- if (fetch(r).then((i) => i.blob()).then((i) => {
1358
+ const s = e.get("image"), r = e.get("aspectRatio");
1359
+ if (fetch(s).then((i) => i.blob()).then((i) => {
1355
1360
  i.type.includes("svg") && e.set("noWebp", !0);
1356
- }), r && (!s || s === 0.7041))
1357
- return n(r).then((i) => {
1361
+ }), s && (!r || r === 0.7041))
1362
+ return n(s).then((i) => {
1358
1363
  const a = e.get("aspectRatio");
1359
- e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1364
+ e.get("image") === s && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1360
1365
  });
1361
1366
  }
1362
1367
  }, {
@@ -1414,7 +1419,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1414
1419
  advanced: !0,
1415
1420
  defaultValue: 0.7041
1416
1421
  }]
1417
- }, rn = {
1422
+ }, mn = {
1418
1423
  name: "Core:Section",
1419
1424
  static: !0,
1420
1425
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1453,7 +1458,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1453
1458
  }
1454
1459
  }
1455
1460
  }]
1456
- }, sn = {
1461
+ }, hn = {
1457
1462
  name: "Symbol",
1458
1463
  noWrap: !0,
1459
1464
  static: !0,
@@ -1486,7 +1491,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1486
1491
  hideFromUI: !0,
1487
1492
  type: "boolean"
1488
1493
  }]
1489
- }, an = {
1494
+ }, fn = {
1490
1495
  name: "Text",
1491
1496
  static: !0,
1492
1497
  isRSC: !0,
@@ -1504,21 +1509,21 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1504
1509
  height: "auto",
1505
1510
  textAlign: "center"
1506
1511
  }
1507
- }, ln = b({
1512
+ }, bn = g({
1508
1513
  name: "builder-text",
1509
1514
  props: ["text"]
1510
- }), cn = ["innerHTML"];
1511
- function un(e, t, n, o, r, s) {
1515
+ }), gn = ["innerHTML"];
1516
+ function yn(e, t, n, o, s, r) {
1512
1517
  var i;
1513
- return u(), m("div", {
1518
+ return d(), p("div", {
1514
1519
  class: "builder-text",
1515
1520
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1516
1521
  style: {
1517
1522
  outline: "none"
1518
1523
  }
1519
- }, null, 8, cn);
1524
+ }, null, 8, gn);
1520
1525
  }
1521
- const dn = /* @__PURE__ */ g(ln, [["render", un], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), pn = {
1526
+ const kn = /* @__PURE__ */ y(bn, [["render", yn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), vn = {
1522
1527
  name: "Video",
1523
1528
  canHaveChildren: !0,
1524
1529
  defaultStyles: {
@@ -1599,7 +1604,7 @@ const dn = /* @__PURE__ */ g(ln, [["render", un], ["__file", "/home/runner/work/
1599
1604
  defaultValue: !0,
1600
1605
  advanced: !0
1601
1606
  }]
1602
- }, mn = b({
1607
+ }, Sn = g({
1603
1608
  name: "builder-video",
1604
1609
  props: [
1605
1610
  "autoPlay",
@@ -1641,10 +1646,10 @@ const dn = /* @__PURE__ */ g(ln, [["render", un], ["__file", "/home/runner/work/
1641
1646
  };
1642
1647
  }
1643
1648
  }
1644
- }), hn = ["preload", "src", "poster"];
1645
- function fn(e, t, n, o, r, s) {
1649
+ }), Cn = ["preload", "src", "poster"];
1650
+ function wn(e, t, n, o, s, r) {
1646
1651
  var i;
1647
- return u(), m("video", $({
1652
+ return d(), p("video", I({
1648
1653
  preload: e.preload || "metadata",
1649
1654
  style: {
1650
1655
  width: "100%",
@@ -1656,9 +1661,9 @@ function fn(e, t, n, o, r, s) {
1656
1661
  },
1657
1662
  src: e.video || "no-src",
1658
1663
  poster: e.posterImage
1659
- }, e.spreadProps), null, 16, hn);
1664
+ }, e.spreadProps), null, 16, Cn);
1660
1665
  }
1661
- const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), gn = {
1666
+ const $n = /* @__PURE__ */ y(Sn, [["render", wn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), Tn = {
1662
1667
  name: "Embed",
1663
1668
  static: !0,
1664
1669
  inputs: [{
@@ -1683,7 +1688,7 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/home/runner/work/
1683
1688
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1684
1689
  hideFromUI: !0
1685
1690
  }]
1686
- }, yn = ["text/javascript", "application/javascript", "application/ecmascript"], kn = (e) => yn.includes(e.type), vn = b({
1691
+ }, In = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => In.includes(e.type), xn = g({
1687
1692
  name: "builder-embed",
1688
1693
  props: ["content"],
1689
1694
  data() {
@@ -1716,7 +1721,7 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/home/runner/work/
1716
1721
  this.scriptsInserted.push(n.src);
1717
1722
  const o = document.createElement("script");
1718
1723
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1719
- } else if (kn(n) && !this.scriptsRun.includes(n.innerText))
1724
+ } else if (Rn(n) && !this.scriptsRun.includes(n.innerText))
1720
1725
  try {
1721
1726
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1722
1727
  } catch (o) {
@@ -1725,15 +1730,15 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/home/runner/work/
1725
1730
  }
1726
1731
  }
1727
1732
  }
1728
- }), Sn = ["innerHTML"];
1729
- function Cn(e, t, n, o, r, s) {
1730
- return u(), m("div", {
1733
+ }), En = ["innerHTML"];
1734
+ function _n(e, t, n, o, s, r) {
1735
+ return d(), p("div", {
1731
1736
  class: "builder-embed",
1732
1737
  ref: "elem",
1733
1738
  innerHTML: e.content
1734
- }, null, 8, Sn);
1739
+ }, null, 8, En);
1735
1740
  }
1736
- const wn = /* @__PURE__ */ g(vn, [["render", Cn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), $n = b({
1741
+ const An = /* @__PURE__ */ y(xn, [["render", _n], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), Pn = g({
1737
1742
  name: "builder-img-component",
1738
1743
  props: [
1739
1744
  "backgroundSize",
@@ -1744,11 +1749,11 @@ const wn = /* @__PURE__ */ g(vn, [["render", Cn], ["__file", "/home/runner/work/
1744
1749
  "attributes"
1745
1750
  ],
1746
1751
  data() {
1747
- return { isEditing: E, filterAttrs: H };
1752
+ return { isEditing: _, filterAttrs: q };
1748
1753
  }
1749
- }), Tn = ["alt", "src"];
1750
- function In(e, t, n, o, r, s) {
1751
- return u(), m("img", $({
1754
+ }), jn = ["alt", "src"];
1755
+ function Bn(e, t, n, o, s, r) {
1756
+ return d(), p("img", I({
1752
1757
  style: {
1753
1758
  objectFit: e.backgroundSize || "cover",
1754
1759
  objectPosition: e.backgroundPosition || "center"
@@ -1756,9 +1761,9 @@ function In(e, t, n, o, r, s) {
1756
1761
  key: e.isEditing() && e.imgSrc || "default-key",
1757
1762
  alt: e.altText,
1758
1763
  src: e.imgSrc || e.image
1759
- }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Tn);
1764
+ }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, jn);
1760
1765
  }
1761
- const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Rn = {
1766
+ const Vn = /* @__PURE__ */ y(Pn, [["render", Bn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Un = {
1762
1767
  name: "Raw:Img",
1763
1768
  hideFromInsertMenu: !0,
1764
1769
  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",
@@ -1771,43 +1776,41 @@ const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/home/runner/work/
1771
1776
  }],
1772
1777
  noWrap: !0,
1773
1778
  static: !0
1774
- }, En = b({
1779
+ }, Nn = g({
1775
1780
  name: "builder-custom-code",
1776
1781
  props: ["replaceNodes", "code"],
1777
1782
  data() {
1778
1783
  return { scriptsInserted: [], scriptsRun: [] };
1779
1784
  },
1780
1785
  mounted() {
1781
- this.findAndRunScripts();
1782
- },
1783
- methods: {
1784
- findAndRunScripts() {
1785
- if (this.$refs.elem && this.$refs.elem.getElementsByTagName && typeof window < "u") {
1786
- const e = this.$refs.elem.getElementsByTagName("script");
1787
- for (let t = 0; t < e.length; t++) {
1788
- const n = e[t];
1789
- if (n.src) {
1790
- if (this.scriptsInserted.includes(n.src))
1791
- continue;
1792
- this.scriptsInserted.push(n.src);
1793
- const o = document.createElement("script");
1794
- o.async = !0, o.src = n.src, document.head.appendChild(o);
1795
- } else if (!n.type || [
1796
- "text/javascript",
1797
- "application/javascript",
1798
- "application/ecmascript"
1799
- ].includes(n.type)) {
1800
- if (this.scriptsRun.includes(n.innerText))
1801
- continue;
1802
- try {
1803
- this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1804
- } catch (o) {
1805
- console.warn("`CustomCode`: Error running script:", o);
1806
- }
1807
- }
1786
+ var t;
1787
+ if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
1788
+ return;
1789
+ const e = this.$refs.elementRef.getElementsByTagName("script");
1790
+ for (let n = 0; n < e.length; n++) {
1791
+ const o = e[n];
1792
+ if (o.src) {
1793
+ if (this.scriptsInserted.includes(o.src))
1794
+ continue;
1795
+ this.scriptsInserted.push(o.src);
1796
+ const s = document.createElement("script");
1797
+ s.async = !0, s.src = o.src, document.head.appendChild(s);
1798
+ } else if (!o.type || [
1799
+ "text/javascript",
1800
+ "application/javascript",
1801
+ "application/ecmascript"
1802
+ ].includes(o.type)) {
1803
+ if (this.scriptsRun.includes(o.innerText))
1804
+ continue;
1805
+ try {
1806
+ this.scriptsRun.push(o.innerText), new Function(o.innerText)();
1807
+ } catch (s) {
1808
+ console.warn("`CustomCode`: Error running script:", s);
1808
1809
  }
1809
1810
  }
1810
- },
1811
+ }
1812
+ },
1813
+ methods: {
1811
1814
  _classStringToObject(e) {
1812
1815
  const t = {};
1813
1816
  if (typeof e != "string")
@@ -1818,19 +1821,19 @@ const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/home/runner/work/
1818
1821
  return t;
1819
1822
  }
1820
1823
  }
1821
- }), _n = ["innerHTML"];
1822
- function An(e, t, n, o, r, s) {
1823
- return u(), m("div", {
1824
- ref: "elem",
1825
- class: ye(
1824
+ }), On = ["innerHTML"];
1825
+ function Fn(e, t, n, o, s, r) {
1826
+ return d(), p("div", {
1827
+ ref: "elementRef",
1828
+ class: we(
1826
1829
  e._classStringToObject(
1827
1830
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1828
1831
  )
1829
1832
  ),
1830
1833
  innerHTML: e.code
1831
- }, null, 10, _n);
1834
+ }, null, 10, On);
1832
1835
  }
1833
- const Vn = /* @__PURE__ */ g(En, [["render", An], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Bn = {
1836
+ const Mn = /* @__PURE__ */ y(Nn, [["render", Fn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Wn = {
1834
1837
  name: "Custom Code",
1835
1838
  static: !0,
1836
1839
  requiredPermissions: ["editCode"],
@@ -1852,59 +1855,59 @@ const Vn = /* @__PURE__ */ g(En, [["render", An], ["__file", "/home/runner/work/
1852
1855
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1853
1856
  advanced: !0
1854
1857
  }]
1855
- }, ce = () => [{
1856
- component: Je,
1857
- ...en
1858
+ }, me = () => [{
1859
+ component: tt,
1860
+ ...cn
1858
1861
  }, {
1859
- component: Vt,
1860
- ...tn
1862
+ component: Mt,
1863
+ ...dn
1861
1864
  }, {
1862
- component: Vn,
1863
- ...Bn
1864
- }, {
1865
- component: wn,
1866
- ...gn
1865
+ component: Mn,
1866
+ ...Wn
1867
1867
  }, {
1868
- component: jt,
1869
- ...nn
1868
+ component: An,
1869
+ ...Tn
1870
1870
  }, {
1871
1871
  component: Kt,
1872
- ...on
1872
+ ...un
1873
1873
  }, {
1874
- component: xn,
1875
- ...Rn
1874
+ component: Xt,
1875
+ ...pn
1876
1876
  }, {
1877
- component: Dt,
1878
- ...rn
1877
+ component: Vn,
1878
+ ...Un
1879
1879
  }, {
1880
- component: zo,
1881
- ...sn
1880
+ component: en,
1881
+ ...mn
1882
1882
  }, {
1883
- component: dn,
1884
- ...an
1883
+ component: Zo,
1884
+ ...hn
1885
1885
  }, {
1886
- component: bn,
1887
- ...pn
1888
- }], ue = [], Pn = (e) => ({
1886
+ component: kn,
1887
+ ...fn
1888
+ }, {
1889
+ component: $n,
1890
+ ...vn
1891
+ }], he = [], Ln = (e) => ({
1889
1892
  type: "builder.registerComponent",
1890
- data: Y(e)
1891
- }), jn = (e) => {
1893
+ data: Z(e)
1894
+ }), Kn = (e) => {
1892
1895
  const t = e.toString().trim();
1893
1896
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1894
- }, On = (e) => typeof e == "function" ? jn(e) : F(e), Y = ({
1897
+ }, Hn = (e) => typeof e == "function" ? Kn(e) : M(e), Z = ({
1895
1898
  inputs: e,
1896
1899
  ...t
1897
1900
  }) => ({
1898
- ...F(t),
1899
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1901
+ ...M(t),
1902
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
1900
1903
  ...o,
1901
- [r]: On(s)
1904
+ [s]: Hn(r)
1902
1905
  }), {}))
1903
- }), Nn = (e) => {
1904
- var s, i;
1905
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
1906
- let r = "";
1907
- if (o && t && n && (r += `
1906
+ }), zn = (e) => {
1907
+ var r, i;
1908
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
1909
+ let s = "";
1910
+ if (o && t && n && (s += `
1908
1911
  @font-face {
1909
1912
  font-family: "${t}";
1910
1913
  src: local("${n}"), url('${o}') format('woff2');
@@ -1916,7 +1919,7 @@ font-weight: 400;
1916
1919
  if (!(String(Number(a)) === a))
1917
1920
  continue;
1918
1921
  const c = e.files[a];
1919
- c && c !== o && (r += `
1922
+ c && c !== o && (s += `
1920
1923
  @font-face {
1921
1924
  font-family: "${t}";
1922
1925
  src: url('${c}') format('woff2');
@@ -1925,27 +1928,27 @@ font-weight: ${a};
1925
1928
  }
1926
1929
  `.trim());
1927
1930
  }
1928
- return r;
1929
- }, Fn = ({
1931
+ return s;
1932
+ }, Dn = ({
1930
1933
  customFonts: e
1931
1934
  }) => {
1932
1935
  var t;
1933
- return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
1934
- }, Un = ({
1936
+ return ((t = e == null ? void 0 : e.map((n) => zn(n))) == null ? void 0 : t.join(" ")) || "";
1937
+ }, qn = ({
1935
1938
  cssCode: e,
1936
1939
  contentId: t
1937
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Wn = b({
1940
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Gn = g({
1938
1941
  name: "content-styles",
1939
- components: { InlinedStyles: z },
1942
+ components: { InlinedStyles: G },
1940
1943
  props: ["cssCode", "contentId", "customFonts"],
1941
1944
  data() {
1942
1945
  return {
1943
1946
  injectedStyles: `
1944
- ${Un({
1947
+ ${qn({
1945
1948
  cssCode: this.cssCode,
1946
1949
  contentId: this.contentId
1947
1950
  })}
1948
- ${Fn({
1951
+ ${Dn({
1949
1952
  customFonts: this.customFonts
1950
1953
  })}
1951
1954
 
@@ -1965,22 +1968,22 @@ ${Fn({
1965
1968
  };
1966
1969
  }
1967
1970
  });
1968
- function Mn(e, t, n, o, r, s) {
1969
- const i = y("inlined-styles");
1970
- return u(), v(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
1971
+ function Jn(e, t, n, o, s, r) {
1972
+ const i = k("inlined-styles");
1973
+ return d(), v(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
1971
1974
  }
1972
- const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Kn = ({
1975
+ const Yn = /* @__PURE__ */ y(Gn, [["render", Jn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Xn = ({
1973
1976
  content: e,
1974
1977
  data: t,
1975
1978
  locale: n
1976
1979
  }) => {
1977
- var s, i, a;
1980
+ var r, i, a;
1978
1981
  const o = {};
1979
- (i = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || i.forEach((l) => {
1982
+ (i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((l) => {
1980
1983
  var c;
1981
1984
  l.name && l.defaultValue !== void 0 && ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) && e.data.state[l.name] === void 0 && (o[l.name] = l.defaultValue);
1982
1985
  });
1983
- const r = {
1986
+ const s = {
1984
1987
  ...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
1985
1988
  ...t,
1986
1989
  ...n ? {
@@ -1989,9 +1992,9 @@ const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/home/runner/work/
1989
1992
  };
1990
1993
  return {
1991
1994
  ...o,
1992
- ...r
1995
+ ...s
1993
1996
  };
1994
- }, Hn = ({
1997
+ }, Qn = ({
1995
1998
  content: e,
1996
1999
  data: t
1997
2000
  }) => e ? {
@@ -2002,22 +2005,22 @@ const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/home/runner/work/
2002
2005
  },
2003
2006
  meta: e == null ? void 0 : e.meta
2004
2007
  } : void 0;
2005
- function zn() {
2008
+ function Zn() {
2006
2009
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2007
2010
  }
2008
- function Dn() {
2009
- const e = zn().fetch;
2011
+ function eo() {
2012
+ const e = Zn().fetch;
2010
2013
  if (typeof e > "u")
2011
2014
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2012
2015
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2013
2016
  return e;
2014
2017
  }
2015
- const Re = Dn(), qn = (e) => {
2018
+ const je = eo(), to = (e) => {
2016
2019
  if (e === "localhost" || e === "127.0.0.1")
2017
2020
  return e;
2018
2021
  const t = e.split(".");
2019
2022
  return t.length > 2 ? t.slice(1).join(".") : e;
2020
- }, Ee = ({
2023
+ }, Be = ({
2021
2024
  name: e,
2022
2025
  canTrack: t
2023
2026
  }) => {
@@ -2028,14 +2031,14 @@ const Re = Dn(), qn = (e) => {
2028
2031
  x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
2029
2032
  return;
2030
2033
  }
2031
- }, _e = async (e) => Ee(e), Gn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(_).join("; "), Jn = [["secure", ""], ["SameSite", "None"]], Yn = ({
2034
+ }, Ve = async (e) => Be(e), no = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), oo = [["secure", ""], ["SameSite", "None"]], so = ({
2032
2035
  name: e,
2033
2036
  value: t,
2034
2037
  expires: n
2035
2038
  }) => {
2036
- const r = (C() ? location.protocol === "https:" : !0) ? Jn : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", qn(window.location.hostname)], ...r];
2037
- return Gn(i);
2038
- }, Ae = async ({
2039
+ const s = (w() ? location.protocol === "https:" : !0) ? oo : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", to(window.location.hostname)], ...s];
2040
+ return no(i);
2041
+ }, Ue = async ({
2039
2042
  name: e,
2040
2043
  value: t,
2041
2044
  expires: n,
@@ -2044,98 +2047,98 @@ const Re = Dn(), qn = (e) => {
2044
2047
  try {
2045
2048
  if (!o)
2046
2049
  return;
2047
- const r = Yn({
2050
+ const s = so({
2048
2051
  name: e,
2049
2052
  value: t,
2050
2053
  expires: n
2051
2054
  });
2052
- document.cookie = r;
2053
- } catch (r) {
2054
- x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
2055
+ document.cookie = s;
2056
+ } catch (s) {
2057
+ x.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
2055
2058
  }
2056
2059
  };
2057
- function Xn() {
2060
+ function ro() {
2058
2061
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2059
2062
  const t = Math.random() * 16 | 0;
2060
2063
  return (e == "x" ? t : t & 3 | 8).toString(16);
2061
2064
  });
2062
2065
  }
2063
- function Ve() {
2064
- return Xn().replace(/-/g, "");
2066
+ function Ne() {
2067
+ return ro().replace(/-/g, "");
2065
2068
  }
2066
- const Be = "builderSessionId", Qn = async ({
2069
+ const Oe = "builderSessionId", io = async ({
2067
2070
  canTrack: e
2068
2071
  }) => {
2069
2072
  if (!e)
2070
2073
  return;
2071
- const t = await _e({
2072
- name: Be,
2074
+ const t = await Ve({
2075
+ name: Oe,
2073
2076
  canTrack: e
2074
2077
  });
2075
- if (_(t))
2078
+ if (A(t))
2076
2079
  return t;
2077
2080
  {
2078
- const n = Zn();
2079
- return eo({
2081
+ const n = ao();
2082
+ return lo({
2080
2083
  id: n,
2081
2084
  canTrack: e
2082
2085
  }), n;
2083
2086
  }
2084
- }, Zn = () => Ve(), eo = ({
2087
+ }, ao = () => Ne(), lo = ({
2085
2088
  id: e,
2086
2089
  canTrack: t
2087
- }) => Ae({
2088
- name: Be,
2090
+ }) => Ue({
2091
+ name: Oe,
2089
2092
  value: e,
2090
2093
  canTrack: t
2091
- }), Pe = () => C() && typeof localStorage < "u" ? localStorage : void 0, to = ({
2094
+ }), Fe = () => w() && typeof localStorage < "u" ? localStorage : void 0, co = ({
2092
2095
  key: e,
2093
2096
  canTrack: t
2094
2097
  }) => {
2095
2098
  var n;
2096
2099
  try {
2097
- return t ? (n = Pe()) == null ? void 0 : n.getItem(e) : void 0;
2100
+ return t ? (n = Fe()) == null ? void 0 : n.getItem(e) : void 0;
2098
2101
  } catch (o) {
2099
2102
  console.debug("[LocalStorage] GET error: ", o);
2100
2103
  return;
2101
2104
  }
2102
- }, no = ({
2105
+ }, uo = ({
2103
2106
  key: e,
2104
2107
  canTrack: t,
2105
2108
  value: n
2106
2109
  }) => {
2107
2110
  var o;
2108
2111
  try {
2109
- t && ((o = Pe()) == null || o.setItem(e, n));
2110
- } catch (r) {
2111
- console.debug("[LocalStorage] SET error: ", r);
2112
+ t && ((o = Fe()) == null || o.setItem(e, n));
2113
+ } catch (s) {
2114
+ console.debug("[LocalStorage] SET error: ", s);
2112
2115
  }
2113
- }, je = "builderVisitorId", oo = ({
2116
+ }, Me = "builderVisitorId", po = ({
2114
2117
  canTrack: e
2115
2118
  }) => {
2116
2119
  if (!e)
2117
2120
  return;
2118
- const t = to({
2119
- key: je,
2121
+ const t = co({
2122
+ key: Me,
2120
2123
  canTrack: e
2121
2124
  });
2122
- if (_(t))
2125
+ if (A(t))
2123
2126
  return t;
2124
2127
  {
2125
- const n = ro();
2126
- return so({
2128
+ const n = mo();
2129
+ return ho({
2127
2130
  id: n,
2128
2131
  canTrack: e
2129
2132
  }), n;
2130
2133
  }
2131
- }, ro = () => Ve(), so = ({
2134
+ }, mo = () => Ne(), ho = ({
2132
2135
  id: e,
2133
2136
  canTrack: t
2134
- }) => no({
2135
- key: je,
2137
+ }) => uo({
2138
+ key: Me,
2136
2139
  value: e,
2137
2140
  canTrack: t
2138
- }), io = async ({
2141
+ }), fo = async ({
2139
2142
  canTrack: e
2140
2143
  }) => {
2141
2144
  if (!e)
@@ -2143,46 +2146,46 @@ const Be = "builderSessionId", Qn = async ({
2143
2146
  visitorId: void 0,
2144
2147
  sessionId: void 0
2145
2148
  };
2146
- const t = await Qn({
2149
+ const t = await io({
2147
2150
  canTrack: e
2148
- }), n = oo({
2151
+ }), n = po({
2149
2152
  canTrack: e
2150
2153
  });
2151
2154
  return {
2152
2155
  sessionId: t,
2153
2156
  visitorId: n
2154
2157
  };
2155
- }, ao = async ({
2158
+ }, bo = async ({
2156
2159
  type: e,
2157
2160
  canTrack: t,
2158
2161
  apiKey: n,
2159
2162
  metadata: o,
2160
- ...r
2163
+ ...s
2161
2164
  }) => ({
2162
2165
  type: e,
2163
2166
  data: {
2164
- ...r,
2167
+ ...s,
2165
2168
  metadata: {
2166
2169
  url: location.href,
2167
2170
  ...o
2168
2171
  },
2169
- ...await io({
2172
+ ...await fo({
2170
2173
  canTrack: t
2171
2174
  }),
2172
- userAttributes: Se(),
2175
+ userAttributes: Ie(),
2173
2176
  ownerId: n
2174
2177
  }
2175
2178
  });
2176
- async function X(e) {
2179
+ async function ee(e) {
2177
2180
  if (!e.apiKey) {
2178
2181
  x.error("Missing API key for track call. Please provide your API key.");
2179
2182
  return;
2180
2183
  }
2181
- if (!!e.canTrack && !E() && !!(C() || A === "reactNative"))
2184
+ if (!!e.canTrack && !_() && !!(w() || P === "reactNative"))
2182
2185
  return fetch("https://cdn.builder.io/api/v1/track", {
2183
2186
  method: "POST",
2184
2187
  body: JSON.stringify({
2185
- events: [await ao(e)]
2188
+ events: [await bo(e)]
2186
2189
  }),
2187
2190
  headers: {
2188
2191
  "content-type": "application/json"
@@ -2192,13 +2195,13 @@ async function X(e) {
2192
2195
  console.error("Failed to track: ", t);
2193
2196
  });
2194
2197
  }
2195
- const Go = (e) => X({
2198
+ const ns = (e) => ee({
2196
2199
  ...e,
2197
2200
  canTrack: !0
2198
- }), lo = "0.6.4", de = {};
2199
- function co(e, t) {
2200
- let n = de[e];
2201
- if (n || (n = de[e] = []), n.push(t), C()) {
2201
+ }), go = "0.7.1-1", fe = {};
2202
+ function yo(e, t) {
2203
+ let n = fe[e];
2204
+ if (n || (n = fe[e] = []), n.push(t), w()) {
2202
2205
  const o = {
2203
2206
  type: "builder.register",
2204
2207
  data: {
@@ -2208,13 +2211,13 @@ function co(e, t) {
2208
2211
  };
2209
2212
  try {
2210
2213
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
2211
- } catch (r) {
2212
- console.debug("Could not postmessage", r);
2214
+ } catch (s) {
2215
+ console.debug("Could not postmessage", s);
2213
2216
  }
2214
2217
  }
2215
2218
  }
2216
- const uo = () => {
2217
- co("insertMenu", {
2219
+ const ko = () => {
2220
+ yo("insertMenu", {
2218
2221
  name: "_default",
2219
2222
  default: !0,
2220
2223
  items: [{
@@ -2236,14 +2239,14 @@ const uo = () => {
2236
2239
  }]
2237
2240
  });
2238
2241
  };
2239
- let pe = !1;
2240
- const po = (e = {}) => {
2242
+ let be = !1;
2243
+ const vo = (e = {}) => {
2241
2244
  var t, n;
2242
- pe || (pe = !0, C() && ((t = window.parent) == null || t.postMessage({
2245
+ be || (be = !0, w() && ((t = window.parent) == null || t.postMessage({
2243
2246
  type: "builder.sdkInfo",
2244
2247
  data: {
2245
- target: A,
2246
- version: lo,
2248
+ target: P,
2249
+ version: go,
2247
2250
  supportsPatchUpdates: !1,
2248
2251
  supportsAddBlockScoping: !0,
2249
2252
  supportsCustomBreakpoints: !0
@@ -2256,36 +2259,36 @@ const po = (e = {}) => {
2256
2259
  }, "*"), window.addEventListener("message", ({
2257
2260
  data: o
2258
2261
  }) => {
2259
- var r, s;
2262
+ var s, r;
2260
2263
  if (!!(o != null && o.type))
2261
2264
  switch (o.type) {
2262
2265
  case "builder.evaluate": {
2263
2266
  const i = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(i);
2264
- let d, p = null;
2267
+ let u, h = null;
2265
2268
  try {
2266
- d = c.apply(null, a);
2267
- } catch (h) {
2268
- p = h;
2269
+ u = c.apply(null, a);
2270
+ } catch (m) {
2271
+ h = m;
2269
2272
  }
2270
- p ? (r = window.parent) == null || r.postMessage({
2273
+ h ? (s = window.parent) == null || s.postMessage({
2271
2274
  type: "builder.evaluateError",
2272
2275
  data: {
2273
2276
  id: l,
2274
- error: p.message
2277
+ error: h.message
2275
2278
  }
2276
- }, "*") : d && typeof d.then == "function" ? d.then((h) => {
2279
+ }, "*") : u && typeof u.then == "function" ? u.then((m) => {
2277
2280
  var f;
2278
2281
  (f = window.parent) == null || f.postMessage({
2279
2282
  type: "builder.evaluateResult",
2280
2283
  data: {
2281
2284
  id: l,
2282
- result: h
2285
+ result: m
2283
2286
  }
2284
2287
  }, "*");
2285
- }).catch(console.error) : (s = window.parent) == null || s.postMessage({
2288
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2286
2289
  type: "builder.evaluateResult",
2287
2290
  data: {
2288
- result: d,
2291
+ result: u,
2289
2292
  id: l
2290
2293
  }
2291
2294
  }, "*");
@@ -2294,10 +2297,10 @@ const po = (e = {}) => {
2294
2297
  }
2295
2298
  })));
2296
2299
  };
2297
- function me(e) {
2300
+ function ge(e) {
2298
2301
  return Math.round(e * 1e3) / 1e3;
2299
2302
  }
2300
- const mo = (e, t, n = !0) => {
2303
+ const So = (e, t, n = !0) => {
2301
2304
  if (!(e instanceof HTMLElement))
2302
2305
  return null;
2303
2306
  let o = n ? e : e.parentElement;
@@ -2308,73 +2311,73 @@ const mo = (e, t, n = !0) => {
2308
2311
  return o;
2309
2312
  } while (o = o.parentElement);
2310
2313
  return null;
2311
- }, ho = (e) => mo(e, (t) => {
2314
+ }, Co = (e) => So(e, (t) => {
2312
2315
  const n = t.getAttribute("builder-id") || t.id;
2313
2316
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2314
- }), he = ({
2317
+ }), ye = ({
2315
2318
  event: e,
2316
2319
  target: t
2317
2320
  }) => {
2318
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = me(o / n.width), i = me(r / n.height);
2321
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ge(o / n.width), i = ge(s / n.height);
2319
2322
  return {
2320
- x: s,
2323
+ x: r,
2321
2324
  y: i
2322
2325
  };
2323
- }, fo = (e) => {
2324
- const t = e.target, n = t && ho(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2326
+ }, wo = (e) => {
2327
+ const t = e.target, n = t && Co(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2325
2328
  return {
2326
2329
  targetBuilderElement: o || void 0,
2327
2330
  metadata: {
2328
- targetOffset: t ? he({
2331
+ targetOffset: t ? ye({
2329
2332
  event: e,
2330
2333
  target: t
2331
2334
  }) : void 0,
2332
- builderTargetOffset: n ? he({
2335
+ builderTargetOffset: n ? ye({
2333
2336
  event: e,
2334
2337
  target: n
2335
2338
  }) : void 0,
2336
2339
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2337
2340
  }
2338
2341
  };
2339
- }, bo = "builder.tests", te = (e) => `${bo}.${e}`, go = ({
2342
+ }, $o = "builder.tests", oe = (e) => `${$o}.${e}`, To = ({
2340
2343
  contentId: e
2341
- }) => _e({
2342
- name: te(e),
2344
+ }) => Ve({
2345
+ name: oe(e),
2343
2346
  canTrack: !0
2344
- }), yo = ({
2347
+ }), Io = ({
2345
2348
  contentId: e
2346
- }) => Ee({
2347
- name: te(e),
2349
+ }) => Be({
2350
+ name: oe(e),
2348
2351
  canTrack: !0
2349
- }), ko = ({
2352
+ }), Ro = ({
2350
2353
  contentId: e,
2351
2354
  value: t
2352
- }) => Ae({
2353
- name: te(e),
2355
+ }) => Ue({
2356
+ name: oe(e),
2354
2357
  value: t,
2355
2358
  canTrack: !0
2356
- }), Oe = (e) => _(e.id) && _(e.variations) && Object.keys(e.variations).length > 0, vo = ({
2359
+ }), We = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, xo = ({
2357
2360
  id: e,
2358
2361
  variations: t
2359
2362
  }) => {
2360
- var r;
2363
+ var s;
2361
2364
  let n = 0;
2362
2365
  const o = Math.random();
2363
- for (const s in t) {
2364
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
2366
+ for (const r in t) {
2367
+ const i = (s = t[r]) == null ? void 0 : s.testRatio;
2365
2368
  if (n += i, o < n)
2366
- return s;
2369
+ return r;
2367
2370
  }
2368
2371
  return e;
2369
- }, Ne = (e) => {
2370
- const t = vo(e);
2371
- return ko({
2372
+ }, Le = (e) => {
2373
+ const t = xo(e);
2374
+ return Ro({
2372
2375
  contentId: e.id,
2373
2376
  value: t
2374
2377
  }).catch((n) => {
2375
2378
  x.error("could not store A/B test variation: ", n);
2376
2379
  }), t;
2377
- }, Fe = ({
2380
+ }, Ke = ({
2378
2381
  item: e,
2379
2382
  testGroupId: t
2380
2383
  }) => {
@@ -2387,7 +2390,7 @@ const mo = (e, t, n = !0) => {
2387
2390
  testVariationId: n.id,
2388
2391
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
2389
2392
  };
2390
- }, So = ({
2393
+ }, Eo = ({
2391
2394
  item: e,
2392
2395
  canTrack: t
2393
2396
  }) => {
@@ -2395,14 +2398,14 @@ const mo = (e, t, n = !0) => {
2395
2398
  return e;
2396
2399
  if (!e)
2397
2400
  return;
2398
- if (!Oe(e))
2401
+ if (!We(e))
2399
2402
  return e;
2400
- const n = yo({
2403
+ const n = Io({
2401
2404
  contentId: e.id
2402
- }) || Ne({
2405
+ }) || Le({
2403
2406
  variations: e.variations,
2404
2407
  id: e.id
2405
- }), o = Fe({
2408
+ }), o = Ke({
2406
2409
  item: e,
2407
2410
  testGroupId: n
2408
2411
  });
@@ -2410,124 +2413,139 @@ const mo = (e, t, n = !0) => {
2410
2413
  ...e,
2411
2414
  ...o
2412
2415
  };
2413
- }, Co = async ({
2416
+ }, _o = async ({
2414
2417
  item: e,
2415
2418
  canTrack: t
2416
2419
  }) => {
2417
- if (!t || !Oe(e))
2420
+ if (!t || !We(e))
2418
2421
  return e;
2419
- const o = await go({
2422
+ const o = await To({
2420
2423
  contentId: e.id
2421
- }) || Ne({
2424
+ }) || Le({
2422
2425
  variations: e.variations,
2423
2426
  id: e.id
2424
- }), r = Fe({
2427
+ }), s = Ke({
2425
2428
  item: e,
2426
2429
  testGroupId: o
2427
2430
  });
2428
2431
  return {
2429
2432
  ...e,
2430
- ...r
2433
+ ...s
2431
2434
  };
2432
- }, N = (e) => _(e) ? e : !0;
2433
- function Q(e, t = null, n = ".") {
2434
- return Object.keys(e).reduce((o, r) => {
2435
- const s = e[r], i = [t, r].filter(Boolean).join(n);
2436
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
2435
+ }, F = (e) => A(e) ? e : !0;
2436
+ function H(e, t = null, n = ".") {
2437
+ return Object.keys(e).reduce((o, s) => {
2438
+ const r = e[s], i = [t, s].filter(Boolean).join(n);
2439
+ return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
2437
2440
  ...o,
2438
- ...Q(s, i, n)
2441
+ ...H(r, i, n)
2439
2442
  } : {
2440
2443
  ...o,
2441
- [i]: s
2444
+ [i]: r
2442
2445
  };
2443
2446
  }, {});
2444
2447
  }
2445
- const fe = "builder.", wo = "options.", $o = (e) => {
2448
+ const ke = "builder.", Ao = "options.", Po = (e) => {
2446
2449
  const t = {};
2447
2450
  return e.forEach((n, o) => {
2448
2451
  t[o] = n;
2449
2452
  }), t;
2450
- }, Ue = (e) => {
2453
+ }, He = (e) => {
2451
2454
  if (!e)
2452
2455
  return {};
2453
- const t = We(e), n = {};
2456
+ const t = ze(e), n = {};
2454
2457
  return Object.keys(t).forEach((o) => {
2455
- if (o.startsWith(fe)) {
2456
- const r = o.replace(fe, "").replace(wo, "");
2457
- n[r] = t[o];
2458
+ if (o.startsWith(ke)) {
2459
+ const s = o.replace(ke, "").replace(Ao, "");
2460
+ n[s] = t[o];
2458
2461
  }
2459
2462
  }), n;
2460
- }, To = () => {
2461
- if (!C())
2463
+ }, jo = () => {
2464
+ if (!w())
2462
2465
  return {};
2463
2466
  const e = new URLSearchParams(window.location.search);
2464
- return Ue(e);
2465
- }, We = (e) => e instanceof URLSearchParams ? $o(e) : e, Io = "v3", ne = (e) => {
2467
+ return He(e);
2468
+ }, ze = (e) => e instanceof URLSearchParams ? Po(e) : e, Bo = "v3", ve = (e) => typeof e == "number" && !isNaN(e) && e >= 0, se = (e) => {
2466
2469
  let {
2467
2470
  noTraverse: t = !1
2468
2471
  } = e;
2469
2472
  const {
2470
2473
  limit: n = 30,
2471
2474
  userAttributes: o,
2472
- query: r,
2473
- model: s,
2475
+ query: s,
2476
+ model: r,
2474
2477
  apiKey: i,
2475
2478
  includeRefs: a = !0,
2476
2479
  enrich: l,
2477
2480
  locale: c,
2478
- apiVersion: d = Io
2481
+ apiVersion: u = Bo,
2482
+ fields: h,
2483
+ omit: m,
2484
+ offset: f,
2485
+ cacheSeconds: C,
2486
+ staleCacheSeconds: $,
2487
+ sort: T,
2488
+ includeUnpublished: E
2479
2489
  } = e;
2480
2490
  if (!i)
2481
2491
  throw new Error("Missing API key");
2482
- if (!["v2", "v3"].includes(d))
2483
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${d}'`);
2492
+ if (!["v2", "v3"].includes(u))
2493
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2484
2494
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2485
- const p = new URL(`https://cdn.builder.io/api/${d}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`), h = {
2486
- ...To(),
2487
- ...We(e.options || {})
2488
- }, f = Q(h);
2489
- for (const k in f)
2490
- p.searchParams.set(k, String(f[k]));
2491
- if (o && p.searchParams.set("userAttributes", JSON.stringify(o)), r) {
2492
- const k = Q({
2493
- query: r
2495
+ const b = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`);
2496
+ if (b.searchParams.set("omit", m || "meta.componentsUsed"), h && b.searchParams.set("fields", h), Number.isFinite(f) && f > -1 && b.searchParams.set("offset", String(Math.floor(f))), typeof E == "boolean" && b.searchParams.set("includeUnpublished", String(E)), C && ve(C) && b.searchParams.set("cacheSeconds", String(C)), $ && ve($) && b.searchParams.set("staleCacheSeconds", String($)), T) {
2497
+ const j = H({
2498
+ sort: T
2499
+ });
2500
+ for (const N in j)
2501
+ b.searchParams.set(N, JSON.stringify(j[N]));
2502
+ }
2503
+ const Je = {
2504
+ ...jo(),
2505
+ ...ze(e.options || {})
2506
+ }, re = H(Je);
2507
+ for (const j in re)
2508
+ b.searchParams.set(j, String(re[j]));
2509
+ if (o && b.searchParams.set("userAttributes", JSON.stringify(o)), s) {
2510
+ const j = H({
2511
+ query: s
2494
2512
  });
2495
- for (const w in k)
2496
- p.searchParams.set(w, JSON.stringify(k[w]));
2513
+ for (const N in j)
2514
+ b.searchParams.set(N, JSON.stringify(j[N]));
2497
2515
  }
2498
- return p;
2499
- }, xo = (e) => "results" in e;
2500
- async function D(e) {
2501
- const t = await Me({
2516
+ return b;
2517
+ }, Vo = (e) => "results" in e;
2518
+ async function J(e) {
2519
+ const t = await De({
2502
2520
  ...e,
2503
2521
  limit: 1
2504
2522
  });
2505
2523
  return t && t.results[0] || null;
2506
2524
  }
2507
- const Jo = D, Ro = async (e) => {
2508
- const t = ne(e);
2509
- return await (await Re(t.href)).json();
2510
- }, Eo = async (e, t, n = ne(e)) => {
2511
- const o = N(e.canTrack);
2512
- if (n.search.includes("preview="), !o || !(C() || A === "reactNative"))
2525
+ const os = J, Uo = async (e) => {
2526
+ const t = se(e);
2527
+ return await (await je(t.href)).json();
2528
+ }, No = async (e, t, n = se(e)) => {
2529
+ const o = F(e.canTrack);
2530
+ if (n.search.includes("preview="), !o || !(w() || P === "reactNative"))
2513
2531
  return t;
2514
2532
  try {
2515
- const r = [];
2516
- for (const s of t.results)
2517
- r.push(await Co({
2518
- item: s,
2533
+ const s = [];
2534
+ for (const r of t.results)
2535
+ s.push(await _o({
2536
+ item: r,
2519
2537
  canTrack: o
2520
2538
  }));
2521
- t.results = r;
2522
- } catch (r) {
2523
- x.error("Could not process A/B tests. ", r);
2539
+ t.results = s;
2540
+ } catch (s) {
2541
+ x.error("Could not process A/B tests. ", s);
2524
2542
  }
2525
2543
  return t;
2526
2544
  };
2527
- async function Me(e) {
2545
+ async function De(e) {
2528
2546
  try {
2529
- const t = ne(e), n = await Ro(e);
2530
- return xo(n) ? Eo(e, n) : (x.error("Error fetching data. ", {
2547
+ const t = se(e), n = await Uo(e);
2548
+ return Vo(n) ? No(e, n) : (x.error("Error fetching data. ", {
2531
2549
  url: t,
2532
2550
  content: n,
2533
2551
  options: e
@@ -2536,11 +2554,11 @@ async function Me(e) {
2536
2554
  return x.error("Error fetching data. ", t), null;
2537
2555
  }
2538
2556
  }
2539
- const Yo = Me;
2540
- function _o() {
2541
- return !C() || E() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2557
+ const ss = De;
2558
+ function Oo() {
2559
+ return !w() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2542
2560
  }
2543
- const Ao = b({
2561
+ const Fo = g({
2544
2562
  name: "enable-editor",
2545
2563
  props: [
2546
2564
  "builderContextSignal",
@@ -2548,12 +2566,12 @@ const Ao = b({
2548
2566
  "context",
2549
2567
  "canTrack",
2550
2568
  "apiKey",
2551
- "showContent",
2552
- "classNameProp",
2553
- "content",
2554
2569
  "locale",
2555
2570
  "includeRefs",
2556
- "enrich"
2571
+ "enrich",
2572
+ "content",
2573
+ "showContent",
2574
+ "classNameProp"
2557
2575
  ],
2558
2576
  data() {
2559
2577
  return {
@@ -2562,63 +2580,40 @@ const Ao = b({
2562
2580
  shouldSendResetCookie: !1,
2563
2581
  httpReqsData: {},
2564
2582
  clicked: !1,
2565
- builderContext: J
2583
+ builderContext: Q
2566
2584
  };
2567
2585
  },
2568
2586
  provide() {
2569
2587
  const e = this;
2570
2588
  return {
2571
- [J.key]: e.builderContextSignal
2589
+ [Q.key]: e.builderContextSignal
2572
2590
  };
2573
2591
  },
2574
2592
  mounted() {
2575
- var e, t;
2576
- if (this.apiKey || x.error(
2577
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2578
- ), C()) {
2579
- if (E() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), uo(), po({
2580
- ...this.locale ? {
2581
- locale: this.locale
2582
- } : {},
2583
- ...this.includeRefs ? {
2584
- includeRefs: this.includeRefs
2585
- } : {},
2586
- ...this.enrich ? {
2587
- enrich: this.enrich
2588
- } : {}
2589
- }), Object.values(
2590
- this.builderContextSignal.componentInfos
2591
- ).forEach((n) => {
2592
- var r;
2593
- const o = Pn(n);
2594
- (r = window.parent) == null || r.postMessage(o, "*");
2595
- }), window.addEventListener(
2596
- "builder:component:stateChangeListenerActivated",
2597
- this.emitStateUpdate
2598
- )), this.builderContextSignal.content) {
2599
- const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
2600
- X({
2601
- type: "impression",
2602
- canTrack: N(this.canTrack),
2603
- contentId: o,
2604
- apiKey: this.apiKey,
2605
- variationId: n !== o ? n : void 0
2606
- });
2607
- }
2608
- if (_o()) {
2609
- const n = new URL(location.href).searchParams, o = n.get("builder.preview"), r = n.get(
2610
- `builder.preview.${o}`
2611
- ), s = n.get("apiKey") || n.get("builder.space");
2612
- o === this.model && s === this.apiKey && (!this.content || r === this.content.id) && D({
2613
- model: this.model,
2614
- apiKey: this.apiKey,
2615
- apiVersion: this.builderContextSignal.apiVersion
2616
- }).then((i) => {
2617
- i && this.mergeNewContent(i);
2618
- });
2593
+ (() => {
2594
+ var n, o;
2595
+ if (w()) {
2596
+ if (_() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2597
+ new CustomEvent("initeditingbldr")
2598
+ ), this.builderContextSignal.content && F(this.canTrack)) {
2599
+ const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2600
+ ee({
2601
+ type: "impression",
2602
+ canTrack: !0,
2603
+ contentId: i,
2604
+ apiKey: a,
2605
+ variationId: r !== i ? r : void 0
2606
+ });
2607
+ }
2608
+ Oo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2609
+ new CustomEvent("initpreviewingbldr")
2610
+ );
2619
2611
  }
2620
- this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2621
- }
2612
+ })(), (() => {
2613
+ this.apiKey || x.error(
2614
+ "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2615
+ ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2616
+ })();
2622
2617
  },
2623
2618
  watch: {
2624
2619
  onUpdateHook0: {
@@ -2649,7 +2644,7 @@ const Ao = b({
2649
2644
  }
2650
2645
  },
2651
2646
  unmounted() {
2652
- C() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2647
+ w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2653
2648
  "builder:component:stateChangeListenerActivated",
2654
2649
  this.emitStateUpdate
2655
2650
  ));
@@ -2686,7 +2681,7 @@ const Ao = b({
2686
2681
  },
2687
2682
  methods: {
2688
2683
  mergeNewContent(e) {
2689
- var n, o, r, s, i;
2684
+ var n, o, s, r, i;
2690
2685
  const t = {
2691
2686
  ...this.builderContextSignal.content,
2692
2687
  ...e,
@@ -2697,7 +2692,7 @@ const Ao = b({
2697
2692
  meta: {
2698
2693
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
2699
2694
  ...e == null ? void 0 : e.meta,
2700
- breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
2695
+ breakpoints: ((s = e == null ? void 0 : e.meta) == null ? void 0 : s.breakpoints) || ((i = (r = this.builderContextSignal.content) == null ? void 0 : r.meta) == null ? void 0 : i.breakpoints)
2701
2696
  }
2702
2697
  };
2703
2698
  this.builderContextSignal.content = t;
@@ -2708,19 +2703,19 @@ const Ao = b({
2708
2703
  if (t)
2709
2704
  switch (t.type) {
2710
2705
  case "builder.configureSdk": {
2711
- const o = t.data, { breakpoints: r, contentId: s } = o;
2712
- if (!s || s !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2706
+ const o = t.data, { breakpoints: s, contentId: r } = o;
2707
+ if (!r || r !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
2713
2708
  return;
2714
- r && this.mergeNewContent({
2709
+ s && this.mergeNewContent({
2715
2710
  meta: {
2716
- breakpoints: r
2711
+ breakpoints: s
2717
2712
  }
2718
2713
  }), this.forceReRenderCount = this.forceReRenderCount + 1;
2719
2714
  break;
2720
2715
  }
2721
2716
  case "builder.contentUpdate": {
2722
- const o = t.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
2723
- r === this.model && (this.mergeNewContent(s), this.forceReRenderCount = this.forceReRenderCount + 1);
2717
+ const o = t.data, s = o.key || o.alias || o.entry || o.modelName, r = o.data;
2718
+ s === this.model && (this.mergeNewContent(r), this.forceReRenderCount = this.forceReRenderCount + 1);
2724
2719
  break;
2725
2720
  }
2726
2721
  }
@@ -2728,7 +2723,7 @@ const Ao = b({
2728
2723
  evaluateJsCode() {
2729
2724
  var t, n;
2730
2725
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
2731
- e && L({
2726
+ e && z({
2732
2727
  code: e,
2733
2728
  context: this.context || {},
2734
2729
  localState: void 0,
@@ -2739,14 +2734,14 @@ const Ao = b({
2739
2734
  onClick(e) {
2740
2735
  var t, n;
2741
2736
  if (this.builderContextSignal.content) {
2742
- const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2743
- X({
2737
+ const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2738
+ ee({
2744
2739
  type: "click",
2745
- canTrack: N(this.canTrack),
2746
- contentId: r,
2740
+ canTrack: F(this.canTrack),
2741
+ contentId: s,
2747
2742
  apiKey: this.apiKey,
2748
- variationId: o !== r ? o : void 0,
2749
- ...fo(e),
2743
+ variationId: o !== s ? o : void 0,
2744
+ ...wo(e),
2750
2745
  unique: !this.clicked
2751
2746
  });
2752
2747
  }
@@ -2755,7 +2750,7 @@ const Ao = b({
2755
2750
  evalExpression(e) {
2756
2751
  return e.replace(
2757
2752
  /{{([^}]+)}}/g,
2758
- (t, n) => L({
2753
+ (t, n) => z({
2759
2754
  code: n,
2760
2755
  context: this.context || {},
2761
2756
  localState: void 0,
@@ -2765,13 +2760,13 @@ const Ao = b({
2765
2760
  );
2766
2761
  },
2767
2762
  handleRequest({ url: e, key: t }) {
2768
- Re(e).then((n) => n.json()).then((n) => {
2769
- var r, s;
2763
+ je(e).then((n) => n.json()).then((n) => {
2764
+ var s, r;
2770
2765
  const o = {
2771
2766
  ...this.builderContextSignal.rootState,
2772
2767
  [t]: n
2773
2768
  };
2774
- (s = (r = this.builderContextSignal).rootSetState) == null || s.call(r, o), this.httpReqsData[t] = !0;
2769
+ (r = (s = this.builderContextSignal).rootSetState) == null || r.call(s, o), this.httpReqsData[t] = !0;
2775
2770
  }).catch((n) => {
2776
2771
  console.error("error fetching dynamic data", e, n);
2777
2772
  });
@@ -2779,23 +2774,23 @@ const Ao = b({
2779
2774
  runHttpRequests() {
2780
2775
  var t, n, o;
2781
2776
  const e = (o = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) != null ? o : {};
2782
- Object.entries(e).forEach(([r, s]) => {
2783
- if (s && (!this.httpReqsData[r] || E())) {
2784
- const i = this.evalExpression(s);
2777
+ Object.entries(e).forEach(([s, r]) => {
2778
+ if (r && (!this.httpReqsData[s] || _())) {
2779
+ const i = this.evalExpression(r);
2785
2780
  this.handleRequest({
2786
2781
  url: i,
2787
- key: r
2782
+ key: s
2788
2783
  });
2789
2784
  }
2790
2785
  });
2791
2786
  },
2792
2787
  emitStateUpdate() {
2793
- E() && window.dispatchEvent(
2788
+ _() && window.dispatchEvent(
2794
2789
  new CustomEvent(
2795
2790
  "builder:component:stateChange",
2796
2791
  {
2797
2792
  detail: {
2798
- state: F(this.builderContextSignal.rootState),
2793
+ state: M(this.builderContextSignal.rootState),
2799
2794
  ref: {
2800
2795
  name: this.model
2801
2796
  }
@@ -2804,6 +2799,40 @@ const Ao = b({
2804
2799
  )
2805
2800
  );
2806
2801
  },
2802
+ elementRef_onIniteditingbldr(e) {
2803
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), ko(), vo({
2804
+ ...this.locale ? {
2805
+ locale: this.locale
2806
+ } : {},
2807
+ ...this.includeRefs ? {
2808
+ includeRefs: this.includeRefs
2809
+ } : {},
2810
+ ...this.enrich ? {
2811
+ enrich: this.enrich
2812
+ } : {}
2813
+ }), Object.values(
2814
+ this.builderContextSignal.componentInfos
2815
+ ).forEach((t) => {
2816
+ var o;
2817
+ const n = Ln(t);
2818
+ (o = window.parent) == null || o.postMessage(n, "*");
2819
+ }), window.addEventListener(
2820
+ "builder:component:stateChangeListenerActivated",
2821
+ this.emitStateUpdate
2822
+ );
2823
+ },
2824
+ elementRef_onInitpreviewingbldr(e) {
2825
+ const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
2826
+ `builder.preview.${n}`
2827
+ ), s = t.get("apiKey") || t.get("builder.space");
2828
+ n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && J({
2829
+ model: this.model,
2830
+ apiKey: this.apiKey,
2831
+ apiVersion: this.builderContextSignal.apiVersion
2832
+ }).then((r) => {
2833
+ r && this.mergeNewContent(r);
2834
+ });
2835
+ },
2807
2836
  _classStringToObject(e) {
2808
2837
  const t = {};
2809
2838
  if (typeof e != "string")
@@ -2814,38 +2843,40 @@ const Ao = b({
2814
2843
  return t;
2815
2844
  }
2816
2845
  }
2817
- }), Vo = ["builder-content-id", "builder-model"];
2818
- function Bo(e, t, n, o, r, s) {
2846
+ }), Mo = ["builder-content-id", "builder-model"];
2847
+ function Wo(e, t, n, o, s, r) {
2819
2848
  var i;
2820
- return e.builderContextSignal.content ? (u(), m("div", $({
2849
+ return e.builderContextSignal.content ? (d(), p("div", I({
2821
2850
  key: e.forceReRenderCount,
2822
2851
  ref: "elementRef",
2823
2852
  onClick: t[0] || (t[0] = (a) => e.onClick(a)),
2824
2853
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
2825
2854
  "builder-model": e.model,
2826
- class: e._classStringToObject(e.classNameProp)
2855
+ class: e._classStringToObject(e.classNameProp),
2856
+ onIniteditingbldr: t[1] || (t[1] = (a) => e.elementRef_onIniteditingbldr(a)),
2857
+ onInitpreviewingbldr: t[2] || (t[2] = (a) => e.elementRef_onInitpreviewingbldr(a))
2827
2858
  }, {
2828
2859
  ...e.showContent ? {} : {
2829
2860
  hidden: !0,
2830
2861
  "aria-hidden": !0
2831
2862
  }
2832
2863
  }), [
2833
- j(e.$slots, "default")
2834
- ], 16, Vo)) : S("v-if", !0);
2864
+ U(e.$slots, "default")
2865
+ ], 16, Mo)) : S("v-if", !0);
2835
2866
  }
2836
- const Po = /* @__PURE__ */ g(Ao, [["render", Bo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), jo = b({
2867
+ const Lo = /* @__PURE__ */ y(Fo, [["render", Wo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), Ko = g({
2837
2868
  render() {
2838
- return ge("script", { id: this.id, innerHTML: this.scriptStr });
2869
+ return Ce("script", { id: this.id, innerHTML: this.scriptStr });
2839
2870
  },
2840
2871
  name: "inlined-script",
2841
2872
  props: ["scriptStr", "id"]
2842
- }), Le = /* @__PURE__ */ g(jo, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), Oo = ze, No = b({
2873
+ }), qe = /* @__PURE__ */ y(Ko, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), Ho = Xe, zo = g({
2843
2874
  name: "content-component",
2844
2875
  components: {
2845
- EnableEditor: Po,
2846
- InlinedScript: Le,
2847
- ContentStyles: Ln,
2848
- Blocks: ee
2876
+ EnableEditor: Lo,
2877
+ InlinedScript: qe,
2878
+ ContentStyles: Yn,
2879
+ Blocks: ne
2849
2880
  },
2850
2881
  props: [
2851
2882
  "content",
@@ -2866,31 +2897,31 @@ const Po = /* @__PURE__ */ g(Ao, [["render", Bo], ["__file", "/home/runner/work/
2866
2897
  data() {
2867
2898
  var e, t;
2868
2899
  return {
2869
- scriptStr: Zt({
2900
+ scriptStr: ln({
2870
2901
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2871
2902
  contentId: (t = this.content) == null ? void 0 : t.id
2872
2903
  }),
2873
2904
  registeredComponents: [
2874
- ...ce(),
2875
- ...ue,
2905
+ ...me(),
2906
+ ...he,
2876
2907
  ...this.customComponents || []
2877
2908
  ].reduce(
2878
- (n, { component: o, ...r }) => ({
2909
+ (n, { component: o, ...s }) => ({
2879
2910
  ...n,
2880
- [r.name]: {
2881
- component: Oo(o),
2882
- ...Y(r)
2911
+ [s.name]: {
2912
+ component: Ho(o),
2913
+ ...Z(s)
2883
2914
  }
2884
2915
  }),
2885
2916
  {}
2886
2917
  ),
2887
2918
  builderContextSignal: {
2888
- content: Hn({
2919
+ content: Qn({
2889
2920
  content: this.content,
2890
2921
  data: this.data
2891
2922
  }),
2892
2923
  localState: void 0,
2893
- rootState: Kn({
2924
+ rootState: Xn({
2894
2925
  content: this.content,
2895
2926
  data: this.data,
2896
2927
  locale: this.locale
@@ -2900,25 +2931,25 @@ const Po = /* @__PURE__ */ g(Ao, [["render", Bo], ["__file", "/home/runner/work/
2900
2931
  apiKey: this.apiKey,
2901
2932
  apiVersion: this.apiVersion,
2902
2933
  componentInfos: [
2903
- ...ce(),
2904
- ...ue,
2934
+ ...me(),
2935
+ ...he,
2905
2936
  ...this.customComponents || []
2906
2937
  ].reduce(
2907
- (n, { component: o, ...r }) => ({
2938
+ (n, { component: o, ...s }) => ({
2908
2939
  ...n,
2909
- [r.name]: Y(r)
2940
+ [s.name]: Z(s)
2910
2941
  }),
2911
2942
  {}
2912
2943
  ),
2913
2944
  inheritedStyles: {}
2914
2945
  },
2915
- TARGET: A
2946
+ TARGET: P
2916
2947
  };
2917
2948
  },
2918
2949
  provide() {
2919
2950
  const e = this;
2920
2951
  return {
2921
- [$e.key]: {
2952
+ [Ee.key]: {
2922
2953
  registeredComponents: e.registeredComponents
2923
2954
  }
2924
2955
  };
@@ -2929,9 +2960,9 @@ const Po = /* @__PURE__ */ g(Ao, [["render", Bo], ["__file", "/home/runner/work/
2929
2960
  }
2930
2961
  }
2931
2962
  });
2932
- function Fo(e, t, n, o, r, s) {
2933
- const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), c = y("enable-editor");
2934
- return u(), v(c, $({
2963
+ function Do(e, t, n, o, s, r) {
2964
+ const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), c = k("enable-editor");
2965
+ return d(), v(c, I({
2935
2966
  content: e.content,
2936
2967
  model: e.model,
2937
2968
  context: e.context,
@@ -2944,21 +2975,21 @@ function Fo(e, t, n, o, r, s) {
2944
2975
  showContent: e.showContent,
2945
2976
  builderContextSignal: e.builderContextSignal
2946
2977
  }, {}), {
2947
- default: Z(() => {
2948
- var d, p, h, f, k, w, R;
2978
+ default: te(() => {
2979
+ var u, h, m, f, C, $, T;
2949
2980
  return [
2950
- e.isSsrAbTest ? (u(), v(i, {
2981
+ e.isSsrAbTest ? (d(), v(i, {
2951
2982
  key: 0,
2952
2983
  scriptStr: e.scriptStr
2953
2984
  }, null, 8, ["scriptStr"])) : S("v-if", !0),
2954
- e.TARGET !== "reactNative" ? (u(), v(a, {
2985
+ e.TARGET !== "reactNative" ? (d(), v(a, {
2955
2986
  key: 1,
2956
- contentId: (d = e.builderContextSignal.content) == null ? void 0 : d.id,
2957
- cssCode: (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.cssCode,
2958
- customFonts: (k = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
2987
+ contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
2988
+ cssCode: (m = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : m.cssCode,
2989
+ customFonts: (C = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : C.customFonts
2959
2990
  }, null, 8, ["contentId", "cssCode", "customFonts"])) : S("v-if", !0),
2960
- B(l, {
2961
- blocks: (R = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : R.blocks,
2991
+ V(l, {
2992
+ blocks: (T = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : T.blocks,
2962
2993
  context: e.builderContextSignal,
2963
2994
  registeredComponents: e.registeredComponents
2964
2995
  }, null, 8, ["blocks", "context", "registeredComponents"])
@@ -2967,12 +2998,12 @@ function Fo(e, t, n, o, r, s) {
2967
2998
  _: 1
2968
2999
  }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
2969
3000
  }
2970
- const Uo = /* @__PURE__ */ g(No, [["render", Fo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), Wo = b({
3001
+ const qo = /* @__PURE__ */ y(zo, [["render", Do], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), Go = g({
2971
3002
  name: "content-variants",
2972
3003
  components: {
2973
- InlinedScript: Le,
2974
- InlinedStyles: z,
2975
- ContentComponent: Uo
3004
+ InlinedScript: qe,
3005
+ InlinedStyles: G,
3006
+ ContentComponent: qo
2976
3007
  },
2977
3008
  props: [
2978
3009
  "canTrack",
@@ -2990,13 +3021,13 @@ const Uo = /* @__PURE__ */ g(No, [["render", Fo], ["__file", "/home/runner/work/
2990
3021
  ],
2991
3022
  data() {
2992
3023
  return {
2993
- shouldRenderVariants: qt({
2994
- canTrack: N(this.canTrack),
3024
+ shouldRenderVariants: tn({
3025
+ canTrack: F(this.canTrack),
2995
3026
  content: this.content
2996
3027
  }),
2997
- getScriptString: Xt,
2998
- getVariants: M,
2999
- TARGET: A
3028
+ getScriptString: rn,
3029
+ getVariants: K,
3030
+ TARGET: P
3000
3031
  };
3001
3032
  },
3002
3033
  mounted() {
@@ -3005,8 +3036,8 @@ const Uo = /* @__PURE__ */ g(No, [["render", Fo], ["__file", "/home/runner/work/
3005
3036
  computed: {
3006
3037
  variantScriptStr() {
3007
3038
  var e;
3008
- return Qt(
3009
- M(this.content).map((t) => ({
3039
+ return an(
3040
+ K(this.content).map((t) => ({
3010
3041
  id: t.testVariationId,
3011
3042
  testRatio: t.testRatio
3012
3043
  })),
@@ -3014,37 +3045,37 @@ const Uo = /* @__PURE__ */ g(No, [["render", Fo], ["__file", "/home/runner/work/
3014
3045
  );
3015
3046
  },
3016
3047
  hideVariantsStyleString() {
3017
- return M(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3048
+ return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3018
3049
  },
3019
3050
  defaultContent() {
3020
3051
  var e;
3021
3052
  return this.shouldRenderVariants ? {
3022
3053
  ...this.content,
3023
3054
  testVariationId: (e = this.content) == null ? void 0 : e.id
3024
- } : So({
3055
+ } : Eo({
3025
3056
  item: this.content,
3026
- canTrack: N(this.canTrack)
3057
+ canTrack: F(this.canTrack)
3027
3058
  });
3028
3059
  }
3029
3060
  }
3030
3061
  });
3031
- function Mo(e, t, n, o, r, s) {
3032
- var c, d;
3033
- const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
3034
- return u(), m(T, null, [
3035
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (u(), v(i, {
3062
+ function Jo(e, t, n, o, s, r) {
3063
+ var c, u;
3064
+ const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
3065
+ return d(), p(R, null, [
3066
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), v(i, {
3036
3067
  key: 0,
3037
3068
  scriptStr: e.getScriptString()
3038
3069
  }, null, 8, ["scriptStr"])) : S("v-if", !0),
3039
- e.shouldRenderVariants ? (u(), m(T, { key: 1 }, [
3040
- B(a, {
3070
+ e.shouldRenderVariants ? (d(), p(R, { key: 1 }, [
3071
+ V(a, {
3041
3072
  id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
3042
3073
  styles: e.hideVariantsStyleString
3043
3074
  }, null, 8, ["id", "styles"]),
3044
- B(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3045
- (u(!0), m(T, null, V(e.getVariants(e.content), (p, h) => (u(), v(l, {
3046
- key: p.testVariationId,
3047
- content: p,
3075
+ V(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3076
+ (d(!0), p(R, null, B(e.getVariants(e.content), (h, m) => (d(), v(l, {
3077
+ key: h.testVariationId,
3078
+ content: h,
3048
3079
  showContent: !1,
3049
3080
  classNameProp: void 0,
3050
3081
  model: e.model,
@@ -3060,9 +3091,9 @@ function Mo(e, t, n, o, r, s) {
3060
3091
  isSsrAbTest: e.shouldRenderVariants
3061
3092
  }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
3062
3093
  ], 64)) : S("v-if", !0),
3063
- B(l, $({
3094
+ V(l, I({
3064
3095
  content: e.defaultContent,
3065
- classNameProp: `variant-${(d = e.content) == null ? void 0 : d.id}`,
3096
+ classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3066
3097
  showContent: !0,
3067
3098
  model: e.model,
3068
3099
  data: e.data,
@@ -3080,12 +3111,12 @@ function Mo(e, t, n, o, r, s) {
3080
3111
  }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3081
3112
  ], 64);
3082
3113
  }
3083
- const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), Lo = async ({
3114
+ const Ge = /* @__PURE__ */ y(Go, [["render", Jo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), Yo = async ({
3084
3115
  builderContextValue: e,
3085
3116
  symbol: t
3086
3117
  }) => {
3087
3118
  if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3088
- return D({
3119
+ return J({
3089
3120
  model: t.model,
3090
3121
  apiKey: e.apiKey,
3091
3122
  apiVersion: e.apiVersion,
@@ -3097,9 +3128,9 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/home/runner/work/
3097
3128
  }).catch((n) => {
3098
3129
  x.error("Could not fetch symbol content: ", n);
3099
3130
  });
3100
- }, Ko = b({
3131
+ }, Xo = g({
3101
3132
  name: "builder-symbol",
3102
- components: { ContentVariants: Ke },
3133
+ components: { ContentVariants: Ge },
3103
3134
  props: [
3104
3135
  "js",
3105
3136
  "attributes",
@@ -3110,7 +3141,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/home/runner/work/
3110
3141
  ],
3111
3142
  data() {
3112
3143
  var e;
3113
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: H };
3144
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
3114
3145
  },
3115
3146
  mounted() {
3116
3147
  this.setContent();
@@ -3141,7 +3172,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/home/runner/work/
3141
3172
  },
3142
3173
  methods: {
3143
3174
  setContent() {
3144
- this.contentToUse || Lo({
3175
+ this.contentToUse || Yo({
3145
3176
  symbol: this.symbol,
3146
3177
  builderContextValue: this.builderContext
3147
3178
  }).then((e) => {
@@ -3159,13 +3190,13 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/home/runner/work/
3159
3190
  }
3160
3191
  }
3161
3192
  });
3162
- function Ho(e, t, n, o, r, s) {
3163
- var a, l, c, d;
3164
- const i = y("content-variants");
3165
- return u(), m("div", $({
3193
+ function Qo(e, t, n, o, s, r) {
3194
+ var a, l, c, u;
3195
+ const i = k("content-variants");
3196
+ return d(), p("div", I({
3166
3197
  class: e._classStringToObject(e.className)
3167
3198
  }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3168
- B(i, {
3199
+ V(i, {
3169
3200
  __isNestedRender: !0,
3170
3201
  apiVersion: e.builderContext.apiVersion,
3171
3202
  apiKey: e.builderContext.apiKey,
@@ -3176,25 +3207,25 @@ function Ho(e, t, n, o, r, s) {
3176
3207
  ...e.builderContext.localState,
3177
3208
  ...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
3178
3209
  },
3179
- model: (d = e.symbol) == null ? void 0 : d.model,
3210
+ model: (u = e.symbol) == null ? void 0 : u.model,
3180
3211
  content: e.contentToUse
3181
3212
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3182
3213
  ], 16);
3183
3214
  }
3184
- const zo = /* @__PURE__ */ g(Ko, [["render", Ho], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), Xo = ee, Qo = Ke, be = {};
3185
- function Zo(e) {
3186
- if (C()) {
3187
- Object.assign(be, e);
3215
+ const Zo = /* @__PURE__ */ y(Xo, [["render", Qo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), rs = ne, is = Ge, Se = {};
3216
+ function as(e) {
3217
+ if (w()) {
3218
+ Object.assign(Se, e);
3188
3219
  const t = {
3189
3220
  type: "builder.settingsChange",
3190
- data: be
3221
+ data: Se
3191
3222
  };
3192
3223
  parent.postMessage(t, "*");
3193
3224
  }
3194
3225
  }
3195
- const er = async (e) => {
3196
- var o, r, s;
3197
- const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
3226
+ const ls = async (e) => {
3227
+ var o, s, r;
3228
+ const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
3198
3229
  ...e,
3199
3230
  apiKey: e.apiKey,
3200
3231
  model: e.model || "page",
@@ -3204,47 +3235,47 @@ const er = async (e) => {
3204
3235
  urlPath: t
3205
3236
  } : {}
3206
3237
  },
3207
- options: Ue(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
3238
+ options: He(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
3208
3239
  };
3209
3240
  return {
3210
3241
  apiKey: n.apiKey,
3211
3242
  model: n.model,
3212
- content: await D(n)
3243
+ content: await J(n)
3213
3244
  };
3214
3245
  };
3215
3246
  export {
3216
- J as B,
3217
- Ke as C,
3218
- jt as F,
3219
- Kt as I,
3220
- Xo as R,
3221
- Dt as S,
3222
- A as T,
3223
- bn as V,
3224
- g as _,
3225
- we as a,
3226
- Ce as b,
3227
- st as c,
3228
- ee as d,
3229
- L as e,
3230
- Qo as f,
3231
- Je as g,
3232
- Vt as h,
3233
- zo as i,
3234
- dn as j,
3235
- E as k,
3236
- _o as l,
3237
- Pn as m,
3238
- Me as n,
3239
- D as o,
3240
- Yo as p,
3241
- Jo as q,
3242
- co as r,
3243
- Zo as s,
3244
- Eo as t,
3245
- Ue as u,
3246
- Go as v,
3247
- Oo as w,
3248
- er as x,
3249
- qo as y
3247
+ Q as B,
3248
+ Ge as C,
3249
+ Kt as F,
3250
+ Xt as I,
3251
+ rs as R,
3252
+ en as S,
3253
+ P as T,
3254
+ $n as V,
3255
+ y as _,
3256
+ xe as a,
3257
+ Re as b,
3258
+ mt as c,
3259
+ ne as d,
3260
+ z as e,
3261
+ is as f,
3262
+ tt as g,
3263
+ Mt as h,
3264
+ Zo as i,
3265
+ kn as j,
3266
+ _ as k,
3267
+ Oo as l,
3268
+ Ln as m,
3269
+ De as n,
3270
+ J as o,
3271
+ ss as p,
3272
+ os as q,
3273
+ yo as r,
3274
+ as as s,
3275
+ No as t,
3276
+ He as u,
3277
+ ns as v,
3278
+ Ho as w,
3279
+ ls as x,
3280
+ ts as y
3250
3281
  };