@builder.io/sdk-vue 0.7.0 → 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 (246) hide show
  1. package/package.json +4 -2
  2. package/vue2/lib/browser/{block-134a618c.cjs → block-b12c2a9e.cjs} +2 -2
  3. package/vue2/lib/{node/block-169c0cf4.js → browser/block-d44d5b8a.js} +7 -7
  4. package/vue2/lib/{node/block-styles-d8839dd9.js → browser/block-styles-b2bcecac.js} +5 -5
  5. package/vue2/lib/{edge/block-styles-57f025e0.cjs → browser/block-styles-fad43b2e.cjs} +1 -1
  6. package/vue2/lib/browser/{block-wrapper-ad23d63e.js → block-wrapper-230a8abf.js} +5 -5
  7. package/vue2/lib/browser/{block-wrapper-54cd4f6c.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-671e376d.js → browser/blocks-wrapper-37d1fbf5.js} +1 -1
  11. package/vue2/lib/{edge/blocks-wrapper-be28f72a.cjs → browser/blocks-wrapper-5f4ff269.cjs} +1 -1
  12. package/vue2/lib/{edge/component-ref-65be9ea0.js → browser/component-ref-25028977.js} +6 -6
  13. package/vue2/lib/{edge/component-ref-276a92fb.cjs → browser/component-ref-8d39a7f4.cjs} +1 -1
  14. package/vue2/lib/browser/components/content/components/enable-editor.vue.d.ts +2 -0
  15. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  16. package/vue2/lib/browser/{content-91d3070e.cjs → content-e0b5be50.cjs} +1 -1
  17. package/vue2/lib/{edge/content-962ba49d.js → browser/content-e775e1b1.js} +62 -64
  18. package/vue2/lib/browser/{css-ccd5d9e3.js → css-41c2e31d.js} +1 -1
  19. package/vue2/lib/browser/{css-2c9ad067.cjs → css-c292bae4.cjs} +1 -1
  20. package/vue2/lib/browser/{enable-editor-d9f53d7d.js → enable-editor-836e8731.js} +107 -92
  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-7a5e8d90.cjs → get-block-actions-0e6055b8.cjs} +1 -1
  32. package/vue2/lib/{node/get-block-actions-e6c36554.js → browser/get-block-actions-eb308dbc.js} +2 -2
  33. package/vue2/lib/{node/get-block-properties-088a8d57.cjs → browser/get-block-properties-a17c5ae7.cjs} +1 -1
  34. package/vue2/lib/browser/{get-block-properties-fded8311.js → get-block-properties-f1d87f5b.js} +2 -2
  35. package/vue2/lib/browser/{get-processed-block-cb418829.cjs → get-processed-block-469b6014.cjs} +1 -1
  36. package/vue2/lib/browser/{get-processed-block-28afdbdd.js → get-processed-block-dac77b11.js} +2 -2
  37. package/vue2/lib/browser/index-0daf250a.cjs +32 -0
  38. package/vue2/lib/{node/index-8b428b10.js → browser/index-2c3e3aa0.js} +382 -367
  39. package/vue2/lib/browser/index.cjs +1 -1
  40. package/vue2/lib/browser/index.js +4 -4
  41. package/vue2/lib/browser/{inlined-script-36c7686b.cjs → inlined-script-17a3e298.cjs} +1 -1
  42. package/vue2/lib/{edge/inlined-script-45e42092.js → browser/inlined-script-a2ce7e25.js} +1 -1
  43. package/vue2/lib/{node/inlined-styles-f49a7f1a.cjs → browser/inlined-styles-02129d25.cjs} +1 -1
  44. package/vue2/lib/{node/inlined-styles-48c2284e.js → browser/inlined-styles-25974197.js} +1 -1
  45. package/vue2/lib/{node/interactive-element-2463f839.cjs → browser/interactive-element-31618273.cjs} +1 -1
  46. package/vue2/lib/{node/interactive-element-b479db6b.js → browser/interactive-element-95e7ed70.js} +5 -5
  47. package/vue2/lib/browser/{repeated-block-d5a07fb8.cjs → repeated-block-dc24507b.cjs} +1 -1
  48. package/vue2/lib/{node/repeated-block-284f31d8.js → browser/repeated-block-df873ea1.js} +2 -2
  49. package/vue2/lib/browser/style.css +1 -1
  50. package/vue2/lib/{node/styles-4803ecb4.js → browser/styles-c0e6af8c.js} +2 -2
  51. package/vue2/lib/{node/styles-f19bff73.cjs → browser/styles-eb6d5133.cjs} +2 -2
  52. package/vue2/lib/{node/block-134a618c.cjs → edge/block-6ae253d3.cjs} +2 -2
  53. package/vue2/lib/{browser/block-169c0cf4.js → edge/block-ee5e6b30.js} +7 -7
  54. package/vue2/lib/{node/block-styles-dd554acd.cjs → edge/block-styles-0db05976.cjs} +1 -1
  55. package/vue2/lib/edge/{block-styles-9d313184.js → block-styles-7ddd1160.js} +5 -5
  56. package/vue2/lib/{node/block-wrapper-ad23d63e.js → edge/block-wrapper-2516c8f0.js} +5 -5
  57. package/vue2/lib/edge/{block-wrapper-252f3467.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-051a6973.cjs → edge/blocks-wrapper-be115723.cjs} +1 -1
  61. package/vue2/lib/{browser/blocks-wrapper-ba3f831e.js → edge/blocks-wrapper-f30c1e2e.js} +1 -1
  62. package/vue2/lib/{node/component-ref-7c67cc85.js → edge/component-ref-7ca49e69.js} +6 -6
  63. package/vue2/lib/{node/component-ref-73bbe275.cjs → edge/component-ref-f5f09e76.cjs} +1 -1
  64. package/vue2/lib/edge/components/content/components/enable-editor.vue.d.ts +2 -0
  65. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  66. package/vue2/lib/{browser/content-c3064d9d.js → edge/content-32e8afd0.js} +62 -64
  67. package/vue2/lib/{node/content-91d3070e.cjs → edge/content-e389cb08.cjs} +1 -1
  68. package/vue2/lib/edge/{css-9d2e1bcb.js → css-905123d6.js} +1 -1
  69. package/vue2/lib/{node/css-2c9ad067.cjs → edge/css-db1fb81d.cjs} +1 -1
  70. package/vue2/lib/{node/enable-editor-d9f53d7d.js → edge/enable-editor-5339c72b.js} +107 -92
  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-becf2384.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-0ed7b9a3.cjs → get-block-actions-ac5cd221.cjs} +1 -1
  82. package/vue2/lib/{browser/get-block-actions-e6c36554.js → edge/get-block-actions-eb1322f1.js} +2 -2
  83. package/vue2/lib/{browser/get-block-properties-088a8d57.cjs → edge/get-block-properties-e45bd13c.cjs} +1 -1
  84. package/vue2/lib/edge/{get-block-properties-c460b7ad.js → get-block-properties-fc55bc69.js} +2 -2
  85. package/vue2/lib/edge/{get-processed-block-fe5c136a.cjs → get-processed-block-3a429bb7.cjs} +1 -1
  86. package/vue2/lib/edge/{get-processed-block-23aa8a9f.js → get-processed-block-9e3229f1.js} +2 -2
  87. package/vue2/lib/edge/{index-8d71df29.js → index-0840538e.js} +382 -367
  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 +4 -4
  91. package/vue2/lib/{node/inlined-script-de7385eb.js → edge/inlined-script-8ceab368.js} +1 -1
  92. package/vue2/lib/{node/inlined-script-36c7686b.cjs → edge/inlined-script-9311a8f4.cjs} +1 -1
  93. package/vue2/lib/edge/{inlined-styles-411ade32.js → inlined-styles-4826f427.js} +1 -1
  94. package/vue2/lib/{browser/inlined-styles-f49a7f1a.cjs → edge/inlined-styles-f0c5389f.cjs} +1 -1
  95. package/vue2/lib/{browser/interactive-element-2463f839.cjs → edge/interactive-element-20464160.cjs} +1 -1
  96. package/vue2/lib/{browser/interactive-element-b479db6b.js → edge/interactive-element-a4e1753a.js} +5 -5
  97. package/vue2/lib/{browser/repeated-block-284f31d8.js → edge/repeated-block-5ff563c4.js} +2 -2
  98. package/vue2/lib/edge/{repeated-block-8eefee0f.cjs → repeated-block-90ff0a8e.cjs} +1 -1
  99. package/vue2/lib/edge/style.css +1 -1
  100. package/vue2/lib/{browser/styles-4803ecb4.js → edge/styles-0821e7bd.js} +2 -2
  101. package/vue2/lib/{browser/styles-f19bff73.cjs → edge/styles-8e148f6b.cjs} +2 -2
  102. package/vue2/lib/{edge/block-7f6b0f80.cjs → node/block-46a1926a.cjs} +2 -2
  103. package/vue2/lib/{edge/block-04a014ef.js → node/block-a1bcdc0f.js} +7 -7
  104. package/vue2/lib/{browser/block-styles-dd554acd.cjs → node/block-styles-34b37b5f.cjs} +1 -1
  105. package/vue2/lib/{browser/block-styles-d8839dd9.js → node/block-styles-40dfb747.js} +5 -5
  106. package/vue2/lib/{edge/block-wrapper-e16ccd29.js → node/block-wrapper-02a13832.js} +5 -5
  107. package/vue2/lib/node/{block-wrapper-54cd4f6c.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-051a6973.cjs → blocks-wrapper-111adf2e.cjs} +1 -1
  111. package/vue2/lib/node/{blocks-wrapper-ba3f831e.js → blocks-wrapper-2cf7c243.js} +1 -1
  112. package/vue2/lib/{browser/component-ref-7c67cc85.js → node/component-ref-686b70a8.js} +6 -6
  113. package/vue2/lib/{browser/component-ref-73bbe275.cjs → node/component-ref-8664d291.cjs} +1 -1
  114. package/vue2/lib/node/components/content/components/enable-editor.vue.d.ts +2 -0
  115. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  116. package/vue2/lib/node/{content-c3064d9d.js → content-750b77c5.js} +62 -64
  117. package/vue2/lib/{edge/content-6d81d16f.cjs → node/content-804eb1c1.cjs} +1 -1
  118. package/vue2/lib/node/{css-ccd5d9e3.js → css-0997fa70.js} +1 -1
  119. package/vue2/lib/{edge/css-88f2410f.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-b6040943.js → node/enable-editor-991cf703.js} +107 -92
  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-7a5e8d90.cjs → get-block-actions-779fa30b.cjs} +1 -1
  132. package/vue2/lib/{edge/get-block-actions-046a80d0.js → node/get-block-actions-9781c926.js} +2 -2
  133. package/vue2/lib/{edge/get-block-properties-a9ab7e30.cjs → node/get-block-properties-090f2906.cjs} +1 -1
  134. package/vue2/lib/node/{get-block-properties-fded8311.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-8b428b10.js → node/index-fe4f9482.js} +382 -367
  139. package/vue2/lib/node/index.cjs +1 -1
  140. package/vue2/lib/node/index.js +4 -4
  141. package/vue2/lib/{edge/inlined-script-f370acdf.cjs → node/inlined-script-37af305a.cjs} +1 -1
  142. package/vue2/lib/{browser/inlined-script-de7385eb.js → node/inlined-script-9bf9544a.js} +1 -1
  143. package/vue2/lib/{browser/inlined-styles-48c2284e.js → node/inlined-styles-7a704065.js} +1 -1
  144. package/vue2/lib/{edge/inlined-styles-375c218f.cjs → node/inlined-styles-e812d54a.cjs} +1 -1
  145. package/vue2/lib/{edge/interactive-element-0e97e5ad.js → node/interactive-element-a9adc81f.js} +5 -5
  146. package/vue2/lib/{edge/interactive-element-92851fbe.cjs → node/interactive-element-e940e56b.cjs} +1 -1
  147. package/vue2/lib/{edge/repeated-block-c41268e9.js → node/repeated-block-acab5426.js} +2 -2
  148. package/vue2/lib/node/{repeated-block-d5a07fb8.cjs → repeated-block-ef2bf12f.cjs} +1 -1
  149. package/vue2/lib/node/style.css +1 -1
  150. package/vue2/lib/{edge/styles-633d9689.js → node/styles-34c3741a.js} +2 -2
  151. package/vue2/lib/{edge/styles-f2039a70.cjs → node/styles-93f84a1d.cjs} +2 -2
  152. package/vue2/package.json +1 -0
  153. package/vue3/lib/browser/{block-wrapper.c00ddfcb.cjs → block-wrapper.75f65d10.cjs} +1 -1
  154. package/vue3/lib/{node/block-wrapper.b3297452.js → browser/block-wrapper.eb12cfdc.js} +8 -8
  155. package/vue3/lib/browser/blocks/custom-code/custom-code.vue.d.ts +0 -1
  156. package/vue3/lib/browser/blocks/image/image.vue.d.ts +1 -1
  157. package/vue3/lib/{edge/component-ref.f5eef526.js → browser/component-ref.ce36b7ec.js} +17 -17
  158. package/vue3/lib/browser/component-ref.f391a5ee.cjs +1 -0
  159. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
  160. package/vue3/lib/browser/components/content/content.vue.d.ts +6 -6
  161. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  162. package/vue3/lib/browser/functions/evaluate/choose-eval.d.ts +6 -0
  163. package/vue3/lib/browser/functions/evaluate/evaluate.d.ts +1 -5
  164. package/vue3/lib/browser/functions/evaluate/helpers.d.ts +7 -1
  165. package/vue3/lib/browser/functions/evaluate/node-runtime/index.d.ts +1 -1
  166. package/vue3/lib/browser/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  167. package/vue3/lib/browser/functions/get-content/types.d.ts +94 -3
  168. package/vue3/lib/browser/functions/is-node-runtime.d.ts +4 -0
  169. package/vue3/lib/{edge/get-block-actions.f1dcfc47.js → browser/get-block-actions.7c580dff.js} +1 -1
  170. package/vue3/lib/{edge/get-block-actions.c5c7e487.cjs → browser/get-block-actions.e6dfffe3.cjs} +1 -1
  171. package/vue3/lib/{node/index.c51504ff.js → browser/index.188d2ee5.js} +826 -795
  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.2245fce7.cjs → repeated-block.2431c33d.cjs} +1 -1
  176. package/vue3/lib/{edge/repeated-block.e2eb73cd.js → browser/repeated-block.7a8762fc.js} +6 -6
  177. package/vue3/lib/edge/{block-wrapper.6e434dc7.cjs → block-wrapper.0868030f.cjs} +1 -1
  178. package/vue3/lib/{browser/block-wrapper.b3297452.js → edge/block-wrapper.cab4805b.js} +8 -8
  179. package/vue3/lib/edge/blocks/custom-code/custom-code.vue.d.ts +0 -1
  180. package/vue3/lib/edge/blocks/image/image.vue.d.ts +1 -1
  181. package/vue3/lib/{node/component-ref.88102d68.js → edge/component-ref.ace67608.js} +17 -17
  182. package/vue3/lib/edge/component-ref.ae7eec27.cjs +1 -0
  183. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
  184. package/vue3/lib/edge/components/content/content.vue.d.ts +6 -6
  185. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  186. package/vue3/lib/edge/functions/evaluate/choose-eval.d.ts +6 -0
  187. package/vue3/lib/edge/functions/evaluate/evaluate.d.ts +1 -5
  188. package/vue3/lib/edge/functions/evaluate/helpers.d.ts +7 -1
  189. package/vue3/lib/edge/functions/evaluate/node-runtime/index.d.ts +1 -1
  190. package/vue3/lib/edge/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  191. package/vue3/lib/edge/functions/get-content/types.d.ts +94 -3
  192. package/vue3/lib/edge/functions/is-node-runtime.d.ts +4 -0
  193. package/vue3/lib/{node/get-block-actions.703f8554.cjs → edge/get-block-actions.83fca99e.cjs} +1 -1
  194. package/vue3/lib/{browser/get-block-actions.1865148e.js → edge/get-block-actions.cfa7e625.js} +1 -1
  195. package/vue3/lib/edge/{index.f80ab661.js → index.28b94406.js} +1352 -1293
  196. package/vue3/lib/edge/index.8e0db5cb.cjs +89 -0
  197. package/vue3/lib/edge/index.cjs +1 -1
  198. package/vue3/lib/edge/index.js +1 -1
  199. package/vue3/lib/edge/{repeated-block.8292d33a.cjs → repeated-block.4515ae00.cjs} +1 -1
  200. package/vue3/lib/{browser/repeated-block.f6fdedb6.js → edge/repeated-block.4f0522f0.js} +6 -6
  201. package/vue3/lib/node/block-wrapper.4b048f0a.cjs +1 -0
  202. package/vue3/lib/{edge/block-wrapper.dad1bb39.js → node/block-wrapper.529d85d5.js} +7 -6
  203. package/vue3/lib/node/blocks/custom-code/custom-code.vue.d.ts +0 -1
  204. package/vue3/lib/node/blocks/image/image.vue.d.ts +1 -1
  205. package/vue3/lib/{browser/component-ref.88102d68.js → node/component-ref.3c9a0fb1.js} +18 -17
  206. package/vue3/lib/node/component-ref.c78bd861.cjs +1 -0
  207. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
  208. package/vue3/lib/node/components/content/content.vue.d.ts +6 -6
  209. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  210. package/vue3/lib/node/functions/evaluate/choose-eval.d.ts +6 -0
  211. package/vue3/lib/node/functions/evaluate/evaluate.d.ts +1 -5
  212. package/vue3/lib/node/functions/evaluate/helpers.d.ts +7 -1
  213. package/vue3/lib/node/functions/evaluate/node-runtime/index.d.ts +1 -1
  214. package/vue3/lib/node/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  215. package/vue3/lib/node/functions/get-content/types.d.ts +94 -3
  216. package/vue3/lib/node/functions/is-node-runtime.d.ts +4 -0
  217. package/vue3/lib/node/{get-block-actions.1865148e.js → get-block-actions.65678660.js} +1 -1
  218. package/vue3/lib/{browser/get-block-actions.703f8554.cjs → node/get-block-actions.977f70db.cjs} +1 -1
  219. package/vue3/lib/{browser/index.c51504ff.js → node/index.1a21f267.js} +977 -852
  220. package/vue3/lib/node/index.baa2a660.cjs +109 -0
  221. package/vue3/lib/node/index.cjs +1 -1
  222. package/vue3/lib/node/index.js +27 -26
  223. package/vue3/lib/node/{repeated-block.f6fdedb6.js → repeated-block.04f4039b.js} +7 -6
  224. package/vue3/lib/node/repeated-block.33e03818.cjs +1 -0
  225. package/vue3/package.json +1 -0
  226. package/vue2/lib/browser/enable-editor-f87e3e48.cjs +0 -1
  227. package/vue2/lib/browser/evaluate-043734e5.cjs +0 -1
  228. package/vue2/lib/browser/evaluate-b309ef11.js +0 -81
  229. package/vue2/lib/browser/index-7b952a40.cjs +0 -32
  230. package/vue2/lib/edge/enable-editor-617a4b09.cjs +0 -1
  231. package/vue2/lib/edge/evaluate-e31fc7a4.cjs +0 -21
  232. package/vue2/lib/edge/index-cb2684cd.cjs +0 -32
  233. package/vue2/lib/node/enable-editor-f87e3e48.cjs +0 -1
  234. package/vue2/lib/node/evaluate-043734e5.cjs +0 -1
  235. package/vue2/lib/node/evaluate-b309ef11.js +0 -81
  236. package/vue2/lib/node/get-processed-block-28afdbdd.js +0 -58
  237. package/vue2/lib/node/get-processed-block-cb418829.cjs +0 -1
  238. package/vue2/lib/node/index-7b952a40.cjs +0 -32
  239. package/vue3/lib/browser/component-ref.5446db23.cjs +0 -1
  240. package/vue3/lib/browser/index.403011b1.cjs +0 -69
  241. package/vue3/lib/edge/component-ref.94b009f1.cjs +0 -1
  242. package/vue3/lib/edge/index.61c09215.cjs +0 -89
  243. package/vue3/lib/node/block-wrapper.c00ddfcb.cjs +0 -1
  244. package/vue3/lib/node/component-ref.5446db23.cjs +0 -1
  245. package/vue3/lib/node/index.403011b1.cjs +0 -69
  246. package/vue3/lib/node/repeated-block.2245fce7.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as b } from "vue";
