@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/node/dev.js CHANGED
@@ -1785,7 +1785,7 @@ function Block(props) {
1785
1785
  });
1786
1786
  }
1787
1787
  var block_default = Block;
1788
- var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3c4beb0c {
1788
+ var _tmpl$2 = /* @__PURE__ */ template(`<style>.dynamic-3d7ff108 {
1789
1789
  display: flex;
1790
1790
  flex-direction: column;
1791
1791
  align-items: stretch;
@@ -1798,8 +1798,9 @@ function BlocksWrapper(props) {
1798
1798
  if (!props.path) {
1799
1799
  return void 0;
1800
1800
  }
1801
+ const thisPrefix = "this.";
1801
1802
  const pathPrefix = "component.options.";
1802
- return props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
1803
+ return props.path.startsWith(thisPrefix) ? props.path.replace(thisPrefix, "") : props.path.startsWith(pathPrefix) ? props.path : `${pathPrefix}${props.path || ""}`;
1803
1804
  });
1804
1805
  function onClick() {
1805
1806
  if (isEditing() && !props.blocks?.length) {
@@ -1828,7 +1829,7 @@ function BlocksWrapper(props) {
1828
1829
  });
1829
1830
  return [createComponent(Dynamic, mergeProps({
1830
1831
  get ["class"]() {
1831
- return className() + " dynamic-3c4beb0c";
1832
+ return className() + " dynamic-3d7ff108";
1832
1833
  },
1833
1834
  ref(r$) {
1834
1835
  const _ref$ = blocksWrapperRef;
@@ -2522,8 +2523,58 @@ var handleABTesting = async ({
2522
2523
  };
2523
2524
  };
2524
2525
 
2526
+ // src/helpers/user-attributes.ts
2527
+ var USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
2528
+ function createUserAttributesService() {
2529
+ let canTrack = true;
2530
+ const subscribers = /* @__PURE__ */ new Set();
2531
+ return {
2532
+ setUserAttributes(newAttrs) {
2533
+ if (!isBrowser()) {
2534
+ return;
2535
+ }
2536
+ const userAttributes = {
2537
+ ...this.getUserAttributes(),
2538
+ ...newAttrs
2539
+ };
2540
+ setCookie({
2541
+ name: USER_ATTRIBUTES_COOKIE_NAME,
2542
+ value: JSON.stringify(userAttributes),
2543
+ canTrack
2544
+ });
2545
+ subscribers.forEach((callback) => callback(userAttributes));
2546
+ },
2547
+ getUserAttributes() {
2548
+ if (!isBrowser()) {
2549
+ return {};
2550
+ }
2551
+ return JSON.parse(getCookieSync({
2552
+ name: USER_ATTRIBUTES_COOKIE_NAME,
2553
+ canTrack
2554
+ }) || "{}");
2555
+ },
2556
+ subscribeOnUserAttributesChange(callback) {
2557
+ subscribers.add(callback);
2558
+ return () => {
2559
+ subscribers.delete(callback);
2560
+ };
2561
+ },
2562
+ setCanTrack(value) {
2563
+ canTrack = value;
2564
+ }
2565
+ };
2566
+ }
2567
+ var userAttributesService = createUserAttributesService();
2568
+ var setClientUserAttributes = (attributes) => {
2569
+ userAttributesService.setUserAttributes(attributes);
2570
+ };
2571
+
2525
2572
  // src/helpers/canTrack.ts
2526
- var getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2573
+ var getDefaultCanTrack = (canTrack) => {
2574
+ const result = checkIsDefined(canTrack) ? canTrack : true;
2575
+ userAttributesService.setCanTrack(result);
2576
+ return result;
2577
+ };
2527
2578
 
2528
2579
  // src/blocks/accordion/component-info.ts
2529
2580
  var defaultTitle = {
@@ -3254,8 +3305,408 @@ var componentInfo5 = {
3254
3305
  }
3255
3306
  };
3256
3307
 
3257
- // src/blocks/section/component-info.ts
3308
+ // src/blocks/personalization-container/component-info.ts
3258
3309
  var componentInfo6 = {
3310
+ name: "PersonalizationContainer",
3311
+ shouldReceiveBuilderProps: {
3312
+ builderBlock: true,
3313
+ builderContext: true
3314
+ },
3315
+ noWrap: true,
3316
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
3317
+ canHaveChildren: true,
3318
+ inputs: [{
3319
+ name: "variants",
3320
+ defaultValue: [],
3321
+ behavior: "personalizationVariantList",
3322
+ type: "list",
3323
+ subFields: [{
3324
+ name: "name",
3325
+ type: "text"
3326
+ }, {
3327
+ name: "query",
3328
+ friendlyName: "Targeting rules",
3329
+ type: "BuilderQuery",
3330
+ defaultValue: []
3331
+ }, {
3332
+ name: "startDate",
3333
+ type: "date"
3334
+ }, {
3335
+ name: "endDate",
3336
+ type: "date"
3337
+ }, {
3338
+ name: "blocks",
3339
+ type: "uiBlocks",
3340
+ hideFromUI: true,
3341
+ defaultValue: []
3342
+ }]
3343
+ }]
3344
+ };
3345
+ var _tmpl$8 = /* @__PURE__ */ template(`<script>`);
3346
+ function InlinedScript(props) {
3347
+ return (() => {
3348
+ const _el$ = _tmpl$8();
3349
+ effect((_p$) => {
3350
+ const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
3351
+ _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
3352
+ _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
3353
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
3354
+ return _p$;
3355
+ }, {
3356
+ _v$: void 0,
3357
+ _v$2: void 0,
3358
+ _v$3: void 0
3359
+ });
3360
+ return _el$;
3361
+ })();
3362
+ }
3363
+ var inlined_script_default = InlinedScript;
3364
+
3365
+ // src/functions/is-previewing.ts
3366
+ function isPreviewing(_search) {
3367
+ const search = _search || (isBrowser() ? window.location.search : void 0);
3368
+ if (!search) {
3369
+ return false;
3370
+ }
3371
+ const normalizedSearch = getSearchString(search);
3372
+ return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
3373
+ }
3374
+
3375
+ // src/blocks/personalization-container/helpers/inlined-fns.ts
3376
+ function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
3377
+ function isString(val) {
3378
+ return typeof val === "string";
3379
+ }
3380
+ function isNumber(val) {
3381
+ return typeof val === "number";
3382
+ }
3383
+ function objectMatchesQuery(userattr, query2) {
3384
+ const result = (() => {
3385
+ const property = query2.property;
3386
+ const operator = query2.operator;
3387
+ let testValue = query2.value;
3388
+ if (query2 && query2.property === "urlPath" && query2.value && typeof query2.value === "string" && query2.value !== "/" && query2.value.endsWith("/")) {
3389
+ testValue = query2.value.slice(0, -1);
3390
+ }
3391
+ if (!(property && operator)) {
3392
+ return true;
3393
+ }
3394
+ if (Array.isArray(testValue)) {
3395
+ if (operator === "isNot") {
3396
+ return testValue.every((val) => objectMatchesQuery(userattr, {
3397
+ property,
3398
+ operator,
3399
+ value: val
3400
+ }));
3401
+ }
3402
+ return !!testValue.find((val) => objectMatchesQuery(userattr, {
3403
+ property,
3404
+ operator,
3405
+ value: val
3406
+ }));
3407
+ }
3408
+ const value = userattr[property];
3409
+ if (Array.isArray(value)) {
3410
+ return value.includes(testValue);
3411
+ }
3412
+ switch (operator) {
3413
+ case "is":
3414
+ return value === testValue;
3415
+ case "isNot":
3416
+ return value !== testValue;
3417
+ case "contains":
3418
+ return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
3419
+ case "startsWith":
3420
+ return isString(value) && value.startsWith(String(testValue));
3421
+ case "endsWith":
3422
+ return isString(value) && value.endsWith(String(testValue));
3423
+ case "greaterThan":
3424
+ return isNumber(value) && isNumber(testValue) && value > testValue;
3425
+ case "lessThan":
3426
+ return isNumber(value) && isNumber(testValue) && value < testValue;
3427
+ case "greaterThanOrEqualTo":
3428
+ return isNumber(value) && isNumber(testValue) && value >= testValue;
3429
+ case "lessThanOrEqualTo":
3430
+ return isNumber(value) && isNumber(testValue) && value <= testValue;
3431
+ default:
3432
+ return false;
3433
+ }
3434
+ })();
3435
+ return result;
3436
+ }
3437
+ const item = {
3438
+ query,
3439
+ startDate,
3440
+ endDate
3441
+ };
3442
+ const now = userAttributes.date && new Date(userAttributes.date) || /* @__PURE__ */ new Date();
3443
+ if (item.startDate && new Date(item.startDate) > now) {
3444
+ return false;
3445
+ } else if (item.endDate && new Date(item.endDate) < now) {
3446
+ return false;
3447
+ }
3448
+ if (!item.query || !item.query.length) {
3449
+ return true;
3450
+ }
3451
+ return item.query.every((filter) => {
3452
+ return objectMatchesQuery(userAttributes, filter);
3453
+ });
3454
+ }
3455
+ var PERSONALIZATION_SCRIPT = `function getPersonalizedVariant(variants, blockId, locale) {
3456
+ if (!navigator.cookieEnabled) {
3457
+ return;
3458
+ }
3459
+ function getCookie(name) {
3460
+ const nameEQ = name + '=';
3461
+ const ca = document.cookie.split(';');
3462
+ for (let i = 0; i < ca.length; i++) {
3463
+ let c = ca[i];
3464
+ while (c.charAt(0) == ' ') c = c.substring(1, c.length);
3465
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
3466
+ }
3467
+ return null;
3468
+ }
3469
+ function removeVariants() {
3470
+ variants?.forEach(function (_, index) {
3471
+ document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
3472
+ });
3473
+ document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
3474
+ document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
3475
+ }
3476
+ const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
3477
+ if (locale) {
3478
+ attributes.locale = locale;
3479
+ }
3480
+ const winningVariantIndex = variants?.findIndex(function (variant) {
3481
+ return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
3482
+ });
3483
+ const isDebug = location.href.includes('builder.debug=true');
3484
+ if (isDebug) {
3485
+ console.debug('PersonalizationContainer', {
3486
+ attributes,
3487
+ variants,
3488
+ winningVariantIndex
3489
+ });
3490
+ }
3491
+ if (winningVariantIndex !== -1) {
3492
+ const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
3493
+ if (winningVariant) {
3494
+ const parentNode = winningVariant.parentNode;
3495
+ if (parentNode) {
3496
+ const newParent = parentNode.cloneNode(false);
3497
+ newParent.appendChild(winningVariant.content.firstChild);
3498
+ newParent.appendChild(winningVariant.content.lastChild);
3499
+ parentNode.parentNode?.replaceChild(newParent, parentNode);
3500
+ }
3501
+ if (isDebug) {
3502
+ console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
3503
+ }
3504
+ }
3505
+ } else if (variants && variants.length > 0) {
3506
+ removeVariants();
3507
+ }
3508
+ }`;
3509
+ 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}";
3510
+
3511
+ // src/blocks/personalization-container/helpers.ts
3512
+ function checkShouldRenderVariants(variants, canTrack) {
3513
+ const hasVariants = variants && variants.length > 0;
3514
+ if (TARGET === "reactNative")
3515
+ return false;
3516
+ if (!hasVariants)
3517
+ return false;
3518
+ if (!canTrack)
3519
+ return false;
3520
+ if (TARGET === "vue" || TARGET === "svelte")
3521
+ return true;
3522
+ if (isBrowser())
3523
+ return false;
3524
+ return true;
3525
+ }
3526
+ function getBlocksToRender({
3527
+ variants,
3528
+ previewingIndex,
3529
+ isHydrated,
3530
+ filteredVariants,
3531
+ fallbackBlocks
3532
+ }) {
3533
+ const fallback = {
3534
+ blocks: fallbackBlocks ?? [],
3535
+ path: "this.children"
3536
+ };
3537
+ if (isHydrated && isEditing()) {
3538
+ if (typeof previewingIndex === "number" && previewingIndex < (variants?.length ?? 0)) {
3539
+ const variant = variants[previewingIndex];
3540
+ return {
3541
+ blocks: variant.blocks,
3542
+ path: `component.options.variants.${previewingIndex}.blocks`
3543
+ };
3544
+ }
3545
+ return fallback;
3546
+ }
3547
+ if (isBrowser()) {
3548
+ const winningVariant = filteredVariants?.[0];
3549
+ if (winningVariant) {
3550
+ return {
3551
+ blocks: winningVariant.blocks,
3552
+ path: `component.options.variants.${variants?.indexOf(winningVariant)}.blocks`
3553
+ };
3554
+ }
3555
+ }
3556
+ return fallback;
3557
+ }
3558
+ var getPersonalizationScript = (variants, blockId, locale) => {
3559
+ return `
3560
+ (function() {
3561
+ ${FILTER_WITH_CUSTOM_TARGETING_SCRIPT}
3562
+ ${PERSONALIZATION_SCRIPT}
3563
+ getPersonalizedVariant(${JSON.stringify(variants)}, "${blockId}"${locale ? `, "${locale}"` : ""})
3564
+ })();
3565
+ `;
3566
+ };
3567
+
3568
+ // src/blocks/personalization-container/personalization-container.tsx
3569
+ var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
3570
+ var _tmpl$25 = /* @__PURE__ */ template(`<template>`);
3571
+ function PersonalizationContainer(props) {
3572
+ const [userAttributes, setUserAttributes] = createSignal(userAttributesService.getUserAttributes());
3573
+ const [scriptStr, setScriptStr] = createSignal(getPersonalizationScript(props.variants, props.builderBlock?.id || "none", props.builderContext?.rootState?.locale));
3574
+ const [unsubscribers, setUnsubscribers] = createSignal([]);
3575
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants(props.variants, getDefaultCanTrack(props.builderContext?.canTrack)));
3576
+ const [isHydrated, setIsHydrated] = createSignal(false);
3577
+ const filteredVariants = createMemo(() => {
3578
+ return (props.variants || []).filter((variant) => {
3579
+ return filterWithCustomTargeting({
3580
+ ...props.builderContext?.rootState?.locale ? {
3581
+ locale: props.builderContext?.rootState?.locale
3582
+ } : {},
3583
+ ...userAttributes()
3584
+ }, variant.query, variant.startDate, variant.endDate);
3585
+ });
3586
+ });
3587
+ const blocksToRender = createMemo(() => {
3588
+ return getBlocksToRender({
3589
+ variants: props.variants,
3590
+ fallbackBlocks: props.builderBlock?.children,
3591
+ isHydrated: isHydrated(),
3592
+ filteredVariants: filteredVariants(),
3593
+ previewingIndex: props.previewingIndex
3594
+ });
3595
+ });
3596
+ const hideVariantsStyleString = createMemo(() => {
3597
+ return (props.variants || []).map((_, index) => `[data-variant-id="${props.builderBlock?.id}-${index}"] { display: none; } `).join("");
3598
+ });
3599
+ let rootRef;
3600
+ onMount(() => {
3601
+ setIsHydrated(true);
3602
+ const unsub = userAttributesService.subscribeOnUserAttributesChange((attrs) => {
3603
+ setUserAttributes(attrs);
3604
+ });
3605
+ if (!(isEditing() || isPreviewing())) {
3606
+ const variant = filteredVariants()[0];
3607
+ if (rootRef) {
3608
+ rootRef.dispatchEvent(new CustomEvent("builder.variantLoaded", {
3609
+ detail: {
3610
+ variant: variant || "default",
3611
+ content: props.builderContext?.content
3612
+ },
3613
+ bubbles: true
3614
+ }));
3615
+ const observer = new IntersectionObserver((entries) => {
3616
+ entries.forEach((entry) => {
3617
+ if (entry.isIntersecting && rootRef) {
3618
+ rootRef.dispatchEvent(new CustomEvent("builder.variantDisplayed", {
3619
+ detail: {
3620
+ variant: variant || "default",
3621
+ content: props.builderContext?.content
3622
+ },
3623
+ bubbles: true
3624
+ }));
3625
+ }
3626
+ });
3627
+ });
3628
+ observer.observe(rootRef);
3629
+ }
3630
+ }
3631
+ unsubscribers().push(unsub);
3632
+ });
3633
+ return (() => {
3634
+ const _el$ = _tmpl$9();
3635
+ const _ref$ = rootRef;
3636
+ typeof _ref$ === "function" ? use(_ref$, _el$) : rootRef = _el$;
3637
+ spread(_el$, mergeProps({
3638
+ get ["class"]() {
3639
+ return `builder-personalization-container ${props.attributes?.className || ""}`;
3640
+ }
3641
+ }, () => props.attributes), false, true);
3642
+ insert(_el$, createComponent(Show, {
3643
+ get when() {
3644
+ return shouldRenderVariants();
3645
+ },
3646
+ get children() {
3647
+ return [createComponent(For, {
3648
+ get each() {
3649
+ return props.variants;
3650
+ },
3651
+ children: (variant, _index) => {
3652
+ const index = _index();
3653
+ return (() => {
3654
+ const _el$2 = _tmpl$25();
3655
+ setAttribute(_el$2, "key", index);
3656
+ insert(_el$2, createComponent(blocks_default, {
3657
+ get blocks() {
3658
+ return variant.blocks;
3659
+ },
3660
+ get parent() {
3661
+ return props.builderBlock?.id;
3662
+ },
3663
+ path: `component.options.variants.${index}.blocks`
3664
+ }));
3665
+ effect(() => setAttribute(_el$2, "data-variant-id", `${props.builderBlock?.id}-${index}`));
3666
+ return _el$2;
3667
+ })();
3668
+ }
3669
+ }), createComponent(inlined_styles_default, {
3670
+ get nonce() {
3671
+ return props.builderContext?.nonce || "";
3672
+ },
3673
+ get styles() {
3674
+ return hideVariantsStyleString();
3675
+ },
3676
+ get id() {
3677
+ return `variants-styles-${props.builderBlock?.id}`;
3678
+ }
3679
+ }), createComponent(inlined_script_default, {
3680
+ get nonce() {
3681
+ return props.builderContext?.nonce || "";
3682
+ },
3683
+ get scriptStr() {
3684
+ return scriptStr();
3685
+ },
3686
+ get id() {
3687
+ return `variants-script-${props.builderBlock?.id}`;
3688
+ }
3689
+ })];
3690
+ }
3691
+ }), null);
3692
+ insert(_el$, createComponent(blocks_default, {
3693
+ get blocks() {
3694
+ return blocksToRender().blocks;
3695
+ },
3696
+ get parent() {
3697
+ return props.builderBlock?.id;
3698
+ },
3699
+ get path() {
3700
+ return blocksToRender().path;
3701
+ }
3702
+ }), null);
3703
+ return _el$;
3704
+ })();
3705
+ }
3706
+ var personalization_container_default = PersonalizationContainer;
3707
+
3708
+ // src/blocks/section/component-info.ts
3709
+ var componentInfo7 = {
3259
3710
  name: "Core:Section",
3260
3711
  static: true,
3261
3712
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3297,7 +3748,7 @@ var componentInfo6 = {
3297
3748
  };
3298
3749
 
3299
3750
  // src/blocks/slot/component-info.ts
3300
- var componentInfo7 = {
3751
+ var componentInfo8 = {
3301
3752
  name: "Slot",
3302
3753
  isRSC: true,
3303
3754
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3315,10 +3766,10 @@ var componentInfo7 = {
3315
3766
  builderComponents: true
3316
3767
  }
3317
3768
  };
3318
- var _tmpl$8 = /* @__PURE__ */ template(`<div>`);
3769
+ var _tmpl$10 = /* @__PURE__ */ template(`<div>`);
3319
3770
  function Slot(props) {
3320
3771
  return (() => {
3321
- const _el$ = _tmpl$8();
3772
+ const _el$ = _tmpl$10();
3322
3773
  _el$.style.setProperty("pointer-events", "auto");
3323
3774
  spread(_el$, mergeProps(() => !props.builderContext.context?.symbolId && {
3324
3775
  "builder-slot": props.name
@@ -3346,7 +3797,7 @@ function Slot(props) {
3346
3797
  var slot_default = Slot;
3347
3798
 
3348
3799
  // src/blocks/symbol/component-info.ts
3349
- var componentInfo8 = {
3800
+ var componentInfo9 = {
3350
3801
  name: "Symbol",
3351
3802
  noWrap: true,
3352
3803
  static: true,
@@ -3428,7 +3879,7 @@ var defaultElement = {
3428
3879
  }
3429
3880
  }
3430
3881
  };
3431
- var componentInfo9 = {
3882
+ var componentInfo10 = {
3432
3883
  name: "Builder: Tabs",
3433
3884
  inputs: [{
3434
3885
  name: "tabs",
@@ -3532,8 +3983,8 @@ var componentInfo9 = {
3532
3983
  builderLinkComponent: true
3533
3984
  }
3534
3985
  };
3535
- var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
3536
- var _tmpl$25 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
3986
+ var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
3987
+ var _tmpl$26 = /* @__PURE__ */ template(`<div><div class=builder-tabs-wrap>`);
3537
3988
  var _tmpl$33 = /* @__PURE__ */ template(`<span>`);
3538
3989
  function Tabs(props) {
3539
3990
  const [activeTab, setActiveTab] = createSignal(props.defaultActiveTab ? props.defaultActiveTab - 1 : 0);
@@ -3548,7 +3999,7 @@ function Tabs(props) {
3548
3999
  }
3549
4000
  }
3550
4001
  return (() => {
3551
- const _el$ = _tmpl$25(), _el$2 = _el$.firstChild;
4002
+ const _el$ = _tmpl$26(), _el$2 = _el$.firstChild;
3552
4003
  _el$2.style.setProperty("display", "flex");
3553
4004
  _el$2.style.setProperty("flex-direction", "row");
3554
4005
  _el$2.style.setProperty("overflow", "auto");
@@ -3600,7 +4051,7 @@ function Tabs(props) {
3600
4051
  return activeTabContent(activeTab());
3601
4052
  },
3602
4053
  get children() {
3603
- const _el$3 = _tmpl$9();
4054
+ const _el$3 = _tmpl$11();
3604
4055
  insert(_el$3, createComponent(blocks_default, {
3605
4056
  get parent() {
3606
4057
  return props.builderBlock.id;
@@ -3632,7 +4083,7 @@ var tabs_default = Tabs;
3632
4083
  delegateEvents(["click"]);
3633
4084
 
3634
4085
  // src/blocks/text/component-info.ts
3635
- var componentInfo10 = {
4086
+ var componentInfo11 = {
3636
4087
  shouldReceiveBuilderProps: {
3637
4088
  builderBlock: TARGET === "reactNative" ? true : false,
3638
4089
  builderContext: true
@@ -3655,10 +4106,10 @@ var componentInfo10 = {
3655
4106
  textAlign: "center"
3656
4107
  }
3657
4108
  };
3658
- var _tmpl$10 = /* @__PURE__ */ template(`<div class=builder-text>`);
4109
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-text>`);
3659
4110
  function Text(props) {
3660
4111
  return (() => {
3661
- const _el$ = _tmpl$10();
4112
+ const _el$ = _tmpl$12();
3662
4113
  _el$.style.setProperty("outline", "none");
3663
4114
  effect(() => _el$.innerHTML = props.text?.toString() || "");
3664
4115
  return _el$;
@@ -3667,7 +4118,7 @@ function Text(props) {
3667
4118
  var text_default = Text;
3668
4119
 
3669
4120
  // src/blocks/custom-code/component-info.ts
3670
- var componentInfo11 = {
4121
+ var componentInfo12 = {
3671
4122
  name: "Custom Code",
3672
4123
  static: true,
3673
4124
  requiredPermissions: ["editCode"],
@@ -3690,7 +4141,7 @@ var componentInfo11 = {
3690
4141
  advanced: true
3691
4142
  }]
3692
4143
  };
3693
- var _tmpl$11 = /* @__PURE__ */ template(`<div>`);
4144
+ var _tmpl$13 = /* @__PURE__ */ template(`<div>`);
3694
4145
  function CustomCode(props) {
3695
4146
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
3696
4147
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -3725,7 +4176,7 @@ function CustomCode(props) {
3725
4176
  }
3726
4177
  });
3727
4178
  return (() => {
3728
- const _el$ = _tmpl$11();
4179
+ const _el$ = _tmpl$13();
3729
4180
  const _ref$ = elementRef;
3730
4181
  typeof _ref$ === "function" ? use(_ref$, _el$) : elementRef = _el$;
3731
4182
  effect((_p$) => {
@@ -3743,7 +4194,7 @@ function CustomCode(props) {
3743
4194
  var custom_code_default = CustomCode;
3744
4195
 
3745
4196
  // src/blocks/embed/component-info.ts
3746
- var componentInfo12 = {
4197
+ var componentInfo13 = {
3747
4198
  name: "Embed",
3748
4199
  static: true,
3749
4200
  inputs: [{
@@ -3765,7 +4216,7 @@ var SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "applicati
3765
4216
  var isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
3766
4217
 
3767
4218
  // src/blocks/embed/embed.tsx
3768
- var _tmpl$12 = /* @__PURE__ */ template(`<div class=builder-embed>`);
4219
+ var _tmpl$14 = /* @__PURE__ */ template(`<div class=builder-embed>`);
3769
4220
  function Embed(props) {
3770
4221
  const [scriptsInserted, setScriptsInserted] = createSignal([]);
3771
4222
  const [scriptsRun, setScriptsRun] = createSignal([]);
@@ -3803,7 +4254,7 @@ function Embed(props) {
3803
4254
  }
3804
4255
  createEffect(on(() => [onUpdateFn_0_elem(), onUpdateFn_0_ranInitFn__()], onUpdateFn_0));
3805
4256
  return (() => {
3806
- const _el$ = _tmpl$12();
4257
+ const _el$ = _tmpl$14();
3807
4258
  const _ref$ = elem;
3808
4259
  typeof _ref$ === "function" ? use(_ref$, _el$) : elem = _el$;
3809
4260
  effect(() => _el$.innerHTML = props.content);
@@ -3813,7 +4264,7 @@ function Embed(props) {
3813
4264
  var embed_default = Embed;
3814
4265
 
3815
4266
  // src/blocks/form/form/component-info.ts
3816
- var componentInfo13 = {
4267
+ var componentInfo14 = {
3817
4268
  name: "Form:Form",
3818
4269
  // editableTags: ['builder-form-error']
3819
4270
  defaults: {
@@ -4069,8 +4520,8 @@ function logFetch(url) {
4069
4520
  }
4070
4521
 
4071
4522
  // src/blocks/form/form/form.tsx
4072
- var _tmpl$13 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
4073
- var _tmpl$26 = /* @__PURE__ */ template(`<form>`);
4523
+ var _tmpl$15 = /* @__PURE__ */ template(`<pre class="builder-form-error-text pre-04a43b72">`);
4524
+ var _tmpl$27 = /* @__PURE__ */ template(`<form>`);
4074
4525
  var _tmpl$34 = /* @__PURE__ */ template(`<style>.pre-04a43b72 {
4075
4526
  padding: 10px;
4076
4527
  color: red;
@@ -4263,7 +4714,7 @@ function FormComponent(props) {
4263
4714
  }
4264
4715
  let formRef;
4265
4716
  return [(() => {
4266
- const _el$ = _tmpl$26();
4717
+ const _el$ = _tmpl$27();
4267
4718
  _el$.addEventListener("submit", (event) => onSubmit(event));
4268
4719
  const _ref$ = formRef;
4269
4720
  typeof _ref$ === "function" ? use(_ref$, _el$) : formRef = _el$;
@@ -4319,7 +4770,7 @@ function FormComponent(props) {
4319
4770
  return memo(() => submissionState() === "error")() && responseData();
4320
4771
  },
4321
4772
  get children() {
4322
- const _el$2 = _tmpl$13();
4773
+ const _el$2 = _tmpl$15();
4323
4774
  insert(_el$2, () => JSON.stringify(responseData(), null, 2));
4324
4775
  return _el$2;
4325
4776
  }
@@ -4346,7 +4797,7 @@ function FormComponent(props) {
4346
4797
  var form_default = FormComponent;
4347
4798
 
4348
4799
  // src/blocks/form/input/component-info.ts
4349
- var componentInfo14 = {
4800
+ var componentInfo15 = {
4350
4801
  name: "Form:Input",
4351
4802
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
4352
4803
  inputs: [
@@ -4398,10 +4849,10 @@ var componentInfo14 = {
4398
4849
  borderColor: "#ccc"
4399
4850
  }
4400
4851
  };
4401
- var _tmpl$14 = /* @__PURE__ */ template(`<input>`);
4852
+ var _tmpl$16 = /* @__PURE__ */ template(`<input>`);
4402
4853
  function FormInputComponent(props) {
4403
4854
  return (() => {
4404
- const _el$ = _tmpl$14();
4855
+ const _el$ = _tmpl$16();
4405
4856
  spread(_el$, mergeProps({}, () => props.attributes, {
4406
4857
  get key() {
4407
4858
  return isEditing() && props.defaultValue ? props.defaultValue : "default-key";
@@ -4431,7 +4882,7 @@ function FormInputComponent(props) {
4431
4882
  var input_default = FormInputComponent;
4432
4883
 
4433
4884
  // src/blocks/form/select/component-info.ts
4434
- var componentInfo15 = {
4885
+ var componentInfo16 = {
4435
4886
  name: "Form:Select",
4436
4887
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
4437
4888
  defaultStyles: {
@@ -4474,11 +4925,11 @@ var componentInfo15 = {
4474
4925
  static: true,
4475
4926
  noWrap: true
4476
4927
  };
4477
- var _tmpl$15 = /* @__PURE__ */ template(`<select>`);
4478
- var _tmpl$27 = /* @__PURE__ */ template(`<option>`);
4928
+ var _tmpl$17 = /* @__PURE__ */ template(`<select>`);
4929
+ var _tmpl$28 = /* @__PURE__ */ template(`<option>`);
4479
4930
  function SelectComponent(props) {
4480
4931
  return (() => {
4481
- const _el$ = _tmpl$15();
4932
+ const _el$ = _tmpl$17();
4482
4933
  spread(_el$, mergeProps({}, () => props.attributes, {
4483
4934
  get value() {
4484
4935
  return props.value;
@@ -4503,7 +4954,7 @@ function SelectComponent(props) {
4503
4954
  children: (option, _index) => {
4504
4955
  const index = _index();
4505
4956
  return (() => {
4506
- const _el$2 = _tmpl$27();
4957
+ const _el$2 = _tmpl$28();
4507
4958
  insert(_el$2, () => option.name || option.value);
4508
4959
  effect(() => setAttribute(_el$2, "key", `${option.name}-${index}`));
4509
4960
  effect(() => _el$2.value = option.value);
@@ -4517,7 +4968,7 @@ function SelectComponent(props) {
4517
4968
  var select_default = SelectComponent;
4518
4969
 
4519
4970
  // src/blocks/form/submit-button/component-info.ts
4520
- var componentInfo16 = {
4971
+ var componentInfo17 = {
4521
4972
  name: "Form:SubmitButton",
4522
4973
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
4523
4974
  defaultStyles: {
@@ -4543,10 +4994,10 @@ var componentInfo16 = {
4543
4994
  // TODO: defaultChildren
4544
4995
  // canHaveChildren: true,
4545
4996
  };
4546
- var _tmpl$16 = /* @__PURE__ */ template(`<button type=submit>`);
4997
+ var _tmpl$18 = /* @__PURE__ */ template(`<button type=submit>`);
4547
4998
  function SubmitButton(props) {
4548
4999
  return (() => {
4549
- const _el$ = _tmpl$16();
5000
+ const _el$ = _tmpl$18();
4550
5001
  spread(_el$, mergeProps({}, () => props.attributes), false, true);
4551
5002
  insert(_el$, () => props.text);
4552
5003
  return _el$;
@@ -4555,7 +5006,7 @@ function SubmitButton(props) {
4555
5006
  var submit_button_default = SubmitButton;
4556
5007
 
4557
5008
  // src/blocks/form/textarea/component-info.ts
4558
- var componentInfo17 = {
5009
+ var componentInfo18 = {
4559
5010
  name: "Form:TextArea",
4560
5011
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
4561
5012
  inputs: [{
@@ -4592,10 +5043,10 @@ var componentInfo17 = {
4592
5043
  static: true,
4593
5044
  noWrap: true
4594
5045
  };
4595
- var _tmpl$17 = /* @__PURE__ */ template(`<textarea>`);
5046
+ var _tmpl$19 = /* @__PURE__ */ template(`<textarea>`);
4596
5047
  function Textarea(props) {
4597
5048
  return (() => {
4598
- const _el$ = _tmpl$17();
5049
+ const _el$ = _tmpl$19();
4599
5050
  spread(_el$, mergeProps({}, () => props.attributes, {
4600
5051
  get placeholder() {
4601
5052
  return props.placeholder;
@@ -4619,7 +5070,7 @@ function Textarea(props) {
4619
5070
  var textarea_default = Textarea;
4620
5071
 
4621
5072
  // src/blocks/img/component-info.ts
4622
- var componentInfo18 = {
5073
+ var componentInfo19 = {
4623
5074
  // friendlyName?
4624
5075
  name: "Raw:Img",
4625
5076
  hideFromInsertMenu: true,
@@ -4634,10 +5085,10 @@ var componentInfo18 = {
4634
5085
  noWrap: true,
4635
5086
  static: true
4636
5087
  };
4637
- var _tmpl$18 = /* @__PURE__ */ template(`<img>`);
5088
+ var _tmpl$20 = /* @__PURE__ */ template(`<img>`);
4638
5089
  function ImgComponent(props) {
4639
5090
  return (() => {
4640
- const _el$ = _tmpl$18();
5091
+ const _el$ = _tmpl$20();
4641
5092
  spread(_el$, mergeProps({
4642
5093
  get style() {
4643
5094
  return {
@@ -4661,7 +5112,7 @@ function ImgComponent(props) {
4661
5112
  var img_default = ImgComponent;
4662
5113
 
4663
5114
  // src/blocks/video/component-info.ts
4664
- var componentInfo19 = {
5115
+ var componentInfo20 = {
4665
5116
  name: "Video",
4666
5117
  canHaveChildren: true,
4667
5118
  defaultStyles: {
@@ -4746,8 +5197,8 @@ var componentInfo19 = {
4746
5197
  builderBlock: true
4747
5198
  }
4748
5199
  };
4749
- var _tmpl$19 = /* @__PURE__ */ template(`<source type=video/mp4>`);
4750
- var _tmpl$28 = /* @__PURE__ */ template(`<div>`);
5200
+ var _tmpl$21 = /* @__PURE__ */ template(`<source type=video/mp4>`);
5201
+ var _tmpl$29 = /* @__PURE__ */ template(`<div>`);
4751
5202
  var _tmpl$35 = /* @__PURE__ */ template(`<div><video class=builder-video>`);
4752
5203
  function Video(props) {
4753
5204
  const videoProps = createMemo(() => {
@@ -4808,7 +5259,7 @@ function Video(props) {
4808
5259
  return !props.lazyLoad;
4809
5260
  },
4810
5261
  get children() {
4811
- const _el$3 = _tmpl$19();
5262
+ const _el$3 = _tmpl$21();
4812
5263
  effect(() => setAttribute(_el$3, "src", props.video));
4813
5264
  return _el$3;
4814
5265
  }
@@ -4818,7 +5269,7 @@ function Video(props) {
4818
5269
  return props.aspectRatio && !(props.fitContent && props.builderBlock?.children?.length);
4819
5270
  },
4820
5271
  get children() {
4821
- const _el$4 = _tmpl$28();
5272
+ const _el$4 = _tmpl$29();
4822
5273
  _el$4.style.setProperty("width", "100%");
4823
5274
  _el$4.style.setProperty("pointer-events", "none");
4824
5275
  _el$4.style.setProperty("font-size", "0px");
@@ -4831,7 +5282,7 @@ function Video(props) {
4831
5282
  return props.builderBlock?.children?.length && props.fitContent;
4832
5283
  },
4833
5284
  get children() {
4834
- const _el$5 = _tmpl$28();
5285
+ const _el$5 = _tmpl$29();
4835
5286
  _el$5.style.setProperty("display", "flex");
4836
5287
  _el$5.style.setProperty("flex-direction", "column");
4837
5288
  _el$5.style.setProperty("align-items", "stretch");
@@ -4844,7 +5295,7 @@ function Video(props) {
4844
5295
  return props.builderBlock?.children?.length && !props.fitContent;
4845
5296
  },
4846
5297
  get children() {
4847
- const _el$6 = _tmpl$28();
5298
+ const _el$6 = _tmpl$29();
4848
5299
  _el$6.style.setProperty("pointer-events", "none");
4849
5300
  _el$6.style.setProperty("display", "flex");
4850
5301
  _el$6.style.setProperty("flex-direction", "column");
@@ -4866,31 +5317,31 @@ var video_default = Video;
4866
5317
  // src/constants/extra-components.ts
4867
5318
  var getExtraComponents = () => [{
4868
5319
  component: custom_code_default,
4869
- ...componentInfo11
5320
+ ...componentInfo12
4870
5321
  }, {
4871
5322
  component: embed_default,
4872
- ...componentInfo12
5323
+ ...componentInfo13
4873
5324
  }, ...TARGET === "rsc" ? [] : [{
4874
5325
  component: form_default,
4875
- ...componentInfo13
5326
+ ...componentInfo14
4876
5327
  }, {
4877
5328
  component: input_default,
4878
- ...componentInfo14
5329
+ ...componentInfo15
4879
5330
  }, {
4880
5331
  component: submit_button_default,
4881
- ...componentInfo16
5332
+ ...componentInfo17
4882
5333
  }, {
4883
5334
  component: select_default,
4884
- ...componentInfo15
5335
+ ...componentInfo16
4885
5336
  }, {
4886
5337
  component: textarea_default,
4887
- ...componentInfo17
5338
+ ...componentInfo18
4888
5339
  }], {
4889
5340
  component: img_default,
4890
- ...componentInfo18
5341
+ ...componentInfo19
4891
5342
  }, {
4892
5343
  component: video_default,
4893
- ...componentInfo19
5344
+ ...componentInfo20
4894
5345
  }];
4895
5346
 
4896
5347
  // src/constants/builder-registered-components.ts
@@ -4908,19 +5359,22 @@ var getDefaultRegisteredComponents = () => [{
4908
5359
  ...componentInfo5
4909
5360
  }, {
4910
5361
  component: section_default,
4911
- ...componentInfo6
5362
+ ...componentInfo7
4912
5363
  }, {
4913
5364
  component: slot_default,
4914
- ...componentInfo7
5365
+ ...componentInfo8
4915
5366
  }, {
4916
5367
  component: symbol_default,
4917
- ...componentInfo8
5368
+ ...componentInfo9
4918
5369
  }, {
4919
5370
  component: text_default,
4920
- ...componentInfo10
4921
- }, ...TARGET === "rsc" ? [] : [{
5371
+ ...componentInfo11
5372
+ }, ...TARGET === "react" ? [{
5373
+ component: personalization_container_default,
5374
+ ...componentInfo6
5375
+ }] : [], ...TARGET === "rsc" ? [] : [{
4922
5376
  component: tabs_default,
4923
- ...componentInfo9
5377
+ ...componentInfo10
4924
5378
  }, {
4925
5379
  component: accordion_default,
4926
5380
  ...componentInfo
@@ -4958,7 +5412,7 @@ var getVariants = (content) => Object.values(content?.variations || {}).map((var
4958
5412
  testVariationId: variant.id,
4959
5413
  id: content?.id
4960
5414
  }));
4961
- var checkShouldRenderVariants = ({
5415
+ var checkShouldRenderVariants2 = ({
4962
5416
  canTrack,
4963
5417
  content
4964
5418
  }) => {
@@ -4991,25 +5445,6 @@ var getUpdateVariantVisibilityScript = ({
4991
5445
  }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
4992
5446
  "${variationId}", "${contentId}", ${isHydrationTarget}
4993
5447
  )`;
4994
- var _tmpl$20 = /* @__PURE__ */ template(`<script>`);
4995
- function InlinedScript(props) {
4996
- return (() => {
4997
- const _el$ = _tmpl$20();
4998
- effect((_p$) => {
4999
- const _v$ = props.scriptStr, _v$2 = props.id, _v$3 = props.nonce || "";
5000
- _v$ !== _p$._v$ && (_el$.innerHTML = _p$._v$ = _v$);
5001
- _v$2 !== _p$._v$2 && setAttribute(_el$, "data-id", _p$._v$2 = _v$2);
5002
- _v$3 !== _p$._v$3 && setAttribute(_el$, "nonce", _p$._v$3 = _v$3);
5003
- return _p$;
5004
- }, {
5005
- _v$: void 0,
5006
- _v$2: void 0,
5007
- _v$3: void 0
5008
- });
5009
- return _el$;
5010
- })();
5011
- }
5012
- var inlined_script_default = InlinedScript;
5013
5448
 
5014
5449
  // src/helpers/preview-lru-cache/get.ts
5015
5450
  function getPreviewContent(_searchParams) {
@@ -5017,7 +5452,7 @@ function getPreviewContent(_searchParams) {
5017
5452
  }
5018
5453
 
5019
5454
  // src/constants/sdk-version.ts
5020
- var SDK_VERSION = "3.0.5";
5455
+ var SDK_VERSION = "3.0.6";
5021
5456
 
5022
5457
  // src/helpers/sdk-headers.ts
5023
5458
  var getSdkHeaders = () => ({
@@ -5314,16 +5749,6 @@ async function fetchEntries(options) {
5314
5749
  return _processContentResult(options, content);
5315
5750
  }
5316
5751
 
5317
- // src/functions/is-previewing.ts
5318
- function isPreviewing(_search) {
5319
- const search = _search || (isBrowser() ? window.location.search : void 0);
5320
- if (!search) {
5321
- return false;
5322
- }
5323
- const normalizedSearch = getSearchString(search);
5324
- return Boolean(normalizedSearch.indexOf("builder.preview=") !== -1);
5325
- }
5326
-
5327
5752
  // src/helpers/uuid.ts
5328
5753
  function uuidv4() {
5329
5754
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
@@ -5650,7 +6075,8 @@ var setupBrowserForEditing = (options = {}) => {
5650
6075
  // Supports builder-model="..." attribute which is needed to
5651
6076
  // scope our '+ add block' button styling
5652
6077
  supportsAddBlockScoping: true,
5653
- supportsCustomBreakpoints: true
6078
+ supportsCustomBreakpoints: true,
6079
+ blockLevelPersonalization: true
5654
6080
  }
5655
6081
  }, "*");
5656
6082
  window.parent?.postMessage({
@@ -6387,7 +6813,7 @@ var content_default = ContentComponent;
6387
6813
 
6388
6814
  // src/components/content-variants/content-variants.tsx
6389
6815
  function ContentVariants(props) {
6390
- const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants({
6816
+ const [shouldRenderVariants, setShouldRenderVariants] = createSignal(checkShouldRenderVariants2({
6391
6817
  canTrack: getDefaultCanTrack(props.canTrack),
6392
6818
  content: props.content
6393
6819
  }));
@@ -6613,7 +7039,7 @@ var fetchSymbolContent = async ({
6613
7039
  };
6614
7040
 
6615
7041
  // src/blocks/symbol/symbol.tsx
6616
- var _tmpl$21 = /* @__PURE__ */ template(`<div>`);
7042
+ var _tmpl$30 = /* @__PURE__ */ template(`<div>`);
6617
7043
  function Symbol(props) {
6618
7044
  const [contentToUse, setContentToUse] = createSignal(props.symbol?.content);
6619
7045
  const blocksWrapper = createMemo(() => {
@@ -6645,7 +7071,7 @@ function Symbol(props) {
6645
7071
  }
6646
7072
  createEffect(on(() => [onUpdateFn_0_props_symbol()], onUpdateFn_0));
6647
7073
  return (() => {
6648
- const _el$ = _tmpl$21();
7074
+ const _el$ = _tmpl$30();
6649
7075
  spread(_el$, mergeProps({
6650
7076
  get ["class"]() {
6651
7077
  return className();
@@ -6737,4 +7163,4 @@ var fetchBuilderProps = async (_args) => {
6737
7163
  };
6738
7164
  };
6739
7165
 
6740
- 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 };
7166
+ 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 };