@builder.io/sdk-react-nextjs 0.7.1-4 → 0.7.1

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 (292) hide show
  1. package/lib/browser/USE_CLIENT_BUNDLE-059d1502.cjs +23 -0
  2. package/lib/{node/USE_CLIENT_BUNDLE-32bb8c8f.js → browser/USE_CLIENT_BUNDLE-b256b942.js} +142 -142
  3. package/lib/{edge/USE_SERVER_BUNDLE-2a1fc947.js → browser/USE_SERVER_BUNDLE-1aa7d195.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-133fe486.cjs → browser/USE_SERVER_BUNDLE-d96aeaff.cjs} +1 -1
  5. package/lib/browser/{bundle-31003427.js → bundle-0a946b39.js} +953 -928
  6. package/lib/browser/bundle-3a5994f4.cjs +76 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.d.cts +1 -1066
  9. package/lib/browser/index.d.mts +1 -1066
  10. package/lib/browser/index.mjs +3 -3
  11. package/lib/edge/USE_CLIENT_BUNDLE-210385b8.cjs +23 -0
  12. package/lib/{browser/USE_CLIENT_BUNDLE-2dd6963b.js → edge/USE_CLIENT_BUNDLE-736c38f3.js} +142 -142
  13. package/lib/{node/USE_SERVER_BUNDLE-86e8b7c7.js → edge/USE_SERVER_BUNDLE-14516672.js} +1 -1
  14. package/lib/{node/USE_SERVER_BUNDLE-25f4a46f.cjs → edge/USE_SERVER_BUNDLE-8c86a267.cjs} +1 -1
  15. package/lib/edge/{bundle-1c5ceddb.js → bundle-46eb4735.js} +1237 -1211
  16. package/lib/edge/{bundle-cfdeec4b.cjs → bundle-57428492.cjs} +30 -30
  17. package/lib/edge/index.cjs +1 -1
  18. package/lib/edge/index.d.cts +1 -1066
  19. package/lib/edge/index.d.mts +1 -1066
  20. package/lib/edge/index.mjs +3 -3
  21. package/lib/{edge/USE_CLIENT_BUNDLE-ee929cd6.js → node/USE_CLIENT_BUNDLE-2ae32ced.js} +142 -142
  22. package/lib/node/USE_CLIENT_BUNDLE-85a396bb.cjs +23 -0
  23. package/lib/{browser/USE_SERVER_BUNDLE-97369f61.js → node/USE_SERVER_BUNDLE-cd1f2a07.js} +1 -1
  24. package/lib/{browser/USE_SERVER_BUNDLE-c110917b.cjs → node/USE_SERVER_BUNDLE-e2ad5ce3.cjs} +1 -1
  25. package/lib/node/bundle-3d88f873.cjs +116 -0
  26. package/lib/node/{bundle-844e3979.js → bundle-d37c53b5.js} +794 -769
  27. package/lib/node/index.cjs +1 -1
  28. package/lib/node/index.d.cts +1 -1066
  29. package/lib/node/index.d.mts +1 -1066
  30. package/lib/node/index.mjs +3 -3
  31. package/package.json +9 -5
  32. package/types/cjs/blocks/button/button.d.ts +12 -0
  33. package/types/cjs/blocks/button/component-info.d.ts +2 -0
  34. package/types/cjs/blocks/columns/columns.d.ts +17 -0
  35. package/types/cjs/blocks/columns/component-info.d.ts +2 -0
  36. package/types/cjs/blocks/custom-code/component-info.d.ts +2 -0
  37. package/types/cjs/blocks/custom-code/custom-code.d.ts +7 -0
  38. package/types/cjs/blocks/embed/component-info.d.ts +2 -0
  39. package/types/cjs/blocks/embed/embed.d.ts +6 -0
  40. package/types/cjs/blocks/embed/helpers.d.ts +1 -0
  41. package/types/cjs/blocks/fragment/component-info.d.ts +2 -0
  42. package/types/cjs/blocks/fragment/fragment.d.ts +8 -0
  43. package/types/cjs/blocks/helpers.d.ts +13 -0
  44. package/types/cjs/blocks/image/component-info.d.ts +2 -0
  45. package/types/cjs/blocks/image/image.d.ts +22 -0
  46. package/types/cjs/blocks/image/image.helpers.d.ts +1 -0
  47. package/types/cjs/blocks/img/component-info.d.ts +2 -0
  48. package/types/cjs/blocks/img/img.d.ts +14 -0
  49. package/types/cjs/blocks/section/component-info.d.ts +2 -0
  50. package/types/cjs/blocks/section/section.d.ts +12 -0
  51. package/types/cjs/blocks/symbol/component-info.d.ts +2 -0
  52. package/types/cjs/blocks/symbol/symbol.d.ts +26 -0
  53. package/types/cjs/blocks/symbol/symbol.helpers.d.ts +14 -0
  54. package/types/cjs/blocks/text/component-info.d.ts +2 -0
  55. package/types/cjs/blocks/text/text.d.ts +6 -0
  56. package/types/cjs/blocks/video/component-info.d.ts +2 -0
  57. package/types/cjs/blocks/video/video.d.ts +20 -0
  58. package/types/cjs/components/block/block.d.ts +10 -0
  59. package/types/cjs/components/block/block.helpers.d.ts +13 -0
  60. package/types/cjs/components/block/components/block-styles.d.ts +9 -0
  61. package/types/cjs/components/block/components/block-wrapper.d.ts +18 -0
  62. package/types/cjs/components/block/components/component-ref/component-ref.d.ts +4 -0
  63. package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
  64. package/types/cjs/components/block/components/interactive-element.d.ts +12 -0
  65. package/types/cjs/components/block/components/repeated-block.d.ts +10 -0
  66. package/types/cjs/components/block/types.d.ts +6 -0
  67. package/types/cjs/components/blocks/blocks-wrapper.d.ts +11 -0
  68. package/types/cjs/components/blocks/blocks.d.ts +9 -0
  69. package/types/cjs/components/content/components/enable-editor.d.ts +10 -0
  70. package/types/cjs/components/content/components/styles.d.ts +9 -0
  71. package/types/cjs/components/content/components/styles.helpers.d.ts +15 -0
  72. package/types/cjs/components/content/content.d.ts +4 -0
  73. package/types/cjs/components/content/content.helpers.d.ts +7 -0
  74. package/types/cjs/components/content/content.types.d.ts +24 -0
  75. package/types/cjs/components/content/wrap-component-ref.d.ts +6 -0
  76. package/types/cjs/components/content-variants/content-variants.d.ts +10 -0
  77. package/types/cjs/components/content-variants/content-variants.types.d.ts +20 -0
  78. package/types/cjs/components/content-variants/helpers.d.ts +41 -0
  79. package/types/cjs/components/inlined-script.d.ts +7 -0
  80. package/types/cjs/components/inlined-styles.d.ts +7 -0
  81. package/types/cjs/constants/builder-registered-components.d.ts +6 -0
  82. package/types/cjs/constants/device-sizes.d.ts +13 -0
  83. package/types/cjs/constants/sdk-version.d.ts +1 -0
  84. package/types/cjs/constants/target.d.ts +2 -0
  85. package/types/cjs/context/builder.context.d.ts +3 -0
  86. package/types/cjs/context/components.context.d.ts +3 -0
  87. package/types/cjs/context/types.d.ts +35 -0
  88. package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -0
  89. package/types/cjs/functions/deopt.d.ts +4 -0
  90. package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  91. package/types/cjs/functions/evaluate/browser-runtime/index.d.ts +1 -0
  92. package/types/cjs/functions/evaluate/choose-eval.d.ts +6 -0
  93. package/types/cjs/functions/evaluate/evaluate.d.ts +2 -0
  94. package/types/cjs/functions/evaluate/helpers.d.ts +24 -0
  95. package/types/cjs/functions/evaluate/index.d.ts +1 -0
  96. package/types/cjs/functions/event-handler-name.d.ts +1 -0
  97. package/types/cjs/functions/extract-text-styles.d.ts +4 -0
  98. package/types/cjs/functions/fast-clone.d.ts +4 -0
  99. package/types/cjs/functions/fetch-builder-props.d.ts +53 -0
  100. package/types/cjs/functions/get-block-actions-handler.d.ts +8 -0
  101. package/types/cjs/functions/get-block-actions.d.ts +10 -0
  102. package/types/cjs/functions/get-block-component-options.d.ts +2 -0
  103. package/types/cjs/functions/get-block-properties.d.ts +6 -0
  104. package/types/cjs/functions/get-builder-search-params/index.d.ts +12 -0
  105. package/types/cjs/functions/get-content/generate-content-url.d.ts +2 -0
  106. package/types/cjs/functions/get-content/index.d.ts +28 -0
  107. package/types/cjs/functions/get-content/types.d.ts +142 -0
  108. package/types/cjs/functions/get-fetch.d.ts +1 -0
  109. package/types/cjs/functions/get-global-this.d.ts +4 -0
  110. package/types/cjs/functions/get-processed-block.d.ts +10 -0
  111. package/types/cjs/functions/get-react-native-block-styles.d.ts +7 -0
  112. package/types/cjs/functions/is-browser.d.ts +1 -0
  113. package/types/cjs/functions/is-editing.d.ts +1 -0
  114. package/types/cjs/functions/is-iframe.d.ts +1 -0
  115. package/types/cjs/functions/is-previewing.d.ts +1 -0
  116. package/types/cjs/functions/register-component.d.ts +15 -0
  117. package/types/cjs/functions/register.d.ts +16 -0
  118. package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +3 -0
  119. package/types/cjs/functions/set-editor-settings.d.ts +4 -0
  120. package/types/cjs/functions/set.d.ts +7 -0
  121. package/types/cjs/functions/track/helpers.d.ts +5 -0
  122. package/types/cjs/functions/track/index.d.ts +51 -0
  123. package/types/cjs/functions/track/interaction.d.ts +13 -0
  124. package/types/cjs/functions/transform-block-properties.d.ts +1 -0
  125. package/types/cjs/functions/transform-block.d.ts +2 -0
  126. package/types/cjs/helpers/ab-tests.d.ts +9 -0
  127. package/types/cjs/helpers/canTrack.d.ts +1 -0
  128. package/types/cjs/helpers/cookie.d.ts +19 -0
  129. package/types/cjs/helpers/css.d.ts +7 -0
  130. package/types/cjs/helpers/flatten.d.ts +6 -0
  131. package/types/cjs/helpers/localStorage.d.ts +9 -0
  132. package/types/cjs/helpers/logger.d.ts +6 -0
  133. package/types/cjs/helpers/nullable.d.ts +2 -0
  134. package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -0
  135. package/types/cjs/helpers/preview-lru-cache/helpers.d.ts +1 -0
  136. package/types/cjs/helpers/preview-lru-cache/init.d.ts +6 -0
  137. package/types/cjs/helpers/preview-lru-cache/set.d.ts +7 -0
  138. package/types/cjs/helpers/preview-lru-cache/types.d.ts +12 -0
  139. package/types/cjs/helpers/sessionId.d.ts +6 -0
  140. package/types/cjs/helpers/url.d.ts +6 -0
  141. package/types/cjs/helpers/uuid.d.ts +8 -0
  142. package/types/cjs/helpers/visitorId.d.ts +6 -0
  143. package/types/cjs/index-helpers/blocks-exports.d.ts +19 -0
  144. package/types/cjs/index-helpers/top-of-file.d.ts +1 -0
  145. package/types/cjs/index.d.ts +7 -0
  146. package/types/cjs/scripts/init-editing.d.ts +6 -0
  147. package/types/cjs/server-index.d.ts +15 -0
  148. package/types/cjs/types/api-version.d.ts +2 -0
  149. package/types/cjs/types/builder-block.d.ts +66 -0
  150. package/types/cjs/types/builder-content.d.ts +44 -0
  151. package/types/cjs/types/builder-props.d.ts +9 -0
  152. package/types/cjs/types/can-track.d.ts +3 -0
  153. package/types/cjs/types/components.d.ts +110 -0
  154. package/types/cjs/types/deep-partial.d.ts +3 -0
  155. package/types/cjs/types/element.d.ts +59 -0
  156. package/types/cjs/types/enforced-partials.d.ts +21 -0
  157. package/types/cjs/types/input.d.ts +121 -0
  158. package/types/cjs/types/targets.d.ts +1 -0
  159. package/types/cjs/types/typescript.d.ts +11 -0
  160. package/types/esm/blocks/button/button.d.ts +12 -0
  161. package/types/esm/blocks/button/component-info.d.ts +2 -0
  162. package/types/esm/blocks/columns/columns.d.ts +17 -0
  163. package/types/esm/blocks/columns/component-info.d.ts +2 -0
  164. package/types/esm/blocks/custom-code/component-info.d.ts +2 -0
  165. package/types/esm/blocks/custom-code/custom-code.d.ts +7 -0
  166. package/types/esm/blocks/embed/component-info.d.ts +2 -0
  167. package/types/esm/blocks/embed/embed.d.ts +6 -0
  168. package/types/esm/blocks/embed/helpers.d.ts +1 -0
  169. package/types/esm/blocks/fragment/component-info.d.ts +2 -0
  170. package/types/esm/blocks/fragment/fragment.d.ts +8 -0
  171. package/types/esm/blocks/helpers.d.ts +13 -0
  172. package/types/esm/blocks/image/component-info.d.ts +2 -0
  173. package/types/esm/blocks/image/image.d.ts +22 -0
  174. package/types/esm/blocks/image/image.helpers.d.ts +1 -0
  175. package/types/esm/blocks/img/component-info.d.ts +2 -0
  176. package/types/esm/blocks/img/img.d.ts +14 -0
  177. package/types/esm/blocks/section/component-info.d.ts +2 -0
  178. package/types/esm/blocks/section/section.d.ts +12 -0
  179. package/types/esm/blocks/symbol/component-info.d.ts +2 -0
  180. package/types/esm/blocks/symbol/symbol.d.ts +26 -0
  181. package/types/esm/blocks/symbol/symbol.helpers.d.ts +14 -0
  182. package/types/esm/blocks/text/component-info.d.ts +2 -0
  183. package/types/esm/blocks/text/text.d.ts +6 -0
  184. package/types/esm/blocks/video/component-info.d.ts +2 -0
  185. package/types/esm/blocks/video/video.d.ts +20 -0
  186. package/types/esm/components/block/block.d.ts +10 -0
  187. package/types/esm/components/block/block.helpers.d.ts +13 -0
  188. package/types/esm/components/block/components/block-styles.d.ts +9 -0
  189. package/types/esm/components/block/components/block-wrapper.d.ts +18 -0
  190. package/types/esm/components/block/components/component-ref/component-ref.d.ts +4 -0
  191. package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
  192. package/types/esm/components/block/components/interactive-element.d.ts +12 -0
  193. package/types/esm/components/block/components/repeated-block.d.ts +10 -0
  194. package/types/esm/components/block/types.d.ts +6 -0
  195. package/types/esm/components/blocks/blocks-wrapper.d.ts +11 -0
  196. package/types/esm/components/blocks/blocks.d.ts +9 -0
  197. package/types/esm/components/content/components/enable-editor.d.ts +10 -0
  198. package/types/esm/components/content/components/styles.d.ts +9 -0
  199. package/types/esm/components/content/components/styles.helpers.d.ts +15 -0
  200. package/types/esm/components/content/content.d.ts +4 -0
  201. package/types/esm/components/content/content.helpers.d.ts +7 -0
  202. package/types/esm/components/content/content.types.d.ts +24 -0
  203. package/types/esm/components/content/wrap-component-ref.d.ts +6 -0
  204. package/types/esm/components/content-variants/content-variants.d.ts +10 -0
  205. package/types/esm/components/content-variants/content-variants.types.d.ts +20 -0
  206. package/types/esm/components/content-variants/helpers.d.ts +41 -0
  207. package/types/esm/components/inlined-script.d.ts +7 -0
  208. package/types/esm/components/inlined-styles.d.ts +7 -0
  209. package/types/esm/constants/builder-registered-components.d.ts +6 -0
  210. package/types/esm/constants/device-sizes.d.ts +13 -0
  211. package/types/esm/constants/sdk-version.d.ts +1 -0
  212. package/types/esm/constants/target.d.ts +2 -0
  213. package/types/esm/context/builder.context.d.ts +3 -0
  214. package/types/esm/context/components.context.d.ts +3 -0
  215. package/types/esm/context/types.d.ts +35 -0
  216. package/types/esm/functions/camel-to-kebab-case.d.ts +1 -0
  217. package/types/esm/functions/deopt.d.ts +4 -0
  218. package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  219. package/types/esm/functions/evaluate/browser-runtime/index.d.ts +1 -0
  220. package/types/esm/functions/evaluate/choose-eval.d.ts +6 -0
  221. package/types/esm/functions/evaluate/evaluate.d.ts +2 -0
  222. package/types/esm/functions/evaluate/helpers.d.ts +24 -0
  223. package/types/esm/functions/evaluate/index.d.ts +1 -0
  224. package/types/esm/functions/event-handler-name.d.ts +1 -0
  225. package/types/esm/functions/extract-text-styles.d.ts +4 -0
  226. package/types/esm/functions/fast-clone.d.ts +4 -0
  227. package/types/esm/functions/fetch-builder-props.d.ts +53 -0
  228. package/types/esm/functions/get-block-actions-handler.d.ts +8 -0
  229. package/types/esm/functions/get-block-actions.d.ts +10 -0
  230. package/types/esm/functions/get-block-component-options.d.ts +2 -0
  231. package/types/esm/functions/get-block-properties.d.ts +6 -0
  232. package/types/esm/functions/get-builder-search-params/index.d.ts +12 -0
  233. package/types/esm/functions/get-content/generate-content-url.d.ts +2 -0
  234. package/types/esm/functions/get-content/index.d.ts +28 -0
  235. package/types/esm/functions/get-content/types.d.ts +142 -0
  236. package/types/esm/functions/get-fetch.d.ts +1 -0
  237. package/types/esm/functions/get-global-this.d.ts +4 -0
  238. package/types/esm/functions/get-processed-block.d.ts +10 -0
  239. package/types/esm/functions/get-react-native-block-styles.d.ts +7 -0
  240. package/types/esm/functions/is-browser.d.ts +1 -0
  241. package/types/esm/functions/is-editing.d.ts +1 -0
  242. package/types/esm/functions/is-iframe.d.ts +1 -0
  243. package/types/esm/functions/is-previewing.d.ts +1 -0
  244. package/types/esm/functions/register-component.d.ts +15 -0
  245. package/types/esm/functions/register.d.ts +16 -0
  246. package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
  247. package/types/esm/functions/set-editor-settings.d.ts +4 -0
  248. package/types/esm/functions/set.d.ts +7 -0
  249. package/types/esm/functions/track/helpers.d.ts +5 -0
  250. package/types/esm/functions/track/index.d.ts +51 -0
  251. package/types/esm/functions/track/interaction.d.ts +13 -0
  252. package/types/esm/functions/transform-block-properties.d.ts +1 -0
  253. package/types/esm/functions/transform-block.d.ts +2 -0
  254. package/types/esm/helpers/ab-tests.d.ts +9 -0
  255. package/types/esm/helpers/canTrack.d.ts +1 -0
  256. package/types/esm/helpers/cookie.d.ts +19 -0
  257. package/types/esm/helpers/css.d.ts +7 -0
  258. package/types/esm/helpers/flatten.d.ts +6 -0
  259. package/types/esm/helpers/localStorage.d.ts +9 -0
  260. package/types/esm/helpers/logger.d.ts +6 -0
  261. package/types/esm/helpers/nullable.d.ts +2 -0
  262. package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -0
  263. package/types/esm/helpers/preview-lru-cache/helpers.d.ts +1 -0
  264. package/types/esm/helpers/preview-lru-cache/init.d.ts +6 -0
  265. package/types/esm/helpers/preview-lru-cache/set.d.ts +7 -0
  266. package/types/esm/helpers/preview-lru-cache/types.d.ts +12 -0
  267. package/types/esm/helpers/sessionId.d.ts +6 -0
  268. package/types/esm/helpers/url.d.ts +6 -0
  269. package/types/esm/helpers/uuid.d.ts +8 -0
  270. package/types/esm/helpers/visitorId.d.ts +6 -0
  271. package/types/esm/index-helpers/blocks-exports.d.ts +19 -0
  272. package/types/esm/index-helpers/top-of-file.d.ts +1 -0
  273. package/types/esm/index.d.ts +7 -0
  274. package/types/esm/scripts/init-editing.d.ts +6 -0
  275. package/types/esm/server-index.d.ts +15 -0
  276. package/types/esm/types/api-version.d.ts +2 -0
  277. package/types/esm/types/builder-block.d.ts +66 -0
  278. package/types/esm/types/builder-content.d.ts +44 -0
  279. package/types/esm/types/builder-props.d.ts +9 -0
  280. package/types/esm/types/can-track.d.ts +3 -0
  281. package/types/esm/types/components.d.ts +110 -0
  282. package/types/esm/types/deep-partial.d.ts +3 -0
  283. package/types/esm/types/element.d.ts +59 -0
  284. package/types/esm/types/enforced-partials.d.ts +21 -0
  285. package/types/esm/types/input.d.ts +121 -0
  286. package/types/esm/types/targets.d.ts +1 -0
  287. package/types/esm/types/typescript.d.ts +11 -0
  288. package/lib/browser/USE_CLIENT_BUNDLE-1cdce03b.cjs +0 -23
  289. package/lib/browser/bundle-cbc690cf.cjs +0 -76
  290. package/lib/edge/USE_CLIENT_BUNDLE-ba263633.cjs +0 -23
  291. package/lib/node/USE_CLIENT_BUNDLE-7a982d7c.cjs +0 -23
  292. package/lib/node/bundle-b13f5899.cjs +0 -116
