@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.
@@ -5806,6 +5806,8 @@ const componentInfo = {
5806
5806
  ]
5807
5807
  };
5808
5808
  const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
5809
+ var _a, _b, _c, _d, _e, _f, _g;
5810
+ qwik._jsxBranch();
5809
5811
  const videoProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5810
5812
  const [props2] = qwik.useLexicalScope();
5811
5813
  return {
@@ -5829,43 +5831,83 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
5829
5831
  props
5830
5832
  ]));
5831
5833
  const spreadProps = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
5832
- const [props2, videoProps2] = qwik.useLexicalScope();
5834
+ const [videoProps2] = qwik.useLexicalScope();
5833
5835
  return {
5834
- ...props2.attributes,
5835
5836
  ...videoProps2.value
5836
5837
  };
5837
5838
  }, "Video_component_spreadProps_useComputed_ZdLsx18NYH4", [
5838
- props,
5839
5839
  videoProps
5840
5840
  ]));
5841
- return /* @__PURE__ */ qwik._jsxS("video", {
5842
- ...spreadProps.value
5843
- }, {
5844
- poster: qwik._fnSignal((p0) => p0.posterImage, [
5845
- props
5846
- ], "p0.posterImage"),
5847
- preload: qwik._fnSignal((p0) => p0.preload || "metadata", [
5848
- props
5849
- ], 'p0.preload||"metadata"'),
5850
- src: qwik._fnSignal((p0) => p0.video || "no-src", [
5851
- props
5852
- ], 'p0.video||"no-src"'),
5853
- style: qwik._fnSignal((p0) => {
5854
- var _a;
5855
- return {
5841
+ return /* @__PURE__ */ qwik._jsxQ("div", null, {
5842
+ style: {
5843
+ position: "relative"
5844
+ }
5845
+ }, [
5846
+ /* @__PURE__ */ qwik._jsxS("video", {
5847
+ ...spreadProps.value,
5848
+ children: !props.lazyLoad ? /* @__PURE__ */ qwik._jsxQ("source", null, {
5849
+ src: qwik._fnSignal((p0) => p0.video, [
5850
+ props
5851
+ ], "p0.video"),
5852
+ type: "video/mp4"
5853
+ }, null, 3, "j7_0") : null,
5854
+ style: {
5856
5855
  width: "100%",
5857
5856
  height: "100%",
5858
- ...(_a = p0.attributes) == null ? void 0 : _a.style,
5859
- objectFit: p0.fit,
5860
- objectPosition: p0.position,
5857
+ ...(_a = props.attributes) == null ? void 0 : _a.style,
5858
+ objectFit: props.fit,
5859
+ objectPosition: props.position,
5861
5860
  // Hack to get object fit to work as expected and
5862
5861
  // not have the video overflow
5863
- borderRadius: 1
5864
- };
5865
- }, [
5866
- props
5867
- ], '{width:"100%",height:"100%",...p0.attributes?.style,objectFit:p0.fit,objectPosition:p0.position,borderRadius:1}')
5868
- }, 0, "j7_0");
5862
+ zIndex: 2,
5863
+ borderRadius: "1px",
5864
+ ...props.aspectRatio ? {
5865
+ position: "absolute"
5866
+ } : null
5867
+ }
5868
+ }, {
5869
+ class: "builder-video",
5870
+ poster: qwik._fnSignal((p0) => p0.posterImage, [
5871
+ props
5872
+ ], "p0.posterImage"),
5873
+ preload: qwik._fnSignal((p0) => p0.preload || "metadata", [
5874
+ props
5875
+ ], 'p0.preload||"metadata"'),
5876
+ src: qwik._fnSignal((p0) => p0.video || "no-src", [
5877
+ props
5878
+ ], 'p0.video||"no-src"')
5879
+ }, 0, null),
5880
+ props.aspectRatio && !(props.fitContent && ((_c = (_b = props.builderBlock) == null ? void 0 : _b.children) == null ? void 0 : _c.length)) ? /* @__PURE__ */ qwik._jsxQ("div", null, {
5881
+ style: qwik._fnSignal((p0) => ({
5882
+ width: "100%",
5883
+ paddingTop: p0.aspectRatio * 100 + "%",
5884
+ pointerEvents: "none",
5885
+ fontSize: "0px"
5886
+ }), [
5887
+ props
5888
+ ], '{width:"100%",paddingTop:p0.aspectRatio*100+"%",pointerEvents:"none",fontSize:"0px"}')
5889
+ }, null, 3, "j7_1") : null,
5890
+ ((_e = (_d = props.builderBlock) == null ? void 0 : _d.children) == null ? void 0 : _e.length) && props.fitContent ? /* @__PURE__ */ qwik._jsxQ("div", null, {
5891
+ style: {
5892
+ display: "flex",
5893
+ flexDirection: "column",
5894
+ alignItems: "stretch"
5895
+ }
5896
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "j7_2"), 1, "j7_3") : null,
5897
+ ((_g = (_f = props.builderBlock) == null ? void 0 : _f.children) == null ? void 0 : _g.length) && !props.fitContent ? /* @__PURE__ */ qwik._jsxQ("div", null, {
5898
+ style: {
5899
+ pointerEvents: "none",
5900
+ display: "flex",
5901
+ flexDirection: "column",
5902
+ alignItems: "stretch",
5903
+ position: "absolute",
5904
+ top: "0",
5905
+ left: "0",
5906
+ width: "100%",
5907
+ height: "100%"
5908
+ }
5909
+ }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "j7_4"), 1, "j7_5") : null
5910
+ ], 1, "j7_6");
5869
5911
  }, "Video_component_qdcTZflYyoQ"));
