@depict-ai/ui 4.3.14 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.14";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.4.1";
14
14
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
15
15
  const cols_at_size = [];
16
16
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -3511,10 +3511,13 @@ let $c3820807ac1e6fd7$export$44dad306455dddf;
3511
3511
  DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
3512
3512
  })($c3820807ac1e6fd7$export$44dad306455dddf || ($c3820807ac1e6fd7$export$44dad306455dddf = {}));
3513
3513
  var $584c06c09cf4609d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<button class=back type=button>`),
3514
- $584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=search-field role=search><!$><!/><div class=field><input class=query tabindex=0><button type=button class=clear></button></div><button class="submit major"type=button>`);
3514
+ $584c06c09cf4609d$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button type=button class=clear>`),
3515
+ $584c06c09cf4609d$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=spacer>`),
3516
+ $584c06c09cf4609d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<button class="submit major"type=button>`),
3517
+ $584c06c09cf4609d$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<div class=search-field role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
3515
3518
  function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3516
3519
  let {
3517
- search_field_value_: search_field_value_,
3520
+ search_field_value_: [searchFieldValue, setSearchFieldValue],
3518
3521
  input_field_ref_: input_field_ref_,
3519
3522
  field_element_ref_: field_element_ref_,
3520
3523
  submit_query_: submit_query_,
@@ -3525,7 +3528,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3525
3528
  i18n_: i18n_,
3526
3529
  after_focusing_: after_focusing_,
3527
3530
  BackIcon_: BackIcon_,
3528
- submit_button_ref_: submit_button_ref_
3531
+ buttonInFieldRef_: buttonInFieldRef_
3529
3532
  } = _ref;
3530
3533
  let input_element;
3531
3534
  // This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
@@ -3539,30 +3542,107 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3539
3542
  })); // focus field on render
3540
3543
  const owner_of_field_element = $8tj43$getOwner();
3541
3544
  const isNewModal = BackIcon_[(0, $b026fa9c9c904a98$export$1ea76ea778b880dd)] === 2;
3545
+ const [backButtonWidthAccessor, setBackButtonWidthAccessor] = $8tj43$createSignal();
3546
+ const getBackButtonWidth = () => {
3547
+ var _backButtonWidthAcces;
3548
+ return (_backButtonWidthAcces = backButtonWidthAccessor()) === null || _backButtonWidthAcces === void 0 ? void 0 : _backButtonWidthAcces();
3549
+ };
3550
+ const searchFieldEmpty = $8tj43$createMemo(() => !searchFieldValue());
3551
+ const BackButton = () => $8tj43$createComponent((0, $8tj43$Show), {
3552
+ when: on_back_,
3553
+ get children() {
3554
+ var _el$ = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$);
3555
+ $8tj43$spread(_el$, $8tj43$mergeProps({
3556
+ get onClick() {
3557
+ return $8tj43$catchify(on_back_);
3558
+ },
3559
+ get ["aria-label"]() {
3560
+ return i18n_.back_();
3561
+ }
3562
+ }, isNewModal && {
3563
+ ref: el => {
3564
+ setBackButtonWidthAccessor(() => $fc830a7ee59416ef$export$ebdc3711f7e02ccd(el));
3565
+ $8tj43$onCleanup(() => setBackButtonWidthAccessor());
3566
+ }
3567
+ }), false, true);
3568
+ $8tj43$insert(_el$, isNewModal ? $8tj43$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {}) : $8tj43$createComponent(BackIcon_, {}));
3569
+ $8tj43$runHydrationEvents();
3570
+ return _el$;
3571
+ }
3572
+ });
3573
+ const ClearButton = () => (() => {
3574
+ var _el$2 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$2);
3575
+ var _ref$ = buttonInFieldRef_;
3576
+ typeof _ref$ === "function" ? $8tj43$use(_ref$, _el$2) : buttonInFieldRef_ = _el$2;
3577
+ $8tj43$spread(_el$2, $8tj43$mergeProps({
3578
+ get classList() {
3579
+ return {
3580
+ empty: searchFieldEmpty()
3581
+ };
3582
+ },
3583
+ get style() {
3584
+ return isNewModal || !searchFieldEmpty() ? "" : "display: none";
3585
+ },
3586
+ get onClick() {
3587
+ return $8tj43$catchify(() => {
3588
+ if (isNewModal && searchFieldEmpty()) return;
3589
+ setSearchFieldValue("");
3590
+ clear_filters_(true);
3591
+ if (!disabled_) input_element.focus();
3592
+ });
3593
+ }
3594
+ }, () => searchFieldEmpty() ? {
3595
+ "aria-hidden": "true"
3596
+ } : {
3597
+ title: i18n_.clear_filters_query_sorting_after_submit_()
3598
+ }), false, true);
3599
+ $8tj43$insert(_el$2, isNewModal ? $8tj43$createComponent((0, $8tj43$Show), {
3600
+ get when() {
3601
+ return !searchFieldEmpty();
3602
+ },
3603
+ get fallback() {
3604
+ return $8tj43$createComponent((0, $ef0f18a578b32578$export$82eafebb825fc23f), {});
3605
+ },
3606
+ get children() {
3607
+ return $8tj43$createComponent(BackIcon_, {});
3608
+ }
3609
+ }) : $8tj43$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {}));
3610
+ $8tj43$runHydrationEvents();
3611
+ return _el$2;
3612
+ })();
3542
3613
  return (() => {
3543
- var _el$ = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$2),
3544
- _el$7 = _el$.firstChild,
3614
+ var _el$3 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$5),
3615
+ _el$12 = _el$3.firstChild,
3616
+ [_el$13, _co$3] = $8tj43$getNextMarker(_el$12.nextSibling),
3617
+ _el$14 = _el$13.nextSibling,
3618
+ [_el$15, _co$4] = $8tj43$getNextMarker(_el$14.nextSibling),
3619
+ _el$5 = _el$15.nextSibling,
3620
+ _el$7 = _el$5.firstChild,
3545
3621
  [_el$8, _co$] = $8tj43$getNextMarker(_el$7.nextSibling),
3546
- _el$3 = _el$8.nextSibling,
3547
- _el$4 = _el$3.firstChild,
3548
- _el$5 = _el$4.nextSibling,
3549
- _el$6 = _el$3.nextSibling;
3550
- $8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
3551
- when: on_back_,
3622
+ _el$6 = _el$8.nextSibling,
3623
+ _el$9 = _el$6.nextSibling,
3624
+ [_el$10, _co$2] = $8tj43$getNextMarker(_el$9.nextSibling),
3625
+ _el$16 = _el$5.nextSibling,
3626
+ [_el$17, _co$5] = $8tj43$getNextMarker(_el$16.nextSibling),
3627
+ _el$18 = _el$17.nextSibling,
3628
+ [_el$19, _co$6] = $8tj43$getNextMarker(_el$18.nextSibling);
3629
+ _el$3.classList.toggle("in-modal", !!!!on_back_);
3630
+ $8tj43$insert(_el$3, $8tj43$createComponent((0, $8tj43$Show), {
3631
+ get when() {
3632
+ return getBackButtonWidth() !== undefined && on_back_;
3633
+ },
3552
3634
  get children() {
3553
- var _el$2 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$);
3554
- $8tj43$addEventListener(_el$2, "click", $8tj43$catchify(on_back_), true);
3555
- $8tj43$insert(_el$2, $8tj43$createComponent(BackIcon_, {}));
3556
- $8tj43$effect(() => $8tj43$setAttribute(_el$2, "aria-label", i18n_.back_()));
3557
- $8tj43$runHydrationEvents();
3558
- return _el$2;
3635
+ var _el$4 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$3);
3636
+ $8tj43$effect(() => (getBackButtonWidth(), _el$4.style.setProperty("width", getBackButtonWidth() + "px")));
3637
+ return _el$4;
3559
3638
  }
3560
- }), _el$8, _co$);
3639
+ }), _el$13, _co$3);
3640
+ $8tj43$insert(_el$3, !isNewModal && $8tj43$createComponent(BackButton, {}), _el$15, _co$4);
3561
3641
  $8tj43$use(el => {
3562
3642
  field_div = el;
3563
3643
  field_element_ref_ === null || field_element_ref_ === void 0 || field_element_ref_(el);
3564
- }, _el$3);
3565
- $8tj43$addEventListener(_el$3, "click", $8tj43$catchify(_ref2 => {
3644
+ }, _el$5);
3645
+ $8tj43$addEventListener(_el$5, "click", $8tj43$catchify(_ref2 => {
3566
3646
  let {
3567
3647
  target: target,
3568
3648
  currentTarget: currentTarget,
@@ -3587,7 +3667,8 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3587
3667
  }
3588
3668
  }
3589
3669
  }), true);
3590
- _el$4.$$pointerdown = _ref3 => {
3670
+ $8tj43$insert(_el$5, isNewModal && $8tj43$createComponent(ClearButton, {}), _el$8, _co$);
3671
+ _el$6.$$pointerdown = _ref3 => {
3591
3672
  let {
3592
3673
  pointerType: pointerType
3593
3674
  } = _ref3;
@@ -3607,7 +3688,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3607
3688
  $8tj43$runWithOwner(owner_of_field_element, () => $8tj43$onCleanup(() => window.removeEventListener("pointerup", handler)));
3608
3689
  }
3609
3690
  };
3610
- $8tj43$addEventListener(_el$4, "select", $8tj43$catchify(() => {
3691
+ $8tj43$addEventListener(_el$6, "select", $8tj43$catchify(() => {
3611
3692
  if (disabled_)
3612
3693
  // just in case. The field not actually being disabled when being disabled_ is so that you can focus it and open the modal. We don't want any of the other input-field-interaction features to work
3613
3694
  return;
@@ -3619,14 +3700,14 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3619
3700
  once: true
3620
3701
  });
3621
3702
  }));
3622
- $8tj43$addEventListener(_el$4, "input", $8tj43$catchify(() => {
3703
+ $8tj43$addEventListener(_el$6, "input", $8tj43$catchify(() => {
3623
3704
  const {
3624
3705
  value: value
3625
3706
  } = input_element;
3626
3707
  if (!disabled_ && !value.length) clear_filters_(false); // if the user clears the whole field, reset filters on next submit
3627
- search_field_value_[1](value);
3708
+ setSearchFieldValue(value);
3628
3709
  }), true);
3629
- $8tj43$addEventListener(_el$4, "keydown", $8tj43$catchify(e => {
3710
+ $8tj43$addEventListener(_el$6, "keydown", $8tj43$catchify(e => {
3630
3711
  if (disabled_) {
3631
3712
  if (e.key !== "Tab" && e.key !== "Shift")
3632
3713
  // alow tab-selecting the input field and then open the modal when the user start writing but also to move past the field with tab
@@ -3636,49 +3717,38 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
3636
3717
  if (!dont_submit) submit_query_();
3637
3718
  }
3638
3719
  }), true);
3639
- var _ref$ = $8tj43$catchify(el => {
3720
+ var _ref$2 = $8tj43$catchify(el => {
3640
3721
  input_element = el;
3641
3722
  input_field_ref_ === null || input_field_ref_ === void 0 || input_field_ref_(el);
3642
3723
  });
3643
- typeof _ref$ === "function" && $8tj43$use(_ref$, _el$4);
3644
- _el$4.classList.toggle("has-adjacent-back-button", !!!!on_back_);
3645
- $8tj43$addEventListener(_el$5, "click", $8tj43$catchify(() => {
3646
- search_field_value_[1]("");
3647
- clear_filters_(true);
3648
- if (!disabled_) input_element.focus();
3649
- }), true);
3650
- $8tj43$insert(_el$5, $8tj43$createComponent((0, $9783d437ad61594c$export$3b621d86b1566b2), {}));
3651
- var _ref$2 = submit_button_ref_;
3652
- typeof _ref$2 === "function" ? $8tj43$use(_ref$2, _el$6) : submit_button_ref_ = _el$6;
3653
- $8tj43$spread(_el$6, $8tj43$mergeProps({
3654
- get onClick() {
3655
- return $8tj43$catchify(() => submit_query_());
3724
+ typeof _ref$2 === "function" && $8tj43$use(_ref$2, _el$6);
3725
+ _el$6.classList.toggle("has-adjacent-back-button", !!!!on_back_);
3726
+ $8tj43$insert(_el$5, !isNewModal && $8tj43$createComponent(ClearButton, {}), _el$10, _co$2);
3727
+ $8tj43$insert(_el$3, isNewModal && $8tj43$createComponent(BackButton, {}), _el$17, _co$5);
3728
+ $8tj43$insert(_el$3, $8tj43$createComponent((0, $8tj43$Show), {
3729
+ when: !isNewModal,
3730
+ get children() {
3731
+ var _el$11 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$4);
3732
+ $8tj43$addEventListener(_el$11, "click", $8tj43$catchify(() => submit_query_()), true);
3733
+ $8tj43$insert(_el$11, $8tj43$createComponent((0, $ef0f18a578b32578$export$82eafebb825fc23f), {}));
3734
+ $8tj43$effect(() => $8tj43$setAttribute(_el$11, "aria-label", i18n_.search_submit_button_aria_label_()));
3735
+ $8tj43$runHydrationEvents();
3736
+ return _el$11;
3656
3737
  }
3657
- }, () => isNewModal ? {
3658
- tabindex: "-1"
3659
- } : {
3660
- "aria-label": i18n_.search_submit_button_aria_label_()
3661
- }), false, true);
3662
- $8tj43$insert(_el$6, $8tj43$createComponent((0, $ef0f18a578b32578$export$82eafebb825fc23f), {}));
3738
+ }), _el$19, _co$6);
3663
3739
  $8tj43$effect(_p$ => {
3664
3740
  var _v$ = i18n_.search_field_field_aria_label_(),
3665
- _v$2 = i18n_.placeholder_text_(),
3666
- _v$3 = i18n_.clear_filters_query_sorting_after_submit_(),
3667
- _v$4 = $8tj43$createMemo(() => search_field_value_[0]() ? "" : "display: none")();
3668
- _v$ !== _p$.e && $8tj43$setAttribute(_el$4, "aria-label", _p$.e = _v$);
3669
- _v$2 !== _p$.t && $8tj43$setAttribute(_el$4, "placeholder", _p$.t = _v$2);
3670
- _v$3 !== _p$.a && $8tj43$setAttribute(_el$5, "title", _p$.a = _v$3);
3671
- _p$.o = $8tj43$style(_el$5, _v$4, _p$.o);
3741
+ _v$2 = i18n_.placeholder_text_();
3742
+ _v$ !== _p$.e && $8tj43$setAttribute(_el$6, "aria-label", _p$.e = _v$);
3743
+ _v$2 !== _p$.t && $8tj43$setAttribute(_el$6, "placeholder", _p$.t = _v$2);
3672
3744
  return _p$;
3673
3745
  }, {
3674
3746
  e: undefined,
3675
- t: undefined,
3676
- a: undefined,
3677
- o: undefined
3747
+ t: undefined
3678
3748
  });
3679
- $8tj43$effect(() => $8tj43$setProperty(_el$4, "value", search_field_value_[0]()));
3749
+ $8tj43$effect(() => $8tj43$setProperty(_el$6, "value", searchFieldValue()));
3680
3750
  $8tj43$runHydrationEvents();
3681
- return _el$;
3751
+ return _el$3;
3682
3752
  })();
3683
3753
  }
3684
3754
  $8tj43$delegateEvents(["click", "keydown", "input", "pointerdown"]);
@@ -3861,7 +3931,7 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
3861
3931
  };
3862
3932
  });
3863
3933
  const search_field = $584c06c09cf4609d$export$b94867ecbd698f21({
3864
- BackIcon_: () => $8tj43$createComponent((0, $fac58b5610eec6a9$export$8d8893ffd8aca39a), {}),
3934
+ BackIcon_: (0, $fac58b5610eec6a9$export$8d8893ffd8aca39a),
3865
3935
  input_field_ref_: element => set_input_field(element),
3866
3936
  override_on_enter_: e => {
3867
3937
  var _on_enter_in_search_f;
@@ -3880,7 +3950,6 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
3880
3950
  input_el.setSelectionRange(start, end);
3881
3951
  }
3882
3952
  });
3883
- search_field.classList.add("in-modal");
3884
3953
  const modal_element = (() => {
3885
3954
  var _el$4 = $8tj43$getNextElement($40411f2ec772c376$var$_tmpl$3),
3886
3955
  _el$5 = _el$4.firstChild,
@@ -5149,7 +5218,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
5149
5218
  return _el$7;
5150
5219
  })();
5151
5220
  const search_field = $584c06c09cf4609d$export$b94867ecbd698f21({
5152
- BackIcon_: () => $8tj43$createComponent((0, $c2fe922d21c40514$export$11e9f390c90a537f), {}),
5221
+ BackIcon_: (0, $c2fe922d21c40514$export$11e9f390c90a537f),
5153
5222
  input_field_ref_: element => set_input_field(element),
5154
5223
  override_on_enter_: e => {
5155
5224
  var _on_enter_in_search_f;
@@ -5168,7 +5237,6 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
5168
5237
  input_el.setSelectionRange(start, end);
5169
5238
  }
5170
5239
  });
5171
- search_field.classList.add("in-modal");
5172
5240
  if (setSearchFieldOuterWidth_) {
5173
5241
  const resizeObserver = new ResizeObserver($8tj43$catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
5174
5242
  resizeObserver.observe(search_field);
@@ -13454,7 +13522,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
13454
13522
  bodyAlignmentSignal_: [, setBodyAlignment_],
13455
13523
  backdropStyleSignal_: [, setBackdropStyle_],
13456
13524
  setPollAlignment_: setPollAlignment_,
13457
- submitButton_: submitButton_,
13525
+ buttonInField_: buttonInField_,
13458
13526
  modalSearchFieldOuterWidth_: modalSearchFieldOuterWidth_
13459
13527
  } = _ref;
13460
13528
  return $8tj43$createRoot(dispose => {
@@ -13501,7 +13569,7 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
13501
13569
  const closeDuration_ = pxOffCenter > 100 ? 150 : 100;
13502
13570
  setPollAlignment_(true);
13503
13571
  // Fade out submit button so there aren't two overlapping buttons for a split second
13504
- submitButton_.animate([{
13572
+ if (pxOffCenter > 10) buttonInField_.animate([{
13505
13573
  opacity: 1
13506
13574
  }, {
13507
13575
  opacity: 0
@@ -13568,6 +13636,8 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
13568
13636
  width: width,
13569
13637
  left: left
13570
13638
  } = fakeField.getBoundingClientRect();
13639
+ // Just copy-pasted below line without thinking, it might be wrong
13640
+ const pxOffCenter = Math.abs($8tj43$untrack(innerWidthReactive) / 2 - (left + width / 2));
13571
13641
  $d7833ca17fc05c5e$export$23d40cc5971c3acd({
13572
13642
  setBackdropStyle_: setBackdropStyle_,
13573
13643
  setBodyAlignment_: setBodyAlignment_,
@@ -13583,12 +13653,12 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
13583
13653
  duration: closeDuration_,
13584
13654
  fill: "forwards",
13585
13655
  easing: "ease-out"
13586
- }).finished, submitButton_.animate([{
13656
+ }).finished, buttonInField_.animate([{
13587
13657
  opacity: 0
13588
13658
  }, {
13589
13659
  opacity: 1
13590
13660
  }], {
13591
- duration: closeDuration_ / 3,
13661
+ duration: pxOffCenter > 10 ? closeDuration_ / 3 : 1,
13592
13662
  delay: closeDuration_ * (2 / 3),
13593
13663
  fill: "forwards"
13594
13664
  }).finished]);
@@ -13808,7 +13878,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
13808
13878
  if (!input_field_accessor_value) break add_input_field;
13809
13879
  let input_element;
13810
13880
  let div_with_field_class;
13811
- let submitButton_;
13881
+ let buttonInField;
13812
13882
  const search_field = SafeSearchField({
13813
13883
  i18n_: i18n_,
13814
13884
  search_field_value_: search_field_value_,
@@ -13818,7 +13888,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
13818
13888
  field_element_ref_: el => div_with_field_class = el,
13819
13889
  disabled_: true,
13820
13890
  BackIcon_: BackIcon_,
13821
- submit_button_ref_: el => submitButton_ = el
13891
+ buttonInFieldRef_: el => buttonInField = el
13822
13892
  });
13823
13893
  if (!search_field) break add_input_field;
13824
13894
  setModalBodyStyle({});
@@ -13853,7 +13923,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
13853
13923
  bodyAlignmentSignal_: modal_body_style,
13854
13924
  backdropStyleSignal_: modal_backdrop_style,
13855
13925
  setPollAlignment_: setPollAlignment_,
13856
- submitButton_: submitButton_,
13926
+ buttonInField_: buttonInField,
13857
13927
  modalSearchFieldOuterWidth_: modalSearchFieldOuterWidth_
13858
13928
  });
13859
13929
  }
@@ -14908,7 +14978,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
14908
14978
  const shared_properties = $eb064bc3350276c1$export$12fa711345994013(depict_search);
14909
14979
  return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
14910
14980
  let input_element;
14911
- let submitButton_;
14981
+ let buttonInField;
14912
14982
  const search_field = $8tj43$createComponent((0, $584c06c09cf4609d$export$b94867ecbd698f21), {
14913
14983
  get BackIcon_() {
14914
14984
  return shared_properties.BackIcon_;
@@ -14927,7 +14997,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
14927
14997
  },
14928
14998
  disabled_: true,
14929
14999
  input_field_ref_: el => input_element = el,
14930
- submit_button_ref_: el => submitButton_ = el,
15000
+ buttonInFieldRef_: el => buttonInField = el,
14931
15001
  field_element_ref_: field => {
14932
15002
  const bodyAlignmentSignal_ = $8tj43$createSignal({
14933
15003
  position: "fixed"
@@ -14974,7 +15044,7 @@ function $a3026fb727bc7550$export$316f6f283ae64765(props) {
14974
15044
  bodyAlignmentSignal_: bodyAlignmentSignal_,
14975
15045
  backdropStyleSignal_: backdropAlignmentSignal_,
14976
15046
  setPollAlignment_: setPollAlignment_,
14977
- submitButton_: submitButton_,
15047
+ buttonInField_: buttonInField,
14978
15048
  modalSearchFieldOuterWidth_: modalSearchFieldOuterWidth_
14979
15049
  });
14980
15050
  }