@builder.io/sdk-vue 0.6.4 → 0.7.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/package.json +5 -2
  2. package/vue2/lib/{node/block-f8ec39b9.cjs → browser/block-b12c2a9e.cjs} +2 -2
  3. package/vue2/lib/browser/{block-7623343e.js → block-d44d5b8a.js} +7 -7
  4. package/vue2/lib/{node/block-styles-78f1fc51.js → browser/block-styles-b2bcecac.js} +5 -5
  5. package/vue2/lib/{edge/block-styles-d41b334a.cjs → browser/block-styles-fad43b2e.cjs} +1 -1
  6. package/vue2/lib/browser/{block-wrapper-d129f149.js → block-wrapper-230a8abf.js} +5 -5
  7. package/vue2/lib/browser/{block-wrapper-04c09786.cjs → block-wrapper-ecdc5285.cjs} +1 -1
  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-d1b2c241.js → browser/blocks-wrapper-37d1fbf5.js} +1 -1
  11. package/vue2/lib/{edge/blocks-wrapper-c1a59075.cjs → browser/blocks-wrapper-5f4ff269.cjs} +1 -1
  12. package/vue2/lib/{edge/component-ref-bac7483e.js → browser/component-ref-25028977.js} +6 -6
  13. package/vue2/lib/{edge/component-ref-f49d33aa.cjs → browser/component-ref-8d39a7f4.cjs} +1 -1
  14. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -1
  15. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  16. package/vue2/lib/{edge/content-ee5058bf.cjs → browser/content-e0b5be50.cjs} +1 -1
  17. package/vue2/lib/browser/{content-59001c88.js → content-e775e1b1.js} +66 -68
  18. package/vue2/lib/browser/{css-5244a373.js → css-41c2e31d.js} +1 -1
  19. package/vue2/lib/{node/css-e268cc90.cjs → browser/css-c292bae4.cjs} +1 -1
  20. package/vue2/lib/{node/enable-editor-0ec0fba2.js → browser/enable-editor-836e8731.js} +104 -90
  21. package/vue2/lib/browser/enable-editor-bf828ceb.cjs +1 -0
  22. package/vue2/lib/browser/evaluate-239c4f2e.js +86 -0
  23. package/vue2/lib/browser/evaluate-37bcc296.cjs +1 -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/browser/{get-block-actions-72575937.cjs → get-block-actions-0e6055b8.cjs} +1 -1
  32. package/vue2/lib/{node/get-block-actions-19c074c1.js → browser/get-block-actions-eb308dbc.js} +2 -2
  33. package/vue2/lib/{node/get-block-properties-a61a4f44.cjs → browser/get-block-properties-a17c5ae7.cjs} +1 -1
  34. package/vue2/lib/browser/{get-block-properties-8bd6705f.js → get-block-properties-f1d87f5b.js} +2 -2
  35. package/vue2/lib/browser/{get-processed-block-df5bc2af.cjs → get-processed-block-469b6014.cjs} +1 -1
  36. package/vue2/lib/{node/get-processed-block-5ea5ad51.js → browser/get-processed-block-dac77b11.js} +2 -2
  37. package/vue2/lib/browser/index-0daf250a.cjs +32 -0
  38. package/vue2/lib/{node/index-cd218de0.js → browser/index-2c3e3aa0.js} +389 -370
  39. package/vue2/lib/browser/index.cjs +1 -1
  40. package/vue2/lib/browser/index.js +5 -5
  41. package/vue2/lib/browser/{inlined-script-b9da40ba.cjs → inlined-script-17a3e298.cjs} +1 -1
  42. package/vue2/lib/{edge/inlined-script-1c876548.js → browser/inlined-script-a2ce7e25.js} +1 -1
  43. package/vue2/lib/{node/inlined-styles-86ba9613.cjs → browser/inlined-styles-02129d25.cjs} +1 -1
  44. package/vue2/lib/{node/inlined-styles-cb8ac12b.js → browser/inlined-styles-25974197.js} +1 -1
  45. package/vue2/lib/{node/interactive-element-7034b3c2.cjs → browser/interactive-element-31618273.cjs} +1 -1
  46. package/vue2/lib/{node/interactive-element-c2e016e7.js → browser/interactive-element-95e7ed70.js} +5 -5
  47. package/vue2/lib/browser/{repeated-block-515aea68.cjs → repeated-block-dc24507b.cjs} +1 -1
  48. package/vue2/lib/{node/repeated-block-82b3437a.js → browser/repeated-block-df873ea1.js} +2 -2
  49. package/vue2/lib/browser/style.css +1 -1
  50. package/vue2/lib/{node/styles-b9bdec6e.js → browser/styles-c0e6af8c.js} +2 -2
  51. package/vue2/lib/{node/styles-f43008cc.cjs → browser/styles-eb6d5133.cjs} +2 -2
  52. package/vue2/lib/{browser/block-f8ec39b9.cjs → edge/block-6ae253d3.cjs} +2 -2
  53. package/vue2/lib/edge/{block-9a136438.js → block-ee5e6b30.js} +7 -7
  54. package/vue2/lib/{node/block-styles-442c9444.cjs → edge/block-styles-0db05976.cjs} +1 -1
  55. package/vue2/lib/edge/{block-styles-293e6520.js → block-styles-7ddd1160.js} +5 -5
  56. package/vue2/lib/{node/block-wrapper-d129f149.js → edge/block-wrapper-2516c8f0.js} +5 -5
  57. package/vue2/lib/edge/{block-wrapper-e6bc8771.cjs → block-wrapper-4a546b0f.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-ffcf193b.cjs → edge/blocks-wrapper-be115723.cjs} +1 -1
  61. package/vue2/lib/{browser/blocks-wrapper-744d9c88.js → edge/blocks-wrapper-f30c1e2e.js} +1 -1
  62. package/vue2/lib/{node/component-ref-ad91463a.js → edge/component-ref-7ca49e69.js} +6 -6
  63. package/vue2/lib/{node/component-ref-c0bc64bb.cjs → edge/component-ref-f5f09e76.cjs} +1 -1
  64. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -1
  65. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  66. package/vue2/lib/edge/{content-dd98b5f2.js → content-32e8afd0.js} +66 -68
  67. package/vue2/lib/{browser/content-6391e001.cjs → edge/content-e389cb08.cjs} +1 -1
  68. package/vue2/lib/edge/{css-a40d0ce1.js → css-905123d6.js} +1 -1
  69. package/vue2/lib/{browser/css-e268cc90.cjs → edge/css-db1fb81d.cjs} +1 -1
  70. package/vue2/lib/{browser/enable-editor-0ec0fba2.js → edge/enable-editor-5339c72b.js} +104 -90
  71. package/vue2/lib/edge/enable-editor-8460bc4f.cjs +1 -0
  72. package/vue2/lib/edge/evaluate-7b0fdb29.cjs +21 -0
  73. package/vue2/lib/edge/{evaluate-5aed4676.js → evaluate-8d6921da.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/edge/{get-block-actions-877fd5f9.cjs → get-block-actions-ac5cd221.cjs} +1 -1
  82. package/vue2/lib/{browser/get-block-actions-19c074c1.js → edge/get-block-actions-eb1322f1.js} +2 -2
  83. package/vue2/lib/{browser/get-block-properties-a61a4f44.cjs → edge/get-block-properties-e45bd13c.cjs} +1 -1
  84. package/vue2/lib/edge/{get-block-properties-8b0da7b7.js → get-block-properties-fc55bc69.js} +2 -2
  85. package/vue2/lib/edge/{get-processed-block-ccaa4214.cjs → get-processed-block-3a429bb7.cjs} +1 -1
  86. package/vue2/lib/edge/{get-processed-block-f0bfcc66.js → get-processed-block-9e3229f1.js} +2 -2
  87. package/vue2/lib/edge/{index-f8dc2e35.js → index-0840538e.js} +389 -370
  88. package/vue2/lib/edge/index-66f83dfa.cjs +32 -0
  89. package/vue2/lib/edge/index.cjs +1 -1
  90. package/vue2/lib/edge/index.js +5 -5
  91. package/vue2/lib/{node/inlined-script-4f903f8e.js → edge/inlined-script-8ceab368.js} +1 -1
  92. package/vue2/lib/{node/inlined-script-b9da40ba.cjs → edge/inlined-script-9311a8f4.cjs} +1 -1
  93. package/vue2/lib/edge/{inlined-styles-7ebd6646.js → inlined-styles-4826f427.js} +1 -1
  94. package/vue2/lib/{browser/inlined-styles-86ba9613.cjs → edge/inlined-styles-f0c5389f.cjs} +1 -1
  95. package/vue2/lib/edge/{interactive-element-3eaf0e7a.cjs → interactive-element-20464160.cjs} +1 -1
  96. package/vue2/lib/{browser/interactive-element-c2e016e7.js → edge/interactive-element-a4e1753a.js} +5 -5
  97. package/vue2/lib/{browser/repeated-block-82b3437a.js → edge/repeated-block-5ff563c4.js} +2 -2
  98. package/vue2/lib/edge/{repeated-block-446ae014.cjs → repeated-block-90ff0a8e.cjs} +1 -1
  99. package/vue2/lib/edge/style.css +1 -1
  100. package/vue2/lib/{browser/styles-b9bdec6e.js → edge/styles-0821e7bd.js} +2 -2
  101. package/vue2/lib/{browser/styles-f43008cc.cjs → edge/styles-8e148f6b.cjs} +2 -2
  102. package/vue2/lib/{edge/block-33134063.cjs → node/block-46a1926a.cjs} +2 -2
  103. package/vue2/lib/node/{block-7623343e.js → block-a1bcdc0f.js} +7 -7
  104. package/vue2/lib/{browser/block-styles-442c9444.cjs → node/block-styles-34b37b5f.cjs} +1 -1
  105. package/vue2/lib/{browser/block-styles-78f1fc51.js → node/block-styles-40dfb747.js} +5 -5
  106. package/vue2/lib/{edge/block-wrapper-2f05e945.js → node/block-wrapper-02a13832.js} +5 -5
  107. package/vue2/lib/node/{block-wrapper-04c09786.cjs → block-wrapper-d012bc77.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-ffcf193b.cjs → blocks-wrapper-111adf2e.cjs} +1 -1
  111. package/vue2/lib/node/{blocks-wrapper-744d9c88.js → blocks-wrapper-2cf7c243.js} +1 -1
  112. package/vue2/lib/{browser/component-ref-ad91463a.js → node/component-ref-686b70a8.js} +6 -6
  113. package/vue2/lib/{browser/component-ref-c0bc64bb.cjs → node/component-ref-8664d291.cjs} +1 -1
  114. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -1
  115. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  116. package/vue2/lib/node/{content-59001c88.js → content-750b77c5.js} +66 -68
  117. package/vue2/lib/node/{content-6391e001.cjs → content-804eb1c1.cjs} +1 -1
  118. package/vue2/lib/node/{css-5244a373.js → css-0997fa70.js} +1 -1
  119. package/vue2/lib/{edge/css-6d51b919.cjs → node/css-698817f7.cjs} +1 -1
  120. package/vue2/lib/node/enable-editor-4c3b62ba.cjs +1 -0
  121. package/vue2/lib/{edge/enable-editor-aeb1f840.js → node/enable-editor-991cf703.js} +104 -90
  122. package/vue2/lib/node/evaluate-06bae117.js +187 -0
  123. package/vue2/lib/node/evaluate-fc74c806.cjs +41 -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/node/{get-block-actions-72575937.cjs → get-block-actions-779fa30b.cjs} +1 -1
  132. package/vue2/lib/{edge/get-block-actions-350bc978.js → node/get-block-actions-9781c926.js} +2 -2
  133. package/vue2/lib/{edge/get-block-properties-ece4e040.cjs → node/get-block-properties-090f2906.cjs} +1 -1
  134. package/vue2/lib/node/{get-block-properties-8bd6705f.js → get-block-properties-ed8d55a8.js} +2 -2
  135. package/vue2/lib/node/get-processed-block-267a96eb.js +52 -0
  136. package/vue2/lib/node/get-processed-block-270c0450.cjs +1 -0
  137. package/vue2/lib/node/index-55b86b2c.cjs +32 -0
  138. package/vue2/lib/{browser/index-cd218de0.js → node/index-fe4f9482.js} +389 -370
  139. package/vue2/lib/node/index.cjs +1 -1
  140. package/vue2/lib/node/index.js +5 -5
  141. package/vue2/lib/{edge/inlined-script-44721dc7.cjs → node/inlined-script-37af305a.cjs} +1 -1
  142. package/vue2/lib/{browser/inlined-script-4f903f8e.js → node/inlined-script-9bf9544a.js} +1 -1
  143. package/vue2/lib/{browser/inlined-styles-cb8ac12b.js → node/inlined-styles-7a704065.js} +1 -1
  144. package/vue2/lib/{edge/inlined-styles-eb80e4fe.cjs → node/inlined-styles-e812d54a.cjs} +1 -1
  145. package/vue2/lib/{edge/interactive-element-64d11339.js → node/interactive-element-a9adc81f.js} +5 -5
  146. package/vue2/lib/{browser/interactive-element-7034b3c2.cjs → node/interactive-element-e940e56b.cjs} +1 -1
  147. package/vue2/lib/{edge/repeated-block-b9a8feeb.js → node/repeated-block-acab5426.js} +2 -2
  148. package/vue2/lib/node/{repeated-block-515aea68.cjs → repeated-block-ef2bf12f.cjs} +1 -1
  149. package/vue2/lib/node/style.css +1 -1
  150. package/vue2/lib/{edge/styles-cfea6654.js → node/styles-34c3741a.js} +2 -2
  151. package/vue2/lib/{edge/styles-36552ab4.cjs → node/styles-93f84a1d.cjs} +2 -2
  152. package/vue2/package.json +2 -0
  153. package/vue3/lib/browser/{block-wrapper.1501b793.cjs → block-wrapper.75f65d10.cjs} +1 -1
  154. package/vue3/lib/{edge/block-wrapper.e3b7b422.js → browser/block-wrapper.eb12cfdc.js} +2 -2
  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.7035b91b.js → browser/component-ref.ce36b7ec.js} +2 -2
  158. package/vue3/lib/browser/{component-ref.4f5f964f.cjs → component-ref.f391a5ee.cjs} +1 -1
  159. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -7
  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.7d762289.js → browser/get-block-actions.7c580dff.js} +1 -1
  170. package/vue3/lib/{node/get-block-actions.316f88d7.cjs → browser/get-block-actions.e6dfffe3.cjs} +1 -1
  171. package/vue3/lib/{node/index.67caa0a0.js → browser/index.188d2ee5.js} +673 -640
  172. package/vue3/lib/browser/index.cjs +1 -1
  173. package/vue3/lib/browser/index.fb1c2a1f.cjs +69 -0
  174. package/vue3/lib/browser/index.js +1 -1
  175. package/vue3/lib/browser/{repeated-block.3a15e789.cjs → repeated-block.2431c33d.cjs} +1 -1
  176. package/vue3/lib/{edge/repeated-block.59223c04.js → browser/repeated-block.7a8762fc.js} +2 -2
  177. package/vue3/lib/browser/style.css +1 -1
  178. package/vue3/lib/edge/{block-wrapper.8441fbe1.cjs → block-wrapper.0868030f.cjs} +1 -1
  179. package/vue3/lib/{node/block-wrapper.d71006fa.js → edge/block-wrapper.cab4805b.js} +2 -2
  180. package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
  181. package/vue3/lib/edge/blocks/image/image.vue.d.ts +1 -1
  182. package/vue3/lib/{node/component-ref.104f0d16.js → edge/component-ref.ace67608.js} +2 -2
  183. package/vue3/lib/{node/component-ref.4f5f964f.cjs → edge/component-ref.ae7eec27.cjs} +1 -1
  184. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -7
  185. package/vue3/lib/edge/components/content/content.vue.d.ts +6 -6
  186. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  187. package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
  188. package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
  189. package/vue3/lib/edge/functions/evaluate/helpers.d.ts +7 -1
  190. package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  191. package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  192. package/vue3/lib/edge/functions/get-content/types.d.ts +94 -3
  193. package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
  194. package/vue3/lib/edge/{get-block-actions.37ab332e.cjs → get-block-actions.83fca99e.cjs} +1 -1
  195. package/vue3/lib/{browser/get-block-actions.12becb73.js → edge/get-block-actions.cfa7e625.js} +1 -1
  196. package/vue3/lib/edge/{index.811ded87.js → index.28b94406.js} +1310 -1249
  197. package/vue3/lib/edge/index.8e0db5cb.cjs +89 -0
  198. package/vue3/lib/edge/index.cjs +1 -1
  199. package/vue3/lib/edge/index.js +1 -1
  200. package/vue3/lib/edge/{repeated-block.2c467c57.cjs → repeated-block.4515ae00.cjs} +1 -1
  201. package/vue3/lib/{node/repeated-block.ab5e93b5.js → edge/repeated-block.4f0522f0.js} +2 -2
  202. package/vue3/lib/edge/style.css +1 -1
  203. package/vue3/lib/node/block-wrapper.4b048f0a.cjs +1 -0
  204. package/vue3/lib/{browser/block-wrapper.d71006fa.js → node/block-wrapper.529d85d5.js} +9 -8
  205. package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
  206. package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
  207. package/vue3/lib/{browser/component-ref.104f0d16.js → node/component-ref.3c9a0fb1.js} +5 -4
  208. package/vue3/lib/node/component-ref.c78bd861.cjs +1 -0
  209. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -7
  210. package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
  211. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  212. package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
  213. package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
  214. package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
  215. package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  216. package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  217. package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
  218. package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
  219. package/vue3/lib/node/{get-block-actions.12becb73.js → get-block-actions.65678660.js} +1 -1
  220. package/vue3/lib/{browser/get-block-actions.316f88d7.cjs → node/get-block-actions.977f70db.cjs} +1 -1
  221. package/vue3/lib/{browser/index.67caa0a0.js → node/index.1a21f267.js} +845 -718
  222. package/vue3/lib/node/index.baa2a660.cjs +109 -0
  223. package/vue3/lib/node/index.cjs +1 -1
  224. package/vue3/lib/node/index.js +27 -26
  225. package/vue3/lib/{browser/repeated-block.ab5e93b5.js → node/repeated-block.04f4039b.js} +5 -4
  226. package/vue3/lib/node/repeated-block.33e03818.cjs +1 -0
  227. package/vue3/lib/node/style.css +1 -1
  228. package/vue3/package.json +2 -0
  229. package/vue2/lib/browser/enable-editor-68f3b7d1.cjs +0 -1
  230. package/vue2/lib/browser/evaluate-81e9d18d.js +0 -81
  231. package/vue2/lib/browser/evaluate-c6468e7e.cjs +0 -1
  232. package/vue2/lib/browser/get-processed-block-5ea5ad51.js +0 -58
  233. package/vue2/lib/browser/index-4480d5e4.cjs +0 -32
  234. package/vue2/lib/edge/enable-editor-86cc8a4d.cjs +0 -1
  235. package/vue2/lib/edge/evaluate-16c456b4.cjs +0 -21
  236. package/vue2/lib/edge/index-df9193d2.cjs +0 -32
  237. package/vue2/lib/node/enable-editor-68f3b7d1.cjs +0 -1
  238. package/vue2/lib/node/evaluate-81e9d18d.js +0 -81
  239. package/vue2/lib/node/evaluate-c6468e7e.cjs +0 -1
  240. package/vue2/lib/node/get-processed-block-df5bc2af.cjs +0 -1
  241. package/vue2/lib/node/index-4480d5e4.cjs +0 -32
  242. package/vue3/lib/browser/index.2b9eb004.cjs +0 -69
  243. package/vue3/lib/edge/component-ref.40439a7f.cjs +0 -1
  244. package/vue3/lib/edge/index.db87480a.cjs +0 -89
  245. package/vue3/lib/node/block-wrapper.1501b793.cjs +0 -1
  246. package/vue3/lib/node/index.2b9eb004.cjs +0 -69
  247. package/vue3/lib/node/repeated-block.3a15e789.cjs +0 -1