@@ -0,0 +1,23 @@
1
+ "use client";"use strict";const t=require("react/jsx-runtime"),a=require("./bundle-3a5994f4.cjs"),o=require("react"),_=require("./USE_SERVER_BUNDLE-d96aeaff.cjs"),M=require("next/navigation");function W(e){return t.jsxs(t.Fragment,{children:[e.link?t.jsx(t.Fragment,{children:t.jsx("a",{...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"button",children:e.text})}):t.jsx(t.Fragment,{children:t.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-5294b10c",children:e.text})}),t.jsx("style",{children:`.button-5294b10c {
2
+ all: unset;
3
+ }`})]})}function A(e){return t.jsxs(t.Fragment,{children:[" ",e.hasChildren?t.jsx(t.Fragment,{children:t.jsxs(e.Wrapper,{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):t.jsx(t.Fragment,{children:t.jsx(e.Wrapper,{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function V(e){return t.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...a.getBlockProperties({block:e.block,context:e.context}),...a.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}function z(e){function c(){var s;return"builder-blocks"+((s=e.blocks)!=null&&s.length?"":" no-blocks")}function g(){var s,x;a.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function h(){var s,x;a.isEditing()&&!((s=e.blocks)!=null&&s.length)&&((x=window.parent)==null||x.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:c()+" div-02c7a115","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:s=>g(),onMouseEnter:s=>h(),onKeyPress:s=>g(),children:e.children}),t.jsx("style",{children:`.div-02c7a115 {
4
+ display: flex;
5
+ flex-direction: column;
6
+ align-items: stretch;
7
+ }`})]})}function D(e){return t.jsx("span",{children:e.children})}function U(e){var s,x,k,S;function c(){var b;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((b=e.image)!=null&&b.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),a.getSrcSet(d)}else if(e.image&&!e.srcset)return a.getSrcSet(d);return a.getSrcSet(d)}function g(){var f;return(f=c==null?void 0:c())!=null&&f.match(/builder\.io/)&&!e.noWebp?c().replace(/\?/g,"?format=webp&"):""}function h(){const f={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?f:void 0}return t.jsxs(t.Fragment,{children:[t.jsxs(t.Fragment,{children:[t.jsxs("picture",{children:[g()?t.jsx(t.Fragment,{children:t.jsx("source",{type:"image/webp",srcSet:g()})}):null,t.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...h()},className:"builder-image"+(e.className?" "+e.className:"")+" img-dbab4030",src:e.image,srcSet:c(),sizes:e.sizes})]}),e.aspectRatio&&!((x=(s=e.builderBlock)==null?void 0:s.children)!=null&&x.length&&e.fitContent)?t.jsx(t.Fragment,{children:t.jsx("div",{className:"builder-image-sizer div-dbab4030",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(S=(k=e.builderBlock)==null?void 0:k.children)!=null&&S.length&&e.fitContent?t.jsx(t.Fragment,{children:e.children}):null,!e.fitContent&&e.children?t.jsx(t.Fragment,{children:t.jsx("div",{className:"div-dbab4030-2",children:e.children})}):null]}),t.jsx("style",{children:`.img-dbab4030 {
8
+ opacity: 1;
9
+ transition: opacity 0.2s ease-in-out;
10
+ }.div-dbab4030 {
11
+ width: 100%;
12
+ pointer-events: none;
13
+ font-size: 0;
14
+ }.div-dbab4030-2 {
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: stretch;
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ width: 100%;
22
+ height: 100%;
23
+ }`})]})}function H(e){return t.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}function O(e){const c=o.useRef(null),[g,h]=o.useState(()=>[]),[s,x]=o.useState(()=>[]);return o.useEffect(()=>{var S;if(!((S=c.current)!=null&&S.getElementsByTagName)||typeof window>"u")return;const k=c.current.getElementsByTagName("script");for(let f=0;f<k.length;f++){const d=k[f];if(d.src){if(g.includes(d.src))continue;g.push(d.src);const b=document.createElement("script");b.async=!0,b.src=d.src,document.head.appendChild(b)}else if(!d.type||["text/javascript","application/javascript","application/ecmascript"].includes(d.type)){if(s.includes(d.innerText))continue;try{s.push(d.innerText),new Function(d.innerText)()}catch(b){console.warn("`CustomCode`: Error running script:",b)}}}},[]),t.jsx("div",{ref:c,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}function J(e){const c=o.useRef(null),[g,h]=o.useState(()=>[]),[s,x]=o.useState(()=>[]),[k,S]=o.useState(()=>!1);function f(){if(!c.current||!c.current.getElementsByTagName)return;const d=c.current.getElementsByTagName("script");for(let b=0;b<d.length;b++){const v=d[b];if(v.src&&!g.includes(v.src)){g.push(v.src);const y=document.createElement("script");y.async=!0,y.src=v.src,document.head.appendChild(y)}else if(a.isJsScript(v)&&!s.includes(v.innerText))try{s.push(v.innerText),new Function(v.innerText)()}catch(y){console.warn("`Embed`: Error running script:",y)}}}return o.useEffect(()=>{c.current&&!k&&(S(!0),f())},[c.current,k]),t.jsx("div",{className:"builder-embed",ref:c,dangerouslySetInnerHTML:{__html:e.content}})}function G(e){return t.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},a.isEditing()&&e.imgSrc||"default-key")}function $(e){var h;function c(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function g(){return{...e.attributes,...c()}}return t.jsx("video",{...g(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(h=e.attributes)==null?void 0:h.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage})}const Q=o.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}});function X(e){var R,I,P,T,F;const c=o.useRef(null),[g,h]=o.useState(()=>0);function s(n){var r,l,u,m,B;const i={...e.builderContextSignal.content,...n,data:{...(r=e.builderContextSignal.content)==null?void 0:r.data,...n==null?void 0:n.data},meta:{...(l=e.builderContextSignal.content)==null?void 0:l.meta,...n==null?void 0:n.meta,breakpoints:((u=n==null?void 0:n.meta)==null?void 0:u.breakpoints)||((B=(m=e.builderContextSignal.content)==null?void 0:m.meta)==null?void 0:B.breakpoints)}};_.postPreviewContent({value:i,key:i.id}).then(()=>{q.refresh()})}o.useState(()=>0);const[x,k]=o.useState(()=>!1);function S(n){var r;const{data:i}=n;if(i)switch(i.type){case"builder.configureSdk":{const l=i.data,{breakpoints:u,contentId:m}=l;if(!m||m!==((r=e.builderContextSignal.content)==null?void 0:r.id))return;u&&s({meta:{breakpoints:u}}),h(g+1);break}case"builder.contentUpdate":{const l=i.data,u=l.key||l.alias||l.entry||l.modelName,m=l.data;u===e.model&&(s(m),h(g+1));break}}}function f(){var i,r;const n=(r=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:r.jsCode;n&&a.evaluate({code:n,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[d,b]=o.useState(()=>({})),[v,y]=o.useState(()=>!1);function N(n){var i,r;if(e.builderContextSignal.content){const l=(i=e.builderContextSignal.content)==null?void 0:i.testVariationId,u=(r=e.builderContextSignal.content)==null?void 0:r.id;a._track({type:"click",canTrack:a.getDefaultCanTrack(e.canTrack),contentId:u,apiKey:e.apiKey,variationId:l!==u?l:void 0,...a.getInteractionPropertiesForEvent(n),unique:!v})}v||y(!0)}function L(n){return n.replace(/{{([^}]+)}}/g,(i,r)=>a.evaluate({code:r,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function K({url:n,key:i}){a.fetch(n).then(r=>r.json()).then(r=>{var u,m;const l={...e.builderContextSignal.rootState,[i]:r};(m=(u=e.builderContextSignal).rootSetState)==null||m.call(u,l),d[i]=!0}).catch(r=>{console.error("error fetching dynamic data",n,r)})}function C(){var i,r;const n=((r=(i=e.builderContextSignal.content)==null?void 0:i.data)==null?void 0:r.httpRequests)??{};Object.entries(n).forEach(([l,u])=>{if(u&&(!d[l]||a.isEditing())){const m=L(u);K({url:m,key:l})}})}function E(){a.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:a.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}function j(n){h(g+1),window.addEventListener("message",S),a.registerInsertMenu(),a.setupBrowserForEditing({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(i=>{var l;const r=a.createRegisterComponentMessage(i);(l=window.parent)==null||l.postMessage(r,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",E)}function w(n){const i=new URL(location.href).searchParams,r=i.get("builder.preview"),l=i.get(`builder.preview.${r}`),u=i.get("apiKey")||i.get("builder.space");r===e.model&&u===e.apiKey&&(!e.content||l===e.content.id)&&a.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(m=>{m&&s(m)})}const q=M.useRouter();return o.useEffect(()=>{var n;return(n=c.current)==null||n.addEventListener("initeditingbldr",j),()=>{var i;return(i=c.current)==null?void 0:i.removeEventListener("initeditingbldr",j)}},[]),o.useEffect(()=>{var n;return(n=c.current)==null||n.addEventListener("initpreviewingbldr",w),()=>{var i;return(i=c.current)==null?void 0:i.removeEventListener("initpreviewingbldr",w)}},[]),o.useEffect(()=>{var n,i;if(a.isBrowser()){if(a.isEditing()&&c.current&&c.current.dispatchEvent(new CustomEvent("initeditingbldr")),e.builderContextSignal.content&&a.getDefaultCanTrack(e.canTrack)){const l=(n=e.builderContextSignal.content)==null?void 0:n.testVariationId,u=(i=e.builderContextSignal.content)==null?void 0:i.id,m=e.apiKey;a._track({type:"impression",canTrack:!0,contentId:u,apiKey:m,variationId:l!==u?l:void 0})}a.isPreviewing()&&c.current}},[]),o.useEffect(()=>{e.apiKey||a.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),f(),C(),E()},[]),o.useEffect(()=>{},[e.content]),o.useEffect(()=>{a.isBrowser()&&(window.removeEventListener("message",S),window.addEventListener("message",S))},[x]),o.useEffect(()=>{f()},[(I=(R=e.builderContextSignal.content)==null?void 0:R.data)==null?void 0:I.jsCode,e.builderContextSignal.rootState]),o.useEffect(()=>{C()},[(T=(P=e.builderContextSignal.content)==null?void 0:P.data)==null?void 0:T.httpRequests]),o.useEffect(()=>{E()},[e.builderContextSignal.rootState]),o.useEffect(()=>()=>{a.isBrowser()&&(window.removeEventListener("message",S),window.removeEventListener("builder:component:stateChangeListenerActivated",E))},[]),t.jsx(Q.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?t.jsx(t.Fragment,{children:o.createElement("div",{key:g,ref:c,onClick:n=>N(n),"builder-content-id":(F=e.builderContextSignal.content)==null?void 0:F.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},className:e.classNameProp},e.children)}):null})}exports.BlockWrapper=A;exports.BlocksWrapper=z;exports.Button=W;exports.CustomCode=O;exports.Embed=J;exports.EnableEditor=X;exports.FragmentComponent=D;exports.Image=U;exports.ImgComponent=G;exports.InteractiveElement=V;exports.SectionComponent=H;exports.Video=$;
@@ -1,60 +1,38 @@
1
1
  "use client";
2
- import { jsxs as w, Fragment as g, jsx as c } from "react/jsx-runtime";
3
- import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-844e3979.js";
2
+ import { jsxs as w, Fragment as b, jsx as c } from "react/jsx-runtime";
3
+ import { g as T, a as N, i as E, b as R, c as G, d as P, e as W, _ as A, f as $, l as Q, h as D, j as X, k as Y, r as Z, s as p, m as ee, n as te, o as ne } from "./bundle-0a946b39.js";
4
4
  import { useRef as j, useState as y, useEffect as x, createContext as ie, createElement as ae } from "react";
5
- import { p as ce } from "./USE_SERVER_BUNDLE-86e8b7c7.js";
5
+ import { p as ce } from "./USE_SERVER_BUNDLE-1aa7d195.js";
6
6
  import { useRouter as re } from "next/navigation";
7
- function ge(e) {
8
- return /* @__PURE__ */ w(g, { children: [
9
- e.link ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
7
+ function be(e) {
8
+ return /* @__PURE__ */ w(b, { children: [
9
+ e.link ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
10
10
  "a",
11
11
  {
12
- role: "button",
13
12
  ...e.attributes,
14
13
  href: e.link,
15
14
  target: e.openLinkInNewTab ? "_blank" : void 0,
15
+ role: "button",
16
16
  children: e.text
17
17
  }
18
- ) }) : /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
18
+ ) }) : /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
19
19
  "button",
20
20
  {
21
21
  ...e.attributes,
22
22
  style: e.attributes.style,
23
- className: e.attributes.className + " button-35669e6c",
23
+ className: e.attributes.className + " button-5294b10c",
24
24
  children: e.text
25
25
  }
26
26
  ) }),
27
- /* @__PURE__ */ c("style", { children: `.button-35669e6c {
27
+ /* @__PURE__ */ c("style", { children: `.button-5294b10c {
28
28
  all: unset;
29
29
  }` })
30
30
  ] });
31
31
  }
32
- function he(e) {
33
- return /* @__PURE__ */ c(
34
- e.Wrapper,
35
- {
36
- ...e.wrapperProps,
37
- attributes: {
38
- ...T({
39
- block: e.block,
40
- context: e.context
41
- }),
42
- ...N({
43
- block: e.block,
44
- rootState: e.context.rootState,
45
- rootSetState: e.context.rootSetState,
46
- localState: e.context.localState,
47
- context: e.context.context
48
- })
49
- },
50
- children: e.children
51
- }
52
- );
53
- }
54
- function be(e) {
55
- return /* @__PURE__ */ w(g, { children: [
32
+ function ge(e) {
33
+ return /* @__PURE__ */ w(b, { children: [
56
34
  " ",
57
- e.hasChildren ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ w(
35
+ e.hasChildren ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ w(
58
36
  e.Wrapper,
59
37
  {
60
38
  ...T({
@@ -75,7 +53,7 @@ function be(e) {
75
53
  " "
76
54
  ]
77
55
  }
78
- ) }) : /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
56
+ ) }) : /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
79
57
  e.Wrapper,
80
58
  {
81
59
  ...T({
@@ -95,6 +73,28 @@ function be(e) {
95
73
  " "
96
74
  ] });
97
75
  }
76
+ function he(e) {
77
+ return /* @__PURE__ */ c(
78
+ e.Wrapper,
79
+ {
80
+ ...e.wrapperProps,
81
+ attributes: {
82
+ ...T({
83
+ block: e.block,
84
+ context: e.context
85
+ }),
86
+ ...N({
87
+ block: e.block,
88
+ rootState: e.context.rootState,
89
+ rootSetState: e.context.rootSetState,
90
+ localState: e.context.localState,
91
+ context: e.context.context
92
+ })
93
+ },
94
+ children: e.children
95
+ }
96
+ );
97
+ }
98
98
  function fe(e) {
99
99
  function i() {
100
100
  var o;
@@ -113,7 +113,7 @@ function fe(e) {
113
113
  "*"
114
114
  ));
115
115
  }
116
- function b() {
116
+ function h() {
117
117
  var o, f;
118
118
  E() && !((o = e.blocks) != null && o.length) && ((f = window.parent) == null || f.postMessage(
119
119
  {
@@ -126,7 +126,7 @@ function fe(e) {
126
126
  "*"
127
127
  ));
128
128
  }
129
- return /* @__PURE__ */ w(g, { children: [
129
+ return /* @__PURE__ */ w(b, { children: [
130
130
  /* @__PURE__ */ c(
131
131
  "div",
132
132
  {
@@ -135,7 +135,7 @@ function fe(e) {
135
135
  "builder-parent-id": e.parent,
136
136
  style: e.styleProp,
137
137
  onClick: (o) => s(),
138
- onMouseEnter: (o) => b(),
138
+ onMouseEnter: (o) => h(),
139
139
  onKeyPress: (o) => s(),
140
140
  children: e.children
141
141
  }
@@ -153,13 +153,13 @@ function Se(e) {
153
153
  function xe(e) {
154
154
  var o, f, k, S;
155
155
  function i() {
156
- var h;
156
+ var g;
157
157
  const l = e.image || e.src;
158
158
  if (!l || // We can auto add srcset for cdn.builder.io and shopify
159
159
  // images, otherwise you can supply this prop manually
160
160
  !(l.match(/builder\.io/) || l.match(/cdn\.shopify\.com/)))
161
161
  return e.srcset;
162
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
162
+ if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
163
163
  if (!e.srcset.includes(e.image.split("?")[0]))
164
164
  return console.debug("Removed given srcset"), R(l);
165
165
  } else if (e.image && !e.srcset)
@@ -170,7 +170,7 @@ function xe(e) {
170
170
  var m;
171
171
  return (m = i == null ? void 0 : i()) != null && m.match(/builder\.io/) && !e.noWebp ? i().replace(/\?/g, "?format=webp&") : "";
172
172
  }
173
- function b() {
173
+ function h() {
174
174
  const m = {
175
175
  position: "absolute",
176
176
  height: "100%",
@@ -180,10 +180,10 @@ function xe(e) {
180
180
  };
181
181
  return e.aspectRatio ? m : void 0;
182
182
  }
183
- return /* @__PURE__ */ w(g, { children: [
184
- /* @__PURE__ */ w(g, { children: [
183
+ return /* @__PURE__ */ w(b, { children: [
184
+ /* @__PURE__ */ w(b, { children: [
185
185
  /* @__PURE__ */ w("picture", { children: [
186
- s() ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: s() }) }) : null,
186
+ s() ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: s() }) }) : null,
187
187
  /* @__PURE__ */ c(
188
188
  "img",
189
189
  {
@@ -193,35 +193,35 @@ function xe(e) {
193
193
  style: {
194
194
  objectPosition: e.backgroundPosition || "center",
195
195
  objectFit: e.backgroundSize || "cover",
196
- ...b()
196
+ ...h()
197
197
  },
198
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-497e0136",
198
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-dbab4030",
199
199
  src: e.image,
200
200
  srcSet: i(),
201
201
  sizes: e.sizes
202
202
  }
203
203
  )
204
204
  ] }),
205
- e.aspectRatio && !((f = (o = e.builderBlock) == null ? void 0 : o.children) != null && f.length && e.fitContent) ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c(
205
+ e.aspectRatio && !((f = (o = e.builderBlock) == null ? void 0 : o.children) != null && f.length && e.fitContent) ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c(
206
206
  "div",
207
207
  {
208
- className: "builder-image-sizer div-497e0136",
208
+ className: "builder-image-sizer div-dbab4030",
209
209
  style: {
210
210
  paddingTop: e.aspectRatio * 100 + "%"
211
211
  }
212
212
  }
213
213
  ) }) : null,
214
- (S = (k = e.builderBlock) == null ? void 0 : k.children) != null && S.length && e.fitContent ? /* @__PURE__ */ c(g, { children: e.children }) : null,
215
- !e.fitContent && e.children ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ c("div", { className: "div-497e0136-2", children: e.children }) }) : null
214
+ (S = (k = e.builderBlock) == null ? void 0 : k.children) != null && S.length && e.fitContent ? /* @__PURE__ */ c(b, { children: e.children }) : null,
215
+ !e.fitContent && e.children ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("div", { className: "div-dbab4030-2", children: e.children }) }) : null
216
216
  ] }),
217
- /* @__PURE__ */ c("style", { children: `.img-497e0136 {
217
+ /* @__PURE__ */ c("style", { children: `.img-dbab4030 {
218
218
  opacity: 1;
219
219
  transition: opacity 0.2s ease-in-out;
220
- }.div-497e0136 {
220
+ }.div-dbab4030 {
221
221
  width: 100%;
222
222
  pointer-events: none;
223
223
  font-size: 0;
224
- }.div-497e0136-2 {
224
+ }.div-dbab4030-2 {
225
225
  display: flex;
226
226
  flex-direction: column;
227
227
  align-items: stretch;
@@ -255,60 +255,51 @@ function ve(e) {
255
255
  );
256
256
  }
257
257
  function ye(e) {
258
- var b;
259
- function i() {
260
- return {
261
- ...e.autoPlay === !0 ? {
262
- autoPlay: !0
263
- } : {},
264
- ...e.muted === !0 ? {
265
- muted: !0
266
- } : {},
267
- ...e.controls === !0 ? {
268
- controls: !0
269
- } : {},
270
- ...e.loop === !0 ? {
271
- loop: !0
272
- } : {},
273
- ...e.playsInline === !0 ? {
274
- playsInline: !0
275
- } : {}
276
- };
277
- }
278
- function s() {
279
- return {
280
- ...e.attributes,
281
- ...i()
282
- };
283
- }
284
- return /* @__PURE__ */ c(
285
- "video",
258
+ const i = j(null), [s, h] = y(() => []), [o, f] = y(() => []);
259
+ return x(() => {
260
+ var S;
261
+ if (!((S = i.current) != null && S.getElementsByTagName) || typeof window > "u")
262
+ return;
263
+ const k = i.current.getElementsByTagName("script");
264
+ for (let m = 0; m < k.length; m++) {
265
+ const l = k[m];
266
+ if (l.src) {
267
+ if (s.includes(l.src))
268
+ continue;
269
+ s.push(l.src);
270
+ const g = document.createElement("script");
271
+ g.async = !0, g.src = l.src, document.head.appendChild(g);
272
+ } else if (!l.type || [
273
+ "text/javascript",
274
+ "application/javascript",
275
+ "application/ecmascript"
276
+ ].includes(l.type)) {
277
+ if (o.includes(l.innerText))
278
+ continue;
279
+ try {
280
+ o.push(l.innerText), new Function(l.innerText)();
281
+ } catch (g) {
282
+ console.warn("`CustomCode`: Error running script:", g);
283
+ }
284
+ }
285
+ }
286
+ }, []), /* @__PURE__ */ c(
287
+ "div",
286
288
  {
287
- ...s(),
288
- preload: e.preload || "metadata",
289
- style: {
290
- width: "100%",
291
- height: "100%",
292
- ...(b = e.attributes) == null ? void 0 : b.style,
293
- objectFit: e.fit,
294
- objectPosition: e.position,
295
- // Hack to get object fit to work as expected and
296
- // not have the video overflow
297
- borderRadius: 1
298
- },
299
- src: e.video || "no-src",
300
- poster: e.posterImage
289
+ ref: i,
290
+ className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
291
+ dangerouslySetInnerHTML: { __html: e.code }
301
292
  }
302
293
  );
303
294
  }
304
295
  function ke(e) {
305
- const i = j(null), [s, b] = y(() => []), [o, f] = y(() => []), [k, S] = y(() => !1);
296
+ const i = j(null), [s, h] = y(() => []), [o, f] = y(() => []), [k, S] = y(() => !1);
306
297
  function m() {
307
298
  if (!i.current || !i.current.getElementsByTagName)
308
299
  return;
309
300
  const l = i.current.getElementsByTagName("script");
310
- for (let h = 0; h < l.length; h++) {
311
- const v = l[h];
301
+ for (let g = 0; g < l.length; g++) {
302
+ const v = l[g];
312
303
  if (v.src && !s.includes(v.src)) {
313
304
  s.push(v.src);
314
305
  const C = document.createElement("script");
@@ -348,40 +339,49 @@ function Ce(e) {
348
339
  );
349
340
  }
350
341
  function we(e) {
351
- const i = j(null), [s, b] = y(() => []), [o, f] = y(() => []);
352
- return x(() => {
353
- var S;
354
- if (!((S = i.current) != null && S.getElementsByTagName) || typeof window > "u")
355
- return;
356
- const k = i.current.getElementsByTagName("script");
357
- for (let m = 0; m < k.length; m++) {
358
- const l = k[m];
359
- if (l.src) {
360
- if (s.includes(l.src))
361
- continue;
362
- s.push(l.src);
363
- const h = document.createElement("script");
364
- h.async = !0, h.src = l.src, document.head.appendChild(h);
365
- } else if (!l.type || [
366
- "text/javascript",
367
- "application/javascript",
368
- "application/ecmascript"
369
- ].includes(l.type)) {
370
- if (o.includes(l.innerText))
371
- continue;
372
- try {
373
- o.push(l.innerText), new Function(l.innerText)();
374
- } catch (h) {
375
- console.warn("`CustomCode`: Error running script:", h);
376
- }
377
- }
378
- }
379
- }, []), /* @__PURE__ */ c(
380
- "div",
342
+ var h;
343
+ function i() {
344
+ return {
345
+ ...e.autoPlay === !0 ? {
346
+ autoPlay: !0
347
+ } : {},
348
+ ...e.muted === !0 ? {
349
+ muted: !0
350
+ } : {},
351
+ ...e.controls === !0 ? {
352
+ controls: !0
353
+ } : {},
354
+ ...e.loop === !0 ? {
355
+ loop: !0
356
+ } : {},
357
+ ...e.playsInline === !0 ? {
358
+ playsInline: !0
359
+ } : {}
360
+ };
361
+ }
362
+ function s() {
363
+ return {
364
+ ...e.attributes,
365
+ ...i()
366
+ };
367
+ }
368
+ return /* @__PURE__ */ c(
369
+ "video",
381
370
  {
382
- ref: i,
383
- className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
384
- dangerouslySetInnerHTML: { __html: e.code }
371
+ ...s(),
372
+ preload: e.preload || "metadata",
373
+ style: {
374
+ width: "100%",
375
+ height: "100%",
376
+ ...(h = e.attributes) == null ? void 0 : h.style,
377
+ objectFit: e.fit,
378
+ objectPosition: e.position,
379
+ // Hack to get object fit to work as expected and
380
+ // not have the video overflow
381
+ borderRadius: 1
382
+ },
383
+ src: e.video || "no-src",
384
+ poster: e.posterImage
385
385
  }
386
386
  );
387
387
  }
@@ -399,7 +399,7 @@ const oe = ie({
399
399
  });
400
400
  function Ee(e) {
401
401
  var F, M, _, q, z;
402
- const i = j(null), [s, b] = y(() => 0);
402
+ const i = j(null), [s, h] = y(() => 0);
403
403
  function o(t) {
404
404
  var a, r, d, u, V;
405
405
  const n = {
@@ -439,12 +439,12 @@ function Ee(e) {
439
439
  meta: {
440
440
  breakpoints: d
441
441
  }
442
- }), b(s + 1);
442
+ }), h(s + 1);
443
443
  break;
444
444
  }
445
445
  case "builder.contentUpdate": {
446
446
  const r = n.data, d = r.key || r.alias || r.entry || r.modelName, u = r.data;
447
- d === e.model && (o(u), b(s + 1));
447
+ d === e.model && (o(u), h(s + 1));
448
448
  break;
449
449
  }
450
450
  }
@@ -460,7 +460,7 @@ function Ee(e) {
460
460
  rootSetState: e.builderContextSignal.rootSetState
461
461
  });
462
462
  }
463
- const [l, h] = y(() => ({})), [v, C] = y(() => !1);
463
+ const [l, g] = y(() => ({})), [v, C] = y(() => !1);
464
464
  function U(t) {
465
465
  var n, a;
466
466
  if (e.builderContextSignal.content) {
@@ -530,7 +530,7 @@ function Ee(e) {
530
530
  );
531
531
  }
532
532
  function B(t) {
533
- b(s + 1), window.addEventListener("message", S), Z(), p({
533
+ h(s + 1), window.addEventListener("message", S), Z(), p({
534
534
  ...e.locale ? {
535
535
  locale: e.locale
536
536
  } : {},
@@ -624,7 +624,7 @@ function Ee(e) {
624
624
  "builder:component:stateChangeListenerActivated",
625
625
  I
626
626
  ));
627
- }, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(g, { children: /* @__PURE__ */ ae(
627
+ }, []), /* @__PURE__ */ c(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(b, { children: /* @__PURE__ */ ae(
628
628
  "div",
629
629
  {
630
630
  key: s,
@@ -642,15 +642,15 @@ function Ee(e) {
642
642
  ) }) : null });
643
643
  }
644
644
  export {
645
- be as B,
646
- we as C,
645
+ ge as B,
646
+ ye as C,
647
647
  ke as E,
648
648
  Se as F,
649
649
  he as I,
650
650
  ve as S,
651
- ye as V,
651
+ we as V,
652
652
  fe as a,
653
- ge as b,
653
+ be as b,
654
654
  xe as c,
655
655
  Ce as d,
656
656
  Ee as e
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { p as s } from "./bundle-1c5ceddb.js";
2
+ import { p as s } from "./bundle-0a946b39.js";
3
3
  async function n({
4
4
  key: t,
5
5
  value: r
@@ -1 +1 @@
1
- "use server";"use strict";const n=require("./bundle-cfdeec4b.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
1
+ "use server";"use strict";const n=require("./bundle-3a5994f4.cjs");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;