5870
5912
  const getDefaultRegisteredComponents = () => [
5871
5913
  {
@@ -5931,12 +5973,16 @@ const serializeComponentInfo = ({ inputs, ...info }) => ({
5931
5973
  [key]: serializeValue(value)
5932
5974
  }), {}))
5933
5975
  });
5976
+ 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}";
5977
+ 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}";
5978
+ const UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME = "builderIoAbTest";
5979
+ const UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME = "builderIoRenderContent";
5934
5980
  const getVariants = (content) => Object.values((content == null ? void 0 : content.variations) || {}).map((variant) => ({
5935
5981
  ...variant,
5936
5982
  testVariationId: variant.id,
5937
5983
  id: content == null ? void 0 : content.id
5938
5984
  }));
5939
- const checkShouldRunVariants = ({ canTrack, content }) => {
5985
+ const checkShouldRenderVariants = ({ canTrack, content }) => {
5940
5986
  const hasVariants = getVariants(content).length > 0;
5941
5987
  if (!hasVariants)
5942
5988
  return false;
@@ -5946,131 +5992,27 @@ const checkShouldRunVariants = ({ canTrack, content }) => {
5946
5992
  return false;
5947
5993
  return true;
5948
5994
  };
5949
- function bldrAbTest(contentId, variants, isHydrationTarget2) {
5950
- var _a;
5951
- function getAndSetVariantId2() {
5952
- function setCookie2(name, value, days) {
5953
- let expires = "";
5954
- if (days) {
5955
- const date = /* @__PURE__ */ new Date();
5956
- date.setTime(date.getTime() + days * 864e5);
5957
- expires = "; expires=" + date.toUTCString();
5958
- }
5959
- document.cookie = name + "=" + (value || "") + expires + "; path=/; Secure; SameSite=None";
5960
- }
5961
- function getCookie2(name) {
5962
- const nameEQ = name + "=";
5963
- const ca2 = document.cookie.split(";");
5964
- for (let i = 0; i < ca2.length; i++) {
5965
- let c = ca2[i];
5966
- while (c.charAt(0) === " ")
5967
- c = c.substring(1, c.length);
5968
- if (c.indexOf(nameEQ) === 0)
5969
- return c.substring(nameEQ.length, c.length);
5970
- }
5971
- return null;
5972
- }
5973
- const cookieName = `builder.tests.${contentId}`;
5974
- const variantInCookie = getCookie2(cookieName);
5975
- const availableIDs = variants.map((vr) => vr.id).concat(contentId);
5976
- if (variantInCookie && availableIDs.includes(variantInCookie))
5977
- return variantInCookie;
5978
- let n = 0;
5979
- const random = Math.random();
5980
- for (let i = 0; i < variants.length; i++) {
5981
- const variant = variants[i];
5982
- const testRatio = variant.testRatio;
5983
- n += testRatio;
5984
- if (random < n) {
5985
- setCookie2(cookieName, variant.id);
5986
- return variant.id;
5987
- }
5988
- }
5989
- setCookie2(cookieName, contentId);
5990
- return contentId;
5991
- }
5992
- const winningVariantId = getAndSetVariantId2();
5993
- const styleEl = (_a = document.currentScript) == null ? void 0 : _a.previousElementSibling;
5994
- if (isHydrationTarget2) {
5995
- styleEl.remove();
5996
- const thisScriptEl = document.currentScript;
5997
- thisScriptEl == null ? void 0 : thisScriptEl.remove();
5998
- } else {
5999
- const newStyleStr = variants.concat({
6000
- id: contentId
6001
- }).filter((variant) => variant.id !== winningVariantId).map((value) => {
6002
- return `.variant-${value.id} { display: none; }
6003
- `;
6004
- }).join("");
6005
- styleEl.innerHTML = newStyleStr;
6006
- }
6007
- }
6008
- function bldrCntntScrpt(variantContentId, defaultContentId, isHydrationTarget2) {
6009
- var _a;
6010
- if (!navigator.cookieEnabled)
6011
- return;
6012
- function getCookie2(name) {
6013
- const nameEQ = name + "=";
6014
- const ca2 = document.cookie.split(";");
6015
- for (let i = 0; i < ca2.length; i++) {
6016
- let c = ca2[i];
6017
- while (c.charAt(0) === " ")
6018
- c = c.substring(1, c.length);
6019
- if (c.indexOf(nameEQ) === 0)
6020
- return c.substring(nameEQ.length, c.length);
6021
- }
6022
- return null;
6023
- }
6024
- const cookieName = `builder.tests.${defaultContentId}`;
6025
- const variantId = getCookie2(cookieName);
6026
- const parentDiv = (_a = document.currentScript) == null ? void 0 : _a.parentElement;
6027
- const variantIsDefaultContent = variantContentId === defaultContentId;
6028
- if (variantId === variantContentId) {
6029
- if (variantIsDefaultContent)
6030
- return;
6031
- parentDiv == null ? void 0 : parentDiv.removeAttribute("hidden");
6032
- parentDiv == null ? void 0 : parentDiv.removeAttribute("aria-hidden");
6033
- } else {
6034
- if (variantIsDefaultContent) {
6035
- if (isHydrationTarget2)
6036
- parentDiv == null ? void 0 : parentDiv.remove();
6037
- else {
6038
- parentDiv == null ? void 0 : parentDiv.setAttribute("hidden", "true");
6039
- parentDiv == null ? void 0 : parentDiv.setAttribute("aria-hidden", "true");
6040
- }
6041
- }
6042
- return;
6043
- }
6044
- return;
6045
- }
6046
5995
  const getIsHydrationTarget = (target) => target === "react" || target === "reactNative";
6047
5996
  const isHydrationTarget = getIsHydrationTarget(TARGET);
6048
- const AB_TEST_FN_NAME = "builderIoAbTest";
6049
- const CONTENT_FN_NAME = "builderIoRenderContent";
6050
- const getScriptString = () => {
6051
- const fnStr = bldrAbTest.toString().replace(/\s+/g, " ");
6052
- const fnStr2 = bldrCntntScrpt.toString().replace(/\s+/g, " ");
6053
- return `
6054
- window.${AB_TEST_FN_NAME} = ${fnStr}
6055
- window.${CONTENT_FN_NAME} = ${fnStr2}
5997
+ const getScriptString = () => `
5998
+ window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME} = ${UPDATE_COOKIES_AND_STYLES_SCRIPT}
5999
+ window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME} = ${UPDATE_VARIANT_VISIBILITY_SCRIPT}
6056
6000
  `;
6057
- };
6058
- const getVariantsScriptString = (variants, contentId) => {
6059
- return `
6060
- window.${AB_TEST_FN_NAME}("${contentId}",${JSON.stringify(variants)}, ${isHydrationTarget})`;
6061
- };
6062
- const getRenderContentScriptString = ({ contentId, variationId }) => {
6063
- return `
6064
- window.${CONTENT_FN_NAME}("${variationId}", "${contentId}", ${isHydrationTarget})`;
6065
- };
6001
+ const getUpdateCookieAndStylesScript = (variants, contentId) => `
6002
+ window.${UPDATE_COOKIES_AND_STYLES_SCRIPT_NAME}(
6003
+ "${contentId}",${JSON.stringify(variants)}, ${isHydrationTarget}
6004
+ )`;
6005
+ const getUpdateVariantVisibilityScript = ({ contentId, variationId }) => `window.${UPDATE_VARIANT_VISIBILITY_SCRIPT_FN_NAME}(
6006
+ "${variationId}", "${contentId}", ${isHydrationTarget}
6007
+ )`;
6066
6008
  const InlinedScript = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
6067
6009
  return /* @__PURE__ */ qwik._jsxQ("script", null, {
6068
6010
  dangerouslySetInnerHTML: qwik._fnSignal((p0) => p0.scriptStr, [
6069
6011
  props
6070
6012
  ], "p0.scriptStr"),
6071
- id: qwik._fnSignal((p0) => p0.id, [
6013
+ id: qwik._fnSignal((p0) => p0.id || "", [
6072
6014
  props
6073
- ], "p0.id")
6015
+ ], 'p0.id||""')
6074
6016
  }, null, 3, "WO_0");
6075
6017
  }, "InlinedScript_component_hwThBdhA8rw"));
6076
6018
  function getGlobalThis() {
@@ -6450,7 +6392,7 @@ const getInteractionPropertiesForEvent = (event) => {
6450
6392
  }
6451
6393
  };
6452
6394
  };
6453
- const SDK_VERSION = "0.7.2";
6395
+ const SDK_VERSION = "0.7.4";
6454
6396
  const registry = {};
6455
6397
  function register(type, info) {
6456
6398
  let typeList = registry[type];
@@ -6708,7 +6650,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
6708
6650
  }));
6709
6651
  };
6710
6652
  const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
6711
- var _a, _b, _c;
6653
+ var _a, _b, _c, _d, _e;
6712
6654
  qwik._jsxBranch();
6713
6655
  const elementRef = qwik.useSignal();
6714
6656
  const state = qwik.useStore({
@@ -6768,7 +6710,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
6768
6710
  state
6769
6711
  ]));
6770
6712
  qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
6771
- var _a2, _b2, _c2, _d;
6713
+ var _a2, _b2, _c2, _d2;
6772
6714
  if (isBrowser()) {
6773
6715
  if (isEditing() && element)
6774
6716
  element.dispatchEvent(new CustomEvent("initeditingbldr"));
@@ -6776,7 +6718,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
6776
6718
  if (shouldTrackImpression) {
6777
6719
  const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
6778
6720
  const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
6779
- const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
6721
+ const apiKeyProp = (_d2 = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d2.value;
6780
6722
  _track({
6781
6723
  type: "impression",
6782
6724
  canTrack: true,
@@ -6874,7 +6816,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
6874
6816
  hidden: true,
6875
6817
  "aria-hidden": true
6876
6818
  },
6877
- class: props.classNameProp
6819
+ class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
6878
6820
  }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0")) : null
6879
6821
  }, 1, "06_1");
6880
6822
  }, "EnableEditor_component_ko1mO8oaj8k"));
@@ -7038,7 +6980,7 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
7038
6980
  ...serializeComponentInfo(info)
7039
6981
  }
7040
6982
  }), {}),
7041
- scriptStr: getRenderContentScriptString({
6983
+ scriptStr: getUpdateVariantVisibilityScript({
7042
6984
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
7043
6985
  variationId: (_a = props.content) == null ? void 0 : _a.testVariationId,
7044
6986
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -7075,9 +7017,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
7075
7017
  get enrich() {
7076
7018
  return props.enrich;
7077
7019
  },
7078
- get classNameProp() {
7079
- return props.classNameProp;
7080
- },
7081
7020
  get showContent() {
7082
7021
  return props.showContent;
7083
7022
  },
@@ -7166,9 +7105,6 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
7166
7105
  canTrack: qwik._fnSignal((p0) => p0.canTrack, [
7167
7106
  props
7168
7107
  ], "p0.canTrack"),
7169
- classNameProp: qwik._fnSignal((p0) => p0.classNameProp, [
7170
- props
7171
- ], "p0.classNameProp"),
7172
7108
  content: qwik._fnSignal((p0) => p0.content, [
7173
7109
  props
7174
7110
  ], "p0.content"),
@@ -7196,19 +7132,19 @@ const ContentComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.
7196
7132
  const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
7197
7133
  qwik._jsxBranch();
7198
7134
  const state = qwik.useStore({
7199
- shouldRenderVariants: checkShouldRunVariants({
7135
+ shouldRenderVariants: checkShouldRenderVariants({
7200
7136
  canTrack: getDefaultCanTrack(props.canTrack),
7201
7137
  content: props.content
7202
7138
  })
7203
7139
  });
7204
- const variantScriptStr = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
7140
+ const updateCookieAndStylesScriptStr = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
7205
7141
  var _a;
7206
7142
  const [props2] = qwik.useLexicalScope();
7207
- return getVariantsScriptString(getVariants(props2.content).map((value) => ({
7143
+ return getUpdateCookieAndStylesScript(getVariants(props2.content).map((value) => ({
7208
7144
  id: value.testVariationId,
7209
7145
  testRatio: value.testRatio
7210
7146
  })), ((_a = props2.content) == null ? void 0 : _a.id) || "");
7211
- }, "ContentVariants_component_variantScriptStr_useComputed_ldWqWafT8Ww", [
7147
+ }, "ContentVariants_component_updateCookieAndStylesScriptStr_useComputed_FtJXWpnoDYg", [
7212
7148
  props
7213
7149
  ]));
7214
7150
  const hideVariantsStyleString = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
@@ -7265,11 +7201,11 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
7265
7201
  }, 3, "XM_1"),
7266
7202
  /* @__PURE__ */ qwik._jsxC(InlinedScript, {
7267
7203
  get scriptStr() {
7268
- return variantScriptStr.value;
7204
+ return updateCookieAndStylesScriptStr.value;
7269
7205
  },
7270
7206
  [qwik._IMMUTABLE]: {
7271
7207
  scriptStr: qwik._fnSignal((p0) => p0.value, [
7272
- variantScriptStr
7208
+ updateCookieAndStylesScriptStr
7273
7209
  ], "p0.value")
7274
7210
  }
7275
7211
  }, 3, "XM_2"),
@@ -7277,9 +7213,6 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
7277
7213
  return /* @__PURE__ */ qwik._jsxC(ContentComponent, {
7278
7214
  content: variant,
7279
7215
  showContent: false,
7280
- get classNameProp() {
7281
- return void 0;
7282
- },
7283
7216
  get model() {
7284
7217
  return props.model;
7285
7218
  },
@@ -7323,7 +7256,6 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
7323
7256
  canTrack: qwik._fnSignal((p0) => p0.canTrack, [
7324
7257
  props
7325
7258
  ], "p0.canTrack"),
7326
- classNameProp: qwik._IMMUTABLE,
7327
7259
  context: qwik._fnSignal((p0) => p0.context, [
7328
7260
  props
7329
7261
  ], "p0.context"),
@@ -7358,10 +7290,6 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
7358
7290
  get content() {
7359
7291
  return defaultContent.value;
7360
7292
  },
7361
- get classNameProp() {
7362
- var _a;
7363
- return `variant-${(_a = props.content) == null ? void 0 : _a.id}`;
7364
- },
7365
7293
  showContent: true,
7366
7294
  get model() {
7367
7295
  return props.model;
@@ -7406,12 +7334,6 @@ const ContentVariants = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
7406
7334
  canTrack: qwik._fnSignal((p0) => p0.canTrack, [
7407
7335
  props
7408
7336
  ], "p0.canTrack"),
7409
- classNameProp: qwik._fnSignal((p0) => {
7410
- var _a;
7411
- return `variant-${(_a = p0.content) == null ? void 0 : _a.id}`;
7412
- }, [
7413
- props
7414
- ], "`variant-${p0.content?.id}`"),
7415
7337
  content: qwik._fnSignal((p0) => p0.value, [
7416
7338
  defaultContent
7417
7339
  ], "p0.value"),