@builder.io/sdk-qwik 0.14.8 → 0.14.9

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.
@@ -1802,7 +1802,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
1802
1802
  children: [
1803
1803
  /* @__PURE__ */ qwik._jsxQ("picture", null, null, [
1804
1804
  webpSrcSet.value ? /* @__PURE__ */ qwik._jsxQ("source", null, {
1805
- srcSet: qwik._fnSignal((p0) => p0.value, [
1805
+ srcset: qwik._fnSignal((p0) => p0.value, [
1806
1806
  webpSrcSet
1807
1807
  ], "p0.value"),
1808
1808
  type: "image/webp"
@@ -1824,7 +1824,7 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
1824
1824
  src: qwik._fnSignal((p0) => p0.image, [
1825
1825
  props
1826
1826
  ], "p0.image"),
1827
- srcSet: qwik._fnSignal((p0) => p0.value, [
1827
+ srcset: qwik._fnSignal((p0) => p0.value, [
1828
1828
  srcSetToUse
1829
1829
  ], "p0.value"),
1830
1830
  style: qwik._fnSignal((p0, p1) => ({
@@ -4394,7 +4394,7 @@ function isFromTrustedHost(trustedHosts, e) {
4394
4394
  const url = new URL(e.origin), hostname = url.hostname;
4395
4395
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4396
4396
  }
4397
- const SDK_VERSION = "0.14.8";
4397
+ const SDK_VERSION = "0.14.9";
4398
4398
  const registry = {};
4399
4399
  function register(type, info) {
4400
4400
  let typeList = registry[type];
@@ -4615,21 +4615,18 @@ const processMessage = function processMessage2(props, state, elementRef, event)
4615
4615
  const { breakpoints, contentId } = messageContent;
4616
4616
  if (!contentId || contentId !== ((_a = props.builderContextSignal.content) == null ? void 0 : _a.id))
4617
4617
  return;
4618
- if (breakpoints) {
4618
+ if (breakpoints)
4619
4619
  mergeNewContent(props, state, elementRef, {
4620
4620
  meta: {
4621
4621
  breakpoints
4622
4622
  }
4623
4623
  });
4624
- state.forceReRenderCount = state.forceReRenderCount + 1;
4625
- }
4626
4624
  },
4627
4625
  animation: (animation) => {
4628
4626
  triggerAnimation(animation);
4629
4627
  },
4630
4628
  contentUpdate: (newContent) => {
4631
4629
  mergeNewContent(props, state, elementRef, newContent);
4632
- state.forceReRenderCount = state.forceReRenderCount + 1;
4633
4630
  }
4634
4631
  }
4635
4632
  })(event);
@@ -4716,23 +4713,17 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
4716
4713
  }));
4717
4714
  };
4718
4715
  const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
4719
- var _a, _b, _c, _d, _e;
4720
4716
  qwik._jsxBranch();
4721
4717
  const elementRef = qwik.useSignal();
4722
4718
  const state = qwik.useStore({
4723
4719
  ContentWrapper: props.contentWrapper || "div",
4724
4720
  clicked: false,
4725
- firstRender: true,
4726
- forceReRenderCount: 0,
4727
- httpReqsData: {},
4728
- lastUpdated: 0,
4729
- shouldSendResetCookie: false
4721
+ httpReqsData: {}
4730
4722
  }, {
4731
4723
  deep: true
4732
4724
  });
4733
4725
  qwik.useOn("initeditingbldr", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
4734
4726
  const [elementRef2, props2, state2] = qwik.useLexicalScope();
4735
- state2.forceReRenderCount = state2.forceReRenderCount + 1;
4736
4727
  window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
4737
4728
  registerInsertMenu();
4738
4729
  setupBrowserForEditing({
@@ -4747,9 +4738,9 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4747
4738
  } : {}
4748
4739
  });
4749
4740
  Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
4750
- var _a2;
4741
+ var _a;
4751
4742
  const message = createRegisterComponentMessage(registeredComponent);
4752
- (_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
4743
+ (_a = window.parent) == null ? void 0 : _a.postMessage(message, "*");
4753
4744
  });
4754
4745
  window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
4755
4746
  }, "EnableEditor_component_useOn_Qs8c0yql2i0", [
@@ -4778,17 +4769,17 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4778
4769
  state
4779
4770
  ]));
4780
4771
  qwik.useOn("qvisible", /* @__PURE__ */ qwik.inlinedQrl((event, element) => {
4781
- var _a2, _b2, _c2, _d2;
4772
+ var _a, _b, _c, _d;
4782
4773
  if (isBrowser()) {
4783
4774
  if (isEditing()) {
4784
4775
  if (element)
4785
4776
  element.dispatchEvent(new CustomEvent("initeditingbldr"));
4786
4777
  }
4787
- const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
4778
+ const shouldTrackImpression = ((_a = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a.value) === "true";
4788
4779
  if (shouldTrackImpression) {
4789
- const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
4790
- const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
4791
- const apiKeyProp = (_d2 = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d2.value;
4780
+ const variationId = (_b = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b.value;
4781
+ const contentId = (_c = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c.value;
4782
+ const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
4792
4783
  _track({
4793
4784
  type: "impression",
4794
4785
  canTrack: true,
@@ -4826,20 +4817,14 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4826
4817
  props,
4827
4818
  state
4828
4819
  ]));
4829
- qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
4830
- const [state2] = qwik.useLexicalScope();
4831
- track2(() => state2.shouldSendResetCookie);
4832
- }, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
4833
- state
4834
- ]));
4835
4820
  qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
4836
4821
  const [elementRef2, props2, state2] = qwik.useLexicalScope();
4837
4822
  track2(() => {
4838
- var _a2, _b2;
4839
- return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
4823
+ var _a, _b;
4824
+ return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.jsCode;
4840
4825
  });
4841
4826
  evaluateJsCode(props2);
4842
- }, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
4827
+ }, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
4843
4828
  elementRef,
4844
4829
  props,
4845
4830
  state
@@ -4847,11 +4832,11 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4847
4832
  qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track: track2 }) => {
4848
4833
  const [elementRef2, props2, state2] = qwik.useLexicalScope();
4849
4834
  track2(() => {
4850
- var _a2, _b2;
4851
- return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
4835
+ var _a, _b;
4836
+ return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.httpRequests;
4852
4837
  });
4853
4838
  runHttpRequests(props2, state2, elementRef2);
4854
- }, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
4839
+ }, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
4855
4840
  elementRef,
