@univerjs/find-replace 0.6.1 → 0.6.2

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/lib/es/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var rt = Object.defineProperty;
2
- var st = (t, e, n) => e in t ? rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var o = (t, e, n) => st(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { createIdentifier as at, Inject as F, Injector as Q, IContextService as X, Disposable as ee, DisposableCollection as ot, toDisposable as A, IUniverInstanceService as pe, CommandType as y, LocaleService as B, ICommandService as te, FOCUSING_SHEET as ge, EDITOR_ACTIVATED as _e, UniverInstanceType as ct, RxDisposable as lt, IConfigService as dt, Plugin as ht, merge as ut } from "@univerjs/core";
5
- import { IConfirmService as ft, IMessageService as me, useDependency as v, useObservable as D, ILayoutService as ve, KeyCode as M, MetaKeys as I, getMenuHiddenObservable as pt, MenuItemType as gt, RibbonStartGroup as _t, IMenuManagerService as mt, IShortcutService as vt, IDialogService as St, ComponentManager as Ct } from "@univerjs/ui";
6
- import { throttleTime as Rt, BehaviorSubject as x, combineLatest as Se, debounceTime as Mt, Subject as Ce, fromEvent as bt, map as It, takeUntil as oe } from "rxjs";
7
- import { MessageType as O, InputWithSlot as yt, Pager as Ft, Button as N, FormLayout as R, Input as Dt, Select as G, FormDualColumnLayout as ce, Checkbox as le } from "@univerjs/design";
8
- import { RENDER_RAW_FORMULA_KEY as xt } from "@univerjs/engine-render";
9
- import { jsx as l, jsxs as b, Fragment as $ } from "react/jsx-runtime";
10
- import { forwardRef as W, useRef as H, createElement as Re, useCallback as u, useEffect as L, useMemo as ie, useImperativeHandle as Pt } from "react";
11
- const Tt = "find-replace.config", de = {};
1
+ var st = Object.defineProperty;
2
+ var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var o = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { createIdentifier as ot, Inject as D, Injector as X, IContextService as ee, Disposable as te, DisposableCollection as ct, toDisposable as L, IUniverInstanceService as pe, ICommandService as k, CommandType as b, LocaleService as j, FOCUSING_SHEET as ge, EDITOR_ACTIVATED as _e, UniverInstanceType as lt, RxDisposable as dt, IConfigService as ht, Plugin as ut, merge as ft } from "@univerjs/core";
5
+ import { IConfirmService as pt, IMessageService as me, useDependency as v, useObservable as x, ILayoutService as ve, KeyCode as C, MetaKeys as y, getMenuHiddenObservable as gt, MenuItemType as _t, RibbonStartGroup as mt, IMenuManagerService as vt, IShortcutService as St, IDialogService as Ct, ComponentManager as Rt } from "@univerjs/ui";
6
+ import { throttleTime as Mt, BehaviorSubject as P, combineLatest as Se, debounceTime as bt, Subject as Ce, fromEvent as It, map as yt, takeUntil as oe } from "rxjs";
7
+ import { MessageType as N, InputWithSlot as Ft, Pager as Dt, Button as $, FormLayout as M, Input as xt, Select as H, FormDualColumnLayout as ce, Checkbox as le } from "@univerjs/design";
8
+ import { RENDER_RAW_FORMULA_KEY as Pt } from "@univerjs/engine-render";
9
+ import { jsx as l, jsxs as I, Fragment as A } from "react/jsx-runtime";
10
+ import { forwardRef as G, useRef as q, createElement as Re, useCallback as u, useEffect as w, useMemo as ie, useImperativeHandle as Tt } from "react";
11
+ const Et = "find-replace.config", de = {};
12
12
  var g = function() {
13
13
  return g = Object.assign || function(t) {
14
14
  for (var e, n = 1, i = arguments.length; n < i; n++) {
@@ -17,23 +17,23 @@ var g = function() {
17
17
  }
18
18
  return t;
19
19
  }, g.apply(this, arguments);
20
- }, Et = function(t, e) {
20
+ }, Ot = function(t, e) {
21
21
  var n = {};
22
22
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
23
23
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
24
24
  for (var r = 0, i = Object.getOwnPropertySymbols(t); r < i.length; r++)
25
25
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
26
26
  return n;
27
- }, Me = W(function(t, e) {
28
- var n = t.icon, i = t.id, r = t.className, s = t.extend, a = Et(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), d = H("_".concat($t()));
27
+ }, Me = G(function(t, e) {
28
+ var n = t.icon, i = t.id, r = t.className, s = t.extend, a = Ot(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), d = q("_".concat(At()));
29
29
  return be(n, "".concat(i), { defIds: n.defIds, idSuffix: d.current }, g({ ref: e, className: c }, a), s);
30
30
  });
31
31
  function be(t, e, n, i, r) {
32
- return Re(t.tag, g(g({ key: e }, Ot(t, n, r)), i), (Nt(t, n).children || []).map(function(s, a) {
32
+ return Re(t.tag, g(g({ key: e }, Nt(t, n, r)), i), ($t(t, n).children || []).map(function(s, a) {
33
33
  return be(s, "".concat(e, "-").concat(t.tag, "-").concat(a), n, void 0, r);
34
34
  }));
35
35
  }
36
- function Ot(t, e, n) {
36
+ function Nt(t, e, n) {
37
37
  var i = g({}, t.attrs);
38
38
  n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1), t.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(function(s) {
39
39
  var a = s[0], c = s[1];
@@ -45,51 +45,51 @@ function Ot(t, e, n) {
45
45
  typeof c == "string" && (i[a] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
46
46
  })), i;
47
47
  }
48
- function Nt(t, e) {
48
+ function $t(t, e) {
49
49
  var n, i = e.defIds;
50
50
  return !i || i.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? g(g({}, t), { children: t.children.map(function(r) {
51
51
  return typeof r.attrs.id == "string" && i && i.indexOf(r.attrs.id) > -1 ? g(g({}, r), { attrs: g(g({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
52
52
  }) }) : t;
53
53
  }
54
- function $t() {
54
+ function At() {
55
55
  return Math.random().toString(36).substring(2, 8);
56
56
  }
57
57
  Me.displayName = "UniverIcon";
58
- var At = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.71899 1.36938C4.37604 1.36938 1.66602 4.07941 1.66602 7.42236C1.66602 10.7653 4.37604 13.4753 7.71899 13.4753C9.16744 13.4753 10.4971 12.9666 11.5389 12.118L13.6598 14.4109C13.8848 14.6542 14.2644 14.669 14.5077 14.444C14.7509 14.219 14.7657 13.8393 14.5407 13.5961L12.3906 11.2716C13.2536 10.2254 13.772 8.88442 13.772 7.42236C13.772 4.07941 11.0619 1.36938 7.71899 1.36938ZM2.86602 7.42236C2.86602 4.74215 5.03878 2.56938 7.71899 2.56938C10.3992 2.56938 12.572 4.74215 12.572 7.42236C12.572 10.1026 10.3992 12.2753 7.71899 12.2753C5.03878 12.2753 2.86602 10.1026 2.86602 7.42236Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ie = W(function(t, e) {
58
+ var Lt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.71899 1.36938C4.37604 1.36938 1.66602 4.07941 1.66602 7.42236C1.66602 10.7653 4.37604 13.4753 7.71899 13.4753C9.16744 13.4753 10.4971 12.9666 11.5389 12.118L13.6598 14.4109C13.8848 14.6542 14.2644 14.669 14.5077 14.444C14.7509 14.219 14.7657 13.8393 14.5407 13.5961L12.3906 11.2716C13.2536 10.2254 13.772 8.88442 13.772 7.42236C13.772 4.07941 11.0619 1.36938 7.71899 1.36938ZM2.86602 7.42236C2.86602 4.74215 5.03878 2.56938 7.71899 2.56938C10.3992 2.56938 12.572 4.74215 12.572 7.42236C12.572 10.1026 10.3992 12.2753 7.71899 12.2753C5.03878 12.2753 2.86602 10.1026 2.86602 7.42236Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ie = G(function(t, e) {
59
59
  return Re(Me, Object.assign({}, t, {
60
60
  id: "search-single",
61
61
  ref: e,
62
- icon: At
62
+ icon: Lt
63
63
  }));
64
64
  });
65
65
  Ie.displayName = "SearchSingle";
66
66
  const ye = "FIND_REPLACE_INPUT_FOCUS", Fe = "FIND_REPLACE_DIALOG_FOCUS", De = "FIND_REPLACE_REPLACE_REVEALED";
67
- var Lt = Object.getOwnPropertyDescriptor, xe = (t, e, n, i) => {
68
- for (var r = i > 1 ? void 0 : i ? Lt(e, n) : e, s = t.length - 1, a; s >= 0; s--)
67
+ var wt = Object.getOwnPropertyDescriptor, xe = (t, e, n, i) => {
68
+ for (var r = i > 1 ? void 0 : i ? wt(e, n) : e, s = t.length - 1, a; s >= 0; s--)
69
69
  (a = t[s]) && (r = a(r) || r);
70
70
  return r;
71
- }, K = (t, e) => (n, i) => e(n, i, t);
72
- class Ci extends ee {
71
+ }, U = (t, e) => (n, i) => e(n, i, t);
72
+ class Mi extends te {
73
73
  }
74
- const _ = at("find-replace.service");
75
- function wt(t) {
74
+ const _ = ot("find-replace.service");
75
+ function Ut(t) {
76
76
  return typeof t.findString < "u" || typeof t.inputtingFindString < "u" || typeof t.findDirection < "u" || typeof t.matchesTheWholeCell < "u" || typeof t.caseSensitive < "u" || typeof t.findScope < "u" || typeof t.findBy < "u";
77
77
  }
78
- let q = class extends ee {
79
- constructor(e, n, i) {
78
+ let z = class extends te {
79
+ constructor(e, n, i, r) {
80
80
  super();
81
- o(this, "currentMatch$", new x(null));
82
- o(this, "replaceables$", new x([]));
81
+ o(this, "currentMatch$", new P(null));
82
+ o(this, "replaceables$", new P([]));
83
83
  /** All find models returned by providers. */
84
84
  o(this, "_findModels", []);
85
85
  /** The find model that the current match is from. */
86
86
  o(this, "_matchingModel", null);
87
87
  o(this, "_matches", []);
88
88
  o(this, "_currentSearchingDisposables", null);
89
- this._state = e, this._providers = n, this._univerInstanceService = i, this.disposeWithMe(
90
- this._state.stateUpdates$.pipe(Rt(200, void 0, { leading: !0, trailing: !0 })).subscribe(async (r) => {
91
- const s = this._state.state;
92
- wt(r) && (s.findString !== "" && !s.replaceRevealed ? (await this._startSearching(), this._state.changeState({ findCompleted: !0 })) : r.replaceRevealed !== !0 && this._stopSearching());
89
+ this._state = e, this._providers = n, this._univerInstanceService = i, this._commandService = r, this.disposeWithMe(
90
+ this._state.stateUpdates$.pipe(Mt(200, void 0, { leading: !0, trailing: !0 })).subscribe(async (s) => {
91
+ const a = this._state.state;
92
+ Ut(s) && (a.findString !== "" && !a.replaceRevealed ? (await this._startSearching(), this._state.changeState({ findCompleted: !0 })) : s.replaceRevealed !== !0 && this._stopSearching());
93
93
  })
94
94
  );
95
95
  }
@@ -105,6 +105,10 @@ let q = class extends ee {
105
105
  const e = await this._startSearching();
106
106
  return this._state.changeState({ findCompleted: !0 }), e;
107
107
  }
108
+ focusSelection() {
109
+ var e;
110
+ (e = this._matchingModel) == null || e.focusSelection();
111
+ }
108
112
  /** Call this method to start a `searching`. */
109
113
  async _startSearching() {
110
114
  if (!this._state.findString)
@@ -133,14 +137,14 @@ let q = class extends ee {
133
137
  }
134
138
  // When a document's content changes, we should reset all matches and try to move to the next match.
135
139
  _subscribeToModelsChanges(e) {
136
- const n = this._currentSearchingDisposables = new ot(), i = Se(e.map((r) => r.matchesUpdate$)).pipe(Mt(220)).subscribe(([...r]) => {
140
+ const n = this._currentSearchingDisposables = new ct(), i = Se(e.map((r) => r.matchesUpdate$)).pipe(bt(220)).subscribe(([...r]) => {
137
141
  const s = this._matches = r.flat();
138
142
  s.length ? (this._moveToInitialMatch(this._findModels, !0), this._state.changeState({ matchesCount: s.length }), this.replaceables$.next(s.filter((a) => a.replaceable))) : (this._state.changeState({ matchesCount: 0, matchesPosition: 0 }), this.replaceables$.next([]));
139
143
  });
140
- e.forEach((r) => n.add(A(r.activelyChangingMatch$.subscribe((s) => {
144
+ e.forEach((r) => n.add(L(r.activelyChangingMatch$.subscribe((s) => {
141
145
  const a = this._matches.findIndex((c) => c === s);
142
146
  this._state.changeState({ matchesPosition: a + 1 });
143
- })))), n.add(A(i));
147
+ })))), n.add(L(i));
144
148
  }
145
149
  async replace() {
146
150
  return this._matchingModel ? this._matchingModel.replace(this._state.replaceString) : !1;
@@ -214,10 +218,11 @@ let q = class extends ee {
214
218
  return this._moveToNextUnitMatch(r), 0;
215
219
  }
216
220
  };
217
- q = xe([
218
- K(2, pe)
219
- ], q);
220
- var z = /* @__PURE__ */ ((t) => (t.ROW = "row", t.COLUMN = "column", t))(z || {}), Y = /* @__PURE__ */ ((t) => (t.VALUE = "value", t.FORMULA = "formula", t))(Y || {}), Z = /* @__PURE__ */ ((t) => (t.SUBUNIT = "subunit", t.UNIT = "unit", t))(Z || {});
221
+ z = xe([
222
+ U(2, pe),
223
+ U(3, k)
224
+ ], z);
225
+ var Y = /* @__PURE__ */ ((t) => (t.ROW = "row", t.COLUMN = "column", t))(Y || {}), Z = /* @__PURE__ */ ((t) => (t.VALUE = "value", t.FORMULA = "formula", t))(Z || {}), J = /* @__PURE__ */ ((t) => (t.SUBUNIT = "subunit", t.UNIT = "unit", t))(J || {});
221
226
  function ne() {
222
227
  return {
223
228
  caseSensitive: !1,
@@ -235,11 +240,11 @@ function ne() {
235
240
  revealed: !0
236
241
  };
237
242
  }
238
- class Ut {
243
+ class Bt {
239
244
  constructor() {
240
245
  o(this, "_stateUpdates$", new Ce());
241
246
  o(this, "stateUpdates$", this._stateUpdates$.asObservable());
242
- o(this, "_state$", new x(ne()));
247
+ o(this, "_state$", new P(ne()));
243
248
  o(this, "state$", this._state$.asObservable());
244
249
  o(this, "_findString", "");
245
250
  o(this, "_inputtingFindString", "");
@@ -317,15 +322,15 @@ class Ut {
317
322
  }), this._stateUpdates$.next(i));
318
323
  }
319
324
  }
320
- let J = class extends ee {
325
+ let Q = class extends te {
321
326
  constructor(e, n) {
322
327
  super();
323
328
  o(this, "_providers", /* @__PURE__ */ new Set());
324
- o(this, "_state", new Ut());
329
+ o(this, "_state", new Bt());
325
330
  o(this, "_model");
326
- o(this, "_currentMatch$", new x(null));
331
+ o(this, "_currentMatch$", new P(null));
327
332
  o(this, "currentMatch$", this._currentMatch$.asObservable());
328
- o(this, "_replaceables$", new x([]));
333
+ o(this, "_replaceables$", new P([]));
329
334
  o(this, "replaceables$", this._replaceables$.asObservable());
330
335
  o(this, "_focusSignal$", new Ce());
331
336
  o(this, "focusSignal$", this._focusSignal$.asObservable());
@@ -403,10 +408,14 @@ let J = class extends ee {
403
408
  revealReplace() {
404
409
  this._state.changeState({ replaceRevealed: !0, inputtingFindString: this._state.findString }), this._toggleRevealReplace(!0);
405
410
  }
411
+ focusSelection() {
412
+ var e;
413
+ (e = this._model) == null || e.focusSelection();
414
+ }
406
415
  start(e = !1) {
407
416
  if (this._providers.size === 0)
408
417
  return !1;
409
- this._model = this._injector.createInstance(q, this._state, this._providers), this._model.currentMatch$.subscribe((i) => this._currentMatch$.next(i)), this._model.replaceables$.subscribe((i) => this._replaceables$.next(i));
418
+ this._model = this._injector.createInstance(z, this._state, this._providers), this._model.currentMatch$.subscribe((i) => this._currentMatch$.next(i)), this._model.replaceables$.subscribe((i) => this._replaceables$.next(i));
410
419
  const n = ne();
411
420
  return e && (n.replaceRevealed = !0), this._state.changeState(n), this._toggleRevealReplace(e), !0;
412
421
  }
@@ -419,30 +428,30 @@ let J = class extends ee {
419
428
  (e = this._model) == null || e.dispose(), this._model = null, this._toggleDisplayRawFormula(!1), this._toggleRevealReplace(!1);
420
429
  }
421
430
  registerFindReplaceProvider(e) {
422
- return this._providers.add(e), A(() => this._providers.delete(e));
431
+ return this._providers.add(e), L(() => this._providers.delete(e));
423
432
  }
424
433
  _toggleRevealReplace(e) {
425
434
  this._contextService.setContextValue(De, e);
426
435
  }
427
436
  _toggleDisplayRawFormula(e) {
428
- this._contextService.setContextValue(xt, e);
437
+ this._contextService.setContextValue(Pt, e);
429
438
  }
430
439
  };
431
- J = xe([
432
- K(0, F(Q)),
433
- K(1, X)
434
- ], J);
440
+ Q = xe([
441
+ U(0, D(X)),
442
+ U(1, ee)
443
+ ], Q);
435
444
  const Pe = {
436
445
  id: "ui.command.replace-current-match",
437
- type: y.COMMAND,
446
+ type: b.COMMAND,
438
447
  handler: (t) => t.get(_).replace()
439
- }, Bt = "CONFIRM_REPLACE_ALL", Te = {
448
+ }, Wt = "CONFIRM_REPLACE_ALL", Te = {
440
449
  id: "ui.command.replace-all-matches",
441
- type: y.COMMAND,
450
+ type: b.COMMAND,
442
451
  handler: async (t) => {
443
- const e = t.get(ft), n = t.get(B), i = t.get(me);
452
+ const e = t.get(pt), n = t.get(j), i = t.get(me);
444
453
  if (!await e.confirm({
445
- id: Bt,
454
+ id: Wt,
446
455
  title: { title: n.t("find-replace.replace.confirm.title") },
447
456
  cancelText: n.t("button.cancel"),
448
457
  confirmText: n.t("button.confirm")
@@ -450,53 +459,57 @@ const Pe = {
450
459
  return !1;
451
460
  const s = await t.get(_).replaceAll(), { success: a, failure: c } = s;
452
461
  return c > 0 ? (a === 0 ? i.show({
453
- type: O.Error,
462
+ type: N.Error,
454
463
  content: n.t("find-replace.replace.all-failure")
455
464
  }) : i.show({
456
- type: O.Warning,
465
+ type: N.Warning,
457
466
  content: n.t("find-replace.replace.partial-success", `${a}`, `${c}`)
458
467
  }), !1) : (i.show({
459
- type: O.Success,
468
+ type: N.Success,
460
469
  content: n.t("find-replace.replace.all-success", `${a}`)
461
470
  }), !0);
462
471
  }
463
- }, P = {
472
+ }, T = {
464
473
  id: "ui.operation.open-find-dialog",
465
- type: y.OPERATION,
474
+ type: b.OPERATION,
466
475
  handler: (t) => {
467
476
  const e = t.get(_);
468
477
  return e.revealed ? e.focusFindInput() : e.start(), !0;
469
478
  }
470
479
  }, re = {
471
480
  id: "ui.operation.open-replace-dialog",
472
- type: y.OPERATION,
481
+ type: b.OPERATION,
473
482
  handler: (t) => {
474
483
  const e = t.get(_);
475
484
  return e.revealed ? e.replaceRevealed ? e.focusFindInput() : e.revealReplace() : e.start(!0), !0;
476
485
  }
477
486
  }, Ee = {
478
- type: y.OPERATION,
487
+ type: b.OPERATION,
479
488
  id: "ui.operation.go-to-next-match",
480
489
  handler: (t) => (t.get(_).moveToNextMatch(), !0)
481
490
  }, Oe = {
482
- type: y.OPERATION,
491
+ type: b.OPERATION,
483
492
  id: "ui.operation.go-to-previous-match",
484
493
  handler: (t) => (t.get(_).moveToPreviousMatch(), !0)
485
- }, Wt = "univer-find-replace-dialog-container", kt = "univer-find-replace-expand-container", jt = "univer-find-replace-buttons-group", Gt = "univer-find-replace-buttons-group-right", w = {
486
- findReplaceDialogContainer: Wt,
487
- findReplaceExpandContainer: kt,
488
- findReplaceButtonsGroup: jt,
489
- findReplaceButtonsGroupRight: Gt
494
+ }, Ne = {
495
+ type: b.OPERATION,
496
+ id: "ui.operation.focus-selection",
497
+ handler: (t) => (t.get(_).focusSelection(), !0)
498
+ }, kt = "univer-find-replace-dialog-container", jt = "univer-find-replace-expand-container", Gt = "univer-find-replace-buttons-group", Vt = "univer-find-replace-buttons-group-right", B = {
499
+ findReplaceDialogContainer: kt,
500
+ findReplaceExpandContainer: jt,
501
+ findReplaceButtonsGroup: Gt,
502
+ findReplaceButtonsGroupRight: Vt
490
503
  };
491
- function Ne(t) {
504
+ function $e(t) {
492
505
  const { findCompleted: e, localeService: n, matchesCount: i, matchesPosition: r, findString: s, findReplaceService: a, onChange: c, ...d } = t, f = e && i === 0 ? n.t("find-replace.dialog.no-result") : i === 0 ? " " : void 0;
493
506
  return /* @__PURE__ */ l(
494
- yt,
507
+ Ft,
495
508
  {
496
509
  autoFocus: !0,
497
510
  placeholder: n.t("find-replace.dialog.find-placeholder"),
498
511
  slot: /* @__PURE__ */ l(
499
- Ft,
512
+ Dt,
500
513
  {
501
514
  loop: !0,
502
515
  text: f,
@@ -513,7 +526,7 @@ function Ne(t) {
513
526
  }
514
527
  );
515
528
  }
516
- function $e(t, e) {
529
+ function Ae(t, e) {
517
530
  const n = u(() => {
518
531
  var r;
519
532
  (r = document.querySelector(".univer-find-input input")) == null || r.focus();
@@ -521,18 +534,18 @@ function $e(t, e) {
521
534
  const r = document.querySelectorAll(".univer-find-replace-dialog-container .univer-select-selection-search-input");
522
535
  return Array.from(r).some((s) => s === document.activeElement);
523
536
  }, []);
524
- return Pt(e, () => ({ focus: n, selectHasFocus: i })), L(() => {
537
+ return Tt(e, () => ({ focus: n, selectHasFocus: i })), w(() => {
525
538
  const r = t.focusSignal$.subscribe(() => n());
526
539
  return () => r.unsubscribe();
527
540
  }, [t, n]), { focus: n, selectHasFocus: i };
528
541
  }
529
- const Vt = W(function(e, n) {
530
- const i = v(B), r = v(_), s = v(te), a = D(r.state$, void 0, !0), { findCompleted: c, findString: d, matchesCount: S, matchesPosition: f } = a, p = u(() => {
542
+ const Ht = G(function(e, n) {
543
+ const i = v(j), r = v(_), s = v(k), a = x(r.state$, void 0, !0), { findCompleted: c, findString: d, matchesCount: S, matchesPosition: f } = a, p = u(() => {
531
544
  s.executeCommand(re.id);
532
- }, [s]), E = u((C) => r.changeFindString(C), [r]);
533
- return $e(r, n), /* @__PURE__ */ b($, { children: [
545
+ }, [s]), O = u((R) => r.changeFindString(R), [r]);
546
+ return Ae(r, n), /* @__PURE__ */ I(A, { children: [
534
547
  /* @__PURE__ */ l(
535
- Ne,
548
+ $e,
536
549
  {
537
550
  findCompleted: c,
538
551
  className: "univer-find-input",
@@ -541,89 +554,89 @@ const Vt = W(function(e, n) {
541
554
  findReplaceService: r,
542
555
  localeService: i,
543
556
  findString: d,
544
- onChange: E
557
+ onChange: O
545
558
  }
546
559
  ),
547
- /* @__PURE__ */ l("div", { className: w.findReplaceExpandContainer, children: /* @__PURE__ */ l(N, { type: "text", size: "small", onClick: p, children: i.t("find-replace.dialog.advanced-finding") }) })
560
+ /* @__PURE__ */ l("div", { className: B.findReplaceExpandContainer, children: /* @__PURE__ */ l($, { type: "text", size: "small", onClick: p, children: i.t("find-replace.dialog.advanced-finding") }) })
548
561
  ] });
549
- }), Ht = W(function(e, n) {
550
- const i = v(_), r = v(B), s = v(te), a = v(me), c = D(i.currentMatch$, void 0, !0), d = D(i.replaceables$, void 0, !0), S = D(i.state$, void 0, !0), {
562
+ }), Kt = G(function(e, n) {
563
+ const i = v(_), r = v(j), s = v(k), a = v(me), c = x(i.currentMatch$, void 0, !0), d = x(i.replaceables$, void 0, !0), S = x(i.state$, void 0, !0), {
551
564
  matchesCount: f,
552
565
  matchesPosition: p,
553
- findString: E,
554
- inputtingFindString: C,
555
- replaceString: we,
556
- caseSensitive: Ue,
557
- matchesTheWholeCell: Be,
558
- findDirection: We,
559
- findScope: ke,
560
- findBy: je,
561
- findCompleted: j
562
- } = S, Ge = C.length === 0, Ve = f === 0 || !(c != null && c.replaceable), He = d.length === 0, Ke = u(
566
+ findString: O,
567
+ inputtingFindString: R,
568
+ replaceString: Ue,
569
+ caseSensitive: Be,
570
+ matchesTheWholeCell: We,
571
+ findDirection: ke,
572
+ findScope: je,
573
+ findBy: Ge,
574
+ findCompleted: V
575
+ } = S, Ve = R.length === 0, He = f === 0 || !(c != null && c.replaceable), Ke = d.length === 0, qe = u(
563
576
  (h) => i.changeInputtingFindString(h),
564
577
  [i]
565
- ), qe = u(
578
+ ), ze = u(
566
579
  (h) => i.changeReplaceString(h),
567
580
  [i]
568
- ), { focus: ze } = $e(i, n), Ye = u(() => {
569
- E === C ? i.moveToNextMatch() : (i.changeFindString(C), i.find());
570
- }, [E, C, i]), Ze = u(() => s.executeCommand(Pe.id), [s]), Je = u(async () => {
571
- await s.executeCommand(Te.id), ze();
572
- }, [s]), Qe = u((h) => {
581
+ ), { focus: Ye } = Ae(i, n), Ze = u(() => {
582
+ O === R ? i.moveToNextMatch() : (i.changeFindString(R), i.find());
583
+ }, [O, R, i]), Je = u(() => s.executeCommand(Pe.id), [s]), Qe = u(async () => {
584
+ await s.executeCommand(Te.id), Ye();
585
+ }, [s]), Xe = u((h) => {
573
586
  i.changeFindDirection(h);
574
- }, [i]), Xe = u((h) => {
575
- i.changeFindScope(h);
576
587
  }, [i]), et = u((h) => {
588
+ i.changeFindScope(h);
589
+ }, [i]), tt = u((h) => {
577
590
  i.changeFindBy(h);
578
- }, [i]), tt = qt(r), it = zt(r), nt = Yt(r);
579
- return L(() => {
580
- j && f === 0 && a.show({
591
+ }, [i]), it = zt(r), nt = Yt(r), rt = Zt(r);
592
+ return w(() => {
593
+ V && f === 0 && a.show({
581
594
  content: r.t("find-replace.dialog.no-match"),
582
- type: O.Warning,
595
+ type: N.Warning,
583
596
  duration: 5e3
584
597
  });
585
- }, [j, f, a, r]), /* @__PURE__ */ b($, { children: [
586
- /* @__PURE__ */ l(R, { label: r.t("find-replace.dialog.find"), children: /* @__PURE__ */ l(
587
- Ne,
598
+ }, [V, f, a, r]), /* @__PURE__ */ I(A, { children: [
599
+ /* @__PURE__ */ l(M, { label: r.t("find-replace.dialog.find"), children: /* @__PURE__ */ l(
600
+ $e,
588
601
  {
589
- findCompleted: j,
602
+ findCompleted: V,
590
603
  className: "univer-find-input",
591
604
  matchesCount: f,
592
605
  matchesPosition: p,
593
606
  findReplaceService: i,
594
607
  localeService: r,
595
- findString: C,
596
- onChange: Ke
608
+ findString: R,
609
+ onChange: qe
597
610
  }
598
611
  ) }),
599
- /* @__PURE__ */ l(R, { label: r.t("find-replace.dialog.replace"), children: /* @__PURE__ */ l(
600
- Dt,
612
+ /* @__PURE__ */ l(M, { label: r.t("find-replace.dialog.replace"), children: /* @__PURE__ */ l(
613
+ xt,
601
614
  {
602
615
  placeholder: r.t("find-replace.dialog.replace-placeholder"),
603
- value: we,
604
- onChange: (h) => qe(h)
616
+ value: Ue,
617
+ onChange: (h) => ze(h)
605
618
  }
606
619
  ) }),
607
- /* @__PURE__ */ l(R, { label: r.t("find-replace.dialog.find-direction.title"), children: /* @__PURE__ */ l(G, { value: We, options: it, onChange: Qe }) }),
608
- /* @__PURE__ */ l(ce, { children: /* @__PURE__ */ b($, { children: [
609
- /* @__PURE__ */ l(R, { label: r.t("find-replace.dialog.find-scope.title"), children: /* @__PURE__ */ l(G, { value: ke, options: tt, onChange: Xe }) }),
610
- /* @__PURE__ */ l(R, { label: r.t("find-replace.dialog.find-by.title"), children: /* @__PURE__ */ l(G, { value: je, options: nt, onChange: et }) })
620
+ /* @__PURE__ */ l(M, { label: r.t("find-replace.dialog.find-direction.title"), children: /* @__PURE__ */ l(H, { value: ke, options: nt, onChange: Xe }) }),
621
+ /* @__PURE__ */ l(ce, { children: /* @__PURE__ */ I(A, { children: [
622
+ /* @__PURE__ */ l(M, { label: r.t("find-replace.dialog.find-scope.title"), children: /* @__PURE__ */ l(H, { value: je, options: it, onChange: et }) }),
623
+ /* @__PURE__ */ l(M, { label: r.t("find-replace.dialog.find-by.title"), children: /* @__PURE__ */ l(H, { value: Ge, options: rt, onChange: tt }) })
611
624
  ] }) }),
612
- /* @__PURE__ */ l(ce, { children: /* @__PURE__ */ b($, { children: [
613
- /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
625
+ /* @__PURE__ */ l(ce, { children: /* @__PURE__ */ I(A, { children: [
626
+ /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
614
627
  le,
615
628
  {
616
- checked: Ue,
629
+ checked: Be,
617
630
  onChange: (h) => {
618
631
  i.changeCaseSensitive(h);
619
632
  },
620
633
  children: r.t("find-replace.dialog.case-sensitive")
621
634
  }
622
635
  ) }),
623
- /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
636
+ /* @__PURE__ */ l(M, { children: /* @__PURE__ */ l(
624
637
  le,
625
638
  {
626
- checked: Be,
639
+ checked: We,
627
640
  onChange: (h) => {
628
641
  i.changeMatchesTheWholeCell(h);
629
642
  },
@@ -631,149 +644,158 @@ const Vt = W(function(e, n) {
631
644
  }
632
645
  ) })
633
646
  ] }) }),
634
- /* @__PURE__ */ b("div", { className: w.findReplaceButtonsGroup, children: [
635
- /* @__PURE__ */ l(N, { type: "primary", onClick: Ye, disabled: Ge, children: r.t("find-replace.dialog.find") }),
636
- /* @__PURE__ */ b("span", { className: w.findReplaceButtonsGroupRight, children: [
637
- /* @__PURE__ */ l(N, { disabled: Ve, onClick: Ze, children: r.t("find-replace.dialog.replace") }),
638
- /* @__PURE__ */ l(N, { disabled: He, onClick: Je, children: r.t("find-replace.dialog.replace-all") })
647
+ /* @__PURE__ */ I("div", { className: B.findReplaceButtonsGroup, children: [
648
+ /* @__PURE__ */ l($, { type: "primary", onClick: Ze, disabled: Ve, children: r.t("find-replace.dialog.find") }),
649
+ /* @__PURE__ */ I("span", { className: B.findReplaceButtonsGroupRight, children: [
650
+ /* @__PURE__ */ l($, { disabled: He, onClick: Je, children: r.t("find-replace.dialog.replace") }),
651
+ /* @__PURE__ */ l($, { disabled: Ke, onClick: Qe, children: r.t("find-replace.dialog.replace-all") })
639
652
  ] })
640
653
  ] })
641
654
  ] });
642
655
  });
643
- function Kt() {
644
- const t = v(_), e = v(ve), n = v(X), i = D(t.state$, void 0, !0), r = H(null);
645
- L(() => {
656
+ function qt() {
657
+ const t = v(_), e = v(ve), n = v(ee), i = x(t.state$, void 0, !0), r = q(null);
658
+ w(() => {
646
659
  let d;
647
660
  return r.current && (d = e.registerContainerElement(r.current)), () => d == null ? void 0 : d.dispose();
648
661
  }, [e]);
649
- const s = H(null), a = u(
662
+ const s = q(null), a = u(
650
663
  (d) => n.setContextValue(Fe, d),
651
664
  [n]
652
665
  ), c = u(
653
666
  (d) => n.setContextValue(ye, d),
654
667
  [n]
655
668
  );
656
- return L(() => {
669
+ return w(() => {
657
670
  var S;
658
- const d = bt(document, "focusin").subscribe((f) => {
671
+ const d = It(document, "focusin").subscribe((f) => {
659
672
  var p;
660
673
  f.target && ((p = r.current) != null && p.contains(f.target)) ? a(!0) : a(!1), !s.current || !s.current.selectHasFocus() ? c(!0) : c(!1);
661
674
  });
662
675
  return (S = s.current) == null || S.focus(), a(!0), c(!0), () => {
663
676
  d.unsubscribe(), a(!1);
664
677
  };
665
- }, [a, c]), /* @__PURE__ */ l("div", { className: w.findReplaceDialogContainer, ref: r, children: i.replaceRevealed ? /* @__PURE__ */ l(Ht, { ref: s }) : /* @__PURE__ */ l(Vt, { ref: s }) });
678
+ }, [a, c]), /* @__PURE__ */ l("div", { className: B.findReplaceDialogContainer, ref: r, children: i.replaceRevealed ? /* @__PURE__ */ l(Kt, { ref: s }) : /* @__PURE__ */ l(Ht, { ref: s }) });
666
679
  }
667
- function qt(t) {
680
+ function zt(t) {
668
681
  const e = t.getCurrentLocale();
669
682
  return ie(() => [
670
- { label: t.t("find-replace.dialog.find-scope.current-sheet"), value: Z.SUBUNIT },
671
- { label: t.t("find-replace.dialog.find-scope.workbook"), value: Z.UNIT }
683
+ { label: t.t("find-replace.dialog.find-scope.current-sheet"), value: J.SUBUNIT },
684
+ { label: t.t("find-replace.dialog.find-scope.workbook"), value: J.UNIT }
672
685
  ], [e]);
673
686
  }
674
- function zt(t) {
687
+ function Yt(t) {
675
688
  const e = t.getCurrentLocale();
676
689
  return ie(() => [
677
- { label: t.t("find-replace.dialog.find-direction.row"), value: z.ROW },
678
- { label: t.t("find-replace.dialog.find-direction.column"), value: z.COLUMN }
690
+ { label: t.t("find-replace.dialog.find-direction.row"), value: Y.ROW },
691
+ { label: t.t("find-replace.dialog.find-direction.column"), value: Y.COLUMN }
679
692
  ], [e]);
680
693
  }
681
- function Yt(t) {
694
+ function Zt(t) {
682
695
  const e = t.getCurrentLocale();
683
696
  return ie(() => [
684
- { label: t.t("find-replace.dialog.find-by.value"), value: Y.VALUE },
685
- { label: t.t("find-replace.dialog.find-by.formula"), value: Y.FORMULA }
697
+ { label: t.t("find-replace.dialog.find-by.value"), value: Z.VALUE },
698
+ { label: t.t("find-replace.dialog.find-by.formula"), value: Z.FORMULA }
686
699
  ], [e]);
687
700
  }
688
- function T(t) {
701
+ function F(t) {
689
702
  return t.getContextValue(Fe);
690
703
  }
691
- function Zt(t) {
704
+ function Jt(t) {
692
705
  return t.getContextValue(De);
693
706
  }
694
- function Ae(t) {
707
+ function Le(t) {
695
708
  return t.getContextValue(ye);
696
709
  }
697
- const k = "7_find-replace-shortcuts";
710
+ const E = "7_find-replace-shortcuts";
698
711
  function se(t) {
699
712
  return t.getContextValue(ge);
700
713
  }
701
714
  function ae(t) {
702
715
  return !t.getContextValue(_e);
703
716
  }
704
- const Jt = {
705
- id: P.id,
717
+ const Qt = {
718
+ id: T.id,
706
719
  description: "find-replace.shortcut.open-find-dialog",
707
- binding: M.F | I.CTRL_COMMAND,
708
- group: k,
720
+ binding: C.F | y.CTRL_COMMAND,
721
+ group: E,
709
722
  preconditions(t) {
710
- return !T(t) && se(t) && ae(t);
723
+ return !F(t) && se(t) && ae(t);
711
724
  }
712
- }, Qt = {
713
- id: P.id,
725
+ }, Xt = {
726
+ id: T.id,
714
727
  description: "find-replace.shortcut.open-find-dialog",
715
- binding: M.F | I.CTRL_COMMAND,
716
- mac: M.F | I.MAC_CTRL,
728
+ binding: C.F | y.CTRL_COMMAND,
729
+ mac: C.F | y.MAC_CTRL,
717
730
  preconditions(t) {
718
- return !T(t) && se(t) && ae(t);
731
+ return !F(t) && se(t) && ae(t);
719
732
  }
720
- }, Xt = {
733
+ }, ei = {
721
734
  id: re.id,
722
735
  description: "find-replace.shortcut.open-replace-dialog",
723
- binding: M.H | I.CTRL_COMMAND,
724
- mac: M.H | I.MAC_CTRL,
725
- group: k,
736
+ binding: C.H | y.CTRL_COMMAND,
737
+ mac: C.H | y.MAC_CTRL,
738
+ group: E,
726
739
  preconditions(t) {
727
- return se(t) && ae(t) && (!T(t) || !Zt(t));
740
+ return se(t) && ae(t) && (!F(t) || !Jt(t));
728
741
  }
729
- }, ei = {
742
+ }, ti = {
730
743
  id: Ee.id,
731
744
  description: "find-replace.shortcut.go-to-next-match",
732
- binding: M.ENTER,
733
- group: k,
745
+ binding: C.ENTER,
746
+ group: E,
734
747
  priority: 1e3,
735
748
  preconditions(t) {
736
- return Ae(t) && T(t);
749
+ return Le(t) && F(t);
737
750
  }
738
- }, ti = {
751
+ }, ii = {
739
752
  id: Oe.id,
740
753
  description: "find-replace.shortcut.go-to-previous-match",
741
- binding: M.ENTER | I.SHIFT,
742
- group: k,
754
+ binding: C.ENTER | y.SHIFT,
755
+ group: E,
756
+ priority: 1e3,
757
+ preconditions(t) {
758
+ return Le(t) && F(t);
759
+ }
760
+ }, ni = {
761
+ id: Ne.id,
762
+ description: "find-replace.shortcut.focus-selection",
763
+ binding: C.ESC,
764
+ group: E,
743
765
  priority: 1e3,
744
766
  preconditions(t) {
745
- return Ae(t) && T(t);
767
+ return F(t);
746
768
  }
747
769
  };
748
- function ii(t) {
749
- const e = t.get(X);
770
+ function ri(t) {
771
+ const e = t.get(ee);
750
772
  return {
751
- id: P.id,
773
+ id: T.id,
752
774
  icon: "SearchIcon",
753
775
  tooltip: "find-replace.toolbar",
754
- type: gt.BUTTON,
755
- hidden$: pt(t, ct.UNIVER_SHEET),
776
+ type: _t.BUTTON,
777
+ hidden$: gt(t, lt.UNIVER_SHEET),
756
778
  disabled$: Se([
757
779
  e.subscribeContextValue$(_e),
758
780
  e.subscribeContextValue$(ge)
759
- ]).pipe(It(([n, i]) => n || !i))
781
+ ]).pipe(yt(([n, i]) => n || !i))
760
782
  };
761
783
  }
762
- const ni = {
763
- [_t.OTHERS]: {
764
- [P.id]: {
784
+ const si = {
785
+ [mt.OTHERS]: {
786
+ [T.id]: {
765
787
  order: 2,
766
- menuItemFactory: ii
788
+ menuItemFactory: ri
767
789
  }
768
790
  }
769
791
  };
770
- var ri = Object.getOwnPropertyDescriptor, si = (t, e, n, i) => {
771
- for (var r = i > 1 ? void 0 : i ? ri(e, n) : e, s = t.length - 1, a; s >= 0; s--)
792
+ var ai = Object.getOwnPropertyDescriptor, oi = (t, e, n, i) => {
793
+ for (var r = i > 1 ? void 0 : i ? ai(e, n) : e, s = t.length - 1, a; s >= 0; s--)
772
794
  (a = t[s]) && (r = a(r) || r);
773
795
  return r;
774
796
  }, m = (t, e) => (n, i) => e(n, i, t);
775
- const he = "DESKTOP_FIND_REPLACE_DIALOG", Le = 350, ai = 20, oi = -90;
776
- let U = class extends lt {
797
+ const he = "DESKTOP_FIND_REPLACE_DIALOG", we = 350, ci = 20, li = -90;
798
+ let W = class extends dt {
777
799
  constructor(e, n, i, r, s, a, c, d, S, f) {
778
800
  super();
779
801
  o(this, "_closingListenerDisposable");
@@ -785,27 +807,29 @@ let U = class extends lt {
785
807
  }
786
808
  _initCommands() {
787
809
  [
788
- P,
810
+ T,
789
811
  re,
790
812
  Ee,
791
813
  Oe,
792
814
  Te,
793
- Pe
815
+ Pe,
816
+ Ne
794
817
  ].forEach((e) => {
795
818
  this.disposeWithMe(this._commandService.registerCommand(e));
796
819
  });
797
820
  }
798
821
  _initShortcuts() {
799
822
  [
800
- Xt,
801
- Jt,
823
+ ei,
802
824
  Qt,
825
+ Xt,
826
+ ii,
803
827
  ti,
804
- ei
828
+ ni
805
829
  ].forEach((e) => this.disposeWithMe(this._shortcutService.registerShortcut(e)));
806
830
  }
807
831
  _initUI() {
808
- this.disposeWithMe(this._componentManager.register("FindReplaceDialog", Kt)), this.disposeWithMe(this._componentManager.register("SearchIcon", Ie)), this._menuManagerService.mergeMenu(ni), this._findReplaceService.stateUpdates$.pipe(oe(this.dispose$)).subscribe((e) => {
832
+ this.disposeWithMe(this._componentManager.register("FindReplaceDialog", qt)), this.disposeWithMe(this._componentManager.register("SearchIcon", Ie)), this._menuManagerService.mergeMenu(si), this._findReplaceService.stateUpdates$.pipe(oe(this.dispose$)).subscribe((e) => {
809
833
  e.revealed === !0 && this._openPanel();
810
834
  });
811
835
  }
@@ -813,14 +837,14 @@ let U = class extends lt {
813
837
  this._dialogService.open({
814
838
  id: he,
815
839
  draggable: !0,
816
- width: Le,
840
+ width: we,
817
841
  title: { title: this._localeService.t("find-replace.dialog.title") },
818
842
  children: { label: "FindReplaceDialog" },
819
843
  destroyOnClose: !0,
820
- defaultPosition: ci(),
844
+ defaultPosition: di(),
821
845
  preservePositionOnDestroy: !0,
822
846
  onClose: () => this.closePanel()
823
- }), this._closingListenerDisposable = A(this._univerInstanceService.focused$.pipe(oe(this.dispose$)).subscribe((e) => {
847
+ }), this._closingListenerDisposable = L(this._univerInstanceService.focused$.pipe(oe(this.dispose$)).subscribe((e) => {
824
848
  (!e || !this._univerInstanceService.getUniverSheetInstance(e)) && this.closePanel();
825
849
  }));
826
850
  }
@@ -828,65 +852,65 @@ let U = class extends lt {
828
852
  this._closingListenerDisposable && (this._closingListenerDisposable.dispose(), this._closingListenerDisposable = null, this._dialogService.close(he), this._findReplaceService.terminate(), queueMicrotask(() => this._layoutService.focus()));
829
853
  }
830
854
  };
831
- U = si([
855
+ W = oi([
832
856
  m(0, pe),
833
- m(1, mt),
834
- m(2, vt),
835
- m(3, te),
857
+ m(1, vt),
858
+ m(2, St),
859
+ m(3, k),
836
860
  m(4, _),
837
- m(5, St),
861
+ m(5, Ct),
838
862
  m(6, ve),
839
- m(7, F(B)),
840
- m(8, F(Ct)),
841
- m(9, F(Q))
842
- ], U);
843
- function ci() {
863
+ m(7, D(j)),
864
+ m(8, D(Rt)),
865
+ m(9, D(X))
866
+ ], W);
867
+ function di() {
844
868
  const { innerWidth: t } = window;
845
- return { x: (t - Le) / 2 - ai, y: oi };
869
+ return { x: (t - we) / 2 - ci, y: li };
846
870
  }
847
- var li = Object.getOwnPropertyDescriptor, di = (t, e, n, i) => {
848
- for (var r = i > 1 ? void 0 : i ? li(e, n) : e, s = t.length - 1, a; s >= 0; s--)
871
+ var hi = Object.getOwnPropertyDescriptor, ui = (t, e, n, i) => {
872
+ for (var r = i > 1 ? void 0 : i ? hi(e, n) : e, s = t.length - 1, a; s >= 0; s--)
849
873
  (a = t[s]) && (r = a(r) || r);
850
874
  return r;
851
875
  }, ue = (t, e) => (n, i) => e(n, i, t);
852
- const hi = "UNIVER_FIND_REPLACE_PLUGIN";
853
- var V;
854
- let fe = (V = class extends ht {
876
+ const fi = "UNIVER_FIND_REPLACE_PLUGIN";
877
+ var K;
878
+ let fe = (K = class extends ut {
855
879
  constructor(t = de, e, n) {
856
880
  super(), this._config = t, this._injector = e, this._configService = n;
857
- const { ...i } = ut(
881
+ const { ...i } = ft(
858
882
  {},
859
883
  de,
860
884
  this._config
861
885
  );
862
- this._configService.setConfig(Tt, i);
886
+ this._configService.setConfig(Et, i);
863
887
  }
864
888
  onStarting() {
865
889
  [
866
- [U],
867
- [_, { useClass: J }]
890
+ [W],
891
+ [_, { useClass: Q }]
868
892
  ].forEach((t) => this._injector.add(t));
869
893
  }
870
894
  onRendered() {
871
- this._injector.get(U);
895
+ this._injector.get(W);
872
896
  }
873
- }, o(V, "pluginName", hi), V);
874
- fe = di([
875
- ue(1, F(Q)),
876
- ue(2, dt)
897
+ }, o(K, "pluginName", fi), K);
898
+ fe = ui([
899
+ ue(1, D(X)),
900
+ ue(2, ht)
877
901
  ], fe);
878
902
  export {
879
- Y as FindBy,
880
- z as FindDirection,
881
- Ci as FindModel,
882
- U as FindReplaceController,
883
- q as FindReplaceModel,
884
- Ut as FindReplaceState,
885
- Z as FindScope,
903
+ Z as FindBy,
904
+ Y as FindDirection,
905
+ Mi as FindModel,
906
+ W as FindReplaceController,
907
+ z as FindReplaceModel,
908
+ Bt as FindReplaceState,
909
+ J as FindScope,
886
910
  Ee as GoToNextMatchOperation,
887
911
  Oe as GoToPreviousMatchOperation,
888
912
  _ as IFindReplaceService,
889
- P as OpenFindDialogOperation,
913
+ T as OpenFindDialogOperation,
890
914
  re as OpenReplaceDialogOperation,
891
915
  Te as ReplaceAllMatchesCommand,
892
916
  Pe as ReplaceCurrentMatchCommand,