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