@univerjs-pro/docs-table 1.0.0-alpha.1 → 1.0.0-alpha.3
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/README.md +4 -2
- 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/copy-selection.command.d.ts +2 -2
- package/lib/types/commands/delete-columns.command.d.ts +2 -1
- package/lib/types/commands/delete-rows.command.d.ts +2 -1
- package/lib/types/commands/delete-table.command.d.ts +2 -1
- package/lib/types/commands/distribute-columns.command.d.ts +2 -1
- package/lib/types/commands/distribute-rows.command.d.ts +2 -1
- package/lib/types/commands/insert-columns.command.d.ts +2 -1
- package/lib/types/commands/insert-rows.command.d.ts +2 -1
- package/lib/types/commands/insert-table.command.d.ts +1 -0
- package/lib/types/commands/insert-title-row.command.d.ts +2 -1
- package/lib/types/commands/merge-cells.command.d.ts +2 -2
- package/lib/types/commands/move-columns.command.d.ts +2 -1
- package/lib/types/commands/move-rows.command.d.ts +2 -1
- package/lib/types/commands/move-table.command.d.ts +2 -1
- package/lib/types/commands/paste-without-formatting.command.d.ts +2 -2
- package/lib/types/commands/resize-column.command.d.ts +2 -1
- package/lib/types/commands/resize-row.command.d.ts +4 -2
- package/lib/types/commands/set-column-type.command.d.ts +2 -2
- package/lib/types/commands/set-header-row-count.command.d.ts +2 -1
- package/lib/types/commands/set-table-background.command.d.ts +7 -3
- package/lib/types/commands/set-table-border-color.command.d.ts +4 -4
- package/lib/types/commands/set-table-border-style.command.d.ts +2 -2
- package/lib/types/commands/set-table-border-width.command.d.ts +2 -2
- package/lib/types/commands/set-table-border.command.d.ts +2 -2
- package/lib/types/commands/set-table-vertical-align.command.d.ts +7 -3
- package/lib/types/commands/sort-table.command.d.ts +2 -1
- package/lib/types/commands/unmerge-cells.command.d.ts +2 -2
- package/lib/types/commands/utils.d.ts +50 -4
- package/lib/types/common/border.d.ts +3 -1
- package/lib/types/common/cell-text.d.ts +8 -1
- package/lib/types/common/clipboard.d.ts +2 -1
- package/lib/types/common/document-copy.d.ts +7 -0
- package/lib/types/common/insert-table.d.ts +25 -4
- package/lib/types/common/margin.d.ts +10 -0
- package/lib/types/common/merge.d.ts +7 -1
- package/lib/types/common/sort.d.ts +5 -0
- package/lib/types/common/table-fixture.d.ts +0 -1
- package/lib/types/common/table-range.d.ts +6 -0
- package/lib/types/common/type.d.ts +3 -0
- package/lib/types/facade/f-document-table-cell.d.ts +12 -0
- package/lib/types/facade/f-document-table.d.ts +68 -14
- package/lib/types/facade/f-document.d.ts +64 -16
- package/lib/types/index.d.ts +17 -57
- package/lib/types/services/docs-table-selection.service.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { DocsTableColumnInsertPosition, DocsTableRowInsertPosition, DocsTableSortDirection, IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableOffsetRange } from '@univerjs-pro/docs-table';
|
|
2
|
-
import type { ITable } from '@univerjs/core';
|
|
2
|
+
import type { Injector, 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 {
|
|
6
|
+
import { 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.
|
|
@@ -22,11 +22,12 @@ import { FDocumentTableCell } from './f-document-table-cell';
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export declare class FDocumentTable {
|
|
25
|
-
private _document;
|
|
26
|
-
private _tableId;
|
|
27
|
-
|
|
25
|
+
private readonly _document;
|
|
26
|
+
private readonly _tableId;
|
|
27
|
+
private readonly _segmentId;
|
|
28
|
+
private readonly _injector;
|
|
28
29
|
private readonly _unitId;
|
|
29
|
-
constructor(_document: FDocument, _tableId: string, _injector: Injector);
|
|
30
|
+
constructor(_document: FDocument, _tableId: string, _segmentId: string | undefined, _injector: Injector);
|
|
30
31
|
/**
|
|
31
32
|
* Returns the table id.
|
|
32
33
|
* @returns {string} The table id stored in the document snapshot.
|
|
@@ -38,6 +39,19 @@ export declare class FDocumentTable {
|
|
|
38
39
|
* ```
|
|
39
40
|
*/
|
|
40
41
|
getId(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Get the segment id of this table.
|
|
44
|
+
* The main body tables have an empty string segment id.
|
|
45
|
+
* The header and footer tables have a non-empty string segment id.
|
|
46
|
+
* @returns {string} The segment id.
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const fDocument = univerAPI.getActiveDocument();
|
|
50
|
+
* const table = fDocument?.findTableByText('Status');
|
|
51
|
+
* console.log(table?.getSegmentId());
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
getSegmentId(): string;
|
|
41
55
|
/**
|
|
42
56
|
* Returns compact table metadata for agents.
|
|
43
57
|
* @returns {IDocsTableInfo} The id, row count, column count, metadata, and raw table source.
|
|
@@ -110,6 +124,25 @@ export declare class FDocumentTable {
|
|
|
110
124
|
* ```
|
|
111
125
|
*/
|
|
112
126
|
getCellText(row: number, column: number): string;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the effective margin used to lay out a cell.
|
|
129
|
+
* The cell override takes precedence over the table default and the built-in fallback.
|
|
130
|
+
* @param {number} row The zero-based row index.
|
|
131
|
+
* @param {number} column The zero-based column index.
|
|
132
|
+
* @returns {ITableCellMargin | null} The effective margin, or `null` if the cell does not exist.
|
|
133
|
+
*/
|
|
134
|
+
getCellMargin(row: number, column: number): ITableCellMargin | null;
|
|
135
|
+
/**
|
|
136
|
+
* Returns a cell's explicit margin override.
|
|
137
|
+
* @param {number} row The zero-based row index.
|
|
138
|
+
* @param {number} column The zero-based column index.
|
|
139
|
+
* @returns {ITableCellMargin | null} The explicit override, or `null` if the cell inherits its margin.
|
|
140
|
+
*/
|
|
141
|
+
getCellMarginOverride(row: number, column: number): ITableCellMargin | null;
|
|
142
|
+
/** Returns the effective table-level default cell margin. */
|
|
143
|
+
getDefaultCellMargin(): ITableCellMargin;
|
|
144
|
+
/** Returns the explicit table-level default cell margin, or `null` when the built-in fallback is used. */
|
|
145
|
+
getDefaultCellMarginOverride(): ITableCellMargin | null;
|
|
113
146
|
/**
|
|
114
147
|
* Gets the table metadata stored in the document snapshot, including header row count, title row, and column type configs.
|
|
115
148
|
* @returns {IDocsTableMetadata | undefined} The table metadata, or `undefined` if the table source is not found in the document snapshot.
|
|
@@ -134,12 +167,12 @@ export declare class FDocumentTable {
|
|
|
134
167
|
getSource(): ITable | undefined;
|
|
135
168
|
/**
|
|
136
169
|
* Gets the table range with offsets for all cells in the table.
|
|
137
|
-
* @returns {IDocsTableOffsetRange} The table range with offsets, or `null` if the table source is not found in the document snapshot.
|
|
170
|
+
* @returns {IDocsTableOffsetRange | null} The table range with offsets, or `null` if the table source is not found in the document snapshot.
|
|
138
171
|
* @example
|
|
139
172
|
* ```ts
|
|
140
173
|
* const fDocument = univerAPI.getActiveDocument();
|
|
141
174
|
* const table = fDocument?.findTableByText('Status');
|
|
142
|
-
* console.log(table?.
|
|
175
|
+
* console.log(table?.getRange());
|
|
143
176
|
* ```
|
|
144
177
|
*/
|
|
145
178
|
getRange(): IDocsTableOffsetRange | null;
|
|
@@ -150,7 +183,7 @@ export declare class FDocumentTable {
|
|
|
150
183
|
* ```ts
|
|
151
184
|
* const fDocument = univerAPI.getActiveDocument();
|
|
152
185
|
* const table = fDocument?.findTableByText('Status');
|
|
153
|
-
* console.log(table?.
|
|
186
|
+
* console.log(table?.getTableRange());
|
|
154
187
|
* ```
|
|
155
188
|
*/
|
|
156
189
|
getTableRange(): IDocsTableCellRange;
|
|
@@ -685,6 +718,21 @@ export declare class FDocumentTable {
|
|
|
685
718
|
* ```
|
|
686
719
|
*/
|
|
687
720
|
setCellBackground(range: IDocsTableCellRange, color: string): boolean;
|
|
721
|
+
/**
|
|
722
|
+
* Sets or clears the explicit margin override for a range of cells.
|
|
723
|
+
* Pass `null` to make the cells inherit the table default.
|
|
724
|
+
* @param {IDocsTableCellRange} range The target cell range.
|
|
725
|
+
* @param {ITableCellMargin | null} margin The margin override, or `null` to clear it.
|
|
726
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
727
|
+
*/
|
|
728
|
+
setCellMargin(range: IDocsTableCellRange, margin: Nullable<ITableCellMargin>): boolean;
|
|
729
|
+
/**
|
|
730
|
+
* Sets or clears the table-level default cell margin.
|
|
731
|
+
* Pass `null` to restore the built-in fallback.
|
|
732
|
+
* @param {ITableCellMargin | null} margin The table default, or `null` to clear it.
|
|
733
|
+
* @returns {boolean} Whether the mutation succeeded.
|
|
734
|
+
*/
|
|
735
|
+
setDefaultCellMargin(margin: Nullable<ITableCellMargin>): boolean;
|
|
688
736
|
/**
|
|
689
737
|
* Sets the border properties for a range of cells in the table.
|
|
690
738
|
* @param {IDocsTableCellRange} range The range of cells to set the border for.
|
|
@@ -797,7 +845,9 @@ export declare class FDocumentTable {
|
|
|
797
845
|
* table?.setRowHeight(1, 30); // Sets the height of row 1 to 30 units
|
|
798
846
|
* ```
|
|
799
847
|
*/
|
|
800
|
-
setRowHeight(row: number, height: number): boolean;
|
|
848
|
+
setRowHeight(row: number, height: number, hRule?: TableRowHeightRule): boolean;
|
|
849
|
+
/** Returns the row height value and its OOXML height rule. */
|
|
850
|
+
getRowHeight(row: number): ITableRowSize | null;
|
|
801
851
|
/**
|
|
802
852
|
* Sets the width of a specific column in the table.
|
|
803
853
|
* @param {number} column The zero-based column index to set the width for.
|
|
@@ -896,16 +946,19 @@ export declare class FDocumentTable {
|
|
|
896
946
|
*/
|
|
897
947
|
insertTitleRow(): boolean;
|
|
898
948
|
/**
|
|
899
|
-
* Sets the type of a specific column in the table.
|
|
949
|
+
* Sets the metadata type of a specific column in the table.
|
|
950
|
+
*
|
|
951
|
+
* The column type is used as the value parsing hint for table features such as sorting.
|
|
952
|
+
* It does not enable dedicated cell editors or rendering for date, checkbox, or dropdown columns.
|
|
900
953
|
* @param {number} column The zero-based column index to set the type for.
|
|
901
954
|
* @param {IDocsTableColumnTypeConfig} config The column type configuration, including the type and any additional options specific to the column type.
|
|
902
|
-
* @returns {boolean} `true` if the column type was successfully set.
|
|
955
|
+
* @returns {boolean} `true` if the column type metadata was successfully set.
|
|
903
956
|
* @example
|
|
904
957
|
* ```ts
|
|
905
958
|
* const fDocument = univerAPI.getActiveDocument();
|
|
906
959
|
* const table = fDocument?.findTableByText('Status');
|
|
907
960
|
*
|
|
908
|
-
* //
|
|
961
|
+
* // Sorts column 2 as date values when table sorting is applied.
|
|
909
962
|
* table?.setColumnType(2, {
|
|
910
963
|
* type: univerAPI.Enum.DocsTableColumnType.Date,
|
|
911
964
|
* });
|
|
@@ -927,5 +980,6 @@ export declare class FDocumentTable {
|
|
|
927
980
|
sortByColumn(column: number, direction: DocsTableSortDirection): boolean;
|
|
928
981
|
private _getDocumentData;
|
|
929
982
|
private _serializeModel;
|
|
930
|
-
private
|
|
983
|
+
private _getBodyPath;
|
|
984
|
+
private _mutateActions;
|
|
931
985
|
}
|
|
@@ -4,40 +4,55 @@ import { FDocument } from '@univerjs/docs/facade';
|
|
|
4
4
|
import { FDocumentTable } from './f-document-table';
|
|
5
5
|
export interface IFDocumentTableMixin {
|
|
6
6
|
/**
|
|
7
|
-
* Returns all enhanced docs tables in this document.
|
|
7
|
+
* Returns all enhanced docs tables in this document body or header/footer body by the segment id.
|
|
8
|
+
* @param {string} [segmentId] The segment id of the body. Defaults to an empty string for the main body.
|
|
8
9
|
* @returns {FDocumentTable[]} An array of FDocumentTable instances, or an empty array if the document contains no tables.
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
11
12
|
* const fDocument = univerAPI.getActiveDocument();
|
|
12
13
|
* const tables = fDocument.getTables();
|
|
13
14
|
* console.log(tables);
|
|
15
|
+
*
|
|
16
|
+
* const headerSegmentId = fDocument.ensurePageHeader();
|
|
17
|
+
* const headerTables = fDocument.getTables(headerSegmentId);
|
|
18
|
+
* console.log(headerTables);
|
|
14
19
|
* ```
|
|
15
20
|
*/
|
|
16
|
-
getTables(): FDocumentTable[];
|
|
21
|
+
getTables(segmentId?: string): FDocumentTable[];
|
|
17
22
|
/**
|
|
18
|
-
* Returns a table by table id.
|
|
23
|
+
* Returns a table by table id in this document body or header/footer body by the segment id.
|
|
19
24
|
* @param {string} tableId The table id stored in the document snapshot.
|
|
25
|
+
* @param {string} [segmentId] The segment id of the body. Defaults to an empty string for the main body.
|
|
20
26
|
* @returns {FDocumentTable | null} The FDocumentTable instance, or `null` if no table with the given id exists in the document.
|
|
21
27
|
* @example
|
|
22
28
|
* ```ts
|
|
23
29
|
* const fDocument = univerAPI.getActiveDocument();
|
|
24
30
|
* const table = fDocument.getTable('table-1');
|
|
25
31
|
* console.log(table);
|
|
32
|
+
*
|
|
33
|
+
* const headerSegmentId = fDocument.ensurePageHeader();
|
|
34
|
+
* const headerTable = fDocument.getTable('table-1', headerSegmentId);
|
|
35
|
+
* console.log(headerTable);
|
|
26
36
|
* ```
|
|
27
37
|
*/
|
|
28
|
-
getTable(tableId: string): FDocumentTable | null;
|
|
38
|
+
getTable(tableId: string, segmentId?: string): FDocumentTable | null;
|
|
29
39
|
/**
|
|
30
|
-
* Returns a table by its order in the
|
|
40
|
+
* Returns a table by its order in this document body or header/footer body by the segment id.
|
|
31
41
|
* @param {number} index The zero-based table index.
|
|
42
|
+
* @param {string} [segmentId] The segment id of the body. Defaults to an empty string for the main body.
|
|
32
43
|
* @returns {FDocumentTable | null} The FDocumentTable instance, or `null` if the index is out of bounds.
|
|
33
44
|
* @example
|
|
34
45
|
* ```ts
|
|
35
46
|
* const fDocument = univerAPI.getActiveDocument();
|
|
36
47
|
* const firstTable = fDocument.getTableAt(0);
|
|
37
48
|
* console.log(firstTable);
|
|
49
|
+
*
|
|
50
|
+
* const footerSegmentId = fDocument.ensurePageFooter();
|
|
51
|
+
* const firstFooterTable = fDocument.getTableAt(0, footerSegmentId);
|
|
52
|
+
* console.log(firstFooterTable);
|
|
38
53
|
* ```
|
|
39
54
|
*/
|
|
40
|
-
getTableAt(index: number): FDocumentTable | null;
|
|
55
|
+
getTableAt(index: number, segmentId?: string): FDocumentTable | null;
|
|
41
56
|
/**
|
|
42
57
|
* Returns the table currently selected by the docs table selection service.
|
|
43
58
|
* @returns {FDocumentTable | null} The FDocumentTable instance, or `null` if there is no current table selection.
|
|
@@ -46,36 +61,53 @@ export interface IFDocumentTableMixin {
|
|
|
46
61
|
* const fDocument = univerAPI.getActiveDocument();
|
|
47
62
|
* const selectedTable = fDocument.getTableAtSelection();
|
|
48
63
|
* console.log(selectedTable);
|
|
64
|
+
* console.log(selectedTable?.getSegmentId());
|
|
49
65
|
* ```
|
|
50
66
|
*/
|
|
51
67
|
getTableAtSelection(): FDocumentTable | null;
|
|
52
68
|
/**
|
|
53
|
-
* Finds the first table whose data stream contains the given text.
|
|
69
|
+
* Finds the first table whose data stream contains the given text in this document body or header/footer body by the segment id.
|
|
54
70
|
* @param {string} text Text to search inside table cells.
|
|
71
|
+
* @param {string} [segmentId] The segment id of the body. Defaults to an empty string for the main body.
|
|
55
72
|
* @returns {FDocumentTable | null} The first FDocumentTable instance matching the query, or `null` if no matches are found.
|
|
56
73
|
* @example
|
|
57
74
|
* ```ts
|
|
58
75
|
* const fDocument = univerAPI.getActiveDocument();
|
|
59
76
|
* const table = fDocument.findTableByText('Revenue');
|
|
60
77
|
* console.log(table);
|
|
78
|
+
*
|
|
79
|
+
* const headerSegmentId = fDocument.ensurePageHeader();
|
|
80
|
+
* const headerTable = fDocument.findTableByText('Revenue', headerSegmentId);
|
|
81
|
+
* console.log(headerTable);
|
|
61
82
|
* ```
|
|
62
83
|
*/
|
|
63
|
-
findTableByText(text: string): FDocumentTable | null;
|
|
84
|
+
findTableByText(text: string, segmentId?: string): FDocumentTable | null;
|
|
64
85
|
/**
|
|
65
|
-
* Finds tables by text, id, header text, or title text.
|
|
86
|
+
* Finds tables by text, id, header text, or title text in this document body or header/footer body by the segment id.
|
|
66
87
|
* @param {string | IDocsTableFindQuery} query A plain text query or a structured table query.
|
|
88
|
+
* @param {string} [segmentId] The segment id of the body. Defaults to an empty string for the main body.
|
|
67
89
|
* @returns {FDocumentTable[]} An array of FDocumentTable instances matching the query, or an empty array if no matches are found.
|
|
68
90
|
* @example
|
|
69
91
|
* ```ts
|
|
70
92
|
* const fDocument = univerAPI.getActiveDocument();
|
|
71
93
|
* const tablesWithText = fDocument.findTables('Revenue');
|
|
94
|
+
* console.log(tablesWithText);
|
|
95
|
+
*
|
|
72
96
|
* const tablesWithId = fDocument.findTables({ tableId: 'table-1' });
|
|
97
|
+
* console.log(tablesWithId);
|
|
98
|
+
*
|
|
73
99
|
* const tablesWithHeader = fDocument.findTables({ headerText: 'Q1' });
|
|
100
|
+
* console.log(tablesWithHeader);
|
|
101
|
+
*
|
|
74
102
|
* const tablesWithTitle = fDocument.findTables({ titleText: 'Sales Data' });
|
|
75
|
-
* console.log(
|
|
103
|
+
* console.log(tablesWithTitle);
|
|
104
|
+
*
|
|
105
|
+
* const footerSegmentId = fDocument.ensurePageFooter();
|
|
106
|
+
* const footerTablesWithText = fDocument.findTables('Revenue', footerSegmentId);
|
|
107
|
+
* console.log(footerTablesWithText);
|
|
76
108
|
* ```
|
|
77
109
|
*/
|
|
78
|
-
findTables(query: string | IDocsTableFindQuery): FDocumentTable[];
|
|
110
|
+
findTables(query: string | IDocsTableFindQuery, segmentId?: string): FDocumentTable[];
|
|
79
111
|
/**
|
|
80
112
|
* Inserts an empty table at the current document selection or at the position provided in options.
|
|
81
113
|
* @param {number} rows The row count.
|
|
@@ -104,6 +136,12 @@ export interface IFDocumentTableMixin {
|
|
|
104
136
|
* ['A3', 'B3', 'C3', 'D3'],
|
|
105
137
|
* ],
|
|
106
138
|
* });
|
|
139
|
+
*
|
|
140
|
+
* // Insert a 2x2 table into the page header
|
|
141
|
+
* const headerSegmentId = fDocument.ensurePageHeader();
|
|
142
|
+
* const headerTable = fDocument.insertTable(2, 2, {
|
|
143
|
+
* segmentId: headerSegmentId,
|
|
144
|
+
* });
|
|
107
145
|
* ```
|
|
108
146
|
*/
|
|
109
147
|
insertTable(rows: number, columns: number, options?: IDocsTableInsertOptions): FDocumentTable | null;
|
|
@@ -123,20 +161,30 @@ export interface IFDocumentTableMixin {
|
|
|
123
161
|
* ], {
|
|
124
162
|
* headerRowCount: 1,
|
|
125
163
|
* });
|
|
164
|
+
*
|
|
165
|
+
* // Insert a table with data into the page footer
|
|
166
|
+
* const footerSegmentId = fDocument.ensurePageFooter();
|
|
167
|
+
* const footerTable = fDocument.insertTableFromData([
|
|
168
|
+
* ['Reviewed by', 'Date'],
|
|
169
|
+
* ['Docs Team', '2026-07-03'],
|
|
170
|
+
* ], {
|
|
171
|
+
* segmentId: footerSegmentId,
|
|
172
|
+
* });
|
|
126
173
|
* ```
|
|
127
174
|
*/
|
|
128
175
|
insertTableFromData(data: string[][], options?: IDocsTableInsertOptions): FDocumentTable | null;
|
|
129
176
|
}
|
|
130
177
|
export declare class FDocumentTableMixin extends FDocument implements IFDocumentTableMixin {
|
|
131
|
-
getTables(): FDocumentTable[];
|
|
132
|
-
getTable(tableId: string): FDocumentTable | null;
|
|
133
|
-
getTableAt(index: number): FDocumentTable | null;
|
|
178
|
+
getTables(segmentId?: string): FDocumentTable[];
|
|
179
|
+
getTable(tableId: string, segmentId?: string): FDocumentTable | null;
|
|
180
|
+
getTableAt(index: number, segmentId?: string): FDocumentTable | null;
|
|
134
181
|
getTableAtSelection(): FDocumentTable | null;
|
|
135
|
-
findTableByText(text: string): FDocumentTable | null;
|
|
136
|
-
findTables(query: string | IDocsTableFindQuery): FDocumentTable[];
|
|
182
|
+
findTableByText(text: string, segmentId?: string): FDocumentTable | null;
|
|
183
|
+
findTables(query: string | IDocsTableFindQuery, segmentId?: string): FDocumentTable[];
|
|
137
184
|
insertTable(rows: number, columns: number, options?: IDocsTableInsertOptions): FDocumentTable | null;
|
|
138
185
|
insertTableFromData(data: string[][], options?: IDocsTableInsertOptions): FDocumentTable | null;
|
|
139
186
|
private _getTables;
|
|
187
|
+
private _getTableDocumentData;
|
|
140
188
|
private _createFDocumentTable;
|
|
141
189
|
private _tableContainsText;
|
|
142
190
|
private _rowContainsText;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,86 +1,46 @@
|
|
|
1
|
-
export { DocsTableCopySelectionCommand } from './commands/copy-selection.command';
|
|
2
|
-
export type { IDocsTableCopySelectionCommandParams } from './commands/copy-selection.command';
|
|
3
1
|
export { DocsTableDeleteColumnsCommand } from './commands/delete-columns.command';
|
|
4
|
-
export type { IDocsTableDeleteColumnsCommandParams } from './commands/delete-columns.command';
|
|
5
2
|
export { DocsTableDeleteRowsCommand } from './commands/delete-rows.command';
|
|
6
|
-
export type { IDocsTableDeleteRowsCommandParams } from './commands/delete-rows.command';
|
|
7
3
|
export { DocsTableDeleteTableCommand } from './commands/delete-table.command';
|
|
8
|
-
export type { IDocsTableDeleteTableCommandParams } from './commands/delete-table.command';
|
|
9
4
|
export { DocsTableDistributeColumnsCommand } from './commands/distribute-columns.command';
|
|
10
|
-
export type { IDocsTableDistributeColumnsCommandParams } from './commands/distribute-columns.command';
|
|
11
5
|
export { DocsTableDistributeRowsCommand } from './commands/distribute-rows.command';
|
|
12
|
-
export type { IDocsTableDistributeRowsCommandParams } from './commands/distribute-rows.command';
|
|
13
6
|
export { DocsTableInsertColumnsCommand } from './commands/insert-columns.command';
|
|
14
|
-
export type { IDocsTableInsertColumnsCommandParams } from './commands/insert-columns.command';
|
|
15
7
|
export { DocsTableInsertRowsCommand } from './commands/insert-rows.command';
|
|
16
|
-
export type { IDocsTableInsertRowsCommandParams } from './commands/insert-rows.command';
|
|
17
8
|
export { DocsTableInsertTableCommand } from './commands/insert-table.command';
|
|
18
9
|
export type { IDocsTableInsertTableCommandParams } from './commands/insert-table.command';
|
|
19
10
|
export { DocsTableInsertTitleRowCommand } from './commands/insert-title-row.command';
|
|
20
|
-
export type { IDocsTableInsertTitleRowCommandParams } from './commands/insert-title-row.command';
|
|
21
11
|
export { DocsTableMergeCellsCommand } from './commands/merge-cells.command';
|
|
22
|
-
export type { IDocsTableMergeCellsCommandParams } from './commands/merge-cells.command';
|
|
23
12
|
export { DocsTableMoveColumnsCommand } from './commands/move-columns.command';
|
|
24
|
-
export type { IDocsTableMoveColumnsCommandParams } from './commands/move-columns.command';
|
|
25
13
|
export { DocsTableMoveRowsCommand } from './commands/move-rows.command';
|
|
26
|
-
export type { IDocsTableMoveRowsCommandParams } from './commands/move-rows.command';
|
|
27
14
|
export { DocsTableMoveTableCommand } from './commands/move-table.command';
|
|
28
|
-
export type { IDocsTableMoveTableCommandParams } from './commands/move-table.command';
|
|
29
|
-
export { DocsTablePasteWithoutFormattingCommand } from './commands/paste-without-formatting.command';
|
|
30
|
-
export type { IDocsTablePasteWithoutFormattingCommandParams } from './commands/paste-without-formatting.command';
|
|
31
15
|
export { DocsTableResizeColumnCommand } from './commands/resize-column.command';
|
|
32
|
-
export type { IDocsTableResizeColumnCommandParams } from './commands/resize-column.command';
|
|
33
16
|
export { DocsTableResizeRowCommand } from './commands/resize-row.command';
|
|
34
|
-
export type { IDocsTableResizeRowCommandParams } from './commands/resize-row.command';
|
|
35
17
|
export { DocsTableSetColumnTypeCommand } from './commands/set-column-type.command';
|
|
36
|
-
export type { IDocsTableSetColumnTypeCommandParams } from './commands/set-column-type.command';
|
|
37
18
|
export { DocsTableSetHeaderRowCountCommand } from './commands/set-header-row-count.command';
|
|
38
|
-
export
|
|
39
|
-
export { DocsTableSetTableBackgroundCommand } from './commands/set-table-background.command';
|
|
40
|
-
export type { IDocsTableSetTableBackgroundCommandParams } from './commands/set-table-background.command';
|
|
19
|
+
export { buildSetTableBackgroundMutationActions, DocsTableSetTableBackgroundCommand } from './commands/set-table-background.command';
|
|
41
20
|
export { DocsTableSetTableBorderColorCommand } from './commands/set-table-border-color.command';
|
|
42
|
-
export type { IDocsTableSetTableBorderColorCommandParams } from './commands/set-table-border-color.command';
|
|
43
21
|
export { DocsTableSetTableBorderStyleCommand } from './commands/set-table-border-style.command';
|
|
44
|
-
export type { IDocsTableSetTableBorderStyleCommandParams } from './commands/set-table-border-style.command';
|
|
45
22
|
export { DocsTableSetTableBorderWidthCommand } from './commands/set-table-border-width.command';
|
|
46
|
-
export type { IDocsTableSetTableBorderWidthCommandParams } from './commands/set-table-border-width.command';
|
|
47
23
|
export { DocsTableSetTableBorderCommand } from './commands/set-table-border.command';
|
|
48
|
-
export type { IDocsTableSetTableBorderCommandParams } from './commands/set-table-border.command';
|
|
49
24
|
export { DocsTableSetTableVerticalAlignCommand } from './commands/set-table-vertical-align.command';
|
|
50
|
-
export type { IDocsTableSetTableVerticalAlignCommandParams } from './commands/set-table-vertical-align.command';
|
|
51
25
|
export { DocsTableSortTableCommand } from './commands/sort-table.command';
|
|
52
|
-
export type { IDocsTableSortTableCommandParams } from './commands/sort-table.command';
|
|
53
26
|
export { DocsTableUnmergeCellsCommand } from './commands/unmerge-cells.command';
|
|
54
|
-
export
|
|
55
|
-
export { executeRichTextTableMutation } from './commands/utils';
|
|
27
|
+
export { buildDeleteTableColumnsMutationActions, buildDeleteTableMutationActions, buildDeleteTableRowsMutationActions, buildDistributeTableColumnsMutationActions, buildDistributeTableRowsMutationActions, buildInsertTableColumnsMutationActions, buildInsertTableRowsMutationActions, buildInsertTableTitleRowMutationActions, buildMoveFloatingTableMutationActions, buildMoveTableColumnsMutationActions, buildMoveTableRowsMutationActions, buildMoveTableToOffsetMutationActions, buildResizeTableColumnActionsFromWidth, buildResizeTableRowActionsFromHeight, buildSetTableHeaderRowCountMutationActions, buildSortTableMutationActions, executeRichTextTableActions, getTableActionBodyPath, } from './commands/utils';
|
|
56
28
|
export { buildDeleteColumnsActions, buildDeleteRowsActions, buildDeleteTableActions, buildInsertColumnsActions, buildInsertRowsActions, buildMoveColumnsActions, buildMoveRowsActions, DocsTableColumnInsertPosition, DocsTableInsertPosition, DocsTableRowInsertPosition, } from './common/actions';
|
|
57
|
-
export
|
|
58
|
-
export {
|
|
59
|
-
export
|
|
60
|
-
export {
|
|
61
|
-
export
|
|
62
|
-
export {
|
|
63
|
-
export
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export
|
|
67
|
-
export {
|
|
68
|
-
export
|
|
69
|
-
export {
|
|
70
|
-
export
|
|
71
|
-
export {
|
|
72
|
-
export type { IDocsTableMergeActionParams, IDocsTableMergeActionResult } from './common/merge';
|
|
73
|
-
export { normalizeDocsTableMetadataResource, setColumnTypeInMetadata, setHeaderRowCountInMetadata, setTitleRowInMetadata, } from './common/metadata';
|
|
74
|
-
export { remapDocsTableSelection } from './common/selection-remap';
|
|
75
|
-
export type { DocsTableSelectionRemapOperation } from './common/selection-remap';
|
|
76
|
-
export { buildSortTableActions, DocsTableSortDirection } from './common/sort';
|
|
77
|
-
export type { ISortTableActionParams, ISortTableActionResult } from './common/sort';
|
|
78
|
-
export { getColumnRange, getRowRange, getTableRangeById } from './common/table-range';
|
|
79
|
-
export type { IDocsTableCellOffsetRange, IDocsTableColumnOffsetRange, IDocsTableOffsetRange, IDocsTableRowOffsetRange, } from './common/table-range';
|
|
80
|
-
export { DocsTableColumnType, DocsTableSelectionKind, DocsTableSelectionSource } from './common/type';
|
|
81
|
-
export type { IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableDropdownOption, IDocsTableMetadata, IDocsTableMetadataResource, IDocsTableSelection, } from './common/type';
|
|
82
|
-
export type { IUniverDocsTableConfig } from './config/config';
|
|
83
|
-
export { DocsTableResourceController } from './controllers/docs-table-resource.controller';
|
|
29
|
+
export { buildSetTableBorderActions, buildSetTableBorderMutationActions, buildSetTableCellBackgroundActions, DocsTableBorderPreset, } from './common/border';
|
|
30
|
+
export { buildSetTableCellTextActions, buildSetTableCellTextMutationActions } from './common/cell-text';
|
|
31
|
+
export { buildPastePlainTextTableMutationActions } from './common/clipboard';
|
|
32
|
+
export { DOCS_TABLE_PLUGIN } from './common/const';
|
|
33
|
+
export { DocsTableInsertTablePosition } from './common/insert-table';
|
|
34
|
+
export type { IDocsTableInsertOptions } from './common/insert-table';
|
|
35
|
+
export { buildDistributeColumnsActions, buildDistributeRowsActions, buildInsertTitleRowActions, buildMoveTableActions, buildResizeColumnActions, buildResizeRowActions, buildSetHeaderRowCountActions, } from './common/layout';
|
|
36
|
+
export { buildSetTableCellMarginMutationActions, buildSetTableDefaultCellMarginMutationActions, DEFAULT_DOCS_TABLE_CELL_MARGIN, } from './common/margin';
|
|
37
|
+
export type { ISetTableCellMarginMutationParams } from './common/margin';
|
|
38
|
+
export { buildMergeCellsActions, buildMergeCellsMutationActions, buildUnmergeCellsActions, buildUnmergeCellsMutationActions, canMergeCells, canUnmergeCells, } from './common/merge';
|
|
39
|
+
export { buildSortTableActions, DocsTableSortDirection, } from './common/sort';
|
|
40
|
+
export { getTableRangeById } from './common/table-range';
|
|
41
|
+
export type { IDocsTableCellOffsetRange, IDocsTableOffsetRange, } from './common/table-range';
|
|
42
|
+
export { DocsTableColumnType, DocsTableSelectionKind, DocsTableSelectionSource, } from './common/type';
|
|
43
|
+
export type { IDocsTableCellRange, IDocsTableColumnTypeConfig, IDocsTableMetadata, IDocsTableMetadataResource, IDocsTableSelection, } from './common/type';
|
|
84
44
|
export { DocsTableModel } from './models/docs-table-model';
|
|
85
45
|
export { UniverDocsTablePlugin } from './plugin';
|
|
86
46
|
export { DocsTableSelectionService } from './services/docs-table-selection.service';
|
|
@@ -6,6 +6,7 @@ export type IDocsTableStructuralSelectionInput = Pick<IDocsTableSelection, 'kind
|
|
|
6
6
|
export interface IDocsTableStructuralSelectionOptions {
|
|
7
7
|
clearNativeSelection?: boolean;
|
|
8
8
|
preserveOnTextSelection?: boolean;
|
|
9
|
+
segmentId?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface IDocsTableClearSelectionOptions {
|
|
11
12
|
clearNativeSelection?: boolean;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x34ca(_0x5c74fc,_0x22f492){_0x5c74fc=_0x5c74fc-0x1e3;var _0x1a7aff=_0x1a7a();var _0x34ca9e=_0x1a7aff[_0x5c74fc];return _0x34ca9e;}function _0x1a7a(){var _0x5ac4c7=['Range','replace','from','_serializeModel','serialize','DocsTableSortDirection','203828otACVv','dataStream','buildInsertColumnsActions','DocsTableSelectionService','syncExecuteCommand','insertColumnsBefore','buildInsertRowsActions','buildSetTableCellTextActions','appendRow','amd','titleRow','selectColumns','DocsTableColumnType','deleteRows','All','includes','headerText','getTableRangeById','selectRow','cells','size','setTitleRow','UniverCoreFacade','Inject','buildDistributeColumnsActions','13306QCOJHv','@univerjs/docs/facade','@univerjs-pro/docs-table','preset','setBorder','insertTitleRow','2248264lyBiLh','filter','getId','_getDocumentData','body','constructor','appendColumn','width','createInstance','_createFDocumentTable','startOffset','Left','Below','getTableAtSelection','length','FDocument','setTableBorder','Column','_table','getCellContentRange','Table','getColumnCount','3145962AjJYnk','border','_getTables','FDocumentTable','symbol','getTableMetadata','UniverCore','titleText','tableCells','FEnum','DocsTableInsertTablePosition','@univerjs/core/facade','buildMoveColumnsActions','selectRange','DocsTableSelectionKind','getTableRange','tableId','_tableContainsText','pinHeaderRows','1166030WTjIlP','insertColumnBefore','extend','columnTypes','@univerjs/core','154DmObId','getTables','hasTitleRow','UniverDocsFacade','DashStyleType','98rHMEFs','getInfo','DocsTableInsertPosition','buildResizeRowActions','getMetadata','getRowIndex','selectColumn','iterator','insertTableFromData','_document','map','DocsTableModel','tableColumns','18tDMaHv','90NcNRCR','moveTableToOffset','sortByColumn','getCellRange','moveRow','exports','function','prototype','DocsTableColumnInsertPosition','FDocumentTableCell','getRowRange','getRowCount','_rowContainsText','_column','getCellInsertOffset','moveRows','max','Row','DocsTableRowInsertPosition','deleteTable','selectCell','moveTableBy','nextDocumentData','string','getTable','object','text','insertTable','decorate','insertRowsAfter','getHeaderRowCount','buildMoveTableActions','get','setTableStyle','moveColumns','getColumnsRange','getCell','setCellBackground','moveColumn','insertColumnsAfter','mergeCells','backgroundColor','Cell','_unitId','ICommandService','650652NYjVQA','getCellText','UniverProDocsTable','getContentRange','setText','14kLXMKe','unmergeCells','setCellText','tableRows','slice','endOffset','unmerge','getSource','setTableBackground','SOLID','insertRowsBefore','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','selectTable','save','_row','executeRichTextTableMutation','_injector','setColumnType','getStableTableSelection','deleteColumns','buildUnmergeCellsActions','getColumnIndex','buildResizeColumnActions','buildDeleteRowsActions','call','Right','644562vZjklk','_tableId','Above','#1f1f1f','findTables','DocsTableBorderPreset','setStructuralSelection','rows','buildDeleteTableActions','_mutate','getRowsRange','Injector','defineProperty','buildDistributeRowsActions','findTableByText','setHeaderRowCount','deleteColumn','Module','DocsTableInsertTableCommand','buildDeleteColumnsActions','buildMergeCellsActions','some','setColumnWidth','getInsertOffset','buildSortTableActions'];_0x1a7a=function(){return _0x5ac4c7;};return _0x1a7a();}(function(_0x18840c,_0x1f67c4){var _0x3b8d6a=_0x34ca,_0x51774a=_0x18840c();while(!![]){try{var _0x175789=-parseInt(_0x3b8d6a(0x21f))/0x1*(-parseInt(_0x3b8d6a(0x258))/0x2)+parseInt(_0x3b8d6a(0x265))/0x3*(-parseInt(_0x3b8d6a(0x206))/0x4)+-parseInt(_0x3b8d6a(0x24e))/0x5+-parseInt(_0x3b8d6a(0x23b))/0x6+parseInt(_0x3b8d6a(0x298))/0x7*(-parseInt(_0x3b8d6a(0x225))/0x8)+-parseInt(_0x3b8d6a(0x1e7))/0x9*(-parseInt(_0x3b8d6a(0x266))/0xa)+-parseInt(_0x3b8d6a(0x253))/0xb*(-parseInt(_0x3b8d6a(0x293))/0xc);if(_0x175789===_0x1f67c4)break;else _0x51774a['push'](_0x51774a['shift']());}catch(_0x2939c5){_0x51774a['push'](_0x51774a['shift']());}}}(_0x1a7a,0x690e5),function(_0x12c5ee,_0x530702){var _0x13a3f7=_0x34ca;typeof exports==_0x13a3f7(0x27f)&&typeof module<'u'?_0x530702(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x13a3f7(0x26c)&&define[_0x13a3f7(0x20f)]?define([_0x13a3f7(0x26b),_0x13a3f7(0x221),_0x13a3f7(0x252),_0x13a3f7(0x246),_0x13a3f7(0x220)],_0x530702):(_0x12c5ee=typeof globalThis<'u'?globalThis:_0x12c5ee||self,_0x530702(_0x12c5ee['UniverProDocsTableFacade']={},_0x12c5ee[_0x13a3f7(0x295)],_0x12c5ee[_0x13a3f7(0x241)],_0x12c5ee[_0x13a3f7(0x21c)],_0x12c5ee[_0x13a3f7(0x256)]));}(this,function(_0x4891cd,_0x587a78,_0x148fa0,_0x1b0540,_0x3ba997){var _0x417f89=_0x34ca;Object[_0x417f89(0x1f3)](_0x4891cd,Symbol['toStringTag'],{'value':_0x417f89(0x1f8)});var _0xf2b04d=class extends _0x1b0540[_0x417f89(0x244)]{get[_0x417f89(0x245)](){var _0x3efb99=_0x417f89;return _0x587a78[_0x3efb99(0x245)];}get[_0x417f89(0x212)](){var _0x3b4f2d=_0x417f89;return _0x587a78[_0x3b4f2d(0x212)];}get[_0x417f89(0x249)](){var _0x627668=_0x417f89;return _0x587a78[_0x627668(0x249)];}get[_0x417f89(0x278)](){var _0x3c631e=_0x417f89;return _0x587a78[_0x3c631e(0x278)];}get[_0x417f89(0x26e)](){var _0x35fd1c=_0x417f89;return _0x587a78[_0x35fd1c(0x26e)];}get[_0x417f89(0x1ec)](){var _0x255a03=_0x417f89;return _0x587a78[_0x255a03(0x1ec)];}get[_0x417f89(0x205)](){var _0x43fadb=_0x417f89;return _0x587a78[_0x43fadb(0x205)];}get[_0x417f89(0x257)](){var _0x17e4e0=_0x417f89;return _0x148fa0[_0x17e4e0(0x257)];}};_0x1b0540['FEnum'][_0x417f89(0x250)](_0xf2b04d);var _0x543717=class{constructor(_0xe58de3,_0x493901,_0x52b73e){var _0x51721b=_0x417f89;this[_0x51721b(0x237)]=_0xe58de3,this[_0x51721b(0x2a6)]=_0x493901,this[_0x51721b(0x273)]=_0x52b73e;}[_0x417f89(0x27e)](){var _0x4341f0=_0x417f89;return this[_0x4341f0(0x237)];}[_0x417f89(0x25d)](){return this['_row'];}[_0x417f89(0x2ad)](){return this['_column'];}['getText'](){var _0x4eec60=_0x417f89;return this[_0x4eec60(0x237)][_0x4eec60(0x294)](this['_row'],this[_0x4eec60(0x273)]);}[_0x417f89(0x296)](){var _0x20de2c=_0x417f89;return this[_0x20de2c(0x237)][_0x20de2c(0x238)](this[_0x20de2c(0x2a6)],this[_0x20de2c(0x273)]);}[_0x417f89(0x1fe)](){var _0x2f9ebb=_0x417f89;return this[_0x2f9ebb(0x237)]['getCellInsertOffset'](this[_0x2f9ebb(0x2a6)],this[_0x2f9ebb(0x273)]);}[_0x417f89(0x297)](_0x341034){var _0x45f6ee=_0x417f89;return this[_0x45f6ee(0x237)][_0x45f6ee(0x29a)](this[_0x45f6ee(0x2a6)],this[_0x45f6ee(0x273)],_0x341034);}['setBackgroundColor'](_0x54b227){var _0x45a5ef=_0x417f89;return this[_0x45a5ef(0x237)][_0x45a5ef(0x28b)](this['_table'][_0x45a5ef(0x269)](this['_row'],this[_0x45a5ef(0x273)]),_0x54b227);}[_0x417f89(0x223)](_0x774576){var _0x534b5c=_0x417f89;return this[_0x534b5c(0x237)][_0x534b5c(0x223)](this[_0x534b5c(0x237)]['getCellRange'](this['_row'],this[_0x534b5c(0x273)]),_0x774576);}['mergeTo'](_0x30aafc,_0x286b20){var _0x43f5b1=_0x417f89;return this[_0x43f5b1(0x237)][_0x43f5b1(0x28e)]({'startRow':this['_row'],'startColumn':this[_0x43f5b1(0x273)],'endRow':this[_0x43f5b1(0x2a6)]+_0x30aafc-0x1,'endColumn':this[_0x43f5b1(0x273)]+_0x286b20-0x1});}[_0x417f89(0x29e)](){var _0xfde621=_0x417f89;return this[_0xfde621(0x237)][_0xfde621(0x299)](this['_table'][_0xfde621(0x269)](this[_0xfde621(0x2a6)],this[_0xfde621(0x273)]));}};function _0x366feb(_0xbeee9e){'@babel/helpers - typeof';var _0x4ccf1d=_0x417f89;return _0x366feb=typeof Symbol==_0x4ccf1d(0x26c)&&typeof Symbol[_0x4ccf1d(0x25f)]==_0x4ccf1d(0x23f)?function(_0x49a287){return typeof _0x49a287;}:function(_0x1ce1b3){var _0x34909e=_0x4ccf1d;return _0x1ce1b3&&typeof Symbol==_0x34909e(0x26c)&&_0x1ce1b3[_0x34909e(0x22a)]===Symbol&&_0x1ce1b3!==Symbol[_0x34909e(0x26d)]?_0x34909e(0x23f):typeof _0x1ce1b3;},_0x366feb(_0xbeee9e);}function _0x1a50c8(_0x25e0d1,_0x24c962){var _0x184fe1=_0x417f89;if(_0x366feb(_0x25e0d1)!=_0x184fe1(0x27f)||!_0x25e0d1)return _0x25e0d1;var _0x3d4b8d=_0x25e0d1[Symbol['toPrimitive']];if(_0x3d4b8d!==void 0x0){var _0x405bbf=_0x3d4b8d[_0x184fe1(0x1e5)](_0x25e0d1,_0x24c962||'default');if(_0x366feb(_0x405bbf)!=_0x184fe1(0x27f))return _0x405bbf;throw TypeError(_0x184fe1(0x2a3));}return(_0x24c962===_0x184fe1(0x27d)?String:Number)(_0x25e0d1);}function _0x133b45(_0x6993fd){var _0x3c9df4=_0x417f89,_0x4a0cc7=_0x1a50c8(_0x6993fd,_0x3c9df4(0x27d));return _0x366feb(_0x4a0cc7)==_0x3c9df4(0x23f)?_0x4a0cc7:_0x4a0cc7+'';}function _0x42d8a6(_0xff47f0,_0x9ca868,_0x1ab576){var _0x34b4d0=_0x417f89;return(_0x9ca868=_0x133b45(_0x9ca868))in _0xff47f0?Object[_0x34b4d0(0x1f3)](_0xff47f0,_0x9ca868,{'value':_0x1ab576,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xff47f0[_0x9ca868]=_0x1ab576,_0xff47f0;}function _0x8801f(_0x21dc6f,_0x7b1826){return function(_0x25549e,_0x4eb1c0){_0x7b1826(_0x25549e,_0x4eb1c0,_0x21dc6f);};}function _0x23a1d2(_0x51b6b2,_0xd94c46,_0x579500,_0x1430c8){var _0x4d5da4=_0x417f89,_0x434121=arguments[_0x4d5da4(0x233)],_0x5728d8=_0x434121<0x3?_0xd94c46:_0x1430c8===null?_0x1430c8=Object['getOwnPropertyDescriptor'](_0xd94c46,_0x579500):_0x1430c8,_0x30326d;if(typeof Reflect=='object'&&typeof Reflect[_0x4d5da4(0x282)]=='function')_0x5728d8=Reflect[_0x4d5da4(0x282)](_0x51b6b2,_0xd94c46,_0x579500,_0x1430c8);else{for(var _0x302191=_0x51b6b2[_0x4d5da4(0x233)]-0x1;_0x302191>=0x0;_0x302191--)(_0x30326d=_0x51b6b2[_0x302191])&&(_0x5728d8=(_0x434121<0x3?_0x30326d(_0x5728d8):_0x434121>0x3?_0x30326d(_0xd94c46,_0x579500,_0x5728d8):_0x30326d(_0xd94c46,_0x579500))||_0x5728d8);}return _0x434121>0x3&&_0x5728d8&&Object[_0x4d5da4(0x1f3)](_0xd94c46,_0x579500,_0x5728d8),_0x5728d8;}let _0x3733ea=class{constructor(_0x456165,_0x20c73d,_0x21bf6a){var _0x15f09d=_0x417f89;this[_0x15f09d(0x261)]=_0x456165,this['_tableId']=_0x20c73d,this[_0x15f09d(0x2a8)]=_0x21bf6a,_0x42d8a6(this,'_unitId',void 0x0),this[_0x15f09d(0x291)]=this['_document'][_0x15f09d(0x227)]();}[_0x417f89(0x227)](){return this['_tableId'];}[_0x417f89(0x259)](){var _0x3502af=_0x417f89;return{'id':this[_0x3502af(0x1e8)],'rowCount':this[_0x3502af(0x271)](),'columnCount':this[_0x3502af(0x23a)](),'metadata':this[_0x3502af(0x25c)](),'source':this[_0x3502af(0x29f)]()};}['describe'](){var _0x31d57d=_0x417f89,_0x5e0e7f,_0x2a713d;let _0x25294c=this[_0x31d57d(0x25c)](),_0x2179c5=this[_0x31d57d(0x29f)](),_0x1c1632=this[_0x31d57d(0x23a)]();return{'id':this[_0x31d57d(0x1e8)],'rowCount':this[_0x31d57d(0x271)](),'columnCount':_0x1c1632,'headerRowCount':(_0x5e0e7f=_0x25294c==null?void 0x0:_0x25294c['headerRowCount'])==null?0x0:_0x5e0e7f,'titleRow':(_0x2a713d=_0x25294c==null?void 0x0:_0x25294c['titleRow'])==null?!0x1:_0x2a713d,'columns':Array[_0x31d57d(0x202)]({'length':_0x1c1632},(_0x2d481a,_0x259753)=>{var _0x181217=_0x31d57d,_0x4ce539,_0x55ba03;return{'index':_0x259753,'type':_0x25294c==null||(_0x4ce539=_0x25294c[_0x181217(0x251)])==null||(_0x4ce539=_0x4ce539[_0x259753])==null?void 0x0:_0x4ce539['type'],'width':_0x2179c5==null||(_0x55ba03=_0x2179c5[_0x181217(0x264)][_0x259753])==null?void 0x0:_0x55ba03[_0x181217(0x21a)]['width']['v']};}),'sampleRows':Array[_0x31d57d(0x202)]({'length':this[_0x31d57d(0x271)]()},(_0xfbe72e,_0x43c082)=>Array['from']({'length':_0x1c1632},(_0x323a42,_0x5014b7)=>this[_0x31d57d(0x294)](_0x43c082,_0x5014b7)))['filter'](_0x46c00f=>_0x46c00f[_0x31d57d(0x1fc)](_0x4f75d3=>_0x4f75d3['length']>0x0))[_0x31d57d(0x29c)](0x0,0x5)};}[_0x417f89(0x271)](){var _0x501b00=_0x417f89,_0x3848b1,_0x2bce07;return(_0x3848b1=(_0x2bce07=this['getSource']())==null?void 0x0:_0x2bce07['tableRows'][_0x501b00(0x233)])==null?0x0:_0x3848b1;}['getColumnCount'](){var _0x4e54bb=_0x417f89,_0x5016b1,_0x2fc1f1;return(_0x5016b1=(_0x2fc1f1=this[_0x4e54bb(0x29f)]())==null?void 0x0:_0x2fc1f1[_0x4e54bb(0x264)]['length'])==null?0x0:_0x5016b1;}[_0x417f89(0x28a)](_0x256044,_0x5030dc){var _0x2a5326=_0x417f89,_0x426eb8;return!((_0x426eb8=this[_0x2a5326(0x29f)]())==null||(_0x426eb8=_0x426eb8[_0x2a5326(0x29b)][_0x256044])==null)&&_0x426eb8[_0x2a5326(0x243)][_0x5030dc]?this[_0x2a5326(0x2a8)][_0x2a5326(0x22d)](_0x543717,this,_0x256044,_0x5030dc):null;}[_0x417f89(0x294)](_0x16be95,_0x446183){var _0x3d11be=_0x417f89,_0x2300b6,_0x3c258a,_0x399ee9;let _0x10a138=(_0x2300b6=(0x0,_0x587a78[_0x3d11be(0x217)])(this[_0x3d11be(0x228)](),this['_tableId']))==null||(_0x2300b6=_0x2300b6[_0x3d11be(0x1ee)][_0x16be95])==null?void 0x0:_0x2300b6[_0x3d11be(0x219)][_0x446183];return _0x10a138?(_0x3c258a=(_0x399ee9=this[_0x3d11be(0x228)]()[_0x3d11be(0x229)])==null?void 0x0:_0x399ee9[_0x3d11be(0x207)][_0x3d11be(0x29c)](_0x10a138[_0x3d11be(0x22f)]+0x1,_0x10a138[_0x3d11be(0x29d)])[_0x3d11be(0x201)](/\r\n$/,''))==null?'':_0x3c258a:'';}[_0x417f89(0x25c)](){var _0x4639f3=_0x417f89;return this['_injector'][_0x4639f3(0x286)](_0x587a78[_0x4639f3(0x263)])[_0x4639f3(0x240)](this[_0x4639f3(0x291)],this[_0x4639f3(0x1e8)]);}[_0x417f89(0x29f)](){var _0xc5cb3=_0x417f89,_0x48e022;return(_0x48e022=this[_0xc5cb3(0x228)]()['tableSource'])==null?void 0x0:_0x48e022[this['_tableId']];}['getRange'](){var _0xd0b24=_0x417f89;return(0x0,_0x587a78[_0xd0b24(0x217)])(this[_0xd0b24(0x228)](),this[_0xd0b24(0x1e8)]);}['getTableRange'](){var _0x2248c3=_0x417f89;return{'startRow':0x0,'endRow':Math['max'](0x0,this[_0x2248c3(0x271)]()-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,this['getColumnCount']()-0x1)};}[_0x417f89(0x269)](_0xe3d998,_0x487d99){return{'startRow':_0xe3d998,'endRow':_0xe3d998,'startColumn':_0x487d99,'endColumn':_0x487d99};}[_0x417f89(0x238)](_0x35f0db,_0x24df22){var _0x1bd372=_0x417f89,_0x41ca66;let _0x48a809=(_0x41ca66=(0x0,_0x587a78[_0x1bd372(0x217)])(this[_0x1bd372(0x228)](),this[_0x1bd372(0x1e8)]))==null||(_0x41ca66=_0x41ca66[_0x1bd372(0x1ee)][_0x35f0db])==null?void 0x0:_0x41ca66['cells'][_0x24df22];if(!_0x48a809)return null;let _0x42c720=_0x48a809[_0x1bd372(0x22f)]+0x1;return{'startOffset':_0x42c720,'endOffset':Math[_0x1bd372(0x276)](_0x42c720,_0x48a809[_0x1bd372(0x29d)]-0x1),'segmentId':''};}[_0x417f89(0x274)](_0x275b71,_0x24dff7){var _0x439604=_0x417f89,_0x6c19c0,_0x44a016;return(_0x6c19c0=(_0x44a016=this[_0x439604(0x238)](_0x275b71,_0x24dff7))==null?void 0x0:_0x44a016[_0x439604(0x29d)])==null?null:_0x6c19c0;}[_0x417f89(0x270)](_0x34ef33){return this['getRowsRange'](_0x34ef33,0x1);}[_0x417f89(0x1f1)](_0x1729b0,_0x23262c=0x1){var _0x2adddd=_0x417f89;return{'startRow':_0x1729b0,'endRow':_0x1729b0+_0x23262c-0x1,'startColumn':0x0,'endColumn':Math['max'](0x0,this[_0x2adddd(0x23a)]()-0x1)};}['getColumnRange'](_0x1d699d){var _0x30e5a9=_0x417f89;return this[_0x30e5a9(0x289)](_0x1d699d,0x1);}[_0x417f89(0x289)](_0x42c535,_0x3af223=0x1){var _0x3d667c=_0x417f89;return{'startRow':0x0,'endRow':Math[_0x3d667c(0x276)](0x0,this['getRowCount']()-0x1),'startColumn':_0x42c535,'endColumn':_0x42c535+_0x3af223-0x1};}[_0x417f89(0x2a4)](){var _0x49de1c=_0x417f89;return this[_0x49de1c(0x248)](this[_0x49de1c(0x24a)](),_0x587a78['DocsTableSelectionKind'][_0x49de1c(0x239)]);}[_0x417f89(0x218)](_0x5c1094){return this['selectRows'](_0x5c1094,0x1);}['selectRows'](_0xf14376,_0x198a6d=0x1){var _0x140a4f=_0x417f89;return this[_0x140a4f(0x248)](this[_0x140a4f(0x1f1)](_0xf14376,_0x198a6d),_0x587a78[_0x140a4f(0x249)][_0x140a4f(0x277)]);}[_0x417f89(0x25e)](_0x324e19){var _0x3f3384=_0x417f89;return this[_0x3f3384(0x211)](_0x324e19,0x1);}['selectColumns'](_0x71e727,_0x27c001=0x1){var _0x49fcc8=_0x417f89;return this[_0x49fcc8(0x248)](this[_0x49fcc8(0x289)](_0x71e727,_0x27c001),_0x587a78[_0x49fcc8(0x249)][_0x49fcc8(0x236)]);}[_0x417f89(0x27a)](_0x1e3776,_0x266924){var _0x1fd30d=_0x417f89;return this[_0x1fd30d(0x248)](this['getCellRange'](_0x1e3776,_0x266924),_0x587a78['DocsTableSelectionKind'][_0x1fd30d(0x290)]);}['selectRange'](_0x115275,_0x3c666f=_0x587a78['DocsTableSelectionKind'][_0x417f89(0x200)]){var _0x50aeaa=_0x417f89;return this[_0x50aeaa(0x2a8)][_0x50aeaa(0x286)](_0x587a78['DocsTableSelectionService'])[_0x50aeaa(0x1ed)]({..._0x115275,'kind':_0x3c666f,'tableId':this[_0x50aeaa(0x1e8)]}),!0x0;}['insertRowBefore'](_0x326fe9){var _0x8f5c1c=_0x417f89;return this[_0x8f5c1c(0x2a2)](_0x326fe9,0x1);}['insertRowAfter'](_0x181304){var _0x306ce6=_0x417f89;return this[_0x306ce6(0x283)](_0x181304,0x1);}['insertRowsBefore'](_0x3788b5,_0x212167){var _0x327055=_0x417f89;return this[_0x327055(0x1f0)]((0x0,_0x587a78[_0x327055(0x20c)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x327055(0x1e8)],'row':_0x3788b5,'count':_0x212167,'position':_0x587a78['DocsTableInsertPosition'][_0x327055(0x1e9)]}));}['insertRowsAfter'](_0x548c96,_0x31c91b){var _0x539fd8=_0x417f89;return this[_0x539fd8(0x1f0)]((0x0,_0x587a78['buildInsertRowsActions'])({'documentData':this['_getDocumentData'](),'tableId':this['_tableId'],'row':_0x548c96,'count':_0x31c91b,'position':_0x587a78[_0x539fd8(0x25a)][_0x539fd8(0x231)]}));}[_0x417f89(0x20e)](){var _0x585d7e=_0x417f89;return this['insertRowsAfter'](Math[_0x585d7e(0x276)](0x0,this['getRowCount']()-0x1),0x1);}[_0x417f89(0x24f)](_0x2357fc){var _0x2bca70=_0x417f89;return this[_0x2bca70(0x20b)](_0x2357fc,0x1);}['insertColumnAfter'](_0x509d67){var _0x563f01=_0x417f89;return this[_0x563f01(0x28d)](_0x509d67,0x1);}[_0x417f89(0x20b)](_0x183df6,_0x5e5072){var _0x238cb4=_0x417f89;return this[_0x238cb4(0x1f0)]((0x0,_0x587a78[_0x238cb4(0x208)])({'documentData':this[_0x238cb4(0x228)](),'tableId':this[_0x238cb4(0x1e8)],'column':_0x183df6,'count':_0x5e5072,'position':_0x587a78[_0x238cb4(0x25a)][_0x238cb4(0x230)]}));}[_0x417f89(0x28d)](_0x2b783d,_0x3d2afa){var _0x4d94ec=_0x417f89;return this[_0x4d94ec(0x1f0)]((0x0,_0x587a78[_0x4d94ec(0x208)])({'documentData':this[_0x4d94ec(0x228)](),'tableId':this['_tableId'],'column':_0x2b783d,'count':_0x3d2afa,'position':_0x587a78['DocsTableInsertPosition'][_0x4d94ec(0x1e6)]}));}[_0x417f89(0x22b)](){var _0x5cc313=_0x417f89;return this[_0x5cc313(0x28d)](Math[_0x5cc313(0x276)](0x0,this[_0x5cc313(0x23a)]()-0x1),0x1);}['deleteRow'](_0x268df1){var _0x20a5e8=_0x417f89;return this[_0x20a5e8(0x213)](_0x268df1,0x1);}[_0x417f89(0x213)](_0x26c32a,_0x467859=0x1){var _0x516871=_0x417f89;return this[_0x516871(0x1f0)]((0x0,_0x587a78[_0x516871(0x1e4)])({'documentData':this[_0x516871(0x228)](),'tableId':this[_0x516871(0x1e8)],'startRow':_0x26c32a,'endRow':_0x26c32a+_0x467859-0x1}));}[_0x417f89(0x1f7)](_0x817f36){return this['deleteColumns'](_0x817f36,0x1);}[_0x417f89(0x2ab)](_0x53802c,_0x465b51=0x1){var _0x43d7b3=_0x417f89;return this[_0x43d7b3(0x1f0)]((0x0,_0x587a78[_0x43d7b3(0x1fa)])({'documentData':this[_0x43d7b3(0x228)](),'tableId':this[_0x43d7b3(0x1e8)],'startColumn':_0x53802c,'endColumn':_0x53802c+_0x465b51-0x1}));}[_0x417f89(0x279)](){var _0x2e1b9b=_0x417f89;return this['_mutate']((0x0,_0x587a78[_0x2e1b9b(0x1ef)])({'documentData':this[_0x2e1b9b(0x228)](),'tableId':this[_0x2e1b9b(0x1e8)]}));}[_0x417f89(0x27b)](_0x12c38c,_0x5951b2){var _0x552548=_0x417f89;return this[_0x552548(0x1f0)]((0x0,_0x587a78[_0x552548(0x285)])({'documentData':this[_0x552548(0x228)](),'tableId':this[_0x552548(0x1e8)],'deltaX':_0x12c38c,'deltaY':_0x5951b2}));}[_0x417f89(0x267)](_0xb6a0f8){var _0x44e270=_0x417f89;return this[_0x44e270(0x1f0)]((0x0,_0x587a78['buildMoveTableActions'])({'documentData':this['_getDocumentData'](),'tableId':this[_0x44e270(0x1e8)],'targetOffset':_0xb6a0f8}));}[_0x417f89(0x26a)](_0x446142,_0x18dcc4,_0x1f522e=_0x587a78['DocsTableInsertPosition']['Above']){var _0x45b9d7=_0x417f89;return this[_0x45b9d7(0x275)](_0x446142,0x1,_0x18dcc4,_0x1f522e);}[_0x417f89(0x275)](_0x18ce0e,_0x3aebce,_0x32b49d,_0x4f1773=_0x587a78['DocsTableInsertPosition'][_0x417f89(0x1e9)]){var _0x19e96b=_0x417f89;return this['_mutate']((0x0,_0x587a78['buildMoveRowsActions'])({'documentData':this[_0x19e96b(0x228)](),'tableId':this[_0x19e96b(0x1e8)],'fromRow':_0x18ce0e,'count':_0x3aebce,'toRow':_0x32b49d,'position':_0x4f1773}));}[_0x417f89(0x28c)](_0x46ffb4,_0x920266,_0x5bf31e=_0x587a78[_0x417f89(0x25a)][_0x417f89(0x230)]){return this['moveColumns'](_0x46ffb4,0x1,_0x920266,_0x5bf31e);}[_0x417f89(0x288)](_0x1aceb4,_0x50a396,_0x4a6385,_0x3704f2=_0x587a78[_0x417f89(0x25a)]['Left']){var _0x65199c=_0x417f89;return this[_0x65199c(0x1f0)]((0x0,_0x587a78[_0x65199c(0x247)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x65199c(0x1e8)],'fromColumn':_0x1aceb4,'count':_0x50a396,'toColumn':_0x4a6385,'position':_0x3704f2}));}[_0x417f89(0x28e)](_0xaf3b7b){var _0x34ef72=_0x417f89;try{return this[_0x34ef72(0x1f0)]((0x0,_0x587a78[_0x34ef72(0x1fb)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x34ef72(0x1e8)],..._0xaf3b7b}),_0xaf3b7b);}catch{return!0x1;}}[_0x417f89(0x299)](_0x67fb9f){var _0x11a6b4=_0x417f89;try{return this['_mutate']((0x0,_0x587a78[_0x11a6b4(0x2ac)])({'documentData':this[_0x11a6b4(0x228)](),'tableId':this['_tableId'],..._0x67fb9f}),_0x67fb9f);}catch{return!0x1;}}[_0x417f89(0x29a)](_0x354fff,_0x5f253e,_0x5084d5){var _0x2562ff=_0x417f89;return this[_0x2562ff(0x1f0)]((0x0,_0x587a78[_0x2562ff(0x20d)])({'documentData':this[_0x2562ff(0x228)](),'tableId':this[_0x2562ff(0x1e8)],'row':_0x354fff,'column':_0x5f253e,'text':_0x5084d5}),this['getCellRange'](_0x354fff,_0x5f253e));}['setCellBackground'](_0x57181f,_0x5c6079){var _0x165d9c=_0x417f89;return this[_0x165d9c(0x1f0)]((0x0,_0x587a78['buildSetTableCellBackgroundActions'])({'documentData':this[_0x165d9c(0x228)](),'tableId':this[_0x165d9c(0x1e8)],..._0x57181f,'color':_0x5c6079}),_0x57181f);}[_0x417f89(0x223)](_0x1b7c3a,_0x49f1fd){var _0x550958=_0x417f89,_0x4f71ce,_0x2ab25f,_0x5903ba,_0x28aeb9;return this['_mutate']((0x0,_0x587a78['buildSetTableBorderActions'])({'documentData':this[_0x550958(0x228)](),'tableId':this[_0x550958(0x1e8)],..._0x1b7c3a,'preset':(_0x4f71ce=_0x49f1fd[_0x550958(0x222)])==null?_0x587a78[_0x550958(0x1ec)][_0x550958(0x214)]:_0x4f71ce,'border':(_0x2ab25f=_0x49f1fd[_0x550958(0x23c)])==null?{'color':{'rgb':(_0x5903ba=_0x49f1fd['color'])==null?_0x550958(0x1ea):_0x5903ba},'width':{'v':(_0x28aeb9=_0x49f1fd[_0x550958(0x22c)])==null?0x1:_0x28aeb9},'dashStyle':_0x148fa0['DashStyleType'][_0x550958(0x2a1)]}:_0x2ab25f}),_0x1b7c3a);}[_0x417f89(0x2a0)](_0x2f2044){var _0x408938=_0x417f89;return this[_0x408938(0x28b)](this['getTableRange'](),_0x2f2044);}[_0x417f89(0x235)](_0x1482ab){var _0x4d337f=_0x417f89;return this[_0x4d337f(0x223)](this[_0x4d337f(0x24a)](),_0x1482ab);}[_0x417f89(0x287)](_0x543ba2){var _0x5897e4=_0x417f89;let _0x569fe1=_0x543ba2[_0x5897e4(0x28f)]?this[_0x5897e4(0x2a0)](_0x543ba2[_0x5897e4(0x28f)]):!0x0,_0x50fff3=_0x543ba2[_0x5897e4(0x23c)]?this[_0x5897e4(0x235)](_0x543ba2['border']):!0x0;return _0x569fe1&&_0x50fff3;}['setRowHeight'](_0x1f45bc,_0x20507b){var _0x5f4d45=_0x417f89;return this[_0x5f4d45(0x1f0)]((0x0,_0x587a78[_0x5f4d45(0x25b)])({'documentData':this['_getDocumentData'](),'tableId':this[_0x5f4d45(0x1e8)],'row':_0x1f45bc,'height':_0x20507b}));}[_0x417f89(0x1fd)](_0x23ebed,_0x20d953){var _0x473104=_0x417f89;return this[_0x473104(0x1f0)]((0x0,_0x587a78[_0x473104(0x1e3)])({'documentData':this[_0x473104(0x228)](),'tableId':this[_0x473104(0x1e8)],'column':_0x23ebed,'width':_0x20d953}));}['distributeRows'](_0x2a3cab=0x0,_0x40520d=this[_0x417f89(0x271)]()){var _0x52bc57=_0x417f89;return this[_0x52bc57(0x1f0)]((0x0,_0x587a78[_0x52bc57(0x1f4)])({'documentData':this[_0x52bc57(0x228)](),'tableId':this[_0x52bc57(0x1e8)],'startRow':_0x2a3cab,'endRow':_0x2a3cab+_0x40520d-0x1}));}['distributeColumns'](_0x5aae37=0x0,_0x4c3ef6=this[_0x417f89(0x23a)]()){var _0x4a3a4e=_0x417f89;return this[_0x4a3a4e(0x1f0)]((0x0,_0x587a78[_0x4a3a4e(0x21e)])({'documentData':this[_0x4a3a4e(0x228)](),'tableId':this['_tableId'],'startColumn':_0x5aae37,'endColumn':_0x5aae37+_0x4c3ef6-0x1}));}[_0x417f89(0x284)](){var _0x1909b3=_0x417f89,_0x3617fb,_0x425ca6;return(_0x3617fb=(_0x425ca6=this[_0x1909b3(0x25c)]())==null?void 0x0:_0x425ca6['headerRowCount'])==null?0x0:_0x3617fb;}[_0x417f89(0x1f6)](_0x449e2e){var _0x453d61=_0x417f89;let _0x5258d7=this[_0x453d61(0x2a8)]['get'](_0x587a78['DocsTableModel']),_0x134cb2=(0x0,_0x587a78['buildSetHeaderRowCountActions'])({'documentData':this['_getDocumentData'](),'metadata':this['_serializeModel'](),'tableId':this['_tableId'],'headerRowCount':_0x449e2e}),_0x39f7c9=this[_0x453d61(0x1f0)](_0x134cb2);return _0x39f7c9&&_0x5258d7[_0x453d61(0x1f6)](this['_unitId'],this[_0x453d61(0x1e8)],_0x449e2e),_0x39f7c9;}[_0x417f89(0x24d)](_0x48a4b3){var _0x1c2148=_0x417f89;return this[_0x1c2148(0x1f6)](_0x48a4b3);}[_0x417f89(0x255)](){var _0x34dd55=_0x417f89,_0x1132c4,_0x10e502;return(_0x1132c4=(_0x10e502=this['getMetadata']())==null?void 0x0:_0x10e502[_0x34dd55(0x210)])==null?!0x1:_0x1132c4;}[_0x417f89(0x224)](){var _0x4d53f8=_0x417f89;let _0x20d820=this[_0x4d53f8(0x2a8)]['get'](_0x587a78[_0x4d53f8(0x263)]),_0x3efb09=(0x0,_0x587a78['buildInsertTitleRowActions'])({'documentData':this[_0x4d53f8(0x228)](),'metadata':this[_0x4d53f8(0x203)](),'tableId':this[_0x4d53f8(0x1e8)]}),_0x774ec1=this[_0x4d53f8(0x1f0)](_0x3efb09);return _0x774ec1&&_0x20d820[_0x4d53f8(0x21b)](this[_0x4d53f8(0x291)],this[_0x4d53f8(0x1e8)],!0x0),_0x774ec1;}[_0x417f89(0x2a9)](_0x478933,_0x4317e7){var _0x56b556=_0x417f89;return this[_0x56b556(0x2a8)][_0x56b556(0x286)](_0x587a78['DocsTableModel'])[_0x56b556(0x2a9)](this['_unitId'],this[_0x56b556(0x1e8)],_0x478933,_0x4317e7),!0x0;}[_0x417f89(0x268)](_0x23bb11,_0xb21561){var _0x3dfa8c=_0x417f89;return this[_0x3dfa8c(0x1f0)]((0x0,_0x587a78[_0x3dfa8c(0x1ff)])({'documentData':this['_getDocumentData'](),'metadata':this[_0x3dfa8c(0x203)](),'tableId':this['_tableId'],'column':_0x23bb11,'direction':_0xb21561}));}[_0x417f89(0x228)](){var _0x14c600=_0x417f89;return this[_0x14c600(0x261)][_0x14c600(0x2a5)]();}[_0x417f89(0x203)](){var _0x79e577=_0x417f89;return this['_injector'][_0x79e577(0x286)](_0x587a78[_0x79e577(0x263)])[_0x79e577(0x204)](this[_0x79e577(0x291)]);}[_0x417f89(0x1f0)](_0x52dd56,_0x3360b3){var _0x47563b=_0x417f89;return(0x0,_0x587a78[_0x47563b(0x2a7)])(this[_0x47563b(0x2a8)][_0x47563b(0x286)](_0x148fa0[_0x47563b(0x292)]),this[_0x47563b(0x291)],this[_0x47563b(0x228)](),_0x52dd56[_0x47563b(0x27c)],_0x3360b3?{'tableId':this['_tableId'],..._0x3360b3}:void 0x0);}};_0x3733ea=_0x23a1d2([_0x8801f(0x2,(0x0,_0x148fa0[_0x417f89(0x21d)])(_0x148fa0[_0x417f89(0x1f2)]))],_0x3733ea);var _0x33e101=class extends _0x3ba997[_0x417f89(0x234)]{[_0x417f89(0x254)](){var _0x3742df=_0x417f89;return this[_0x3742df(0x23d)]()[_0x3742df(0x262)](_0x5c81ea=>this[_0x3742df(0x22e)](_0x5c81ea['tableId']));}[_0x417f89(0x27e)](_0x7086c0){var _0x3c1e6d=_0x417f89;return this['_getTables']()['some'](_0x196bf9=>_0x196bf9[_0x3c1e6d(0x24b)]===_0x7086c0)?this[_0x3c1e6d(0x22e)](_0x7086c0):null;}['getTableAt'](_0x22639e){var _0xe38838=_0x417f89,_0x1dc70c;let _0x17b5d0=(_0x1dc70c=this[_0xe38838(0x23d)]()[_0x22639e])==null?void 0x0:_0x1dc70c[_0xe38838(0x24b)];return _0x17b5d0?this[_0xe38838(0x22e)](_0x17b5d0):null;}[_0x417f89(0x232)](){var _0x472b7d=_0x417f89;let _0x29cb73=this[_0x472b7d(0x2a8)][_0x472b7d(0x286)](_0x587a78[_0x472b7d(0x209)])[_0x472b7d(0x2aa)]();return _0x29cb73!=null&&_0x29cb73[_0x472b7d(0x24b)]?this[_0x472b7d(0x22e)](_0x29cb73[_0x472b7d(0x24b)]):null;}[_0x417f89(0x1f5)](_0x4c1998){var _0x3613b5;return(_0x3613b5=this['findTables'](_0x4c1998)[0x0])==null?null:_0x3613b5;}[_0x417f89(0x1eb)](_0x1c5232){var _0x21054a=_0x417f89;let _0x137e50=this['save'](),_0x4ccb34=typeof _0x1c5232==_0x21054a(0x27d)?{'text':_0x1c5232}:_0x1c5232;return this[_0x21054a(0x254)]()[_0x21054a(0x226)](_0x1c2385=>{var _0x1da5c6=_0x21054a;let _0x573562=_0x1c2385[_0x1da5c6(0x227)]();return!(_0x4ccb34[_0x1da5c6(0x24b)]&&_0x573562!==_0x4ccb34[_0x1da5c6(0x24b)]||_0x4ccb34[_0x1da5c6(0x280)]&&!this[_0x1da5c6(0x24c)](_0x137e50,_0x573562,_0x4ccb34[_0x1da5c6(0x280)])||_0x4ccb34[_0x1da5c6(0x216)]&&!this[_0x1da5c6(0x272)](_0x1c2385,0x0,_0x4ccb34[_0x1da5c6(0x216)])||_0x4ccb34[_0x1da5c6(0x242)]&&!this[_0x1da5c6(0x272)](_0x1c2385,0x0,_0x4ccb34[_0x1da5c6(0x242)]));});}[_0x417f89(0x281)](_0x3992aa,_0x18b610,_0x438d51={}){var _0x3e5e58=_0x417f89,_0xe71621;let _0x59492e=this[_0x3e5e58(0x2a8)][_0x3e5e58(0x286)](_0x148fa0[_0x3e5e58(0x292)]),_0x22de2c=(_0xe71621=_0x438d51[_0x3e5e58(0x24b)])==null?(0x0,_0x148fa0['generateRandomId'])(0x6):_0xe71621;return _0x59492e[_0x3e5e58(0x20a)](_0x587a78[_0x3e5e58(0x1f9)]['id'],{..._0x438d51,'rows':_0x3992aa,'columns':_0x18b610,'tableId':_0x22de2c})?this['_createFDocumentTable'](_0x22de2c):null;}[_0x417f89(0x260)](_0x1ffb04,_0x59fd25={}){var _0x240552=_0x417f89,_0x38795f;let _0x48993f=this[_0x240552(0x2a8)][_0x240552(0x286)](_0x148fa0[_0x240552(0x292)]),_0x32efc0=(_0x38795f=_0x59fd25['tableId'])==null?(0x0,_0x148fa0['generateRandomId'])(0x6):_0x38795f;return _0x48993f[_0x240552(0x20a)](_0x587a78['DocsTableInsertTableCommand']['id'],{..._0x59fd25,'values':_0x1ffb04,'tableId':_0x32efc0})?this[_0x240552(0x22e)](_0x32efc0):null;}[_0x417f89(0x23d)](){var _0x4e474e=_0x417f89,_0x270ff1,_0x57ba5e;return(_0x270ff1=(_0x57ba5e=this['save']()[_0x4e474e(0x229)])==null?void 0x0:_0x57ba5e['tables'])==null?[]:_0x270ff1;}[_0x417f89(0x22e)](_0x3a6114){var _0x35f073=_0x417f89;return this[_0x35f073(0x2a8)][_0x35f073(0x22d)](_0x3733ea,this,_0x3a6114);}[_0x417f89(0x24c)](_0x6666d2,_0x12ecda,_0x5a1e1a){var _0x50e516=_0x417f89,_0x94dfec;let _0xd3ff52=(0x0,_0x587a78[_0x50e516(0x217)])(_0x6666d2,_0x12ecda);if(!_0xd3ff52)return!0x1;let _0x167192=(_0x94dfec=_0x6666d2[_0x50e516(0x229)])==null?void 0x0:_0x94dfec['dataStream'];return _0x167192?_0x167192['slice'](_0xd3ff52[_0x50e516(0x22f)],_0xd3ff52[_0x50e516(0x29d)])[_0x50e516(0x215)](_0x5a1e1a):!0x1;}['_rowContainsText'](_0x16c7db,_0x543e93,_0x191192){var _0x55d89a=_0x417f89;return Array[_0x55d89a(0x202)]({'length':_0x16c7db[_0x55d89a(0x23a)]()},(_0x1381ef,_0x30fcff)=>_0x16c7db[_0x55d89a(0x294)](_0x543e93,_0x30fcff))[_0x55d89a(0x1fc)](_0x3da96d=>_0x3da96d[_0x55d89a(0x215)](_0x191192));}};_0x3ba997[_0x417f89(0x234)][_0x417f89(0x250)](_0x33e101),Object[_0x417f89(0x1f3)](_0x4891cd,_0x417f89(0x23e),{'enumerable':!0x0,'get':function(){return _0x3733ea;}}),_0x4891cd[_0x417f89(0x26f)]=_0x543717;}));
|
|
1
|
+
function _0x3458(_0x274271,_0x3a89ef){_0x274271=_0x274271-0x199;const _0x5ae0e3=_0x5ae0();let _0x34587b=_0x5ae0e3[_0x274271];return _0x34587b;}(function(_0xc8db40,_0x7f888f){const _0x5c30a1=_0x3458,_0x20c429=_0xc8db40();while(!![]){try{const _0x5dc685=parseInt(_0x5c30a1(0x221))/0x1+parseInt(_0x5c30a1(0x223))/0x2+-parseInt(_0x5c30a1(0x24a))/0x3*(parseInt(_0x5c30a1(0x1f1))/0x4)+-parseInt(_0x5c30a1(0x233))/0x5+parseInt(_0x5c30a1(0x1b9))/0x6*(parseInt(_0x5c30a1(0x252))/0x7)+parseInt(_0x5c30a1(0x255))/0x8+parseInt(_0x5c30a1(0x1cb))/0x9*(-parseInt(_0x5c30a1(0x1e3))/0xa);if(_0x5dc685===_0x7f888f)break;else _0x20c429['push'](_0x20c429['shift']());}catch(_0x1ef061){_0x20c429['push'](_0x20c429['shift']());}}}(_0x5ae0,0x9a03c),function(_0x107e80,_0x1ba4a0){const _0x120a5f=_0x3458;typeof exports==_0x120a5f(0x267)&&typeof module<'u'?_0x1ba4a0(exports,require('@univerjs-pro/docs-table'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/docs/facade')):typeof define==_0x120a5f(0x22e)&&define[_0x120a5f(0x1df)]?define([_0x120a5f(0x216),_0x120a5f(0x1c0),_0x120a5f(0x22f),_0x120a5f(0x240),_0x120a5f(0x1b1)],_0x1ba4a0):(_0x107e80=typeof globalThis<'u'?globalThis:_0x107e80||self,_0x1ba4a0(_0x107e80[_0x120a5f(0x1ef)]={},_0x107e80[_0x120a5f(0x19b)],_0x107e80[_0x120a5f(0x1b4)],_0x107e80[_0x120a5f(0x238)],_0x107e80[_0x120a5f(0x1b2)]));}(this,function(_0x572d48,_0x523de9,_0x295219,_0x1f8d93,_0x2e9a78){const _0x4a68d1=_0x3458;Object[_0x4a68d1(0x1f3)](_0x572d48,Symbol[_0x4a68d1(0x1eb)],{'value':'Module'});var _0x33cf6b=class extends _0x1f8d93[_0x4a68d1(0x1e0)]{get['DocsTableInsertTablePosition'](){const _0x3248d1=_0x4a68d1;return _0x523de9[_0x3248d1(0x199)];}get[_0x4a68d1(0x213)](){const _0x2663b6=_0x4a68d1;return _0x523de9[_0x2663b6(0x213)];}get['DocsTableSelectionKind'](){return _0x523de9['DocsTableSelectionKind'];}get[_0x4a68d1(0x1c3)](){const _0x416aea=_0x4a68d1;return _0x523de9[_0x416aea(0x1c3)];}get['DocsTableColumnInsertPosition'](){return _0x523de9['DocsTableColumnInsertPosition'];}get[_0x4a68d1(0x19c)](){const _0x3f6cbe=_0x4a68d1;return _0x523de9[_0x3f6cbe(0x19c)];}get[_0x4a68d1(0x256)](){const _0xafcce8=_0x4a68d1;return _0x523de9[_0xafcce8(0x256)];}get[_0x4a68d1(0x21e)](){const _0x1b8c53=_0x4a68d1;return _0x295219[_0x1b8c53(0x21e)];}};_0x1f8d93['FEnum'][_0x4a68d1(0x205)](_0x33cf6b);var _0x39a5af=class{constructor(_0x120d2b,_0x1e29eb,_0x58f949){const _0x803973=_0x4a68d1;this[_0x803973(0x23d)]=_0x120d2b,this[_0x803973(0x24d)]=_0x1e29eb,this['_column']=_0x58f949;}['getTable'](){const _0x295661=_0x4a68d1;return this[_0x295661(0x23d)];}[_0x4a68d1(0x1e8)](){const _0x4b398c=_0x4a68d1;return this[_0x4b398c(0x24d)];}[_0x4a68d1(0x1d4)](){return this['_column'];}[_0x4a68d1(0x1de)](){const _0x40e5ef=_0x4a68d1;return this[_0x40e5ef(0x23d)]['getCellText'](this[_0x40e5ef(0x24d)],this['_column']);}[_0x4a68d1(0x24c)](){const _0x23063d=_0x4a68d1;return this[_0x23063d(0x23d)][_0x23063d(0x1ac)](this[_0x23063d(0x24d)],this[_0x23063d(0x1d8)]);}[_0x4a68d1(0x25b)](){const _0x174bb7=_0x4a68d1;return this[_0x174bb7(0x23d)][_0x174bb7(0x1fa)](this[_0x174bb7(0x24d)],this[_0x174bb7(0x1d8)]);}[_0x4a68d1(0x24f)](){const _0x32d023=_0x4a68d1;return this['_table'][_0x32d023(0x1bf)](this[_0x32d023(0x24d)],this[_0x32d023(0x1d8)]);}[_0x4a68d1(0x1e5)](){const _0x5aff61=_0x4a68d1;return this[_0x5aff61(0x23d)][_0x5aff61(0x1bc)](this['_row'],this['_column']);}[_0x4a68d1(0x22b)](_0x111dab){const _0xedd1d6=_0x4a68d1;return this[_0xedd1d6(0x23d)]['setCellMargin'](this['_table'][_0xedd1d6(0x1bd)](this[_0xedd1d6(0x24d)],this[_0xedd1d6(0x1d8)]),_0x111dab);}[_0x4a68d1(0x22c)](){const _0xd0d8ea=_0x4a68d1;return this['_table'][_0xd0d8ea(0x218)](this[_0xd0d8ea(0x23d)][_0xd0d8ea(0x1bd)](this[_0xd0d8ea(0x24d)],this['_column']),null);}[_0x4a68d1(0x20b)](_0x18b53a){const _0x22dc69=_0x4a68d1;return this[_0x22dc69(0x23d)][_0x22dc69(0x1c7)](this[_0x22dc69(0x24d)],this['_column'],_0x18b53a);}['setBackgroundColor'](_0x435344){const _0x61a0dc=_0x4a68d1;return this[_0x61a0dc(0x23d)][_0x61a0dc(0x1db)](this[_0x61a0dc(0x23d)][_0x61a0dc(0x1bd)](this['_row'],this[_0x61a0dc(0x1d8)]),_0x435344);}[_0x4a68d1(0x1fe)](_0x41e8ab){const _0x5db841=_0x4a68d1;return this[_0x5db841(0x23d)][_0x5db841(0x1fe)](this[_0x5db841(0x23d)][_0x5db841(0x1bd)](this[_0x5db841(0x24d)],this[_0x5db841(0x1d8)]),_0x41e8ab);}[_0x4a68d1(0x265)](_0x16e86c,_0x1d28b5){const _0x2e86bd=_0x4a68d1;return this[_0x2e86bd(0x23d)][_0x2e86bd(0x26c)]({'startRow':this[_0x2e86bd(0x24d)],'startColumn':this[_0x2e86bd(0x1d8)],'endRow':this[_0x2e86bd(0x24d)]+_0x16e86c-0x1,'endColumn':this[_0x2e86bd(0x1d8)]+_0x1d28b5-0x1});}['unmerge'](){const _0x4a3841=_0x4a68d1;return this['_table'][_0x4a3841(0x1aa)](this[_0x4a3841(0x23d)]['getCellRange'](this['_row'],this[_0x4a3841(0x1d8)]));}};function _0x1da432(_0x49c028){'@babel/helpers - typeof';const _0x4ce5e8=_0x4a68d1;return _0x1da432=typeof Symbol==_0x4ce5e8(0x22e)&&typeof Symbol['iterator']==_0x4ce5e8(0x23f)?function(_0x5bfe86){return typeof _0x5bfe86;}:function(_0x47d69d){const _0x5433a9=_0x4ce5e8;return _0x47d69d&&typeof Symbol==_0x5433a9(0x22e)&&_0x47d69d['constructor']===Symbol&&_0x47d69d!==Symbol[_0x5433a9(0x215)]?_0x5433a9(0x23f):typeof _0x47d69d;},_0x1da432(_0x49c028);}function _0x4c2cd6(_0x3f2b67,_0x11ca2c){const _0x5a9def=_0x4a68d1;if(_0x1da432(_0x3f2b67)!='object'||!_0x3f2b67)return _0x3f2b67;var _0x2c2115=_0x3f2b67[Symbol[_0x5a9def(0x260)]];if(_0x2c2115!==void 0x0){var _0x1046d8=_0x2c2115[_0x5a9def(0x1d6)](_0x3f2b67,_0x11ca2c||'default');if(_0x1da432(_0x1046d8)!=_0x5a9def(0x267))return _0x1046d8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x11ca2c===_0x5a9def(0x225)?String:Number)(_0x3f2b67);}function _0x43a533(_0x12f566){const _0x5de377=_0x4a68d1;var _0x3120c0=_0x4c2cd6(_0x12f566,_0x5de377(0x225));return _0x1da432(_0x3120c0)=='symbol'?_0x3120c0:_0x3120c0+'';}function _0x37490c(_0x5be9ee,_0x46ac5,_0x16018f){const _0x55d582=_0x4a68d1;return(_0x46ac5=_0x43a533(_0x46ac5))in _0x5be9ee?Object[_0x55d582(0x1f3)](_0x5be9ee,_0x46ac5,{'value':_0x16018f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5be9ee[_0x46ac5]=_0x16018f,_0x5be9ee;}var _0x521bab=class{constructor(_0xe2cbd2,_0x4ef076,_0x3dc998='',_0x37ffc4){const _0x38fe40=_0x4a68d1;this['_document']=_0xe2cbd2,this[_0x38fe40(0x237)]=_0x4ef076,this[_0x38fe40(0x229)]=_0x3dc998,this[_0x38fe40(0x22d)]=_0x37ffc4,_0x37490c(this,_0x38fe40(0x1a6),void 0x0),this[_0x38fe40(0x1a6)]=this['_document'][_0x38fe40(0x210)]();}[_0x4a68d1(0x210)](){return this['_tableId'];}[_0x4a68d1(0x21c)](){const _0x4e4337=_0x4a68d1;return this[_0x4e4337(0x229)];}[_0x4a68d1(0x235)](){const _0x329d24=_0x4a68d1;return{'id':this['_tableId'],'rowCount':this[_0x329d24(0x246)](),'columnCount':this[_0x329d24(0x1cf)](),'metadata':this[_0x329d24(0x222)](),'source':this[_0x329d24(0x1f4)]()};}[_0x4a68d1(0x268)](){const _0x1a9811=_0x4a68d1;var _0x2067e4,_0x286041;let _0x16f03c=this[_0x1a9811(0x222)](),_0x114c8d=this['getSource'](),_0x4dd288=this[_0x1a9811(0x1cf)]();return{'id':this[_0x1a9811(0x237)],'rowCount':this[_0x1a9811(0x246)](),'columnCount':_0x4dd288,'headerRowCount':(_0x2067e4=_0x16f03c==null?void 0x0:_0x16f03c[_0x1a9811(0x1fc)])==null?0x0:_0x2067e4,'titleRow':(_0x286041=_0x16f03c==null?void 0x0:_0x16f03c['titleRow'])==null?!0x1:_0x286041,'columns':Array[_0x1a9811(0x242)]({'length':_0x4dd288},(_0x26e2d3,_0x3e1791)=>{const _0x1c31ea=_0x1a9811;var _0x13bf0e,_0x272100;return{'index':_0x3e1791,'type':_0x16f03c==null||(_0x13bf0e=_0x16f03c[_0x1c31ea(0x1e7)])==null||(_0x13bf0e=_0x13bf0e[_0x3e1791])==null?void 0x0:_0x13bf0e['type'],'width':_0x114c8d==null||(_0x272100=_0x114c8d[_0x1c31ea(0x1b6)][_0x3e1791])==null?void 0x0:_0x272100[_0x1c31ea(0x1c1)][_0x1c31ea(0x232)]['v']};}),'sampleRows':Array['from']({'length':this[_0x1a9811(0x246)]()},(_0x25742d,_0x556133)=>Array[_0x1a9811(0x242)]({'length':_0x4dd288},(_0x1a836e,_0x3f12ce)=>this['getCellText'](_0x556133,_0x3f12ce)))[_0x1a9811(0x1f0)](_0xd80525=>_0xd80525[_0x1a9811(0x19a)](_0x4b86c4=>_0x4b86c4[_0x1a9811(0x1a4)]>0x0))['slice'](0x0,0x5)};}['getRowCount'](){const _0x50bc34=_0x4a68d1;var _0x4935cc,_0x368850;return(_0x4935cc=(_0x368850=this['getSource']())==null?void 0x0:_0x368850[_0x50bc34(0x1f6)][_0x50bc34(0x1a4)])==null?0x0:_0x4935cc;}[_0x4a68d1(0x1cf)](){const _0x40ad86=_0x4a68d1;var _0x2934a5,_0x4bb2b9;return(_0x2934a5=(_0x4bb2b9=this[_0x40ad86(0x1f4)]())==null?void 0x0:_0x4bb2b9[_0x40ad86(0x1b6)][_0x40ad86(0x1a4)])==null?0x0:_0x2934a5;}[_0x4a68d1(0x264)](_0x16c96c,_0x29824a){const _0x521fca=_0x4a68d1;var _0x5bfab7;return!((_0x5bfab7=this[_0x521fca(0x1f4)]())==null||(_0x5bfab7=_0x5bfab7[_0x521fca(0x1f6)][_0x16c96c])==null)&&_0x5bfab7[_0x521fca(0x1f2)][_0x29824a]?this[_0x521fca(0x22d)][_0x521fca(0x1f7)](_0x39a5af,this,_0x16c96c,_0x29824a):null;}[_0x4a68d1(0x25e)](_0x310e30,_0x33b4c3){const _0xd6a8=_0x4a68d1;var _0x43676b,_0x211a6a,_0x143376;let _0xd04975=(_0x43676b=(0x0,_0x523de9[_0xd6a8(0x251)])(this[_0xd6a8(0x19f)](),this[_0xd6a8(0x237)]))==null||(_0x43676b=_0x43676b[_0xd6a8(0x21f)][_0x310e30])==null?void 0x0:_0x43676b[_0xd6a8(0x1bb)][_0x33b4c3];return _0xd04975?(_0x211a6a=(_0x143376=this['_getDocumentData']()[_0xd6a8(0x1b8)])==null?void 0x0:_0x143376['dataStream'][_0xd6a8(0x1a0)](_0xd04975[_0xd6a8(0x201)]+0x1,_0xd04975[_0xd6a8(0x26b)])['replace'](/\r\n$/,''))==null?'':_0x211a6a:'';}['getCellMargin'](_0x190086,_0x38573a){const _0xbcf4bf=_0x4a68d1;var _0x3002d1,_0x3770be,_0x5be27c;let _0x1b27b1=this['getSource'](),_0x3460ca=_0x1b27b1==null||(_0x3002d1=_0x1b27b1[_0xbcf4bf(0x1f6)][_0x190086])==null?void 0x0:_0x3002d1[_0xbcf4bf(0x1f2)][_0x38573a];return _0x3460ca?_0x295219[_0xbcf4bf(0x1c8)][_0xbcf4bf(0x24b)]((_0x3770be=(_0x5be27c=_0x3460ca[_0xbcf4bf(0x1ed)])==null?_0x1b27b1['cellMargin']:_0x5be27c)==null?_0x523de9[_0xbcf4bf(0x241)]:_0x3770be):null;}[_0x4a68d1(0x1bc)](_0xa7721c,_0x4e9a4b){const _0x140f0c=_0x4a68d1;var _0x3be029;let _0x543df5=(_0x3be029=this[_0x140f0c(0x1f4)]())==null||(_0x3be029=_0x3be029[_0x140f0c(0x1f6)][_0xa7721c])==null?void 0x0:_0x3be029[_0x140f0c(0x1f2)][_0x4e9a4b];return _0x543df5!=null&&_0x543df5[_0x140f0c(0x1ed)]?_0x295219[_0x140f0c(0x1c8)]['deepClone'](_0x543df5[_0x140f0c(0x1ed)]):null;}[_0x4a68d1(0x259)](){const _0x1ddd17=_0x4a68d1;var _0x1a6b31,_0x1b507e;return _0x295219['Tools'][_0x1ddd17(0x24b)]((_0x1a6b31=(_0x1b507e=this[_0x1ddd17(0x1f4)]())==null?void 0x0:_0x1b507e[_0x1ddd17(0x1d1)])==null?_0x523de9['DEFAULT_DOCS_TABLE_CELL_MARGIN']:_0x1a6b31);}['getDefaultCellMarginOverride'](){const _0x3e48a0=_0x4a68d1;var _0x38ac6e;let _0x14cc88=(_0x38ac6e=this[_0x3e48a0(0x1f4)]())==null?void 0x0:_0x38ac6e[_0x3e48a0(0x1d1)];return _0x14cc88?_0x295219[_0x3e48a0(0x1c8)][_0x3e48a0(0x24b)](_0x14cc88):null;}[_0x4a68d1(0x222)](){const _0x29307d=_0x4a68d1;return this[_0x29307d(0x22d)][_0x29307d(0x21b)](_0x523de9[_0x29307d(0x25d)])['getTableMetadata'](this[_0x29307d(0x1a6)],this['_tableId']);}[_0x4a68d1(0x1f4)](){const _0x24da6c=_0x4a68d1;var _0x446835;return(_0x446835=this[_0x24da6c(0x19f)]()[_0x24da6c(0x1f5)])==null?void 0x0:_0x446835[this['_tableId']];}[_0x4a68d1(0x1c2)](){const _0x13c9aa=_0x4a68d1;return(0x0,_0x523de9[_0x13c9aa(0x251)])(this['_getDocumentData'](),this['_tableId']);}[_0x4a68d1(0x1a7)](){const _0x457281=_0x4a68d1;return{'startRow':0x0,'endRow':Math['max'](0x0,this['getRowCount']()-0x1),'startColumn':0x0,'endColumn':Math[_0x457281(0x236)](0x0,this['getColumnCount']()-0x1)};}[_0x4a68d1(0x1bd)](_0x58d032,_0x2c7d7a){return{'startRow':_0x58d032,'endRow':_0x58d032,'startColumn':_0x2c7d7a,'endColumn':_0x2c7d7a};}[_0x4a68d1(0x1ac)](_0x56d750,_0x303900){const _0x6133dc=_0x4a68d1;var _0x871d24;let _0x5a87c4=(_0x871d24=(0x0,_0x523de9[_0x6133dc(0x251)])(this[_0x6133dc(0x19f)](),this[_0x6133dc(0x237)]))==null||(_0x871d24=_0x871d24[_0x6133dc(0x21f)][_0x56d750])==null?void 0x0:_0x871d24[_0x6133dc(0x1bb)][_0x303900];if(!_0x5a87c4)return null;let _0x34e9be=_0x5a87c4[_0x6133dc(0x201)]+0x1;return{'startOffset':_0x34e9be,'endOffset':Math[_0x6133dc(0x236)](_0x34e9be,_0x5a87c4[_0x6133dc(0x26b)]-0x1),'segmentId':this[_0x6133dc(0x229)]};}[_0x4a68d1(0x1fa)](_0x1d7c51,_0x13202e){const _0x472059=_0x4a68d1;var _0xadd5f0,_0x4fb75f;return(_0xadd5f0=(_0x4fb75f=this[_0x472059(0x1ac)](_0x1d7c51,_0x13202e))==null?void 0x0:_0x4fb75f[_0x472059(0x26b)])==null?null:_0xadd5f0;}[_0x4a68d1(0x1a5)](_0x54bc2d){const _0x2c526c=_0x4a68d1;return this[_0x2c526c(0x1a9)](_0x54bc2d,0x1);}[_0x4a68d1(0x1a9)](_0x2b0fc3,_0x4d96fc=0x1){const _0x166f0d=_0x4a68d1;return{'startRow':_0x2b0fc3,'endRow':_0x2b0fc3+_0x4d96fc-0x1,'startColumn':0x0,'endColumn':Math[_0x166f0d(0x236)](0x0,this[_0x166f0d(0x1cf)]()-0x1)};}[_0x4a68d1(0x249)](_0x73a2b6){return this['getColumnsRange'](_0x73a2b6,0x1);}[_0x4a68d1(0x20d)](_0x4470f5,_0x4c4f5a=0x1){const _0x20cfe1=_0x4a68d1;return{'startRow':0x0,'endRow':Math[_0x20cfe1(0x236)](0x0,this[_0x20cfe1(0x246)]()-0x1),'startColumn':_0x4470f5,'endColumn':_0x4470f5+_0x4c4f5a-0x1};}[_0x4a68d1(0x1ec)](){const _0x24abd1=_0x4a68d1;return this[_0x24abd1(0x1a2)](this['getTableRange'](),_0x523de9[_0x24abd1(0x202)][_0x24abd1(0x1b7)]);}['selectRow'](_0x1e176c){const _0x353f9a=_0x4a68d1;return this[_0x353f9a(0x224)](_0x1e176c,0x1);}[_0x4a68d1(0x224)](_0x460e67,_0x1e7b9e=0x1){const _0x2d9a5c=_0x4a68d1;return this['selectRange'](this[_0x2d9a5c(0x1a9)](_0x460e67,_0x1e7b9e),_0x523de9[_0x2d9a5c(0x202)]['Row']);}['selectColumn'](_0x4171b3){const _0x536fa7=_0x4a68d1;return this[_0x536fa7(0x204)](_0x4171b3,0x1);}['selectColumns'](_0x3fa6cb,_0xa46180=0x1){const _0x4379b4=_0x4a68d1;return this['selectRange'](this[_0x4379b4(0x20d)](_0x3fa6cb,_0xa46180),_0x523de9['DocsTableSelectionKind']['Column']);}['selectCell'](_0x56178e,_0x58796a){const _0x365c79=_0x4a68d1;return this[_0x365c79(0x1a2)](this[_0x365c79(0x1bd)](_0x56178e,_0x58796a),_0x523de9[_0x365c79(0x202)]['Cell']);}[_0x4a68d1(0x1a2)](_0x54d88d,_0x380126=_0x523de9[_0x4a68d1(0x202)][_0x4a68d1(0x1ea)]){const _0x2ab033=_0x4a68d1;return this[_0x2ab033(0x22d)][_0x2ab033(0x21b)](_0x523de9['DocsTableSelectionService'])[_0x2ab033(0x1ad)]({..._0x54d88d,'kind':_0x380126,'segmentId':this['_segmentId'],'tableId':this[_0x2ab033(0x237)]}),!0x0;}[_0x4a68d1(0x1dc)](_0x28fa6c){const _0x170d65=_0x4a68d1;return this[_0x170d65(0x26d)](_0x28fa6c,0x1);}[_0x4a68d1(0x1ff)](_0x472a52){const _0x5e2bd4=_0x4a68d1;return this[_0x5e2bd4(0x1c6)](_0x472a52,0x1);}[_0x4a68d1(0x26d)](_0x3dd23f,_0x127c8e){const _0x121ccb=_0x4a68d1;let _0x3b631d=this[_0x121ccb(0x19f)](),_0x134e6b=(0x0,_0x523de9[_0x121ccb(0x25f)])(_0x3b631d,this[_0x121ccb(0x237)],_0x3dd23f,_0x127c8e,_0x523de9[_0x121ccb(0x24e)][_0x121ccb(0x1c9)],this['_getBodyPath']());return _0x134e6b?this[_0x121ccb(0x23c)](_0x3b631d,_0x134e6b[_0x121ccb(0x200)]):!0x1;}[_0x4a68d1(0x1c6)](_0x27dbcd,_0x30856f){const _0x535632=_0x4a68d1;let _0x3b5a9a=this[_0x535632(0x19f)](),_0x1a7192=(0x0,_0x523de9[_0x535632(0x25f)])(_0x3b5a9a,this[_0x535632(0x237)],_0x27dbcd,_0x30856f,_0x523de9[_0x535632(0x24e)]['Below'],this[_0x535632(0x1d5)]());return _0x1a7192?this['_mutateActions'](_0x3b5a9a,_0x1a7192[_0x535632(0x200)]):!0x1;}[_0x4a68d1(0x1fd)](){const _0x49df2f=_0x4a68d1;return this[_0x49df2f(0x1c6)](Math[_0x49df2f(0x236)](0x0,this[_0x49df2f(0x246)]()-0x1),0x1);}[_0x4a68d1(0x206)](_0x118670){const _0x5554d9=_0x4a68d1;return this[_0x5554d9(0x1ab)](_0x118670,0x1);}['insertColumnAfter'](_0x5ba06d){const _0x121d37=_0x4a68d1;return this[_0x121d37(0x25a)](_0x5ba06d,0x1);}[_0x4a68d1(0x1ab)](_0x4a883e,_0x3614b5){const _0x39fbf9=_0x4a68d1;let _0x5996ed=this[_0x39fbf9(0x19f)](),_0x4db978=(0x0,_0x523de9[_0x39fbf9(0x1e2)])(_0x5996ed,this['_tableId'],_0x4a883e,_0x3614b5,_0x523de9['DocsTableInsertPosition'][_0x39fbf9(0x208)],{'bodyPath':this[_0x39fbf9(0x1d5)]()});return _0x4db978?this[_0x39fbf9(0x23c)](_0x5996ed,_0x4db978[_0x39fbf9(0x200)]):!0x1;}[_0x4a68d1(0x25a)](_0x33a2ea,_0x380242){const _0x78732f=_0x4a68d1;let _0x138f6c=this[_0x78732f(0x19f)](),_0x50b6a8=(0x0,_0x523de9[_0x78732f(0x1e2)])(_0x138f6c,this[_0x78732f(0x237)],_0x33a2ea,_0x380242,_0x523de9[_0x78732f(0x24e)]['Right'],{'bodyPath':this[_0x78732f(0x1d5)]()});return _0x50b6a8?this['_mutateActions'](_0x138f6c,_0x50b6a8[_0x78732f(0x200)]):!0x1;}['appendColumn'](){const _0x230f19=_0x4a68d1;return this[_0x230f19(0x25a)](Math[_0x230f19(0x236)](0x0,this[_0x230f19(0x1cf)]()-0x1),0x1);}[_0x4a68d1(0x1dd)](_0x502e84){const _0x140a16=_0x4a68d1;return this[_0x140a16(0x20c)](_0x502e84,0x1);}[_0x4a68d1(0x20c)](_0x4f3f41,_0x2b9256=0x1){const _0x455704=_0x4a68d1;let _0x45a6b3=this[_0x455704(0x19f)](),_0x243702=(0x0,_0x523de9[_0x455704(0x1a3)])(_0x45a6b3,this[_0x455704(0x237)],_0x4f3f41,_0x4f3f41+_0x2b9256-0x1,this[_0x455704(0x1d5)]());return _0x243702?this[_0x455704(0x23c)](_0x45a6b3,_0x243702[_0x455704(0x200)]):!0x1;}[_0x4a68d1(0x248)](_0x74ca86){const _0x2efea6=_0x4a68d1;return this[_0x2efea6(0x1d9)](_0x74ca86,0x1);}[_0x4a68d1(0x1d9)](_0x1f383f,_0x23c129=0x1){const _0x2c76ce=_0x4a68d1;let _0x5d4db2=this['_getDocumentData'](),_0x213485=(0x0,_0x523de9[_0x2c76ce(0x231)])(_0x5d4db2,this[_0x2c76ce(0x237)],_0x1f383f,_0x1f383f+_0x23c129-0x1,this[_0x2c76ce(0x1d5)]());return _0x213485?this[_0x2c76ce(0x23c)](_0x5d4db2,_0x213485[_0x2c76ce(0x200)]):!0x1;}[_0x4a68d1(0x211)](){const _0x338d8c=_0x4a68d1;let _0x3bf320=this[_0x338d8c(0x19f)](),_0x3a1dcc=(0x0,_0x523de9['buildDeleteTableMutationActions'])(_0x3bf320,this['_tableId'],this[_0x338d8c(0x1d5)]());return _0x3a1dcc?this['_mutateActions'](_0x3bf320,_0x3a1dcc['actions']):!0x1;}[_0x4a68d1(0x1af)](_0x476192,_0x128c22){const _0x1182c4=_0x4a68d1;let _0x1f3cb9=this[_0x1182c4(0x19f)]();return this['_mutateActions'](_0x1f3cb9,(0x0,_0x523de9[_0x1182c4(0x1b3)])(_0x1f3cb9,this[_0x1182c4(0x237)],_0x476192,_0x128c22));}['moveTableToOffset'](_0x4f853b){const _0x4b5470=_0x4a68d1;let _0x199a04=this[_0x4b5470(0x19f)]();return this['_mutateActions'](_0x199a04,(0x0,_0x523de9['buildMoveTableToOffsetMutationActions'])(_0x199a04,this['_tableId'],_0x4f853b,this[_0x4b5470(0x1d5)]()));}[_0x4a68d1(0x1e9)](_0x475069,_0xda0d46,_0x2c5d49=_0x523de9[_0x4a68d1(0x24e)][_0x4a68d1(0x1c9)]){const _0x21d9e4=_0x4a68d1;return this[_0x21d9e4(0x220)](_0x475069,0x1,_0xda0d46,_0x2c5d49);}[_0x4a68d1(0x220)](_0x3b28b2,_0x50dc12,_0x5a4ce6,_0x77ed96=_0x523de9['DocsTableInsertPosition'][_0x4a68d1(0x1c9)]){const _0x37f3f0=_0x4a68d1;let _0xb86a5=this[_0x37f3f0(0x19f)](),_0x43a60c=(0x0,_0x523de9[_0x37f3f0(0x1e4)])(_0xb86a5,this[_0x37f3f0(0x237)],_0x3b28b2,_0x5a4ce6,_0x50dc12,_0x77ed96,this[_0x37f3f0(0x1d5)]());return _0x43a60c?this[_0x37f3f0(0x23c)](_0xb86a5,_0x43a60c['actions']):!0x1;}['moveColumn'](_0x50c770,_0x133bf8,_0x407f54=_0x523de9[_0x4a68d1(0x24e)][_0x4a68d1(0x208)]){const _0x41ba49=_0x4a68d1;return this[_0x41ba49(0x262)](_0x50c770,0x1,_0x133bf8,_0x407f54);}[_0x4a68d1(0x262)](_0x483eee,_0xe45242,_0x58c535,_0x2eeeaf=_0x523de9[_0x4a68d1(0x24e)][_0x4a68d1(0x208)]){const _0xd56bbb=_0x4a68d1;let _0x45380d=this[_0xd56bbb(0x19f)](),_0x42ef4d=(0x0,_0x523de9['buildMoveTableColumnsMutationActions'])(_0x45380d,this['_tableId'],_0x483eee,_0x58c535,_0xe45242,_0x2eeeaf,this[_0xd56bbb(0x1d5)]());return _0x42ef4d?this['_mutateActions'](_0x45380d,_0x42ef4d[_0xd56bbb(0x200)]):!0x1;}[_0x4a68d1(0x26c)](_0x3d6fd2){const _0x376804=_0x4a68d1;try{let _0x3e389b=this[_0x376804(0x19f)](),_0x3acde1=(0x0,_0x523de9[_0x376804(0x1e6)])({'documentData':_0x3e389b,'tableId':this[_0x376804(0x237)],..._0x3d6fd2});return _0x3acde1?this[_0x376804(0x23c)](_0x3e389b,_0x3acde1[_0x376804(0x200)],_0x3d6fd2):!0x1;}catch{return!0x1;}}[_0x4a68d1(0x1aa)](_0x5237e8){const _0x5e8ab9=_0x4a68d1;try{let _0x1638fd=this['_getDocumentData'](),_0xe1cf26=(0x0,_0x523de9[_0x5e8ab9(0x243)])({'documentData':_0x1638fd,'tableId':this[_0x5e8ab9(0x237)],..._0x5237e8});return _0xe1cf26?this[_0x5e8ab9(0x23c)](_0x1638fd,_0xe1cf26['actions'],_0x5237e8):!0x1;}catch{return!0x1;}}['setCellText'](_0x9524f9,_0x3b4770,_0x234650){const _0x567898=_0x4a68d1;let _0x44a6f6=this[_0x567898(0x19f)](),_0x4062b1=(0x0,_0x523de9['getTableActionBodyPath'])(this[_0x567898(0x258)][_0x567898(0x263)]()[_0x567898(0x1ca)](),this[_0x567898(0x229)]);return this[_0x567898(0x23c)](_0x44a6f6,(0x0,_0x523de9[_0x567898(0x219)])({'documentData':_0x44a6f6,'tableId':this[_0x567898(0x237)],'row':_0x9524f9,'column':_0x3b4770,'text':_0x234650},_0x4062b1),this[_0x567898(0x1bd)](_0x9524f9,_0x3b4770));}['setCellBackground'](_0x369c1f,_0x894c2){const _0x37e9ab=_0x4a68d1;let _0x3a0c01=this[_0x37e9ab(0x19f)]();return this['_mutateActions'](_0x3a0c01,(0x0,_0x523de9[_0x37e9ab(0x1ae)])(_0x3a0c01,{'tableId':this[_0x37e9ab(0x237)],..._0x369c1f,'value':_0x894c2}),_0x369c1f);}['setCellMargin'](_0x3d4d87,_0xd02803){const _0x5d9296=_0x4a68d1;let _0x1e2545=this[_0x5d9296(0x19f)]();return this[_0x5d9296(0x23c)](_0x1e2545,(0x0,_0x523de9[_0x5d9296(0x1da)])({'documentData':_0x1e2545,'tableId':this[_0x5d9296(0x237)],..._0x3d4d87,'margin':_0xd02803}),_0x3d4d87);}['setDefaultCellMargin'](_0x38a8da){const _0x144b00=_0x4a68d1;let _0x21196e=this[_0x144b00(0x19f)]();return this[_0x144b00(0x23c)](_0x21196e,(0x0,_0x523de9[_0x144b00(0x228)])(_0x21196e,this[_0x144b00(0x237)],_0x38a8da));}[_0x4a68d1(0x1fe)](_0x8a6ce7,_0x49066b){const _0x17fdb4=_0x4a68d1;var _0x5eb913,_0x344bed,_0x23647a,_0x527635;let _0x33d1ce=this[_0x17fdb4(0x19f)]();return this[_0x17fdb4(0x23c)](_0x33d1ce,(0x0,_0x523de9[_0x17fdb4(0x1d0)])({'documentData':_0x33d1ce,'tableId':this[_0x17fdb4(0x237)],..._0x8a6ce7,'preset':(_0x5eb913=_0x49066b[_0x17fdb4(0x254)])==null?_0x523de9['DocsTableBorderPreset'][_0x17fdb4(0x1b0)]:_0x5eb913,'border':(_0x344bed=_0x49066b[_0x17fdb4(0x217)])==null?{'color':{'rgb':(_0x23647a=_0x49066b['color'])==null?'#1f1f1f':_0x23647a},'width':{'v':(_0x527635=_0x49066b[_0x17fdb4(0x232)])==null?0x1:_0x527635},'dashStyle':_0x295219[_0x17fdb4(0x21e)][_0x17fdb4(0x23e)]}:_0x344bed}),_0x8a6ce7);}[_0x4a68d1(0x20f)](_0x266ed3){const _0x23615c=_0x4a68d1;return this[_0x23615c(0x1db)](this[_0x23615c(0x1a7)](),_0x266ed3);}[_0x4a68d1(0x207)](_0x1dfb5a){const _0x4af465=_0x4a68d1;return this[_0x4af465(0x1fe)](this['getTableRange'](),_0x1dfb5a);}['setTableStyle'](_0x25d3cd){const _0x303d95=_0x4a68d1;let _0x2a646f=_0x25d3cd['backgroundColor']?this[_0x303d95(0x20f)](_0x25d3cd[_0x303d95(0x1ee)]):!0x0,_0x1b805e=_0x25d3cd['border']?this[_0x303d95(0x207)](_0x25d3cd['border']):!0x0;return _0x2a646f&&_0x1b805e;}[_0x4a68d1(0x244)](_0x11c7cd,_0x21b7f0,_0x185d9d=_0x295219[_0x4a68d1(0x230)]['AT_LEAST']){const _0x516dd5=_0x4a68d1;var _0x45cc75;let _0x4ec56b=this[_0x516dd5(0x19f)]();return!((_0x45cc75=_0x4ec56b['tableSource'])==null||(_0x45cc75=_0x45cc75[this[_0x516dd5(0x237)]])==null)&&_0x45cc75['tableRows'][_0x11c7cd]?this[_0x516dd5(0x23c)](_0x4ec56b,(0x0,_0x523de9[_0x516dd5(0x19e)])(_0x4ec56b,this['_tableId'],_0x11c7cd,_0x21b7f0,_0x185d9d)):!0x1;}[_0x4a68d1(0x214)](_0xe057f6){const _0x5e1f2c=_0x4a68d1;var _0x1bc12c;let _0x4e186a=(_0x1bc12c=this['getSource']())==null||(_0x1bc12c=_0x1bc12c['tableRows'][_0xe057f6])==null?void 0x0:_0x1bc12c[_0x5e1f2c(0x21a)];return _0x4e186a?_0x295219['Tools'][_0x5e1f2c(0x24b)](_0x4e186a):null;}[_0x4a68d1(0x253)](_0x56c505,_0x39f227){const _0xee7ec0=_0x4a68d1;var _0x5c754f;let _0x546a2f=this[_0xee7ec0(0x19f)]();return!((_0x5c754f=_0x546a2f[_0xee7ec0(0x1f5)])==null||(_0x5c754f=_0x5c754f[this[_0xee7ec0(0x237)]])==null)&&_0x5c754f[_0xee7ec0(0x1b6)][_0x56c505]?this[_0xee7ec0(0x23c)](_0x546a2f,(0x0,_0x523de9['buildResizeTableColumnActionsFromWidth'])(_0x546a2f,this[_0xee7ec0(0x237)],_0x56c505,_0x39f227)):!0x1;}[_0x4a68d1(0x21d)](_0xec9375=0x0,_0x3350c7=this[_0x4a68d1(0x246)]()){const _0x2df061=_0x4a68d1;let _0x173a45=this[_0x2df061(0x19f)]();return this['_mutateActions'](_0x173a45,(0x0,_0x523de9[_0x2df061(0x203)])(_0x173a45,this[_0x2df061(0x237)],_0xec9375,_0xec9375+_0x3350c7-0x1));}[_0x4a68d1(0x1a1)](_0x570891=0x0,_0x27c384=this[_0x4a68d1(0x1cf)]()){const _0x3785ca=_0x4a68d1;let _0x85850f=this['_getDocumentData']();return this[_0x3785ca(0x23c)](_0x85850f,(0x0,_0x523de9[_0x3785ca(0x1b5)])(_0x85850f,this['_tableId'],_0x570891,_0x570891+_0x27c384-0x1));}[_0x4a68d1(0x20a)](){const _0x597460=_0x4a68d1;var _0x54c1c7,_0x362df6;return(_0x54c1c7=(_0x362df6=this[_0x597460(0x222)]())==null?void 0x0:_0x362df6['headerRowCount'])==null?0x0:_0x54c1c7;}[_0x4a68d1(0x227)](_0x2052f0){const _0x5daeec=_0x4a68d1;let _0x5d087c=this[_0x5daeec(0x22d)][_0x5daeec(0x21b)](_0x523de9[_0x5daeec(0x25d)]),_0x5a8c70=this['_getDocumentData'](),_0x32c376=(0x0,_0x523de9[_0x5daeec(0x1d7)])(_0x5a8c70,this[_0x5daeec(0x237)],_0x2052f0);if(!_0x32c376)return!0x1;let _0x42a427=this[_0x5daeec(0x23c)](_0x5a8c70,_0x32c376[_0x5daeec(0x200)]);return _0x42a427&&_0x5d087c[_0x5daeec(0x227)](this[_0x5daeec(0x1a6)],this[_0x5daeec(0x237)],_0x32c376['headerRowCount']),_0x42a427;}[_0x4a68d1(0x212)](_0x2f3c97){const _0x28497f=_0x4a68d1;return this[_0x28497f(0x227)](_0x2f3c97);}[_0x4a68d1(0x23a)](){const _0x111350=_0x4a68d1;var _0x26b16a,_0x8c07d6;return(_0x26b16a=(_0x8c07d6=this['getMetadata']())==null?void 0x0:_0x8c07d6[_0x111350(0x1ce)])==null?!0x1:_0x26b16a;}[_0x4a68d1(0x1c5)](){const _0x4f0aaf=_0x4a68d1;let _0x6edd95=this[_0x4f0aaf(0x22d)][_0x4f0aaf(0x21b)](_0x523de9[_0x4f0aaf(0x25d)]),_0x5d095a=this[_0x4f0aaf(0x19f)](),_0x32250b=(0x0,_0x523de9[_0x4f0aaf(0x234)])(_0x5d095a,this['_tableId'],this[_0x4f0aaf(0x1d5)]());if(!_0x32250b)return!0x1;let _0x44c7d2=this[_0x4f0aaf(0x23c)](_0x5d095a,_0x32250b[_0x4f0aaf(0x200)]);return _0x44c7d2&&_0x6edd95['setTitleRow'](this[_0x4f0aaf(0x1a6)],this['_tableId'],!0x0),_0x44c7d2;}[_0x4a68d1(0x1be)](_0x4f1ea4,_0x464451){const _0x1910a5=_0x4a68d1;return this[_0x1910a5(0x22d)]['get'](_0x523de9[_0x1910a5(0x25d)])['setColumnType'](this['_unitId'],this['_tableId'],_0x4f1ea4,_0x464451),!0x0;}[_0x4a68d1(0x239)](_0x50bcfb,_0x40e180){const _0x493ef8=_0x4a68d1;let _0x45807c=this[_0x493ef8(0x19f)]();return this[_0x493ef8(0x23c)](_0x45807c,(0x0,_0x523de9[_0x493ef8(0x26a)])(_0x45807c,this['_serializeModel'](),this['_tableId'],_0x50bcfb,_0x40e180,this[_0x493ef8(0x1d5)]()));}['_getDocumentData'](){const _0x44e899=_0x4a68d1;let _0x56148c=this[_0x44e899(0x258)][_0x44e899(0x263)]()[_0x44e899(0x1ca)]();return this[_0x44e899(0x229)]?{...this[_0x44e899(0x258)][_0x44e899(0x263)](this[_0x44e899(0x229)])['getSnapshot'](),'documentStyle':_0x56148c[_0x44e899(0x1f9)],'tableSource':_0x56148c['tableSource']}:_0x56148c;}['_serializeModel'](){const _0x166f06=_0x4a68d1;return this['_injector'][_0x166f06(0x21b)](_0x523de9['DocsTableModel'])[_0x166f06(0x269)](this[_0x166f06(0x1a6)]);}['_getBodyPath'](){const _0x4e52d4=_0x4a68d1;return(0x0,_0x523de9[_0x4e52d4(0x1f8)])(this[_0x4e52d4(0x258)][_0x4e52d4(0x263)]()[_0x4e52d4(0x1ca)](),this[_0x4e52d4(0x229)]);}['_mutateActions'](_0x15eccb,_0x125758,_0x39ae7c){const _0x368e6e=_0x4a68d1;return(0x0,_0x523de9[_0x368e6e(0x266)])(this['_injector']['get'](_0x295219['ICommandService']),this[_0x368e6e(0x1a6)],_0x15eccb,_0x125758,_0x39ae7c?{'tableId':this[_0x368e6e(0x237)],'segmentId':this[_0x368e6e(0x229)],..._0x39ae7c}:void 0x0);}},_0x5f2116=class extends _0x2e9a78[_0x4a68d1(0x1c4)]{[_0x4a68d1(0x20e)](_0x892f76=''){const _0x4c9a4e=_0x4a68d1;return this[_0x4c9a4e(0x257)](_0x892f76)['map'](_0x4aceaa=>this[_0x4c9a4e(0x250)](_0x4aceaa[_0x4c9a4e(0x1a8)],_0x892f76));}['getTable'](_0x1d397e,_0x9ec4aa=''){const _0xf117c3=_0x4a68d1;return this[_0xf117c3(0x257)](_0x9ec4aa)[_0xf117c3(0x19a)](_0x5569c3=>_0x5569c3['tableId']===_0x1d397e)?this[_0xf117c3(0x250)](_0x1d397e,_0x9ec4aa):null;}['getTableAt'](_0x4488f2,_0x7d33c2=''){const _0x139c8e=_0x4a68d1;var _0x582be0;let _0x3c6bdd=(_0x582be0=this[_0x139c8e(0x257)](_0x7d33c2)[_0x4488f2])==null?void 0x0:_0x582be0[_0x139c8e(0x1a8)];return _0x3c6bdd?this[_0x139c8e(0x250)](_0x3c6bdd,_0x7d33c2):null;}['getTableAtSelection'](){const _0x1eca79=_0x4a68d1;let _0x4ce65d=this['_injector']['get'](_0x523de9['DocsTableSelectionService'])['getStableTableSelection']();return _0x4ce65d!=null&&_0x4ce65d['tableId']?this['_createFDocumentTable'](_0x4ce65d['tableId'],_0x4ce65d[_0x1eca79(0x247)]):null;}[_0x4a68d1(0x1d3)](_0x1f04b3,_0x1e79fe=''){const _0x2488e6=_0x4a68d1;var _0x14cf39;return(_0x14cf39=this[_0x2488e6(0x1fb)](_0x1f04b3,_0x1e79fe)[0x0])==null?null:_0x14cf39;}[_0x4a68d1(0x1fb)](_0x1c2f4d,_0x1580df=''){const _0x4c4a3d=_0x4a68d1;let _0x3ff16a=this[_0x4c4a3d(0x22a)](_0x1580df),_0x36d165=typeof _0x1c2f4d==_0x4c4a3d(0x225)?{'text':_0x1c2f4d}:_0x1c2f4d;return this[_0x4c4a3d(0x20e)](_0x1580df)[_0x4c4a3d(0x1f0)](_0x51f766=>{const _0x542311=_0x4c4a3d;let _0x4760be=_0x51f766['getId']();return!(_0x36d165['tableId']&&_0x4760be!==_0x36d165['tableId']||_0x36d165['text']&&!this[_0x542311(0x209)](_0x3ff16a,_0x4760be,_0x36d165['text'])||_0x36d165[_0x542311(0x25c)]&&!this[_0x542311(0x226)](_0x51f766,0x0,_0x36d165[_0x542311(0x25c)])||_0x36d165[_0x542311(0x1cc)]&&!this[_0x542311(0x226)](_0x51f766,0x0,_0x36d165[_0x542311(0x1cc)]));});}[_0x4a68d1(0x245)](_0x536349,_0x5515e0,_0x91e1a7={}){const _0x4b771c=_0x4a68d1;var _0x3d3c25,_0x2bcd8a;let _0x5f1016=this[_0x4b771c(0x22d)]['get'](_0x295219['ICommandService']),_0x35d4e7=(_0x3d3c25=_0x91e1a7[_0x4b771c(0x1a8)])==null?(0x0,_0x295219[_0x4b771c(0x23b)])(0x6):_0x3d3c25;return _0x5f1016['syncExecuteCommand'](_0x523de9['DocsTableInsertTableCommand']['id'],{..._0x91e1a7,'unitId':this['getId'](),'rows':_0x536349,'columns':_0x5515e0,'tableId':_0x35d4e7})?this[_0x4b771c(0x250)](_0x35d4e7,(_0x2bcd8a=_0x91e1a7['segmentId'])==null?'':_0x2bcd8a):null;}[_0x4a68d1(0x1d2)](_0x166667,_0x169fcb={}){const _0x2a441a=_0x4a68d1;var _0x264df6,_0x5caf26;let _0x439cca=this[_0x2a441a(0x22d)][_0x2a441a(0x21b)](_0x295219['ICommandService']),_0x541a85=(_0x264df6=_0x169fcb['tableId'])==null?(0x0,_0x295219[_0x2a441a(0x23b)])(0x6):_0x264df6;return _0x439cca['syncExecuteCommand'](_0x523de9[_0x2a441a(0x19d)]['id'],{..._0x169fcb,'unitId':this[_0x2a441a(0x210)](),'values':_0x166667,'tableId':_0x541a85})?this['_createFDocumentTable'](_0x541a85,(_0x5caf26=_0x169fcb[_0x2a441a(0x247)])==null?'':_0x5caf26):null;}['_getTables'](_0x4227b2=''){const _0x5341c5=_0x4a68d1;let {tables:_0x297e60=[]}=this[_0x5341c5(0x1e1)](_0x4227b2);return _0x297e60;}['_getTableDocumentData'](_0x6692d0=''){const _0x5c8a5f=_0x4a68d1;let _0x32301e=this[_0x5c8a5f(0x263)]()[_0x5c8a5f(0x1ca)]();return _0x6692d0?{...this[_0x5c8a5f(0x263)](_0x6692d0)['getSnapshot'](),'documentStyle':_0x32301e[_0x5c8a5f(0x1f9)],'tableSource':_0x32301e[_0x5c8a5f(0x1f5)]}:_0x32301e;}[_0x4a68d1(0x250)](_0x556b03,_0x296829=''){const _0x5533bb=_0x4a68d1;return this['_injector']['createInstance'](_0x521bab,this,_0x556b03,_0x296829,this[_0x5533bb(0x22d)]);}['_tableContainsText'](_0x1fa479,_0x33963a,_0x2cfcaf){const _0x5e5058=_0x4a68d1;var _0xaad8ea;let _0x162592=(0x0,_0x523de9[_0x5e5058(0x251)])(_0x1fa479,_0x33963a);if(!_0x162592)return!0x1;let _0x3de979=(_0xaad8ea=_0x1fa479[_0x5e5058(0x1b8)])==null?void 0x0:_0xaad8ea[_0x5e5058(0x1ba)];return _0x3de979?_0x3de979[_0x5e5058(0x1a0)](_0x162592[_0x5e5058(0x201)],_0x162592[_0x5e5058(0x26b)])[_0x5e5058(0x261)](_0x2cfcaf):!0x1;}[_0x4a68d1(0x226)](_0x474171,_0x5f2ed8,_0x3dcfe7){const _0x504d00=_0x4a68d1;return Array[_0x504d00(0x242)]({'length':_0x474171['getColumnCount']()},(_0x10969d,_0x44334b)=>_0x474171[_0x504d00(0x25e)](_0x5f2ed8,_0x44334b))[_0x504d00(0x19a)](_0x4a1308=>_0x4a1308[_0x504d00(0x261)](_0x3dcfe7));}};_0x2e9a78[_0x4a68d1(0x1c4)][_0x4a68d1(0x205)](_0x5f2116),_0x572d48[_0x4a68d1(0x1cd)]=_0x521bab,_0x572d48['FDocumentTableCell']=_0x39a5af;}));function _0x5ae0(){const _0x14728a=['moveRow','Range','toStringTag','selectTable','margin','backgroundColor','UniverProDocsTableFacade','filter','68GbUoHN','tableCells','defineProperty','getSource','tableSource','tableRows','createInstance','getTableActionBodyPath','documentStyle','getCellInsertOffset','findTables','headerRowCount','appendRow','setBorder','insertRowAfter','actions','startOffset','DocsTableSelectionKind','buildDistributeTableRowsMutationActions','selectColumns','extend','insertColumnBefore','setTableBorder','Left','_tableContainsText','getHeaderRowCount','setText','deleteRows','getColumnsRange','getTables','setTableBackground','getId','deleteTable','pinHeaderRows','DocsTableColumnType','getRowHeight','prototype','exports','border','setCellMargin','buildSetTableCellTextMutationActions','trHeight','get','getSegmentId','distributeRows','DashStyleType','rows','moveRows','715678WgvNAh','getMetadata','812388kbWlwM','selectRows','string','_rowContainsText','setHeaderRowCount','buildSetTableDefaultCellMarginMutationActions','_segmentId','_getTableDocumentData','setMargin','clearMarginOverride','_injector','function','@univerjs/core','TableRowHeightRule','buildDeleteTableColumnsMutationActions','width','2450985RqlNrp','buildInsertTableTitleRowMutationActions','getInfo','max','_tableId','UniverCoreFacade','sortByColumn','hasTitleRow','generateRandomId','_mutateActions','_table','SOLID','symbol','@univerjs/core/facade','DEFAULT_DOCS_TABLE_CELL_MARGIN','from','buildUnmergeCellsMutationActions','setRowHeight','insertTable','getRowCount','segmentId','deleteColumn','getColumnRange','155283szvKSt','deepClone','getContentRange','_row','DocsTableInsertPosition','getMargin','_createFDocumentTable','getTableRangeById','21RpNoEA','setColumnWidth','preset','5741176JAmYuf','DocsTableSortDirection','_getTables','_document','getDefaultCellMargin','insertColumnsAfter','getInsertOffset','headerText','DocsTableModel','getCellText','buildInsertTableRowsMutationActions','toPrimitive','includes','moveColumns','getDocumentDataModel','getCell','mergeTo','executeRichTextTableActions','object','describe','serialize','buildSortTableMutationActions','endOffset','mergeCells','insertRowsBefore','DocsTableInsertTablePosition','some','UniverProDocsTable','DocsTableBorderPreset','DocsTableInsertTableCommand','buildResizeTableRowActionsFromHeight','_getDocumentData','slice','distributeColumns','selectRange','buildDeleteTableRowsMutationActions','length','getRowRange','_unitId','getTableRange','tableId','getRowsRange','unmergeCells','insertColumnsBefore','getCellContentRange','setStructuralSelection','buildSetTableBackgroundMutationActions','moveTableBy','All','@univerjs/docs/facade','UniverDocsFacade','buildMoveFloatingTableMutationActions','UniverCore','buildDistributeTableColumnsMutationActions','tableColumns','Table','body','2201286nhAImo','dataStream','cells','getCellMarginOverride','getCellRange','setColumnType','getCellMargin','@univerjs-pro/docs-table','size','getRange','DocsTableRowInsertPosition','FDocument','insertTitleRow','insertRowsAfter','setCellText','Tools','Above','getSnapshot','1056582ojaEAm','titleText','FDocumentTable','titleRow','getColumnCount','buildSetTableBorderMutationActions','cellMargin','insertTableFromData','findTableByText','getColumnIndex','_getBodyPath','call','buildSetTableHeaderRowCountMutationActions','_column','deleteColumns','buildSetTableCellMarginMutationActions','setCellBackground','insertRowBefore','deleteRow','getText','amd','FEnum','getBody','buildInsertTableColumnsMutationActions','80DpEAFD','buildMoveTableRowsMutationActions','getMarginOverride','buildMergeCellsMutationActions','columnTypes','getRowIndex'];_0x5ae0=function(){return _0x14728a;};return _0x5ae0();}
|