@builder.io/sdk-qwik 0.7.2 → 0.7.4

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.
@@ -2573,6 +2573,8 @@ const componentInfo = {
2573
2573
  ]
2574
2574
  };
2575
2575
  const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
2576
+ var _a, _b, _c, _d, _e, _f, _g;
2577
+ _jsxBranch();
2576
2578
  const videoProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
2577
2579
  const [props2] = useLexicalScope();
2578
2580
  return {
@@ -2596,43 +2598,83 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
2596
2598
  props
2597
2599
  ]));
2598
2600
  const spreadProps = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
2599
- const [props2, videoProps2] = useLexicalScope();
2601
+ const [videoProps2] = useLexicalScope();
2600
2602
  return {
2601
- ...props2.attributes,
2602
2603
  ...videoProps2.value
2603
2604
  };
2604
2605
  }, "Video_component_spreadProps_useComputed_ZdLsx18NYH4", [
2605
- props,
2606
2606
  videoProps
2607
2607
  ]));
2608
- return /* @__PURE__ */ _jsxS("video", {
2609
- ...spreadProps.value
2610
- }, {
2611
- poster: _fnSignal((p0) => p0.posterImage, [
2612
- props
2613
- ], "p0.posterImage"),
2614
- preload: _fnSignal((p0) => p0.preload || "metadata", [
2615
- props
2616
- ], 'p0.preload||"metadata"'),
2617
- src: _fnSignal((p0) => p0.video || "no-src", [
2618
- props
2619
- ], 'p0.video||"no-src"'),
2620
- style: _fnSignal((p0) => {
2621
- var _a;
2622
- return {
2608
+ return /* @__PURE__ */ _jsxQ("div", null, {
2609
+ style: {
2610
+ position: "relative"
2611
+ }
2612
+ }, [
2613
+ /* @__PURE__ */ _jsxS("video", {
2614
+ ...spreadProps.value,
2615
+ children: !props.lazyLoad ? /* @__PURE__ */ _jsxQ("source", null, {
2616
+ src: _fnSignal((p0) => p0.video, [
2617
+ props
2618
+ ], "p0.video"),
2619
+ type: "video/mp4"
2620
+ }, null, 3, "j7_0") : null,
2621
+ style: {
2623
2622
  width: "100%",
2624
2623
  height: "100%",
2625
- ...(_a = p0.attributes) == null ? void 0 : _a.style,
2626
- objectFit: p0.fit,
2627
- objectPosition: p0.position,
2624
+ ...(_a = props.attributes) == null ? void 0 : _a.style,
2625
+ objectFit: props.fit,
2626
+ objectPosition: props.position,
2628
2627
  // Hack to get object fit to work as expected and
2629
2628
  // not have the video overflow
2630
- borderRadius: 1
2631
- };
2632
- }, [
2633
- props
2634
- ], '{width:"100%",height:"100%",...p0.attributes?.style,objectFit:p0.fit,objectPosition:p0.position,borderRadius:1}')
2635
- }, 0, "j7_0");
2629
+ zIndex: 2,
2630
+ borderRadius: "1px",
2631
+ ...props.aspectRatio ? {
2632
+ position: "absolute"
2633
+ } : null
2634
+ }
2635
+ }, {
2636
+ class: "builder-video",
2637
+ poster: _fnSignal((p0) => p0.posterImage, [
2638
+ props
2639
+ ], "p0.posterImage"),
2640
+ preload: _fnSignal((p0) => p0.preload || "metadata", [
2641
+ props
2642
+ ], 'p0.preload||"metadata"'),
2643
+ src: _fnSignal((p0) => p0.video || "no-src", [
2644
+ props
2645
+ ], 'p0.video||"no-src"')
2646
+ }, 0, null),
2647
+ props.aspectRatio && !(props.fitContent && ((_c = (_b = props.builderBlock) == null ? void 0 : _b.children) == null ? void 0 : _c.length)) ? /* @__PURE__ */ _jsxQ("div", null, {
2648
+ style: _fnSignal((p0) => ({
2649
+ width: "100%",
2650
+ paddingTop: p0.aspectRatio * 100 + "%",
2651
+ pointerEvents: "none",
2652
+ fontSize: "0px"
2653
+ }), [
2654
+ props
2655
+ ], '{width:"100%",paddingTop:p0.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}')
2656
+ }, null, 3, "j7_1") : null,
2657
+ ((_e = (_d = props.builderBlock) == null ? void 0 : _d.children) == null ? void 0 : _e.length) && props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
2658
+ style: {
2659
+ display: "flex",
2660
+ flexDirection: "column",
2661
+ alignItems: "stretch"
2662
+ }
2663
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_2"), 1, "j7_3") : null,
2664
+ ((_g = (_f = props.builderBlock) == null ? void 0 : _f.children) == null ? void 0 : _g.length) && !props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
2665
+ style: {
2666
+ pointerEvents: "none",
2667
+ display: "flex",
2668
+ flexDirection: "column",
2669
+ alignItems: "stretch",
2670
+ position: "absolute",
2671
+ top: "0",
2672
+ left: "0",
2673
+ width: "100%",
2674
+ height: "100%"
2675
+ }
2676
+ }, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_4"), 1, "j7_5") : null
2677
+ ], 1, "j7_6");
2636
2678
  }, "Video_component_qdcTZflYyoQ"));
