| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391 | 1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
| define(["require", "exports", "@syncfusion/ej2-base", "../organize-pdf", "@syncfusion/ej2-buttons", "@syncfusion/ej2-popups", "./organize-initialization", "./organize-utils", "./tile-interaction", "./organize-toolbar", "./organizepages-editor", "./organize-math-utils"], function (require, exports, ej2_base_1, organize_pdf_1, ej2_buttons_1, ej2_popups_1, organize_initialization_1, organize_utils_1, tile_interaction_1, organize_toolbar_1, organizepages_editor_1, organize_math_utils_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function renderThumbnailImage() {
this.organizePagesCollection = [];
for (var i = 0; i < this.pdfViewer.pageCount; i++) {
this.tileImageRender(i);
this.organizePagesCollection.
push(new organize_pdf_1.OrganizeDetails(i, i, null, false, false, false, false, false, false, organize_math_utils_1.getRotatedAngle.call(this, this.pdfViewerBase.pageSize[parseInt(i.toString(), 10)].rotation.toString()), this.pdfViewerBase.pageSize[parseInt(i.toString(), 10)], false, null, null, null));
}
this.tempOrganizePagesCollection = JSON.parse(JSON.stringify(this.organizePagesCollection));
}
exports.renderThumbnailImage = renderThumbnailImage;
function tileImageRender(pageIndex, subIndex, pageOrder, targetElement, isNewPage, isBefore, isEmptyPage, isImportedPage, documentName) {
var _this = this;
var base64Image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAAD5Ip3+AAAAC0lEQVQIHWP4DwQACfsD/Qy7W+cAAAAASUVORK5CYII=';
this.pageLink = ej2_base_1.createElement('div', { id: 'anchor_page_' + pageIndex, className: 'e-pv-organize-anchor-node' });
var imageZoomFactor = organize_math_utils_1.getImageZoomFactor.call(this, this.pageLink.cloneNode(true));
if (isNewPage) {
this.pageLink.id = this.pageLink.id + '_' + subIndex;
this.pageLink.setAttribute('data-page-order', pageOrder.toString());
}
else {
this.pageLink.setAttribute('data-page-order', pageIndex.toString());
}
this.pageLink.style.width = 140 * imageZoomFactor + 'px';
this.pageLink.style.height = 140 * imageZoomFactor + 'px';
this.thumbnail = ej2_base_1.createElement('div', { id: this.pdfViewer.element.id + '_organize_page_' + pageIndex, className: 'e-pv-organize-tile e-pv-thumbnail-column' });
if (isNewPage) {
this.thumbnail.id = this.thumbnail.id + '_' + subIndex;
}
this.imageContainer = ej2_base_1.createElement('div', { id: this.pdfViewer.element.id + '_container_image_' + pageIndex, className: 'e-pv-image-container' });
if (isNewPage) {
this.imageContainer.id = this.imageContainer.id + '_' + subIndex;
}
var pageSize;
if (!isNewPage && !isEmptyPage) {
pageSize = this.pdfViewerBase.pageSize[parseInt(pageIndex.toString(), 10)];
}
else {
pageSize = this.tempOrganizePagesCollection.find(function (item) {
return item.currentPageIndex === pageOrder;
}).pageSize;
if (isBefore && pageOrder - 1 >= 0) {
pageSize = this.tempOrganizePagesCollection.find(function (item) {
return item.currentPageIndex === pageOrder - 1;
}).pageSize;
}
}
this.thumbnailImage = ej2_base_1.createElement('img', { id: this.pdfViewer.element.id + '_organize_image_' + pageIndex,
className: 'e-pv-organize-image' });
if (isNewPage) {
this.thumbnailImage.id = this.thumbnailImage.id + '_' + subIndex;
}
var width;
var height;
if (pageSize.height > pageSize.width) {
width = 100 * pageSize.width / pageSize.height;
height = 100;
}
else {
width = 100;
height = 100 * pageSize.height / pageSize.width;
}
this.thumbnailImage.style.width = width + '%';
this.thumbnailImage.style.height = height + '%';
if (isEmptyPage) {
this.thumbnailImage.src = base64Image;
}
else if (pageOrder && pageOrder !== null) {
var pageDetail = this.tempOrganizePagesCollection.find(function (item) {
return item.currentPageIndex === pageOrder;
});
if (pageDetail && pageDetail.pageIndex !== -1) {
this.thumbnailImage.src = this.dataDetails[parseInt(pageDetail.pageIndex.toString(), 10)].image;
}
else if (pageDetail && pageDetail.copiedPageIndex !== null && pageDetail.copiedPageIndex >= 0) {
this.thumbnailImage.src = this.dataDetails[parseInt(pageDetail.copiedPageIndex.toString(), 10)].image;
}
else {
this.thumbnailImage.src = base64Image;
}
}
else {
this.thumbnailImage.src = this.dataDetails[parseInt(pageIndex.toString(), 10)].image;
}
this.imageContainer.addEventListener('click', function (e) {
organize_initialization_1.handleImageContainerClick.call(_this, e);
});
this.thumbnailImage.alt = this.pdfViewer.element.id + '_organize_page_' + pageIndex;
if (isNewPage) {
this.thumbnailImage.alt = this.pdfViewer.element.id + '_organize_page_' + pageOrder;
}
if (isImportedPage) {
var importDownloadIcon = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_organize_import_download_icon_' + pageIndex, className: 'e-pv-organize-import-download-icon e-pv-import-icon e-pv-icon' });
this.importImageWrapper = ej2_base_1.createElement('div', { id: this.pdfViewer.element.id + '_organize_import_image_wrapper_' + pageIndex, className: 'e-pv-organize-import-image-wrapper' });
this.importImageWrapper.appendChild(importDownloadIcon);
this.imageContainer.appendChild(this.importImageWrapper);
}
else {
this.imageContainer.appendChild(this.thumbnailImage);
}
var rotateAngle = 0;
if (isNewPage && !ej2_base_1.isNullOrUndefined(this.tempOrganizePagesCollection.find(function (item) { return item.currentPageIndex === pageOrder; }))) {
rotateAngle = this.tempOrganizePagesCollection.find(function (item) { return item.currentPageIndex === pageOrder; }).rotateAngle;
this.imageContainer.style.transform = 'rotate(' + rotateAngle + 'deg)';
}
this.thumbnail.appendChild(this.imageContainer);
var thumbnailPageNumber = ej2_base_1.createElement('div', { id: this.pdfViewer.element.id + '_tile_pagenumber_' + pageIndex, className: 'e-pv-tile-number' });
if (isNewPage) {
thumbnailPageNumber.id = thumbnailPageNumber.id + '_' + subIndex;
}
if (isImportedPage) {
thumbnailPageNumber.textContent = documentName;
}
else if (isNewPage) {
thumbnailPageNumber.textContent = (pageOrder + 1).toString();
}
else {
thumbnailPageNumber.textContent = (pageIndex + 1).toString();
}
var input = document.createElement('input');
input.type = 'checkbox';
input.className = 'e-pv-organize-tile-checkbox';
input.id = 'checkboxdiv_page_' + pageIndex;
if (isNewPage) {
input.id = input.id + '_' + subIndex;
}
this.thumbnail.appendChild(input);
var checkBoxObj = new ej2_buttons_1.CheckBox({ disabled: false, checked: false, change: tile_interaction_1.onSelectClick.bind(this) });
checkBoxObj.appendTo(input);
input.parentElement.style.height = '100%';
input.parentElement.style.width = '100%';
input.parentElement.style.display = 'none';
var buttondiv = ej2_base_1.createElement('div', { id: this.pdfViewer.element.id + '_organize_buttondiv_' + pageIndex, className: 'e-pv-organize-buttondiv' });
if (isNewPage) {
buttondiv.id = buttondiv.id + '_' + subIndex;
}
this.deleteButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_delete_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Delete Page'), 'tabindex': '-1' } });
if (isNewPage) {
this.deleteButton.id = this.deleteButton.id + '_' + subIndex;
}
this.deleteButton.className = 'e-pv-tbar-btn e-pv-delete-button e-btn e-pv-organize-pdf-tile-btn';
this.deleteButton.setAttribute('type', 'button');
var deleteButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_delete' + '_icon', className: 'e-pv-delete-icon e-pv-icon' });
this.deleteButton.appendChild(deleteButtonSpan);
var deleteButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Delete Page'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
deleteButtonTooltip.appendTo(this.deleteButton);
this.rotateRightButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_rotate_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Rotate Right'), 'tabindex': '-1' } });
if (isNewPage) {
this.rotateRightButton.id = this.rotateRightButton.id + '_' + subIndex;
}
this.rotateRightButton.className = 'e-pv-tbar-btn e-pv-rotate-right-button e-btn e-pv-organize-pdf-tile-btn';
this.rotateRightButton.setAttribute('type', 'button');
var rotateButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_rotate-right' + '_icon', className: 'e-pv-rotate-right-icon e-pv-icon' });
this.rotateRightButton.appendChild(rotateButtonSpan);
var rotateButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Rotate Right'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
rotateButtonTooltip.appendTo(this.rotateRightButton);
this.rotateLeftButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_rotate_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Rotate Left'), 'tabindex': '-1' } });
if (isNewPage) {
this.rotateLeftButton.id = this.rotateLeftButton.id + '_' + subIndex;
}
this.rotateLeftButton.className = 'e-pv-tbar-btn e-pv-rotate-left-button e-btn e-pv-organize-pdf-tile-btn';
this.rotateLeftButton.setAttribute('type', 'button');
var rotateLeftButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_rotate_left' + '_icon', className: 'e-pv-rotate-left-icon e-pv-icon' });
this.rotateLeftButton.appendChild(rotateLeftButtonSpan);
var rotateLeftButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Rotate Left'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
rotateLeftButtonTooltip.appendTo(this.rotateLeftButton);
this.copyButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_copy_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Copy Page'), 'tabindex': '-1' } });
if (isNewPage) {
this.copyButton.id = this.copyButton.id + '_' + subIndex;
}
this.copyButton.className = 'e-pv-tbar-btn e-pv-copy-button e-btn e-pv-organize-pdf-tile-btn';
this.copyButton.setAttribute('type', 'button');
var copyButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_copy' + '_icon', className: 'e-pv-copy-icon e-pv-icon' });
this.copyButton.appendChild(copyButtonSpan);
var copyButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Copy Page'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
copyButtonTooltip.appendTo(this.copyButton);
this.insertRightButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_insert_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Insert Right'), 'tabindex': '-1' } });
if (isNewPage) {
this.insertRightButton.id = this.insertRightButton.id + '_' + subIndex;
}
this.insertRightButton.className = 'e-pv-tbar-btn e-pv-insert-right-button e-btn e-pv-organize-pdf-tile-btn';
this.insertRightButton.setAttribute('type', 'button');
var insertRightButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_insert_right' + '_icon', className: 'e-icons e-plus' });
this.insertRightButton.appendChild(insertRightButtonSpan);
var insertRightButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Insert Right'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
insertRightButtonTooltip.appendTo(this.insertRightButton);
this.insertLeftButton = ej2_base_1.createElement('button', { id: this.pdfViewer.element.id + '_insert_page_' + pageIndex, attrs: { 'aria-label': this.pdfViewer.localeObj.getConstant('Insert Left'), 'tabindex': '-1' } });
if (isNewPage) {
this.insertLeftButton.id = this.insertLeftButton.id + '_' + subIndex;
}
this.insertLeftButton.className = 'e-pv-tbar-btn e-pv-insert-left-button e-btn e-pv-organize-pdf-tile-btn';
this.insertLeftButton.setAttribute('type', 'button');
var insertLeftButtonSpan = ej2_base_1.createElement('span', { id: this.pdfViewer.element.id + '_insert_left' + '_icon', className: 'e-icons e-plus' });
this.insertLeftButton.appendChild(insertLeftButtonSpan);
var insertLeftButtonTooltip = new ej2_popups_1.Tooltip({
content: ej2_base_1.initializeCSPTemplate(function () { return this.pdfViewer.localeObj.getConstant('Insert Left'); }, this), opensOn: 'Hover', beforeOpen: organize_toolbar_1.onTooltipBeforeOpen.bind(this)
});
insertLeftButtonTooltip.appendTo(this.insertLeftButton);
if (!this.pdfViewer.pageOrganizerSettings.canInsert) {
this.insertLeftButton.setAttribute('disabled', 'disabled');
this.insertLeftButton.firstElementChild.classList.add('e-disabled');
this.insertRightButton.setAttribute('disabled', 'disabled');
this.insertRightButton.firstElementChild.classList.add('e-disabled');
}
if (!this.pdfViewer.pageOrganizerSettings.canRotate) {
this.rotateLeftButton.setAttribute('disabled', 'disabled');
this.rotateLeftButton.firstElementChild.classList.add('e-disabled');
this.rotateRightButton.setAttribute('disabled', 'disabled');
this.rotateRightButton.firstElementChild.classList.add('e-disabled');
}
if (!this.pdfViewer.pageOrganizerSettings.canDelete) {
this.deleteButton.setAttribute('disabled', 'disabled');
this.deleteButton.firstElementChild.classList.add('e-disabled');
}
if (!this.pdfViewer.pageOrganizerSettings.canCopy) {
this.copyButton.setAttribute('disabled', 'disabled');
this.copyButton.firstElementChild.classList.add('e-disabled');
}
buttondiv.appendChild(this.insertLeftButton);
if (!isImportedPage) {
buttondiv.appendChild(this.rotateLeftButton);
buttondiv.appendChild(this.rotateRightButton);
buttondiv.appendChild(this.copyButton);
}
buttondiv.appendChild(this.deleteButton);
buttondiv.appendChild(this.insertRightButton);
this.thumbnail.appendChild(buttondiv);
buttondiv.style.display = 'none';
this.pageLink.appendChild(this.thumbnail);
this.tileAreaDiv.appendChild(this.pageLink);
this.pageLink.appendChild(thumbnailPageNumber);
this.rotateRightButton.addEventListener('click', organizepages_editor_1.rotateButtonClick.bind(this));
this.rotateLeftButton.addEventListener('click', organizepages_editor_1.rotateLeftButtonClick.bind(this));
this.insertRightButton.addEventListener('click', organize_utils_1.insertRightButtonClick.bind(this));
this.insertLeftButton.addEventListener('click', organize_utils_1.insertLeftButtonClick.bind(this));
this.deleteButton.addEventListener('click', organize_utils_1.deleteButtonClick.bind(this));
this.copyButton.addEventListener('click', organize_utils_1.copyButtonClick.bind(this));
this.pageLink.addEventListener('mouseover', thumbnailMouseOver.bind(this));
this.pageLink.addEventListener('mouseleave', thumbnailMouseLeave.bind(this));
organize_utils_1.movePages.call(this);
if (isNewPage) {
if (isBefore) {
this.tileAreaDiv.insertBefore(this.pageLink, targetElement);
}
else {
this.tileAreaDiv.insertBefore(this.pageLink, targetElement.nextSibling);
}
}
}
exports.tileImageRender = tileImageRender;
function thumbnailMouseOver(event) {
var proxy = this;
if (event.currentTarget instanceof HTMLElement) {
var childrenArray = Array.from(event.currentTarget.children);
for (var _i = 0, childrenArray_1 = childrenArray; _i < childrenArray_1.length; _i++) {
var subchild = childrenArray_1[_i];
var childArray = Array.from(subchild.children);
for (var _a = 0, childArray_1 = childArray; _a < childArray_1.length; _a++) {
var child = childArray_1[_a];
if (!(child.classList.contains('e-pv-image-container'))) {
child.style.display = 'flex';
if (child.classList.contains('e-checkbox-wrapper')) {
child.children[0].style.display = 'block';
}
else if (child.classList.contains('e-pv-organize-buttondiv') && child.childElementCount > 0) {
var childelementArray = Array.from(child.children);
for (var _b = 0, childelementArray_1 = childelementArray; _b < childelementArray_1.length; _b++) {
var childelement = childelementArray_1[_b];
if (proxy.totalCheckedCount > 1) {
if (childelement.id.split('_')[1] === 'insert') {
childelement.style.display = 'flex';
}
else {
childelement.style.display = 'none';
}
}
else {
childelement.style.display = 'flex';
}
var targetClassList = childelement.classList;
if (targetClassList.contains('e-pv-insert-left-button') || targetClassList.contains('e-pv-insert-right-button')) {
childelement.style.top = '-' + (parseFloat(this.pageLink.style.height.replace('px', '')) / 2) + 'px';
}
setTileButtonEnableState.call(this, childelement);
}
}
}
}
}
}
}
exports.thumbnailMouseOver = thumbnailMouseOver;
function setTileButtonEnableState(button) {
if (ej2_base_1.isNullOrUndefined(button)) {
return;
}
var buttonClassList = button.classList;
var firstChildClassList = button.firstElementChild ? button.firstElementChild.classList : buttonClassList;
if (buttonClassList.contains('e-pv-insert-left-button') || buttonClassList.contains('e-pv-insert-right-button')) {
if (!this.pdfViewer.pageOrganizerSettings.canInsert) {
firstChildClassList.add('e-disabled');
button.setAttribute('disabled', 'disabled');
}
else {
firstChildClassList.remove('e-disabled');
button.removeAttribute('disabled');
}
}
else if (buttonClassList.contains('e-pv-rotate-left-button') || buttonClassList.contains('e-pv-rotate-right-button')) {
if (!this.pdfViewer.pageOrganizerSettings.canRotate) {
firstChildClassList.add('e-disabled');
button.setAttribute('disabled', 'disabled');
}
else {
firstChildClassList.remove('e-disabled');
button.removeAttribute('disabled');
}
}
else if (buttonClassList.contains('e-pv-copy-button')) {
var emptyImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAAD5Ip3+AAAAC0lEQVQIHWP4DwQACfsD/Qy7W+cAAAAASUVORK5CYII=';
var splitArray = button.id.split('_copy_page_');
var suffixID = '';
var isEmptyPage = false;
if (splitArray.length > 0) {
suffixID = splitArray[1];
var imageElement = document.getElementById(this.pdfViewer.element.id + '_organize_image_' + suffixID);
if (imageElement && imageElement.currentSrc === emptyImage) {
isEmptyPage = true;
}
}
if (!this.pdfViewer.pageOrganizerSettings.canCopy || isEmptyPage) {
firstChildClassList.add('e-disabled');
button.setAttribute('disabled', 'disabled');
}
else {
firstChildClassList.remove('e-disabled');
button.removeAttribute('disabled');
}
}
else if (buttonClassList.contains('e-pv-delete-button')) {
if (!this.pdfViewer.pageOrganizerSettings.canDelete) {
firstChildClassList.add('e-disabled');
button.setAttribute('disabled', 'disabled');
}
else {
firstChildClassList.remove('e-disabled');
button.removeAttribute('disabled');
}
}
}
exports.setTileButtonEnableState = setTileButtonEnableState;
function thumbnailMouseLeave(event) {
if (event.currentTarget instanceof HTMLElement) {
var childrenArray = Array.from(event.currentTarget.children);
for (var _i = 0, childrenArray_2 = childrenArray; _i < childrenArray_2.length; _i++) {
var subchild = childrenArray_2[_i];
var childArray = Array.from(subchild.children);
for (var _a = 0, childArray_2 = childArray; _a < childArray_2.length; _a++) {
var child = childArray_2[_a];
if (!(child.classList.contains('e-pv-image-container'))) {
if (event.currentTarget.classList.contains('e-pv-organize-node-selection-ring')) {
if (child.classList.contains('e-checkbox-wrapper')) {
child.style.display = 'block';
}
else {
child.style.display = 'none';
}
}
else {
child.style.display = 'none';
}
}
}
}
}
}
exports.thumbnailMouseLeave = thumbnailMouseLeave;
});
|