@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
@@ -5,11 +5,42 @@ export interface GetContentOptions {
5
5
  apiKey: string;
6
6
  /** Number of items to fetch. Default is 1 */
7
7
  limit?: number;
8
- /** User attributes to target on, such as { urlPath: '/foo', device: 'mobile', ...etc } */
8
+ /**
9
+ * Use to specify an offset for pagination of results. The default is 0.
10
+ */
11
+ offset?: number;
12
+ /**
13
+ * User attribute key value pairs to be used for targeting
14
+ * https://www.builder.io/c/docs/custom-targeting-attributes
15
+ *
16
+ * e.g.
17
+ * ```js
18
+ * userAttributes: {
19
+ * urlPath: '/',
20
+ * returnVisitor: true,
21
+ * device: 'mobile'
22
+ * }
23
+ * ```
24
+ */
9
25
  userAttributes?: (Record<string, string> & {
10
26
  urlPath?: string;
11
27
  }) | null;
12
- /** Custom query */
28
+ /**
29
+ * Mongodb style query of your data. E.g.:
30
+ *
31
+ * ```js
32
+ * query: {
33
+ * id: 'abc123',
34
+ * data: {
35
+ * myCustomField: { $gt: 20 },
36
+ * }
37
+ * }
38
+ * ```
39
+ *
40
+ * See more info on MongoDB's query operators and format.
41
+ *
42
+ * @see {@link https://docs.mongodb.com/manual/reference/operator/query/}
43
+ */
13
44
  query?: Record<string, any>;
14
45
  /**
15
46
  * Any other API options.
@@ -30,7 +61,7 @@ export interface GetContentOptions {
30
61
  */
31
62
  canTrack?: boolean;
32
63
  /**
33
- * Include references in the response. Defaults to `true`.
64
+ * Include content of references in the response. Defaults to `true`.
34
65
  * @deprecated use `enrich` instead
35
66
  */
36
67
  includeRefs?: boolean;
@@ -48,4 +79,64 @@ export interface GetContentOptions {
48
79
  * Defaults to `v3`.
49
80
  */
50
81
  apiVersion?: 'v2' | 'v3';
82
+ /**
83
+ * Only include these fields.
84
+ * Note: 'omit' takes precedence over 'fields'
85
+ *
86
+ * @example
87
+ * ```
88
+ * fields: 'id, name, data.customField'
89
+ * ```
90
+ */
91
+ fields?: string;
92
+ /**
93
+ * Omit only these fields.
94
+ * Note: 'omit' takes precedence over 'fields'
95
+ *
96
+ * @example
97
+ * ```
98
+ * omit: 'data.bigField,data.blocks'
99
+ * ```
100
+ */
101
+ omit?: string;
102
+ /**
103
+ * Seconds to cache content. Sets the max-age of the cache-control header
104
+ * response header.
105
+ *
106
+ * Use a higher value for better performance, lower for content that will change more frequently
107
+ *
108
+ * @see {@link https://www.builder.io/c/docs/query-api#__next:~:text=%26includeRefs%3Dtrue-,cacheSeconds,-No}
109
+ */
110
+ cacheSeconds?: number;
111
+ /**
112
+ * Builder.io uses stale-while-revalidate caching at the CDN level. This means we always serve
113
+ * from edge cache and update caches in the background for maximum possible performance. This also
114
+ * means that the more frequently content is requested, the more fresh it will be. The longest we
115
+ * will ever hold something in stale cache is 1 day by default, and you can set this to be shorter
116
+ * yourself as well. We suggest keeping this high unless you have content that must change rapidly
117
+ * and gets very little traffic.
118
+ *
119
+ * @see {@link https://www.fastly.com/blog/prevent-application-network-instability-serve-stale-content}
120
+ */
121
+ staleCacheSeconds?: number;
122
+ /**
123
+ * Property to order results by.
124
+ * Use 1 for ascending and -1 for descending.
125
+ *
126
+ * The key is what you're sorting on, so the following example sorts by createdDate
127
+ * and because the value is 1, the sort is ascending.
128
+ *
129
+ * @example
130
+ * ```
131
+ * createdDate: 1
132
+ * ```
133
+ */
134
+ sort?: {
135
+ [key: string]: 1 | -1;
136
+ };
137
+ /**
138
+ * Include content entries in a response that are still in
139
+ * draft mode and un-archived. Default is false.
140
+ */
141
+ includeUnpublished?: boolean;
51
142
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Identifies node runtime
3
+ */
4
+ export declare function isNodeRuntime(): boolean;
@@ -1 +1 @@
1
- "use strict";const r=require("./index-4480d5e4.cjs"),s=require("./evaluate-c6468e7e.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
1
+ "use strict";const r=require("./index-55b86b2c.cjs"),s=require("./evaluate-fc74c806.cjs"),l=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>o=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:o,isExpression:!1});function u(e){const t={},o=e.block.actions??{};for(const c in o){if(!o.hasOwnProperty(c))continue;const n=o[c];let a=l(c);if(e.stripPrefix)switch(r.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=i(n,e)}return t}exports.getBlockActions=u;
@@ -1,5 +1,5 @@
1
- import { T as n } from "./index-f8dc2e35.js";
2
- import { e as s } from "./evaluate-5aed4676.js";
1
+ import { T as n } from "./index-fe4f9482.js";
2
+ import { e as s } from "./evaluate-06bae117.js";
3
3
  const l = (e) => `v-on:${e.toLowerCase()}`, i = (e, t) => (o) => s({
4
4
  code: e,
5
5
  context: t.context,
@@ -1 +1 @@
1
- "use strict";const c=require("./index-df9193d2.cjs"),n=require("./css-6d51b919.cjs");function i(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=i(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return n.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
1
+ "use strict";const c=require("./index-55b86b2c.cjs"),n=require("./css-698817f7.cjs");function i(e){const t={};if(typeof e!="string")return t;const s=e.trim().split(/\\s+/);for(const r of s)t[r]=!0;return t}function o(e){return e.class=i(e.class),e}const a=e=>({href:e.href});function u({block:e,context:t}){var r;const s={...a(e),...e.properties,"builder-id":e.id,style:e.style?l(e.style):void 0,class:[e.id,"builder-block",e.class,(r=e.properties)==null?void 0:r.class].filter(Boolean).join(" ")};return o(s)}function l(e){switch(c.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return n.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}exports.getBlockProperties=u;
@@ -1,5 +1,5 @@
1
- import { T as o } from "./index-cd218de0.js";
2
- import { a } from "./css-5244a373.js";
1
+ import { T as o } from "./index-fe4f9482.js";
2
+ import { a } from "./css-0997fa70.js";
3
3
  function n(e) {
4
4
  const t = {};
5
5
  if (typeof e != "string")
@@ -0,0 +1,52 @@
1
+ import { e as p, s as u } from "./evaluate-06bae117.js";
2
+ import { f as d } from "./index-fe4f9482.js";
3
+ const g = ({
4
+ block: n,
5
+ context: t,
6
+ localState: o,
7
+ rootState: r,
8
+ rootSetState: i
9
+ }) => {
10
+ if (!n.bindings)
11
+ return n;
12
+ const s = d(n), e = {
13
+ ...s,
14
+ properties: {
15
+ ...s.properties
16
+ },
17
+ actions: {
18
+ ...s.actions
19
+ }
20
+ };
21
+ for (const c in n.bindings) {
22
+ const a = n.bindings[c], f = p({
23
+ code: a,
24
+ localState: o,
25
+ rootState: r,
26
+ rootSetState: i,
27
+ context: t
28
+ });
29
+ u(e, c, f);
30
+ }
31
+ return e;
32
+ };
33
+ function B({
34
+ block: n,
35
+ context: t,
36
+ shouldEvaluateBindings: o,
37
+ localState: r,
38
+ rootState: i,
39
+ rootSetState: s
40
+ }) {
41
+ const e = n;
42
+ return o ? g({
43
+ block: e,
44
+ localState: r,
45
+ rootState: i,
46
+ rootSetState: s,
47
+ context: t
48
+ }) : e;
49
+ }
50
+ export {
51
+ B as g
52
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./evaluate-fc74c806.cjs"),f=require("./index-55b86b2c.cjs");const g=({block:e,context:s,localState:r,rootState:o,rootSetState:i})=>{if(!e.bindings)return e;const n=f.fastClone(e),t={...n,properties:{...n.properties},actions:{...n.actions}};for(const c in e.bindings){const a=e.bindings[c],d=u.evaluate({code:a,localState:r,rootState:o,rootSetState:i,context:s});u.set(t,c,d)}return t};function l({block:e,context:s,shouldEvaluateBindings:r,localState:o,rootState:i,rootSetState:n}){const t=e;return r?g({block:t,localState:o,rootState:i,rootSetState:n,context:s}):t}exports.getProcessedBlock=l;
@@ -0,0 +1,32 @@
1
+ "use strict";const v=require("vue");function A(e={},t,n){const o={};for(const r in e){if(!e[r]||n&&!r.startsWith(t))continue;const s=n?r.replace(t,""):r;o[s]=e[r]}return o}const yt=v.defineComponent({name:"builder-button",props:["attributes","text","link","openLinkInNewTab"],data(){return{filterAttrs:A}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});function g(e,t,n,o,r,s,i,u){var a=typeof e=="function"?e.options:e;t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var d;if(i?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||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)},a._ssrRegister=d):r&&(d=u?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(a.functional){a._injectStyles=d;var p=a.render;a.render=function(f,m){return d.call(m),p(f,m)}}else{var b=a.beforeCreate;a.beforeCreate=b?[].concat(b,d):[d]}return{exports:e,options:a}}var vt=function(){var t=this,n=t._self._c;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)+" ")])},St=[],kt=g(yt,vt,St,!1,null,"d03c6eb1",null,null);const Ct=kt.exports,E=e=>JSON.parse(JSON.stringify(e)),H={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},xt=(e,t=H)=>`@media (max-width: ${t[e].max}px)`,J=({small:e,medium:t})=>{const n=E(H);if(!e||!t)return n;const o=Math.floor(e/2);n.small={max:e,min:o,default:o+1};const r=n.small.max+1;n.medium={max:t,min:r,default:r+1};const s=n.medium.max+1;return n.large={max:2e3,min:s,default:s+1},n},w="vue2",wt=()=>Promise.resolve().then(()=>Y).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Blocks at ../../components/blocks/blocks.vue",e),e}),$t=()=>Promise.resolve().then(()=>require("./inlined-styles-e812d54a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../components/inlined-styles.vue",e),e}),Tt=v.defineComponent({name:"builder-columns",components:{"inlined-styles":$t,blocks:wt},props:["js","space","columns","stackColumnsAt","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{gutterSize:typeof this.space=="number"?this.space||0:20,cols:this.columns||[],stackAt:this.stackColumnsAt||"tablet",flexDir:this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column",TARGET:w}},computed:{columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnsStyles(){return`
2
+ @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
3
+ .${this.builderBlock.id}-breakpoints {
4
+ flex-direction: var(--flex-dir-tablet);
5
+ align-items: stretch;
6
+ }
7
+
8
+ .${this.builderBlock.id}-breakpoints > .builder-column {
9
+ width: var(--column-width-tablet) !important;
10
+ margin-left: var(--column-margin-left-tablet) !important;
11
+ }
12
+ }
13
+
14
+ @media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
15
+ .${this.builderBlock.id}-breakpoints {
16
+ flex-direction: var(--flex-dir);
17
+ align-items: stretch;
18
+ }
19
+
20
+ .${this.builderBlock.id}-breakpoints > .builder-column {
21
+ width: var(--column-width-mobile) !important;
22
+ margin-left: var(--column-margin-left-mobile) !important;
23
+ }
24
+ },
25
+ `}},methods:{getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.gutterSize*(this.cols.length-1)/this.cols.length;return`calc(${this.getWidth(e)}% - ${t}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),o=`${t}px`,r="100%",s=0;return{width:n,["margin-left"]:o,"--column-width-mobile":this.getMobileStyle({stackedStyle:r,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:s,desktopStyle:o}),"--column-width-tablet":this.getTabletStyle({stackedStyle:r,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:s,desktopStyle:o})}},getWidthForBreakpointSize(e){var n,o;return J(((o=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:o.breakpoints)||{})[e].max},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var Rt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("div",t._b({class:t._classStringToObject(`builder-columns ${t.builderBlock.id}-breakpoints div-t9spj7joih`),style:t.columnsCssVars},"div",{},!1),[t.TARGET!=="reactNative"?[n("inlined-styles",{attrs:{styles:t.columnsStyles}})]:t._e(),t._l(t.columns,function(o,r){return n("div",t._b({key:r,staticClass:"builder-column div-t9spj7joih-2",style:t.columnCssVars(r)},"div",{},!1),[n("blocks",{attrs:{path:`component.options.columns.${r}.blocks`,parent:t.builderBlock.id,styleProp:{flexGrow:"1"},context:t.builderContext,registeredComponents:t.builderComponents,blocks:o.blocks}})],1)})],2)},It=[],Pt=g(Tt,Rt,It,!1,null,"c700504e",null,null);const At=Pt.exports,Et=v.defineComponent({name:"builder-fragment-component",props:[]});var Ot=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("span",[t._t("default")],2)},Vt=[],Bt=g(Et,Ot,Vt,!1,null,null,null,null);const Nt=Bt.exports;function K(e){return e.replace(/http(s)?:/,"")}function jt(e="",t,n){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=e.indexOf("?")!==-1?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+r+t+"="+encodeURIComponent(n)}function Ft(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return K(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const o=e.split(n[0]),r=n[3],s=t.match("x")?t:`${t}x`;return K(`${o[0]}_${s}${r}`)}return null}function V(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const o=Number(e.split("?width=")[1]);return isNaN(o)||(n=`${n} ${o}w`),t.filter(r=>r!==o).map(r=>`${jt(e,"width",r)} ${r}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[Ft(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,o])=>`${n} ${o}w`).concat([e]).join(", "):e}const Ut=v.defineComponent({name:"builder-image",props:["image","src","srcset","noWebp","aspectRatio","altText","backgroundPosition","backgroundSize","className","sizes","builderBlock","fitContent"],computed:{srcSetToUse(){var n;const t=this.image||this.src;if(!t||!(t.match(/builder\.io/)||t.match(/cdn\.shopify\.com/)))return this.srcset;if(this.srcset&&((n=this.image)!=null&&n.includes("builder.io/api/v1/image"))){if(!this.srcset.includes(this.image.split("?")[0]))return console.debug("Removed given srcset"),V(t)}else if(this.image&&!this.srcset)return V(t);return V(t)},webpSrcSet(){var e;return(e=this.srcSetToUse)!=null&&e.match(/builder\.io/)&&!this.noWebp?this.srcSetToUse.replace(/\?/g,"?format=webp&"):""},aspectRatioCss(){const e={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return this.aspectRatio?e:void 0}},methods:{_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var Mt=function(){var o,r,s,i;var t=this,n=t._self._c;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("builder-image"+(t.className?" "+t.className:"")+" img-1pl23ac79ld"),style:{objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...t.aspectRatioCss},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:{paddingTop:t.aspectRatio*100+"%"}})]: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)},Wt=[],Lt=g(Ut,Mt,Wt,!1,null,"aae97bc7",null,null);const Kt=Lt.exports,zt=v.defineComponent({name:"builder-section-component",props:["attributes","maxWidth"],data(){return{filterAttrs:A}}});var Gt=function(){var t=this,n=t._self._c;return t._self._setupProxy,n("section",t._g(t._b({style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:t.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"}},"section",t.filterAttrs(t.attributes,"v-on:",!1),!1),t.filterAttrs(t.attributes,"v-on:",!0)),[t._t("default")],2)},Dt=[],qt=g(zt,Gt,Dt,!1,null,null,null,null);const Ht=qt.exports,T="[Builder.io]: ",k={log:(...e)=>console.log(T,...e),error:(...e)=>console.error(T,...e),warn:(...e)=>console.warn(T,...e),debug:(...e)=>console.debug(T,...e)},Jt=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return O({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(n=>{k.error("Could not fetch symbol content: ",n)})},Qt=()=>Promise.resolve().then(()=>De).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentVariants at ../../components/content-variants/content-variants.vue",e),e}),Xt=v.defineComponent({name:"builder-symbol",components:{"content-variants":Qt},props:["js","attributes","symbol","dynamic","builderContext","builderComponents"],data(){var e;return{contentToUse:(e=this.symbol)==null?void 0:e.content,filterAttrs:A}},mounted(){this.setContent()},watch:{onUpdateHook0:{handler(){this.setContent()},immediate:!0}},computed:{className(){var e,t;return[...Object.keys(this.attributes.class),"builder-symbol",(e=this.symbol)!=null&&e.inline?"builder-inline-symbol":void 0,(t=this.symbol)!=null&&t.dynamic||this.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")},onUpdateHook0(){return{0:this.symbol}}},methods:{setContent(){this.contentToUse||Jt({symbol:this.symbol,builderContextValue:this.builderContext}).then(e=>{e&&(this.contentToUse=e)})},_classStringToObject(e){const t={};if(typeof e!="string")return t;const n=e.trim().split(/\s+/);for(const o of n)t[o]=!0;return t}}});var Yt=function(){var o,r,s,i;var t=this,n=t._self._c;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:{...(o=t.symbol)==null?void 0:o.data,...t.builderContext.localState,...(s=(r=t.contentToUse)==null?void 0:r.data)==null?void 0:s.state},model:(i=t.symbol)==null?void 0:i.model,content:t.contentToUse}})],1)},Zt=[],te=g(Xt,Yt,Zt,!1,null,null,null,null);const ee=te.exports,ne=v.defineComponent({name:"builder-text",props:["text"]});var oe=function(){var o;var t=this,n=t._self._c;return t._self._setupProxy,n("div",{staticClass:"builder-text",style:{outline:"none"},domProps:{innerHTML:t._s(((o=t.text)==null?void 0:o.toString())||"")}})},re=[],se=g(ne,oe,re,!1,null,null,null,null);const ie=se.exports,ae=v.defineComponent({name:"builder-video",props:["autoPlay","muted","controls","loop","playsInline","attributes","preload","fit","position","video","posterImage"],computed:{videoProps(){return{...this.autoPlay===!0?{autoPlay:!0}:{},...this.muted===!0?{muted:!0}:{},...this.controls===!0?{controls:!0}:{},...this.loop===!0?{loop:!0}:{},...this.playsInline===!0?{playsInline:!0}:{}}},spreadProps(){return{...this.attributes,...this.videoProps}}}});var ce=function(){var o;var t=this,n=t._self._c;return t._self._setupProxy,n("video",t._b({style:{width:"100%",height:"100%",...(o=t.attributes)==null?void 0:o.style,objectFit:t.fit,objectPosition:t.position,borderRadius:1},attrs:{preload:t.preload||"metadata",src:t.video||"no-src",poster:t.posterImage}},"video",t.spreadProps,!1))},le=[],ue=g(ae,ce,le,!1,null,null,null,null);const de=ue.exports,me=Symbol(),Q={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}},key:me},fe=Symbol(),X={Components:{registeredComponents:{}},key:fe},pe=()=>Promise.resolve().then(()=>require("./block-styles-34b37b5f.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",e),e}),he=()=>Promise.resolve().then(()=>require("./block-46a1926a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block/block.vue",e),e}),ge=()=>Promise.resolve().then(()=>require("./blocks-wrapper-111adf2e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",e),e}),_e=v.defineComponent({name:"builder-blocks",components:{"blocks-wrapper":ge,block:he,"block-styles":pe},props:["blocks","parent","path","styleProp","context","registeredComponents"],inject:{builderContext:Q.key,componentsContext:X.key}});var be=function(){var t=this,n=t._self._c;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){return n("block",{key:"render-block-"+o.id,attrs:{block:o,context:t.context||t.builderContext,registeredComponents:t.registeredComponents||t.componentsContext.registeredComponents}})}):t._e(),t.blocks?t._l(t.blocks,function(o,r){return n("block-styles",{key:"block-style-"+o.id,attrs:{block:o,context:t.context||t.builderContext}})}):t._e()],2)},ye=[],ve=g(_e,be,ye,!1,null,null,null,null);const B=ve.exports,Y=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));function _(){return typeof window<"u"&&typeof document<"u"}const R=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),Se=({canTrack:e,content:t})=>!(!(R(t).length>0)||!e);function ke(e,t,n){var i;function o(){function u(m,h,y){let S="";if(y){const c=new Date;c.setTime(c.getTime()+y*24*60*60*1e3),S="; expires="+c.toUTCString()}document.cookie=m+"="+(h||"")+S+"; path=/; Secure; SameSite=None"}function a(m){const h=m+"=",y=document.cookie.split(";");for(let S=0;S<y.length;S++){let c=y[S];for(;c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(h)===0)return c.substring(h.length,c.length)}return null}const d=`builder.tests.${e}`,p=a(d),b=t.map(m=>m.id).concat(e);if(p&&b.includes(p))return p;let l=0;const f=Math.random();for(let m=0;m<t.length;m++){const h=t[m],y=h.testRatio;if(l+=y,f<l)return u(d,h.id),h.id}return u(d,e),e}const r=o(),s=(i=document.currentScript)==null?void 0:i.previousElementSibling;if(n){s.remove();const u=document.currentScript;u==null||u.remove()}else{const u=t.concat({id:e}).filter(a=>a.id!==r).map(a=>`.variant-${a.id} { display: none; }
26
+ `).join("");s.innerHTML=u}}function Ce(e,t,n){var a;if(!navigator.cookieEnabled)return;function o(d){const p=d+"=",b=document.cookie.split(";");for(let l=0;l<b.length;l++){let f=b[l];for(;f.charAt(0)===" ";)f=f.substring(1,f.length);if(f.indexOf(p)===0)return f.substring(p.length,f.length)}return null}const r=`builder.tests.${t}`,s=o(r),i=(a=document.currentScript)==null?void 0:a.parentElement,u=e===t;if(s===e){if(u)return;i==null||i.removeAttribute("hidden"),i==null||i.removeAttribute("aria-hidden")}else{u&&(n?i==null||i.remove():(i==null||i.setAttribute("hidden","true"),i==null||i.setAttribute("aria-hidden","true")));return}}const xe=e=>e==="react"||e==="reactNative",Z=xe(w),tt="builderIoAbTest",et="builderIoRenderContent",we=()=>{const e=ke.toString().replace(/\s+/g," "),t=Ce.toString().replace(/\s+/g," ");return`
27
+ window.${tt} = ${e}
28
+ window.${et} = ${t}
29
+ `},$e=(e,t)=>`
30
+ window.${tt}("${t}",${JSON.stringify(e)}, ${Z})`,Te=({contentId:e,variationId:t})=>`
31
+ window.${et}("${t}", "${e}", ${Z})`,x=e=>e!=null,P=e=>x(e)?e:!0,Re=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},nt=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(o=>o.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(o){k.warn("[COOKIE] GET error: ",(o==null?void 0:o.message)||o);return}},ot=async e=>nt(e),Ie=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(x).join("; "),Pe=[["secure",""],["SameSite","None"]],Ae=({name:e,value:t,expires:n})=>{const r=(_()?location.protocol==="https:":!0)?Pe:[[]],s=n?[["expires",n.toUTCString()]]:[[]],i=[[e,t],...s,["path","/"],["domain",Re(window.location.hostname)],...r];return Ie(i)},rt=async({name:e,value:t,expires:n,canTrack:o})=>{try{if(!o)return;const r=Ae({name:e,value:t,expires:n});document.cookie=r}catch(r){k.warn("[COOKIE] SET error: ",(r==null?void 0:r.message)||r)}},Ee="builder.tests",N=e=>`${Ee}.${e}`,Oe=({contentId:e})=>ot({name:N(e),canTrack:!0}),Ve=({contentId:e})=>nt({name:N(e),canTrack:!0}),Be=({contentId:e,value:t})=>rt({name:N(e),value:t,canTrack:!0}),st=e=>x(e.id)&&x(e.variations)&&Object.keys(e.variations).length>0,Ne=({id:e,variations:t})=>{var r;let n=0;const o=Math.random();for(const s in t){const i=(r=t[s])==null?void 0:r.testRatio;if(n+=i,o<n)return s}return e},it=e=>{const t=Ne(e);return Be({contentId:e.id,value:t}).catch(n=>{k.error("could not store A/B test variation: ",n)}),t},at=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},je=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!st(e))return e;const n=Ve({contentId:e.id})||it({variations:e.variations,id:e.id}),o=at({item:e,testGroupId:n});return{...e,...o}},Fe=async({item:e,canTrack:t})=>{if(!t||!st(e))return e;const o=await Oe({contentId:e.id})||it({variations:e.variations,id:e.id}),r=at({item:e,testGroupId:o});return{...e,...r}},Ue=()=>Promise.resolve().then(()=>require("./content-804eb1c1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ContentComponent at ../content/content.vue",e),e}),Me=()=>Promise.resolve().then(()=>require("./inlined-styles-e812d54a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",e),e}),We=()=>Promise.resolve().then(()=>require("./inlined-script-37af305a.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",e),e}),Le=v.defineComponent({name:"content-variants",components:{"inlined-script":We,"inlined-styles":Me,"content-component":Ue},props:["canTrack","content","__isNestedRender","model","data","context","apiKey","apiVersion","customComponents","locale","includeRefs","enrich"],data(){return{shouldRenderVariants:Se({canTrack:P(this.canTrack),content:this.content}),getScriptString:we,getVariants:R,TARGET:w}},mounted(){this.shouldRenderVariants=!1},computed:{variantScriptStr(){var e;return $e(R(this.content).map(t=>({id:t.testVariationId,testRatio:t.testRatio})),((e=this.content)==null?void 0:e.id)||"")},hideVariantsStyleString(){return R(this.content).map(e=>`.variant-${e.testVariationId} { display: none; } `).join("")},defaultContent(){var e;return this.shouldRenderVariants?{...this.content,testVariationId:(e=this.content)==null?void 0:e.id}:je({item:this.content,canTrack:P(this.canTrack)})}}});var Ke=function(){var o,r;var t=this,n=t._self._c;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){return n("content-component",{key:s.testVariationId,attrs:{content:s,showContent:!1,classNameProp:void 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}})})]: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",{key:t.shouldRenderVariants.toString()},!1))],2)},ze=[],Ge=g(Le,Ke,ze,!1,null,null,null,null);const j=Ge.exports,De=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),qe=B,He=j;function Je(){return _()&&window.self!==window.top}function F(){return Je()&&window.location.search.indexOf("builder.frameEditing=")!==-1}function Qe(){return!_()||F()?!1:location.search.indexOf("builder.preview=")!==-1}const Xe=[],Ye=e=>({type:"builder.registerComponent",data:ct(e)}),Ze=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},tn=e=>typeof e=="function"?Ze(e):E(e),ct=({inputs:e,...t})=>({...E(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((o,[r,s])=>({...o,[r]:tn(s)}),{}))}),z={};function en(e,t){let n=z[e];if(n||(n=z[e]=[]),n.push(t),_()){const o={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(o,"*"),parent!==window&&window.postMessage(o,"*")}catch(r){console.debug("Could not postmessage",r)}}}const G={};function nn(e){if(_()){Object.assign(G,e);const t={type:"builder.settingsChange",data:G};parent.postMessage(t,"*")}}function on(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function rn(){const e=on().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
32
+ For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const lt=rn();function I(e,t=null,n="."){return Object.keys(e).reduce((o,r)=>{const s=e[r],i=[t,r].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...o,...I(s,i,n)}:{...o,[i]:s}},{})}const D="builder.",sn="options.",an=e=>{const t={};return e.forEach((n,o)=>{t[o]=n}),t},U=e=>{if(!e)return{};const t=ut(e),n={};return Object.keys(t).forEach(o=>{if(o.startsWith(D)){const r=o.replace(D,"").replace(sn,"");n[r]=t[o]}}),n},cn=()=>{if(!_())return{};const e=new URLSearchParams(window.location.search);return U(e)},ut=e=>e instanceof URLSearchParams?an(e):e,ln="v3",q=e=>typeof e=="number"&&!isNaN(e)&&e>=0,M=e=>{let{noTraverse:t=!1}=e;const{limit:n=30,userAttributes:o,query:r,model:s,apiKey:i,includeRefs:u=!0,enrich:a,locale:d,apiVersion:p=ln,fields:b,omit:l,offset:f,cacheSeconds:m,staleCacheSeconds:h,sort:y,includeUnpublished:S}=e;if(!i)throw new Error("Missing API key");if(!["v2","v3"].includes(p))throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);(e.limit===void 0||e.limit>1)&&!("noTraverse"in e)&&(t=!0);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}`:""}`);if(c.searchParams.set("omit",l||"meta.componentsUsed"),b&&c.searchParams.set("fields",b),Number.isFinite(f)&&f>-1&&c.searchParams.set("offset",String(Math.floor(f))),typeof S=="boolean"&&c.searchParams.set("includeUnpublished",String(S)),m&&q(m)&&c.searchParams.set("cacheSeconds",String(m)),h&&q(h)&&c.searchParams.set("staleCacheSeconds",String(h)),y){const C=I({sort:y});for(const $ in C)c.searchParams.set($,JSON.stringify(C[$]))}const bt={...cn(),...ut(e.options||{})},L=I(bt);for(const C in L)c.searchParams.set(C,String(L[C]));if(o&&c.searchParams.set("userAttributes",JSON.stringify(o)),r){const C=I({query:r});for(const $ in C)c.searchParams.set($,JSON.stringify(C[$]))}return c},un=e=>"results"in e;async function O(e){const t=await W({...e,limit:1});return t&&t.results[0]||null}const dn=O,mn=async e=>{const t=M(e);return await(await lt(t.href)).json()},dt=async(e,t,n=M(e))=>{const o=P(e.canTrack);if(n.search.includes("preview="),!o||!(_()||w==="reactNative"))return t;try{const r=[];for(const s of t.results)r.push(await Fe({item:s,canTrack:o}));t.results=r}catch(r){k.error("Could not process A/B tests. ",r)}return t};async function W(e){try{const t=M(e),n=await mn(e);return un(n)?dt(e,n):(k.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return k.error("Error fetching data. ",t),null}}const fn=W;function pn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function mt(){return pn().replace(/-/g,"")}const ft="builderSessionId",hn=async({canTrack:e})=>{if(!e)return;const t=await ot({name:ft,canTrack:e});if(x(t))return t;{const n=gn();return _n({id:n,canTrack:e}),n}},gn=()=>mt(),_n=({id:e,canTrack:t})=>rt({name:ft,value:e,canTrack:t}),pt=()=>_()&&typeof localStorage<"u"?localStorage:void 0,bn=({key:e,canTrack:t})=>{var n;try{return t?(n=pt())==null?void 0:n.getItem(e):void 0}catch(o){console.debug("[LocalStorage] GET error: ",o);return}},yn=({key:e,canTrack:t,value:n})=>{var o;try{t&&((o=pt())==null||o.setItem(e,n))}catch(r){console.debug("[LocalStorage] SET error: ",r)}},ht="builderVisitorId",vn=({canTrack:e})=>{if(!e)return;const t=bn({key:ht,canTrack:e});if(x(t))return t;{const n=Sn();return kn({id:n,canTrack:e}),n}},Sn=()=>mt(),kn=({id:e,canTrack:t})=>yn({key:ht,value:e,canTrack:t}),Cn=()=>{if(_()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},xn=()=>typeof navigator=="object"&&navigator.userAgent||"",gt=()=>{const e=xn(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||w==="reactNative"}},n=e.match(/Tablet|iPad/i),o=Cn();return{urlPath:o==null?void 0:o.pathname,host:(o==null?void 0:o.host)||(o==null?void 0:o.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},wn=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await hn({canTrack:e}),n=vn({canTrack:e});return{sessionId:t,visitorId:n}},$n=async({type:e,canTrack:t,apiKey:n,metadata:o,...r})=>({type:e,data:{...r,metadata:{url:location.href,...o},...await wn({canTrack:t}),userAttributes:gt(),ownerId:n}});async function _t(e){if(!e.apiKey){k.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!F()&&(_()||w==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await $n(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Tn=e=>_t({...e,canTrack:!0}),Rn=async e=>{var o,r,s;const t=e.path||((o=e.url)==null?void 0:o.pathname)||((r=e.userAttributes)==null?void 0:r.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:U(e.searchParams||((s=e.url)==null?void 0:s.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await O(n)}};exports.Blocks=B;exports.Button=Ct;exports.Columns=At;exports.ComponentsContext=X;exports.Content=j;exports.Fragment=Nt;exports.Image=Kt;exports.RenderBlocks=qe;exports.RenderContent=He;exports.Section=Ht;exports.Symbol=ee;exports.TARGET=w;exports.Text=ie;exports.Video=de;exports._processContentResult=dt;exports._track=_t;exports.blocks=Y;exports.builderContext=Q;exports.checkIsDefined=x;exports.components=Xe;exports.createRegisterComponentMessage=Ye;exports.fastClone=E;exports.fetch=lt;exports.fetchBuilderProps=Rn;exports.fetchEntries=W;exports.fetchOneEntry=O;exports.filterAttrs=A;exports.getAllContent=fn;exports.getBuilderSearchParams=U;exports.getContent=dn;exports.getDefaultCanTrack=P;exports.getMaxWidthQueryForSize=xt;exports.getRenderContentScriptString=Te;exports.getSizesForBreakpoints=J;exports.getUserAttributes=gt;exports.isBrowser=_;exports.isEditing=F;exports.isPreviewing=Qe;exports.logger=k;exports.normalizeComponent=g;exports.register=en;exports.serializeComponentInfo=ct;exports.setEditorSettings=nn;exports.track=Tn;