2637
2679
  const getDefaultRegisteredComponents = () => [
2638
2680
  {
@@ -2698,12 +2740,16 @@ const serializeComponentInfo = ({ inputs, ...info }) => ({
2698
2740
  [key]: serializeValue(value)
2699
2741
  }), {}))
2700
2742
  });
2743
+ const UPDATE_COOKIES_AND_STYLES_SCRIPT = "function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {\n function getAndSetVariantId() {\n function setCookie(name, value, days) {\n let expires = '';\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n expires = '; expires=' + date.toUTCString();\n }\n document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${contentId}`;\n const variantInCookie = getCookie(cookieName);\n const availableIDs = variants.map(vr => vr.id).concat(contentId);\n if (variantInCookie && availableIDs.includes(variantInCookie)) {\n return variantInCookie;\n }\n let n = 0;\n const random = Math.random();\n for (let i = 0; i < variants.length; i++) {\n const variant = variants[i];\n const testRatio = variant.testRatio;\n n += testRatio;\n if (random < n) {\n setCookie(cookieName, variant.id);\n return variant.id;\n }\n }\n setCookie(cookieName, contentId);\n return contentId;\n }\n const winningVariantId = getAndSetVariantId();\n const styleEl = document.currentScript?.previousElementSibling;\n if (isHydrationTarget) {\n styleEl.remove();\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n } else {\n const newStyleStr = variants.concat({\n id: contentId\n }).filter(variant => variant.id !== winningVariantId).map(value => {\n return `.variant-${value.id} { display: none; }\n `;\n }).join('');\n styleEl.innerHTML = newStyleStr;\n }\n}";
2744
+ const UPDATE_VARIANT_VISIBILITY_SCRIPT = "function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {\n if (!navigator.cookieEnabled) {\n return;\n }\n function getCookie(name) {\n const nameEQ = name + '=';\n const ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n const cookieName = `builder.tests.${defaultContentId}`;\n const winningVariant = getCookie(cookieName);\n const parentDiv = document.currentScript?.parentElement;\n const isDefaultContent = variantContentId === defaultContentId;\n const isWinningVariant = winningVariant === variantContentId;\n if (isWinningVariant && !isDefaultContent) {\n parentDiv?.removeAttribute('hidden');\n parentDiv?.removeAttribute('aria-hidden');\n } else if (!isWinningVariant && isDefaultContent) {\n parentDiv?.setAttribute('hidden', 'true');\n parentDiv?.setAttribute('aria-hidden', 'true');\n }\n if (isHydrationTarget) {\n if (!isWinningVariant) {\n parentDiv?.remove();\n }\n const thisScriptEl = document.currentScript;\n thisScriptEl?.remove();\n }\n return;\n}";
2745
+ const UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME = "builderIoAbTest";
2746
+ const UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME = "builderIoRenderContent";
2701
2747
  const getVariants = (content) => Object.values((content == null ? void 0 : content.variations) || {}).map((variant) => ({
2702
2748
  ...variant,
2703
2749
  testVariationId: variant.id,
2704
2750
  id: content == null ? void 0 : content.id
2705
2751
  }));
