@builder.io/sdk-vue 0.7.2 → 0.7.4

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 (213) hide show
  1. package/package.json +1 -1
  2. package/vue2/lib/browser/{block-750d8ed7.cjs → block-07c332e9.cjs} +2 -2
  3. package/vue2/lib/{edge/block-88cc78c4.js → browser/block-780edfb4.js} +7 -7
  4. package/vue2/lib/{node/block-styles-b1b9a610.js → browser/block-styles-16983926.js} +5 -5
  5. package/vue2/lib/{edge/block-styles-65d9a724.cjs → browser/block-styles-35789d73.cjs} +1 -1
  6. package/vue2/lib/browser/{block-wrapper-571b134c.cjs → block-wrapper-75ec69c0.cjs} +1 -1
  7. package/vue2/lib/browser/{block-wrapper-f011d1f2.js → block-wrapper-fed601f8.js} +5 -5
  8. package/vue2/lib/browser/blocks/video/video.vue.d.ts +24 -2
  9. package/vue2/lib/{edge/blocks-wrapper-dcd7b27a.js → browser/blocks-wrapper-8be7f69e.js} +1 -1
  10. package/vue2/lib/{edge/blocks-wrapper-96489519.cjs → browser/blocks-wrapper-f0ace194.cjs} +1 -1
  11. package/vue2/lib/{edge/component-ref-9b2c6138.js → browser/component-ref-82f7b8e8.js} +6 -6
  12. package/vue2/lib/{edge/component-ref-0bf4a838.cjs → browser/component-ref-f215189b.cjs} +1 -1
  13. package/vue2/lib/browser/components/content/content.types.d.ts +0 -4
  14. package/vue2/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -1
  15. package/vue2/lib/browser/components/content-variants/helpers.d.ts +3 -3
  16. package/vue2/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
  17. package/vue2/lib/browser/constants/sdk-version.d.ts +1 -1
  18. package/vue2/lib/{edge/content-ad722031.js → browser/content-07544a0e.js} +21 -22
  19. package/vue2/lib/browser/{content-859f190b.cjs → content-a7a7fc9d.cjs} +1 -1
  20. package/vue2/lib/{node/css-44cbcf3f.cjs → browser/css-76c87435.cjs} +1 -1
  21. package/vue2/lib/browser/{css-67efb2d0.js → css-ae5a66d5.js} +1 -1
  22. package/vue2/lib/browser/enable-editor-6c32ef6e.cjs +1 -0
  23. package/vue2/lib/browser/{enable-editor-4054558e.js → enable-editor-760639f0.js} +15 -16
  24. package/vue2/lib/browser/{evaluate-28c12253.js → evaluate-a47066df.js} +1 -1
  25. package/vue2/lib/browser/{evaluate-6cd69c12.cjs → evaluate-a7ecae47.cjs} +1 -1
  26. package/vue2/lib/browser/{get-block-actions-f19965b6.cjs → get-block-actions-386da520.cjs} +1 -1
  27. package/vue2/lib/{node/get-block-actions-1a6b19ce.js → browser/get-block-actions-b8cf2dfe.js} +2 -2
  28. package/vue2/lib/browser/{get-block-properties-a5f2574c.js → get-block-properties-bc4c7be9.js} +2 -2
  29. package/vue2/lib/{node/get-block-properties-2204d735.cjs → browser/get-block-properties-ff494f28.cjs} +1 -1
  30. package/vue2/lib/browser/{get-processed-block-981ce262.cjs → get-processed-block-00d8b4d9.cjs} +1 -1
  31. package/vue2/lib/browser/{get-processed-block-9b23550f.js → get-processed-block-fcf89b2f.js} +2 -2
  32. package/vue2/lib/{node/index-43273102.js → browser/index-2e217cde.js} +390 -345
  33. package/vue2/lib/browser/index-97feec80.cjs +124 -0
  34. package/vue2/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
  35. package/vue2/lib/browser/index.cjs +1 -1
  36. package/vue2/lib/browser/index.js +1 -1
  37. package/vue2/lib/{edge/inlined-script-58b1138d.js → browser/inlined-script-0bb5d32b.js} +2 -2
  38. package/vue2/lib/browser/inlined-script-b7ea11cc.cjs +1 -0
  39. package/vue2/lib/{node/inlined-styles-73c1efea.cjs → browser/inlined-styles-68fc206b.cjs} +1 -1
  40. package/vue2/lib/{node/inlined-styles-f35650e9.js → browser/inlined-styles-e2e0a10c.js} +1 -1
  41. package/vue2/lib/{node/interactive-element-07235e63.cjs → browser/interactive-element-d3c5523b.cjs} +1 -1
  42. package/vue2/lib/{node/interactive-element-22405343.js → browser/interactive-element-dff8fe39.js} +5 -5
  43. package/vue2/lib/browser/{repeated-block-49fef627.cjs → repeated-block-07720e6b.cjs} +1 -1
  44. package/vue2/lib/{node/repeated-block-53bf7a45.js → browser/repeated-block-d24899a4.js} +2 -2
  45. package/vue2/lib/{node/styles-6a9d7ee1.cjs → browser/styles-13523f01.cjs} +2 -2
  46. package/vue2/lib/{node/styles-c2fd2724.js → browser/styles-c7b3d8ac.js} +2 -2
  47. package/vue2/lib/edge/{block-85fe2549.cjs → block-05cd2d1a.cjs} +2 -2
  48. package/vue2/lib/{browser/block-86d82810.js → edge/block-bd104a74.js} +7 -7
  49. package/vue2/lib/{node/block-styles-258f0e47.cjs → edge/block-styles-76f792ef.cjs} +1 -1
  50. package/vue2/lib/edge/{block-styles-9140aecf.js → block-styles-abd07e9a.js} +5 -5
  51. package/vue2/lib/{node/block-wrapper-1bdc3ca4.js → edge/block-wrapper-72353851.js} +5 -5
  52. package/vue2/lib/edge/{block-wrapper-e6392713.cjs → block-wrapper-c9fef722.cjs} +1 -1
  53. package/vue2/lib/edge/blocks/video/video.vue.d.ts +24 -2
  54. package/vue2/lib/{browser/blocks-wrapper-1d620d76.cjs → edge/blocks-wrapper-422482b9.cjs} +1 -1
  55. package/vue2/lib/{browser/blocks-wrapper-33f35ea5.js → edge/blocks-wrapper-44eb34d1.js} +1 -1
  56. package/vue2/lib/{node/component-ref-ccb3e639.js → edge/component-ref-73669490.js} +6 -6
  57. package/vue2/lib/{node/component-ref-5be913d9.cjs → edge/component-ref-823a3ade.cjs} +1 -1
  58. package/vue2/lib/edge/components/content/content.types.d.ts +0 -4
  59. package/vue2/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -1
  60. package/vue2/lib/edge/components/content-variants/helpers.d.ts +3 -3
  61. package/vue2/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
  62. package/vue2/lib/edge/constants/sdk-version.d.ts +1 -1
  63. package/vue2/lib/{node/content-8b7678bc.cjs → edge/content-cebdf20d.cjs} +1 -1
  64. package/vue2/lib/{browser/content-dc49d77b.js → edge/content-db69a308.js} +21 -22
  65. package/vue2/lib/edge/{css-5bd5388a.js → css-54e4ec80.js} +1 -1
  66. package/vue2/lib/{browser/css-a19d330c.cjs → edge/css-dabe7580.cjs} +1 -1
  67. package/vue2/lib/edge/enable-editor-9109594a.cjs +1 -0
  68. package/vue2/lib/{node/enable-editor-8b4a5b45.js → edge/enable-editor-d335545f.js} +15 -16
  69. package/vue2/lib/edge/{evaluate-7661cdf7.cjs → evaluate-10ad6e1c.cjs} +1 -1
  70. package/vue2/lib/edge/{evaluate-79ba5368.js → evaluate-99370fa6.js} +1 -1
  71. package/vue2/lib/{browser/get-block-actions-63de56e5.js → edge/get-block-actions-228eef05.js} +2 -2
  72. package/vue2/lib/edge/{get-block-actions-4ed31703.cjs → get-block-actions-96abe3ea.cjs} +1 -1
  73. package/vue2/lib/edge/{get-block-properties-c72eb3c0.js → get-block-properties-5ec0b641.js} +2 -2
  74. package/vue2/lib/{browser/get-block-properties-21c833e6.cjs → edge/get-block-properties-e2643a11.cjs} +1 -1
  75. package/vue2/lib/edge/{get-processed-block-e8256b7e.cjs → get-processed-block-9b3d9010.cjs} +1 -1
  76. package/vue2/lib/{node/get-processed-block-78fabb02.js → edge/get-processed-block-e5ee0bac.js} +2 -2
  77. package/vue2/lib/edge/{index-4cf9f60c.js → index-31aedf87.js} +390 -345
  78. package/vue2/lib/edge/index-f007c959.cjs +124 -0
  79. package/vue2/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
  80. package/vue2/lib/edge/index.cjs +1 -1
  81. package/vue2/lib/edge/index.js +1 -1
  82. package/vue2/lib/{node/inlined-script-da97caa2.js → edge/inlined-script-1fbdc086.js} +2 -2
  83. package/vue2/lib/edge/inlined-script-d732d8ca.cjs +1 -0
  84. package/vue2/lib/{browser/inlined-styles-9637cb58.cjs → edge/inlined-styles-49ba2b1e.cjs} +1 -1
  85. package/vue2/lib/edge/{inlined-styles-8c6cdbc5.js → inlined-styles-ba3931a6.js} +1 -1
  86. package/vue2/lib/{browser/interactive-element-d37313e0.cjs → edge/interactive-element-368f9d0d.cjs} +1 -1
  87. package/vue2/lib/{browser/interactive-element-c87a6c35.js → edge/interactive-element-c334da11.js} +5 -5
  88. package/vue2/lib/{browser/repeated-block-231b11b1.js → edge/repeated-block-731fdea1.js} +2 -2
  89. package/vue2/lib/edge/{repeated-block-8721baa8.cjs → repeated-block-fcdda74c.cjs} +1 -1
  90. package/vue2/lib/{browser/styles-6a6b8114.cjs → edge/styles-3f7ff927.cjs} +2 -2
  91. package/vue2/lib/{browser/styles-28f7ec70.js → edge/styles-8c4ee58d.js} +2 -2
  92. package/vue2/lib/node/{block-6c3981dc.js → block-ac098304.js} +7 -7
  93. package/vue2/lib/node/{block-575160ba.cjs → block-e30000ea.cjs} +2 -2
  94. package/vue2/lib/{browser/block-styles-132270d0.js → node/block-styles-59790d4f.js} +5 -5
  95. package/vue2/lib/{browser/block-styles-5b5e9888.cjs → node/block-styles-b7c0d773.cjs} +1 -1
  96. package/vue2/lib/{edge/block-wrapper-36a4a767.js → node/block-wrapper-584442d6.js} +5 -5
  97. package/vue2/lib/node/{block-wrapper-fed00059.cjs → block-wrapper-fc557c97.cjs} +1 -1
  98. package/vue2/lib/node/blocks/video/video.vue.d.ts +24 -2
  99. package/vue2/lib/node/{blocks-wrapper-031887f0.js → blocks-wrapper-3c044bbd.js} +1 -1
  100. package/vue2/lib/node/{blocks-wrapper-80b3a22f.cjs → blocks-wrapper-65858112.cjs} +1 -1
  101. package/vue2/lib/{browser/component-ref-d6254a68.js → node/component-ref-a6bc774c.js} +6 -6
  102. package/vue2/lib/{browser/component-ref-26a164ea.cjs → node/component-ref-e44e994d.cjs} +1 -1
  103. package/vue2/lib/node/components/content/content.types.d.ts +0 -4
  104. package/vue2/lib/node/components/content-variants/content-variants.vue.d.ts +1 -1
  105. package/vue2/lib/node/components/content-variants/helpers.d.ts +3 -3
  106. package/vue2/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
  107. package/vue2/lib/node/constants/sdk-version.d.ts +1 -1
  108. package/vue2/lib/node/{content-f80acd05.js → content-0c402bc4.js} +21 -22
  109. package/vue2/lib/{edge/content-199e7143.cjs → node/content-df8168e7.cjs} +1 -1
  110. package/vue2/lib/{edge/css-05af2335.cjs → node/css-41ae8b09.cjs} +1 -1
  111. package/vue2/lib/node/{css-ad18a8ab.js → css-6d74c64e.js} +1 -1
  112. package/vue2/lib/{edge/enable-editor-a32a425e.js → node/enable-editor-4f107d4f.js} +15 -16
  113. package/vue2/lib/node/enable-editor-9d4c56f2.cjs +1 -0
  114. package/vue2/lib/node/{evaluate-52887aac.js → evaluate-9ad3f2db.js} +1 -1
  115. package/vue2/lib/node/{evaluate-19fac854.cjs → evaluate-d4f7178b.cjs} +1 -1
  116. package/vue2/lib/node/{get-block-actions-65751661.cjs → get-block-actions-5cdee638.cjs} +1 -1
  117. package/vue2/lib/{edge/get-block-actions-5ae9dffc.js → node/get-block-actions-95e00934.js} +2 -2
  118. package/vue2/lib/node/{get-block-properties-cbc0612e.js → get-block-properties-a14bae21.js} +2 -2
  119. package/vue2/lib/{edge/get-block-properties-e0553a33.cjs → node/get-block-properties-c3729a6d.cjs} +1 -1
  120. package/vue2/lib/node/{get-processed-block-902c8e72.cjs → get-processed-block-72cc0b71.cjs} +1 -1
  121. package/vue2/lib/{edge/get-processed-block-f3dbc4e7.js → node/get-processed-block-f8cccb85.js} +2 -2
  122. package/vue2/lib/{browser/index-f82eab8f.js → node/index-0d27ca35.js} +390 -345
  123. package/vue2/lib/node/index-0fa06fd7.cjs +124 -0
  124. package/vue2/lib/node/index-helpers/blocks-exports.d.ts +1 -1
  125. package/vue2/lib/node/index.cjs +1 -1
  126. package/vue2/lib/node/index.js +1 -1
  127. package/vue2/lib/node/inlined-script-1f196594.cjs +1 -0
  128. package/vue2/lib/{browser/inlined-script-2d16b8db.js → node/inlined-script-e3588cc8.js} +2 -2
  129. package/vue2/lib/{browser/inlined-styles-fbbf7fd9.js → node/inlined-styles-120a3b8e.js} +1 -1
  130. package/vue2/lib/{edge/inlined-styles-a1951810.cjs → node/inlined-styles-fffaa510.cjs} +1 -1
  131. package/vue2/lib/{edge/interactive-element-1a5ee50b.cjs → node/interactive-element-a31daba4.cjs} +1 -1
  132. package/vue2/lib/{edge/interactive-element-2f0d2294.js → node/interactive-element-e01ee0b1.js} +5 -5
  133. package/vue2/lib/{edge/repeated-block-a32b01bc.js → node/repeated-block-0f75a865.js} +2 -2
  134. package/vue2/lib/node/{repeated-block-771e5e8b.cjs → repeated-block-4d665c95.cjs} +1 -1
  135. package/vue2/lib/{edge/styles-b2c8a706.cjs → node/styles-2ac48a81.cjs} +2 -2
  136. package/vue2/lib/{edge/styles-eab59896.js → node/styles-5804f1aa.js} +2 -2
  137. package/vue2/package.json +7 -1
  138. package/vue3/lib/{edge/block-wrapper.4bb452b4.js → browser/block-wrapper.08f5700f.js} +2 -2
  139. package/vue3/lib/browser/{block-wrapper.fc71d4d3.cjs → block-wrapper.90c9936a.cjs} +1 -1
  140. package/vue3/lib/browser/blocks/video/video.vue.d.ts +23 -1
  141. package/vue3/lib/{edge/component-ref.215d8eb3.js → browser/component-ref.5f90d51a.js} +2 -2
  142. package/vue3/lib/browser/{component-ref.f8946ad7.cjs → component-ref.b4629079.cjs} +1 -1
  143. package/vue3/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -3
  144. package/vue3/lib/browser/components/content/content.types.d.ts +0 -4
  145. package/vue3/lib/browser/components/content/content.vue.d.ts +0 -3
  146. package/vue3/lib/browser/components/content-variants/content-variants.vue.d.ts +2 -4
  147. package/vue3/lib/browser/components/content-variants/helpers.d.ts +3 -3
  148. package/vue3/lib/browser/components/content-variants/inlined-fns.d.ts +14 -0
  149. package/vue3/lib/browser/constants/sdk-version.d.ts +1 -1
  150. package/vue3/lib/{edge/get-block-actions.32987a91.js → browser/get-block-actions.d21cdbf2.js} +1 -1
  151. package/vue3/lib/{node/get-block-actions.3bf73664.cjs → browser/get-block-actions.f66d55a6.cjs} +1 -1
  152. package/vue3/lib/browser/index-helpers/blocks-exports.d.ts +1 -1
  153. package/vue3/lib/browser/index.231f04fb.cjs +161 -0
  154. package/vue3/lib/browser/{index.bd816233.js → index.2dd045c5.js} +802 -735
  155. package/vue3/lib/browser/index.cjs +1 -1
  156. package/vue3/lib/browser/index.js +1 -1
  157. package/vue3/lib/{edge/repeated-block.b5d1a5b6.cjs → browser/repeated-block.3739c1b9.cjs} +1 -1
  158. package/vue3/lib/{edge/repeated-block.d1e4f878.js → browser/repeated-block.c9323192.js} +2 -2
  159. package/vue3/lib/{browser/block-wrapper.32fa4b39.js → edge/block-wrapper.7d4dfc7f.js} +2 -2
  160. package/vue3/lib/edge/{block-wrapper.d36a195b.cjs → block-wrapper.e09cbe94.cjs} +1 -1
  161. package/vue3/lib/edge/blocks/video/video.vue.d.ts +23 -1
  162. package/vue3/lib/edge/{component-ref.09c0c561.cjs → component-ref.2ad33c60.cjs} +1 -1
  163. package/vue3/lib/{browser/component-ref.52b4ab91.js → edge/component-ref.4961077d.js} +2 -2
  164. package/vue3/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -3
  165. package/vue3/lib/edge/components/content/content.types.d.ts +0 -4
  166. package/vue3/lib/edge/components/content/content.vue.d.ts +0 -3
  167. package/vue3/lib/edge/components/content-variants/content-variants.vue.d.ts +2 -4
  168. package/vue3/lib/edge/components/content-variants/helpers.d.ts +3 -3
  169. package/vue3/lib/edge/components/content-variants/inlined-fns.d.ts +14 -0
  170. package/vue3/lib/edge/constants/sdk-version.d.ts +1 -1
  171. package/vue3/lib/{browser/get-block-actions.720b385e.cjs → edge/get-block-actions.04020988.cjs} +1 -1
  172. package/vue3/lib/{browser/get-block-actions.33a95ae9.js → edge/get-block-actions.32efcc46.js} +1 -1
  173. package/vue3/lib/edge/index-helpers/blocks-exports.d.ts +1 -1
  174. package/vue3/lib/edge/{index.cc0efb3b.js → index.55d20937.js} +1242 -1175
  175. package/vue3/lib/edge/index.62561aef.cjs +181 -0
  176. package/vue3/lib/edge/index.cjs +1 -1
  177. package/vue3/lib/edge/index.js +1 -1
  178. package/vue3/lib/{browser/repeated-block.41d43763.js → edge/repeated-block.7e02873b.js} +2 -2
  179. package/vue3/lib/{browser/repeated-block.4bb78d4d.cjs → edge/repeated-block.807172cf.cjs} +1 -1
  180. package/vue3/lib/node/{block-wrapper.027e2e58.cjs → block-wrapper.36bd8466.cjs} +1 -1
  181. package/vue3/lib/node/{block-wrapper.1f5bec88.js → block-wrapper.cb167bf8.js} +2 -2
  182. package/vue3/lib/node/blocks/video/video.vue.d.ts +23 -1
  183. package/vue3/lib/node/{component-ref.d2c6eedf.js → component-ref.c0f35899.js} +2 -2
  184. package/vue3/lib/node/{component-ref.5c293120.cjs → component-ref.d917bb03.cjs} +1 -1
  185. package/vue3/lib/node/components/content/components/enable-editor.vue.d.ts +0 -3
  186. package/vue3/lib/node/components/content/content.types.d.ts +0 -4
  187. package/vue3/lib/node/components/content/content.vue.d.ts +0 -3
  188. package/vue3/lib/node/components/content-variants/content-variants.vue.d.ts +2 -4
  189. package/vue3/lib/node/components/content-variants/helpers.d.ts +3 -3
  190. package/vue3/lib/node/components/content-variants/inlined-fns.d.ts +14 -0
  191. package/vue3/lib/node/constants/sdk-version.d.ts +1 -1
  192. package/vue3/lib/{edge/get-block-actions.b7d0a3c2.cjs → node/get-block-actions.50ea0112.cjs} +1 -1
  193. package/vue3/lib/node/{get-block-actions.68279ccf.js → get-block-actions.912d8c9e.js} +1 -1
  194. package/vue3/lib/node/index-helpers/blocks-exports.d.ts +1 -1
  195. package/vue3/lib/node/index.804c5a4a.cjs +201 -0
  196. package/vue3/lib/node/index.cjs +1 -1
  197. package/vue3/lib/node/{index.bb1871d7.js → index.f6a9eadf.js} +765 -698
  198. package/vue3/lib/node/index.js +1 -1
  199. package/vue3/lib/node/{repeated-block.6533598e.cjs → repeated-block.20e89559.cjs} +1 -1
  200. package/vue3/lib/node/{repeated-block.c5b9936f.js → repeated-block.a497caff.js} +2 -2
  201. package/vue3/package.json +7 -1
  202. package/vue2/lib/browser/enable-editor-ed3f647e.cjs +0 -1
  203. package/vue2/lib/browser/index-63eb9f8d.cjs +0 -32
  204. package/vue2/lib/browser/inlined-script-95114af2.cjs +0 -1
  205. package/vue2/lib/edge/enable-editor-ee8b2ba3.cjs +0 -1
  206. package/vue2/lib/edge/index-946de873.cjs +0 -32
  207. package/vue2/lib/edge/inlined-script-cd8bf7d3.cjs +0 -1
  208. package/vue2/lib/node/enable-editor-405441b9.cjs +0 -1
  209. package/vue2/lib/node/index-d8e34fec.cjs +0 -32
  210. package/vue2/lib/node/inlined-script-82af82d4.cjs +0 -1
  211. package/vue3/lib/browser/index.abbd01ce.cjs +0 -69
  212. package/vue3/lib/edge/index.ceec697c.cjs +0 -89
  213. package/vue3/lib/node/index.44e0d18b.cjs +0 -109