4856
4841
  props,
4857
4842
  state
@@ -4860,7 +4845,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4860
4845
  const [elementRef2, props2, state2] = qwik.useLexicalScope();
4861
4846
  track2(() => props2.builderContextSignal.rootState);
4862
4847
  emitStateUpdate(props2);
4863
- }, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
4848
+ }, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
4864
4849
  elementRef,
4865
4850
  props,
4866
4851
  state
@@ -4870,7 +4855,7 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4870
4855
  track2(() => props2.data);
4871
4856
  if (props2.data)
4872
4857
  mergeNewRootState(props2, state2, elementRef2, props2.data);
4873
- }, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
4858
+ }, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
4874
4859
  elementRef,
4875
4860
  props,
4876
4861
  state
@@ -4882,37 +4867,86 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
4882
4867
  mergeNewRootState(props2, state2, elementRef2, {
4883
4868
  locale: props2.locale
4884
4869
  });
4885
- }, "EnableEditor_component_useTask_7_Zh51H45HHnM", [
4870
+ }, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
4886
4871
  elementRef,
4887
4872
  props,
4888
4873
  state
4889
4874
  ]));
4890
4875
  return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
4891
- children: props.builderContextSignal.content ? /* @__PURE__ */ qwik.createElement(state.ContentWrapper, {
4892
- apiKey: props.apiKey,
4893
- contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
4894
- variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
4895
- shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
4896
- key: state.forceReRenderCount,
4897
- ref: elementRef,
4876
+ children: props.builderContextSignal.content ? /* @__PURE__ */ qwik._jsxC(state.ContentWrapper, {
4877
+ get apiKey() {
4878
+ return props.apiKey;
4879
+ },
4880
+ get contentId() {
4881
+ var _a;
4882
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
4883
+ },
4884
+ get variationId() {
4885
+ var _a;
4886
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
4887
+ },
4898
4888
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
4899
4889
  const [elementRef2, props2, state2] = qwik.useLexicalScope();
4900
4890
  return onClick(props2, state2, elementRef2, event);
4901
- }, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
4891
+ }, "EnableEditor_component__Fragment_onClick_b4nYT3DrjEk", [
4902
4892
  elementRef,
4903
4893
  props,
4904
4894
  state
4905
4895
  ]),
4906
- "builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
4907
- "builder-model": props.model,
4896
+ ref: elementRef,
4897
+ shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
4898
+ get "builder-content-id"() {
4899
+ var _a;
4900
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
4901
+ },
4902
+ get "builder-model"() {
4903
+ return props.model;
4904
+ },
4908
4905
  ...props.showContent ? {} : {
4909
4906
  hidden: true,
4910
4907
  "aria-hidden": true
4911
4908
  },
4912
4909
  ...props.contentWrapperProps,
4913
- class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
4914
- }, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0")) : null
4915
- }, 1, "06_1");
4910
+ get class() {
4911
+ var _a, _b;
4912
+ return `variant-${((_a = props.content) == null ? void 0 : _a.testVariationId) || ((_b = props.content) == null ? void 0 : _b.id)}`;
4913
+ },
4914
+ children: /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "06_0"),
4915
+ [qwik._IMMUTABLE]: {
4916
+ apiKey: qwik._fnSignal((p0) => p0.apiKey, [
4917
+ props
4918
+ ], "p0.apiKey"),
4919
+ "builder-content-id": qwik._fnSignal((p0) => {
4920
+ var _a;
4921
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
4922
+ }, [
4923
+ props
4924
+ ], "p0.builderContextSignal.content?.id"),
4925
+ "builder-model": qwik._fnSignal((p0) => p0.model, [
4926
+ props
4927
+ ], "p0.model"),
4928
+ class: qwik._fnSignal((p0) => {
4929
+ var _a, _b;
4930
+ return `variant-${((_a = p0.content) == null ? void 0 : _a.testVariationId) || ((_b = p0.content) == null ? void 0 : _b.id)}`;
4931
+ }, [
4932
+ props
4933
+ ], "`variant-${p0.content?.testVariationId||p0.content?.id}`"),
4934
+ contentId: qwik._fnSignal((p0) => {
4935
+ var _a;
4936
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
4937
+ }, [
4938
+ props
4939
+ ], "p0.builderContextSignal.content?.id"),
4940
+ ref: qwik._IMMUTABLE,
4941
+ variationId: qwik._fnSignal((p0) => {
4942
+ var _a;
4943
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
4944
+ }, [
4945
+ props
4946
+ ], "p0.builderContextSignal.content?.testVariationId")
4947
+ }
4948
+ }, 0, "06_1") : null
4949
+ }, 1, "06_2");
4916
4950
  }, "EnableEditor_component_ko1mO8oaj8k"));
