@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/index.js CHANGED
@@ -4788,7 +4788,7 @@ function Block(props) {
4788
4788
  });
4789
4789
  }
4790
4790
  var block_default = Block;
4791
- var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3c4beb0c {
4791
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3d7ff108 {
4792
4792
  display: flex;
4793
4793
  flex-direction: column;
4794
4794
  align-items: stretch;
@@ -4801,8 +4801,9 @@ function BlocksWrapper(props) {
4801
4801
  if (!props.path) {
4802
4802
  return void 0;
4803
4803
  }
4804
+ const thisPrefix = "this.";
4804
4805
  const pathPrefix = "component.options.";
4805
- return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
4806
+ return props.path.startsWith(thisPrefix) ? props.path.replace(thisPrefix, "") : props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
4806
4807
  });
4807
4808
  function onClick() {
4808
4809
  if (isEditing() && !props.blocks?.length) {
@@ -4831,7 +4832,7 @@ function BlocksWrapper(props) {
4831
4832
  });
4832
4833
  return [createComponent(Dynamic, mergeProps({
4833
4834
  get ["class"]() {
4834
- return className() + " dynamic-3c4beb0c";
4835
+ return className() + " dynamic-3d7ff108";
4835
4836
  },
4836
4837
  ref(r$) {
4837
4838
  const _ref$ = blocksWrapperRef;
@@ -5524,8 +5525,58 @@ var handleABTesting = async ({
5524
5525
  };
5525
5526
  };
5526
5527
 
5528
+ // src/helpers/user-attributes.ts
5529
+ var USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
5530
+ function createUserAttributesService() {
5531
+ let canTrack = true;
5532
+ const subscribers = /* @__PURE__ */ new Set();
5533
+ return {
5534
+ setUserAttributes(newAttrs) {
5535
+ if (!isBrowser()) {
5536
+ return;
5537
+ }
5538
+ const userAttributes = {
5539
+ ...this.getUserAttributes(),
5540
+ ...newAttrs
5541
+ };
5542
+ setCookie({
5543
+ name: USER_ATTRIBUTES_COOKIE_NAME,
5544
+ value: JSON.stringify(userAttributes),
5545
+ canTrack
5546
+ });
5547
+ subscribers.forEach((callback) => callback(userAttributes));
5548
+ },
5549
+ getUserAttributes() {
5550
+ if (!isBrowser()) {
5551
+ return {};
5552
+ }
5553
+ return JSON.parse(getCookieSync({
5554
+ name: USER_ATTRIBUTES_COOKIE_NAME,
5555
+ canTrack
5556
+ }) || "{}");
5557
+ },
5558
+ subscribeOnUserAttributesChange(callback) {
5559
+ subscribers.add(callback);
5560
+ return () => {
5561
+ subscribers.delete(callback);
5562
+ };
5563
+ },
5564
+ setCanTrack(value) {
5565
+ canTrack = value;
5566
+ }
5567
+ };
5568
+ }
5569
+ var userAttributesService = createUserAttributesService();
5570
+ var setClientUserAttributes = (attributes) => {
5571
+ userAttributesService.setUserAttributes(attributes);
5572
+ };
5573
+
5527
5574
  // src/helpers/canTrack.ts
5528
- var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
5575
+ var getDefaultCanTrack = (canTrack) => {
5576
+ const result = checkIsDefined(canTrack) ? canTrack : true;
5577
+ userAttributesService.setCanTrack(result);
5578
+ return result;
5579
+ };
5529
5580
 
5530
5581
  // src/blocks/accordion/component-info.ts
5531
5582
  var defaultTitle = {
@@ -6255,8 +6306,408 @@ var componentInfo5 = {
6255
6306
  }
6256
6307
  };
6257
6308
 
6258
- // src/blocks/section/component-info.ts
6309
+ // src/blocks/personalization-container/component-info.ts
6259
6310
  var componentInfo6 = {
6311
+ name: "PersonalizationContainer",
6312
+ shouldReceiveBuilderProps: {
6313
+ builderBlock: true,
6314
+ builderContext: true
6315
+ },
6316
+ noWrap: true,
6317
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
6318
+ canHaveChildren: true,
6319
+ inputs: [{
6320
+ name: "variants",
6321
+ defaultValue: [],
6322
+ behavior: "personalizationVariantList",
6323
+ type: "list",
6324
+ subFields: [{
6325
+ name: "name",
6326
+ type: "text"
6327
+ }, {
6328
+ name: "query",
6329
+ friendlyName: "Targeting rules",
6330
+ type: "BuilderQuery",
6331
+ defaultValue: []
6332
+ }, {
6333
+ name: "startDate",
6334
+ type: "date"
6335
+ }, {
6336
+ name: "endDate",
6337
+ type: "date"
6338
+ }, {
6339
+ name: "blocks",
6340
+ type: "uiBlocks",
6341
+ hideFromUI: true,
6342
+ defaultValue: []
6343
+ }]
6344
+ }]
6345
+ };
6346
+ var _tmpl$8 = /* @__PURE__ */ template(`<script>`);
6347
+ function InlinedScript(props) {
6348
+ return (() => {
6349
+ const _el$ = _tmpl$8();
6350
+ effect((_p$) => {
6351
+ const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
6352
+ _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
6353
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
6354
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
6355
+ return _p$;
6356
+ }, {
6357
+ _v$: void 0,
6358
+ _v$2: void 0,
6359
+ _v$3: void 0
6360
+ });
6361
+ return _el$;
6362
+ })();
6363
+ }
6364
+ var inlined_script_default = InlinedScript;
6365
+
6366
+ // src/functions/is-previewing.ts
6367
+ function isPreviewing(_search) {
6368
+ const search = _search || (isBrowser() ? window.location.search : void 0);
6369
+ if (!search) {
6370
+ return false;
6371
+ }
6372
+ const normalizedSearch = getSearchString(search);
6373
+ return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
6374
+ }
6375
+
6376
+ // src/blocks/personalization-container/helpers/inlined-fns.ts
6377
+ function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
6378
+ function isString(val) {
6379
+ return typeof val === "string";
6380
+ }
6381
+ function isNumber(val) {
6382
+ return typeof val === "number";
6383
+ }
6384
+ function objectMatchesQuery(userattr, query2) {
6385
+ const result = (() => {
6386
+ const property = query2.property;
6387
+ const operator = query2.operator;
6388
+ let testValue = query2.value;
6389
+ if (query2 && query2.property === "urlPath" && query2.value && typeof query2.value === "string" && query2.value !== "/" && query2.value.endsWith("/")) {
6390
+ testValue = query2.value.slice(0, -1);
6391
+ }
6392
+ if (!(property && operator)) {
6393
+ return true;
6394
+ }
6395
+ if (Array.isArray(testValue)) {
6396
+ if (operator === "isNot") {
6397
+ return testValue.every((val) => objectMatchesQuery(userattr, {
6398
+ property,
6399
+ operator,
6400
+ value: val
6401
+ }));
6402
+ }
6403
+ return !!testValue.find((val) => objectMatchesQuery(userattr, {
6404
+ property,
6405
+ operator,
6406
+ value: val
6407
+ }));
6408
+ }
6409
+ const value = userattr[property];
6410
+ if (Array.isArray(value)) {
6411
+ return value.includes(testValue);
6412
+ }
6413
+ switch (operator) {
6414
+ case "is":
6415
+ return value === testValue;
6416
+ case "isNot":
6417
+ return value !== testValue;
6418
+ case "contains":
6419
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
6420
+ case "startsWith":
6421
+ return isString(value) && value.startsWith(String(testValue));
6422
+ case "endsWith":
6423
+ return isString(value) && value.endsWith(String(testValue));
6424
+ case "greaterThan":
6425
+ return isNumber(value) && isNumber(testValue) && value > testValue;
6426
+ case "lessThan":
6427
+ return isNumber(value) && isNumber(testValue) && value < testValue;
6428
+ case "greaterThanOrEqualTo":
6429
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
6430
+ case "lessThanOrEqualTo":
6431
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
6432
+ default:
6433
+ return false;
6434
+ }
6435
+ })();
6436
+ return result;
6437
+ }
6438
+ const item = {
6439
+ query,
6440
+ startDate,
6441
+ endDate
6442
+ };
6443
+ const now = userAttributes.date && new Date(userAttributes.date) || /* @__PURE__ */ new Date();
6444
+ if (item.startDate && new Date(item.startDate) > now) {
6445
+ return false;
6446
+ } else if (item.endDate && new Date(item.endDate) < now) {
6447
+ return false;
6448
+ }
6449
+ if (!item.query || !item.query.length) {
6450
+ return true;
6451
+ }
6452
+ return item.query.every((filter) => {
6453
+ return objectMatchesQuery(userAttributes, filter);
6454
+ });
6455
+ }
6456
+ var PERSONALIZATION_SCRIPT = `function getPersonalizedVariant(variants, blockId, locale) {
6457
+ if (!navigator.cookieEnabled) {
6458
+ return;
6459
+ }
6460
+ function getCookie(name) {
6461
+ const nameEQ = name + '=';
6462
+ const ca = document.cookie.split(';');
6463
+ for (let i = 0; i < ca.length; i++) {
6464
+ let c = ca[i];
6465
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
6466
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
6467
+ }
6468
+ return null;
6469
+ }
6470
+ function removeVariants() {
6471
+ variants?.forEach(function (_, index) {
6472
+ document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
6473
+ });
6474
+ document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
6475
+ document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
6476
+ }
6477
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
6478
+ if (locale) {
6479
+ attributes.locale = locale;
6480
+ }
6481
+ const winningVariantIndex = variants?.findIndex(function (variant) {
6482
+ return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
6483
+ });
6484
+ const isDebug = location.href.includes('builder.debug=true');
6485
+ if (isDebug) {
6486
+ console.debug('PersonalizationContainer', {
6487
+ attributes,
6488
+ variants,
6489
+ winningVariantIndex
6490
+ });
6491
+ }
6492
+ if (winningVariantIndex !== -1) {
6493
+ const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
6494
+ if (winningVariant) {
6495
+ const parentNode = winningVariant.parentNode;
6496
+ if (parentNode) {
6497
+ const newParent = parentNode.cloneNode(false);
6498
+ newParent.appendChild(winningVariant.content.firstChild);
6499
+ newParent.appendChild(winningVariant.content.lastChild);
6500
+ parentNode.parentNode?.replaceChild(newParent, parentNode);
6501
+ }
6502
+ if (isDebug) {
6503
+ console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
6504
+ }
6505
+ }
6506
+ } else if (variants && variants.length > 0) {
6507
+ removeVariants();
6508
+ }
6509
+ }`;
6510
+ 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}";
6511
+
6512
+ // src/blocks/personalization-container/helpers.ts
6513
+ function checkShouldRenderVariants(variants, canTrack) {
6514
+ const hasVariants = variants && variants.length > 0;
6515
+ if (TARGET === "reactNative")
6516
+ return false;
6517
+ if (!hasVariants)
6518
+ return false;
6519
+ if (!canTrack)
6520
+ return false;
6521
+ if (TARGET === "vue" || TARGET === "svelte")
6522
+ return true;
6523
+ if (isBrowser())
6524
+ return false;
6525
+ return true;
6526
+ }
6527
+ function getBlocksToRender({
6528
+ variants,
6529
+ previewingIndex,
6530
+ isHydrated,
6531
+ filteredVariants,
6532
+ fallbackBlocks
6533
+ }) {
6534
+ const fallback = {
6535
+ blocks: fallbackBlocks ?? [],
6536
+ path: "this.children"
6537
+ };
6538
+ if (isHydrated && isEditing()) {
6539
+ if (typeof previewingIndex === "number" && previewingIndex < (variants?.length ?? 0)) {
6540
+ const variant = variants[previewingIndex];
6541
+ return {
6542
+ blocks: variant.blocks,
6543
+ path: `component.options.variants.${previewingIndex}.blocks`
6544
+ };
6545
+ }
6546
+ return fallback;
6547
+ }
6548
+ if (isBrowser()) {
6549
+ const winningVariant = filteredVariants?.[0];
6550
+ if (winningVariant) {
6551
+ return {
6552
+ blocks: winningVariant.blocks,
6553
+ path: `component.options.variants.${variants?.indexOf(winningVariant)}.blocks`
6554
+ };
6555
+ }
6556
+ }
6557
+ return fallback;
6558
+ }
6559
+ var getPersonalizationScript = (variants, blockId, locale) => {
6560
+ return `
6561
+ (function() {
6562
+ ${FILTER_WITH_CUSTOM_TARGETING_SCRIPT}
6563
+ ${PERSONALIZATION_SCRIPT}
6564
+ getPersonalizedVariant(${JSON.stringify(variants)}, "${blockId}"${locale ? `, "${locale}"` : ""})
6565
+ })();
6566
+ `;
6567
+ };
6568
+
6569
+ // src/blocks/personalization-container/personalization-container.tsx
6570
+ var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
6571
+ var _tmpl$25 = /* @__PURE__ */ template(`<template>`);
6572
+ function PersonalizationContainer(props) {
6573
+ const [userAttributes, setUserAttributes] = createSignal(userAttributesService.getUserAttributes());
6574
+ const [scriptStr, setScriptStr] = createSignal(getPersonalizationScript(props.variants, props.builderBlock?.id || "none", props.builderContext?.rootState?.locale));
6575
+ const [unsubscribers, setUnsubscribers] = createSignal([]);
6576
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants(props.variants, getDefaultCanTrack(props.builderContext?.canTrack)));
6577
+ const [isHydrated, setIsHydrated] = createSignal(false);
6578
+ const filteredVariants = createMemo(() => {
6579
+ return (props.variants || []).filter((variant) => {
6580
+ return filterWithCustomTargeting({
6581
+ ...props.builderContext?.rootState?.locale ? {
6582
+ locale: props.builderContext?.rootState?.locale
6583
+ } : {},
6584
+ ...userAttributes()
6585
+ }, variant.query, variant.startDate, variant.endDate);
6586
+ });
6587
+ });
6588
+ const blocksToRender = createMemo(() => {
6589
+ return getBlocksToRender({
6590
+ variants: props.variants,
6591
+ fallbackBlocks: props.builderBlock?.children,
6592
+ isHydrated: isHydrated(),
6593
+ filteredVariants: filteredVariants(),
6594
+ previewingIndex: props.previewingIndex
6595
+ });
6596
+ });
6597
+ const hideVariantsStyleString = createMemo(() => {
6598
+ return (props.variants || []).map((_, index) => `[data-variant-id="${props.builderBlock?.id}-${index}"] { display: none; } `).join("");
6599
+ });
6600
+ let rootRef;
6601
+ onMount(() => {
6602
+ setIsHydrated(true);
6603
+ const unsub = userAttributesService.subscribeOnUserAttributesChange((attrs) => {
6604
+ setUserAttributes(attrs);
6605
+ });
6606
+ if (!(isEditing() || isPreviewing())) {
6607
+ const variant = filteredVariants()[0];
6608
+ if (rootRef) {
6609
+ rootRef.dispatchEvent(new CustomEvent("builder.variantLoaded", {
6610
+ detail: {
6611
+ variant: variant || "default",
6612
+ content: props.builderContext?.content
6613
+ },
6614
+ bubbles: true
6615
+ }));
6616
+ const observer = new IntersectionObserver((entries) => {
6617
+ entries.forEach((entry) => {
6618
+ if (entry.isIntersecting && rootRef) {
6619
+ rootRef.dispatchEvent(new CustomEvent("builder.variantDisplayed", {
6620
+ detail: {
6621
+ variant: variant || "default",
6622
+ content: props.builderContext?.content
6623
+ },
6624
+ bubbles: true
6625
+ }));
6626
+ }
6627
+ });
6628
+ });
6629
+ observer.observe(rootRef);
6630
+ }
6631
+ }
6632
+ unsubscribers().push(unsub);
6633
+ });
6634
+ return (() => {
6635
+ const _el$ = _tmpl$9();
6636
+ const _ref$ = rootRef;
6637
+ typeof _ref$ === "function" ? use(_ref$, _el$) : rootRef = _el$;
6638
+ spread(_el$, mergeProps({
6639
+ get ["class"]() {
6640
+ return `builder-personalization-container ${props.attributes?.className || ""}`;
6641
+ }
6642
+ }, () => props.attributes), false, true);
6643
+ insert(_el$, createComponent(Show, {
6644
+ get when() {
6645
+ return shouldRenderVariants();
6646
+ },
6647
+ get children() {
6648
+ return [createComponent(For, {
6649
+ get each() {
6650
+ return props.variants;
6651
+ },
6652
+ children: (variant, _index) => {
6653
+ const index = _index();
6654
+ return (() => {
6655
+ const _el$2 = _tmpl$25();
6656
+ setAttribute(_el$2, "key", index);
6657
+ insert(_el$2, createComponent(blocks_default, {
6658
+ get blocks() {
6659
+ return variant.blocks;
6660
+ },
6661
+ get parent() {
6662
+ return props.builderBlock?.id;
6663
+ },
6664
+ path: `component.options.variants.${index}.blocks`
6665
+ }));
6666
+ effect(() => setAttribute(_el$2, "data-variant-id", `${props.builderBlock?.id}-${index}`));
6667
+ return _el$2;
6668
+ })();
6669
+ }
6670
+ }), createComponent(inlined_styles_default, {
6671
+ get nonce() {
6672
+ return props.builderContext?.nonce || "";
6673
+ },
6674
+ get styles() {
6675
+ return hideVariantsStyleString();
6676
+ },
6677
+ get id() {
6678
+ return `variants-styles-${props.builderBlock?.id}`;
6679
+ }
6680
+ }), createComponent(inlined_script_default, {
6681
+ get nonce() {
6682
+ return props.builderContext?.nonce || "";
6683
+ },
6684
+ get scriptStr() {
6685
+ return scriptStr();
6686
+ },
6687
+ get id() {
6688
+ return `variants-script-${props.builderBlock?.id}`;
6689
+ }
6690
+ })];
6691
+ }
6692
+ }), null);
6693
+ insert(_el$, createComponent(blocks_default, {
6694
+ get blocks() {
6695
+ return blocksToRender().blocks;
6696
+ },
6697
+ get parent() {
6698
+ return props.builderBlock?.id;
6699
+ },
6700
+ get path() {
6701
+ return blocksToRender().path;
6702
+ }
6703
+ }), null);
6704
+ return _el$;
6705
+ })();
6706
+ }
6707
+ var personalization_container_default = PersonalizationContainer;
6708
+
6709
+ // src/blocks/section/component-info.ts
6710
+ var componentInfo7 = {
6260
6711
  name: "Core:Section",
6261
6712
  static: true,
6262
6713
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -6298,7 +6749,7 @@ var componentInfo6 = {
6298
6749
  };
6299
6750
 
6300
6751
  // src/blocks/slot/component-info.ts
6301
- var componentInfo7 = {
6752
+ var componentInfo8 = {
6302
6753
  name: "Slot",
6303
6754
  isRSC: true,
6304
6755
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -6316,10 +6767,10 @@ var componentInfo7 = {
6316
6767
  builderComponents: true
6317
6768
  }
6318
6769
  };
6319
- var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
6770
+ var _tmpl$10 = /* @__PURE__ */ template(`<div>`);
6320
6771
  function Slot(props) {
6321
6772
  return (() => {
6322
- const _el$ = _tmpl$8();
6773
+ const _el$ = _tmpl$10();
6323
6774
  _el$.style.setProperty("pointer-events", "auto");
6324
6775
  spread(_el$, mergeProps(() => !props.builderContext.context?.symbolId && {
6325
6776
  "builder-slot": props.name
@@ -6347,7 +6798,7 @@ function Slot(props) {
6347
6798
  var slot_default = Slot;
6348
6799
 
6349
6800
  // src/blocks/symbol/component-info.ts
6350
- var componentInfo8 = {
6801
+ var componentInfo9 = {
6351
6802
  name: "Symbol",
6352
6803
  noWrap: true,
6353
6804
  static: true,
@@ -6429,7 +6880,7 @@ var defaultElement = {
6429
6880
  }
6430
6881
  }
6431
6882
  };
6432
- var componentInfo9 = {
6883
+ var componentInfo10 = {
6433
6884
  name: "Builder: Tabs",
6434
6885
  inputs: [{
6435
6886
  name: "tabs",
@@ -6533,8 +6984,8 @@ var componentInfo9 = {
6533
6984
  builderLinkComponent: true
6534
6985
  }
6535
6986
  };
6536
- var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
6537
- var _tmpl$25 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6987
+ var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
6988
+ var _tmpl$26 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
6538
6989
  var _tmpl$33 = /* @__PURE__ */ template(`<span>`);
6539
6990
  function Tabs(props) {
6540
6991
  const [activeTab, setActiveTab] = createSignal(props.defaultActiveTab ? props.defaultActiveTab - 1 : 0);
@@ -6549,7 +7000,7 @@ function Tabs(props) {
6549
7000
  }
6550
7001
  }
6551
7002
  return (() => {
6552
- const _el$ = _tmpl$25(), _el$2 = _el$.firstChild;
7003
+ const _el$ = _tmpl$26(), _el$2 = _el$.firstChild;
6553
7004
  _el$2.style.setProperty("display", "flex");
6554
7005
  _el$2.style.setProperty("flex-direction", "row");
6555
7006
  _el$2.style.setProperty("overflow", "auto");
@@ -6601,7 +7052,7 @@ function Tabs(props) {
6601
7052
  return activeTabContent(activeTab());
6602
7053
  },
6603
7054
  get children() {
6604
- const _el$3 = _tmpl$9();
7055
+ const _el$3 = _tmpl$11();
6605
7056
  insert(_el$3, createComponent(blocks_default, {
6606
7057
  get parent() {
6607
7058
  return props.builderBlock.id;
@@ -6633,7 +7084,7 @@ var tabs_default = Tabs;
6633
7084
  delegateEvents(["click"]);
6634
7085
 
6635
7086
  // src/blocks/text/component-info.ts
6636
- var componentInfo10 = {
7087
+ var componentInfo11 = {
6637
7088
  shouldReceiveBuilderProps: {
6638
7089
  builderBlock: TARGET === "reactNative" ? true : false,
6639
7090
  builderContext: true
@@ -6656,10 +7107,10 @@ var componentInfo10 = {
6656
7107
  textAlign: "center"
6657
7108
  }
6658
7109
  };
6659
- var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
7110
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-text>`);
6660
7111
  function Text(props) {
6661
7112
  return (() => {
6662
- const _el$ = _tmpl$10();
7113
+ const _el$ = _tmpl$12();
6663
7114
  _el$.style.setProperty("outline", "none");
6664
7115
  effect(() => _el$.innerHTML = props.text?.toString() || "");
6665
7116
  return _el$;
@@ -6668,7 +7119,7 @@ function Text(props) {
6668
7119
  var text_default = Text;
6669
7120
 
6670
7121
  // src/blocks/custom-code/component-info.ts
6671
- var componentInfo11 = {
7122
+ var componentInfo12 = {
6672
7123
  name: "Custom Code",
6673
7124
  static: true,
6674
7125
  requiredPermissions: ["editCode"],
@@ -6691,7 +7142,7 @@ var componentInfo11 = {
6691
7142
  advanced: true
6692
7143
  }]
6693
7144
  };
6694
- var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
7145
+ var _tmpl$13 = /* @__PURE__ */ template(`<div>`);
6695
7146
  function CustomCode(props) {
6696
7147
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6697
7148
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6725,7 +7176,7 @@ function CustomCode(props) {
6725
7176
  }
6726
7177
  });
6727
7178
  return (() => {
6728
- const _el$ = _tmpl$11();
7179
+ const _el$ = _tmpl$13();
6729
7180
  const _ref$ = elementRef;
6730
7181
  typeof _ref$ === "function" ? use(_ref$, _el$) : elementRef = _el$;
6731
7182
  effect((_p$) => {
@@ -6743,7 +7194,7 @@ function CustomCode(props) {
6743
7194
  var custom_code_default = CustomCode;
6744
7195
 
6745
7196
  // src/blocks/embed/component-info.ts
6746
- var componentInfo12 = {
7197
+ var componentInfo13 = {
6747
7198
  name: "Embed",
6748
7199
  static: true,
6749
7200
  inputs: [{
@@ -6765,7 +7216,7 @@ var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "applicati
6765
7216
  var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
6766
7217
 
6767
7218
  // src/blocks/embed/embed.tsx
6768
- var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-embed>`);
7219
+ var _tmpl$14 = /* @__PURE__ */ template(`<div class=builder-embed>`);
6769
7220
  function Embed(props) {
6770
7221
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
6771
7222
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -6802,7 +7253,7 @@ function Embed(props) {
6802
7253
  }
6803
7254
  createEffect(on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0));
6804
7255
  return (() => {
6805
- const _el$ = _tmpl$12();
7256
+ const _el$ = _tmpl$14();
6806
7257
  const _ref$ = elem;
6807
7258
  typeof _ref$ === "function" ? use(_ref$, _el$) : elem = _el$;
6808
7259
  effect(() => _el$.innerHTML = props.content);
@@ -6812,7 +7263,7 @@ function Embed(props) {
6812
7263
  var embed_default = Embed;
6813
7264
 
6814
7265
  // src/blocks/form/form/component-info.ts
6815
- var componentInfo13 = {
7266
+ var componentInfo14 = {
6816
7267
  name: "Form:Form",
6817
7268
  // editableTags: ['builder-form-error']
6818
7269
  defaults: {
@@ -7068,8 +7519,8 @@ function logFetch(url) {
7068
7519
  }
7069
7520
 
7070
7521
  // src/blocks/form/form/form.tsx
7071
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
7072
- var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
7522
+ var _tmpl$15 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
7523
+ var _tmpl$27 = /* @__PURE__ */ template(`<form>`);
7073
7524
  var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
7074
7525
  padding: 10px;
7075
7526
  color: red;
@@ -7262,7 +7713,7 @@ function FormComponent(props) {
7262
7713
  }
7263
7714
  let formRef;
7264
7715
  return [(() => {
7265
- const _el$ = _tmpl$26();
7716
+ const _el$ = _tmpl$27();
7266
7717
  _el$.addEventListener("submit", (event) => onSubmit(event));
7267
7718
  const _ref$ = formRef;
7268
7719
  typeof _ref$ === "function" ? use(_ref$, _el$) : formRef = _el$;
@@ -7318,7 +7769,7 @@ function FormComponent(props) {
7318
7769
  return memo(() => submissionState() === "error")() && responseData();
7319
7770
  },
7320
7771
  get children() {
7321
- const _el$2 = _tmpl$13();
7772
+ const _el$2 = _tmpl$15();
7322
7773
  insert(_el$2, () => JSON.stringify(responseData(), null, 2));
7323
7774
  return _el$2;
7324
7775
  }
@@ -7345,7 +7796,7 @@ function FormComponent(props) {
7345
7796
  var form_default = FormComponent;
7346
7797
 
7347
7798
  // src/blocks/form/input/component-info.ts
7348
- var componentInfo14 = {
7799
+ var componentInfo15 = {
7349
7800
  name: "Form:Input",
7350
7801
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
7351
7802
  inputs: [
@@ -7397,10 +7848,10 @@ var componentInfo14 = {
7397
7848
  borderColor: "#ccc"
7398
7849
  }
7399
7850
  };
7400
- var _tmpl$14 = /* @__PURE__ */ template(`<input>`);
7851
+ var _tmpl$16 = /* @__PURE__ */ template(`<input>`);
7401
7852
  function FormInputComponent(props) {
7402
7853
  return (() => {
7403
- const _el$ = _tmpl$14();
7854
+ const _el$ = _tmpl$16();
7404
7855
  spread(_el$, mergeProps({}, () => props.attributes, {
7405
7856
  get key() {
7406
7857
  return isEditing() && props.defaultValue ? props.defaultValue : "default-key";
@@ -7430,7 +7881,7 @@ function FormInputComponent(props) {
7430
7881
  var input_default = FormInputComponent;
7431
7882
 
7432
7883
  // src/blocks/form/select/component-info.ts
7433
- var componentInfo15 = {
7884
+ var componentInfo16 = {
7434
7885
  name: "Form:Select",
7435
7886
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
7436
7887
  defaultStyles: {
@@ -7473,11 +7924,11 @@ var componentInfo15 = {
7473
7924
  static: true,
7474
7925
  noWrap: true
7475
7926
  };
7476
- var _tmpl$15 = /* @__PURE__ */ template(`<select>`);
7477
- var _tmpl$27 = /* @__PURE__ */ template(`<option>`);
7927
+ var _tmpl$17 = /* @__PURE__ */ template(`<select>`);
7928
+ var _tmpl$28 = /* @__PURE__ */ template(`<option>`);
7478
7929
  function SelectComponent(props) {
7479
7930
  return (() => {
7480
- const _el$ = _tmpl$15();
7931
+ const _el$ = _tmpl$17();
7481
7932
  spread(_el$, mergeProps({}, () => props.attributes, {
7482
7933
  get value() {
7483
7934
  return props.value;
@@ -7502,7 +7953,7 @@ function SelectComponent(props) {
7502
7953
  children: (option, _index) => {
7503
7954
  const index = _index();
7504
7955
  return (() => {
7505
- const _el$2 = _tmpl$27();
7956
+ const _el$2 = _tmpl$28();
7506
7957
  insert(_el$2, () => option.name || option.value);
7507
7958
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
7508
7959
  effect(() => _el$2.value = option.value);
@@ -7516,7 +7967,7 @@ function SelectComponent(props) {
7516
7967
  var select_default = SelectComponent;
7517
7968
 
7518
7969
  // src/blocks/form/submit-button/component-info.ts
7519
- var componentInfo16 = {
7970
+ var componentInfo17 = {
7520
7971
  name: "Form:SubmitButton",
7521
7972
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
7522
7973
  defaultStyles: {
@@ -7542,10 +7993,10 @@ var componentInfo16 = {
7542
7993
  // TODO: defaultChildren
7543
7994
  // canHaveChildren: true,
7544
7995
  };
7545
- var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
7996
+ var _tmpl$18 = /* @__PURE__ */ template(`<button type=submit>`);
7546
7997
  function SubmitButton(props) {
7547
7998
  return (() => {
7548
- const _el$ = _tmpl$16();
7999
+ const _el$ = _tmpl$18();
7549
8000
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
7550
8001
  insert(_el$, () => props.text);
7551
8002
  return _el$;
@@ -7554,7 +8005,7 @@ function SubmitButton(props) {
7554
8005
  var submit_button_default = SubmitButton;
7555
8006
 
7556
8007
  // src/blocks/form/textarea/component-info.ts
7557
- var componentInfo17 = {
8008
+ var componentInfo18 = {
7558
8009
  name: "Form:TextArea",
7559
8010
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
7560
8011
  inputs: [{
@@ -7591,10 +8042,10 @@ var componentInfo17 = {
7591
8042
  static: true,
7592
8043
  noWrap: true
7593
8044
  };
7594
- var _tmpl$17 = /* @__PURE__ */ template(`<textarea>`);
8045
+ var _tmpl$19 = /* @__PURE__ */ template(`<textarea>`);
7595
8046
  function Textarea(props) {
7596
8047
  return (() => {
7597
- const _el$ = _tmpl$17();
8048
+ const _el$ = _tmpl$19();
7598
8049
  spread(_el$, mergeProps({}, () => props.attributes, {
7599
8050
  get placeholder() {
7600
8051
  return props.placeholder;
@@ -7618,7 +8069,7 @@ function Textarea(props) {
7618
8069
  var textarea_default = Textarea;
7619
8070
 
7620
8071
  // src/blocks/img/component-info.ts
7621
- var componentInfo18 = {
8072
+ var componentInfo19 = {
7622
8073
  // friendlyName?
7623
8074
  name: "Raw:Img",
7624
8075
  hideFromInsertMenu: true,
@@ -7633,10 +8084,10 @@ var componentInfo18 = {
7633
8084
  noWrap: true,
7634
8085
  static: true
7635
8086
  };
7636
- var _tmpl$18 = /* @__PURE__ */ template(`<img>`);
8087
+ var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
7637
8088
  function ImgComponent(props) {
7638
8089
  return (() => {
7639
- const _el$ = _tmpl$18();
8090
+ const _el$ = _tmpl$20();
7640
8091
  spread(_el$, mergeProps({
7641
8092
  get style() {
7642
8093
  return {
@@ -7660,7 +8111,7 @@ function ImgComponent(props) {
7660
8111
  var img_default = ImgComponent;
7661
8112
 
7662
8113
  // src/blocks/video/component-info.ts
7663
- var componentInfo19 = {
8114
+ var componentInfo20 = {
7664
8115
  name: "Video",
7665
8116
  canHaveChildren: true,
7666
8117
  defaultStyles: {
@@ -7745,8 +8196,8 @@ var componentInfo19 = {
7745
8196
  builderBlock: true
7746
8197
  }
7747
8198
  };
7748
- var _tmpl$19 = /* @__PURE__ */ template(`<source type=video/mp4>`);
7749
- var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
8199
+ var _tmpl$21 = /* @__PURE__ */ template(`<source type=video/mp4>`);
8200
+ var _tmpl$29 = /* @__PURE__ */ template(`<div>`);
7750
8201
  var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
7751
8202
  function Video(props) {
7752
8203
  const videoProps = createMemo(() => {
@@ -7807,7 +8258,7 @@ function Video(props) {
7807
8258
  return !props.lazyLoad;
7808
8259
  },
7809
8260
  get children() {
7810
- const _el$3 = _tmpl$19();
8261
+ const _el$3 = _tmpl$21();
7811
8262
  effect(() => setAttribute(_el$3, "src", props.video));
7812
8263
  return _el$3;
7813
8264
  }
@@ -7817,7 +8268,7 @@ function Video(props) {
7817
8268
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
7818
8269
  },
7819
8270
  get children() {
7820
- const _el$4 = _tmpl$28();
8271
+ const _el$4 = _tmpl$29();
7821
8272
  _el$4.style.setProperty("width", "100%");
7822
8273
  _el$4.style.setProperty("pointer-events", "none");
7823
8274
  _el$4.style.setProperty("font-size", "0px");
@@ -7830,7 +8281,7 @@ function Video(props) {
7830
8281
  return props.builderBlock?.children?.length && props.fitContent;
7831
8282
  },
7832
8283
  get children() {
7833
- const _el$5 = _tmpl$28();
8284
+ const _el$5 = _tmpl$29();
7834
8285
  _el$5.style.setProperty("display", "flex");
7835
8286
  _el$5.style.setProperty("flex-direction", "column");
7836
8287
  _el$5.style.setProperty("align-items", "stretch");
@@ -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$6 = _tmpl$28();
8297
+ const _el$6 = _tmpl$29();
7847
8298
  _el$6.style.setProperty("pointer-events", "none");
7848
8299
  _el$6.style.setProperty("display", "flex");
7849
8300
  _el$6.style.setProperty("flex-direction", "column");
@@ -7865,31 +8316,31 @@ var video_default = Video;
7865
8316
  // src/constants/extra-components.ts
7866
8317
  var getExtraComponents = () => [{
7867
8318
  component: custom_code_default,
7868
- ...componentInfo11
8319
+ ...componentInfo12
7869
8320
  }, {
7870
8321
  component: embed_default,
7871
- ...componentInfo12
8322
+ ...componentInfo13
7872
8323
  }, ...TARGET === "rsc" ? [] : [{
7873
8324
  component: form_default,
7874
- ...componentInfo13
8325
+ ...componentInfo14
7875
8326
  }, {
7876
8327
  component: input_default,
7877
- ...componentInfo14
8328
+ ...componentInfo15
7878
8329
  }, {
7879
8330
  component: submit_button_default,
7880
- ...componentInfo16
8331
+ ...componentInfo17
7881
8332
  }, {
7882
8333
  component: select_default,
7883
- ...componentInfo15
8334
+ ...componentInfo16
7884
8335
  }, {
7885
8336
  component: textarea_default,
7886
- ...componentInfo17
8337
+ ...componentInfo18
7887
8338
  }], {
7888
8339
  component: img_default,
7889
- ...componentInfo18
8340
+ ...componentInfo19
7890
8341
  }, {
7891
8342
  component: video_default,
7892
- ...componentInfo19
8343
+ ...componentInfo20
7893
8344
  }];
7894
8345
 
7895
8346
  // src/constants/builder-registered-components.ts
@@ -7907,19 +8358,22 @@ var getDefaultRegisteredComponents = () => [{
7907
8358
  ...componentInfo5
7908
8359
  }, {
7909
8360
  component: section_default,
7910
- ...componentInfo6
8361
+ ...componentInfo7
7911
8362
  }, {
7912
8363
  component: slot_default,
7913
- ...componentInfo7
8364
+ ...componentInfo8
7914
8365
  }, {
7915
8366
  component: symbol_default,
7916
- ...componentInfo8
8367
+ ...componentInfo9
7917
8368
  }, {
7918
8369
  component: text_default,
7919
- ...componentInfo10
7920
- }, ...TARGET === "rsc" ? [] : [{
8370
+ ...componentInfo11
8371
+ }, ...TARGET === "react" ? [{
8372
+ component: personalization_container_default,
8373
+ ...componentInfo6
8374
+ }] : [], ...TARGET === "rsc" ? [] : [{
7921
8375
  component: tabs_default,
7922
- ...componentInfo9
8376
+ ...componentInfo10
7923
8377
  }, {
7924
8378
  component: accordion_default,
7925
8379
  ...componentInfo
@@ -7957,7 +8411,7 @@ var getVariants = (content) => Object.values(content?.variations || {}).map((var
7957
8411
  testVariationId: variant.id,
7958
8412
  id: content?.id
7959
8413
  }));
7960
- var checkShouldRenderVariants = ({
8414
+ var checkShouldRenderVariants2 = ({
7961
8415
  canTrack,
7962
8416
  content
7963
8417
  }) => {
@@ -7990,25 +8444,6 @@ var getUpdateVariantVisibilityScript = ({
7990
8444
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
7991
8445
  "${variationId}", "${contentId}", ${isHydrationTarget}
7992
8446
  )`;
7993
- var _tmpl$20 = /* @__PURE__ */ template(`<script>`);
7994
- function InlinedScript(props) {
7995
- return (() => {
7996
- const _el$ = _tmpl$20();
7997
- effect((_p$) => {
7998
- const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
7999
- _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
8000
- _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
8001
- _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
8002
- return _p$;
8003
- }, {
8004
- _v$: void 0,
8005
- _v$2: void 0,
8006
- _v$3: void 0
8007
- });
8008
- return _el$;
8009
- })();
8010
- }
8011
- var inlined_script_default = InlinedScript;
8012
8447
 
8013
8448
  // src/helpers/preview-lru-cache/get.ts
8014
8449
  function getPreviewContent(_searchParams) {
@@ -8016,7 +8451,7 @@ function getPreviewContent(_searchParams) {
8016
8451
  }
8017
8452
 
8018
8453
  // src/constants/sdk-version.ts
8019
- var SDK_VERSION = "3.0.5";
8454
+ var SDK_VERSION = "3.0.6";
8020
8455
 
8021
8456
  // src/helpers/sdk-headers.ts
8022
8457
  var getSdkHeaders = () => ({
@@ -8311,16 +8746,6 @@ async function fetchEntries(options) {
8311
8746
  return _processContentResult(options, content);
8312
8747
  }
8313
8748
 
8314
- // src/functions/is-previewing.ts
8315
- function isPreviewing(_search) {
8316
- const search = _search || (isBrowser() ? window.location.search : void 0);
8317
- if (!search) {
8318
- return false;
8319
- }
8320
- const normalizedSearch = getSearchString(search);
8321
- return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
8322
- }
8323
-
8324
8749
  // src/helpers/uuid.ts
8325
8750
  function uuidv4() {
8326
8751
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
@@ -8643,7 +9068,8 @@ var setupBrowserForEditing = (options = {}) => {
8643
9068
  // Supports builder-model="..." attribute which is needed to
8644
9069
  // scope our '+ add block' button styling
8645
9070
  supportsAddBlockScoping: true,
8646
- supportsCustomBreakpoints: true
9071
+ supportsCustomBreakpoints: true,
9072
+ blockLevelPersonalization: true
8647
9073
  }
8648
9074
  }, "*");
8649
9075
  window.parent?.postMessage({
@@ -9379,7 +9805,7 @@ var content_default = ContentComponent;
9379
9805
 
9380
9806
  // src/components/content-variants/content-variants.tsx
9381
9807
  function ContentVariants(props) {
9382
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants({
9808
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants2({
9383
9809
  canTrack: getDefaultCanTrack(props.canTrack),
9384
9810
  content: props.content
9385
9811
  }));
@@ -9605,7 +10031,7 @@ var fetchSymbolContent = async ({
9605
10031
  };
9606
10032
 
9607
10033
  // src/blocks/symbol/symbol.tsx
9608
- var _tmpl$21 = /* @__PURE__ */ template(`<div>`);
10034
+ var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
9609
10035
  function Symbol2(props) {
9610
10036
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
9611
10037
  const blocksWrapper = createMemo(() => {
@@ -9637,7 +10063,7 @@ function Symbol2(props) {
9637
10063
  }
9638
10064
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
9639
10065
  return (() => {
9640
- const _el$ = _tmpl$21();
10066
+ const _el$ = _tmpl$30();
9641
10067
  spread(_el$, mergeProps({
9642
10068
  get ["class"]() {
9643
10069
  return className();
@@ -9729,4 +10155,4 @@ var fetchBuilderProps = async (_args) => {
9729
10155
  };
9730
10156
  };
9731
10157
 
9732
- 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 };
10158
+ 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 };