@@ -1,5 +1,6 @@
1
- import { defineComponent as b, openBlock as d, createElementBlock as m, mergeProps as $, toHandlers as U, toDisplayString as oe, h as ge, resolveComponent as y, createBlock as v, createCommentVNode as S, defineAsyncComponent as N, Fragment as T, renderList as j, withCtx as Z, createVNode as V, normalizeProps as se, guardReactiveProps as He, renderSlot as P, createElementVNode as re, normalizeStyle as ie, normalizeClass as ye, markRaw as ze } from "vue";
2
- function K(e = {}, t, n) {
1
+ import { defineComponent as y, openBlock as d, createElementBlock as h, mergeProps as I, toHandlers as F, toDisplayString as ae, h as Ce, resolveComponent as v, createBlock as C, createCommentVNode as w, defineAsyncComponent as W, Fragment as R, renderList as B, withCtx as ne, createVNode as V, normalizeProps as ce, guardReactiveProps as nt, renderSlot as U, createElementVNode as le, normalizeStyle as de, normalizeClass as we, markRaw as ot } from "vue";
2
+ import { createRequire as st } from "node:module";
3
+ function q(e = {}, t, n) {
3
4
  const o = {};
4
5
  for (const s in e) {
5
6
  if (!e[s] || n && !s.startsWith(t))
@@ -9,11 +10,11 @@ function K(e = {}, t, n) {
9
10
  }
10
11
  return o;
11
12
  }
12
- const De = b({
13
+ const rt = y({
13
14
  name: "builder-button",
14
15
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
16
  data() {
16
- return { filterAttrs: K };
17
+ return { filterAttrs: q };
17
18
  },
18
19
  methods: {
19
20
  _classStringToObject(e) {
@@ -27,25 +28,25 @@ const De = b({
27
28
  }
28
29
  }
29
30
  });
30
- const g = (e, t) => {
31
+ const k = (e, t) => {
31
32
  const n = e.__vccOpts || e;
32
33
  for (const [o, s] of t)
33
34
  n[o] = s;
34
35
  return n;
35
- }, qe = ["href", "target"];
36
- function Ge(e, t, n, o, s, r) {
37
- return e.link ? (d(), m("a", $({
36
+ }, it = ["href", "target"];
37
+ function at(e, t, n, o, s, r) {
38
+ return e.link ? (d(), h("a", I({
38
39
  key: 0,
39
40
  role: "button",
40
41
  href: e.link,
41
42
  target: e.openLinkInNewTab ? "_blank" : void 0
42
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17, qe)) : (d(), m("button", $({
43
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17, it)) : (d(), h("button", I({
43
44
  key: 1,
44
45
  style: e.attributes.style,
45
46
  class: e._classStringToObject(e.attributes.class + " button-21azgz5avex")
46
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), oe(e.text), 17));
47
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ae(e.text), 17));
47
48
  }
48
- const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), O = (e) => JSON.parse(JSON.stringify(e)), ke = {
49
+ const ct = /* @__PURE__ */ k(rt, [["render", at], ["__scopeId", "data-v-becdf225"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/button/button.vue"]]), N = (e) => JSON.parse(JSON.stringify(e)), $e = {
49
50
  small: {
50
51
  min: 320,
51
52
  default: 321,
@@ -61,11 +62,11 @@ const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225
61
62
  default: 991,
62
63
  max: 1200
63
64
  }
64
- }, ae = (e, t = ke) => `@media (max-width: ${t[e].max}px)`, ve = ({
65
+ }, ue = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, Te = ({
65
66
  small: e,
66
67
  medium: t
67
68
  }) => {
68
- const n = O(ke);
69
+ const n = N($e);
69
70
  if (!e || !t)
70
71
  return n;
71
72
  const o = Math.floor(e / 2);
@@ -86,29 +87,29 @@ const Je = /* @__PURE__ */ g(De, [["render", Ge], ["__scopeId", "data-v-becdf225
86
87
  min: r,
87
88
  default: r + 1
88
89
  }, n;
89
- }, A = "vue3", F = "[Builder.io]: ", x = {
90
- log: (...e) => console.log(F, ...e),
91
- error: (...e) => console.error(F, ...e),
92
- warn: (...e) => console.warn(F, ...e),
93
- debug: (...e) => console.debug(F, ...e)
90
+ }, j = "vue3", L = "[Builder.io]: ", x = {
91
+ log: (...e) => console.log(L, ...e),
92
+ error: (...e) => console.error(L, ...e),
93
+ warn: (...e) => console.warn(L, ...e),
94
+ debug: (...e) => console.debug(L, ...e)
94
95
  };
95
- function C() {
96
+ function $() {
96
97
  return typeof window < "u" && typeof document < "u";
97
98
  }
98
- function Ye() {
99
- return C() && window.self !== window.top;
99
+ function lt() {
100
+ return $() && window.self !== window.top;
100
101
  }
101
102
  function _() {
102
- return Ye() && window.location.search.indexOf("builder.frameEditing=") !== -1;
103
+ return lt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
103
104
  }
104
- const Xe = () => {
105
- if (C()) {
105
+ const dt = () => {
106
+ if ($()) {
106
107
  const e = new URL(location.href);
107
108
  return e.pathname === "" && (e.pathname = "/"), e;
108
109
  } else
109
110
  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 = {
111
+ }, ut = () => typeof navigator == "object" && navigator.userAgent || "", Ie = () => {
112
+ const e = ut(), t = {
112
113
  Android() {
113
114
  return e.match(/Android/i);
114
115
  },
@@ -125,15 +126,15 @@ const Xe = () => {
125
126
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
126
127
  },
127
128
  any() {
128
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || A === "reactNative";
129
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || j === "reactNative";
129
130
  }
130
- }, n = e.match(/Tablet|iPad/i), o = Xe();
131
+ }, n = e.match(/Tablet|iPad/i), o = dt();
131
132
  return {
132
133
  urlPath: o == null ? void 0 : o.pathname,
133
134
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
134
135
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
135
136
  };
136
- }, Ze = ({
137
+ }, Re = ({
137
138
  builder: e,
138
139
  context: t,
139
140
  event: n,
@@ -144,7 +145,14 @@ const Xe = () => {
144
145
  builder: e,
145
146
  context: t,
146
147
  event: n
147
- }), et = ({
148
+ }), pt = () => ({
149
+ isEditing: _(),
150
+ isBrowser: $(),
151
+ isServer: !$(),
152
+ getUserAttributes: () => Ie()
153
+ }), mt = (e, {
154
+ isExpression: t = !0
155
+ }) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ht = ({
148
156
  code: e,
149
157
  builder: t,
150
158
  context: n,
@@ -153,15 +161,15 @@ const Xe = () => {
153
161
  rootSetState: r,
154
162
  rootState: i
155
163
  }) => {
156
- const a = Ze({
164
+ const a = Re({
157
165
  builder: t,
158
166
  context: n,
159
167
  event: o,
160
- state: tt(i, s, r)
168
+ state: ft(i, s, r)
161
169
  });
162
- return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
170
+ return new Function(...a.map(([c]) => c), e)(...a.map(([, c]) => c));
163
171
  };
164
- function tt(e, t, n) {
172
+ function ft(e, t, n) {
165
173
  if (e === t)
166
174
  throw new Error("rootState === localState");
167
175
  return new Proxy(e, {
@@ -173,7 +181,107 @@ function tt(e, t, n) {
173
181
  }
174
182
  });
175
183
  }
176
- function M({
184
+ const bt = () => null;
185
+ let xe = bt;
186
+ try {
187
+ xe = st(import.meta.url);
188
+ } catch {
189
+ }
190
+ const Ee = (e, t, n) => {
191
+ if (Object(e) !== e)
192
+ return e;
193
+ const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
194
+ 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;
195
+ }, Q = xe("isolated-vm"), _e = (e) => `bldr_${e}_sync`, Ae = "BUILDER_SET_STATE", je = "BUILDER_IVM", gt = `
196
+ var refToProxy = (obj) => {
197
+ if (typeof obj !== 'object' || obj === null) {
198
+ return obj;
199
+ }
200
+ return new Proxy({}, {
201
+ get(target, key) {
202
+ if (key === 'copySync') {
203
+ return () => obj.copySync();
204
+ }
205
+ const val = obj.getSync(key);
206
+ if (typeof val?.getSync === 'function') {
207
+ return refToProxy(val);
208
+ }
209
+ return val;
210
+ },
211
+ set(target, key, value) {
212
+ const v = typeof value === 'object' ? new ${je}.Reference(value) : value;
213
+ obj.setSync(key, v);
214
+ ${Ae}(key, value)
215
+ },
216
+ deleteProperty(target, key) {
217
+ obj.deleteSync(key);
218
+ }
219
+ })
220
+ }
221
+ `, yt = ({
222
+ code: e,
223
+ args: t
224
+ }) => {
225
+ const n = t.map(([o]) => `var ${o} = refToProxy(${_e(o)}); `).join("");
226
+ return `
227
+ ${gt}
228
+ ${n}
229
+ function theFunction() {
230
+ ${e}
231
+ }
232
+
233
+ let output = theFunction()
234
+
235
+ if (typeof output === 'object' && output !== null) {
236
+ output = JSON.stringify(output.copySync ? output.copySync() : output);
237
+ }
238
+
239
+ output;
240
+ `;
241
+ }, kt = () => new Q.Isolate({
242
+ memoryLimit: 128
243
+ }).createContextSync(), vt = ({
244
+ code: e,
245
+ builder: t,
246
+ context: n,
247
+ event: o,
248
+ localState: s,
249
+ rootSetState: r,
250
+ rootState: i
251
+ }) => {
252
+ const a = N({
253
+ ...i,
254
+ ...s
255
+ }), c = Re({
256
+ builder: t,
257
+ context: n,
258
+ event: o,
259
+ state: a
260
+ }), l = kt(), u = l.global;
261
+ u.setSync("global", u.derefInto()), u.setSync("log", function(...p) {
262
+ console.log(...p);
263
+ }), u.setSync(Ae, function(p, b) {
264
+ Ee(i, p, b), r == null || r(i);
265
+ }), c.forEach(([p, b]) => {
266
+ const S = typeof b == "object" ? new Q.Reference(
267
+ p === "builder" ? {
268
+ ...b,
269
+ getUserAttributes: () => b.getUserAttributes()
270
+ } : b
271
+ ) : null;
272
+ u.setSync(_e(p), S);
273
+ }), u.setSync(je, Q);
274
+ const f = yt({
275
+ code: e,
276
+ args: c
277
+ }), m = l.evalSync(f);
278
+ try {
279
+ return JSON.parse(m);
280
+ } catch {
281
+ return m;
282
+ }
283
+ }, St = (e) => $() ? ht(e) : vt(e);
284
+ function z({
177
285
  code: e,
178
286
  context: t,
179
287
  localState: n,
@@ -187,13 +295,10 @@ function M({
187
295
  return;
188
296
  }
189
297
  const a = {
190
- isEditing: _(),
191
- isBrowser: C(),
192
- isServer: !C(),
193
- getUserAttributes: () => Se()
194
- }, u = {
195
- code: i && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
196
- builder: a,
298
+ code: mt(e, {
299
+ isExpression: i
300
+ }),
301
+ builder: pt(),
197
302
  context: t,
198
303
  event: r,
199
304
  rootSetState: s,
@@ -201,21 +306,15 @@ function M({
201
306
  localState: n
202
307
  };
203
308
  try {
204
- return et(u);
205
- } catch (p) {
206
- x.error("Failed code evaluation: " + p.message, {
309
+ return St(a);
310
+ } catch (c) {
311
+ x.error("Failed code evaluation: " + c.message, {
207
312
  code: e
208
313
  });
209
314
  return;
210
315
  }
211
316
  }
212
- const nt = (e, t, n) => {
213
- if (Object(e) !== e)
214
- return e;
215
- const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
216
- 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
- };
218
- const ot = ({
317
+ const Ct = ({
219
318
  block: e,
220
319
  context: t,
221
320
  localState: n,
@@ -224,7 +323,7 @@ const ot = ({
224
323
  }) => {
225
324
  if (!e.bindings)
226
325
  return e;
227
- const r = O(e), i = {
326
+ const r = N(e), i = {
228
327
  ...r,
229
328
  properties: {
230
329
  ...r.properties
@@ -234,18 +333,18 @@ const ot = ({
234
333
  }
235
334
  };
236
335
  for (const a in e.bindings) {
237
- const l = e.bindings[a], c = M({
238
- code: l,
336
+ const c = e.bindings[a], l = z({
337
+ code: c,
239
338
  localState: n,
240
339
  rootState: o,
241
340
  rootSetState: s,
242
341
  context: t
243
342
  });
244
- nt(i, a, c);
343
+ Ee(i, a, l);
245
344
  }
246
345
  return i;
247
346
  };
248
- function L({
347
+ function D({
249
348
  block: e,
250
349
  context: t,
251
350
  shouldEvaluateBindings: n,
@@ -254,7 +353,7 @@ function L({
254
353
  rootSetState: r
255
354
  }) {
256
355
  const i = e;
257
- return n ? ot({
356
+ return n ? Ct({
258
357
  block: i,
259
358
  localState: o,
260
359
  rootState: s,
@@ -262,37 +361,37 @@ function L({
262
361
  context: t
263
362
  }) : i;
264
363
  }
265
- const st = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e != null, rt = (e) => Object.entries(e).map(([n, o]) => {
364
+ const wt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), A = (e) => e != null, $t = (e) => Object.entries(e).map(([n, o]) => {
266
365
  if (typeof o == "string")
267
- return `${st(n)}: ${o};`;
268
- }).filter(E), it = (e) => rt(e).join(`
269
- `), D = ({
366
+ return `${wt(n)}: ${o};`;
367
+ }).filter(A), Tt = (e) => $t(e).join(`
368
+ `), Y = ({
270
369
  mediaQuery: e,
271
370
  className: t,
272
371
  styles: n
273
372
  }) => {
274
373
  const o = `.${t} {
275
- ${it(n)}
374
+ ${Tt(n)}
276
375
  }`;
277
376
  return e ? `${e} {
278
377
  ${o}
279
378
  }` : o;
280
- }, at = b({
379
+ }, It = y({
281
380
  render() {
282
- return ge("style", { id: this.id, innerHTML: this.styles });
381
+ return Ce("style", { id: this.id, innerHTML: this.styles });
283
382
  },
284
383
  name: "inlined-styles",
285
384
  props: ["styles", "id"]
286
- }), H = /* @__PURE__ */ g(at, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), lt = b({
385
+ }), G = /* @__PURE__ */ k(It, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-styles.vue"]]), Rt = y({
287
386
  name: "block-styles",
288
- components: { InlinedStyles: H },
387
+ components: { InlinedStyles: G },
289
388
  props: ["block", "context"],
290
389
  data() {
291
- return { TARGET: A };
390
+ return { TARGET: j };
292
391
  },
293
392
  computed: {
294
393
  canShowBlock() {
295
- const e = L({
394
+ const e = D({
296
395
  block: this.block,
297
396
  localState: this.context.localState,
298
397
  rootState: this.context.rootState,
@@ -300,56 +399,56 @@ const st = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
300
399
  context: this.context.context,
301
400
  shouldEvaluateBindings: !0
302
401
  });
303
- return E(e.hide) ? !e.hide : E(e.show) ? e.show : !0;
402
+ return A(e.hide) ? !e.hide : A(e.show) ? e.show : !0;
304
403
  },
305
404
  css() {
306
- var p;
307
- const e = L({
405
+ var f;
406
+ const e = D({
308
407
  block: this.block,
309
408
  localState: this.context.localState,
310
409
  rootState: this.context.rootState,
311
410
  rootSetState: this.context.rootSetState,
312
411
  context: this.context.context,
313
412
  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) || {}
413
+ }), t = e.responsiveStyles, n = this.context.content, o = Te(
414
+ ((f = n == null ? void 0 : n.meta) == null ? void 0 : f.breakpoints) || {}
316
415
  ), 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
416
  if (!a)
318
417
  return "";
319
- const l = s ? D({
418
+ const c = s ? Y({
320
419
  className: a,
321
420
  styles: s
322
- }) : "", c = r ? D({
421
+ }) : "", l = r ? Y({
323
422
  className: a,
324
423
  styles: r,
325
- mediaQuery: ae(
424
+ mediaQuery: ue(
326
425
  "medium",
327
426
  o
328
427
  )
329
- }) : "", u = i ? D({
428
+ }) : "", u = i ? Y({
330
429
  className: a,
331
430
  styles: i,
332
- mediaQuery: ae(
431
+ mediaQuery: ue(
333
432
  "small",
334
433
  o
335
434
  )
336
435
  }) : "";
337
- return [l, c, u].join(" ");
436
+ return [c, l, u].join(" ");
338
437
  }
339
438
  }
340
439
  });
341
- function ct(e, t, n, o, s, r) {
342
- const i = y("inlined-styles");
343
- return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), v(i, {
440
+ function xt(e, t, n, o, s, r) {
441
+ const i = v("inlined-styles");
442
+ return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (d(), C(i, {
344
443
  key: 0,
345
444
  styles: e.css
346
- }, null, 8, ["styles"])) : S("v-if", !0);
445
+ }, null, 8, ["styles"])) : w("v-if", !0);
347
446
  }
348
- const Ce = /* @__PURE__ */ g(lt, [["render", ct], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
447
+ const Pe = /* @__PURE__ */ k(Rt, [["render", xt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/components/block-styles.vue"]]), Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
349
448
  __proto__: null,
350
- default: Ce
449
+ default: Pe
351
450
  }, Symbol.toStringTag, { value: "Module" }));
352
- function ut(e) {
451
+ function _t(e) {
353
452
  var t;
354
453
  return {
355
454
  ...(t = e.component) == null ? void 0 : t.options,
@@ -357,13 +456,13 @@ function ut(e) {
357
456
  builderBlock: e
358
457
  };
359
458
  }
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 = ({
459
+ const At = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], jt = (e) => typeof e == "string" && At.includes(e.toLowerCase()), Pt = ({
361
460
  block: e,
362
461
  context: t,
363
462
  registeredComponents: n
364
463
  }) => {
365
464
  var r;
366
- const o = (r = L({
465
+ const o = (r = D({
367
466
  block: e,
368
467
  localState: t.localState,
369
468
  rootState: t.rootState,
@@ -379,7 +478,7 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
379
478
  console.warn(`
380
479
  Could not find a registered component named "${o}".
381
480
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
382
- }, ft = ({
481
+ }, Bt = ({
383
482
  block: e,
384
483
  context: t
385
484
  }) => {
@@ -389,7 +488,7 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
389
488
  } = e;
390
489
  if (!(n != null && n.collection))
391
490
  return;
392
- const s = M({
491
+ const s = z({
393
492
  code: n.collection,
394
493
  localState: t.localState,
395
494
  rootState: t.rootState,
@@ -399,67 +498,67 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
399
498
  if (!Array.isArray(s))
400
499
  return;
401
500
  const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item");
402
- return s.map((l, c) => ({
501
+ return s.map((c, l) => ({
403
502
  context: {
404
503
  ...t,
405
504
  localState: {
406
505
  ...t.localState,
407
- $index: c,
408
- $item: l,
409
- [i]: l,
410
- [`$${i}Index`]: c
506
+ $index: l,
507
+ $item: c,
508
+ [i]: c,
509
+ [`$${i}Index`]: l
411
510
  }
412
511
  },
413
512
  block: o
414
513
  }));
415
- }, bt = () => Promise.resolve().then(() => dt).then((e) => e.default).catch((e) => {
514
+ }, Vt = () => Promise.resolve().then(() => Et).then((e) => e.default).catch((e) => {
416
515
  throw console.error(
417
516
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
418
517
  e
419
518
  ), e;
420
- }), gt = () => import("./repeated-block.ab5e93b5.js").then((e) => e.default).catch((e) => {
519
+ }), Ut = () => import("./repeated-block.04f4039b.js").then((e) => e.default).catch((e) => {
421
520
  throw console.error(
422
521
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
423
522
  e
424
523
  ), e;
425
- }), yt = () => import("./component-ref.104f0d16.js").then((e) => e.default).catch((e) => {
524
+ }), Nt = () => import("./component-ref.3c9a0fb1.js").then((e) => e.default).catch((e) => {
426
525
  throw console.error(
427
526
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
428
527
  e
429
528
  ), e;
430
- }), kt = () => import("./block-wrapper.d71006fa.js").then((e) => e.default).catch((e) => {
529
+ }), Ot = () => import("./block-wrapper.529d85d5.js").then((e) => e.default).catch((e) => {
431
530
  throw console.error(
432
531
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
433
532
  e
434
533
  ), e;
435
- }), vt = b({
534
+ }), Ft = y({
436
535
  name: "block",
437
536
  components: {
438
- ComponentRef: N(yt),
439
- BlockWrapper: N(kt),
440
- RepeatedBlock: N(gt),
441
- BlockStyles: N(bt)
537
+ ComponentRef: W(Nt),
538
+ BlockWrapper: W(Ot),
539
+ RepeatedBlock: W(Ut),
540
+ BlockStyles: W(Vt)
442
541
  },
443
542
  props: ["block", "context", "registeredComponents"],
444
543
  data() {
445
- return { childrenContext: this.context, isEmptyHtmlElement: mt };
544
+ return { childrenContext: this.context, isEmptyHtmlElement: jt };
446
545
  },
447
546
  computed: {
448
547
  blockComponent() {
449
- return ht({
548
+ return Pt({
450
549
  block: this.block,
451
550
  context: this.context,
452
551
  registeredComponents: this.registeredComponents
453
552
  });
454
553
  },
455
554
  repeatItem() {
456
- return ft({
555
+ return Bt({
457
556
  block: this.block,
458
557
  context: this.context
459
558
  });
460
559
  },
461
560
  processedBlock() {
462
- return this.repeatItem ? this.block : L({
561
+ return this.repeatItem ? this.block : D({
463
562
  block: this.block,
464
563
  localState: this.context.localState,
465
564
  rootState: this.context.rootState,
@@ -484,7 +583,7 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
484
583
  blockChildren: (e = this.processedBlock.children) != null ? e : [],
485
584
  componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
486
585
  componentOptions: {
487
- ...ut(this.processedBlock),
586
+ ..._t(this.processedBlock),
488
587
  builderContext: this.context,
489
588
  ...((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
490
589
  builderComponents: this.registeredComponents
@@ -499,54 +598,54 @@ const pt = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
499
598
  }
500
599
  }
501
600
  });
502
- function St(e, t, n, o, s, r) {
503
- var p;
504
- const i = y("block-wrapper"), a = y("repeated-block"), l = y("component-ref"), c = y("block", !0), u = y("block-styles");
505
- return e.canShowBlock ? (d(), m(T, { key: 0 }, [
506
- (p = e.blockComponent) != null && p.noWrap ? (d(), v(l, se($({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), m(T, { key: 0 }, [
507
- e.isEmptyHtmlElement(e.Tag) ? (d(), v(i, {
601
+ function Mt(e, t, n, o, s, r) {
602
+ var f;
603
+ const i = v("block-wrapper"), a = v("repeated-block"), c = v("component-ref"), l = v("block", !0), u = v("block-styles");
604
+ return e.canShowBlock ? (d(), h(R, { key: 0 }, [
605
+ (f = e.blockComponent) != null && f.noWrap ? (d(), C(c, ce(I({ key: 1 }, e.componentRefProps)), null, 16)) : (d(), h(R, { key: 0 }, [
606
+ e.isEmptyHtmlElement(e.Tag) ? (d(), C(i, {
508
607
  key: 0,
509
608
  Wrapper: e.Tag,
510
609
  block: e.processedBlock,
511
610
  context: e.context,
512
611
  hasChildren: !1
513
- }, null, 8, ["Wrapper", "block", "context"])) : S("v-if", !0),
514
- !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), m(T, { key: 1 }, j(e.repeatItem, (h, f) => (d(), v(a, {
515
- key: f,
516
- repeatContext: h.context,
517
- block: h.block,
612
+ }, null, 8, ["Wrapper", "block", "context"])) : w("v-if", !0),
613
+ !e.isEmptyHtmlElement(e.Tag) && e.repeatItem ? (d(!0), h(R, { key: 1 }, B(e.repeatItem, (m, p) => (d(), C(a, {
614
+ key: p,
615
+ repeatContext: m.context,
616
+ block: m.block,
518
617
  registeredComponents: e.registeredComponents
519
- }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : S("v-if", !0),
520
- !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), v(i, {
618
+ }, null, 8, ["repeatContext", "block", "registeredComponents"]))), 128)) : w("v-if", !0),
619
+ !e.isEmptyHtmlElement(e.Tag) && !e.repeatItem ? (d(), C(i, {
521
620
  key: 2,
522
621
  Wrapper: e.Tag,
523
622
  block: e.processedBlock,
524
623
  context: e.context,
525
624
  hasChildren: !0
526
625
  }, {
527
- default: Z(() => [
528
- V(l, se(He(e.componentRefProps)), null, 16),
529
- (d(!0), m(T, null, j(e.childrenWithoutParentComponent, (h, f) => (d(), v(c, {
530
- key: "block-" + h.id,
531
- block: h,
626
+ default: ne(() => [
627
+ V(c, ce(nt(e.componentRefProps)), null, 16),
628
+ (d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(l, {
629
+ key: "block-" + m.id,
630
+ block: m,
532
631
  context: e.childrenContext,
533
632
  registeredComponents: e.registeredComponents
534
633
  }, null, 8, ["block", "context", "registeredComponents"]))), 128)),
535
- (d(!0), m(T, null, j(e.childrenWithoutParentComponent, (h, f) => (d(), v(u, {
536
- key: "block-style-" + h.id,
537
- block: h,
634
+ (d(!0), h(R, null, B(e.childrenWithoutParentComponent, (m, p) => (d(), C(u, {
635
+ key: "block-style-" + m.id,
636
+ block: m,
538
637
  context: e.childrenContext
539
638
  }, null, 8, ["block", "context"]))), 128))
540
639
  ]),
541
640
  _: 1
542
- }, 8, ["Wrapper", "block", "context"])) : S("v-if", !0)
641
+ }, 8, ["Wrapper", "block", "context"])) : w("v-if", !0)
543
642
  ], 64))
544
- ], 64)) : S("v-if", !0);
643
+ ], 64)) : w("v-if", !0);
545
644
  }
546
- const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
645
+ const Be = /* @__PURE__ */ k(Ft, [["render", Mt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/block/block.vue"]]), ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
547
646
  __proto__: null,
548
- default: we
549
- }, Symbol.toStringTag, { value: "Module" })), Ct = b({
647
+ default: Be
648
+ }, Symbol.toStringTag, { value: "Module" })), Wt = y({
550
649
  name: "builder-blocks-wrapper",
551
650
  props: ["blocks", "parent", "path", "styleProp"],
552
651
  computed: {
@@ -593,10 +692,10 @@ const we = /* @__PURE__ */ g(vt, [["render", St], ["__file", "/Users/samijaber/c
593
692
  }
594
693
  }
595
694
  });
596
- const wt = ["builder-path", "builder-parent-id"];
597
- function $t(e, t, n, o, s, r) {
598
- return d(), m("div", $({
599
- class: e._classStringToObject(e.className + " div-2flfunvabst"),
695
+ const Lt = ["builder-path", "builder-parent-id"];
696
+ function Kt(e, t, n, o, s, r) {
697
+ return d(), h("div", I({
698
+ class: e._classStringToObject(e.className + " div-178o76acnws"),
600
699
  "builder-path": e.path,
601
700
  "builder-parent-id": e.parent,
602
701
  style: e.styleProp,
@@ -604,10 +703,10 @@ function $t(e, t, n, o, s, r) {
604
703
  onMouseenter: t[1] || (t[1] = (i) => e.onMouseEnter()),
605
704
  onKeypress: t[2] || (t[2] = (i) => e.onClick())
606
705
  }, {}), [
607
- P(e.$slots, "default", {}, void 0, !0)
608
- ], 16, wt);
706
+ U(e.$slots, "default", {}, void 0, !0)
707
+ ], 16, Lt);
609
708
  }
610
- const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), It = Symbol(), G = {
709
+ const Ht = /* @__PURE__ */ k(Wt, [["render", Kt], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks-wrapper.vue"]]), zt = Symbol(), Z = {
611
710
  Builder: {
612
711
  content: null,
613
712
  context: {},
@@ -620,16 +719,16 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f
620
719
  componentInfos: {},
621
720
  inheritedStyles: {}
622
721
  },
623
- key: It
624
- }, xt = Symbol(), $e = {
722
+ key: zt
723
+ }, Dt = Symbol(), Ve = {
625
724
  Components: { registeredComponents: {} },
626
- key: xt
627
- }, Rt = b({
725
+ key: Dt
726
+ }, qt = y({
628
727
  name: "builder-blocks",
629
728
  components: {
630
- BlocksWrapper: Tt,
631
- Block: we,
632
- BlockStyles: Ce
729
+ BlocksWrapper: Ht,
730
+ Block: Be,
731
+ BlockStyles: Pe
633
732
  },
634
733
  props: [
635
734
  "blocks",
@@ -640,37 +739,37 @@ const Tt = /* @__PURE__ */ g(Ct, [["render", $t], ["__scopeId", "data-v-1f8aab9f
640
739
  "registeredComponents"
641
740
  ],
642
741
  inject: {
643
- builderContext: G.key,
644
- componentsContext: $e.key
742
+ builderContext: Z.key,
743
+ componentsContext: Ve.key
645
744
  }
646
745
  });
647
- function Et(e, t, n, o, s, r) {
648
- const i = y("block"), a = y("block-styles"), l = y("blocks-wrapper");
649
- return d(), v(l, {
746
+ function Gt(e, t, n, o, s, r) {
747
+ const i = v("block"), a = v("block-styles"), c = v("blocks-wrapper");
748
+ return d(), C(c, {
650
749
  blocks: e.blocks,
651
750
  parent: e.parent,
652
751
  path: e.path,
653
752
  styleProp: e.styleProp
654
753
  }, {
655
- default: Z(() => [
656
- e.blocks ? (d(!0), m(T, { key: 0 }, j(e.blocks, (c, u) => (d(), v(i, {
657
- key: "render-block-" + c.id,
658
- block: c,
754
+ default: ne(() => [
755
+ e.blocks ? (d(!0), h(R, { key: 0 }, B(e.blocks, (l, u) => (d(), C(i, {
756
+ key: "render-block-" + l.id,
757
+ block: l,
659
758
  context: e.context || e.builderContext,
660
759
  registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
661
- }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : S("v-if", !0),
662
- e.blocks ? (d(!0), m(T, { key: 1 }, j(e.blocks, (c, u) => (d(), v(a, {
663
- key: "block-style-" + c.id,
664
- block: c,
760
+ }, null, 8, ["block", "context", "registeredComponents"]))), 128)) : w("v-if", !0),
761
+ e.blocks ? (d(!0), h(R, { key: 1 }, B(e.blocks, (l, u) => (d(), C(a, {
762
+ key: "block-style-" + l.id,
763
+ block: l,
665
764
  context: e.context || e.builderContext
666
- }, null, 8, ["block", "context"]))), 128)) : S("v-if", !0)
765
+ }, null, 8, ["block", "context"]))), 128)) : w("v-if", !0)
667
766
  ]),
668
767
  _: 1
669
768
  }, 8, ["blocks", "parent", "path", "styleProp"]);
670
769
  }
671
- const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), _t = b({
770
+ const oe = /* @__PURE__ */ k(qt, [["render", Gt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/blocks/blocks.vue"]]), Jt = y({
672
771
  name: "builder-columns",
673
- components: { InlinedStyles: H, Blocks: ee },
772
+ components: { InlinedStyles: G, Blocks: oe },
674
773
  props: [
675
774
  "js",
676
775
  "space",
@@ -687,7 +786,7 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/Users/samijaber/c
687
786
  cols: this.columns || [],
688
787
  stackAt: this.stackColumnsAt || "tablet",
689
788
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
690
- TARGET: A
789
+ TARGET: j
691
790
  };
692
791
  },
693
792
  computed: {
@@ -774,7 +873,7 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/Users/samijaber/c
774
873
  },
775
874
  getWidthForBreakpointSize(e) {
776
875
  var n, o;
777
- return ve(
876
+ return Te(
778
877
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
779
878
  )[e].max;
780
879
  },
@@ -789,77 +888,77 @@ const ee = /* @__PURE__ */ g(Rt, [["render", Et], ["__file", "/Users/samijaber/c
789
888
  }
790
889
  }
791
890
  });
792
- function At(e, t, n, o, s, r) {
793
- const i = y("inlined-styles"), a = y("blocks");
794
- return d(), m("div", $({
891
+ function Yt(e, t, n, o, s, r) {
892
+ const i = v("inlined-styles"), a = v("blocks");
893
+ return d(), h("div", I({
795
894
  class: e._classStringToObject(
796
895
  `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`
797
896
  ),
798
897
  style: e.columnsCssVars
799
898
  }, {}), [
800
- e.TARGET !== "reactNative" ? (d(), v(i, {
899
+ e.TARGET !== "reactNative" ? (d(), C(i, {
801
900
  key: 0,
802
901
  styles: e.columnsStyles
803
- }, null, 8, ["styles"])) : S("v-if", !0),
804
- (d(!0), m(T, null, j(e.columns, (l, c) => (d(), m("div", $({
805
- key: c,
902
+ }, null, 8, ["styles"])) : w("v-if", !0),
903
+ (d(!0), h(R, null, B(e.columns, (c, l) => (d(), h("div", I({
904
+ key: l,
806
905
  class: "builder-column div-16nol0lwi20-2",
807
- style: e.columnCssVars(c)
906
+ style: e.columnCssVars(l)
808
907
  }, {}), [
809
908
  V(a, {
810
- path: `component.options.columns.${c}.blocks`,
909
+ path: `component.options.columns.${l}.blocks`,
811
910
  parent: e.builderBlock.id,
812
911
  styleProp: {
813
912
  flexGrow: "1"
814
913
  },
815
914
  context: e.builderContext,
816
915
  registeredComponents: e.builderComponents,
817
- blocks: l.blocks
916
+ blocks: c.blocks
818
917
  }, null, 8, ["path", "parent", "context", "registeredComponents", "blocks"])
819
918
  ], 16))), 128))
820
919
  ], 16);
821
920
  }
822
- const jt = /* @__PURE__ */ g(_t, [["render", At], ["__scopeId", "data-v-7be099dc"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Vt = b({
921
+ const Xt = /* @__PURE__ */ k(Jt, [["render", Yt], ["__scopeId", "data-v-7be099dc"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/columns/columns.vue"]]), Qt = y({
823
922
  name: "builder-fragment-component",
824
923
  props: []
825
924
  });
826
- function Bt(e, t, n, o, s, r) {
827
- return d(), m("span", null, [
828
- P(e.$slots, "default")
925
+ function Zt(e, t, n, o, s, r) {
926
+ return d(), h("span", null, [
927
+ U(e.$slots, "default")
829
928
  ]);
830
929
  }
831
- const Pt = /* @__PURE__ */ g(Vt, [["render", Bt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
832
- function le(e) {
930
+ const en = /* @__PURE__ */ k(Qt, [["render", Zt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/fragment/fragment.vue"]]);
931
+ function pe(e) {
833
932
  return e.replace(/http(s)?:/, "");
834
933
  }
835
- function Ut(e = "", t, n) {
934
+ function tn(e = "", t, n) {
836
935
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
837
936
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
838
937
  }
839
- function Ot(e, t) {
938
+ function nn(e, t) {
840
939
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
841
940
  return e;
842
941
  if (t === "master")
843
- return le(e);
942
+ return pe(e);
844
943
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
845
944
  if (n) {
846
945
  const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
847
- return le(`${o[0]}_${r}${s}`);
946
+ return pe(`${o[0]}_${r}${s}`);
848
947
  }
849
948
  return null;
850
949
  }
851
- function q(e) {
950
+ function X(e) {
852
951
  if (!e)
853
952
  return e;
854
953
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
855
954
  if (e.match(/builder\.io/)) {
856
955
  let n = e;
857
956
  const o = Number(e.split("?width=")[1]);
858
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${Ut(e, "width", s)} ${s}w`).concat([n]).join(", ");
957
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${tn(e, "width", s)} ${s}w`).concat([n]).join(", ");
859
958
  }
860
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
959
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [nn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
861
960
  }
862
- const Nt = b({
961
+ const on = y({
863
962
  name: "builder-image",
864
963
  props: [
865
964
  "image",
@@ -883,10 +982,10 @@ const Nt = b({
883
982
  return this.srcset;
884
983
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
885
984
  if (!this.srcset.includes(this.image.split("?")[0]))
886
- return console.debug("Removed given srcset"), q(t);
985
+ return console.debug("Removed given srcset"), X(t);
887
986
  } else if (this.image && !this.srcset)
888
- return q(t);
889
- return q(t);
987
+ return X(t);
988
+ return X(t);
890
989
  },
891
990
  webpSrcSet() {
892
991
  var e;
@@ -915,29 +1014,29 @@ const Nt = b({
915
1014
  }
916
1015
  }
917
1016
  });
918
- const Ft = ["srcset"], Wt = ["alt", "role", "src", "srcset", "sizes"], Mt = {
1017
+ const sn = ["srcset"], rn = ["alt", "role", "src", "srcset", "sizes"], an = {
919
1018
  key: 2,
920
1019
  class: "div-1be3j8m9ewb-2"
921
1020
  };
922
- function Lt(e, t, n, o, s, r) {
923
- var i, a, l, c;
924
- return d(), m(T, null, [
925
- re("picture", null, [
926
- e.webpSrcSet ? (d(), m("source", {
1021
+ function cn(e, t, n, o, s, r) {
1022
+ var i, a, c, l;
1023
+ return d(), h(R, null, [
1024
+ le("picture", null, [
1025
+ e.webpSrcSet ? (d(), h("source", {
927
1026
  key: 0,
928
1027
  type: "image/webp",
929
1028
  srcset: e.webpSrcSet
930
- }, null, 8, Ft)) : S("v-if", !0),
931
- re("img", {
1029
+ }, null, 8, sn)) : w("v-if", !0),
1030
+ le("img", {
932
1031
  loading: "lazy",
933
1032
  alt: e.altText,
934
1033
  role: e.altText ? "presentation" : void 0,
935
- style: ie({
1034
+ style: de({
936
1035
  objectPosition: e.backgroundPosition || "center",
937
1036
  objectFit: e.backgroundSize || "cover",
938
1037
  ...e.aspectRatioCss
939
1038
  }),
940
- class: ye(
1039
+ class: we(
941
1040
  e._classStringToObject(
942
1041
  "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
943
1042
  )
@@ -945,30 +1044,30 @@ function Lt(e, t, n, o, s, r) {
945
1044
  src: e.image,
946
1045
  srcset: e.srcSetToUse,
947
1046
  sizes: e.sizes
948
- }, null, 14, Wt)
1047
+ }, null, 14, rn)
949
1048
  ]),
950
- e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), m("div", {
1049
+ e.aspectRatio && !(((a = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : a.length) && e.fitContent) ? (d(), h("div", {
951
1050
  key: 0,
952
1051
  class: "builder-image-sizer div-1be3j8m9ewb",
953
- style: ie({
1052
+ style: de({
954
1053
  paddingTop: e.aspectRatio * 100 + "%"
955
1054
  })
956
- }, null, 4)) : S("v-if", !0),
957
- ((c = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : c.length) && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("v-if", !0),
958
- !e.fitContent && e.$slots.default ? (d(), m("div", Mt, [
959
- P(e.$slots, "default", {}, void 0, !0)
960
- ])) : S("v-if", !0)
1055
+ }, null, 4)) : w("v-if", !0),
1056
+ ((l = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : l.length) && e.fitContent ? U(e.$slots, "default", { key: 1 }, void 0, !0) : w("v-if", !0),
1057
+ !e.fitContent && e.$slots.default ? (d(), h("div", an, [
1058
+ U(e.$slots, "default", {}, void 0, !0)
1059
+ ])) : w("v-if", !0)
961
1060
  ], 64);
962
1061
  }
963
- const Kt = /* @__PURE__ */ g(Nt, [["render", Lt], ["__scopeId", "data-v-58ca75d1"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), Ht = b({
1062
+ const ln = /* @__PURE__ */ k(on, [["render", cn], ["__scopeId", "data-v-58ca75d1"], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/image/image.vue"]]), dn = y({
964
1063
  name: "builder-section-component",
965
1064
  props: ["attributes", "maxWidth"],
966
1065
  data() {
967
- return { filterAttrs: K };
1066
+ return { filterAttrs: q };
968
1067
  }
969
1068
  });
970
- function zt(e, t, n, o, s, r) {
971
- return d(), m("section", $({
1069
+ function un(e, t, n, o, s, r) {
1070
+ return d(), h("section", I({
972
1071
  style: {
973
1072
  width: "100%",
974
1073
  alignSelf: "stretch",
@@ -981,51 +1080,51 @@ function zt(e, t, n, o, s, r) {
981
1080
  marginLeft: "auto",
982
1081
  marginRight: "auto"
983
1082
  }
984
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
985
- P(e.$slots, "default")
1083
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
1084
+ U(e.$slots, "default")
986
1085
  ], 16);
987
1086
  }
988
- const Dt = /* @__PURE__ */ g(Ht, [["render", zt], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/section/section.vue"]]), W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1087
+ const pn = /* @__PURE__ */ k(dn, [["render", un], ["__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
1088
  ...t,
990
1089
  testVariationId: t.id,
991
1090
  id: e == null ? void 0 : e.id
992
- })), qt = ({
1091
+ })), mn = ({
993
1092
  canTrack: e,
994
1093
  content: t
995
- }) => !(!(W(t).length > 0) || !e);
996
- function Gt(e, t, n) {
1094
+ }) => !(!(K(t).length > 0) || !e);
1095
+ function hn(e, t, n) {
997
1096
  var i;
998
1097
  function o() {
999
- function a(k, w, R) {
1000
- let B = "";
1001
- if (R) {
1002
- const I = new Date();
1003
- I.setTime(I.getTime() + R * 24 * 60 * 60 * 1e3), B = "; expires=" + I.toUTCString();
1098
+ function a(b, S, T) {
1099
+ let E = "";
1100
+ if (T) {
1101
+ const g = new Date();
1102
+ g.setTime(g.getTime() + T * 24 * 60 * 60 * 1e3), E = "; expires=" + g.toUTCString();
1004
1103
  }
1005
- document.cookie = k + "=" + (w || "") + B + "; path=/; Secure; SameSite=None";
1104
+ document.cookie = b + "=" + (S || "") + E + "; path=/; Secure; SameSite=None";
1006
1105
  }
1007
- function l(k) {
1008
- const w = k + "=", R = document.cookie.split(";");
1009
- for (let B = 0; B < R.length; B++) {
1010
- let I = R[B];
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);
1106
+ function c(b) {
1107
+ const S = b + "=", T = document.cookie.split(";");
1108
+ for (let E = 0; E < T.length; E++) {
1109
+ let g = T[E];
1110
+ for (; g.charAt(0) === " "; )
1111
+ g = g.substring(1, g.length);
1112
+ if (g.indexOf(S) === 0)
1113
+ return g.substring(S.length, g.length);
1015
1114
  }
1016
1115
  return null;
1017
1116
  }
1018
- const c = `builder.tests.${e}`, u = l(c), p = t.map((k) => k.id).concat(e);
1019
- if (u && p.includes(u))
1117
+ const l = `builder.tests.${e}`, u = c(l), f = t.map((b) => b.id).concat(e);
1118
+ if (u && f.includes(u))
1020
1119
  return u;
1021
- let h = 0;
1022
- 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;
1120
+ let m = 0;
1121
+ const p = Math.random();
1122
+ for (let b = 0; b < t.length; b++) {
1123
+ const S = t[b], T = S.testRatio;
1124
+ if (m += T, p < m)
1125
+ return a(l, S.id), S.id;
1027
1126
  }
1028
- return a(c, e), e;
1127
+ return a(l, e), e;
1029
1128
  }
1030
1129
  const s = o(), r = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
1031
1130
  if (n) {
@@ -1035,27 +1134,27 @@ function Gt(e, t, n) {
1035
1134
  } else {
1036
1135
  const a = t.concat({
1037
1136
  id: e
1038
- }).filter((l) => l.id !== s).map((l) => `.variant-${l.id} { display: none; }
1137
+ }).filter((c) => c.id !== s).map((c) => `.variant-${c.id} { display: none; }
1039
1138
  `).join("");
1040
1139
  r.innerHTML = a;
1041
1140
  }
1042
1141
  }
1043
- function Jt(e, t, n) {
1044
- var l;
1142
+ function fn(e, t, n) {
1143
+ var c;
1045
1144
  if (!navigator.cookieEnabled)
1046
1145
  return;
1047
- function o(c) {
1048
- const u = c + "=", p = document.cookie.split(";");
1049
- for (let h = 0; h < p.length; h++) {
1050
- let f = p[h];
1051
- for (; f.charAt(0) === " "; )
1052
- f = f.substring(1, f.length);
1053
- if (f.indexOf(u) === 0)
1054
- return f.substring(u.length, f.length);
1146
+ function o(l) {
1147
+ const u = l + "=", f = document.cookie.split(";");
1148
+ for (let m = 0; m < f.length; m++) {
1149
+ let p = f[m];
1150
+ for (; p.charAt(0) === " "; )
1151
+ p = p.substring(1, p.length);
1152
+ if (p.indexOf(u) === 0)
1153
+ return p.substring(u.length, p.length);
1055
1154
  }
1056
1155
  return null;
1057
1156
  }
1058
- const s = `builder.tests.${t}`, r = o(s), i = (l = document.currentScript) == null ? void 0 : l.parentElement, a = e === t;
1157
+ const s = `builder.tests.${t}`, r = o(s), i = (c = document.currentScript) == null ? void 0 : c.parentElement, a = e === t;
1059
1158
  if (r === e) {
1060
1159
  if (a)
1061
1160
  return;
@@ -1065,18 +1164,18 @@ function Jt(e, t, n) {
1065
1164
  return;
1066
1165
  }
1067
1166
  }
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, " ");
1167
+ const bn = (e) => e === "react" || e === "reactNative", Ue = bn(j), Ne = "builderIoAbTest", Oe = "builderIoRenderContent", gn = () => {
1168
+ const e = hn.toString().replace(/\s+/g, " "), t = fn.toString().replace(/\s+/g, " ");
1070
1169
  return `
1071
- window.${Ie} = ${e}
1072
- window.${xe} = ${t}
1170
+ window.${Ne} = ${e}
1171
+ window.${Oe} = ${t}
1073
1172
  `;
1074
- }, Qt = (e, t) => `
1075
- window.${Ie}("${t}",${JSON.stringify(e)}, ${Te})`, Zt = ({
1173
+ }, yn = (e, t) => `
1174
+ window.${Ne}("${t}",${JSON.stringify(e)}, ${Ue})`, kn = ({
1076
1175
  contentId: e,
1077
1176
  variationId: t
1078
1177
  }) => `
1079
- window.${xe}("${t}", "${e}", ${Te})`, en = {
1178
+ window.${Oe}("${t}", "${e}", ${Ue})`, vn = {
1080
1179
  name: "Core:Button",
1081
1180
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1082
1181
  defaultStyles: {
@@ -1108,7 +1207,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1108
1207
  }],
1109
1208
  static: !0,
1110
1209
  noWrap: !0
1111
- }, tn = {
1210
+ }, Sn = {
1112
1211
  name: "Columns",
1113
1212
  isRSC: !0,
1114
1213
  inputs: [{
@@ -1286,7 +1385,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1286
1385
  });
1287
1386
  }
1288
1387
  const n = e.get("columns");
1289
- 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();
1388
+ Array.isArray(n) && !!n.find((s) => s.get("width")) && (!!n.find((r) => !r.get("width")) || n.reduce((a, c) => a + c.get("width"), 0) !== 100) && t();
1290
1389
  }
1291
1390
  }, {
1292
1391
  name: "space",
@@ -1308,13 +1407,13 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1308
1407
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1309
1408
  advanced: !0
1310
1409
  }]
1311
- }, nn = {
1410
+ }, Cn = {
1312
1411
  name: "Fragment",
1313
1412
  static: !0,
1314
1413
  hidden: !0,
1315
1414
  canHaveChildren: !0,
1316
1415
  noWrap: !0
1317
- }, on = {
1416
+ }, wn = {
1318
1417
  name: "Image",
1319
1418
  static: !0,
1320
1419
  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",
@@ -1335,15 +1434,15 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1335
1434
  onChange: (e) => {
1336
1435
  e.delete("srcset"), e.delete("noWebp");
1337
1436
  function n(i, a = 6e4) {
1338
- return new Promise((l, c) => {
1437
+ return new Promise((c, l) => {
1339
1438
  const u = document.createElement("img");
1340
- let p = !1;
1439
+ let f = !1;
1341
1440
  u.onload = () => {
1342
- p = !0, l(u);
1343
- }, u.addEventListener("error", (h) => {
1344
- console.warn("Image load failed", h.error), c(h.error);
1441
+ f = !0, c(u);
1442
+ }, u.addEventListener("error", (m) => {
1443
+ console.warn("Image load failed", m.error), l(m.error);
1345
1444
  }), u.src = i, setTimeout(() => {
1346
- p || c(new Error("Image load timed out"));
1445
+ f || l(new Error("Image load timed out"));
1347
1446
  }, a);
1348
1447
  });
1349
1448
  }
@@ -1414,7 +1513,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1414
1513
  advanced: !0,
1415
1514
  defaultValue: 0.7041
1416
1515
  }]
1417
- }, sn = {
1516
+ }, $n = {
1418
1517
  name: "Core:Section",
1419
1518
  static: !0,
1420
1519
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1453,7 +1552,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1453
1552
  }
1454
1553
  }
1455
1554
  }]
1456
- }, rn = {
1555
+ }, Tn = {
1457
1556
  name: "Symbol",
1458
1557
  noWrap: !0,
1459
1558
  static: !0,
@@ -1486,7 +1585,7 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1486
1585
  hideFromUI: !0,
1487
1586
  type: "boolean"
1488
1587
  }]
1489
- }, an = {
1588
+ }, In = {
1490
1589
  name: "Text",
1491
1590
  static: !0,
1492
1591
  isRSC: !0,
@@ -1504,21 +1603,21 @@ const Yt = (e) => e === "react" || e === "reactNative", Te = Yt(A), Ie = "builde
1504
1603
  height: "auto",
1505
1604
  textAlign: "center"
1506
1605
  }
1507
- }, ln = b({
1606
+ }, Rn = y({
1508
1607
  name: "builder-text",
1509
1608
  props: ["text"]
1510
- }), cn = ["innerHTML"];
1511
- function dn(e, t, n, o, s, r) {
1609
+ }), xn = ["innerHTML"];
1610
+ function En(e, t, n, o, s, r) {
1512
1611
  var i;
1513
- return d(), m("div", {
1612
+ return d(), h("div", {
1514
1613
  class: "builder-text",
1515
1614
  innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
1516
1615
  style: {
1517
1616
  outline: "none"
1518
1617
  }
1519
- }, null, 8, cn);
1618
+ }, null, 8, xn);
1520
1619
  }
1521
- const un = /* @__PURE__ */ g(ln, [["render", dn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), pn = {
1620
+ const _n = /* @__PURE__ */ k(Rn, [["render", En], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/text/text.vue"]]), An = {
1522
1621
  name: "Video",
1523
1622
  canHaveChildren: !0,
1524
1623
  defaultStyles: {
@@ -1599,7 +1698,7 @@ const un = /* @__PURE__ */ g(ln, [["render", dn], ["__file", "/Users/samijaber/c
1599
1698
  defaultValue: !0,
1600
1699
  advanced: !0
1601
1700
  }]
1602
- }, mn = b({
1701
+ }, jn = y({
1603
1702
  name: "builder-video",
1604
1703
  props: [
1605
1704
  "autoPlay",
@@ -1641,10 +1740,10 @@ const un = /* @__PURE__ */ g(ln, [["render", dn], ["__file", "/Users/samijaber/c
1641
1740
  };
1642
1741
  }
1643
1742
  }
1644
- }), hn = ["preload", "src", "poster"];
1645
- function fn(e, t, n, o, s, r) {
1743
+ }), Pn = ["preload", "src", "poster"];
1744
+ function Bn(e, t, n, o, s, r) {
1646
1745
  var i;
1647
- return d(), m("video", $({
1746
+ return d(), h("video", I({
1648
1747
  preload: e.preload || "metadata",
1649
1748
  style: {
1650
1749
  width: "100%",
@@ -1656,9 +1755,9 @@ function fn(e, t, n, o, s, r) {
1656
1755
  },
1657
1756
  src: e.video || "no-src",
1658
1757
  poster: e.posterImage
1659
- }, e.spreadProps), null, 16, hn);
1758
+ }, e.spreadProps), null, 16, Pn);
1660
1759
  }
1661
- const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), gn = {
1760
+ const Vn = /* @__PURE__ */ k(jn, [["render", Bn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/video/video.vue"]]), Un = {
1662
1761
  name: "Embed",
1663
1762
  static: !0,
1664
1763
  inputs: [{
@@ -1683,7 +1782,7 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/Users/samijaber/c
1683
1782
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1684
1783
  hideFromUI: !0
1685
1784
  }]
1686
- }, yn = ["text/javascript", "application/javascript", "application/ecmascript"], kn = (e) => yn.includes(e.type), vn = b({
1785
+ }, Nn = ["text/javascript", "application/javascript", "application/ecmascript"], On = (e) => Nn.includes(e.type), Fn = y({
1687
1786
  name: "builder-embed",
1688
1787
  props: ["content"],
1689
1788
  data() {
@@ -1716,7 +1815,7 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/Users/samijaber/c
1716
1815
  this.scriptsInserted.push(n.src);
1717
1816
  const o = document.createElement("script");
1718
1817
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1719
- } else if (kn(n) && !this.scriptsRun.includes(n.innerText))
1818
+ } else if (On(n) && !this.scriptsRun.includes(n.innerText))
1720
1819
  try {
1721
1820
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1722
1821
  } catch (o) {
@@ -1725,15 +1824,15 @@ const bn = /* @__PURE__ */ g(mn, [["render", fn], ["__file", "/Users/samijaber/c
1725
1824
  }
1726
1825
  }
1727
1826
  }
1728
- }), Sn = ["innerHTML"];
1729
- function Cn(e, t, n, o, s, r) {
1730
- return d(), m("div", {
1827
+ }), Mn = ["innerHTML"];
1828
+ function Wn(e, t, n, o, s, r) {
1829
+ return d(), h("div", {
1731
1830
  class: "builder-embed",
1732
1831
  ref: "elem",
1733
1832
  innerHTML: e.content
1734
- }, null, 8, Sn);
1833
+ }, null, 8, Mn);
1735
1834
  }
1736
- const wn = /* @__PURE__ */ g(vn, [["render", Cn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), $n = b({
1835
+ const Ln = /* @__PURE__ */ k(Fn, [["render", Wn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/embed/embed.vue"]]), Kn = y({
1737
1836
  name: "builder-img-component",
1738
1837
  props: [
1739
1838
  "backgroundSize",
@@ -1744,11 +1843,11 @@ const wn = /* @__PURE__ */ g(vn, [["render", Cn], ["__file", "/Users/samijaber/c
1744
1843
  "attributes"
1745
1844
  ],
1746
1845
  data() {
1747
- return { isEditing: _, filterAttrs: K };
1846
+ return { isEditing: _, filterAttrs: q };
1748
1847
  }
1749
- }), Tn = ["alt", "src"];
1750
- function In(e, t, n, o, s, r) {
1751
- return d(), m("img", $({
1848
+ }), Hn = ["alt", "src"];
1849
+ function zn(e, t, n, o, s, r) {
1850
+ return d(), h("img", I({
1752
1851
  style: {
1753
1852
  objectFit: e.backgroundSize || "cover",
1754
1853
  objectPosition: e.backgroundPosition || "center"
@@ -1756,9 +1855,9 @@ function In(e, t, n, o, s, r) {
1756
1855
  key: e.isEditing() && e.imgSrc || "default-key",
1757
1856
  alt: e.altText,
1758
1857
  src: e.imgSrc || e.image
1759
- }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Tn);
1858
+ }, e.filterAttrs(e.attributes, "v-on:", !1), F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Hn);
1760
1859
  }
1761
- const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), Rn = {
1860
+ const Dn = /* @__PURE__ */ k(Kn, [["render", zn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/img/img.vue"]]), qn = {
1762
1861
  name: "Raw:Img",
1763
1862
  hideFromInsertMenu: !0,
1764
1863
  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 +1870,41 @@ const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/Users/samijaber/c
1771
1870
  }],
1772
1871
  noWrap: !0,
1773
1872
  static: !0
1774
- }, En = b({
1873
+ }, Gn = y({
1775
1874
  name: "builder-custom-code",
1776
1875
  props: ["replaceNodes", "code"],
1777
1876
  data() {
1778
1877
  return { scriptsInserted: [], scriptsRun: [] };
1779
1878
  },
1780
1879
  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
- }
1880
+ var t;
1881
+ if (!((t = this.$refs.elementRef) != null && t.getElementsByTagName) || typeof window > "u")
1882
+ return;
1883
+ const e = this.$refs.elementRef.getElementsByTagName("script");
1884
+ for (let n = 0; n < e.length; n++) {
1885
+ const o = e[n];
1886
+ if (o.src) {
1887
+ if (this.scriptsInserted.includes(o.src))
1888
+ continue;
1889
+ this.scriptsInserted.push(o.src);
1890
+ const s = document.createElement("script");
1891
+ s.async = !0, s.src = o.src, document.head.appendChild(s);
1892
+ } else if (!o.type || [
1893
+ "text/javascript",
1894
+ "application/javascript",
1895
+ "application/ecmascript"
1896
+ ].includes(o.type)) {
1897
+ if (this.scriptsRun.includes(o.innerText))
1898
+ continue;
1899
+ try {
1900
+ this.scriptsRun.push(o.innerText), new Function(o.innerText)();
1901
+ } catch (s) {
1902
+ console.warn("`CustomCode`: Error running script:", s);
1808
1903
  }
1809
1904
  }
1810
- },
1905
+ }
1906
+ },
1907
+ methods: {
1811
1908
  _classStringToObject(e) {
1812
1909
  const t = {};
1813
1910
  if (typeof e != "string")
@@ -1818,19 +1915,19 @@ const xn = /* @__PURE__ */ g($n, [["render", In], ["__file", "/Users/samijaber/c
1818
1915
  return t;
1819
1916
  }
1820
1917
  }
1821
- }), _n = ["innerHTML"];
1822
- function An(e, t, n, o, s, r) {
1823
- return d(), m("div", {
1824
- ref: "elem",
1825
- class: ye(
1918
+ }), Jn = ["innerHTML"];
1919
+ function Yn(e, t, n, o, s, r) {
1920
+ return d(), h("div", {
1921
+ ref: "elementRef",
1922
+ class: we(
1826
1923
  e._classStringToObject(
1827
1924
  "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
1828
1925
  )
1829
1926
  ),
1830
1927
  innerHTML: e.code
1831
- }, null, 10, _n);
1928
+ }, null, 10, Jn);
1832
1929
  }
1833
- const jn = /* @__PURE__ */ g(En, [["render", An], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Vn = {
1930
+ const Xn = /* @__PURE__ */ k(Gn, [["render", Yn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/custom-code/custom-code.vue"]]), Qn = {
1834
1931
  name: "Custom Code",
1835
1932
  static: !0,
1836
1933
  requiredPermissions: ["editCode"],
@@ -1852,55 +1949,55 @@ const jn = /* @__PURE__ */ g(En, [["render", An], ["__file", "/Users/samijaber/c
1852
1949
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1853
1950
  advanced: !0
1854
1951
  }]
1855
- }, ce = () => [{
1856
- component: Je,
1857
- ...en
1952
+ }, me = () => [{
1953
+ component: ct,
1954
+ ...vn
1858
1955
  }, {
1859
- component: jt,
1860
- ...tn
1956
+ component: Xt,
1957
+ ...Sn
1861
1958
  }, {
1862
- component: jn,
1863
- ...Vn
1959
+ component: Xn,
1960
+ ...Qn
1864
1961
  }, {
1865
- component: wn,
1866
- ...gn
1962
+ component: Ln,
1963
+ ...Un
1867
1964
  }, {
1868
- component: Pt,
1869
- ...nn
1965
+ component: en,
1966
+ ...Cn
1870
1967
  }, {
1871
- component: Kt,
1872
- ...on
1968
+ component: ln,
1969
+ ...wn
1873
1970
  }, {
1874
- component: xn,
1875
- ...Rn
1971
+ component: Dn,
1972
+ ...qn
1876
1973
  }, {
1877
- component: Dt,
1878
- ...sn
1974
+ component: pn,
1975
+ ...$n
1879
1976
  }, {
1880
- component: zo,
1881
- ...rn
1977
+ component: ds,
1978
+ ...Tn
1882
1979
  }, {
1883
- component: un,
1884
- ...an
1980
+ component: _n,
1981
+ ...In
1885
1982
  }, {
1886
- component: bn,
1887
- ...pn
1888
- }], de = [], Bn = (e) => ({
1983
+ component: Vn,
1984
+ ...An
1985
+ }], he = [], Zn = (e) => ({
1889
1986
  type: "builder.registerComponent",
1890
- data: J(e)
1891
- }), Pn = (e) => {
1987
+ data: ee(e)
1988
+ }), eo = (e) => {
1892
1989
  const t = e.toString().trim();
1893
1990
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1894
- }, Un = (e) => typeof e == "function" ? Pn(e) : O(e), J = ({
1991
+ }, to = (e) => typeof e == "function" ? eo(e) : N(e), ee = ({
1895
1992
  inputs: e,
1896
1993
  ...t
1897
1994
  }) => ({
1898
- ...O(t),
1995
+ ...N(t),
1899
1996
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
1900
1997
  ...o,
1901
- [s]: Un(r)
1998
+ [s]: to(r)
1902
1999
  }), {}))
1903
- }), On = (e) => {
2000
+ }), no = (e) => {
1904
2001
  var r, i;
1905
2002
  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;
1906
2003
  let s = "";
@@ -1915,37 +2012,37 @@ font-weight: 400;
1915
2012
  for (const a in e.files) {
1916
2013
  if (!(String(Number(a)) === a))
1917
2014
  continue;
1918
- const c = e.files[a];
1919
- c && c !== o && (s += `
2015
+ const l = e.files[a];
2016
+ l && l !== o && (s += `
1920
2017
  @font-face {
1921
2018
  font-family: "${t}";
1922
- src: url('${c}') format('woff2');
2019
+ src: url('${l}') format('woff2');
1923
2020
  font-display: fallback;
1924
2021
  font-weight: ${a};
1925
2022
  }
1926
2023
  `.trim());
1927
2024
  }
1928
2025
  return s;
1929
- }, Nn = ({
2026
+ }, oo = ({
1930
2027
  customFonts: e
1931
2028
  }) => {
1932
2029
  var t;
1933
- return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
1934
- }, Fn = ({
2030
+ return ((t = e == null ? void 0 : e.map((n) => no(n))) == null ? void 0 : t.join(" ")) || "";
2031
+ }, so = ({
1935
2032
  cssCode: e,
1936
2033
  contentId: t
1937
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Wn = b({
2034
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ro = y({
1938
2035
  name: "content-styles",
1939
- components: { InlinedStyles: H },
2036
+ components: { InlinedStyles: G },
1940
2037
  props: ["cssCode", "contentId", "customFonts"],
1941
2038
  data() {
1942
2039
  return {
1943
2040
  injectedStyles: `
1944
- ${Fn({
2041
+ ${so({
1945
2042
  cssCode: this.cssCode,
1946
2043
  contentId: this.contentId
1947
2044
  })}
1948
- ${Nn({
2045
+ ${oo({
1949
2046
  customFonts: this.customFonts
1950
2047
  })}
1951
2048
 
@@ -1965,20 +2062,20 @@ ${Nn({
1965
2062
  };
1966
2063
  }
1967
2064
  });
1968
- function Mn(e, t, n, o, s, r) {
1969
- const i = y("inlined-styles");
1970
- return d(), v(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
2065
+ function io(e, t, n, o, s, r) {
2066
+ const i = v("inlined-styles");
2067
+ return d(), C(i, { styles: e.injectedStyles }, null, 8, ["styles"]);
1971
2068
  }
1972
- const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), Kn = ({
2069
+ const ao = /* @__PURE__ */ k(ro, [["render", io], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/styles.vue"]]), co = ({
1973
2070
  content: e,
1974
2071
  data: t,
1975
2072
  locale: n
1976
2073
  }) => {
1977
2074
  var r, i, a;
1978
2075
  const o = {};
1979
- (i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((l) => {
1980
- var c;
1981
- 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);
2076
+ (i = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || i.forEach((c) => {
2077
+ var l;
2078
+ c.name && c.defaultValue !== void 0 && ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) && e.data.state[c.name] === void 0 && (o[c.name] = c.defaultValue);
1982
2079
  });
1983
2080
  const s = {
1984
2081
  ...(a = e == null ? void 0 : e.data) == null ? void 0 : a.state,
@@ -1991,7 +2088,7 @@ const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/Users/samijaber/c
1991
2088
  ...o,
1992
2089
  ...s
1993
2090
  };
1994
- }, Hn = ({
2091
+ }, lo = ({
1995
2092
  content: e,
1996
2093
  data: t
1997
2094
  }) => e ? {
@@ -2002,22 +2099,22 @@ const Ln = /* @__PURE__ */ g(Wn, [["render", Mn], ["__file", "/Users/samijaber/c
2002
2099
  },
2003
2100
  meta: e == null ? void 0 : e.meta
2004
2101
  } : void 0;
2005
- function zn() {
2102
+ function uo() {
2006
2103
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
2007
2104
  }
2008
- function Dn() {
2009
- const e = zn().fetch;
2105
+ function po() {
2106
+ const e = uo().fetch;
2010
2107
  if (typeof e > "u")
2011
2108
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
2012
2109
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
2013
2110
  return e;
2014
2111
  }
2015
- const Re = Dn(), qn = (e) => {
2112
+ const Fe = po(), mo = (e) => {
2016
2113
  if (e === "localhost" || e === "127.0.0.1")
2017
2114
  return e;
2018
2115
  const t = e.split(".");
2019
2116
  return t.length > 2 ? t.slice(1).join(".") : e;
2020
- }, Ee = ({
2117
+ }, Me = ({
2021
2118
  name: e,
2022
2119
  canTrack: t
2023
2120
  }) => {
@@ -2028,14 +2125,14 @@ const Re = Dn(), qn = (e) => {
2028
2125
  x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
2029
2126
  return;
2030
2127
  }
2031
- }, _e = async (e) => Ee(e), Gn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(E).join("; "), Jn = [["secure", ""], ["SameSite", "None"]], Yn = ({
2128
+ }, We = async (e) => Me(e), ho = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(A).join("; "), fo = [["secure", ""], ["SameSite", "None"]], bo = ({
2032
2129
  name: e,
2033
2130
  value: t,
2034
2131
  expires: n
2035
2132
  }) => {
2036
- const s = (C() ? location.protocol === "https:" : !0) ? Jn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", qn(window.location.hostname)], ...s];
2037
- return Gn(i);
2038
- }, Ae = async ({
2133
+ const s = ($() ? location.protocol === "https:" : !0) ? fo : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", mo(window.location.hostname)], ...s];
2134
+ return ho(i);
2135
+ }, Le = async ({
2039
2136
  name: e,
2040
2137
  value: t,
2041
2138
  expires: n,
@@ -2044,7 +2141,7 @@ const Re = Dn(), qn = (e) => {
2044
2141
  try {
2045
2142
  if (!o)
2046
2143
  return;
2047
- const s = Yn({
2144
+ const s = bo({
2048
2145
  name: e,
2049
2146
  value: t,
2050
2147
  expires: n
@@ -2054,88 +2151,88 @@ const Re = Dn(), qn = (e) => {
2054
2151
  x.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
2055
2152
  }
2056
2153
  };
2057
- function Xn() {
2154
+ function go() {
2058
2155
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2059
2156
  const t = Math.random() * 16 | 0;
2060
2157
  return (e == "x" ? t : t & 3 | 8).toString(16);
2061
2158
  });
2062
2159
  }
2063
- function je() {
2064
- return Xn().replace(/-/g, "");
2160
+ function Ke() {
2161
+ return go().replace(/-/g, "");
2065
2162
  }
2066
- const Ve = "builderSessionId", Qn = async ({
2163
+ const He = "builderSessionId", yo = async ({
2067
2164
  canTrack: e
2068
2165
  }) => {
2069
2166
  if (!e)
2070
2167
  return;
2071
- const t = await _e({
2072
- name: Ve,
2168
+ const t = await We({
2169
+ name: He,
2073
2170
  canTrack: e
2074
2171
  });
2075
- if (E(t))
2172
+ if (A(t))
2076
2173
  return t;
2077
2174
  {
2078
- const n = Zn();
2079
- return eo({
2175
+ const n = ko();
2176
+ return vo({
2080
2177
  id: n,
2081
2178
  canTrack: e
2082
2179
  }), n;
2083
2180
  }
2084
- }, Zn = () => je(), eo = ({
2181
+ }, ko = () => Ke(), vo = ({
2085
2182
  id: e,
2086
2183
  canTrack: t
2087
- }) => Ae({
2088
- name: Ve,
2184
+ }) => Le({
2185
+ name: He,
2089
2186
  value: e,
2090
2187
  canTrack: t
2091
- }), Be = () => C() && typeof localStorage < "u" ? localStorage : void 0, to = ({
2188
+ }), ze = () => $() && typeof localStorage < "u" ? localStorage : void 0, So = ({
2092
2189
  key: e,
2093
2190
  canTrack: t
2094
2191
  }) => {
2095
2192
  var n;
2096
2193
  try {
2097
- return t ? (n = Be()) == null ? void 0 : n.getItem(e) : void 0;
2194
+ return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
2098
2195
  } catch (o) {
2099
2196
  console.debug("[LocalStorage] GET error: ", o);
2100
2197
  return;
2101
2198
  }
2102
- }, no = ({
2199
+ }, Co = ({
2103
2200
  key: e,
2104
2201
  canTrack: t,
2105
2202
  value: n
2106
2203
  }) => {
2107
2204
  var o;
2108
2205
  try {
2109
- t && ((o = Be()) == null || o.setItem(e, n));
2206
+ t && ((o = ze()) == null || o.setItem(e, n));
2110
2207
  } catch (s) {
2111
2208
  console.debug("[LocalStorage] SET error: ", s);
2112
2209
  }
2113
- }, Pe = "builderVisitorId", oo = ({
2210
+ }, De = "builderVisitorId", wo = ({
2114
2211
  canTrack: e
2115
2212
  }) => {
2116
2213
  if (!e)
2117
2214
  return;
2118
- const t = to({
2119
- key: Pe,
2215
+ const t = So({
2216
+ key: De,
2120
2217
  canTrack: e
2121
2218
  });
2122
- if (E(t))
2219
+ if (A(t))
2123
2220
  return t;
2124
2221
  {
2125
- const n = so();
2126
- return ro({
2222
+ const n = $o();
2223
+ return To({
2127
2224
  id: n,
2128
2225
  canTrack: e
2129
2226
  }), n;
2130
2227
  }
2131
- }, so = () => je(), ro = ({
2228
+ }, $o = () => Ke(), To = ({
2132
2229
  id: e,
2133
2230
  canTrack: t
2134
- }) => no({
2135
- key: Pe,
2231
+ }) => Co({
2232
+ key: De,
2136
2233
  value: e,
2137
2234
  canTrack: t
2138
- }), io = async ({
2235
+ }), Io = async ({
2139
2236
  canTrack: e
2140
2237
  }) => {
2141
2238
  if (!e)
@@ -2143,16 +2240,16 @@ const Ve = "builderSessionId", Qn = async ({
2143
2240
  visitorId: void 0,
2144
2241
  sessionId: void 0
2145
2242
  };
2146
- const t = await Qn({
2243
+ const t = await yo({
2147
2244
  canTrack: e
2148
- }), n = oo({
2245
+ }), n = wo({
2149
2246
  canTrack: e
2150
2247
  });
2151
2248
  return {
2152
2249
  sessionId: t,
2153
2250
  visitorId: n
2154
2251
  };
2155
- }, ao = async ({
2252
+ }, Ro = async ({
2156
2253
  type: e,
2157
2254
  canTrack: t,
2158
2255
  apiKey: n,
@@ -2166,23 +2263,23 @@ const Ve = "builderSessionId", Qn = async ({
2166
2263
  url: location.href,
2167
2264
  ...o
2168
2265
  },
2169
- ...await io({
2266
+ ...await Io({
2170
2267
  canTrack: t
2171
2268
  }),
2172
- userAttributes: Se(),
2269
+ userAttributes: Ie(),
2173
2270
  ownerId: n
2174
2271
  }
2175
2272
  });
2176
- async function Y(e) {
2273
+ async function te(e) {
2177
2274
  if (!e.apiKey) {
2178
2275
  x.error("Missing API key for track call. Please provide your API key.");
2179
2276
  return;
2180
2277
  }
2181
- if (!!e.canTrack && !_() && !!(C() || A === "reactNative"))
2278
+ if (!!e.canTrack && !_() && !!($() || j === "reactNative"))
2182
2279
  return fetch("https://cdn.builder.io/api/v1/track", {
2183
2280
  method: "POST",
2184
2281
  body: JSON.stringify({
2185
- events: [await ao(e)]
2282
+ events: [await Ro(e)]
2186
2283
  }),
2187
2284
  headers: {
2188
2285
  "content-type": "application/json"
@@ -2192,13 +2289,13 @@ async function Y(e) {
2192
2289
  console.error("Failed to track: ", t);
2193
2290
  });
2194
2291
  }
2195
- const Go = (e) => Y({
2292
+ const hs = (e) => te({
2196
2293
  ...e,
2197
2294
  canTrack: !0
2198
- }), lo = "0.6.4", ue = {};
2199
- function co(e, t) {
2200
- let n = ue[e];
2201
- if (n || (n = ue[e] = []), n.push(t), C()) {
2295
+ }), xo = "0.7.1-0", fe = {};
2296
+ function Eo(e, t) {
2297
+ let n = fe[e];
2298
+ if (n || (n = fe[e] = []), n.push(t), $()) {
2202
2299
  const o = {
2203
2300
  type: "builder.register",
2204
2301
  data: {
@@ -2213,8 +2310,8 @@ function co(e, t) {
2213
2310
  }
2214
2311
  }
2215
2312
  }
2216
- const uo = () => {
2217
- co("insertMenu", {
2313
+ const _o = () => {
2314
+ Eo("insertMenu", {
2218
2315
  name: "_default",
2219
2316
  default: !0,
2220
2317
  items: [{
@@ -2236,14 +2333,14 @@ const uo = () => {
2236
2333
  }]
2237
2334
  });
2238
2335
  };
2239
- let pe = !1;
2240
- const po = (e = {}) => {
2336
+ let be = !1;
2337
+ const Ao = (e = {}) => {
2241
2338
  var t, n;
2242
- pe || (pe = !0, C() && ((t = window.parent) == null || t.postMessage({
2339
+ be || (be = !0, $() && ((t = window.parent) == null || t.postMessage({
2243
2340
  type: "builder.sdkInfo",
2244
2341
  data: {
2245
- target: A,
2246
- version: lo,
2342
+ target: j,
2343
+ version: xo,
2247
2344
  supportsPatchUpdates: !1,
2248
2345
  supportsAddBlockScoping: !0,
2249
2346
  supportsCustomBreakpoints: !0
@@ -2260,33 +2357,33 @@ const po = (e = {}) => {
2260
2357
  if (!!(o != null && o.type))
2261
2358
  switch (o.type) {
2262
2359
  case "builder.evaluate": {
2263
- const i = o.data.text, a = o.data.arguments || [], l = o.data.id, c = new Function(i);
2264
- let u, p = null;
2360
+ const i = o.data.text, a = o.data.arguments || [], c = o.data.id, l = new Function(i);
2361
+ let u, f = null;
2265
2362
  try {
2266
- u = c.apply(null, a);
2267
- } catch (h) {
2268
- p = h;
2363
+ u = l.apply(null, a);
2364
+ } catch (m) {
2365
+ f = m;
2269
2366
  }
2270
- p ? (s = window.parent) == null || s.postMessage({
2367
+ f ? (s = window.parent) == null || s.postMessage({
2271
2368
  type: "builder.evaluateError",
2272
2369
  data: {
2273
- id: l,
2274
- error: p.message
2370
+ id: c,
2371
+ error: f.message
2275
2372
  }
2276
- }, "*") : u && typeof u.then == "function" ? u.then((h) => {
2277
- var f;
2278
- (f = window.parent) == null || f.postMessage({
2373
+ }, "*") : u && typeof u.then == "function" ? u.then((m) => {
2374
+ var p;
2375
+ (p = window.parent) == null || p.postMessage({
2279
2376
  type: "builder.evaluateResult",
2280
2377
  data: {
2281
- id: l,
2282
- result: h
2378
+ id: c,
2379
+ result: m
2283
2380
  }
2284
2381
  }, "*");
2285
2382
  }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2286
2383
  type: "builder.evaluateResult",
2287
2384
  data: {
2288
2385
  result: u,
2289
- id: l
2386
+ id: c
2290
2387
  }
2291
2388
  }, "*");
2292
2389
  break;
@@ -2294,10 +2391,10 @@ const po = (e = {}) => {
2294
2391
  }
2295
2392
  })));
2296
2393
  };
2297
- function me(e) {
2394
+ function ge(e) {
2298
2395
  return Math.round(e * 1e3) / 1e3;
2299
2396
  }
2300
- const mo = (e, t, n = !0) => {
2397
+ const jo = (e, t, n = !0) => {
2301
2398
  if (!(e instanceof HTMLElement))
2302
2399
  return null;
2303
2400
  let o = n ? e : e.parentElement;
@@ -2308,52 +2405,52 @@ const mo = (e, t, n = !0) => {
2308
2405
  return o;
2309
2406
  } while (o = o.parentElement);
2310
2407
  return null;
2311
- }, ho = (e) => mo(e, (t) => {
2408
+ }, Po = (e) => jo(e, (t) => {
2312
2409
  const n = t.getAttribute("builder-id") || t.id;
2313
2410
  return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
2314
- }), he = ({
2411
+ }), ye = ({
2315
2412
  event: e,
2316
2413
  target: t
2317
2414
  }) => {
2318
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = me(o / n.width), i = me(s / n.height);
2415
+ 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
2416
  return {
2320
2417
  x: r,
2321
2418
  y: i
2322
2419
  };
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);
2420
+ }, Bo = (e) => {
2421
+ const t = e.target, n = t && Po(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2325
2422
  return {
2326
2423
  targetBuilderElement: o || void 0,
2327
2424
  metadata: {
2328
- targetOffset: t ? he({
2425
+ targetOffset: t ? ye({
2329
2426
  event: e,
2330
2427
  target: t
2331
2428
  }) : void 0,
2332
- builderTargetOffset: n ? he({
2429
+ builderTargetOffset: n ? ye({
2333
2430
  event: e,
2334
2431
  target: n
2335
2432
  }) : void 0,
2336
2433
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2337
2434
  }
2338
2435
  };
2339
- }, bo = "builder.tests", te = (e) => `${bo}.${e}`, go = ({
2436
+ }, Vo = "builder.tests", se = (e) => `${Vo}.${e}`, Uo = ({
2340
2437
  contentId: e
2341
- }) => _e({
2342
- name: te(e),
2438
+ }) => We({
2439
+ name: se(e),
2343
2440
  canTrack: !0
2344
- }), yo = ({
2441
+ }), No = ({
2345
2442
  contentId: e
2346
- }) => Ee({
2347
- name: te(e),
2443
+ }) => Me({
2444
+ name: se(e),
2348
2445
  canTrack: !0
2349
- }), ko = ({
2446
+ }), Oo = ({
2350
2447
  contentId: e,
2351
2448
  value: t
2352
- }) => Ae({
2353
- name: te(e),
2449
+ }) => Le({
2450
+ name: se(e),
2354
2451
  value: t,
2355
2452
  canTrack: !0
2356
- }), Ue = (e) => E(e.id) && E(e.variations) && Object.keys(e.variations).length > 0, vo = ({
2453
+ }), qe = (e) => A(e.id) && A(e.variations) && Object.keys(e.variations).length > 0, Fo = ({
2357
2454
  id: e,
2358
2455
  variations: t
2359
2456
  }) => {
@@ -2366,15 +2463,15 @@ const mo = (e, t, n = !0) => {
2366
2463
  return r;
2367
2464
  }
2368
2465
  return e;
2369
- }, Oe = (e) => {
2370
- const t = vo(e);
2371
- return ko({
2466
+ }, Ge = (e) => {
2467
+ const t = Fo(e);
2468
+ return Oo({
2372
2469
  contentId: e.id,
2373
2470
  value: t
2374
2471
  }).catch((n) => {
2375
2472
  x.error("could not store A/B test variation: ", n);
2376
2473
  }), t;
2377
- }, Ne = ({
2474
+ }, Je = ({
2378
2475
  item: e,
2379
2476
  testGroupId: t
2380
2477
  }) => {
@@ -2387,7 +2484,7 @@ const mo = (e, t, n = !0) => {
2387
2484
  testVariationId: n.id,
2388
2485
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
2389
2486
  };
2390
- }, So = ({
2487
+ }, Mo = ({
2391
2488
  item: e,
2392
2489
  canTrack: t
2393
2490
  }) => {
@@ -2395,14 +2492,14 @@ const mo = (e, t, n = !0) => {
2395
2492
  return e;
2396
2493
  if (!e)
2397
2494
  return;
2398
- if (!Ue(e))
2495
+ if (!qe(e))
2399
2496
  return e;
2400
- const n = yo({
2497
+ const n = No({
2401
2498
  contentId: e.id
2402
- }) || Oe({
2499
+ }) || Ge({
2403
2500
  variations: e.variations,
2404
2501
  id: e.id
2405
- }), o = Ne({
2502
+ }), o = Je({
2406
2503
  item: e,
2407
2504
  testGroupId: n
2408
2505
  });
@@ -2410,18 +2507,18 @@ const mo = (e, t, n = !0) => {
2410
2507
  ...e,
2411
2508
  ...o
2412
2509
  };
2413
- }, Co = async ({
2510
+ }, Wo = async ({
2414
2511
  item: e,
2415
2512
  canTrack: t
2416
2513
  }) => {
2417
- if (!t || !Ue(e))
2514
+ if (!t || !qe(e))
2418
2515
  return e;
2419
- const o = await go({
2516
+ const o = await Uo({
2420
2517
  contentId: e.id
2421
- }) || Oe({
2518
+ }) || Ge({
2422
2519
  variations: e.variations,
2423
2520
  id: e.id
2424
- }), s = Ne({
2521
+ }), s = Je({
2425
2522
  item: e,
2426
2523
  testGroupId: o
2427
2524
  });
@@ -2429,89 +2526,107 @@ const mo = (e, t, n = !0) => {
2429
2526
  ...e,
2430
2527
  ...s
2431
2528
  };
2432
- }, X = (e) => E(e) ? e : !0;
2433
- function Q(e, t = null, n = ".") {
2529
+ }, M = (e) => A(e) ? e : !0;
2530
+ function H(e, t = null, n = ".") {
2434
2531
  return Object.keys(e).reduce((o, s) => {
2435
2532
  const r = e[s], i = [t, s].filter(Boolean).join(n);
2436
2533
  return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
2437
2534
  ...o,
2438
- ...Q(r, i, n)
2535
+ ...H(r, i, n)
2439
2536
  } : {
2440
2537
  ...o,
2441
2538
  [i]: r
2442
2539
  };
2443
2540
  }, {});
2444
2541
  }
2445
- const fe = "builder.", wo = "options.", $o = (e) => {
2542
+ const ke = "builder.", Lo = "options.", Ko = (e) => {
2446
2543
  const t = {};
2447
2544
  return e.forEach((n, o) => {
2448
2545
  t[o] = n;
2449
2546
  }), t;
2450
- }, Fe = (e) => {
2547
+ }, Ye = (e) => {
2451
2548
  if (!e)
2452
2549
  return {};
2453
- const t = We(e), n = {};
2550
+ const t = Xe(e), n = {};
2454
2551
  return Object.keys(t).forEach((o) => {
2455
- if (o.startsWith(fe)) {
2456
- const s = o.replace(fe, "").replace(wo, "");
2552
+ if (o.startsWith(ke)) {
2553
+ const s = o.replace(ke, "").replace(Lo, "");
2457
2554
  n[s] = t[o];
2458
2555
  }
2459
2556
  }), n;
2460
- }, To = () => {
2461
- if (!C())
2557
+ }, Ho = () => {
2558
+ if (!$())
2462
2559
  return {};
2463
2560
  const e = new URLSearchParams(window.location.search);
2464
- return Fe(e);
2465
- }, We = (e) => e instanceof URLSearchParams ? $o(e) : e, Io = "v3", ne = (e) => {
2561
+ return Ye(e);
2562
+ }, Xe = (e) => e instanceof URLSearchParams ? Ko(e) : e, zo = "v3", ve = (e) => typeof e == "number" && !isNaN(e) && e >= 0, re = (e) => {
2563
+ let {
2564
+ noTraverse: t = !1
2565
+ } = e;
2466
2566
  const {
2467
- limit: t = 30,
2468
- userAttributes: n,
2469
- query: o,
2470
- noTraverse: s = !1,
2567
+ limit: n = 30,
2568
+ userAttributes: o,
2569
+ query: s,
2471
2570
  model: r,
2472
2571
  apiKey: i,
2473
2572
  includeRefs: a = !0,
2474
- enrich: l,
2475
- locale: c,
2476
- apiVersion: u = Io
2573
+ enrich: c,
2574
+ locale: l,
2575
+ apiVersion: u = zo,
2576
+ fields: f,
2577
+ omit: m,
2578
+ offset: p,
2579
+ cacheSeconds: b,
2580
+ staleCacheSeconds: S,
2581
+ sort: T,
2582
+ includeUnpublished: E
2477
2583
  } = e;
2478
2584
  if (!i)
2479
2585
  throw new Error("Missing API key");
2480
2586
  if (!["v2", "v3"].includes(u))
2481
2587
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${u}'`);
2482
- const p = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${t}&noTraverse=${s}&includeRefs=${a}${c ? `&locale=${c}` : ""}${l ? `&enrich=${l}` : ""}`), h = {
2483
- ...To(),
2484
- ...We(e.options || {})
2485
- }, f = Q(h);
2486
- for (const k in f)
2487
- p.searchParams.set(k, String(f[k]));
2488
- if (n && p.searchParams.set("userAttributes", JSON.stringify(n)), o) {
2489
- const k = Q({
2490
- query: o
2588
+ (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
2589
+ const g = new URL(`https://cdn.builder.io/api/${u}/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${a}${l ? `&locale=${l}` : ""}${c ? `&enrich=${c}` : ""}`);
2590
+ if (g.searchParams.set("omit", m || "meta.componentsUsed"), f && g.searchParams.set("fields", f), Number.isFinite(p) && p > -1 && g.searchParams.set("offset", String(Math.floor(p))), typeof E == "boolean" && g.searchParams.set("includeUnpublished", String(E)), b && ve(b) && g.searchParams.set("cacheSeconds", String(b)), S && ve(S) && g.searchParams.set("staleCacheSeconds", String(S)), T) {
2591
+ const P = H({
2592
+ sort: T
2491
2593
  });
2492
- for (const w in k)
2493
- p.searchParams.set(w, JSON.stringify(k[w]));
2594
+ for (const O in P)
2595
+ g.searchParams.set(O, JSON.stringify(P[O]));
2494
2596
  }
2495
- return p;
2496
- }, xo = (e) => "results" in e;
2497
- async function z(e) {
2498
- const t = await Me({
2597
+ const tt = {
2598
+ ...Ho(),
2599
+ ...Xe(e.options || {})
2600
+ }, ie = H(tt);
2601
+ for (const P in ie)
2602
+ g.searchParams.set(P, String(ie[P]));
2603
+ if (o && g.searchParams.set("userAttributes", JSON.stringify(o)), s) {
2604
+ const P = H({
2605
+ query: s
2606
+ });
2607
+ for (const O in P)
2608
+ g.searchParams.set(O, JSON.stringify(P[O]));
2609
+ }
2610
+ return g;
2611
+ }, Do = (e) => "results" in e;
2612
+ async function J(e) {
2613
+ const t = await Qe({
2499
2614
  ...e,
2500
2615
  limit: 1
2501
2616
  });
2502
2617
  return t && t.results[0] || null;
2503
2618
  }
2504
- const Jo = z, Ro = async (e) => {
2505
- const t = ne(e);
2506
- return await (await Re(t.href)).json();
2507
- }, Eo = async (e, t, n = ne(e)) => {
2508
- const o = X(e.canTrack);
2509
- if (n.search.includes("preview="), !o || !(C() || A === "reactNative"))
2619
+ const fs = J, qo = async (e) => {
2620
+ const t = re(e);
2621
+ return await (await Fe(t.href)).json();
2622
+ }, Go = async (e, t, n = re(e)) => {
2623
+ const o = M(e.canTrack);
2624
+ if (n.search.includes("preview="), !o || !($() || j === "reactNative"))
2510
2625
  return t;
2511
2626
  try {
2512
2627
  const s = [];
2513
2628
  for (const r of t.results)
2514
- s.push(await Co({
2629
+ s.push(await Wo({
2515
2630
  item: r,
2516
2631
  canTrack: o
2517
2632
  }));
@@ -2521,10 +2636,10 @@ const Jo = z, Ro = async (e) => {
2521
2636
  }
2522
2637
  return t;
2523
2638
  };
2524
- async function Me(e) {
2639
+ async function Qe(e) {
2525
2640
  try {
2526
- const t = ne(e), n = await Ro(e);
2527
- return xo(n) ? Eo(e, n) : (x.error("Error fetching data. ", {
2641
+ const t = re(e), n = await qo(e);
2642
+ return Do(n) ? Go(e, n) : (x.error("Error fetching data. ", {
2528
2643
  url: t,
2529
2644
  content: n,
2530
2645
  options: e
@@ -2533,90 +2648,66 @@ async function Me(e) {
2533
2648
  return x.error("Error fetching data. ", t), null;
2534
2649
  }
2535
2650
  }
2536
- const Yo = Me;
2537
- function _o() {
2538
- return !C() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2651
+ const bs = Qe;
2652
+ function Jo() {
2653
+ return !$() || _() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
2539
2654
  }
2540
- const Ao = b({
2655
+ const Yo = y({
2541
2656
  name: "enable-editor",
2542
2657
  props: [
2543
- "canTrack",
2544
2658
  "builderContextSignal",
2545
2659
  "model",
2546
2660
  "context",
2661
+ "canTrack",
2547
2662
  "apiKey",
2548
- "showContent",
2549
- "classNameProp",
2550
- "content",
2551
2663
  "locale",
2552
2664
  "includeRefs",
2553
- "enrich"
2665
+ "enrich",
2666
+ "content",
2667
+ "showContent",
2668
+ "classNameProp"
2554
2669
  ],
2555
2670
  data() {
2556
2671
  return {
2557
- canTrackToUse: E(this.canTrack) ? this.canTrack : !0,
2558
2672
  forceReRenderCount: 0,
2559
2673
  lastUpdated: 0,
2560
2674
  shouldSendResetCookie: !1,
2561
2675
  httpReqsData: {},
2562
2676
  clicked: !1,
2563
- builderContext: G
2677
+ builderContext: Z
2564
2678
  };
2565
2679
  },
2566
2680
  provide() {
2567
2681
  const e = this;
2568
2682
  return {
2569
- [G.key]: e.builderContextSignal
2683
+ [Z.key]: e.builderContextSignal
2570
2684
  };
2571
2685
  },
2572
2686
  mounted() {
2573
- var e, t;
2574
- if (this.apiKey || x.error(
2575
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2576
- ), C()) {
2577
- if (_() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), uo(), po({
2578
- ...this.locale ? {
2579
- locale: this.locale
2580
- } : {},
2581
- ...this.includeRefs ? {
2582
- includeRefs: this.includeRefs
2583
- } : {},
2584
- ...this.enrich ? {
2585
- enrich: this.enrich
2586
- } : {}
2587
- }), Object.values(
2588
- this.builderContextSignal.componentInfos
2589
- ).forEach((n) => {
2590
- var s;
2591
- const o = Bn(n);
2592
- (s = window.parent) == null || s.postMessage(o, "*");
2593
- }), window.addEventListener(
2594
- "builder:component:stateChangeListenerActivated",
2595
- this.emitStateUpdate
2596
- )), this.builderContextSignal.content) {
2597
- const n = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, o = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
2598
- Y({
2599
- type: "impression",
2600
- canTrack: this.canTrackToUse,
2601
- contentId: o,
2602
- apiKey: this.apiKey,
2603
- variationId: n !== o ? n : void 0
2604
- });
2605
- }
2606
- if (_o()) {
2607
- const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get(
2608
- `builder.preview.${o}`
2609
- ), r = n.get("apiKey") || n.get("builder.space");
2610
- o === this.model && r === this.apiKey && (!this.content || s === this.content.id) && z({
2611
- model: this.model,
2612
- apiKey: this.apiKey,
2613
- apiVersion: this.builderContextSignal.apiVersion
2614
- }).then((i) => {
2615
- i && this.mergeNewContent(i);
2616
- });
2687
+ (() => {
2688
+ var n, o;
2689
+ if ($()) {
2690
+ if (_() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2691
+ new CustomEvent("initeditingbldr")
2692
+ ), this.builderContextSignal.content && M(this.canTrack)) {
2693
+ const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
2694
+ te({
2695
+ type: "impression",
2696
+ canTrack: !0,
2697
+ contentId: i,
2698
+ apiKey: a,
2699
+ variationId: r !== i ? r : void 0
2700
+ });
2701
+ }
2702
+ Jo() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
2703
+ new CustomEvent("initpreviewingbldr")
2704
+ );
2617
2705
  }
2618
- this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2619
- }
2706
+ })(), (() => {
2707
+ this.apiKey || x.error(
2708
+ "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2709
+ ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
2710
+ })();
2620
2711
  },
2621
2712
  watch: {
2622
2713
  onUpdateHook0: {
@@ -2647,7 +2738,7 @@ const Ao = b({
2647
2738
  }
2648
2739
  },
2649
2740
  unmounted() {
2650
- C() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2741
+ $() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
2651
2742
  "builder:component:stateChangeListenerActivated",
2652
2743
  this.emitStateUpdate
2653
2744
  ));
@@ -2726,7 +2817,7 @@ const Ao = b({
2726
2817
  evaluateJsCode() {
2727
2818
  var t, n;
2728
2819
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
2729
- e && M({
2820
+ e && z({
2730
2821
  code: e,
2731
2822
  context: this.context || {},
2732
2823
  localState: void 0,
@@ -2738,13 +2829,13 @@ const Ao = b({
2738
2829
  var t, n;
2739
2830
  if (this.builderContextSignal.content) {
2740
2831
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, s = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
2741
- Y({
2832
+ te({
2742
2833
  type: "click",
2743
- canTrack: this.canTrackToUse,
2834
+ canTrack: M(this.canTrack),
2744
2835
  contentId: s,
2745
2836
  apiKey: this.apiKey,
2746
2837
  variationId: o !== s ? o : void 0,
2747
- ...fo(e),
2838
+ ...Bo(e),
2748
2839
  unique: !this.clicked
2749
2840
  });
2750
2841
  }
@@ -2753,7 +2844,7 @@ const Ao = b({
2753
2844
  evalExpression(e) {
2754
2845
  return e.replace(
2755
2846
  /{{([^}]+)}}/g,
2756
- (t, n) => M({
2847
+ (t, n) => z({
2757
2848
  code: n,
2758
2849
  context: this.context || {},
2759
2850
  localState: void 0,
@@ -2763,7 +2854,7 @@ const Ao = b({
2763
2854
  );
2764
2855
  },
2765
2856
  handleRequest({ url: e, key: t }) {
2766
- Re(e).then((n) => n.json()).then((n) => {
2857
+ Fe(e).then((n) => n.json()).then((n) => {
2767
2858
  var s, r;
2768
2859
  const o = {
2769
2860
  ...this.builderContextSignal.rootState,
@@ -2793,7 +2884,7 @@ const Ao = b({
2793
2884
  "builder:component:stateChange",
2794
2885
  {
2795
2886
  detail: {
2796
- state: O(this.builderContextSignal.rootState),
2887
+ state: N(this.builderContextSignal.rootState),
2797
2888
  ref: {
2798
2889
  name: this.model
2799
2890
  }
@@ -2802,6 +2893,40 @@ const Ao = b({
2802
2893
  )
2803
2894
  );
2804
2895
  },
2896
+ elementRef_onIniteditingbldr(e) {
2897
+ this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), _o(), Ao({
2898
+ ...this.locale ? {
2899
+ locale: this.locale
2900
+ } : {},
2901
+ ...this.includeRefs ? {
2902
+ includeRefs: this.includeRefs
2903
+ } : {},
2904
+ ...this.enrich ? {
2905
+ enrich: this.enrich
2906
+ } : {}
2907
+ }), Object.values(
2908
+ this.builderContextSignal.componentInfos
2909
+ ).forEach((t) => {
2910
+ var o;
2911
+ const n = Zn(t);
2912
+ (o = window.parent) == null || o.postMessage(n, "*");
2913
+ }), window.addEventListener(
2914
+ "builder:component:stateChangeListenerActivated",
2915
+ this.emitStateUpdate
2916
+ );
2917
+ },
2918
+ elementRef_onInitpreviewingbldr(e) {
2919
+ const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
2920
+ `builder.preview.${n}`
2921
+ ), s = t.get("apiKey") || t.get("builder.space");
2922
+ n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && J({
2923
+ model: this.model,
2924
+ apiKey: this.apiKey,
2925
+ apiVersion: this.builderContextSignal.apiVersion
2926
+ }).then((r) => {
2927
+ r && this.mergeNewContent(r);
2928
+ });
2929
+ },
2805
2930
  _classStringToObject(e) {
2806
2931
  const t = {};
2807
2932
  if (typeof e != "string")
@@ -2812,38 +2937,40 @@ const Ao = b({
2812
2937
  return t;
2813
2938
  }
2814
2939
  }
2815
- }), jo = ["builder-content-id", "builder-model"];
2816
- function Vo(e, t, n, o, s, r) {
2940
+ }), Xo = ["builder-content-id", "builder-model"];
2941
+ function Qo(e, t, n, o, s, r) {
2817
2942
  var i;
2818
- return e.builderContextSignal.content ? (d(), m("div", $({
2943
+ return e.builderContextSignal.content ? (d(), h("div", I({
2819
2944
  key: e.forceReRenderCount,
2820
2945
  ref: "elementRef",
2821
2946
  onClick: t[0] || (t[0] = (a) => e.onClick(a)),
2822
2947
  "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
2823
2948
  "builder-model": e.model,
2824
- class: e._classStringToObject(e.classNameProp)
2949
+ class: e._classStringToObject(e.classNameProp),
2950
+ onIniteditingbldr: t[1] || (t[1] = (a) => e.elementRef_onIniteditingbldr(a)),
2951
+ onInitpreviewingbldr: t[2] || (t[2] = (a) => e.elementRef_onInitpreviewingbldr(a))
2825
2952
  }, {
2826
2953
  ...e.showContent ? {} : {
2827
2954
  hidden: !0,
2828
2955
  "aria-hidden": !0
2829
2956
  }
2830
2957
  }), [
2831
- P(e.$slots, "default")
2832
- ], 16, jo)) : S("v-if", !0);
2958
+ U(e.$slots, "default")
2959
+ ], 16, Xo)) : w("v-if", !0);
2833
2960
  }
2834
- const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), Po = b({
2961
+ const Zo = /* @__PURE__ */ k(Yo, [["render", Qo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/components/enable-editor.vue"]]), es = y({
2835
2962
  render() {
2836
- return ge("script", { id: this.id, innerHTML: this.scriptStr });
2963
+ return Ce("script", { id: this.id, innerHTML: this.scriptStr });
2837
2964
  },
2838
2965
  name: "inlined-script",
2839
2966
  props: ["scriptStr", "id"]
2840
- }), Le = /* @__PURE__ */ g(Po, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), Uo = ze, Oo = b({
2967
+ }), Ze = /* @__PURE__ */ k(es, [["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/inlined-script.vue"]]), ts = ot, ns = y({
2841
2968
  name: "content-component",
2842
2969
  components: {
2843
- EnableEditor: Bo,
2844
- InlinedScript: Le,
2845
- ContentStyles: Ln,
2846
- Blocks: ee
2970
+ EnableEditor: Zo,
2971
+ InlinedScript: Ze,
2972
+ ContentStyles: ao,
2973
+ Blocks: oe
2847
2974
  },
2848
2975
  props: [
2849
2976
  "content",
@@ -2864,31 +2991,31 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
2864
2991
  data() {
2865
2992
  var e, t;
2866
2993
  return {
2867
- scriptStr: Zt({
2994
+ scriptStr: kn({
2868
2995
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
2869
2996
  contentId: (t = this.content) == null ? void 0 : t.id
2870
2997
  }),
2871
2998
  registeredComponents: [
2872
- ...ce(),
2873
- ...de,
2999
+ ...me(),
3000
+ ...he,
2874
3001
  ...this.customComponents || []
2875
3002
  ].reduce(
2876
3003
  (n, { component: o, ...s }) => ({
2877
3004
  ...n,
2878
3005
  [s.name]: {
2879
- component: Uo(o),
2880
- ...J(s)
3006
+ component: ts(o),
3007
+ ...ee(s)
2881
3008
  }
2882
3009
  }),
2883
3010
  {}
2884
3011
  ),
2885
3012
  builderContextSignal: {
2886
- content: Hn({
3013
+ content: lo({
2887
3014
  content: this.content,
2888
3015
  data: this.data
2889
3016
  }),
2890
3017
  localState: void 0,
2891
- rootState: Kn({
3018
+ rootState: co({
2892
3019
  content: this.content,
2893
3020
  data: this.data,
2894
3021
  locale: this.locale
@@ -2898,25 +3025,25 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
2898
3025
  apiKey: this.apiKey,
2899
3026
  apiVersion: this.apiVersion,
2900
3027
  componentInfos: [
2901
- ...ce(),
2902
- ...de,
3028
+ ...me(),
3029
+ ...he,
2903
3030
  ...this.customComponents || []
2904
3031
  ].reduce(
2905
3032
  (n, { component: o, ...s }) => ({
2906
3033
  ...n,
2907
- [s.name]: J(s)
3034
+ [s.name]: ee(s)
2908
3035
  }),
2909
3036
  {}
2910
3037
  ),
2911
3038
  inheritedStyles: {}
2912
3039
  },
2913
- TARGET: A
3040
+ TARGET: j
2914
3041
  };
2915
3042
  },
2916
3043
  provide() {
2917
3044
  const e = this;
2918
3045
  return {
2919
- [$e.key]: {
3046
+ [Ve.key]: {
2920
3047
  registeredComponents: e.registeredComponents
2921
3048
  }
2922
3049
  };
@@ -2927,9 +3054,9 @@ const Bo = /* @__PURE__ */ g(Ao, [["render", Vo], ["__file", "/Users/samijaber/c
2927
3054
  }
2928
3055
  }
2929
3056
  });
2930
- function No(e, t, n, o, s, r) {
2931
- const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), c = y("enable-editor");
2932
- return d(), v(c, $({
3057
+ function os(e, t, n, o, s, r) {
3058
+ const i = v("inlined-script"), a = v("content-styles"), c = v("blocks"), l = v("enable-editor");
3059
+ return d(), C(l, I({
2933
3060
  content: e.content,
2934
3061
  model: e.model,
2935
3062
  context: e.context,
@@ -2942,21 +3069,21 @@ function No(e, t, n, o, s, r) {
2942
3069
  showContent: e.showContent,
2943
3070
  builderContextSignal: e.builderContextSignal
2944
3071
  }, {}), {
2945
- default: Z(() => {
2946
- var u, p, h, f, k, w, R;
3072
+ default: ne(() => {
3073
+ var u, f, m, p, b, S, T;
2947
3074
  return [
2948
- e.isSsrAbTest ? (d(), v(i, {
3075
+ e.isSsrAbTest ? (d(), C(i, {
2949
3076
  key: 0,
2950
3077
  scriptStr: e.scriptStr
2951
- }, null, 8, ["scriptStr"])) : S("v-if", !0),
2952
- e.TARGET !== "reactNative" ? (d(), v(a, {
3078
+ }, null, 8, ["scriptStr"])) : w("v-if", !0),
3079
+ e.TARGET !== "reactNative" ? (d(), C(a, {
2953
3080
  key: 1,
2954
3081
  contentId: (u = e.builderContextSignal.content) == null ? void 0 : u.id,
2955
- cssCode: (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.cssCode,
2956
- customFonts: (k = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
2957
- }, null, 8, ["contentId", "cssCode", "customFonts"])) : S("v-if", !0),
2958
- V(l, {
2959
- blocks: (R = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : R.blocks,
3082
+ cssCode: (m = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : m.cssCode,
3083
+ customFonts: (b = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
3084
+ }, null, 8, ["contentId", "cssCode", "customFonts"])) : w("v-if", !0),
3085
+ V(c, {
3086
+ blocks: (T = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : T.blocks,
2960
3087
  context: e.builderContextSignal,
2961
3088
  registeredComponents: e.registeredComponents
2962
3089
  }, null, 8, ["blocks", "context", "registeredComponents"])
@@ -2965,12 +3092,12 @@ function No(e, t, n, o, s, r) {
2965
3092
  _: 1
2966
3093
  }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
2967
3094
  }
2968
- const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), Wo = b({
3095
+ const ss = /* @__PURE__ */ k(ns, [["render", os], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content/content.vue"]]), rs = y({
2969
3096
  name: "content-variants",
2970
3097
  components: {
2971
- InlinedScript: Le,
2972
- InlinedStyles: H,
2973
- ContentComponent: Fo
3098
+ InlinedScript: Ze,
3099
+ InlinedStyles: G,
3100
+ ContentComponent: ss
2974
3101
  },
2975
3102
  props: [
2976
3103
  "canTrack",
@@ -2988,13 +3115,13 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
2988
3115
  ],
2989
3116
  data() {
2990
3117
  return {
2991
- shouldRenderVariants: qt({
2992
- canTrack: X(this.canTrack),
3118
+ shouldRenderVariants: mn({
3119
+ canTrack: M(this.canTrack),
2993
3120
  content: this.content
2994
3121
  }),
2995
- getScriptString: Xt,
2996
- getVariants: W,
2997
- TARGET: A
3122
+ getScriptString: gn,
3123
+ getVariants: K,
3124
+ TARGET: j
2998
3125
  };
2999
3126
  },
3000
3127
  mounted() {
@@ -3003,8 +3130,8 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
3003
3130
  computed: {
3004
3131
  variantScriptStr() {
3005
3132
  var e;
3006
- return Qt(
3007
- W(this.content).map((t) => ({
3133
+ return yn(
3134
+ K(this.content).map((t) => ({
3008
3135
  id: t.testVariationId,
3009
3136
  testRatio: t.testRatio
3010
3137
  })),
@@ -3012,37 +3139,37 @@ const Fo = /* @__PURE__ */ g(Oo, [["render", No], ["__file", "/Users/samijaber/c
3012
3139
  );
3013
3140
  },
3014
3141
  hideVariantsStyleString() {
3015
- return W(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3142
+ return K(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
3016
3143
  },
3017
3144
  defaultContent() {
3018
3145
  var e;
3019
3146
  return this.shouldRenderVariants ? {
3020
3147
  ...this.content,
3021
3148
  testVariationId: (e = this.content) == null ? void 0 : e.id
3022
- } : So({
3149
+ } : Mo({
3023
3150
  item: this.content,
3024
- canTrack: X(this.canTrack)
3151
+ canTrack: M(this.canTrack)
3025
3152
  });
3026
3153
  }
3027
3154
  }
3028
3155
  });
3029
- function Mo(e, t, n, o, s, r) {
3030
- var c, u;
3031
- const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
3032
- return d(), m(T, null, [
3033
- !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), v(i, {
3156
+ function is(e, t, n, o, s, r) {
3157
+ var l, u;
3158
+ const i = v("inlined-script"), a = v("inlined-styles"), c = v("content-component");
3159
+ return d(), h(R, null, [
3160
+ !e.__isNestedRender && e.TARGET !== "reactNative" ? (d(), C(i, {
3034
3161
  key: 0,
3035
3162
  scriptStr: e.getScriptString()
3036
- }, null, 8, ["scriptStr"])) : S("v-if", !0),
3037
- e.shouldRenderVariants ? (d(), m(T, { key: 1 }, [
3163
+ }, null, 8, ["scriptStr"])) : w("v-if", !0),
3164
+ e.shouldRenderVariants ? (d(), h(R, { key: 1 }, [
3038
3165
  V(a, {
3039
- id: `variants-styles-${(c = e.content) == null ? void 0 : c.id}`,
3166
+ id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
3040
3167
  styles: e.hideVariantsStyleString
3041
3168
  }, null, 8, ["id", "styles"]),
3042
3169
  V(i, { scriptStr: e.variantScriptStr }, null, 8, ["scriptStr"]),
3043
- (d(!0), m(T, null, j(e.getVariants(e.content), (p, h) => (d(), v(l, {
3044
- key: p.testVariationId,
3045
- content: p,
3170
+ (d(!0), h(R, null, B(e.getVariants(e.content), (f, m) => (d(), C(c, {
3171
+ key: f.testVariationId,
3172
+ content: f,
3046
3173
  showContent: !1,
3047
3174
  classNameProp: void 0,
3048
3175
  model: e.model,
@@ -3057,8 +3184,8 @@ function Mo(e, t, n, o, s, r) {
3057
3184
  enrich: e.enrich,
3058
3185
  isSsrAbTest: e.shouldRenderVariants
3059
3186
  }, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"]))), 128))
3060
- ], 64)) : S("v-if", !0),
3061
- V(l, $({
3187
+ ], 64)) : w("v-if", !0),
3188
+ V(c, I({
3062
3189
  content: e.defaultContent,
3063
3190
  classNameProp: `variant-${(u = e.content) == null ? void 0 : u.id}`,
3064
3191
  showContent: !0,
@@ -3078,12 +3205,12 @@ function Mo(e, t, n, o, s, r) {
3078
3205
  }), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
3079
3206
  ], 64);
3080
3207
  }
3081
- const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), Lo = async ({
3208
+ const et = /* @__PURE__ */ k(rs, [["render", is], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/components/content-variants/content-variants.vue"]]), as = async ({
3082
3209
  builderContextValue: e,
3083
3210
  symbol: t
3084
3211
  }) => {
3085
3212
  if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
3086
- return z({
3213
+ return J({
3087
3214
  model: t.model,
3088
3215
  apiKey: e.apiKey,
3089
3216
  apiVersion: e.apiVersion,
@@ -3095,9 +3222,9 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
3095
3222
  }).catch((n) => {
3096
3223
  x.error("Could not fetch symbol content: ", n);
3097
3224
  });
3098
- }, Ko = b({
3225
+ }, cs = y({
3099
3226
  name: "builder-symbol",
3100
- components: { ContentVariants: Ke },
3227
+ components: { ContentVariants: et },
3101
3228
  props: [
3102
3229
  "js",
3103
3230
  "attributes",
@@ -3108,7 +3235,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
3108
3235
  ],
3109
3236
  data() {
3110
3237
  var e;
3111
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: K };
3238
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: q };
3112
3239
  },
3113
3240
  mounted() {
3114
3241
  this.setContent();
@@ -3139,7 +3266,7 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
3139
3266
  },
3140
3267
  methods: {
3141
3268
  setContent() {
3142
- this.contentToUse || Lo({
3269
+ this.contentToUse || as({
3143
3270
  symbol: this.symbol,
3144
3271
  builderContextValue: this.builderContext
3145
3272
  }).then((e) => {
@@ -3157,12 +3284,12 @@ const Ke = /* @__PURE__ */ g(Wo, [["render", Mo], ["__file", "/Users/samijaber/c
3157
3284
  }
3158
3285
  }
3159
3286
  });
3160
- function Ho(e, t, n, o, s, r) {
3161
- var a, l, c, u;
3162
- const i = y("content-variants");
3163
- return d(), m("div", $({
3287
+ function ls(e, t, n, o, s, r) {
3288
+ var a, c, l, u;
3289
+ const i = v("content-variants");
3290
+ return d(), h("div", I({
3164
3291
  class: e._classStringToObject(e.className)
3165
- }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3292
+ }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, F(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3166
3293
  V(i, {
3167
3294
  __isNestedRender: !0,
3168
3295
  apiVersion: e.builderContext.apiVersion,
@@ -3172,25 +3299,25 @@ function Ho(e, t, n, o, s, r) {
3172
3299
  data: {
3173
3300
  ...(a = e.symbol) == null ? void 0 : a.data,
3174
3301
  ...e.builderContext.localState,
3175
- ...(c = (l = e.contentToUse) == null ? void 0 : l.data) == null ? void 0 : c.state
3302
+ ...(l = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : l.state
3176
3303
  },
3177
3304
  model: (u = e.symbol) == null ? void 0 : u.model,
3178
3305
  content: e.contentToUse
3179
3306
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
3180
3307
  ], 16);
3181
3308
  }
3182
- const zo = /* @__PURE__ */ g(Ko, [["render", Ho], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), Xo = ee, Qo = Ke, be = {};
3183
- function Zo(e) {
3184
- if (C()) {
3185
- Object.assign(be, e);
3309
+ const ds = /* @__PURE__ */ k(cs, [["render", ls], ["__file", "/Users/samijaber/code/work/builder/packages/sdks/output/vue/vue3/src/blocks/symbol/symbol.vue"]]), gs = oe, ys = et, Se = {};
3310
+ function ks(e) {
3311
+ if ($()) {
3312
+ Object.assign(Se, e);
3186
3313
  const t = {
3187
3314
  type: "builder.settingsChange",
3188
- data: be
3315
+ data: Se
3189
3316
  };
3190
3317
  parent.postMessage(t, "*");
3191
3318
  }
3192
3319
  }
3193
- const es = async (e) => {
3320
+ const vs = async (e) => {
3194
3321
  var o, s, r;
3195
3322
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
3196
3323
  ...e,
@@ -3202,47 +3329,47 @@ const es = async (e) => {
3202
3329
  urlPath: t
3203
3330
  } : {}
3204
3331
  },
3205
- options: Fe(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
3332
+ options: Ye(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
3206
3333
  };
3207
3334
  return {
3208
3335
  apiKey: n.apiKey,
3209
3336
  model: n.model,
3210
- content: await z(n)
3337
+ content: await J(n)
3211
3338
  };
3212
3339
  };
3213
3340
  export {
3214
- G as B,
3215
- Ke as C,
3216
- Pt as F,
3217
- Kt as I,
3218
- Xo as R,
3219
- Dt as S,
3220
- A as T,
3221
- bn as V,
3222
- g as _,
3223
- we as a,
3224
- Ce as b,
3225
- rt as c,
3226
- ee as d,
3227
- M as e,
3228
- Qo as f,
3229
- Je as g,
3230
- jt as h,
3231
- zo as i,
3232
- un as j,
3341
+ Z as B,
3342
+ et as C,
3343
+ en as F,
3344
+ ln as I,
3345
+ gs as R,
3346
+ pn as S,
3347
+ j as T,
3348
+ Vn as V,
3349
+ k as _,
3350
+ Be as a,
3351
+ Pe as b,
3352
+ $t as c,
3353
+ oe as d,
3354
+ z as e,
3355
+ ys as f,
3356
+ ct as g,
3357
+ Xt as h,
3358
+ ds as i,
3359
+ _n as j,
3233
3360
  _ as k,
3234
- _o as l,
3235
- Bn as m,
3236
- Me as n,
3237
- z as o,
3238
- Yo as p,
3239
- Jo as q,
3240
- co as r,
3241
- Zo as s,
3242
- Eo as t,
3243
- Fe as u,
3244
- Go as v,
3245
- Uo as w,
3246
- es as x,
3247
- qo as y
3361
+ Jo as l,
3362
+ Zn as m,
3363
+ Qe as n,
3364
+ J as o,
3365
+ bs as p,
3366
+ fs as q,
3367
+ Eo as r,
3368
+ ks as s,
3369
+ Go as t,
3370
+ Ye as u,
3371
+ hs as v,
3372
+ ts as w,
3373
+ vs as x,
3374
+ ms as y
3248
3375
  };