@libs-ui/components-preview-text-data 0.2.357-33 → 0.2.357-35

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.
@@ -2,15 +2,19 @@ import * as i0 from '@angular/core';
2
2
  import { signal, inject, DestroyRef, computed, input, model, output, viewChild, effect, Component, ChangeDetectionStrategy } from '@angular/core';
3
3
  import { linter, lintGutter } from '@codemirror/lint';
4
4
  import { EditorState, Transaction, Compartment, Prec } from '@codemirror/state';
5
- import { EditorView, lineNumbers } from '@codemirror/view';
5
+ import { runScopeHandlers, EditorView, lineNumbers } from '@codemirror/view';
6
6
  import { LibsUiComponentsButtonsButtonComponent } from '@libs-ui/components-buttons-button';
7
7
  import { LibsUiComponentsDropdownComponent } from '@libs-ui/components-dropdown';
8
8
  import { LibsUiNotificationService } from '@libs-ui/services-notification';
9
+ import * as i1 from '@ngx-translate/core';
10
+ import { TranslateService, TranslateModule } from '@ngx-translate/core';
11
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
9
12
  import { basicSetup } from 'codemirror6';
10
13
  import { returnListObject } from '@libs-ui/services-http-request';
11
14
  import { UtilsHttpParamsRequest, get } from '@libs-ui/utils';
12
15
  import { syntaxTree, ensureSyntaxTree } from '@codemirror/language';
13
16
  import { autocompletion } from '@codemirror/autocomplete';
17
+ import { getSearchQuery, findPrevious, findNext, selectMatches, closeSearchPanel, replaceNext, replaceAll, setSearchQuery, SearchQuery, search } from '@codemirror/search';
14
18
 
15
19
  /**
16
20
  * Danh sách các ngôn ngữ được hỗ trợ
@@ -593,13 +597,20 @@ const buildSqlErrorMessage = (doc, node) => {
593
597
  return 'Missing closing ")"';
594
598
  return `Unexpected end of SQL after "${prevToken}"`;
595
599
  };
600
+ /**
601
+ * Lỗi Lezer rơi đúng vào dấu `_` MỞ ĐẦU một tên (`b._id`, `_id`) — báo oan.
602
+ *
603
+ * 🔴 `@codemirror/lang-sql` 6.10 chỉ nhận chữ/số làm ký tự đầu tên (`isAlpha` bỏ `_`), nên tên hợp lệ
604
+ * như `b._id` bị vẽ chấm đỏ (người dùng chỉ ra 30/09/2026). `_` đứng SAU chữ/số là giữa tên, không đụng.
605
+ */
606
+ const isUnderscoreIdentifierStart = (doc, pos) => pos < doc.length && doc.sliceString(pos, pos + 1) === '_' && !/\w/.test(pos > 0 ? doc.sliceString(pos - 1, pos) : '');
596
607
  /** Phát hiện lỗi cú pháp SQL từ error node của syntaxTree (Lezer). */