4917
4951
  const getCssFromFont = (font) => {
4918
4952
  var _a;
@@ -1800,7 +1800,7 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1800
1800
  children: [
1801
1801
  /* @__PURE__ */ _jsxQ("picture", null, null, [
1802
1802
  webpSrcSet.value ? /* @__PURE__ */ _jsxQ("source", null, {
1803
- srcSet: _fnSignal((p0) => p0.value, [
1803
+ srcset: _fnSignal((p0) => p0.value, [
1804
1804
  webpSrcSet
1805
1805
  ], "p0.value"),
1806
1806
  type: "image/webp"
@@ -1822,7 +1822,7 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1822
1822
  src: _fnSignal((p0) => p0.image, [
1823
1823
  props
1824
1824
  ], "p0.image"),
1825
- srcSet: _fnSignal((p0) => p0.value, [
1825
+ srcset: _fnSignal((p0) => p0.value, [
1826
1826
  srcSetToUse
1827
1827
  ], "p0.value"),
1828
1828
  style: _fnSignal((p0, p1) => ({
@@ -4392,7 +4392,7 @@ function isFromTrustedHost(trustedHosts, e) {
4392
4392
  const url = new URL(e.origin), hostname = url.hostname;
4393
4393
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4394
4394
  }
4395
- const SDK_VERSION = "0.14.8";
4395
+ const SDK_VERSION = "0.14.9";
4396
4396
  const registry = {};
4397
4397
  function register(type, info) {
4398
4398
  let typeList = registry[type];
@@ -4613,21 +4613,18 @@ const processMessage = function processMessage2(props, state, elementRef, event)
4613
4613
  const { breakpoints, contentId } = messageContent;
4614
4614
  if (!contentId || contentId !== ((_a = props.builderContextSignal.content) == null ? void 0 : _a.id))
4615
4615
  return;
4616
- if (breakpoints) {
4616
+ if (breakpoints)
4617
4617
  mergeNewContent(props, state, elementRef, {
4618
4618
  meta: {
4619
4619
  breakpoints
4620
4620
  }
4621
4621
  });
4622
- state.forceReRenderCount = state.forceReRenderCount + 1;
4623
- }
4624
4622
  },
4625
4623
  animation: (animation) => {
4626
4624
  triggerAnimation(animation);
4627
4625
  },
4628
4626
  contentUpdate: (newContent) => {
4629
4627
  mergeNewContent(props, state, elementRef, newContent);
4630
- state.forceReRenderCount = state.forceReRenderCount + 1;
4631
4628
  }
4632
4629
  }
4633
4630
  })(event);
@@ -4714,23 +4711,17 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
4714
4711
  }));
4715
4712
  };
4716
4713
  const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
4717
- var _a, _b, _c, _d, _e;
4718
4714
  _jsxBranch();
4719
4715
  const elementRef = useSignal();
4720
4716
  const state = useStore({
4721
4717
  ContentWrapper: props.contentWrapper || "div",
4722
4718
  clicked: false,
4723
- firstRender: true,
4724
- forceReRenderCount: 0,
4725
- httpReqsData: {},
4726
- lastUpdated: 0,
4727
- shouldSendResetCookie: false
4719
+ httpReqsData: {}
4728
4720
  }, {
4729
4721
  deep: true
4730
4722
  });
4731
4723
  useOn("initeditingbldr", /* @__PURE__ */ inlinedQrl((event, element) => {
4732
4724
  const [elementRef2, props2, state2] = useLexicalScope();
4733
- state2.forceReRenderCount = state2.forceReRenderCount + 1;
4734
4725
  window.addEventListener("message", processMessage.bind(null, props2, state2, elementRef2));
4735
4726
  registerInsertMenu();
4736
4727
  setupBrowserForEditing({
@@ -4745,9 +4736,9 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4745
4736
  } : {}
4746
4737
  });
4747
4738
  Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
4748
- var _a2;
4739
+ var _a;
4749
4740
  const message = createRegisterComponentMessage(registeredComponent);
4750
- (_a2 = window.parent) == null ? void 0 : _a2.postMessage(message, "*");
4741
+ (_a = window.parent) == null ? void 0 : _a.postMessage(message, "*");
4751
4742
  });
4752
4743
  window.addEventListener("builder:component:stateChangeListenerActivated", emitStateUpdate.bind(null, props2, state2, elementRef2));
4753
4744
  }, "EnableEditor_component_useOn_Qs8c0yql2i0", [
@@ -4776,17 +4767,17 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4776
4767
  state
4777
4768
  ]));
4778
4769
  useOn("qvisible", /* @__PURE__ */ inlinedQrl((event, element) => {
4779
- var _a2, _b2, _c2, _d2;
4770
+ var _a, _b, _c, _d;
4780
4771
  if (isBrowser()) {
4781
4772
  if (isEditing()) {
4782
4773
  if (element)
4783
4774
  element.dispatchEvent(new CustomEvent("initeditingbldr"));
4784
4775
  }
4785
- const shouldTrackImpression = ((_a2 = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a2.value) === "true";
4776
+ const shouldTrackImpression = ((_a = element.attributes.getNamedItem("shouldTrack")) == null ? void 0 : _a.value) === "true";
4786
4777
  if (shouldTrackImpression) {
4787
- const variationId = (_b2 = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b2.value;
4788
- const contentId = (_c2 = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c2.value;
4789
- const apiKeyProp = (_d2 = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d2.value;
4778
+ const variationId = (_b = element.attributes.getNamedItem("variationId")) == null ? void 0 : _b.value;
4779
+ const contentId = (_c = element.attributes.getNamedItem("contentId")) == null ? void 0 : _c.value;
4780
+ const apiKeyProp = (_d = element.attributes.getNamedItem("apiKey")) == null ? void 0 : _d.value;
4790
4781
  _track({
4791
4782
  type: "impression",
4792
4783
  canTrack: true,
@@ -4824,20 +4815,14 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4824
4815
  props,
4825
4816
  state
4826
4817
  ]));
4827
- useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
4828
- const [state2] = useLexicalScope();
4829
- track2(() => state2.shouldSendResetCookie);
4830
- }, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
4831
- state
4832
- ]));
4833
4818
  useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
4834
4819
  const [elementRef2, props2, state2] = useLexicalScope();
4835
4820
  track2(() => {
4836
- var _a2, _b2;
4837
- return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.jsCode;
4821
+ var _a, _b;
4822
+ return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.jsCode;
4838
4823
  });
4839
4824
  evaluateJsCode(props2);
4840
- }, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
4825
+ }, "EnableEditor_component_useTask_2_xVyv0tDqZLs", [
4841
4826
  elementRef,
4842
4827
  props,
4843
4828
  state
@@ -4845,11 +4830,11 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4845
4830
  useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track: track2 }) => {
4846
4831
  const [elementRef2, props2, state2] = useLexicalScope();
4847
4832
  track2(() => {
4848
- var _a2, _b2;
4849
- return (_b2 = (_a2 = props2.builderContextSignal.content) == null ? void 0 : _a2.data) == null ? void 0 : _b2.httpRequests;
4833
+ var _a, _b;
4834
+ return (_b = (_a = props2.builderContextSignal.content) == null ? void 0 : _a.data) == null ? void 0 : _b.httpRequests;
4850
4835
  });
4851
4836
  runHttpRequests(props2, state2, elementRef2);
4852
- }, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
4837
+ }, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
4853
4838
  elementRef,
4854
4839
  props,
4855
4840
  state
@@ -4858,7 +4843,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4858
4843
  const [elementRef2, props2, state2] = useLexicalScope();
4859
4844
  track2(() => props2.builderContextSignal.rootState);
4860
4845
  emitStateUpdate(props2);
4861
- }, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
4846
+ }, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
4862
4847
  elementRef,
4863
4848
  props,
4864
4849
  state
@@ -4868,7 +4853,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4868
4853
  track2(() => props2.data);
4869
4854
  if (props2.data)
4870
4855
  mergeNewRootState(props2, state2, elementRef2, props2.data);
4871
- }, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
4856
+ }, "EnableEditor_component_useTask_5_24QxS0r0KF8", [
4872
4857
  elementRef,
4873
4858
  props,
4874
4859
  state
@@ -4880,37 +4865,86 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
4880
4865
  mergeNewRootState(props2, state2, elementRef2, {
4881
4866
  locale: props2.locale
4882
4867
  });
4883
- }, "EnableEditor_component_useTask_7_Zh51H45HHnM", [
4868
+ }, "EnableEditor_component_useTask_6_0CaFTUOgv08", [
4884
4869
  elementRef,
4885
4870
  props,
4886
4871
  state
4887
4872
  ]));