2706
- const checkShouldRunVariants = ({ canTrack, content }) => {
2752
+ const checkShouldRenderVariants = ({ canTrack, content }) => {
2707
2753
  const hasVariants = getVariants(content).length > 0;
2708
2754
  if (!hasVariants)
2709
2755
  return false;
@@ -2713,131 +2759,27 @@ const checkShouldRunVariants = ({ canTrack, content }) => {
2713
2759
  return false;
2714
2760
  return true;
2715
2761
  };
2716
- function bldrAbTest(contentId, variants, isHydrationTarget2) {
2717
- var _a;
2718
- function getAndSetVariantId2() {
2719
- function setCookie2(name, value, days) {
2720
- let expires = "";
2721
- if (days) {
2722
- const date = /* @__PURE__ */ new Date();
2723
- date.setTime(date.getTime() + days * 864e5);
2724
- expires = "; expires=" + date.toUTCString();
2725
- }
2726
- document.cookie = name + "=" + (value || "") + expires + "; path=/; Secure; SameSite=None";
2727
- }
2728
- function getCookie2(name) {
2729
- const nameEQ = name + "=";
2730
- const ca = document.cookie.split(";");
2731
- for (let i = 0; i < ca.length; i++) {
2732
- let c = ca[i];
2733
- while (c.charAt(0) === " ")
2734
- c = c.substring(1, c.length);
2735
- if (c.indexOf(nameEQ) === 0)
2736
- return c.substring(nameEQ.length, c.length);
2737
- }
2738
- return null;
2739
- }
2740
- const cookieName = `builder.tests.${contentId}`;
2741
- const variantInCookie = getCookie2(cookieName);
2742
- const availableIDs = variants.map((vr) => vr.id).concat(contentId);
2743
- if (variantInCookie && availableIDs.includes(variantInCookie))
2744
- return variantInCookie;
2745
- let n = 0;
2746
- const random = Math.random();
2747
- for (let i = 0; i < variants.length; i++) {
2748
- const variant = variants[i];
2749
- const testRatio = variant.testRatio;
2750
- n += testRatio;
2751
- if (random < n) {
2752
- setCookie2(cookieName, variant.id);
2753
- return variant.id;
2754
- }
2755
- }
2756
- setCookie2(cookieName, contentId);
2757
- return contentId;
2758
- }
2759
- const winningVariantId = getAndSetVariantId2();
2760
- const styleEl = (_a = document.currentScript) == null ? void 0 : _a.previousElementSibling;
2761
- if (isHydrationTarget2) {
2762
- styleEl.remove();
2763
- const thisScriptEl = document.currentScript;
2764
- thisScriptEl == null ? void 0 : thisScriptEl.remove();
2765
- } else {
2766
- const newStyleStr = variants.concat({
2767
- id: contentId
2768
- }).filter((variant) => variant.id !== winningVariantId).map((value) => {
2769
- return `.variant-${value.id} { display: none; }
2770
- `;
2771
- }).join("");
2772
- styleEl.innerHTML = newStyleStr;
2773
- }
2774
- }
2775
- function bldrCntntScrpt(variantContentId, defaultContentId, isHydrationTarget2) {
2776
- var _a;
2777
- if (!navigator.cookieEnabled)
2778
- return;
2779
- function getCookie2(name) {
2780
- const nameEQ = name + "=";
2781
- const ca = document.cookie.split(";");
2782
- for (let i = 0; i < ca.length; i++) {
2783
- let c = ca[i];
2784
- while (c.charAt(0) === " ")
2785
- c = c.substring(1, c.length);
2786
- if (c.indexOf(nameEQ) === 0)
2787
- return c.substring(nameEQ.length, c.length);
2788
- }
2789
- return null;
2790
- }
2791
- const cookieName = `builder.tests.${defaultContentId}`;
2792
- const variantId = getCookie2(cookieName);
2793
- const parentDiv = (_a = document.currentScript) == null ? void 0 : _a.parentElement;
2794
- const variantIsDefaultContent = variantContentId === defaultContentId;
2795
- if (variantId === variantContentId) {
2796
- if (variantIsDefaultContent)
2797
- return;
2798
- parentDiv == null ? void 0 : parentDiv.removeAttribute("hidden");
2799
- parentDiv == null ? void 0 : parentDiv.removeAttribute("aria-hidden");
2800
- } else {
2801
- if (variantIsDefaultContent) {
2802
- if (isHydrationTarget2)
2803
- parentDiv == null ? void 0 : parentDiv.remove();
2804
- else {
2805
- parentDiv == null ? void 0 : parentDiv.setAttribute("hidden", "true");
2806
- parentDiv == null ? void 0 : parentDiv.setAttribute("aria-hidden", "true");
2807
- }
2808
- }
2809
- return;
2810
- }
2811
- return;
2812
- }
2813
2762
  const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
2814
2763
  const isHydrationTarget = getIsHydrationTarget(TARGET);
2815
- const AB_TEST_FN_NAME = "builderIoAbTest";
2816
- const CONTENT_FN_NAME = "builderIoRenderContent";
2817
- const getScriptString = () => {
2818
- const fnStr = bldrAbTest.toString().replace(/\s+/g, " ");
2819
- const fnStr2 = bldrCntntScrpt.toString().replace(/\s+/g, " ");
2820
- return `
2821
- window.${AB_TEST_FN_NAME} = ${fnStr}
2822
- window.${CONTENT_FN_NAME} = ${fnStr2}
2764
+ const getScriptString = () => `
2765
+ window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
2766
+ window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
2823
2767
  `;
2824
- };
2825
- const getVariantsScriptString = (variants, contentId) => {
2826
- return `
2827
- window.${AB_TEST_FN_NAME}("${contentId}",${JSON.stringify(variants)}, ${isHydrationTarget})`;
2828
- };
2829
- const getRenderContentScriptString = ({ contentId, variationId }) => {
2830
- return `
2831
- window.${CONTENT_FN_NAME}("${variationId}", "${contentId}", ${isHydrationTarget})`;
2832
- };
2768
+ const getUpdateCookieAndStylesScript = (variants, contentId) => `
2769
+ window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME}(
2770
+ "${contentId}",${JSON.stringify(variants)}, ${isHydrationTarget}
2771
+ )`;
2772
+ const getUpdateVariantVisibilityScript = ({ contentId, variationId }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
2773
+ "${variationId}", "${contentId}", ${isHydrationTarget}
2774
+ )`;
2833
2775
  const InlinedScript = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
2834
2776
  return /* @__PURE__ */ _jsxQ("script", null, {
2835
2777
  dangerouslySetInnerHTML: _fnSignal((p0) => p0.scriptStr, [
2836
2778
  props
2837
2779
  ], "p0.scriptStr"),
2838
- id: _fnSignal((p0) => p0.id, [
2780
+ id: _fnSignal((p0) => p0.id || "", [
2839
2781
  props
2840
- ], "p0.id")
2782
+ ], 'p0.id||""')
2841
2783
  }, null, 3, "WO_0");
2842
2784
  }, "InlinedScript_component_hwThBdhA8rw"));