@@ -1,5 +1,5 @@
1
- import { defineComponent as g } from "vue";
2
- function O(e = {}, t, n) {
1
+ import { defineComponent as u } from "vue";
2
+ function E(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 O(e = {}, t, n) {
9
9
  }
10
10
  return o;
11
11
  }
12
- const ut = g({
12
+ const dt = u({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
16
- return { filterAttrs: O };
16
+ return { filterAttrs: E };
17
17
  },
18
18
  methods: {
19
19
  _classStringToObject(e) {
@@ -27,49 +27,49 @@ const ut = g({
27
27
  }
28
28
  }
29
29
  });
30
- function y(e, t, n, o, r, s, i, u) {
30
+ function p(e, t, n, o, r, s, i, f) {
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
- var d;
34
- if (i ? (d = function(l) {
33
+ var c;
34
+ if (i ? (c = function(l) {
35
35
  l = l || // cached call
36
36
  this.$vnode && this.$vnode.ssrContext || // stateful
37
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
- }, a._ssrRegister = d) : r && (d = u ? function() {
38
+ }, a._ssrRegister = c) : r && (c = f ? function() {
39
39
  r.call(
40
40
  this,
41
41
  (a.functional ? this.parent : this).$root.$options.shadowRoot
42
42
  );
43
- } : r), d)
43
+ } : r), c)
44
44
  if (a.functional) {
45
- a._injectStyles = d;
46
- var p = a.render;
47
- a.render = function(f, m) {
48
- return d.call(m), p(f, m);
45
+ a._injectStyles = c;
46
+ var v = a.render;
47
+ a.render = function(k, b) {
48
+ return c.call(b), v(k, b);
49
49
  };
50
50
  } else {
51
- var b = a.beforeCreate;
52
- a.beforeCreate = b ? [].concat(b, d) : [d];
51
+ var S = a.beforeCreate;
52
+ a.beforeCreate = S ? [].concat(S, c) : [c];
53
53
  }
54
54
  return {
55
55
  exports: e,
56
56
  options: a
57
57
  };
58
58
  }
59
- var dt = function() {
59
+ var ut = 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: { href: t.link, target: t.openLinkInNewTab ? "_blank" : void 0, role: "button" } }, "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
- }, mt = [], ft = /* @__PURE__ */ y(
63
- ut,
62
+ }, pt = [], mt = /* @__PURE__ */ p(
64
63
  dt,
65
- mt,
64
+ ut,
65
+ pt,
66
66
  !1,
67
67
  null,
68
68
  "ab46b8bd",
69
69
  null,
70
70
  null
71
71
  );
72
- const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
72
+ const ln = mt.exports, A = (e) => JSON.parse(JSON.stringify(e)), M = {
73
73
  small: {
74
74
  min: 320,
75
75
  default: 321,
@@ -85,11 +85,11 @@ const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
85
85
  default: 991,
86
86
  max: 1200
87
87
  }
88
- }, un = (e, t = K) => `@media (max-width: ${t[e].max}px)`, pt = ({
88
+ }, dn = (e, t = M) => `@media (max-width: ${t[e].max}px)`, ft = ({
89
89
  small: e,
90
90
  medium: t
91
91
  }) => {
92
- const n = V(K);
92
+ const n = A(M);
93
93
  if (!e || !t)
94
94
  return n;
95
95
  const o = Math.floor(e / 2);
@@ -111,19 +111,19 @@ const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
111
111
  min: s,
112
112
  default: s + 1
113
113
  }, n;
114
- }, C = "vue2", ht = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
114
+ }, y = "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
- }), bt = () => import("./inlined-styles-8c6cdbc5.js").then((e) => e.default).catch((e) => {
119
+ }), _t = () => import("./inlined-styles-ba3931a6.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
- }), _t = g({
124
+ }), bt = u({
125
125
  name: "builder-columns",
126
- components: { "inlined-styles": bt, blocks: ht },
126
+ components: { "inlined-styles": _t, blocks: ht },
127
127
  props: [
128
128
  "js",
129
129
  "space",
@@ -140,7 +140,7 @@ const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
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: C
143
+ TARGET: y
144
144
  };
145
145
  },
146
146
  computed: {
@@ -227,7 +227,7 @@ const ln = ft.exports, V = (e) => JSON.parse(JSON.stringify(e)), K = {
227
227
  },
228
228
  getWidthForBreakpointSize(e) {
229
229
  var n, o;
230
- return pt(
230
+ return ft(
231
231
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
232
232
  )[e].max;
233
233
  },
@@ -251,8 +251,8 @@ var gt = function() {
251
251
  flexGrow: "1"
252
252
  }, context: t.builderContext, registeredComponents: t.builderComponents, blocks: o.blocks } })], 1);
