@univerjs-pro/docs-table 1.0.0-insiders.20260813-7c9aa50 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/delete-columns.command.d.ts +4 -3
- package/lib/types/commands/delete-rows.command.d.ts +4 -3
- package/lib/types/commands/delete-table.command.d.ts +2 -1
- package/lib/types/commands/utils.d.ts +1 -1
- package/lib/types/common/clipboard.d.ts +4 -0
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/facade/f-docs-table-cell.d.ts +83 -0
- package/lib/types/facade/f-docs-table.d.ts +130 -0
- package/lib/types/facade/f-document-table.d.ts +4 -3
- package/lib/types/index.d.ts +2 -1
- package/lib/types/services/docs-table-selection.service.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ICommand } from '@univerjs/core';
|
|
2
2
|
import type { IDocsTableSegmentOptions } from '../common/type';
|
|
3
3
|
export interface IDocsTableDeleteColumnsCommandParams extends IDocsTableSegmentOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
unitId: string;
|
|
5
|
+
tableId: string;
|
|
6
|
+
startColumn: number;
|
|
7
|
+
endColumn: number;
|
|
7
8
|
}
|
|
8
9
|
export declare const DocsTableDeleteColumnsCommand: ICommand<IDocsTableDeleteColumnsCommandParams>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ICommand } from '@univerjs/core';
|
|
2
2
|
import type { IDocsTableSegmentOptions } from '../common/type';
|
|
3
3
|
export interface IDocsTableDeleteRowsCommandParams extends IDocsTableSegmentOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
unitId: string;
|
|
5
|
+
tableId: string;
|
|
6
|
+
startRow: number;
|
|
7
|
+
endRow: number;
|
|
7
8
|
}
|
|
8
9
|
export declare const DocsTableDeleteRowsCommand: ICommand<IDocsTableDeleteRowsCommandParams>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ICommand } from '@univerjs/core';
|
|
2
2
|
import type { IDocsTableSegmentOptions } from '../common/type';
|
|
3
3
|
export interface IDocsTableDeleteTableCommandParams extends IDocsTableSegmentOptions {
|
|
4
|
-
|
|
4
|
+
unitId: string;
|
|
5
|
+
tableId: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const DocsTableDeleteTableCommand: ICommand<IDocsTableDeleteTableCommandParams>;
|
|
@@ -51,6 +51,6 @@ export declare function buildInsertTableRowsMutationActions(documentData: IDocum
|
|
|
51
51
|
export declare function buildInsertTableTitleRowMutationActions(documentData: IDocumentData, tableId: string, bodyPath?: string[]): IDocsTableRowsMutationActionResult | null;
|
|
52
52
|
export declare function buildDeleteTableRowsMutationActions(documentData: IDocumentData, tableId: string, startRow: number, endRow: number, bodyPath?: string[]): IDocsTableRowsMutationActionResult | null;
|
|
53
53
|
export declare function buildDeleteTableMutationActions(documentData: IDocumentData, tableId: string, bodyPath: string[]): IDocsTableRowsMutationActionResult | null;
|
|
54
|
-
export declare function executeRichTextTableActions(commandService: ICommandService, unitId: string, documentData: IDocumentData, actions: JSONXActions | null, selection?: IDocsTableMutationSelection, cursorOffset?: number, trigger?: string): boolean;
|
|
54
|
+
export declare function executeRichTextTableActions(commandService: ICommandService, unitId: string, documentData: IDocumentData, actions: JSONXActions | null, selection?: IDocsTableMutationSelection, cursorOffset?: number, trigger?: string, historyAction?: string): boolean;
|
|
55
55
|
export declare function getTableActionBodyPath(documentData: IDocumentData, segmentId?: string): string[];
|
|
56
56
|
export declare function buildTableRectMutationRanges(documentData: IDocumentData, selection: IDocsTableMutationSelection): IRectRangeWithStyle[];
|
|
@@ -17,6 +17,7 @@ export interface IPasteHtmlTableResult {
|
|
|
17
17
|
nextDocumentData: IDocumentData;
|
|
18
18
|
}
|
|
19
19
|
export interface IParsedHtmlTableCell {
|
|
20
|
+
html: string;
|
|
20
21
|
text: string;
|
|
21
22
|
rowSpan: number;
|
|
22
23
|
colSpan: number;
|
|
@@ -33,6 +34,9 @@ export interface IParsedHtmlTableClipboard {
|
|
|
33
34
|
columnWidths: Array<number | undefined>;
|
|
34
35
|
}
|
|
35
36
|
export declare function parseHtmlTablesClipboard(html: string): IParsedHtmlTableClipboard[];
|
|
37
|
+
export declare function convertPlainTextTableToHtml(text: string): string | null;
|
|
38
|
+
/** Crop a detached document so the clipboard retains rich cell content and table metadata. */
|
|
39
|
+
export declare function serializeTableSelectionAsDocument(params: ITableClipboardParams): IDocumentData;
|
|
36
40
|
export declare function serializeTableSelectionAsPlainText(params: ITableClipboardParams): string;
|
|
37
41
|
export declare function serializeTableSelectionAsHtml(params: ITableClipboardParams): string;
|
|
38
42
|
export declare function buildPastePlainTextTableActions(params: IPastePlainTextTableParams): IPastePlainTextTableResult;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { FDocsTable } from './f-docs-table';
|
|
2
|
+
import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableCellStyle } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Facade object for a single docs table cell.
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* const cell = table.getCell(0, 0);
|
|
8
|
+
* cell?.setText('Owner');
|
|
9
|
+
* cell?.setBackgroundColor('#E8F1FF');
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class FDocsTableCell {
|
|
13
|
+
private readonly _table;
|
|
14
|
+
private readonly _row;
|
|
15
|
+
private readonly _column;
|
|
16
|
+
constructor(_table: FDocsTable, _row: number, _column: number);
|
|
17
|
+
/**
|
|
18
|
+
* Returns the parent table facade.
|
|
19
|
+
* @returns {FDocsTable} The parent table.
|
|
20
|
+
*/
|
|
21
|
+
getTable(): FDocsTable;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the zero-based row index.
|
|
24
|
+
* @returns {number} The row index.
|
|
25
|
+
*/
|
|
26
|
+
getRowIndex(): number;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the zero-based column index.
|
|
29
|
+
* @returns {number} The column index.
|
|
30
|
+
*/
|
|
31
|
+
getColumnIndex(): number;
|
|
32
|
+
/**
|
|
33
|
+
* Returns plain text in this cell.
|
|
34
|
+
* @returns {string} The cell text.
|
|
35
|
+
*/
|
|
36
|
+
getText(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the editable document range inside this cell.
|
|
39
|
+
* @returns {IDocsTableCellContentRange | null} The cell content range, or `null` if the cell does not exist.
|
|
40
|
+
*/
|
|
41
|
+
getContentRange(): IDocsTableCellContentRange | null;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the offset before this cell's final section break.
|
|
44
|
+
* @returns {number | null} The insertion offset, or `null` if the cell does not exist.
|
|
45
|
+
*/
|
|
46
|
+
getInsertOffset(): number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Replaces the cell text.
|
|
49
|
+
* @param {string} text The new cell text.
|
|
50
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
51
|
+
*/
|
|
52
|
+
setText(text: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the cell background color.
|
|
55
|
+
* @param {string} color CSS color string, for example `#E8F1FF`.
|
|
56
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
57
|
+
*/
|
|
58
|
+
setBackgroundColor(color: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Applies supported cell style options.
|
|
61
|
+
* @param {IDocsTableCellStyle} style Cell style options.
|
|
62
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
63
|
+
*/
|
|
64
|
+
setStyle(style: IDocsTableCellStyle): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Applies border options to this cell.
|
|
67
|
+
* @param {IDocsTableBorderOptions} border Border preset and style options.
|
|
68
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
69
|
+
*/
|
|
70
|
+
setBorder(border: IDocsTableBorderOptions): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Merges this cell with a rectangular span starting from this cell.
|
|
73
|
+
* @param {number} rowSpan Number of rows to include.
|
|
74
|
+
* @param {number} columnSpan Number of columns to include.
|
|
75
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
76
|
+
*/
|
|
77
|
+
mergeTo(rowSpan: number, columnSpan: number): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Unmerges the merged range containing this cell.
|
|
80
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
81
|
+
*/
|
|
82
|
+
unmerge(): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { ICommandService, IDocumentData, ITable } from '@univerjs/core';
|
|
2
|
+
import type { DocsTableSortDirection } from '../common/sort';
|
|
3
|
+
import type { IDocsTableOffsetRange } from '../common/table-range';
|
|
4
|
+
import type { IDocsTableColumnTypeConfig, IDocsTableMetadata } from '../common/type';
|
|
5
|
+
import type { DocsTableModel } from '../models/docs-table-model';
|
|
6
|
+
import type { DocsTableSelectionService } from '../services/docs-table-selection.service';
|
|
7
|
+
import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableCellStyle, IDocsTableDescription, IDocsTableInfo, IDocsTableRange, IDocsTableStyle } from './types';
|
|
8
|
+
import { FDocsTableCell } from './f-docs-table-cell';
|
|
9
|
+
export interface IFDocsTableContext {
|
|
10
|
+
unitId: string;
|
|
11
|
+
tableId: string;
|
|
12
|
+
getDocumentData: () => IDocumentData;
|
|
13
|
+
commandService: ICommandService;
|
|
14
|
+
model?: DocsTableModel;
|
|
15
|
+
selectionService?: DocsTableSelectionService;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Facade object for a single enhanced docs table.
|
|
19
|
+
*
|
|
20
|
+
* All mutating methods execute synchronously through the Univer command service and return
|
|
21
|
+
* `true` when the underlying document mutation succeeds.
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import '@univerjs-pro/docs-table/facade';
|
|
25
|
+
*
|
|
26
|
+
* const doc = univerAPI.getActiveDocument();
|
|
27
|
+
* const table = doc?.findTableByText('Status');
|
|
28
|
+
* table?.setCellText(1, 1, 'Done');
|
|
29
|
+
* table?.setTableBorder({ color: '#3367D6', width: 1 });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class FDocsTable {
|
|
33
|
+
private readonly _context;
|
|
34
|
+
constructor(_context: IFDocsTableContext);
|
|
35
|
+
/**
|
|
36
|
+
* Returns the table id.
|
|
37
|
+
* @returns {string} The table id stored in the document snapshot.
|
|
38
|
+
*/
|
|
39
|
+
getId(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Returns compact table metadata for agents.
|
|
42
|
+
* @returns {IDocsTableInfo} The id, row count, column count, metadata, and raw table source.
|
|
43
|
+
*/
|
|
44
|
+
getInfo(): IDocsTableInfo;
|
|
45
|
+
/**
|
|
46
|
+
* Returns a human-readable table summary with sample rows.
|
|
47
|
+
* @returns {IDocsTableDescription} A compact description suitable for agents or logs.
|
|
48
|
+
*/
|
|
49
|
+
describe(): IDocsTableDescription;
|
|
50
|
+
getRowCount(): number;
|
|
51
|
+
getColumnCount(): number;
|
|
52
|
+
getCell(row: number, column: number): FDocsTableCell | null;
|
|
53
|
+
getCellText(row: number, column: number): string;
|
|
54
|
+
getMetadata(): IDocsTableMetadata | undefined;
|
|
55
|
+
getSource(): ITable | undefined;
|
|
56
|
+
getRange(): IDocsTableOffsetRange | null;
|
|
57
|
+
getTableRange(): IDocsTableRange;
|
|
58
|
+
getCellRange(row: number, column: number): IDocsTableRange;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the editable document range inside a table cell.
|
|
61
|
+
* The range excludes the table cell tokens and the final section break, so block/list facades
|
|
62
|
+
* can use it as their `startOffset`/`endOffset` target.
|
|
63
|
+
* @param {number} row The zero-based row index.
|
|
64
|
+
* @param {number} column The zero-based column index.
|
|
65
|
+
* @returns {IDocsTableCellContentRange | null} The cell content range, or `null` if the cell does not exist.
|
|
66
|
+
*/
|
|
67
|
+
getCellContentRange(row: number, column: number): IDocsTableCellContentRange | null;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the offset before the cell's final section break.
|
|
70
|
+
* Use this offset to insert an empty callout, quote, code block, or paragraph in the cell.
|
|
71
|
+
* @param {number} row The zero-based row index.
|
|
72
|
+
* @param {number} column The zero-based column index.
|
|
73
|
+
* @returns {number | null} The insertion offset, or `null` if the cell does not exist.
|
|
74
|
+
*/
|
|
75
|
+
getCellInsertOffset(row: number, column: number): number | null;
|
|
76
|
+
getRowRange(row: number): IDocsTableRange;
|
|
77
|
+
getRowsRange(startRow: number, count?: number): IDocsTableRange;
|
|
78
|
+
getColumnRange(column: number): IDocsTableRange;
|
|
79
|
+
getColumnsRange(startColumn: number, count?: number): IDocsTableRange;
|
|
80
|
+
selectTable(): boolean;
|
|
81
|
+
selectRow(row: number): boolean;
|
|
82
|
+
selectRows(startRow: number, count?: number): boolean;
|
|
83
|
+
selectColumn(column: number): boolean;
|
|
84
|
+
selectColumns(startColumn: number, count?: number): boolean;
|
|
85
|
+
selectCell(row: number, column: number): boolean;
|
|
86
|
+
selectRange(range: IDocsTableRange, kind?: 'cell' | 'range' | 'row' | 'column' | 'table'): boolean;
|
|
87
|
+
insertRowBefore(row: number): boolean;
|
|
88
|
+
insertRowAfter(row: number): boolean;
|
|
89
|
+
insertRowsBefore(row: number, count: number): boolean;
|
|
90
|
+
insertRowsAfter(row: number, count: number): boolean;
|
|
91
|
+
appendRow(): boolean;
|
|
92
|
+
insertColumnBefore(column: number): boolean;
|
|
93
|
+
insertColumnAfter(column: number): boolean;
|
|
94
|
+
insertColumnsBefore(column: number, count: number): boolean;
|
|
95
|
+
insertColumnsAfter(column: number, count: number): boolean;
|
|
96
|
+
appendColumn(): boolean;
|
|
97
|
+
deleteRow(row: number): boolean;
|
|
98
|
+
deleteRows(startRow: number, count?: number): boolean;
|
|
99
|
+
deleteColumn(column: number): boolean;
|
|
100
|
+
deleteColumns(startColumn: number, count?: number): boolean;
|
|
101
|
+
deleteTable(): boolean;
|
|
102
|
+
moveTableBy(deltaX: number, deltaY: number): boolean;
|
|
103
|
+
moveTableToOffset(offset: number): boolean;
|
|
104
|
+
moveRow(row: number, targetRow: number, position?: 'before' | 'after'): boolean;
|
|
105
|
+
moveRows(startRow: number, count: number, targetRow: number, position?: 'before' | 'after'): boolean;
|
|
106
|
+
moveColumn(column: number, targetColumn: number, position?: 'before' | 'after'): boolean;
|
|
107
|
+
moveColumns(startColumn: number, count: number, targetColumn: number, position?: 'before' | 'after'): boolean;
|
|
108
|
+
mergeCells(range: IDocsTableRange): boolean;
|
|
109
|
+
unmergeCells(range: IDocsTableRange): boolean;
|
|
110
|
+
setCellText(row: number, column: number, text: string): boolean;
|
|
111
|
+
setCellStyle(range: IDocsTableRange, style: IDocsTableCellStyle): boolean;
|
|
112
|
+
setCellBackground(range: IDocsTableRange, color: string): boolean;
|
|
113
|
+
setBorder(range: IDocsTableRange, options: IDocsTableBorderOptions): boolean;
|
|
114
|
+
setTableBackground(color: string): boolean;
|
|
115
|
+
setTableBorder(border: IDocsTableBorderOptions): boolean;
|
|
116
|
+
setTableStyle(style: IDocsTableStyle): boolean;
|
|
117
|
+
setRowHeight(row: number, height: number): boolean;
|
|
118
|
+
setColumnWidth(column: number, width: number): boolean;
|
|
119
|
+
distributeRows(startRow?: number, count?: number): boolean;
|
|
120
|
+
distributeColumns(startColumn?: number, count?: number): boolean;
|
|
121
|
+
getHeaderRowCount(): number;
|
|
122
|
+
setHeaderRowCount(count: number): boolean;
|
|
123
|
+
pinHeaderRows(count: number): boolean;
|
|
124
|
+
hasTitleRow(): boolean;
|
|
125
|
+
insertTitleRow(): boolean;
|
|
126
|
+
setColumnType(column: number, config: IDocsTableColumnTypeConfig): boolean;
|
|
127
|
+
sortByColumn(column: number, direction: DocsTableSortDirection): boolean;
|
|
128
|
+
private _documentData;
|
|
129
|
+
private _mutate;
|
|
130
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { DocsTableColumnInsertPosition, DocsTableRowInsertPosition, DocsTableSortDirection, IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableOffsetRange } from '@univerjs-pro/docs-table';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ITable, ITableCellMargin, ITableRowSize, Nullable } from '@univerjs/core';
|
|
3
3
|
import type { FDocument } from '@univerjs/docs/facade';
|
|
4
4
|
import type { IDocsTableBorderOptions, IDocsTableCellContentRange, IDocsTableDescription, IDocsTableInfo, IDocsTableStyle } from './types';
|
|
5
5
|
import { DocsTableSelectionKind } from '@univerjs-pro/docs-table';
|
|
6
|
-
import { TableRowHeightRule } from '@univerjs/core';
|
|
6
|
+
import { ICommandService, Injector, TableRowHeightRule } from '@univerjs/core';
|
|
7
7
|
import { FDocumentTableCell } from './f-document-table-cell';
|
|
8
8
|
/**
|
|
9
9
|
* Facade object for a single enhanced docs table.
|
|
@@ -25,9 +25,10 @@ export declare class FDocumentTable {
|
|
|
25
25
|
private readonly _document;
|
|
26
26
|
private readonly _tableId;
|
|
27
27
|
private readonly _segmentId;
|
|
28
|
+
private readonly _commandService;
|
|
28
29
|
private readonly _injector;
|
|
29
30
|
private readonly _unitId;
|
|
30
|
-
constructor(_document: FDocument, _tableId: string, _segmentId: string
|
|
31
|
+
constructor(_document: FDocument, _tableId: string, _segmentId: string, _commandService: ICommandService, _injector: Injector);
|
|
31
32
|
/**
|
|
32
33
|
* Returns the table id.
|
|
33
34
|
* @returns {string} The table id stored in the document snapshot.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -28,7 +28,8 @@ export { buildDeleteTableColumnsMutationActions, buildDeleteTableMutationActions
|
|
|
28
28
|
export { buildDeleteColumnsActions, buildDeleteRowsActions, buildDeleteTableActions, buildInsertColumnsActions, buildInsertRowsActions, buildMoveColumnsActions, buildMoveRowsActions, DocsTableColumnInsertPosition, DocsTableInsertPosition, DocsTableRowInsertPosition, } from './common/actions';
|
|
29
29
|
export { buildSetTableBorderActions, buildSetTableBorderMutationActions, buildSetTableCellBackgroundActions, DocsTableBorderPreset, } from './common/border';
|
|
30
30
|
export { buildSetTableCellTextActions, buildSetTableCellTextMutationActions } from './common/cell-text';
|
|
31
|
-
export {
|
|
31
|
+
export type { IParsedHtmlTableCell, IParsedHtmlTableClipboard, IParsedHtmlTableRow, } from './common/clipboard';
|
|
32
|
+
export { buildPastePlainTextTableMutationActions, convertPlainTextTableToHtml, parseHtmlTableClipboard, parseHtmlTablesClipboard, serializeTableSelectionAsDocument, serializeTableSelectionAsPlainText, } from './common/clipboard';
|
|
32
33
|
export { DOCS_TABLE_PLUGIN } from './common/const';
|
|
33
34
|
export { DocsTableInsertTablePosition } from './common/insert-table';
|
|
34
35
|
export type { IDocsTableInsertOptions } from './common/insert-table';
|
|
@@ -20,10 +20,13 @@ export declare class DocsTableSelectionService extends Disposable {
|
|
|
20
20
|
private _structuralSelectionTableShape;
|
|
21
21
|
private _nativeSelectionSuppressed;
|
|
22
22
|
private _preserveStructuralSelectionOnNextTextSelection;
|
|
23
|
+
private _structuralSelectionScopeDepth;
|
|
23
24
|
readonly selectionChange$: import("rxjs").Observable<Nullable<IDocsTableSelection>>;
|
|
24
25
|
constructor(_univerInstanceService: IUniverInstanceService, _docSelectionManagerService: DocSelectionManagerService);
|
|
25
26
|
getCurrentSelection(): Nullable<IDocsTableSelection>;
|
|
26
27
|
getStructuralSelection(): Nullable<IDocsTableSelection>;
|
|
28
|
+
/** Keep the table range while a formatting command temporarily installs text ranges. */
|
|
29
|
+
withStructuralSelection<T>(action: () => Promise<T>): Promise<T>;
|
|
27
30
|
getStableTableSelection(): Nullable<IDocsTableSelection>;
|
|
28
31
|
emitCurrentSelection(): void;
|
|
29
32
|
setStructuralSelection(selection: IDocsTableStructuralSelectionInput, options?: IDocsTableStructuralSelectionOptions): void;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x309999,_0x57700c){const _0x2890e6=_0x28a1,_0x155fe2=_0x309999();while(!![]){try{const _0x5ca06c=-parseInt(_0x2890e6(0x1c9))/0x1*(-parseInt(_0x2890e6(0x1e3))/0x2)+parseInt(_0x2890e6(0x18a))/0x3*(parseInt(_0x2890e6(0x22b))/0x4)+-parseInt(_0x2890e6(0x1ed))/0x5*(parseInt(_0x2890e6(0x1d5))/0x6)+parseInt(_0x2890e6(0x1ab))/0x7+parseInt(_0x2890e6(0x1a4))/0x8*(-parseInt(_0x2890e6(0x1f9))/0x9)+parseInt(_0x2890e6(0x21c))/0xa*(-parseInt(_0x2890e6(0x216))/0xb)+-parseInt(_0x2890e6(0x24e))/0xc;if(_0x5ca06c===_0x57700c)break;else _0x155fe2['push'](_0x155fe2['shift']());}catch(_0x2096f8){_0x155fe2['push'](_0x155fe2['shift']());}}}(_0x5da5,0xef687),function(_0x5afe54,_0x212b68){const _0xabb2c7=_0x28a1;typeof exports==_0xabb2c7(0x225)&&typeof module<'u'?_0x212b68(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0xabb2c7(0x23d)&&define[_0xabb2c7(0x199)]?define([_0xabb2c7(0x190),'@univerjs-pro/docs-table','@univerjs/core','@univerjs/core/facade','@univerjs/docs/facade'],_0x212b68):(_0x5afe54=typeof globalThis<'u'?globalThis:_0x5afe54||self,_0x212b68(_0x5afe54[_0xabb2c7(0x1aa)]={},_0x5afe54[_0xabb2c7(0x1ad)],_0x5afe54['UniverCore'],_0x5afe54[_0xabb2c7(0x1fa)],_0x5afe54[_0xabb2c7(0x17d)]));}(this,function(_0x57d86a,_0x28da1a,_0x4705dd,_0x16945e,_0x567802){const _0x5d11db=_0x28a1;Object['defineProperty'](_0x57d86a,Symbol[_0x5d11db(0x1d6)],{'value':_0x5d11db(0x24c)});var _0xf83461=class extends _0x16945e[_0x5d11db(0x214)]{get['DocsTableInsertTablePosition'](){const _0x2efa99=_0x5d11db;return _0x28da1a[_0x2efa99(0x23b)];}get[_0x5d11db(0x22c)](){const _0x2e7295=_0x5d11db;return _0x28da1a[_0x2e7295(0x22c)];}get[_0x5d11db(0x23f)](){const _0x383592=_0x5d11db;return _0x28da1a[_0x383592(0x23f)];}get[_0x5d11db(0x1b2)](){const _0x2118f0=_0x5d11db;return _0x28da1a[_0x2118f0(0x1b2)];}get[_0x5d11db(0x1dc)](){const _0x4f3df8=_0x5d11db;return _0x28da1a[_0x4f3df8(0x1dc)];}get[_0x5d11db(0x210)](){return _0x28da1a['DocsTableBorderPreset'];}get[_0x5d11db(0x1bf)](){const _0x46b0dd=_0x5d11db;return _0x28da1a[_0x46b0dd(0x1bf)];}get[_0x5d11db(0x1e0)](){return _0x4705dd['DashStyleType'];}};_0x16945e[_0x5d11db(0x214)][_0x5d11db(0x245)](_0xf83461);var _0x261dac=class{constructor(_0x134afc,_0x2c3ebf,_0x35af23){const _0x7162cd=_0x5d11db;this[_0x7162cd(0x244)]=_0x134afc,this[_0x7162cd(0x20d)]=_0x2c3ebf,this[_0x7162cd(0x1e5)]=_0x35af23;}[_0x5d11db(0x18c)](){const _0x2ebf67=_0x5d11db;return this[_0x2ebf67(0x244)];}[_0x5d11db(0x1a1)](){const _0x34e99a=_0x5d11db;return this[_0x34e99a(0x20d)];}['getColumnIndex'](){const _0x11765a=_0x5d11db;return this[_0x11765a(0x1e5)];}[_0x5d11db(0x223)](){const _0x25c94e=_0x5d11db;return this[_0x25c94e(0x244)][_0x25c94e(0x1ff)](this['_row'],this[_0x25c94e(0x1e5)]);}[_0x5d11db(0x1fd)](){const _0x51dd2c=_0x5d11db;return this['_table'][_0x51dd2c(0x20f)](this['_row'],this[_0x51dd2c(0x1e5)]);}['getInsertOffset'](){const _0x77172=_0x5d11db;return this[_0x77172(0x244)][_0x77172(0x20b)](this[_0x77172(0x20d)],this['_column']);}[_0x5d11db(0x23e)](){const _0x4dd33a=_0x5d11db;return this[_0x4dd33a(0x244)][_0x4dd33a(0x180)](this[_0x4dd33a(0x20d)],this[_0x4dd33a(0x1e5)]);}[_0x5d11db(0x1b0)](){const _0x72234b=_0x5d11db;return this['_table'][_0x72234b(0x1ba)](this[_0x72234b(0x20d)],this[_0x72234b(0x1e5)]);}[_0x5d11db(0x181)](_0x47c8af){const _0x9d2e32=_0x5d11db;return this[_0x9d2e32(0x244)]['setCellMargin'](this[_0x9d2e32(0x244)][_0x9d2e32(0x1ac)](this[_0x9d2e32(0x20d)],this[_0x9d2e32(0x1e5)]),_0x47c8af);}[_0x5d11db(0x253)](){const _0x3a1385=_0x5d11db;return this[_0x3a1385(0x244)][_0x3a1385(0x1df)](this['_table'][_0x3a1385(0x1ac)](this[_0x3a1385(0x20d)],this[_0x3a1385(0x1e5)]),null);}[_0x5d11db(0x1e2)](_0x9581d1){const _0x3f9e42=_0x5d11db;return this[_0x3f9e42(0x244)]['setCellText'](this['_row'],this['_column'],_0x9581d1);}['setBackgroundColor'](_0x2c1704){const _0x116739=_0x5d11db;return this[_0x116739(0x244)]['setCellBackground'](this[_0x116739(0x244)][_0x116739(0x1ac)](this['_row'],this[_0x116739(0x1e5)]),_0x2c1704);}[_0x5d11db(0x234)](_0x906894){const _0x421938=_0x5d11db;return this[_0x421938(0x244)][_0x421938(0x234)](this['_table'][_0x421938(0x1ac)](this[_0x421938(0x20d)],this[_0x421938(0x1e5)]),_0x906894);}[_0x5d11db(0x238)](_0x2d4ab3,_0x1d0673){const _0x2c4e04=_0x5d11db;return this[_0x2c4e04(0x244)]['mergeCells']({'startRow':this[_0x2c4e04(0x20d)],'startColumn':this[_0x2c4e04(0x1e5)],'endRow':this[_0x2c4e04(0x20d)]+_0x2d4ab3-0x1,'endColumn':this[_0x2c4e04(0x1e5)]+_0x1d0673-0x1});}['unmerge'](){const _0x3a2f8a=_0x5d11db;return this[_0x3a2f8a(0x244)]['unmergeCells'](this[_0x3a2f8a(0x244)][_0x3a2f8a(0x1ac)](this[_0x3a2f8a(0x20d)],this[_0x3a2f8a(0x1e5)]));}};function _0x3b3fba(_0x9ba169){'@babel/helpers - typeof';const _0x4d2940=_0x5d11db;return _0x3b3fba=typeof Symbol==_0x4d2940(0x23d)&&typeof Symbol[_0x4d2940(0x24a)]==_0x4d2940(0x1e6)?function(_0x4ff2fc){return typeof _0x4ff2fc;}:function(_0x4cf3e0){const _0x205b10=_0x4d2940;return _0x4cf3e0&&typeof Symbol=='function'&&_0x4cf3e0[_0x205b10(0x227)]===Symbol&&_0x4cf3e0!==Symbol[_0x205b10(0x24d)]?_0x205b10(0x1e6):typeof _0x4cf3e0;},_0x3b3fba(_0x9ba169);}function _0x3abc4d(_0x1d439d,_0x27f386){const _0x1c5e88=_0x5d11db;if(_0x3b3fba(_0x1d439d)!=_0x1c5e88(0x225)||!_0x1d439d)return _0x1d439d;var _0x46a306=_0x1d439d[Symbol[_0x1c5e88(0x243)]];if(_0x46a306!==void 0x0){var _0x2c64f9=_0x46a306[_0x1c5e88(0x1a0)](_0x1d439d,_0x27f386||_0x1c5e88(0x233));if(_0x3b3fba(_0x2c64f9)!='object')return _0x2c64f9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x27f386===_0x1c5e88(0x1e1)?String:Number)(_0x1d439d);}function _0x2ec5f2(_0xf2d80e){const _0x52f446=_0x5d11db;var _0x283436=_0x3abc4d(_0xf2d80e,'string');return _0x3b3fba(_0x283436)==_0x52f446(0x1e6)?_0x283436:_0x283436+'';}function _0x118372(_0x584acf,_0x1e4fe4,_0x375f48){return(_0x1e4fe4=_0x2ec5f2(_0x1e4fe4))in _0x584acf?Object['defineProperty'](_0x584acf,_0x1e4fe4,{'value':_0x375f48,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x584acf[_0x1e4fe4]=_0x375f48,_0x584acf;}var _0x341b43=class{constructor(_0x2044d4,_0x441607,_0x390e1e='',_0x495682){const _0x2e709a=_0x5d11db;this[_0x2e709a(0x1e8)]=_0x2044d4,this['_tableId']=_0x441607,this[_0x2e709a(0x1eb)]=_0x390e1e,this['_injector']=_0x495682,_0x118372(this,_0x2e709a(0x201),void 0x0),this['_unitId']=this['_document'][_0x2e709a(0x252)]();}[_0x5d11db(0x252)](){const _0x12c7c6=_0x5d11db;return this[_0x12c7c6(0x18b)];}[_0x5d11db(0x1fe)](){const _0x4d76ea=_0x5d11db;return this[_0x4d76ea(0x1eb)];}[_0x5d11db(0x221)](){const _0x33ac5b=_0x5d11db;return{'id':this[_0x33ac5b(0x18b)],'rowCount':this[_0x33ac5b(0x1b1)](),'columnCount':this['getColumnCount'](),'metadata':this[_0x33ac5b(0x1c3)](),'source':this[_0x33ac5b(0x21e)]()};}[_0x5d11db(0x241)](){const _0x1b96e3=_0x5d11db;let _0x4f9ae1=this['getMetadata'](),_0xb2cb02=this[_0x1b96e3(0x21e)](),_0x49aa9a=this[_0x1b96e3(0x17c)]();return{'id':this[_0x1b96e3(0x18b)],'rowCount':this[_0x1b96e3(0x1b1)](),'columnCount':_0x49aa9a,'headerRowCount':(_0x4f9ae1==null?void 0x0:_0x4f9ae1[_0x1b96e3(0x1a8)])??0x0,'titleRow':(_0x4f9ae1==null?void 0x0:_0x4f9ae1[_0x1b96e3(0x1a7)])??!0x1,'columns':Array['from']({'length':_0x49aa9a},(_0x46c062,_0x552acf)=>{const _0x5e91c5=_0x1b96e3;var _0x3a817,_0x4fe5b1;return{'index':_0x552acf,'type':_0x4f9ae1==null||(_0x3a817=_0x4f9ae1[_0x5e91c5(0x1b5)])==null||(_0x3a817=_0x3a817[_0x552acf])==null?void 0x0:_0x3a817[_0x5e91c5(0x230)],'width':_0xb2cb02==null||(_0x4fe5b1=_0xb2cb02['tableColumns'][_0x552acf])==null?void 0x0:_0x4fe5b1['size'][_0x5e91c5(0x1c7)]['v']};}),'sampleRows':Array['from']({'length':this['getRowCount']()},(_0x560477,_0x23972f)=>Array[_0x1b96e3(0x202)]({'length':_0x49aa9a},(_0x588903,_0x55eba4)=>this[_0x1b96e3(0x1ff)](_0x23972f,_0x55eba4)))['filter'](_0x17ad60=>_0x17ad60[_0x1b96e3(0x254)](_0x2788a0=>_0x2788a0['length']>0x0))[_0x1b96e3(0x23a)](0x0,0x5)};}[_0x5d11db(0x1b1)](){const _0x164a2f=_0x5d11db;var _0x550d53;return((_0x550d53=this[_0x164a2f(0x21e)]())==null?void 0x0:_0x550d53[_0x164a2f(0x24b)]['length'])??0x0;}['getColumnCount'](){const _0x4d25c6=_0x5d11db;var _0x452715;return((_0x452715=this[_0x4d25c6(0x21e)]())==null?void 0x0:_0x452715[_0x4d25c6(0x1f1)][_0x4d25c6(0x1b7)])??0x0;}['getCell'](_0x5a5642,_0x3755c0){const _0xd18d52=_0x5d11db;var _0x327942;return(_0x327942=this[_0xd18d52(0x21e)]())!=null&&(_0x327942=_0x327942[_0xd18d52(0x24b)][_0x5a5642])!=null&&_0x327942['tableCells'][_0x3755c0]?this['_injector'][_0xd18d52(0x205)](_0x261dac,this,_0x5a5642,_0x3755c0):null;}[_0x5d11db(0x1ff)](_0x58134c,_0x2d49e9){const _0x4243a9=_0x5d11db;var _0x4e37a1,_0x519b86;let _0x4a462a=(_0x4e37a1=(0x0,_0x28da1a['getTableRangeById'])(this[_0x4243a9(0x1c4)](),this['_tableId']))==null||(_0x4e37a1=_0x4e37a1[_0x4243a9(0x188)][_0x58134c])==null?void 0x0:_0x4e37a1[_0x4243a9(0x235)][_0x2d49e9];return _0x4a462a?((_0x519b86=this['_getDocumentData']()[_0x4243a9(0x19d)])==null?void 0x0:_0x519b86[_0x4243a9(0x18e)]['slice'](_0x4a462a[_0x4243a9(0x218)]+0x1,_0x4a462a[_0x4243a9(0x198)])['replace'](/\r\n$/,''))??'':'';}[_0x5d11db(0x180)](_0x208062,_0x1c01d4){const _0x1113e5=_0x5d11db;var _0x14d1a0;let _0x4a8abb=this[_0x1113e5(0x21e)](),_0x29dc5b=_0x4a8abb==null||(_0x14d1a0=_0x4a8abb['tableRows'][_0x208062])==null?void 0x0:_0x14d1a0['tableCells'][_0x1c01d4];return _0x29dc5b?_0x4705dd[_0x1113e5(0x196)][_0x1113e5(0x203)](_0x29dc5b[_0x1113e5(0x1dd)]??_0x4a8abb[_0x1113e5(0x242)]??_0x28da1a[_0x1113e5(0x255)]):null;}[_0x5d11db(0x1ba)](_0x288fae,_0x1ced07){const _0x1cc802=_0x5d11db;var _0x2b9cd1;let _0xceb9b8=(_0x2b9cd1=this['getSource']())==null||(_0x2b9cd1=_0x2b9cd1[_0x1cc802(0x24b)][_0x288fae])==null?void 0x0:_0x2b9cd1['tableCells'][_0x1ced07];return _0xceb9b8!=null&&_0xceb9b8[_0x1cc802(0x1dd)]?_0x4705dd[_0x1cc802(0x196)][_0x1cc802(0x203)](_0xceb9b8['margin']):null;}[_0x5d11db(0x1bd)](){const _0x1c4ee2=_0x5d11db;var _0x396575;return _0x4705dd[_0x1c4ee2(0x196)]['deepClone'](((_0x396575=this['getSource']())==null?void 0x0:_0x396575[_0x1c4ee2(0x242)])??_0x28da1a[_0x1c4ee2(0x255)]);}['getDefaultCellMarginOverride'](){const _0x541319=_0x5d11db;var _0x4138b0;let _0x1a05d8=(_0x4138b0=this[_0x541319(0x21e)]())==null?void 0x0:_0x4138b0[_0x541319(0x242)];return _0x1a05d8?_0x4705dd[_0x541319(0x196)][_0x541319(0x203)](_0x1a05d8):null;}[_0x5d11db(0x1c3)](){const _0x14d0eb=_0x5d11db;return this[_0x14d0eb(0x246)][_0x14d0eb(0x213)](_0x28da1a[_0x14d0eb(0x1f0)])[_0x14d0eb(0x249)](this[_0x14d0eb(0x201)],this[_0x14d0eb(0x18b)]);}['getSource'](){const _0x1eec75=_0x5d11db;var _0x1f8f4d;return(_0x1f8f4d=this[_0x1eec75(0x1c4)]()[_0x1eec75(0x206)])==null?void 0x0:_0x1f8f4d[this[_0x1eec75(0x18b)]];}['getRange'](){const _0x5ecbfa=_0x5d11db;return(0x0,_0x28da1a[_0x5ecbfa(0x1a5)])(this[_0x5ecbfa(0x1c4)](),this['_tableId']);}[_0x5d11db(0x1c8)](){const _0x3304f0=_0x5d11db;return{'startRow':0x0,'endRow':Math[_0x3304f0(0x193)](0x0,this[_0x3304f0(0x1b1)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x3304f0(0x193)](0x0,this[_0x3304f0(0x17c)]()-0x1)};}[_0x5d11db(0x1ac)](_0x170be5,_0x270402){return{'startRow':_0x170be5,'endRow':_0x170be5,'startColumn':_0x270402,'endColumn':_0x270402};}[_0x5d11db(0x20f)](_0x45c02a,_0xb2af92){const _0x3ff434=_0x5d11db;var _0x5b3dbe;let _0x3483fa=(_0x5b3dbe=(0x0,_0x28da1a['getTableRangeById'])(this['_getDocumentData'](),this[_0x3ff434(0x18b)]))==null||(_0x5b3dbe=_0x5b3dbe[_0x3ff434(0x188)][_0x45c02a])==null?void 0x0:_0x5b3dbe[_0x3ff434(0x235)][_0xb2af92];if(!_0x3483fa)return null;let _0x5476cd=_0x3483fa[_0x3ff434(0x218)]+0x1;return{'startOffset':_0x5476cd,'endOffset':Math[_0x3ff434(0x193)](_0x5476cd,_0x3483fa['endOffset']-0x1),'segmentId':this[_0x3ff434(0x1eb)]};}[_0x5d11db(0x20b)](_0x4b9b41,_0x59056a){const _0x544835=_0x5d11db;let _0x4ec12f=this[_0x544835(0x20f)](_0x4b9b41,_0x59056a);return _0x4ec12f?Math[_0x544835(0x193)](_0x4ec12f['startOffset'],_0x4ec12f[_0x544835(0x198)]-0x1):null;}['getRowRange'](_0x254cdb){return this['getRowsRange'](_0x254cdb,0x1);}[_0x5d11db(0x1d0)](_0x5ea856,_0x404424=0x1){const _0x3ab7d7=_0x5d11db;return{'startRow':_0x5ea856,'endRow':_0x5ea856+_0x404424-0x1,'startColumn':0x0,'endColumn':Math[_0x3ab7d7(0x193)](0x0,this[_0x3ab7d7(0x17c)]()-0x1)};}[_0x5d11db(0x1de)](_0x1cfaf6){const _0x34dac8=_0x5d11db;return this[_0x34dac8(0x20a)](_0x1cfaf6,0x1);}['getColumnsRange'](_0x375bfb,_0x309422=0x1){const _0x58f1c2=_0x5d11db;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x58f1c2(0x1b1)]()-0x1),'startColumn':_0x375bfb,'endColumn':_0x375bfb+_0x309422-0x1};}[_0x5d11db(0x23c)](){const _0x170af7=_0x5d11db;return this[_0x170af7(0x1cb)](this[_0x170af7(0x1c8)](),_0x28da1a[_0x170af7(0x23f)][_0x170af7(0x1c1)]);}[_0x5d11db(0x1db)](_0x46b887){const _0x4aedfb=_0x5d11db;return this[_0x4aedfb(0x24f)](_0x46b887,0x1);}['selectRows'](_0x558898,_0x4df880=0x1){const _0x1e0332=_0x5d11db;return this[_0x1e0332(0x1cb)](this['getRowsRange'](_0x558898,_0x4df880),_0x28da1a[_0x1e0332(0x23f)][_0x1e0332(0x197)]);}[_0x5d11db(0x217)](_0x2c2960){const _0x473d97=_0x5d11db;return this[_0x473d97(0x1f4)](_0x2c2960,0x1);}[_0x5d11db(0x1f4)](_0x1ea948,_0x4bf560=0x1){const _0x3abd98=_0x5d11db;return this[_0x3abd98(0x1cb)](this['getColumnsRange'](_0x1ea948,_0x4bf560),_0x28da1a[_0x3abd98(0x23f)]['Column']);}[_0x5d11db(0x1d7)](_0xf488dc,_0x3fe8ec){const _0x3f63fd=_0x5d11db;return this['selectRange'](this[_0x3f63fd(0x1ac)](_0xf488dc,_0x3fe8ec),_0x28da1a[_0x3f63fd(0x23f)][_0x3f63fd(0x212)]);}[_0x5d11db(0x1cb)](_0x513398,_0x4ef3e9=_0x28da1a[_0x5d11db(0x23f)][_0x5d11db(0x211)]){const _0x371e74=_0x5d11db;return this['_injector'][_0x371e74(0x213)](_0x28da1a[_0x371e74(0x1a9)])[_0x371e74(0x251)]({..._0x513398,'kind':_0x4ef3e9,'segmentId':this['_segmentId'],'tableId':this['_tableId']}),!0x0;}[_0x5d11db(0x1da)](_0x547ea0){return this['insertRowsBefore'](_0x547ea0,0x1);}[_0x5d11db(0x1b9)](_0x3c249d){return this['insertRowsAfter'](_0x3c249d,0x1);}[_0x5d11db(0x17f)](_0x3fda64,_0x58f903){const _0x259a14=_0x5d11db;let _0x597e03=this[_0x259a14(0x1c4)](),_0x2a4a48=(0x0,_0x28da1a['buildInsertTableRowsMutationActions'])(_0x597e03,this['_tableId'],_0x3fda64,_0x58f903,_0x28da1a[_0x259a14(0x21b)][_0x259a14(0x22a)],this[_0x259a14(0x195)]());return _0x2a4a48?this[_0x259a14(0x184)](_0x597e03,_0x2a4a48[_0x259a14(0x1cf)]):!0x1;}['insertRowsAfter'](_0xcb201e,_0x551a96){const _0x1d318d=_0x5d11db;let _0x3980b5=this['_getDocumentData'](),_0x45c4d4=(0x0,_0x28da1a[_0x1d318d(0x1fc)])(_0x3980b5,this['_tableId'],_0xcb201e,_0x551a96,_0x28da1a[_0x1d318d(0x21b)]['Below'],this[_0x1d318d(0x195)]());return _0x45c4d4?this['_mutateActions'](_0x3980b5,_0x45c4d4[_0x1d318d(0x1cf)]):!0x1;}['appendRow'](){const _0x2974be=_0x5d11db;return this[_0x2974be(0x192)](Math[_0x2974be(0x193)](0x0,this[_0x2974be(0x1b1)]()-0x1),0x1);}[_0x5d11db(0x1b8)](_0x436c2d){const _0x48b96f=_0x5d11db;return this[_0x48b96f(0x1be)](_0x436c2d,0x1);}['insertColumnAfter'](_0x10f625){const _0x26f8c6=_0x5d11db;return this[_0x26f8c6(0x183)](_0x10f625,0x1);}[_0x5d11db(0x1be)](_0x386dea,_0x152101){const _0x58a177=_0x5d11db;let _0x22bf42=this['_getDocumentData'](),_0x1f07fd=(0x0,_0x28da1a['buildInsertTableColumnsMutationActions'])(_0x22bf42,this[_0x58a177(0x18b)],_0x386dea,_0x152101,_0x28da1a[_0x58a177(0x21b)][_0x58a177(0x1cc)],{'bodyPath':this[_0x58a177(0x195)]()});return _0x1f07fd?this[_0x58a177(0x184)](_0x22bf42,_0x1f07fd['actions']):!0x1;}[_0x5d11db(0x183)](_0x21a82e,_0x4cf7f0){const _0x56885d=_0x5d11db;let _0x2b10df=this[_0x56885d(0x1c4)](),_0x3ee936=(0x0,_0x28da1a[_0x56885d(0x1c6)])(_0x2b10df,this[_0x56885d(0x18b)],_0x21a82e,_0x4cf7f0,_0x28da1a['DocsTableInsertPosition']['Right'],{'bodyPath':this['_getBodyPath']()});return _0x3ee936?this[_0x56885d(0x184)](_0x2b10df,_0x3ee936[_0x56885d(0x1cf)]):!0x1;}[_0x5d11db(0x18f)](){const _0x16b5b1=_0x5d11db;return this[_0x16b5b1(0x183)](Math[_0x16b5b1(0x193)](0x0,this[_0x16b5b1(0x17c)]()-0x1),0x1);}[_0x5d11db(0x226)](_0x9784c0){return this['deleteRows'](_0x9784c0,0x1);}[_0x5d11db(0x1a3)](_0x366ae7,_0x5a64b3=0x1){const _0x43a6be=_0x5d11db;let _0x1716b8=this[_0x43a6be(0x1c4)](),_0x38c49a=(0x0,_0x28da1a['buildDeleteTableRowsMutationActions'])(_0x1716b8,this[_0x43a6be(0x18b)],_0x366ae7,_0x366ae7+_0x5a64b3-0x1,this[_0x43a6be(0x195)]());return _0x38c49a?this[_0x43a6be(0x184)](_0x1716b8,_0x38c49a[_0x43a6be(0x1cf)]):!0x1;}['deleteColumn'](_0x3d3248){const _0x34c11b=_0x5d11db;return this[_0x34c11b(0x19b)](_0x3d3248,0x1);}['deleteColumns'](_0x1c64f9,_0x25b84c=0x1){const _0x4f197c=_0x5d11db;let _0x51f55a=this[_0x4f197c(0x1c4)](),_0x448309=(0x0,_0x28da1a['buildDeleteTableColumnsMutationActions'])(_0x51f55a,this['_tableId'],_0x1c64f9,_0x1c64f9+_0x25b84c-0x1,this['_getBodyPath']());return _0x448309?this['_mutateActions'](_0x51f55a,_0x448309[_0x4f197c(0x1cf)]):!0x1;}['deleteTable'](){const _0x2381aa=_0x5d11db;let _0x616b75=this[_0x2381aa(0x1c4)](),_0x4d1096=(0x0,_0x28da1a[_0x2381aa(0x1f7)])(_0x616b75,this[_0x2381aa(0x18b)],this[_0x2381aa(0x195)]());return _0x4d1096?this['_mutateActions'](_0x616b75,_0x4d1096['actions']):!0x1;}[_0x5d11db(0x17e)](_0x31ebb9,_0x53a70e){const _0x2b33c2=_0x5d11db;let _0x5ed66b=this[_0x2b33c2(0x1c4)]();return this['_mutateActions'](_0x5ed66b,(0x0,_0x28da1a['buildMoveFloatingTableMutationActions'])(_0x5ed66b,this[_0x2b33c2(0x18b)],_0x31ebb9,_0x53a70e));}[_0x5d11db(0x1e7)](_0xd48aab){const _0x4c516c=_0x5d11db;let _0x4c894b=this[_0x4c516c(0x1c4)]();return this[_0x4c516c(0x184)](_0x4c894b,(0x0,_0x28da1a[_0x4c516c(0x21a)])(_0x4c894b,this['_tableId'],_0xd48aab,this[_0x4c516c(0x195)]()));}[_0x5d11db(0x208)](_0x3c2d0d,_0x40f48c,_0x264448=_0x28da1a['DocsTableInsertPosition'][_0x5d11db(0x22a)]){const _0x53859a=_0x5d11db;return this[_0x53859a(0x1cd)](_0x3c2d0d,0x1,_0x40f48c,_0x264448);}[_0x5d11db(0x1cd)](_0x25abd7,_0x5e847a,_0x16a5c0,_0x581f96=_0x28da1a[_0x5d11db(0x21b)]['Above']){const _0x2cb9ed=_0x5d11db;let _0x189f6a=this[_0x2cb9ed(0x1c4)](),_0x2ffc9e=(0x0,_0x28da1a[_0x2cb9ed(0x1f2)])(_0x189f6a,this['_tableId'],_0x25abd7,_0x16a5c0,_0x5e847a,_0x581f96,this[_0x2cb9ed(0x195)]());return _0x2ffc9e?this[_0x2cb9ed(0x184)](_0x189f6a,_0x2ffc9e[_0x2cb9ed(0x1cf)]):!0x1;}[_0x5d11db(0x236)](_0x437f63,_0x229044,_0x1eaf00=_0x28da1a[_0x5d11db(0x21b)][_0x5d11db(0x1cc)]){return this['moveColumns'](_0x437f63,0x1,_0x229044,_0x1eaf00);}[_0x5d11db(0x187)](_0x19375c,_0x42ce44,_0x15aa2e,_0xa445d5=_0x28da1a[_0x5d11db(0x21b)][_0x5d11db(0x1cc)]){const _0x3cf6d7=_0x5d11db;let _0x4bb957=this[_0x3cf6d7(0x1c4)](),_0x25575f=(0x0,_0x28da1a[_0x3cf6d7(0x194)])(_0x4bb957,this[_0x3cf6d7(0x18b)],_0x19375c,_0x15aa2e,_0x42ce44,_0xa445d5,this[_0x3cf6d7(0x195)]());return _0x25575f?this[_0x3cf6d7(0x184)](_0x4bb957,_0x25575f[_0x3cf6d7(0x1cf)]):!0x1;}[_0x5d11db(0x1fb)](_0x1ab461){const _0x48b395=_0x5d11db;try{let _0x28aa4d=this[_0x48b395(0x1c4)](),_0x2f3f79=(0x0,_0x28da1a['buildMergeCellsMutationActions'])({'documentData':_0x28aa4d,'tableId':this[_0x48b395(0x18b)],..._0x1ab461});return _0x2f3f79?this[_0x48b395(0x184)](_0x28aa4d,_0x2f3f79[_0x48b395(0x1cf)],_0x1ab461):!0x1;}catch{return!0x1;}}[_0x5d11db(0x1d8)](_0x5eeb3f){const _0x50eefc=_0x5d11db;try{let _0x3a72d9=this[_0x50eefc(0x1c4)](),_0x5546e8=(0x0,_0x28da1a[_0x50eefc(0x239)])({'documentData':_0x3a72d9,'tableId':this[_0x50eefc(0x18b)],..._0x5eeb3f});return _0x5546e8?this[_0x50eefc(0x184)](_0x3a72d9,_0x5546e8[_0x50eefc(0x1cf)],_0x5eeb3f):!0x1;}catch{return!0x1;}}[_0x5d11db(0x186)](_0x1c9a49,_0x10172d,_0x414923){const _0xea91a6=_0x5d11db;let _0xd51fcc=this['_getDocumentData'](),_0x49854d=(0x0,_0x28da1a['getTableActionBodyPath'])(this[_0xea91a6(0x1e8)][_0xea91a6(0x1e4)]()['getSnapshot'](),this[_0xea91a6(0x1eb)]);return this['_mutateActions'](_0xd51fcc,(0x0,_0x28da1a[_0xea91a6(0x231)])({'documentData':_0xd51fcc,'tableId':this[_0xea91a6(0x18b)],'row':_0x1c9a49,'column':_0x10172d,'text':_0x414923},_0x49854d),this[_0xea91a6(0x1ac)](_0x1c9a49,_0x10172d));}[_0x5d11db(0x22f)](_0x456069,_0x5152be){const _0x2f89e4=_0x5d11db;let _0x32e1b3=this[_0x2f89e4(0x1c4)]();return this[_0x2f89e4(0x184)](_0x32e1b3,(0x0,_0x28da1a[_0x2f89e4(0x1b4)])(_0x32e1b3,{'tableId':this[_0x2f89e4(0x18b)],..._0x456069,'value':_0x5152be}),_0x456069);}[_0x5d11db(0x1df)](_0x503560,_0x18d2f8){const _0x53c650=_0x5d11db;let _0x226171=this[_0x53c650(0x1c4)]();return this[_0x53c650(0x184)](_0x226171,(0x0,_0x28da1a[_0x53c650(0x1f3)])({'documentData':_0x226171,'tableId':this['_tableId'],..._0x503560,'margin':_0x18d2f8}),_0x503560);}[_0x5d11db(0x224)](_0x455d2b){const _0x21d6b5=_0x5d11db;let _0x4b2f2c=this['_getDocumentData']();return this[_0x21d6b5(0x184)](_0x4b2f2c,(0x0,_0x28da1a[_0x21d6b5(0x248)])(_0x4b2f2c,this[_0x21d6b5(0x18b)],_0x455d2b));}[_0x5d11db(0x234)](_0xdd86c5,_0x2c08a8){const _0x4ea2f2=_0x5d11db;let _0x3de5bd=this[_0x4ea2f2(0x1c4)]();return this[_0x4ea2f2(0x184)](_0x3de5bd,(0x0,_0x28da1a[_0x4ea2f2(0x229)])({'documentData':_0x3de5bd,'tableId':this[_0x4ea2f2(0x18b)],..._0xdd86c5,'preset':_0x2c08a8[_0x4ea2f2(0x1bc)]??_0x28da1a[_0x4ea2f2(0x210)][_0x4ea2f2(0x1d3)],'border':_0x2c08a8[_0x4ea2f2(0x1ce)]??{'color':{'rgb':_0x2c08a8[_0x4ea2f2(0x1f8)]??_0x4ea2f2(0x1ea)},'width':{'v':_0x2c08a8['width']??0x1},'dashStyle':_0x4705dd['DashStyleType'][_0x4ea2f2(0x204)]}}),_0xdd86c5);}[_0x5d11db(0x1c2)](_0x505e70){const _0x4bd0df=_0x5d11db;return this[_0x4bd0df(0x22f)](this['getTableRange'](),_0x505e70);}[_0x5d11db(0x1d1)](_0x342ffd){const _0x185b29=_0x5d11db;return this[_0x185b29(0x234)](this[_0x185b29(0x1c8)](),_0x342ffd);}[_0x5d11db(0x250)](_0x238ec2){const _0x639bd6=_0x5d11db;let _0x45ac64=!_0x238ec2['backgroundColor']||this[_0x639bd6(0x1c2)](_0x238ec2['backgroundColor']),_0x1c130d=!_0x238ec2['border']||this[_0x639bd6(0x1d1)](_0x238ec2['border']);return _0x45ac64&&_0x1c130d;}[_0x5d11db(0x18d)](_0x406713,_0xe0e4b9,_0x25ff2b=_0x4705dd[_0x5d11db(0x19f)]['AT_LEAST']){const _0x2b9d32=_0x5d11db;var _0x4ef167;let _0x113dfd=this['_getDocumentData']();return(_0x4ef167=_0x113dfd[_0x2b9d32(0x206)])!=null&&(_0x4ef167=_0x4ef167[this[_0x2b9d32(0x18b)]])!=null&&_0x4ef167[_0x2b9d32(0x24b)][_0x406713]?this['_mutateActions'](_0x113dfd,(0x0,_0x28da1a[_0x2b9d32(0x240)])(_0x113dfd,this[_0x2b9d32(0x18b)],_0x406713,_0xe0e4b9,_0x25ff2b)):!0x1;}['getRowHeight'](_0x2cde26){const _0x4c0992=_0x5d11db;var _0x2f1a17;let _0x4a16df=(_0x2f1a17=this[_0x4c0992(0x21e)]())==null||(_0x2f1a17=_0x2f1a17[_0x4c0992(0x24b)][_0x2cde26])==null?void 0x0:_0x2f1a17[_0x4c0992(0x200)];return _0x4a16df?_0x4705dd['Tools'][_0x4c0992(0x203)](_0x4a16df):null;}[_0x5d11db(0x19c)](_0x6063cd,_0x2feac2){const _0x54bc9a=_0x5d11db;var _0x245ee1;let _0x14d0b6=this[_0x54bc9a(0x1c4)]();return(_0x245ee1=_0x14d0b6['tableSource'])!=null&&(_0x245ee1=_0x245ee1[this[_0x54bc9a(0x18b)]])!=null&&_0x245ee1[_0x54bc9a(0x1f1)][_0x6063cd]?this[_0x54bc9a(0x184)](_0x14d0b6,(0x0,_0x28da1a[_0x54bc9a(0x20e)])(_0x14d0b6,this[_0x54bc9a(0x18b)],_0x6063cd,_0x2feac2)):!0x1;}[_0x5d11db(0x1ae)](_0x10d03c=0x0,_0x2afd25=this['getRowCount']()){const _0xf202b9=_0x5d11db;let _0xe3dbb6=this[_0xf202b9(0x1c4)]();return this[_0xf202b9(0x184)](_0xe3dbb6,(0x0,_0x28da1a[_0xf202b9(0x1e9)])(_0xe3dbb6,this['_tableId'],_0x10d03c,_0x10d03c+_0x2afd25-0x1));}[_0x5d11db(0x1d9)](_0x18a262=0x0,_0x1a6a62=this['getColumnCount']()){const _0x3a457a=_0x5d11db;let _0x34ae1c=this['_getDocumentData']();return this['_mutateActions'](_0x34ae1c,(0x0,_0x28da1a[_0x3a457a(0x219)])(_0x34ae1c,this[_0x3a457a(0x18b)],_0x18a262,_0x18a262+_0x1a6a62-0x1));}[_0x5d11db(0x22d)](){const _0x11eda2=_0x5d11db;var _0x1bb0e8;return((_0x1bb0e8=this[_0x11eda2(0x1c3)]())==null?void 0x0:_0x1bb0e8[_0x11eda2(0x1a8)])??0x0;}[_0x5d11db(0x1c5)](_0x4ed5f9){const _0x8a64ad=_0x5d11db;let _0x2a9889=this[_0x8a64ad(0x246)][_0x8a64ad(0x213)](_0x28da1a['DocsTableModel']),_0x264321=this[_0x8a64ad(0x1c4)](),_0x4d4e5d=(0x0,_0x28da1a[_0x8a64ad(0x22e)])(_0x264321,this[_0x8a64ad(0x18b)],_0x4ed5f9);if(!_0x4d4e5d)return!0x1;let _0x43bd03=this['_mutateActions'](_0x264321,_0x4d4e5d[_0x8a64ad(0x1cf)]);return _0x43bd03&&_0x2a9889[_0x8a64ad(0x1c5)](this[_0x8a64ad(0x201)],this[_0x8a64ad(0x18b)],_0x4d4e5d['headerRowCount']),_0x43bd03;}['pinHeaderRows'](_0x2c9593){const _0x2a6cce=_0x5d11db;return this[_0x2a6cce(0x1c5)](_0x2c9593);}[_0x5d11db(0x21d)](){const _0x42c669=_0x5d11db;var _0x55fd95;return((_0x55fd95=this[_0x42c669(0x1c3)]())==null?void 0x0:_0x55fd95[_0x42c669(0x1a7)])??!0x1;}[_0x5d11db(0x20c)](){const _0x230d3e=_0x5d11db;let _0x586fe7=this[_0x230d3e(0x246)]['get'](_0x28da1a[_0x230d3e(0x1f0)]),_0x52e156=this['_getDocumentData'](),_0x32d1aa=(0x0,_0x28da1a[_0x230d3e(0x1ca)])(_0x52e156,this[_0x230d3e(0x18b)],this[_0x230d3e(0x195)]());if(!_0x32d1aa)return!0x1;let _0x3ba78b=this[_0x230d3e(0x184)](_0x52e156,_0x32d1aa[_0x230d3e(0x1cf)]);return _0x3ba78b&&_0x586fe7['setTitleRow'](this[_0x230d3e(0x201)],this[_0x230d3e(0x18b)],!0x0),_0x3ba78b;}['setColumnType'](_0xc59fd8,_0x1860fd){const _0x13f0eb=_0x5d11db;return this['_injector'][_0x13f0eb(0x213)](_0x28da1a[_0x13f0eb(0x1f0)])[_0x13f0eb(0x21f)](this[_0x13f0eb(0x201)],this[_0x13f0eb(0x18b)],_0xc59fd8,_0x1860fd),!0x0;}[_0x5d11db(0x209)](_0x301bc3,_0x37edc8){const _0x98505f=_0x5d11db;let _0x1260f5=this[_0x98505f(0x1c4)]();return this[_0x98505f(0x184)](_0x1260f5,(0x0,_0x28da1a[_0x98505f(0x1d2)])(_0x1260f5,this['_serializeModel'](),this[_0x98505f(0x18b)],_0x301bc3,_0x37edc8,this[_0x98505f(0x195)]()));}['_getDocumentData'](){const _0x4687cb=_0x5d11db;let _0x5114ce=this[_0x4687cb(0x1e8)][_0x4687cb(0x1e4)]()['getSnapshot']();return this['_segmentId']?{...this[_0x4687cb(0x1e8)][_0x4687cb(0x1e4)](this[_0x4687cb(0x1eb)])['getSnapshot'](),'documentStyle':_0x5114ce[_0x4687cb(0x191)],'tableSource':_0x5114ce[_0x4687cb(0x206)]}:_0x5114ce;}['_serializeModel'](){const _0x1456bc=_0x5d11db;return this['_injector'][_0x1456bc(0x213)](_0x28da1a[_0x1456bc(0x1f0)])[_0x1456bc(0x1d4)](this['_unitId']);}[_0x5d11db(0x195)](){const _0x511332=_0x5d11db;return(0x0,_0x28da1a[_0x511332(0x228)])(this[_0x511332(0x1e8)]['getDocumentDataModel']()[_0x511332(0x1f5)](),this[_0x511332(0x1eb)]);}[_0x5d11db(0x184)](_0x49b4ad,_0x4cb7f0,_0x59f83f){const _0x96bb43=_0x5d11db;return(0x0,_0x28da1a['executeRichTextTableActions'])(this[_0x96bb43(0x246)]['get'](_0x4705dd[_0x96bb43(0x1c0)]),this['_unitId'],_0x49b4ad,_0x4cb7f0,_0x59f83f?{'tableId':this[_0x96bb43(0x18b)],'segmentId':this[_0x96bb43(0x1eb)],..._0x59f83f}:void 0x0);}},_0x425216=class extends _0x567802[_0x5d11db(0x1f6)]{[_0x5d11db(0x1b6)](_0x446020=''){const _0xcb93f9=_0x5d11db;return this[_0xcb93f9(0x1af)](_0x446020)['map'](_0x3aea1d=>this['_createFDocumentTable'](_0x3aea1d[_0xcb93f9(0x207)],_0x446020));}['getTable'](_0x26aa58,_0x131182=''){const _0x130fa4=_0x5d11db;return this[_0x130fa4(0x1af)](_0x131182)[_0x130fa4(0x254)](_0x17e579=>_0x17e579[_0x130fa4(0x207)]===_0x26aa58)?this[_0x130fa4(0x1ee)](_0x26aa58,_0x131182):null;}[_0x5d11db(0x185)](_0xdcc437,_0x328f0c=''){const _0x10553b=_0x5d11db;var _0x105c8b;let _0x1c4e1f=(_0x105c8b=this[_0x10553b(0x1af)](_0x328f0c)[_0xdcc437])==null?void 0x0:_0x105c8b[_0x10553b(0x207)];return _0x1c4e1f?this[_0x10553b(0x1ee)](_0x1c4e1f,_0x328f0c):null;}['getTableAtSelection'](){const _0x150484=_0x5d11db;let _0x5aa74c=this[_0x150484(0x246)][_0x150484(0x213)](_0x28da1a[_0x150484(0x1a9)])[_0x150484(0x1a2)]();return _0x5aa74c!=null&&_0x5aa74c[_0x150484(0x207)]?this[_0x150484(0x1ee)](_0x5aa74c[_0x150484(0x207)],_0x5aa74c['segmentId']):null;}[_0x5d11db(0x19e)](_0x354a29,_0x4b0f7d=''){return this['findTables'](_0x354a29,_0x4b0f7d)[0x0]??null;}[_0x5d11db(0x1ec)](_0x1ebfb5,_0x40790d=''){const _0x51e71f=_0x5d11db;let _0x25970a=this['_getTableDocumentData'](_0x40790d),_0x15ca55=typeof _0x1ebfb5==_0x51e71f(0x1e1)?{'text':_0x1ebfb5}:_0x1ebfb5;return this[_0x51e71f(0x1b6)](_0x40790d)[_0x51e71f(0x1bb)](_0x250f6a=>{const _0x524e1a=_0x51e71f;let _0x3db8fb=_0x250f6a[_0x524e1a(0x252)]();return!(_0x15ca55[_0x524e1a(0x207)]&&_0x3db8fb!==_0x15ca55[_0x524e1a(0x207)]||_0x15ca55[_0x524e1a(0x189)]&&!this[_0x524e1a(0x19a)](_0x25970a,_0x3db8fb,_0x15ca55[_0x524e1a(0x189)])||_0x15ca55[_0x524e1a(0x247)]&&!this[_0x524e1a(0x1ef)](_0x250f6a,0x0,_0x15ca55['headerText'])||_0x15ca55[_0x524e1a(0x1b3)]&&!this['_rowContainsText'](_0x250f6a,0x0,_0x15ca55[_0x524e1a(0x1b3)]));});}[_0x5d11db(0x220)](_0x8f2c63,_0x2668be,_0x31fd8c={}){const _0x18589e=_0x5d11db;let _0x3fd03a=this[_0x18589e(0x246)][_0x18589e(0x213)](_0x4705dd[_0x18589e(0x1c0)]),_0xd4725=_0x31fd8c[_0x18589e(0x207)]??(0x0,_0x4705dd['generateRandomId'])(0x6);return _0x3fd03a[_0x18589e(0x232)](_0x28da1a[_0x18589e(0x17a)]['id'],{..._0x31fd8c,'unitId':this[_0x18589e(0x252)](),'rows':_0x8f2c63,'columns':_0x2668be,'tableId':_0xd4725})?this[_0x18589e(0x1ee)](_0xd4725,_0x31fd8c[_0x18589e(0x182)]??''):null;}[_0x5d11db(0x1a6)](_0x115e65,_0x8090a0={}){const _0x413107=_0x5d11db;let _0x1cf31a=this['_injector'][_0x413107(0x213)](_0x4705dd[_0x413107(0x1c0)]),_0x36c581=_0x8090a0[_0x413107(0x207)]??(0x0,_0x4705dd['generateRandomId'])(0x6);return _0x1cf31a['syncExecuteCommand'](_0x28da1a[_0x413107(0x17a)]['id'],{..._0x8090a0,'unitId':this[_0x413107(0x252)](),'values':_0x115e65,'tableId':_0x36c581})?this[_0x413107(0x1ee)](_0x36c581,_0x8090a0['segmentId']??''):null;}[_0x5d11db(0x1af)](_0x2d88c6=''){let {tables:_0x1ff080=[]}=this['getBody'](_0x2d88c6);return _0x1ff080;}[_0x5d11db(0x215)](_0x3108e7=''){const _0x368319=_0x5d11db;let _0x415bee=this[_0x368319(0x1e4)]()[_0x368319(0x1f5)]();return _0x3108e7?{...this[_0x368319(0x1e4)](_0x3108e7)[_0x368319(0x1f5)](),'documentStyle':_0x415bee[_0x368319(0x191)],'tableSource':_0x415bee[_0x368319(0x206)]}:_0x415bee;}[_0x5d11db(0x1ee)](_0x1fb0f0,_0x481ac8=''){const _0x2b5abc=_0x5d11db;return this[_0x2b5abc(0x246)][_0x2b5abc(0x205)](_0x341b43,this,_0x1fb0f0,_0x481ac8,this[_0x2b5abc(0x246)]);}[_0x5d11db(0x19a)](_0x3f273c,_0x1cb2a3,_0x2449cc){const _0x3acbfe=_0x5d11db;var _0x38d425;let _0xafb9ad=(0x0,_0x28da1a['getTableRangeById'])(_0x3f273c,_0x1cb2a3);if(!_0xafb9ad)return!0x1;let _0x4ebb89=(_0x38d425=_0x3f273c[_0x3acbfe(0x19d)])==null?void 0x0:_0x38d425[_0x3acbfe(0x18e)];return _0x4ebb89?_0x4ebb89[_0x3acbfe(0x23a)](_0xafb9ad['startOffset'],_0xafb9ad[_0x3acbfe(0x198)])[_0x3acbfe(0x237)](_0x2449cc):!0x1;}[_0x5d11db(0x1ef)](_0x109fae,_0x1920bf,_0x46aff3){const _0xf400c=_0x5d11db;return Array[_0xf400c(0x202)]({'length':_0x109fae['getColumnCount']()},(_0x3b3174,_0x53ff3b)=>_0x109fae['getCellText'](_0x1920bf,_0x53ff3b))['some'](_0x4dfc6e=>_0x4dfc6e[_0xf400c(0x237)](_0x46aff3));}};_0x567802[_0x5d11db(0x1f6)]['extend'](_0x425216),_0x57d86a[_0x5d11db(0x17b)]=_0x341b43,_0x57d86a[_0x5d11db(0x222)]=_0x261dac;}));function _0x28a1(_0x25ea6b,_0x2b9b16){_0x25ea6b=_0x25ea6b-0x17a;const _0x5da59a=_0x5da5();let _0x28a188=_0x5da59a[_0x25ea6b];return _0x28a188;}function _0x5da5(){const _0x14f1c8=['documentStyle','insertRowsAfter','max','buildMoveTableColumnsMutationActions','_getBodyPath','Tools','Row','endOffset','amd','_tableContainsText','deleteColumns','setColumnWidth','body','findTableByText','TableRowHeightRule','call','getRowIndex','getStableTableSelection','deleteRows','280JpFoNP','getTableRangeById','insertTableFromData','titleRow','headerRowCount','DocsTableSelectionService','UniverProDocsTableFacade','4522616wrFxHJ','getCellRange','UniverProDocsTable','distributeRows','_getTables','getMarginOverride','getRowCount','DocsTableRowInsertPosition','titleText','buildSetTableBackgroundMutationActions','columnTypes','getTables','length','insertColumnBefore','insertRowAfter','getCellMarginOverride','filter','preset','getDefaultCellMargin','insertColumnsBefore','DocsTableSortDirection','ICommandService','Table','setTableBackground','getMetadata','_getDocumentData','setHeaderRowCount','buildInsertTableColumnsMutationActions','width','getTableRange','137203MYYQGd','buildInsertTableTitleRowMutationActions','selectRange','Left','moveRows','border','actions','getRowsRange','setTableBorder','buildSortTableMutationActions','All','serialize','15684inbjCM','toStringTag','selectCell','unmergeCells','distributeColumns','insertRowBefore','selectRow','DocsTableColumnInsertPosition','margin','getColumnRange','setCellMargin','DashStyleType','string','setText','2BcAvHw','getDocumentDataModel','_column','symbol','moveTableToOffset','_document','buildDistributeTableRowsMutationActions','#1f1f1f','_segmentId','findTables','125eczbyt','_createFDocumentTable','_rowContainsText','DocsTableModel','tableColumns','buildMoveTableRowsMutationActions','buildSetTableCellMarginMutationActions','selectColumns','getSnapshot','FDocument','buildDeleteTableMutationActions','color','175158pveyNj','UniverCoreFacade','mergeCells','buildInsertTableRowsMutationActions','getContentRange','getSegmentId','getCellText','trHeight','_unitId','from','deepClone','SOLID','createInstance','tableSource','tableId','moveRow','sortByColumn','getColumnsRange','getCellInsertOffset','insertTitleRow','_row','buildResizeTableColumnActionsFromWidth','getCellContentRange','DocsTableBorderPreset','Range','Cell','get','FEnum','_getTableDocumentData','151954QiMcNz','selectColumn','startOffset','buildDistributeTableColumnsMutationActions','buildMoveTableToOffsetMutationActions','DocsTableInsertPosition','110ZDUsHA','hasTitleRow','getSource','setColumnType','insertTable','getInfo','FDocumentTableCell','getText','setDefaultCellMargin','object','deleteRow','constructor','getTableActionBodyPath','buildSetTableBorderMutationActions','Above','40UJufmS','DocsTableColumnType','getHeaderRowCount','buildSetTableHeaderRowCountMutationActions','setCellBackground','type','buildSetTableCellTextMutationActions','syncExecuteCommand','default','setBorder','cells','moveColumn','includes','mergeTo','buildUnmergeCellsMutationActions','slice','DocsTableInsertTablePosition','selectTable','function','getMargin','DocsTableSelectionKind','buildResizeTableRowActionsFromHeight','describe','cellMargin','toPrimitive','_table','extend','_injector','headerText','buildSetTableDefaultCellMarginMutationActions','getTableMetadata','iterator','tableRows','Module','prototype','8884824UNAkaB','selectRows','setTableStyle','setStructuralSelection','getId','clearMarginOverride','some','DEFAULT_DOCS_TABLE_CELL_MARGIN','DocsTableInsertTableCommand','FDocumentTable','getColumnCount','UniverDocsFacade','moveTableBy','insertRowsBefore','getCellMargin','setMargin','segmentId','insertColumnsAfter','_mutateActions','getTableAt','setCellText','moveColumns','rows','text','550860nrMGMS','_tableId','getTable','setRowHeight','dataStream','appendColumn','exports'];_0x5da5=function(){return _0x14f1c8;};return _0x5da5();}
|
|
1
|
+
function _0x2178(){const _0x32e689=['titleText','deleteRow','moveTableBy','_segmentId','DocsTableSelectionKind','clearMarginOverride','buildSetTableCellMarginMutationActions','trHeight','buildSetTableBackgroundMutationActions','_tableContainsText','buildMergeCellsMutationActions','call','UniverCoreFacade','getCellContentRange','getCellText','getRange','mergeCells','getStableTableSelection','deleteTable','getText','insertColumnsAfter','_table','cellMargin','getCellInsertOffset','getTableAt','insertTitleRow','DashStyleType','Column','selectRow','_serializeModel','setStructuralSelection','tableColumns','Range','_createFDocumentTable','setCellText','getBody','selectColumn','UniverProDocsTableFacade','@univerjs/docs/facade','getMargin','DocsTableSelectionService','tableCells','@univerjs-pro/docs-table','getRowIndex','slice','symbol','buildSortTableMutationActions','_document','buildSetTableHeaderRowCountMutationActions','6083756LxojVu','defineProperty','titleRow','DocsTableColumnInsertPosition','cells','getDefaultCellMarginOverride','_injector','tableId','getMetadata','503228zdXpBk','prototype','Row','Above','ICommandService','_rowContainsText','Cell','AT_LEAST','includes','getCellRange','setHeaderRowCount','toStringTag','Left','buildResizeTableRowActionsFromHeight','selectCell','setRowHeight','getTableAtSelection','DocsTableDeleteTableCommand','iterator','tableRows','string','text','headerText','object','buildResizeTableColumnActionsFromWidth','hasTitleRow','getCellMargin','findTables','Module','deepClone','backgroundColor','_mutateActions','DocsTableDeleteColumnsCommand','getDefaultCellMargin','getInfo','_getTables','UniverCore','columnTypes','preset','_tableId','DocsTableSortDirection','getCellMarginOverride','buildMoveTableColumnsMutationActions','FEnum','type','getTable','length','DocsTableInsertPosition','selectRange','generateRandomId','extend','exports','@univerjs/core/facade','dataStream','DocsTableInsertTableCommand','amd','tableSource','max','@univerjs/core','decorate','_getBodyPath','Tools','moveColumns','selectRows','insertColumnAfter','4126BkNAkN','createInstance','buildSetTableCellTextMutationActions','_getDocumentData','buildInsertTableColumnsMutationActions','FDocument','40179iwDtDl','endOffset','setTableStyle','_unitId','22794021RnmGNB','appendRow','default','buildMoveTableToOffsetMutationActions','38515CcasRR','serialize','setColumnType','get','_column','getRowsRange','syncExecuteCommand','_commandService','DEFAULT_DOCS_TABLE_CELL_MARGIN','body','getSegmentId','getSnapshot','deleteColumns','getRowHeight','color','buildInsertTableRowsMutationActions','width','replace','margin','actions','headerRowCount','UniverDocsFacade','354uMEkIz','moveTableToOffset','distributeRows','getTables','deleteColumn','DocsTableRowInsertPosition','insertColumnBefore','insertRowsBefore','getInsertOffset','moveRow','findTableByText','insertRowBefore','setTableBackground','getContentRange','getColumnCount','buildDistributeTableRowsMutationActions','DocsTableModel','68fFLMIM','getDocumentDataModel','DocsTableBorderPreset','getTableMetadata','insertColumnsBefore','setText','setCellBackground','filter','some','sortByColumn','moveRows','from','getColumnRange','documentStyle','getMarginOverride','function','toPrimitive','getTableRange','setBackgroundColor','getSource','startOffset','selectColumns','border','getColumnsRange','setBorder','getRowCount','rows','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmentId','FDocumentTable','buildMoveFloatingTableMutationActions','getId','map','_row','setCellMargin','buildUnmergeCellsMutationActions','buildInsertTableTitleRowMutationActions','DocsTableColumnType','appendColumn','7723968gqcwvc','buildDistributeTableColumnsMutationActions','_getTableDocumentData','deleteRows','setMargin','DocsTableInsertTablePosition','setTableBorder','getTableActionBodyPath','insertRowsAfter','getTableRangeById'];_0x2178=function(){return _0x32e689;};return _0x2178();}function _0x5b3a(_0x13b6f4,_0x270a13){_0x13b6f4=_0x13b6f4-0x111;const _0x217850=_0x2178();let _0x5b3aa2=_0x217850[_0x13b6f4];return _0x5b3aa2;}(function(_0x1dfe96,_0x4ecae){const _0x224df4=_0x5b3a,_0x48e093=_0x1dfe96();while(!![]){try{const _0x4cc27e=parseInt(_0x224df4(0x112))/0x1*(parseInt(_0x224df4(0x147))/0x2)+-parseInt(_0x224df4(0x118))/0x3+parseInt(_0x224df4(0x1b2))/0x4+-parseInt(_0x224df4(0x120))/0x5*(parseInt(_0x224df4(0x136))/0x6)+-parseInt(_0x224df4(0x1a9))/0x7+-parseInt(_0x224df4(0x16e))/0x8+parseInt(_0x224df4(0x11c))/0x9;if(_0x4cc27e===_0x4ecae)break;else _0x48e093['push'](_0x48e093['shift']());}catch(_0x1002df){_0x48e093['push'](_0x48e093['shift']());}}}(_0x2178,0x7929e),function(_0x556f2e,_0x59e060){const _0x4d761a=_0x5b3a;typeof exports=='object'&&typeof module<'u'?_0x59e060(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x4d761a(0x1e9)]?define([_0x4d761a(0x1e5),_0x4d761a(0x1a2),_0x4d761a(0x1ec),_0x4d761a(0x1e6),_0x4d761a(0x19e)],_0x59e060):(_0x556f2e=typeof globalThis<'u'?globalThis:_0x556f2e||self,_0x59e060(_0x556f2e[_0x4d761a(0x19d)]={},_0x556f2e['UniverProDocsTable'],_0x556f2e[_0x4d761a(0x1d6)],_0x556f2e[_0x4d761a(0x184)],_0x556f2e[_0x4d761a(0x135)]));}(this,function(_0x2585cd,_0x5899fa,_0x12a6d7,_0x831041,_0x1ca04b){const _0x46804d=_0x5b3a;Object[_0x46804d(0x1aa)](_0x2585cd,Symbol[_0x46804d(0x1bd)],{'value':_0x46804d(0x1ce)});var _0x215557=class extends _0x831041[_0x46804d(0x1dd)]{get['DocsTableInsertTablePosition'](){const _0x2a84dc=_0x46804d;return _0x5899fa[_0x2a84dc(0x173)];}get['DocsTableColumnType'](){const _0x2855cf=_0x46804d;return _0x5899fa[_0x2855cf(0x16c)];}get['DocsTableSelectionKind'](){return _0x5899fa['DocsTableSelectionKind'];}get['DocsTableRowInsertPosition'](){const _0x4d5383=_0x46804d;return _0x5899fa[_0x4d5383(0x13b)];}get['DocsTableColumnInsertPosition'](){const _0x4bb9df=_0x46804d;return _0x5899fa[_0x4bb9df(0x1ac)];}get[_0x46804d(0x149)](){const _0x4d81fd=_0x46804d;return _0x5899fa[_0x4d81fd(0x149)];}get[_0x46804d(0x1da)](){return _0x5899fa['DocsTableSortDirection'];}get[_0x46804d(0x192)](){const _0x4e483d=_0x46804d;return _0x12a6d7[_0x4e483d(0x192)];}};_0x831041[_0x46804d(0x1dd)]['extend'](_0x215557);var _0x4e889c=class{constructor(_0x443125,_0x37bc3d,_0x243fa7){const _0x1d216e=_0x46804d;this['_table']=_0x443125,this[_0x1d216e(0x168)]=_0x37bc3d,this[_0x1d216e(0x124)]=_0x243fa7;}[_0x46804d(0x1df)](){const _0xbe707d=_0x46804d;return this[_0xbe707d(0x18d)];}[_0x46804d(0x1a3)](){const _0xfaf173=_0x46804d;return this[_0xfaf173(0x168)];}['getColumnIndex'](){const _0x3da674=_0x46804d;return this[_0x3da674(0x124)];}[_0x46804d(0x18b)](){const _0x49863c=_0x46804d;return this['_table'][_0x49863c(0x186)](this['_row'],this['_column']);}[_0x46804d(0x143)](){const _0x293748=_0x46804d;return this[_0x293748(0x18d)][_0x293748(0x185)](this[_0x293748(0x168)],this[_0x293748(0x124)]);}[_0x46804d(0x13e)](){const _0x5c71c1=_0x46804d;return this[_0x5c71c1(0x18d)][_0x5c71c1(0x18f)](this['_row'],this[_0x5c71c1(0x124)]);}[_0x46804d(0x19f)](){const _0x5c9c01=_0x46804d;return this[_0x5c9c01(0x18d)][_0x5c9c01(0x1cc)](this[_0x5c9c01(0x168)],this['_column']);}[_0x46804d(0x155)](){const _0x4b12a2=_0x46804d;return this[_0x4b12a2(0x18d)][_0x4b12a2(0x1db)](this[_0x4b12a2(0x168)],this[_0x4b12a2(0x124)]);}[_0x46804d(0x172)](_0x2c52cd){const _0x35793e=_0x46804d;return this[_0x35793e(0x18d)][_0x35793e(0x169)](this[_0x35793e(0x18d)][_0x35793e(0x1bb)](this['_row'],this['_column']),_0x2c52cd);}[_0x46804d(0x17d)](){const _0x479dfd=_0x46804d;return this[_0x479dfd(0x18d)]['setCellMargin'](this[_0x479dfd(0x18d)][_0x479dfd(0x1bb)](this[_0x479dfd(0x168)],this['_column']),null);}[_0x46804d(0x14c)](_0x342cf3){const _0x1c4bf4=_0x46804d;return this[_0x1c4bf4(0x18d)]['setCellText'](this[_0x1c4bf4(0x168)],this['_column'],_0x342cf3);}[_0x46804d(0x159)](_0x286f1c){const _0xec3b14=_0x46804d;return this['_table']['setCellBackground'](this[_0xec3b14(0x18d)][_0xec3b14(0x1bb)](this[_0xec3b14(0x168)],this[_0xec3b14(0x124)]),_0x286f1c);}['setBorder'](_0x21b742){const _0x3a54e1=_0x46804d;return this[_0x3a54e1(0x18d)][_0x3a54e1(0x15f)](this[_0x3a54e1(0x18d)][_0x3a54e1(0x1bb)](this[_0x3a54e1(0x168)],this['_column']),_0x21b742);}['mergeTo'](_0x5d5ada,_0x4b0e3f){const _0x5efb9f=_0x46804d;return this[_0x5efb9f(0x18d)][_0x5efb9f(0x188)]({'startRow':this[_0x5efb9f(0x168)],'startColumn':this[_0x5efb9f(0x124)],'endRow':this[_0x5efb9f(0x168)]+_0x5d5ada-0x1,'endColumn':this[_0x5efb9f(0x124)]+_0x4b0e3f-0x1});}['unmerge'](){const _0x3e7fee=_0x46804d;return this[_0x3e7fee(0x18d)]['unmergeCells'](this['_table']['getCellRange'](this[_0x3e7fee(0x168)],this[_0x3e7fee(0x124)]));}};function _0x12a2e9(_0x5cbb40){'@babel/helpers - typeof';const _0x496b5d=_0x46804d;return _0x12a2e9=typeof Symbol==_0x496b5d(0x156)&&typeof Symbol[_0x496b5d(0x1c4)]==_0x496b5d(0x1a5)?function(_0x235655){return typeof _0x235655;}:function(_0x2484c9){const _0x45ed9a=_0x496b5d;return _0x2484c9&&typeof Symbol=='function'&&_0x2484c9['constructor']===Symbol&&_0x2484c9!==Symbol[_0x45ed9a(0x1b3)]?'symbol':typeof _0x2484c9;},_0x12a2e9(_0x5cbb40);}function _0x5e91eb(_0x14c3e7,_0x1cdfaa){const _0x2bb5a0=_0x46804d;if(_0x12a2e9(_0x14c3e7)!=_0x2bb5a0(0x1c9)||!_0x14c3e7)return _0x14c3e7;var _0x415a8a=_0x14c3e7[Symbol[_0x2bb5a0(0x157)]];if(_0x415a8a!==void 0x0){var _0x2e4e70=_0x415a8a[_0x2bb5a0(0x183)](_0x14c3e7,_0x1cdfaa||_0x2bb5a0(0x11e));if(_0x12a2e9(_0x2e4e70)!=_0x2bb5a0(0x1c9))return _0x2e4e70;throw TypeError(_0x2bb5a0(0x162));}return(_0x1cdfaa===_0x2bb5a0(0x1c6)?String:Number)(_0x14c3e7);}function _0xca8dc7(_0x477f98){const _0x14f14b=_0x46804d;var _0x3edf39=_0x5e91eb(_0x477f98,_0x14f14b(0x1c6));return _0x12a2e9(_0x3edf39)==_0x14f14b(0x1a5)?_0x3edf39:_0x3edf39+'';}function _0x4d5552(_0x564ca4,_0x3ce14b,_0x146a52){const _0x56e46d=_0x46804d;return(_0x3ce14b=_0xca8dc7(_0x3ce14b))in _0x564ca4?Object[_0x56e46d(0x1aa)](_0x564ca4,_0x3ce14b,{'value':_0x146a52,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x564ca4[_0x3ce14b]=_0x146a52,_0x564ca4;}function _0x1d38ac(_0xe3e3ee,_0x41055a){return function(_0x51d24a,_0xe42938){_0x41055a(_0x51d24a,_0xe42938,_0xe3e3ee);};}function _0x34e039(_0x30539b,_0x39bf81,_0x5da53d,_0x1d1d30){const _0x4c55a7=_0x46804d;var _0x36bec5=arguments['length'],_0x2829d2=_0x36bec5<0x3?_0x39bf81:_0x1d1d30===null?_0x1d1d30=Object['getOwnPropertyDescriptor'](_0x39bf81,_0x5da53d):_0x1d1d30,_0x2c612e;if(typeof Reflect==_0x4c55a7(0x1c9)&&typeof Reflect[_0x4c55a7(0x1ed)]==_0x4c55a7(0x156))_0x2829d2=Reflect[_0x4c55a7(0x1ed)](_0x30539b,_0x39bf81,_0x5da53d,_0x1d1d30);else{for(var _0x293dfe=_0x30539b[_0x4c55a7(0x1e0)]-0x1;_0x293dfe>=0x0;_0x293dfe--)(_0x2c612e=_0x30539b[_0x293dfe])&&(_0x2829d2=(_0x36bec5<0x3?_0x2c612e(_0x2829d2):_0x36bec5>0x3?_0x2c612e(_0x39bf81,_0x5da53d,_0x2829d2):_0x2c612e(_0x39bf81,_0x5da53d))||_0x2829d2);}return _0x36bec5>0x3&&_0x2829d2&&Object['defineProperty'](_0x39bf81,_0x5da53d,_0x2829d2),_0x2829d2;}let _0x13c2a2=class{constructor(_0x3f14c5,_0x54df96,_0x211076,_0x8aabb9,_0x548fea){const _0x58d633=_0x46804d;this['_document']=_0x3f14c5,this[_0x58d633(0x1d9)]=_0x54df96,this[_0x58d633(0x17b)]=_0x211076,this[_0x58d633(0x127)]=_0x8aabb9,this['_injector']=_0x548fea,_0x4d5552(this,_0x58d633(0x11b),void 0x0),this[_0x58d633(0x11b)]=this[_0x58d633(0x1a7)][_0x58d633(0x166)]();}['getId'](){const _0x5c3873=_0x46804d;return this[_0x5c3873(0x1d9)];}[_0x46804d(0x12a)](){const _0x4e04fd=_0x46804d;return this[_0x4e04fd(0x17b)];}[_0x46804d(0x1d4)](){const _0x6bce63=_0x46804d;return{'id':this['_tableId'],'rowCount':this['getRowCount'](),'columnCount':this['getColumnCount'](),'metadata':this[_0x6bce63(0x1b1)](),'source':this[_0x6bce63(0x15a)]()};}['describe'](){const _0xaddb6c=_0x46804d;let _0x4b1834=this['getMetadata'](),_0x499dca=this[_0xaddb6c(0x15a)](),_0x18410f=this[_0xaddb6c(0x144)]();return{'id':this[_0xaddb6c(0x1d9)],'rowCount':this['getRowCount'](),'columnCount':_0x18410f,'headerRowCount':(_0x4b1834==null?void 0x0:_0x4b1834[_0xaddb6c(0x134)])??0x0,'titleRow':(_0x4b1834==null?void 0x0:_0x4b1834[_0xaddb6c(0x1ab)])??!0x1,'columns':Array['from']({'length':_0x18410f},(_0x294b1d,_0x30ddad)=>{const _0x1c9f50=_0xaddb6c;var _0x5cf7f7,_0x24d99;return{'index':_0x30ddad,'type':_0x4b1834==null||(_0x5cf7f7=_0x4b1834[_0x1c9f50(0x1d7)])==null||(_0x5cf7f7=_0x5cf7f7[_0x30ddad])==null?void 0x0:_0x5cf7f7[_0x1c9f50(0x1de)],'width':_0x499dca==null||(_0x24d99=_0x499dca[_0x1c9f50(0x197)][_0x30ddad])==null?void 0x0:_0x24d99['size'][_0x1c9f50(0x130)]['v']};}),'sampleRows':Array[_0xaddb6c(0x152)]({'length':this[_0xaddb6c(0x160)]()},(_0x4f54e4,_0x5e4b1d)=>Array[_0xaddb6c(0x152)]({'length':_0x18410f},(_0x1a4c76,_0x427566)=>this['getCellText'](_0x5e4b1d,_0x427566)))[_0xaddb6c(0x14e)](_0x1223e3=>_0x1223e3[_0xaddb6c(0x14f)](_0x22c760=>_0x22c760[_0xaddb6c(0x1e0)]>0x0))[_0xaddb6c(0x1a4)](0x0,0x5)};}['getRowCount'](){const _0x54e4c5=_0x46804d;var _0x2c8121;return((_0x2c8121=this[_0x54e4c5(0x15a)]())==null?void 0x0:_0x2c8121['tableRows']['length'])??0x0;}[_0x46804d(0x144)](){const _0x4c726c=_0x46804d;var _0x14d761;return((_0x14d761=this[_0x4c726c(0x15a)]())==null?void 0x0:_0x14d761[_0x4c726c(0x197)][_0x4c726c(0x1e0)])??0x0;}['getCell'](_0x217071,_0x594510){const _0x291d03=_0x46804d;var _0x1bdab3;return(_0x1bdab3=this['getSource']())!=null&&(_0x1bdab3=_0x1bdab3['tableRows'][_0x217071])!=null&&_0x1bdab3[_0x291d03(0x1a1)][_0x594510]?this[_0x291d03(0x1af)][_0x291d03(0x113)](_0x4e889c,this,_0x217071,_0x594510):null;}[_0x46804d(0x186)](_0x348779,_0x1fce7f){const _0x1e1ce5=_0x46804d;var _0x2772bf,_0x55155f;let _0x3802ea=(_0x2772bf=(0x0,_0x5899fa[_0x1e1ce5(0x177)])(this[_0x1e1ce5(0x115)](),this[_0x1e1ce5(0x1d9)]))==null||(_0x2772bf=_0x2772bf[_0x1e1ce5(0x161)][_0x348779])==null?void 0x0:_0x2772bf[_0x1e1ce5(0x1ad)][_0x1fce7f];return _0x3802ea?((_0x55155f=this[_0x1e1ce5(0x115)]()['body'])==null?void 0x0:_0x55155f[_0x1e1ce5(0x1e7)][_0x1e1ce5(0x1a4)](_0x3802ea[_0x1e1ce5(0x15b)]+0x1,_0x3802ea[_0x1e1ce5(0x119)])[_0x1e1ce5(0x131)](/\r\n$/,''))??'':'';}[_0x46804d(0x1cc)](_0x207249,_0x3723b2){const _0x731d43=_0x46804d;var _0x40d3b1;let _0x41eddf=this[_0x731d43(0x15a)](),_0x2879cc=_0x41eddf==null||(_0x40d3b1=_0x41eddf[_0x731d43(0x1c5)][_0x207249])==null?void 0x0:_0x40d3b1[_0x731d43(0x1a1)][_0x3723b2];return _0x2879cc?_0x12a6d7[_0x731d43(0x1ef)][_0x731d43(0x1cf)](_0x2879cc[_0x731d43(0x132)]??_0x41eddf['cellMargin']??_0x5899fa[_0x731d43(0x128)]):null;}[_0x46804d(0x1db)](_0x388948,_0x37acbb){const _0xee42e=_0x46804d;var _0x4c8726;let _0x3c644d=(_0x4c8726=this[_0xee42e(0x15a)]())==null||(_0x4c8726=_0x4c8726[_0xee42e(0x1c5)][_0x388948])==null?void 0x0:_0x4c8726[_0xee42e(0x1a1)][_0x37acbb];return _0x3c644d!=null&&_0x3c644d[_0xee42e(0x132)]?_0x12a6d7[_0xee42e(0x1ef)][_0xee42e(0x1cf)](_0x3c644d[_0xee42e(0x132)]):null;}[_0x46804d(0x1d3)](){const _0x5f46a0=_0x46804d;var _0x18d0b5;return _0x12a6d7['Tools'][_0x5f46a0(0x1cf)](((_0x18d0b5=this[_0x5f46a0(0x15a)]())==null?void 0x0:_0x18d0b5[_0x5f46a0(0x18e)])??_0x5899fa[_0x5f46a0(0x128)]);}[_0x46804d(0x1ae)](){const _0x52dac0=_0x46804d;var _0x2042c9;let _0x179fdd=(_0x2042c9=this['getSource']())==null?void 0x0:_0x2042c9[_0x52dac0(0x18e)];return _0x179fdd?_0x12a6d7[_0x52dac0(0x1ef)][_0x52dac0(0x1cf)](_0x179fdd):null;}['getMetadata'](){const _0x273cd7=_0x46804d;return this['_injector']['get'](_0x5899fa[_0x273cd7(0x146)])[_0x273cd7(0x14a)](this[_0x273cd7(0x11b)],this[_0x273cd7(0x1d9)]);}[_0x46804d(0x15a)](){const _0x49d9f8=_0x46804d;var _0x2fcd57;return(_0x2fcd57=this[_0x49d9f8(0x115)]()['tableSource'])==null?void 0x0:_0x2fcd57[this['_tableId']];}[_0x46804d(0x187)](){const _0x5647d1=_0x46804d;return(0x0,_0x5899fa['getTableRangeById'])(this[_0x5647d1(0x115)](),this[_0x5647d1(0x1d9)]);}[_0x46804d(0x158)](){const _0x234982=_0x46804d;return{'startRow':0x0,'endRow':Math[_0x234982(0x1eb)](0x0,this[_0x234982(0x160)]()-0x1),'startColumn':0x0,'endColumn':Math[_0x234982(0x1eb)](0x0,this[_0x234982(0x144)]()-0x1)};}['getCellRange'](_0x4dc73e,_0x14763a){return{'startRow':_0x4dc73e,'endRow':_0x4dc73e,'startColumn':_0x14763a,'endColumn':_0x14763a};}[_0x46804d(0x185)](_0x3c4b2d,_0x49aa6f){const _0x34fe45=_0x46804d;var _0x3b371e;let _0x48cc9c=(_0x3b371e=(0x0,_0x5899fa[_0x34fe45(0x177)])(this[_0x34fe45(0x115)](),this[_0x34fe45(0x1d9)]))==null||(_0x3b371e=_0x3b371e[_0x34fe45(0x161)][_0x3c4b2d])==null?void 0x0:_0x3b371e['cells'][_0x49aa6f];if(!_0x48cc9c)return null;let _0x182bb9=_0x48cc9c['startOffset']+0x1;return{'startOffset':_0x182bb9,'endOffset':Math[_0x34fe45(0x1eb)](_0x182bb9,_0x48cc9c['endOffset']-0x1),'segmentId':this['_segmentId']};}[_0x46804d(0x18f)](_0x30e27c,_0x8a9f55){const _0x529018=_0x46804d;let _0x5344af=this[_0x529018(0x185)](_0x30e27c,_0x8a9f55);return _0x5344af?Math[_0x529018(0x1eb)](_0x5344af[_0x529018(0x15b)],_0x5344af[_0x529018(0x119)]-0x1):null;}['getRowRange'](_0x574ffb){return this['getRowsRange'](_0x574ffb,0x1);}[_0x46804d(0x125)](_0x404d50,_0x95fdb3=0x1){const _0x1178a3=_0x46804d;return{'startRow':_0x404d50,'endRow':_0x404d50+_0x95fdb3-0x1,'startColumn':0x0,'endColumn':Math[_0x1178a3(0x1eb)](0x0,this[_0x1178a3(0x144)]()-0x1)};}[_0x46804d(0x153)](_0x485528){const _0xe33fa9=_0x46804d;return this[_0xe33fa9(0x15e)](_0x485528,0x1);}[_0x46804d(0x15e)](_0x387a12,_0x7b17aa=0x1){const _0x23f059=_0x46804d;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x23f059(0x160)]()-0x1),'startColumn':_0x387a12,'endColumn':_0x387a12+_0x7b17aa-0x1};}['selectTable'](){const _0x134a5a=_0x46804d;return this[_0x134a5a(0x1e2)](this[_0x134a5a(0x158)](),_0x5899fa[_0x134a5a(0x17c)]['Table']);}[_0x46804d(0x194)](_0x30359b){const _0x30d072=_0x46804d;return this[_0x30d072(0x1f1)](_0x30359b,0x1);}[_0x46804d(0x1f1)](_0x3a539e,_0x73d221=0x1){const _0x20fd7f=_0x46804d;return this[_0x20fd7f(0x1e2)](this['getRowsRange'](_0x3a539e,_0x73d221),_0x5899fa[_0x20fd7f(0x17c)][_0x20fd7f(0x1b4)]);}[_0x46804d(0x19c)](_0x540298){const _0xaf2400=_0x46804d;return this[_0xaf2400(0x15c)](_0x540298,0x1);}[_0x46804d(0x15c)](_0x36039d,_0x56250e=0x1){const _0x4551b8=_0x46804d;return this[_0x4551b8(0x1e2)](this[_0x4551b8(0x15e)](_0x36039d,_0x56250e),_0x5899fa[_0x4551b8(0x17c)][_0x4551b8(0x193)]);}[_0x46804d(0x1c0)](_0x48b779,_0x3d3cb1){const _0xccb4d5=_0x46804d;return this[_0xccb4d5(0x1e2)](this[_0xccb4d5(0x1bb)](_0x48b779,_0x3d3cb1),_0x5899fa[_0xccb4d5(0x17c)][_0xccb4d5(0x1b8)]);}[_0x46804d(0x1e2)](_0x5623e5,_0xf77b9b=_0x5899fa[_0x46804d(0x17c)][_0x46804d(0x198)]){const _0x1c28d1=_0x46804d;return this[_0x1c28d1(0x1af)][_0x1c28d1(0x123)](_0x5899fa[_0x1c28d1(0x1a0)])[_0x1c28d1(0x196)]({..._0x5623e5,'kind':_0xf77b9b,'segmentId':this['_segmentId'],'tableId':this[_0x1c28d1(0x1d9)]}),!0x0;}[_0x46804d(0x141)](_0xb5e1d6){const _0x14fbdc=_0x46804d;return this[_0x14fbdc(0x13d)](_0xb5e1d6,0x1);}['insertRowAfter'](_0x432820){const _0x372fcb=_0x46804d;return this[_0x372fcb(0x176)](_0x432820,0x1);}[_0x46804d(0x13d)](_0x10e405,_0x56b600){const _0x47579c=_0x46804d;let _0x1540ce=this[_0x47579c(0x115)](),_0x257a23=(0x0,_0x5899fa['buildInsertTableRowsMutationActions'])(_0x1540ce,this[_0x47579c(0x1d9)],_0x10e405,_0x56b600,_0x5899fa[_0x47579c(0x1e1)][_0x47579c(0x1b5)],this[_0x47579c(0x1ee)]());return _0x257a23?this[_0x47579c(0x1d1)](_0x1540ce,_0x257a23[_0x47579c(0x133)]):!0x1;}[_0x46804d(0x176)](_0x1751de,_0x135c1d){const _0x25c2ac=_0x46804d;let _0x25ca87=this[_0x25c2ac(0x115)](),_0x452fea=(0x0,_0x5899fa[_0x25c2ac(0x12f)])(_0x25ca87,this[_0x25c2ac(0x1d9)],_0x1751de,_0x135c1d,_0x5899fa[_0x25c2ac(0x1e1)]['Below'],this[_0x25c2ac(0x1ee)]());return _0x452fea?this[_0x25c2ac(0x1d1)](_0x25ca87,_0x452fea['actions']):!0x1;}[_0x46804d(0x11d)](){const _0x3c5afd=_0x46804d;return this['insertRowsAfter'](Math[_0x3c5afd(0x1eb)](0x0,this[_0x3c5afd(0x160)]()-0x1),0x1);}[_0x46804d(0x13c)](_0x2408a4){const _0x29a050=_0x46804d;return this[_0x29a050(0x14b)](_0x2408a4,0x1);}[_0x46804d(0x111)](_0x856813){const _0x1f7351=_0x46804d;return this[_0x1f7351(0x18c)](_0x856813,0x1);}[_0x46804d(0x14b)](_0x430b94,_0x320cc3){const _0x3a0d5a=_0x46804d;let _0x3f0e21=this['_getDocumentData'](),_0x62ddd3=(0x0,_0x5899fa['buildInsertTableColumnsMutationActions'])(_0x3f0e21,this[_0x3a0d5a(0x1d9)],_0x430b94,_0x320cc3,_0x5899fa['DocsTableInsertPosition']['Left'],{'bodyPath':this['_getBodyPath']()});return _0x62ddd3?this['_mutateActions'](_0x3f0e21,_0x62ddd3[_0x3a0d5a(0x133)]):!0x1;}[_0x46804d(0x18c)](_0x11b917,_0x33eb61){const _0x1ccdd3=_0x46804d;let _0xcf6541=this[_0x1ccdd3(0x115)](),_0x3fc01f=(0x0,_0x5899fa[_0x1ccdd3(0x116)])(_0xcf6541,this[_0x1ccdd3(0x1d9)],_0x11b917,_0x33eb61,_0x5899fa[_0x1ccdd3(0x1e1)]['Right'],{'bodyPath':this[_0x1ccdd3(0x1ee)]()});return _0x3fc01f?this[_0x1ccdd3(0x1d1)](_0xcf6541,_0x3fc01f['actions']):!0x1;}[_0x46804d(0x16d)](){const _0x19e14f=_0x46804d;return this['insertColumnsAfter'](Math[_0x19e14f(0x1eb)](0x0,this[_0x19e14f(0x144)]()-0x1),0x1);}[_0x46804d(0x179)](_0x3442ce){const _0x55b33b=_0x46804d;return this[_0x55b33b(0x171)](_0x3442ce,0x1);}[_0x46804d(0x171)](_0x3c74f6,_0xd9ce42=0x1){const _0x45e50f=_0x46804d;return!!this[_0x45e50f(0x127)][_0x45e50f(0x126)](_0x5899fa['DocsTableDeleteRowsCommand']['id'],{'endRow':_0x3c74f6+_0xd9ce42-0x1,'segmentId':this[_0x45e50f(0x17b)],'startRow':_0x3c74f6,'tableId':this['_tableId'],'unitId':this[_0x45e50f(0x11b)]});}[_0x46804d(0x13a)](_0x1c1b6c){return this['deleteColumns'](_0x1c1b6c,0x1);}[_0x46804d(0x12c)](_0xaef2b9,_0x4ca14=0x1){const _0xe08872=_0x46804d;return!!this[_0xe08872(0x127)][_0xe08872(0x126)](_0x5899fa[_0xe08872(0x1d2)]['id'],{'endColumn':_0xaef2b9+_0x4ca14-0x1,'segmentId':this[_0xe08872(0x17b)],'startColumn':_0xaef2b9,'tableId':this[_0xe08872(0x1d9)],'unitId':this[_0xe08872(0x11b)]});}[_0x46804d(0x18a)](){const _0x2d86ae=_0x46804d;return!!this[_0x2d86ae(0x127)][_0x2d86ae(0x126)](_0x5899fa[_0x2d86ae(0x1c3)]['id'],{'segmentId':this['_segmentId'],'tableId':this[_0x2d86ae(0x1d9)],'unitId':this[_0x2d86ae(0x11b)]});}[_0x46804d(0x17a)](_0x4f2f26,_0x1d2d57){const _0x39b18c=_0x46804d;let _0x7e485=this[_0x39b18c(0x115)]();return this[_0x39b18c(0x1d1)](_0x7e485,(0x0,_0x5899fa[_0x39b18c(0x165)])(_0x7e485,this[_0x39b18c(0x1d9)],_0x4f2f26,_0x1d2d57));}[_0x46804d(0x137)](_0x4db6a6){const _0x2b9d56=_0x46804d;let _0x13b8fe=this[_0x2b9d56(0x115)]();return this[_0x2b9d56(0x1d1)](_0x13b8fe,(0x0,_0x5899fa[_0x2b9d56(0x11f)])(_0x13b8fe,this[_0x2b9d56(0x1d9)],_0x4db6a6,this[_0x2b9d56(0x1ee)]()));}[_0x46804d(0x13f)](_0x28f51c,_0x5964d8,_0x362984=_0x5899fa[_0x46804d(0x1e1)]['Above']){const _0xb202ca=_0x46804d;return this[_0xb202ca(0x151)](_0x28f51c,0x1,_0x5964d8,_0x362984);}[_0x46804d(0x151)](_0x486a85,_0x3ba19c,_0x37cfde,_0x5c0b8e=_0x5899fa['DocsTableInsertPosition'][_0x46804d(0x1b5)]){const _0x49766d=_0x46804d;let _0x2faf5f=this[_0x49766d(0x115)](),_0x33e3df=(0x0,_0x5899fa['buildMoveTableRowsMutationActions'])(_0x2faf5f,this[_0x49766d(0x1d9)],_0x486a85,_0x37cfde,_0x3ba19c,_0x5c0b8e,this[_0x49766d(0x1ee)]());return _0x33e3df?this[_0x49766d(0x1d1)](_0x2faf5f,_0x33e3df['actions']):!0x1;}['moveColumn'](_0x1535d2,_0x5b259d,_0x5880bb=_0x5899fa[_0x46804d(0x1e1)]['Left']){const _0x215ea9=_0x46804d;return this[_0x215ea9(0x1f0)](_0x1535d2,0x1,_0x5b259d,_0x5880bb);}['moveColumns'](_0x36394e,_0x5489ef,_0x3a0314,_0x4d1200=_0x5899fa[_0x46804d(0x1e1)][_0x46804d(0x1be)]){const _0xb61d98=_0x46804d;let _0x1d9a55=this[_0xb61d98(0x115)](),_0x280ed3=(0x0,_0x5899fa[_0xb61d98(0x1dc)])(_0x1d9a55,this[_0xb61d98(0x1d9)],_0x36394e,_0x3a0314,_0x5489ef,_0x4d1200,this[_0xb61d98(0x1ee)]());return _0x280ed3?this[_0xb61d98(0x1d1)](_0x1d9a55,_0x280ed3[_0xb61d98(0x133)]):!0x1;}[_0x46804d(0x188)](_0x2e5ce2){const _0x38843f=_0x46804d;try{let _0x1c618e=this['_getDocumentData'](),_0x53a394=(0x0,_0x5899fa[_0x38843f(0x182)])({'documentData':_0x1c618e,'tableId':this['_tableId'],..._0x2e5ce2});return _0x53a394?this['_mutateActions'](_0x1c618e,_0x53a394[_0x38843f(0x133)],_0x2e5ce2):!0x1;}catch{return!0x1;}}['unmergeCells'](_0xd03dab){const _0x55f909=_0x46804d;try{let _0x1039f4=this[_0x55f909(0x115)](),_0x56230a=(0x0,_0x5899fa[_0x55f909(0x16a)])({'documentData':_0x1039f4,'tableId':this[_0x55f909(0x1d9)],..._0xd03dab});return _0x56230a?this['_mutateActions'](_0x1039f4,_0x56230a[_0x55f909(0x133)],_0xd03dab):!0x1;}catch{return!0x1;}}[_0x46804d(0x19a)](_0x464f85,_0x568b8c,_0x4725a8){const _0x344bcf=_0x46804d;let _0x1fdf70=this[_0x344bcf(0x115)](),_0x4456a3=(0x0,_0x5899fa[_0x344bcf(0x175)])(this[_0x344bcf(0x1a7)]['getDocumentDataModel']()['getSnapshot'](),this[_0x344bcf(0x17b)]);return this[_0x344bcf(0x1d1)](_0x1fdf70,(0x0,_0x5899fa[_0x344bcf(0x114)])({'documentData':_0x1fdf70,'tableId':this['_tableId'],'row':_0x464f85,'column':_0x568b8c,'text':_0x4725a8},_0x4456a3),this[_0x344bcf(0x1bb)](_0x464f85,_0x568b8c));}[_0x46804d(0x14d)](_0x2684bd,_0x1d5cd1){const _0x56258e=_0x46804d;let _0x60d81d=this[_0x56258e(0x115)]();return this[_0x56258e(0x1d1)](_0x60d81d,(0x0,_0x5899fa[_0x56258e(0x180)])(_0x60d81d,{'tableId':this[_0x56258e(0x1d9)],..._0x2684bd,'value':_0x1d5cd1}),_0x2684bd);}[_0x46804d(0x169)](_0x47ed1d,_0x2ed283){const _0x2d2b2b=_0x46804d;let _0x88b105=this[_0x2d2b2b(0x115)]();return this[_0x2d2b2b(0x1d1)](_0x88b105,(0x0,_0x5899fa[_0x2d2b2b(0x17e)])({'documentData':_0x88b105,'tableId':this[_0x2d2b2b(0x1d9)],..._0x47ed1d,'margin':_0x2ed283}),_0x47ed1d);}['setDefaultCellMargin'](_0x2d6b3d){const _0x2db666=_0x46804d;let _0x467c73=this[_0x2db666(0x115)]();return this['_mutateActions'](_0x467c73,(0x0,_0x5899fa['buildSetTableDefaultCellMarginMutationActions'])(_0x467c73,this[_0x2db666(0x1d9)],_0x2d6b3d));}[_0x46804d(0x15f)](_0x25502b,_0x32d26d){const _0x277dfc=_0x46804d;let _0x44fad4=this[_0x277dfc(0x115)]();return this[_0x277dfc(0x1d1)](_0x44fad4,(0x0,_0x5899fa['buildSetTableBorderMutationActions'])({'documentData':_0x44fad4,'tableId':this[_0x277dfc(0x1d9)],..._0x25502b,'preset':_0x32d26d[_0x277dfc(0x1d8)]??_0x5899fa[_0x277dfc(0x149)]['All'],'border':_0x32d26d[_0x277dfc(0x15d)]??{'color':{'rgb':_0x32d26d[_0x277dfc(0x12e)]??'#1f1f1f'},'width':{'v':_0x32d26d[_0x277dfc(0x130)]??0x1},'dashStyle':_0x12a6d7[_0x277dfc(0x192)]['SOLID']}}),_0x25502b);}[_0x46804d(0x142)](_0x1faecc){return this['setCellBackground'](this['getTableRange'](),_0x1faecc);}['setTableBorder'](_0x20576c){const _0x4e919c=_0x46804d;return this[_0x4e919c(0x15f)](this[_0x4e919c(0x158)](),_0x20576c);}[_0x46804d(0x11a)](_0x2d1104){const _0x148a47=_0x46804d;let _0x8e7c5e=!_0x2d1104[_0x148a47(0x1d0)]||this[_0x148a47(0x142)](_0x2d1104[_0x148a47(0x1d0)]),_0x2df486=!_0x2d1104[_0x148a47(0x15d)]||this[_0x148a47(0x174)](_0x2d1104['border']);return _0x8e7c5e&&_0x2df486;}[_0x46804d(0x1c1)](_0x5206d4,_0x595822,_0x143a07=_0x12a6d7['TableRowHeightRule'][_0x46804d(0x1b9)]){const _0x59adf7=_0x46804d;var _0x3c6508;let _0x3c3f57=this['_getDocumentData']();return(_0x3c6508=_0x3c3f57[_0x59adf7(0x1ea)])!=null&&(_0x3c6508=_0x3c6508[this[_0x59adf7(0x1d9)]])!=null&&_0x3c6508['tableRows'][_0x5206d4]?this[_0x59adf7(0x1d1)](_0x3c3f57,(0x0,_0x5899fa[_0x59adf7(0x1bf)])(_0x3c3f57,this[_0x59adf7(0x1d9)],_0x5206d4,_0x595822,_0x143a07)):!0x1;}[_0x46804d(0x12d)](_0x355c0c){const _0x529725=_0x46804d;var _0x519882;let _0x3dc638=(_0x519882=this['getSource']())==null||(_0x519882=_0x519882[_0x529725(0x1c5)][_0x355c0c])==null?void 0x0:_0x519882[_0x529725(0x17f)];return _0x3dc638?_0x12a6d7[_0x529725(0x1ef)]['deepClone'](_0x3dc638):null;}['setColumnWidth'](_0x1436c6,_0x4af690){const _0x319a11=_0x46804d;var _0x2ef900;let _0x460461=this['_getDocumentData']();return(_0x2ef900=_0x460461[_0x319a11(0x1ea)])!=null&&(_0x2ef900=_0x2ef900[this[_0x319a11(0x1d9)]])!=null&&_0x2ef900[_0x319a11(0x197)][_0x1436c6]?this[_0x319a11(0x1d1)](_0x460461,(0x0,_0x5899fa[_0x319a11(0x1ca)])(_0x460461,this[_0x319a11(0x1d9)],_0x1436c6,_0x4af690)):!0x1;}[_0x46804d(0x138)](_0xcfa15c=0x0,_0x2f0638=this[_0x46804d(0x160)]()){const _0x5eff27=_0x46804d;let _0x1361e8=this[_0x5eff27(0x115)]();return this[_0x5eff27(0x1d1)](_0x1361e8,(0x0,_0x5899fa[_0x5eff27(0x145)])(_0x1361e8,this['_tableId'],_0xcfa15c,_0xcfa15c+_0x2f0638-0x1));}['distributeColumns'](_0x281545=0x0,_0x59a0c=this[_0x46804d(0x144)]()){const _0x61a137=_0x46804d;let _0x4804cb=this[_0x61a137(0x115)]();return this[_0x61a137(0x1d1)](_0x4804cb,(0x0,_0x5899fa[_0x61a137(0x16f)])(_0x4804cb,this[_0x61a137(0x1d9)],_0x281545,_0x281545+_0x59a0c-0x1));}['getHeaderRowCount'](){const _0x449e5b=_0x46804d;var _0x2e51be;return((_0x2e51be=this[_0x449e5b(0x1b1)]())==null?void 0x0:_0x2e51be['headerRowCount'])??0x0;}[_0x46804d(0x1bc)](_0x1420be){const _0x24d57b=_0x46804d;let _0x1f61a2=this[_0x24d57b(0x1af)]['get'](_0x5899fa[_0x24d57b(0x146)]),_0x2eebb1=this[_0x24d57b(0x115)](),_0x49dc89=(0x0,_0x5899fa[_0x24d57b(0x1a8)])(_0x2eebb1,this['_tableId'],_0x1420be);if(!_0x49dc89)return!0x1;let _0x4b69d6=this[_0x24d57b(0x1d1)](_0x2eebb1,_0x49dc89[_0x24d57b(0x133)]);return _0x4b69d6&&_0x1f61a2['setHeaderRowCount'](this[_0x24d57b(0x11b)],this['_tableId'],_0x49dc89[_0x24d57b(0x134)]),_0x4b69d6;}['pinHeaderRows'](_0x30cdf3){const _0x21326b=_0x46804d;return this[_0x21326b(0x1bc)](_0x30cdf3);}[_0x46804d(0x1cb)](){var _0x225a93;return((_0x225a93=this['getMetadata']())==null?void 0x0:_0x225a93['titleRow'])??!0x1;}[_0x46804d(0x191)](){const _0x2fe177=_0x46804d;let _0x5c8f0d=this[_0x2fe177(0x1af)][_0x2fe177(0x123)](_0x5899fa[_0x2fe177(0x146)]),_0x25f2ab=this['_getDocumentData'](),_0xdd1394=(0x0,_0x5899fa[_0x2fe177(0x16b)])(_0x25f2ab,this[_0x2fe177(0x1d9)],this[_0x2fe177(0x1ee)]());if(!_0xdd1394)return!0x1;let _0x7fc3dc=this[_0x2fe177(0x1d1)](_0x25f2ab,_0xdd1394[_0x2fe177(0x133)]);return _0x7fc3dc&&_0x5c8f0d['setTitleRow'](this[_0x2fe177(0x11b)],this['_tableId'],!0x0),_0x7fc3dc;}[_0x46804d(0x122)](_0x2c6e63,_0x3415ad){const _0x1bada0=_0x46804d;return this[_0x1bada0(0x1af)][_0x1bada0(0x123)](_0x5899fa[_0x1bada0(0x146)])[_0x1bada0(0x122)](this[_0x1bada0(0x11b)],this[_0x1bada0(0x1d9)],_0x2c6e63,_0x3415ad),!0x0;}[_0x46804d(0x150)](_0x4b0b2c,_0x19e9db){const _0x4f9b3c=_0x46804d;let _0x2a3d9c=this['_getDocumentData']();return this[_0x4f9b3c(0x1d1)](_0x2a3d9c,(0x0,_0x5899fa[_0x4f9b3c(0x1a6)])(_0x2a3d9c,this[_0x4f9b3c(0x195)](),this['_tableId'],_0x4b0b2c,_0x19e9db,this[_0x4f9b3c(0x1ee)]()));}[_0x46804d(0x115)](){const _0x2d932d=_0x46804d;let _0x47a46b=this[_0x2d932d(0x1a7)][_0x2d932d(0x148)]()['getSnapshot']();return this[_0x2d932d(0x17b)]?{...this['_document']['getDocumentDataModel'](this[_0x2d932d(0x17b)])['getSnapshot'](),'documentStyle':_0x47a46b[_0x2d932d(0x154)],'tableSource':_0x47a46b[_0x2d932d(0x1ea)]}:_0x47a46b;}[_0x46804d(0x195)](){const _0x518902=_0x46804d;return this[_0x518902(0x1af)][_0x518902(0x123)](_0x5899fa[_0x518902(0x146)])[_0x518902(0x121)](this[_0x518902(0x11b)]);}[_0x46804d(0x1ee)](){const _0x1bf4e2=_0x46804d;return(0x0,_0x5899fa[_0x1bf4e2(0x175)])(this[_0x1bf4e2(0x1a7)][_0x1bf4e2(0x148)]()['getSnapshot'](),this[_0x1bf4e2(0x17b)]);}[_0x46804d(0x1d1)](_0x2b37a2,_0xc2abd4,_0x4bfe8f){const _0x625a33=_0x46804d;return(0x0,_0x5899fa['executeRichTextTableActions'])(this[_0x625a33(0x127)],this[_0x625a33(0x11b)],_0x2b37a2,_0xc2abd4,_0x4bfe8f?{'tableId':this[_0x625a33(0x1d9)],'segmentId':this[_0x625a33(0x17b)],..._0x4bfe8f}:void 0x0);}};_0x13c2a2=_0x34e039([_0x1d38ac(0x3,_0x12a6d7[_0x46804d(0x1b6)]),_0x1d38ac(0x4,(0x0,_0x12a6d7['Inject'])(_0x12a6d7['Injector']))],_0x13c2a2);var _0x7aabb5=class extends _0x1ca04b[_0x46804d(0x117)]{[_0x46804d(0x139)](_0x298e26=''){const _0x5b66ad=_0x46804d;return this[_0x5b66ad(0x1d5)](_0x298e26)[_0x5b66ad(0x167)](_0xc55b27=>this['_createFDocumentTable'](_0xc55b27[_0x5b66ad(0x1b0)],_0x298e26));}[_0x46804d(0x1df)](_0x4dede3,_0x267d3d=''){const _0x52cd3d=_0x46804d;return this[_0x52cd3d(0x1d5)](_0x267d3d)[_0x52cd3d(0x14f)](_0x77f633=>_0x77f633[_0x52cd3d(0x1b0)]===_0x4dede3)?this[_0x52cd3d(0x199)](_0x4dede3,_0x267d3d):null;}[_0x46804d(0x190)](_0x4f9dfa,_0x2e83f1=''){const _0x25aa0a=_0x46804d;var _0x28d287;let _0x47c65e=(_0x28d287=this[_0x25aa0a(0x1d5)](_0x2e83f1)[_0x4f9dfa])==null?void 0x0:_0x28d287['tableId'];return _0x47c65e?this[_0x25aa0a(0x199)](_0x47c65e,_0x2e83f1):null;}[_0x46804d(0x1c2)](){const _0x490ddf=_0x46804d;let _0x1e3b4a=this['_injector'][_0x490ddf(0x123)](_0x5899fa['DocsTableSelectionService'])[_0x490ddf(0x189)]();return _0x1e3b4a!=null&&_0x1e3b4a[_0x490ddf(0x1b0)]?this[_0x490ddf(0x199)](_0x1e3b4a[_0x490ddf(0x1b0)],_0x1e3b4a['segmentId']):null;}[_0x46804d(0x140)](_0x1587ea,_0x578273=''){return this['findTables'](_0x1587ea,_0x578273)[0x0]??null;}[_0x46804d(0x1cd)](_0x339648,_0x17cacb=''){const _0x5f173d=_0x46804d;let _0x66abc3=this[_0x5f173d(0x170)](_0x17cacb),_0x59f2f1=typeof _0x339648==_0x5f173d(0x1c6)?{'text':_0x339648}:_0x339648;return this[_0x5f173d(0x139)](_0x17cacb)[_0x5f173d(0x14e)](_0x50875f=>{const _0x19db83=_0x5f173d;let _0x713a94=_0x50875f[_0x19db83(0x166)]();return!(_0x59f2f1['tableId']&&_0x713a94!==_0x59f2f1[_0x19db83(0x1b0)]||_0x59f2f1[_0x19db83(0x1c7)]&&!this[_0x19db83(0x181)](_0x66abc3,_0x713a94,_0x59f2f1[_0x19db83(0x1c7)])||_0x59f2f1[_0x19db83(0x1c8)]&&!this[_0x19db83(0x1b7)](_0x50875f,0x0,_0x59f2f1['headerText'])||_0x59f2f1['titleText']&&!this['_rowContainsText'](_0x50875f,0x0,_0x59f2f1[_0x19db83(0x178)]));});}['insertTable'](_0x4ec14a,_0x358192,_0x2d2b40={}){const _0xcd71a9=_0x46804d;let _0x29f23d=this['_injector'][_0xcd71a9(0x123)](_0x12a6d7['ICommandService']),_0x596106=_0x2d2b40[_0xcd71a9(0x1b0)]??(0x0,_0x12a6d7[_0xcd71a9(0x1e3)])(0x6);return _0x29f23d[_0xcd71a9(0x126)](_0x5899fa['DocsTableInsertTableCommand']['id'],{..._0x2d2b40,'unitId':this[_0xcd71a9(0x166)](),'rows':_0x4ec14a,'columns':_0x358192,'tableId':_0x596106})?this['_createFDocumentTable'](_0x596106,_0x2d2b40[_0xcd71a9(0x163)]??''):null;}['insertTableFromData'](_0x37c087,_0x15f456={}){const _0x4478c1=_0x46804d;let _0x5292dd=this[_0x4478c1(0x1af)]['get'](_0x12a6d7[_0x4478c1(0x1b6)]),_0x4e53ab=_0x15f456[_0x4478c1(0x1b0)]??(0x0,_0x12a6d7[_0x4478c1(0x1e3)])(0x6);return _0x5292dd[_0x4478c1(0x126)](_0x5899fa[_0x4478c1(0x1e8)]['id'],{..._0x15f456,'unitId':this['getId'](),'values':_0x37c087,'tableId':_0x4e53ab})?this[_0x4478c1(0x199)](_0x4e53ab,_0x15f456[_0x4478c1(0x163)]??''):null;}['_getTables'](_0x3fc5d6=''){const _0x25b12b=_0x46804d;let {tables:_0x418de1=[]}=this[_0x25b12b(0x19b)](_0x3fc5d6);return _0x418de1;}['_getTableDocumentData'](_0x572220=''){const _0x5cbefd=_0x46804d;let _0x297080=this[_0x5cbefd(0x148)]()[_0x5cbefd(0x12b)]();return _0x572220?{...this[_0x5cbefd(0x148)](_0x572220)[_0x5cbefd(0x12b)](),'documentStyle':_0x297080[_0x5cbefd(0x154)],'tableSource':_0x297080[_0x5cbefd(0x1ea)]}:_0x297080;}[_0x46804d(0x199)](_0x1582fb,_0x5b061b=''){const _0x23b558=_0x46804d;return this['_injector'][_0x23b558(0x113)](_0x13c2a2,this,_0x1582fb,_0x5b061b);}['_tableContainsText'](_0xd35bf8,_0x204e52,_0x29112a){const _0x28f4c1=_0x46804d;var _0x42de71;let _0x2137e5=(0x0,_0x5899fa[_0x28f4c1(0x177)])(_0xd35bf8,_0x204e52);if(!_0x2137e5)return!0x1;let _0x1eaf72=(_0x42de71=_0xd35bf8[_0x28f4c1(0x129)])==null?void 0x0:_0x42de71[_0x28f4c1(0x1e7)];return _0x1eaf72?_0x1eaf72[_0x28f4c1(0x1a4)](_0x2137e5[_0x28f4c1(0x15b)],_0x2137e5[_0x28f4c1(0x119)])['includes'](_0x29112a):!0x1;}[_0x46804d(0x1b7)](_0x180a8b,_0x557c19,_0x43321d){const _0x60e23=_0x46804d;return Array[_0x60e23(0x152)]({'length':_0x180a8b['getColumnCount']()},(_0x4a36c6,_0x1e6e01)=>_0x180a8b[_0x60e23(0x186)](_0x557c19,_0x1e6e01))[_0x60e23(0x14f)](_0x489c1d=>_0x489c1d[_0x60e23(0x1ba)](_0x43321d));}};_0x1ca04b[_0x46804d(0x117)][_0x46804d(0x1e4)](_0x7aabb5),Object[_0x46804d(0x1aa)](_0x2585cd,_0x46804d(0x164),{'enumerable':!0x0,'get':function(){return _0x13c2a2;}}),_0x2585cd['FDocumentTableCell']=_0x4e889c;}));
|