4888
4873
  return /* @__PURE__ */ _jsxC(Fragment, {
4889
- children: props.builderContextSignal.content ? /* @__PURE__ */ createElement(state.ContentWrapper, {
4890
- apiKey: props.apiKey,
4891
- contentId: (_a = props.builderContextSignal.content) == null ? void 0 : _a.id,
4892
- variationId: (_b = props.builderContextSignal.content) == null ? void 0 : _b.testVariationId,
4893
- shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
4894
- key: state.forceReRenderCount,
4895
- ref: elementRef,
4874
+ children: props.builderContextSignal.content ? /* @__PURE__ */ _jsxC(state.ContentWrapper, {
4875
+ get apiKey() {
4876
+ return props.apiKey;
4877
+ },
4878
+ get contentId() {
4879
+ var _a;
4880
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
4881
+ },
4882
+ get variationId() {
4883
+ var _a;
4884
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
4885
+ },
4896
4886
  onClick$: /* @__PURE__ */ inlinedQrl((event) => {
4897
4887
  const [elementRef2, props2, state2] = useLexicalScope();
4898
4888
  return onClick(props2, state2, elementRef2, event);
4899
- }, "EnableEditor_component__Fragment__createElement_PT7eU9x80Lw", [
4889
+ }, "EnableEditor_component__Fragment_onClick_b4nYT3DrjEk", [
4900
4890
  elementRef,
4901
4891
  props,
4902
4892
  state
4903
4893
  ]),
4904
- "builder-content-id": (_c = props.builderContextSignal.content) == null ? void 0 : _c.id,
4905
- "builder-model": props.model,
4894
+ ref: elementRef,
4895
+ shouldTrack: String(props.builderContextSignal.content && getDefaultCanTrack(props.canTrack)),
4896
+ get "builder-content-id"() {
4897
+ var _a;
4898
+ return (_a = props.builderContextSignal.content) == null ? void 0 : _a.id;
4899
+ },
4900
+ get "builder-model"() {
4901
+ return props.model;
4902
+ },
4906
4903
  ...props.showContent ? {} : {
4907
4904
  hidden: true,
4908
4905
  "aria-hidden": true
4909
4906
  },
4910
4907
  ...props.contentWrapperProps,
4911
- class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
4912
- }, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "06_0")) : null
4913
- }, 1, "06_1");
4908
+ get class() {
4909
+ var _a, _b;
4910
+ return `variant-${((_a = props.content) == null ? void 0 : _a.testVariationId) || ((_b = props.content) == null ? void 0 : _b.id)}`;
4911
+ },
4912
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "06_0"),
4913
+ [_IMMUTABLE]: {
4914
+ apiKey: _fnSignal((p0) => p0.apiKey, [
4915
+ props
4916
+ ], "p0.apiKey"),
4917
+ "builder-content-id": _fnSignal((p0) => {
4918
+ var _a;
4919
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
4920
+ }, [
4921
+ props
4922
+ ], "p0.builderContextSignal.content?.id"),
4923
+ "builder-model": _fnSignal((p0) => p0.model, [
4924
+ props
4925
+ ], "p0.model"),
4926
+ class: _fnSignal((p0) => {
4927
+ var _a, _b;
4928
+ return `variant-${((_a = p0.content) == null ? void 0 : _a.testVariationId) || ((_b = p0.content) == null ? void 0 : _b.id)}`;
4929
+ }, [
4930
+ props
4931
+ ], "`variant-${p0.content?.testVariationId||p0.content?.id}`"),
4932
+ contentId: _fnSignal((p0) => {
4933
+ var _a;
4934
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.id;
4935
+ }, [
4936
+ props
4937
+ ], "p0.builderContextSignal.content?.id"),
4938
+ ref: _IMMUTABLE,
4939
+ variationId: _fnSignal((p0) => {
4940
+ var _a;
4941
+ return (_a = p0.builderContextSignal.content) == null ? void 0 : _a.testVariationId;
4942
+ }, [
4943
+ props
4944
+ ], "p0.builderContextSignal.content?.testVariationId")
4945
+ }
4946
+ }, 0, "06_1") : null
4947
+ }, 1, "06_2");
4914
4948
  }, "EnableEditor_component_ko1mO8oaj8k"));
4915
4949
  const getCssFromFont = (font) => {
4916
4950
  var _a;