597
608
  const computeSqlDiagnostics = (view) => {
598
609
  const diagnostics = [];
599
610
  const doc = view.state.doc;
600
611
  syntaxTree(view.state).iterate({
601
612
  enter: (node) => {
602
- if (!node.type.isError)
613
+ if (!node.type.isError || isUnderscoreIdentifierStart(doc, node.from))
603
614
  return;
604
615
  diagnostics.push({ from: Math.max(0, node.from - 1), to: node.from, severity: 'error', message: buildSqlErrorMessage(doc, node) });
605
616
  },
@@ -766,6 +777,191 @@ const buildForbiddenExtension = (patterns, emitViolations) => {
766
777
  return [forbiddenLinter, pasteFilter];
767
778
  };
768
779
 
780
+ /** Đếm tối đa bấy nhiêu chỗ khớp — câu lệnh rất dài mà đếm hết thì mỗi phím gõ đều khựng. */
781
+ const searchCountLimit = 999;
782
+ const searchToggles = [
783
+ { name: 'case', label: 'Aa', phrase: 'match case' },
784
+ { name: 'word', label: 'ab', phrase: 'by word' },
785
+ { name: 're', label: '.*', phrase: 'regexp' },
786
+ ];
787
+ const createElement = (tag, className, attributes = {}) => {
788
+ const element = document.createElement(tag);
789
+ element.className = className;
790
+ Object.entries(attributes).forEach(([key, value]) => element.setAttribute(key, value));
791
+ return element;
792
+ };
793
+ /** Vị trí chỗ khớp đang chọn / tổng số chỗ khớp — `current` = 0 khi con trỏ chưa đứng trên chỗ khớp nào. */
794
+ const countMatches = (state, query) => {
795
+ if (!query.valid) {
796
+ return { current: 0, total: 0 };
797
+ }
798
+ const { from, to } = state.selection.main;
799
+ const cursor = query.getCursor(state);
800
+ let total = 0;
801
+ let current = 0;
802
+ for (let next = cursor.next(); !next.done && total < searchCountLimit; next = cursor.next()) {
803
+ total++;
804
+ if (next.value.from === from && next.value.to === to) {
805
+ current = total;
806
+ }
807
+ }
808
+ return { current, total };
809
+ };
810
+ /**
811
+ * Khung tìm/thay thế (Ctrl + F) dựng lại thay khung mặc định của `@codemirror/search`.
812
+ *
813
+ * 🔴 Khung mặc định xếp ô, nút và ô tích nối đuôi nhau bằng `<br>` — rộng thì hàng Thay dính lên hàng Tìm, hẹp thì
814
+ * ô tích chen vào giữa, CSS không sắp nổi (người dùng chỉ ra 30/09/2026). Tự dựng DOM để bố cục cố định hai hàng.
815
+ * Chữ lấy qua `state.phrase` — nơi dùng cấp bản dịch bằng `EditorState.phrases`.
816
+ */
817
+ class LibsUiSearchPanel {
818
+ view;
819
+ dom;
820
+ top = false;
821
+ query;
822
+ searchField;
823
+ replaceField;
824
+ countLabel;
825
+ toggleButtons = new Map();
826
+ navigateButtons = [];
827
+ constructor(view) {
828
+ this.view = view;
829
+ const phrase = (text) => view.state.phrase(text);
830
+ this.query = getSearchQuery(view.state);
831
+ this.dom = createElement('div', 'libs-ui-cm-search');
832
+ this.dom.addEventListener('keydown', (event) => this.handlerKeydown(event));
833
+ // Lưới 2 hàng kiểu Sublime: [nhãn] [ô nhập giãn hết] [nút] [nút] [✕] — hai hàng thẳng cột tuyệt đối.
834
+ // Hàng 1: Tìm — trong ô có số kết quả · ↑ ↓ · Aa ab .*; nút "Tìm tiếp" · "Chọn tất cả".
835
+ // Hàng 2: Thay — nút "Thay" · "Thay tất cả". Ô chỉ đọc thì không có hàng 2.
836
+ const searchBox = createElement('div', 'libs-ui-cm-search-field', { 'data-area': 'find-field' });
837
+ this.searchField = this.createInput('search', phrase('Find'), this.query.search);
838
+ this.searchField.setAttribute('main-field', 'true');
839
+ this.countLabel = createElement('span', 'libs-ui-cm-search-count');
840
+ searchBox.append(createElement('i', 'libs-ui-icon-search libs-ui-cm-search-field-icon'), this.searchField, this.countLabel, this.createIconButton('prev', 'libs-ui-icon-chevron-right', phrase('previous'), () => findPrevious(view), true), this.createIconButton('next', 'libs-ui-icon-chevron-right', phrase('next'), () => findNext(view), true), createElement('span', 'libs-ui-cm-search-divider'));
841
+ for (const toggle of searchToggles) {
842
+ const button = createElement('button', 'libs-ui-cm-search-toggle', { type: 'button', name: toggle.name, title: phrase(toggle.phrase), 'aria-label': phrase(toggle.phrase) });
843
+ button.textContent = toggle.label;
844
+ button.addEventListener('click', () => {
845
+ button.setAttribute('aria-pressed', String(button.getAttribute('aria-pressed') !== 'true'));
846
+ this.commit();
847
+ });
848
+ this.toggleButtons.set(toggle.name, button);
849
+ searchBox.append(button);
850
+ }
851
+ this.dom.append(this.createLabel(phrase('Find:'), 'find-label'), searchBox, this.createTextButton('findNext', phrase('Find next'), () => findNext(view), 'is-primary'), this.createTextButton('select', phrase('all'), () => selectMatches(view)), this.createIconButton('close', 'libs-ui-icon-close', phrase('close'), () => closeSearchPanel(view)));
852
+ this.replaceField = this.createInput('replace', phrase('Replace'), this.query.replace);
853
+ if (!view.state.readOnly) {
854
+ const replaceBox = createElement('div', 'libs-ui-cm-search-field', { 'data-area': 'replace-field' });
855
+ replaceBox.append(createElement('i', 'libs-ui-icon-move-right libs-ui-cm-search-field-icon'), this.replaceField);
856
+ this.dom.append(this.createLabel(phrase('Replace:'), 'replace-label'), replaceBox, this.createTextButton('replace', phrase('replace'), () => replaceNext(view)), this.createTextButton('replaceAll', phrase('replace all'), () => replaceAll(view)));
857
+ }
858
+ this.syncToggles();
859
+ this.renderCount(view.state);
860
+ }
861
+ mount() {
862
+ this.searchField.select();
863
+ }
864
+ update(update) {
865
+ let queryChanged = false;
866
+ for (const transaction of update.transactions) {
867
+ for (const effect of transaction.effects) {
868
+ if (effect.is(setSearchQuery) && !effect.value.eq(this.query)) {
869
+ this.query = effect.value;
870
+ this.searchField.value = this.query.search;
871
+ this.replaceField.value = this.query.replace;
872
+ this.syncToggles();
873
+ queryChanged = true;
874
+ }
875
+ }
876
+ }
877
+ if (queryChanged || update.docChanged || update.selectionSet) {
878
+ this.renderCount(update.state);
879
+ }
880
+ }
881
+ createLabel(text, area) {
882
+ const label = createElement('span', 'libs-ui-cm-search-label', { 'data-area': area });
883
+ label.textContent = text;
884
+ return label;
885
+ }
886
+ createInput(name, placeholder, value) {
887
+ const input = createElement('input', 'libs-ui-cm-search-input', { name, placeholder, 'aria-label': placeholder, form: '', autocomplete: 'off', spellcheck: 'false' });
888
+ input.value = value;
889
+ input.addEventListener('input', () => this.commit());
890
+ return input;
891
+ }
892
+ createIconButton(name, iconClass, title, action, isNavigate = false) {
893
+ const button = createElement('button', 'libs-ui-cm-search-icon-button', { type: 'button', name, title, 'aria-label': title });
894
+ button.append(createElement('i', iconClass));
895
+ button.addEventListener('click', action);
896
+ if (isNavigate) {
897
+ this.navigateButtons.push(button);
898
+ }
899
+ return button;
900
+ }
901
+ createTextButton(name, label, action, variant = '') {
902
+ const button = createElement('button', `libs-ui-cm-search-button ${variant}`.trim(), { type: 'button', name });
903
+ button.textContent = label;
904
+ button.addEventListener('click', action);
905
+ return button;
906
+ }
907
+ isToggleOn(name) {
908
+ return this.toggleButtons.get(name)?.getAttribute('aria-pressed') === 'true';
909
+ }
910
+ syncToggles() {
911
+ this.toggleButtons.get('case')?.setAttribute('aria-pressed', String(this.query.caseSensitive));
912
+ this.toggleButtons.get('word')?.setAttribute('aria-pressed', String(this.query.wholeWord));
913
+ this.toggleButtons.get('re')?.setAttribute('aria-pressed', String(this.query.regexp));
914
+ }
915
+ commit() {
916
+ const query = new SearchQuery({
917
+ search: this.searchField.value,
918
+ replace: this.replaceField.value,
919
+ caseSensitive: this.isToggleOn('case'),
920
+ wholeWord: this.isToggleOn('word'),
921
+ regexp: this.isToggleOn('re'),
922
+ });
923
+ if (query.eq(this.query)) {
924
+ return;
925
+ }
926
+ this.query = query;
927
+ this.view.dispatch({ effects: setSearchQuery.of(query) });
928
+ // `update` bỏ qua hiệu ứng của chính mình (query đã trùng) — phải tự vẽ lại số đếm, không thì gõ xong vẫn trống.
929
+ this.renderCount(this.view.state);
930
+ }
931
+ renderCount(state) {
932
+ const { current, total } = countMatches(state, this.query);
933
+ const hasKeyword = this.query.search.length > 0;
934
+ const totalLabel = total >= searchCountLimit ? `${searchCountLimit}+` : `${total}`;
935
+ // Con trỏ đứng trên một chỗ khớp ⇒ "2/8"; chưa đứng ⇒ "8 kết quả" (kiểu "–/8" người đọc không hiểu).
936
+ const matchText = current ? `${current}/${totalLabel}` : state.phrase('$1 results', totalLabel);
937
+ this.countLabel.textContent = hasKeyword ? (total ? matchText : state.phrase('No results')) : '';
938
+ this.countLabel.classList.toggle('is-empty', hasKeyword && !total);
939
+ this.countLabel.classList.toggle('is-hidden', !hasKeyword);
940
+ this.searchField.parentElement?.classList.toggle('is-invalid', hasKeyword && (!total || !this.query.valid));
941
+ this.navigateButtons.forEach((button) => (button.disabled = !total));
942
+ }
943
+ handlerKeydown(event) {
944
+ if (runScopeHandlers(this.view, event, 'search-panel')) {
945
+ event.preventDefault();
946
+ return;
947
+ }
948
+ if (event.key !== 'Enter') {
949
+ return;
950
+ }
951
+ if (event.target === this.searchField) {
952
+ event.preventDefault();
953
+ (event.shiftKey ? findPrevious : findNext)(this.view);
954
+ return;
955
+ }
956
+ if (event.target === this.replaceField) {
957
+ event.preventDefault();
958
+ replaceNext(this.view);
959
+ }
960
+ }
961
+ }
962
+ /** Extension khung tìm/thay thế của ô soạn — thay khung mặc định của `@codemirror/search`. */
963
+ const buildSearchPanelExtension = () => search({ createPanel: (view) => new LibsUiSearchPanel(view) });
964
+
769
965
  /** Parse giá trị CSS px → number. Trả về undefined nếu không phải px hợp lệ (vd `none`, `0`). */
770
966
  const parsePx = (raw) => {
771
967
  if (!raw || !raw.endsWith('px')) {
@@ -1271,12 +1467,16 @@ class LibsUiComponentsPreviewTextDataComponent {
1271
1467
  // PRIVATE PROPERTIES
1272
1468
  // ==========================================================================
1273
1469
  editorViewInstance;
1470
+ /** Phím tắt mở khung tìm/thay thế — máy Mac dùng ⌘ thay Ctrl, gợi ý sai phím thì người dùng bấm không ăn. */
1471
+ searchShortcut = typeof navigator !== 'undefined' && /Mac|iPhone|iPad/i.test(navigator.platform) ? '⌘ + F' : 'Ctrl + F';
1274
1472
  wrapCompartment = new Compartment();
1275
1473
  languageCompartment = new Compartment();
1276
1474
  lineNumberCompartment = new Compartment();
1277
1475
  linterCompartment = new Compartment();
1278
1476
  completionsCompartment = new Compartment();
1279
1477
  forbiddenCompartment = new Compartment();
1478
+ /** Nhãn của khung tìm/thay thế (Ctrl + F) — dịch theo ngôn ngữ đang dùng, đổi ngôn ngữ thì nạp lại. */
1479
+ phrasesCompartment = new Compartment();
1280
1480
  contentStateNoWrap = signal('');
1281
1481
  /** Cache để tránh load lại language đã load */
1282
1482
  languageCache = new Map();
@@ -1287,6 +1487,7 @@ class LibsUiComponentsPreviewTextDataComponent {
1287
1487
  // ==========================================================================
1288
1488
  notificationService = inject(LibsUiNotificationService);
1289
1489
  destroyRef = inject(DestroyRef);
1490
+ translateService = inject(TranslateService);
1290
1491
  // ==========================================================================
1291
1492
  // PROTECTED SIGNALS
1292
1493
  // ==========================================================================
@@ -1434,6 +1635,10 @@ class LibsUiComponentsPreviewTextDataComponent {
1434
1635
  // LIFECYCLE HOOKS
1435
1636
  // ==========================================================================
1436
1637
  ngOnInit() {
1638
+ // Đổi ngôn ngữ ⇒ nạp lại nhãn khung tìm/thay thế (CodeMirror chỉ đọc `phrases` lúc dựng panel).
1639
+ this.translateService.onLangChange.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
1640
+ this.editorViewInstance?.dispatch({ effects: this.phrasesCompartment.reconfigure(this.createSearchPhrases()) });
1641
+ });
1437
1642
  if (this.langsAccept()?.length) {
1438
1643
  this.configLoadDataIsHttpConfig.set(httpRequestConfigGetOptionsLang(this.langsAccept(), this.langsChangeLabel()));
1439
1644
  }
@@ -1479,6 +1684,8 @@ class LibsUiComponentsPreviewTextDataComponent {
1479
1684
  lintGutter(),
1480
1685
  this.createBracketTheme(),
1481
1686
  this.createUpdateListener(),
1687
+ buildSearchPanelExtension(),
1688
+ this.phrasesCompartment.of(this.createSearchPhrases()),
1482
1689
  ];
1483
1690
  }
1484
1691
  /**
@@ -1510,6 +1717,32 @@ class LibsUiComponentsPreviewTextDataComponent {
1510
1717
  // ==========================================================================
1511
1718
  // PRIVATE METHODS - Theme configuration
1512
1719
  // ==========================================================================
1720
+ /**
1721
+ * Nhãn khung tìm/thay thế của CodeMirror — mặc định là tiếng Anh cứng (`Find`, `next`, `match case`…).
1722
+ * Khoá bên trái là CHUỖI GỐC mà `@codemirror/search` tra trong `phrases`, không đổi được.
1723
+ */
1724
+ createSearchPhrases() {
1725
+ const translate = (key) => this.translateService.instant(key);
1726
+ return EditorState.phrases.of({
1727
+ Find: translate('i18n_code_editor_find'),
1728
+ Replace: translate('i18n_code_editor_replace'),
1729
+ next: translate('i18n_code_editor_find_next'),
1730
+ previous: translate('i18n_code_editor_find_previous'),
1731
+ all: translate('i18n_code_editor_select_all_matches'),
1732
+ 'match case': translate('i18n_code_editor_match_case'),
1733
+ regexp: translate('i18n_code_editor_regexp'),
1734
+ 'by word': translate('i18n_code_editor_by_word'),
1735
+ replace: translate('i18n_code_editor_replace_one'),
1736
+ 'replace all': translate('i18n_code_editor_replace_all'),
1737
+ close: translate('i18n_code_editor_close_search'),
1738
+ 'No results': translate('i18n_code_editor_no_results'),
1739
+ 'Find:': translate('i18n_code_editor_find_label'),
1740
+ 'Replace:': translate('i18n_code_editor_replace_label'),
1741
+ 'Find next': translate('i18n_code_editor_find_next_button'),
1742
+ // `$1` là chỗ CodeMirror chèn số khi gọi `state.phrase('$1 results', n)`.
1743
+ '$1 results': this.translateService.instant('i18n_code_editor_match_count', { count: '$1' }),
1744
+ });
1745
+ }
1513
1746
  createLightTheme() {
1514
1747
  return EditorView.theme({
1515
1748
  '&': { backgroundColor: this.background(), color: '#333' },
@@ -1671,11 +1904,11 @@ class LibsUiComponentsPreviewTextDataComponent {
1671
1904
  });
1672
1905
  }
1673
1906
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LibsUiComponentsPreviewTextDataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1674
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: LibsUiComponentsPreviewTextDataComponent, isStandalone: true, selector: "libs_ui-components-preview_text_data", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, langSelected: { classPropertyName: "langSelected", publicName: "langSelected", isSignal: true, isRequired: true, transformFunction: null }, langsAccept: { classPropertyName: "langsAccept", publicName: "langsAccept", isSignal: true, isRequired: false, transformFunction: null }, langsChangeLabel: { classPropertyName: "langsChangeLabel", publicName: "langsChangeLabel", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, hiddenAction: { classPropertyName: "hiddenAction", publicName: "hiddenAction", isSignal: true, isRequired: false, transformFunction: null }, minLines: { classPropertyName: "minLines", publicName: "minLines", isSignal: true, isRequired: false, transformFunction: null }, maxLines: { classPropertyName: "maxLines", publicName: "maxLines", isSignal: true, isRequired: false, transformFunction: null }, containerElement: { classPropertyName: "containerElement", publicName: "containerElement", isSignal: true, isRequired: false, transformFunction: null }, zIndexPopover: { classPropertyName: "zIndexPopover", publicName: "zIndexPopover", isSignal: true, isRequired: false, transformFunction: null }, hiddenSearchLang: { classPropertyName: "hiddenSearchLang", publicName: "hiddenSearchLang", isSignal: true, isRequired: false, transformFunction: null }, lintIgnorePatterns: { classPropertyName: "lintIgnorePatterns", publicName: "lintIgnorePatterns", isSignal: true, isRequired: false, transformFunction: null }, completions: { classPropertyName: "completions", publicName: "completions", isSignal: true, isRequired: false, transformFunction: null }, forbiddenPatterns: { classPropertyName: "forbiddenPatterns", publicName: "forbiddenPatterns", isSignal: true, isRequired: false, transformFunction: null }, background: { classPropertyName: "background", publicName: "background", isSignal: true, isRequired: false, transformFunction: null }, showFormatAction: { classPropertyName: "showFormatAction", publicName: "showFormatAction", isSignal: true, isRequired: false, transformFunction: null }, autoFormatOnLoad: { classPropertyName: "autoFormatOnLoad", publicName: "autoFormatOnLoad", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { langSelected: "langSelectedChange", outChange: "outChange", syntaxErrors: "syntaxErrors", outViolations: "outViolations" }, viewQueries: [{ propertyName: "containerPreview", first: true, predicate: ["containerPreview"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"libs-ui-preview-data-container flex flex-col w-full h-auto rounded-[8px] libs-ui-border-general px-[8px]\"\n [style.--background-color]=\"background()\"\n [class.pt-[8px]]=\"!hiddenAction()\">\n @if (!hiddenAction()) {\n <div class=\"flex items-center content-between color-[#6a7383]\">\n <libs_ui-components-dropdown\n classInclude=\"w-[200px]\"\n [listConfig]=\"configLoadDataIsHttpConfig()\"\n [listMaxItemShow]=\"5\"\n [zIndex]=\"zIndexPopover()\"\n [isNgContent]=\"true\"\n [readonly]=\"!editable() || !acceptChangeLang()\"\n [listHasButtonUnSelectOption]=\"false\"\n [listHiddenInputSearch]=\"hiddenSearchLang()\"\n (outSelectKey)=\"handlerSelectKey($event)\">\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"labelLang() || ''\"\n [sizeButton]=\"'small'\"\n [classIconRight]=\"editable() && acceptChangeLang() ? 'libs-ui-icon-move-right rotate-90' : ''\"\n [classInclude]=\"'!p-[0px]' + (editable() && acceptChangeLang() ? '' : '!pointer-events-none !cursor-default hover:!text-[#6A7383]')\" />\n </libs_ui-components-dropdown>\n <div class=\"flex items-center\">\n <!-- \u0110\u1ECBnh d\u1EA1ng: \u0111\u1EE9ng tr\u01B0\u1EDBc \"Xu\u1ED1ng d\u00F2ng\" v\u00EC n\u00F3 l\u00E0 thao t\u00E1c tr\u00EAn N\u1ED8I DUNG, hai n\u00FAt sau ch\u1EC9 \u0111\u1ED5i\n c\u00E1ch hi\u1EC3n th\u1ECB. Ch\u1EC9 hi\u1EC7n khi \u00F4 s\u1EEDa \u0111\u01B0\u1EE3c v\u00E0 ng\u00F4n ng\u1EEF c\u00F3 b\u1ED9 \u0111\u1ECBnh d\u1EA1ng \u2014 xem `canFormat`. -->\n @if (canFormat()) {\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_format_code'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-align-left'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerFormat()\" />\n }\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"isWrap() ? 'i18n_remove_line_wrap' : 'i18n_line_wrap'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"isWrap() ? 'libs-ui-icon-unwrap' : 'libs-ui-icon-wrap'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerLineWrap()\" />\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_copy'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-copy'\"\n [classInclude]=\"'mo-lib-p-0px'\"\n (outClick)=\"handlerCopy()\" />\n </div>\n </div>\n }\n <div #containerPreview></div>\n</div>\n", styles: [":host ::ng-deep .libs-ui-preview-data-container{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-line{white-space:pre-wrap}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-error{background-color:#ff323233;border-bottom:2px solid red}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-warning{background-color:#ffc80026}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-lint{background:#fff8f8;color:#d32f2f;border:1px solid #f44336;padding:8px 10px;font-size:13px;font-family:Inter,sans-serif;border-radius:6px;box-shadow:0 2px 8px #ff000026}:host ::ng-deep .libs-ui-preview-data-container .cm-focused{outline:none!important}:host ::ng-deep .libs-ui-preview-data-container .cm-content,:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{font-family:JetBrains Mono,Fira Code,Cascadia Mono,Consolas,DejaVu Sans Mono,monospace;font-size:12px}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLine{background-color:#f4f8ff!important}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLineGutter{background-color:#f4f8ff!important;color:#1a73e8}:host ::ng-deep .libs-ui-preview-data-container .cm-lineNumbers .cm-gutterElement{color:#9aa0a6}:host ::ng-deep .libs-ui-preview-data-container .cm-cursor,:host ::ng-deep .libs-ui-preview-data-container .cm-dropCursor{border-left-color:#1a73e8!important}:host ::ng-deep .libs-ui-preview-data-container .cm-matchingBracket{background-color:#d2e3fc!important;color:inherit!important;font-weight:600}:host ::ng-deep .libs-ui-preview-data-container .cm-nonmatchingBracket{background-color:#fce8e6!important;color:#c5221f!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionBackground{background-color:#007aff40!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionLayer{z-index:1!important}:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete{border:1px solid #e6e7ea;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0f172a1f;overflow:hidden}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul{max-height:260px;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li{display:flex;align-items:baseline;gap:10px;padding:5px 10px!important;line-height:18px}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li[aria-selected]{background:#e9f1fe;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionLabel{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;font-weight:500;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionDetail{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;font-style:normal;color:#6a7383;text-align:right}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionIcon{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");opacity:.5}:host ::ng-deep .libs-ui-preview-data-container .cm-completionInfo{border:1px solid #e6e7ea;border-radius:6px;background:#fff;padding:8px 10px;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;color:#6a7383}\n"], dependencies: [{ kind: "component", type: LibsUiComponentsDropdownComponent, selector: "libs_ui-components-dropdown", inputs: ["useXssFilter", "popoverElementRefCustom", "classInclude", "ignoreStopPropagationEvent", "flagMouse", "flagMouseContent", "popoverCustomConfig", "isNgContent", "zIndex", "convertItemSelected", "getPopoverItemSelected", "httpRequestDetailItemById", "lengthKeys", "textDisplayWhenNoSelect", "textDisplayWhenMultiSelect", "classIncludeTextDisplayWhenNoSelect", "fieldLabel", "fieldGetLabel", "labelPopoverConfig", "labelPopoverFullWidth", "hasContentUnitRight", "listSearchNoDataTemplateRef", "dropdownTemplateRefNotSearchNoData", "fieldGetImage", "imageSize", "typeShape", "fieldGetIcon", "fieldGetTextAvatar", "fieldGetColorAvatar", "classAvatarInclude", "getLastTextAfterSpace", "linkImageError", "showError", "showBorderError", "disable", "readonly", "labelConfig", "disableLabel", "listSearchConfig", "isSearchOnline", "listHiddenInputSearch", "listSearchPadding", "listKeySearch", "listDividerClassInclude", "listConfig", "listButtonsOther", "listHasButtonUnSelectOption", "listClickExactly", "listBackgroundCustom", "listMaxItemShow", "listKeySelected", "listMultiKeySelected", "listKeysDisable", "listKeysHidden", "validRequired", "validMaxItemSelected", "changeValidUndefinedResetError", "allowSelectItemMultiple", "focusInputSearch", "onlyEmitDataWhenReset", "onlyEmitMultiKeyWhenManualClick", "resetKeyWhenSelectAllKey", "listConfigHasDivider", "classIncludeIcon", "classIncludeContent", "listIgnoreClassDisableDefaultWhenUseKeysDisableItem", "tabKeyActive", "tabsConfig", "ignoreBorderBottom"], outputs: ["flagMouseChange", "flagMouseContentChange", "lengthKeysChange", "showBorderErrorChange", "listKeySelectedChange", "listMultiKeySelectedChange", "tabKeyActiveChange", "outSelectKey", "outSelectMultiKey", "outFunctionsControl", "outValidEvent", "outChangStageFlagMouse", "outDataChange", "outClickButtonOther", "outShowList", "outChangeTabKeyActive"] }, { kind: "component", type: LibsUiComponentsButtonsButtonComponent, selector: "libs_ui-components-buttons-button", inputs: ["flagMouse", "type", "buttonCustom", "sizeButton", "label", "disable", "isPending", "imageLeft", "classInclude", "classIconLeft", "classIconRight", "classLabel", "iconOnlyType", "popover", "ignoreStopPropagationEvent", "zIndex", "widthLabelPopover", "styleIconLeft", "styleButton", "ignoreFocusWhenInputTab", "ignoreSetClickWhenShowPopover", "ignorePointerEvent", "isActive", "isHandlerEnterDocumentClickButton"], outputs: ["outClick", "outPopoverEvent", "outFunctionsControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1907
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: LibsUiComponentsPreviewTextDataComponent, isStandalone: true, selector: "libs_ui-components-preview_text_data", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, langSelected: { classPropertyName: "langSelected", publicName: "langSelected", isSignal: true, isRequired: true, transformFunction: null }, langsAccept: { classPropertyName: "langsAccept", publicName: "langsAccept", isSignal: true, isRequired: false, transformFunction: null }, langsChangeLabel: { classPropertyName: "langsChangeLabel", publicName: "langsChangeLabel", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, hiddenAction: { classPropertyName: "hiddenAction", publicName: "hiddenAction", isSignal: true, isRequired: false, transformFunction: null }, minLines: { classPropertyName: "minLines", publicName: "minLines", isSignal: true, isRequired: false, transformFunction: null }, maxLines: { classPropertyName: "maxLines", publicName: "maxLines", isSignal: true, isRequired: false, transformFunction: null }, containerElement: { classPropertyName: "containerElement", publicName: "containerElement", isSignal: true, isRequired: false, transformFunction: null }, zIndexPopover: { classPropertyName: "zIndexPopover", publicName: "zIndexPopover", isSignal: true, isRequired: false, transformFunction: null }, hiddenSearchLang: { classPropertyName: "hiddenSearchLang", publicName: "hiddenSearchLang", isSignal: true, isRequired: false, transformFunction: null }, lintIgnorePatterns: { classPropertyName: "lintIgnorePatterns", publicName: "lintIgnorePatterns", isSignal: true, isRequired: false, transformFunction: null }, completions: { classPropertyName: "completions", publicName: "completions", isSignal: true, isRequired: false, transformFunction: null }, forbiddenPatterns: { classPropertyName: "forbiddenPatterns", publicName: "forbiddenPatterns", isSignal: true, isRequired: false, transformFunction: null }, background: { classPropertyName: "background", publicName: "background", isSignal: true, isRequired: false, transformFunction: null }, showFormatAction: { classPropertyName: "showFormatAction", publicName: "showFormatAction", isSignal: true, isRequired: false, transformFunction: null }, autoFormatOnLoad: { classPropertyName: "autoFormatOnLoad", publicName: "autoFormatOnLoad", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { langSelected: "langSelectedChange", outChange: "outChange", syntaxErrors: "syntaxErrors", outViolations: "outViolations" }, viewQueries: [{ propertyName: "containerPreview", first: true, predicate: ["containerPreview"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"libs-ui-preview-data-container flex flex-col w-full h-auto rounded-[8px] libs-ui-border-general px-[8px]\"\n [style.--background-color]=\"background()\"\n [class.pt-[8px]]=\"!hiddenAction()\">\n @if (!hiddenAction()) {\n <div class=\"flex items-center content-between color-[#6a7383]\">\n <libs_ui-components-dropdown\n classInclude=\"w-[200px]\"\n [listConfig]=\"configLoadDataIsHttpConfig()\"\n [listMaxItemShow]=\"5\"\n [zIndex]=\"zIndexPopover()\"\n [isNgContent]=\"true\"\n [readonly]=\"!editable() || !acceptChangeLang()\"\n [listHasButtonUnSelectOption]=\"false\"\n [listHiddenInputSearch]=\"hiddenSearchLang()\"\n (outSelectKey)=\"handlerSelectKey($event)\">\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"labelLang() || ''\"\n [sizeButton]=\"'small'\"\n [classIconRight]=\"editable() && acceptChangeLang() ? 'libs-ui-icon-move-right rotate-90' : ''\"\n [classInclude]=\"'!p-[0px]' + (editable() && acceptChangeLang() ? '' : '!pointer-events-none !cursor-default hover:!text-[#6A7383]')\" />\n </libs_ui-components-dropdown>\n <div class=\"flex items-center\">\n <!-- G\u1EE3i \u00FD ph\u00EDm t\u1EAFt t\u00ECm/thay th\u1EBF \u2014 khung Ctrl + F c\u1EE7a CodeMirror kh\u00F4ng c\u00F3 n\u00FAt m\u1EDF n\u00E0o tr\u00EAn thanh c\u00F4ng c\u1EE5,\n kh\u00F4ng nh\u1EAFc th\u00EC ng\u01B0\u1EDDi d\u00F9ng kh\u00F4ng bi\u1EBFt c\u00F3 (ng\u01B0\u1EDDi d\u00F9ng y\u00EAu c\u1EA7u 30/09/2026). -->\n @if (editable()) {\n <span class=\"libs-ui-font-h6r mr-[16px] whitespace-nowrap text-[#9ca2ad]\">\n {{ 'i18n_code_editor_search_hint' | translate: { key: searchShortcut } }}\n </span>\n }\n <!-- \u0110\u1ECBnh d\u1EA1ng: \u0111\u1EE9ng tr\u01B0\u1EDBc \"Xu\u1ED1ng d\u00F2ng\" v\u00EC n\u00F3 l\u00E0 thao t\u00E1c tr\u00EAn N\u1ED8I DUNG, hai n\u00FAt sau ch\u1EC9 \u0111\u1ED5i\n c\u00E1ch hi\u1EC3n th\u1ECB. Ch\u1EC9 hi\u1EC7n khi \u00F4 s\u1EEDa \u0111\u01B0\u1EE3c v\u00E0 ng\u00F4n ng\u1EEF c\u00F3 b\u1ED9 \u0111\u1ECBnh d\u1EA1ng \u2014 xem `canFormat`. -->\n @if (canFormat()) {\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_format_code'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-align-left'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerFormat()\" />\n }\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"isWrap() ? 'i18n_remove_line_wrap' : 'i18n_line_wrap'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"isWrap() ? 'libs-ui-icon-unwrap' : 'libs-ui-icon-wrap'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerLineWrap()\" />\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_copy'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-copy'\"\n [classInclude]=\"'mo-lib-p-0px'\"\n (outClick)=\"handlerCopy()\" />\n </div>\n </div>\n }\n <div #containerPreview></div>\n</div>\n", styles: [":host ::ng-deep .libs-ui-preview-data-container{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-line{white-space:pre-wrap}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-error{background-color:#ff323233;border-bottom:2px solid red}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-warning{background-color:#ffc80026}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-lint{background:#fff8f8;color:#d32f2f;border:1px solid #f44336;padding:8px 10px;font-size:13px;font-family:Inter,sans-serif;border-radius:6px;box-shadow:0 2px 8px #ff000026}:host ::ng-deep .libs-ui-preview-data-container .cm-focused{outline:none!important}:host ::ng-deep .libs-ui-preview-data-container .cm-content,:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{font-family:JetBrains Mono,Fira Code,Cascadia Mono,Consolas,DejaVu Sans Mono,monospace;font-size:12px}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLine{background-color:#f4f8ff!important}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLineGutter{background-color:#f4f8ff!important;color:#1a73e8}:host ::ng-deep .libs-ui-preview-data-container .cm-lineNumbers .cm-gutterElement{color:#9aa0a6}:host ::ng-deep .libs-ui-preview-data-container .cm-cursor,:host ::ng-deep .libs-ui-preview-data-container .cm-dropCursor{border-left-color:#1a73e8!important}:host ::ng-deep .libs-ui-preview-data-container .cm-matchingBracket{background-color:#d2e3fc!important;color:inherit!important;font-weight:600}:host ::ng-deep .libs-ui-preview-data-container .cm-nonmatchingBracket{background-color:#fce8e6!important;color:#c5221f!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionBackground{background-color:#007aff40!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionLayer{z-index:1!important}:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete{border:1px solid #e6e7ea;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0f172a1f;overflow:hidden}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul{max-height:260px;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li{display:flex;align-items:baseline;gap:10px;padding:5px 10px!important;line-height:18px}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li[aria-selected]{background:#e9f1fe;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionLabel{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;font-weight:500;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionDetail{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;font-style:normal;color:#6a7383;text-align:right}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionIcon{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");opacity:.5}:host ::ng-deep .libs-ui-preview-data-container .cm-completionInfo{border:1px solid #e6e7ea;border-radius:6px;background:#fff;padding:8px 10px;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;color:#6a7383}:host ::ng-deep .cm-panels{background-color:#fff;color:#071631}:host ::ng-deep .cm-panels-bottom{margin:0 -8px;border-top:1px solid #e6e7ea;border-radius:0 0 8px 8px;overflow:hidden}:host ::ng-deep .cm-panels{container-type:inline-size}:host ::ng-deep .cm-panels-top{border-bottom:1px solid #e6e7ea}:host ::ng-deep .libs-ui-cm-search{--cm-search-accent: var(--libs-ui-color-default, #226ff5);--cm-search-accent-soft: var(--libs-ui-color-light-2, #e9f1fe);display:grid;grid-template-columns:max-content minmax(0,1fr) minmax(96px,max-content) minmax(96px,max-content) 28px;grid-template-areas:\"find-label find-field findNext select close\" \"replace-label replace-field replace replaceAll .\";align-items:center;gap:6px 8px;padding:8px 8px 8px 12px;background-color:#f4f5f7;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;line-height:18px}:host ::ng-deep .libs-ui-cm-search [data-area=find-label]{grid-area:find-label}:host ::ng-deep .libs-ui-cm-search [data-area=find-field]{grid-area:find-field}:host ::ng-deep .libs-ui-cm-search [data-area=replace-label]{grid-area:replace-label}:host ::ng-deep .libs-ui-cm-search [data-area=replace-field]{grid-area:replace-field}:host ::ng-deep .libs-ui-cm-search [name=findNext]{grid-area:findNext}:host ::ng-deep .libs-ui-cm-search [name=select]{grid-area:select}:host ::ng-deep .libs-ui-cm-search [name=replace].libs-ui-cm-search-button{grid-area:replace}:host ::ng-deep .libs-ui-cm-search [name=replaceAll]{grid-area:replaceAll}:host ::ng-deep .libs-ui-cm-search>[name=close]{grid-area:close}:host ::ng-deep .libs-ui-cm-search-label{color:#6a7383;font-size:12px;text-align:right;white-space:nowrap}:host ::ng-deep .libs-ui-cm-search-field{display:flex;min-width:0;align-items:center;gap:2px;box-sizing:border-box;height:30px;padding:0 3px 0 8px;border:1px solid #dcdfe4;border-radius:4px;background-color:#fff;transition:border-color .15s,box-shadow .15s}:host ::ng-deep .libs-ui-cm-search-field:hover{border-color:#c4c8cf}:host ::ng-deep .libs-ui-cm-search-field:focus-within{border-color:var(--cm-search-accent);box-shadow:0 0 0 3px var(--cm-search-accent-soft)}:host ::ng-deep .libs-ui-cm-search-field.is-invalid,:host ::ng-deep .libs-ui-cm-search-field.is-invalid:focus-within{border-color:#ee2d41;box-shadow:0 0 0 3px #fdeaec}:host ::ng-deep .libs-ui-cm-search-field-icon{flex-shrink:0;margin-right:6px;line-height:0}:host ::ng-deep .libs-ui-cm-search-field-icon:before{color:#9ca2ad!important;font-size:14px}:host ::ng-deep .libs-ui-cm-search-input{flex:1 1 auto;min-width:0;height:100%;padding:0;border:none;background:transparent;color:#071631;font-family:JetBrains Mono,Fira Code,Consolas,DejaVu Sans Mono,monospace;font-size:12px;outline:none}:host ::ng-deep .libs-ui-cm-search-input::placeholder{color:#9ca2ad;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-cm-search-count{flex-shrink:0;padding:0 4px;color:#6a7383;font-size:11px;white-space:nowrap}:host ::ng-deep .libs-ui-cm-search-count.is-empty{color:#ee2d41}:host ::ng-deep .libs-ui-cm-search-count.is-hidden{display:none}:host ::ng-deep .libs-ui-cm-search-divider{flex-shrink:0;width:1px;height:16px;margin:0 3px;background-color:#e6e7ea}:host ::ng-deep .libs-ui-cm-search-toggle{flex-shrink:0;width:24px;height:22px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:#6a7383;font-family:JetBrains Mono,Consolas,monospace;font-size:11px;font-weight:600;line-height:20px;cursor:pointer}:host ::ng-deep .libs-ui-cm-search-toggle:hover{background-color:#f2f4f7;color:#071631}:host ::ng-deep .libs-ui-cm-search-toggle[aria-pressed=true]{border-color:var(--cm-search-accent);background-color:var(--cm-search-accent-soft);color:var(--cm-search-accent)}:host ::ng-deep .libs-ui-cm-search-toggle[name=word]{text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .libs-ui-cm-search-icon-button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:3px;background:transparent;line-height:0;cursor:pointer}:host ::ng-deep .libs-ui-cm-search-icon-button i:before{color:#6a7383!important;font-size:12px}:host ::ng-deep .libs-ui-cm-search-icon-button[name=prev] i{transform:rotate(-90deg)}:host ::ng-deep .libs-ui-cm-search-icon-button[name=next] i{transform:rotate(90deg)}:host ::ng-deep .libs-ui-cm-search-icon-button[name=close]{width:28px;height:28px}:host ::ng-deep .libs-ui-cm-search-icon-button[name=close] i:before{font-size:14px}:host ::ng-deep .libs-ui-cm-search-icon-button:hover:not(:disabled){background-color:#e9ebee}:host ::ng-deep .libs-ui-cm-search-icon-button:hover:not(:disabled) i:before{color:#071631!important}:host ::ng-deep .libs-ui-cm-search-icon-button:disabled{opacity:.35;cursor:default}:host ::ng-deep .libs-ui-cm-search-button{box-sizing:border-box;width:100%;height:30px;padding:0 8px;overflow:hidden;border:1px solid #dcdfe4;border-radius:4px;background-color:#fff;color:#071631;font-family:inherit;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s,background-color .15s}:host ::ng-deep .libs-ui-cm-search-button:hover{border-color:var(--cm-search-accent);color:var(--cm-search-accent)}:host ::ng-deep .libs-ui-cm-search-button:active{background-color:var(--cm-search-accent-soft)}:host ::ng-deep .libs-ui-cm-search-button.is-primary{border-color:var(--cm-search-accent);background-color:var(--cm-search-accent);color:#fff}:host ::ng-deep .libs-ui-cm-search-button.is-primary:hover{filter:brightness(.95);color:#fff}@container (max-width: 720px){:host ::ng-deep .libs-ui-cm-search{grid-template-columns:repeat(4,minmax(0,1fr)) 28px;grid-template-areas:\"find-field find-field find-field find-field close\" \"replace-field replace-field replace-field replace-field .\" \"findNext select replace replaceAll .\"}:host ::ng-deep .libs-ui-cm-search-label{display:none}}@container (max-width: 480px){:host ::ng-deep .libs-ui-cm-search{gap:6px 4px}:host ::ng-deep .libs-ui-cm-search-button{padding:0 4px;font-size:11px}}:host ::ng-deep .cm-searchMatch{background-color:#ffc8004d;outline:1px solid rgba(255,170,0,.5)}:host ::ng-deep .cm-searchMatch-selected{background-color:#1a73e840}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "component", type: LibsUiComponentsDropdownComponent, selector: "libs_ui-components-dropdown", inputs: ["useXssFilter", "popoverElementRefCustom", "classInclude", "ignoreStopPropagationEvent", "flagMouse", "flagMouseContent", "popoverCustomConfig", "isNgContent", "zIndex", "convertItemSelected", "getPopoverItemSelected", "httpRequestDetailItemById", "lengthKeys", "textDisplayWhenNoSelect", "textDisplayWhenMultiSelect", "classIncludeTextDisplayWhenNoSelect", "fieldLabel", "fieldGetLabel", "labelPopoverConfig", "labelPopoverFullWidth", "hasContentUnitRight", "listSearchNoDataTemplateRef", "dropdownTemplateRefNotSearchNoData", "fieldGetImage", "imageSize", "typeShape", "fieldGetIcon", "fieldGetTextAvatar", "fieldGetColorAvatar", "classAvatarInclude", "getLastTextAfterSpace", "linkImageError", "showError", "showBorderError", "disable", "readonly", "labelConfig", "disableLabel", "listSearchConfig", "isSearchOnline", "listHiddenInputSearch", "listSearchPadding", "listKeySearch", "listDividerClassInclude", "listConfig", "listButtonsOther", "listHasButtonUnSelectOption", "listClickExactly", "listBackgroundCustom", "listMaxItemShow", "listKeySelected", "listMultiKeySelected", "listKeysDisable", "listKeysHidden", "validRequired", "validMaxItemSelected", "changeValidUndefinedResetError", "allowSelectItemMultiple", "focusInputSearch", "onlyEmitDataWhenReset", "onlyEmitMultiKeyWhenManualClick", "resetKeyWhenSelectAllKey", "listConfigHasDivider", "classIncludeIcon", "classIncludeContent", "listIgnoreClassDisableDefaultWhenUseKeysDisableItem", "tabKeyActive", "tabsConfig", "ignoreBorderBottom"], outputs: ["flagMouseChange", "flagMouseContentChange", "lengthKeysChange", "showBorderErrorChange", "listKeySelectedChange", "listMultiKeySelectedChange", "tabKeyActiveChange", "outSelectKey", "outSelectMultiKey", "outFunctionsControl", "outValidEvent", "outChangStageFlagMouse", "outDataChange", "outClickButtonOther", "outShowList", "outChangeTabKeyActive"] }, { kind: "component", type: LibsUiComponentsButtonsButtonComponent, selector: "libs_ui-components-buttons-button", inputs: ["flagMouse", "type", "buttonCustom", "sizeButton", "label", "disable", "isPending", "imageLeft", "classInclude", "classIconLeft", "classIconRight", "classLabel", "iconOnlyType", "popover", "ignoreStopPropagationEvent", "zIndex", "widthLabelPopover", "styleIconLeft", "styleButton", "ignoreFocusWhenInputTab", "ignoreSetClickWhenShowPopover", "ignorePointerEvent", "isActive", "isHandlerEnterDocumentClickButton"], outputs: ["outClick", "outPopoverEvent", "outFunctionsControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1675
1908
  }
1676
1909
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LibsUiComponentsPreviewTextDataComponent, decorators: [{
1677
1910
  type: Component,
1678
- args: [{ selector: 'libs_ui-components-preview_text_data', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [LibsUiComponentsDropdownComponent, LibsUiComponentsButtonsButtonComponent], template: "<div\n class=\"libs-ui-preview-data-container flex flex-col w-full h-auto rounded-[8px] libs-ui-border-general px-[8px]\"\n [style.--background-color]=\"background()\"\n [class.pt-[8px]]=\"!hiddenAction()\">\n @if (!hiddenAction()) {\n <div class=\"flex items-center content-between color-[#6a7383]\">\n <libs_ui-components-dropdown\n classInclude=\"w-[200px]\"\n [listConfig]=\"configLoadDataIsHttpConfig()\"\n [listMaxItemShow]=\"5\"\n [zIndex]=\"zIndexPopover()\"\n [isNgContent]=\"true\"\n [readonly]=\"!editable() || !acceptChangeLang()\"\n [listHasButtonUnSelectOption]=\"false\"\n [listHiddenInputSearch]=\"hiddenSearchLang()\"\n (outSelectKey)=\"handlerSelectKey($event)\">\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"labelLang() || ''\"\n [sizeButton]=\"'small'\"\n [classIconRight]=\"editable() && acceptChangeLang() ? 'libs-ui-icon-move-right rotate-90' : ''\"\n [classInclude]=\"'!p-[0px]' + (editable() && acceptChangeLang() ? '' : '!pointer-events-none !cursor-default hover:!text-[#6A7383]')\" />\n </libs_ui-components-dropdown>\n <div class=\"flex items-center\">\n <!-- \u0110\u1ECBnh d\u1EA1ng: \u0111\u1EE9ng tr\u01B0\u1EDBc \"Xu\u1ED1ng d\u00F2ng\" v\u00EC n\u00F3 l\u00E0 thao t\u00E1c tr\u00EAn N\u1ED8I DUNG, hai n\u00FAt sau ch\u1EC9 \u0111\u1ED5i\n c\u00E1ch hi\u1EC3n th\u1ECB. Ch\u1EC9 hi\u1EC7n khi \u00F4 s\u1EEDa \u0111\u01B0\u1EE3c v\u00E0 ng\u00F4n ng\u1EEF c\u00F3 b\u1ED9 \u0111\u1ECBnh d\u1EA1ng \u2014 xem `canFormat`. -->\n @if (canFormat()) {\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_format_code'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-align-left'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerFormat()\" />\n }\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"isWrap() ? 'i18n_remove_line_wrap' : 'i18n_line_wrap'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"isWrap() ? 'libs-ui-icon-unwrap' : 'libs-ui-icon-wrap'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerLineWrap()\" />\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_copy'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-copy'\"\n [classInclude]=\"'mo-lib-p-0px'\"\n (outClick)=\"handlerCopy()\" />\n </div>\n </div>\n }\n <div #containerPreview></div>\n</div>\n", styles: [":host ::ng-deep .libs-ui-preview-data-container{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-line{white-space:pre-wrap}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-error{background-color:#ff323233;border-bottom:2px solid red}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-warning{background-color:#ffc80026}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-lint{background:#fff8f8;color:#d32f2f;border:1px solid #f44336;padding:8px 10px;font-size:13px;font-family:Inter,sans-serif;border-radius:6px;box-shadow:0 2px 8px #ff000026}:host ::ng-deep .libs-ui-preview-data-container .cm-focused{outline:none!important}:host ::ng-deep .libs-ui-preview-data-container .cm-content,:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{font-family:JetBrains Mono,Fira Code,Cascadia Mono,Consolas,DejaVu Sans Mono,monospace;font-size:12px}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLine{background-color:#f4f8ff!important}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLineGutter{background-color:#f4f8ff!important;color:#1a73e8}:host ::ng-deep .libs-ui-preview-data-container .cm-lineNumbers .cm-gutterElement{color:#9aa0a6}:host ::ng-deep .libs-ui-preview-data-container .cm-cursor,:host ::ng-deep .libs-ui-preview-data-container .cm-dropCursor{border-left-color:#1a73e8!important}:host ::ng-deep .libs-ui-preview-data-container .cm-matchingBracket{background-color:#d2e3fc!important;color:inherit!important;font-weight:600}:host ::ng-deep .libs-ui-preview-data-container .cm-nonmatchingBracket{background-color:#fce8e6!important;color:#c5221f!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionBackground{background-color:#007aff40!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionLayer{z-index:1!important}:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete{border:1px solid #e6e7ea;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0f172a1f;overflow:hidden}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul{max-height:260px;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li{display:flex;align-items:baseline;gap:10px;padding:5px 10px!important;line-height:18px}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li[aria-selected]{background:#e9f1fe;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionLabel{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;font-weight:500;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionDetail{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;font-style:normal;color:#6a7383;text-align:right}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionIcon{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");opacity:.5}:host ::ng-deep .libs-ui-preview-data-container .cm-completionInfo{border:1px solid #e6e7ea;border-radius:6px;background:#fff;padding:8px 10px;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;color:#6a7383}\n"] }]
1911
+ args: [{ selector: 'libs_ui-components-preview_text_data', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, LibsUiComponentsDropdownComponent, LibsUiComponentsButtonsButtonComponent], template: "<div\n class=\"libs-ui-preview-data-container flex flex-col w-full h-auto rounded-[8px] libs-ui-border-general px-[8px]\"\n [style.--background-color]=\"background()\"\n [class.pt-[8px]]=\"!hiddenAction()\">\n @if (!hiddenAction()) {\n <div class=\"flex items-center content-between color-[#6a7383]\">\n <libs_ui-components-dropdown\n classInclude=\"w-[200px]\"\n [listConfig]=\"configLoadDataIsHttpConfig()\"\n [listMaxItemShow]=\"5\"\n [zIndex]=\"zIndexPopover()\"\n [isNgContent]=\"true\"\n [readonly]=\"!editable() || !acceptChangeLang()\"\n [listHasButtonUnSelectOption]=\"false\"\n [listHiddenInputSearch]=\"hiddenSearchLang()\"\n (outSelectKey)=\"handlerSelectKey($event)\">\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"labelLang() || ''\"\n [sizeButton]=\"'small'\"\n [classIconRight]=\"editable() && acceptChangeLang() ? 'libs-ui-icon-move-right rotate-90' : ''\"\n [classInclude]=\"'!p-[0px]' + (editable() && acceptChangeLang() ? '' : '!pointer-events-none !cursor-default hover:!text-[#6A7383]')\" />\n </libs_ui-components-dropdown>\n <div class=\"flex items-center\">\n <!-- G\u1EE3i \u00FD ph\u00EDm t\u1EAFt t\u00ECm/thay th\u1EBF \u2014 khung Ctrl + F c\u1EE7a CodeMirror kh\u00F4ng c\u00F3 n\u00FAt m\u1EDF n\u00E0o tr\u00EAn thanh c\u00F4ng c\u1EE5,\n kh\u00F4ng nh\u1EAFc th\u00EC ng\u01B0\u1EDDi d\u00F9ng kh\u00F4ng bi\u1EBFt c\u00F3 (ng\u01B0\u1EDDi d\u00F9ng y\u00EAu c\u1EA7u 30/09/2026). -->\n @if (editable()) {\n <span class=\"libs-ui-font-h6r mr-[16px] whitespace-nowrap text-[#9ca2ad]\">\n {{ 'i18n_code_editor_search_hint' | translate: { key: searchShortcut } }}\n </span>\n }\n <!-- \u0110\u1ECBnh d\u1EA1ng: \u0111\u1EE9ng tr\u01B0\u1EDBc \"Xu\u1ED1ng d\u00F2ng\" v\u00EC n\u00F3 l\u00E0 thao t\u00E1c tr\u00EAn N\u1ED8I DUNG, hai n\u00FAt sau ch\u1EC9 \u0111\u1ED5i\n c\u00E1ch hi\u1EC3n th\u1ECB. Ch\u1EC9 hi\u1EC7n khi \u00F4 s\u1EEDa \u0111\u01B0\u1EE3c v\u00E0 ng\u00F4n ng\u1EEF c\u00F3 b\u1ED9 \u0111\u1ECBnh d\u1EA1ng \u2014 xem `canFormat`. -->\n @if (canFormat()) {\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_format_code'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-align-left'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerFormat()\" />\n }\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"isWrap() ? 'i18n_remove_line_wrap' : 'i18n_line_wrap'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"isWrap() ? 'libs-ui-icon-unwrap' : 'libs-ui-icon-wrap'\"\n [classInclude]=\"'mo-lib-p-0px mo-lib-mr-16px'\"\n (outClick)=\"handlerLineWrap()\" />\n <libs_ui-components-buttons-button\n [type]=\"'button-link-third'\"\n [label]=\"'i18n_copy'\"\n [sizeButton]=\"'small'\"\n [classIconLeft]=\"'libs-ui-icon-copy'\"\n [classInclude]=\"'mo-lib-p-0px'\"\n (outClick)=\"handlerCopy()\" />\n </div>\n </div>\n }\n <div #containerPreview></div>\n</div>\n", styles: [":host ::ng-deep .libs-ui-preview-data-container{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-line{white-space:pre-wrap}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-error{background-color:#ff323233;border-bottom:2px solid red}:host ::ng-deep .libs-ui-preview-data-container .cm-lintRange-warning{background-color:#ffc80026}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-lint{background:#fff8f8;color:#d32f2f;border:1px solid #f44336;padding:8px 10px;font-size:13px;font-family:Inter,sans-serif;border-radius:6px;box-shadow:0 2px 8px #ff000026}:host ::ng-deep .libs-ui-preview-data-container .cm-focused{outline:none!important}:host ::ng-deep .libs-ui-preview-data-container .cm-content,:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{font-family:JetBrains Mono,Fira Code,Cascadia Mono,Consolas,DejaVu Sans Mono,monospace;font-size:12px}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLine{background-color:#f4f8ff!important}:host ::ng-deep .libs-ui-preview-data-container .cm-activeLineGutter{background-color:#f4f8ff!important;color:#1a73e8}:host ::ng-deep .libs-ui-preview-data-container .cm-lineNumbers .cm-gutterElement{color:#9aa0a6}:host ::ng-deep .libs-ui-preview-data-container .cm-cursor,:host ::ng-deep .libs-ui-preview-data-container .cm-dropCursor{border-left-color:#1a73e8!important}:host ::ng-deep .libs-ui-preview-data-container .cm-matchingBracket{background-color:#d2e3fc!important;color:inherit!important;font-weight:600}:host ::ng-deep .libs-ui-preview-data-container .cm-nonmatchingBracket{background-color:#fce8e6!important;color:#c5221f!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionBackground{background-color:#007aff40!important}:host ::ng-deep .libs-ui-preview-data-container .cm-selectionLayer{z-index:1!important}:host ::ng-deep .libs-ui-preview-data-container .cm-gutters{background-color:var(--background-color)!important}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete{border:1px solid #e6e7ea;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0f172a1f;overflow:hidden}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul{max-height:260px;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li{display:flex;align-items:baseline;gap:10px;padding:5px 10px!important;line-height:18px}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete>ul>li[aria-selected]{background:#e9f1fe;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionLabel{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;font-weight:500;color:#071631}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionDetail{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;font-style:normal;color:#6a7383;text-align:right}:host ::ng-deep .libs-ui-preview-data-container .cm-tooltip-autocomplete .cm-completionIcon{flex:0 0 auto;font-family:var(--libs-ui-font-family-name, \"Arial\");opacity:.5}:host ::ng-deep .libs-ui-preview-data-container .cm-completionInfo{border:1px solid #e6e7ea;border-radius:6px;background:#fff;padding:8px 10px;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:11px;color:#6a7383}:host ::ng-deep .cm-panels{background-color:#fff;color:#071631}:host ::ng-deep .cm-panels-bottom{margin:0 -8px;border-top:1px solid #e6e7ea;border-radius:0 0 8px 8px;overflow:hidden}:host ::ng-deep .cm-panels{container-type:inline-size}:host ::ng-deep .cm-panels-top{border-bottom:1px solid #e6e7ea}:host ::ng-deep .libs-ui-cm-search{--cm-search-accent: var(--libs-ui-color-default, #226ff5);--cm-search-accent-soft: var(--libs-ui-color-light-2, #e9f1fe);display:grid;grid-template-columns:max-content minmax(0,1fr) minmax(96px,max-content) minmax(96px,max-content) 28px;grid-template-areas:\"find-label find-field findNext select close\" \"replace-label replace-field replace replaceAll .\";align-items:center;gap:6px 8px;padding:8px 8px 8px 12px;background-color:#f4f5f7;font-family:var(--libs-ui-font-family-name, \"Arial\");font-size:12px;line-height:18px}:host ::ng-deep .libs-ui-cm-search [data-area=find-label]{grid-area:find-label}:host ::ng-deep .libs-ui-cm-search [data-area=find-field]{grid-area:find-field}:host ::ng-deep .libs-ui-cm-search [data-area=replace-label]{grid-area:replace-label}:host ::ng-deep .libs-ui-cm-search [data-area=replace-field]{grid-area:replace-field}:host ::ng-deep .libs-ui-cm-search [name=findNext]{grid-area:findNext}:host ::ng-deep .libs-ui-cm-search [name=select]{grid-area:select}:host ::ng-deep .libs-ui-cm-search [name=replace].libs-ui-cm-search-button{grid-area:replace}:host ::ng-deep .libs-ui-cm-search [name=replaceAll]{grid-area:replaceAll}:host ::ng-deep .libs-ui-cm-search>[name=close]{grid-area:close}:host ::ng-deep .libs-ui-cm-search-label{color:#6a7383;font-size:12px;text-align:right;white-space:nowrap}:host ::ng-deep .libs-ui-cm-search-field{display:flex;min-width:0;align-items:center;gap:2px;box-sizing:border-box;height:30px;padding:0 3px 0 8px;border:1px solid #dcdfe4;border-radius:4px;background-color:#fff;transition:border-color .15s,box-shadow .15s}:host ::ng-deep .libs-ui-cm-search-field:hover{border-color:#c4c8cf}:host ::ng-deep .libs-ui-cm-search-field:focus-within{border-color:var(--cm-search-accent);box-shadow:0 0 0 3px var(--cm-search-accent-soft)}:host ::ng-deep .libs-ui-cm-search-field.is-invalid,:host ::ng-deep .libs-ui-cm-search-field.is-invalid:focus-within{border-color:#ee2d41;box-shadow:0 0 0 3px #fdeaec}:host ::ng-deep .libs-ui-cm-search-field-icon{flex-shrink:0;margin-right:6px;line-height:0}:host ::ng-deep .libs-ui-cm-search-field-icon:before{color:#9ca2ad!important;font-size:14px}:host ::ng-deep .libs-ui-cm-search-input{flex:1 1 auto;min-width:0;height:100%;padding:0;border:none;background:transparent;color:#071631;font-family:JetBrains Mono,Fira Code,Consolas,DejaVu Sans Mono,monospace;font-size:12px;outline:none}:host ::ng-deep .libs-ui-cm-search-input::placeholder{color:#9ca2ad;font-family:var(--libs-ui-font-family-name, \"Arial\")}:host ::ng-deep .libs-ui-cm-search-count{flex-shrink:0;padding:0 4px;color:#6a7383;font-size:11px;white-space:nowrap}:host ::ng-deep .libs-ui-cm-search-count.is-empty{color:#ee2d41}:host ::ng-deep .libs-ui-cm-search-count.is-hidden{display:none}:host ::ng-deep .libs-ui-cm-search-divider{flex-shrink:0;width:1px;height:16px;margin:0 3px;background-color:#e6e7ea}:host ::ng-deep .libs-ui-cm-search-toggle{flex-shrink:0;width:24px;height:22px;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:#6a7383;font-family:JetBrains Mono,Consolas,monospace;font-size:11px;font-weight:600;line-height:20px;cursor:pointer}:host ::ng-deep .libs-ui-cm-search-toggle:hover{background-color:#f2f4f7;color:#071631}:host ::ng-deep .libs-ui-cm-search-toggle[aria-pressed=true]{border-color:var(--cm-search-accent);background-color:var(--cm-search-accent-soft);color:var(--cm-search-accent)}:host ::ng-deep .libs-ui-cm-search-toggle[name=word]{text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .libs-ui-cm-search-icon-button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:3px;background:transparent;line-height:0;cursor:pointer}:host ::ng-deep .libs-ui-cm-search-icon-button i:before{color:#6a7383!important;font-size:12px}:host ::ng-deep .libs-ui-cm-search-icon-button[name=prev] i{transform:rotate(-90deg)}:host ::ng-deep .libs-ui-cm-search-icon-button[name=next] i{transform:rotate(90deg)}:host ::ng-deep .libs-ui-cm-search-icon-button[name=close]{width:28px;height:28px}:host ::ng-deep .libs-ui-cm-search-icon-button[name=close] i:before{font-size:14px}:host ::ng-deep .libs-ui-cm-search-icon-button:hover:not(:disabled){background-color:#e9ebee}:host ::ng-deep .libs-ui-cm-search-icon-button:hover:not(:disabled) i:before{color:#071631!important}:host ::ng-deep .libs-ui-cm-search-icon-button:disabled{opacity:.35;cursor:default}:host ::ng-deep .libs-ui-cm-search-button{box-sizing:border-box;width:100%;height:30px;padding:0 8px;overflow:hidden;border:1px solid #dcdfe4;border-radius:4px;background-color:#fff;color:#071631;font-family:inherit;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:border-color .15s,color .15s,background-color .15s}:host ::ng-deep .libs-ui-cm-search-button:hover{border-color:var(--cm-search-accent);color:var(--cm-search-accent)}:host ::ng-deep .libs-ui-cm-search-button:active{background-color:var(--cm-search-accent-soft)}:host ::ng-deep .libs-ui-cm-search-button.is-primary{border-color:var(--cm-search-accent);background-color:var(--cm-search-accent);color:#fff}:host ::ng-deep .libs-ui-cm-search-button.is-primary:hover{filter:brightness(.95);color:#fff}@container (max-width: 720px){:host ::ng-deep .libs-ui-cm-search{grid-template-columns:repeat(4,minmax(0,1fr)) 28px;grid-template-areas:\"find-field find-field find-field find-field close\" \"replace-field replace-field replace-field replace-field .\" \"findNext select replace replaceAll .\"}:host ::ng-deep .libs-ui-cm-search-label{display:none}}@container (max-width: 480px){:host ::ng-deep .libs-ui-cm-search{gap:6px 4px}:host ::ng-deep .libs-ui-cm-search-button{padding:0 4px;font-size:11px}}:host ::ng-deep .cm-searchMatch{background-color:#ffc8004d;outline:1px solid rgba(255,170,0,.5)}:host ::ng-deep .cm-searchMatch-selected{background-color:#1a73e840}\n"] }]
1679
1912
  }], ctorParameters: () => [] });
1680
1913
 
1681
1914
  /**