@builder.io/sdk-qwik 0.14.8 → 0.14.10

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