@builder.io/sdk-qwik 0.0.10 → 0.0.13

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 (145) hide show
  1. package/.yarn/cache/@builder.io-qwik-npm-0.0.103-bdc7786a46-98363e9103.zip +0 -0
  2. package/.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip +0 -0
  3. package/.yarn/cache/@npmcli-fs-npm-2.1.2-08d434e77b-405074965e.zip +0 -0
  4. package/.yarn/cache/@npmcli-move-file-npm-2.0.1-b593d8f741-52dc02259d.zip +0 -0
  5. package/.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip +0 -0
  6. package/.yarn/cache/@types-node-npm-18.7.6-c1eafa3d9a-5122988c32.zip +0 -0
  7. package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
  8. package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
  9. package/.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip +0 -0
  10. package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
  11. package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
  12. package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
  13. package/.yarn/cache/are-we-there-yet-npm-3.0.1-3395b1512f-52590c2486.zip +0 -0
  14. package/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip +0 -0
  15. package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
  16. package/.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip +0 -0
  17. package/.yarn/cache/cacache-npm-16.1.2-0d36d1aaf1-defe1d6f55.zip +0 -0
  18. package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
  19. package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
  20. package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
  21. package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
  22. package/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip +0 -0
  23. package/.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip +0 -0
  24. package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
  25. package/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip +0 -0
  26. package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
  27. package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
  28. package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
  29. package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
  30. package/.yarn/cache/esbuild-darwin-arm64-npm-0.14.54-ec53803fa6-8.zip +0 -0
  31. package/.yarn/cache/esbuild-npm-0.14.54-b3dcd8a41e-49e360b118.zip +0 -0
  32. package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
  33. package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
  34. package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
  35. package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
  36. package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
  37. package/.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip +0 -0
  38. package/.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip +0 -0
  39. package/.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip +0 -0
  40. package/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip +0 -0
  41. package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
  42. package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
  43. package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
  44. package/.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip +0 -0
  45. package/.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip +0 -0
  46. package/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip +0 -0
  47. package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
  48. package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
  49. package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
  50. package/.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip +0 -0
  51. package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
  52. package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
  53. package/.yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip +0 -0
  54. package/.yarn/cache/is-core-module-npm-2.10.0-6dff9310aa-0f3f77811f.zip +0 -0
  55. package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
  56. package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
  57. package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
  58. package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
  59. package/.yarn/cache/lru-cache-npm-7.14.0-354cf654ec-efdd329f2c.zip +0 -0
  60. package/.yarn/cache/make-fetch-happen-npm-10.2.1-f1cc7cd2df-2332eb9a8e.zip +0 -0
  61. package/.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip +0 -0
  62. package/.yarn/cache/minimatch-npm-5.1.0-34f6240621-15ce53d31a.zip +0 -0
  63. package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
  64. package/.yarn/cache/minipass-fetch-npm-2.1.1-c4a8efdb09-1aae0c2240.zip +0 -0
  65. package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
  66. package/.yarn/cache/minipass-npm-3.3.5-a555b091e7-f89f02bcaa.zip +0 -0
  67. package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
  68. package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
  69. package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
  70. package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
  71. package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
  72. package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
  73. package/.yarn/cache/nanoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip +0 -0
  74. package/.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip +0 -0
  75. package/.yarn/cache/node-gyp-npm-9.1.0-2091059b31-1437fa4a87.zip +0 -0
  76. package/.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip +0 -0
  77. package/.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip +0 -0
  78. package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
  79. package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
  80. package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
  81. package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
  82. package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
  83. package/.yarn/cache/postcss-npm-8.4.16-7367383579-10eee25efd.zip +0 -0
  84. package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
  85. package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
  86. package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
  87. package/.yarn/cache/resolve-npm-1.22.1-3980488690-07af5fc1e8.zip +0 -0
  88. package/.yarn/cache/resolve-patch-46f9469d0d-5656f4d0be.zip +0 -0
  89. package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
  90. package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
  91. package/.yarn/cache/rollup-npm-2.78.0-09284f4c78-01b5a7ae08.zip +0 -0
  92. package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
  93. package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
  94. package/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip +0 -0
  95. package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
  96. package/.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip +0 -0
  97. package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
  98. package/.yarn/cache/socks-npm-2.7.0-cc1cb019db-0b5d94e2b3.zip +0 -0
  99. package/.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip +0 -0
  100. package/.yarn/cache/source-map-js-npm-1.0.2-ee4f9f9b30-c049a7fc4d.zip +0 -0
  101. package/.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip +0 -0
  102. package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
  103. package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
  104. package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
  105. package/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip +0 -0
  106. package/.yarn/cache/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip +0 -0
  107. package/.yarn/cache/typescript-npm-4.7.4-65aa6ffb42-5750181b1c.zip +0 -0
  108. package/.yarn/cache/typescript-patch-ae154b3216-96d3030cb0.zip +0 -0
  109. package/.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip +0 -0
  110. package/.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip +0 -0
  111. package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
  112. package/.yarn/cache/vite-npm-3.0.2-a17ab24a12-10aebec0df.zip +0 -0
  113. package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
  114. package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
  115. package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
  116. package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
  117. package/.yarn/install-state.gz +0 -0
  118. package/README.md +19 -16
  119. package/lib/index.qwik.cjs +478 -204
  120. package/lib/index.qwik.mjs +478 -204
  121. package/package.json +5 -4
  122. package/src/blocks/button/button.jsx +7 -2
  123. package/src/blocks/columns/columns.jsx +7 -3
  124. package/src/blocks/form/builder-blocks.jsx +1 -1
  125. package/src/blocks/img/img.jsx +2 -2
  126. package/src/blocks/symbol/symbol.jsx +1 -3
  127. package/src/components/render-block/block-styles.jsx +1 -1
  128. package/src/components/render-block/render-block.jsx +3 -2
  129. package/src/components/render-block/render-repeated-block.jsx +4 -1
  130. package/src/components/render-content/render-content.jsx +14 -5
  131. package/src/components/render-inlined-styles.jsx +4 -3
  132. package/src/constants/builder-registered-components.js +3 -0
  133. package/src/functions/get-processed-block.js +10 -6
  134. package/src/functions/get-processed-block.test.js +1 -1
  135. package/src/functions/track.js +71 -2
  136. package/src/helpers/cookie.js +59 -0
  137. package/src/helpers/localStorage.js +34 -0
  138. package/src/helpers/nullable.js +4 -0
  139. package/src/helpers/sessionId.js +26 -0
  140. package/src/helpers/time.js +5 -0
  141. package/src/helpers/url.js +10 -0
  142. package/src/helpers/url.test.js +15 -0
  143. package/src/helpers/uuid.js +13 -0
  144. package/src/helpers/visitorId.js +33 -0
  145. package/src/types/can-track.js +0 -0
