@builder.io/sdk-solid 3.0.5 → 3.0.6

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.
package/lib/edge/dev.js CHANGED
@@ -4797,7 +4797,7 @@ function Block(props) {
4797
4797
  });
4798
4798
  }
4799
4799
  var block_default = Block;
4800
- var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3c4beb0c {
4800
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3d7ff108 {
4801
4801
  display: flex;
4802
4802
  flex-direction: column;
4803
4803
  align-items: stretch;
@@ -4810,8 +4810,9 @@ function BlocksWrapper(props) {
4810
4810
  if (!props.path) {
4811
4811
  return void 0;
4812
4812
  }
4813
+ const thisPrefix = "this.";
4813
4814
  const pathPrefix = "component.options.";
4814
- return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
4815
+ return props.path.startsWith(thisPrefix) ? props.path.replace(thisPrefix, "") : props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
4815
4816
  });
4816
4817
  function onClick() {
4817
4818
  if (isEditing() && !props.blocks?.length) {
@@ -4840,7 +4841,7 @@ function BlocksWrapper(props) {
4840
4841
  });
4841
4842
  return [createComponent(Dynamic, mergeProps({
4842
4843
  get ["class"]() {
4843
- return className() + " dynamic-3c4beb0c";
4844
+ return className() + " dynamic-3d7ff108";
4844
4845
  },
4845
4846
  ref(r$) {
4846
4847
  const _ref$ = blocksWrapperRef;
@@ -5534,8 +5535,58 @@ var handleABTesting = async ({
5534
5535
  };
5535
5536
  };
5536
5537
 
5538
+ // src/helpers/user-attributes.ts
5539
+ var USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
5540
+ function createUserAttributesService() {
5541
+ let canTrack = true;
5542
+ const subscribers = /* @__PURE__ */ new Set();
5543
+ return {
5544
+ setUserAttributes(newAttrs) {
5545
+ if (!isBrowser()) {
5546
+ return;
5547
+ }
5548
+ const userAttributes = {
5549
+ ...this.getUserAttributes(),
5550
+ ...newAttrs
5551
+ };
5552
+ setCookie({
5553
+ name: USER_ATTRIBUTES_COOKIE_NAME,
5554
+ value: JSON.stringify(userAttributes),
5555
+ canTrack
5556
+ });
5557
+ subscribers.forEach((callback) => callback(userAttributes));
5558
+ },
5559
+ getUserAttributes() {
5560
+ if (!isBrowser()) {
5561
+ return {};
5562
+ }
5563
+ return JSON.parse(getCookieSync({
5564
+ name: USER_ATTRIBUTES_COOKIE_NAME,
5565
+ canTrack
5566
+ }) || "{}");
5567
+ },
5568
+ subscribeOnUserAttributesChange(callback) {
5569
+ subscribers.add(callback);
5570
+ return () => {
5571
+ subscribers.delete(callback);
5572
+ };
5573
+ },
5574
+ setCanTrack(value) {
5575
+ canTrack = value;
5576
+ }
5577
+ };
5578
+ }
5579
+ var userAttributesService = createUserAttributesService();
5580
+ var setClientUserAttributes = (attributes) => {
5581
+ userAttributesService.setUserAttributes(attributes);
5582
+ };
5583
+
5537
5584
  // src/helpers/canTrack.ts
5538
- var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5585
+ var getDefaultCanTrack = (canTrack) => {
5586
+ const result = checkIsDefined(canTrack) ? canTrack : true;
5587
+ userAttributesService.setCanTrack(result);
5588
+ return result;
5589
+ };
5539
5590
 
5540
5591
  // src/blocks/accordion/component-info.ts
5541
5592
  var defaultTitle = {
@@ -6266,8 +6317,408 @@ var componentInfo5 = {
6266
6317
  }
6267
6318
  };
6268
6319
 
6269
- // src/blocks/section/component-info.ts
6320
+ // src/blocks/personalization-container/component-info.ts
6270
6321
  var componentInfo6 = {
6322
+ name: "PersonalizationContainer",
6323
+ shouldReceiveBuilderProps: {
6324
+ builderBlock: true,
6325
+ builderContext: true
6326
+ },
6327
+ noWrap: true,
6328
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
6329
+ canHaveChildren: true,
6330
+ inputs: [{
6331
+ name: "variants",
6332
+ defaultValue: [],
6333
+ behavior: "personalizationVariantList",
6334
+ type: "list",
6335
+ subFields: [{
6336
+ name: "name",
6337
+ type: "text"
6338
+ }, {
6339
+ name: "query",
6340
+ friendlyName: "Targeting rules",
6341
+ type: "BuilderQuery",
6342
+ defaultValue: []
6343
+ }, {
6344
+ name: "startDate",
6345
+ type: "date"
6346
+ }, {
6347
+ name: "endDate",
6348
+ type: "date"
6349
+ }, {
6350
+ name: "blocks",
6351
+ type: "uiBlocks",
6352
+ hideFromUI: true,
6353
+ defaultValue: []
6354
+ }]
6355
+ }]
6356
+ };
6357
+ var _tmpl$8 = /* @__PURE__ */ template(`<script>`);
6358
+ function InlinedScript(props) {
6359
+ return (() => {
6360
+ const _el$ = _tmpl$8();
6361
+ effect((_p$) => {
6362
+ const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
6363
+ _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
6364
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
6365
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
6366
+ return _p$;
6367
+ }, {
6368
+ _v$: void 0,
6369
+ _v$2: void 0,
6370
+ _v$3: void 0
6371
+ });
6372
+ return _el$;
6373
+ })();
6374
+ }
6375
+ var inlined_script_default = InlinedScript;
6376
+
6377
+ // src/functions/is-previewing.ts
6378
+ function isPreviewing(_search) {
6379
+ const search = _search || (isBrowser() ? window.location.search : void 0);
6380
+ if (!search) {
6381
+ return false;
6382
+ }
6383
+ const normalizedSearch = getSearchString(search);
6384
+ return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
6385
+ }
6386
+
6387
+ // src/blocks/personalization-container/helpers/inlined-fns.ts
6388
+ function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
6389
+ function isString(val) {
6390
+ return typeof val === "string";
6391
+ }
6392
+ function isNumber(val) {
6393
+ return typeof val === "number";
6394
+ }
6395
+ function objectMatchesQuery(userattr, query2) {
6396
+ const result = (() => {
6397
+ const property = query2.property;
6398
+ const operator = query2.operator;
6399
+ let testValue = query2.value;
6400
+ if (query2 && query2.property === "urlPath" && query2.value && typeof query2.value === "string" && query2.value !== "/" && query2.value.endsWith("/")) {
6401
+ testValue = query2.value.slice(0, -1);
6402
+ }
6403
+ if (!(property && operator)) {
6404
+ return true;
6405
+ }
6406
+ if (Array.isArray(testValue)) {
6407
+ if (operator === "isNot") {
6408
+ return testValue.every((val) => objectMatchesQuery(userattr, {
6409
+ property,
6410
+ operator,
6411
+ value: val
6412
+ }));
6413
+ }
6414
+ return !!testValue.find((val) => objectMatchesQuery(userattr, {
6415
+ property,
6416
+ operator,
6417
+ value: val
6418
+ }));
6419
+ }
6420
+ const value = userattr[property];
6421
+ if (Array.isArray(value)) {
6422
+ return value.includes(testValue);
6423
+ }
6424
+ switch (operator) {
6425
+ case "is":
6426
+ return value === testValue;
6427
+ case "isNot":
6428
+ return value !== testValue;
6429
+ case "contains":
6430
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
6431
+ case "startsWith":
6432
+ return isString(value) && value.startsWith(String(testValue));
6433
+ case "endsWith":
6434
+ return isString(value) && value.endsWith(String(testValue));
6435
+ case "greaterThan":
6436
+ return isNumber(value) && isNumber(testValue) && value > testValue;
6437
+ case "lessThan":
6438
+ return isNumber(value) && isNumber(testValue) && value < testValue;
6439
+ case "greaterThanOrEqualTo":
6440
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
6441
+ case "lessThanOrEqualTo":
6442
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
6443
+ default:
6444
+ return false;
6445
+ }
6446
+ })();
6447
+ return result;
6448
+ }
6449
+ const item = {
6450
+ query,
6451
+ startDate,
6452
+ endDate
6453
+ };
6454
+ const now = userAttributes.date && new Date(userAttributes.date) || /* @__PURE__ */ new Date();
6455
+ if (item.startDate && new Date(item.startDate) > now) {
6456
+ return false;
6457
+ } else if (item.endDate && new Date(item.endDate) < now) {
6458
+ return false;
6459
+ }
6460
+ if (!item.query || !item.query.length) {
6461
+ return true;
6462
+ }
6463
+ return item.query.every((filter) => {
6464
+ return objectMatchesQuery(userAttributes, filter);
6465
+ });
6466
+ }
6467
+ var PERSONALIZATION_SCRIPT = `function getPersonalizedVariant(variants, blockId, locale) {
6468
+ if (!navigator.cookieEnabled) {
6469
+ return;
6470
+ }
6471
+ function getCookie(name) {
6472
+ const nameEQ = name + '=';
6473
+ const ca = document.cookie.split(';');
6474
+ for (let i = 0; i < ca.length; i++) {
6475
+ let c = ca[i];
6476
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
6477
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
6478
+ }
6479
+ return null;
6480
+ }
6481
+ function removeVariants() {
6482
+ variants?.forEach(function (_, index) {
6483
+ document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
6484
+ });
6485
+ document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
6486
+ document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
6487
+ }
6488
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
6489
+ if (locale) {
6490
+ attributes.locale = locale;
6491
+ }
6492
+ const winningVariantIndex = variants?.findIndex(function (variant) {
6493
+ return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
6494
+ });
6495
+ const isDebug = location.href.includes('builder.debug=true');
6496
+ if (isDebug) {
6497
+ console.debug('PersonalizationContainer', {
6498
+ attributes,
6499
+ variants,
6500
+ winningVariantIndex
6501
+ });
6502
+ }
6503
+ if (winningVariantIndex !== -1) {
6504
+ const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
6505
+ if (winningVariant) {
6506
+ const parentNode = winningVariant.parentNode;
6507
+ if (parentNode) {
6508
+ const newParent = parentNode.cloneNode(false);
6509
+ newParent.appendChild(winningVariant.content.firstChild);
6510
+ newParent.appendChild(winningVariant.content.lastChild);
6511
+ parentNode.parentNode?.replaceChild(newParent, parentNode);
6512
+ }
6513
+ if (isDebug) {
6514
+ console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
6515
+ }
6516
+ }
6517
+ } else if (variants && variants.length > 0) {
6518
+ removeVariants();
6519
+ }
6520
+ }`;
6521
+ var FILTER_WITH_CUSTOM_TARGETING_SCRIPT = "function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {\n function isString(val) {\n return typeof val === 'string';\n }\n function isNumber(val) {\n return typeof val === 'number';\n }\n function objectMatchesQuery(userattr, query) {\n const result = (() => {\n const property = query.property;\n const operator = query.operator;\n let testValue = query.value;\n if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {\n testValue = query.value.slice(0, -1);\n }\n if (!(property && operator)) {\n return true;\n }\n if (Array.isArray(testValue)) {\n if (operator === 'isNot') {\n return testValue.every(val => objectMatchesQuery(userattr, {\n property,\n operator,\n value: val\n }));\n }\n return !!testValue.find(val => objectMatchesQuery(userattr, {\n property,\n operator,\n value: val\n }));\n }\n const value = userattr[property];\n if (Array.isArray(value)) {\n return value.includes(testValue);\n }\n switch (operator) {\n case 'is':\n return value === testValue;\n case 'isNot':\n return value !== testValue;\n case 'contains':\n return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));\n case 'startsWith':\n return isString(value) && value.startsWith(String(testValue));\n case 'endsWith':\n return isString(value) && value.endsWith(String(testValue));\n case 'greaterThan':\n return isNumber(value) && isNumber(testValue) && value > testValue;\n case 'lessThan':\n return isNumber(value) && isNumber(testValue) && value < testValue;\n case 'greaterThanOrEqualTo':\n return isNumber(value) && isNumber(testValue) && value >= testValue;\n case 'lessThanOrEqualTo':\n return isNumber(value) && isNumber(testValue) && value <= testValue;\n default:\n return false;\n }\n })();\n return result;\n }\n const item = {\n query,\n startDate,\n endDate\n };\n const now = userAttributes.date && new Date(userAttributes.date) || new Date();\n if (item.startDate && new Date(item.startDate) > now) {\n return false;\n } else if (item.endDate && new Date(item.endDate) < now) {\n return false;\n }\n if (!item.query || !item.query.length) {\n return true;\n }\n return item.query.every(filter => {\n return objectMatchesQuery(userAttributes, filter);\n });\n}";
6522
+
6523
+ // src/blocks/personalization-container/helpers.ts
6524
+ function checkShouldRenderVariants(variants, canTrack) {
6525
+ const hasVariants = variants && variants.length > 0;
6526
+ if (TARGET === "reactNative")
6527
+ return false;
6528
+ if (!hasVariants)
6529
+ return false;
6530
+ if (!canTrack)
6531
+ return false;
6532
+ if (TARGET === "vue" || TARGET === "svelte")
6533
+ return true;
6534
+ if (isBrowser())
6535
+ return false;
6536
+ return true;
6537
+ }
6538
+ function getBlocksToRender({
6539
+ variants,
6540
+ previewingIndex,
6541
+ isHydrated,
6542
+ filteredVariants,
6543
+ fallbackBlocks
6544
+ }) {
6545
+ const fallback = {
6546
+ blocks: fallbackBlocks ?? [],
6547
+ path: "this.children"
6548
+ };
6549
+ if (isHydrated && isEditing()) {
6550
+ if (typeof previewingIndex === "number" && previewingIndex < (variants?.length ?? 0)) {
6551
+ const variant = variants[previewingIndex];
6552
+ return {
6553
+ blocks: variant.blocks,
6554
+ path: `component.options.variants.${previewingIndex}.blocks`
6555
+ };
6556
+ }
6557
+ return fallback;
6558
+ }
6559
+ if (isBrowser()) {
6560
+ const winningVariant = filteredVariants?.[0];
6561
+ if (winningVariant) {
6562
+ return {
6563
+ blocks: winningVariant.blocks,
6564
+ path: `component.options.variants.${variants?.indexOf(winningVariant)}.blocks`
6565
+ };
6566
+ }
6567
+ }
6568
+ return fallback;
6569
+ }
6570
+ var getPersonalizationScript = (variants, blockId, locale) => {
6571
+ return `
6572
+ (function() {
6573
+ ${FILTER_WITH_CUSTOM_TARGETING_SCRIPT}
6574
+ ${PERSONALIZATION_SCRIPT}
6575
+ getPersonalizedVariant(${JSON.stringify(variants)}, "${blockId}"${locale ? `, "${locale}"` : ""})
6576
+ })();
6577
+ `;
6578
+ };
6579
+
6580
+ // src/blocks/personalization-container/personalization-container.tsx
6581
+ var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
6582
+ var _tmpl$25 = /* @__PURE__ */ template(`<template>`);
6583
+ function PersonalizationContainer(props) {
6584
+ const [userAttributes, setUserAttributes] = createSignal(userAttributesService.getUserAttributes());
6585
+ const [scriptStr, setScriptStr] = createSignal(getPersonalizationScript(props.variants, props.builderBlock?.id || "none", props.builderContext?.rootState?.locale));
6586
+ const [unsubscribers, setUnsubscribers] = createSignal([]);
6587
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants(props.variants, getDefaultCanTrack(props.builderContext?.canTrack)));
6588
+ const [isHydrated, setIsHydrated] = createSignal(false);
6589
+ const filteredVariants = createMemo(() => {
6590
+ return (props.variants || []).filter((variant) => {
6591
+ return filterWithCustomTargeting({
6592
+ ...props.builderContext?.rootState?.locale ? {
6593
+ locale: props.builderContext?.rootState?.locale
6594
+ } : {},
6595
+ ...userAttributes()
6596
+ }, variant.query, variant.startDate, variant.endDate);
6597
+ });
6598
+ });
6599
+ const blocksToRender = createMemo(() => {
6600
+ return getBlocksToRender({
6601
+ variants: props.variants,
6602
+ fallbackBlocks: props.builderBlock?.children,
6603
+ isHydrated: isHydrated(),
6604
+ filteredVariants: filteredVariants(),
6605
+ previewingIndex: props.previewingIndex
6606
+ });
6607
+ });
6608
+ const hideVariantsStyleString = createMemo(() => {
6609
+ return (props.variants || []).map((_, index) => `[data-variant-id="${props.builderBlock?.id}-${index}"] { display: none; } `).join("");
6610
+ });
6611
+ let rootRef;
6612
+ onMount(() => {
6613
+ setIsHydrated(true);
6614
+ const unsub = userAttributesService.subscribeOnUserAttributesChange((attrs) => {
6615
+ setUserAttributes(attrs);
6616
+ });
6617
+ if (!(isEditing() || isPreviewing())) {
6618
+ const variant = filteredVariants()[0];
6619
+ if (rootRef) {
6620
+ rootRef.dispatchEvent(new CustomEvent("builder.variantLoaded", {
6621
+ detail: {
6622
+ variant: variant || "default",
6623
+ content: props.builderContext?.content
6624
+ },
6625
+ bubbles: true
6626
+ }));
6627
+ const observer = new IntersectionObserver((entries) => {
6628
+ entries.forEach((entry) => {
6629
+ if (entry.isIntersecting && rootRef) {
6630
+ rootRef.dispatchEvent(new CustomEvent("builder.variantDisplayed", {
6631
+ detail: {
6632
+ variant: variant || "default",
6633
+ content: props.builderContext?.content
6634
+ },
6635
+ bubbles: true
6636
+ }));
6637
+ }
6638
+ });
6639
+ });
6640
+ observer.observe(rootRef);
6641
+ }
6642
+ }
6643
+ unsubscribers().push(unsub);
6644
+ });
6645
+ return (() => {
6646
+ const _el$ = _tmpl$9();
6647
+ const _ref$ = rootRef;
6648
+ typeof _ref$ === "function" ? use(_ref$, _el$) : rootRef = _el$;
6649
+ spread(_el$, mergeProps({
6650
+ get ["class"]() {
6651
+ return `builder-personalization-container ${props.attributes?.className || ""}`;
6652
+ }
6653
+ }, () => props.attributes), false, true);
6654
+ insert(_el$, createComponent(Show, {
6655
+ get when() {
6656
+ return shouldRenderVariants();
6657
+ },
6658
+ get children() {
6659
+ return [createComponent(For, {
6660
+ get each() {
6661
+ return props.variants;
6662
+ },
6663
+ children: (variant, _index) => {
6664
+ const index = _index();
6665
+ return (() => {
6666
+ const _el$2 = _tmpl$25();
6667
+ setAttribute(_el$2, "key", index);
6668
+ insert(_el$2, createComponent(blocks_default, {
6669
+ get blocks() {
6670
+ return variant.blocks;
6671
+ },
6672
+ get parent() {
6673
+ return props.builderBlock?.id;
6674
+ },
6675
+ path: `component.options.variants.${index}.blocks`
6676
+ }));
6677
+ effect(() => setAttribute(_el$2, "data-variant-id", `${props.builderBlock?.id}-${index}`));
6678
+ return _el$2;
6679
+ })();
6680
+ }
6681
+ }), createComponent(inlined_styles_default, {
6682
+ get nonce() {
6683
+ return props.builderContext?.nonce || "";
6684
+ },
6685
+ get styles() {
6686
+ return hideVariantsStyleString();
6687
+ },
6688
+ get id() {
6689
+ return `variants-styles-${props.builderBlock?.id}`;
6690
+ }
6691
+ }), createComponent(inlined_script_default, {
6692
+ get nonce() {
6693
+ return props.builderContext?.nonce || "";
6694
+ },
6695
+ get scriptStr() {
6696
+ return scriptStr();
6697
+ },
6698
+ get id() {
6699
+ return `variants-script-${props.builderBlock?.id}`;
6700
+ }
6701
+ })];
6702
+ }
6703
+ }), null);
6704
+ insert(_el$, createComponent(blocks_default, {
6705
+ get blocks() {
6706
+ return blocksToRender().blocks;
6707
+ },
6708
+ get parent() {
6709
+ return props.builderBlock?.id;
6710
+ },
6711
+ get path() {
6712
+ return blocksToRender().path;
6713
+ }
6714
+ }), null);
6715
+ return _el$;
6716
+ })();
6717
+ }
6718
+ var personalization_container_default = PersonalizationContainer;
6719
+
6720
+ // src/blocks/section/component-info.ts
6721
+ var componentInfo7 = {
6271
6722
  name: "Core:Section",
6272
6723
  static: true,
6273
6724
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -6309,7 +6760,7 @@ var componentInfo6 = {
6309
6760
  };
6310
6761
 
6311
6762
  // src/blocks/slot/component-info.ts
6312
- var componentInfo7 = {
6763
+ var componentInfo8 = {
6313
6764
  name: "Slot",
6314
6765
  isRSC: true,
6315
6766
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -6327,10 +6778,10 @@ var componentInfo7 = {
6327
6778
  builderComponents: true
6328
6779
  }
6329
6780
  };
6330
- var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
6781
+ var _tmpl$10 = /* @__PURE__ */ template(`<div>`);
6331
6782
  function Slot(props) {
6332
6783
  return (() => {
6333
- const _el$ = _tmpl$8();
6784
+ const _el$ = _tmpl$10();
6334
6785
  _el$.style.setProperty("pointer-events", "auto");
6335
6786
  spread(_el$, mergeProps(() => !props.builderContext.context?.symbolId && {
6336
6787
  "builder-slot": props.name
@@ -6358,7 +6809,7 @@ function Slot(props) {
6358
6809
  var slot_default = Slot;
6359
6810
 
6360
6811
  // src/blocks/symbol/component-info.ts
6361
- var componentInfo8 = {
6812
+ var componentInfo9 = {
6362
6813
  name: "Symbol",
6363
6814
  noWrap: true,
6364
6815
  static: true,
@@ -6440,7 +6891,7 @@ var defaultElement = {
6440
6891
  }
6441
6892
  }
6442
6893
  };
6443
- var componentInfo9 = {
6894
+ var componentInfo10 = {
6444
6895
  name: "Builder: Tabs",
6445
6896
  inputs: [{
6446
6897
  name: "tabs",
@@ -6544,8 +6995,8 @@ var componentInfo9 = {
6544
6995
  builderLinkComponent: true
6545
6996
  }
6546
6997
  };
6547
- var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
6548
- var _tmpl$25 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6998
+ var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
6999
+ var _tmpl$26 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6549
7000
  var _tmpl$33 = /* @__PURE__ */ template(`<span>`);
6550
7001
  function Tabs(props) {
6551
7002
  const [activeTab, setActiveTab] = createSignal(props.defaultActiveTab ? props.defaultActiveTab - 1 : 0);
@@ -6560,7 +7011,7 @@ function Tabs(props) {
6560
7011
  }
6561
7012
  }
6562
7013
  return (() => {
6563
- const _el$ = _tmpl$25(), _el$2 = _el$.firstChild;
7014
+ const _el$ = _tmpl$26(), _el$2 = _el$.firstChild;
6564
7015
  _el$2.style.setProperty("display", "flex");
6565
7016
  _el$2.style.setProperty("flex-direction", "row");
6566
7017
  _el$2.style.setProperty("overflow", "auto");
@@ -6612,7 +7063,7 @@ function Tabs(props) {
6612
7063
  return activeTabContent(activeTab());
6613
7064
  },
6614
7065
  get children() {
6615
- const _el$3 = _tmpl$9();
7066
+ const _el$3 = _tmpl$11();
6616
7067
  insert(_el$3, createComponent(blocks_default, {
6617
7068
  get parent() {
6618
7069
  return props.builderBlock.id;
@@ -6644,7 +7095,7 @@ var tabs_default = Tabs;
6644
7095
  delegateEvents(["click"]);
6645
7096
 
6646
7097
  // src/blocks/text/component-info.ts
6647
- var componentInfo10 = {
7098
+ var componentInfo11 = {
6648
7099
  shouldReceiveBuilderProps: {
6649
7100
  builderBlock: TARGET === "reactNative" ? true : false,
6650
7101
  builderContext: true
@@ -6667,10 +7118,10 @@ var componentInfo10 = {
6667
7118
  textAlign: "center"
6668
7119
  }
6669
7120
  };
6670
- var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
7121
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-text>`);
6671
7122
  function Text(props) {
6672
7123
  return (() => {
6673
- const _el$ = _tmpl$10();
7124
+ const _el$ = _tmpl$12();
6674
7125
  _el$.style.setProperty("outline", "none");
6675
7126
  effect(() => _el$.innerHTML = props.text?.toString() || "");
6676
7127
  return _el$;
@@ -6679,7 +7130,7 @@ function Text(props) {
6679
7130
  var text_default = Text;
6680
7131
 
6681
7132
  // src/blocks/custom-code/component-info.ts
6682
- var componentInfo11 = {
7133
+ var componentInfo12 = {
6683
7134
  name: "Custom Code",
6684
7135
  static: true,
6685
7136
  requiredPermissions: ["editCode"],
@@ -6702,7 +7153,7 @@ var componentInfo11 = {
6702
7153
  advanced: true
6703
7154
  }]
6704
7155
  };
6705
- var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
7156
+ var _tmpl$13 = /* @__PURE__ */ template(`<div>`);
6706
7157
  function CustomCode(props) {
6707
7158
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6708
7159
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6737,7 +7188,7 @@ function CustomCode(props) {
6737
7188
  }
6738
7189
  });
6739
7190
  return (() => {
6740
- const _el$ = _tmpl$11();
7191
+ const _el$ = _tmpl$13();
6741
7192
  const _ref$ = elementRef;
6742
7193
  typeof _ref$ === "function" ? use(_ref$, _el$) : elementRef = _el$;
6743
7194
  effect((_p$) => {
@@ -6755,7 +7206,7 @@ function CustomCode(props) {
6755
7206
  var custom_code_default = CustomCode;
6756
7207
 
6757
7208
  // src/blocks/embed/component-info.ts
6758
- var componentInfo12 = {
7209
+ var componentInfo13 = {
6759
7210
  name: "Embed",
6760
7211
  static: true,
6761
7212
  inputs: [{
@@ -6777,7 +7228,7 @@ var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "applicati
6777
7228
  var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
6778
7229
 
6779
7230
  // src/blocks/embed/embed.tsx
6780
- var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-embed>`);
7231
+ var _tmpl$14 = /* @__PURE__ */ template(`<div class=builder-embed>`);
6781
7232
  function Embed(props) {
6782
7233
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6783
7234
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6815,7 +7266,7 @@ function Embed(props) {
6815
7266
  }
6816
7267
  createEffect(on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0));
6817
7268
  return (() => {
6818
- const _el$ = _tmpl$12();
7269
+ const _el$ = _tmpl$14();
6819
7270
  const _ref$ = elem;
6820
7271
  typeof _ref$ === "function" ? use(_ref$, _el$) : elem = _el$;
6821
7272
  effect(() => _el$.innerHTML = props.content);
@@ -6825,7 +7276,7 @@ function Embed(props) {
6825
7276
  var embed_default = Embed;
6826
7277
 
6827
7278
  // src/blocks/form/form/component-info.ts
6828
- var componentInfo13 = {
7279
+ var componentInfo14 = {
6829
7280
  name: "Form:Form",
6830
7281
  // editableTags: ['builder-form-error']
6831
7282
  defaults: {
@@ -7081,8 +7532,8 @@ function logFetch(url) {
7081
7532
  }
7082
7533
 
7083
7534
  // src/blocks/form/form/form.tsx
7084
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
7085
- var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
7535
+ var _tmpl$15 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
7536
+ var _tmpl$27 = /* @__PURE__ */ template(`<form>`);
7086
7537
  var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
7087
7538
  padding: 10px;
7088
7539
  color: red;
@@ -7275,7 +7726,7 @@ function FormComponent(props) {
7275
7726
  }
7276
7727
  let formRef;
7277
7728
  return [(() => {
7278
- const _el$ = _tmpl$26();
7729
+ const _el$ = _tmpl$27();
7279
7730
  _el$.addEventListener("submit", (event) => onSubmit(event));
7280
7731
  const _ref$ = formRef;
7281
7732
  typeof _ref$ === "function" ? use(_ref$, _el$) : formRef = _el$;
@@ -7331,7 +7782,7 @@ function FormComponent(props) {
7331
7782
  return memo(() => submissionState() === "error")() && responseData();
7332
7783
  },
7333
7784
  get children() {
7334
- const _el$2 = _tmpl$13();
7785
+ const _el$2 = _tmpl$15();
7335
7786
  insert(_el$2, () => JSON.stringify(responseData(), null, 2));
7336
7787
  return _el$2;
7337
7788
  }
@@ -7358,7 +7809,7 @@ function FormComponent(props) {
7358
7809
  var form_default = FormComponent;
7359
7810
 
7360
7811
  // src/blocks/form/input/component-info.ts
7361
- var componentInfo14 = {
7812
+ var componentInfo15 = {
7362
7813
  name: "Form:Input",
7363
7814
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
7364
7815
  inputs: [
@@ -7410,10 +7861,10 @@ var componentInfo14 = {
7410
7861
  borderColor: "#ccc"
7411
7862
  }
7412
7863
  };
7413
- var _tmpl$14 = /* @__PURE__ */ template(`<input>`);
7864
+ var _tmpl$16 = /* @__PURE__ */ template(`<input>`);
7414
7865
  function FormInputComponent(props) {
7415
7866
  return (() => {
7416
- const _el$ = _tmpl$14();
7867
+ const _el$ = _tmpl$16();
7417
7868
  spread(_el$, mergeProps({}, () => props.attributes, {
7418
7869
  get key() {
7419
7870
  return isEditing() && props.defaultValue ? props.defaultValue : "default-key";
@@ -7443,7 +7894,7 @@ function FormInputComponent(props) {
7443
7894
  var input_default = FormInputComponent;
7444
7895
 
7445
7896
  // src/blocks/form/select/component-info.ts
7446
- var componentInfo15 = {
7897
+ var componentInfo16 = {
7447
7898
  name: "Form:Select",
7448
7899
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
7449
7900
  defaultStyles: {
@@ -7486,11 +7937,11 @@ var componentInfo15 = {
7486
7937
  static: true,
7487
7938
  noWrap: true
7488
7939
  };
7489
- var _tmpl$15 = /* @__PURE__ */ template(`<select>`);
7490
- var _tmpl$27 = /* @__PURE__ */ template(`<option>`);
7940
+ var _tmpl$17 = /* @__PURE__ */ template(`<select>`);
7941
+ var _tmpl$28 = /* @__PURE__ */ template(`<option>`);
7491
7942
  function SelectComponent(props) {
7492
7943
  return (() => {
7493
- const _el$ = _tmpl$15();
7944
+ const _el$ = _tmpl$17();
7494
7945
  spread(_el$, mergeProps({}, () => props.attributes, {
7495
7946
  get value() {
7496
7947
  return props.value;
@@ -7515,7 +7966,7 @@ function SelectComponent(props) {
7515
7966
  children: (option, _index) => {
7516
7967
  const index = _index();
7517
7968
  return (() => {
7518
- const _el$2 = _tmpl$27();
7969
+ const _el$2 = _tmpl$28();
7519
7970
  insert(_el$2, () => option.name || option.value);
7520
7971
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
7521
7972
  effect(() => _el$2.value = option.value);
@@ -7529,7 +7980,7 @@ function SelectComponent(props) {
7529
7980
  var select_default = SelectComponent;
7530
7981
 
7531
7982
  // src/blocks/form/submit-button/component-info.ts
7532
- var componentInfo16 = {
7983
+ var componentInfo17 = {
7533
7984
  name: "Form:SubmitButton",
7534
7985
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
7535
7986
  defaultStyles: {
@@ -7555,10 +8006,10 @@ var componentInfo16 = {
7555
8006
  // TODO: defaultChildren
7556
8007
  // canHaveChildren: true,
7557
8008
  };
7558
- var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
8009
+ var _tmpl$18 = /* @__PURE__ */ template(`<button type=submit>`);
7559
8010
  function SubmitButton(props) {
7560
8011
  return (() => {
7561
- const _el$ = _tmpl$16();
8012
+ const _el$ = _tmpl$18();
7562
8013
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
7563
8014
  insert(_el$, () => props.text);
7564
8015
  return _el$;
@@ -7567,7 +8018,7 @@ function SubmitButton(props) {
7567
8018
  var submit_button_default = SubmitButton;
7568
8019
 
7569
8020
  // src/blocks/form/textarea/component-info.ts
7570
- var componentInfo17 = {
8021
+ var componentInfo18 = {
7571
8022
  name: "Form:TextArea",
7572
8023
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
7573
8024
  inputs: [{
@@ -7604,10 +8055,10 @@ var componentInfo17 = {
7604
8055
  static: true,
7605
8056
  noWrap: true
7606
8057
  };
7607
- var _tmpl$17 = /* @__PURE__ */ template(`<textarea>`);
8058
+ var _tmpl$19 = /* @__PURE__ */ template(`<textarea>`);
7608
8059
  function Textarea(props) {
7609
8060
  return (() => {
7610
- const _el$ = _tmpl$17();
8061
+ const _el$ = _tmpl$19();
7611
8062
  spread(_el$, mergeProps({}, () => props.attributes, {
7612
8063
  get placeholder() {
7613
8064
  return props.placeholder;
@@ -7631,7 +8082,7 @@ function Textarea(props) {
7631
8082
  var textarea_default = Textarea;
7632
8083
 
7633
8084
  // src/blocks/img/component-info.ts
7634
- var componentInfo18 = {
8085
+ var componentInfo19 = {
7635
8086
  // friendlyName?
7636
8087
  name: "Raw:Img",
7637
8088
  hideFromInsertMenu: true,
@@ -7646,10 +8097,10 @@ var componentInfo18 = {
7646
8097
  noWrap: true,
7647
8098
  static: true
7648
8099
  };
7649
- var _tmpl$18 = /* @__PURE__ */ template(`<img>`);
8100
+ var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
7650
8101
  function ImgComponent(props) {
7651
8102
  return (() => {
7652
- const _el$ = _tmpl$18();
8103
+ const _el$ = _tmpl$20();
7653
8104
  spread(_el$, mergeProps({
7654
8105
  get style() {
7655
8106
  return {
@@ -7673,7 +8124,7 @@ function ImgComponent(props) {
7673
8124
  var img_default = ImgComponent;
7674
8125
 
7675
8126
  // src/blocks/video/component-info.ts
7676
- var componentInfo19 = {
8127
+ var componentInfo20 = {
7677
8128
  name: "Video",
7678
8129
  canHaveChildren: true,
7679
8130
  defaultStyles: {
@@ -7758,8 +8209,8 @@ var componentInfo19 = {
7758
8209
  builderBlock: true
7759
8210
  }
7760
8211
  };
7761
- var _tmpl$19 = /* @__PURE__ */ template(`<source type=video/mp4>`);
7762
- var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
8212
+ var _tmpl$21 = /* @__PURE__ */ template(`<source type=video/mp4>`);
8213
+ var _tmpl$29 = /* @__PURE__ */ template(`<div>`);
7763
8214
  var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
7764
8215
  function Video(props) {
7765
8216
  const videoProps = createMemo(() => {
@@ -7820,7 +8271,7 @@ function Video(props) {
7820
8271
  return !props.lazyLoad;
7821
8272
  },
7822
8273
  get children() {
7823
- const _el$3 = _tmpl$19();
8274
+ const _el$3 = _tmpl$21();
7824
8275
  effect(() => setAttribute(_el$3, "src", props.video));
7825
8276
  return _el$3;
7826
8277
  }
@@ -7830,7 +8281,7 @@ function Video(props) {
7830
8281
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
7831
8282
  },
7832
8283
  get children() {
7833
- const _el$4 = _tmpl$28();
8284
+ const _el$4 = _tmpl$29();
7834
8285
  _el$4.style.setProperty("width", "100%");
7835
8286
  _el$4.style.setProperty("pointer-events", "none");
7836
8287
  _el$4.style.setProperty("font-size", "0px");
@@ -7843,7 +8294,7 @@ function Video(props) {
7843
8294
  return props.builderBlock?.children?.length && props.fitContent;
7844
8295
  },
7845
8296
  get children() {
7846
- const _el$5 = _tmpl$28();
8297
+ const _el$5 = _tmpl$29();
7847
8298
  _el$5.style.setProperty("display", "flex");
7848
8299
  _el$5.style.setProperty("flex-direction", "column");
7849
8300
  _el$5.style.setProperty("align-items", "stretch");
@@ -7856,7 +8307,7 @@ function Video(props) {
7856
8307
  return props.builderBlock?.children?.length && !props.fitContent;
7857
8308
  },
7858
8309
  get children() {
7859
- const _el$6 = _tmpl$28();
8310
+ const _el$6 = _tmpl$29();
7860
8311
  _el$6.style.setProperty("pointer-events", "none");
7861
8312
  _el$6.style.setProperty("display", "flex");
7862
8313
  _el$6.style.setProperty("flex-direction", "column");
@@ -7878,31 +8329,31 @@ var video_default = Video;
7878
8329
  // src/constants/extra-components.ts
7879
8330
  var getExtraComponents = () => [{
7880
8331
  component: custom_code_default,
7881
- ...componentInfo11
8332
+ ...componentInfo12
7882
8333
  }, {
7883
8334
  component: embed_default,
7884
- ...componentInfo12
8335
+ ...componentInfo13
7885
8336
  }, ...TARGET === "rsc" ? [] : [{
7886
8337
  component: form_default,
7887
- ...componentInfo13
8338
+ ...componentInfo14
7888
8339
  }, {
7889
8340
  component: input_default,
7890
- ...componentInfo14
8341
+ ...componentInfo15
7891
8342
  }, {
7892
8343
  component: submit_button_default,
7893
- ...componentInfo16
8344
+ ...componentInfo17
7894
8345
  }, {
7895
8346
  component: select_default,
7896
- ...componentInfo15
8347
+ ...componentInfo16
7897
8348
  }, {
7898
8349
  component: textarea_default,
7899
- ...componentInfo17
8350
+ ...componentInfo18
7900
8351
  }], {
7901
8352
  component: img_default,
7902
- ...componentInfo18
8353
+ ...componentInfo19
7903
8354
  }, {
7904
8355
  component: video_default,
7905
- ...componentInfo19
8356
+ ...componentInfo20
7906
8357
  }];
7907
8358
 
7908
8359
  // src/constants/builder-registered-components.ts
@@ -7920,19 +8371,22 @@ var getDefaultRegisteredComponents = () => [{
7920
8371
  ...componentInfo5
7921
8372
  }, {
7922
8373
  component: section_default,
7923
- ...componentInfo6
8374
+ ...componentInfo7
7924
8375
  }, {
7925
8376
  component: slot_default,
7926
- ...componentInfo7
8377
+ ...componentInfo8
7927
8378
  }, {
7928
8379
  component: symbol_default,
7929
- ...componentInfo8
8380
+ ...componentInfo9
7930
8381
  }, {
7931
8382
  component: text_default,
7932
- ...componentInfo10
7933
- }, ...TARGET === "rsc" ? [] : [{
8383
+ ...componentInfo11
8384
+ }, ...TARGET === "react" ? [{
8385
+ component: personalization_container_default,
8386
+ ...componentInfo6
8387
+ }] : [], ...TARGET === "rsc" ? [] : [{
7934
8388
  component: tabs_default,
7935
- ...componentInfo9
8389
+ ...componentInfo10
7936
8390
  }, {
7937
8391
  component: accordion_default,
7938
8392
  ...componentInfo
@@ -7970,7 +8424,7 @@ var getVariants = (content) => Object.values(content?.variations || {}).map((var
7970
8424
  testVariationId: variant.id,
7971
8425
  id: content?.id
7972
8426
  }));
7973
- var checkShouldRenderVariants = ({
8427
+ var checkShouldRenderVariants2 = ({
7974
8428
  canTrack,
7975
8429
  content
7976
8430
  }) => {
@@ -8003,25 +8457,6 @@ var getUpdateVariantVisibilityScript = ({
8003
8457
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
8004
8458
  "${variationId}", "${contentId}", ${isHydrationTarget}
8005
8459
  )`;
8006
- var _tmpl$20 = /* @__PURE__ */ template(`<script>`);
8007
- function InlinedScript(props) {
8008
- return (() => {
8009
- const _el$ = _tmpl$20();
8010
- effect((_p$) => {
8011
- const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
8012
- _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
8013
- _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
8014
- _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
8015
- return _p$;
8016
- }, {
8017
- _v$: void 0,
8018
- _v$2: void 0,
8019
- _v$3: void 0
8020
- });
8021
- return _el$;
8022
- })();
8023
- }
8024
- var inlined_script_default = InlinedScript;
8025
8460
 
8026
8461
  // src/helpers/preview-lru-cache/get.ts
8027
8462
  function getPreviewContent(_searchParams) {
@@ -8029,7 +8464,7 @@ function getPreviewContent(_searchParams) {
8029
8464
  }
8030
8465
 
8031
8466
  // src/constants/sdk-version.ts
8032
- var SDK_VERSION = "3.0.5";
8467
+ var SDK_VERSION = "3.0.6";
8033
8468
 
8034
8469
  // src/helpers/sdk-headers.ts
8035
8470
  var getSdkHeaders = () => ({
@@ -8326,16 +8761,6 @@ async function fetchEntries(options) {
8326
8761
  return _processContentResult(options, content);
8327
8762
  }
8328
8763
 
8329
- // src/functions/is-previewing.ts
8330
- function isPreviewing(_search) {
8331
- const search = _search || (isBrowser() ? window.location.search : void 0);
8332
- if (!search) {
8333
- return false;
8334
- }
8335
- const normalizedSearch = getSearchString(search);
8336
- return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
8337
- }
8338
-
8339
8764
  // src/helpers/uuid.ts
8340
8765
  function uuidv4() {
8341
8766
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
@@ -8662,7 +9087,8 @@ var setupBrowserForEditing = (options = {}) => {
8662
9087
  // Supports builder-model="..." attribute which is needed to
8663
9088
  // scope our '+ add block' button styling
8664
9089
  supportsAddBlockScoping: true,
8665
- supportsCustomBreakpoints: true
9090
+ supportsCustomBreakpoints: true,
9091
+ blockLevelPersonalization: true
8666
9092
  }
8667
9093
  }, "*");
8668
9094
  window.parent?.postMessage({
@@ -9399,7 +9825,7 @@ var content_default = ContentComponent;
9399
9825
 
9400
9826
  // src/components/content-variants/content-variants.tsx
9401
9827
  function ContentVariants(props) {
9402
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants({
9828
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants2({
9403
9829
  canTrack: getDefaultCanTrack(props.canTrack),
9404
9830
  content: props.content
9405
9831
  }));
@@ -9625,7 +10051,7 @@ var fetchSymbolContent = async ({
9625
10051
  };
9626
10052
 
9627
10053
  // src/blocks/symbol/symbol.tsx
9628
- var _tmpl$21 = /* @__PURE__ */ template(`<div>`);
10054
+ var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
9629
10055
  function Symbol2(props) {
9630
10056
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
9631
10057
  const blocksWrapper = createMemo(() => {
@@ -9657,7 +10083,7 @@ function Symbol2(props) {
9657
10083
  }
9658
10084
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9659
10085
  return (() => {
9660
- const _el$ = _tmpl$21();
10086
+ const _el$ = _tmpl$30();
9661
10087
  spread(_el$, mergeProps({
9662
10088
  get ["class"]() {
9663
10089
  return className();
@@ -9749,4 +10175,4 @@ var fetchBuilderProps = async (_args) => {
9749
10175
  };
9750
10176
  };
9751
10177
 
9752
- export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setEditorSettings, subscribeToEditor, track };
10178
+ export { blocks_default as Blocks, builder_context_default as BuilderContext, button_default as Button, columns_default as Columns, content_variants_default as Content, fragment_default as Fragment, image_default as Image, section_default as Section, symbol_default as Symbol, text_default as Text, video_default as Video, _processContentResult, createRegisterComponentMessage, fetchBuilderProps, fetchEntries, fetchOneEntry, getBuilderSearchParams, isEditing, isPreviewing, register, setClientUserAttributes, setEditorSettings, subscribeToEditor, track };