2
- function A(e = {}, t, n) {
1
+ import { defineComponent as g } from "vue";
2
+ function O(e = {}, t, n) {
3
3
  const o = {};
4
4
  for (const r in e) {
5
5
  if (!e[r] || n && !r.startsWith(t))
@@ -9,11 +9,11 @@ function A(e = {}, t, n) {
9
9
  }
10
10
  return o;
11
11
  }
12
- const st = b({
12
+ const ut = g({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
16
- return { filterAttrs: A };
16
+ return { filterAttrs: O };
17
17
  },
18
18
  methods: {
19
19
  _classStringToObject(e) {
@@ -27,14 +27,14 @@ const st = b({
27
27
  }
28
28
  }
29
29
  });
30
- function g(e, t, n, o, r, s, i, u) {
30
+ function y(e, t, n, o, r, s, i, u) {
31
31
  var a = typeof e == "function" ? e.options : e;
32
32
  t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), s && (a._scopeId = "data-v-" + s);
33
33
  var d;
34
- if (i ? (d = function(c) {
35
- c = c || // cached call
34
+ if (i ? (d = function(l) {
35
+ l = l || // cached call
36
36
  this.$vnode && this.$vnode.ssrContext || // stateful
37
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(i);
37
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !l && typeof __VUE_SSR_CONTEXT__ < "u" && (l = __VUE_SSR_CONTEXT__), r && r.call(this, l), l && l._registeredComponents && l._registeredComponents.add(i);
38
38
  }, a._ssrRegister = d) : r && (d = u ? function() {
39
39
  r.call(
40
40
  this,
@@ -43,33 +43,33 @@ function g(e, t, n, o, r, s, i, u) {
43
43
  } : r), d)
44
44
  if (a.functional) {
45
45
  a._injectStyles = d;
46
- var f = a.render;
47
- a.render = function(m, l) {
48
- return d.call(l), f(m, l);
46
+ var p = a.render;
47
+ a.render = function(f, m) {
48
+ return d.call(m), p(f, m);
49
49
  };
50
50
  } else {
51
- var p = a.beforeCreate;
52
- a.beforeCreate = p ? [].concat(p, d) : [d];
51
+ var _ = a.beforeCreate;
52
+ a.beforeCreate = _ ? [].concat(_, d) : [d];
53
53
  }
54
54
  return {
55
55
  exports: e,
56
56
  options: a
57
57
  };
58
58
  }
59
- var it = function() {
59
+ var dt = function() {
60
60
  var t = this, n = t._self._c;
61
61
  return t._self._setupProxy, t.link ? n("a", t._g(t._b({ attrs: { role: "button", href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0 } }, "a", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]) : n("button", t._g(t._b({ class: t._classStringToObject(t.attributes.class + " button-2fnk003dqad"), style: t.attributes.style }, "button", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._v(" " + t._s(t.text) + " ")]);
62
- }, at = [], ct = /* @__PURE__ */ g(
63
- st,
64
- it,
65
- at,
62
+ }, mt = [], ft = /* @__PURE__ */ y(
63
+ ut,
64
+ dt,
65
+ mt,
66
66
  !1,
67
67
  null,
68
68
  "d03c6eb1",
69
69
  null,
70
70
  null
71
71
  );
72
- const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
72
+ const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
73
73
  small: {
74
74
  min: 320,
75
75
  default: 321,
@@ -85,11 +85,11 @@ const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
85
85
  default: 991,
86
86
  max: 1200
87
87
  }
88
- }, rn = (e, t = U) => `@media (max-width: ${t[e].max}px)`, lt = ({
88
+ }, un = (e, t = K) => `@media (max-width: ${t[e].max}px)`, pt = ({
89
89
  small: e,
90
90
  medium: t
91
91
  }) => {
92
- const n = P(U);
92
+ const n = V(K);
93
93
  if (!e || !t)
94
94
  return n;
95
95
  const o = Math.floor(e / 2);
@@ -111,19 +111,19 @@ const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
111
111
  min: s,
112
112
  default: s + 1
113
113
  }, n;
114
- }, w = "vue2", ut = () => Promise.resolve().then(() => ee).then((e) => e.default).catch((e) => {
114
+ }, C = "vue2", ht = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
115
115
  throw console.error(
116
116
  "Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",
117
117
  e
118
118
  ), e;
119
- }), dt = () => import("./inlined-styles-48c2284e.js").then((e) => e.default).catch((e) => {
119
+ }), _t = () => import("./inlined-styles-25974197.js").then((e) => e.default).catch((e) => {
120
120
  throw console.error(
121
121
  "Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",
122
122
  e
123
123
  ), e;
124
- }), mt = b({
124
+ }), bt = g({
125
125
  name: "builder-columns",
126
- components: { "inlined-styles": dt, blocks: ut },
126
+ components: { "inlined-styles": _t, blocks: ht },
127
127
  props: [
128
128
  "js",
129
129
  "space",
@@ -140,7 +140,7 @@ const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
140
140
  cols: this.columns || [],
141
141
  stackAt: this.stackColumnsAt || "tablet",
142
142
  flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
143
- TARGET: w
143
+ TARGET: C
144
144
  };
145
145
  },
146
146
  computed: {
@@ -227,7 +227,7 @@ const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
227
227
  },
228
228
  getWidthForBreakpointSize(e) {
229
229
  var n, o;
230
- return lt(
230
+ return pt(
231
231
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
232
232
  )[e].max;
233
233
  },
@@ -242,7 +242,7 @@ const on = ct.exports, P = (e) => JSON.parse(JSON.stringify(e)), U = {
242
242
  }
243
243
  }
244
244
  });
245
- var ft = function() {
245
+ var gt = function() {
246
246
  var t = this, n = t._self._c;
247
247
  return t._self._setupProxy, n("div", t._b({ class: t._classStringToObject(
248
248
  `builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`
@@ -251,65 +251,65 @@ var ft = function() {
251
251
  flexGrow: "1"
252
252
  }, context: t.builderContext, registeredComponents: t.builderComponents, blocks: o.blocks } })], 1);
253
253
  })], 2);
254
- }, pt = [], ht = /* @__PURE__ */ g(
255
- mt,
256
- ft,
257
- pt,
254
+ }, yt = [], vt = /* @__PURE__ */ y(
255
+ bt,
256
+ gt,
257
+ yt,
258
258
  !1,
259
259
  null,
260
260
  "c700504e",
261
261
  null,
262
262
  null
263
263
  );
264
- const sn = ht.exports, _t = b({
264
+ const dn = vt.exports, St = g({
265
265
  name: "builder-fragment-component",
266
266
  props: []
267
267
  });
268
- var bt = function() {
268
+ var kt = function() {
269
269
  var t = this, n = t._self._c;
270
270
  return t._self._setupProxy, n("span", [t._t("default")], 2);
271
- }, gt = [], yt = /* @__PURE__ */ g(
272
- _t,
273
- bt,
274
- gt,
271
+ }, xt = [], wt = /* @__PURE__ */ y(
272
+ St,
273
+ kt,
274
+ xt,
275
275
  !1,
276
276
  null,
277
277
  null,
278
278
  null,
279
279
  null
280
280
  );
281
- const an = yt.exports;
282
- function B(e) {
281
+ const mn = wt.exports;
282
+ function F(e) {
283
283
  return e.replace(/http(s)?:/, "");
284
284
  }
285
- function vt(e = "", t, n) {
285
+ function Ct(e = "", t, n) {
286
286
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
287
287
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
288
288
  }
289
- function St(e, t) {
289
+ function $t(e, t) {
290
290
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
291
291
  return e;
292
292
  if (t === "master")
293
- return B(e);
293
+ return F(e);
294
294
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
295
295
  if (n) {
296
296
  const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
297
- return B(`${o[0]}_${s}${r}`);
297
+ return F(`${o[0]}_${s}${r}`);
298
298
  }
299
299
  return null;
300
300
  }
301
- function T(e) {
301
+ function P(e) {
302
302
  if (!e)
303
303
  return e;
304
304
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
305
305
  if (e.match(/builder\.io/)) {
306
306
  let n = e;
307
307
  const o = Number(e.split("?width=")[1]);
308
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${vt(e, "width", r)} ${r}w`).concat([n]).join(", ");
308
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${Ct(e, "width", r)} ${r}w`).concat([n]).join(", ");
309
309
  }
310
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [St(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
310
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
311
311
  }
312
- const kt = b({
312
+ const Tt = g({
313
313
  name: "builder-image",
314
314
  props: [
315
315
  "image",
@@ -335,10 +335,10 @@ const kt = b({
335
335
  return this.srcset;
336
336
  if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
337
337
  if (!this.srcset.includes(this.image.split("?")[0]))
338
- return console.debug("Removed given srcset"), T(t);
338
+ return console.debug("Removed given srcset"), P(t);
339
339
  } else if (this.image && !this.srcset)
340
- return T(t);
341
- return T(t);
340
+ return P(t);
341
+ return P(t);
342
342
  },
343
343
  webpSrcSet() {
344
344
  var e;
@@ -367,7 +367,7 @@ const kt = b({
367
367
  }
368
368
  }
369
369
  });
370
- var xt = function() {
370
+ var It = function() {
371
371
  var o, r, s, i;
372
372
  var t = this, n = t._self._c;
373
373
  return t._self._setupProxy, n("div", [n("picture", [t.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: t.webpSrcSet } })] : t._e(), n("img", { class: t._classStringToObject(
@@ -379,24 +379,24 @@ var xt = function() {
379
379
  }, attrs: { loading: "lazy", alt: t.altText, role: t.altText ? "presentation" : void 0, src: t.image, srcset: t.srcSetToUse, sizes: t.sizes } })], 2), t.aspectRatio && !((r = (o = t.builderBlock) == null ? void 0 : o.children) != null && r.length && t.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
380
380
  paddingTop: t.aspectRatio * 100 + "%"
381
381
  } })] : t._e(), (i = (s = t.builderBlock) == null ? void 0 : s.children) != null && i.length && t.fitContent ? [t._t("default")] : t._e(), !t.fitContent && t.$slots.default ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [t._t("default")], 2)] : t._e()], 2);
382
- }, wt = [], Ct = /* @__PURE__ */ g(
383
- kt,
384
- xt,
385
- wt,
382
+ }, Rt = [], Pt = /* @__PURE__ */ y(
383
+ Tt,
384
+ It,
385
+ Rt,
386
386
  !1,
387
387
  null,
388
- "29cdebee",
388
+ "aae97bc7",
389
389
  null,
390
390
  null
391
391
  );
392
- const cn = Ct.exports, $t = b({
392
+ const fn = Pt.exports, At = g({
393
393
  name: "builder-section-component",
394
394
  props: ["attributes", "maxWidth"],
395
395
  data() {
396
- return { filterAttrs: A };
396
+ return { filterAttrs: O };
397
397
  }
398
398
  });
399
- var Tt = function() {
399
+ var Ot = function() {
400
400
  var t = this, n = t._self._c;
401
401
  return t._self._setupProxy, n("section", t._g(t._b({ style: {
402
402
  width: "100%",
@@ -410,28 +410,28 @@ var Tt = function() {
410
410
  marginLeft: "auto",
411
411
  marginRight: "auto"
412
412
  } }, "section", t.filterAttrs(t.attributes, "v-on:", !1), !1), t.filterAttrs(t.attributes, "v-on:", !0)), [t._t("default")], 2);
413
- }, It = [], Rt = /* @__PURE__ */ g(
414
- $t,
415
- Tt,
416
- It,
413
+ }, Vt = [], Et = /* @__PURE__ */ y(
414
+ At,
415
+ Ot,
416
+ Vt,
417
417
  !1,
418
418
  null,
419
419
  null,
420
420
  null,
421
421
  null
422
422
  );
423
- const ln = Rt.exports, C = "[Builder.io]: ", v = {
424
- log: (...e) => console.log(C, ...e),
425
- error: (...e) => console.error(C, ...e),
426
- warn: (...e) => console.warn(C, ...e),
427
- debug: (...e) => console.debug(C, ...e)
428
- }, At = async ({
423
+ const pn = Et.exports, T = "[Builder.io]: ", x = {
424
+ log: (...e) => console.log(T, ...e),
425
+ error: (...e) => console.error(T, ...e),
426
+ warn: (...e) => console.warn(T, ...e),
427
+ debug: (...e) => console.debug(T, ...e)
428
+ }, Nt = async ({
429
429
  builderContextValue: e,
430
430
  symbol: t
431
431
  }) => {
432
432
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
433
433
  (e != null && e.apiKey))
434
- return E({
434
+ return B({
435
435
  model: t.model,
436
436
  apiKey: e.apiKey,
437
437
  apiVersion: e.apiVersion,
@@ -441,16 +441,16 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
441
441
  }
442
442
  }
443
443
  }).catch((n) => {
444
- v.error("Could not fetch symbol content: ", n);
444
+ x.error("Could not fetch symbol content: ", n);
445
445
  });
446
- }, Pt = () => Promise.resolve().then(() => $e).then((e) => e.default).catch((e) => {
446
+ }, Bt = () => Promise.resolve().then(() => Ae).then((e) => e.default).catch((e) => {
447
447
  throw console.error(
448
448
  "Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",
449
449
  e
450
450
  ), e;
451
- }), Vt = b({
451
+ }), jt = g({
452
452
  name: "builder-symbol",
453
- components: { "content-variants": Pt },
453
+ components: { "content-variants": Bt },
454
454
  props: [
455
455
  "js",
456
456
  "attributes",
@@ -461,7 +461,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
461
461
  ],
462
462
  data() {
463
463
  var e;
464
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: A };
464
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: O };
465
465
  },
466
466
  mounted() {
467
467
  this.setContent();
@@ -492,7 +492,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
492
492
  },
493
493
  methods: {
494
494
  setContent() {
495
- this.contentToUse || At({
495
+ this.contentToUse || Nt({
496
496
  symbol: this.symbol,
497
497
  builderContextValue: this.builderContext
498
498
  }).then((e) => {
@@ -510,7 +510,7 @@ const ln = Rt.exports, C = "[Builder.io]: ", v = {
510
510
  }
511
511
  }
512
512
  });
513
- var Ot = function() {
513
+ var Ft = function() {
514
514
  var o, r, s, i;
515
515
  var t = this, n = t._self._c;
516
516
  return t._self._setupProxy, n("div", t._g(t._b({ class: t._classStringToObject(t.className) }, "div", { ...t.filterAttrs(t.attributes, "v-on:", !1) }, !1), t.filterAttrs(t.attributes, "v-on:", !0)), [n("content-variants", { attrs: { __isNestedRender: !0, apiVersion: t.builderContext.apiVersion, apiKey: t.builderContext.apiKey, context: t.builderContext.context, customComponents: Object.values(t.builderComponents), data: {
@@ -518,37 +518,37 @@ var Ot = function() {
518
518
  ...t.builderContext.localState,
519
519
  ...(s = (r = t.contentToUse) == null ? void 0 : r.data) == null ? void 0 : s.state
520
520
  }, model: (i = t.symbol) == null ? void 0 : i.model, content: t.contentToUse } })], 1);
521
- }, Et = [], Bt = /* @__PURE__ */ g(
522
- Vt,
523
- Ot,
524
- Et,
521
+ }, Ut = [], Mt = /* @__PURE__ */ y(
522
+ jt,
523
+ Ft,
524
+ Ut,
525
525
  !1,
526
526
  null,
527
527
  null,
528
528
  null,
529
529
  null
530
530
  );
531
- const un = Bt.exports, jt = b({
531
+ const hn = Mt.exports, Lt = g({
532
532
  name: "builder-text",
533
533
  props: ["text"]
534
534
  });
535
- var Nt = function() {
535
+ var Wt = function() {
536
536
  var o;
537
537
  var t = this, n = t._self._c;
538
538
  return t._self._setupProxy, n("div", { staticClass: "builder-text", style: {
539
539
  outline: "none"
540
540
  }, domProps: { innerHTML: t._s(((o = t.text) == null ? void 0 : o.toString()) || "") } });
541
- }, Ft = [], Ut = /* @__PURE__ */ g(
542
- jt,
543
- Nt,
544
- Ft,
541
+ }, Kt = [], zt = /* @__PURE__ */ y(
542
+ Lt,
543
+ Wt,
544
+ Kt,
545
545
  !1,
546
546
  null,
547
547
  null,
548
548
  null,
549
549
  null
550
550
  );
551
- const dn = Ut.exports, Mt = b({
551
+ const _n = zt.exports, Gt = g({
552
552
  name: "builder-video",
553
553
  props: [
554
554
  "autoPlay",
@@ -591,7 +591,7 @@ const dn = Ut.exports, Mt = b({
591
591
  }
592
592
  }
593
593
  });
594
- var Lt = function() {
594
+ var Dt = function() {
595
595
  var o;
596
596
  var t = this, n = t._self._c;
597
597
  return t._self._setupProxy, n("video", t._b({ style: {
@@ -604,17 +604,17 @@ var Lt = function() {
604
604
  // not have the video overflow
605
605
  borderRadius: 1
606
606
  }, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
607
- }, Wt = [], Kt = /* @__PURE__ */ g(
608
- Mt,
609
- Lt,
610
- Wt,
607
+ }, Ht = [], Jt = /* @__PURE__ */ y(
608
+ Gt,
609
+ Dt,
610
+ Ht,
611
611
  !1,
612
612
  null,
613
613
  null,
614
614
  null,
615
615
  null
616
616
  );
617
- const mn = Kt.exports, zt = Symbol(), Gt = {
617
+ const bn = Jt.exports, Xt = Symbol(), qt = {
618
618
  Builder: {
619
619
  content: null,
620
620
  context: {},
@@ -627,31 +627,31 @@ const mn = Kt.exports, zt = Symbol(), Gt = {
627
627
  componentInfos: {},
628
628
  inheritedStyles: {}
629
629
  },
630
- key: zt
631
- }, Dt = Symbol(), Ht = {
630
+ key: Xt
631
+ }, Qt = Symbol(), Yt = {
632
632
  Components: { registeredComponents: {} },
633
- key: Dt
634
- }, Jt = () => import("./block-styles-d8839dd9.js").then((e) => e.default).catch((e) => {
633
+ key: Qt
634
+ }, Zt = () => import("./block-styles-b2bcecac.js").then((e) => e.default).catch((e) => {
635
635
  throw console.error(
636
636
  "Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
637
637
  e
638
638
  ), e;
639
- }), Xt = () => import("./block-169c0cf4.js").then((e) => e.default).catch((e) => {
639
+ }), te = () => import("./block-d44d5b8a.js").then((e) => e.default).catch((e) => {
640
640
  throw console.error(
641
641
  "Error while attempting to dynamically import component Block at ../block/block.vue",
642
642
  e
643
643
  ), e;
644
- }), qt = () => import("./blocks-wrapper-ba3f831e.js").then((e) => e.default).catch((e) => {
644
+ }), ee = () => import("./blocks-wrapper-37d1fbf5.js").then((e) => e.default).catch((e) => {
645
645
  throw console.error(
646
646
  "Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
647
647
  e
648
648
  ), e;
649
- }), Qt = b({
649
+ }), ne = g({
650
650
  name: "builder-blocks",
651
651
  components: {
652
- "blocks-wrapper": qt,
653
- block: Xt,
654
- "block-styles": Jt
652
+ "blocks-wrapper": ee,
653
+ block: te,
654
+ "block-styles": Zt
655
655
  },
656
656
  props: [
657
657
  "blocks",
@@ -662,72 +662,72 @@ const mn = Kt.exports, zt = Symbol(), Gt = {
662
662
  "registeredComponents"
663
663
  ],
664
664
  inject: {
665
- builderContext: Gt.key,
666
- componentsContext: Ht.key
665
+ builderContext: qt.key,
666
+ componentsContext: Yt.key
667
667
  }
668
668
  });
669
- var Yt = function() {
669
+ var oe = function() {
670
670
  var t = this, n = t._self._c;
671
671
  return t._self._setupProxy, n("blocks-wrapper", { attrs: { blocks: t.blocks, parent: t.parent, path: t.path, styleProp: t.styleProp } }, [t.blocks ? t._l(t.blocks, function(o, r) {
672
672
  return n("block", { key: "render-block-" + o.id, attrs: { block: o, context: t.context || t.builderContext, registeredComponents: t.registeredComponents || t.componentsContext.registeredComponents } });
673
673
  }) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
674
674
  return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
675
675
  }) : t._e()], 2);
676
- }, Zt = [], te = /* @__PURE__ */ g(
677
- Qt,
678
- Yt,
679
- Zt,
676
+ }, re = [], se = /* @__PURE__ */ y(
677
+ ne,
678
+ oe,
679
+ re,
680
680
  !1,
681
681
  null,
682
682
  null,
683
683
  null,
684
684
  null
685
685
  );
686
- const M = te.exports, ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
686
+ const z = se.exports, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
687
687
  __proto__: null,
688
- default: M
688
+ default: z
689
689
  }, Symbol.toStringTag, { value: "Module" }));
690
- function y() {
690
+ function v() {
691
691
  return typeof window < "u" && typeof document < "u";
692
692
  }
693
- const $ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
693
+ const I = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
694
694
  ...t,
695
695
  testVariationId: t.id,
696
696
  id: e == null ? void 0 : e.id
697
- })), ne = ({
697
+ })), ae = ({
698
698
  canTrack: e,
699
699
  content: t
700
- }) => !(!($(t).length > 0) || !e);
701
- function oe(e, t, n) {
700
+ }) => !(!(I(t).length > 0) || !e);
701
+ function ce(e, t, n) {
702
702
  var i;
703
703
  function o() {
704
- function u(l, h, S) {
705
- let k = "";
706
- if (S) {
707
- const _ = /* @__PURE__ */ new Date();
708
- _.setTime(_.getTime() + S * 24 * 60 * 60 * 1e3), k = "; expires=" + _.toUTCString();
704
+ function u(m, h, b) {
705
+ let S = "";
706
+ if (b) {
707
+ const c = /* @__PURE__ */ new Date();
708
+ c.setTime(c.getTime() + b * 24 * 60 * 60 * 1e3), S = "; expires=" + c.toUTCString();
709
709
  }
710
- document.cookie = l + "=" + (h || "") + k + "; path=/; Secure; SameSite=None";
710
+ document.cookie = m + "=" + (h || "") + S + "; path=/; Secure; SameSite=None";
711
711
  }
712
- function a(l) {
713
- const h = l + "=", S = document.cookie.split(";");
714
- for (let k = 0; k < S.length; k++) {
715
- let _ = S[k];
716
- for (; _.charAt(0) === " "; )
717
- _ = _.substring(1, _.length);
718
- if (_.indexOf(h) === 0)
719
- return _.substring(h.length, _.length);
712
+ function a(m) {
713
+ const h = m + "=", b = document.cookie.split(";");
714
+ for (let S = 0; S < b.length; S++) {
715
+ let c = b[S];
716
+ for (; c.charAt(0) === " "; )
717
+ c = c.substring(1, c.length);
718
+ if (c.indexOf(h) === 0)
719
+ return c.substring(h.length, c.length);
720
720
  }
721
721
  return null;
722
722
  }
723
- const d = `builder.tests.${e}`, f = a(d), p = t.map((l) => l.id).concat(e);
724
- if (f && p.includes(f))
725
- return f;
726
- let c = 0;
727
- const m = Math.random();
728
- for (let l = 0; l < t.length; l++) {
729
- const h = t[l], S = h.testRatio;
730
- if (c += S, m < c)
723
+ const d = `builder.tests.${e}`, p = a(d), _ = t.map((m) => m.id).concat(e);
724
+ if (p && _.includes(p))
725
+ return p;
726
+ let l = 0;
727
+ const f = Math.random();
728
+ for (let m = 0; m < t.length; m++) {
729
+ const h = t[m], b = h.testRatio;
730
+ if (l += b, f < l)
731
731
  return u(d, h.id), h.id;
732
732
  }
733
733
  return u(d, e), e;
@@ -745,18 +745,18 @@ function oe(e, t, n) {
745
745
  s.innerHTML = u;
746
746
  }
747
747
  }
748
- function re(e, t, n) {
748
+ function le(e, t, n) {
749
749
  var a;
750
750
  if (!navigator.cookieEnabled)
751
751
  return;
752
752
  function o(d) {
753
- const f = d + "=", p = document.cookie.split(";");
754
- for (let c = 0; c < p.length; c++) {
755
- let m = p[c];
756
- for (; m.charAt(0) === " "; )
757
- m = m.substring(1, m.length);
758
- if (m.indexOf(f) === 0)
759
- return m.substring(f.length, m.length);
753
+ const p = d + "=", _ = document.cookie.split(";");
754
+ for (let l = 0; l < _.length; l++) {
755
+ let f = _[l];
756
+ for (; f.charAt(0) === " "; )
757
+ f = f.substring(1, f.length);
758
+ if (f.indexOf(p) === 0)
759
+ return f.substring(p.length, f.length);
760
760
  }
761
761
  return null;
762
762
  }
@@ -770,23 +770,23 @@ function re(e, t, n) {
770
770
  return;
771
771
  }
772
772
  }
773
- const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderIoAbTest", K = "builderIoRenderContent", ie = () => {
774
- const e = oe.toString().replace(/\s+/g, " "), t = re.toString().replace(/\s+/g, " ");
773
+ const ue = (e) => e === "react" || e === "reactNative", G = ue(C), D = "builderIoAbTest", H = "builderIoRenderContent", de = () => {
774
+ const e = ce.toString().replace(/\s+/g, " "), t = le.toString().replace(/\s+/g, " ");
775
775
  return `
776
- window.${W} = ${e}
777
- window.${K} = ${t}
776
+ window.${D} = ${e}
777
+ window.${H} = ${t}
778
778
  `;
779
- }, ae = (e, t) => `
780
- window.${W}("${t}",${JSON.stringify(e)}, ${L})`, fn = ({
779
+ }, me = (e, t) => `
780
+ window.${D}("${t}",${JSON.stringify(e)}, ${G})`, gn = ({
781
781
  contentId: e,
782
782
  variationId: t
783
783
  }) => `
784
- window.${K}("${t}", "${e}", ${L})`, x = (e) => e != null, I = (e) => x(e) ? e : !0, ce = (e) => {
784
+ window.${H}("${t}", "${e}", ${G})`, w = (e) => e != null, A = (e) => w(e) ? e : !0, fe = (e) => {
785
785
  if (e === "localhost" || e === "127.0.0.1")
786
786
  return e;
787
787
  const t = e.split(".");
788
788
  return t.length > 2 ? t.slice(1).join(".") : e;
789
- }, z = ({
789
+ }, J = ({
790
790
  name: e,
791
791
  canTrack: t
792
792
  }) => {
@@ -794,17 +794,17 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
794
794
  try {
795
795
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
796
796
  } catch (o) {
797
- v.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
797
+ x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
798
798
  return;
799
799
  }
800
- }, G = async (e) => z(e), le = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(x).join("; "), ue = [["secure", ""], ["SameSite", "None"]], de = ({
800
+ }, X = async (e) => J(e), pe = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(w).join("; "), he = [["secure", ""], ["SameSite", "None"]], _e = ({
801
801
  name: e,
802
802
  value: t,
803
803
  expires: n
804
804
  }) => {
805
- const r = (y() ? location.protocol === "https:" : !0) ? ue : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", ce(window.location.hostname)], ...r];
806
- return le(i);
807
- }, D = async ({
805
+ const r = (v() ? location.protocol === "https:" : !0) ? he : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", fe(window.location.hostname)], ...r];
806
+ return pe(i);
807
+ }, q = async ({
808
808
  name: e,
809
809
  value: t,
810
810
  expires: n,
@@ -813,33 +813,33 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
813
813
  try {
814
814
  if (!o)
815
815
  return;
816
- const r = de({
816
+ const r = _e({
817
817
  name: e,
818
818
  value: t,
819
819
  expires: n
820
820
  });
821
821
  document.cookie = r;
822
822
  } catch (r) {
823
- v.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
823
+ x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
824
824
  }
825
- }, me = "builder.tests", V = (e) => `${me}.${e}`, fe = ({
825
+ }, be = "builder.tests", E = (e) => `${be}.${e}`, ge = ({
826
826
  contentId: e
827
- }) => G({
828
- name: V(e),
827
+ }) => X({
828
+ name: E(e),
829
829
  canTrack: !0
830
- }), pe = ({
830
+ }), ye = ({
831
831
  contentId: e
832
- }) => z({
833
- name: V(e),
832
+ }) => J({
833
+ name: E(e),
834
834
  canTrack: !0
835
- }), he = ({
835
+ }), ve = ({
836
836
  contentId: e,
837
837
  value: t
838
- }) => D({
839
- name: V(e),
838
+ }) => q({
839
+ name: E(e),
840
840
  value: t,
841
841
  canTrack: !0
842
- }), H = (e) => x(e.id) && x(e.variations) && Object.keys(e.variations).length > 0, _e = ({
842
+ }), Q = (e) => w(e.id) && w(e.variations) && Object.keys(e.variations).length > 0, Se = ({
843
843
  id: e,
844
844
  variations: t
845
845
  }) => {
@@ -852,15 +852,15 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
852
852
  return s;
853
853
  }
854
854
  return e;
855
- }, J = (e) => {
856
- const t = _e(e);
857
- return he({
855
+ }, Y = (e) => {
856
+ const t = Se(e);
857
+ return ve({
858
858
  contentId: e.id,
859
859
  value: t
860
860
  }).catch((n) => {
861
- v.error("could not store A/B test variation: ", n);
861
+ x.error("could not store A/B test variation: ", n);
862
862
  }), t;
863
- }, X = ({
863
+ }, Z = ({
864
864
  item: e,
865
865
  testGroupId: t
866
866
  }) => {
@@ -874,7 +874,7 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
874
874
  testVariationId: n.id,
875
875
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
876
876
  };
877
- }, be = ({
877
+ }, ke = ({
878
878
  item: e,
879
879
  canTrack: t
880
880
  }) => {
@@ -882,14 +882,14 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
882
882
  return e;
883
883
  if (!e)
884
884
  return;
885
- if (!H(e))
885
+ if (!Q(e))
886
886
  return e;
887
- const n = pe({
887
+ const n = ye({
888
888
  contentId: e.id
889
- }) || J({
889
+ }) || Y({
890
890
  variations: e.variations,
891
891
  id: e.id
892
- }), o = X({
892
+ }), o = Z({
893
893
  item: e,
894
894
  testGroupId: n
895
895
  });
@@ -897,18 +897,18 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
897
897
  ...e,
898
898
  ...o
899
899
  };
900
- }, ge = async ({
900
+ }, xe = async ({
901
901
  item: e,
902
902
  canTrack: t
903
903
  }) => {
904
- if (!t || !H(e))
904
+ if (!t || !Q(e))
905
905
  return e;
906
- const o = await fe({
906
+ const o = await ge({
907
907
  contentId: e.id
908
- }) || J({
908
+ }) || Y({
909
909
  variations: e.variations,
910
910
  id: e.id
911
- }), r = X({
911
+ }), r = Z({
912
912
  item: e,
913
913
  testGroupId: o
914
914
  });
@@ -916,27 +916,27 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
916
916
  ...e,
917
917
  ...r
918
918
  };
919
- }, ye = () => import("./content-c3064d9d.js").then((e) => e.default).catch((e) => {
919
+ }, we = () => import("./content-e775e1b1.js").then((e) => e.default).catch((e) => {
920
920
  throw console.error(
921
921
  "Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
922
922
  e
923
923
  ), e;
924
- }), ve = () => import("./inlined-styles-48c2284e.js").then((e) => e.default).catch((e) => {
924
+ }), Ce = () => import("./inlined-styles-25974197.js").then((e) => e.default).catch((e) => {
925
925
  throw console.error(
926
926
  "Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
927
927
  e
928
928
  ), e;
929
- }), Se = () => import("./inlined-script-de7385eb.js").then((e) => e.default).catch((e) => {
929
+ }), $e = () => import("./inlined-script-a2ce7e25.js").then((e) => e.default).catch((e) => {
930
930
  throw console.error(
931
931
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
932
932
  e
933
933
  ), e;
934
- }), ke = b({
934
+ }), Te = g({
935
935
  name: "content-variants",
936
936
  components: {
937
- "inlined-script": Se,
938
- "inlined-styles": ve,
939
- "content-component": ye
937
+ "inlined-script": $e,
938
+ "inlined-styles": Ce,
939
+ "content-component": we
940
940
  },
941
941
  props: [
942
942
  "canTrack",
@@ -954,13 +954,13 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
954
954
  ],
955
955
  data() {
956
956
  return {
957
- shouldRenderVariants: ne({
958
- canTrack: I(this.canTrack),
957
+ shouldRenderVariants: ae({
958
+ canTrack: A(this.canTrack),
959
959
  content: this.content
960
960
  }),
961
- getScriptString: ie,
962
- getVariants: $,
963
- TARGET: w
961
+ getScriptString: de,
962
+ getVariants: I,
963
+ TARGET: C
964
964
  };
965
965
  },
966
966
  mounted() {
@@ -969,8 +969,8 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
969
969
  computed: {
970
970
  variantScriptStr() {
971
971
  var e;
972
- return ae(
973
- $(this.content).map((t) => ({
972
+ return me(
973
+ I(this.content).map((t) => ({
974
974
  id: t.testVariationId,
975
975
  testRatio: t.testRatio
976
976
  })),
@@ -978,21 +978,21 @@ const se = (e) => e === "react" || e === "reactNative", L = se(w), W = "builderI
978
978
  );
979
979
  },
980
980
  hideVariantsStyleString() {
981
- return $(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
981
+ return I(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
982
982
  },
983
983
  defaultContent() {
984
984
  var e;
985
985
  return this.shouldRenderVariants ? {
986
986
  ...this.content,
987
987
  testVariationId: (e = this.content) == null ? void 0 : e.id
988
- } : be({
988
+ } : ke({
989
989
  item: this.content,
990
- canTrack: I(this.canTrack)
990
+ canTrack: A(this.canTrack)
991
991
  });
992
992
  }
993
993
  }
994
994
  });
995
- var xe = function() {
995
+ var Ie = function() {
996
996
  var o, r;
997
997
  var t = this, n = t._self._c;
998
998
  return t._self._setupProxy, n("div", [!t.__isNestedRender && t.TARGET !== "reactNative" ? [n("inlined-script", { attrs: { scriptStr: t.getScriptString() } })] : t._e(), t.shouldRenderVariants ? [n("inlined-styles", { attrs: { id: `variants-styles-${(o = t.content) == null ? void 0 : o.id}`, styles: t.hideVariantsStyleString } }), n("inlined-script", { attrs: { scriptStr: t.variantScriptStr } }), t._l(t.getVariants(t.content), function(s, i) {
@@ -1000,48 +1000,48 @@ var xe = function() {
1000
1000
  })] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, classNameProp: `variant-${(r = t.content) == null ? void 0 : r.id}`, showContent: !0, model: t.model, data: t.data, context: t.context, apiKey: t.apiKey, apiVersion: t.apiVersion, customComponents: t.customComponents, canTrack: t.canTrack, locale: t.locale, includeRefs: t.includeRefs, enrich: t.enrich, isSsrAbTest: t.shouldRenderVariants } }, "content-component", {
1001
1001
  key: t.shouldRenderVariants.toString()
1002
1002
  }, !1))], 2);
1003
- }, we = [], Ce = /* @__PURE__ */ g(
1004
- ke,
1005
- xe,
1006
- we,
1003
+ }, Re = [], Pe = /* @__PURE__ */ y(
1004
+ Te,
1005
+ Ie,
1006
+ Re,
1007
1007
  !1,
1008
1008
  null,
1009
1009
  null,
1010
1010
  null,
1011
1011
  null
1012
1012
  );
1013
- const q = Ce.exports, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1013
+ const tt = Pe.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1014
1014
  __proto__: null,
1015
- default: q
1016
- }, Symbol.toStringTag, { value: "Module" })), pn = M, hn = q;
1017
- function Te() {
1018
- return y() && window.self !== window.top;
1015
+ default: tt
1016
+ }, Symbol.toStringTag, { value: "Module" })), yn = z, vn = tt;
1017
+ function Oe() {
1018
+ return v() && window.self !== window.top;
1019
1019
  }
1020
- function Q() {
1021
- return Te() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1020
+ function et() {
1021
+ return Oe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1022
1022
  }
1023
- function _n() {
1024
- return !y() || Q() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1023
+ function Sn() {
1024
+ return !v() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1025
1025
  }
1026
- const bn = [], gn = (e) => ({
1026
+ const kn = [], xn = (e) => ({
1027
1027
  type: "builder.registerComponent",
1028
- data: Ae(e)
1029
- }), Ie = (e) => {
1028
+ data: Ne(e)
1029
+ }), Ve = (e) => {
1030
1030
  const t = e.toString().trim();
1031
1031
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1032
- }, Re = (e) => typeof e == "function" ? Ie(e) : P(e), Ae = ({
1032
+ }, Ee = (e) => typeof e == "function" ? Ve(e) : V(e), Ne = ({
1033
1033
  inputs: e,
1034
1034
  ...t
1035
1035
  }) => ({
1036
- ...P(t),
1036
+ ...V(t),
1037
1037
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1038
1038
  ...o,
1039
- [r]: Re(s)
1039
+ [r]: Ee(s)
1040
1040
  }), {}))
1041
- }), j = {};
1042
- function yn(e, t) {
1043
- let n = j[e];
1044
- if (n || (n = j[e] = []), n.push(t), y()) {
1041
+ }), U = {};
1042
+ function wn(e, t) {
1043
+ let n = U[e];
1044
+ if (n || (n = U[e] = []), n.push(t), v()) {
1045
1045
  const o = {
1046
1046
  type: "builder.register",
1047
1047
  data: {
@@ -1056,28 +1056,28 @@ function yn(e, t) {
1056
1056
  }
1057
1057
  }
1058
1058
  }
1059
- const N = {};
1060
- function vn(e) {
1061
- if (y()) {
1062
- Object.assign(N, e);
1059
+ const M = {};
1060
+ function Cn(e) {
1061
+ if (v()) {
1062
+ Object.assign(M, e);
1063
1063
  const t = {
1064
1064
  type: "builder.settingsChange",
1065
- data: N
1065
+ data: M
1066
1066
  };
1067
1067
  parent.postMessage(t, "*");
1068
1068
  }
1069
1069
  }
1070
- function Pe() {
1070
+ function Be() {
1071
1071
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1072
1072
  }
1073
- function Ve() {
1074
- const e = Pe().fetch;
1073
+ function je() {
1074
+ const e = Be().fetch;
1075
1075
  if (typeof e > "u")
1076
1076
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1077
1077
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1078
1078
  return e;
1079
1079
  }
1080
- const Oe = Ve();
1080
+ const Fe = je();
1081
1081
  function R(e, t = null, n = ".") {
1082
1082
  return Object.keys(e).reduce((o, r) => {
1083
1083
  const s = e[r], i = [t, r].filter(Boolean).join(n);
@@ -1090,27 +1090,27 @@ function R(e, t = null, n = ".") {
1090
1090
  };
1091
1091
  }, {});
1092
1092
  }
1093
- const F = "builder.", Ee = "options.", Be = (e) => {
1093
+ const L = "builder.", Ue = "options.", Me = (e) => {
1094
1094
  const t = {};
1095
1095
  return e.forEach((n, o) => {
1096
1096
  t[o] = n;
1097
1097
  }), t;
1098
- }, Y = (e) => {
1098
+ }, nt = (e) => {
1099
1099
  if (!e)
1100
1100
  return {};
1101
- const t = Z(e), n = {};
1101
+ const t = ot(e), n = {};
1102
1102
  return Object.keys(t).forEach((o) => {
1103
- if (o.startsWith(F)) {
1104
- const r = o.replace(F, "").replace(Ee, "");
1103
+ if (o.startsWith(L)) {
1104
+ const r = o.replace(L, "").replace(Ue, "");
1105
1105
  n[r] = t[o];
1106
1106
  }
1107
1107
  }), n;
1108
- }, je = () => {
1109
- if (!y())
1108
+ }, Le = () => {
1109
+ if (!v())
1110
1110
  return {};
1111
1111
  const e = new URLSearchParams(window.location.search);
1112
- return Y(e);
1113
- }, Z = (e) => e instanceof URLSearchParams ? Be(e) : e, Ne = "v3", O = (e) => {
1112
+ return nt(e);
1113
+ }, ot = (e) => e instanceof URLSearchParams ? Me(e) : e, We = "v3", W = (e) => typeof e == "number" && !isNaN(e) && e >= 0, N = (e) => {
1114
1114
  let {
1115
1115
  noTraverse: t = !1
1116
1116
  } = e;
@@ -1123,157 +1123,172 @@ const F = "builder.", Ee = "options.", Be = (e) => {
1123
1123
  includeRefs: u = !0,
1124
1124
  enrich: a,
1125
1125
  locale: d,
1126
- apiVersion: f = Ne
1126
+ apiVersion: p = We,
1127
+ fields: _,
1128
+ omit: l,
1129
+ offset: f,
1130
+ cacheSeconds: m,
1131
+ staleCacheSeconds: h,
1132
+ sort: b,
1133
+ includeUnpublished: S
1127
1134
  } = e;
1128
1135
  if (!i)
1129
1136
  throw new Error("Missing API key");
1130
- if (!["v2", "v3"].includes(f))
1131
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
1137
+ if (!["v2", "v3"].includes(p))
1138
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
1132
1139
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
1133
- const p = new URL(`https://cdn.builder.io/api/${f}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`), c = {
1134
- ...je(),
1135
- ...Z(e.options || {})
1136
- }, m = R(c);
1137
- for (const l in m)
1138
- p.searchParams.set(l, String(m[l]));
1139
- if (o && p.searchParams.set("userAttributes", JSON.stringify(o)), r) {
1140
- const l = R({
1140
+ const c = new URL(`https://cdn.builder.io/api/${p}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${u}${d ? `&locale=${d}` : ""}${a ? `&enrich=${a}` : ""}`);
1141
+ if (c.searchParams.set("omit", l || "meta.componentsUsed"), _ && c.searchParams.set("fields", _), Number.isFinite(f) && f > -1 && c.searchParams.set("offset", String(Math.floor(f))), typeof S == "boolean" && c.searchParams.set("includeUnpublished", String(S)), m && W(m) && c.searchParams.set("cacheSeconds", String(m)), h && W(h) && c.searchParams.set("staleCacheSeconds", String(h)), b) {
1142
+ const k = R({
1143
+ sort: b
1144
+ });
1145
+ for (const $ in k)
1146
+ c.searchParams.set($, JSON.stringify(k[$]));
1147
+ }
1148
+ const lt = {
1149
+ ...Le(),
1150
+ ...ot(e.options || {})
1151
+ }, j = R(lt);
1152
+ for (const k in j)
1153
+ c.searchParams.set(k, String(j[k]));
1154
+ if (o && c.searchParams.set("userAttributes", JSON.stringify(o)), r) {
1155
+ const k = R({
1141
1156
  query: r
1142
1157
  });
1143
- for (const h in l)
1144
- p.searchParams.set(h, JSON.stringify(l[h]));
1158
+ for (const $ in k)
1159
+ c.searchParams.set($, JSON.stringify(k[$]));
1145
1160
  }
1146
- return p;
1147
- }, Fe = (e) => "results" in e;
1148
- async function E(e) {
1149
- const t = await tt({
1161
+ return c;
1162
+ }, Ke = (e) => "results" in e;
1163
+ async function B(e) {
1164
+ const t = await rt({
1150
1165
  ...e,
1151
1166
  limit: 1
1152
1167
  });
1153
1168
  return t && t.results[0] || null;
1154
1169
  }
1155
- const Sn = E, Ue = async (e) => {
1156
- const t = O(e);
1157
- return await (await Oe(t.href)).json();
1158
- }, Me = async (e, t, n = O(e)) => {
1159
- const o = I(e.canTrack);
1160
- if (n.search.includes("preview="), !o || !(y() || w === "reactNative"))
1170
+ const $n = B, ze = async (e) => {
1171
+ const t = N(e);
1172
+ return await (await Fe(t.href)).json();
1173
+ }, Ge = async (e, t, n = N(e)) => {
1174
+ const o = A(e.canTrack);
1175
+ if (n.search.includes("preview="), !o || !(v() || C === "reactNative"))
1161
1176
  return t;
1162
1177
  try {
1163
1178
  const r = [];
1164
1179
  for (const s of t.results)
1165
- r.push(await ge({
1180
+ r.push(await xe({
1166
1181
  item: s,
1167
1182
  canTrack: o
1168
1183
  }));
1169
1184
  t.results = r;
1170
1185
  } catch (r) {
1171
- v.error("Could not process A/B tests. ", r);
1186
+ x.error("Could not process A/B tests. ", r);
1172
1187
  }
1173
1188
  return t;
1174
1189
  };
1175
- async function tt(e) {
1190
+ async function rt(e) {
1176
1191
  try {
1177
- const t = O(e), n = await Ue(e);
1178
- return Fe(n) ? Me(e, n) : (v.error("Error fetching data. ", {
1192
+ const t = N(e), n = await ze(e);
1193
+ return Ke(n) ? Ge(e, n) : (x.error("Error fetching data. ", {
1179
1194
  url: t,
1180
1195
  content: n,
1181
1196
  options: e
1182
1197
  }), null);
1183
1198
  } catch (t) {
1184
- return v.error("Error fetching data. ", t), null;
1199
+ return x.error("Error fetching data. ", t), null;
1185
1200
  }
1186
1201
  }
1187
- const kn = tt;
1188
- function Le() {
1202
+ const Tn = rt;
1203
+ function De() {
1189
1204
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1190
1205
  const t = Math.random() * 16 | 0;
1191
1206
  return (e == "x" ? t : t & 3 | 8).toString(16);
1192
1207
  });
1193
1208
  }
1194
- function et() {
1195
- return Le().replace(/-/g, "");
1209
+ function st() {
1210
+ return De().replace(/-/g, "");
1196
1211
  }
1197
- const nt = "builderSessionId", We = async ({
1212
+ const it = "builderSessionId", He = async ({
1198
1213
  canTrack: e
1199
1214
  }) => {
1200
1215
  if (!e)
1201
1216
  return;
1202
- const t = await G({
1203
- name: nt,
1217
+ const t = await X({
1218
+ name: it,
1204
1219
  canTrack: e
1205
1220
  });
1206
- if (x(t))
1221
+ if (w(t))
1207
1222
  return t;
1208
1223
  {
1209
- const n = Ke();
1210
- return ze({
1224
+ const n = Je();
1225
+ return Xe({
1211
1226
  id: n,
1212
1227
  canTrack: e
1213
1228
  }), n;
1214
1229
  }
1215
- }, Ke = () => et(), ze = ({
1230
+ }, Je = () => st(), Xe = ({
1216
1231
  id: e,
1217
1232
  canTrack: t
1218
- }) => D({
1219
- name: nt,
1233
+ }) => q({
1234
+ name: it,
1220
1235
  value: e,
1221
1236
  canTrack: t
1222
- }), ot = () => y() && typeof localStorage < "u" ? localStorage : void 0, Ge = ({
1237
+ }), at = () => v() && typeof localStorage < "u" ? localStorage : void 0, qe = ({
1223
1238
  key: e,
1224
1239
  canTrack: t
1225
1240
  }) => {
1226
1241
  var n;
1227
1242
  try {
1228
- return t ? (n = ot()) == null ? void 0 : n.getItem(e) : void 0;
1243
+ return t ? (n = at()) == null ? void 0 : n.getItem(e) : void 0;
1229
1244
  } catch (o) {
1230
1245
  console.debug("[LocalStorage] GET error: ", o);
1231
1246
  return;
1232
1247
  }
1233
- }, De = ({
1248
+ }, Qe = ({
1234
1249
  key: e,
1235
1250
  canTrack: t,
1236
1251
  value: n
1237
1252
  }) => {
1238
1253
  var o;
1239
1254
  try {
1240
- t && ((o = ot()) == null || o.setItem(e, n));
1255
+ t && ((o = at()) == null || o.setItem(e, n));
1241
1256
  } catch (r) {
1242
1257
  console.debug("[LocalStorage] SET error: ", r);
1243
1258
  }
1244
- }, rt = "builderVisitorId", He = ({
1259
+ }, ct = "builderVisitorId", Ye = ({
1245
1260
  canTrack: e
1246
1261
  }) => {
1247
1262
  if (!e)
1248
1263
  return;
1249
- const t = Ge({
1250
- key: rt,
1264
+ const t = qe({
1265
+ key: ct,
1251
1266
  canTrack: e
1252
1267
  });
1253
- if (x(t))
1268
+ if (w(t))
1254
1269
  return t;
1255
1270
  {
1256
- const n = Je();
1257
- return Xe({
1271
+ const n = Ze();
1272
+ return tn({
1258
1273
  id: n,
1259
1274
  canTrack: e
1260
1275
  }), n;
1261
1276
  }
1262
- }, Je = () => et(), Xe = ({
1277
+ }, Ze = () => st(), tn = ({
1263
1278
  id: e,
1264
1279
  canTrack: t
1265
- }) => De({
1266
- key: rt,
1280
+ }) => Qe({
1281
+ key: ct,
1267
1282
  value: e,
1268
1283
  canTrack: t
1269
- }), qe = () => {
1270
- if (y()) {
1284
+ }), en = () => {
1285
+ if (v()) {
1271
1286
  const e = new URL(location.href);
1272
1287
  return e.pathname === "" && (e.pathname = "/"), e;
1273
1288
  } else
1274
1289
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
1275
- }, Qe = () => typeof navigator == "object" && navigator.userAgent || "", Ye = () => {
1276
- const e = Qe(), t = {
1290
+ }, nn = () => typeof navigator == "object" && navigator.userAgent || "", on = () => {
1291
+ const e = nn(), t = {
1277
1292
  Android() {
1278
1293
  return e.match(/Android/i);
1279
1294
  },
@@ -1290,15 +1305,15 @@ const nt = "builderSessionId", We = async ({
1290
1305
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
1291
1306
  },
1292
1307
  any() {
1293
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || w === "reactNative";
1308
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || C === "reactNative";
1294
1309
  }
1295
- }, n = e.match(/Tablet|iPad/i), o = qe();
1310
+ }, n = e.match(/Tablet|iPad/i), o = en();
1296
1311
  return {
1297
1312
  urlPath: o == null ? void 0 : o.pathname,
1298
1313
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
1299
1314
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
1300
1315
  };
1301
- }, Ze = async ({
1316
+ }, rn = async ({
1302
1317
  canTrack: e
1303
1318
  }) => {
1304
1319
  if (!e)
@@ -1306,16 +1321,16 @@ const nt = "builderSessionId", We = async ({
1306
1321
  visitorId: void 0,
1307
1322
  sessionId: void 0
1308
1323
  };
1309
- const t = await We({
1324
+ const t = await He({
1310
1325
  canTrack: e
1311
- }), n = He({
1326
+ }), n = Ye({
1312
1327
  canTrack: e
1313
1328
  });
1314
1329
  return {
1315
1330
  sessionId: t,
1316
1331
  visitorId: n
1317
1332
  };
1318
- }, tn = async ({
1333
+ }, sn = async ({
1319
1334
  type: e,
1320
1335
  canTrack: t,
1321
1336
  apiKey: n,
@@ -1329,23 +1344,23 @@ const nt = "builderSessionId", We = async ({
1329
1344
  url: location.href,
1330
1345
  ...o
1331
1346
  },
1332
- ...await Ze({
1347
+ ...await rn({
1333
1348
  canTrack: t
1334
1349
  }),
1335
- userAttributes: Ye(),
1350
+ userAttributes: on(),
1336
1351
  ownerId: n
1337
1352
  }
1338
1353
  });
1339
- async function en(e) {
1354
+ async function an(e) {
1340
1355
  if (!e.apiKey) {
1341
- v.error("Missing API key for track call. Please provide your API key.");
1356
+ x.error("Missing API key for track call. Please provide your API key.");
1342
1357
  return;
1343
1358
  }
1344
- if (e.canTrack && !Q() && (y() || w === "reactNative"))
1359
+ if (e.canTrack && !et() && (v() || C === "reactNative"))
1345
1360
  return fetch("https://cdn.builder.io/api/v1/track", {
1346
1361
  method: "POST",
1347
1362
  body: JSON.stringify({
1348
- events: [await tn(e)]
1363
+ events: [await sn(e)]
1349
1364
  }),
1350
1365
  headers: {
1351
1366
  "content-type": "application/json"
@@ -1355,10 +1370,10 @@ async function en(e) {
1355
1370
  console.error("Failed to track: ", t);
1356
1371
  });
1357
1372
  }
1358
- const xn = (e) => en({
1373
+ const In = (e) => an({
1359
1374
  ...e,
1360
1375
  canTrack: !0
1361
- }), wn = async (e) => {
1376
+ }), Rn = async (e) => {
1362
1377
  var o, r, s;
1363
1378
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
1364
1379
  ...e,
@@ -1370,57 +1385,57 @@ const xn = (e) => en({
1370
1385
  urlPath: t
1371
1386
  } : {}
1372
1387
  },
1373
- options: Y(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1388
+ options: nt(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
1374
1389
  };
1375
1390
  return {
1376
1391
  apiKey: n.apiKey,
1377
1392
  model: n.model,
1378
- content: await E(n)
1393
+ content: await B(n)
1379
1394
  };
1380
1395
  };
1381
1396
  export {
1382
- vn as A,
1383
- on as B,
1384
- sn as C,
1385
- tt as D,
1386
- kn as E,
1387
- an as F,
1388
- Sn as G,
1389
- Me as H,
1390
- cn as I,
1391
- Y as J,
1392
- xn as K,
1393
- wn as L,
1394
- ee as M,
1395
- pn as R,
1396
- ln as S,
1397
- w as T,
1398
- mn as V,
1399
- en as _,
1400
- rn as a,
1401
- A as b,
1402
- x as c,
1403
- un as d,
1404
- dn as e,
1405
- P as f,
1406
- lt as g,
1407
- fn as h,
1408
- Q as i,
1409
- bn as j,
1410
- Ht as k,
1411
- Gt as l,
1412
- y as m,
1413
- g as n,
1414
- v as o,
1415
- gn as p,
1416
- I as q,
1417
- yn as r,
1418
- Ae as s,
1419
- _n as t,
1420
- E as u,
1421
- Oe as v,
1422
- Ye as w,
1423
- M as x,
1424
- q as y,
1425
- hn as z
1397
+ Cn as A,
1398
+ ln as B,
1399
+ dn as C,
1400
+ rt as D,
1401
+ Tn as E,
1402
+ mn as F,
1403
+ $n as G,
1404
+ Ge as H,
1405
+ fn as I,
1406
+ nt as J,
1407
+ In as K,
1408
+ Rn as L,
1409
+ ie as M,
1410
+ yn as R,
1411
+ pn as S,
1412
+ C as T,
1413
+ bn as V,
1414
+ an as _,
1415
+ un as a,
1416
+ O as b,
1417
+ w as c,
1418
+ hn as d,
1419
+ _n as e,
1420
+ V as f,
1421
+ pt as g,
1422
+ gn as h,
1423
+ et as i,
1424
+ kn as j,
1425
+ Yt as k,
1426
+ qt as l,
1427
+ v as m,
1428
+ y as n,
1429
+ A as o,
1430
+ Fe as p,
1431
+ xn as q,
1432
+ wn as r,
1433
+ Ne as s,
1434
+ B as t,
1435
+ Sn as u,
1436
+ x as v,
1437
+ on as w,
1438
+ z as x,
1439
+ tt as y,
1440
+ vn as z
1426
1441
  };