2843
2785
  function getGlobalThis() {
@@ -3217,7 +3159,7 @@ const getInteractionPropertiesForEvent = (event) => {
3217
3159
  }
3218
3160
  };
3219
3161
  };
3220
- const SDK_VERSION = "0.7.2";
3162
+ const SDK_VERSION = "0.7.4";
3221
3163
  const registry = {};
3222
3164
  function register(type, info) {
3223
3165
  let typeList = registry[type];
@@ -3475,7 +3417,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
3475
3417
  }));
3476
3418
  };
3477
3419
  const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
3478
- var _a, _b, _c;
3420
+ var _a, _b, _c, _d, _e;
3479
3421
  _jsxBranch();
3480
3422
  const elementRef = useSignal();
3481
3423
  const state = useStore({
@@ -3535,7 +3477,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
3535
3477
  state
3536
3478
  ]));
3537
3479
  useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
3538
- var _a2, _b2, _c2, _d;
3480
+ var _a2, _b2, _c2, _d2;
3539
3481
  if (isBrowser()) {
3540
3482
  if (isEditing() && element)
3541
3483
  element.dispatchEvent(new CustomEvent("initeditingbldr"));
@@ -3543,7 +3485,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
3543
3485
  if (shouldTrackImpression) {
3544
3486
  const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
3545
3487
  const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
3546
- const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
3488
+ const apiKeyProp = (_d2 = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d2.value;
3547
3489
  _track({
3548
3490
  type: "impression",
3549
3491
  canTrack: true,
@@ -3641,7 +3583,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
3641
3583
  hidden: true,
3642
3584
  "aria-hidden": true
3643
3585
  },
3644
- class: props.classNameProp
3586
+ class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
3645
3587
  }, /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0")) : null
3646
3588
  }, 1, "06_1");
3647
3589
  }, "EnableEditor_component_ko1mO8oaj8k"));
@@ -3805,7 +3747,7 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
3805
3747
  ...serializeComponentInfo(info)
3806
3748
  }
3807
3749
  }), {}),