253
253
  })], 2);
254
- }, yt = [], vt = /* @__PURE__ */ y(
255
- _t,
254
+ }, yt = [], vt = /* @__PURE__ */ p(
255
+ bt,
256
256
  gt,
257
257
  yt,
258
258
  !1,
@@ -261,55 +261,55 @@ var gt = function() {
261
261
  null,
262
262
  null
263
263
  );
264
- const dn = vt.exports, St = g({
264
+ const un = vt.exports, St = u({
265
265
  name: "builder-fragment-component",
266
266
  props: []
267
267
  });
268
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
- }, xt = [], wt = /* @__PURE__ */ y(
271
+ }, Ct = [], xt = /* @__PURE__ */ p(
272
272
  St,
273
273
  kt,
274
- xt,
274
+ Ct,
275
275
  !1,
276
276
  null,
277
277
  null,
278
278
  null,
279
279
  null
280
280
  );
281
- const mn = wt.exports;
282
- function F(e) {
281
+ const pn = xt.exports;
282
+ function U(e) {
283
283
  return e.replace(/http(s)?:/, "");
284
284
  }
285
- function Ct(e = "", t, n) {
285
+ function wt(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 $t(e, t) {
289
+ function It(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 F(e);
293
+ return U(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 F(`${o[0]}_${s}${r}`);
297
+ return U(`${o[0]}_${s}${r}`);
298
298
  }
299
299
  return null;
300
300
  }
301
- function P(e) {
301
+ function T(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) => `${Ct(e, "width", r)} ${r}w`).concat([n]).join(", ");
308
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${wt(e, "width", r)} ${r}w`).concat([n]).join(", ");
309
309
  }
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;
310
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [It(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
311
311
  }
312
- const Tt = g({
312
+ const $t = u({
313
313
  name: "builder-image",
314
314
  props: [
315
315
  "image",
@@ -335,10 +335,10 @@ const Tt = g({
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"), P(t);
338
+ return console.debug("Removed given srcset"), T(t);
339
339
  } else if (this.image && !this.srcset)
340
- return P(t);
341
- return P(t);
340
+ return T(t);
341
+ return T(t);
342
342
  },
343
343
  webpSrcSet() {
344
344
  var e;
@@ -367,7 +367,7 @@ const Tt = g({
367
367
  }
368
368
  }
369
369
  });
370
- var It = function() {
370
+ var Tt = 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,9 +379,9 @@ var It = 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
- }, Rt = [], Pt = /* @__PURE__ */ y(
382
+ }, Rt = [], Et = /* @__PURE__ */ p(
383
+ $t,
383
384
  Tt,
384
- It,
385
385
  Rt,
386
386
  !1,
387
387
  null,
@@ -389,14 +389,14 @@ var It = function() {
389
389
  null,
390
390
  null
391
391
  );
392
- const fn = Pt.exports, At = g({
392
+ const mn = Et.exports, At = u({
393
393
  name: "builder-section-component",
394
394
  props: ["attributes", "maxWidth"],
395
395
  data() {
396
- return { filterAttrs: O };
396
+ return { filterAttrs: E };
397
397
  }
398
398
  });
399
- var Ot = function() {
399
+ var Vt = 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 Ot = 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
- }, Vt = [], Et = /* @__PURE__ */ y(
413
+ }, Pt = [], Ot = /* @__PURE__ */ p(
414
414
  At,
415
- Ot,
416
415
  Vt,
416
+ Pt,
417
417
  !1,
418
418
  null,
419
419
  null,
420
420
  null,
421
421
  null
422
422
  );
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 ({
423
+ const fn = Ot.exports, x = "[Builder.io]: ", _ = {
424
+ log: (...e) => console.log(x, ...e),
425
+ error: (...e) => console.error(x, ...e),
426
+ warn: (...e) => console.warn(x, ...e),
427
+ debug: (...e) => console.debug(x, ...e)
428
+ }, Bt = 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 B({
434
+ return O({
435
435
  model: t.model,
436
436
  apiKey: e.apiKey,
437
437
  apiVersion: e.apiVersion,
@@ -441,16 +441,16 @@ const pn = Et.exports, T = "[Builder.io]: ", x = {
441
441
  }
442
442
  }
443
443
  }).catch((n) => {
444
- x.error("Could not fetch symbol content: ", n);
444
+ _.error("Could not fetch symbol content: ", n);
445
445
  });
446
- }, Bt = () => Promise.resolve().then(() => Ae).then((e) => e.default).catch((e) => {
446
+ }, Nt = () => 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
- }), jt = g({
451
+ }), jt = u({
452
452
  name: "builder-symbol",
453
- components: { "content-variants": Bt },
453
+ components: { "content-variants": Nt },
454
454
  props: [
455
455
  "js",
456
456
  "attributes",
@@ -461,7 +461,7 @@ const pn = Et.exports, T = "[Builder.io]: ", x = {
461
461
  ],
462
462
  data() {
463
463
  var e;
464
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: O };
464
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: E };
465
465
  },
466
466
  mounted() {
467
467
  this.setContent();
@@ -492,7 +492,7 @@ const pn = Et.exports, T = "[Builder.io]: ", x = {
492
492
  },
493
493
  methods: {
494
494
  setContent() {
495
- this.contentToUse || Nt({
495
+ this.contentToUse || Bt({
496
496
  symbol: this.symbol,
497
497
  builderContextValue: this.builderContext
498
498
  }).then((e) => {
@@ -510,7 +510,7 @@ const pn = Et.exports, T = "[Builder.io]: ", x = {
510
510
  }
511
511
  }
512
512
  });
513
- var Ft = function() {
513
+ var Ut = 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,17 +518,17 @@ var Ft = 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
- }, Ut = [], Mt = /* @__PURE__ */ y(
521
+ }, Dt = [], Ft = /* @__PURE__ */ p(
522
522
  jt,
523
- Ft,
524
523
  Ut,
524
+ Dt,
525
525
  !1,
526
526
  null,
527
527
  null,
528
528
  null,
529
529
  null
530
530
  );
531
- const hn = Mt.exports, Lt = g({
531
+ const hn = Ft.exports, Lt = u({
532
532
  name: "builder-text",
533
533
  props: ["text"]
534
534
  });
@@ -538,17 +538,17 @@ var Wt = function() {
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
- }, Kt = [], zt = /* @__PURE__ */ y(
541
+ }, Mt = [], Kt = /* @__PURE__ */ p(
542
542
  Lt,
543
543
  Wt,
544
- Kt,
544
+ Mt,
545
545
  !1,
546
546
  null,
547
547
  null,
548
548
  null,
549
549
  null
550
550
  );
551
- const bn = zt.exports, Gt = g({
551
+ const _n = Kt.exports, zt = u({
552
552
  name: "builder-video",
553
553
  props: [
554
554
  "autoPlay",
@@ -556,12 +556,16 @@ const bn = zt.exports, Gt = g({
556
556
  "controls",
557
557
  "loop",
558
558
  "playsInline",
559
- "attributes",
560
559
  "preload",
560
+ "attributes",
561
561
  "fit",
562
562
  "position",
563
+ "aspectRatio",
563
564
  "video",
564
- "posterImage"
565
+ "posterImage",
566
+ "lazyLoad",
567
+ "fitContent",
568
+ "builderBlock"
565
569
  ],
566
570
  computed: {
567
571
  videoProps() {
@@ -585,16 +589,17 @@ const bn = zt.exports, Gt = g({
585
589
  },
586
590
  spreadProps() {
587
591
  return {
588
- ...this.attributes,
589
592
  ...this.videoProps
590
593
  };
591
594
  }
592
595
  }
593
596
  });
594
- var Dt = function() {
595
- var o;
597
+ var Gt = function() {
598
+ var o, r, s, i, f, a, c;
596
599
  var t = this, n = t._self._c;
597
- return t._self._setupProxy, n("video", t._b({ style: {
600
+ return t._self._setupProxy, n("div", { style: {
601
+ position: "relative"
602
+ } }, [n("video", t._b({ staticClass: "builder-video", style: {
598
603
  width: "100%",
599
604
  height: "100%",
600
605
  ...(o = t.attributes) == null ? void 0 : o.style,
@@ -602,11 +607,34 @@ var Dt = function() {
602
607
  objectPosition: t.position,
603
608
  // Hack to get object fit to work as expected and
604
609
  // not have the video overflow
605
- borderRadius: 1
606
- }, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1));
607
- }, Ht = [], Jt = /* @__PURE__ */ y(
610
+ zIndex: 2,
611
+ borderRadius: "1px",
612
+ ...t.aspectRatio ? {
613
+ position: "absolute"
614
+ } : null
615
+ }, attrs: { preload: t.preload || "metadata", src: t.video || "no-src", poster: t.posterImage } }, "video", t.spreadProps, !1), [t.lazyLoad ? t._e() : [n("source", { attrs: { type: "video/mp4", src: t.video } })]], 2), t.aspectRatio && !(t.fitContent && ((s = (r = t.builderBlock) == null ? void 0 : r.children) != null && s.length)) ? [n("div", { style: {
616
+ width: "100%",
617
+ paddingTop: t.aspectRatio * 100 + "%",
618
+ pointerEvents: "none",
619
+ fontSize: "0px"
620
+ } })] : t._e(), (f = (i = t.builderBlock) == null ? void 0 : i.children) != null && f.length && t.fitContent ? [n("div", { style: {
621
+ display: "flex",
622
+ flexDirection: "column",
623
+ alignItems: "stretch"
624
+ } }, [t._t("default")], 2)] : t._e(), (c = (a = t.builderBlock) == null ? void 0 : a.children) != null && c.length && !t.fitContent ? [n("div", { style: {
625
+ pointerEvents: "none",
626
+ display: "flex",
627
+ flexDirection: "column",
628
+ alignItems: "stretch",
629
+ position: "absolute",
630
+ top: "0",
631
+ left: "0",
632
+ width: "100%",
633
+ height: "100%"
634
+ } }, [t._t("default")], 2)] : t._e()], 2);
635
+ }, Ht = [], Qt = /* @__PURE__ */ p(
636
+ zt,
608
637
  Gt,
609
- Dt,
610
638
  Ht,
611
639
  !1,
612
640
  null,
@@ -614,7 +642,7 @@ var Dt = function() {
614
642
  null,
615
643
  null
616
644
  );
617
- const _n = Jt.exports, Xt = Symbol(), qt = {
645
+ const bn = Qt.exports, Jt = Symbol(), Xt = {
618
646
  Builder: {
619
647
  content: null,
620
648
  context: {},
@@ -627,26 +655,26 @@ const _n = Jt.exports, Xt = Symbol(), qt = {
627
655
  componentInfos: {},
628
656
  inheritedStyles: {}
629
657
  },
630
- key: Xt
631
- }, Qt = Symbol(), Yt = {
658
+ key: Jt
659
+ }, Yt = Symbol(), qt = {
632
660
  Components: { registeredComponents: {} },
633
- key: Qt
634
- }, Zt = () => import("./block-88cc78c4.js").then((e) => e.default).catch((e) => {
661
+ key: Yt
662
+ }, Zt = () => import("./block-bd104a74.js").then((e) => e.default).catch((e) => {
635
663
  throw console.error(
636
664
  "Error while attempting to dynamically import component Block at ../block/block.vue",
637
665
  e
638
666
  ), e;
639
- }), te = () => import("./block-styles-9140aecf.js").then((e) => e.default).catch((e) => {
667
+ }), te = () => import("./block-styles-abd07e9a.js").then((e) => e.default).catch((e) => {
640
668
  throw console.error(
641
669
  "Error while attempting to dynamically import component BlockStyles at ../block/components/block-styles.vue",
642
670
  e
643
671
  ), e;
644
- }), ee = () => import("./blocks-wrapper-dcd7b27a.js").then((e) => e.default).catch((e) => {
672
+ }), ee = () => import("./blocks-wrapper-44eb34d1.js").then((e) => e.default).catch((e) => {
645
673
  throw console.error(
646
674
  "Error while attempting to dynamically import component BlocksWrapper at ./blocks-wrapper.vue",
647
675
  e
648
676
  ), e;
649
- }), ne = g({
677
+ }), ne = u({
650
678
  name: "builder-blocks",
651
679
  components: {
652
680
  "blocks-wrapper": ee,
@@ -662,8 +690,8 @@ const _n = Jt.exports, Xt = Symbol(), qt = {
662
690
  "registeredComponents"
663
691
  ],
664
692
  inject: {
665
- builderContext: qt.key,
666
- componentsContext: Yt.key
693
+ builderContext: Xt.key,
694
+ componentsContext: qt.key
667
695
  }
668
696
  });
669
697
  var oe = function() {
@@ -673,7 +701,7 @@ var oe = function() {
673
701
  }) : t._e(), t.blocks ? t._l(t.blocks, function(o, r) {
674
702
  return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: t.context || t.builderContext } });
675
703
  }) : t._e()], 2);
676
- }, re = [], se = /* @__PURE__ */ y(
704
+ }, re = [], se = /* @__PURE__ */ p(
677
705
  ne,
678
706
  oe,
679
707
  re,
@@ -683,11 +711,11 @@ var oe = function() {
683
711
  null,
684
712
  null
685
713
  );
686
- const z = se.exports, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
714
+ const K = se.exports, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
687
715
  __proto__: null,
688
- default: z
689
- }, Symbol.toStringTag, { value: "Module" })), w = (e) => e != null;
690
- function v() {
716
+ default: K
717
+ }, Symbol.toStringTag, { value: "Module" })), g = (e) => e != null;
718
+ function m() {
691
719
  return typeof window < "u" && typeof document < "u";
692
720
  }
693
721
  const ae = (e) => {
@@ -695,7 +723,7 @@ const ae = (e) => {
695
723
  return e;
696
724
  const t = e.split(".");
697
725
  return t.length > 2 ? t.slice(1).join(".") : e;
698
- }, G = ({
726
+ }, z = ({
699
727
  name: e,
700
728
  canTrack: t
701
729
  }) => {
@@ -703,15 +731,15 @@ const ae = (e) => {
703
731
  try {
704
732
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
705
733
  } catch (o) {
706
- x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
734
+ _.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
707
735
  return;
708
736
  }
709
- }, D = async (e) => G(e), ce = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(w).join("; "), le = [["secure", ""], ["SameSite", "None"]], ue = ({
737
+ }, G = async (e) => z(e), ce = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(g).join("; "), le = [["secure", ""], ["SameSite", "None"]], de = ({
710
738
  name: e,
711
739
  value: t,
712
740
  expires: n
713
741
  }) => {
714
- const r = (v() ? location.protocol === "https:" : !0) ? le : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", ae(window.location.hostname)], ...r];
742
+ const r = (m() ? location.protocol === "https:" : !0) ? le : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", ae(window.location.hostname)], ...r];
715
743
  return ce(i);
716
744
  }, H = async ({
717
745
  name: e,
@@ -722,33 +750,33 @@ const ae = (e) => {
722
750
  try {
723
751
  if (!o)
724
752
  return;
725
- const r = ue({
753
+ const r = de({
726
754
  name: e,
727
755
  value: t,
728
756
  expires: n
729
757
  });
730
758
  document.cookie = r;
731
759
  } catch (r) {
732
- x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
760
+ _.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
733
761
  }
734
- }, de = "builder.tests", E = (e) => `${de}.${e}`, me = ({
762
+ }, ue = "builder.tests", V = (e) => `${ue}.${e}`, pe = ({
735
763
  contentId: e
736
- }) => D({
737
- name: E(e),
764
+ }) => G({
765
+ name: V(e),
738
766
  canTrack: !0
739
- }), fe = ({
767
+ }), me = ({
740
768
  contentId: e
741
- }) => G({
742
- name: E(e),
769
+ }) => z({
770
+ name: V(e),
743
771
  canTrack: !0
744
- }), pe = ({
772
+ }), fe = ({
745
773
  contentId: e,
746
774
  value: t
747
775
  }) => H({
748
- name: E(e),
776
+ name: V(e),
749
777
  value: t,
750
778
  canTrack: !0
751
- }), J = (e) => w(e.id) && w(e.variations) && Object.keys(e.variations).length > 0, he = ({
779
+ }), Q = (e) => g(e.id) && g(e.variations) && Object.keys(e.variations).length > 0, he = ({
752
780
  id: e,
753
781
  variations: t
754
782
  }) => {
@@ -761,15 +789,15 @@ const ae = (e) => {
761
789
  return s;
762
790
  }
763
791
  return e;
764
- }, X = (e) => {
792
+ }, J = (e) => {
765
793
  const t = he(e);
766
- return pe({
794
+ return fe({
767
795
  contentId: e.id,
768
796
  value: t
769
797
  }).catch((n) => {
770
- x.error("could not store A/B test variation: ", n);
798
+ _.error("could not store A/B test variation: ", n);
771
799
  }), t;
772
- }, q = ({
800
+ }, X = ({
773
801
  item: e,
774
802
  testGroupId: t
775
803
  }) => {
@@ -783,7 +811,7 @@ const ae = (e) => {
783
811
  testVariationId: n.id,
784
812
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
785
813
  };
786
- }, be = ({
814
+ }, _e = ({
787
815
  item: e,
788
816
  canTrack: t
789
817
  }) => {
@@ -791,14 +819,14 @@ const ae = (e) => {
791
819
  return e;
792
820
  if (!e)
793
821
  return;
794
- if (!J(e))
822
+ if (!Q(e))
795
823
  return e;
796
- const n = fe({
824
+ const n = me({
797
825
  contentId: e.id
798
- }) || X({
826
+ }) || J({
799
827
  variations: e.variations,
800
828
  id: e.id
801
- }), o = q({
829
+ }), o = X({
802
830
  item: e,
803
831
  testGroupId: n
804
832
  });
@@ -806,18 +834,18 @@ const ae = (e) => {
806
834
  ...e,
807
835
  ...o
808
836
  };
809
- }, _e = async ({
837
+ }, be = async ({
810
838
  item: e,
811
839
  canTrack: t
812
840
  }) => {
813
- if (!t || !J(e))
841
+ if (!t || !Q(e))
814
842
  return e;
815
- const o = await me({
843
+ const o = await pe({
816
844
  contentId: e.id
817
- }) || X({
845
+ }) || J({
818
846
  variations: e.variations,
819
847
  id: e.id
820
- }), r = q({
848
+ }), r = X({
821
849
  item: e,
822
850
  testGroupId: o
823
851
  });
@@ -825,118 +853,135 @@ const ae = (e) => {
825
853
  ...e,
826
854
  ...r
827
855
  };
828
- }, A = (e) => w(e) ? e : !0, I = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
829
- ...t,
830
- testVariationId: t.id,
831
- id: e == null ? void 0 : e.id
832
- })), ge = ({
833
- canTrack: e,
834
- content: t
835
- }) => !(!(I(t).length > 0) || !e);
836
- function ye(e, t, n) {
837
- var i;
838
- function o() {
839
- function u(m, h, _) {
840
- let S = "";
841
- if (_) {
842
- const c = /* @__PURE__ */ new Date();
843
- c.setTime(c.getTime() + _ * 24 * 60 * 60 * 1e3), S = "; expires=" + c.toUTCString();
856
+ }, R = (e) => g(e) ? e : !0, ge = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
857
+ function getAndSetVariantId() {
858
+ function setCookie(name, value, days) {
859
+ let expires = '';
860
+ if (days) {
861
+ const date = new Date();
862
+ date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
863
+ expires = '; expires=' + date.toUTCString();
844
864
  }
845
- document.cookie = m + "=" + (h || "") + S + "; path=/; Secure; SameSite=None";
865
+ document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
846
866
  }
847
- function a(m) {
848
- const h = m + "=", _ = document.cookie.split(";");
849
- for (let S = 0; S < _.length; S++) {
850
- let c = _[S];
851
- for (; c.charAt(0) === " "; )
852
- c = c.substring(1, c.length);
853
- if (c.indexOf(h) === 0)
854
- return c.substring(h.length, c.length);
867
+ function getCookie(name) {
868
+ const nameEQ = name + '=';
869
+ const ca = document.cookie.split(';');
870
+ for (let i = 0; i < ca.length; i++) {
871
+ let c = ca[i];
872
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
873
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
855
874
  }
856
875
  return null;
857
876
  }
858
- const d = `builder.tests.${e}`, p = a(d), b = t.map((m) => m.id).concat(e);
859
- if (p && b.includes(p))
860
- return p;
861
- let l = 0;
862
- const f = Math.random();
863
- for (let m = 0; m < t.length; m++) {
864
- const h = t[m], _ = h.testRatio;
865
- if (l += _, f < l)
866
- return u(d, h.id), h.id;
877
+ const cookieName = \`builder.tests.\${contentId}\`;
878
+ const variantInCookie = getCookie(cookieName);
879
+ const availableIDs = variants.map(vr => vr.id).concat(contentId);
880
+ if (variantInCookie && availableIDs.includes(variantInCookie)) {
881
+ return variantInCookie;
882
+ }
883
+ let n = 0;
884
+ const random = Math.random();
885
+ for (let i = 0; i < variants.length; i++) {
886
+ const variant = variants[i];
887
+ const testRatio = variant.testRatio;
888
+ n += testRatio;
889
+ if (random < n) {
890
+ setCookie(cookieName, variant.id);
891
+ return variant.id;
892
+ }
867
893
  }
868
- return u(d, e), e;
894
+ setCookie(cookieName, contentId);
895
+ return contentId;
869
896
  }
870
- const r = o(), s = (i = document.currentScript) == null ? void 0 : i.previousElementSibling;
871
- if (n) {
872
- s.remove();
873
- const u = document.currentScript;
874
- u == null || u.remove();
897
+ const winningVariantId = getAndSetVariantId();
898
+ const styleEl = document.currentScript?.previousElementSibling;
899
+ if (isHydrationTarget) {
900
+ styleEl.remove();
901
+ const thisScriptEl = document.currentScript;
902
+ thisScriptEl?.remove();
875
903
  } else {
876
- const u = t.concat({
877
- id: e
878
- }).filter((a) => a.id !== r).map((a) => `.variant-${a.id} { display: none; }
879
- `).join("");
880
- s.innerHTML = u;
904
+ const newStyleStr = variants.concat({
905
+ id: contentId
906
+ }).filter(variant => variant.id !== winningVariantId).map(value => {
907
+ return \`.variant-\${value.id} { display: none; }
908
+ \`;
909
+ }).join('');
910
+ styleEl.innerHTML = newStyleStr;
881
911
  }
882
- }
883
- function ve(e, t, n) {
884
- var a;
885
- if (!navigator.cookieEnabled)
912
+ }`, ye = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
913
+ if (!navigator.cookieEnabled) {
886
914
  return;
887
- function o(d) {
888
- const p = d + "=", b = document.cookie.split(";");
889
- for (let l = 0; l < b.length; l++) {
890
- let f = b[l];
891
- for (; f.charAt(0) === " "; )
892
- f = f.substring(1, f.length);
893
- if (f.indexOf(p) === 0)
894
- return f.substring(p.length, f.length);
915
+ }
916
+ function getCookie(name) {
917
+ const nameEQ = name + '=';
918
+ const ca = document.cookie.split(';');
919
+ for (let i = 0; i < ca.length; i++) {
920
+ let c = ca[i];
921
+ while (c.charAt(0) === ' ') c = c.substring(1, c.length);
922
+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
895
923
  }
896
924
  return null;
897
925
  }
898
- const r = `builder.tests.${t}`, s = o(r), i = (a = document.currentScript) == null ? void 0 : a.parentElement, u = e === t;
899
- if (s === e) {
900
- if (u)
901
- return;
902
- i == null || i.removeAttribute("hidden"), i == null || i.removeAttribute("aria-hidden");
903
- } else {
904
- u && (n ? i == null || i.remove() : (i == null || i.setAttribute("hidden", "true"), i == null || i.setAttribute("aria-hidden", "true")));
905
- return;
926
+ const cookieName = \`builder.tests.\${defaultContentId}\`;
927
+ const winningVariant = getCookie(cookieName);
928
+ const parentDiv = document.currentScript?.parentElement;
929
+ const isDefaultContent = variantContentId === defaultContentId;
930
+ const isWinningVariant = winningVariant === variantContentId;
931
+ if (isWinningVariant && !isDefaultContent) {
932
+ parentDiv?.removeAttribute('hidden');
933
+ parentDiv?.removeAttribute('aria-hidden');
934
+ } else if (!isWinningVariant && isDefaultContent) {
935
+ parentDiv?.setAttribute('hidden', 'true');
936
+ parentDiv?.setAttribute('aria-hidden', 'true');
906
937
  }
907
- }
908
- const Se = (e) => e === "react" || e === "reactNative", Q = Se(C), Y = "builderIoAbTest", Z = "builderIoRenderContent", ke = () => {
909
- const e = ye.toString().replace(/\s+/g, " "), t = ve.toString().replace(/\s+/g, " ");
910
- return `
911
- window.${Y} = ${e}
912
- window.${Z} = ${t}
913
- `;
914
- }, xe = (e, t) => `
915
- window.${Y}("${t}",${JSON.stringify(e)}, ${Q})`, gn = ({
938
+ if (isHydrationTarget) {
939
+ if (!isWinningVariant) {
940
+ parentDiv?.remove();
941
+ }
942
+ const thisScriptEl = document.currentScript;
943
+ thisScriptEl?.remove();
944
+ }
945
+ return;
946
+ }`, Y = "builderIoAbTest", q = "builderIoRenderContent", w = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
947
+ ...t,
948
+ testVariationId: t.id,
949
+ id: e == null ? void 0 : e.id
950
+ })), ve = ({
951
+ canTrack: e,
952
+ content: t
953
+ }) => !(!(w(t).length > 0) || !e), Se = (e) => e === "react" || e === "reactNative", Z = Se(y), ke = () => `
954
+ window.${Y} = ${ge}
955
+ window.${q} = ${ye}
956
+ `, Ce = (e, t) => `
957
+ window.${Y}(
958
+ "${t}",${JSON.stringify(e)}, ${Z}
959
+ )`, gn = ({
916
960
  contentId: e,
917
961
  variationId: t
918
- }) => `
919
- window.${Z}("${t}", "${e}", ${Q})`, we = () => import("./content-ad722031.js").then((e) => e.default).catch((e) => {
962
+ }) => `window.${q}(
963
+ "${t}", "${e}", ${Z}
964
+ )`, xe = () => import("./content-db69a308.js").then((e) => e.default).catch((e) => {
920
965
  throw console.error(
921
966
  "Error while attempting to dynamically import component ContentComponent at ../content/content.vue",
922
967
  e
923
968
  ), e;
924
- }), Ce = () => import("./inlined-script-58b1138d.js").then((e) => e.default).catch((e) => {
969
+ }), we = () => import("./inlined-script-1fbdc086.js").then((e) => e.default).catch((e) => {
925
970
  throw console.error(
926
971
  "Error while attempting to dynamically import component InlinedScript at ../inlined-script.vue",
927
972
  e
928
973
  ), e;
929
- }), $e = () => import("./inlined-styles-8c6cdbc5.js").then((e) => e.default).catch((e) => {
974
+ }), Ie = () => import("./inlined-styles-ba3931a6.js").then((e) => e.default).catch((e) => {
930
975
  throw console.error(
931
976
  "Error while attempting to dynamically import component InlinedStyles at ../inlined-styles.vue",
932
977
  e
933
978
  ), e;
934
- }), Te = g({
979
+ }), $e = u({
935
980
  name: "content-variants",
936
981
  components: {
937
- "inlined-script": Ce,
938
- "inlined-styles": $e,
939
- "content-component": we
982
+ "inlined-script": we,
983
+ "inlined-styles": Ie,
984
+ "content-component": xe
940
985
  },
941
986
  props: [
942
987
  "canTrack",
@@ -954,23 +999,23 @@ const Se = (e) => e === "react" || e === "reactNative", Q = Se(C), Y = "builderI
954
999
  ],
955
1000
  data() {
956
1001
  return {
957
- shouldRenderVariants: ge({
958
- canTrack: A(this.canTrack),
1002
+ shouldRenderVariants: ve({
1003
+ canTrack: R(this.canTrack),
959
1004
  content: this.content
960
1005
  }),
961
- TARGET: C,
1006
+ TARGET: y,
962
1007
  getScriptString: ke,
963
- getVariants: I
1008
+ getVariants: w
964
1009
  };
965
1010
  },
966
1011
  mounted() {
967
1012
  this.shouldRenderVariants = !1;
968
1013
  },
969
1014
  computed: {
970
- variantScriptStr() {
1015
+ updateCookieAndStylesScriptStr() {
971
1016
  var e;
972
- return xe(
973
- I(this.content).map((t) => ({
1017
+ return Ce(
1018
+ w(this.content).map((t) => ({
974
1019
  id: t.testVariationId,
975
1020
  testRatio: t.testRatio
976
1021
  })),
@@ -978,31 +1023,31 @@ const Se = (e) => e === "react" || e === "reactNative", Q = Se(C), Y = "builderI
978
1023
  );
979
1024
  },
980
1025
  hideVariantsStyleString() {
981
- return I(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
1026
+ return w(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
982
1027
  },
983
1028
  defaultContent() {
984
1029
  var e;
985
1030
  return this.shouldRenderVariants ? {
986
1031
  ...this.content,
987
1032
  testVariationId: (e = this.content) == null ? void 0 : e.id
988
- } : be({
1033
+ } : _e({
989
1034
  item: this.content,
990
- canTrack: A(this.canTrack)
1035
+ canTrack: R(this.canTrack)
991
1036
  });
992
1037
  }
993
1038
  }
994
1039
  });
995
- var Ie = function() {
996
- var o, r;
1040
+ var Te = function() {
1041
+ var o;
997
1042
  var t = this, n = t._self._c;
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) {
999
- 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 } });
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", {
1043
+ 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.updateCookieAndStylesScriptStr } }), t._l(t.getVariants(t.content), function(r, s) {
1044
+ return n("content-component", { key: r.testVariationId, attrs: { content: r, showContent: !1, 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 } });
1045
+ })] : t._e(), n("content-component", t._b({ attrs: { content: t.defaultContent, 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
1046
  key: t.shouldRenderVariants.toString()
1002
1047
  }, !1))], 2);
1003
- }, Re = [], Pe = /* @__PURE__ */ y(
1048
+ }, Re = [], Ee = /* @__PURE__ */ p(
1049
+ $e,
1004
1050
  Te,
1005
- Ie,
1006
1051
  Re,
1007
1052
  !1,
1008
1053
  null,
@@ -1010,38 +1055,38 @@ var Ie = function() {
1010
1055
  null,
1011
1056
  null
1012
1057
  );
1013
- const tt = Pe.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1058
+ const tt = Ee.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1014
1059
  __proto__: null,
1015
1060
  default: tt
1016
- }, Symbol.toStringTag, { value: "Module" })), yn = z, vn = tt;
1017
- function Oe() {
1018
- return v() && window.self !== window.top;
1061
+ }, Symbol.toStringTag, { value: "Module" })), yn = K, vn = tt;
1062
+ function Ve() {
1063
+ return m() && window.self !== window.top;
1019
1064
  }
1020
1065
  function et() {
1021
- return Oe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1066
+ return Ve() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1022
1067
  }
1023
1068
  function Sn() {
1024
- return !v() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1069
+ return !m() || et() ? !1 : location.search.indexOf("builder.preview=") !== -1;
1025
1070
  }
1026
- const kn = [], xn = (e) => ({
1071
+ const kn = [], Cn = (e) => ({
1027
1072
  type: "builder.registerComponent",
1028
- data: Ne(e)
1029
- }), Ve = (e) => {
1073
+ data: Be(e)
1074
+ }), Pe = (e) => {
1030
1075
  const t = e.toString().trim();
1031
1076
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1032
- }, Ee = (e) => typeof e == "function" ? Ve(e) : V(e), Ne = ({
1077
+ }, Oe = (e) => typeof e == "function" ? Pe(e) : A(e), Be = ({
1033
1078
  inputs: e,
1034
1079
  ...t
1035
1080
  }) => ({
1036
- ...V(t),
1081
+ ...A(t),
1037
1082
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
1038
1083
  ...o,
1039
- [r]: Ee(s)
1084
+ [r]: Oe(s)
1040
1085
  }), {}))
1041
- }), U = {};
1042
- function wn(e, t) {
1043
- let n = U[e];
1044
- if (n || (n = U[e] = []), n.push(t), v()) {
1086
+ }), D = {};
1087
+ function xn(e, t) {
1088
+ let n = D[e];
1089
+ if (n || (n = D[e] = []), n.push(t), m()) {
1045
1090
  const o = {
1046
1091
  type: "builder.register",
1047
1092
  data: {
@@ -1056,41 +1101,41 @@ function wn(e, t) {
1056
1101
  }
1057
1102
  }
1058
1103
  }
1059
- const M = {};
1060
- function Cn(e) {
1061
- if (v()) {
1062
- Object.assign(M, e);
1104
+ const F = {};
1105
+ function wn(e) {
1106
+ if (m()) {
1107
+ Object.assign(F, e);
1063
1108
  const t = {
1064
1109
  type: "builder.settingsChange",
1065
- data: M
1110
+ data: F
1066
1111
  };
1067
1112
  parent.postMessage(t, "*");
1068
1113
  }
1069
1114
  }
1070
- function Be() {
1115
+ function Ne() {
1071
1116
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1072
1117
  }
1073
1118
  function je() {
1074
- const e = Be().fetch;
1119
+ const e = Ne().fetch;
1075
1120
  if (typeof e > "u")
1076
1121
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1077
1122
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1078
1123
  return e;
1079
1124
  }
1080
- const Fe = je();
1081
- function R(e, t = null, n = ".") {
1125
+ const Ue = je();
1126
+ function I(e, t = null, n = ".") {
1082
1127
  return Object.keys(e).reduce((o, r) => {
1083
1128
  const s = e[r], i = [t, r].filter(Boolean).join(n);
1084
1129
  return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
1085
1130
  ...o,
1086
- ...R(s, i, n)
1131
+ ...I(s, i, n)
1087
1132
  } : {
1088
1133
  ...o,
1089
1134
  [i]: s
1090
1135
  };
1091
1136
  }, {});
1092
1137
  }
1093
- const Ue = "v3", L = "builder.", Me = "options.", Le = (e) => {
1138
+ const De = "v3", L = "builder.", Fe = "options.", Le = (e) => {
1094
1139
  const t = {};
1095
1140
  return e.forEach((n, o) => {
1096
1141
  t[o] = n;
@@ -1101,16 +1146,16 @@ const Ue = "v3", L = "builder.", Me = "options.", Le = (e) => {
1101
1146
  const t = ot(e), n = {};
1102
1147
  return Object.keys(t).forEach((o) => {
1103
1148
  if (o.startsWith(L)) {
1104
- const r = o.replace(L, "").replace(Me, "");
1149
+ const r = o.replace(L, "").replace(Fe, "");
1105
1150
  n[r] = t[o];
1106
1151
  }
1107
1152
  }), n;
1108
1153
  }, We = () => {
1109
- if (!v())
1154
+ if (!m())
1110
1155
  return {};
1111
1156
  const e = new URLSearchParams(window.location.search);
1112
1157
  return nt(e);
1113
- }, ot = (e) => e instanceof URLSearchParams ? Le(e) : e, W = (e) => typeof e == "number" && !isNaN(e) && e >= 0, N = (e) => {
1158
+ }, ot = (e) => e instanceof URLSearchParams ? Le(e) : e, W = (e) => typeof e == "number" && !isNaN(e) && e >= 0, P = (e) => {
1114
1159
  let {
1115
1160
  noTraverse: t = !1
1116
1161
  } = e;
@@ -1120,121 +1165,121 @@ const Ue = "v3", L = "builder.", Me = "options.", Le = (e) => {
1120
1165
  query: r,
1121
1166
  model: s,
1122
1167
  apiKey: i,
1123
- includeRefs: u = !0,
1168
+ includeRefs: f = !0,
1124
1169
  enrich: a,
1125
- locale: d,
1126
- apiVersion: p = Ue,
1127
- fields: b,
1170
+ locale: c,
1171
+ apiVersion: v = De,
1172
+ fields: S,
1128
1173
  omit: l,
1129
- offset: f,
1130
- cacheSeconds: m,
1131
- staleCacheSeconds: h,
1132
- sort: _,
1133
- includeUnpublished: S
1174
+ offset: k,
1175
+ cacheSeconds: b,
1176
+ staleCacheSeconds: $,
1177
+ sort: B,
1178
+ includeUnpublished: N
1134
1179
  } = e;
1135
1180
  if (!i)
1136
1181
  throw new Error("Missing API key");
1137
- if (!["v2", "v3"].includes(p))
1138
- throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
1182
+ if (!["v2", "v3"].includes(v))
1183
+ throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
1139
1184
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
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"), 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 && W(m) && c.searchParams.set("cacheSeconds", String(m)), h && W(h) && c.searchParams.set("staleCacheSeconds", String(h)), _) {
1142
- const k = R({
1143
- sort: _
1185
+ const d = new URL(`https://cdn.builder.io/api/${v}/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${t}&includeRefs=${f}${c ? `&locale=${c}` : ""}${a ? `&enrich=${a}` : ""}`);
1186
+ if (d.searchParams.set("omit", l || "meta.componentsUsed"), S && d.searchParams.set("fields", S), Number.isFinite(k) && k > -1 && d.searchParams.set("offset", String(Math.floor(k))), typeof N == "boolean" && d.searchParams.set("includeUnpublished", String(N)), b && W(b) && d.searchParams.set("cacheSeconds", String(b)), $ && W($) && d.searchParams.set("staleCacheSeconds", String($)), B) {
1187
+ const h = I({
1188
+ sort: B
1144
1189
  });
1145
- for (const $ in k)
1146
- c.searchParams.set($, JSON.stringify(k[$]));
1190
+ for (const C in h)
1191
+ d.searchParams.set(C, JSON.stringify(h[C]));
1147
1192
  }
1148
1193
  const lt = {
1149
1194
  ...We(),
1150
1195
  ...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({
1196
+ }, j = I(lt);
1197
+ for (const h in j)
1198
+ d.searchParams.set(h, String(j[h]));
1199
+ if (o && d.searchParams.set("userAttributes", JSON.stringify(o)), r) {
1200
+ const h = I({
1156
1201
  query: r
1157
1202
  });
1158
- for (const $ in k)
1159
- c.searchParams.set($, JSON.stringify(k[$]));
1203
+ for (const C in h)
1204
+ d.searchParams.set(C, JSON.stringify(h[C]));
1160
1205
  }
1161
- return c;
1162
- }, Ke = (e) => "results" in e;
1163
- async function B(e) {
1206
+ return d;
1207
+ }, Me = (e) => "results" in e;
1208
+ async function O(e) {
1164
1209
  const t = await rt({
1165
1210
  ...e,
1166
1211
  limit: 1
1167
1212
  });
1168
1213
  return t && t.results[0] || null;
1169
1214
  }
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"))
1215
+ const In = O, Ke = async (e) => {
1216
+ const t = P(e);
1217
+ return await (await Ue(t.href)).json();
1218
+ }, ze = async (e, t, n = P(e)) => {
1219
+ const o = R(e.canTrack);
1220
+ if (n.search.includes("preview="), !o || !(m() || y === "reactNative"))
1176
1221
  return t;
1177
1222
  try {
1178
1223
  const r = [];
1179
1224
  for (const s of t.results)
1180
- r.push(await _e({
1225
+ r.push(await be({
1181
1226
  item: s,
1182
1227
  canTrack: o
1183
1228
  }));
1184
1229
  t.results = r;
1185
1230
  } catch (r) {
1186
- x.error("Could not process A/B tests. ", r);
1231
+ _.error("Could not process A/B tests. ", r);
1187
1232
  }
1188
1233
  return t;
1189
1234
  };
1190
1235
  async function rt(e) {
1191
1236
  try {
1192
- const t = N(e), n = await ze(e);
1193
- return Ke(n) ? Ge(e, n) : (x.error("Error fetching data. ", {
1237
+ const t = P(e), n = await Ke(e);
1238
+ return Me(n) ? ze(e, n) : (_.error("Error fetching data. ", {
1194
1239
  url: t,
1195
1240
  content: n,
1196
1241
  options: e
1197
1242
  }), null);
1198
1243
  } catch (t) {
1199
- return x.error("Error fetching data. ", t), null;
1244
+ return _.error("Error fetching data. ", t), null;
1200
1245
  }
1201
1246
  }
1202
- const Tn = rt;
1203
- function De() {
1247
+ const $n = rt;
1248
+ function Ge() {
1204
1249
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1205
1250
  const t = Math.random() * 16 | 0;
1206
1251
  return (e == "x" ? t : t & 3 | 8).toString(16);
1207
1252
  });
1208
1253
  }
1209
1254
  function st() {
1210
- return De().replace(/-/g, "");
1255
+ return Ge().replace(/-/g, "");
1211
1256
  }
1212
1257
  const it = "builderSessionId", He = async ({
1213
1258
  canTrack: e
1214
1259
  }) => {
1215
1260
  if (!e)
1216
1261
  return;
1217
- const t = await D({
1262
+ const t = await G({
1218
1263
  name: it,
1219
1264
  canTrack: e
1220
1265
  });
1221
- if (w(t))
1266
+ if (g(t))
1222
1267
  return t;
1223
1268
  {
1224
- const n = Je();
1225
- return Xe({
1269
+ const n = Qe();
1270
+ return Je({
1226
1271
  id: n,
1227
1272
  canTrack: e
1228
1273
  }), n;
1229
1274
  }
1230
- }, Je = () => st(), Xe = ({
1275
+ }, Qe = () => st(), Je = ({
1231
1276
  id: e,
1232
1277
  canTrack: t
1233
1278
  }) => H({
1234
1279
  name: it,
1235
1280
  value: e,
1236
1281
  canTrack: t
1237
- }), at = () => v() && typeof localStorage < "u" ? localStorage : void 0, qe = ({
1282
+ }), at = () => m() && typeof localStorage < "u" ? localStorage : void 0, Xe = ({
1238
1283
  key: e,
1239
1284
  canTrack: t
1240
1285
  }) => {
@@ -1245,7 +1290,7 @@ const it = "builderSessionId", He = async ({
1245
1290
  console.debug("[LocalStorage] GET error: ", o);
1246
1291
  return;
1247
1292
  }
1248
- }, Qe = ({
1293
+ }, Ye = ({
1249
1294
  key: e,
1250
1295
  canTrack: t,
1251
1296
  value: n
@@ -1256,16 +1301,16 @@ const it = "builderSessionId", He = async ({
1256
1301
  } catch (r) {
1257
1302
  console.debug("[LocalStorage] SET error: ", r);
1258
1303
  }
1259
- }, ct = "builderVisitorId", Ye = ({
1304
+ }, ct = "builderVisitorId", qe = ({
1260
1305
  canTrack: e
1261
1306
  }) => {
1262
1307
  if (!e)
1263
1308
  return;
1264
- const t = qe({
1309
+ const t = Xe({
1265
1310
  key: ct,
1266
1311
  canTrack: e
1267
1312
  });
1268
- if (w(t))
1313
+ if (g(t))
1269
1314
  return t;
1270
1315
  {
1271
1316
  const n = Ze();
@@ -1277,12 +1322,12 @@ const it = "builderSessionId", He = async ({
1277
1322
  }, Ze = () => st(), tn = ({
1278
1323
  id: e,
1279
1324
  canTrack: t
1280
- }) => Qe({
1325
+ }) => Ye({
1281
1326
  key: ct,
1282
1327
  value: e,
1283
1328
  canTrack: t
1284
1329
  }), en = () => {
1285
- if (v()) {
1330
+ if (m()) {
1286
1331
  const e = new URL(location.href);
1287
1332
  return e.pathname === "" && (e.pathname = "/"), e;
1288
1333
  } else
@@ -1305,7 +1350,7 @@ const it = "builderSessionId", He = async ({
1305
1350
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
1306
1351
  },
1307
1352
  any() {
1308
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || C === "reactNative";
1353
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || y === "reactNative";
1309
1354
  }
1310
1355
  }, n = e.match(/Tablet|iPad/i), o = en();
1311
1356
  return {
@@ -1323,7 +1368,7 @@ const it = "builderSessionId", He = async ({
1323
1368
  };
1324
1369
  const t = await He({
1325
1370
  canTrack: e
1326
- }), n = Ye({
1371
+ }), n = qe({
1327
1372
  canTrack: e
1328
1373
  });
1329
1374
  return {
@@ -1353,10 +1398,10 @@ const it = "builderSessionId", He = async ({
1353
1398
  });
1354
1399
  async function an(e) {
1355
1400
  if (!e.apiKey) {
1356
- x.error("Missing API key for track call. Please provide your API key.");
1401
+ _.error("Missing API key for track call. Please provide your API key.");
1357
1402
  return;
1358
1403
  }
1359
- if (e.canTrack && !et() && (v() || C === "reactNative"))
1404
+ if (e.canTrack && !et() && (m() || y === "reactNative"))
1360
1405
  return fetch("https://cdn.builder.io/api/v1/track", {
1361
1406
  method: "POST",
1362
1407
  body: JSON.stringify({
@@ -1370,7 +1415,7 @@ async function an(e) {
1370
1415
  console.error("Failed to track: ", t);
1371
1416
  });
1372
1417
  }
1373
- const In = (e) => an({
1418
+ const Tn = (e) => an({
1374
1419
  ...e,
1375
1420
  canTrack: !0
1376
1421
  }), Rn = async (e) => {
@@ -1390,52 +1435,52 @@ const In = (e) => an({
1390
1435
  return {
1391
1436
  apiKey: n.apiKey,
1392
1437
  model: n.model,
1393
- content: await B(n)
1438
+ content: await O(n)
1394
1439
  };
1395
1440
  };
1396
1441
  export {
1397
- Cn as A,
1442
+ wn as A,
1398
1443
  ln as B,
1399
- dn as C,
1400
- Ge as D,
1444
+ un as C,
1445
+ ze as D,
1401
1446
  rt as E,
1402
- mn as F,
1403
- Tn as G,
1404
- $n as H,
1405
- fn as I,
1447
+ pn as F,
1448
+ $n as G,
1449
+ In as H,
1450
+ mn as I,
1406
1451
  nt as J,
1407
- In as K,
1452
+ Tn as K,
1408
1453
  Rn as L,
1409
1454
  ie as M,
1410
1455
  yn as R,
1411
- pn as S,
1412
- C as T,
1413
- _n as V,
1456
+ fn as S,
1457
+ y as T,
1458
+ bn as V,
1414
1459
  an as _,
1415
- un as a,
1416
- O as b,
1417
- w as c,
1460
+ dn as a,
1461
+ E as b,
1462
+ g as c,
1418
1463
  hn as d,
1419
- bn as e,
1420
- V as f,
1421
- pt as g,
1464
+ _n as e,
1465
+ A as f,
1466
+ ft as g,
1422
1467
  gn as h,
1423
1468
  et as i,
1424
1469
  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,
1470
+ qt as k,
1471
+ Xt as l,
1472
+ m,
1473
+ p as n,
1474
+ R as o,
1475
+ Ue as p,
1476
+ Cn as q,
1477
+ xn as r,
1478
+ Be as s,
1479
+ O as t,
1435
1480
  Sn as u,
1436
- x as v,
1481
+ _ as v,
1437
1482
  on as w,
1438
- z as x,
1483
+ K as x,
1439
1484
  tt as y,
1440
1485
  vn as z
1441
1486
  };