@@ -173,36 +173,36 @@ const set = (obj, _path, value) => {
173
173
  function transformBlock(block) {
174
174
  return block;
175
175
  }
176
- var __defProp$7 = Object.defineProperty;
177
- var __defProps$5 = Object.defineProperties;
178
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
179
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
180
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
181
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
182
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
176
+ var __defProp$8 = Object.defineProperty;
177
+ var __defProps$6 = Object.defineProperties;
178
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
179
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
180
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
181
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
182
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
183
183
  enumerable: true,
184
184
  configurable: true,
185
185
  writable: true,
186
186
  value
187
187
  }) : obj[key] = value;
188
- var __spreadValues$7 = (a, b) => {
188
+ var __spreadValues$8 = (a, b) => {
189
189
  for (var prop in b || (b = {}))
190
- if (__hasOwnProp$7.call(b, prop))
191
- __defNormalProp$7(a, prop, b[prop]);
192
- if (__getOwnPropSymbols$7) {
193
- for (var prop of __getOwnPropSymbols$7(b))
194
- if (__propIsEnum$7.call(b, prop))
195
- __defNormalProp$7(a, prop, b[prop]);
190
+ if (__hasOwnProp$8.call(b, prop))
191
+ __defNormalProp$8(a, prop, b[prop]);
192
+ if (__getOwnPropSymbols$8) {
193
+ for (var prop of __getOwnPropSymbols$8(b))
194
+ if (__propIsEnum$8.call(b, prop))
195
+ __defNormalProp$8(a, prop, b[prop]);
196
196
  }
197
197
  return a;
198
198
  };
199
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
199
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
200
200
  const evaluateBindings = ({ block, context, state }) => {
201
201
  if (!block.bindings)
202
202
  return block;
203
- const copied = __spreadProps$5(__spreadValues$7({}, block), {
204
- properties: __spreadValues$7({}, block.properties),
205
- actions: __spreadValues$7({}, block.actions)
203
+ const copied = __spreadProps$6(__spreadValues$8({}, block), {
204
+ properties: __spreadValues$8({}, block.properties),
205
+ actions: __spreadValues$8({}, block.actions)
206
206
  });
207
207
  for (const binding in block.bindings) {
208
208
  const expression = block.bindings[binding];
@@ -215,17 +215,16 @@ const evaluateBindings = ({ block, context, state }) => {
215
215
  }
216
216
  return copied;
217
217
  };
218
- function getProcessedBlock(options) {
219
- const { state, context } = options;
220
- const block = transformBlock(options.block);
221
- if (evaluateBindings)
218
+ function getProcessedBlock({ block, context, shouldEvaluateBindings, state }) {
219
+ const transformedBlock = transformBlock(block);
220
+ if (shouldEvaluateBindings)
222
221
  return evaluateBindings({
223
- block,
222
+ block: transformedBlock,
224
223
  state,
225
224
  context
226
225
  });
227
226
  else
228
- return block;
227
+ return transformedBlock;
229
228
  }
230
229
  const camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
231
230
  const convertStyleMaptoCSS = (style) => {
@@ -235,21 +234,25 @@ const convertStyleMaptoCSS = (style) => {
235
234
  });
236
235
  return cssProps.join("\n");
237
236
  };
238
- const RenderInlinedStyles = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
237
+ const tagName$1 = function tagName(props, state) {
238
+ return "style";
239
+ };
240
+ const RenderInlinedStyles = (props) => {
239
241
  const state = {};
242
+ state.tagName = tagName$1();
240
243
  return /* @__PURE__ */ jsx(Fragment$1, {
241
244
  children: /* @__PURE__ */ jsx(state.tagName, {
242
245
  children: props.styles
243
246
  })
244
247
  });
245
- }, "RenderInlinedStyles_component_0sD5UmyM3Rg"));
248
+ };
246
249
  const RenderInlinedStyles$1 = RenderInlinedStyles;
247
250
  const useBlock$1 = function useBlock(props, state) {
248
251
  return getProcessedBlock({
249
252
  block: props.block,
250
253
  state: props.context.state,
251
254
  context: props.context.context,
252
- evaluateBindings: true
255
+ shouldEvaluateBindings: true
253
256
  });
254
257
  };
255
258
  const css = function css2(props, state) {
@@ -296,6 +299,36 @@ function getBlockActions(options) {
296
299
  }
297
300
  return obj;
298
301
  }
302
+ var __defProp$7 = Object.defineProperty;
303
+ var __defProps$5 = Object.defineProperties;
304
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
305
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
306
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
307
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
308
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, {
309
+ enumerable: true,
310
+ configurable: true,
311
+ writable: true,
312
+ value
313
+ }) : obj[key] = value;
314
+ var __spreadValues$7 = (a, b) => {
315
+ for (var prop in b || (b = {}))
316
+ if (__hasOwnProp$7.call(b, prop))
317
+ __defNormalProp$7(a, prop, b[prop]);
318
+ if (__getOwnPropSymbols$7) {
319
+ for (var prop of __getOwnPropSymbols$7(b))
320
+ if (__propIsEnum$7.call(b, prop))
321
+ __defNormalProp$7(a, prop, b[prop]);
322
+ }
323
+ return a;
324
+ };
325
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
326
+ function getBlockComponentOptions(block) {
327
+ var _a;
328
+ return __spreadProps$5(__spreadValues$7(__spreadValues$7({}, (_a = block.component) == null ? void 0 : _a.options), block.options), {
329
+ builderBlock: block
330
+ });
331
+ }
299
332
  var __defProp$6 = Object.defineProperty;
300
333
  var __defProps$4 = Object.defineProperties;
301
334
  var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
@@ -320,39 +353,9 @@ var __spreadValues$6 = (a, b) => {
320
353
  return a;
321
354
  };
322
355
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
323
- function getBlockComponentOptions(block) {
324
- var _a;
325
- return __spreadProps$4(__spreadValues$6(__spreadValues$6({}, (_a = block.component) == null ? void 0 : _a.options), block.options), {
326
- builderBlock: block
327
- });
328
- }
329
- var __defProp$5 = Object.defineProperty;
330
- var __defProps$3 = Object.defineProperties;
331
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
332
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
333
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
334
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
335
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
336
- enumerable: true,
337
- configurable: true,
338
- writable: true,
339
- value
340
- }) : obj[key] = value;
341
- var __spreadValues$5 = (a, b) => {
342
- for (var prop in b || (b = {}))
343
- if (__hasOwnProp$5.call(b, prop))
344
- __defNormalProp$5(a, prop, b[prop]);
345
- if (__getOwnPropSymbols$5) {
346
- for (var prop of __getOwnPropSymbols$5(b))
347
- if (__propIsEnum$5.call(b, prop))
348
- __defNormalProp$5(a, prop, b[prop]);
349
- }
350
- return a;
351
- };
352
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
353
356
  function getBlockProperties(block) {
354
357
  var _a;
355
- return __spreadProps$3(__spreadValues$5({}, block.properties), {
358
+ return __spreadProps$4(__spreadValues$6({}, block.properties), {
356
359
  "builder-id": block.id,
357
360
  class: [
358
361
  block.id,
@@ -367,30 +370,30 @@ const convertStyleObject = (obj) => {
367
370
  };
368
371
  const sanitizeBlockStyles = (_styles) => {
369
372
  };
370
- var __defProp$4 = Object.defineProperty;
371
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
372
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
373
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
374
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
373
+ var __defProp$5 = Object.defineProperty;
374
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
375
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
376
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
377
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
375
378
  enumerable: true,
376
379
  configurable: true,
377
380
  writable: true,
378
381
  value
379
382
  }) : obj[key] = value;
380
- var __spreadValues$4 = (a, b) => {
383
+ var __spreadValues$5 = (a, b) => {
381
384
  for (var prop in b || (b = {}))
382
- if (__hasOwnProp$4.call(b, prop))
383
- __defNormalProp$4(a, prop, b[prop]);
384
- if (__getOwnPropSymbols$4) {
385
- for (var prop of __getOwnPropSymbols$4(b))
386
- if (__propIsEnum$4.call(b, prop))
387
- __defNormalProp$4(a, prop, b[prop]);
385
+ if (__hasOwnProp$5.call(b, prop))
386
+ __defNormalProp$5(a, prop, b[prop]);
387
+ if (__getOwnPropSymbols$5) {
388
+ for (var prop of __getOwnPropSymbols$5(b))
389
+ if (__propIsEnum$5.call(b, prop))
390
+ __defNormalProp$5(a, prop, b[prop]);
388
391
  }
389
392
  return a;
390
393
  };
391
394
  function getBlockStyles(block) {
392
395
  var _a, _b, _c, _d, _e;
393
- const styles = __spreadValues$4(__spreadValues$4({}, convertStyleObject((_a = block.responsiveStyles) == null ? void 0 : _a.large)), block.styles);
396
+ const styles = __spreadValues$5(__spreadValues$5({}, convertStyleObject((_a = block.responsiveStyles) == null ? void 0 : _a.large)), block.styles);
394
397
  if ((_b = block.responsiveStyles) == null ? void 0 : _b.medium)
395
398
  styles[getMaxWidthQueryForSize("medium")] = convertStyleObject((_c = block.responsiveStyles) == null ? void 0 : _c.medium);
396
399
  if ((_d = block.responsiveStyles) == null ? void 0 : _d.small)
@@ -418,8 +421,8 @@ const EMPTY_HTML_ELEMENTS = [
418
421
  "track",
419
422
  "wbr"
420
423
  ];
421
- const isEmptyHtmlElement = (tagName3) => {
422
- return typeof tagName3 === "string" && EMPTY_HTML_ELEMENTS.includes(tagName3.toLowerCase());
424
+ const isEmptyHtmlElement = (tagName4) => {
425
+ return typeof tagName4 === "string" && EMPTY_HTML_ELEMENTS.includes(tagName4.toLowerCase());
423
426
  };
424
427
  const RenderComponent = (props) => {
425
428
  return /* @__PURE__ */ jsx(Fragment$1, {
@@ -463,7 +466,7 @@ const RenderRepeatedBlock = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
463
466
  }));
464
467
  return /* @__PURE__ */ jsx(RenderBlock$1, {
465
468
  block: props.block,
466
- context: props.context
469
+ context: props.repeatContext
467
470
  });
468
471
  }, "RenderRepeatedBlock_component_fV0PdmPN990"));
469
472
  const RenderRepeatedBlock$1 = RenderRepeatedBlock;
@@ -472,7 +475,7 @@ const component = function component2(props, state) {
472
475
  block: props.block,
473
476
  state: props.context.state,
474
477
  context: props.context.context,
475
- evaluateBindings: false
478
+ shouldEvaluateBindings: false
476
479
  }).component?.name;
477
480
  if (!componentName)
478
481
  return null;
@@ -485,7 +488,7 @@ const component = function component2(props, state) {
485
488
  } else
486
489
  return ref;
487
490
  };
488
- const componentInfo$9 = function componentInfo(props, state) {
491
+ const componentInfo$a = function componentInfo(props, state) {
489
492
  if (component(props)) {
490
493
  const { component: _, ...info } = component(props);
491
494
  return info;
@@ -495,7 +498,7 @@ const componentInfo$9 = function componentInfo(props, state) {
495
498
  const componentRef = function componentRef2(props, state) {
496
499
  return component(props)?.component;
497
500
  };
498
- const tagName = function tagName2(props, state) {
501
+ const tagName2 = function tagName3(props, state) {
499
502
  return getBlockTag(useBlock2(props));
500
503
  };
501
504
  const useBlock2 = function useBlock3(props, state) {
@@ -503,7 +506,7 @@ const useBlock2 = function useBlock3(props, state) {
503
506
  block: props.block,
504
507
  state: props.context.state,
505
508
  context: props.context.context,
506
- evaluateBindings: true
509
+ shouldEvaluateBindings: true
507
510
  });
508
511
  };
509
512
  const attributes = function attributes2(props, state) {
@@ -518,7 +521,7 @@ const attributes = function attributes2(props, state) {
518
521
  };
519
522
  };
520
523
  const shouldWrap = function shouldWrap2(props, state) {
521
- return !componentInfo$9(props)?.noWrap;
524
+ return !componentInfo$a(props)?.noWrap;
522
525
  };
523
526
  const componentOptions = function componentOptions2(props, state) {
524
527
  return {
@@ -532,7 +535,8 @@ const renderComponentProps = function renderComponentProps2(props, state) {
532
535
  return {
533
536
  blockChildren: children(props),
534
537
  componentRef: componentRef(props),
535
- componentOptions: componentOptions(props)
538
+ componentOptions: componentOptions(props),
539
+ context: props.context
536
540
  };
537
541
  };
538
542
  const children = function children2(props, state) {
@@ -572,9 +576,9 @@ const repeatItemData = function repeatItemData2(props, state) {
572
576
  };
573
577
  const RenderBlock = (props) => {
574
578
  const state = {};
575
- state.tagName = tagName(props);
579
+ state.tagName = tagName2(props);
576
580
  return /* @__PURE__ */ jsx(Fragment$1, {
577
- children: shouldWrap(props) ? !isEmptyHtmlElement(tagName(props)) ? /* @__PURE__ */ jsxs(state.tagName, {
581
+ children: shouldWrap(props) ? !isEmptyHtmlElement(tagName2(props)) ? /* @__PURE__ */ jsxs(state.tagName, {
578
582
  ...attributes(props),
579
583
  children: [
580
584
  repeatItemData(props) ? (repeatItemData(props) || []).map((data, index) => {
@@ -632,7 +636,7 @@ const onMouseEnter = function onMouseEnter2(props, state, builderContext) {
632
636
  }, "*");
633
637
  };
634
638
  const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
635
- useStylesScopedQrl(inlinedQrl(STYLES$2, "RenderBlocks_component_useStylesScoped_QNti2s7juQc"));
639
+ useStylesScopedQrl(inlinedQrl(STYLES$3, "RenderBlocks_component_useStylesScoped_QNti2s7juQc"));
636
640
  const builderContext = useContext(stdin_default);
637
641
  const state = {};
638
642
  return /* @__PURE__ */ jsxs("div", {
@@ -675,7 +679,7 @@ const RenderBlocks = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
675
679
  });
676
680
  }, "RenderBlocks_component_SXGwmVyEM0s"));
677
681
  const RenderBlocks$1 = RenderBlocks;
678
- const STYLES$2 = `.div-RenderBlocks {
682
+ const STYLES$3 = `.div-RenderBlocks {
679
683
  display: flex;
680
684
  flex-direction: column;
681
685
  align-items: stretch; }`;
@@ -717,7 +721,7 @@ const columnCssVars = function columnCssVars2(props, state) {
717
721
  };
718
722
  };
719
723
  const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
720
- useStylesScopedQrl(inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_704fWXyHORo"));
724
+ useStylesScopedQrl(inlinedQrl(STYLES$2, "Columns_component_useStylesScoped_704fWXyHORo"));
721
725
  const state = {};
722
726
  return /* @__PURE__ */ jsx("div", {
723
727
  class: "builder-columns div-Columns",
@@ -731,20 +735,22 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
731
735
  ...columnCssVars(props, state)
732
736
  },
733
737
  children: /* @__PURE__ */ jsx(RenderBlocks$1, {
734
- blocks: column.blocks
738
+ blocks: column.blocks,
739
+ path: `component.options.columns.${index}.blocks`,
740
+ parent: props.builderBlock.id
735
741
  })
736
742
  }, index);
737
743
  })
738
744
  });
739
745
  }, "Columns_component_0PeVQGTMczc"));
740
746
  const Columns$1 = Columns;
741
- const STYLES$1 = `.div-Columns {
747
+ const STYLES$2 = `.div-Columns {
742
748
  display: flex;
743
749
  align-items: stretch;
744
- line-height: normal; }@media (max-width: 999px) { .div-Columns {
750
+ line-height: normal; }@media (max-width: 991px) { .div-Columns {
745
751
  flex-direction: var(--flex-dir-tablet); } }@media (max-width: 639px) { .div-Columns {
746
752
  flex-direction: var(--flex-dir); } }.div-Columns-2 {
747
- flex-grow: 1; }@media (max-width: 999px) { .div-Columns-2 {
753
+ flex-grow: 1; }@media (max-width: 991px) { .div-Columns-2 {
748
754
  width: var(--column-width-tablet) !important;
749
755
  margin-left: var(--column-margin-left-tablet) !important; } }@media (max-width: 639px) { .div-Columns-2 {
750
756
  width: var(--column-width) !important;
@@ -824,7 +830,7 @@ const webpSrcSet = function webpSrcSet2(props, state) {
824
830
  return "";
825
831
  };
826
832
  const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
827
- useStylesScopedQrl(inlinedQrl(STYLES, "Image_component_useStylesScoped_gRbO7w7SeZA"));
833
+ useStylesScopedQrl(inlinedQrl(STYLES$1, "Image_component_useStylesScoped_gRbO7w7SeZA"));
828
834
  return /* @__PURE__ */ jsxs("div", {
829
835
  class: "div-Image",
830
836
  children: [
@@ -867,7 +873,7 @@ const Image = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
867
873
  });
868
874
  }, "Image_component_y3S3Zox9wEo"));
869
875
  const Image$1 = Image;
870
- const STYLES = `.div-Image {
876
+ const STYLES$1 = `.div-Image {
871
877
  position: relative; }.img-Image {
872
878
  opacity: 1;
873
879
  transition: opacity 0.2s ease-in-out;
@@ -930,6 +936,7 @@ const Video = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
930
936
  }, "Video_component_O5sPuWlrTvk"));
931
937
  const Video$1 = Video;
932
938
  const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
939
+ useStylesScopedQrl(inlinedQrl(STYLES, "Button_component_useStylesScoped_vN61mfeURXY"));
933
940
  return /* @__PURE__ */ jsx(Fragment$2, {
934
941
  children: props.link ? /* @__PURE__ */ jsx("a", {
935
942
  role: "button",
@@ -937,14 +944,17 @@ const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
937
944
  href: props.link,
938
945
  target: props.openLinkInNewTab ? "_blank" : void 0,
939
946
  children: props.text
940
- }) : /* @__PURE__ */ jsx("span", {
947
+ }) : /* @__PURE__ */ jsx("button", {
948
+ class: "button-Button",
941
949
  ...props.attributes,
942
950
  children: props.text
943
951
  })
944
952
  });
945
953
  }, "Button_component_FtjCELjtKF4"));
946
954
  const Button$1 = Button;
947
- const componentInfo$8 = {
955
+ const STYLES = `.button-Button {
956
+ all: unset; }`;
957
+ const componentInfo$9 = {
948
958
  name: "Core:Button",
949
959
  builtIn: true,
950
960
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -986,7 +996,7 @@ function markSerializable(fn) {
986
996
  fn.__qwik_serializable__ = true;
987
997
  return fn;
988
998
  }
989
- const componentInfo$7 = {
999
+ const componentInfo$8 = {
990
1000
  name: "Columns",
991
1001
  builtIn: true,
992
1002
  inputs: [
@@ -1227,7 +1237,7 @@ const componentInfo$7 = {
1227
1237
  }
1228
1238
  ]
1229
1239
  };
1230
- const componentInfo$6 = {
1240
+ const componentInfo$7 = {
1231
1241
  name: "Fragment",
1232
1242
  static: true,
1233
1243
  hidden: true,
@@ -1241,7 +1251,7 @@ const FragmentComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1241
1251
  });
1242
1252
  }, "FragmentComponent_component_FJmqlA66Rjg"));
1243
1253
  const Fragment = FragmentComponent;
1244
- const componentInfo$5 = {
1254
+ const componentInfo$6 = {
1245
1255
  name: "Image",
1246
1256
  static: true,
1247
1257
  builtIn: true,
@@ -1390,7 +1400,7 @@ const componentInfo$5 = {
1390
1400
  }
1391
1401
  ]
1392
1402
  };
1393
- const componentInfo$4 = {
1403
+ const componentInfo$5 = {
1394
1404
  name: "Core:Section",
1395
1405
  static: true,
1396
1406
  builtIn: true,
@@ -1446,7 +1456,7 @@ const SectionComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1446
1456
  });
1447
1457
  }, "SectionComponent_component_m1CcjCwgHug"));
1448
1458
  const Section = SectionComponent;
1449
- const componentInfo$3 = {
1459
+ const componentInfo$4 = {
1450
1460
  name: "Symbol",
1451
1461
  noWrap: true,
1452
1462
  static: true,
@@ -1486,7 +1496,7 @@ const componentInfo$3 = {
1486
1496
  }
1487
1497
  ]
1488
1498
  };
1489
- const componentInfo$2 = {
1499
+ const componentInfo$3 = {
1490
1500
  name: "Text",
1491
1501
  static: true,
1492
1502
  builtIn: true,
@@ -1507,7 +1517,7 @@ const componentInfo$2 = {
1507
1517
  textAlign: "center"
1508
1518
  }
1509
1519
  };
1510
- const componentInfo$1 = {
1520
+ const componentInfo$2 = {
1511
1521
  name: "Video",
1512
1522
  canHaveChildren: true,
1513
1523
  builtIn: true,
@@ -1620,7 +1630,7 @@ const componentInfo$1 = {
1620
1630
  }
1621
1631
  ]
1622
1632
  };
1623
- const componentInfo2 = {
1633
+ const componentInfo$1 = {
1624
1634
  name: "Embed",
1625
1635
  static: true,
1626
1636
  builtIn: true,
@@ -1709,80 +1719,117 @@ const Embed = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1709
1719
  });
1710
1720
  }, "Embed_component_CP6B8Y76ylw"));
1711
1721
  const embed = Embed;
1712
- var __defProp$3 = Object.defineProperty;
1713
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1714
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1715
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1716
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
1722
+ const ImgComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
1723
+ return /* @__PURE__ */ jsx("img", {
1724
+ style: {
1725
+ objectFit: props.backgroundSize || "cover",
1726
+ objectPosition: props.backgroundPosition || "center"
1727
+ },
1728
+ alt: props.altText,
1729
+ src: props.imgSrc || props.image,
1730
+ ...props.attributes
1731
+ }, isEditing() && props.imgSrc || "default-key");
1732
+ }, "ImgComponent_component_b8FkE9OcVN8"));
1733
+ const Img = ImgComponent;
1734
+ const componentInfo2 = {
1735
+ name: "Raw:Img",
1736
+ hideFromInsertMenu: true,
1737
+ builtIn: true,
1738
+ image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
1739
+ inputs: [
1740
+ {
1741
+ name: "image",
1742
+ bubble: true,
1743
+ type: "file",
1744
+ allowedFileTypes: [
1745
+ "jpeg",
1746
+ "jpg",
1747
+ "png",
1748
+ "svg"
1749
+ ],
1750
+ required: true
1751
+ }
1752
+ ],
1753
+ noWrap: true,
1754
+ static: true
1755
+ };
1756
+ var __defProp$4 = Object.defineProperty;
1757
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
1758
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
1759
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
1760
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
1717
1761
  enumerable: true,
1718
1762
  configurable: true,
1719
1763
  writable: true,
1720
1764
  value
1721
1765
  }) : obj[key] = value;
1722
- var __spreadValues$3 = (a, b) => {
1766
+ var __spreadValues$4 = (a, b) => {
1723
1767
  for (var prop in b || (b = {}))
1724
- if (__hasOwnProp$3.call(b, prop))
1725
- __defNormalProp$3(a, prop, b[prop]);
1726
- if (__getOwnPropSymbols$3) {
1727
- for (var prop of __getOwnPropSymbols$3(b))
1728
- if (__propIsEnum$3.call(b, prop))
1729
- __defNormalProp$3(a, prop, b[prop]);
1768
+ if (__hasOwnProp$4.call(b, prop))
1769
+ __defNormalProp$4(a, prop, b[prop]);
1770
+ if (__getOwnPropSymbols$4) {
1771
+ for (var prop of __getOwnPropSymbols$4(b))
1772
+ if (__propIsEnum$4.call(b, prop))
1773
+ __defNormalProp$4(a, prop, b[prop]);
1730
1774
  }
1731
1775
  return a;
1732
1776
  };
1733
1777
  const getDefaultRegisteredComponents = () => [
1734
- __spreadValues$3({
1778
+ __spreadValues$4({
1735
1779
  component: Columns$1
1736
- }, componentInfo$7),
1737
- __spreadValues$3({
1780
+ }, componentInfo$8),
1781
+ __spreadValues$4({
1738
1782
  component: Image$1
1739
- }, componentInfo$5),
1740
- __spreadValues$3({
1783
+ }, componentInfo$6),
1784
+ __spreadValues$4({
1785
+ component: Img
1786
+ }, componentInfo2),
1787
+ __spreadValues$4({
1741
1788
  component: Text$1
1742
- }, componentInfo$2),
1743
- __spreadValues$3({
1789
+ }, componentInfo$3),
1790
+ __spreadValues$4({
1744
1791
  component: Video$1
1745
- }, componentInfo$1),
1746
- __spreadValues$3({
1792
+ }, componentInfo$2),
1793
+ __spreadValues$4({
1747
1794
  component: Symbol$2
1748
- }, componentInfo$3),
1749
- __spreadValues$3({
1795
+ }, componentInfo$4),
1796
+ __spreadValues$4({
1750
1797
  component: Button$1
1751
- }, componentInfo$8),
1752
- __spreadValues$3({
1798
+ }, componentInfo$9),
1799
+ __spreadValues$4({
1753
1800
  component: Section
1754
- }, componentInfo$4),
1755
- __spreadValues$3({
1801
+ }, componentInfo$5),
1802
+ __spreadValues$4({
1756
1803
  component: Fragment
1757
- }, componentInfo$6),
1758
- __spreadValues$3({
1804
+ }, componentInfo$7),
1805
+ __spreadValues$4({
1759
1806
  component: embed
1760
- }, componentInfo2)
1807
+ }, componentInfo$1)
1761
1808
  ];
1762
- var __defProp$2 = Object.defineProperty;
1763
- var __defProps$2 = Object.defineProperties;
1764
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1765
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1766
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1767
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1768
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
1809
+ var __defProp$3 = Object.defineProperty;
1810
+ var __defProps$3 = Object.defineProperties;
1811
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1812
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1813
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1814
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1815
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
1769
1816
  enumerable: true,
1770
1817
  configurable: true,
1771
1818
  writable: true,
1772
1819
  value
1773
1820
  }) : obj[key] = value;
1774
- var __spreadValues$2 = (a, b) => {
1821
+ var __spreadValues$3 = (a, b) => {
1775
1822
  for (var prop in b || (b = {}))
1776
- if (__hasOwnProp$2.call(b, prop))
1777
- __defNormalProp$2(a, prop, b[prop]);
1778
- if (__getOwnPropSymbols$2) {
1779
- for (var prop of __getOwnPropSymbols$2(b))
1780
- if (__propIsEnum$2.call(b, prop))
1781
- __defNormalProp$2(a, prop, b[prop]);
1823
+ if (__hasOwnProp$3.call(b, prop))
1824
+ __defNormalProp$3(a, prop, b[prop]);
1825
+ if (__getOwnPropSymbols$3) {
1826
+ for (var prop of __getOwnPropSymbols$3(b))
1827
+ if (__propIsEnum$3.call(b, prop))
1828
+ __defNormalProp$3(a, prop, b[prop]);
1782
1829
  }
1783
1830
  return a;
1784
1831
  };
1785
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1832
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1786
1833
  function flatten(object, path = null, separator = ".") {
1787
1834
  return Object.keys(object).reduce((acc, key) => {
1788
1835
  const value = object[key];
@@ -1795,7 +1842,7 @@ function flatten(object, path = null, separator = ".") {
1795
1842
  value !== null,
1796
1843
  !(Array.isArray(value) && value.length === 0)
1797
1844
  ].every(Boolean);
1798
- return isObject ? __spreadValues$2(__spreadValues$2({}, acc), flatten(value, newPath, separator)) : __spreadProps$2(__spreadValues$2({}, acc), {
1845
+ return isObject ? __spreadValues$3(__spreadValues$3({}, acc), flatten(value, newPath, separator)) : __spreadProps$3(__spreadValues$3({}, acc), {
1799
1846
  [newPath]: value
1800
1847
  });
1801
1848
  }, {});
@@ -1900,30 +1947,30 @@ const handleABTesting = (item, testGroups) => {
1900
1947
  }
1901
1948
  }
1902
1949
  };
1903
- var __defProp$1 = Object.defineProperty;
1904
- var __defProps$1 = Object.defineProperties;
1905
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
1906
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
1907
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
1908
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
1909
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
1950
+ var __defProp$2 = Object.defineProperty;
1951
+ var __defProps$2 = Object.defineProperties;
1952
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1953
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1954
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1955
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1956
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
1910
1957
  enumerable: true,
1911
1958
  configurable: true,
1912
1959
  writable: true,
1913
1960
  value
1914
1961
  }) : obj[key] = value;
1915
- var __spreadValues$1 = (a, b) => {
1962
+ var __spreadValues$2 = (a, b) => {
1916
1963
  for (var prop in b || (b = {}))
1917
- if (__hasOwnProp$1.call(b, prop))
1918
- __defNormalProp$1(a, prop, b[prop]);
1919
- if (__getOwnPropSymbols$1) {
1920
- for (var prop of __getOwnPropSymbols$1(b))
1921
- if (__propIsEnum$1.call(b, prop))
1922
- __defNormalProp$1(a, prop, b[prop]);
1964
+ if (__hasOwnProp$2.call(b, prop))
1965
+ __defNormalProp$2(a, prop, b[prop]);
1966
+ if (__getOwnPropSymbols$2) {
1967
+ for (var prop of __getOwnPropSymbols$2(b))
1968
+ if (__propIsEnum$2.call(b, prop))
1969
+ __defNormalProp$2(a, prop, b[prop]);
1923
1970
  }
1924
1971
  return a;
1925
1972
  };
1926
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1973
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1927
1974
  var __async = (__this, __arguments, generator) => {
1928
1975
  return new Promise((resolve, reject) => {
1929
1976
  var fulfilled = (value) => {
@@ -1947,7 +1994,7 @@ var __async = (__this, __arguments, generator) => {
1947
1994
  const fetch$ = getFetch();
1948
1995
  function getContent(options) {
1949
1996
  return __async(this, null, function* () {
1950
- return (yield getAllContent(__spreadProps$1(__spreadValues$1({}, options), {
1997
+ return (yield getAllContent(__spreadProps$2(__spreadValues$2({}, options), {
1951
1998
  limit: 1
1952
1999
  }))).results[0] || null;
1953
2000
  });
@@ -1955,7 +2002,7 @@ function getContent(options) {
1955
2002
  const generateContentUrl = (options) => {
1956
2003
  const { limit = 1, userAttributes, query, noTraverse = false, model, apiKey } = options;
1957
2004
  const url = new URL(`https://cdn.builder.io/api/v2/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}`);
1958
- const queryOptions = __spreadValues$1(__spreadValues$1({}, getBuilderSearchParamsFromWindow()), normalizeSearchParams(options.options || {}));
2005
+ const queryOptions = __spreadValues$2(__spreadValues$2({}, getBuilderSearchParamsFromWindow()), normalizeSearchParams(options.options || {}));
1959
2006
  const flattened = flatten(queryOptions);
1960
2007
  for (const key in flattened)
1961
2008
  url.searchParams.set(key, String(flattened[key]));
@@ -1988,52 +2035,52 @@ function isPreviewing() {
1988
2035
  return false;
1989
2036
  return Boolean(location.search.indexOf("builder.preview=") !== -1);
1990
2037
  }
1991
- var __defProp = Object.defineProperty;
1992
- var __defProps = Object.defineProperties;
1993
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1994
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1995
- var __hasOwnProp = Object.prototype.hasOwnProperty;
1996
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
1997
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
2038
+ var __defProp$1 = Object.defineProperty;
2039
+ var __defProps$1 = Object.defineProperties;
2040
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
2041
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2042
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2043
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2044
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
1998
2045
  enumerable: true,
1999
2046
  configurable: true,
2000
2047
  writable: true,
2001
2048
  value
2002
2049
  }) : obj[key] = value;
2003
- var __spreadValues = (a, b) => {
2050
+ var __spreadValues$1 = (a, b) => {
2004
2051
  for (var prop in b || (b = {}))
2005
- if (__hasOwnProp.call(b, prop))
2006
- __defNormalProp(a, prop, b[prop]);
2007
- if (__getOwnPropSymbols) {
2008
- for (var prop of __getOwnPropSymbols(b))
2009
- if (__propIsEnum.call(b, prop))
2010
- __defNormalProp(a, prop, b[prop]);
2052
+ if (__hasOwnProp$1.call(b, prop))
2053
+ __defNormalProp$1(a, prop, b[prop]);
2054
+ if (__getOwnPropSymbols$1) {
2055
+ for (var prop of __getOwnPropSymbols$1(b))
2056
+ if (__propIsEnum$1.call(b, prop))
2057
+ __defNormalProp$1(a, prop, b[prop]);
2011
2058
  }
2012
2059
  return a;
2013
2060
  };
2014
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2015
- var __objRest = (source, exclude) => {
2061
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
2062
+ var __objRest$1 = (source, exclude) => {
2016
2063
  var target = {};
2017
2064
  for (var prop in source)
2018
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2065
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
2019
2066
  target[prop] = source[prop];
2020
- if (source != null && __getOwnPropSymbols) {
2021
- for (var prop of __getOwnPropSymbols(source))
2022
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2067
+ if (source != null && __getOwnPropSymbols$1) {
2068
+ for (var prop of __getOwnPropSymbols$1(source))
2069
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
2023
2070
  target[prop] = source[prop];
2024
2071
  }
2025
2072
  return target;
2026
2073
  };
2027
2074
  const components = [];
2028
2075
  function registerComponent(component3, info) {
2029
- components.push(__spreadValues({
2076
+ components.push(__spreadValues$1({
2030
2077
  component: component3
2031
2078
  }, info));
2032
2079
  console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
2033
2080
  return component3;
2034
2081
  }
2035
2082
  const createRegisterComponentMessage = (_a) => {
2036
- var info = __objRest(_a, [
2083
+ var info = __objRest$1(_a, [
2037
2084
  "component"
2038
2085
  ]);
2039
2086
  return {
@@ -2049,16 +2096,239 @@ const serializeFn = (fnValue) => {
2049
2096
  return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
2050
2097
  };
2051
2098
  const prepareComponentInfoToSend = (_c) => {
2052
- var { inputs } = _c, info = __objRest(_c, [
2099
+ var { inputs } = _c, info = __objRest$1(_c, [
2053
2100
  "inputs"
2054
2101
  ]);
2055
- return __spreadProps(__spreadValues({}, fastClone(info)), {
2056
- inputs: inputs == null ? void 0 : inputs.map((input) => Object.entries(input).reduce((acc, [key, value]) => __spreadProps(__spreadValues({}, acc), {
2102
+ return __spreadProps$1(__spreadValues$1({}, fastClone(info)), {
2103
+ inputs: inputs == null ? void 0 : inputs.map((input) => Object.entries(input).reduce((acc, [key, value]) => __spreadProps$1(__spreadValues$1({}, acc), {
2057
2104
  [key]: serializeValue(value)
2058
2105
  }), {}))
2059
2106
  });
2060
2107
  };
2061
- function track(event, properties) {
2108
+ const getTopLevelDomain = (host) => {
2109
+ const parts = host.split(".");
2110
+ if (parts.length > 2)
2111
+ return parts.slice(1).join(".");
2112
+ return host;
2113
+ };
2114
+ const getCookie = ({ name, canTrack }) => {
2115
+ var _a;
2116
+ try {
2117
+ if (!canTrack)
2118
+ return void 0;
2119
+ return (_a = document.cookie.split("; ").find((row) => row.startsWith(`${name}=`))) == null ? void 0 : _a.split("=")[1];
2120
+ } catch (err) {
2121
+ console.debug("[COOKIE] GET error: ", err);
2122
+ }
2123
+ };
2124
+ const stringifyCookie = (cookie) => cookie.map(([key, value]) => value ? `${key}=${value}` : key).join("; ");
2125
+ const SECURE_CONFIG = [
2126
+ [
2127
+ "secure",
2128
+ ""
2129
+ ],
2130
+ [
2131
+ "SameSite",
2132
+ "None"
2133
+ ]
2134
+ ];
2135
+ const createCookieString = ({ name, value, expires }) => {
2136
+ const secure = isBrowser() ? location.protocol === "https:" : true;
2137
+ const secureObj = secure ? SECURE_CONFIG : [
2138
+ []
2139
+ ];
2140
+ const expiresObj = expires ? [
2141
+ [
2142
+ "expires",
2143
+ expires.toUTCString()
2144
+ ]
2145
+ ] : [
2146
+ []
2147
+ ];
2148
+ const cookieValue = [
2149
+ [
2150
+ name,
2151
+ value
2152
+ ],
2153
+ ...expiresObj,
2154
+ [
2155
+ "path",
2156
+ "/"
2157
+ ],
2158
+ [
2159
+ "domain",
2160
+ getTopLevelDomain(window.location.hostname)
2161
+ ],
2162
+ ...secureObj
2163
+ ];
2164
+ const cookie = stringifyCookie(cookieValue);
2165
+ return cookie;
2166
+ };
2167
+ const setCookie = ({ name, value, expires, canTrack }) => {
2168
+ try {
2169
+ if (!canTrack)
2170
+ return void 0;
2171
+ const cookie = createCookieString({
2172
+ name,
2173
+ value,
2174
+ expires
2175
+ });
2176
+ document.cookie = cookie;
2177
+ } catch (err) {
2178
+ console.warn("[COOKIE] SET error: ", err);
2179
+ }
2180
+ };
2181
+ const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
2182
+ function uuidv4() {
2183
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
2184
+ const r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
2185
+ return v.toString(16);
2186
+ });
2187
+ }
2188
+ function uuid() {
2189
+ return uuidv4().replace(/-/g, "");
2190
+ }
2191
+ const SESSION_LOCAL_STORAGE_KEY = "builderSessionId";
2192
+ const getSessionId = ({ canTrack }) => {
2193
+ if (!canTrack)
2194
+ return void 0;
2195
+ const sessionId = getCookie({
2196
+ name: SESSION_LOCAL_STORAGE_KEY,
2197
+ canTrack
2198
+ });
2199
+ if (checkIsDefined(sessionId))
2200
+ return sessionId;
2201
+ else {
2202
+ const newSessionId = createSessionId();
2203
+ setSessionId({
2204
+ id: newSessionId,
2205
+ canTrack
2206
+ });
2207
+ }
2208
+ };
2209
+ const createSessionId = () => uuid();
2210
+ const setSessionId = ({ id, canTrack }) => setCookie({
2211
+ name: SESSION_LOCAL_STORAGE_KEY,
2212
+ value: id,
2213
+ canTrack
2214
+ });
2215
+ const getLocalStorage = () => isBrowser() && typeof localStorage !== "undefined" ? localStorage : void 0;
2216
+ const getLocalStorageItem = ({ key, canTrack }) => {
2217
+ var _a;
2218
+ try {
2219
+ if (canTrack)
2220
+ return (_a = getLocalStorage()) == null ? void 0 : _a.getItem(key);
2221
+ return void 0;
2222
+ } catch (err) {
2223
+ console.debug("[LocalStorage] GET error: ", err);
2224
+ }
2225
+ };
2226
+ const setLocalStorageItem = ({ key, canTrack, value }) => {
2227
+ var _a;
2228
+ try {
2229
+ if (canTrack)
2230
+ (_a = getLocalStorage()) == null || _a.setItem(key, value);
2231
+ } catch (err) {
2232
+ console.debug("[LocalStorage] SET error: ", err);
2233
+ }
2234
+ };
2235
+ const VISITOR_LOCAL_STORAGE_KEY = "builderVisitorId";
2236
+ const getVisitorId = ({ canTrack }) => {
2237
+ if (!canTrack)
2238
+ return void 0;
2239
+ const visitorId = getLocalStorageItem({
2240
+ key: VISITOR_LOCAL_STORAGE_KEY,
2241
+ canTrack
2242
+ });
2243
+ if (checkIsDefined(visitorId))
2244
+ return visitorId;
2245
+ else {
2246
+ const newVisitorId = createVisitorId();
2247
+ setVisitorId({
2248
+ id: newVisitorId,
2249
+ canTrack
2250
+ });
2251
+ }
2252
+ };
2253
+ const createVisitorId = () => uuid();
2254
+ const setVisitorId = ({ id, canTrack }) => setLocalStorageItem({
2255
+ key: VISITOR_LOCAL_STORAGE_KEY,
2256
+ value: id,
2257
+ canTrack
2258
+ });
2259
+ var __defProp = Object.defineProperty;
2260
+ var __defProps = Object.defineProperties;
2261
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2262
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2263
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2264
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2265
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
2266
+ enumerable: true,
2267
+ configurable: true,
2268
+ writable: true,
2269
+ value
2270
+ }) : obj[key] = value;
2271
+ var __spreadValues = (a, b) => {
2272
+ for (var prop in b || (b = {}))
2273
+ if (__hasOwnProp.call(b, prop))
2274
+ __defNormalProp(a, prop, b[prop]);
2275
+ if (__getOwnPropSymbols) {
2276
+ for (var prop of __getOwnPropSymbols(b))
2277
+ if (__propIsEnum.call(b, prop))
2278
+ __defNormalProp(a, prop, b[prop]);
2279
+ }
2280
+ return a;
2281
+ };
2282
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2283
+ var __objRest = (source, exclude) => {
2284
+ var target = {};
2285
+ for (var prop in source)
2286
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2287
+ target[prop] = source[prop];
2288
+ if (source != null && __getOwnPropSymbols) {
2289
+ for (var prop of __getOwnPropSymbols(source))
2290
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2291
+ target[prop] = source[prop];
2292
+ }
2293
+ return target;
2294
+ };
2295
+ const getTrackingEventData = ({ canTrack }) => {
2296
+ if (!canTrack)
2297
+ return {
2298
+ visitorId: void 0,
2299
+ sessionId: void 0
2300
+ };
2301
+ const sessionId = getSessionId({
2302
+ canTrack
2303
+ });
2304
+ const visitorId = getVisitorId({
2305
+ canTrack
2306
+ });
2307
+ return {
2308
+ sessionId,
2309
+ visitorId
2310
+ };
2311
+ };
2312
+ const createEvent = (_a) => {
2313
+ var { type: eventType, canTrack, orgId, contentId } = _a, properties = __objRest(_a, [
2314
+ "type",
2315
+ "canTrack",
2316
+ "orgId",
2317
+ "contentId"
2318
+ ]);
2319
+ return {
2320
+ type: eventType,
2321
+ data: __spreadProps(__spreadValues(__spreadValues({}, properties), getTrackingEventData({
2322
+ canTrack
2323
+ })), {
2324
+ ownerId: orgId,
2325
+ contentId
2326
+ })
2327
+ };
2328
+ };
2329
+ function track(eventProps) {
2330
+ if (!eventProps.canTrack)
2331
+ return;
2062
2332
  if (isEditing())
2063
2333
  return;
2064
2334
  if (!(isBrowser() || TARGET === "reactNative"))
@@ -2067,10 +2337,7 @@ function track(event, properties) {
2067
2337
  method: "POST",
2068
2338
  body: JSON.stringify({
2069
2339
  events: [
2070
- {
2071
- type: event,
2072
- data: properties
2073
- }
2340
+ createEvent(eventProps)
2074
2341
  ]
2075
2342
  }),
2076
2343
  headers: {
@@ -2140,6 +2407,9 @@ const useContent = function useContent2(props, state, elementRef) {
2140
2407
  };
2141
2408
  return mergedContent;
2142
2409
  };
2410
+ const canTrackToUse = function canTrackToUse2(props, state, elementRef) {
2411
+ return props.canTrack || true;
2412
+ };
2143
2413
  const contentState = function contentState2(props, state, elementRef) {
2144
2414
  return {
2145
2415
  ...props.content?.data?.state,
@@ -2189,9 +2459,12 @@ const httpReqsData = function httpReqsData2(props, state, elementRef) {
2189
2459
  return {};
2190
2460
  };
2191
2461
  const onClick2 = function onClick3(props, state, elementRef, _event) {
2192
- if (useContent(props, state) && props.canTrack !== false)
2193
- track("click", {
2194
- contentId: useContent(props, state).id
2462
+ if (useContent(props, state))
2463
+ track({
2464
+ type: "click",
2465
+ canTrack: canTrackToUse(props),
2466
+ contentId: useContent(props, state).id,
2467
+ orgId: props.apiKey
2195
2468
  });
2196
2469
  };
2197
2470
  const evalExpression = function evalExpression2(props, state, elementRef, expression) {
@@ -2269,7 +2542,7 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2269
2542
  const [elementRef2, props2, state2] = useLexicalScope();
2270
2543
  if (isBrowser()) {
2271
2544
  if (isEditing()) {
2272
- state2.forceReRenderCount++;
2545
+ state2.forceReRenderCount = state2.forceReRenderCount + 1;
2273
2546
  _useMutableProps(elementRef2.current, true);
2274
2547
  registerInsertMenu();
2275
2548
  setupBrowserForEditing();
@@ -2280,9 +2553,12 @@ const RenderContent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2280
2553
  window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
2281
2554
  window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
2282
2555
  }
2283
- if (useContent(props2, state2) && props2.canTrack !== false)
2284
- track("impression", {
2285
- contentId: useContent(props2, state2).id
2556
+ if (useContent(props2, state2))
2557
+ track({
2558
+ type: "impression",
2559
+ canTrack: canTrackToUse(props2),
2560
+ contentId: useContent(props2, state2).id,
2561
+ orgId: props2.apiKey
2286
2562
  });
2287
2563
  if (isPreviewing()) {
2288
2564
  const searchParams = new URL(location.href).searchParams;
@@ -2385,9 +2661,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
2385
2661
  ]));
2386
2662
  useWatchQrl(inlinedQrl(({ track: track2 }) => {
2387
2663
  const [builderContext2, props2, state2] = useLexicalScope();
2388
- props2.symbol && track2(props2.symbol, "content");
2389
- props2.symbol && track2(props2.symbol, "model");
2390
- props2.symbol && track2(props2.symbol, "entry");
2664
+ props2 && track2(props2, "symbol");
2391
2665
  state2 && track2(state2, "content");
2392
2666
  const symbolToUse = props2.symbol;
2393
2667
  if (symbolToUse && !symbolToUse.content && !state2.content && symbolToUse.model)