3808
- scriptStr: getRenderContentScriptString({
3750
+ scriptStr: getUpdateVariantVisibilityScript({
3809
3751
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3810
3752
  variationId: (_a = props.content) == null ? void 0 : _a.testVariationId,
3811
3753
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3842,9 +3784,6 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
3842
3784
  get enrich() {
3843
3785
  return props.enrich;
3844
3786
  },
3845
- get classNameProp() {
3846
- return props.classNameProp;
3847
- },
3848
3787
  get showContent() {
3849
3788
  return props.showContent;
3850
3789
  },
@@ -3933,9 +3872,6 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
3933
3872
  canTrack: _fnSignal((p0) => p0.canTrack, [
3934
3873
  props
3935
3874
  ], "p0.canTrack"),
3936
- classNameProp: _fnSignal((p0) => p0.classNameProp, [
3937
- props
3938
- ], "p0.classNameProp"),
3939
3875
  content: _fnSignal((p0) => p0.content, [
3940
3876
  props
3941
3877
  ], "p0.content"),
@@ -3963,19 +3899,19 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
3963
3899
  const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
3964
3900
  _jsxBranch();
3965
3901
  const state = useStore({
3966
- shouldRenderVariants: checkShouldRunVariants({
3902
+ shouldRenderVariants: checkShouldRenderVariants({
3967
3903
  canTrack: getDefaultCanTrack(props.canTrack),
3968
3904
  content: props.content
3969
3905
  })
3970
3906
  });
3971
- const variantScriptStr = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
3907
+ const updateCookieAndStylesScriptStr = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
3972
3908
  var _a;
3973
3909
  const [props2] = useLexicalScope();
3974
- return getVariantsScriptString(getVariants(props2.content).map((value) => ({
3910
+ return getUpdateCookieAndStylesScript(getVariants(props2.content).map((value) => ({
3975
3911
  id: value.testVariationId,
3976
3912
  testRatio: value.testRatio
3977
3913
  })), ((_a = props2.content) == null ? void 0 : _a.id) || "");
3978
- }, "ContentVariants_component_variantScriptStr_useComputed_ldWqWafT8Ww", [
3914
+ }, "ContentVariants_component_updateCookieAndStylesScriptStr_useComputed_FtJXWpnoDYg", [
3979
3915
  props
3980
3916
  ]));
3981
3917
  const hideVariantsStyleString = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
@@ -4032,11 +3968,11 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4032
3968
  }, 3, "XM_1"),
4033
3969
  /* @__PURE__ */ _jsxC(InlinedScript, {
4034
3970
  get scriptStr() {
4035
- return variantScriptStr.value;
3971
+ return updateCookieAndStylesScriptStr.value;
4036
3972
  },
4037
3973
  [_IMMUTABLE]: {
4038
3974
  scriptStr: _fnSignal((p0) => p0.value, [
4039
- variantScriptStr
3975
+ updateCookieAndStylesScriptStr
4040
3976
  ], "p0.value")
4041
3977
  }
4042
3978
  }, 3, "XM_2"),
@@ -4044,9 +3980,6 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4044
3980
  return /* @__PURE__ */ _jsxC(ContentComponent, {
4045
3981
  content: variant,
4046
3982
  showContent: false,
4047
- get classNameProp() {
4048
- return void 0;
4049
- },
4050
3983
  get model() {
4051
3984
  return props.model;
4052
3985
  },
@@ -4090,7 +4023,6 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4090
4023
  canTrack: _fnSignal((p0) => p0.canTrack, [
4091
4024
  props
4092
4025
  ], "p0.canTrack"),
4093
- classNameProp: _IMMUTABLE,
4094
4026
  context: _fnSignal((p0) => p0.context, [
4095
4027
  props
4096
4028
  ], "p0.context"),
@@ -4125,10 +4057,6 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4125
4057
  get content() {
4126
4058
  return defaultContent.value;
4127
4059
  },
4128
- get classNameProp() {
4129
- var _a;
4130
- return `variant-${(_a = props.content) == null ? void 0 : _a.id}`;
4131
- },
4132
4060
  showContent: true,
4133
4061
  get model() {
4134
4062
  return props.model;
@@ -4173,12 +4101,6 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4173
4101
  canTrack: _fnSignal((p0) => p0.canTrack, [
4174
4102
  props
4175
4103
  ], "p0.canTrack"),
4176
- classNameProp: _fnSignal((p0) => {
4177
- var _a;
4178
- return `variant-${(_a = p0.content) == null ? void 0 : _a.id}`;
4179
- }, [
4180
- props
4181
- ], "`variant-${p0.content?.id}`"),
4182
4104
  content: _fnSignal((p0) => p0.value, [
4183
4105
  defaultContent
4184
4106
  ], "p0.value"),