chunk-NND5TVYZ.js 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030
  1. import {
  2. $e,
  3. Ae,
  4. Fa,
  5. I1,
  6. _1,
  7. d3,
  8. h3,
  9. it,
  10. l1,
  11. m1,
  12. n1,
  13. o3
  14. } from "./chunk-POAJ2YNP.js";
  15. import {
  16. HO,
  17. Po,
  18. QC,
  19. QO,
  20. VO,
  21. WO,
  22. Xw,
  23. r_,
  24. um
  25. } from "./chunk-GBYP4PB2.js";
  26. import {
  27. L_
  28. } from "./chunk-2MK3Q52E.js";
  29. import {
  30. BehaviorSubject,
  31. Ct,
  32. Fe,
  33. Gn,
  34. J0,
  35. Mi,
  36. Ot,
  37. Pt,
  38. Ra,
  39. SE,
  40. Subject,
  41. Vr,
  42. W0,
  43. Ze,
  44. _n,
  45. ar,
  46. combineLatest,
  47. debounceTime,
  48. fromEvent,
  49. fs,
  50. map,
  51. nt,
  52. nu,
  53. oE,
  54. ot,
  55. takeUntil,
  56. throttleTime,
  57. z0
  58. } from "./chunk-23V3HWTR.js";
  59. import {
  60. require_react
  61. } from "./chunk-GNR2UJZM.js";
  62. import {
  63. __toESM
  64. } from "./chunk-2LSFTFF7.js";
  65. // node_modules/.pnpm/@univerjs+find-replace@0.5.5_@grpc+grpc-js@1.13.4_react-dom@18.3.1_react@18.3.1_rxjs@7.8.1_typescript@5.4.5/node_modules/@univerjs/find-replace/lib/es/index.js
  66. var import_react = __toESM(require_react());
  67. var at = Object.defineProperty;
  68. var ot2 = (t, e, n) => e in t ? at(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
  69. var l = (t, e, n) => ot2(t, typeof e != "symbol" ? e + "" : e, n);
  70. var Nt = "find-replace.config";
  71. var de = {};
  72. var g = function() {
  73. return g = Object.assign || function(t) {
  74. for (var e, n = 1, i = arguments.length; n < i; n++) {
  75. e = arguments[n];
  76. for (var r in e)
  77. Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
  78. }
  79. return t;
  80. }, g.apply(this, arguments);
  81. };
  82. var $t = function(t, e) {
  83. var n = {};
  84. for (var i in t)
  85. Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
  86. if (t != null && typeof Object.getOwnPropertySymbols == "function")
  87. for (var r = 0, i = Object.getOwnPropertySymbols(t); r < i.length; r++)
  88. e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
  89. return n;
  90. };
  91. var xe = (0, import_react.forwardRef)(function(t, e) {
  92. var n = t.icon, i = t.id, r = t.className, s = t.extend, a = $t(t, ["icon", "id", "className", "extend"]), d = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), c = (0, import_react.useRef)("_".concat(jt()));
  93. return ye(n, "".concat(i), { defIds: n.defIds, idSuffix: c.current }, g({ ref: e, className: d }, a), s);
  94. });
  95. function ye(t, e, n, i, r) {
  96. return (0, import_react.createElement)(t.tag, g(g({ key: e }, At(t, n, r)), i), (Lt(t, n).children || []).map(function(s, a) {
  97. return ye(s, "".concat(e, "-").concat(t.tag, "-").concat(a), n, void 0, r);
  98. }));
  99. }
  100. function At(t, e, n) {
  101. var i = g({}, t.attrs);
  102. n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1);
  103. var r = e.defIds;
  104. return !r || r.length === 0 || (t.tag === "use" && i["xlink:href"] && (i["xlink:href"] = i["xlink:href"] + e.idSuffix), Object.entries(i).forEach(function(s) {
  105. var a = s[0], d = s[1];
  106. typeof d == "string" && (i[a] = d.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
  107. })), i;
  108. }
  109. function Lt(t, e) {
  110. var n, i = e.defIds;
  111. 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) {
  112. 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;
  113. }) }) : t;
  114. }
  115. function jt() {
  116. return Math.random().toString(36).substring(2, 8);
  117. }
  118. xe.displayName = "UniverIcon";
  119. var wt = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_217_40", style: { maskType: "alpha" }, width: 17, height: 17, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0.9 0.09H16.9V16.09H0.9z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_217_40)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.39551 7.37266C2.39551 4.18105 4.98281 1.59375 8.17441 1.59375C11.366 1.59375 13.9533 4.18105 13.9533 7.37266C13.9533 8.72342 13.4898 9.96603 12.7133 10.95L15.1964 13.4331C15.4619 13.6986 15.4619 14.1291 15.1964 14.3946C14.9309 14.6601 14.5004 14.6601 14.2349 14.3946L11.7518 11.9115C10.7678 12.6881 9.52525 13.1516 8.17441 13.1516C4.98281 13.1516 2.39551 10.5642 2.39551 7.37266ZM8.17441 2.95349C5.73378 2.95349 3.75525 4.93202 3.75525 7.37266C3.75525 9.81333 5.73378 11.7918 8.17441 11.7918C10.6151 11.7918 12.5936 9.81333 12.5936 7.37266C12.5936 4.93202 10.6151 2.95349 8.17441 2.95349Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] };
  120. var Ie = (0, import_react.forwardRef)(function(t, e) {
  121. return (0, import_react.createElement)(xe, Object.assign({}, t, {
  122. id: "search-single-16",
  123. ref: e,
  124. icon: wt
  125. }));
  126. });
  127. Ie.displayName = "SearchSingle16";
  128. var Fe2 = "FIND_REPLACE_INPUT_FOCUS";
  129. var De = "FIND_REPLACE_DIALOG_FOCUS";
  130. var Pe = "FIND_REPLACE_REPLACE_REVEALED";
  131. var Ut = Object.defineProperty;
  132. var Bt = Object.getOwnPropertyDescriptor;
  133. var Oe = (t, e, n, i) => {
  134. for (var r = i > 1 ? void 0 : i ? Bt(e, n) : e, s = t.length - 1, a; s >= 0; s--)
  135. (a = t[s]) && (r = (i ? a(e, n, r) : a(r)) || r);
  136. return i && r && Ut(e, n, r), r;
  137. };
  138. var q = (t, e) => (n, i) => e(n, i, t);
  139. var Di = class extends nt {
  140. };
  141. var m = Ct("find-replace.service");
  142. function Wt(t) {
  143. 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";
  144. }
  145. var J = class extends nt {
  146. constructor(e, n, i) {
  147. super();
  148. l(this, "currentMatch$", new BehaviorSubject(null));
  149. l(this, "replaceables$", new BehaviorSubject([]));
  150. l(this, "_findModels", []);
  151. l(this, "_matchingModel", null);
  152. l(this, "_matches", []);
  153. l(this, "_currentSearchingDisposables", null);
  154. this._state = e, this._providers = n, this._univerInstanceService = i, this.disposeWithMe(
  155. this._state.stateUpdates$.pipe(throttleTime(200, void 0, { leading: true, trailing: true })).subscribe(async (r) => {
  156. const s = this._state.state;
  157. Wt(r) && (s.findString !== "" && !s.replaceRevealed ? (await this._startSearching(), this._state.changeState({ findCompleted: true })) : r.replaceRevealed !== true && this._stopSearching());
  158. })
  159. );
  160. }
  161. get searched() {
  162. return this._findModels.length > 0;
  163. }
  164. dispose() {
  165. super.dispose(), this._stopSearching(), this.currentMatch$.complete(), this.replaceables$.complete(), this._state.changeState({ ...ne(), revealed: false });
  166. }
  167. async start() {
  168. if (!this._state.findString)
  169. return { results: [] };
  170. const e = await this._startSearching();
  171. return this._state.changeState({ findCompleted: true }), e;
  172. }
  173. /** Call this method to start a `searching`. */
  174. async _startSearching() {
  175. if (!this._state.findString)
  176. return { results: [] };
  177. const e = Array.from(this._providers), n = this._findModels = (await Promise.all(e.map((r) => r.find({
  178. findString: this._state.findString,
  179. findDirection: this._state.findDirection,
  180. findScope: this._state.findScope,
  181. findBy: this._state.findBy,
  182. replaceRevealed: this._state.replaceRevealed,
  183. caseSensitive: this._state.caseSensitive,
  184. matchesTheWholeCell: this._state.matchesTheWholeCell
  185. })))).flat();
  186. this._subscribeToModelsChanges(n);
  187. const i = this._matches = n.map((r) => r.getMatches()).flat();
  188. return this.replaceables$.next(i.filter((r) => r.replaceable)), i.length ? (this._moveToInitialMatch(n), this._state.changeState({ matchesCount: i.length }), { results: i }) : (this._state.changeState({ matchesCount: 0, matchesPosition: 0 }), { results: [] });
  189. }
  190. /** Terminate the current searching session, when searching string is empty. */
  191. _stopSearching() {
  192. var e;
  193. this._providers.forEach((n) => n.terminate()), this._findModels = [], this._matches = [], this._matchingModel = null, (e = this._currentSearchingDisposables) == null || e.dispose(), this._currentSearchingDisposables = null, this.currentMatch$.next(null), this.replaceables$.next([]), this._state.changeState({
  194. findCompleted: false,
  195. matchesCount: 0,
  196. matchesPosition: 0
  197. });
  198. }
  199. // When a document's content changes, we should reset all matches and try to move to the next match.
  200. _subscribeToModelsChanges(e) {
  201. const n = this._currentSearchingDisposables = new Mi(), i = combineLatest(e.map((r) => r.matchesUpdate$)).pipe(debounceTime(220)).subscribe(([...r]) => {
  202. const s = this._matches = r.flat();
  203. s.length ? (this._moveToInitialMatch(this._findModels, true), this._state.changeState({ matchesCount: s.length }), this.replaceables$.next(s.filter((a) => a.replaceable))) : (this._state.changeState({ matchesCount: 0, matchesPosition: 0 }), this.replaceables$.next([]));
  204. });
  205. e.forEach((r) => n.add(Ze(r.activelyChangingMatch$.subscribe((s) => {
  206. const a = this._matches.findIndex((d) => d === s);
  207. this._state.changeState({ matchesPosition: a + 1 });
  208. })))), n.add(Ze(i));
  209. }
  210. async replace() {
  211. return this._matchingModel ? this._matchingModel.replace(this._state.replaceString) : false;
  212. }
  213. async replaceAll() {
  214. const e = await Promise.all(this._findModels.map((n) => n.replaceAll(this._state.replaceString))).then((n) => n.reduce((i, r) => (i.success += r.success, i.failure += r.failure, i), { success: 0, failure: 0 }));
  215. return e.failure === 0 && this._stopSearching(), e;
  216. }
  217. getCurrentMatch() {
  218. return this._state.matchesPosition > 0 ? this._matches[this._state.matchesPosition - 1] : null;
  219. }
  220. _markMatch(e) {
  221. const n = this._matches.findIndex((i) => i === e);
  222. this.currentMatch$.next(e), this._state.changeState({ matchesPosition: n + 1 });
  223. }
  224. moveToNextMatch() {
  225. if (!this._matchingModel)
  226. return;
  227. const e = this._findModels.length === 1, n = this._matchingModel.moveToNextMatch({ loop: e });
  228. if (n)
  229. return this._markMatch(n), n;
  230. {
  231. const i = this._findModels.findIndex((r) => r === this._matchingModel);
  232. return this._moveToNextUnitMatch(i);
  233. }
  234. }
  235. _moveToNextUnitMatch(e) {
  236. const n = this._findModels.length;
  237. for (let i = (e + 1) % n; i !== e; ) {
  238. const r = this._findModels[i], s = r.moveToNextMatch({ ignoreSelection: true });
  239. if (s)
  240. return this._matchingModel = r, this._markMatch(s), s;
  241. i = (i + 1) % n;
  242. }
  243. if (this._matchingModel) {
  244. const i = this._matchingModel.moveToNextMatch({ ignoreSelection: true });
  245. return i && this._markMatch(i), i;
  246. }
  247. }
  248. moveToPreviousMatch() {
  249. if (!this._matchingModel)
  250. return;
  251. const e = this._findModels.length === 1, n = this._matchingModel.moveToPreviousMatch({ loop: e });
  252. if (n) {
  253. const i = this._matches.findIndex((r) => r === n);
  254. return this.currentMatch$.next(n), this._state.changeState({ matchesPosition: i + 1 }), n;
  255. } else {
  256. const i = this._findModels.length, r = this._findModels.findIndex((a) => a === this._matchingModel);
  257. for (let a = (r - 1 + i) % i; a !== r; ) {
  258. const d = this._findModels[a], c = d.moveToPreviousMatch({ ignoreSelection: true });
  259. if (c)
  260. return this._matchingModel = d, this._markMatch(c), c;
  261. a = (a - 1) % i;
  262. }
  263. const s = this._matchingModel.moveToPreviousMatch({ ignoreSelection: true });
  264. return s && this._markMatch(s), s;
  265. }
  266. }
  267. _moveToInitialMatch(e, n = false) {
  268. var s;
  269. const i = (s = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : s.getUnitId();
  270. if (!i)
  271. return -1;
  272. const r = e.findIndex((a) => a.unitId === i);
  273. if (r !== -1) {
  274. this._matchingModel = e[r];
  275. const a = this._matchingModel.moveToNextMatch({ stayIfOnMatch: true, noFocus: n });
  276. if (a)
  277. return this._markMatch(a), r;
  278. }
  279. return this._moveToNextUnitMatch(r), 0;
  280. }
  281. };
  282. J = Oe([
  283. q(2, _n)
  284. ], J);
  285. var K = ((t) => (t.ROW = "row", t.COLUMN = "column", t))(K || {});
  286. var z = ((t) => (t.VALUE = "value", t.FORMULA = "formula", t))(z || {});
  287. var Y = ((t) => (t.SUBUNIT = "subunit", t.UNIT = "unit", t))(Y || {});
  288. function ne() {
  289. return {
  290. caseSensitive: false,
  291. findBy: "value",
  292. findCompleted: false,
  293. findDirection: "row",
  294. findScope: "subunit",
  295. findString: "",
  296. inputtingFindString: "",
  297. matchesCount: 0,
  298. matchesPosition: 0,
  299. matchesTheWholeCell: false,
  300. replaceRevealed: false,
  301. replaceString: "",
  302. revealed: true
  303. };
  304. }
  305. var Gt = class {
  306. constructor() {
  307. l(this, "_stateUpdates$", new Subject());
  308. l(this, "stateUpdates$", this._stateUpdates$.asObservable());
  309. l(this, "_state$", new BehaviorSubject(ne()));
  310. l(this, "state$", this._state$.asObservable());
  311. l(this, "_findString", "");
  312. l(this, "_inputtingFindString", "");
  313. l(this, "_replaceString", "");
  314. l(this, "_revealed", false);
  315. l(this, "_replaceRevealed", false);
  316. l(this, "_matchesPosition", 0);
  317. l(this, "_matchesCount", 0);
  318. l(this, "_caseSensitive", true);
  319. l(this, "_matchesTheWholeCell", false);
  320. l(this, "_findDirection", "row");
  321. l(this, "_findScope", "subunit");
  322. l(this, "_findBy", "value");
  323. l(this, "_findCompleted", false);
  324. }
  325. get state() {
  326. return this._state$.getValue();
  327. }
  328. get inputtingFindString() {
  329. return this._inputtingFindString;
  330. }
  331. get findString() {
  332. return this._findString;
  333. }
  334. get revealed() {
  335. return this._revealed;
  336. }
  337. get replaceRevealed() {
  338. return this._replaceRevealed;
  339. }
  340. get matchesPosition() {
  341. return this._matchesPosition;
  342. }
  343. get matchesCount() {
  344. return this._matchesCount;
  345. }
  346. get replaceString() {
  347. return this._replaceString;
  348. }
  349. get caseSensitive() {
  350. return this._caseSensitive;
  351. }
  352. get matchesTheWholeCell() {
  353. return this._matchesTheWholeCell;
  354. }
  355. get findDirection() {
  356. return this._findDirection;
  357. }
  358. get findScope() {
  359. return this._findScope;
  360. }
  361. get findBy() {
  362. return this._findBy;
  363. }
  364. get findCompleted() {
  365. return this._findCompleted;
  366. }
  367. // eslint-disable-next-line max-lines-per-function, complexity
  368. changeState(e) {
  369. let n = false;
  370. const i = {};
  371. typeof e.findString < "u" && e.findString !== this._findString && (this._findString = e.findString, i.findString = this._findString, n = true), typeof e.revealed < "u" && e.revealed !== this._revealed && (this._revealed = e.revealed, i.revealed = e.revealed, n = true), typeof e.replaceRevealed < "u" && e.replaceRevealed !== this._replaceRevealed && (this._replaceRevealed = e.replaceRevealed, i.replaceRevealed = e.replaceRevealed, n = true), typeof e.replaceString < "u" && e.replaceString !== this._replaceString && (this._replaceString = e.replaceString, i.replaceString = e.replaceString, n = true), typeof e.matchesCount < "u" && e.matchesCount !== this._matchesCount && (this._matchesCount = e.matchesCount, i.matchesCount = e.matchesCount, n = true), typeof e.matchesPosition < "u" && e.matchesPosition !== this._matchesPosition && (this._matchesPosition = e.matchesPosition, i.matchesPosition = e.matchesPosition, n = true), typeof e.findBy < "u" && e.findBy !== this._findBy && (this._findBy = e.findBy, i.findBy = e.findBy, n = true), typeof e.findScope < "u" && e.findScope !== this._findScope && (this._findScope = e.findScope, i.findScope = e.findScope, n = true), typeof e.findDirection < "u" && e.findDirection !== this._findDirection && (this._findDirection = e.findDirection, i.findDirection = e.findDirection, n = true), typeof e.caseSensitive < "u" && e.caseSensitive !== this._caseSensitive && (this._caseSensitive = e.caseSensitive, i.caseSensitive = e.caseSensitive, n = true), typeof e.matchesTheWholeCell < "u" && e.matchesTheWholeCell !== this._matchesTheWholeCell && (this._matchesTheWholeCell = e.matchesTheWholeCell, i.matchesTheWholeCell = e.matchesTheWholeCell, n = true), typeof e.inputtingFindString < "u" && e.inputtingFindString !== this._inputtingFindString && (this._inputtingFindString = e.inputtingFindString, i.inputtingFindString = e.inputtingFindString, n = true), typeof e.findCompleted < "u" && e.findCompleted !== this._findCompleted && (this._findCompleted = e.findCompleted, i.findCompleted = e.findCompleted, n = true), n && (this._state$.next({
  372. caseSensitive: this._caseSensitive,
  373. findBy: this._findBy,
  374. findCompleted: this._findCompleted,
  375. findDirection: this._findDirection,
  376. findScope: this._findScope,
  377. findString: this._findString,
  378. inputtingFindString: this._inputtingFindString,
  379. matchesCount: this._matchesCount,
  380. matchesPosition: this._matchesPosition,
  381. matchesTheWholeCell: this._matchesTheWholeCell,
  382. replaceRevealed: this._replaceRevealed,
  383. revealed: this._revealed
  384. }), this._stateUpdates$.next(i));
  385. }
  386. };
  387. var Z = class extends nt {
  388. constructor(e, n) {
  389. super();
  390. l(this, "_providers", /* @__PURE__ */ new Set());
  391. l(this, "_state", new Gt());
  392. l(this, "_model");
  393. l(this, "_currentMatch$", new BehaviorSubject(null));
  394. l(this, "currentMatch$", this._currentMatch$.asObservable());
  395. l(this, "_replaceables$", new BehaviorSubject([]));
  396. l(this, "replaceables$", this._replaceables$.asObservable());
  397. l(this, "_focusSignal$", new Subject());
  398. l(this, "focusSignal$", this._focusSignal$.asObservable());
  399. this._injector = e, this._contextService = n;
  400. }
  401. get stateUpdates$() {
  402. return this._state.stateUpdates$;
  403. }
  404. get state$() {
  405. return this._state.state$;
  406. }
  407. get revealed() {
  408. return this._state.revealed;
  409. }
  410. get replaceRevealed() {
  411. return this._state.replaceRevealed;
  412. }
  413. dispose() {
  414. super.dispose(), this._currentMatch$.next(null), this._currentMatch$.complete(), this._replaceables$.next([]), this._replaceables$.complete(), this._focusSignal$.complete();
  415. }
  416. getProviders() {
  417. return this._providers;
  418. }
  419. getCurrentMatch() {
  420. var e;
  421. return (e = this._model) == null ? void 0 : e.getCurrentMatch();
  422. }
  423. getFindString() {
  424. return this._state.findString;
  425. }
  426. changeFindString(e) {
  427. this._state.changeState({ findString: e });
  428. }
  429. focusFindInput() {
  430. this._focusSignal$.next();
  431. }
  432. changeInputtingFindString(e) {
  433. e ? this._state.changeState({ inputtingFindString: e }) : this._state.changeState({ inputtingFindString: "", findString: "" });
  434. }
  435. changeReplaceString(e) {
  436. this._state.changeState({ replaceString: e });
  437. }
  438. changeMatchesTheWholeCell(e) {
  439. this._state.changeState({ matchesTheWholeCell: e });
  440. }
  441. changeCaseSensitive(e) {
  442. this._state.changeState({ caseSensitive: e });
  443. }
  444. changeFindBy(e) {
  445. this._state.changeState({ findBy: e }), this._toggleDisplayRawFormula(
  446. e === "formula"
  447. /* FORMULA */
  448. );
  449. }
  450. changeFindScope(e) {
  451. this._state.changeState({ findScope: e });
  452. }
  453. changeFindDirection(e) {
  454. this._state.changeState({ findDirection: e });
  455. }
  456. moveToNextMatch() {
  457. this._model && (this._state.replaceRevealed && !this._model.searched ? (this._state.changeState({ findString: this._state.inputtingFindString }), this._model.start()) : this._model.moveToNextMatch(), this._focusSignal$.next());
  458. }
  459. moveToPreviousMatch() {
  460. this._model && (this._state.replaceRevealed && !this._model.searched ? (this._state.changeState({ findString: this._state.inputtingFindString }), this._model.start()) : this._model.moveToPreviousMatch(), this._focusSignal$.next());
  461. }
  462. async replace() {
  463. return this._model ? this._model.replace() : false;
  464. }
  465. async replaceAll() {
  466. if (!this._model)
  467. throw new Error("[FindReplaceService] replaceAll: model is not initialized!");
  468. return this._model.replaceAll();
  469. }
  470. revealReplace() {
  471. this._state.changeState({ replaceRevealed: true, inputtingFindString: this._state.findString }), this._toggleRevealReplace(true);
  472. }
  473. start(e = false) {
  474. if (this._providers.size === 0)
  475. return false;
  476. this._model = this._injector.createInstance(J, this._state, this._providers), this._model.currentMatch$.subscribe((i) => this._currentMatch$.next(i)), this._model.replaceables$.subscribe((i) => this._replaceables$.next(i));
  477. const n = ne();
  478. return e && (n.replaceRevealed = true), this._state.changeState(n), this._toggleRevealReplace(e), true;
  479. }
  480. find() {
  481. var e;
  482. (e = this._model) == null || e.start();
  483. }
  484. terminate() {
  485. var e;
  486. (e = this._model) == null || e.dispose(), this._model = null, this._toggleDisplayRawFormula(false), this._toggleRevealReplace(false);
  487. }
  488. registerFindReplaceProvider(e) {
  489. return this._providers.add(e), Ze(() => this._providers.delete(e));
  490. }
  491. _toggleRevealReplace(e) {
  492. this._contextService.setContextValue(Pe, e);
  493. }
  494. _toggleDisplayRawFormula(e) {
  495. this._contextService.setContextValue(L_, e);
  496. }
  497. };
  498. Z = Oe([
  499. q(0, ot(Ot)),
  500. q(1, fs)
  501. ], Z);
  502. var Te = {
  503. id: "ui.command.replace-current-match",
  504. type: ar.COMMAND,
  505. handler: (t) => t.get(m).replace()
  506. };
  507. var kt = "CONFIRM_REPLACE_ALL";
  508. var Ee = {
  509. id: "ui.command.replace-all-matches",
  510. type: ar.COMMAND,
  511. handler: async (t) => {
  512. const e = t.get(d3), n = t.get(Vr), i = t.get(o3);
  513. if (!await e.confirm({
  514. id: kt,
  515. title: { title: n.t("find-replace.replace.confirm.title") },
  516. cancelText: n.t("button.cancel"),
  517. confirmText: n.t("button.confirm")
  518. }))
  519. return false;
  520. const s = await t.get(m).replaceAll(), { success: a, failure: d } = s;
  521. return d > 0 ? (a === 0 ? i.show({
  522. type: Xw.Error,
  523. content: n.t("find-replace.replace.all-failure")
  524. }) : i.show({
  525. type: Xw.Warning,
  526. content: n.t("find-replace.replace.partial-success", `${a}`, `${d}`)
  527. }), false) : (i.show({
  528. type: Xw.Success,
  529. content: n.t("find-replace.replace.all-success", `${a}`)
  530. }), true);
  531. }
  532. };
  533. var O = {
  534. id: "ui.operation.open-find-dialog",
  535. type: ar.OPERATION,
  536. handler: (t) => {
  537. const e = t.get(m);
  538. return e.revealed ? e.focusFindInput() : e.start(), true;
  539. }
  540. };
  541. var re = {
  542. id: "ui.operation.open-replace-dialog",
  543. type: ar.OPERATION,
  544. handler: (t) => {
  545. const e = t.get(m);
  546. return e.revealed ? e.replaceRevealed ? e.focusFindInput() : e.revealReplace() : e.start(true), true;
  547. }
  548. };
  549. var Ne = {
  550. type: ar.OPERATION,
  551. id: "ui.operation.go-to-next-match",
  552. handler: (t) => (t.get(m).moveToNextMatch(), true)
  553. };
  554. var $e2 = {
  555. type: ar.OPERATION,
  556. id: "ui.operation.go-to-previous-match",
  557. handler: (t) => (t.get(m).moveToPreviousMatch(), true)
  558. };
  559. var k = { exports: {} };
  560. var I = {};
  561. var ue;
  562. function Vt() {
  563. if (ue)
  564. return I;
  565. ue = 1;
  566. var t = import_react.default, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: true, ref: true, __self: true, __source: true };
  567. function a(d, c, _) {
  568. var u, h = {}, R = null, v = null;
  569. _ !== void 0 && (R = "" + _), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (v = c.ref);
  570. for (u in c)
  571. i.call(c, u) && !s.hasOwnProperty(u) && (h[u] = c[u]);
  572. if (d && d.defaultProps)
  573. for (u in c = d.defaultProps, c)
  574. h[u] === void 0 && (h[u] = c[u]);
  575. return { $$typeof: e, type: d, key: R, ref: v, props: h, _owner: r.current };
  576. }
  577. return I.Fragment = n, I.jsx = a, I.jsxs = a, I;
  578. }
  579. var he;
  580. function Ht() {
  581. return he || (he = 1, k.exports = Vt()), k.exports;
  582. }
  583. var o = Ht();
  584. var qt = "univer-find-replace-dialog-container";
  585. var Jt = "univer-find-replace-expand-container";
  586. var Kt = "univer-button-text";
  587. var zt = "univer-find-replace-buttons-group";
  588. var Yt = "univer-find-replace-buttons-group-right";
  589. var L = {
  590. findReplaceDialogContainer: qt,
  591. findReplaceExpandContainer: Jt,
  592. buttonText: Kt,
  593. findReplaceButtonsGroup: zt,
  594. findReplaceButtonsGroupRight: Yt
  595. };
  596. function Ae2(t) {
  597. const { findCompleted: e, localeService: n, matchesCount: i, matchesPosition: r, findString: s, findReplaceService: a, onChange: d, ...c } = t, u = e && i === 0 ? n.t("find-replace.dialog.no-result") : i === 0 ? " " : void 0;
  598. return o.jsx(
  599. WO,
  600. {
  601. autoFocus: true,
  602. placeholder: n.t("find-replace.dialog.find-placeholder"),
  603. slot: o.jsx(
  604. QO,
  605. {
  606. loop: true,
  607. text: u,
  608. value: r,
  609. total: i,
  610. onChange: (h) => {
  611. r === i && h === 1 ? a.moveToNextMatch() : r === 1 && h === i || h < r ? a.moveToPreviousMatch() : a.moveToNextMatch();
  612. }
  613. }
  614. ),
  615. value: s,
  616. onChange: (h) => d == null ? void 0 : d(h),
  617. ...c
  618. }
  619. );
  620. }
  621. function Le(t, e) {
  622. const n = (0, import_react.useCallback)(() => {
  623. var r;
  624. (r = document.querySelector(".univer-find-input input")) == null || r.focus();
  625. }, []), i = (0, import_react.useCallback)(() => {
  626. const r = document.querySelectorAll(".univer-find-replace-dialog-container .univer-select-selection-search-input");
  627. return Array.from(r).some((s) => s === document.activeElement);
  628. }, []);
  629. return (0, import_react.useImperativeHandle)(e, () => ({ focus: n, selectHasFocus: i })), (0, import_react.useEffect)(() => {
  630. const r = t.focusSignal$.subscribe(() => n());
  631. return () => r.unsubscribe();
  632. }, [t, n]), { focus: n, selectHasFocus: i };
  633. }
  634. var Zt = (0, import_react.forwardRef)(function(e, n) {
  635. const i = W0(Vr), r = W0(m), s = W0(Pt), a = z0(r.state$, void 0, true), { findCompleted: d, findString: c, matchesCount: _, matchesPosition: u } = a, h = (0, import_react.useCallback)(() => {
  636. s.executeCommand(re.id);
  637. }, [s]), R = (0, import_react.useCallback)((v) => r.changeFindString(v), [r]);
  638. return Le(r, n), o.jsxs(o.Fragment, { children: [
  639. o.jsx(
  640. Ae2,
  641. {
  642. findCompleted: d,
  643. className: "univer-find-input",
  644. matchesCount: _,
  645. matchesPosition: u,
  646. findReplaceService: r,
  647. localeService: i,
  648. findString: c,
  649. onChange: R
  650. }
  651. ),
  652. o.jsx("div", { className: L.findReplaceExpandContainer, children: o.jsx(Po, { type: "text", size: "small", onClick: h, children: i.t("find-replace.dialog.advanced-finding") }) })
  653. ] });
  654. });
  655. var Qt = (0, import_react.forwardRef)(function(e, n) {
  656. const i = W0(m), r = W0(Vr), s = W0(Pt), a = W0(o3), d = z0(i.currentMatch$, void 0, true), c = z0(i.replaceables$, void 0, true), _ = z0(i.state$, void 0, true), {
  657. matchesCount: u,
  658. matchesPosition: h,
  659. findString: R,
  660. inputtingFindString: v,
  661. replaceString: Ue,
  662. caseSensitive: Be,
  663. matchesTheWholeCell: We,
  664. findDirection: Ge,
  665. findScope: ke,
  666. findBy: Ve,
  667. findCompleted: W
  668. } = _, He = v.length === 0, qe = u === 0 || !(d != null && d.replaceable), Je = c.length === 0, Ke = (0, import_react.useCallback)(
  669. (f) => i.changeInputtingFindString(f),
  670. [i]
  671. ), ze = (0, import_react.useCallback)(
  672. (f) => i.changeReplaceString(f),
  673. [i]
  674. ), { focus: Ye } = Le(i, n), Ze2 = (0, import_react.useCallback)(() => {
  675. R === v ? i.moveToNextMatch() : (i.changeFindString(v), i.find());
  676. }, [R, v, i]), Qe = (0, import_react.useCallback)(() => s.executeCommand(Te.id), [s]), Xe = (0, import_react.useCallback)(async () => {
  677. await s.executeCommand(Ee.id), Ye();
  678. }, [s]), et = (0, import_react.useCallback)((f) => {
  679. i.changeFindDirection(f);
  680. }, [i]), tt = (0, import_react.useCallback)((f) => {
  681. i.changeFindScope(f);
  682. }, [i]), it2 = (0, import_react.useCallback)((f) => {
  683. i.changeFindBy(f);
  684. }, [i]), nt2 = ei(r), rt = ti(r), st = ii(r);
  685. return (0, import_react.useEffect)(() => {
  686. W && u === 0 && a.show({
  687. content: r.t("find-replace.dialog.no-match"),
  688. type: Xw.Warning,
  689. duration: 5e3
  690. });
  691. }, [W, u, a, r]), o.jsxs(o.Fragment, { children: [
  692. o.jsx(HO, { label: r.t("find-replace.dialog.find"), children: o.jsx(
  693. Ae2,
  694. {
  695. findCompleted: W,
  696. className: "univer-find-input",
  697. matchesCount: u,
  698. matchesPosition: h,
  699. findReplaceService: i,
  700. localeService: r,
  701. findString: v,
  702. onChange: Ke
  703. }
  704. ) }),
  705. o.jsx(HO, { label: r.t("find-replace.dialog.replace"), children: o.jsx(
  706. QC,
  707. {
  708. placeholder: r.t("find-replace.dialog.replace-placeholder"),
  709. value: Ue,
  710. onChange: (f) => ze(f)
  711. }
  712. ) }),
  713. o.jsx(HO, { label: r.t("find-replace.dialog.find-direction.title"), children: o.jsx(r_, { value: Ge, options: rt, onChange: et }) }),
  714. o.jsx(VO, { children: o.jsxs(o.Fragment, { children: [
  715. o.jsx(HO, { label: r.t("find-replace.dialog.find-scope.title"), children: o.jsx(r_, { value: ke, options: nt2, onChange: tt }) }),
  716. o.jsx(HO, { label: r.t("find-replace.dialog.find-by.title"), children: o.jsx(r_, { value: Ve, options: st, onChange: it2 }) })
  717. ] }) }),
  718. o.jsx(VO, { children: o.jsxs(o.Fragment, { children: [
  719. o.jsx(HO, { children: o.jsx(
  720. um,
  721. {
  722. checked: Be,
  723. onChange: (f) => {
  724. i.changeCaseSensitive(f);
  725. },
  726. children: r.t("find-replace.dialog.case-sensitive")
  727. }
  728. ) }),
  729. o.jsx(HO, { children: o.jsx(
  730. um,
  731. {
  732. checked: We,
  733. onChange: (f) => {
  734. i.changeMatchesTheWholeCell(f);
  735. },
  736. children: r.t("find-replace.dialog.match-the-whole-cell")
  737. }
  738. ) })
  739. ] }) }),
  740. o.jsxs("div", { className: L.findReplaceButtonsGroup, children: [
  741. o.jsx(Po, { type: "primary", onClick: Ze2, disabled: He, children: r.t("find-replace.dialog.find") }),
  742. o.jsxs("span", { className: L.findReplaceButtonsGroupRight, children: [
  743. o.jsx(Po, { disabled: qe, onClick: Qe, children: r.t("find-replace.dialog.replace") }),
  744. o.jsx(Po, { disabled: Je, onClick: Xe, children: r.t("find-replace.dialog.replace-all") })
  745. ] })
  746. ] })
  747. ] });
  748. });
  749. function Xt() {
  750. const t = W0(m), e = W0(_1), n = W0(fs), i = z0(t.state$, void 0, true), r = (0, import_react.useRef)(null);
  751. (0, import_react.useEffect)(() => {
  752. let c;
  753. return r.current && (c = e.registerContainerElement(r.current)), () => c == null ? void 0 : c.dispose();
  754. }, [e]);
  755. const s = (0, import_react.useRef)(null), a = (0, import_react.useCallback)(
  756. (c) => n.setContextValue(De, c),
  757. [n]
  758. ), d = (0, import_react.useCallback)(
  759. (c) => n.setContextValue(Fe2, c),
  760. [n]
  761. );
  762. return (0, import_react.useEffect)(() => {
  763. var _;
  764. const c = fromEvent(document, "focusin").subscribe((u) => {
  765. var h;
  766. u.target && ((h = r.current) != null && h.contains(u.target)) ? a(true) : a(false), !s.current || !s.current.selectHasFocus() ? d(true) : d(false);
  767. });
  768. return (_ = s.current) == null || _.focus(), a(true), d(true), () => {
  769. c.unsubscribe(), a(false);
  770. };
  771. }, [a, d]), o.jsx("div", { className: L.findReplaceDialogContainer, ref: r, children: i.replaceRevealed ? o.jsx(Qt, { ref: s }) : o.jsx(Zt, { ref: s }) });
  772. }
  773. function ei(t) {
  774. const e = t.getCurrentLocale();
  775. return (0, import_react.useMemo)(() => [
  776. { label: t.t("find-replace.dialog.find-scope.current-sheet"), value: Y.SUBUNIT },
  777. { label: t.t("find-replace.dialog.find-scope.workbook"), value: Y.UNIT }
  778. ], [e]);
  779. }
  780. function ti(t) {
  781. const e = t.getCurrentLocale();
  782. return (0, import_react.useMemo)(() => [
  783. { label: t.t("find-replace.dialog.find-direction.row"), value: K.ROW },
  784. { label: t.t("find-replace.dialog.find-direction.column"), value: K.COLUMN }
  785. ], [e]);
  786. }
  787. function ii(t) {
  788. const e = t.getCurrentLocale();
  789. return (0, import_react.useMemo)(() => [
  790. { label: t.t("find-replace.dialog.find-by.value"), value: z.VALUE },
  791. { label: t.t("find-replace.dialog.find-by.formula"), value: z.FORMULA }
  792. ], [e]);
  793. }
  794. function T(t) {
  795. return t.getContextValue(De);
  796. }
  797. function ni(t) {
  798. return t.getContextValue(Pe);
  799. }
  800. function je(t) {
  801. return t.getContextValue(Fe2);
  802. }
  803. var B = "7_find-replace-shortcuts";
  804. function se(t) {
  805. return t.getContextValue(Gn);
  806. }
  807. function ae(t) {
  808. return !t.getContextValue(oE);
  809. }
  810. var ri = {
  811. id: O.id,
  812. description: "find-replace.shortcut.open-find-dialog",
  813. binding: I1.F | Ae.CTRL_COMMAND,
  814. group: B,
  815. preconditions(t) {
  816. return !T(t) && se(t) && ae(t);
  817. }
  818. };
  819. var si = {
  820. id: O.id,
  821. description: "find-replace.shortcut.open-find-dialog",
  822. binding: I1.F | Ae.CTRL_COMMAND,
  823. mac: I1.F | Ae.MAC_CTRL,
  824. preconditions(t) {
  825. return !T(t) && se(t) && ae(t);
  826. }
  827. };
  828. var ai = {
  829. id: re.id,
  830. description: "find-replace.shortcut.open-replace-dialog",
  831. binding: I1.H | Ae.CTRL_COMMAND,
  832. mac: I1.H | Ae.MAC_CTRL,
  833. group: B,
  834. preconditions(t) {
  835. return se(t) && ae(t) && (!T(t) || !ni(t));
  836. }
  837. };
  838. var oi = {
  839. id: Ne.id,
  840. description: "find-replace.shortcut.go-to-next-match",
  841. binding: I1.ENTER,
  842. group: B,
  843. priority: 1e3,
  844. preconditions(t) {
  845. return je(t) && T(t);
  846. }
  847. };
  848. var ci = {
  849. id: $e2.id,
  850. description: "find-replace.shortcut.go-to-previous-match",
  851. binding: I1.ENTER | Ae.SHIFT,
  852. group: B,
  853. priority: 1e3,
  854. preconditions(t) {
  855. return je(t) && T(t);
  856. }
  857. };
  858. function li(t) {
  859. const e = t.get(fs);
  860. return {
  861. id: O.id,
  862. icon: "SearchIcon",
  863. tooltip: "find-replace.toolbar",
  864. type: $e.BUTTON,
  865. hidden$: Fa(t, Fe.UNIVER_SHEET),
  866. disabled$: combineLatest([
  867. e.subscribeContextValue$(oE),
  868. e.subscribeContextValue$(Gn)
  869. ]).pipe(map(([n, i]) => n || !i))
  870. };
  871. }
  872. var di = {
  873. [l1.OTHERS]: {
  874. [O.id]: {
  875. order: 2,
  876. menuItemFactory: li
  877. }
  878. }
  879. };
  880. var ui = Object.defineProperty;
  881. var hi = Object.getOwnPropertyDescriptor;
  882. var fi = (t, e, n, i) => {
  883. for (var r = i > 1 ? void 0 : i ? hi(e, n) : e, s = t.length - 1, a; s >= 0; s--)
  884. (a = t[s]) && (r = (i ? a(e, n, r) : a(r)) || r);
  885. return i && r && ui(e, n, r), r;
  886. };
  887. var S = (t, e) => (n, i) => e(n, i, t);
  888. var fe = "DESKTOP_FIND_REPLACE_DIALOG";
  889. var we = 350;
  890. var pi = 20;
  891. var _i = -90;
  892. var j = class extends J0 {
  893. constructor(e, n, i, r, s, a, d, c, _, u) {
  894. super();
  895. l(this, "_closingListenerDisposable");
  896. this._univerInstanceService = e, this._menuManagerService = n, this._shortcutService = i, this._commandService = r, this._findReplaceService = s, this._dialogService = a, this._layoutService = d, this._localeService = c, this._componentManager = _, this._injector = u, this._initCommands(), this._initUI(), this._initShortcuts();
  897. }
  898. dispose() {
  899. var e;
  900. super.dispose(), (e = this._closingListenerDisposable) == null || e.dispose(), this._closingListenerDisposable = null;
  901. }
  902. _initCommands() {
  903. [
  904. O,
  905. re,
  906. Ne,
  907. $e2,
  908. Ee,
  909. Te
  910. ].forEach((e) => {
  911. this.disposeWithMe(this._commandService.registerCommand(e));
  912. });
  913. }
  914. _initShortcuts() {
  915. [
  916. ai,
  917. ri,
  918. si,
  919. ci,
  920. oi
  921. ].forEach((e) => this.disposeWithMe(this._shortcutService.registerShortcut(e)));
  922. }
  923. _initUI() {
  924. this.disposeWithMe(this._componentManager.register("FindReplaceDialog", Xt)), this.disposeWithMe(this._componentManager.register("SearchIcon", Ie)), this._menuManagerService.mergeMenu(di), this._findReplaceService.stateUpdates$.pipe(takeUntil(this.dispose$)).subscribe((e) => {
  925. e.revealed === true && this._openPanel();
  926. });
  927. }
  928. _openPanel() {
  929. this._dialogService.open({
  930. id: fe,
  931. draggable: true,
  932. width: we,
  933. title: { title: this._localeService.t("find-replace.dialog.title") },
  934. children: { label: "FindReplaceDialog" },
  935. destroyOnClose: true,
  936. defaultPosition: gi(),
  937. preservePositionOnDestroy: true,
  938. onClose: () => this.closePanel()
  939. }), this._closingListenerDisposable = Ze(this._univerInstanceService.focused$.pipe(takeUntil(this.dispose$)).subscribe((e) => {
  940. (!e || !this._univerInstanceService.getUniverSheetInstance(e)) && this.closePanel();
  941. }));
  942. }
  943. closePanel() {
  944. this._closingListenerDisposable && (this._closingListenerDisposable.dispose(), this._closingListenerDisposable = null, this._dialogService.close(fe), this._findReplaceService.terminate(), queueMicrotask(() => this._layoutService.focus()));
  945. }
  946. };
  947. j = fi([
  948. S(0, _n),
  949. S(1, m1),
  950. S(2, it),
  951. S(3, Pt),
  952. S(4, m),
  953. S(5, h3),
  954. S(6, _1),
  955. S(7, ot(Vr)),
  956. S(8, ot(n1)),
  957. S(9, ot(Ot))
  958. ], j);
  959. function gi() {
  960. const { innerWidth: t } = window;
  961. return { x: (t - we) / 2 - pi, y: _i };
  962. }
  963. var mi = Object.defineProperty;
  964. var vi = Object.getOwnPropertyDescriptor;
  965. var Si = (t, e, n, i) => {
  966. for (var r = i > 1 ? void 0 : i ? vi(e, n) : e, s = t.length - 1, a; s >= 0; s--)
  967. (a = t[s]) && (r = (i ? a(e, n, r) : a(r)) || r);
  968. return i && r && mi(e, n, r), r;
  969. };
  970. var pe = (t, e) => (n, i) => e(n, i, t);
  971. var Ci = "UNIVER_FIND_REPLACE_PLUGIN";
  972. var V;
  973. var _e = (V = class extends Ra {
  974. constructor(t = de, e, n) {
  975. super(), this._config = t, this._injector = e, this._configService = n;
  976. const { ...i } = nu(
  977. {},
  978. de,
  979. this._config
  980. );
  981. this._configService.setConfig(Nt, i);
  982. }
  983. onStarting() {
  984. [
  985. [j],
  986. [m, { useClass: Z }]
  987. ].forEach((t) => this._injector.add(t));
  988. }
  989. onRendered() {
  990. this._injector.get(j);
  991. }
  992. }, l(V, "pluginName", Ci), V);
  993. _e = Si([
  994. pe(1, ot(Ot)),
  995. pe(2, SE)
  996. ], _e);
  997. export {
  998. Di,
  999. m,
  1000. J,
  1001. K,
  1002. z,
  1003. Y,
  1004. ne,
  1005. Gt,
  1006. Te,
  1007. Ee,
  1008. O,
  1009. re,
  1010. Ne,
  1011. $e2 as $e,
  1012. j,
  1013. _e
  1014. };
  1015. /*! Bundled license information:
  1016. @univerjs/find-replace/lib/es/index.js:
  1017. (**
  1018. * @license React
  1019. * react-jsx-runtime.production.min.js
  1020. *
  1021. * Copyright (c) Facebook, Inc. and its affiliates.
  1022. *
  1023. * This source code is licensed under the MIT license found in the
  1024. * LICENSE file in the root directory of this source tree.
  1025. *)
  1026. */
  1027. //# sourceMappingURL=chunk-NND5TVYZ.js.map